From 381c11295d4ca985b736170c3ab1a8a32669c297 Mon Sep 17 00:00:00 2001 From: yoshi-automation Date: Tue, 14 Jul 2020 04:29:32 -0700 Subject: [PATCH] feat(cloudfunctions): update the API #### cloudfunctions:v1 The following keys were added: - schemas.CloudFunction.properties.buildId.description - schemas.CloudFunction.properties.buildId.type - schemas.OperationMetadataV1.properties.buildId.description - schemas.OperationMetadataV1.properties.buildId.type #### cloudfunctions:v1beta2 The following keys were added: - schemas.OperationMetadataV1.properties.buildId.description - schemas.OperationMetadataV1.properties.buildId.type --- discovery/cloudfunctions-v1.json | 10 +++++++++- discovery/cloudfunctions-v1beta2.json | 6 +++++- src/apis/cloudfunctions/v1.ts | 11 +++++++++++ src/apis/cloudfunctions/v1beta2.ts | 4 ++++ 4 files changed, 29 insertions(+), 2 deletions(-) diff --git a/discovery/cloudfunctions-v1.json b/discovery/cloudfunctions-v1.json index 0dd955691f..9674df6db8 100644 --- a/discovery/cloudfunctions-v1.json +++ b/discovery/cloudfunctions-v1.json @@ -546,7 +546,7 @@ } } }, - "revision": "20200618", + "revision": "20200629", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "AuditConfig": { @@ -658,6 +658,10 @@ "format": "int32", "type": "integer" }, + "buildId": { + "description": "Output only. The Cloud Build ID of the latest successful deployment of the\nfunction.", + "type": "string" + }, "description": { "description": "User-provided description of a function.", "type": "string" @@ -1035,6 +1039,10 @@ "description": "Metadata describing an Operation", "id": "OperationMetadataV1", "properties": { + "buildId": { + "description": "The Cloud Build ID of the function created or updated by an API call.\nThis field is only populated for Create and Update operations.", + "type": "string" + }, "request": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", diff --git a/discovery/cloudfunctions-v1beta2.json b/discovery/cloudfunctions-v1beta2.json index e4e918aae5..9a489e9a53 100644 --- a/discovery/cloudfunctions-v1beta2.json +++ b/discovery/cloudfunctions-v1beta2.json @@ -453,7 +453,7 @@ } } }, - "revision": "20200510", + "revision": "20200629", "rootUrl": "https://cloudfunctions.googleapis.com/", "schemas": { "CallFunctionRequest": { @@ -821,6 +821,10 @@ "description": "Metadata describing an Operation", "id": "OperationMetadataV1", "properties": { + "buildId": { + "description": "The Cloud Build ID of the function created or updated by an API call.\nThis field is only populated for Create and Update operations.", + "type": "string" + }, "request": { "additionalProperties": { "description": "Properties of the object. Contains field @type with type URL.", diff --git a/src/apis/cloudfunctions/v1.ts b/src/apis/cloudfunctions/v1.ts index 28a633a110..571d68b674 100644 --- a/src/apis/cloudfunctions/v1.ts +++ b/src/apis/cloudfunctions/v1.ts @@ -206,6 +206,10 @@ export namespace cloudfunctions_v1 { * The amount of memory in MB available for a function. Defaults to 256MB. */ availableMemoryMb?: number | null; + /** + * Output only. The Cloud Build ID of the latest successful deployment of the function. + */ + buildId?: string | null; /** * User-provided description of a function. */ @@ -479,6 +483,10 @@ export namespace cloudfunctions_v1 { * Metadata describing an Operation */ export interface Schema$OperationMetadataV1 { + /** + * The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations. + */ + buildId?: string | null; /** * The original request that started the operation. */ @@ -1291,6 +1299,7 @@ export namespace cloudfunctions_v1 { * // request body parameters * // { * // "availableMemoryMb": 0, + * // "buildId": "my_buildId", * // "description": "my_description", * // "entryPoint": "my_entryPoint", * // "environmentVariables": {}, @@ -1889,6 +1898,7 @@ export namespace cloudfunctions_v1 { * // Example response * // { * // "availableMemoryMb": 0, + * // "buildId": "my_buildId", * // "description": "my_description", * // "entryPoint": "my_entryPoint", * // "environmentVariables": {}, @@ -2345,6 +2355,7 @@ export namespace cloudfunctions_v1 { * // request body parameters * // { * // "availableMemoryMb": 0, + * // "buildId": "my_buildId", * // "description": "my_description", * // "entryPoint": "my_entryPoint", * // "environmentVariables": {}, diff --git a/src/apis/cloudfunctions/v1beta2.ts b/src/apis/cloudfunctions/v1beta2.ts index e177a05db0..1df98fc3e6 100644 --- a/src/apis/cloudfunctions/v1beta2.ts +++ b/src/apis/cloudfunctions/v1beta2.ts @@ -411,6 +411,10 @@ export namespace cloudfunctions_v1beta2 { * Metadata describing an Operation */ export interface Schema$OperationMetadataV1 { + /** + * The Cloud Build ID of the function created or updated by an API call. This field is only populated for Create and Update operations. + */ + buildId?: string | null; /** * The original request that started the operation. */