Skip to content

Commit 8b4a096

Browse files
feat(cloudbuild): update the api
#### cloudbuild:v1 The following keys were added: - schemas.BuildTrigger.properties.filter (Total Keys: 1) - schemas.BuildTrigger.properties.pubsubConfig (Total Keys: 1) - schemas.PubsubConfig (Total Keys: 7)
1 parent 5b8c4cc commit 8b4a096

File tree

5 files changed

+92
-4
lines changed

5 files changed

+92
-4
lines changed

docs/dyn/cloudbuild_v1.projects.triggers.html

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,7 @@ <h3>Method Details</h3>
334334
&quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
335335
&quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
336336
&quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
337+
&quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
337338
&quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
338339
&quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
339340
&quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
@@ -357,6 +358,12 @@ <h3>Method Details</h3>
357358
&quot;A String&quot;,
358359
],
359360
&quot;name&quot;: &quot;A String&quot;, # 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.
361+
&quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
362+
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
363+
&quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
364+
&quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
365+
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
366+
},
360367
&quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
361368
&quot;a_key&quot;: &quot;A String&quot;,
362369
},
@@ -603,6 +610,7 @@ <h3>Method Details</h3>
603610
&quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
604611
&quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
605612
&quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
613+
&quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
606614
&quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
607615
&quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
608616
&quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
@@ -626,6 +634,12 @@ <h3>Method Details</h3>
626634
&quot;A String&quot;,
627635
],
628636
&quot;name&quot;: &quot;A String&quot;, # 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.
637+
&quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
638+
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
639+
&quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
640+
&quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
641+
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
642+
},
629643
&quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
630644
&quot;a_key&quot;: &quot;A String&quot;,
631645
},
@@ -899,6 +913,7 @@ <h3>Method Details</h3>
899913
&quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
900914
&quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
901915
&quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
916+
&quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
902917
&quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
903918
&quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
904919
&quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
@@ -922,6 +937,12 @@ <h3>Method Details</h3>
922937
&quot;A String&quot;,
923938
],
924939
&quot;name&quot;: &quot;A String&quot;, # 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.
940+
&quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
941+
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
942+
&quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
943+
&quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
944+
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
945+
},
925946
&quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
926947
&quot;a_key&quot;: &quot;A String&quot;,
927948
},
@@ -1180,6 +1201,7 @@ <h3>Method Details</h3>
11801201
&quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
11811202
&quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
11821203
&quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
1204+
&quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
11831205
&quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
11841206
&quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
11851207
&quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
@@ -1203,6 +1225,12 @@ <h3>Method Details</h3>
12031225
&quot;A String&quot;,
12041226
],
12051227
&quot;name&quot;: &quot;A String&quot;, # 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.
1228+
&quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
1229+
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1230+
&quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1231+
&quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1232+
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
1233+
},
12061234
&quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
12071235
&quot;a_key&quot;: &quot;A String&quot;,
12081236
},
@@ -1468,6 +1496,7 @@ <h3>Method Details</h3>
14681496
&quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
14691497
&quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
14701498
&quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
1499+
&quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
14711500
&quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
14721501
&quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
14731502
&quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
@@ -1491,6 +1520,12 @@ <h3>Method Details</h3>
14911520
&quot;A String&quot;,
14921521
],
14931522
&quot;name&quot;: &quot;A String&quot;, # 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.
1523+
&quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
1524+
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1525+
&quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1526+
&quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1527+
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
1528+
},
14941529
&quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
14951530
&quot;a_key&quot;: &quot;A String&quot;,
14961531
},
@@ -1737,6 +1772,7 @@ <h3>Method Details</h3>
17371772
&quot;description&quot;: &quot;A String&quot;, # Human-readable description of this trigger.
17381773
&quot;disabled&quot;: True or False, # If true, the trigger will never automatically execute a build.
17391774
&quot;filename&quot;: &quot;A String&quot;, # Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).
1775+
&quot;filter&quot;: &quot;A String&quot;, # Optional. A Common Expression Language string.
17401776
&quot;github&quot;: { # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. This message is experimental. # GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`.
17411777
&quot;installationId&quot;: &quot;A String&quot;, # The installationID that emits the GitHub event.
17421778
&quot;name&quot;: &quot;A String&quot;, # Name of the repository. For example: The name for https://github.com/googlecloudplatform/cloud-builders is &quot;cloud-builders&quot;.
@@ -1760,6 +1796,12 @@ <h3>Method Details</h3>
17601796
&quot;A String&quot;,
17611797
],
17621798
&quot;name&quot;: &quot;A String&quot;, # 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.
1799+
&quot;pubsubConfig&quot;: { # PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published. # Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.
1800+
&quot;serviceAccountEmail&quot;: &quot;A String&quot;, # Service account that will make the push request.
1801+
&quot;state&quot;: &quot;A String&quot;, # Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.
1802+
&quot;subscription&quot;: &quot;A String&quot;, # Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.
1803+
&quot;topic&quot;: &quot;A String&quot;, # The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.
1804+
},
17631805
&quot;substitutions&quot;: { # Substitutions for Build resource. The keys must match the following regular expression: `^_[A-Z0-9_]+$`.
17641806
&quot;a_key&quot;: &quot;A String&quot;,
17651807
},

googleapiclient/discovery_cache/documents/cloudbuild.v1.json

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@
819819
}
820820
}
821821
},
822-
"revision": "20210408",
822+
"revision": "20210415",
823823
"rootUrl": "https://cloudbuild.googleapis.com/",
824824
"schemas": {
825825
"ArtifactObjects": {
@@ -1321,6 +1321,10 @@
13211321
"description": "Path, from the source root, to the build configuration file (i.e. cloudbuild.yaml).",
13221322
"type": "string"
13231323
},
1324+
"filter": {
1325+
"description": "Optional. A Common Expression Language string.",
1326+
"type": "string"
1327+
},
13241328
"github": {
13251329
"$ref": "GitHubEventsConfig",
13261330
"description": "GitHubEventsConfig describes the configuration of a trigger that creates a build whenever a GitHub event is received. Mutually exclusive with `trigger_template`."
@@ -1348,6 +1352,10 @@
13481352
"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.",
13491353
"type": "string"
13501354
},
1355+
"pubsubConfig": {
1356+
"$ref": "PubsubConfig",
1357+
"description": "Optional. PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published."
1358+
},
13511359
"substitutions": {
13521360
"additionalProperties": {
13531361
"type": "string"
@@ -1729,6 +1737,44 @@
17291737
},
17301738
"type": "object"
17311739
},
1740+
"PubsubConfig": {
1741+
"description": "PubsubConfig describes the configuration of a trigger that creates a build whenever a Pub/Sub message is published.",
1742+
"id": "PubsubConfig",
1743+
"properties": {
1744+
"serviceAccountEmail": {
1745+
"description": "Service account that will make the push request.",
1746+
"type": "string"
1747+
},
1748+
"state": {
1749+
"description": "Potential issues with the underlying Pub/Sub subscription configuration. Only populated on get requests.",
1750+
"enum": [
1751+
"STATE_UNSPECIFIED",
1752+
"OK",
1753+
"SUBSCRIPTION_DELETED",
1754+
"TOPIC_DELETED",
1755+
"SUBSCRIPTION_MISCONFIGURED"
1756+
],
1757+
"enumDescriptions": [
1758+
"The subscription configuration has not been checked.",
1759+
"The Pub/Sub subscription is properly configured.",
1760+
"The subscription has been deleted.",
1761+
"The topic has been deleted.",
1762+
"Some of the subscription's field are misconfigured."
1763+
],
1764+
"type": "string"
1765+
},
1766+
"subscription": {
1767+
"description": "Output only. Name of the subscription. Format is `projects/{project}/subscriptions/{subscription}`.",
1768+
"readOnly": true,
1769+
"type": "string"
1770+
},
1771+
"topic": {
1772+
"description": "The name of the topic from which this subscription is receiving messages. Format is `projects/{project}/topics/{topic}`.",
1773+
"type": "string"
1774+
}
1775+
},
1776+
"type": "object"
1777+
},
17321778
"PullRequestFilter": {
17331779
"description": "PullRequestFilter contains filter properties for matching GitHub Pull Requests.",
17341780
"id": "PullRequestFilter",

googleapiclient/discovery_cache/documents/cloudbuild.v1alpha1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306
}
307307
}
308308
},
309-
"revision": "20210408",
309+
"revision": "20210415",
310310
"rootUrl": "https://cloudbuild.googleapis.com/",
311311
"schemas": {
312312
"ArtifactObjects": {

googleapiclient/discovery_cache/documents/cloudbuild.v1alpha2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
}
318318
}
319319
},
320-
"revision": "20210408",
320+
"revision": "20210415",
321321
"rootUrl": "https://cloudbuild.googleapis.com/",
322322
"schemas": {
323323
"ArtifactObjects": {

googleapiclient/discovery_cache/documents/cloudbuild.v1beta1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@
317317
}
318318
}
319319
},
320-
"revision": "20210408",
320+
"revision": "20210415",
321321
"rootUrl": "https://cloudbuild.googleapis.com/",
322322
"schemas": {
323323
"ArtifactObjects": {

0 commit comments

Comments
 (0)