google-cloud-run-v2 0.28.1 → 0.29.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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/run/v2/build_pb.rb +4 -25
- data/lib/google/cloud/run/v2/builds/client.rb +11 -1
- data/lib/google/cloud/run/v2/builds/rest/client.rb +11 -1
- data/lib/google/cloud/run/v2/condition_pb.rb +3 -25
- data/lib/google/cloud/run/v2/container_status_pb.rb +21 -0
- data/lib/google/cloud/run/v2/execution_pb.rb +2 -26
- data/lib/google/cloud/run/v2/execution_template_pb.rb +2 -24
- data/lib/google/cloud/run/v2/executions/client.rb +2 -0
- data/lib/google/cloud/run/v2/executions/operations.rb +2 -0
- data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/instance_pb.rb +42 -0
- data/lib/google/cloud/run/v2/instance_services_pb.rb +55 -0
- data/lib/google/cloud/run/v2/instance_split_pb.rb +2 -23
- data/lib/google/cloud/run/v2/instances/client.rb +1059 -0
- data/lib/google/cloud/run/v2/instances/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/instances/operations.rb +851 -0
- data/lib/google/cloud/run/v2/instances/paths.rb +178 -0
- data/lib/google/cloud/run/v2/instances/rest/client.rb +962 -0
- data/lib/google/cloud/run/v2/instances/rest/operations.rb +1095 -0
- data/lib/google/cloud/run/v2/instances/rest/service_stub.rb +450 -0
- data/lib/google/cloud/run/v2/instances/rest.rb +53 -0
- data/lib/google/cloud/run/v2/instances.rb +56 -0
- data/lib/google/cloud/run/v2/job_pb.rb +3 -30
- data/lib/google/cloud/run/v2/jobs/client.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/operations.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +5 -24
- data/lib/google/cloud/run/v2/rest.rb +1 -0
- data/lib/google/cloud/run/v2/revision_pb.rb +2 -29
- data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -26
- data/lib/google/cloud/run/v2/revisions/client.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/operations.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/service_pb.rb +4 -30
- data/lib/google/cloud/run/v2/services/client.rb +2 -0
- data/lib/google/cloud/run/v2/services/operations.rb +2 -0
- data/lib/google/cloud/run/v2/services/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/services/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/status_pb.rb +2 -23
- data/lib/google/cloud/run/v2/task_pb.rb +2 -29
- data/lib/google/cloud/run/v2/task_template_pb.rb +2 -26
- data/lib/google/cloud/run/v2/tasks/client.rb +2 -0
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/traffic_target_pb.rb +2 -23
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -24
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2/worker_pool_pb.rb +3 -30
- data/lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb +3 -27
- data/lib/google/cloud/run/v2/worker_pools/client.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/operations.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2.rb +1 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/api/routing.rb +7 -3
- data/proto_docs/google/cloud/run/v2/build.rb +11 -0
- data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
- data/proto_docs/google/cloud/run/v2/container_status.rb +42 -0
- data/proto_docs/google/cloud/run/v2/instance.rb +328 -0
- data/proto_docs/google/cloud/run/v2/job.rb +2 -2
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +37 -2
- data/proto_docs/google/cloud/run/v2/service.rb +32 -7
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +5 -0
- data/proto_docs/google/cloud/run/v2/worker_pool.rb +23 -22
- data/proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb +3 -0
- metadata +18 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 433c1e03fa52577d89b803c046b700ee13e01892445709f0786c24d23cd27196
|
|
4
|
+
data.tar.gz: fdd1f48229b294b6fa7a98080fef3382fdf4a585dfdbd896d892aa8796408252
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 84ff09940601858274dc583e352a524058c1d85d8328482bac25073b3c10cc93f054e0c17a89980f9c6c7fbe3ef81cf85303cc2d183abaf1b1ad1226a99a7ef0
|
|
7
|
+
data.tar.gz: c41cd6e401c5261442d4d10bcca13f2d25cdbd06a71c926938b8b61ffcbbb144e05c76918a3d5b5076953e92ecddf625cc062cbde786def1b173a525d277ce47
|
data/README.md
CHANGED
|
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
|
86
86
|
|
|
87
87
|
## Supported Ruby Versions
|
|
88
88
|
|
|
89
|
-
This library is supported on Ruby 3.
|
|
89
|
+
This library is supported on Ruby 3.2+.
|
|
90
90
|
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
@@ -7,36 +7,15 @@ require 'google/protobuf'
|
|
|
7
7
|
require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/api/client_pb'
|
|
9
9
|
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/launch_stage_pb'
|
|
10
11
|
require 'google/api/resource_pb'
|
|
11
12
|
require 'google/longrunning/operations_pb'
|
|
12
13
|
|
|
13
14
|
|
|
14
|
-
descriptor_data = "\n\x1fgoogle/cloud/run/v2/build.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\"\
|
|
15
|
+
descriptor_data = "\n\x1fgoogle/cloud/run/v2/build.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\"\xa4\x07\n\x12SubmitBuildRequest\x12\x13\n\x06parent\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0estorage_source\x18\x02 \x01(\x0b\x32\".google.cloud.run.v2.StorageSourceB\x03\xe0\x41\x02H\x00\x12\x16\n\timage_uri\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12R\n\x0f\x62uildpack_build\x18\x04 \x01(\x0b\x32\x37.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuildH\x01\x12K\n\x0c\x64ocker_build\x18\x05 \x01(\x0b\x32\x33.google.cloud.run.v2.SubmitBuildRequest.DockerBuildH\x01\x12\x1c\n\x0fservice_account\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x46\n\x0bworker_pool\x18\x07 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)cloudbuild.googleapis.com/BuildWorkerPool\x12\x11\n\x04tags\x18\x08 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0cmachine_type\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x33\n\rrelease_track\x18\n \x01(\x0e\x32\x17.google.api.LaunchStageB\x03\xe0\x41\x01\x12\x13\n\x06\x63lient\x18\x0b \x01(\tB\x03\xe0\x41\x01\x1a\r\n\x0b\x44ockerBuild\x1a\xf7\x02\n\x0f\x42uildpacksBuild\x12\x13\n\x07runtime\x18\x01 \x01(\tB\x02\x18\x01\x12\x1c\n\x0f\x66unction_target\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63\x61\x63he_image_uri\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nbase_image\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12u\n\x15\x65nvironment_variables\x18\x05 \x03(\x0b\x32Q.google.cloud.run.v2.SubmitBuildRequest.BuildpacksBuild.EnvironmentVariablesEntryB\x03\xe0\x41\x01\x12%\n\x18\x65nable_automatic_updates\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12project_descriptor\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x08\n\x06sourceB\x0c\n\nbuild_type\"\x81\x01\n\x13SubmitBuildResponse\x12\x36\n\x0f\x62uild_operation\x18\x01 \x01(\x0b\x32\x1d.google.longrunning.Operation\x12\x16\n\x0e\x62\x61se_image_uri\x18\x02 \x01(\t\x12\x1a\n\x12\x62\x61se_image_warning\x18\x03 \x01(\t\"R\n\rStorageSource\x12\x13\n\x06\x62ucket\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06object\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x32\xf1\x01\n\x06\x42uilds\x12\x9e\x01\n\x0bSubmitBuild\x12\'.google.cloud.run.v2.SubmitBuildRequest\x1a(.google.cloud.run.v2.SubmitBuildResponse\"<\x82\xd3\xe4\x93\x02\x36\"1/v2/{parent=projects/*/locations/*}/builds:submit:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xc3\x01\n\x17\x63om.google.cloud.run.v2B\nBuildProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41n\n)cloudbuild.googleapis.com/BuildWorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}b\x06proto3"
|
|
15
16
|
|
|
16
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
-
|
|
18
|
-
begin
|
|
19
|
-
pool.add_serialized_file(descriptor_data)
|
|
20
|
-
rescue TypeError
|
|
21
|
-
# Compatibility code: will be removed in the next major version.
|
|
22
|
-
require 'google/protobuf/descriptor_pb'
|
|
23
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
24
|
-
parsed.clear_dependency
|
|
25
|
-
serialized = parsed.class.encode(parsed)
|
|
26
|
-
file = pool.add_serialized_file(serialized)
|
|
27
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
28
|
-
imports = [
|
|
29
|
-
["google.longrunning.Operation", "google/longrunning/operations.proto"],
|
|
30
|
-
]
|
|
31
|
-
imports.each do |type_name, expected_filename|
|
|
32
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
33
|
-
if import_file.name != expected_filename
|
|
34
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
35
|
-
end
|
|
36
|
-
end
|
|
37
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
38
|
-
warn "This will become an error in the next major version."
|
|
39
|
-
end
|
|
17
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
|
40
19
|
|
|
41
20
|
module Google
|
|
42
21
|
module Cloud
|
|
@@ -212,7 +212,7 @@ module Google
|
|
|
212
212
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
213
213
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
|
214
214
|
#
|
|
215
|
-
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil)
|
|
215
|
+
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil, machine_type: nil, release_track: nil, client: nil)
|
|
216
216
|
# Pass arguments to `submit_build` via keyword arguments. Note that at
|
|
217
217
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
218
218
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -246,6 +246,14 @@ module Google
|
|
|
246
246
|
# worker pool.
|
|
247
247
|
# @param tags [::Array<::String>]
|
|
248
248
|
# Optional. Additional tags to annotate the build.
|
|
249
|
+
# @param machine_type [::String]
|
|
250
|
+
# Optional. The machine type from default pool to use for the build. If left
|
|
251
|
+
# blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
|
|
252
|
+
# is supported. If worker_pool is set, this field will be ignored.
|
|
253
|
+
# @param release_track [::Google::Api::LaunchStage]
|
|
254
|
+
# Optional. The release track of the client that initiated the build request.
|
|
255
|
+
# @param client [::String]
|
|
256
|
+
# Optional. The client that initiated the build request.
|
|
249
257
|
#
|
|
250
258
|
# @yield [response, operation] Access the result along with the RPC operation
|
|
251
259
|
# @yieldparam response [::Google::Cloud::Run::V2::SubmitBuildResponse]
|
|
@@ -407,6 +415,7 @@ module Google
|
|
|
407
415
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
408
416
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
409
417
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
418
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
410
419
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
411
420
|
# trigger a retry.
|
|
412
421
|
# @return [::Hash]
|
|
@@ -490,6 +499,7 @@ module Google
|
|
|
490
499
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
491
500
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
492
501
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
502
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
493
503
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
494
504
|
# trigger a retry.
|
|
495
505
|
#
|
|
@@ -205,7 +205,7 @@ module Google
|
|
|
205
205
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
206
206
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
207
207
|
#
|
|
208
|
-
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil)
|
|
208
|
+
# @overload submit_build(parent: nil, storage_source: nil, image_uri: nil, buildpack_build: nil, docker_build: nil, service_account: nil, worker_pool: nil, tags: nil, machine_type: nil, release_track: nil, client: nil)
|
|
209
209
|
# Pass arguments to `submit_build` via keyword arguments. Note that at
|
|
210
210
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
211
211
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -239,6 +239,14 @@ module Google
|
|
|
239
239
|
# worker pool.
|
|
240
240
|
# @param tags [::Array<::String>]
|
|
241
241
|
# Optional. Additional tags to annotate the build.
|
|
242
|
+
# @param machine_type [::String]
|
|
243
|
+
# Optional. The machine type from default pool to use for the build. If left
|
|
244
|
+
# blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
|
|
245
|
+
# is supported. If worker_pool is set, this field will be ignored.
|
|
246
|
+
# @param release_track [::Google::Api::LaunchStage]
|
|
247
|
+
# Optional. The release track of the client that initiated the build request.
|
|
248
|
+
# @param client [::String]
|
|
249
|
+
# Optional. The client that initiated the build request.
|
|
242
250
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
243
251
|
# @yieldparam result [::Google::Cloud::Run::V2::SubmitBuildResponse]
|
|
244
252
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -367,6 +375,7 @@ module Google
|
|
|
367
375
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
368
376
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
369
377
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
378
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
370
379
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
371
380
|
# trigger a retry.
|
|
372
381
|
# @return [::Hash]
|
|
@@ -439,6 +448,7 @@ module Google
|
|
|
439
448
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
440
449
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
441
450
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
451
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
442
452
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
443
453
|
# trigger a retry.
|
|
444
454
|
#
|
|
@@ -8,32 +8,10 @@ require 'google/api/field_behavior_pb'
|
|
|
8
8
|
require 'google/protobuf/timestamp_pb'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
11
|
+
descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xe2\x0c\n\tCondition\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x33\n\x05state\x18\x02 \x01(\x0e\x32$.google.cloud.run.v2.Condition.State\x12\x0f\n\x07message\x18\x03 \x01(\t\x12\x38\n\x14last_transition_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x39\n\x08severity\x18\x05 \x01(\x0e\x32\'.google.cloud.run.v2.Condition.Severity\x12\x42\n\x06reason\x18\x06 \x01(\x0e\x32+.google.cloud.run.v2.Condition.CommonReasonB\x03\xe0\x41\x03H\x00\x12M\n\x0frevision_reason\x18\t \x01(\x0e\x32-.google.cloud.run.v2.Condition.RevisionReasonB\x03\xe0\x41\x03H\x00\x12O\n\x10\x65xecution_reason\x18\x0b \x01(\x0e\x32..google.cloud.run.v2.Condition.ExecutionReasonB\x03\xe0\x41\x03H\x00\"\x7f\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x15\n\x11\x43ONDITION_PENDING\x10\x01\x12\x19\n\x15\x43ONDITION_RECONCILING\x10\x02\x12\x14\n\x10\x43ONDITION_FAILED\x10\x03\x12\x17\n\x13\x43ONDITION_SUCCEEDED\x10\x04\"F\n\x08Severity\x12\x18\n\x14SEVERITY_UNSPECIFIED\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0b\n\x07WARNING\x10\x02\x12\x08\n\x04INFO\x10\x03\"\xcd\x03\n\x0c\x43ommonReason\x12\x1b\n\x17\x43OMMON_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07UNKNOWN\x10\x01\x12\x13\n\x0fREVISION_FAILED\x10\x03\x12\x1e\n\x1aPROGRESS_DEADLINE_EXCEEDED\x10\x04\x12\x15\n\x11\x43ONTAINER_MISSING\x10\x06\x12\x1f\n\x1b\x43ONTAINER_PERMISSION_DENIED\x10\x07\x12 \n\x1c\x43ONTAINER_IMAGE_UNAUTHORIZED\x10\x08\x12.\n*CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED\x10\t\x12$\n ENCRYPTION_KEY_PERMISSION_DENIED\x10\n\x12\x1f\n\x1b\x45NCRYPTION_KEY_CHECK_FAILED\x10\x0b\x12\x1f\n\x1bSECRETS_ACCESS_CHECK_FAILED\x10\x0c\x12\x19\n\x15WAITING_FOR_OPERATION\x10\r\x12\x13\n\x0fIMMEDIATE_RETRY\x10\x0e\x12\x13\n\x0fPOSTPONED_RETRY\x10\x0f\x12\x0c\n\x08INTERNAL\x10\x10\x12\x19\n\x15VPC_NETWORK_NOT_FOUND\x10\x11\"\xca\x02\n\x0eRevisionReason\x12\x1d\n\x19REVISION_REASON_UNDEFINED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RESERVE\x10\x02\x12\x0b\n\x07RETIRED\x10\x03\x12\x0c\n\x08RETIRING\x10\x04\x12\x0e\n\nRECREATING\x10\x05\x12 \n\x1cHEALTH_CHECK_CONTAINER_ERROR\x10\x06\x12$\n CUSTOMIZED_PATH_RESPONSE_PENDING\x10\x07\x12!\n\x1dMIN_INSTANCES_NOT_PROVISIONED\x10\x08\x12!\n\x1d\x41\x43TIVE_REVISION_LIMIT_REACHED\x10\t\x12\x11\n\rNO_DEPLOYMENT\x10\n\x12\x18\n\x14HEALTH_CHECK_SKIPPED\x10\x0b\x12\x19\n\x15MIN_INSTANCES_WARMING\x10\x0c\"\xb6\x01\n\x0f\x45xecutionReason\x12\x1e\n\x1a\x45XECUTION_REASON_UNDEFINED\x10\x00\x12$\n JOB_STATUS_SERVICE_POLLING_ERROR\x10\x01\x12\x16\n\x12NON_ZERO_EXIT_CODE\x10\x02\x12\r\n\tCANCELLED\x10\x03\x12\x0e\n\nCANCELLING\x10\x04\x12\x0b\n\x07\x44\x45LETED\x10\x05\x12\x19\n\x15\x44\x45LAYED_START_PENDING\x10\x06\x42\t\n\x07reasonsBV\n\x17\x63om.google.cloud.run.v2B\x0e\x43onditionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
12
12
|
|
|
13
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
-
|
|
15
|
-
begin
|
|
16
|
-
pool.add_serialized_file(descriptor_data)
|
|
17
|
-
rescue TypeError
|
|
18
|
-
# Compatibility code: will be removed in the next major version.
|
|
19
|
-
require 'google/protobuf/descriptor_pb'
|
|
20
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
21
|
-
parsed.clear_dependency
|
|
22
|
-
serialized = parsed.class.encode(parsed)
|
|
23
|
-
file = pool.add_serialized_file(serialized)
|
|
24
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
|
-
imports = [
|
|
26
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
27
|
-
]
|
|
28
|
-
imports.each do |type_name, expected_filename|
|
|
29
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
30
|
-
if import_file.name != expected_filename
|
|
31
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
35
|
-
warn "This will become an error in the next major version."
|
|
36
|
-
end
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
37
15
|
|
|
38
16
|
module Google
|
|
39
17
|
module Cloud
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/run/v2/container_status.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
descriptor_data = "\n*google/cloud/run/v2/container_status.proto\x12\x13google.cloud.run.v2\"5\n\x0f\x43ontainerStatus\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0cimage_digest\x18\x02 \x01(\tB\\\n\x17\x63om.google.cloud.run.v2B\x14\x43ontainerStatusProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
9
|
+
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
12
|
+
|
|
13
|
+
module Google
|
|
14
|
+
module Cloud
|
|
15
|
+
module Run
|
|
16
|
+
module V2
|
|
17
|
+
ContainerStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ContainerStatus").msgclass
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
@@ -17,32 +17,8 @@ require 'google/protobuf/timestamp_pb'
|
|
|
17
17
|
|
|
18
18
|
descriptor_data = "\n#google/cloud/run/v2/execution.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a#google/cloud/run/v2/condition.proto\x1a\'google/cloud/run/v2/task_template.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"I\n\x13GetExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\"\x8a\x01\n\x15ListExecutionsRequest\x12\x34\n\x06parent\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\x12\x1crun.googleapis.com/Execution\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"e\n\x16ListExecutionsResponse\x12\x32\n\nexecutions\x18\x01 \x03(\x0b\x32\x1e.google.cloud.run.v2.Execution\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"q\n\x16\x44\x65leteExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"q\n\x16\x43\x61ncelExecutionRequest\x12\x32\n\x04name\x18\x01 \x01(\tB$\xe0\x41\x02\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\x98\n\n\tExecution\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x06labels\x18\x04 \x03(\x0b\x32*.google.cloud.run.v2.Execution.LabelsEntryB\x03\xe0\x41\x03\x12I\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32/.google.cloud.run.v2.Execution.AnnotationsEntryB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x33\n\nstart_time\x18\x16 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x38\n\x0f\x63ompletion_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12-\n\x0claunch_stage\x18\x0b \x01(\x0e\x32\x17.google.api.LaunchStage\x12+\n\x03job\x18\x0c \x01(\tB\x1e\xe0\x41\x03\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x18\n\x0bparallelism\x18\r \x01(\x05\x42\x03\xe0\x41\x03\x12\x17\n\ntask_count\x18\x0e \x01(\x05\x42\x03\xe0\x41\x03\x12\x38\n\x08template\x18\x0f \x01(\x0b\x32!.google.cloud.run.v2.TaskTemplateB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x10 \x01(\x08\x42\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x11 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12 \n\x13observed_generation\x18\x12 \x01(\x03\x42\x03\xe0\x41\x03\x12\x1a\n\rrunning_count\x18\x13 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0fsucceeded_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x03\x12\x19\n\x0c\x66\x61iled_count\x18\x15 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1c\n\x0f\x63\x61ncelled_count\x18\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12\x1a\n\rretried_count\x18\x19 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07log_uri\x18\x1a \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x1b \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:o\xea\x41l\n\x1crun.googleapis.com/Execution\x12Iprojects/{project}/locations/{location}/jobs/{job}/executions/{execution}R\x01\x01\x32\xb1\x06\n\nExecutions\x12\x9e\x01\n\x0cGetExecution\x12(.google.cloud.run.v2.GetExecutionRequest\x1a\x1e.google.cloud.run.v2.Execution\"D\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/locations/*/jobs/*/executions/*}\x12\xb1\x01\n\x0eListExecutions\x12*.google.cloud.run.v2.ListExecutionsRequest\x1a+.google.cloud.run.v2.ListExecutionsResponse\"F\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/locations/*/jobs/*}/executions\x12\xbc\x01\n\x0f\x44\x65leteExecution\x12+.google.cloud.run.v2.DeleteExecutionRequest\x1a\x1d.google.longrunning.Operation\"]\xca\x41\x16\n\tExecution\x12\tExecution\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/locations/*/jobs/*/executions/*}\x12\xc6\x01\n\x0f\x43\x61ncelExecution\x12+.google.cloud.run.v2.CancelExecutionRequest\x1a\x1d.google.longrunning.Operation\"g\xca\x41\x16\n\tExecution\x12\tExecution\xda\x41\x04name\x82\xd3\xe4\x93\x02\x41\"</v2/{name=projects/*/locations/*/jobs/*/executions/*}:cancel:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBV\n\x17\x63om.google.cloud.run.v2B\x0e\x45xecutionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
19
19
|
|
|
20
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
-
|
|
22
|
-
begin
|
|
23
|
-
pool.add_serialized_file(descriptor_data)
|
|
24
|
-
rescue TypeError
|
|
25
|
-
# Compatibility code: will be removed in the next major version.
|
|
26
|
-
require 'google/protobuf/descriptor_pb'
|
|
27
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
28
|
-
parsed.clear_dependency
|
|
29
|
-
serialized = parsed.class.encode(parsed)
|
|
30
|
-
file = pool.add_serialized_file(serialized)
|
|
31
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
32
|
-
imports = [
|
|
33
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
34
|
-
["google.cloud.run.v2.TaskTemplate", "google/cloud/run/v2/task_template.proto"],
|
|
35
|
-
["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
|
|
36
|
-
]
|
|
37
|
-
imports.each do |type_name, expected_filename|
|
|
38
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
39
|
-
if import_file.name != expected_filename
|
|
40
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
41
|
-
end
|
|
42
|
-
end
|
|
43
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
44
|
-
warn "This will become an error in the next major version."
|
|
45
|
-
end
|
|
20
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
21
|
+
pool.add_serialized_file(descriptor_data)
|
|
46
22
|
|
|
47
23
|
module Google
|
|
48
24
|
module Cloud
|
|
@@ -10,30 +10,8 @@ require 'google/cloud/run/v2/task_template_pb'
|
|
|
10
10
|
|
|
11
11
|
descriptor_data = "\n,google/cloud/run/v2/execution_template.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\'google/cloud/run/v2/task_template.proto\"\xf0\x02\n\x11\x45xecutionTemplate\x12\x42\n\x06labels\x18\x01 \x03(\x0b\x32\x32.google.cloud.run.v2.ExecutionTemplate.LabelsEntry\x12L\n\x0b\x61nnotations\x18\x02 \x03(\x0b\x32\x37.google.cloud.run.v2.ExecutionTemplate.AnnotationsEntry\x12\x18\n\x0bparallelism\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\ntask_count\x18\x04 \x01(\x05\x12\x38\n\x08template\x18\x05 \x01(\x0b\x32!.google.cloud.run.v2.TaskTemplateB\x03\xe0\x41\x02\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42^\n\x17\x63om.google.cloud.run.v2B\x16\x45xecutionTemplateProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
12
12
|
|
|
13
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
-
|
|
15
|
-
begin
|
|
16
|
-
pool.add_serialized_file(descriptor_data)
|
|
17
|
-
rescue TypeError
|
|
18
|
-
# Compatibility code: will be removed in the next major version.
|
|
19
|
-
require 'google/protobuf/descriptor_pb'
|
|
20
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
21
|
-
parsed.clear_dependency
|
|
22
|
-
serialized = parsed.class.encode(parsed)
|
|
23
|
-
file = pool.add_serialized_file(serialized)
|
|
24
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
|
-
imports = [
|
|
26
|
-
["google.cloud.run.v2.TaskTemplate", "google/cloud/run/v2/task_template.proto"],
|
|
27
|
-
]
|
|
28
|
-
imports.each do |type_name, expected_filename|
|
|
29
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
30
|
-
if import_file.name != expected_filename
|
|
31
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
35
|
-
warn "This will become an error in the next major version."
|
|
36
|
-
end
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
37
15
|
|
|
38
16
|
module Google
|
|
39
17
|
module Cloud
|
|
@@ -705,6 +705,7 @@ module Google
|
|
|
705
705
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
706
706
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
707
707
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
708
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
708
709
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
709
710
|
# trigger a retry.
|
|
710
711
|
# @return [::Hash]
|
|
@@ -788,6 +789,7 @@ module Google
|
|
|
788
789
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
789
790
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
790
791
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
792
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
791
793
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
792
794
|
# trigger a retry.
|
|
793
795
|
#
|
|
@@ -711,6 +711,7 @@ module Google
|
|
|
711
711
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
712
712
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
713
713
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
714
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
714
715
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
715
716
|
# trigger a retry.
|
|
716
717
|
# @return [::Hash]
|
|
@@ -794,6 +795,7 @@ module Google
|
|
|
794
795
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
795
796
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
796
797
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
798
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
797
799
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
798
800
|
# trigger a retry.
|
|
799
801
|
#
|
|
@@ -644,6 +644,7 @@ module Google
|
|
|
644
644
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
645
645
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
646
646
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
647
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
647
648
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
648
649
|
# trigger a retry.
|
|
649
650
|
# @return [::Hash]
|
|
@@ -716,6 +717,7 @@ module Google
|
|
|
716
717
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
717
718
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
718
719
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
720
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
719
721
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
720
722
|
# trigger a retry.
|
|
721
723
|
#
|
|
@@ -640,6 +640,7 @@ module Google
|
|
|
640
640
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
641
641
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
642
642
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
643
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
643
644
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
644
645
|
# trigger a retry.
|
|
645
646
|
# @return [::Hash]
|
|
@@ -712,6 +713,7 @@ module Google
|
|
|
712
713
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
713
714
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
714
715
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
716
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
715
717
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
716
718
|
# trigger a retry.
|
|
717
719
|
#
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: google/cloud/run/v2/instance.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/api/annotations_pb'
|
|
8
|
+
require 'google/api/client_pb'
|
|
9
|
+
require 'google/api/field_behavior_pb'
|
|
10
|
+
require 'google/api/launch_stage_pb'
|
|
11
|
+
require 'google/api/resource_pb'
|
|
12
|
+
require 'google/api/routing_pb'
|
|
13
|
+
require 'google/cloud/run/v2/condition_pb'
|
|
14
|
+
require 'google/cloud/run/v2/container_status_pb'
|
|
15
|
+
require 'google/cloud/run/v2/k8s.min_pb'
|
|
16
|
+
require 'google/cloud/run/v2/vendor_settings_pb'
|
|
17
|
+
require 'google/longrunning/operations_pb'
|
|
18
|
+
require 'google/protobuf/duration_pb'
|
|
19
|
+
require 'google/protobuf/timestamp_pb'
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
descriptor_data = "\n\"google/cloud/run/v2/instance.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a*google/cloud/run/v2/container_status.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb8\x01\n\x15\x43reateInstanceRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1brun.googleapis.com/Instance\x12\x34\n\x08instance\x18\x02 \x01(\x0b\x32\x1d.google.cloud.run.v2.InstanceB\x03\xe0\x41\x02\x12\x18\n\x0binstance_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"G\n\x12GetInstanceRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Instance\"y\n\x15\x44\x65leteInstanceRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Instance\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\x97\x01\n\x14ListInstancesRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1brun.googleapis.com/Instance\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x19\n\x0cshow_deleted\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"b\n\x15ListInstancesResponse\x12\x30\n\tinstances\x18\x01 \x03(\x0b\x32\x1d.google.cloud.run.v2.Instance\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"w\n\x13StopInstanceRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Instance\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"x\n\x14StartInstanceRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Instance\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04\x65tag\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xd4\x0e\n\x08Instance\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x10\n\x03uid\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x05 \x01(\x03\x42\x03\xe0\x41\x03\x12\x39\n\x06labels\x18\x06 \x03(\x0b\x32).google.cloud.run.v2.Instance.LabelsEntry\x12\x43\n\x0b\x61nnotations\x18\x07 \x03(\x0b\x32..google.cloud.run.v2.Instance.AnnotationsEntry\x12\x34\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\r \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\x0e \x01(\t\x12\x16\n\x0e\x63lient_version\x18\x0f \x01(\t\x12-\n\x0claunch_stage\x18\x10 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x46\n\x14\x62inary_authorization\x18\x11 \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorization\x12\x37\n\nvpc_access\x18\x12 \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccessB\x03\xe0\x41\x01\x12\x17\n\x0fservice_account\x18\x13 \x01(\t\x12\x37\n\ncontainers\x18\x14 \x03(\x0b\x32\x1e.google.cloud.run.v2.ContainerB\x03\xe0\x41\x02\x12,\n\x07volumes\x18\x15 \x03(\x0b\x32\x1b.google.cloud.run.v2.Volume\x12>\n\x0e\x65ncryption_key\x18\x16 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\\\n encryption_key_revocation_action\x18\x18 \x01(\x0e\x32\x32.google.cloud.run.v2.EncryptionKeyRevocationAction\x12\x43\n encryption_key_shutdown_duration\x18\x19 \x01(\x0b\x32\x19.google.protobuf.Duration\x12=\n\rnode_selector\x18\x1a \x01(\x0b\x32!.google.cloud.run.v2.NodeSelectorB\x03\xe0\x41\x01\x12/\n\x1dgpu_zonal_redundancy_disabled\x18\x1b \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x12\x39\n\x07ingress\x18\x1c \x01(\x0e\x32#.google.cloud.run.v2.IngressTrafficB\x03\xe0\x41\x01\x12!\n\x14invoker_iam_disabled\x18\x1d \x01(\x08\x42\x03\xe0\x41\x01\x12\x18\n\x0biap_enabled\x18\x1e \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13observed_generation\x18( \x01(\x03\x42\x03\xe0\x41\x03\x12\x14\n\x07log_uri\x18) \x01(\tB\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18* \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18+ \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x45\n\x12\x63ontainer_statuses\x18, \x03(\x0b\x32$.google.cloud.run.v2.ContainerStatusB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18. \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04urls\x18- \x03(\tB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x62 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:s\xea\x41p\n\x1brun.googleapis.com/Instance\x12<projects/{project}/locations/{location}/instances/{instance}*\tinstances2\x08instanceB \n\x1e_gpu_zonal_redundancy_disabled2\xce\n\n\tInstances\x12\xf9\x01\n\x0e\x43reateInstance\x12*.google.cloud.run.v2.CreateInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\xca\x41\x14\n\x08Instance\x12\x08Instance\xda\x41\x0fparent,instance\x82\xd3\xe4\x93\x02\x39\"-/v2/{parent=projects/*/locations/*}/instances:\x08instance\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xe5\x01\n\x0e\x44\x65leteInstance\x12*.google.cloud.run.v2.DeleteInstanceRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41\x14\n\x08Instance\x12\x08Instance\xda\x41\x04name\x82\xd3\xe4\x93\x02/*-/v2/{name=projects/*/locations/*/instances/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xc7\x01\n\x0bGetInstance\x12\'.google.cloud.run.v2.GetInstanceRequest\x1a\x1d.google.cloud.run.v2.Instance\"p\xda\x41\x04name\x82\xd3\xe4\x93\x02/\x12-/v2/{name=projects/*/locations/*/instances/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xd9\x01\n\rListInstances\x12).google.cloud.run.v2.ListInstancesRequest\x1a*.google.cloud.run.v2.ListInstancesResponse\"q\xda\x41\x06parent\x82\xd3\xe4\x93\x02/\x12-/v2/{parent=projects/*/locations/*}/instances\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xb4\x01\n\x0cStopInstance\x12(.google.cloud.run.v2.StopInstanceRequest\x1a\x1d.google.longrunning.Operation\"[\xca\x41\x14\n\x08Instance\x12\x08Instance\xda\x41\x04name\x82\xd3\xe4\x93\x02\x37\"2/v2/{name=projects/*/locations/*/instances/*}:stop:\x01*\x12\xb7\x01\n\rStartInstance\x12).google.cloud.run.v2.StartInstanceRequest\x1a\x1d.google.longrunning.Operation\"\\\xca\x41\x14\n\x08Instance\x12\x08Instance\xda\x41\x04name\x82\xd3\xe4\x93\x02\x38\"3/v2/{name=projects/*/locations/*/instances/*}:start:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBF\n\x17\x63om.google.cloud.run.v2P\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
23
|
+
|
|
24
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
25
|
+
pool.add_serialized_file(descriptor_data)
|
|
26
|
+
|
|
27
|
+
module Google
|
|
28
|
+
module Cloud
|
|
29
|
+
module Run
|
|
30
|
+
module V2
|
|
31
|
+
CreateInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.CreateInstanceRequest").msgclass
|
|
32
|
+
GetInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GetInstanceRequest").msgclass
|
|
33
|
+
DeleteInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.DeleteInstanceRequest").msgclass
|
|
34
|
+
ListInstancesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListInstancesRequest").msgclass
|
|
35
|
+
ListInstancesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListInstancesResponse").msgclass
|
|
36
|
+
StopInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.StopInstanceRequest").msgclass
|
|
37
|
+
StartInstanceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.StartInstanceRequest").msgclass
|
|
38
|
+
Instance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Instance").msgclass
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: google/cloud/run/v2/instance.proto for package 'google.cloud.run.v2'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# Copyright 2026 Google LLC
|
|
5
|
+
#
|
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
7
|
+
# you may not use this file except in compliance with the License.
|
|
8
|
+
# You may obtain a copy of the License at
|
|
9
|
+
#
|
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
#
|
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
15
|
+
# See the License for the specific language governing permissions and
|
|
16
|
+
# limitations under the License.
|
|
17
|
+
#
|
|
18
|
+
|
|
19
|
+
require 'grpc'
|
|
20
|
+
require 'google/cloud/run/v2/instance_pb'
|
|
21
|
+
|
|
22
|
+
module Google
|
|
23
|
+
module Cloud
|
|
24
|
+
module Run
|
|
25
|
+
module V2
|
|
26
|
+
module Instances
|
|
27
|
+
# The Cloud Run Instances API allows you to manage Cloud Run Instances.
|
|
28
|
+
class Service
|
|
29
|
+
|
|
30
|
+
include ::GRPC::GenericService
|
|
31
|
+
|
|
32
|
+
self.marshal_class_method = :encode
|
|
33
|
+
self.unmarshal_class_method = :decode
|
|
34
|
+
self.service_name = 'google.cloud.run.v2.Instances'
|
|
35
|
+
|
|
36
|
+
# Creates an Instance.
|
|
37
|
+
rpc :CreateInstance, ::Google::Cloud::Run::V2::CreateInstanceRequest, ::Google::Longrunning::Operation
|
|
38
|
+
# Deletes a Instance
|
|
39
|
+
rpc :DeleteInstance, ::Google::Cloud::Run::V2::DeleteInstanceRequest, ::Google::Longrunning::Operation
|
|
40
|
+
# Gets a Instance
|
|
41
|
+
rpc :GetInstance, ::Google::Cloud::Run::V2::GetInstanceRequest, ::Google::Cloud::Run::V2::Instance
|
|
42
|
+
# Lists Instances. Results are sorted by creation time, descending.
|
|
43
|
+
rpc :ListInstances, ::Google::Cloud::Run::V2::ListInstancesRequest, ::Google::Cloud::Run::V2::ListInstancesResponse
|
|
44
|
+
# Stops an Instance.
|
|
45
|
+
rpc :StopInstance, ::Google::Cloud::Run::V2::StopInstanceRequest, ::Google::Longrunning::Operation
|
|
46
|
+
# Starts an Instance.
|
|
47
|
+
rpc :StartInstance, ::Google::Cloud::Run::V2::StartInstanceRequest, ::Google::Longrunning::Operation
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
Stub = Service.rpc_stub_class
|
|
51
|
+
end
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -9,29 +9,8 @@ require 'google/api/resource_pb'
|
|
|
9
9
|
|
|
10
10
|
descriptor_data = "\n(google/cloud/run/v2/instance_split.proto\x12\x13google.cloud.run.v2\x1a\x19google/api/resource.proto\"\x94\x01\n\rInstanceSplit\x12>\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.InstanceSplitAllocationType\x12\x32\n\x08revision\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x0f\n\x07percent\x18\x03 \x01(\x05\"\x9a\x01\n\x13InstanceSplitStatus\x12>\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.InstanceSplitAllocationType\x12\x32\n\x08revision\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x0f\n\x07percent\x18\x03 \x01(\x05*\xa5\x01\n\x1bInstanceSplitAllocationType\x12.\n*INSTANCE_SPLIT_ALLOCATION_TYPE_UNSPECIFIED\x10\x00\x12)\n%INSTANCE_SPLIT_ALLOCATION_TYPE_LATEST\x10\x01\x12+\n\'INSTANCE_SPLIT_ALLOCATION_TYPE_REVISION\x10\x02\x42Z\n\x17\x63om.google.cloud.run.v2B\x12InstanceSplitProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
11
11
|
|
|
12
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
-
|
|
14
|
-
begin
|
|
15
|
-
pool.add_serialized_file(descriptor_data)
|
|
16
|
-
rescue TypeError
|
|
17
|
-
# Compatibility code: will be removed in the next major version.
|
|
18
|
-
require 'google/protobuf/descriptor_pb'
|
|
19
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
20
|
-
parsed.clear_dependency
|
|
21
|
-
serialized = parsed.class.encode(parsed)
|
|
22
|
-
file = pool.add_serialized_file(serialized)
|
|
23
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
24
|
-
imports = [
|
|
25
|
-
]
|
|
26
|
-
imports.each do |type_name, expected_filename|
|
|
27
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
28
|
-
if import_file.name != expected_filename
|
|
29
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
30
|
-
end
|
|
31
|
-
end
|
|
32
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
33
|
-
warn "This will become an error in the next major version."
|
|
34
|
-
end
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
35
14
|
|
|
36
15
|
module Google
|
|
37
16
|
module Cloud
|