google-cloud-run-v2 0.28.1 → 0.29.1

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.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/run/v2/build_pb.rb +4 -25
  4. data/lib/google/cloud/run/v2/builds/client.rb +11 -1
  5. data/lib/google/cloud/run/v2/builds/rest/client.rb +11 -1
  6. data/lib/google/cloud/run/v2/condition_pb.rb +3 -25
  7. data/lib/google/cloud/run/v2/container_status_pb.rb +21 -0
  8. data/lib/google/cloud/run/v2/execution_pb.rb +2 -26
  9. data/lib/google/cloud/run/v2/execution_template_pb.rb +2 -24
  10. data/lib/google/cloud/run/v2/executions/client.rb +2 -0
  11. data/lib/google/cloud/run/v2/executions/operations.rb +2 -0
  12. data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -0
  13. data/lib/google/cloud/run/v2/executions/rest/operations.rb +3 -1
  14. data/lib/google/cloud/run/v2/instance_pb.rb +42 -0
  15. data/lib/google/cloud/run/v2/instance_services_pb.rb +55 -0
  16. data/lib/google/cloud/run/v2/instance_split_pb.rb +2 -23
  17. data/lib/google/cloud/run/v2/instances/client.rb +1059 -0
  18. data/lib/google/cloud/run/v2/instances/credentials.rb +47 -0
  19. data/lib/google/cloud/run/v2/instances/operations.rb +851 -0
  20. data/lib/google/cloud/run/v2/instances/paths.rb +178 -0
  21. data/lib/google/cloud/run/v2/instances/rest/client.rb +962 -0
  22. data/lib/google/cloud/run/v2/instances/rest/operations.rb +1095 -0
  23. data/lib/google/cloud/run/v2/instances/rest/service_stub.rb +450 -0
  24. data/lib/google/cloud/run/v2/instances/rest.rb +53 -0
  25. data/lib/google/cloud/run/v2/instances.rb +56 -0
  26. data/lib/google/cloud/run/v2/job_pb.rb +3 -30
  27. data/lib/google/cloud/run/v2/jobs/client.rb +6 -4
  28. data/lib/google/cloud/run/v2/jobs/operations.rb +2 -0
  29. data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -0
  30. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +3 -1
  31. data/lib/google/cloud/run/v2/k8s.min_pb.rb +5 -24
  32. data/lib/google/cloud/run/v2/rest.rb +1 -0
  33. data/lib/google/cloud/run/v2/revision_pb.rb +2 -29
  34. data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -26
  35. data/lib/google/cloud/run/v2/revisions/client.rb +5 -3
  36. data/lib/google/cloud/run/v2/revisions/operations.rb +2 -0
  37. data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -0
  38. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +3 -1
  39. data/lib/google/cloud/run/v2/service_pb.rb +4 -30
  40. data/lib/google/cloud/run/v2/services/client.rb +5 -3
  41. data/lib/google/cloud/run/v2/services/operations.rb +2 -0
  42. data/lib/google/cloud/run/v2/services/rest/client.rb +2 -0
  43. data/lib/google/cloud/run/v2/services/rest/operations.rb +3 -1
  44. data/lib/google/cloud/run/v2/status_pb.rb +2 -23
  45. data/lib/google/cloud/run/v2/task_pb.rb +2 -29
  46. data/lib/google/cloud/run/v2/task_template_pb.rb +2 -26
  47. data/lib/google/cloud/run/v2/tasks/client.rb +2 -0
  48. data/lib/google/cloud/run/v2/tasks/rest/client.rb +2 -0
  49. data/lib/google/cloud/run/v2/traffic_target_pb.rb +2 -23
  50. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -24
  51. data/lib/google/cloud/run/v2/version.rb +1 -1
  52. data/lib/google/cloud/run/v2/worker_pool_pb.rb +3 -30
  53. data/lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb +3 -27
  54. data/lib/google/cloud/run/v2/worker_pools/client.rb +5 -3
  55. data/lib/google/cloud/run/v2/worker_pools/operations.rb +2 -0
  56. data/lib/google/cloud/run/v2/worker_pools/rest/client.rb +2 -0
  57. data/lib/google/cloud/run/v2/worker_pools/rest/operations.rb +3 -1
  58. data/lib/google/cloud/run/v2.rb +1 -0
  59. data/proto_docs/google/api/client.rb +149 -29
  60. data/proto_docs/google/api/routing.rb +7 -3
  61. data/proto_docs/google/cloud/run/v2/build.rb +11 -0
  62. data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
  63. data/proto_docs/google/cloud/run/v2/container_status.rb +42 -0
  64. data/proto_docs/google/cloud/run/v2/instance.rb +328 -0
  65. data/proto_docs/google/cloud/run/v2/job.rb +2 -2
  66. data/proto_docs/google/cloud/run/v2/k8s.min.rb +37 -2
  67. data/proto_docs/google/cloud/run/v2/service.rb +32 -7
  68. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +5 -0
  69. data/proto_docs/google/cloud/run/v2/worker_pool.rb +23 -22
  70. data/proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb +3 -0
  71. metadata +18 -4
@@ -34,6 +34,9 @@ module Google
34
34
  # Required. Name of the container image in Dockerhub, Google Artifact
35
35
  # Registry, or Google Container Registry. If the host is not provided,
36
36
  # Dockerhub is assumed.
37
+ # @!attribute [rw] source_code
38
+ # @return [::Google::Cloud::Run::V2::SourceCode]
39
+ # Optional. Location of the source.
37
40
  # @!attribute [rw] command
38
41
  # @return [::Array<::String>]
39
42
  # Entrypoint array. Not executed within a shell.
@@ -74,6 +77,9 @@ module Google
74
77
  # All other probes are disabled if a startup probe is provided, until it
75
78
  # succeeds. Container will not be added to service endpoints if the probe
76
79
  # fails.
80
+ # @!attribute [rw] readiness_probe
81
+ # @return [::Google::Cloud::Run::V2::Probe]
82
+ # Readiness probe to be used for health checks.
77
83
  # @!attribute [rw] depends_on
78
84
  # @return [::Array<::String>]
79
85
  # Names of the containers that must start before this container.
@@ -92,7 +98,7 @@ module Google
92
98
  # ResourceRequirements describes the compute resource requirements.
93
99
  # @!attribute [rw] limits
94
100
  # @return [::Google::Protobuf::Map{::String => ::String}]
95
- # Only `memory` and `cpu` keys in the map are supported.
101
+ # Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
96
102
  #
97
103
  # <p>Notes:
98
104
  # * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
@@ -100,6 +106,7 @@ module Google
100
106
  # https://cloud.google.com/run/docs/configuring/cpu.
101
107
  # * For supported 'memory' values and syntax, go to
102
108
  # https://cloud.google.com/run/docs/configuring/memory-limits
109
+ # * The only supported 'nvidia.com/gpu' value is '1'.
103
110
  # @!attribute [rw] cpu_idle
104
111
  # @return [::Boolean]
105
112
  # Determines whether CPU is only allocated during requests (true by default).
@@ -197,6 +204,10 @@ module Google
197
204
  # otherwise be `/cloudsql`. All instances defined in the Volume will be
198
205
  # available as `/cloudsql/[instance]`. For more information on Cloud SQL
199
206
  # volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
207
+ # @!attribute [rw] sub_path
208
+ # @return [::String]
209
+ # Optional. Path within the volume from which the container's volume should
210
+ # be mounted. Defaults to "" (volume's root).
200
211
  class VolumeMount
201
212
  include ::Google::Protobuf::MessageExts
202
213
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -250,7 +261,7 @@ module Google
250
261
  # @!attribute [rw] items
251
262
  # @return [::Array<::Google::Cloud::Run::V2::VersionToPath>]
252
263
  # If unspecified, the volume will expose a file whose name is the
253
- # secret, relative to VolumeMount.mount_path.
264
+ # secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
254
265
  # If specified, the key will be used as the version to fetch from Cloud
255
266
  # Secret Manager and the path will be the name of the file exposed in the
256
267
  # volume. When items are defined, they must specify a path and a version.
@@ -506,6 +517,30 @@ module Google
506
517
  include ::Google::Protobuf::MessageExts
507
518
  extend ::Google::Protobuf::MessageExts::ClassMethods
508
519
  end
520
+
521
+ # Source type for the container.
522
+ # @!attribute [rw] cloud_storage_source
523
+ # @return [::Google::Cloud::Run::V2::SourceCode::CloudStorageSource]
524
+ # The source is a Cloud Storage bucket.
525
+ class SourceCode
526
+ include ::Google::Protobuf::MessageExts
527
+ extend ::Google::Protobuf::MessageExts::ClassMethods
528
+
529
+ # Cloud Storage source.
530
+ # @!attribute [rw] bucket
531
+ # @return [::String]
532
+ # Required. The Cloud Storage bucket name.
533
+ # @!attribute [rw] object
534
+ # @return [::String]
535
+ # Required. The Cloud Storage object name.
536
+ # @!attribute [rw] generation
537
+ # @return [::Integer]
538
+ # Optional. The Cloud Storage object generation.
539
+ class CloudStorageSource
540
+ include ::Google::Protobuf::MessageExts
541
+ extend ::Google::Protobuf::MessageExts::ClassMethods
542
+ end
543
+ end
509
544
  end
510
545
  end
511
546
  end
@@ -95,6 +95,10 @@ module Google
95
95
  # @return [::String]
96
96
  # A token indicating there are more items than page_size. Use it in the next
97
97
  # ListServices request to continue.
98
+ # @!attribute [r] unreachable
99
+ # @return [::Array<::String>]
100
+ # Output only. For global requests, returns the list of regions that could
101
+ # not be reached within the deadline.
98
102
  class ListServicesResponse
99
103
  include ::Google::Protobuf::MessageExts
100
104
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -137,9 +141,9 @@ module Google
137
141
  # decisions such as rollout policy and team resource ownership.
138
142
  # @!attribute [rw] name
139
143
  # @return [::String]
140
- # The fully qualified name of this Service. In CreateServiceRequest, this
141
- # field is ignored, and instead composed from CreateServiceRequest.parent and
142
- # CreateServiceRequest.service_id.
144
+ # Identifier. The fully qualified name of this Service. In
145
+ # CreateServiceRequest, this field is ignored, and instead composed from
146
+ # CreateServiceRequest.parent and CreateServiceRequest.service_id.
143
147
  #
144
148
  # Format:
145
149
  # projects/\\{project}/locations/\\{location}/services/\\{service_id}
@@ -244,8 +248,7 @@ module Google
244
248
  # @!attribute [rw] invoker_iam_disabled
245
249
  # @return [::Boolean]
246
250
  # Optional. Disables IAM permission check for run.routes.invoke for callers
247
- # of this service. This feature is available by invitation only. For more
248
- # information, visit
251
+ # of this service. For more information, visit
249
252
  # https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
250
253
  # @!attribute [rw] default_uri_disabled
251
254
  # @return [::Boolean]
@@ -253,6 +256,12 @@ module Google
253
256
  # @!attribute [r] urls
254
257
  # @return [::Array<::String>]
255
258
  # Output only. All URLs serving traffic for this Service.
259
+ # @!attribute [rw] iap_enabled
260
+ # @return [::Boolean]
261
+ # Optional. IAP settings on the Service.
262
+ # @!attribute [rw] multi_region_settings
263
+ # @return [::Google::Cloud::Run::V2::Service::MultiRegionSettings]
264
+ # Optional. Settings for multi-region deployment.
256
265
  # @!attribute [rw] custom_audiences
257
266
  # @return [::Array<::String>]
258
267
  # One or more custom audiences that you want this service to support. Specify
@@ -300,6 +309,10 @@ module Google
300
309
  # @!attribute [r] satisfies_pzs
301
310
  # @return [::Boolean]
302
311
  # Output only. Reserved for future use.
312
+ # @!attribute [r] threat_detection_enabled
313
+ # @return [::Boolean]
314
+ # Output only. True if Cloud Run Threat Detection monitoring is enabled for
315
+ # the parent project of this Service.
303
316
  # @!attribute [rw] build_config
304
317
  # @return [::Google::Cloud::Run::V2::BuildConfig]
305
318
  # Optional. Configuration for building a Cloud Run function.
@@ -327,14 +340,26 @@ module Google
327
340
  # `latest_ready_revision` will have the state of the last serving revision,
328
341
  # or empty for newly created Services. Additional information on the failure
329
342
  # can be found in `terminal_condition` and `conditions`.
330
- # @!attribute [r] etag
343
+ # @!attribute [rw] etag
331
344
  # @return [::String]
332
- # Output only. A system-generated fingerprint for this version of the
345
+ # Optional. A system-generated fingerprint for this version of the
333
346
  # resource. May be used to detect modification conflict during updates.
334
347
  class Service
335
348
  include ::Google::Protobuf::MessageExts
336
349
  extend ::Google::Protobuf::MessageExts::ClassMethods
337
350
 
351
+ # Settings for multi-region deployment.
352
+ # @!attribute [rw] regions
353
+ # @return [::Array<::String>]
354
+ # Required. List of regions to deploy to, including primary region.
355
+ # @!attribute [rw] multi_region_id
356
+ # @return [::String]
357
+ # Optional. System-generated unique id for the multi-region Service.
358
+ class MultiRegionSettings
359
+ include ::Google::Protobuf::MessageExts
360
+ extend ::Google::Protobuf::MessageExts::ClassMethods
361
+ end
362
+
338
363
  # @!attribute [rw] key
339
364
  # @return [::String]
340
365
  # @!attribute [rw] value
@@ -140,6 +140,11 @@ module Google
140
140
  # @!attribute [rw] scaling_mode
141
141
  # @return [::Google::Cloud::Run::V2::ServiceScaling::ScalingMode]
142
142
  # Optional. The scaling mode for the service.
143
+ # @!attribute [rw] max_instance_count
144
+ # @return [::Integer]
145
+ # Optional. total max instances for the service. This number of instances is
146
+ # divided among all revisions with specified traffic based on the percent
147
+ # of traffic they are receiving.
143
148
  # @!attribute [rw] manual_instance_count
144
149
  # @return [::Integer]
145
150
  # Optional. total instance count for the service in manual scaling mode. This
@@ -253,7 +253,7 @@ module Google
253
253
  # Optional. Specifies worker-pool-level scaling settings
254
254
  # @!attribute [r] observed_generation
255
255
  # @return [::Integer]
256
- # Output only. The generation of this WorkerPool currently serving traffic.
256
+ # Output only. The generation of this WorkerPool currently serving workloads.
257
257
  # See comments in `reconciling` for additional information on reconciliation
258
258
  # process in Cloud Run. Please note that unlike v1, this is an int64 value.
259
259
  # As with most Google APIs, its JSON representation will be a `string`
@@ -272,7 +272,7 @@ module Google
272
272
  # information on reconciliation process in Cloud Run.
273
273
  # @!attribute [r] latest_ready_revision
274
274
  # @return [::String]
275
- # Output only. Name of the latest revision that is serving traffic. See
275
+ # Output only. Name of the latest revision that is serving workloads. See
276
276
  # comments in `reconciling` for additional information on reconciliation
277
277
  # process in Cloud Run.
278
278
  # @!attribute [r] latest_created_revision
@@ -285,13 +285,14 @@ module Google
285
285
  # Output only. Detailed status information for corresponding instance splits.
286
286
  # See comments in `reconciling` for additional information on reconciliation
287
287
  # process in Cloud Run.
288
+ # @!attribute [r] threat_detection_enabled
289
+ # @return [::Boolean]
290
+ # Output only. Indicates whether Cloud Run Threat Detection monitoring is
291
+ # enabled for the parent project of this worker pool.
288
292
  # @!attribute [rw] custom_audiences
293
+ # @deprecated This field is deprecated and may be removed in the next major version update.
289
294
  # @return [::Array<::String>]
290
- # One or more custom audiences that you want this worker pool to support.
291
- # Specify each custom audience as the full URL in a string. The custom
292
- # audiences are encoded in the token and used to authenticate requests. For
293
- # more information, see
294
- # https://cloud.google.com/run/docs/configuring/custom-audiences.
295
+ # Deprecated: Not supported, and ignored by Cloud Run.
295
296
  # @!attribute [r] satisfies_pzs
296
297
  # @return [::Boolean]
297
298
  # Output only. Reserved for future use.
@@ -304,24 +305,24 @@ module Google
304
305
  # will asynchronously perform all necessary steps to bring the WorkerPool to
305
306
  # the desired serving state. This process is called reconciliation. While
306
307
  # reconciliation is in process, `observed_generation`,
307
- # `latest_ready_revison`, `traffic_statuses`, and `uri` will have transient
308
- # values that might mismatch the intended state: Once reconciliation is over
309
- # (and this field is false), there are two possible outcomes: reconciliation
310
- # succeeded and the serving state matches the WorkerPool, or there was an
311
- # error, and reconciliation failed. This state can be found in
312
- # `terminal_condition.state`.
308
+ # `latest_ready_revison`, `instance_split_statuses`, and `uri` will have
309
+ # transient values that might mismatch the intended state: Once
310
+ # reconciliation is over (and this field is false), there are two possible
311
+ # outcomes: reconciliation succeeded and the serving state matches the
312
+ # WorkerPool, or there was an error, and reconciliation failed. This state
313
+ # can be found in `terminal_condition.state`.
313
314
  #
314
- # If reconciliation succeeded, the following fields will match: `traffic` and
315
- # `traffic_statuses`, `observed_generation` and `generation`,
316
- # `latest_ready_revision` and `latest_created_revision`.
315
+ # If reconciliation succeeded, the following fields will match:
316
+ # `instance_splits` and `instance_split_statuses`, `observed_generation` and
317
+ # `generation`, `latest_ready_revision` and `latest_created_revision`.
317
318
  #
318
- # If reconciliation failed, `traffic_statuses`, `observed_generation`, and
319
- # `latest_ready_revision` will have the state of the last serving revision,
320
- # or empty for newly created WorkerPools. Additional information on the
321
- # failure can be found in `terminal_condition` and `conditions`.
322
- # @!attribute [r] etag
319
+ # If reconciliation failed, `instance_split_statuses`, `observed_generation`,
320
+ # and `latest_ready_revision` will have the state of the last serving
321
+ # revision, or empty for newly created WorkerPools. Additional information on
322
+ # the failure can be found in `terminal_condition` and `conditions`.
323
+ # @!attribute [rw] etag
323
324
  # @return [::String]
324
- # Output only. A system-generated fingerprint for this version of the
325
+ # Optional. A system-generated fingerprint for this version of the
325
326
  # resource. May be used to detect modification conflict during updates.
326
327
  class WorkerPool
327
328
  include ::Google::Protobuf::MessageExts
@@ -89,6 +89,9 @@ module Google
89
89
  # @!attribute [rw] node_selector
90
90
  # @return [::Google::Cloud::Run::V2::NodeSelector]
91
91
  # Optional. The node selector for the revision template.
92
+ # @!attribute [rw] gpu_zonal_redundancy_disabled
93
+ # @return [::Boolean]
94
+ # Optional. True if GPU zonal redundancy is disabled on this worker pool.
92
95
  class WorkerPoolRevisionTemplate
93
96
  include ::Google::Protobuf::MessageExts
94
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-run-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.1
4
+ version: 0.29.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.2'
18
+ version: '1.3'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.2'
25
+ version: '1.3'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: google-cloud-errors
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +90,7 @@ files:
90
90
  - lib/google/cloud/run/v2/builds/rest/client.rb
91
91
  - lib/google/cloud/run/v2/builds/rest/service_stub.rb
92
92
  - lib/google/cloud/run/v2/condition_pb.rb
93
+ - lib/google/cloud/run/v2/container_status_pb.rb
93
94
  - lib/google/cloud/run/v2/execution_pb.rb
94
95
  - lib/google/cloud/run/v2/execution_services_pb.rb
95
96
  - lib/google/cloud/run/v2/execution_template_pb.rb
@@ -102,7 +103,18 @@ files:
102
103
  - lib/google/cloud/run/v2/executions/rest/client.rb
103
104
  - lib/google/cloud/run/v2/executions/rest/operations.rb
104
105
  - lib/google/cloud/run/v2/executions/rest/service_stub.rb
106
+ - lib/google/cloud/run/v2/instance_pb.rb
107
+ - lib/google/cloud/run/v2/instance_services_pb.rb
105
108
  - lib/google/cloud/run/v2/instance_split_pb.rb
109
+ - lib/google/cloud/run/v2/instances.rb
110
+ - lib/google/cloud/run/v2/instances/client.rb
111
+ - lib/google/cloud/run/v2/instances/credentials.rb
112
+ - lib/google/cloud/run/v2/instances/operations.rb
113
+ - lib/google/cloud/run/v2/instances/paths.rb
114
+ - lib/google/cloud/run/v2/instances/rest.rb
115
+ - lib/google/cloud/run/v2/instances/rest/client.rb
116
+ - lib/google/cloud/run/v2/instances/rest/operations.rb
117
+ - lib/google/cloud/run/v2/instances/rest/service_stub.rb
106
118
  - lib/google/cloud/run/v2/job_pb.rb
107
119
  - lib/google/cloud/run/v2/job_services_pb.rb
108
120
  - lib/google/cloud/run/v2/jobs.rb
@@ -173,8 +185,10 @@ files:
173
185
  - proto_docs/google/api/routing.rb
174
186
  - proto_docs/google/cloud/run/v2/build.rb
175
187
  - proto_docs/google/cloud/run/v2/condition.rb
188
+ - proto_docs/google/cloud/run/v2/container_status.rb
176
189
  - proto_docs/google/cloud/run/v2/execution.rb
177
190
  - proto_docs/google/cloud/run/v2/execution_template.rb
191
+ - proto_docs/google/cloud/run/v2/instance.rb
178
192
  - proto_docs/google/cloud/run/v2/instance_split.rb
179
193
  - proto_docs/google/cloud/run/v2/job.rb
180
194
  - proto_docs/google/cloud/run/v2/k8s.min.rb
@@ -210,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
210
224
  requirements:
211
225
  - - ">="
212
226
  - !ruby/object:Gem::Version
213
- version: '3.1'
227
+ version: '3.2'
214
228
  required_rubygems_version: !ruby/object:Gem::Requirement
215
229
  requirements:
216
230
  - - ">="