Skip to content

Commit

Permalink
feat(accesscontextmanager): update the API
Browse files Browse the repository at this point in the history
#### accesscontextmanager:v1beta

The following keys were added:
- schemas.AccessContextManagerOperationMetadata.description
- schemas.AccessContextManagerOperationMetadata.id
- schemas.AccessContextManagerOperationMetadata.type

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description

#### accesscontextmanager:v1

The following keys were added:
- schemas.AccessContextManagerOperationMetadata.description
- schemas.AccessContextManagerOperationMetadata.id
- schemas.AccessContextManagerOperationMetadata.type
- schemas.GcpUserAccessBindingOperationMetadata.description
- schemas.GcpUserAccessBindingOperationMetadata.id
- schemas.GcpUserAccessBindingOperationMetadata.type

The following keys were changed:
- auth.oauth2.scopes.https://www.googleapis.com/auth/cloud-platform.description
- resources.accessPolicies.methods.patch.parameters.name.description
- resources.accessPolicies.resources.accessLevels.methods.patch.parameters.name.description
- resources.accessPolicies.resources.servicePerimeters.methods.patch.parameters.name.description
- schemas.AccessLevel.properties.name.description
- schemas.AccessPolicy.properties.name.description
- schemas.ServicePerimeter.properties.name.description
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Aug 31, 2021
1 parent f38bc0d commit 67a36a9
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 19 deletions.
28 changes: 20 additions & 8 deletions discovery/accesscontextmanager-v1.json
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "See, edit, configure, and delete your Google Cloud Platform data"
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
}
}
}
Expand Down Expand Up @@ -217,7 +217,7 @@
],
"parameters": {
"name": {
"description": "Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`",
"description": "Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{access_policy}`",
"location": "path",
"pattern": "^accessPolicies/[^/]+$",
"required": true,
Expand Down Expand Up @@ -399,7 +399,7 @@
],
"parameters": {
"name": {
"description": "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.",
"description": "Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum length of the `access_level` component is 50 characters.",
"location": "path",
"pattern": "^accessPolicies/[^/]+/accessLevels/[^/]+$",
"required": true,
Expand Down Expand Up @@ -607,7 +607,7 @@
],
"parameters": {
"name": {
"description": "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}`",
"description": "Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`",
"location": "path",
"pattern": "^accessPolicies/[^/]+/servicePerimeters/[^/]+$",
"required": true,
Expand Down Expand Up @@ -943,9 +943,15 @@
}
}
},
"revision": "20210412",
"revision": "20210822",
"rootUrl": "https://accesscontextmanager.googleapis.com/",
"schemas": {
"AccessContextManagerOperationMetadata": {
"description": "Metadata of Access Context Manager's Long Running Operations.",
"id": "AccessContextManagerOperationMetadata",
"properties": {},
"type": "object"
},
"AccessLevel": {
"description": "An `AccessLevel` is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.",
"id": "AccessLevel",
Expand All @@ -963,7 +969,7 @@
"type": "string"
},
"name": {
"description": "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.",
"description": "Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy}/accessLevels/{access_level}`. The maximum length of the `access_level` component is 50 characters.",
"type": "string"
},
"title": {
Expand All @@ -982,7 +988,7 @@
"type": "string"
},
"name": {
"description": "Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`",
"description": "Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{access_policy}`",
"type": "string"
},
"parent": {
Expand Down Expand Up @@ -1306,6 +1312,12 @@
},
"type": "object"
},
"GcpUserAccessBindingOperationMetadata": {
"description": "Currently, a completed operation means nothing. In the future, this metadata and a completed operation may indicate that the binding has taken effect and is affecting access decisions for all users.",
"id": "GcpUserAccessBindingOperationMetadata",
"properties": {},
"type": "object"
},
"IngressFrom": {
"description": "Defines the conditions under which an IngressPolicy matches a request. Conditions are based on information about the source of the request. The request must satisfy what is defined in `sources` AND identity related fields in order to match.",
"id": "IngressFrom",
Expand Down Expand Up @@ -1644,7 +1656,7 @@
"type": "string"
},
"name": {
"description": "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}`",
"description": "Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy}/servicePerimeters/{service_perimeter}`",
"type": "string"
},
"perimeterType": {
Expand Down
10 changes: 8 additions & 2 deletions discovery/accesscontextmanager-v1beta.json
Expand Up @@ -3,7 +3,7 @@
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "See, edit, configure, and delete your Google Cloud Platform data"
"description": "See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account."
}
}
}
Expand Down Expand Up @@ -609,9 +609,15 @@
}
}
},
"revision": "20210319",
"revision": "20210822",
"rootUrl": "https://accesscontextmanager.googleapis.com/",
"schemas": {
"AccessContextManagerOperationMetadata": {
"description": "Metadata of Access Context Manager's Long Running Operations.",
"id": "AccessContextManagerOperationMetadata",
"properties": {},
"type": "object"
},
"AccessLevel": {
"description": "An `AccessLevel` is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.",
"id": "AccessLevel",
Expand Down
26 changes: 17 additions & 9 deletions src/apis/accesscontextmanager/v1.ts
Expand Up @@ -129,6 +129,10 @@ export namespace accesscontextmanager_v1 {
}
}

/**
* Metadata of Access Context Manager's Long Running Operations.
*/
export interface Schema$AccessContextManagerOperationMetadata {}
/**
* An `AccessLevel` is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.
*/
Expand All @@ -146,7 +150,7 @@ 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\}`. The maximum length of the `short_name` component is 50 characters.
* Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy\}/accessLevels/{access_level\}`. The maximum length of the `access_level` component is 50 characters.
*/
name?: string | null;
/**
Expand All @@ -163,7 +167,7 @@ export namespace accesscontextmanager_v1 {
*/
etag?: string | null;
/**
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id\}`
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{access_policy\}`
*/
name?: string | null;
/**
Expand Down Expand Up @@ -371,6 +375,10 @@ export namespace accesscontextmanager_v1 {
*/
name?: string | null;
}
/**
* Currently, a completed operation means nothing. In the future, this metadata and a completed operation may indicate that the binding has taken effect and is affecting access decisions for all users.
*/
export interface Schema$GcpUserAccessBindingOperationMetadata {}
/**
* Defines the conditions under which an IngressPolicy matches a request. Conditions are based on information about the source of the request. The request must satisfy what is defined in `sources` AND identity related fields in order to match.
*/
Expand Down Expand Up @@ -600,7 +608,7 @@ export namespace accesscontextmanager_v1 {
*/
description?: string | null;
/**
* 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\}`
* Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy\}/servicePerimeters/{service_perimeter\}`
*/
name?: string | null;
/**
Expand Down Expand Up @@ -1264,7 +1272,7 @@ export namespace accesscontextmanager_v1 {
*
* // Do the magic
* const res = await accesscontextmanager.accessPolicies.patch({
* // Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id\}`
* // Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{access_policy\}`
* name: 'accessPolicies/my-accessPolicie',
* // Required. Mask to control which fields get updated. Must be non-empty.
* updateMask: 'placeholder-value',
Expand Down Expand Up @@ -1421,7 +1429,7 @@ export namespace accesscontextmanager_v1 {
export interface Params$Resource$Accesspolicies$Patch
extends StandardParameters {
/**
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id\}`
* Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{access_policy\}`
*/
name?: string;
/**
Expand Down Expand Up @@ -2020,7 +2028,7 @@ export namespace accesscontextmanager_v1 {
*
* // Do the magic
* const res = await accesscontextmanager.accessPolicies.accessLevels.patch({
* // 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.
* // Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy\}/accessLevels/{access_level\}`. The maximum length of the `access_level` component is 50 characters.
* name: 'accessPolicies/my-accessPolicie/accessLevels/my-accessLevel',
* // Required. Mask to control which fields get updated. Must be non-empty.
* updateMask: 'placeholder-value',
Expand Down Expand Up @@ -2336,7 +2344,7 @@ export namespace accesscontextmanager_v1 {
export interface Params$Resource$Accesspolicies$Accesslevels$Patch
extends StandardParameters {
/**
* 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.
* Required. Resource name for the Access Level. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy\}/accessLevels/{access_level\}`. The maximum length of the `access_level` component is 50 characters.
*/
name?: string;
/**
Expand Down Expand Up @@ -3097,7 +3105,7 @@ export namespace accesscontextmanager_v1 {
* // Do the magic
* const res = await accesscontextmanager.accessPolicies.servicePerimeters.patch(
* {
* // 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\}`
* // Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy\}/servicePerimeters/{service_perimeter\}`
* name: 'accessPolicies/my-accessPolicie/servicePerimeters/my-servicePerimeter',
* // Required. Mask to control which fields get updated. Must be non-empty.
* updateMask: 'placeholder-value',
Expand Down Expand Up @@ -3419,7 +3427,7 @@ export namespace accesscontextmanager_v1 {
export interface Params$Resource$Accesspolicies$Serviceperimeters$Patch
extends StandardParameters {
/**
* 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\}`
* Required. Resource name for the ServicePerimeter. The `short_name` component must begin with a letter and only include alphanumeric and '_'. Format: `accessPolicies/{access_policy\}/servicePerimeters/{service_perimeter\}`
*/
name?: string;
/**
Expand Down
4 changes: 4 additions & 0 deletions src/apis/accesscontextmanager/v1beta.ts
Expand Up @@ -127,6 +127,10 @@ export namespace accesscontextmanager_v1beta {
}
}

/**
* Metadata of Access Context Manager's Long Running Operations.
*/
export interface Schema$AccessContextManagerOperationMetadata {}
/**
* An `AccessLevel` is a label that can be applied to requests to Google Cloud services, along with a list of requirements necessary for the label to be applied.
*/
Expand Down

0 comments on commit 67a36a9

Please sign in to comment.