Skip to content

Commit

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

The following keys were added:
- schemas.BuildTrigger.properties.filter.description
- schemas.BuildTrigger.properties.filter.type
- schemas.BuildTrigger.properties.pubsubConfig.$ref
- schemas.BuildTrigger.properties.pubsubConfig.description
- schemas.PubsubConfig.description
- schemas.PubsubConfig.id
- schemas.PubsubConfig.properties.serviceAccountEmail.description
- schemas.PubsubConfig.properties.serviceAccountEmail.type
- schemas.PubsubConfig.properties.state.description
- schemas.PubsubConfig.properties.state.enum
- schemas.PubsubConfig.properties.state.enumDescriptions
- schemas.PubsubConfig.properties.state.type
- schemas.PubsubConfig.properties.subscription.description
- schemas.PubsubConfig.properties.subscription.readOnly
- schemas.PubsubConfig.properties.subscription.type
- schemas.PubsubConfig.properties.topic.description
- schemas.PubsubConfig.properties.topic.type
- schemas.PubsubConfig.type
  • Loading branch information
yoshi-automation authored and sofisl committed Apr 20, 2021
1 parent 038fd10 commit 063f5cc
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
48 changes: 47 additions & 1 deletion discovery/cloudbuild-v1.json
Expand Up @@ -819,7 +819,7 @@
}
}
},
"revision": "20210402",
"revision": "20210415",
"rootUrl": "https://cloudbuild.googleapis.com/",
"schemas": {
"ArtifactObjects": {
Expand Down Expand Up @@ -1321,6 +1321,10 @@
"description": "Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).",
"type": "string"
},
"filter": {
"description": "Optional. A Common Expression Language string.",
"type": "string"
},
"github": {
"$ref": "GitHubEventsConfig",
"description": "GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`."
Expand Down Expand Up @@ -1348,6 +1352,10 @@
"description": "User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.",
"type": "string"
},
"pubsubConfig": {
"$ref": "PubsubConfig",
"description": "Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published."
},
"substitutions": {
"additionalProperties": {
"type": "string"
Expand Down Expand Up @@ -1729,6 +1737,44 @@
},
"type": "object"
},
"PubsubConfig": {
"description": "PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.",
"id": "PubsubConfig",
"properties": {
"serviceAccountEmail": {
"description": "Service account that will make the push request.",
"type": "string"
},
"state": {
"description": "Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.",
"enum": [
"STATE_UNSPECIFIED",
"OK",
"SUBSCRIPTION_DELETED",
"TOPIC_DELETED",
"SUBSCRIPTION_MISCONFIGURED"
],
"enumDescriptions": [
"The subscription configuration has not been checked.",
"The Pub/Sub subscription is properly configured.",
"The subscription has been deleted.",
"The topic has been deleted.",
"Some of the subscription's field are misconfigured."
],
"type": "string"
},
"subscription": {
"description": "Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.",
"readOnly": true,
"type": "string"
},
"topic": {
"description": "The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.",
"type": "string"
}
},
"type": "object"
},
"PullRequestFilter": {
"description": "PullRequestFilter contains filter properties for matching GitHub Pull Requests.",
"id": "PullRequestFilter",
Expand Down
39 changes: 39 additions & 0 deletions src/apis/cloudbuild/v1.ts
Expand Up @@ -422,6 +422,10 @@ export namespace cloudbuild_v1 {
* Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
*/
filename?: string | null;
/**
* Optional. A Common Expression Language string.
*/
filter?: string | null;
/**
* GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
*/
Expand All @@ -442,6 +446,10 @@ export namespace cloudbuild_v1 {
* User-assigned name of the trigger. Must be unique within the project. Trigger names must meet the following requirements: + They must contain only alphanumeric characters and dashes. + They can be 1-64 characters long. + They must begin and end with an alphanumeric character.
*/
name?: string | null;
/**
* Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
*/
pubsubConfig?: Schema$PubsubConfig;
/**
* Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
*/
Expand Down Expand Up @@ -728,6 +736,27 @@ export namespace cloudbuild_v1 {
*/
response?: {[key: string]: any} | null;
}
/**
* PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
*/
export interface Schema$PubsubConfig {
/**
* Service account that will make the push request.
*/
serviceAccountEmail?: string | null;
/**
* Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
*/
state?: string | null;
/**
* Output only. Name of the subscription. Format is `projects/{project\}/subscriptions/{subscription\}`.
*/
subscription?: string | null;
/**
* The name of the topic from which this subscription is receiving messages. Format is `projects/{project\}/topics/{topic\}`.
*/
topic?: string | null;
}
/**
* PullRequestFilter contains filter properties for matching GitHub Pull Requests.
*/
Expand Down Expand Up @@ -3406,11 +3435,13 @@ export namespace cloudbuild_v1 {
* // "description": "my_description",
* // "disabled": false,
* // "filename": "my_filename",
* // "filter": "my_filter",
* // "github": {},
* // "id": "my_id",
* // "ignoredFiles": [],
* // "includedFiles": [],
* // "name": "my_name",
* // "pubsubConfig": {},
* // "substitutions": {},
* // "tags": [],
* // "triggerTemplate": {}
Expand All @@ -3426,11 +3457,13 @@ export namespace cloudbuild_v1 {
* // "description": "my_description",
* // "disabled": false,
* // "filename": "my_filename",
* // "filter": "my_filter",
* // "github": {},
* // "id": "my_id",
* // "ignoredFiles": [],
* // "includedFiles": [],
* // "name": "my_name",
* // "pubsubConfig": {},
* // "substitutions": {},
* // "tags": [],
* // "triggerTemplate": {}
Expand Down Expand Up @@ -3697,11 +3730,13 @@ export namespace cloudbuild_v1 {
* // "description": "my_description",
* // "disabled": false,
* // "filename": "my_filename",
* // "filter": "my_filter",
* // "github": {},
* // "id": "my_id",
* // "ignoredFiles": [],
* // "includedFiles": [],
* // "name": "my_name",
* // "pubsubConfig": {},
* // "substitutions": {},
* // "tags": [],
* // "triggerTemplate": {}
Expand Down Expand Up @@ -3980,11 +4015,13 @@ export namespace cloudbuild_v1 {
* // "description": "my_description",
* // "disabled": false,
* // "filename": "my_filename",
* // "filter": "my_filter",
* // "github": {},
* // "id": "my_id",
* // "ignoredFiles": [],
* // "includedFiles": [],
* // "name": "my_name",
* // "pubsubConfig": {},
* // "substitutions": {},
* // "tags": [],
* // "triggerTemplate": {}
Expand All @@ -4000,11 +4037,13 @@ export namespace cloudbuild_v1 {
* // "description": "my_description",
* // "disabled": false,
* // "filename": "my_filename",
* // "filter": "my_filter",
* // "github": {},
* // "id": "my_id",
* // "ignoredFiles": [],
* // "includedFiles": [],
* // "name": "my_name",
* // "pubsubConfig": {},
* // "substitutions": {},
* // "tags": [],
* // "triggerTemplate": {}
Expand Down

0 comments on commit 063f5cc

Please sign in to comment.