google-cloud-deploy-v1 0.1.3 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bfeb31ed82dbd66844d9a53a60f93c274e5e2c4dbe4f4c6f77f817da557bee7
4
- data.tar.gz: 84853c66a7835fe56bde68c4a1190e08bc3b6877204b5289a7906ddaed1302f0
3
+ metadata.gz: 8f9b2308f2364c47dee757a4335b8097a99b57504197c107c96d21b3b3fd505a
4
+ data.tar.gz: e643e988628bbd79d0ec405650a44c71db309cadbe6974f0c6664cb920f6c746
5
5
  SHA512:
6
- metadata.gz: ab231629ed9c420571684ab209ef1ae9ab73dd1bd9ac75cb754a8704a892a570ba6e5cc6719d4ced084f27f2f8a4831bec383ac6059b55ea04ad96b8084d0a9e
7
- data.tar.gz: f79b60257dace292886c4f34edfa515af4af9321d69fe8c0ab27ecdc3d84b9e49bf275c351ab34e64923428c56ad3ca5a276df17a55a8754e599a661abc10906
6
+ metadata.gz: 4e9e578f13c8d654937ef160e6e80231419abe5c3a4131ac6263da12ae7b11fc86a6f75da350ba38d4ed5162ceeda6b884902e262a924e7410e3e8d8d3b1daaa
7
+ data.tar.gz: cc08661ba0148bcc1a9fc50b15a4e5deddcca0e202f3eded8682201f1f2821ced2485e18c26b8968db01ed085a6b2d48a7a5522f25e9bdb397e2a6a07b7ea726
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Deploy::V1::ListDeliveryPipelinesRequest.new # (reque
37
37
  response = client.list_delivery_pipelines request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-deploy-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-deploy-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/deploy/)
@@ -254,7 +254,7 @@ module Google
254
254
  # When paginating, all other provided parameters match
255
255
  # the call that provided the page token.
256
256
  # @param filter [::String]
257
- # Filter builds to be returned. See https://google.aip.dev/160 for more
257
+ # Filter pipelines to be returned. See https://google.aip.dev/160 for more
258
258
  # details.
259
259
  # @param order_by [::String]
260
260
  # Field to sort by. See https://google.aip.dev/132#ordering for more details.
@@ -804,7 +804,7 @@ module Google
804
804
  # When paginating, all other provided parameters match
805
805
  # the call that provided the page token.
806
806
  # @param filter [::String]
807
- # Optional. Filter builds to be returned. See https://google.aip.dev/160 for more
807
+ # Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
808
808
  # details.
809
809
  # @param order_by [::String]
810
810
  # Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
@@ -1350,7 +1350,7 @@ module Google
1350
1350
  # When paginating, all other provided parameters match
1351
1351
  # the call that provided the page token.
1352
1352
  # @param filter [::String]
1353
- # Optional. Filter builds to be returned. See https://google.aip.dev/160 for more
1353
+ # Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
1354
1354
  # details.
1355
1355
  # @param order_by [::String]
1356
1356
  # Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
@@ -1748,7 +1748,7 @@ module Google
1748
1748
  # When paginating, all other provided parameters match
1749
1749
  # the call that provided the page token.
1750
1750
  # @param filter [::String]
1751
- # Optional. Filter builds to be returned. See https://google.aip.dev/160 for more
1751
+ # Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
1752
1752
  # details.
1753
1753
  # @param order_by [::String]
1754
1754
  # Optional. Field to sort by. See https://google.aip.dev/132#ordering for more details.
@@ -115,6 +115,25 @@ module Google
115
115
  "projects/#{project}/locations/#{location}"
116
116
  end
117
117
 
118
+ ##
119
+ # Create a fully-qualified Membership resource string.
120
+ #
121
+ # The resource will be in the following format:
122
+ #
123
+ # `projects/{project}/locations/{location}/memberships/{membership}`
124
+ #
125
+ # @param project [String]
126
+ # @param location [String]
127
+ # @param membership [String]
128
+ #
129
+ # @return [::String]
130
+ def membership_path project:, location:, membership:
131
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
132
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
133
+
134
+ "projects/#{project}/locations/#{location}/memberships/#{membership}"
135
+ end
136
+
118
137
  ##
119
138
  # Create a fully-qualified Release resource string.
120
139
  #
@@ -98,10 +98,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
98
98
  repeated :execution_configs, :message, 16, "google.cloud.deploy.v1.ExecutionConfig"
99
99
  oneof :deployment_target do
100
100
  optional :gke, :message, 15, "google.cloud.deploy.v1.GkeCluster"
101
+ optional :anthos_cluster, :message, 17, "google.cloud.deploy.v1.AnthosCluster"
101
102
  end
102
103
  end
103
104
  add_message "google.cloud.deploy.v1.ExecutionConfig" do
104
105
  repeated :usages, :enum, 1, "google.cloud.deploy.v1.ExecutionConfig.ExecutionEnvironmentUsage"
106
+ optional :worker_pool, :string, 4
107
+ optional :service_account, :string, 5
108
+ optional :artifact_storage, :string, 6
105
109
  oneof :execution_environment do
106
110
  optional :default_pool, :message, 2, "google.cloud.deploy.v1.DefaultPool"
107
111
  optional :private_pool, :message, 3, "google.cloud.deploy.v1.PrivatePool"
@@ -123,6 +127,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
123
127
  end
124
128
  add_message "google.cloud.deploy.v1.GkeCluster" do
125
129
  optional :cluster, :string, 1
130
+ optional :internal_ip, :bool, 2
131
+ end
132
+ add_message "google.cloud.deploy.v1.AnthosCluster" do
133
+ optional :membership, :string, 1
126
134
  end
127
135
  add_message "google.cloud.deploy.v1.ListTargetsRequest" do
128
136
  optional :parent, :string, 1
@@ -183,6 +191,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
183
191
  add_message "google.cloud.deploy.v1.Release.TargetRender" do
184
192
  optional :rendering_build, :string, 1
185
193
  optional :rendering_state, :enum, 2, "google.cloud.deploy.v1.Release.TargetRender.TargetRenderState"
194
+ optional :failure_cause, :enum, 4, "google.cloud.deploy.v1.Release.TargetRender.FailureCause"
186
195
  end
187
196
  add_enum "google.cloud.deploy.v1.Release.TargetRender.TargetRenderState" do
188
197
  value :TARGET_RENDER_STATE_UNSPECIFIED, 0
@@ -190,6 +199,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
190
199
  value :FAILED, 2
191
200
  value :IN_PROGRESS, 3
192
201
  end
202
+ add_enum "google.cloud.deploy.v1.Release.TargetRender.FailureCause" do
203
+ value :FAILURE_CAUSE_UNSPECIFIED, 0
204
+ value :CLOUD_BUILD_UNAVAILABLE, 1
205
+ value :EXECUTION_FAILED, 2
206
+ end
193
207
  add_enum "google.cloud.deploy.v1.Release.RenderState" do
194
208
  value :RENDER_STATE_UNSPECIFIED, 0
195
209
  value :SUCCEEDED, 1
@@ -246,6 +260,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
246
260
  optional :failure_reason, :string, 14
247
261
  optional :deploying_build, :string, 17
248
262
  optional :etag, :string, 16
263
+ optional :deploy_failure_cause, :enum, 19, "google.cloud.deploy.v1.Rollout.FailureCause"
249
264
  end
250
265
  add_enum "google.cloud.deploy.v1.Rollout.ApprovalState" do
251
266
  value :APPROVAL_STATE_UNSPECIFIED, 0
@@ -264,6 +279,13 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
264
279
  value :PENDING, 6
265
280
  value :PENDING_RELEASE, 7
266
281
  end
282
+ add_enum "google.cloud.deploy.v1.Rollout.FailureCause" do
283
+ value :FAILURE_CAUSE_UNSPECIFIED, 0
284
+ value :CLOUD_BUILD_UNAVAILABLE, 1
285
+ value :EXECUTION_FAILED, 2
286
+ value :DEADLINE_EXCEEDED, 3
287
+ value :RELEASE_FAILED, 4
288
+ end
267
289
  add_message "google.cloud.deploy.v1.ListRolloutsRequest" do
268
290
  optional :parent, :string, 1
269
291
  optional :page_size, :int32, 2
@@ -338,6 +360,7 @@ module Google
338
360
  DefaultPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.DefaultPool").msgclass
339
361
  PrivatePool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.PrivatePool").msgclass
340
362
  GkeCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.GkeCluster").msgclass
363
+ AnthosCluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.AnthosCluster").msgclass
341
364
  ListTargetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListTargetsRequest").msgclass
342
365
  ListTargetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListTargetsResponse").msgclass
343
366
  GetTargetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.GetTargetRequest").msgclass
@@ -347,6 +370,7 @@ module Google
347
370
  Release = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release").msgclass
348
371
  Release::TargetRender = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.TargetRender").msgclass
349
372
  Release::TargetRender::TargetRenderState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.TargetRender.TargetRenderState").enummodule
373
+ Release::TargetRender::FailureCause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.TargetRender.FailureCause").enummodule
350
374
  Release::RenderState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Release.RenderState").enummodule
351
375
  BuildArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.BuildArtifact").msgclass
352
376
  TargetArtifact = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.TargetArtifact").msgclass
@@ -357,6 +381,7 @@ module Google
357
381
  Rollout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout").msgclass
358
382
  Rollout::ApprovalState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout.ApprovalState").enummodule
359
383
  Rollout::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout.State").enummodule
384
+ Rollout::FailureCause = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Rollout.FailureCause").enummodule
360
385
  ListRolloutsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListRolloutsRequest").msgclass
361
386
  ListRolloutsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ListRolloutsResponse").msgclass
362
387
  GetRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.GetRolloutRequest").msgclass
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/deploy/v1/deliverypipeline_notification_payload.proto
3
+
4
+ require 'google/cloud/deploy/v1/log_enums_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/deploy/v1/deliverypipeline_notification_payload.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.deploy.v1.DeliveryPipelineNotificationEvent" do
10
+ optional :message, :string, 1
11
+ optional :delivery_pipeline, :string, 2
12
+ optional :type, :enum, 3, "google.cloud.deploy.v1.Type"
13
+ end
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Cloud
19
+ module Deploy
20
+ module V1
21
+ DeliveryPipelineNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.DeliveryPipelineNotificationEvent").msgclass
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,24 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/deploy/v1/log_enums.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/cloud/deploy/v1/log_enums.proto", :syntax => :proto3) do
8
+ add_enum "google.cloud.deploy.v1.Type" do
9
+ value :TYPE_UNSPECIFIED, 0
10
+ value :TYPE_PUBSUB_NOTIFICATION_FAILURE, 1
11
+ value :TYPE_RENDER_STATUES_CHANGE, 2
12
+ end
13
+ end
14
+ end
15
+
16
+ module Google
17
+ module Cloud
18
+ module Deploy
19
+ module V1
20
+ Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.Type").enummodule
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/deploy/v1/release_notification_payload.proto
3
+
4
+ require 'google/cloud/deploy/v1/log_enums_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/deploy/v1/release_notification_payload.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.deploy.v1.ReleaseNotificationEvent" do
10
+ optional :message, :string, 1
11
+ optional :release, :string, 2
12
+ optional :type, :enum, 3, "google.cloud.deploy.v1.Type"
13
+ end
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Cloud
19
+ module Deploy
20
+ module V1
21
+ ReleaseNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ReleaseNotificationEvent").msgclass
22
+ end
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,23 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/deploy/v1/release_render_payload.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ Google::Protobuf::DescriptorPool.generated_pool.build do
7
+ add_file("google/cloud/deploy/v1/release_render_payload.proto", :syntax => :proto3) do
8
+ add_message "google.cloud.deploy.v1.ReleaseRenderEvent" do
9
+ optional :message, :string, 1
10
+ optional :release, :string, 2
11
+ end
12
+ end
13
+ end
14
+
15
+ module Google
16
+ module Cloud
17
+ module Deploy
18
+ module V1
19
+ ReleaseRenderEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.ReleaseRenderEvent").msgclass
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,28 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/deploy/v1/rollout_notification_payload.proto
3
+
4
+ require 'google/cloud/deploy/v1/log_enums_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/deploy/v1/rollout_notification_payload.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.deploy.v1.RolloutNotificationEvent" do
10
+ optional :message, :string, 1
11
+ optional :pipeline_uid, :string, 2
12
+ optional :release_uid, :string, 3
13
+ optional :rollout, :string, 4
14
+ optional :type, :enum, 5, "google.cloud.deploy.v1.Type"
15
+ optional :target_id, :string, 6
16
+ end
17
+ end
18
+ end
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ RolloutNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.RolloutNotificationEvent").msgclass
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,25 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/deploy/v1/target_notification_payload.proto
3
+
4
+ require 'google/cloud/deploy/v1/log_enums_pb'
5
+ require 'google/protobuf'
6
+
7
+ Google::Protobuf::DescriptorPool.generated_pool.build do
8
+ add_file("google/cloud/deploy/v1/target_notification_payload.proto", :syntax => :proto3) do
9
+ add_message "google.cloud.deploy.v1.TargetNotificationEvent" do
10
+ optional :message, :string, 1
11
+ optional :target, :string, 2
12
+ optional :type, :enum, 3, "google.cloud.deploy.v1.Type"
13
+ end
14
+ end
15
+ end
16
+
17
+ module Google
18
+ module Cloud
19
+ module Deploy
20
+ module V1
21
+ TargetNotificationEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.deploy.v1.TargetNotificationEvent").msgclass
22
+ end
23
+ end
24
+ end
25
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Deploy
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/deploy/v1"
29
31
  # client = ::Google::Cloud::Deploy::V1::CloudDeploy::Client.new
30
32
  #
@@ -45,10 +45,16 @@ module Google
45
45
  # @return [::Google::Protobuf::Map{::String => ::String}]
46
46
  # Labels are attributes that can be set and used by both the
47
47
  # user and by Google Cloud Deploy. Labels must meet the following
48
- # constraints: Each resource is limited to 64 labels. Keys must conform to
49
- # the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the
50
- # regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally
51
- # constrained to be <= 128 bytes in size.
48
+ # constraints:
49
+ #
50
+ # * Keys and values can contain only lowercase letters, numeric characters,
51
+ # underscores, and dashes.
52
+ # * All characters must use UTF-8 encoding, and international characters are
53
+ # allowed.
54
+ # * Keys must start with a lowercase letter or international character.
55
+ # * Each resource is limited to a maximum of 64 labels.
56
+ #
57
+ # Both keys and values are additionally constrained to be <= 128 bytes.
52
58
  # @!attribute [r] create_time
53
59
  # @return [::Google::Protobuf::Timestamp]
54
60
  # Output only. Time at which the pipeline was created.
@@ -106,9 +112,9 @@ module Google
106
112
  # The target_id to which this stage points. This field refers exclusively to
107
113
  # the last segment of a target name. For example, this field would just be
108
114
  # `my-target` (rather than
109
- # `projects/project/deliveryPipelines/pipeline/targets/my-target`). The
110
- # parent `DeliveryPipeline` of the `Target` is inferred to be the parent
111
- # `DeliveryPipeline` of the `Release` in which this `Stage` lives.
115
+ # `projects/project/locations/location/targets/my-target`). The location of
116
+ # the `Target` is inferred to be the same as the location of the
117
+ # `DeliveryPipeline` that contains this `Stage`.
112
118
  # @!attribute [rw] profiles
113
119
  # @return [::Array<::String>]
114
120
  # Skaffold profiles to use when rendering the manifest for this stage's
@@ -183,7 +189,7 @@ module Google
183
189
  # the call that provided the page token.
184
190
  # @!attribute [rw] filter
185
191
  # @return [::String]
186
- # Filter builds to be returned. See https://google.aip.dev/160 for more
192
+ # Filter pipelines to be returned. See https://google.aip.dev/160 for more
187
193
  # details.
188
194
  # @!attribute [rw] order_by
189
195
  # @return [::String]
@@ -342,8 +348,8 @@ module Google
342
348
  # can be deployed.
343
349
  # @!attribute [rw] name
344
350
  # @return [::String]
345
- # Optional. Name of the `Target`. Format is projects/\\{project}/locations/\\{location}/
346
- # deliveryPipelines/\\{deliveryPipeline}/targets/[a-z][a-z0-9\-]\\{0,62}.
351
+ # Optional. Name of the `Target`. Format is
352
+ # projects/\\{project}/locations/\\{location}/targets/[a-z][a-z0-9\-]\\{0,62}.
347
353
  # @!attribute [r] target_id
348
354
  # @return [::String]
349
355
  # Output only. Resource id of the `Target`.
@@ -363,10 +369,16 @@ module Google
363
369
  # @return [::Google::Protobuf::Map{::String => ::String}]
364
370
  # Optional. Labels are attributes that can be set and used by both the
365
371
  # user and by Google Cloud Deploy. Labels must meet the following
366
- # constraints: Each resource is limited to 64 labels. Keys must conform to
367
- # the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the
368
- # regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally
369
- # constrained to be <= 128 bytes in size.
372
+ # constraints:
373
+ #
374
+ # * Keys and values can contain only lowercase letters, numeric characters,
375
+ # underscores, and dashes.
376
+ # * All characters must use UTF-8 encoding, and international characters are
377
+ # allowed.
378
+ # * Keys must start with a lowercase letter or international character.
379
+ # * Each resource is limited to a maximum of 64 labels.
380
+ #
381
+ # Both keys and values are additionally constrained to be <= 128 bytes.
370
382
  # @!attribute [rw] require_approval
371
383
  # @return [::Boolean]
372
384
  # Optional. Whether or not the `Target` requires approval.
@@ -379,6 +391,9 @@ module Google
379
391
  # @!attribute [rw] gke
380
392
  # @return [::Google::Cloud::Deploy::V1::GkeCluster]
381
393
  # Information specifying a GKE Cluster.
394
+ # @!attribute [rw] anthos_cluster
395
+ # @return [::Google::Cloud::Deploy::V1::AnthosCluster]
396
+ # Information specifying an Anthos Cluster.
382
397
  # @!attribute [rw] etag
383
398
  # @return [::String]
384
399
  # Optional. This checksum is computed by the server based on the value of other
@@ -426,6 +441,23 @@ module Google
426
441
  # @!attribute [rw] private_pool
427
442
  # @return [::Google::Cloud::Deploy::V1::PrivatePool]
428
443
  # Optional. Use private Cloud Build pool.
444
+ # @!attribute [rw] worker_pool
445
+ # @return [::String]
446
+ # Optional. The resource name of the `WorkerPool`, with the format
447
+ # `projects/{project}/locations/{location}/workerPools/{worker_pool}`.
448
+ # If this optional field is unspecified, the default Cloud Build pool will be
449
+ # used.
450
+ # @!attribute [rw] service_account
451
+ # @return [::String]
452
+ # Optional. Google service account to use for execution. If unspecified,
453
+ # the project execution service account
454
+ # (<PROJECT_NUMBER>-compute@developer.gserviceaccount.com) is used.
455
+ # @!attribute [rw] artifact_storage
456
+ # @return [::String]
457
+ # Optional. Cloud Storage location in which to store execution outputs. This can
458
+ # either be a bucket ("gs://my-bucket") or a path within a bucket
459
+ # ("gs://my-bucket/my-dir").
460
+ # If unspecified, a default bucket located in the same region will be used.
429
461
  class ExecutionConfig
430
462
  include ::Google::Protobuf::MessageExts
431
463
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -486,11 +518,32 @@ module Google
486
518
  # @return [::String]
487
519
  # Information specifying a GKE Cluster. Format is
488
520
  # `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}.
521
+ # @!attribute [rw] internal_ip
522
+ # @return [::Boolean]
523
+ # Optional. If true, `cluster` is accessed using the private IP address of the control
524
+ # plane endpoint. Otherwise, the default IP address of the control plane
525
+ # endpoint is used. The default IP address is the private IP address for
526
+ # clusters with private control-plane endpoints and the public IP address
527
+ # otherwise.
528
+ #
529
+ # Only specify this option when `cluster` is a [private GKE
530
+ # cluster](https://cloud.google.com/kubernetes-engine/docs/concepts/private-cluster-concept).
489
531
  class GkeCluster
490
532
  include ::Google::Protobuf::MessageExts
491
533
  extend ::Google::Protobuf::MessageExts::ClassMethods
492
534
  end
493
535
 
536
+ # Information specifying an Anthos Cluster.
537
+ # @!attribute [rw] membership
538
+ # @return [::String]
539
+ # Membership of the GKE Hub-registered cluster to which to apply the Skaffold
540
+ # configuration. Format is
541
+ # `projects/{project}/locations/{location}/memberships/{membership_name}`.
542
+ class AnthosCluster
543
+ include ::Google::Protobuf::MessageExts
544
+ extend ::Google::Protobuf::MessageExts::ClassMethods
545
+ end
546
+
494
547
  # The request object for `ListTargets`.
495
548
  # @!attribute [rw] parent
496
549
  # @return [::String]
@@ -510,7 +563,7 @@ module Google
510
563
  # the call that provided the page token.
511
564
  # @!attribute [rw] filter
512
565
  # @return [::String]
513
- # Optional. Filter builds to be returned. See https://google.aip.dev/160 for more
566
+ # Optional. Filter targets to be returned. See https://google.aip.dev/160 for more
514
567
  # details.
515
568
  # @!attribute [rw] order_by
516
569
  # @return [::String]
@@ -684,10 +737,16 @@ module Google
684
737
  # @return [::Google::Protobuf::Map{::String => ::String}]
685
738
  # Labels are attributes that can be set and used by both the
686
739
  # user and by Google Cloud Deploy. Labels must meet the following
687
- # constraints: Each resource is limited to 64 labels. Keys must conform to
688
- # the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the
689
- # regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally
690
- # constrained to be <= 128 bytes in size.
740
+ # constraints:
741
+ #
742
+ # * Keys and values can contain only lowercase letters, numeric characters,
743
+ # underscores, and dashes.
744
+ # * All characters must use UTF-8 encoding, and international characters are
745
+ # allowed.
746
+ # * Keys must start with a lowercase letter or international character.
747
+ # * Each resource is limited to a maximum of 64 labels.
748
+ #
749
+ # Both keys and values are additionally constrained to be <= 128 bytes.
691
750
  # @!attribute [r] create_time
692
751
  # @return [::Google::Protobuf::Timestamp]
693
752
  # Output only. Time at which the `Release` was created.
@@ -711,7 +770,7 @@ module Google
711
770
  # Output only. Snapshot of the parent pipeline taken at release creation time.
712
771
  # @!attribute [r] target_snapshots
713
772
  # @return [::Array<::Google::Cloud::Deploy::V1::Target>]
714
- # Output only. Snapshot of the parent pipeline's targets taken at release creation time.
773
+ # Output only. Snapshot of the targets taken at release creation time.
715
774
  # @!attribute [r] render_state
716
775
  # @return [::Google::Cloud::Deploy::V1::Release::RenderState]
717
776
  # Output only. Current state of the render operation.
@@ -747,6 +806,10 @@ module Google
747
806
  # @!attribute [r] rendering_state
748
807
  # @return [::Google::Cloud::Deploy::V1::Release::TargetRender::TargetRenderState]
749
808
  # Output only. Current state of the render operation for this Target.
809
+ # @!attribute [r] failure_cause
810
+ # @return [::Google::Cloud::Deploy::V1::Release::TargetRender::FailureCause]
811
+ # Output only. Reason this render failed. This will always be unspecified while the
812
+ # render in progress.
750
813
  class TargetRender
751
814
  include ::Google::Protobuf::MessageExts
752
815
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -765,6 +828,21 @@ module Google
765
828
  # The render operation is in progress.
766
829
  IN_PROGRESS = 3
767
830
  end
831
+
832
+ # Well-known rendering failures.
833
+ module FailureCause
834
+ # No reason for failure is specified.
835
+ FAILURE_CAUSE_UNSPECIFIED = 0
836
+
837
+ # Cloud Build is not available, either because it is not enabled or
838
+ # because Cloud Deploy has insufficient permissions. See [required
839
+ # permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
840
+ CLOUD_BUILD_UNAVAILABLE = 1
841
+
842
+ # The render operation did not complete successfully; check Cloud Build
843
+ # logs.
844
+ EXECUTION_FAILED = 2
845
+ end
768
846
  end
769
847
 
770
848
  # @!attribute [rw] key
@@ -868,7 +946,7 @@ module Google
868
946
  # the call that provided the page token.
869
947
  # @!attribute [rw] filter
870
948
  # @return [::String]
871
- # Optional. Filter builds to be returned. See https://google.aip.dev/160 for more
949
+ # Optional. Filter releases to be returned. See https://google.aip.dev/160 for more
872
950
  # details.
873
951
  # @!attribute [rw] order_by
874
952
  # @return [::String]
@@ -965,10 +1043,16 @@ module Google
965
1043
  # @return [::Google::Protobuf::Map{::String => ::String}]
966
1044
  # Labels are attributes that can be set and used by both the
967
1045
  # user and by Google Cloud Deploy. Labels must meet the following
968
- # constraints: Each resource is limited to 64 labels. Keys must conform to
969
- # the regexp: `[a-zA-Z][a-zA-Z0-9_-]{0,62}`. Values must conform to the
970
- # regexp: `[a-zA-Z0-9_-]{0,63}`. Both keys and values are additionally
971
- # constrained to be <= 128 bytes in size.
1046
+ # constraints:
1047
+ #
1048
+ # * Keys and values can contain only lowercase letters, numeric characters,
1049
+ # underscores, and dashes.
1050
+ # * All characters must use UTF-8 encoding, and international characters are
1051
+ # allowed.
1052
+ # * Keys must start with a lowercase letter or international character.
1053
+ # * Each resource is limited to a maximum of 64 labels.
1054
+ #
1055
+ # Both keys and values are additionally constrained to be <= 128 bytes.
972
1056
  # @!attribute [r] create_time
973
1057
  # @return [::Google::Protobuf::Timestamp]
974
1058
  # Output only. Time at which the `Rollout` was created.
@@ -1006,6 +1090,10 @@ module Google
1006
1090
  # This checksum is computed by the server based on the value of other
1007
1091
  # fields, and may be sent on update and delete requests to ensure the
1008
1092
  # client has an up-to-date value before proceeding.
1093
+ # @!attribute [r] deploy_failure_cause
1094
+ # @return [::Google::Cloud::Deploy::V1::Rollout::FailureCause]
1095
+ # Output only. The reason this deploy failed. This will always be unspecified while the
1096
+ # deploy in progress.
1009
1097
  class Rollout
1010
1098
  include ::Google::Protobuf::MessageExts
1011
1099
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1073,6 +1161,27 @@ module Google
1073
1161
  # The `Rollout` is waiting for the `Release` to be fully rendered.
1074
1162
  PENDING_RELEASE = 7
1075
1163
  end
1164
+
1165
+ # Well-known deployment failures.
1166
+ module FailureCause
1167
+ # No reason for failure is specified.
1168
+ FAILURE_CAUSE_UNSPECIFIED = 0
1169
+
1170
+ # Cloud Build is not available, either because it is not enabled or because
1171
+ # Cloud Deploy has insufficient permissions. See [required
1172
+ # permission](/deploy/docs/cloud-deploy-service-account#required_permissions).
1173
+ CLOUD_BUILD_UNAVAILABLE = 1
1174
+
1175
+ # The deploy operation did not complete successfully; check Cloud Build
1176
+ # logs.
1177
+ EXECUTION_FAILED = 2
1178
+
1179
+ # Deployment did not complete within the alloted time.
1180
+ DEADLINE_EXCEEDED = 3
1181
+
1182
+ # Release is in a failed state.
1183
+ RELEASE_FAILED = 4
1184
+ end
1076
1185
  end
1077
1186
 
1078
1187
  # ListRolloutsRequest is the request object used by `ListRollouts`.
@@ -1093,7 +1202,7 @@ module Google
1093
1202
  # the call that provided the page token.
1094
1203
  # @!attribute [rw] filter
1095
1204
  # @return [::String]
1096
- # Optional. Filter builds to be returned. See https://google.aip.dev/160 for more
1205
+ # Optional. Filter rollouts to be returned. See https://google.aip.dev/160 for more
1097
1206
  # details.
1098
1207
  # @!attribute [rw] order_by
1099
1208
  # @return [::String]
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ # Payload proto for "clouddeploy.googleapis.com/deliverypipeline_notification"
25
+ # Platform Log event that describes the failure to send delivery pipeline
26
+ # status change Pub/Sub notification.
27
+ # @!attribute [rw] message
28
+ # @return [::String]
29
+ # Debug message for when a notification fails to send.
30
+ # @!attribute [rw] delivery_pipeline
31
+ # @return [::String]
32
+ # The name of the `Delivery Pipeline`.
33
+ # @!attribute [rw] type
34
+ # @return [::Google::Cloud::Deploy::V1::Type]
35
+ # Type of this notification, e.g. for a Pub/Sub failure.
36
+ class DeliveryPipelineNotificationEvent
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ # Type indicates the type of the log entry and can be used as a filter.
25
+ module Type
26
+ # Type is unspecified.
27
+ TYPE_UNSPECIFIED = 0
28
+
29
+ # A Pub/Sub notification failed to be sent.
30
+ TYPE_PUBSUB_NOTIFICATION_FAILURE = 1
31
+
32
+ # Release render status changed notification.
33
+ TYPE_RENDER_STATUES_CHANGE = 2
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ # Payload proto for "clouddeploy.googleapis.com/release_notification"
25
+ # Platform Log event that describes the failure to send release status change
26
+ # Pub/Sub notification.
27
+ # @!attribute [rw] message
28
+ # @return [::String]
29
+ # Debug message for when a notification fails to send.
30
+ # @!attribute [rw] release
31
+ # @return [::String]
32
+ # The name of the `Release`.
33
+ # @!attribute [rw] type
34
+ # @return [::Google::Cloud::Deploy::V1::Type]
35
+ # Type of this notification, e.g. for a Pub/Sub failure.
36
+ class ReleaseNotificationEvent
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ # Payload proto for "clouddeploy.googleapis.com/release_render"
25
+ # Platform Log event that describes the render status change.
26
+ # @!attribute [rw] message
27
+ # @return [::String]
28
+ # Debug message for when a render transition occurs. Provides further
29
+ # details as rendering progresses through render states.
30
+ # @!attribute [rw] release
31
+ # @return [::String]
32
+ # The name of the `Release`.
33
+ class ReleaseRenderEvent
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+ end
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ # Payload proto for "clouddeploy.googleapis.com/rollout_notification"
25
+ # Platform Log event that describes the failure to send rollout status change
26
+ # Pub/Sub notification.
27
+ # @!attribute [rw] message
28
+ # @return [::String]
29
+ # Debug message for when a notification fails to send.
30
+ # @!attribute [rw] pipeline_uid
31
+ # @return [::String]
32
+ # Unique identifier of the `DeliveryPipeline`.
33
+ # @!attribute [rw] release_uid
34
+ # @return [::String]
35
+ # Unique identifier of the `Release`.
36
+ # @!attribute [rw] rollout
37
+ # @return [::String]
38
+ # The name of the `Rollout`.
39
+ # @!attribute [rw] type
40
+ # @return [::Google::Cloud::Deploy::V1::Type]
41
+ # Type of this notification, e.g. for a Pub/Sub failure.
42
+ # @!attribute [rw] target_id
43
+ # @return [::String]
44
+ # ID of the `Target` that the rollout is deployed to.
45
+ class RolloutNotificationEvent
46
+ include ::Google::Protobuf::MessageExts
47
+ extend ::Google::Protobuf::MessageExts::ClassMethods
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,43 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Deploy
23
+ module V1
24
+ # Payload proto for "clouddeploy.googleapis.com/target_notification"
25
+ # Platform Log event that describes the failure to send target status change
26
+ # Pub/Sub notification.
27
+ # @!attribute [rw] message
28
+ # @return [::String]
29
+ # Debug message for when a notification fails to send.
30
+ # @!attribute [rw] target
31
+ # @return [::String]
32
+ # The name of the `Target`.
33
+ # @!attribute [rw] type
34
+ # @return [::Google::Cloud::Deploy::V1::Type]
35
+ # Type of this notification, e.g. for a Pub/Sub failure.
36
+ class TargetNotificationEvent
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+ end
41
+ end
42
+ end
43
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-deploy-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -179,11 +179,23 @@ files:
179
179
  - lib/google/cloud/deploy/v1/cloud_deploy/paths.rb
180
180
  - lib/google/cloud/deploy/v1/cloud_deploy_pb.rb
181
181
  - lib/google/cloud/deploy/v1/cloud_deploy_services_pb.rb
182
+ - lib/google/cloud/deploy/v1/deliverypipeline_notification_payload_pb.rb
183
+ - lib/google/cloud/deploy/v1/log_enums_pb.rb
184
+ - lib/google/cloud/deploy/v1/release_notification_payload_pb.rb
185
+ - lib/google/cloud/deploy/v1/release_render_payload_pb.rb
186
+ - lib/google/cloud/deploy/v1/rollout_notification_payload_pb.rb
187
+ - lib/google/cloud/deploy/v1/target_notification_payload_pb.rb
182
188
  - lib/google/cloud/deploy/v1/version.rb
183
189
  - proto_docs/README.md
184
190
  - proto_docs/google/api/field_behavior.rb
185
191
  - proto_docs/google/api/resource.rb
186
192
  - proto_docs/google/cloud/deploy/v1/cloud_deploy.rb
193
+ - proto_docs/google/cloud/deploy/v1/deliverypipeline_notification_payload.rb
194
+ - proto_docs/google/cloud/deploy/v1/log_enums.rb
195
+ - proto_docs/google/cloud/deploy/v1/release_notification_payload.rb
196
+ - proto_docs/google/cloud/deploy/v1/release_render_payload.rb
197
+ - proto_docs/google/cloud/deploy/v1/rollout_notification_payload.rb
198
+ - proto_docs/google/cloud/deploy/v1/target_notification_payload.rb
187
199
  - proto_docs/google/longrunning/operations.rb
188
200
  - proto_docs/google/protobuf/any.rb
189
201
  - proto_docs/google/protobuf/duration.rb
@@ -211,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
223
  - !ruby/object:Gem::Version
212
224
  version: '0'
213
225
  requirements: []
214
- rubygems_version: 3.3.4
226
+ rubygems_version: 3.3.5
215
227
  signing_key:
216
228
  specification_version: 4
217
229
  summary: API Client library for the Google Cloud Deploy V1 API