diff --git a/src/apis/accesscontextmanager/README.md b/src/apis/accesscontextmanager/README.md
new file mode 100644
index 00000000000..b4433c5a403
--- /dev/null
+++ b/src/apis/accesscontextmanager/README.md
@@ -0,0 +1,27 @@
+
+
+# @google/accesscontextmanager
+
+> An API for setting attribute based access control to requests to GCP services.
+
+## Installation
+
+```sh
+$ npm install @google/accesscontextmanager
+```
+
+## Usage
+All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client).
+
+## License
+This library is licensed under Apache 2.0. Full license text is available in [COPYING](https://github.com/google/google-api-nodejs-client/blob/master/COPYING).
+
+## 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/google/google-api-nodejs-client/issues).
+
+
+*Crafted with ❤️ by the Google Node.js team*
diff --git a/src/apis/accesscontextmanager/index.ts b/src/apis/accesscontextmanager/index.ts
new file mode 100644
index 00000000000..e92d3b3fdd1
--- /dev/null
+++ b/src/apis/accesscontextmanager/index.ts
@@ -0,0 +1,33 @@
+// Copyright 2018, 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 {getAPI, GoogleConfigurable} from 'googleapis-common';
+import {accesscontextmanager_v1beta} from './v1beta';
+
+export const VERSIONS = {
+ 'v1beta': accesscontextmanager_v1beta.Accesscontextmanager,
+};
+
+export function accesscontextmanager(version: 'v1beta'):
+ accesscontextmanager_v1beta.Accesscontextmanager;
+export function accesscontextmanager(
+ options: accesscontextmanager_v1beta.Options):
+ accesscontextmanager_v1beta.Accesscontextmanager;
+export function
+accesscontextmanager(
+ this: GoogleConfigurable,
+ versionOrOptions: 'v1beta'|accesscontextmanager_v1beta.Options) {
+ return getAPI('accesscontextmanager', versionOrOptions, VERSIONS, this);
+}
diff --git a/src/apis/accesscontextmanager/package.json b/src/apis/accesscontextmanager/package.json
new file mode 100644
index 00000000000..46e2a1f0937
--- /dev/null
+++ b/src/apis/accesscontextmanager/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "@google/accesscontextmanager",
+ "version": "0.1.0",
+ "description": "accesscontextmanager",
+ "main": "index.js",
+ "types": "index.d.ts",
+ "keywords": ["google"],
+ "author": "Google LLC",
+ "license": "Apache-2.0",
+ "homepage": "https://github.com/google/google-api-nodejs-client",
+ "bugs": {
+ "url" : "https://github.com/google/google-api-nodejs-client/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url" : "https://github.com/google/google-api-nodejs-client.git"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ },
+ "dependencies": {
+ "googleapis-common": "^0.2.0"
+ }
+}
diff --git a/src/apis/accesscontextmanager/v1beta.ts b/src/apis/accesscontextmanager/v1beta.ts
new file mode 100644
index 00000000000..2a6aea2820e
--- /dev/null
+++ b/src/apis/accesscontextmanager/v1beta.ts
@@ -0,0 +1,1939 @@
+/**
+ * Copyright 2015 Google Inc. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {AxiosPromise} from 'axios';
+import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library';
+import {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 accesscontextmanager_v1beta {
+ export interface Options extends GlobalOptions {
+ version: 'v1beta';
+ }
+
+ /**
+ * Access Context Manager API
+ *
+ * An API for setting attribute based access control to requests to GCP
+ * services.
+ *
+ * @example
+ * const {google} = require('googleapis');
+ * const accesscontextmanager = google.accesscontextmanager('v1beta');
+ *
+ * @namespace accesscontextmanager
+ * @type {Function}
+ * @version v1beta
+ * @variation v1beta
+ * @param {object=} options Options for Accesscontextmanager
+ */
+ export class Accesscontextmanager {
+ _options: GlobalOptions;
+ google?: GoogleConfigurable;
+ root = this;
+
+ accessPolicies: Resource$Accesspolicies;
+ operations: Resource$Operations;
+
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
+ this._options = options || {};
+ this.google = google;
+ this.getRoot.bind(this);
+
+ this.accessPolicies = new Resource$Accesspolicies(this);
+ this.operations = new Resource$Operations(this);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+ }
+
+ /**
+ * An `AccessLevel` is a label that can be applied to requests to GCP
+ * services, along with a list of requirements necessary for the label to be
+ * applied. `AccessLevels` can be referenced in `AccessZones` and in the
+ * `Cloud Org Policy` API.
+ */
+ export interface Schema$AccessLevel {
+ /**
+ * A `BasicLevel` composed of `Conditions`.
+ */
+ basic?: Schema$BasicLevel;
+ /**
+ * Output only. Time the `AccessLevel` was created in UTC.
+ */
+ createTime?: string;
+ /**
+ * Description of the `AccessLevel` and its use. Does not affect behavior.
+ */
+ description?: string;
+ /**
+ * Required. Resource name for the Access Level. The `short_name` component
+ * must begin with a letter and only include alphanumeric and '_'.
+ * Format: `accessPolicies/{policy_id}/accessLevels/{short_name}`
+ */
+ name?: string;
+ /**
+ * Human readable title. Must be unique within the Policy.
+ */
+ title?: string;
+ /**
+ * Output only. Time the `AccessLevel` was updated in UTC.
+ */
+ updateTime?: string;
+ }
+ /**
+ * `AccessPolicy` is a container for `AccessLevels` (which define the
+ * necessary attributes to use GCP services) and `ServicePerimeters` (which
+ * define regions of services able to freely pass data within a perimeter). An
+ * access policy is globally visible within an organization, and the
+ * restrictions it specifies apply to all projects within an organization.
+ */
+ export interface Schema$AccessPolicy {
+ /**
+ * Output only. Time the `AccessPolicy` was created in UTC.
+ */
+ createTime?: string;
+ /**
+ * Output only. Resource name of the `AccessPolicy`. Format:
+ * `accessPolicies/{policy_id}`
+ */
+ name?: string;
+ /**
+ * Required. The parent of this `AccessPolicy` in the Cloud Resource
+ * Hierarchy. Currently immutable once created. Format:
+ * `organizations/{organization_id}`
+ */
+ parent?: string;
+ /**
+ * Human readable title. Does not affect behavior.
+ */
+ title?: string;
+ /**
+ * Output only. Time the `AccessPolicy` was updated in UTC.
+ */
+ updateTime?: string;
+ }
+ /**
+ * `BasicLevel` is an `AccessLevel` using a set of recommended features.
+ */
+ export interface Schema$BasicLevel {
+ /**
+ * How the `conditions` list should be combined to determine if a request is
+ * granted this `AccessLevel`. If AND is used, each `Condition` in
+ * `conditions` must be satisfied for the `AccessLevel` to be applied. If OR
+ * is used, at least one `Condition` in `conditions` must be satisfied for
+ * the `AccessLevel` to be applied. Default behavior is AND.
+ */
+ combiningFunction?: string;
+ /**
+ * Required. A list of requirements for the `AccessLevel` to be granted.
+ */
+ conditions?: Schema$Condition[];
+ }
+ /**
+ * A condition necessary for an `AccessLevel` to be granted. The Condition is
+ * an AND over its fields. So a Condition is true if: 1) the request IP is
+ * from one of the listed subnetworks AND 2) the originating device complies
+ * with the listed device policy AND 3) all listed access levels are granted
+ * AND 4) the request was sent at a time allowed by the DateTimeRestriction.
+ */
+ export interface Schema$Condition {
+ /**
+ * Device specific restrictions, all restrictions must hold for the
+ * Condition to be true. If not specified, all devices are allowed.
+ */
+ devicePolicy?: Schema$DevicePolicy;
+ /**
+ * CIDR block IP subnetwork specification. May be IPv4 or IPv6. Note that
+ * for a CIDR IP address block, the specified IP address portion must be
+ * properly truncated (i.e. all the host bits must be zero) or the input is
+ * considered malformed. For example, "192.0.2.0/24" is accepted
+ * but "192.0.2.1/24" is not. Similarly, for IPv6,
+ * "2001:db8::/32" is accepted whereas "2001:db8::1/32"
+ * is not. The originating IP of a request must be in one of the listed
+ * subnets in order for this Condition to be true. If empty, all IP
+ * addresses are allowed.
+ */
+ ipSubnetworks?: string[];
+ /**
+ * The signed-in user originating the request must be a part of one of the
+ * provided members. Syntax: `user:{emailid}` `group:{emailid}`
+ * `serviceAccount:{emailid}` If not specified, a request may come from any
+ * user (logged in/not logged in, not present in any groups, etc.).
+ */
+ members?: string[];
+ /**
+ * Whether to negate the Condition. If true, the Condition becomes a NAND
+ * over its non-empty fields, each field must be false for the Condition
+ * overall to be satisfied. Defaults to false.
+ */
+ negate?: boolean;
+ /**
+ * A list of other access levels defined in the same `Policy`, referenced by
+ * resource name. Referencing an `AccessLevel` which does not exist is an
+ * error. All access levels listed must be granted for the Condition to be
+ * true. Example:
+ * "`accessPolicies/MY_POLICY/accessLevels/LEVEL_NAME"`
+ */
+ requiredAccessLevels?: string[];
+ }
+ /**
+ * `DevicePolicy` specifies device specific restrictions necessary to acquire
+ * a given access level. A `DevicePolicy` specifies requirements for requests
+ * from devices to be granted access levels, it does not do any enforcement on
+ * the device. `DevicePolicy` acts as an AND over all specified fields, and
+ * each repeated field is an OR over its elements. Any unset fields are
+ * ignored. For example, if the proto is { os_type : DESKTOP_WINDOWS, os_type
+ * : DESKTOP_LINUX, encryption_status: ENCRYPTED}, then the DevicePolicy will
+ * be true for requests originating from encrypted Linux desktops and
+ * encrypted Windows desktops.
+ */
+ export interface Schema$DevicePolicy {
+ /**
+ * Allowed device management levels, an empty list allows all management
+ * levels.
+ */
+ allowedDeviceManagementLevels?: string[];
+ /**
+ * Allowed encryptions statuses, an empty list allows all statuses.
+ */
+ allowedEncryptionStatuses?: string[];
+ /**
+ * Allowed OS versions, an empty list allows all types and all versions.
+ */
+ osConstraints?: Schema$OsConstraint[];
+ /**
+ * Whether or not screenlock is required for the DevicePolicy to be true.
+ * Defaults to `false`.
+ */
+ requireScreenlock?: boolean;
+ }
+ /**
+ * A response to `ListAccessLevelsRequest`.
+ */
+ export interface Schema$ListAccessLevelsResponse {
+ /**
+ * List of the Access Level instances.
+ */
+ accessLevels?: Schema$AccessLevel[];
+ /**
+ * The pagination token to retrieve the next page of results. If the value
+ * is empty, no further results remain.
+ */
+ nextPageToken?: string;
+ }
+ /**
+ * A response to `ListAccessPoliciesRequest`.
+ */
+ export interface Schema$ListAccessPoliciesResponse {
+ /**
+ * List of the AccessPolicy instances.
+ */
+ accessPolicies?: Schema$AccessPolicy[];
+ /**
+ * The pagination token to retrieve the next page of results. If the value
+ * is empty, no further results remain.
+ */
+ nextPageToken?: string;
+ }
+ /**
+ * A response to `ListServicePerimetersRequest`.
+ */
+ export interface Schema$ListServicePerimetersResponse {
+ /**
+ * The pagination token to retrieve the next page of results. If the value
+ * is empty, no further results remain.
+ */
+ nextPageToken?: string;
+ /**
+ * List of the Service Perimeter instances.
+ */
+ servicePerimeters?: Schema$ServicePerimeter[];
+ }
+ /**
+ * This resource represents a long-running operation that is the result of a
+ * network API call.
+ */
+ export interface Schema$Operation {
+ /**
+ * If the value is `false`, it means the operation is still in progress. If
+ * `true`, the operation is completed, and either `error` or `response` is
+ * available.
+ */
+ done?: boolean;
+ /**
+ * The error result of the operation in case of failure or cancellation.
+ */
+ error?: Schema$Status;
+ /**
+ * Service-specific metadata associated with the operation. It typically
+ * contains progress information and common metadata such as create time.
+ * Some services might not provide such metadata. Any method that returns a
+ * long-running operation should document the metadata type, if any.
+ */
+ metadata?: any;
+ /**
+ * The server-assigned name, which is only unique within the same service
+ * that originally returns it. If you use the default HTTP mapping, the
+ * `name` should have the format of `operations/some/unique/name`.
+ */
+ name?: string;
+ /**
+ * The normal response of the operation in case of success. If the original
+ * method returns no data on success, such as `Delete`, the response is
+ * `google.protobuf.Empty`. If the original method is standard
+ * `Get`/`Create`/`Update`, the response should be the resource. For other
+ * methods, the response should have the type `XxxResponse`, where `Xxx` is
+ * the original method name. For example, if the original method name is
+ * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
+ */
+ response?: any;
+ }
+ /**
+ * A restriction on the OS type and version of devices making requests.
+ */
+ export interface Schema$OsConstraint {
+ /**
+ * The minimum allowed OS version. If not set, any version of this OS
+ * satisfies the constraint. Format: `"major.minor.patch"`.
+ * Examples: `"10.5.301"`, `"9.2.1"`.
+ */
+ minimumVersion?: string;
+ /**
+ * Required. The allowed OS type.
+ */
+ osType?: string;
+ }
+ /**
+ * `ServicePerimeter` describes a set of GCP resources which can freely import
+ * and export data amongst themselves, but not export outside of the
+ * `ServicePerimeter`. If a request with a source within this
+ * `ServicePerimeter` has a target outside of the `ServicePerimeter`, the
+ * request will be blocked. Otherwise the request is allowed. There are two
+ * types of Service Perimeter - Regular and Bridge. Regular Service Perimeters
+ * cannot overlap, a single GCP project can only belong to a single regular
+ * Service Perimeter. Service Perimeter Bridges can contain only GCP projects
+ * as members, a single GCP project may belong to multiple Service Perimeter
+ * Bridges.
+ */
+ export interface Schema$ServicePerimeter {
+ /**
+ * Output only. Time the `ServicePerimeter` was created in UTC.
+ */
+ createTime?: string;
+ /**
+ * Description of the `ServicePerimeter` and its use. Does not affect
+ * behavior.
+ */
+ description?: string;
+ /**
+ * Required. Resource name for the ServicePerimeter. The `short_name`
+ * component must begin with a letter and only include alphanumeric and
+ * '_'. Format:
+ * `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
+ */
+ name?: string;
+ /**
+ * Perimeter type indicator. A single project is allowed to be a member of
+ * single regular perimeter, but multiple service perimeter bridges. A
+ * project cannot be a included in a perimeter bridge without being included
+ * in regular perimeter. For perimeter bridges, restricted/unrestricted
+ * service lists as well as access lists must be empty.
+ */
+ perimeterType?: string;
+ /**
+ * Current ServicePerimeter configuration. Specifies sets of resources,
+ * restricted/unrestricted services and access levels that determine
+ * perimeter content and boundaries.
+ */
+ status?: Schema$ServicePerimeterConfig;
+ /**
+ * Human readable title. Must be unique within the Policy.
+ */
+ title?: string;
+ /**
+ * Output only. Time the `ServicePerimeter` was updated in UTC.
+ */
+ updateTime?: string;
+ }
+ /**
+ * `ServicePerimeterConfig` specifies a set of GCP resources that describe
+ * specific Service Perimeter configuration.
+ */
+ export interface Schema$ServicePerimeterConfig {
+ /**
+ * A list of `AccessLevel` resource names that allow resources within the
+ * `ServicePerimeter` to be accessed from the internet. `AccessLevels`
+ * listed must be in the same policy as this `ServicePerimeter`. Referencing
+ * a nonexistent `AccessLevel` is a syntax error. If no `AccessLevel` names
+ * are listed, resources within the perimeter can only be accessed via GCP
+ * calls with request origins within the perimeter. Example:
+ * `"accessPolicies/MY_POLICY/accessLevels/MY_LEVEL"`. For Service
+ * Perimeter Bridge, must be empty.
+ */
+ accessLevels?: string[];
+ /**
+ * A list of GCP resources that are inside of the service perimeter.
+ * Currently only projects are allowed. Format: `projects/{project_number}`
+ */
+ resources?: string[];
+ /**
+ * GCP services that are subject to the Service Perimeter restrictions. May
+ * contain a list of services or a single wildcard "*". For
+ * example, if `storage.googleapis.com` is specified, access to the storage
+ * buckets inside the perimeter must meet the perimeter's access
+ * restrictions. Wildcard means that unless explicitly specified by
+ * "unrestricted_services" list, any service is treated as
+ * restricted. One of the fields "restricted_services",
+ * "unrestricted_services" must contain a wildcard "*",
+ * otherwise the Service Perimeter specification is invalid. It also means
+ * that both field being empty is invalid as well.
+ * "restricted_services" can be empty if and only if
+ * "unrestricted_services" list contains a "*" wildcard.
+ */
+ restrictedServices?: string[];
+ /**
+ * GCP services that are not subject to the Service Perimeter restrictions.
+ * May contain a list of services or a single wildcard "*". For
+ * example, if `logging.googleapis.com` is unrestricted, users can access
+ * logs inside the perimeter as if the perimeter doesn't exist, and it
+ * also means VMs inside the perimeter can access logs outside the
+ * perimeter. The wildcard means that unless explicitly specified by
+ * "restricted_services" list, any service is treated as
+ * unrestricted. One of the fields "restricted_services",
+ * "unrestricted_services" must contain a wildcard "*",
+ * otherwise the Service Perimeter specification is invalid. It also means
+ * that both field being empty is invalid as well.
+ * "unrestricted_services" can be empty if and only if
+ * "restricted_services" list contains a "*" wildcard.
+ */
+ unrestrictedServices?: string[];
+ }
+ /**
+ * The `Status` type defines a logical error model that is suitable for
+ * different programming environments, including REST APIs and RPC APIs. It is
+ * used by [gRPC](https://github.com/grpc). The error model is designed to be:
+ * - Simple to use and understand for most users - Flexible enough to meet
+ * unexpected needs # Overview The `Status` message contains three pieces of
+ * data: error code, error message, and error details. The error code should
+ * be an enum value of google.rpc.Code, but it may accept additional error
+ * codes if needed. The error message should be a developer-facing English
+ * message that helps developers *understand* and *resolve* the error. If a
+ * localized user-facing error message is needed, put the localized message in
+ * the error details or localize it in the client. The optional error details
+ * may contain arbitrary information about the error. There is a predefined
+ * set of error detail types in the package `google.rpc` that can be used for
+ * common error conditions. # Language mapping The `Status` message is the
+ * logical representation of the error model, but it is not necessarily the
+ * actual wire format. When the `Status` message is exposed in different
+ * client libraries and different wire protocols, it can be mapped
+ * differently. For example, it will likely be mapped to some exceptions in
+ * Java, but more likely mapped to some error codes in C. # Other uses The
+ * error model and the `Status` message can be used in a variety of
+ * environments, either with or without APIs, to provide a consistent
+ * developer experience across different environments. Example uses of this
+ * error model include: - Partial errors. If a service needs to return
+ * partial errors to the client, it may embed the `Status` in the normal
+ * response to indicate the partial errors. - Workflow errors. A typical
+ * workflow has multiple steps. Each step may have a `Status` message for
+ * error reporting. - Batch operations. If a client uses batch request and
+ * batch response, the `Status` message should be used directly inside
+ * batch response, one for each error sub-response. - Asynchronous
+ * operations. If an API call embeds asynchronous operation results in its
+ * response, the status of those operations should be represented directly
+ * using the `Status` message. - Logging. If some API errors are stored in
+ * logs, the message `Status` could be used directly after any stripping
+ * needed for security/privacy reasons.
+ */
+ export interface Schema$Status {
+ /**
+ * The status code, which should be an enum value of google.rpc.Code.
+ */
+ code?: number;
+ /**
+ * A list of messages that carry the error details. There is a common set
+ * of message types for APIs to use.
+ */
+ details?: any[];
+ /**
+ * A developer-facing error message, which should be in English. Any
+ * user-facing error message should be localized and sent in the
+ * google.rpc.Status.details field, or localized by the client.
+ */
+ message?: string;
+ }
+
+
+ export class Resource$Accesspolicies {
+ root: Accesscontextmanager;
+ accessLevels: Resource$Accesspolicies$Accesslevels;
+ servicePerimeters: Resource$Accesspolicies$Serviceperimeters;
+ constructor(root: Accesscontextmanager) {
+ this.root = root;
+ this.getRoot.bind(this);
+ this.accessLevels = new Resource$Accesspolicies$Accesslevels(root);
+ this.servicePerimeters =
+ new Resource$Accesspolicies$Serviceperimeters(root);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.create
+ * @desc Create an `AccessPolicy`. Fails if this organization already has a
+ * `AccessPolicy`. The longrunning Operation will have a successful status
+ * once the `AccessPolicy` has propagated to long-lasting storage. Syntactic
+ * and basic semantic errors will be returned in `metadata` as a BadRequest
+ * proto.
+ * @alias accesscontextmanager.accessPolicies.create
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {().AccessPolicy} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ create(
+ params?: Params$Resource$Accesspolicies$Create,
+ options?: MethodOptions): AxiosPromise;
+ create(
+ params: Params$Resource$Accesspolicies$Create,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ create(
+ params: Params$Resource$Accesspolicies$Create,
+ callback: BodyResponseCallback): void;
+ create(callback: BodyResponseCallback): void;
+ create(
+ paramsOrCallback?: Params$Resource$Accesspolicies$Create|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params =
+ (paramsOrCallback || {}) as Params$Resource$Accesspolicies$Create;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Create;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/accessPolicies')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: [],
+ pathParams: [],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.delete
+ * @desc Delete an AccessPolicy by resource name. The longrunning Operation
+ * will have a successful status once the AccessPolicy has been removed from
+ * long-lasting storage.
+ * @alias accesscontextmanager.accessPolicies.delete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Required. Resource name for the access policy to delete. Format `accessPolicies/{policy_id}`
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ delete(
+ params?: Params$Resource$Accesspolicies$Delete,
+ options?: MethodOptions): AxiosPromise;
+ delete(
+ params: Params$Resource$Accesspolicies$Delete,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ delete(
+ params: Params$Resource$Accesspolicies$Delete,
+ callback: BodyResponseCallback): void;
+ delete(callback: BodyResponseCallback): void;
+ delete(
+ paramsOrCallback?: Params$Resource$Accesspolicies$Delete|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params =
+ (paramsOrCallback || {}) as Params$Resource$Accesspolicies$Delete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Delete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'DELETE'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.get
+ * @desc Get an AccessPolicy by name.
+ * @alias accesscontextmanager.accessPolicies.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Required. Resource name for the access policy to get. Format `accessPolicies/{policy_id}`
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ get(params?: Params$Resource$Accesspolicies$Get,
+ options?: MethodOptions): AxiosPromise;
+ get(params: Params$Resource$Accesspolicies$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Accesspolicies$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Accesspolicies$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params =
+ (paramsOrCallback || {}) as Params$Resource$Accesspolicies$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.list
+ * @desc List all AccessPolicies under a container.
+ * @alias accesscontextmanager.accessPolicies.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {integer=} params.pageSize Number of AccessPolicy instances to include in the list. Default 100.
+ * @param {string=} params.pageToken Next page token for the next batch of AccessPolicy instances. Defaults to the first page of results.
+ * @param {string=} params.parent Required. Resource name for the container to list AccessPolicy instances from. Format: `organizations/{org_id}`
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ list(params?: Params$Resource$Accesspolicies$List, options?: MethodOptions):
+ AxiosPromise;
+ list(
+ params: Params$Resource$Accesspolicies$List,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback):
+ void;
+ list(
+ params: Params$Resource$Accesspolicies$List,
+ callback: BodyResponseCallback):
+ void;
+ list(callback: BodyResponseCallback):
+ void;
+ list(
+ paramsOrCallback?: Params$Resource$Accesspolicies$List|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params =
+ (paramsOrCallback || {}) as Params$Resource$Accesspolicies$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/accessPolicies')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: [],
+ pathParams: [],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.patch
+ * @desc Update an AccessPolicy. The longrunning Operation from this RPC
+ * will have a successful status once the changes to the AccessPolicy have
+ * propagated to long-lasting storage. Syntactic and basic semantic errors
+ * will be returned in `metadata` as a BadRequest proto.
+ * @alias accesscontextmanager.accessPolicies.patch
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`
+ * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
+ * @param {().AccessPolicy} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ patch(
+ params?: Params$Resource$Accesspolicies$Patch,
+ options?: MethodOptions): AxiosPromise;
+ patch(
+ params: Params$Resource$Accesspolicies$Patch,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ patch(
+ params: Params$Resource$Accesspolicies$Patch,
+ callback: BodyResponseCallback): void;
+ patch(callback: BodyResponseCallback): void;
+ patch(
+ paramsOrCallback?: Params$Resource$Accesspolicies$Patch|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params =
+ (paramsOrCallback || {}) as Params$Resource$Accesspolicies$Patch;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Patch;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'PATCH'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Accesspolicies$Create {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$AccessPolicy;
+ }
+ export interface Params$Resource$Accesspolicies$Delete {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the access policy to delete. Format
+ * `accessPolicies/{policy_id}`
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Get {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the access policy to get. Format
+ * `accessPolicies/{policy_id}`
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Accesspolicies$List {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Number of AccessPolicy instances to include in the list. Default 100.
+ */
+ pageSize?: number;
+ /**
+ * Next page token for the next batch of AccessPolicy instances. Defaults to
+ * the first page of results.
+ */
+ pageToken?: string;
+ /**
+ * Required. Resource name for the container to list AccessPolicy instances
+ * from. Format: `organizations/{org_id}`
+ */
+ parent?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Patch {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Output only. Resource name of the `AccessPolicy`. Format:
+ * `accessPolicies/{policy_id}`
+ */
+ name?: string;
+ /**
+ * Required. Mask to control which fields get updated. Must be non-empty.
+ */
+ updateMask?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$AccessPolicy;
+ }
+
+ export class Resource$Accesspolicies$Accesslevels {
+ root: Accesscontextmanager;
+ constructor(root: Accesscontextmanager) {
+ this.root = root;
+ this.getRoot.bind(this);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.accessLevels.create
+ * @desc Create an Access Level. The longrunning operation from this RPC
+ * will have a successful status once the Access Level has propagated to
+ * long-lasting storage. Access Levels containing errors will result in an
+ * error response for the first error encountered.
+ * @alias accesscontextmanager.accessPolicies.accessLevels.create
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.parent Required. Resource name for the access policy which owns this Access Level. Format: `accessPolicies/{policy_id}`
+ * @param {().AccessLevel} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ create(
+ params?: Params$Resource$Accesspolicies$Accesslevels$Create,
+ options?: MethodOptions): AxiosPromise;
+ create(
+ params: Params$Resource$Accesspolicies$Accesslevels$Create,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ create(
+ params: Params$Resource$Accesspolicies$Accesslevels$Create,
+ callback: BodyResponseCallback): void;
+ create(callback: BodyResponseCallback): void;
+ create(
+ paramsOrCallback?: Params$Resource$Accesspolicies$Accesslevels$Create|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Accesslevels$Create;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Accesslevels$Create;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+parent}/accessLevels')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.accessLevels.delete
+ * @desc Delete an Access Level by resource name. The longrunning operation
+ * from this RPC will have a successful status once the Access Level has
+ * been removed from long-lasting storage.
+ * @alias accesscontextmanager.accessPolicies.accessLevels.delete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}`
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ delete(
+ params?: Params$Resource$Accesspolicies$Accesslevels$Delete,
+ options?: MethodOptions): AxiosPromise;
+ delete(
+ params: Params$Resource$Accesspolicies$Accesslevels$Delete,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ delete(
+ params: Params$Resource$Accesspolicies$Accesslevels$Delete,
+ callback: BodyResponseCallback): void;
+ delete(callback: BodyResponseCallback): void;
+ delete(
+ paramsOrCallback?: Params$Resource$Accesspolicies$Accesslevels$Delete|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Accesslevels$Delete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Accesslevels$Delete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'DELETE'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.accessLevels.get
+ * @desc Get an Access Level by resource name.
+ * @alias accesscontextmanager.accessPolicies.accessLevels.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.accessLevelFormat Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels are returned as `BasicLevels` or `CustomLevels` based on how they were created. If set to CEL, all Access Levels are returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`.
+ * @param {string} params.name Required. Resource name for the Access Level. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}`
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ get(params?: Params$Resource$Accesspolicies$Accesslevels$Get,
+ options?: MethodOptions): AxiosPromise;
+ get(params: Params$Resource$Accesspolicies$Accesslevels$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Accesspolicies$Accesslevels$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Accesspolicies$Accesslevels$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Accesslevels$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Accesslevels$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.accessLevels.list
+ * @desc List all Access Levels for an access policy.
+ * @alias accesscontextmanager.accessPolicies.accessLevels.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.accessLevelFormat Whether to return `BasicLevels` in the Cloud Common Expression language, as `CustomLevels`, rather than as `BasicLevels`. Defaults to returning `AccessLevels` in the format they were defined.
+ * @param {integer=} params.pageSize Number of Access Levels to include in the list. Default 100.
+ * @param {string=} params.pageToken Next page token for the next batch of Access Level instances. Defaults to the first page of results.
+ * @param {string} params.parent Required. Resource name for the access policy to list Access Levels from. Format: `accessPolicies/{policy_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$Accesspolicies$Accesslevels$List,
+ options?: MethodOptions): AxiosPromise;
+ list(
+ params: Params$Resource$Accesspolicies$Accesslevels$List,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ list(
+ params: Params$Resource$Accesspolicies$Accesslevels$List,
+ callback: BodyResponseCallback): void;
+ list(callback: BodyResponseCallback): void;
+ list(
+ paramsOrCallback?: Params$Resource$Accesspolicies$Accesslevels$List|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Accesslevels$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Accesslevels$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+parent}/accessLevels')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.accessLevels.patch
+ * @desc Update an Access Level. The longrunning operation from this RPC
+ * will have a successful status once the changes to the Access Level have
+ * propagated to long-lasting storage. Access Levels containing errors will
+ * result in an error response for the first error encountered.
+ * @alias accesscontextmanager.accessPolicies.accessLevels.patch
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/accessLevels/{short_name}`
+ * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
+ * @param {().AccessLevel} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ patch(
+ params?: Params$Resource$Accesspolicies$Accesslevels$Patch,
+ options?: MethodOptions): AxiosPromise;
+ patch(
+ params: Params$Resource$Accesspolicies$Accesslevels$Patch,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ patch(
+ params: Params$Resource$Accesspolicies$Accesslevels$Patch,
+ callback: BodyResponseCallback): void;
+ patch(callback: BodyResponseCallback): void;
+ patch(
+ paramsOrCallback?: Params$Resource$Accesspolicies$Accesslevels$Patch|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Accesslevels$Patch;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Accesslevels$Patch;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'PATCH'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Accesspolicies$Accesslevels$Create {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the access policy which owns this Access
+ * Level. Format: `accessPolicies/{policy_id}`
+ */
+ parent?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$AccessLevel;
+ }
+ export interface Params$Resource$Accesspolicies$Accesslevels$Delete {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the Access Level. Format:
+ * `accessPolicies/{policy_id}/accessLevels/{access_level_id}`
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Accesslevels$Get {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Whether to return `BasicLevels` in the Cloud Common Expression Language
+ * rather than as `BasicLevels`. Defaults to AS_DEFINED, where Access Levels
+ * are returned as `BasicLevels` or `CustomLevels` based on how they were
+ * created. If set to CEL, all Access Levels are returned as `CustomLevels`.
+ * In the CEL case, `BasicLevels` are translated to equivalent
+ * `CustomLevels`.
+ */
+ accessLevelFormat?: string;
+ /**
+ * Required. Resource name for the Access Level. Format:
+ * `accessPolicies/{policy_id}/accessLevels/{access_level_id}`
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Accesslevels$List {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Whether to return `BasicLevels` in the Cloud Common Expression language,
+ * as `CustomLevels`, rather than as `BasicLevels`. Defaults to returning
+ * `AccessLevels` in the format they were defined.
+ */
+ accessLevelFormat?: string;
+ /**
+ * Number of Access Levels to include in the list. Default 100.
+ */
+ pageSize?: number;
+ /**
+ * Next page token for the next batch of Access Level instances. Defaults to
+ * the first page of results.
+ */
+ pageToken?: string;
+ /**
+ * Required. Resource name for the access policy to list Access Levels from.
+ * Format: `accessPolicies/{policy_id}`
+ */
+ parent?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Accesslevels$Patch {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the Access Level. The `short_name` component
+ * must begin with a letter and only include alphanumeric and '_'. Format:
+ * `accessPolicies/{policy_id}/accessLevels/{short_name}`
+ */
+ name?: string;
+ /**
+ * Required. Mask to control which fields get updated. Must be non-empty.
+ */
+ updateMask?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$AccessLevel;
+ }
+
+
+ export class Resource$Accesspolicies$Serviceperimeters {
+ root: Accesscontextmanager;
+ constructor(root: Accesscontextmanager) {
+ this.root = root;
+ this.getRoot.bind(this);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.servicePerimeters.create
+ * @desc Create an Service Perimeter. The longrunning operation from this
+ * RPC will have a successful status once the Service Perimeter has
+ * propagated to long-lasting storage. Service Perimeters containing errors
+ * will result in an error response for the first error encountered.
+ * @alias accesscontextmanager.accessPolicies.servicePerimeters.create
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.parent Required. Resource name for the access policy which owns this Service Perimeter. Format: `accessPolicies/{policy_id}`
+ * @param {().ServicePerimeter} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ create(
+ params?: Params$Resource$Accesspolicies$Serviceperimeters$Create,
+ options?: MethodOptions): AxiosPromise;
+ create(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$Create,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ create(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$Create,
+ callback: BodyResponseCallback): void;
+ create(callback: BodyResponseCallback): void;
+ create(
+ paramsOrCallback?:
+ Params$Resource$Accesspolicies$Serviceperimeters$Create|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Serviceperimeters$Create;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Serviceperimeters$Create;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+parent}/servicePerimeters')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.servicePerimeters.delete
+ * @desc Delete an Service Perimeter by resource name. The longrunning
+ * operation from this RPC will have a successful status once the Service
+ * Perimeter has been removed from long-lasting storage.
+ * @alias accesscontextmanager.accessPolicies.servicePerimeters.delete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}`
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ delete(
+ params?: Params$Resource$Accesspolicies$Serviceperimeters$Delete,
+ options?: MethodOptions): AxiosPromise;
+ delete(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$Delete,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ delete(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$Delete,
+ callback: BodyResponseCallback): void;
+ delete(callback: BodyResponseCallback): void;
+ delete(
+ paramsOrCallback?:
+ Params$Resource$Accesspolicies$Serviceperimeters$Delete|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Serviceperimeters$Delete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Serviceperimeters$Delete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'DELETE'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.servicePerimeters.get
+ * @desc Get an Service Perimeter by resource name.
+ * @alias accesscontextmanager.accessPolicies.servicePerimeters.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Required. Resource name for the Service Perimeter. Format: `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}`
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ get(params?: Params$Resource$Accesspolicies$Serviceperimeters$Get,
+ options?: MethodOptions): AxiosPromise;
+ get(params: Params$Resource$Accesspolicies$Serviceperimeters$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Accesspolicies$Serviceperimeters$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Accesspolicies$Serviceperimeters$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Serviceperimeters$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Serviceperimeters$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.servicePerimeters.list
+ * @desc List all Service Perimeters for an access policy.
+ * @alias accesscontextmanager.accessPolicies.servicePerimeters.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {integer=} params.pageSize Number of Service Perimeters to include in the list. Default 100.
+ * @param {string=} params.pageToken Next page token for the next batch of Service Perimeter instances. Defaults to the first page of results.
+ * @param {string} params.parent Required. Resource name for the access policy to list Service Perimeters from. Format: `accessPolicies/{policy_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$Accesspolicies$Serviceperimeters$List,
+ options?: MethodOptions):
+ AxiosPromise;
+ list(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$List,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback):
+ void;
+ list(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$List,
+ callback: BodyResponseCallback):
+ void;
+ list(callback: BodyResponseCallback):
+ void;
+ list(
+ paramsOrCallback?:
+ Params$Resource$Accesspolicies$Serviceperimeters$List|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Serviceperimeters$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Serviceperimeters$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+parent}/servicePerimeters')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['parent'],
+ pathParams: ['parent'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(
+ parameters, callback);
+ } else {
+ return createAPIRequest(
+ parameters);
+ }
+ }
+
+
+ /**
+ * accesscontextmanager.accessPolicies.servicePerimeters.patch
+ * @desc Update an Service Perimeter. The longrunning operation from this
+ * RPC will have a successful status once the changes to the Service
+ * Perimeter have propagated to long-lasting storage. Service Perimeter
+ * containing errors will result in an error response for the first error
+ * encountered.
+ * @alias accesscontextmanager.accessPolicies.servicePerimeters.patch
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
+ * @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
+ * @param {().ServicePerimeter} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ patch(
+ params?: Params$Resource$Accesspolicies$Serviceperimeters$Patch,
+ options?: MethodOptions): AxiosPromise;
+ patch(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$Patch,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ patch(
+ params: Params$Resource$Accesspolicies$Serviceperimeters$Patch,
+ callback: BodyResponseCallback): void;
+ patch(callback: BodyResponseCallback): void;
+ patch(
+ paramsOrCallback?:
+ Params$Resource$Accesspolicies$Serviceperimeters$Patch|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as
+ Params$Resource$Accesspolicies$Serviceperimeters$Patch;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Accesspolicies$Serviceperimeters$Patch;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'PATCH'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Accesspolicies$Serviceperimeters$Create {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the access policy which owns this Service
+ * Perimeter. Format: `accessPolicies/{policy_id}`
+ */
+ parent?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$ServicePerimeter;
+ }
+ export interface Params$Resource$Accesspolicies$Serviceperimeters$Delete {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the Service Perimeter. Format:
+ * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeter_id}`
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Serviceperimeters$Get {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the Service Perimeter. Format:
+ * `accessPolicies/{policy_id}/servicePerimeters/{service_perimeters_id}`
+ */
+ name?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Serviceperimeters$List {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Number of Service Perimeters to include in the list. Default 100.
+ */
+ pageSize?: number;
+ /**
+ * Next page token for the next batch of Service Perimeter instances.
+ * Defaults to the first page of results.
+ */
+ pageToken?: string;
+ /**
+ * Required. Resource name for the access policy to list Service Perimeters
+ * from. Format: `accessPolicies/{policy_id}`
+ */
+ parent?: string;
+ }
+ export interface Params$Resource$Accesspolicies$Serviceperimeters$Patch {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. Resource name for the ServicePerimeter. The `short_name`
+ * component must begin with a letter and only include alphanumeric and '_'.
+ * Format: `accessPolicies/{policy_id}/servicePerimeters/{short_name}`
+ */
+ name?: string;
+ /**
+ * Required. Mask to control which fields get updated. Must be non-empty.
+ */
+ updateMask?: string;
+
+ /**
+ * Request body metadata
+ */
+ requestBody?: Schema$ServicePerimeter;
+ }
+
+
+
+ export class Resource$Operations {
+ root: Accesscontextmanager;
+ constructor(root: Accesscontextmanager) {
+ this.root = root;
+ this.getRoot.bind(this);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+
+
+ /**
+ * accesscontextmanager.operations.get
+ * @desc Gets the latest state of a long-running operation. Clients can use
+ * this method to poll the operation result at intervals as recommended by
+ * the API service.
+ * @alias accesscontextmanager.operations.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.name The name of the operation resource.
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ get(params?: Params$Resource$Operations$Get,
+ options?: MethodOptions): AxiosPromise;
+ get(params: Params$Resource$Operations$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Operations$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Operations$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as Params$Resource$Operations$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Operations$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl =
+ options.rootUrl || 'https://accesscontextmanager.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['name'],
+ pathParams: ['name'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Operations$Get {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * The name of the operation resource.
+ */
+ name?: string;
+ }
+}
diff --git a/src/apis/adexchangebuyer2/v2beta1.ts b/src/apis/adexchangebuyer2/v2beta1.ts
index eb382c95525..d73281a4c7b 100644
--- a/src/apis/adexchangebuyer2/v2beta1.ts
+++ b/src/apis/adexchangebuyer2/v2beta1.ts
@@ -32,9 +32,9 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* Ad Exchange Buyer API II
*
- * Accesses the latest features for managing Ad Exchange accounts, Real-Time
- * Bidding configurations and auction metrics, and Marketplace programmatic
- * deals.
+ * Accesses the latest features for managing Authorized Buyers accounts,
+ * Real-Time Bidding configurations and auction metrics, and Marketplace
+ * programmatic deals.
*
* @example
* const {google} = require('googleapis');
@@ -210,12 +210,12 @@ export namespace adexchangebuyer2_v2beta1 {
status?: string;
}
/**
- * Represents a buyer of inventory. Each buyer is identified by a unique Ad
- * Exchange account ID.
+ * Represents a buyer of inventory. Each buyer is identified by a unique
+ * Authorized Buyers account ID.
*/
export interface Schema$Buyer {
/**
- * Ad Exchange account ID of the buyer.
+ * Authorized Buyers account ID of the buyer.
*/
accountId?: string;
}
@@ -227,7 +227,7 @@ export namespace adexchangebuyer2_v2beta1 {
export interface Schema$CalloutStatusRow {
/**
* The ID of the callout status. See
- * [callout-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/callout-status-codes).
+ * [callout-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/callout-status-codes).
*/
calloutStatusId?: number;
/**
@@ -247,10 +247,9 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* A client resource represents a client buyer—an agency, a brand,
* or an advertiser customer of the sponsor buyer. Users associated with the
- * client buyer have restricted access to the Ad Exchange Marketplace and
- * certain other sections of the Ad Exchange Buyer UI based on the role
- * granted to the client buyer. All fields are required unless otherwise
- * specified.
+ * client buyer have restricted access to the Marketplace and certain other
+ * sections of the Authorized Buyers UI based on the role granted to the
+ * client buyer. All fields are required unless otherwise specified.
*/
export interface Schema$Client {
/**
@@ -317,11 +316,11 @@ export namespace adexchangebuyer2_v2beta1 {
}
/**
* A client user is created under a client buyer and has restricted access to
- * the Ad Exchange Marketplace and certain other sections of the Ad Exchange
- * Buyer UI based on the role granted to the associated client buyer. The
- * only way a new client user can be created is via accepting an email
- * invitation (see the accounts.clients.invitations.create method). All
- * fields are required unless otherwise specified.
+ * the Marketplace and certain other sections of the Authorized Buyers UI
+ * based on the role granted to the associated client buyer. The only way a
+ * new client user can be created is via accepting an email invitation (see
+ * the accounts.clients.invitations.create method). All fields are required
+ * unless otherwise specified.
*/
export interface Schema$ClientUser {
/**
@@ -346,7 +345,7 @@ export namespace adexchangebuyer2_v2beta1 {
userId?: string;
}
/**
- * An invitation for a new client user to get access to the Ad Exchange Buyer
+ * An invitation for a new client user to get access to the Authorized Buyers
* UI. All fields are required unless otherwise specified.
*/
export interface Schema$ClientUserInvitation {
@@ -555,8 +554,8 @@ export namespace adexchangebuyer2_v2beta1 {
}
/**
* Represents creative restrictions associated to Programmatic Guaranteed/
- * Preferred Deal in DFP. This doesn't apply to Private Auction and AdX
- * Preferred Deals.
+ * Preferred Deal in Ad Manager. This doesn't apply to Private Auction and
+ * AdX Preferred Deals.
*/
export interface Schema$CreativeRestrictions {
/**
@@ -575,7 +574,7 @@ export namespace adexchangebuyer2_v2beta1 {
export interface Schema$CreativeSize {
/**
* What formats are allowed by the publisher. If this repeated field is
- * empty then all formats are allowed. E.g., if this field contains
+ * empty then all formats are allowed. For example, if this field contains
* AllowedFormatType.AUDIO then the publisher only allows an audio ad
* (without any video).
*/
@@ -607,7 +606,7 @@ export namespace adexchangebuyer2_v2beta1 {
}
/**
* Represents information for a creative that is associated with a
- * Programmatic Guaranteed/Preferred Deal in DFP.
+ * Programmatic Guaranteed/Preferred Deal in Ad Manager.
*/
export interface Schema$CreativeSpecification {
/**
@@ -631,7 +630,7 @@ export namespace adexchangebuyer2_v2beta1 {
bidCount?: Schema$MetricValue;
/**
* The ID of the creative status. See
- * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).
+ * [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
*/
creativeStatusId?: number;
/**
@@ -763,9 +762,9 @@ export namespace adexchangebuyer2_v2beta1 {
*/
creativePreApprovalPolicy?: string;
/**
- * Restricitions about the creatives associated with the deal (i.e. size)
- * This is available for Programmatic Guaranteed/Preferred Deals in DFP.
- * @OutputOnly
+ * Restricitions about the creatives associated with the deal (i.e., size)
+ * This is available for Programmatic Guaranteed/Preferred Deals in Ad
+ * Manager. @OutputOnly
*/
creativeRestrictions?: Schema$CreativeRestrictions;
/**
@@ -1020,8 +1019,8 @@ export namespace adexchangebuyer2_v2beta1 {
* A set of filters that is applied to a request for data. Within a filter
* set, an AND operation is performed across the filters represented by each
* field. An OR operation is performed across the filters represented by the
- * multiple values of a repeated field. E.g. "format=VIDEO AND deal_id=12
- * AND (seller_network_id=34 OR seller_network_id=56)"
+ * multiple values of a repeated field, e.g., "format=VIDEO AND
+ * deal_id=12 AND (seller_network_id=34 OR seller_network_id=56)".
*/
export interface Schema$FilterSet {
/**
@@ -1032,14 +1031,14 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* The ID of the creative on which to filter; optional. This field may be
* set only for a filter set that accesses account-level troubleshooting
- * data, i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x
+ * data, i.e., one whose name matches the `bidders/x/accounts/x/filterSets/x
* pattern.
*/
creativeId?: string;
/**
* The ID of the deal on which to filter; optional. This field may be set
* only for a filter set that accesses account-level troubleshooting data,
- * i.e. one whose name matches the `bidders/x/accounts/x/filterSets/x
+ * i.e., one whose name matches the `bidders/x/accounts/x/filterSets/x
* pattern.
*/
dealId?: string;
@@ -1049,7 +1048,7 @@ export namespace adexchangebuyer2_v2beta1 {
environment?: string;
/**
* The list of formats on which to filter; may be empty. The filters
- * represented by multiple formats are ORed together (i.e. if non-empty,
+ * represented by multiple formats are ORed together (i.e., if non-empty,
* results must match any one of the formats).
*/
formats?: string[];
@@ -1063,12 +1062,12 @@ export namespace adexchangebuyer2_v2beta1 {
name?: string;
/**
* The list of platforms on which to filter; may be empty. The filters
- * represented by multiple platforms are ORed together (i.e. if non-empty,
+ * represented by multiple platforms are ORed together (i.e., if non-empty,
* results must match any one of the platforms).
*/
platforms?: string[];
/**
- * For Exchange Bidding buyers only. The list of publisher identifiers on
+ * For Open Bidding partners only. The list of publisher identifiers on
* which to filter; may be empty. The filters represented by multiple
* publisher identifiers are ORed together.
*/
@@ -1084,11 +1083,11 @@ export namespace adexchangebuyer2_v2beta1 {
*/
relativeDateRange?: Schema$RelativeDateRange;
/**
- * For Ad Exchange buyers only. The list of IDs of the seller (publisher)
+ * For Authorized Buyers only. The list of IDs of the seller (publisher)
* networks on which to filter; may be empty. The filters represented by
- * multiple seller network IDs are ORed together (i.e. if non-empty, results
- * must match any one of the publisher networks). See
- * [seller-network-ids](https://developers.google.com/ad-exchange/rtb/downloads/seller-network-ids)
+ * multiple seller network IDs are ORed together (i.e., if non-empty,
+ * results must match any one of the publisher networks). See
+ * [seller-network-ids](https://developers.google.com/authorized-buyers/rtb/downloads/seller-network-ids)
* file for the set of existing seller network IDs.
*/
sellerNetworkIds?: number[];
@@ -1233,7 +1232,7 @@ export namespace adexchangebuyer2_v2beta1 {
* Represents the size of an ad unit that can be targeted on an ad request. It
* only applies to Private Auction, AdX Preferred Deals and Auction Packages.
* This targeting does not apply to Programmatic Guaranteed and Preferred
- * Deals in DFP.
+ * Deals in Ad Manager.
*/
export interface Schema$InventorySizeTargeting {
/**
@@ -1567,11 +1566,12 @@ export namespace adexchangebuyer2_v2beta1 {
*/
inventorySizeTargeting?: Schema$InventorySizeTargeting;
/**
- * Placement targeting information, e.g. URL, mobile applications.
+ * Placement targeting information, e.g., URL, mobile applications.
*/
placementTargeting?: Schema$PlacementTargeting;
/**
- * Technology targeting information, e.g. operating system, device category.
+ * Technology targeting information, e.g., operating system, device
+ * category.
*/
technologyTargeting?: Schema$TechnologyTargeting;
/**
@@ -1784,7 +1784,7 @@ export namespace adexchangebuyer2_v2beta1 {
reason?: string;
}
/**
- * Represents targeting about where the ads can appear, e.g. certain sites or
+ * Represents targeting about where the ads can appear, e.g., certain sites or
* mobile applications. Different placement targeting types will be logically
* OR'ed.
*/
@@ -1900,7 +1900,7 @@ export namespace adexchangebuyer2_v2beta1 {
*/
productId?: string;
/**
- * The revision number of the product. (auto-assigned by marketplace)
+ * The revision number of the product (auto-assigned by Marketplace).
*/
productRevision?: string;
/**
@@ -1939,7 +1939,7 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* Note: this resource requires whitelisting for access. Please contact your
* account manager for access to Marketplace resources. Represents a proposal
- * in the marketplace. A proposal is the unit of negotiation between a seller
+ * in the Marketplace. A proposal is the unit of negotiation between a seller
* and a buyer and contains deals which are served. Note: you can not update,
* create, or otherwise modify Private Auction or Preferred Deals deals
* through the API. Fields are updatable unless noted otherwise.
@@ -2141,19 +2141,19 @@ export namespace adexchangebuyer2_v2beta1 {
}
/**
* A relative date range, specified by an offset and a duration. The supported
- * range of dates begins 30 days before today and ends today. I.e. the limits
+ * range of dates begins 30 days before today and ends today, i.e., the limits
* for these values are: offset_days >= 0 duration_days >= 1 offset_days
* + duration_days <= 30
*/
export interface Schema$RelativeDateRange {
/**
- * The number of days in the requested date range. E.g. for a range spanning
- * today, 1. For a range spanning the last 7 days, 7.
+ * The number of days in the requested date range, e.g., for a range
+ * spanning today: 1. For a range spanning the last 7 days: 7.
*/
durationDays?: number;
/**
* The end date of the filter set, specified as the number of days before
- * today. E.g. for a range where the last date is today, 0.
+ * today, e.g., for a range where the last date is today: 0.
*/
offsetDays?: number;
}
@@ -2192,7 +2192,7 @@ export namespace adexchangebuyer2_v2beta1 {
}
/**
* Represents a seller of inventory. Each seller is identified by a unique Ad
- * Exchange account ID.
+ * Manager account ID.
*/
export interface Schema$Seller {
/**
@@ -2318,7 +2318,7 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* The daypart targeting to include / exclude. Filled in when the key is
* GOOG_DAYPART_TARGETING. The definition of this targeting is derived from
- * the structure used by DFP.
+ * the structure used by Ad Manager.
*/
dayPartTargetingValue?: Schema$DayPartTargeting;
/**
@@ -2389,10 +2389,10 @@ export namespace adexchangebuyer2_v2beta1 {
seconds?: number;
}
/**
- * Represents a list of targeted and excluded URLs (e.g google.com). For
+ * Represents a list of targeted and excluded URLs (e.g., google.com). For
* Private Auction and AdX Preferred Deals, URLs are either included or
- * excluded. For DFP Programmatic Guaranteed and Preferred Deals, this
- * doesn't apply.
+ * excluded. For Programmatic Guaranteed and Preferred Deals, this doesn't
+ * apply.
*/
export interface Schema$UrlTargeting {
/**
@@ -4568,7 +4568,7 @@ export namespace adexchangebuyer2_v2beta1 {
*
* @param {object} params Parameters for request
* @param {string} params.accountId Account ID of the buyer.
- * @param {string=} params.filter An optional PQL query used to query for products. See https://developers.google.com/doubleclick-publishers/docs/pqlreference for documentation about PQL and examples. Nested repeated fields, such as product.targetingCriterion.inclusions, cannot be filtered.
+ * @param {string=} params.filter An optional PQL query used to query for products. See https://developers.google.com/ad-manager/docs/pqlreference for documentation about PQL and examples. Nested repeated fields, such as product.targetingCriterion.inclusions, cannot be filtered.
* @param {integer=} params.pageSize Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
* @param {string=} params.pageToken The page token as returned from ListProductsResponse.
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -4659,9 +4659,9 @@ export namespace adexchangebuyer2_v2beta1 {
accountId?: string;
/**
* An optional PQL query used to query for products. See
- * https://developers.google.com/doubleclick-publishers/docs/pqlreference
- * for documentation about PQL and examples. Nested repeated fields, such
- * as product.targetingCriterion.inclusions, cannot be filtered.
+ * https://developers.google.com/ad-manager/docs/pqlreference for
+ * documentation about PQL and examples. Nested repeated fields, such as
+ * product.targetingCriterion.inclusions, cannot be filtered.
*/
filter?: string;
/**
@@ -5882,7 +5882,7 @@ export namespace adexchangebuyer2_v2beta1 {
*
* @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 {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
@@ -5955,9 +5955,9 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* 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
+ * 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/`
+ * bidder is 123: `bidders/123/accounts/456`
*/
ownerName?: string;
}
@@ -7009,7 +7009,7 @@ export namespace adexchangebuyer2_v2beta1 {
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by creative. See [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).
+ * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by creative. See [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
* @param {string} params.filterSetName Name of the filter set that should be applied to the requested metrics. For example: - For a bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For an account-level filter set for the buyer account representing bidder 123: `bidders/123/accounts/123/filterSets/abc` - For an account-level filter set for the child seat buyer account 456 whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
* @param {integer=} params.pageSize Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
* @param {string=} params.pageToken A token identifying a page of results the server should return. Typically, this is the value of ListCreativeStatusBreakdownByCreativeResponse.nextPageToken returned from the previous call to the filteredBids.creatives.list method.
@@ -7098,7 +7098,7 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* The ID of the creative status for which to retrieve a breakdown by
* creative. See
- * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).
+ * [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
*/
creativeStatusId?: number;
/**
@@ -7147,7 +7147,7 @@ export namespace adexchangebuyer2_v2beta1 {
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by detail. See [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.
+ * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by detail. See [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes). Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.
* @param {string} params.filterSetName Name of the filter set that should be applied to the requested metrics. For example: - For a bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For an account-level filter set for the buyer account representing bidder 123: `bidders/123/accounts/123/filterSets/abc` - For an account-level filter set for the child seat buyer account 456 whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
* @param {integer=} params.pageSize Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
* @param {string=} params.pageToken A token identifying a page of results the server should return. Typically, this is the value of ListCreativeStatusBreakdownByDetailResponse.nextPageToken returned from the previous call to the filteredBids.details.list method.
@@ -7236,7 +7236,7 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* The ID of the creative status for which to retrieve a breakdown by
* detail. See
- * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).
+ * [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
* Details are only available for statuses 10, 14, 15, 17, 18, 19, 86,
* and 87.
*/
@@ -8666,7 +8666,7 @@ export namespace adexchangebuyer2_v2beta1 {
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by creative. See [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).
+ * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by creative. See [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
* @param {string} params.filterSetName Name of the filter set that should be applied to the requested metrics. For example: - For a bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For an account-level filter set for the buyer account representing bidder 123: `bidders/123/accounts/123/filterSets/abc` - For an account-level filter set for the child seat buyer account 456 whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
* @param {integer=} params.pageSize Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
* @param {string=} params.pageToken A token identifying a page of results the server should return. Typically, this is the value of ListCreativeStatusBreakdownByCreativeResponse.nextPageToken returned from the previous call to the filteredBids.creatives.list method.
@@ -8752,7 +8752,7 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* The ID of the creative status for which to retrieve a breakdown by
* creative. See
- * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).
+ * [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
*/
creativeStatusId?: number;
/**
@@ -8800,7 +8800,7 @@ export namespace adexchangebuyer2_v2beta1 {
* @memberOf! ()
*
* @param {object} params Parameters for request
- * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by detail. See [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes). Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.
+ * @param {integer} params.creativeStatusId The ID of the creative status for which to retrieve a breakdown by detail. See [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes). Details are only available for statuses 10, 14, 15, 17, 18, 19, 86, and 87.
* @param {string} params.filterSetName Name of the filter set that should be applied to the requested metrics. For example: - For a bidder-level filter set for bidder 123: `bidders/123/filterSets/abc` - For an account-level filter set for the buyer account representing bidder 123: `bidders/123/accounts/123/filterSets/abc` - For an account-level filter set for the child seat buyer account 456 whose bidder is 123: `bidders/123/accounts/456/filterSets/abc`
* @param {integer=} params.pageSize Requested page size. The server may return fewer results than requested. If unspecified, the server will pick an appropriate default.
* @param {string=} params.pageToken A token identifying a page of results the server should return. Typically, this is the value of ListCreativeStatusBreakdownByDetailResponse.nextPageToken returned from the previous call to the filteredBids.details.list method.
@@ -8886,7 +8886,7 @@ export namespace adexchangebuyer2_v2beta1 {
/**
* The ID of the creative status for which to retrieve a breakdown by
* detail. See
- * [creative-status-codes](https://developers.google.com/ad-exchange/rtb/downloads/creative-status-codes).
+ * [creative-status-codes](https://developers.google.com/authorized-buyers/rtb/downloads/creative-status-codes).
* Details are only available for statuses 10, 14, 15, 17, 18, 19, 86,
* and 87.
*/
diff --git a/src/apis/admin/directory_v1.ts b/src/apis/admin/directory_v1.ts
index eb671edbd1a..f6f1a9489e8 100644
--- a/src/apis/admin/directory_v1.ts
+++ b/src/apis/admin/directory_v1.ts
@@ -476,6 +476,10 @@ export namespace admin_directory_v1 {
* Chromebook boot mode (Read-only)
*/
bootMode?: string;
+ /**
+ * Reports of CPU utilization and temperature (Read-only)
+ */
+ cpuStatusReports?: any[];
/**
* List of device files to download (Read-only)
*/
@@ -484,6 +488,10 @@ export namespace admin_directory_v1 {
* Unique identifier of Chrome OS Device (Read-only)
*/
deviceId?: string;
+ /**
+ * Reports of disk space and other info about mounted/connected volumes.
+ */
+ diskVolumeReports?: any[];
/**
* ETag of the resource.
*/
@@ -559,6 +567,14 @@ export namespace admin_directory_v1 {
* Final date the device will be supported (Read-only)
*/
supportEndDate?: string;
+ /**
+ * Reports of amounts of available RAM memory (Read-only)
+ */
+ systemRamFreeReports?: any[];
+ /**
+ * Total RAM on the device [in bytes] (Read-only)
+ */
+ systemRamTotal?: string;
/**
* Trusted Platform Module (TPM) (Read-only)
*/
diff --git a/src/apis/alertcenter/README.md b/src/apis/alertcenter/README.md
new file mode 100644
index 00000000000..765e9affc10
--- /dev/null
+++ b/src/apis/alertcenter/README.md
@@ -0,0 +1,27 @@
+
+
+# @google/alertcenter
+
+> G Suite Alert Center API to view and manage alerts on issues affecting your domain.
+
+## Installation
+
+```sh
+$ npm install @google/alertcenter
+```
+
+## Usage
+All documentation and usage information can be found on [GitHub](https://github.com/google/google-api-nodejs-client).
+
+## License
+This library is licensed under Apache 2.0. Full license text is available in [COPYING](https://github.com/google/google-api-nodejs-client/blob/master/COPYING).
+
+## 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/google/google-api-nodejs-client/issues).
+
+
+*Crafted with ❤️ by the Google Node.js team*
diff --git a/src/apis/alertcenter/index.ts b/src/apis/alertcenter/index.ts
new file mode 100644
index 00000000000..a9ca82b1987
--- /dev/null
+++ b/src/apis/alertcenter/index.ts
@@ -0,0 +1,31 @@
+// Copyright 2018, 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 {getAPI, GoogleConfigurable} from 'googleapis-common';
+import {alertcenter_v1beta1} from './v1beta1';
+
+export const VERSIONS = {
+ 'v1beta1': alertcenter_v1beta1.Alertcenter,
+};
+
+export function alertcenter(version: 'v1beta1'):
+ alertcenter_v1beta1.Alertcenter;
+export function alertcenter(options: alertcenter_v1beta1.Options):
+ alertcenter_v1beta1.Alertcenter;
+export function alertcenter(
+ this: GoogleConfigurable,
+ versionOrOptions: 'v1beta1'|alertcenter_v1beta1.Options) {
+ return getAPI('alertcenter', versionOrOptions, VERSIONS, this);
+}
diff --git a/src/apis/alertcenter/package.json b/src/apis/alertcenter/package.json
new file mode 100644
index 00000000000..add7ec3f07a
--- /dev/null
+++ b/src/apis/alertcenter/package.json
@@ -0,0 +1,24 @@
+{
+ "name": "@google/alertcenter",
+ "version": "0.1.0",
+ "description": "alertcenter",
+ "main": "index.js",
+ "types": "index.d.ts",
+ "keywords": ["google"],
+ "author": "Google LLC",
+ "license": "Apache-2.0",
+ "homepage": "https://github.com/google/google-api-nodejs-client",
+ "bugs": {
+ "url" : "https://github.com/google/google-api-nodejs-client/issues"
+ },
+ "repository": {
+ "type": "git",
+ "url" : "https://github.com/google/google-api-nodejs-client.git"
+ },
+ "engines": {
+ "node": ">=6.0.0"
+ },
+ "dependencies": {
+ "googleapis-common": "^0.2.0"
+ }
+}
diff --git a/src/apis/alertcenter/v1beta1.ts b/src/apis/alertcenter/v1beta1.ts
new file mode 100644
index 00000000000..4b8b0d9f66d
--- /dev/null
+++ b/src/apis/alertcenter/v1beta1.ts
@@ -0,0 +1,1036 @@
+/**
+ * Copyright 2015 Google Inc. All Rights Reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import {AxiosPromise} from 'axios';
+import {Compute, JWT, OAuth2Client, UserRefreshClient} from 'google-auth-library';
+import {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 alertcenter_v1beta1 {
+ export interface Options extends GlobalOptions {
+ version: 'v1beta1';
+ }
+
+ /**
+ * G Suite Alert Center API
+ *
+ * G Suite API for alerts managment.
+ *
+ * @example
+ * const {google} = require('googleapis');
+ * const alertcenter = google.alertcenter('v1beta1');
+ *
+ * @namespace alertcenter
+ * @type {Function}
+ * @version v1beta1
+ * @variation v1beta1
+ * @param {object=} options Options for Alertcenter
+ */
+ export class Alertcenter {
+ _options: GlobalOptions;
+ google?: GoogleConfigurable;
+ root = this;
+
+ alerts: Resource$Alerts;
+
+ constructor(options: GlobalOptions, google?: GoogleConfigurable) {
+ this._options = options || {};
+ this.google = google;
+ this.getRoot.bind(this);
+
+ this.alerts = new Resource$Alerts(this);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+ }
+
+ /**
+ * Alerts for user account warning events.
+ */
+ export interface Schema$AccountWarning {
+ /**
+ * Required. Email of the user that this event belongs to.
+ */
+ email?: string;
+ /**
+ * Optional. Details of the login action associated with the warning event.
+ * This is only available for: Suspicious login Suspicious login (less
+ * secure app) User suspended (suspicious activity)
+ */
+ loginDetails?: Schema$LoginDetails;
+ }
+ /**
+ * An alert affecting a customer. All fields are read-only once created.
+ */
+ export interface Schema$Alert {
+ /**
+ * Output only. The unique identifier for the alert.
+ */
+ alertId?: string;
+ /**
+ * Output only. The time this alert was created. Assigned by the server.
+ */
+ createTime?: string;
+ /**
+ * Output only. The unique identifier of the Google account of the customer.
+ */
+ customerId?: string;
+ /**
+ * Optional. Specific data associated with this alert. e.g.
+ * google.apps.alertcenter.type.DeviceCompromised.
+ */
+ data?: any;
+ /**
+ * Optional. The time this alert was no longer active. If provided, the end
+ * time must not be earlier than the start time. If not provided, the end
+ * time will default to the start time.
+ */
+ endTime?: string;
+ /**
+ * Output only. An optional Security Investigation Tool query for this
+ * alert.
+ */
+ securityInvestigationToolLink?: string;
+ /**
+ * Required. A unique identifier for the system that is reported the alert.
+ * Supported sources are any of the following: * "Google
+ * Operations" * "Mobile device management" * "Gmail
+ * phishing" * "Domain wide takeout" * "Government
+ * attack warning" * "Google identity"
+ */
+ source?: string;
+ /**
+ * Required. The time this alert became active.
+ */
+ startTime?: string;
+ /**
+ * Required. The type of the alert. Supported types are any of the
+ * following: * "Google Operations" * "Device
+ * compromised" * "Suspicious activity" * "User
+ * reported phishing" * "Misconfigured whitelist" *
+ * "Customer takeout initiated" * "Government attack
+ * warning" * "User reported spam spike" * "Suspicious
+ * message reported" * "Phishing reclassification" *
+ * "Malware reclassification" LINT.IfChange * "Suspicious
+ * login" * "Suspicious login (less secure app)" *
+ * "User suspended" * "Leaked password" * "User
+ * suspended (suspicious activity)" * "User suspended
+ * (spam)" * "User suspended (spam through relay)"
+ * LINT.ThenChange(//depot/google3/apps/albert/data/albert_enums.proto)
+ */
+ type?: string;
+ }
+ /**
+ * A customer feedback about an alert.
+ */
+ export interface Schema$AlertFeedback {
+ /**
+ * Output only. The alert identifier.
+ */
+ alertId?: string;
+ /**
+ * Output only. The time this feedback was created. Assigned by the server.
+ */
+ createTime?: string;
+ /**
+ * Output only. The unique identifier of the Google account of the customer.
+ */
+ customerId?: string;
+ /**
+ * Output only. The email of the user that provided the feedback.
+ */
+ email?: string;
+ /**
+ * Output only. A unique identifier for the feedback. When creating a new
+ * feedback the system will assign one.
+ */
+ feedbackId?: string;
+ /**
+ * Required. The type of the feedback.
+ */
+ type?: string;
+ }
+ /**
+ * Attachment with application-specific information about an alert.
+ */
+ export interface Schema$Attachment {
+ /**
+ * CSV file attachment.
+ */
+ csv?: Schema$Csv;
+ }
+ /**
+ * Alert for setting the domain or ip that malicious email comes from as
+ * whitelisted domain or ip in Gmail advanced settings.
+ */
+ export interface Schema$BadWhitelist {
+ /**
+ * Domain id.
+ */
+ domainId?: Schema$DomainId;
+ /**
+ * Entity whose actions triggered a Gmail phishing alert.
+ */
+ maliciousEntity?: Schema$MaliciousEntity;
+ /**
+ * Every alert could contain multiple messages.
+ */
+ messages?: Schema$GmailMessageInfo[];
+ /**
+ * The source ip address of the malicious email. e.g. "127.0.0.1".
+ */
+ sourceIp?: string;
+ }
+ /**
+ * Representation of a CSV file attachment, as a list of column headers and a
+ * list of data rows.
+ */
+ export interface Schema$Csv {
+ /**
+ * List of data rows in a CSV file, as string arrays rather than as a single
+ * comma-separated string.
+ */
+ dataRows?: Schema$CsvRow[];
+ /**
+ * List of headers for data columns in a CSV file.
+ */
+ headers?: string[];
+ }
+ /**
+ * Representation of a single data row in a CSV file.
+ */
+ export interface Schema$CsvRow {
+ /**
+ * Data entries in a CSV file row, as a string array rather than a single
+ * comma-separated string.
+ */
+ entries?: string[];
+ }
+ /**
+ * A mobile device compromised alert. Derived from audit logs.
+ */
+ export interface Schema$DeviceCompromised {
+ /**
+ * The email of the user this alert was created for.
+ */
+ email?: string;
+ /**
+ * Required. List of security events.
+ */
+ events?: Schema$DeviceCompromisedSecurityDetail[];
+ }
+ /**
+ * Detailed information of a single MDM device compromised event.
+ */
+ export interface Schema$DeviceCompromisedSecurityDetail {
+ /**
+ * Device compromised state includes: "Compromised" and "Not
+ * Compromised".
+ */
+ deviceCompromisedState?: string;
+ /**
+ * Required. Device Info.
+ */
+ deviceId?: string;
+ /**
+ * The model of the device.
+ */
+ deviceModel?: string;
+ /**
+ * The type of the device.
+ */
+ deviceType?: string;
+ /**
+ * Required for IOS, empty for others.
+ */
+ iosVendorId?: string;
+ /**
+ * The device resource id.
+ */
+ resourceId?: string;
+ /**
+ * The serial number of the device.
+ */
+ serialNumber?: string;
+ }
+ /**
+ * Domain id of Gmail phishing alerts.
+ */
+ export interface Schema$DomainId {
+ /**
+ * The primary domain for the customer.
+ */
+ customerPrimaryDomain?: string;
+ }
+ /**
+ * A takeout operation for the entire domain was initiated by an admin.
+ * Derived from audit logs.
+ */
+ export interface Schema$DomainWideTakeoutInitiated {
+ /**
+ * Email of the admin who initiated the takeout.
+ */
+ email?: string;
+ /**
+ * takeout request id.
+ */
+ takeoutRequestId?: string;
+ }
+ /**
+ * A generic empty message that you can re-use to avoid defining duplicated
+ * empty messages in your APIs. A typical example is to use it as the request
+ * or the response type of an API method. For instance: service Foo { rpc
+ * Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON
+ * representation for `Empty` is empty JSON object `{}`.
+ */
+ export interface Schema$Empty {}
+ /**
+ * Details of a message in phishing spike alert.
+ */
+ export interface Schema$GmailMessageInfo {
+ /**
+ * SHA256 Hash of email's attachment and all MIME parts.
+ */
+ attachmentsSha256Hash?: string[];
+ /**
+ * The date the malicious email was sent.
+ */
+ date?: string;
+ /**
+ * Hash of message body text.
+ */
+ md5HashMessageBody?: string;
+ /**
+ * MD5 Hash of email's subject. (Only available for reported emails).
+ */
+ md5HashSubject?: string;
+ /**
+ * Snippet of the message body text. (Only available for reported emails)
+ */
+ messageBodySnippet?: string;
+ /**
+ * Message id.
+ */
+ messageId?: string;
+ /**
+ * Recipient of this email.
+ */
+ recipient?: string;
+ /**
+ * Email subject text. (Only available for reported emails).
+ */
+ subjectText?: string;
+ }
+ /**
+ * An incident reported by Google Operations for a G Suite application.
+ */
+ export interface Schema$GoogleOperations {
+ /**
+ * List of emails which correspond to the users directly affected by the
+ * incident.
+ */
+ affectedUserEmails?: string[];
+ /**
+ * Optional application-specific data for an incident, provided when the G
+ * Suite application which reported the incident cannot be completely
+ * restored to a valid state.
+ */
+ attachmentData?: Schema$Attachment;
+ /**
+ * Detailed, freeform incident description.
+ */
+ description?: string;
+ /**
+ * One-line incident description.
+ */
+ title?: string;
+ }
+ /**
+ * Response message for an alert feedback listing request.
+ */
+ export interface Schema$ListAlertFeedbackResponse {
+ /**
+ * The list of alert feedback. Result is ordered descending by creation
+ * time.
+ */
+ feedback?: Schema$AlertFeedback[];
+ }
+ /**
+ * Response message for an alert listing request.
+ */
+ export interface Schema$ListAlertsResponse {
+ /**
+ * The list of alerts.
+ */
+ alerts?: Schema$Alert[];
+ /**
+ * If not empty, indicates that there may be more alerts that match the
+ * request; this value can be passed in a new ListAlertsRequest to get the
+ * next page of values.
+ */
+ nextPageToken?: string;
+ }
+ /**
+ * Details of the login action
+ */
+ export interface Schema$LoginDetails {
+ /**
+ * Required. Human readable IP address (e.g., 11.22.33.44) that is
+ * associated with the warning event.
+ */
+ ipAddress?: string;
+ /**
+ * Required. Login time that is associated with the warning event.
+ */
+ loginTime?: string;
+ }
+ /**
+ * Proto for all phishing alerts with common payload. Supported types are any
+ * of the following: User reported phishing User reported spam spike
+ * Suspicious message reported Phishing reclassification Malware
+ * reclassification
+ */
+ export interface Schema$MailPhishing {
+ /**
+ * Domain id.
+ */
+ domainId?: Schema$DomainId;
+ /**
+ * If true, the email is originated from within the organization.
+ */
+ isInternal?: boolean;
+ /**
+ * Entity whose actions triggered a Gmail phishing alert.
+ */
+ maliciousEntity?: Schema$MaliciousEntity;
+ /**
+ * Every alert could contain multiple messages.
+ */
+ messages?: Schema$GmailMessageInfo[];
+ }
+ /**
+ * Entity whose actions triggered a Gmail phishing alert.
+ */
+ export interface Schema$MaliciousEntity {
+ /**
+ * Sender email address.
+ */
+ fromHeader?: string;
+ }
+ /**
+ * Alert for a spike in user reported phishing. This will be deprecated in
+ * favor of MailPhishing.
+ */
+ export interface Schema$PhishingSpike {
+ /**
+ * Domain id.
+ */
+ domainId?: Schema$DomainId;
+ /**
+ * If true, the email is originated from within the organization.
+ */
+ isInternal?: boolean;
+ /**
+ * Entity whose actions triggered a Gmail phishing alert.
+ */
+ maliciousEntity?: Schema$MaliciousEntity;
+ /**
+ * Every alert could contain multiple messages.
+ */
+ messages?: Schema$GmailMessageInfo[];
+ }
+ /**
+ * A state sponsored attack alert. Derived from audit logs.
+ */
+ export interface Schema$StateSponsoredAttack {
+ /**
+ * The email of the user this incident was created for.
+ */
+ email?: string;
+ }
+ /**
+ * A mobile suspicious activity alert. Derived from audit logs.
+ */
+ export interface Schema$SuspiciousActivity {
+ /**
+ * The email of the user this alert was created for.
+ */
+ email?: string;
+ /**
+ * Required. List of security events.
+ */
+ events?: Schema$SuspiciousActivitySecurityDetail[];
+ }
+ /**
+ * Detailed information of a single MDM suspicious activity event.
+ */
+ export interface Schema$SuspiciousActivitySecurityDetail {
+ /**
+ * Required. Device Info.
+ */
+ deviceId?: string;
+ /**
+ * The model of the device.
+ */
+ deviceModel?: string;
+ /**
+ * Device property which is changed.
+ */
+ deviceProperty?: string;
+ /**
+ * The type of the device.
+ */
+ deviceType?: string;
+ /**
+ * Required for IOS, empty for others.
+ */
+ iosVendorId?: string;
+ /**
+ * New value of the device property after change.
+ */
+ newValue?: string;
+ /**
+ * Old value of the device property before change.
+ */
+ oldValue?: string;
+ /**
+ * The device resource id.
+ */
+ resourceId?: string;
+ /**
+ * The serial number of the device.
+ */
+ serialNumber?: string;
+ }
+
+
+ export class Resource$Alerts {
+ root: Alertcenter;
+ feedback: Resource$Alerts$Feedback;
+ constructor(root: Alertcenter) {
+ this.root = root;
+ this.getRoot.bind(this);
+ this.feedback = new Resource$Alerts$Feedback(root);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+
+
+ /**
+ * alertcenter.alerts.delete
+ * @desc Marks the specified alert for deletion. An alert that has been
+ * marked for deletion will be excluded from the results of a List operation
+ * by default, and will be removed from the Alert Center after 30 days.
+ * Marking an alert for deletion will have no effect on an alert which has
+ * already been marked for deletion. Attempting to mark a nonexistent alert
+ * for deletion will return NOT_FOUND.
+ * @alias alertcenter.alerts.delete
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.alertId Required. The identifier of the alert to delete.
+ * @param {string=} params.customerId Optional. The unique identifier of the Google account of the customer the alert is associated with. This is obfuscated and not the plain customer ID as stored internally. Inferred from the caller identity if not provided.
+ * @param {object} [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$Alerts$Delete, options?: MethodOptions):
+ AxiosPromise;
+ delete(
+ params: Params$Resource$Alerts$Delete,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ delete(
+ params: Params$Resource$Alerts$Delete,
+ callback: BodyResponseCallback): void;
+ delete(callback: BodyResponseCallback): void;
+ delete(
+ paramsOrCallback?: Params$Resource$Alerts$Delete|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as Params$Resource$Alerts$Delete;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Alerts$Delete;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/alerts/{alertId}')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'DELETE'
+ },
+ options),
+ params,
+ requiredParams: ['alertId'],
+ pathParams: ['alertId'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * alertcenter.alerts.get
+ * @desc Gets the specified alert.
+ * @alias alertcenter.alerts.get
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.alertId Required. The identifier of the alert to retrieve.
+ * @param {string=} params.customerId Optional. The unique identifier of the Google account of the customer the alert is associated with. This is obfuscated and not the plain customer ID as stored internally. Inferred from the caller identity if not provided.
+ * @param {object} [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$Alerts$Get,
+ options?: MethodOptions): AxiosPromise;
+ get(params: Params$Resource$Alerts$Get,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ get(params: Params$Resource$Alerts$Get,
+ callback: BodyResponseCallback): void;
+ get(callback: BodyResponseCallback): void;
+ get(paramsOrCallback?: Params$Resource$Alerts$Get|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as Params$Resource$Alerts$Get;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Alerts$Get;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/alerts/{alertId}')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: ['alertId'],
+ pathParams: ['alertId'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * alertcenter.alerts.list
+ * @desc Lists all the alerts for the current user and application.
+ * @alias alertcenter.alerts.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string=} params.customerId Optional. The unique identifier of the Google account of the customer the alerts are associated with. This is obfuscated and not the plain customer ID as stored internally. Inferred from the caller identity if not provided.
+ * @param {string=} params.filter Optional. Query string for filtering alert results. This string must be specified as an expression or list of expressions, using the following grammar: ### Expressions An expression has the general form ` `. A field or value which contains a space or a colon must be enclosed by double quotes. #### Operators Operators follow the BNF specification: ` ::= "=" | ":"` ` ::= "<" | ">" | "<=" | ">="` Relational operators are defined only for timestamp fields. Equality operators are defined only for string fields. #### Timestamp fields The value supplied for a timestamp field must be an [RFC 3339](https://tools.ietf.org/html/rfc3339) date-time string. Supported timestamp fields are `create_time`, `start_time`, and `end_time`. #### String fields The value supplied for a string field may be an arbitrary string. #### Examples To query for all alerts created on or after April 5, 2018: `create_time >= "2018-04-05T00:00:00Z"` To query for all alerts from the source "Gmail phishing": `source:"Gmail phishing"` ### Joining expressions Expressions may be joined to form a more complex query. The BNF specification is: ` ::= | | ` ` ::= "AND" | "OR" | ""` ` ::= "NOT"` Using the empty string as a conjunction acts as an implicit AND. The precedence of joining operations, from highest to lowest, is NOT, AND, OR. #### Examples To query for all alerts which started in 2017: `start_time >= "2017-01-01T00:00:00Z" AND start_time < "2018-01-01T00:00:00Z"` To query for all user reported phishing alerts from the source "Gmail phishing": `type:"User reported phishing" source:"Gmail phishing"`
+ * @param {string=} params.orderBy Optional. Sort the list results by a certain order. If not specified results may be returned in arbitrary order. You can sort the results in a descending order based on the creation timestamp using order_by="create_time desc". Currently, only sorting by create_time desc is supported.
+ * @param {integer=} params.pageSize Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick 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`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ list(params?: Params$Resource$Alerts$List, options?: MethodOptions):
+ AxiosPromise;
+ list(
+ params: Params$Resource$Alerts$List,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ list(
+ params: Params$Resource$Alerts$List,
+ callback: BodyResponseCallback): void;
+ list(callback: BodyResponseCallback): void;
+ list(
+ paramsOrCallback?: Params$Resource$Alerts$List|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params = (paramsOrCallback || {}) as Params$Resource$Alerts$List;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Alerts$List;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/alerts').replace(/([^:]\/)\/+/g, '$1'),
+ method: 'GET'
+ },
+ options),
+ params,
+ requiredParams: [],
+ pathParams: [],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+ }
+
+ export interface Params$Resource$Alerts$Delete {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. The identifier of the alert to delete.
+ */
+ alertId?: string;
+ /**
+ * Optional. The unique identifier of the Google account of the customer the
+ * alert is associated with. This is obfuscated and not the plain customer
+ * ID as stored internally. Inferred from the caller identity if not
+ * provided.
+ */
+ customerId?: string;
+ }
+ export interface Params$Resource$Alerts$Get {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Required. The identifier of the alert to retrieve.
+ */
+ alertId?: string;
+ /**
+ * Optional. The unique identifier of the Google account of the customer the
+ * alert is associated with. This is obfuscated and not the plain customer
+ * ID as stored internally. Inferred from the caller identity if not
+ * provided.
+ */
+ customerId?: string;
+ }
+ export interface Params$Resource$Alerts$List {
+ /**
+ * Auth client or API Key for the request
+ */
+ auth?: string|OAuth2Client|JWT|Compute|UserRefreshClient;
+
+ /**
+ * Optional. The unique identifier of the Google account of the customer the
+ * alerts are associated with. This is obfuscated and not the plain customer
+ * ID as stored internally. Inferred from the caller identity if not
+ * provided.
+ */
+ customerId?: string;
+ /**
+ * Optional. Query string for filtering alert results. This string must be
+ * specified as an expression or list of expressions, using the following
+ * grammar: ### Expressions An expression has the general form `
+ * `. A field or value which contains a space or a colon
+ * must be enclosed by double quotes. #### Operators Operators follow the
+ * BNF specification: ` ::= "=" | ":"`
+ * ` ::= "<" | ">" | "<=" | ">="` Relational operators
+ * are defined only for timestamp fields. Equality operators are defined
+ * only for string fields. #### Timestamp fields The value supplied for a
+ * timestamp field must be an [RFC
+ * 3339](https://tools.ietf.org/html/rfc3339) date-time string. Supported
+ * timestamp fields are `create_time`, `start_time`, and `end_time`. ####
+ * String fields The value supplied for a string field may be an arbitrary
+ * string. #### Examples To query for all alerts created on or after April
+ * 5, 2018: `create_time >= "2018-04-05T00:00:00Z"` To query for all
+ * alerts from the source "Gmail phishing": `source:"Gmail phishing"` ###
+ * Joining expressions Expressions may be joined to form a more complex
+ * query. The BNF specification is: ` ::= |
+ * |
+ * ` ` ::= "AND" | "OR" | ""` ` ::=
+ * "NOT"` Using the empty string as a conjunction acts as an implicit AND.
+ * The precedence of joining operations, from highest to lowest, is NOT,
+ * AND, OR. #### Examples To query for all alerts which started in 2017:
+ * `start_time >= "2017-01-01T00:00:00Z" AND start_time <
+ * "2018-01-01T00:00:00Z"` To query for all user reported phishing alerts
+ * from the source "Gmail phishing": `type:"User reported phishing"
+ * source:"Gmail phishing"`
+ */
+ filter?: string;
+ /**
+ * Optional. Sort the list results by a certain order. If not specified
+ * results may be returned in arbitrary order. You can sort the results in a
+ * descending order based on the creation timestamp using
+ * order_by="create_time desc". Currently, only sorting by create_time desc
+ * is supported.
+ */
+ orderBy?: string;
+ /**
+ * Optional. Requested page size. Server may return fewer items than
+ * requested. If unspecified, server will pick an appropriate default.
+ */
+ pageSize?: number;
+ /**
+ * 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.
+ */
+ pageToken?: string;
+ }
+
+ export class Resource$Alerts$Feedback {
+ root: Alertcenter;
+ constructor(root: Alertcenter) {
+ this.root = root;
+ this.getRoot.bind(this);
+ }
+
+ getRoot() {
+ return this.root;
+ }
+
+
+ /**
+ * alertcenter.alerts.feedback.create
+ * @desc Creates a new alert feedback.
+ * @alias alertcenter.alerts.feedback.create
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.alertId Required. The identifier of the alert this feedback belongs to. Returns a NOT_FOUND error if no such alert.
+ * @param {string=} params.customerId Optional. The unique identifier of the Google account of the customer the alert's feedback is associated with. This is obfuscated and not the plain customer ID as stored internally. Inferred from the caller identity if not provided.
+ * @param {().AlertFeedback} params.resource Request body data
+ * @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
+ * @param {callback} callback The callback that handles the response.
+ * @return {object} Request object
+ */
+ create(
+ params?: Params$Resource$Alerts$Feedback$Create,
+ options?: MethodOptions): AxiosPromise;
+ create(
+ params: Params$Resource$Alerts$Feedback$Create,
+ options: MethodOptions|BodyResponseCallback,
+ callback: BodyResponseCallback): void;
+ create(
+ params: Params$Resource$Alerts$Feedback$Create,
+ callback: BodyResponseCallback): void;
+ create(callback: BodyResponseCallback): void;
+ create(
+ paramsOrCallback?: Params$Resource$Alerts$Feedback$Create|
+ BodyResponseCallback,
+ optionsOrCallback?: MethodOptions|
+ BodyResponseCallback,
+ callback?: BodyResponseCallback):
+ void|AxiosPromise {
+ let params =
+ (paramsOrCallback || {}) as Params$Resource$Alerts$Feedback$Create;
+ let options = (optionsOrCallback || {}) as MethodOptions;
+
+ if (typeof paramsOrCallback === 'function') {
+ callback = paramsOrCallback;
+ params = {} as Params$Resource$Alerts$Feedback$Create;
+ options = {};
+ }
+
+ if (typeof optionsOrCallback === 'function') {
+ callback = optionsOrCallback;
+ options = {};
+ }
+
+ const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/';
+ const parameters = {
+ options: Object.assign(
+ {
+ url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback')
+ .replace(/([^:]\/)\/+/g, '$1'),
+ method: 'POST'
+ },
+ options),
+ params,
+ requiredParams: ['alertId'],
+ pathParams: ['alertId'],
+ context: this.getRoot()
+ };
+ if (callback) {
+ createAPIRequest(parameters, callback);
+ } else {
+ return createAPIRequest(parameters);
+ }
+ }
+
+
+ /**
+ * alertcenter.alerts.feedback.list
+ * @desc Lists all the feedback for an alert.
+ * @alias alertcenter.alerts.feedback.list
+ * @memberOf! ()
+ *
+ * @param {object} params Parameters for request
+ * @param {string} params.alertId Required. The alert identifier. If the alert does not exist returns a NOT_FOUND error.
+ * @param {string=} params.customerId Optional. The unique identifier of the Google account of the customer the alert is associated with. This is obfuscated and not the plain customer ID as stored internally. Inferred from the caller identity if not provided.
+ * @param {object} [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$Alerts$Feedback$List, options?: MethodOptions):
+ AxiosPromise;
+ list(
+ params: Params$Resource$Alerts$Feedback$List,
+ options: MethodOptions|
+ BodyResponseCallback,
+ callback: BodyResponseCallback