diff --git a/src/apis/accessapproval/README.md b/src/apis/accessapproval/README.md
new file mode 100644
index 00000000000..7f654d85564
--- /dev/null
+++ b/src/apis/accessapproval/README.md
@@ -0,0 +1,47 @@
+
+
+# accessapproval
+
+> An API for controlling access to data by Google personnel.
+
+## Installation
+
+```sh
+$ npm install googleapis
+```
+
+## Usage
+All documentation and usage information can be found on [GitHub](https://github.com/googleapis/google-api-nodejs-client).
+
+## Building a browser bundle
+
+This library can be used in a browser. To prepare a single file bundle, clone the
+[repository](https://github.com/googleapis/google-api-nodejs-client) and run
+
+```sh
+$ cd src/apis/accessapproval
+$ npm install
+$ npm run webpack
+```
+
+The generated bundle will be written to `dist/accessapproval.min.js`. Use it from your HTML file:
+
+```html
+
+
+```
+
+## License
+This library is licensed under Apache 2.0. Full license text is available in [LICENSE](https://github.com/googleapis/google-api-nodejs-client/blob/master/LICENSE).
+
+## Contributing
+We love contributions! Before submitting a Pull Request, it's always good to start with a new issue first. To learn more, see [CONTRIBUTING](https://github.com/google/google-api-nodejs-client/blob/master/.github/CONTRIBUTING.md).
+
+## Questions/problems?
+* Ask your development related questions on [StackOverflow](http://stackoverflow.com/questions/tagged/google-api-nodejs-client).
+* If you've found an bug/issue, please [file it on GitHub](https://github.com/googleapis/google-api-nodejs-client/issues).
+
+
+*Crafted with ❤️ by the Google Node.js team*
diff --git a/src/apis/accessapproval/index.ts b/src/apis/accessapproval/index.ts
new file mode 100644
index 00000000000..45feda217e4
--- /dev/null
+++ b/src/apis/accessapproval/index.ts
@@ -0,0 +1,34 @@
+// Copyright 2019 Google LLC
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+/*! THIS FILE IS AUTO-GENERATED */
+
+import {AuthPlus, getAPI, GoogleConfigurable} from 'googleapis-common';
+import {accessapproval_v1beta1} from './v1beta1';
+
+export const VERSIONS = {
+ 'v1beta1': accessapproval_v1beta1.Accessapproval,
+};
+
+export function accessapproval(version: 'v1beta1'):
+ accessapproval_v1beta1.Accessapproval;
+export function accessapproval(options: accessapproval_v1beta1.Options):
+ accessapproval_v1beta1.Accessapproval;
+export function accessapproval(
+ this: GoogleConfigurable,
+ versionOrOptions: 'v1beta1'|accessapproval_v1beta1.Options) {
+ return getAPI('accessapproval', versionOrOptions, VERSIONS, this);
+}
+
+const auth = new AuthPlus();
+export {auth};
diff --git a/src/apis/accessapproval/package.json b/src/apis/accessapproval/package.json
new file mode 100644
index 00000000000..eebb986921d
--- /dev/null
+++ b/src/apis/accessapproval/package.json
@@ -0,0 +1,43 @@
+{
+ "name": "@google/accessapproval",
+ "version": "0.1.0",
+ "description": "accessapproval",
+ "main": "build/index.js",
+ "types": "build/index.d.ts",
+ "keywords": [
+ "google"
+ ],
+ "author": "Google LLC",
+ "license": "Apache-2.0",
+ "homepage": "https://github.com/googleapis/google-api-nodejs-client",
+ "bugs": {
+ "url": "https://github.com/googleapis/google-api-nodejs-client/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/googleapis/google-api-nodejs-client.git"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ },
+ "scripts": {
+ "fix": "gts fix",
+ "lint": "gts check",
+ "compile": "tsc -p .",
+ "prepare": "npm run compile",
+ "docs": "typedoc --out docs/",
+ "webpack": "webpack"
+ },
+ "dependencies": {
+ "googleapis-common": "^0.7.0"
+ },
+ "devDependencies": {
+ "gts": "^0.9.0",
+ "null-loader": "^0.1.1",
+ "ts-loader": "^5.3.3",
+ "typedoc": "^0.14.0",
+ "typescript": "~3.4.0",
+ "webpack": "^4.28.4",
+ "webpack-cli": "^3.2.1"
+ }
+}
diff --git a/src/apis/accessapproval/tsconfig.json b/src/apis/accessapproval/tsconfig.json
new file mode 100644
index 00000000000..e0810904968
--- /dev/null
+++ b/src/apis/accessapproval/tsconfig.json
@@ -0,0 +1,10 @@
+{
+ "extends": "./node_modules/gts/tsconfig-google.json",
+ "compilerOptions": {
+ "rootDir": ".",
+ "outDir": "build"
+ },
+ "include": [
+ "*.ts",
+ ]
+}
diff --git a/src/apis/accessapproval/v1beta1.ts b/src/apis/accessapproval/v1beta1.ts
new file mode 100644
index 00000000000..e9bb893b1eb
--- /dev/null
+++ b/src/apis/accessapproval/v1beta1.ts
@@ -0,0 +1,1949 @@
+/**
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {GaxiosPromise} from 'gaxios';
+import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library';
+import {APIRequestContext, BodyResponseCallback, createAPIRequest, GlobalOptions, GoogleConfigurable, MethodOptions} from 'googleapis-common';
+
+// tslint:disable: no-any
+// tslint:disable: class-name
+// tslint:disable: variable-name
+// tslint:disable: jsdoc-format
+// tslint:disable: no-namespace
+
+export namespace accessapproval_v1beta1 {
+ export interface Options extends GlobalOptions {
+ version: 'v1beta1';
+ }
+
+ interface StandardParameters {
+ /**
+ * V1 error format.
+ */
+ '$.xgafv'?: string;
+ /**
+ * OAuth access token.
+ */
+ access_token?: string;
+ /**
+ * Data format for response.
+ */
+ alt?: string;
+ /**
+ * JSONP
+ */
+ callback?: string;
+ /**
+ * Selector specifying which fields to include in a partial response.
+ */
+ fields?: string;
+ /**
+ * API key. Your API key identifies your project and provides you with API
+ * access, quota, and reports. Required unless you provide an OAuth 2.0
+ * token.
+ */
+ key?: string;
+ /**
+ * OAuth 2.0 token for the current user.
+ */
+ oauth_token?: string;
+ /**
+ * Returns response with indentations and line breaks.
+ */
+ prettyPrint?: boolean;
+ /**
+ * Available to use for quota purposes for server-side applications. Can be
+ * any arbitrary string assigned to a user, but should not exceed 40
+ * characters.
+ */
+ quotaUser?: string;
+ /**
+ * Legacy upload protocol for media (e.g. "media", "multipart").
+ */
+ uploadType?: string;
+ /**
+ * Upload protocol for media (e.g. "raw", "multipart").
+ */
+ upload_protocol?: string;
+ }
+
+ /**
+ * Access Approval API
+ *
+ * An API for controlling access to data by Google personnel.
+ *
+ * @example
+ * const {google} = require('googleapis');
+ * const accessapproval = google.accessapproval('v1beta1');
+ *
+ * @namespace accessapproval
+ * @type {Function}
+ * @version v1beta1
+ * @variation v1beta1
+ * @param {object=} options Options for Accessapproval
+ */
+ export class Accessapproval {
+ context: APIRequestContext;
+ folders: Resource$Folders;
+ organizations: Resource$Organizations;
+ projects: Resource$Projects;
+
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
+ this.context = {_options: options || {}, google};
+
+ this.folders = new Resource$Folders(this.context);
+ this.organizations = new Resource$Organizations(this.context);
+ this.projects = new Resource$Projects(this.context);
+ }
+ }
+
+ /**
+ * Settings on a Project/Folder/Organization related to Access Approval.
+ */
+ export interface Schema$AccessApprovalSettings {
+ /**
+ * The resource name of the settings. Format is one of: <ol>
+ * <li>"projects/{project_id}/accessApprovalSettings"</li>
+ * <li>"folders/{folder_id}/accessApprovalSettings"</li>
+ * <li>"organizations/{organization_id}/accessApprovalSettings"</li>
+ * <ol>
+ */
+ name?: string;
+ /**
+ * A list of email addresses to which notifications relating to approval
+ * requests should be sent. Notifications relating to a resource will be
+ * sent to all emails in the settings of ancestor resources of that
+ * resource.
+ */
+ notificationEmails?: string[];
+ }
+ /**
+ * Home office and physical location of the principal.
+ */
+ export interface Schema$AccessLocations {
+ /**
+ * The "home office" location of the principal. A two-letter
+ * country code (ISO 3166-1 alpha-2), such as "US", "DE"
+ * or "GB" or a region code. In some limited situations Google
+ * systems may refer refer to a region code instead of a country code.
+ * Possible Region Codes: <ol> <li>ASI: Asia</li>
+ * <li>EUR: Europe</li> <li>OCE: Oceania</li>
+ * <li>AFR: Africa</li> <li>NAM: North
+ * America</li> <li>SAM: South America</li>
+ * <li>ANT: Antarctica</li> <li>ANY: Any
+ * location</li> </ol>
+ */
+ principalOfficeCountry?: string;
+ /**
+ * Physical location of the principal at the time of the access. A
+ * two-letter country code (ISO 3166-1 alpha-2), such as "US",
+ * "DE" or "GB" or a region code. In some limited
+ * situations Google systems may refer refer to a region code instead of a
+ * country code. Possible Region Codes: <ol> <li>ASI:
+ * Asia</li> <li>EUR: Europe</li> <li>OCE:
+ * Oceania</li> <li>AFR: Africa</li> <li>NAM:
+ * North America</li> <li>SAM: South America</li>
+ * <li>ANT: Antarctica</li> <li>ANY: Any
+ * location</li> </ol>
+ */
+ principalPhysicalLocationCountry?: string;
+ }
+ export interface Schema$AccessReason {
+ /**
+ * More detail about certain reason types. See comments for each type above.
+ */
+ detail?: string;
+ /**
+ * Type of access justification.
+ */
+ type?: string;
+ }
+ /**
+ * A request for the customer to approve access to a resource.
+ */
+ export interface Schema$ApprovalRequest {
+ /**
+ * Access was approved.
+ */
+ approve?: Schema$ApproveDecision;
+ /**
+ * The request was dismissed.
+ */
+ dismiss?: Schema$DismissDecision;
+ /**
+ * The resource name of the request. Format is
+ * "{projects|folders|organizations}/{id}/approvalRequests/{approval_request_id}".
+ */
+ name?: string;
+ /**
+ * The requested expiration for the approval. If the request is approved,
+ * access will be granted from the time of approval until the expiration
+ * time.
+ */
+ requestedExpiration?: string;
+ /**
+ * The locations for which approval is being requested.
+ */
+ requestedLocations?: Schema$AccessLocations;
+ /**
+ * The justification for which approval is being requested.
+ */
+ requestedReason?: Schema$AccessReason;
+ /**
+ * The resource for which approval is being requested. The format of the
+ * resource name is defined at
+ * https://cloud.google.com/apis/design/resource_names. The resource name
+ * here may either be a "full" resource name (e.g.
+ * "//library.googleapis.com/shelves/shelf1/books/book2") or a
+ * "relative" resource name (e.g.
+ * "shelves/shelf1/books/book2") as described in the resource name
+ * specification.
+ */
+ requestedResourceName?: string;
+ /**
+ * The time at which approval was requested.
+ */
+ requestTime?: string;
+ }
+ /**
+ * Request to approve an ApprovalRequest.
+ */
+ export interface Schema$ApproveApprovalRequestMessage {
+ /**
+ * The expiration time of this approval.
+ */
+ expireTime?: string;
+ }
+ /**
+ * A decision that has been made to approve access to a resource.
+ */
+ export interface Schema$ApproveDecision {
+ /**
+ * The time at which approval was granted.
+ */
+ approveTime?: string;
+ /**
+ * The time at which the approval expires.
+ */
+ expireTime?: string;
+ }
+ /**
+ * Request to dismiss an approval request.
+ */
+ export interface Schema$DismissApprovalRequestMessage {}
+ /**
+ * A decision that has been made to dismiss an approval request.
+ */
+ export interface Schema$DismissDecision {
+ /**
+ * The time at which the approval request was dismissed.
+ */
+ dismissTime?: string;
+ }
+ /**
+ * Response to listing of ApprovalRequest objects.
+ */
+ export interface Schema$ListApprovalRequestsResponse {
+ /**
+ * Approval request details.
+ */
+ approvalRequests?: Schema$ApprovalRequest[];
+ /**
+ * Token to retrieve the next page of results, or empty if there are no
+ * more.
+ */
+ nextPageToken?: string;
+ }
+
+
+ export class Resource$Folders {
+ context: APIRequestContext;
+ approvalRequests: Resource$Folders$Approvalrequests;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ this.approvalRequests =
+ new Resource$Folders$Approvalrequests(this.context);
+ }
+
+
+ /**
+ * accessapproval.folders.getAccessApprovalSettings
+ * @desc Gets the settings associated with a project, folder, or
+ * organization.
+ * @alias accessapproval.folders.getAccessApprovalSettings
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the AccessApprovalSettings 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
+ */
+ getAccessApprovalSettings(
+ params?: Params$Resource$Folders$Getaccessapprovalsettings,
+ options?: MethodOptions): GaxiosPromise;
+ getAccessApprovalSettings(
+ params: Params$Resource$Folders$Getaccessapprovalsettings,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ params: Params$Resource$Folders$Getaccessapprovalsettings,
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ paramsOrCallback?: Params$Resource$Folders$Getaccessapprovalsettings|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Folders$Getaccessapprovalsettings;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Folders$Getaccessapprovalsettings;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.folders.updateAccessApprovalSettings
+ * @desc Updates the settings associated with a project, folder, or
+ * organization. Completely replaces the existing settings.
+ * @alias accessapproval.folders.updateAccessApprovalSettings
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
+ * @param {().AccessApprovalSettings} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ updateAccessApprovalSettings(
+ params?: Params$Resource$Folders$Updateaccessapprovalsettings,
+ options?: MethodOptions): GaxiosPromise;
+ updateAccessApprovalSettings(
+ params: Params$Resource$Folders$Updateaccessapprovalsettings,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ params: Params$Resource$Folders$Updateaccessapprovalsettings,
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ paramsOrCallback?: Params$Resource$Folders$Updateaccessapprovalsettings|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Folders$Updateaccessapprovalsettings;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Folders$Updateaccessapprovalsettings;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'PATCH'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Folders$Getaccessapprovalsettings extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the AccessApprovalSettings to retrieve.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Folders$Updateaccessapprovalsettings extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * The resource name of the settings. Format is one of:
+ * - "projects/{project_id}/accessApprovalSettings"
+ * - "folders/{folder_id}/accessApprovalSettings"
+ * - "organizations/{organization_id}/accessApprovalSettings"
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$AccessApprovalSettings;
+ }
+
+ export class Resource$Folders$Approvalrequests {
+ context: APIRequestContext;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ }
+
+
+ /**
+ * accessapproval.folders.approvalRequests.approve
+ * @desc Approves a request and returns the updated ApprovalRequest. Returns
+ * NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if
+ * the request exists but is not in a pending state.
+ * @alias accessapproval.folders.approvalRequests.approve
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the approval request to approve.
+ * @param {().ApproveApprovalRequestMessage} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ approve(
+ params?: Params$Resource$Folders$Approvalrequests$Approve,
+ options?: MethodOptions): GaxiosPromise;
+ approve(
+ params: Params$Resource$Folders$Approvalrequests$Approve,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ approve(
+ params: Params$Resource$Folders$Approvalrequests$Approve,
+ callback: BodyResponseCallback): void;
+ approve(callback: BodyResponseCallback): void;
+ approve(
+ paramsOrCallback?: Params$Resource$Folders$Approvalrequests$Approve|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Folders$Approvalrequests$Approve;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Folders$Approvalrequests$Approve;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}:approve')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.folders.approvalRequests.dismiss
+ * @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE:
+ * This does not deny access to the resource if another request has been
+ * made and approved. It is equivalent in effect to ignoring the request
+ * altogether. Returns NOT_FOUND if the request does not exist. Returns
+ * FAILED_PRECONDITION if the request exists but is not in a pending state.
+ * @alias accessapproval.folders.approvalRequests.dismiss
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the ApprovalRequest to dismiss.
+ * @param {().DismissApprovalRequestMessage} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ dismiss(
+ params?: Params$Resource$Folders$Approvalrequests$Dismiss,
+ options?: MethodOptions): GaxiosPromise;
+ dismiss(
+ params: Params$Resource$Folders$Approvalrequests$Dismiss,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ dismiss(
+ params: Params$Resource$Folders$Approvalrequests$Dismiss,
+ callback: BodyResponseCallback): void;
+ dismiss(callback: BodyResponseCallback): void;
+ dismiss(
+ paramsOrCallback?: Params$Resource$Folders$Approvalrequests$Dismiss|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Folders$Approvalrequests$Dismiss;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Folders$Approvalrequests$Dismiss;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}:dismiss')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.folders.approvalRequests.get
+ * @desc Gets an approval request. Returns NOT_FOUND if the request does not
+ * exist.
+ * @alias accessapproval.folders.approvalRequests.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the approval request 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
+ */
+ get(params?: Params$Resource$Folders$Approvalrequests$Get,
+ options?: MethodOptions): GaxiosPromise;
+ get(params: Params$Resource$Folders$Approvalrequests$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Folders$Approvalrequests$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Folders$Approvalrequests$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Folders$Approvalrequests$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Folders$Approvalrequests$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.folders.approvalRequests.list
+ * @desc Lists approval requests associated with a project, folder, or
+ * organization. Approval requests can be filtered by state (pending,
+ * active, dismissed). The order is reverse chronological.
+ * @alias accessapproval.folders.approvalRequests.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: - [not set]: Requests that are pending or have active approvals.
- ALL: All requests.
- PENDING: Only pending requests.
- ACTIVE: Only active (i.e. currently approved) requests.
- DISMISSED: Only dismissed (including expired) requests.
+ * @param {integer=} params.pageSize Requested page size.
+ * @param {string=} params.pageToken A token identifying the page of results to return.
+ * @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_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$Folders$Approvalrequests$List,
+ options?: MethodOptions):
+ GaxiosPromise;
+ list(
+ params: Params$Resource$Folders$Approvalrequests$List,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback):
+ void;
+ list(
+ params: Params$Resource$Folders$Approvalrequests$List,
+ callback: BodyResponseCallback):
+ void;
+ list(callback: BodyResponseCallback):
+ void;
+ list(
+ paramsOrCallback?: Params$Resource$Folders$Approvalrequests$List|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Folders$Approvalrequests$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Folders$Approvalrequests$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+parent}/approvalRequests')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters, callback);
+ } else {
+ return createAPIRequest(
+ parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Folders$Approvalrequests$Approve extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the approval request to approve.
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$ApproveApprovalRequestMessage;
+ }
+ export interface Params$Resource$Folders$Approvalrequests$Dismiss extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the ApprovalRequest to dismiss.
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$DismissApprovalRequestMessage;
+ }
+ export interface Params$Resource$Folders$Approvalrequests$Get extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the approval request to retrieve.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Folders$Approvalrequests$List extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * A filter on the type of approval requests to retrieve. Must be one of the
+ * following values: - [not set]: Requests that are pending or have
+ * active approvals.
- ALL: All requests.
- PENDING: Only
+ * pending requests.
- ACTIVE: Only active (i.e. currently
+ * approved) requests.
- DISMISSED: Only dismissed (including
+ * expired) requests.
+ */
+ filter?: string;
+ /**
+ * Requested page size.
+ */
+ pageSize?: number;
+ /**
+ * A token identifying the page of results to return.
+ */
+ pageToken?: string;
+ /**
+ * The parent resource. This may be "projects/{project_id}",
+ * "folders/{folder_id}", or "organizations/{organization_id}".
+ */
+ parent?: string;
+ }
+
+
+
+ export class Resource$Organizations {
+ context: APIRequestContext;
+ approvalRequests: Resource$Organizations$Approvalrequests;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ this.approvalRequests =
+ new Resource$Organizations$Approvalrequests(this.context);
+ }
+
+
+ /**
+ * accessapproval.organizations.getAccessApprovalSettings
+ * @desc Gets the settings associated with a project, folder, or
+ * organization.
+ * @alias accessapproval.organizations.getAccessApprovalSettings
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the AccessApprovalSettings 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
+ */
+ getAccessApprovalSettings(
+ params?: Params$Resource$Organizations$Getaccessapprovalsettings,
+ options?: MethodOptions): GaxiosPromise;
+ getAccessApprovalSettings(
+ params: Params$Resource$Organizations$Getaccessapprovalsettings,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ params: Params$Resource$Organizations$Getaccessapprovalsettings,
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ paramsOrCallback?:
+ Params$Resource$Organizations$Getaccessapprovalsettings|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Organizations$Getaccessapprovalsettings;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Organizations$Getaccessapprovalsettings;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.organizations.updateAccessApprovalSettings
+ * @desc Updates the settings associated with a project, folder, or
+ * organization. Completely replaces the existing settings.
+ * @alias accessapproval.organizations.updateAccessApprovalSettings
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
+ * @param {().AccessApprovalSettings} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ updateAccessApprovalSettings(
+ params?: Params$Resource$Organizations$Updateaccessapprovalsettings,
+ options?: MethodOptions): GaxiosPromise;
+ updateAccessApprovalSettings(
+ params: Params$Resource$Organizations$Updateaccessapprovalsettings,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ params: Params$Resource$Organizations$Updateaccessapprovalsettings,
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ paramsOrCallback?:
+ Params$Resource$Organizations$Updateaccessapprovalsettings|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Organizations$Updateaccessapprovalsettings;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as
+ Params$Resource$Organizations$Updateaccessapprovalsettings;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'PATCH'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Organizations$Getaccessapprovalsettings
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the AccessApprovalSettings to retrieve.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Organizations$Updateaccessapprovalsettings
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * The resource name of the settings. Format is one of:
+ * - "projects/{project_id}/accessApprovalSettings"
+ * - "folders/{folder_id}/accessApprovalSettings"
+ * - "organizations/{organization_id}/accessApprovalSettings"
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$AccessApprovalSettings;
+ }
+
+ export class Resource$Organizations$Approvalrequests {
+ context: APIRequestContext;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ }
+
+
+ /**
+ * accessapproval.organizations.approvalRequests.approve
+ * @desc Approves a request and returns the updated ApprovalRequest. Returns
+ * NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if
+ * the request exists but is not in a pending state.
+ * @alias accessapproval.organizations.approvalRequests.approve
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the approval request to approve.
+ * @param {().ApproveApprovalRequestMessage} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ approve(
+ params?: Params$Resource$Organizations$Approvalrequests$Approve,
+ options?: MethodOptions): GaxiosPromise;
+ approve(
+ params: Params$Resource$Organizations$Approvalrequests$Approve,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ approve(
+ params: Params$Resource$Organizations$Approvalrequests$Approve,
+ callback: BodyResponseCallback): void;
+ approve(callback: BodyResponseCallback): void;
+ approve(
+ paramsOrCallback?:
+ Params$Resource$Organizations$Approvalrequests$Approve|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Organizations$Approvalrequests$Approve;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Organizations$Approvalrequests$Approve;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}:approve')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.organizations.approvalRequests.dismiss
+ * @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE:
+ * This does not deny access to the resource if another request has been
+ * made and approved. It is equivalent in effect to ignoring the request
+ * altogether. Returns NOT_FOUND if the request does not exist. Returns
+ * FAILED_PRECONDITION if the request exists but is not in a pending state.
+ * @alias accessapproval.organizations.approvalRequests.dismiss
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the ApprovalRequest to dismiss.
+ * @param {().DismissApprovalRequestMessage} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ dismiss(
+ params?: Params$Resource$Organizations$Approvalrequests$Dismiss,
+ options?: MethodOptions): GaxiosPromise;
+ dismiss(
+ params: Params$Resource$Organizations$Approvalrequests$Dismiss,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ dismiss(
+ params: Params$Resource$Organizations$Approvalrequests$Dismiss,
+ callback: BodyResponseCallback): void;
+ dismiss(callback: BodyResponseCallback): void;
+ dismiss(
+ paramsOrCallback?:
+ Params$Resource$Organizations$Approvalrequests$Dismiss|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Organizations$Approvalrequests$Dismiss;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Organizations$Approvalrequests$Dismiss;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}:dismiss')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.organizations.approvalRequests.get
+ * @desc Gets an approval request. Returns NOT_FOUND if the request does not
+ * exist.
+ * @alias accessapproval.organizations.approvalRequests.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the approval request 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
+ */
+ get(params?: Params$Resource$Organizations$Approvalrequests$Get,
+ options?: MethodOptions): GaxiosPromise;
+ get(params: Params$Resource$Organizations$Approvalrequests$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Organizations$Approvalrequests$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Organizations$Approvalrequests$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Organizations$Approvalrequests$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Organizations$Approvalrequests$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.organizations.approvalRequests.list
+ * @desc Lists approval requests associated with a project, folder, or
+ * organization. Approval requests can be filtered by state (pending,
+ * active, dismissed). The order is reverse chronological.
+ * @alias accessapproval.organizations.approvalRequests.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: - [not set]: Requests that are pending or have active approvals.
- ALL: All requests.
- PENDING: Only pending requests.
- ACTIVE: Only active (i.e. currently approved) requests.
- DISMISSED: Only dismissed (including expired) requests.
+ * @param {integer=} params.pageSize Requested page size.
+ * @param {string=} params.pageToken A token identifying the page of results to return.
+ * @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_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$Organizations$Approvalrequests$List,
+ options?: MethodOptions):
+ GaxiosPromise;
+ list(
+ params: Params$Resource$Organizations$Approvalrequests$List,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback):
+ void;
+ list(
+ params: Params$Resource$Organizations$Approvalrequests$List,
+ callback: BodyResponseCallback):
+ void;
+ list(callback: BodyResponseCallback):
+ void;
+ list(
+ paramsOrCallback?: Params$Resource$Organizations$Approvalrequests$List|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Organizations$Approvalrequests$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Organizations$Approvalrequests$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+parent}/approvalRequests')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters, callback);
+ } else {
+ return createAPIRequest(
+ parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Organizations$Approvalrequests$Approve
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the approval request to approve.
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$ApproveApprovalRequestMessage;
+ }
+ export interface Params$Resource$Organizations$Approvalrequests$Dismiss
+ extends StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the ApprovalRequest to dismiss.
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$DismissApprovalRequestMessage;
+ }
+ export interface Params$Resource$Organizations$Approvalrequests$Get extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the approval request to retrieve.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Organizations$Approvalrequests$List extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * A filter on the type of approval requests to retrieve. Must be one of the
+ * following values: - [not set]: Requests that are pending or have
+ * active approvals.
- ALL: All requests.
- PENDING: Only
+ * pending requests.
- ACTIVE: Only active (i.e. currently
+ * approved) requests.
- DISMISSED: Only dismissed (including
+ * expired) requests.
+ */
+ filter?: string;
+ /**
+ * Requested page size.
+ */
+ pageSize?: number;
+ /**
+ * A token identifying the page of results to return.
+ */
+ pageToken?: string;
+ /**
+ * The parent resource. This may be "projects/{project_id}",
+ * "folders/{folder_id}", or "organizations/{organization_id}".
+ */
+ parent?: string;
+ }
+
+
+
+ export class Resource$Projects {
+ context: APIRequestContext;
+ approvalRequests: Resource$Projects$Approvalrequests;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ this.approvalRequests =
+ new Resource$Projects$Approvalrequests(this.context);
+ }
+
+
+ /**
+ * accessapproval.projects.getAccessApprovalSettings
+ * @desc Gets the settings associated with a project, folder, or
+ * organization.
+ * @alias accessapproval.projects.getAccessApprovalSettings
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the AccessApprovalSettings 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
+ */
+ getAccessApprovalSettings(
+ params?: Params$Resource$Projects$Getaccessapprovalsettings,
+ options?: MethodOptions): GaxiosPromise;
+ getAccessApprovalSettings(
+ params: Params$Resource$Projects$Getaccessapprovalsettings,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ params: Params$Resource$Projects$Getaccessapprovalsettings,
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ callback: BodyResponseCallback): void;
+ getAccessApprovalSettings(
+ paramsOrCallback?: Params$Resource$Projects$Getaccessapprovalsettings|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Projects$Getaccessapprovalsettings;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Getaccessapprovalsettings;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.projects.updateAccessApprovalSettings
+ * @desc Updates the settings associated with a project, folder, or
+ * organization. Completely replaces the existing settings.
+ * @alias accessapproval.projects.updateAccessApprovalSettings
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name The resource name of the settings. Format is one of: - "projects/{project_id}/accessApprovalSettings"
- "folders/{folder_id}/accessApprovalSettings"
- "organizations/{organization_id}/accessApprovalSettings"
+ * @param {().AccessApprovalSettings} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ updateAccessApprovalSettings(
+ params?: Params$Resource$Projects$Updateaccessapprovalsettings,
+ options?: MethodOptions): GaxiosPromise;
+ updateAccessApprovalSettings(
+ params: Params$Resource$Projects$Updateaccessapprovalsettings,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ params: Params$Resource$Projects$Updateaccessapprovalsettings,
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ callback: BodyResponseCallback): void;
+ updateAccessApprovalSettings(
+ paramsOrCallback?:
+ Params$Resource$Projects$Updateaccessapprovalsettings|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Projects$Updateaccessapprovalsettings;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Updateaccessapprovalsettings;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'PATCH'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Projects$Getaccessapprovalsettings extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the AccessApprovalSettings to retrieve.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Projects$Updateaccessapprovalsettings extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * The resource name of the settings. Format is one of:
+ * - "projects/{project_id}/accessApprovalSettings"
+ * - "folders/{folder_id}/accessApprovalSettings"
+ * - "organizations/{organization_id}/accessApprovalSettings"
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$AccessApprovalSettings;
+ }
+
+ export class Resource$Projects$Approvalrequests {
+ context: APIRequestContext;
+ constructor(context: APIRequestContext) {
+ this.context = context;
+ }
+
+
+ /**
+ * accessapproval.projects.approvalRequests.approve
+ * @desc Approves a request and returns the updated ApprovalRequest. Returns
+ * NOT_FOUND if the request does not exist. Returns FAILED_PRECONDITION if
+ * the request exists but is not in a pending state.
+ * @alias accessapproval.projects.approvalRequests.approve
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the approval request to approve.
+ * @param {().ApproveApprovalRequestMessage} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ approve(
+ params?: Params$Resource$Projects$Approvalrequests$Approve,
+ options?: MethodOptions): GaxiosPromise;
+ approve(
+ params: Params$Resource$Projects$Approvalrequests$Approve,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ approve(
+ params: Params$Resource$Projects$Approvalrequests$Approve,
+ callback: BodyResponseCallback): void;
+ approve(callback: BodyResponseCallback): void;
+ approve(
+ paramsOrCallback?: Params$Resource$Projects$Approvalrequests$Approve|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Projects$Approvalrequests$Approve;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Approvalrequests$Approve;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}:approve')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.projects.approvalRequests.dismiss
+ * @desc Dismisses a request. Returns the updated ApprovalRequest. NOTE:
+ * This does not deny access to the resource if another request has been
+ * made and approved. It is equivalent in effect to ignoring the request
+ * altogether. Returns NOT_FOUND if the request does not exist. Returns
+ * FAILED_PRECONDITION if the request exists but is not in a pending state.
+ * @alias accessapproval.projects.approvalRequests.dismiss
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the ApprovalRequest to dismiss.
+ * @param {().DismissApprovalRequestMessage} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ dismiss(
+ params?: Params$Resource$Projects$Approvalrequests$Dismiss,
+ options?: MethodOptions): GaxiosPromise;
+ dismiss(
+ params: Params$Resource$Projects$Approvalrequests$Dismiss,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ dismiss(
+ params: Params$Resource$Projects$Approvalrequests$Dismiss,
+ callback: BodyResponseCallback): void;
+ dismiss(callback: BodyResponseCallback): void;
+ dismiss(
+ paramsOrCallback?: Params$Resource$Projects$Approvalrequests$Dismiss|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Projects$Approvalrequests$Dismiss;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Approvalrequests$Dismiss;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}:dismiss')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.projects.approvalRequests.get
+ * @desc Gets an approval request. Returns NOT_FOUND if the request does not
+ * exist.
+ * @alias accessapproval.projects.approvalRequests.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Name of the approval request 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
+ */
+ get(params?: Params$Resource$Projects$Approvalrequests$Get,
+ options?: MethodOptions): GaxiosPromise;
+ get(params: Params$Resource$Projects$Approvalrequests$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Projects$Approvalrequests$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Projects$Approvalrequests$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Projects$Approvalrequests$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Approvalrequests$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accessapproval.projects.approvalRequests.list
+ * @desc Lists approval requests associated with a project, folder, or
+ * organization. Approval requests can be filtered by state (pending,
+ * active, dismissed). The order is reverse chronological.
+ * @alias accessapproval.projects.approvalRequests.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.filter A filter on the type of approval requests to retrieve. Must be one of the following values: - [not set]: Requests that are pending or have active approvals.
- ALL: All requests.
- PENDING: Only pending requests.
- ACTIVE: Only active (i.e. currently approved) requests.
- DISMISSED: Only dismissed (including expired) requests.
+ * @param {integer=} params.pageSize Requested page size.
+ * @param {string=} params.pageToken A token identifying the page of results to return.
+ * @param {string} params.parent The parent resource. This may be "projects/{project_id}", "folders/{folder_id}", or "organizations/{organization_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$Approvalrequests$List,
+ options?: MethodOptions):
+ GaxiosPromise;
+ list(
+ params: Params$Resource$Projects$Approvalrequests$List,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback):
+ void;
+ list(
+ params: Params$Resource$Projects$Approvalrequests$List,
+ callback: BodyResponseCallback):
+ void;
+ list(callback: BodyResponseCallback):
+ void;
+ list(
+ paramsOrCallback?: Params$Resource$Projects$Approvalrequests$List|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|GaxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Projects$Approvalrequests$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Projects$Approvalrequests$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accessapproval.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/{+parent}/approvalRequests')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.context
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters, callback);
+ } else {
+ return createAPIRequest(
+ parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Projects$Approvalrequests$Approve extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the approval request to approve.
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$ApproveApprovalRequestMessage;
+ }
+ export interface Params$Resource$Projects$Approvalrequests$Dismiss extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the ApprovalRequest to dismiss.
+ */
+ name?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$DismissApprovalRequestMessage;
+ }
+ export interface Params$Resource$Projects$Approvalrequests$Get extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Name of the approval request to retrieve.
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Projects$Approvalrequests$List extends
+ StandardParameters {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * A filter on the type of approval requests to retrieve. Must be one of the
+ * following values: - [not set]: Requests that are pending or have
+ * active approvals.
- ALL: All requests.
- PENDING: Only
+ * pending requests.
- ACTIVE: Only active (i.e. currently
+ * approved) requests.
- DISMISSED: Only dismissed (including
+ * expired) requests.
+ */
+ filter?: string;
+ /**
+ * Requested page size.
+ */
+ pageSize?: number;
+ /**
+ * A token identifying the page of results to return.
+ */
+ pageToken?: string;
+ /**
+ * The parent resource. This may be "projects/{project_id}",
+ * "folders/{folder_id}", or "organizations/{organization_id}".
+ */
+ parent?: string;
+ }
+}
diff --git a/src/apis/accessapproval/webpack.config.js b/src/apis/accessapproval/webpack.config.js
new file mode 100644
index 00000000000..a612f5ce6f6
--- /dev/null
+++ b/src/apis/accessapproval/webpack.config.js
@@ -0,0 +1,71 @@
+/**
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+// Use `npm run webpack` to produce Webpack bundle for this library.
+
+const path = require('path');
+
+module.exports = {
+ entry: './index.ts',
+ resolve: {
+ extensions: ['.ts', '.js', '.json'],
+ },
+ output: {
+ library: 'Accessapproval',
+ filename: 'accessapproval.min.js',
+ path: path.resolve(__dirname, 'dist'),
+ },
+ node: {
+ child_process: 'empty',
+ fs: 'empty',
+ crypto: 'empty',
+ },
+ module: {
+ rules: [
+ {
+ test: /node_modules\/google-auth-library\/src\/crypto\/node\/crypto/,
+ use: 'null-loader',
+ },
+ {
+ test: /node_modules\/https-proxy-agent\//,
+ use: 'null-loader',
+ },
+ {
+ test: /node_modules\/gcp-metadata\//,
+ use: 'null-loader',
+ },
+ {
+ test: /node_modules\/gtoken\//,
+ use: 'null-loader',
+ },
+ {
+ test: /node_modules\/pkginfo\//,
+ use: 'null-loader',
+ },
+ {
+ test: /node_modules\/semver\//,
+ use: 'null-loader',
+ },
+ {
+ test: /\.ts$/,
+ use: 'ts-loader',
+ exclude: /node_modules/,
+ },
+ ],
+ },
+ mode: 'production',
+ plugins: [],
+};
diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts
index d2214ff97be..f1c4c591c7c 100644
--- a/src/apis/adexchangebuyer2/v2beta1.ts
+++ b/src/apis/adexchangebuyer2/v2beta1.ts
@@ -5881,116 +5881,14 @@ export namespace adexchangebuyer2_v2beta1 {
export class Resource$Bidders$Accounts {
context: APIRequestContext;
- creatives: Resource$Bidders$Accounts$Creatives;
filterSets: Resource$Bidders$Accounts$Filtersets;
constructor(context: APIRequestContext) {
this.context = context;
- this.creatives = new Resource$Bidders$Accounts$Creatives(this.context);
this.filterSets = new Resource$Bidders$Accounts$Filtersets(this.context);
}
}
- export class Resource$Bidders$Accounts$Creatives {
- context: APIRequestContext;
- constructor(context: APIRequestContext) {
- this.context = context;
- }
-
-
- /**
- * adexchangebuyer2.bidders.accounts.creatives.delete
- * @desc Deletes a single creative. A creative is deactivated upon deletion
- * and does not count against active snippet quota. A deleted creative
- * should not be used in bidding (all bids with that creative will be
- * rejected).
- * @alias adexchangebuyer2.bidders.accounts.creatives.delete
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {string} params.creativeId The ID of the creative to delete.
- * @param {string} params.ownerName Name of the owner (bidder or account) of the creative to be deleted. For example: - For an account-level creative for the buyer account representing bidder 123: `bidders/123/accounts/123` - For an account-level creative for the child seat buyer account 456 whose bidder is 123: `bidders/123/accounts/456`
- * @param {object} [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$Bidders$Accounts$Creatives$Delete,
- options?: MethodOptions): GaxiosPromise;
- delete(
- params: Params$Resource$Bidders$Accounts$Creatives$Delete,
- options: MethodOptions|BodyResponseCallback,
- callback: BodyResponseCallback): void;
- delete(
- params: Params$Resource$Bidders$Accounts$Creatives$Delete,
- callback: BodyResponseCallback): void;
- delete(callback: BodyResponseCallback): void;
- delete(
- paramsOrCallback?: Params$Resource$Bidders$Accounts$Creatives$Delete|
- BodyResponseCallback,
- optionsOrCallback?: MethodOptions|BodyResponseCallback,
- callback?: BodyResponseCallback):
- void|GaxiosPromise {
- let params = (paramsOrCallback || {}) as
- Params$Resource$Bidders$Accounts$Creatives$Delete;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$Bidders$Accounts$Creatives$Delete;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl =
- options.rootUrl || 'https://adexchangebuyer.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url: (rootUrl + '/v2beta1/{+ownerName}/creatives/{creativeId}')
- .replace(/([^:]\/)\/+/g, '$1'),
- method: 'DELETE'
- },
- options),
- params,
- requiredParams: ['ownerName', 'creativeId'],
- pathParams: ['creativeId', 'ownerName'],
- context: this.context
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
- }
-
- export interface Params$Resource$Bidders$Accounts$Creatives$Delete extends
- StandardParameters {
- /**
- * Auth client or API Key for the request
- */
- auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
-
- /**
- * The ID of the creative to delete.
- */
- creativeId?: string;
- /**
- * Name of the owner (bidder or account) of the creative to be deleted. For
- * example: - For an account-level creative for the buyer account
- * representing bidder 123: `bidders/123/accounts/123` - For an
- * account-level creative for the child seat buyer account 456 whose
- * bidder is 123: `bidders/123/accounts/456`
- */
- ownerName?: string;
- }
-
-
export class Resource$Bidders$Accounts$Filtersets {
context: APIRequestContext;
bidMetrics: Resource$Bidders$Accounts$Filtersets$Bidmetrics;
diff --git a/src/apis/alertcenter/v1beta1.ts b/src/apis/alertcenter/v1beta1.ts
index 1c1e43e4cf1..aa436af107f 100644
--- a/src/apis/alertcenter/v1beta1.ts
+++ b/src/apis/alertcenter/v1beta1.ts
@@ -124,6 +124,64 @@ export namespace alertcenter_v1beta1 {
*/
loginDetails?: Schema$LoginDetails;
}
+ /**
+ * Alerts from G Suite Security Center rules service configured by admin.
+ */
+ export interface Schema$ActivityRule {
+ /**
+ * List of action names associated with the rule threshold.
+ */
+ actionNames?: string[];
+ /**
+ * Rule create timestamp.
+ */
+ createTime?: string;
+ /**
+ * Description of the rule.
+ */
+ description?: string;
+ /**
+ * Alert display name.
+ */
+ displayName?: string;
+ /**
+ * Rule name.
+ */
+ name?: string;
+ /**
+ * Query that is used to get the data from the associated source.
+ */
+ query?: string;
+ /**
+ * List of alert ids superseded by this alert. It is used to indicate that
+ * this alert is essentially extension of superseded alerts and we found the
+ * relationship after creating these alerts.
+ */
+ supersededAlerts?: string[];
+ /**
+ * Alert id superseding this alert. It is used to indicate that superseding
+ * alert is essentially extension of this alert and we found the
+ * relationship after creating both alerts.
+ */
+ supersedingAlert?: string;
+ /**
+ * Alert threshold is for example “COUNT > 5”.
+ */
+ threshold?: string;
+ /**
+ * The trigger sources for this rule. * GMAIL_EVENTS * DEVICE_EVENTS *
+ * USER_EVENTS
+ */
+ triggerSource?: string;
+ /**
+ * The timestamp of the last update to the rule.
+ */
+ updateTime?: string;
+ /**
+ * Rule window size. Possible values are 1 hour or 24 hours.
+ */
+ windowSize?: string;
+ }
/**
* An alert affecting a customer.
*/
@@ -179,6 +237,10 @@ export namespace alertcenter_v1beta1 {
* types](/admin-sdk/alertcenter/reference/alert-types).
*/
type?: string;
+ /**
+ * Output only. The time this alert was last updated.
+ */
+ updateTime?: string;
}
/**
* A customer feedback about an alert.
@@ -767,7 +829,7 @@ export namespace alertcenter_v1beta1 {
* @param {object} params Parameters for request
* @param {string=} params.customerId Optional. The unique identifier of the G Suite organization account of the customer the alerts are associated with. Inferred from the caller identity if not provided.
* @param {string=} params.filter Optional. A query string for filtering alert results. For more details, see [Query filters](/admin-sdk/alertcenter/guides/query-filters) and [Supported query filter fields](/admin-sdk/alertcenter/reference/filter-fields#alerts.list).
- * @param {string=} params.orderBy Optional. The sort order of the list results. If not specified results may be returned in arbitrary order. You can sort the results in descending order based on the creation timestamp using `order_by="create_time desc"`. Currently, only sorting by `create_time desc` is supported.
+ * @param {string=} params.orderBy Optional. The sort order of the list results. If not specified results may be returned in arbitrary order. You can sort the results in descending order based on the creation timestamp using `order_by="create_time desc"`. Currently, supported sorting are `create_time asc`, `create_time desc`, `update_time desc`
* @param {integer=} params.pageSize Optional. The requested page size. Server may return fewer items than requested. If unspecified, server picks an appropriate default.
* @param {string=} params.pageToken Optional. A token identifying a page of results the server should return. If empty, a new iteration is started. To continue an iteration, pass in the value from the previous ListAlertsResponse's next_page_token field.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -953,8 +1015,8 @@ export namespace alertcenter_v1beta1 {
* Optional. The sort order of the list results. If not specified results
* may be returned in arbitrary order. You can sort the results in
* descending order based on the creation timestamp using
- * `order_by="create_time desc"`. Currently, only sorting by `create_time
- * desc` is supported.
+ * `order_by="create_time desc"`. Currently, supported sorting are
+ * `create_time asc`, `create_time desc`, `update_time desc`
*/
orderBy?: string;
/**
diff --git a/src/apis/androiddeviceprovisioning/v1.ts b/src/apis/androiddeviceprovisioning/v1.ts
index d8501d4dfd7..153c22499f5 100644
--- a/src/apis/androiddeviceprovisioning/v1.ts
+++ b/src/apis/androiddeviceprovisioning/v1.ts
@@ -414,6 +414,16 @@ export namespace androiddeviceprovisioning_v1 {
* Output only. The type of claim made on the device.
*/
sectionType?: string;
+ /**
+ * The timestamp when the device will exit ‘vacation mode’. This value is
+ * present iff the device is in 'vacation mode'.
+ */
+ vacationModeExpireTime?: string;
+ /**
+ * The timestamp when the device was put into ‘vacation mode’. This value is
+ * present iff the device is in 'vacation mode'.
+ */
+ vacationModeStartTime?: string;
}
/**
* Encapsulates hardware and product IDs to identify a manufactured device. To
@@ -782,6 +792,15 @@ export namespace androiddeviceprovisioning_v1 {
* Required. The section type of the device's provisioning record.
*/
sectionType?: string;
+ /**
+ * The duration of the vacation unlock starting from when the request is
+ * processed. (1 day is treated as 24 hours)
+ */
+ vacationModeDays?: number;
+ /**
+ * The expiration time of the vacation unlock.
+ */
+ vacationModeExpireTime?: string;
}
/**
* Captures the processing status for each device in the operation.
@@ -873,6 +892,15 @@ export namespace androiddeviceprovisioning_v1 {
* Required. The section type of the device's provisioning record.
*/
sectionType?: string;
+ /**
+ * The duration of the vacation unlock starting from when the request is
+ * processed. (1 day is treated as 24 hours)
+ */
+ vacationModeDays?: number;
+ /**
+ * The expiration time of the vacation unlock.
+ */
+ vacationModeExpireTime?: string;
}
/**
* Request to unclaim devices asynchronously in batch.
diff --git a/src/apis/androidmanagement/v1.ts b/src/apis/androidmanagement/v1.ts
index 124d896662f..19415df73a5 100644
--- a/src/apis/androidmanagement/v1.ts
+++ b/src/apis/androidmanagement/v1.ts
@@ -284,6 +284,10 @@ export namespace androidmanagement_v1 {
* The package name of the app that installed this app.
*/
installerPackageName?: string;
+ /**
+ * List of keyed app states reported by the app.
+ */
+ keyedAppStates?: Schema$KeyedAppState[];
/**
* Package name of the app.
*/
@@ -315,6 +319,15 @@ export namespace androidmanagement_v1 {
*/
versionName?: string;
}
+ /**
+ * Settings controlling the behavior of application reports.
+ */
+ export interface Schema$ApplicationReportingSettings {
+ /**
+ * Whether removed apps are included in application reports.
+ */
+ includeRemovedApps?: boolean;
+ }
/**
* A rule for automatically choosing a private key and certificate to
* authenticate the device to a server.
@@ -887,6 +900,41 @@ export namespace androidmanagement_v1 {
*/
skinTemperatures?: number[];
}
+ /**
+ * Keyed app state reported by the app.
+ */
+ export interface Schema$KeyedAppState {
+ /**
+ * The creation time of the app state on the device.
+ */
+ createTime?: string;
+ /**
+ * Optionally, a machine-readable value to be read by the EMM. For example,
+ * setting values that the admin can choose to query against in the EMM
+ * console (e.g. “notify me if the battery_warning data < 10”).
+ */
+ data?: string;
+ /**
+ * The key for the app state. Acts as a point of reference for what the app
+ * is providing state for. For example, when providing managed configuration
+ * feedback, this key could be the managed configuration key.
+ */
+ key?: string;
+ /**
+ * The time the app state was most recently updated.
+ */
+ lastUpdateTime?: string;
+ /**
+ * Optionally, a free-form message string to explain the app state. If the
+ * state was triggered by a particular value (e.g. a managed configuration
+ * value), it should be included in the message.
+ */
+ message?: string;
+ /**
+ * The severity of the app state.
+ */
+ severity?: string;
+ }
/**
* An action to launch an app.
*/
@@ -1858,6 +1906,11 @@ export namespace androidmanagement_v1 {
* Settings controlling the behavior of status reports.
*/
export interface Schema$StatusReportingSettings {
+ /**
+ * Application reporting settings. Only applicable if
+ * application_reports_enabled is true.
+ */
+ applicationReportingSettings?: Schema$ApplicationReportingSettings;
/**
* Whether app reports are enabled.
*/
diff --git a/src/apis/androidpublisher/v2.ts b/src/apis/androidpublisher/v2.ts
index 7101a1c1f5d..f7f850971e2 100644
--- a/src/apis/androidpublisher/v2.ts
+++ b/src/apis/androidpublisher/v2.ts
@@ -4442,7 +4442,7 @@ 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
@@ -4507,7 +4507,7 @@ 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 {().Testers} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -4577,7 +4577,7 @@ 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 {().Testers} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -4656,8 +4656,7 @@ export namespace androidpublisher_v2 {
*/
packageName?: string;
/**
- * The track to read or modify. Acceptable values are: "alpha", "beta",
- * "production", "rollout" or "internal".
+ * The track to read or modify.
*/
track?: string;
}
@@ -4678,8 +4677,7 @@ export namespace androidpublisher_v2 {
*/
packageName?: string;
/**
- * The track to read or modify. Acceptable values are: "alpha", "beta",
- * "production", "rollout" or "internal".
+ * The track to read or modify.
*/
track?: string;
@@ -4705,8 +4703,7 @@ export namespace androidpublisher_v2 {
*/
packageName?: string;
/**
- * The track to read or modify. Acceptable values are: "alpha", "beta",
- * "production", "rollout" or "internal".
+ * The track to read or modify.
*/
track?: string;
@@ -4861,10 +4858,8 @@ export namespace androidpublisher_v2 {
/**
* androidpublisher.edits.tracks.patch
- * @desc Updates the track configuration for the specified track type. When
- * halted, the rollout track cannot be updated without adding new APKs, and
- * adding new APKs will cause it to resume. This method supports patch
- * semantics.
+ * @desc Updates the track configuration for the specified track type. This
+ * method supports patch semantics.
* @alias androidpublisher.edits.tracks.patch
* @memberOf! ()
*
@@ -4934,9 +4929,7 @@ export namespace androidpublisher_v2 {
/**
* androidpublisher.edits.tracks.update
- * @desc Updates the track configuration for the specified track type. When
- * halted, the rollout track cannot be updated without adding new APKs, and
- * adding new APKs will cause it to resume.
+ * @desc Updates the track configuration for the specified track type.
* @alias androidpublisher.edits.tracks.update
* @memberOf! ()
*
diff --git a/src/apis/androidpublisher/v3.ts b/src/apis/androidpublisher/v3.ts
index b039b106d49..eda3870d964 100644
--- a/src/apis/androidpublisher/v3.ts
+++ b/src/apis/androidpublisher/v3.ts
@@ -3865,7 +3865,7 @@ export namespace androidpublisher_v3 {
* @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
@@ -3930,7 +3930,7 @@ export namespace androidpublisher_v3 {
* @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 {().Testers} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -4000,7 +4000,7 @@ export namespace androidpublisher_v3 {
* @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 {().Testers} params.resource Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
* @param {callback} callback The callback that handles the response.
@@ -4079,8 +4079,7 @@ export namespace androidpublisher_v3 {
*/
packageName?: string;
/**
- * The track to read or modify. Acceptable values are: "alpha", "beta",
- * "production", "rollout" or "internal".
+ * The track to read or modify.
*/
track?: string;
}
@@ -4101,8 +4100,7 @@ export namespace androidpublisher_v3 {
*/
packageName?: string;
/**
- * The track to read or modify. Acceptable values are: "alpha", "beta",
- * "production", "rollout" or "internal".
+ * The track to read or modify.
*/
track?: string;
@@ -4128,8 +4126,7 @@ export namespace androidpublisher_v3 {
*/
packageName?: string;
/**
- * The track to read or modify. Acceptable values are: "alpha", "beta",
- * "production", "rollout" or "internal".
+ * The track to read or modify.
*/
track?: string;
@@ -4284,10 +4281,8 @@ export namespace androidpublisher_v3 {
/**
* androidpublisher.edits.tracks.patch
- * @desc Updates the track configuration for the specified track type. When
- * halted, the rollout track cannot be updated without adding new APKs, and
- * adding new APKs will cause it to resume. This method supports patch
- * semantics.
+ * @desc Updates the track configuration for the specified track type. This
+ * method supports patch semantics.
* @alias androidpublisher.edits.tracks.patch
* @memberOf! ()
*
@@ -4357,9 +4352,7 @@ export namespace androidpublisher_v3 {
/**
* androidpublisher.edits.tracks.update
- * @desc Updates the track configuration for the specified track type. When
- * halted, the rollout track cannot be updated without adding new APKs, and
- * adding new APKs will cause it to resume.
+ * @desc Updates the track configuration for the specified track type.
* @alias androidpublisher.edits.tracks.update
* @memberOf! ()
*
diff --git a/src/apis/appengine/v1.ts b/src/apis/appengine/v1.ts
index 64a72066d58..e4a00569bc2 100644
--- a/src/apis/appengine/v1.ts
+++ b/src/apis/appengine/v1.ts
@@ -2191,7 +2191,12 @@ export namespace appengine_v1 {
* Engine application, for example a Cloud Storage bucket or App Engine
* service account. Use this method if you receive an error message about a
* missing feature, for example, Error retrieving the App Engine service
- * account.
+ * account. If you have deleted your App Engine service account, this will
+ * not be able to recreate it. Instead, you should attempt to use the IAM
+ * undelete API if possible at
+ * https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D
+ * . If the deletion was recent, the numeric ID can be found in the Cloud
+ * Console Activity Log.
* @alias appengine.apps.repair
* @memberOf! ()
*
diff --git a/src/apis/appengine/v1beta.ts b/src/apis/appengine/v1beta.ts
index 7f4391a7159..30e9fb99726 100644
--- a/src/apis/appengine/v1beta.ts
+++ b/src/apis/appengine/v1beta.ts
@@ -2260,7 +2260,12 @@ export namespace appengine_v1beta {
* Engine application, for example a Cloud Storage bucket or App Engine
* service account. Use this method if you receive an error message about a
* missing feature, for example, Error retrieving the App Engine service
- * account.
+ * account. If you have deleted your App Engine service account, this will
+ * not be able to recreate it. Instead, you should attempt to use the IAM
+ * undelete API if possible at
+ * https://cloud.google.com/iam/reference/rest/v1/projects.serviceAccounts/undelete?apix_params=%7B"name"%3A"projects%2F-%2FserviceAccounts%2Funique_id"%2C"resource"%3A%7B%7D%7D
+ * . If the deletion was recent, the numeric ID can be found in the Cloud
+ * Console Activity Log.
* @alias appengine.apps.repair
* @memberOf! ()
*
diff --git a/src/apis/bigquery/v2.ts b/src/apis/bigquery/v2.ts
index d1ed55efb72..76d513ff83c 100644
--- a/src/apis/bigquery/v2.ts
+++ b/src/apis/bigquery/v2.ts
@@ -82,7 +82,6 @@ export namespace bigquery_v2 {
context: APIRequestContext;
datasets: Resource$Datasets;
jobs: Resource$Jobs;
- models: Resource$Models;
projects: Resource$Projects;
tabledata: Resource$Tabledata;
tables: Resource$Tables;
@@ -92,57 +91,12 @@ export namespace bigquery_v2 {
this.datasets = new Resource$Datasets(this.context);
this.jobs = new Resource$Jobs(this.context);
- this.models = new Resource$Models(this.context);
this.projects = new Resource$Projects(this.context);
this.tabledata = new Resource$Tabledata(this.context);
this.tables = new Resource$Tables(this.context);
}
}
- /**
- * Aggregate metrics for classification models. For multi-class models, the
- * metrics are either macro-averaged: metrics are calculated for each label
- * and then an unweighted average is taken of those values or micro-averaged:
- * the metric is calculated globally by counting the total number of correctly
- * predicted rows.
- */
- export interface Schema$AggregateClassificationMetrics {
- /**
- * Accuracy is the fraction of predictions given the correct label. For
- * multiclass this is a micro-averaged metric.
- */
- accuracy?: number;
- /**
- * The F1 score is an average of recall and precision. For multiclass this
- * is a macro-averaged metric.
- */
- f1Score?: number;
- /**
- * Logarithmic Loss. For multiclass this is a macro-averaged metric.
- */
- logLoss?: number;
- /**
- * Precision is the fraction of actual positive predictions that had
- * positive actual labels. For multiclass this is a macro-averaged metric
- * treating each class as a binary classifier.
- */
- precision?: number;
- /**
- * Recall is the fraction of actual positive labels that were given a
- * positive prediction. For multiclass this is a macro-averaged metric.
- */
- recall?: number;
- /**
- * Area Under a ROC Curve. For multiclass this is a macro-averaged metric.
- */
- rocAuc?: number;
- /**
- * Threshold at which the metrics are computed. For binary classification
- * models this is the positive class threshold. For multi-class
- * classfication models this is the confidence threshold.
- */
- threshold?: number;
- }
export interface Schema$BigQueryModelTraining {
/**
* [Output-only, Beta] Index of current ML training iteration. Updated
@@ -266,52 +220,6 @@ export namespace bigquery_v2 {
*/
readRowkeyAsString?: boolean;
}
- /**
- * Evaluation metrics for binary classification models.
- */
- export interface Schema$BinaryClassificationMetrics {
- /**
- * Aggregate classification metrics.
- */
- aggregateClassificationMetrics?: Schema$AggregateClassificationMetrics;
- /**
- * Binary confusion matrix at multiple thresholds.
- */
- binaryConfusionMatrixList?: Schema$BinaryConfusionMatrix[];
- }
- /**
- * Confusion matrix for binary classification models.
- */
- export interface Schema$BinaryConfusionMatrix {
- /**
- * Number of false samples predicted as false.
- */
- falseNegatives?: string;
- /**
- * Number of false samples predicted as true.
- */
- falsePositives?: string;
- /**
- * Threshold value used when computing each of the following metric.
- */
- positiveClassThreshold?: number;
- /**
- * Aggregate precision.
- */
- precision?: number;
- /**
- * Aggregate recall.
- */
- recall?: number;
- /**
- * Number of true samples predicted as false.
- */
- trueNegatives?: string;
- /**
- * Number of true samples predicted as true.
- */
- truePositives?: string;
- }
export interface Schema$BqmlIterationResult {
/**
* [Output-only, Beta] Time taken to run the training iteration in
@@ -369,35 +277,17 @@ export namespace bigquery_v2 {
* training run.
*/
trainingOptions?: {
+ earlyStop?: boolean;
l1Reg?: number;
- maxIteration?: string;
- learnRate?: number;
- minRelProgress?: number;
l2Reg?: number;
- warmStart?: boolean;
+ learnRate?: number;
learnRateStrategy?: string;
lineSearchInitLearnRate?: number;
- earlyStop?: boolean;
+ maxIteration?: string;
+ minRelProgress?: number;
+ warmStart?: boolean;
};
}
- /**
- * Information about a single cluster for clustering model.
- */
- export interface Schema$ClusterInfo {
- /**
- * Centroid id.
- */
- centroidId?: string;
- /**
- * Cluster radius, the average distance from centroid to each point assigned
- * to the cluster.
- */
- clusterRadius?: number;
- /**
- * Cluster size, the total number of points assigned to the cluster.
- */
- clusterSize?: string;
- }
export interface Schema$Clustering {
/**
* [Repeated] One or more fields on which data should be clustered. Only
@@ -408,33 +298,6 @@ export namespace bigquery_v2 {
*/
fields?: string[];
}
- /**
- * Evaluation metrics for clustering models.
- */
- export interface Schema$ClusteringMetrics {
- /**
- * Davies-Bouldin index.
- */
- daviesBouldinIndex?: number;
- /**
- * Mean of squared distances between each sample to its cluster centroid.
- */
- meanSquaredDistance?: number;
- }
- /**
- * Confusion matrix for multi-class classification models.
- */
- export interface Schema$ConfusionMatrix {
- /**
- * Confidence threshold used when computing the entries of the confusion
- * matrix.
- */
- confidenceThreshold?: number;
- /**
- * One row per actual label.
- */
- rows?: Schema$Row[];
- }
export interface Schema$CsvOptions {
/**
* [Optional] Indicates if BigQuery should accept rows that are missing
@@ -493,13 +356,13 @@ export namespace bigquery_v2 {
* access.userByEmail: [dataset creator email]; access.role: OWNER;
*/
access?: Array<{
- role?: string;
- view?: Schema$TableReference;
- groupByEmail?: string;
- userByEmail?: string;
domain?: string;
+ groupByEmail?: string;
iamMember?: string;
+ role?: string;
specialGroup?: string;
+ userByEmail?: string;
+ view?: Schema$TableReference;
}>;
/**
* [Output-only] The time when this dataset was created, in milliseconds
@@ -594,12 +457,12 @@ export namespace bigquery_v2 {
* there are no datasets in the project.
*/
datasets?: Array<{
- id?: string;
- location?: string;
+ datasetReference?: Schema$DatasetReference;
friendlyName?: string;
+ id?: string;
kind?: string;
labels?: {[key: string]: string;};
- datasetReference?: Schema$DatasetReference;
+ location?: string;
}>;
/**
* A hash value of the results page. You can use this property to determine
@@ -660,20 +523,6 @@ export namespace bigquery_v2 {
*/
kmsKeyName?: string;
}
- /**
- * A single entry in the confusion matrix.
- */
- export interface Schema$Entry {
- /**
- * Number of items being predicted as this label.
- */
- itemCount?: string;
- /**
- * The predicted label. For confidence_threshold > 0, we will also add an
- * entry indicating the number of items under the confidence threshold.
- */
- predictedLabel?: string;
- }
export interface Schema$ErrorProto {
/**
* Debugging information. This property is internal to Google and should not
@@ -693,29 +542,6 @@ export namespace bigquery_v2 {
*/
reason?: string;
}
- /**
- * Evaluation metrics of a model. These are either computed on all training
- * data or just the eval data based on whether eval data was used during
- * training.
- */
- export interface Schema$EvaluationMetrics {
- /**
- * Populated for binary classification models.
- */
- binaryClassificationMetrics?: Schema$BinaryClassificationMetrics;
- /**
- * [Beta] Populated for clustering models.
- */
- clusteringMetrics?: Schema$ClusteringMetrics;
- /**
- * Populated for multi-class classification models.
- */
- multiClassClassificationMetrics?: Schema$MultiClassClassificationMetrics;
- /**
- * Populated for regression models.
- */
- regressionMetrics?: Schema$RegressionMetrics;
- }
export interface Schema$ExplainQueryStage {
/**
* Number of parallel input segments completed.
@@ -1027,35 +853,6 @@ export namespace bigquery_v2 {
*/
skipLeadingRows?: string;
}
- /**
- * Information about a single iteration of the training run.
- */
- export interface Schema$IterationResult {
- /**
- * [Beta] Information about top clusters for clustering models.
- */
- clusterInfos?: Schema$ClusterInfo[];
- /**
- * Time taken to run the iteration in milliseconds.
- */
- durationMs?: string;
- /**
- * Loss computed on the eval data at the end of iteration.
- */
- evalLoss?: number;
- /**
- * Index of the iteration, 0 based.
- */
- index?: number;
- /**
- * Learn rate used for this iteration.
- */
- learnRate?: number;
- /**
- * Loss computed on the training data at the end of iteration.
- */
- trainingLoss?: number;
- }
export interface Schema$Job {
/**
* [Required] Describes the job configuration.
@@ -1592,14 +1389,14 @@ export namespace bigquery_v2 {
*/
jobs?: Array<{
configuration?: Schema$JobConfiguration;
- user_email?: string;
errorResult?: Schema$ErrorProto;
- kind?: string;
+ id?: string;
jobReference?: Schema$JobReference;
- status?: Schema$JobStatus;
+ kind?: string;
state?: string;
statistics?: Schema$JobStatistics;
- id?: string;
+ status?: Schema$JobStatus;
+ user_email?: string;
}>;
/**
* The resource type of the response.
@@ -1750,7 +1547,7 @@ export namespace bigquery_v2 {
/**
* [Output-only] Job resource usage breakdown by reservation.
*/
- reservationUsage?: Array<{slotMs?: string; name?: string;}>;
+ reservationUsage?: Array<{name?: string; slotMs?: string;}>;
/**
* [Output-only] The schema of the results. Present only for successful dry
* run of non-legacy SQL queries.
@@ -1875,18 +1672,6 @@ export namespace bigquery_v2 {
*/
export interface Schema$JsonObject {}
export interface Schema$JsonValue {}
- export interface Schema$ListModelsResponse {
- /**
- * Models in the requested dataset. Only the following fields are populated:
- * model_reference, model_type, creation_time, last_modified_time and
- * labels.
- */
- models?: Schema$Model[];
- /**
- * A token to request the next page of results.
- */
- nextPageToken?: string;
- }
export interface Schema$MaterializedViewDefinition {
/**
* [Output-only] [TrustedTester] The time when this materialized view was
@@ -1898,78 +1683,6 @@ export namespace bigquery_v2 {
*/
query?: string;
}
- export interface Schema$Model {
- /**
- * Output only. The time when this model was created, in millisecs since the
- * epoch.
- */
- creationTime?: string;
- /**
- * [Optional] A user-friendly description of this model. @mutable
- * bigquery.models.patch
- */
- description?: string;
- /**
- * Output only. A hash of this resource.
- */
- etag?: string;
- /**
- * [Optional] The time when this model expires, in milliseconds since the
- * epoch. If not present, the model will persist indefinitely. Expired
- * models will be deleted and their storage reclaimed. The
- * defaultTableExpirationMs property of the encapsulating dataset can be
- * used to set a default expirationTime on newly created models. @mutable
- * bigquery.models.patch
- */
- expirationTime?: string;
- /**
- * Output only. Input feature columns that were used to train this model.
- */
- featureColumns?: Schema$StandardSqlField[];
- /**
- * [Optional] A descriptive name for this model. @mutable
- * bigquery.models.patch
- */
- friendlyName?: string;
- /**
- * Output only. Label columns that were used to train this model. The output
- * of the model will have a “predicted_” prefix to these columns.
- */
- labelColumns?: Schema$StandardSqlField[];
- /**
- * [Optional] The labels associated with this model. You can use these to
- * organize and group your models. Label keys and values can be no longer
- * than 63 characters, can only contain lowercase letters, numeric
- * characters, underscores and dashes. International characters are allowed.
- * Label values are optional. Label keys must start with a letter and each
- * label in the list must have a different key. @mutable
- * bigquery.models.patch
- */
- labels?: {[key: string]: string;};
- /**
- * Output only. The time when this model was last modified, in millisecs
- * since the epoch.
- */
- lastModifiedTime?: string;
- /**
- * Output only. The geographic location where the model resides. This value
- * is inherited from the dataset.
- */
- location?: string;
- /**
- * Required. Unique identifier for this model.
- */
- modelReference?: Schema$ModelReference;
- /**
- * Output only. Type of the model resource.
- */
- modelType?: string;
- /**
- * Output only. Information for all training runs in increasing order of
- * start_time.
- */
- trainingRuns?: Schema$TrainingRun[];
- }
export interface Schema$ModelDefinition {
/**
* [Output-only, Beta] Model options used for the first training run. These
@@ -1985,38 +1698,6 @@ export namespace bigquery_v2 {
*/
trainingRuns?: Schema$BqmlTrainingRun[];
}
- /**
- * Id path of a model.
- */
- export interface Schema$ModelReference {
- /**
- * [Required] The ID of the dataset containing this model.
- */
- datasetId?: string;
- /**
- * [Required] The ID of the model. The ID must contain only letters (a-z,
- * A-Z), numbers (0-9), or underscores (_). The maximum length is 1,024
- * characters.
- */
- modelId?: string;
- /**
- * [Required] The ID of the project containing this model.
- */
- projectId?: string;
- }
- /**
- * Evaluation metrics for multi-class classification models.
- */
- export interface Schema$MultiClassClassificationMetrics {
- /**
- * Aggregate classification metrics.
- */
- aggregateClassificationMetrics?: Schema$AggregateClassificationMetrics;
- /**
- * Confusion matrix at different thresholds.
- */
- confusionMatrixList?: Schema$ConfusionMatrix[];
- }
export interface Schema$ProjectList {
/**
* A hash of the page of results
@@ -2034,11 +1715,11 @@ export namespace bigquery_v2 {
* Projects to which you have at least READ access.
*/
projects?: Array<{
- id?: string;
- projectReference?: Schema$ProjectReference;
friendlyName?: string;
- numericId?: string;
+ id?: string;
kind?: string;
+ numericId?: string;
+ projectReference?: Schema$ProjectReference;
}>;
/**
* The total number of projects in the list.
@@ -2077,8 +1758,8 @@ export namespace bigquery_v2 {
* struct.
*/
structTypes?: Array<{
- name?: string;
description?: string;
+ name?: string;
type?: Schema$QueryParameterType;
}>;
/**
@@ -2275,32 +1956,7 @@ export namespace bigquery_v2 {
/**
* [TrustedTester] [Required] Defines the ranges for range partitioning.
*/
- range?: {start?: string; end?: string; interval?: string;};
- }
- /**
- * Evaluation metrics for regression models.
- */
- export interface Schema$RegressionMetrics {
- /**
- * Mean absolute error.
- */
- meanAbsoluteError?: number;
- /**
- * Mean squared error.
- */
- meanSquaredError?: number;
- /**
- * Mean squared log error.
- */
- meanSquaredLogError?: number;
- /**
- * Median absolute error.
- */
- medianAbsoluteError?: number;
- /**
- * R^2 score.
- */
- rSquared?: number;
+ range?: {end?: string; interval?: string; start?: string;};
}
export interface Schema$RoutineReference {
/**
@@ -2318,62 +1974,6 @@ export namespace bigquery_v2 {
*/
routineId?: string;
}
- /**
- * A single row in the confusion matrix.
- */
- export interface Schema$Row {
- /**
- * The original label of this row.
- */
- actualLabel?: string;
- /**
- * Info describing predicted label distribution.
- */
- entries?: Schema$Entry[];
- }
- /**
- * The type of a variable, e.g., a function argument. Examples: INT64:
- * {type_kind="INT64"} ARRAY<STRING>:
- * {type_kind="ARRAY", array_element_type="STRING"}
- * STRUCT<x STRING, y ARRAY<DATE>>: {type_kind="STRUCT",
- * struct_type={fields=[ {name="x",
- * type={type_kind="STRING"}}, {name="y",
- * type={type_kind="ARRAY", array_element_type="DATE"}}
- * ]}}
- */
- export interface Schema$StandardSqlDataType {
- /**
- * The type of the array's elements, if type_kind = "ARRAY".
- */
- arrayElementType?: Schema$StandardSqlDataType;
- /**
- * The fields of this struct, in order, if type_kind = "STRUCT".
- */
- structType?: Schema$StandardSqlStructType;
- /**
- * Required. The top level type of this field. Can be any standard SQL data
- * type (e.g., "INT64", "DATE", "ARRAY").
- */
- typeKind?: string;
- }
- /**
- * A field or a column.
- */
- export interface Schema$StandardSqlField {
- /**
- * Optional. The name of this field. Can be absent for struct fields.
- */
- name?: string;
- /**
- * Optional. The type of this parameter. Absent if not explicitly specified
- * (e.g., CREATE FUNCTION statement can omit the return type; in this case
- * the output parameter does not have this "type" field).
- */
- type?: Schema$StandardSqlDataType;
- }
- export interface Schema$StandardSqlStructType {
- fields?: Schema$StandardSqlField[];
- }
export interface Schema$Streamingbuffer {
/**
* [Output-only] A lower-bound estimate of the number of bytes currently in
@@ -2663,16 +2263,16 @@ export namespace bigquery_v2 {
* Tables in the requested dataset.
*/
tables?: Array<{
- creationTime?: string;
- labels?: {[key: string]: string;};
clustering?: Schema$Clustering;
- type?: string;
+ creationTime?: string;
expirationTime?: string;
+ friendlyName?: string;
id?: string;
+ kind?: string;
+ labels?: {[key: string]: string;};
tableReference?: Schema$TableReference;
timePartitioning?: Schema$TimePartitioning;
- friendlyName?: string;
- kind?: string;
+ type?: string;
view?: {useLegacySql?: boolean;};
}>;
/**
@@ -2731,111 +2331,6 @@ export namespace bigquery_v2 {
*/
type?: string;
}
- export interface Schema$TrainingOptions {
- /**
- * The column to split data with. This column won't be used as a
- * feature. 1. When data_split_method is CUSTOM, the corresponding column
- * should be boolean. The rows with true value tag are eval data, and the
- * false are training data. 2. When data_split_method is SEQ, the first
- * DATA_SPLIT_EVAL_FRACTION rows (from smallest to largest) in the
- * corresponding column are used as training data, and the rest are eval
- * data. It respects the order in Orderable data types:
- * https://cloud.google.com/bigquery/docs/reference/standard-sql/data-types#data-type-properties
- */
- dataSplitColumn?: string;
- /**
- * The fraction of evaluation data over the whole input data. The rest of
- * data will be used as training data. The format should be double. Accurate
- * to two decimal places. Default value is 0.2.
- */
- dataSplitEvalFraction?: number;
- /**
- * The data split type for training and evaluation, e.g. RANDOM.
- */
- dataSplitMethod?: string;
- /**
- * [Beta] Distance type for clustering models.
- */
- distanceType?: string;
- /**
- * Whether to stop early when the loss doesn't improve significantly any
- * more (compared to min_relative_progress).
- */
- earlyStop?: boolean;
- /**
- * Specifies the initial learning rate for line search to start at.
- */
- initialLearnRate?: number;
- /**
- * Name of input label columns in training data.
- */
- inputLabelColumns?: string[];
- /**
- * L1 regularization coefficient.
- */
- l1Regularization?: number;
- /**
- * L2 regularization coefficient.
- */
- l2Regularization?: number;
- /**
- * Weights associated with each label class, for rebalancing the training
- * data.
- */
- labelClassWeights?: {[key: string]: number;};
- /**
- * Learning rate in training.
- */
- learnRate?: number;
- /**
- * The strategy to determine learning rate.
- */
- learnRateStrategy?: string;
- /**
- * Type of loss function used during training run.
- */
- lossType?: string;
- /**
- * The maximum number of iterations in training.
- */
- maxIterations?: string;
- /**
- * When early_stop is true, stops training when accuracy improvement is less
- * than 'min_relative_progress'.
- */
- minRelativeProgress?: number;
- /**
- * [Beta] Number of clusters for clustering models.
- */
- numClusters?: string;
- /**
- * Whether to train a model from the last checkpoint.
- */
- warmStart?: boolean;
- }
- /**
- * Information about a single training query run for the model.
- */
- export interface Schema$TrainingRun {
- /**
- * The evaluation metrics over training/eval data that were computed at the
- * end of training.
- */
- evaluationMetrics?: Schema$EvaluationMetrics;
- /**
- * Output of each iteration run, results.size() <= max_iterations.
- */
- results?: Schema$IterationResult[];
- /**
- * The start time of this training run.
- */
- startTime?: string;
- /**
- * Options that were used for this training run, includes user specified and
- * default options that were used.
- */
- trainingOptions?: Schema$TrainingOptions;
- }
export interface Schema$UserDefinedFunctionResource {
/**
* [Pick one] An inline resource that contains code for a user-defined
@@ -4735,373 +4230,6 @@ export namespace bigquery_v2 {
}
- export class Resource$Models {
- context: APIRequestContext;
- constructor(context: APIRequestContext) {
- this.context = context;
- }
-
-
- /**
- * bigquery.models.delete
- * @desc Deletes the model specified by modelId from the dataset.
- * @alias bigquery.models.delete
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {string} params.datasetId Dataset ID of the model to delete.
- * @param {string} params.modelId Model ID of the model to delete.
- * @param {string} params.projectId Project ID of the model 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$Models$Delete, options?: MethodOptions):
- GaxiosPromise;
- delete(
- params: Params$Resource$Models$Delete,
- options: MethodOptions|BodyResponseCallback,
- callback: BodyResponseCallback): void;
- delete(
- params: Params$Resource$Models$Delete,
- callback: BodyResponseCallback): void;
- delete(callback: BodyResponseCallback): void;
- delete(
- paramsOrCallback?: Params$Resource$Models$Delete|
- BodyResponseCallback,
- optionsOrCallback?: MethodOptions|BodyResponseCallback,
- callback?: BodyResponseCallback): void|GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$Models$Delete;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$Models$Delete;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url:
- (rootUrl +
- '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}')
- .replace(/([^:]\/)\/+/g, '$1'),
- method: 'DELETE'
- },
- options),
- params,
- requiredParams: ['projectId', 'datasetId', 'modelId'],
- pathParams: ['datasetId', 'modelId', 'projectId'],
- context: this.context
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
-
-
- /**
- * bigquery.models.get
- * @desc Gets the specified model resource by model ID.
- * @alias bigquery.models.get
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {string} params.datasetId Dataset ID of the requested model.
- * @param {string} params.modelId Model ID of the requested model.
- * @param {string} params.projectId Project ID of the requested 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?: Params$Resource$Models$Get,
- options?: MethodOptions): GaxiosPromise;
- get(params: Params$Resource$Models$Get,
- options: MethodOptions|BodyResponseCallback,
- callback: BodyResponseCallback): void;
- get(params: Params$Resource$Models$Get,
- callback: BodyResponseCallback): void;
- get(callback: BodyResponseCallback): void;
- get(paramsOrCallback?: Params$Resource$Models$Get|
- BodyResponseCallback,
- optionsOrCallback?: MethodOptions|BodyResponseCallback,
- callback?: BodyResponseCallback):
- void|GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$Models$Get;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$Models$Get;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url:
- (rootUrl +
- '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}')
- .replace(/([^:]\/)\/+/g, '$1'),
- method: 'GET'
- },
- options),
- params,
- requiredParams: ['projectId', 'datasetId', 'modelId'],
- pathParams: ['datasetId', 'modelId', 'projectId'],
- context: this.context
- };
- if (callback) {
- createAPIRequest(parameters, callback);
- } else {
- return createAPIRequest(parameters);
- }
- }
-
-
- /**
- * bigquery.models.list
- * @desc Lists all models in the specified dataset. Requires the READER
- * dataset role.
- * @alias bigquery.models.list
- * @memberOf! ()
- *
- * @param {object} params Parameters for request
- * @param {string} params.datasetId Dataset ID of the models to list.
- * @param {integer=} params.maxResults The maximum number of results per page.
- * @param {string=} params.pageToken Page token, returned by a previous call to request the next page of results
- * @param {string} params.projectId Project ID of the models to list.
- * @param {object} [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$Models$List, options?: MethodOptions):
- GaxiosPromise;
- list(
- params: Params$Resource$Models$List,
- options: MethodOptions|BodyResponseCallback,
- callback: BodyResponseCallback): void;
- list(
- params: Params$Resource$Models$List,
- callback: BodyResponseCallback): void;
- list(callback: BodyResponseCallback): void;
- list(
- paramsOrCallback?: Params$Resource$Models$List|
- BodyResponseCallback,
- optionsOrCallback?: MethodOptions|
- BodyResponseCallback,
- callback?: BodyResponseCallback):
- void|GaxiosPromise {
- let params = (paramsOrCallback || {}) as Params$Resource$Models$List;
- let options = (optionsOrCallback || {}) as MethodOptions;
-
- if (typeof paramsOrCallback === 'function') {
- callback = paramsOrCallback;
- params = {} as Params$Resource$Models$List;
- options = {};
- }
-
- if (typeof optionsOrCallback === 'function') {
- callback = optionsOrCallback;
- options = {};
- }
-
- const rootUrl = options.rootUrl || 'https://www.googleapis.com/';
- const parameters = {
- options: Object.assign(
- {
- url:
- (rootUrl +
- '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models')
- .replace(/([^:]\/)\/+/g, '$1'),
- method: 'GET'
- },
- options),
- params,
- requiredParams: ['projectId', 'datasetId'],
- pathParams: ['datasetId', 'projectId'],
- context: this.context
- };
- if (callback) {
- createAPIRequest