Skip to content

Commit

Permalink
feat(cloudfunctions): update the API
Browse files Browse the repository at this point in the history
#### 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
  • Loading branch information
yoshi-automation authored and JustinBeckwith committed Jul 14, 2020
1 parent a963672 commit 381c112
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 2 deletions.
10 changes: 9 additions & 1 deletion discovery/cloudfunctions-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@
}
}
},
"revision": "20200618",
"revision": "20200629",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"AuditConfig": {
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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.",
Expand Down
6 changes: 5 additions & 1 deletion discovery/cloudfunctions-v1beta2.json
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@
}
}
},
"revision": "20200510",
"revision": "20200629",
"rootUrl": "https://cloudfunctions.googleapis.com/",
"schemas": {
"CallFunctionRequest": {
Expand Down Expand Up @@ -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.",
Expand Down
11 changes: 11 additions & 0 deletions src/apis/cloudfunctions/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -1291,6 +1299,7 @@ export namespace cloudfunctions_v1 {
* // request body parameters
* // {
* // "availableMemoryMb": 0,
* // "buildId": "my_buildId",
* // "description": "my_description",
* // "entryPoint": "my_entryPoint",
* // "environmentVariables": {},
Expand Down Expand Up @@ -1889,6 +1898,7 @@ export namespace cloudfunctions_v1 {
* // Example response
* // {
* // "availableMemoryMb": 0,
* // "buildId": "my_buildId",
* // "description": "my_description",
* // "entryPoint": "my_entryPoint",
* // "environmentVariables": {},
Expand Down Expand Up @@ -2345,6 +2355,7 @@ export namespace cloudfunctions_v1 {
* // request body parameters
* // {
* // "availableMemoryMb": 0,
* // "buildId": "my_buildId",
* // "description": "my_description",
* // "entryPoint": "my_entryPoint",
* // "environmentVariables": {},
Expand Down
4 changes: 4 additions & 0 deletions src/apis/cloudfunctions/v1beta2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 381c112

Please # to comment.