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
|
@@ -9,29 +9,8 @@ require 'google/api/resource_pb'
|
|
|
9
9
|
|
|
10
10
|
descriptor_data = "\n(google/cloud/run/v2/traffic_target.proto\x12\x13google.cloud.run.v2\x1a\x19google/api/resource.proto\"\xa1\x01\n\rTrafficTarget\x12>\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.TrafficTargetAllocationType\x12\x32\n\x08revision\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x0f\n\x07percent\x18\x03 \x01(\x05\x12\x0b\n\x03tag\x18\x04 \x01(\t\"\xb4\x01\n\x13TrafficTargetStatus\x12>\n\x04type\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.TrafficTargetAllocationType\x12\x32\n\x08revision\x18\x02 \x01(\tB \xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x0f\n\x07percent\x18\x03 \x01(\x05\x12\x0b\n\x03tag\x18\x04 \x01(\t\x12\x0b\n\x03uri\x18\x05 \x01(\t*\xa5\x01\n\x1bTrafficTargetAllocationType\x12.\n*TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED\x10\x00\x12)\n%TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST\x10\x01\x12+\n\'TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION\x10\x02\x42Z\n\x17\x63om.google.cloud.run.v2B\x12TrafficTargetProtoP\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
|
|
@@ -8,31 +8,10 @@ require 'google/api/field_behavior_pb'
|
|
|
8
8
|
require 'google/api/resource_pb'
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
descriptor_data = "\n)google/cloud/run/v2/vendor_settings.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x81\x03\n\tVpcAccess\x12:\n\tconnector\x18\x01 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12=\n\x06\x65gress\x18\x02 \x01(\x0e\x32(.google.cloud.run.v2.VpcAccess.VpcEgressB\x03\xe0\x41\x01\x12P\n\x12network_interfaces\x18\x03 \x03(\x0b\x32/.google.cloud.run.v2.VpcAccess.NetworkInterfaceB\x03\xe0\x41\x01\x1aT\n\x10NetworkInterface\x12\x14\n\x07network\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nsubnetwork\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x03 \x03(\tB\x03\xe0\x41\x01\"Q\n\tVpcEgress\x12\x1a\n\x16VPC_EGRESS_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x01\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x02\"\xb0\x01\n\x13\x42inaryAuthorization\x12\x1a\n\x0buse_default\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12\x43\n\x06policy\x18\x03 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)binaryauthorization.googleapis.com/PolicyH\x00\x12%\n\x18\x62reakglass_justification\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x11\n\x0f\x62inauthz_method\"S\n\x0fRevisionScaling\x12\x1f\n\x12min_instance_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12max_instance_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"E\n\x0bServiceMesh\x12\x36\n\x04mesh\x18\x01 \x01(\tB(\xfa\x41%\n#networkservices.googleapis.com/Mesh\"\
|
|
11
|
+
descriptor_data = "\n)google/cloud/run/v2/vendor_settings.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x81\x03\n\tVpcAccess\x12:\n\tconnector\x18\x01 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12=\n\x06\x65gress\x18\x02 \x01(\x0e\x32(.google.cloud.run.v2.VpcAccess.VpcEgressB\x03\xe0\x41\x01\x12P\n\x12network_interfaces\x18\x03 \x03(\x0b\x32/.google.cloud.run.v2.VpcAccess.NetworkInterfaceB\x03\xe0\x41\x01\x1aT\n\x10NetworkInterface\x12\x14\n\x07network\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nsubnetwork\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x03 \x03(\tB\x03\xe0\x41\x01\"Q\n\tVpcEgress\x12\x1a\n\x16VPC_EGRESS_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x01\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x02\"\xb0\x01\n\x13\x42inaryAuthorization\x12\x1a\n\x0buse_default\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12\x43\n\x06policy\x18\x03 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)binaryauthorization.googleapis.com/PolicyH\x00\x12%\n\x18\x62reakglass_justification\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x11\n\x0f\x62inauthz_method\"S\n\x0fRevisionScaling\x12\x1f\n\x12min_instance_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12max_instance_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"E\n\x0bServiceMesh\x12\x36\n\x04mesh\x18\x01 \x01(\tB(\xfa\x41%\n#networkservices.googleapis.com/Mesh\"\xa9\x02\n\x0eServiceScaling\x12\x1f\n\x12min_instance_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12J\n\x0cscaling_mode\x18\x03 \x01(\x0e\x32/.google.cloud.run.v2.ServiceScaling.ScalingModeB\x03\xe0\x41\x01\x12\x1f\n\x12max_instance_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\'\n\x15manual_instance_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\"F\n\x0bScalingMode\x12\x1c\n\x18SCALING_MODE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATIC\x10\x01\x12\n\n\x06MANUAL\x10\x02\x42\x18\n\x16_manual_instance_count\"V\n\x11WorkerPoolScaling\x12\'\n\x15manual_instance_count\x18\x06 \x01(\x05\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x18\n\x16_manual_instance_count\"(\n\x0cNodeSelector\x12\x18\n\x0b\x61\x63\x63\x65lerator\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xd6\x03\n\x0b\x42uildConfig\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1f\x63loudbuild.googleapis.com/Build\x12\x17\n\x0fsource_location\x18\x02 \x01(\t\x12\x1c\n\x0f\x66unction_target\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x16\n\timage_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nbase_image\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12%\n\x18\x65nable_automatic_updates\x18\x06 \x01(\x08\x42\x03\xe0\x41\x01\x12\x46\n\x0bworker_pool\x18\x07 \x01(\tB1\xe0\x41\x01\xfa\x41+\n)cloudbuild.googleapis.com/BuildWorkerPool\x12^\n\x15\x65nvironment_variables\x18\x08 \x03(\x0b\x32:.google.cloud.run.v2.BuildConfig.EnvironmentVariablesEntryB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\t \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*\xb3\x01\n\x0eIngressTraffic\x12\x1f\n\x1bINGRESS_TRAFFIC_UNSPECIFIED\x10\x00\x12\x17\n\x13INGRESS_TRAFFIC_ALL\x10\x01\x12!\n\x1dINGRESS_TRAFFIC_INTERNAL_ONLY\x10\x02\x12*\n&INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER\x10\x03\x12\x18\n\x14INGRESS_TRAFFIC_NONE\x10\x04*}\n\x14\x45xecutionEnvironment\x12%\n!EXECUTION_ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x45XECUTION_ENVIRONMENT_GEN1\x10\x01\x12\x1e\n\x1a\x45XECUTION_ENVIRONMENT_GEN2\x10\x02*p\n\x1d\x45ncryptionKeyRevocationAction\x12\x30\n,ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPREVENT_NEW\x10\x01\x12\x0c\n\x08SHUTDOWN\x10\x02\x42\xfc\x02\n\x17\x63om.google.cloud.run.v2B\x13VendorSettingsProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41\x63\n)binaryauthorization.googleapis.com/Policy\x12\x19projects/{project}/policy\x12\x1blocations/{location}/policy\xea\x41\\\n#networkservices.googleapis.com/Mesh\x12\x35projects/{project}/locations/{location}/meshes/{mesh}\xea\x41Y\n\x1f\x63loudbuild.googleapis.com/Build\x12\x36projects/{project}/locations/{location}/builds/{build}b\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
|
-
]
|
|
27
|
-
imports.each do |type_name, expected_filename|
|
|
28
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
29
|
-
if import_file.name != expected_filename
|
|
30
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
31
|
-
end
|
|
32
|
-
end
|
|
33
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
34
|
-
warn "This will become an error in the next major version."
|
|
35
|
-
end
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
36
15
|
|
|
37
16
|
module Google
|
|
38
17
|
module Cloud
|
|
@@ -21,37 +21,10 @@ require 'google/protobuf/field_mask_pb'
|
|
|
21
21
|
require 'google/protobuf/timestamp_pb'
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
descriptor_data = "\n%google/cloud/run/v2/worker_pool.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/instance_split.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x37google/cloud/run/v2/worker_pool_revision_template.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x01\n\x17\x43reateWorkerPoolRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1drun.googleapis.com/WorkerPool\x12\x39\n\x0bworker_pool\x18\x02 \x01(\x0b\x32\x1f.google.cloud.run.v2.WorkerPoolB\x03\xe0\x41\x02\x12\x1b\n\x0eworker_pool_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xe3\x01\n\x17UpdateWorkerPoolRequest\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x39\n\x0bworker_pool\x18\x01 \x01(\x0b\x32\x1f.google.cloud.run.v2.WorkerPoolB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x66orce_new_revision\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x8c\x01\n\x16ListWorkerPoolsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1drun.googleapis.com/WorkerPool\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\"i\n\x17ListWorkerPoolsResponse\x12\x35\n\x0cworker_pools\x18\x01 \x03(\x0b\x32\x1f.google.cloud.run.v2.WorkerPool\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x14GetWorkerPoolRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1drun.googleapis.com/WorkerPool\"x\n\x17\x44\x65leteWorkerPoolRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1drun.googleapis.com/WorkerPool\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\
|
|
24
|
+
descriptor_data = "\n%google/cloud/run/v2/worker_pool.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/instance_split.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x37google/cloud/run/v2/worker_pool_revision_template.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc4\x01\n\x17\x43reateWorkerPoolRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1drun.googleapis.com/WorkerPool\x12\x39\n\x0bworker_pool\x18\x02 \x01(\x0b\x32\x1f.google.cloud.run.v2.WorkerPoolB\x03\xe0\x41\x02\x12\x1b\n\x0eworker_pool_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\xe3\x01\n\x17UpdateWorkerPoolRequest\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x39\n\x0bworker_pool\x18\x01 \x01(\x0b\x32\x1f.google.cloud.run.v2.WorkerPoolB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x66orce_new_revision\x18\x05 \x01(\x08\x42\x03\xe0\x41\x01\"\x8c\x01\n\x16ListWorkerPoolsRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1drun.googleapis.com/WorkerPool\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\"i\n\x17ListWorkerPoolsResponse\x12\x35\n\x0cworker_pools\x18\x01 \x03(\x0b\x32\x1f.google.cloud.run.v2.WorkerPool\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"K\n\x14GetWorkerPoolRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1drun.googleapis.com/WorkerPool\"x\n\x17\x44\x65leteWorkerPoolRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1drun.googleapis.com/WorkerPool\x12\x1a\n\rvalidate_only\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xce\x0c\n\nWorkerPool\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12@\n\x06labels\x18\x05 \x03(\x0b\x32+.google.cloud.run.v2.WorkerPool.LabelsEntryB\x03\xe0\x41\x01\x12J\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32\x30.google.cloud.run.v2.WorkerPool.AnnotationsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_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\x14\n\x07\x63reator\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\r \x01(\t\x12\x16\n\x0e\x63lient_version\x18\x0e \x01(\t\x12\x32\n\x0claunch_stage\x18\x10 \x01(\x0e\x32\x17.google.api.LaunchStageB\x03\xe0\x41\x01\x12K\n\x14\x62inary_authorization\x18\x11 \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorizationB\x03\xe0\x41\x01\x12\x46\n\x08template\x18\x12 \x01(\x0b\x32/.google.cloud.run.v2.WorkerPoolRevisionTemplateB\x03\xe0\x41\x02\x12@\n\x0finstance_splits\x18\x1a \x03(\x0b\x32\".google.cloud.run.v2.InstanceSplitB\x03\xe0\x41\x01\x12<\n\x07scaling\x18\x14 \x01(\x0b\x32&.google.cloud.run.v2.WorkerPoolScalingB\x03\xe0\x41\x01\x12 \n\x13observed_generation\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x1f \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\x42\n\x15latest_ready_revision\x18! \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x44\n\x17latest_created_revision\x18\" \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12N\n\x17instance_split_statuses\x18\x1b \x03(\x0b\x32(.google.cloud.run.v2.InstanceSplitStatusB\x03\xe0\x41\x03\x12%\n\x18threat_detection_enabled\x18\x1c \x01(\x08\x42\x03\xe0\x41\x03\x12\x1c\n\x10\x63ustom_audiences\x18% \x03(\tB\x02\x18\x01\x12\x1a\n\rsatisfies_pzs\x18& \x01(\x08\x42\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:\x81\x01\xea\x41~\n\x1drun.googleapis.com/WorkerPool\x12\x41projects/{project}/locations/{location}/workerPools/{worker_pool}*\x0bworkerPools2\nworkerPoolR\x01\x01\x32\xbe\x0e\n\x0bWorkerPools\x12\x98\x02\n\x10\x43reateWorkerPool\x12,.google.cloud.run.v2.CreateWorkerPoolRequest\x1a\x1d.google.longrunning.Operation\"\xb6\x01\xca\x41\x18\n\nWorkerPool\x12\nWorkerPool\xda\x41!parent,worker_pool,worker_pool_id\x82\xd3\xe4\x93\x02>\"//v2/{parent=projects/*/locations/*}/workerPools:\x0bworker_pool\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xcf\x01\n\rGetWorkerPool\x12).google.cloud.run.v2.GetWorkerPoolRequest\x1a\x1f.google.cloud.run.v2.WorkerPool\"r\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v2/{name=projects/*/locations/*/workerPools/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xe1\x01\n\x0fListWorkerPools\x12+.google.cloud.run.v2.ListWorkerPoolsRequest\x1a,.google.cloud.run.v2.ListWorkerPoolsResponse\"s\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v2/{parent=projects/*/locations/*}/workerPools\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xb5\x02\n\x10UpdateWorkerPool\x12,.google.cloud.run.v2.UpdateWorkerPoolRequest\x1a\x1d.google.longrunning.Operation\"\xd3\x01\xca\x41\x18\n\nWorkerPool\x12\nWorkerPool\xda\x41\x0bworker_pool\xda\x41\x17worker_pool,update_mask\x82\xd3\xe4\x93\x02J2;/v2/{worker_pool.name=projects/*/locations/*/workerPools/*}:\x0bworker_pool\x8a\xd3\xe4\x93\x02:\x12\x38\n\x10worker_pool.name\x12$projects/*/locations/{location=*}/**\x12\xef\x01\n\x10\x44\x65leteWorkerPool\x12,.google.cloud.run.v2.DeleteWorkerPoolRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xca\x41\x18\n\nWorkerPool\x12\nWorkerPool\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v2/{name=projects/*/locations/*/workerPools/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\x93\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\xd3\xe4\x93\x02\x42\x12@/v2/{resource=projects/*/locations/*/workerPools/*}:getIamPolicy\x12\x96\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"K\x82\xd3\xe4\x93\x02\x45\"@/v2/{resource=projects/*/locations/*/workerPools/*}:setIamPolicy:\x01*\x12\xbc\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"Q\x82\xd3\xe4\x93\x02K\"F/v2/{resource=projects/*/locations/*/workerPools/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBW\n\x17\x63om.google.cloud.run.v2B\x0fWorkerPoolProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
25
25
|
|
|
26
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
27
|
-
|
|
28
|
-
begin
|
|
29
|
-
pool.add_serialized_file(descriptor_data)
|
|
30
|
-
rescue TypeError
|
|
31
|
-
# Compatibility code: will be removed in the next major version.
|
|
32
|
-
require 'google/protobuf/descriptor_pb'
|
|
33
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
34
|
-
parsed.clear_dependency
|
|
35
|
-
serialized = parsed.class.encode(parsed)
|
|
36
|
-
file = pool.add_serialized_file(serialized)
|
|
37
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
38
|
-
imports = [
|
|
39
|
-
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
|
40
|
-
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
|
41
|
-
["google.cloud.run.v2.BinaryAuthorization", "google/cloud/run/v2/vendor_settings.proto"],
|
|
42
|
-
["google.cloud.run.v2.WorkerPoolRevisionTemplate", "google/cloud/run/v2/worker_pool_revision_template.proto"],
|
|
43
|
-
["google.cloud.run.v2.InstanceSplit", "google/cloud/run/v2/instance_split.proto"],
|
|
44
|
-
["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
|
|
45
|
-
]
|
|
46
|
-
imports.each do |type_name, expected_filename|
|
|
47
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
48
|
-
if import_file.name != expected_filename
|
|
49
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
53
|
-
warn "This will become an error in the next major version."
|
|
54
|
-
end
|
|
26
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
27
|
+
pool.add_serialized_file(descriptor_data)
|
|
55
28
|
|
|
56
29
|
module Google
|
|
57
30
|
module Cloud
|
|
@@ -11,34 +11,10 @@ require 'google/cloud/run/v2/vendor_settings_pb'
|
|
|
11
11
|
require 'google/protobuf/duration_pb'
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
descriptor_data = "\n7google/cloud/run/v2/worker_pool_revision_template.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\"\
|
|
14
|
+
descriptor_data = "\n7google/cloud/run/v2/worker_pool_revision_template.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\"\xde\x07\n\x1aWorkerPoolRevisionTemplate\x12\x35\n\x08revision\x18\x01 \x01(\tB#\xe0\x41\x01\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12P\n\x06labels\x18\x02 \x03(\x0b\x32;.google.cloud.run.v2.WorkerPoolRevisionTemplate.LabelsEntryB\x03\xe0\x41\x01\x12Z\n\x0b\x61nnotations\x18\x03 \x03(\x0b\x32@.google.cloud.run.v2.WorkerPoolRevisionTemplate.AnnotationsEntryB\x03\xe0\x41\x01\x12\x37\n\nvpc_access\x18\x04 \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccessB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x32\n\ncontainers\x18\x06 \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12\x31\n\x07volumes\x18\x07 \x03(\x0b\x32\x1b.google.cloud.run.v2.VolumeB\x03\xe0\x41\x01\x12>\n\x0e\x65ncryption_key\x18\x08 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12;\n\x0cservice_mesh\x18\t \x01(\x0b\x32 .google.cloud.run.v2.ServiceMeshB\x03\xe0\x41\x01\x12\x61\n encryption_key_revocation_action\x18\n \x01(\x0e\x32\x32.google.cloud.run.v2.EncryptionKeyRevocationActionB\x03\xe0\x41\x01\x12H\n encryption_key_shutdown_duration\x18\x0b \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12=\n\rnode_selector\x18\r \x01(\x0b\x32!.google.cloud.run.v2.NodeSelectorB\x03\xe0\x41\x01\x12/\n\x1dgpu_zonal_redundancy_disabled\x18\x10 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\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\x42 \n\x1e_gpu_zonal_redundancy_disabledBg\n\x17\x63om.google.cloud.run.v2B\x1fWorkerPoolRevisionTemplateProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
|
15
15
|
|
|
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.cloud.run.v2.VpcAccess", "google/cloud/run/v2/vendor_settings.proto"],
|
|
30
|
-
["google.cloud.run.v2.Container", "google/cloud/run/v2/k8s.min.proto"],
|
|
31
|
-
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
|
32
|
-
]
|
|
33
|
-
imports.each do |type_name, expected_filename|
|
|
34
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
35
|
-
if import_file.name != expected_filename
|
|
36
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
37
|
-
end
|
|
38
|
-
end
|
|
39
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
40
|
-
warn "This will become an error in the next major version."
|
|
41
|
-
end
|
|
16
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
17
|
+
pool.add_serialized_file(descriptor_data)
|
|
42
18
|
|
|
43
19
|
module Google
|
|
44
20
|
module Cloud
|
|
@@ -1116,6 +1116,7 @@ module Google
|
|
|
1116
1116
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1117
1117
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1118
1118
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1119
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1119
1120
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1120
1121
|
# trigger a retry.
|
|
1121
1122
|
# @return [::Hash]
|
|
@@ -1199,6 +1200,7 @@ module Google
|
|
|
1199
1200
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1200
1201
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1201
1202
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1203
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1202
1204
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1203
1205
|
# trigger a retry.
|
|
1204
1206
|
#
|
|
@@ -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
|
#
|
|
@@ -1012,6 +1012,7 @@ module Google
|
|
|
1012
1012
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1013
1013
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1014
1014
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1015
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1015
1016
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1016
1017
|
# trigger a retry.
|
|
1017
1018
|
# @return [::Hash]
|
|
@@ -1084,6 +1085,7 @@ module Google
|
|
|
1084
1085
|
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
1085
1086
|
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
1086
1087
|
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
1088
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
1087
1089
|
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
1088
1090
|
# trigger a retry.
|
|
1089
1091
|
#
|
|
@@ -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
|
#
|
data/lib/google/cloud/run/v2.rb
CHANGED
|
@@ -31,6 +31,8 @@ module Google
|
|
|
31
31
|
# @!attribute [rw] selective_gapic_generation
|
|
32
32
|
# @return [::Google::Api::SelectiveGapicGeneration]
|
|
33
33
|
# Configuration for which RPCs should be generated in the GAPIC client.
|
|
34
|
+
#
|
|
35
|
+
# Note: This field should not be used in most cases.
|
|
34
36
|
class CommonLanguageSettings
|
|
35
37
|
include ::Google::Protobuf::MessageExts
|
|
36
38
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -141,9 +143,10 @@ module Google
|
|
|
141
143
|
#
|
|
142
144
|
# Example of a YAML configuration::
|
|
143
145
|
#
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
#
|
|
146
|
+
# publishing:
|
|
147
|
+
# library_settings:
|
|
148
|
+
# java_settings:
|
|
149
|
+
# library_package: com.google.cloud.pubsub.v1
|
|
147
150
|
# @!attribute [rw] service_class_names
|
|
148
151
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
149
152
|
# Configure the Java class name to use instead of the service's for its
|
|
@@ -155,11 +158,11 @@ module Google
|
|
|
155
158
|
#
|
|
156
159
|
# Example of a YAML configuration::
|
|
157
160
|
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
#
|
|
161
|
+
# publishing:
|
|
162
|
+
# java_settings:
|
|
163
|
+
# service_class_names:
|
|
164
|
+
# - google.pubsub.v1.Publisher: TopicAdmin
|
|
165
|
+
# - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
163
166
|
# @!attribute [rw] common
|
|
164
167
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
165
168
|
# Some settings.
|
|
@@ -190,6 +193,20 @@ module Google
|
|
|
190
193
|
# @!attribute [rw] common
|
|
191
194
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
192
195
|
# Some settings.
|
|
196
|
+
# @!attribute [rw] library_package
|
|
197
|
+
# @return [::String]
|
|
198
|
+
# The package name to use in Php. Clobbers the php_namespace option
|
|
199
|
+
# set in the protobuf. This should be used **only** by APIs
|
|
200
|
+
# who have already set the language_settings.php.package_name" field
|
|
201
|
+
# in gapic.yaml. API teams should use the protobuf php_namespace option
|
|
202
|
+
# where possible.
|
|
203
|
+
#
|
|
204
|
+
# Example of a YAML configuration::
|
|
205
|
+
#
|
|
206
|
+
# publishing:
|
|
207
|
+
# library_settings:
|
|
208
|
+
# php_settings:
|
|
209
|
+
# library_package: Google\Cloud\PubSub\V1
|
|
193
210
|
class PhpSettings
|
|
194
211
|
include ::Google::Protobuf::MessageExts
|
|
195
212
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -318,10 +335,12 @@ module Google
|
|
|
318
335
|
# service names and values are the name to be used for the service client
|
|
319
336
|
# and call options.
|
|
320
337
|
#
|
|
321
|
-
#
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
338
|
+
# Example:
|
|
339
|
+
#
|
|
340
|
+
# publishing:
|
|
341
|
+
# go_settings:
|
|
342
|
+
# renamed_services:
|
|
343
|
+
# Publisher: TopicAdmin
|
|
325
344
|
class GoSettings
|
|
326
345
|
include ::Google::Protobuf::MessageExts
|
|
327
346
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -344,10 +363,10 @@ module Google
|
|
|
344
363
|
#
|
|
345
364
|
# Example:
|
|
346
365
|
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
366
|
+
# publishing:
|
|
367
|
+
# method_settings:
|
|
368
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
|
369
|
+
# # method settings for CreateFolder...
|
|
351
370
|
# @!attribute [rw] long_running
|
|
352
371
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
|
353
372
|
# Describes settings to use for long-running operations when generating
|
|
@@ -356,14 +375,14 @@ module Google
|
|
|
356
375
|
#
|
|
357
376
|
# Example of a YAML configuration::
|
|
358
377
|
#
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
378
|
+
# publishing:
|
|
379
|
+
# method_settings:
|
|
380
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
381
|
+
# long_running:
|
|
382
|
+
# initial_poll_delay: 60s # 1 minute
|
|
383
|
+
# poll_delay_multiplier: 1.5
|
|
384
|
+
# max_poll_delay: 360s # 6 minutes
|
|
385
|
+
# total_poll_timeout: 54000s # 90 minutes
|
|
367
386
|
# @!attribute [rw] auto_populated_fields
|
|
368
387
|
# @return [::Array<::String>]
|
|
369
388
|
# List of top-level fields of the request message, that should be
|
|
@@ -372,11 +391,24 @@ module Google
|
|
|
372
391
|
#
|
|
373
392
|
# Example of a YAML configuration:
|
|
374
393
|
#
|
|
375
|
-
#
|
|
376
|
-
#
|
|
377
|
-
#
|
|
378
|
-
#
|
|
379
|
-
#
|
|
394
|
+
# publishing:
|
|
395
|
+
# method_settings:
|
|
396
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
397
|
+
# auto_populated_fields:
|
|
398
|
+
# - request_id
|
|
399
|
+
# @!attribute [rw] batching
|
|
400
|
+
# @return [::Google::Api::BatchingConfigProto]
|
|
401
|
+
# Batching configuration for an API method in client libraries.
|
|
402
|
+
#
|
|
403
|
+
# Example of a YAML configuration:
|
|
404
|
+
#
|
|
405
|
+
# publishing:
|
|
406
|
+
# method_settings:
|
|
407
|
+
# - selector: google.example.v1.ExampleService.BatchCreateExample
|
|
408
|
+
# batching:
|
|
409
|
+
# element_count_threshold: 1000
|
|
410
|
+
# request_byte_threshold: 100000000
|
|
411
|
+
# delay_threshold_millis: 10
|
|
380
412
|
class MethodSettings
|
|
381
413
|
include ::Google::Protobuf::MessageExts
|
|
382
414
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -411,6 +443,8 @@ module Google
|
|
|
411
443
|
|
|
412
444
|
# This message is used to configure the generation of a subset of the RPCs in
|
|
413
445
|
# a service for client libraries.
|
|
446
|
+
#
|
|
447
|
+
# Note: This feature should not be used in most cases.
|
|
414
448
|
# @!attribute [rw] methods
|
|
415
449
|
# @return [::Array<::String>]
|
|
416
450
|
# An allowlist of the fully qualified names of RPCs that should be included
|
|
@@ -428,6 +462,77 @@ module Google
|
|
|
428
462
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
429
463
|
end
|
|
430
464
|
|
|
465
|
+
# `BatchingConfigProto` defines the batching configuration for an API method.
|
|
466
|
+
# @!attribute [rw] thresholds
|
|
467
|
+
# @return [::Google::Api::BatchingSettingsProto]
|
|
468
|
+
# The thresholds which trigger a batched request to be sent.
|
|
469
|
+
# @!attribute [rw] batch_descriptor
|
|
470
|
+
# @return [::Google::Api::BatchingDescriptorProto]
|
|
471
|
+
# The request and response fields used in batching.
|
|
472
|
+
class BatchingConfigProto
|
|
473
|
+
include ::Google::Protobuf::MessageExts
|
|
474
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of
|
|
478
|
+
# which acts as a trigger to send a batch of messages as a request. At least
|
|
479
|
+
# one threshold must be positive nonzero.
|
|
480
|
+
# @!attribute [rw] element_count_threshold
|
|
481
|
+
# @return [::Integer]
|
|
482
|
+
# The number of elements of a field collected into a batch which, if
|
|
483
|
+
# exceeded, causes the batch to be sent.
|
|
484
|
+
# @!attribute [rw] request_byte_threshold
|
|
485
|
+
# @return [::Integer]
|
|
486
|
+
# The aggregated size of the batched field which, if exceeded, causes the
|
|
487
|
+
# batch to be sent. This size is computed by aggregating the sizes of the
|
|
488
|
+
# request field to be batched, not of the entire request message.
|
|
489
|
+
# @!attribute [rw] delay_threshold
|
|
490
|
+
# @return [::Google::Protobuf::Duration]
|
|
491
|
+
# The duration after which a batch should be sent, starting from the addition
|
|
492
|
+
# of the first message to that batch.
|
|
493
|
+
# @!attribute [rw] element_count_limit
|
|
494
|
+
# @return [::Integer]
|
|
495
|
+
# The maximum number of elements collected in a batch that could be accepted
|
|
496
|
+
# by server.
|
|
497
|
+
# @!attribute [rw] request_byte_limit
|
|
498
|
+
# @return [::Integer]
|
|
499
|
+
# The maximum size of the request that could be accepted by server.
|
|
500
|
+
# @!attribute [rw] flow_control_element_limit
|
|
501
|
+
# @return [::Integer]
|
|
502
|
+
# The maximum number of elements allowed by flow control.
|
|
503
|
+
# @!attribute [rw] flow_control_byte_limit
|
|
504
|
+
# @return [::Integer]
|
|
505
|
+
# The maximum size of data allowed by flow control.
|
|
506
|
+
# @!attribute [rw] flow_control_limit_exceeded_behavior
|
|
507
|
+
# @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
|
|
508
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
509
|
+
class BatchingSettingsProto
|
|
510
|
+
include ::Google::Protobuf::MessageExts
|
|
511
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
515
|
+
# used for batching, and, optionally, the fields of the response message to be
|
|
516
|
+
# used for demultiplexing.
|
|
517
|
+
# @!attribute [rw] batched_field
|
|
518
|
+
# @return [::String]
|
|
519
|
+
# The repeated field in the request message to be aggregated by batching.
|
|
520
|
+
# @!attribute [rw] discriminator_fields
|
|
521
|
+
# @return [::Array<::String>]
|
|
522
|
+
# A list of the fields in the request message. Two requests will be batched
|
|
523
|
+
# together only if the values of every field specified in
|
|
524
|
+
# `request_discriminator_fields` is equal between the two requests.
|
|
525
|
+
# @!attribute [rw] subresponse_field
|
|
526
|
+
# @return [::String]
|
|
527
|
+
# Optional. When present, indicates the field in the response message to be
|
|
528
|
+
# used to demultiplex the response into multiple response messages, in
|
|
529
|
+
# correspondence with the multiple request messages originally batched
|
|
530
|
+
# together.
|
|
531
|
+
class BatchingDescriptorProto
|
|
532
|
+
include ::Google::Protobuf::MessageExts
|
|
533
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
534
|
+
end
|
|
535
|
+
|
|
431
536
|
# The organization for which the client libraries are being published.
|
|
432
537
|
# Affects the url where generated docs are published, etc.
|
|
433
538
|
module ClientLibraryOrganization
|
|
@@ -469,5 +574,20 @@ module Google
|
|
|
469
574
|
# Publish the library to package managers like nuget.org and npmjs.com.
|
|
470
575
|
PACKAGE_MANAGER = 20
|
|
471
576
|
end
|
|
577
|
+
|
|
578
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
579
|
+
module FlowControlLimitExceededBehaviorProto
|
|
580
|
+
# Default behavior, system-defined.
|
|
581
|
+
UNSET_BEHAVIOR = 0
|
|
582
|
+
|
|
583
|
+
# Stop operation, raise error.
|
|
584
|
+
THROW_EXCEPTION = 1
|
|
585
|
+
|
|
586
|
+
# Pause operation until limit clears.
|
|
587
|
+
BLOCK = 2
|
|
588
|
+
|
|
589
|
+
# Continue operation, disregard limit.
|
|
590
|
+
IGNORE = 3
|
|
591
|
+
end
|
|
472
592
|
end
|
|
473
593
|
end
|
|
@@ -49,9 +49,13 @@ module Google
|
|
|
49
49
|
# app_profile_id: profiles/prof_qux
|
|
50
50
|
# }
|
|
51
51
|
#
|
|
52
|
-
# The routing header consists of one or multiple key-value pairs.
|
|
53
|
-
#
|
|
54
|
-
# `
|
|
52
|
+
# The routing header consists of one or multiple key-value pairs. The order of
|
|
53
|
+
# the key-value pairs is undefined, the order of the `routing_parameters` in
|
|
54
|
+
# the `RoutingRule` only matters for the evaluation order of the path
|
|
55
|
+
# templates when `field` is the same. See the examples below for more details.
|
|
56
|
+
#
|
|
57
|
+
# Every key and value in the routing header must be percent-encoded,
|
|
58
|
+
# and joined together in the following format: `key1=value1&key2=value2`.
|
|
55
59
|
# The examples below skip the percent-encoding for readability.
|
|
56
60
|
#
|
|
57
61
|
# Example 1
|
|
@@ -59,6 +59,17 @@ module Google
|
|
|
59
59
|
# @!attribute [rw] tags
|
|
60
60
|
# @return [::Array<::String>]
|
|
61
61
|
# Optional. Additional tags to annotate the build.
|
|
62
|
+
# @!attribute [rw] machine_type
|
|
63
|
+
# @return [::String]
|
|
64
|
+
# Optional. The machine type from default pool to use for the build. If left
|
|
65
|
+
# blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
|
|
66
|
+
# is supported. If worker_pool is set, this field will be ignored.
|
|
67
|
+
# @!attribute [rw] release_track
|
|
68
|
+
# @return [::Google::Api::LaunchStage]
|
|
69
|
+
# Optional. The release track of the client that initiated the build request.
|
|
70
|
+
# @!attribute [rw] client
|
|
71
|
+
# @return [::String]
|
|
72
|
+
# Optional. The client that initiated the build request.
|
|
62
73
|
class SubmitBuildRequest
|
|
63
74
|
include ::Google::Protobuf::MessageExts
|
|
64
75
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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 Run
|
|
23
|
+
module V2
|
|
24
|
+
# ContainerStatus holds the information of container name and image digest
|
|
25
|
+
# value.
|
|
26
|
+
# @!attribute [rw] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# The name of the container, if specified.
|
|
29
|
+
# @!attribute [rw] image_digest
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# ImageDigest holds the resolved digest for the image specified and resolved
|
|
32
|
+
# during the creation of Revision. This field holds the digest value
|
|
33
|
+
# regardless of whether a tag or digest was originally specified in the
|
|
34
|
+
# Container object.
|
|
35
|
+
class ContainerStatus
|
|
36
|
+
include ::Google::Protobuf::MessageExts
|
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|