Skip to content

Commit

Permalink
feat!: regenerate the API (#2028)
Browse files Browse the repository at this point in the history
BREAKING CHANGES: This adds multiple new APIs, and removes a variety of deprecated APIs.

**New APIs**
- cloudasset/v1p1beta1
- gameservices/v1beta
- healthcare/v1
- memcache/v1beta2
- osconfig/v1
- servicedirectory/v1beta1

**Removed APIs**
- cloudprivatecatalogproducer/v1beta1
- jobs/v2
- mirror/v1
- oauth2/v1
- proximitybeacon/v1beta1
  • Loading branch information
JustinBeckwith committed Apr 10, 2020
1 parent 48a4f05 commit fea414a
Show file tree
Hide file tree
Showing 166 changed files with 56,980 additions and 30,378 deletions.
4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -73,13 +73,13 @@
"gts": "^1.1.0",
"js-green-licenses": "^1.0.0",
"linkinator": "^2.0.0",
"minimist": "^1.2.0",
"minimist": "^1.2.5",
"mkdirp": "^1.0.0",
"mocha": "^7.0.0",
"mv": "^2.1.1",
"ncp": "^2.0.0",
"nock": "^12.0.0",
"nunjucks": "^3.2.0",
"nunjucks": "^3.2.1",
"open": "^7.0.0",
"p-queue": "^6.0.0",
"prettier": "^1.17.1",
Expand Down
2 changes: 1 addition & 1 deletion samples/test/test.samples.customsearch.js
Expand Up @@ -23,7 +23,7 @@ const samples = {
list: require('../customsearch/customsearch'),
};

const baseUrl = 'https://www.googleapis.com';
const baseUrl = 'https://customsearch.googleapis.com';

describe('customsearch samples', () => {
afterEach(() => {
Expand Down
38 changes: 9 additions & 29 deletions src/apis/accesscontextmanager/v1.ts
Expand Up @@ -125,10 +125,6 @@ export namespace accesscontextmanager_v1 {
* A `BasicLevel` composed of `Conditions`.
*/
basic?: Schema$BasicLevel;
/**
* Output only. Time the `AccessLevel` was created in UTC.
*/
createTime?: string | null;
/**
* A `CustomLevel` written in the Common Expression Language.
*/
Expand All @@ -138,26 +134,22 @@ export namespace accesscontextmanager_v1 {
*/
description?: string | null;
/**
* 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}`
* 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}`. The maximum length of the `short_name` component is 50 characters.
*/
name?: string | null;
/**
* Human readable title. Must be unique within the Policy.
*/
title?: string | null;
/**
* Output only. Time the `AccessLevel` was updated in UTC.
*/
updateTime?: string | null;
}
/**
* `AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use Google Cloud 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.
* Output only. An opaque identifier for the current version of the `AccessPolicy`. This will always be a strongly validated etag, meaning that two Access Polices will be identical if and only if their etags are identical. Clients should not expect this to be in any specific format.
*/
createTime?: string | null;
etag?: string | null;
/**
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`
*/
Expand All @@ -170,10 +162,6 @@ export namespace accesscontextmanager_v1 {
* Required. Human readable title. Does not affect behavior.
*/
title?: string | null;
/**
* Output only. Time the `AccessPolicy` was updated in UTC.
*/
updateTime?: string | null;
}
/**
* `BasicLevel` is an `AccessLevel` using a set of recommended features.
Expand Down Expand Up @@ -444,10 +432,6 @@ export namespace accesscontextmanager_v1 {
* `ServicePerimeter` describes a set of Google Cloud 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 Google Cloud project can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only Google Cloud projects as members, a single Google Cloud project may belong to multiple Service Perimeter Bridges.
*/
export interface Schema$ServicePerimeter {
/**
* Output only. Time the `ServicePerimeter` was created in UTC.
*/
createTime?: string | null;
/**
* Description of the `ServicePerimeter` and its use. Does not affect behavior.
*/
Expand All @@ -472,10 +456,6 @@ export namespace accesscontextmanager_v1 {
* Human readable title. Must be unique within the Policy.
*/
title?: string | null;
/**
* Output only. Time the `ServicePerimeter` was updated in UTC.
*/
updateTime?: string | null;
/**
* Use explicit dry run spec flag. Ordinarily, a dry-run spec implicitly exists for all Service Perimeters, and that spec is identical to the status for those Service Perimeters. When this flag is set, it inhibits the generation of the implicit spec, thereby allowing the user to explicitly provide a configuration ("spec") to use in a dry-run version of the Service Perimeter. This allows the user to test changes to the enforced config ("status") without actually enforcing them. This testing is done through analyzing the differences between currently enforced and suggested restrictions. use_explicit_dry_run_spec must bet set to True if any of the fields in the spec are set to non-default values.
*/
Expand Down Expand Up @@ -1311,7 +1291,7 @@ export namespace accesscontextmanager_v1 {
* @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.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}`. The maximum length of the `short_name` component is 50 characters.
* @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
* @param {().AccessLevel} params.requestBody Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -1532,7 +1512,7 @@ export namespace accesscontextmanager_v1 {
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}`
* 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}`. The maximum length of the `short_name` component is 50 characters.
*/
name?: string;
/**
Expand Down Expand Up @@ -1647,7 +1627,7 @@ export namespace accesscontextmanager_v1 {

/**
* 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.
* @desc Create a 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! ()
*
Expand Down Expand Up @@ -1723,7 +1703,7 @@ export namespace accesscontextmanager_v1 {

/**
* 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.
* @desc Delete a 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! ()
*
Expand Down Expand Up @@ -1795,7 +1775,7 @@ export namespace accesscontextmanager_v1 {

/**
* accesscontextmanager.accessPolicies.servicePerimeters.get
* @desc Get an Service Perimeter by resource name.
* @desc Get a Service Perimeter by resource name.
* @alias accesscontextmanager.accessPolicies.servicePerimeters.get
* @memberOf! ()
*
Expand Down Expand Up @@ -1953,7 +1933,7 @@ export namespace accesscontextmanager_v1 {

/**
* 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.
* @desc Update a 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! ()
*
Expand Down
38 changes: 7 additions & 31 deletions src/apis/accesscontextmanager/v1beta.ts
Expand Up @@ -125,10 +125,6 @@ export namespace accesscontextmanager_v1beta {
* A `BasicLevel` composed of `Conditions`.
*/
basic?: Schema$BasicLevel;
/**
* Output only. Time the `AccessLevel` was created in UTC.
*/
createTime?: string | null;
/**
* A `CustomLevel` written in the Common Expression Language.
*/
Expand All @@ -138,26 +134,18 @@ export namespace accesscontextmanager_v1beta {
*/
description?: string | null;
/**
* 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}`
* 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}`. The maximum length // of the `short_name` component is 50 characters.
*/
name?: string | null;
/**
* Human readable title. Must be unique within the Policy.
*/
title?: string | null;
/**
* Output only. Time the `AccessLevel` was updated in UTC.
*/
updateTime?: string | null;
}
/**
* `AccessPolicy` is a container for `AccessLevels` (which define the necessary attributes to use Google Cloud 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 | null;
/**
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`
*/
Expand All @@ -170,10 +158,6 @@ export namespace accesscontextmanager_v1beta {
* Required. Human readable title. Does not affect behavior.
*/
title?: string | null;
/**
* Output only. Time the `AccessPolicy` was updated in UTC.
*/
updateTime?: string | null;
}
/**
* `BasicLevel` is an `AccessLevel` using a set of recommended features.
Expand Down Expand Up @@ -361,10 +345,6 @@ export namespace accesscontextmanager_v1beta {
* `ServicePerimeter` describes a set of Google Cloud 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 Google Cloud project can only belong to a single regular Service Perimeter. Service Perimeter Bridges can contain only Google Cloud projects as members, a single Google Cloud project may belong to multiple Service Perimeter Bridges.
*/
export interface Schema$ServicePerimeter {
/**
* Output only. Time the `ServicePerimeter` was created in UTC.
*/
createTime?: string | null;
/**
* Description of the `ServicePerimeter` and its use. Does not affect behavior.
*/
Expand All @@ -385,10 +365,6 @@ export namespace accesscontextmanager_v1beta {
* Human readable title. Must be unique within the Policy.
*/
title?: string | null;
/**
* Output only. Time the `ServicePerimeter` was updated in UTC.
*/
updateTime?: string | null;
}
/**
* `ServicePerimeterConfig` specifies a set of Google Cloud resources that describe specific Service Perimeter configuration.
Expand Down Expand Up @@ -1230,7 +1206,7 @@ export namespace accesscontextmanager_v1beta {
* @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.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}`. The maximum length // of the `short_name` component is 50 characters.
* @param {string=} params.updateMask Required. Mask to control which fields get updated. Must be non-empty.
* @param {().AccessLevel} params.requestBody Request body data
* @param {object} [options] Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -1375,7 +1351,7 @@ export namespace accesscontextmanager_v1beta {
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}`
* 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}`. The maximum length // of the `short_name` component is 50 characters.
*/
name?: string;
/**
Expand All @@ -1397,7 +1373,7 @@ export namespace accesscontextmanager_v1beta {

/**
* 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.
* @desc Create a 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! ()
*
Expand Down Expand Up @@ -1473,7 +1449,7 @@ export namespace accesscontextmanager_v1beta {

/**
* 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.
* @desc Delete a 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! ()
*
Expand Down Expand Up @@ -1545,7 +1521,7 @@ export namespace accesscontextmanager_v1beta {

/**
* accesscontextmanager.accessPolicies.servicePerimeters.get
* @desc Get an Service Perimeter by resource name.
* @desc Get a Service Perimeter by resource name.
* @alias accesscontextmanager.accessPolicies.servicePerimeters.get
* @memberOf! ()
*
Expand Down Expand Up @@ -1703,7 +1679,7 @@ export namespace accesscontextmanager_v1beta {

/**
* 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.
* @desc Update a 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! ()
*
Expand Down
6 changes: 5 additions & 1 deletion src/apis/adexchangebuyer2/v2beta1.ts
Expand Up @@ -926,7 +926,11 @@ export namespace adexchangebuyer2_v2beta1 {
*/
environment?: string | null;
/**
* The list of formats on which to filter; may be empty. The filters represented by multiple formats are ORed together (i.e., if non-empty, results must match any one of the formats).
* Creative format bidded on or allowed to bid on, can be empty.
*/
format?: string | null;
/**
* Creative formats bidded on or allowed to bid on, can be empty. Although this field is a list, it can only be populated with a single item. A HTTP 400 bad request error will be returned in the response if you specify multiple items.
*/
formats?: string[] | null;
/**
Expand Down

0 comments on commit fea414a

Please sign in to comment.