google-cloud-build-v1 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dac16a1f36b562c307544c2c24b9b4d293cd1fc7d085b25b73407ecddebde110
4
- data.tar.gz: 95e447efb18e0223fedcae67c40037498c7f5fbdde71004b9270a1d4c9a68f2e
3
+ metadata.gz: e14397f73f85772741ab4f29c61e616ff344b2849c61c159008b144d73ce806a
4
+ data.tar.gz: 105bb0655d2e1446c2dd5948f59d2c57408c84871b416c04790245274d764558
5
5
  SHA512:
6
- metadata.gz: 56833ac3e3a4cca4cec7ba7828e561f3fc31c918199ee7427ffae463813986e49cb98dbb356d351e178ca303996c8aeea6dcbe81c039f2b86c7258ba662a7897
7
- data.tar.gz: 6b81017c15342c203957efd889e096549653214e1e0d012c6dfb0fa11b6678c073a28f1f0d3116089b35b62a992c6bc4ea7577ebd18b39fb53c8959f94aabe1e
6
+ metadata.gz: 68c1f52e0d3bd483d9295d017b1556f10394707e5737ccf99c0c4990f7e8543f0f87357b2fa8d2d262fb841902ad530b380492f915f35613ecbb91aafff4396c
7
+ data.tar.gz: d911e57ab8f8c00cda3c68d33ccae584f2917937dc194d613026c0c337be3d370824c5104f7f9dd8db9974be32a8f67e4a08efa733f8fb26aef5230cd38e045f
@@ -170,6 +170,40 @@ module Google
170
170
  "projects/#{project}/serviceAccounts/#{service_account}"
171
171
  end
172
172
 
173
+ ##
174
+ # Create a fully-qualified Subscription resource string.
175
+ #
176
+ # The resource will be in the following format:
177
+ #
178
+ # `projects/{project}/subscriptions/{subscription}`
179
+ #
180
+ # @param project [String]
181
+ # @param subscription [String]
182
+ #
183
+ # @return [::String]
184
+ def subscription_path project:, subscription:
185
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
186
+
187
+ "projects/#{project}/subscriptions/#{subscription}"
188
+ end
189
+
190
+ ##
191
+ # Create a fully-qualified Topic resource string.
192
+ #
193
+ # The resource will be in the following format:
194
+ #
195
+ # `projects/{project}/topics/{topic}`
196
+ #
197
+ # @param project [String]
198
+ # @param topic [String]
199
+ #
200
+ # @return [::String]
201
+ def topic_path project:, topic:
202
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
203
+
204
+ "projects/#{project}/topics/#{topic}"
205
+ end
206
+
173
207
  extend self
174
208
  end
175
209
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Build
23
23
  module V1
24
- VERSION = "0.5.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -205,11 +205,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
205
205
  repeated :tags, :string, 19
206
206
  optional :trigger_template, :message, 7, "google.devtools.cloudbuild.v1.RepoSource"
207
207
  optional :github, :message, 13, "google.devtools.cloudbuild.v1.GitHubEventsConfig"
208
+ optional :pubsub_config, :message, 29, "google.devtools.cloudbuild.v1.PubsubConfig"
208
209
  optional :create_time, :message, 5, "google.protobuf.Timestamp"
209
210
  optional :disabled, :bool, 9
210
211
  map :substitutions, :string, :string, 11
211
212
  repeated :ignored_files, :string, 15
212
213
  repeated :included_files, :string, 16
214
+ optional :filter, :string, 30
213
215
  oneof :build_template do
214
216
  optional :build, :message, 4, "google.devtools.cloudbuild.v1.Build"
215
217
  optional :filename, :string, 8
@@ -224,6 +226,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
224
226
  optional :push, :message, 5, "google.devtools.cloudbuild.v1.PushFilter"
225
227
  end
226
228
  end
229
+ add_message "google.devtools.cloudbuild.v1.PubsubConfig" do
230
+ optional :subscription, :string, 1
231
+ optional :topic, :string, 2
232
+ optional :service_account_email, :string, 3
233
+ optional :state, :enum, 4, "google.devtools.cloudbuild.v1.PubsubConfig.State"
234
+ end
235
+ add_enum "google.devtools.cloudbuild.v1.PubsubConfig.State" do
236
+ value :STATE_UNSPECIFIED, 0
237
+ value :OK, 1
238
+ value :SUBSCRIPTION_DELETED, 2
239
+ value :TOPIC_DELETED, 3
240
+ value :SUBSCRIPTION_MISCONFIGURED, 4
241
+ end
227
242
  add_message "google.devtools.cloudbuild.v1.PullRequestFilter" do
228
243
  optional :comment_control, :enum, 5, "google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl"
229
244
  optional :invert_regex, :bool, 6
@@ -414,6 +429,8 @@ module Google
414
429
  CancelBuildRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.CancelBuildRequest").msgclass
415
430
  BuildTrigger = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.BuildTrigger").msgclass
416
431
  GitHubEventsConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.GitHubEventsConfig").msgclass
432
+ PubsubConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig").msgclass
433
+ PubsubConfig::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PubsubConfig.State").enummodule
417
434
  PullRequestFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter").msgclass
418
435
  PullRequestFilter::CommentControl = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PullRequestFilter.CommentControl").enummodule
419
436
  PushFilter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudbuild.v1.PushFilter").msgclass
@@ -863,6 +863,10 @@ module Google
863
863
  # a build whenever a GitHub event is received.
864
864
  #
865
865
  # Mutually exclusive with `trigger_template`.
866
+ # @!attribute [rw] pubsub_config
867
+ # @return [::Google::Cloud::Build::V1::PubsubConfig]
868
+ # Optional. PubsubConfig describes the configuration of a trigger that
869
+ # creates a build whenever a Pub/Sub message is published.
866
870
  # @!attribute [rw] build
867
871
  # @return [::Google::Cloud::Build::V1::Build]
868
872
  # Contents of the build template.
@@ -901,6 +905,9 @@ module Google
901
905
  # filter and included_files is not empty, then we make sure that at
902
906
  # least one of those files matches a included_files glob. If not,
903
907
  # then we do not trigger a build.
908
+ # @!attribute [rw] filter
909
+ # @return [::String]
910
+ # Optional. A Common Expression Language string.
904
911
  class BuildTrigger
905
912
  include ::Google::Protobuf::MessageExts
906
913
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -942,6 +949,47 @@ module Google
942
949
  extend ::Google::Protobuf::MessageExts::ClassMethods
943
950
  end
944
951
 
952
+ # PubsubConfig describes the configuration of a trigger that
953
+ # creates a build whenever a Pub/Sub message is published.
954
+ # @!attribute [r] subscription
955
+ # @return [::String]
956
+ # Output only. Name of the subscription. Format is
957
+ # `projects/{project}/subscriptions/{subscription}`.
958
+ # @!attribute [rw] topic
959
+ # @return [::String]
960
+ # The name of the topic from which this subscription is receiving messages.
961
+ # Format is `projects/{project}/topics/{topic}`.
962
+ # @!attribute [rw] service_account_email
963
+ # @return [::String]
964
+ # Service account that will make the push request.
965
+ # @!attribute [rw] state
966
+ # @return [::Google::Cloud::Build::V1::PubsubConfig::State]
967
+ # Potential issues with the underlying Pub/Sub subscription configuration.
968
+ # Only populated on get requests.
969
+ class PubsubConfig
970
+ include ::Google::Protobuf::MessageExts
971
+ extend ::Google::Protobuf::MessageExts::ClassMethods
972
+
973
+ # Enumerates potential issues with the underlying Pub/Sub subscription
974
+ # configuration.
975
+ module State
976
+ # The subscription configuration has not been checked.
977
+ STATE_UNSPECIFIED = 0
978
+
979
+ # The Pub/Sub subscription is properly configured.
980
+ OK = 1
981
+
982
+ # The subscription has been deleted.
983
+ SUBSCRIPTION_DELETED = 2
984
+
985
+ # The topic has been deleted.
986
+ TOPIC_DELETED = 3
987
+
988
+ # Some of the subscription's field are misconfigured.
989
+ SUBSCRIPTION_MISCONFIGURED = 4
990
+ end
991
+ end
992
+
945
993
  # PullRequestFilter contains filter properties for matching GitHub Pull
946
994
  # Requests.
947
995
  # @!attribute [rw] branch
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-build-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-05 00:00:00.000000000 Z
11
+ date: 2021-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common