google-cloud-run-v2 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2322a7cafea7960744059f2cc37db25874063ed167ca56af8aca45991addfbb8
4
- data.tar.gz: d75aba77329649f3e66fd49c12443576c88d506a66c34388d89061cd9f9e92bd
3
+ metadata.gz: dd05cb8aff4111d2f48d5d9a0a7c849d47f65ccc6fbd47546e0f2f7231da9ac3
4
+ data.tar.gz: 1e5185d69515970a5fb1725e692d44e044171475b3633e8509cb457541a9deb0
5
5
  SHA512:
6
- metadata.gz: 8f2f3e4e3849fbb4e7612c8dc0e99ecbeece2f9642f34fd5fd170e9cd226352b85c2b2a78be22b89fd957d22177640fe062c9b65b6ecd1a4f6a3d4d21319ad08
7
- data.tar.gz: c9e91a0e01daefd68557a1d3ed509d971f034fa558d81234171597253821ef2165165043800ae6da3ae5cc19c63631ee32825d505d0fa1aedd1493fe8a5cbebb
6
+ metadata.gz: 66a9f39c796d4aec913761f7389fcb0c00753427e3d31f8b37f8756b93e6319b99503fd141617719ea4c6549843a42635212c8ca41c924faf6c64f9b760d289b
7
+ data.tar.gz: 98352c703678e35c31bc4aab3df9d152bb0b1713891859dc2d47e79060d1a01403bc3dfe16524a8ce0dd54bb09d633563782691ca09599677d718d960205aad0
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/condition.proto
3
4
 
@@ -5,73 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/timestamp_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/run/v2/condition.proto", :syntax => :proto3) do
10
- add_message "google.cloud.run.v2.Condition" do
11
- optional :type, :string, 1
12
- optional :state, :enum, 2, "google.cloud.run.v2.Condition.State"
13
- optional :message, :string, 3
14
- optional :last_transition_time, :message, 4, "google.protobuf.Timestamp"
15
- optional :severity, :enum, 5, "google.cloud.run.v2.Condition.Severity"
16
- oneof :reasons do
17
- optional :reason, :enum, 6, "google.cloud.run.v2.Condition.CommonReason"
18
- optional :revision_reason, :enum, 9, "google.cloud.run.v2.Condition.RevisionReason"
19
- optional :execution_reason, :enum, 11, "google.cloud.run.v2.Condition.ExecutionReason"
20
- end
21
- end
22
- add_enum "google.cloud.run.v2.Condition.State" do
23
- value :STATE_UNSPECIFIED, 0
24
- value :CONDITION_PENDING, 1
25
- value :CONDITION_RECONCILING, 2
26
- value :CONDITION_FAILED, 3
27
- value :CONDITION_SUCCEEDED, 4
28
- end
29
- add_enum "google.cloud.run.v2.Condition.Severity" do
30
- value :SEVERITY_UNSPECIFIED, 0
31
- value :ERROR, 1
32
- value :WARNING, 2
33
- value :INFO, 3
34
- end
35
- add_enum "google.cloud.run.v2.Condition.CommonReason" do
36
- value :COMMON_REASON_UNDEFINED, 0
37
- value :UNKNOWN, 1
38
- value :REVISION_FAILED, 3
39
- value :PROGRESS_DEADLINE_EXCEEDED, 4
40
- value :CONTAINER_MISSING, 6
41
- value :CONTAINER_PERMISSION_DENIED, 7
42
- value :CONTAINER_IMAGE_UNAUTHORIZED, 8
43
- value :CONTAINER_IMAGE_AUTHORIZATION_CHECK_FAILED, 9
44
- value :ENCRYPTION_KEY_PERMISSION_DENIED, 10
45
- value :ENCRYPTION_KEY_CHECK_FAILED, 11
46
- value :SECRETS_ACCESS_CHECK_FAILED, 12
47
- value :WAITING_FOR_OPERATION, 13
48
- value :IMMEDIATE_RETRY, 14
49
- value :POSTPONED_RETRY, 15
50
- value :INTERNAL, 16
51
- end
52
- add_enum "google.cloud.run.v2.Condition.RevisionReason" do
53
- value :REVISION_REASON_UNDEFINED, 0
54
- value :PENDING, 1
55
- value :RESERVE, 2
56
- value :RETIRED, 3
57
- value :RETIRING, 4
58
- value :RECREATING, 5
59
- value :HEALTH_CHECK_CONTAINER_ERROR, 6
60
- value :CUSTOMIZED_PATH_RESPONSE_PENDING, 7
61
- value :MIN_INSTANCES_NOT_PROVISIONED, 8
62
- value :ACTIVE_REVISION_LIMIT_REACHED, 9
63
- value :NO_DEPLOYMENT, 10
64
- value :HEALTH_CHECK_SKIPPED, 11
65
- value :MIN_INSTANCES_WARMING, 12
66
- end
67
- add_enum "google.cloud.run.v2.Condition.ExecutionReason" do
68
- value :EXECUTION_REASON_UNDEFINED, 0
69
- value :JOB_STATUS_SERVICE_POLLING_ERROR, 1
70
- value :NON_ZERO_EXIT_CODE, 2
71
- value :CANCELLED, 3
72
- value :CANCELLING, 4
9
+
10
+ descriptor_data = "\n#google/cloud/run/v2/condition.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/protobuf/timestamp.proto\"\x90\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=\n\x06reason\x18\x06 \x01(\x0e\x32+.google.cloud.run.v2.Condition.CommonReasonH\x00\x12H\n\x0frevision_reason\x18\t \x01(\x0e\x32-.google.cloud.run.v2.Condition.RevisionReasonH\x00\x12J\n\x10\x65xecution_reason\x18\x0b \x01(\x0e\x32..google.cloud.run.v2.Condition.ExecutionReasonH\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\"\xb2\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\"\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\"\x8e\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\x42\t\n\x07reasonsBV\n\x17\x63om.google.cloud.run.v2B\x0e\x43onditionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
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
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
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}"
73
31
  end
74
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."
75
35
  end
76
36
 
77
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/execution.proto
3
4
 
@@ -13,56 +14,34 @@ require 'google/cloud/run/v2/task_template_pb'
13
14
  require 'google/longrunning/operations_pb'
14
15
  require 'google/protobuf/timestamp_pb'
15
16
 
16
- Google::Protobuf::DescriptorPool.generated_pool.build do
17
- add_file("google/cloud/run/v2/execution.proto", :syntax => :proto3) do
18
- add_message "google.cloud.run.v2.GetExecutionRequest" do
19
- optional :name, :string, 1
20
- end
21
- add_message "google.cloud.run.v2.ListExecutionsRequest" do
22
- optional :parent, :string, 1
23
- optional :page_size, :int32, 2
24
- optional :page_token, :string, 3
25
- optional :show_deleted, :bool, 4
26
- end
27
- add_message "google.cloud.run.v2.ListExecutionsResponse" do
28
- repeated :executions, :message, 1, "google.cloud.run.v2.Execution"
29
- optional :next_page_token, :string, 2
30
- end
31
- add_message "google.cloud.run.v2.DeleteExecutionRequest" do
32
- optional :name, :string, 1
33
- optional :validate_only, :bool, 2
34
- optional :etag, :string, 3
35
- end
36
- add_message "google.cloud.run.v2.Execution" do
37
- optional :name, :string, 1
38
- optional :uid, :string, 2
39
- optional :generation, :int64, 3
40
- map :labels, :string, :string, 4
41
- map :annotations, :string, :string, 5
42
- optional :create_time, :message, 6, "google.protobuf.Timestamp"
43
- optional :start_time, :message, 22, "google.protobuf.Timestamp"
44
- optional :completion_time, :message, 7, "google.protobuf.Timestamp"
45
- optional :update_time, :message, 8, "google.protobuf.Timestamp"
46
- optional :delete_time, :message, 9, "google.protobuf.Timestamp"
47
- optional :expire_time, :message, 10, "google.protobuf.Timestamp"
48
- optional :launch_stage, :enum, 11, "google.api.LaunchStage"
49
- optional :job, :string, 12
50
- optional :parallelism, :int32, 13
51
- optional :task_count, :int32, 14
52
- optional :template, :message, 15, "google.cloud.run.v2.TaskTemplate"
53
- optional :reconciling, :bool, 16
54
- repeated :conditions, :message, 17, "google.cloud.run.v2.Condition"
55
- optional :observed_generation, :int64, 18
56
- optional :running_count, :int32, 19
57
- optional :succeeded_count, :int32, 20
58
- optional :failed_count, :int32, 21
59
- optional :cancelled_count, :int32, 24
60
- optional :retried_count, :int32, 25
61
- optional :log_uri, :string, 26
62
- optional :satisfies_pzs, :bool, 27
63
- optional :etag, :string, 99
17
+
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\"\x82\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\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\xe8\x04\n\nExecutions\x12\x9e\x01\n\x0cGetExecution\x12(.google.cloud.run.v2.GetExecutionRequest\x1a\x1e.google.cloud.run.v2.Execution\"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{name=projects/*/locations/*/jobs/*/executions/*}\xda\x41\x04name\x12\xb1\x01\n\x0eListExecutions\x12*.google.cloud.run.v2.ListExecutionsRequest\x1a+.google.cloud.run.v2.ListExecutionsResponse\"F\x82\xd3\xe4\x93\x02\x37\x12\x35/v2/{parent=projects/*/locations/*/jobs/*}/executions\xda\x41\x06parent\x12\xbc\x01\n\x0f\x44\x65leteExecution\x12+.google.cloud.run.v2.DeleteExecutionRequest\x1a\x1d.google.longrunning.Operation\"]\x82\xd3\xe4\x93\x02\x37*5/v2/{name=projects/*/locations/*/jobs/*/executions/*}\xda\x41\x04name\xca\x41\x16\n\tExecution\x12\tExecution\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
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError => e
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}"
64
41
  end
65
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."
66
45
  end
67
46
 
68
47
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/execution_template.proto
3
4
 
@@ -6,16 +7,32 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/cloud/run/v2/task_template_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/run/v2/execution_template.proto", :syntax => :proto3) do
11
- add_message "google.cloud.run.v2.ExecutionTemplate" do
12
- map :labels, :string, :string, 1
13
- map :annotations, :string, :string, 2
14
- optional :parallelism, :int32, 3
15
- optional :task_count, :int32, 4
16
- optional :template, :message, 5, "google.cloud.run.v2.TaskTemplate"
10
+
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\"\xeb\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\x13\n\x0bparallelism\x18\x03 \x01(\x05\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
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
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}"
17
32
  end
18
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."
19
36
  end
20
37
 
21
38
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/job.proto
3
4
 
@@ -17,74 +18,35 @@ require 'google/iam/v1/policy_pb'
17
18
  require 'google/longrunning/operations_pb'
18
19
  require 'google/protobuf/timestamp_pb'
19
20
 
20
- Google::Protobuf::DescriptorPool.generated_pool.build do
21
- add_file("google/cloud/run/v2/job.proto", :syntax => :proto3) do
22
- add_message "google.cloud.run.v2.CreateJobRequest" do
23
- optional :parent, :string, 1
24
- optional :job, :message, 2, "google.cloud.run.v2.Job"
25
- optional :job_id, :string, 3
26
- optional :validate_only, :bool, 4
27
- end
28
- add_message "google.cloud.run.v2.GetJobRequest" do
29
- optional :name, :string, 1
30
- end
31
- add_message "google.cloud.run.v2.UpdateJobRequest" do
32
- optional :job, :message, 1, "google.cloud.run.v2.Job"
33
- optional :validate_only, :bool, 3
34
- optional :allow_missing, :bool, 4
35
- end
36
- add_message "google.cloud.run.v2.ListJobsRequest" do
37
- optional :parent, :string, 1
38
- optional :page_size, :int32, 2
39
- optional :page_token, :string, 3
40
- optional :show_deleted, :bool, 4
41
- end
42
- add_message "google.cloud.run.v2.ListJobsResponse" do
43
- repeated :jobs, :message, 1, "google.cloud.run.v2.Job"
44
- optional :next_page_token, :string, 2
45
- end
46
- add_message "google.cloud.run.v2.DeleteJobRequest" do
47
- optional :name, :string, 1
48
- optional :validate_only, :bool, 3
49
- optional :etag, :string, 4
50
- end
51
- add_message "google.cloud.run.v2.RunJobRequest" do
52
- optional :name, :string, 1
53
- optional :validate_only, :bool, 2
54
- optional :etag, :string, 3
55
- end
56
- add_message "google.cloud.run.v2.Job" do
57
- optional :name, :string, 1
58
- optional :uid, :string, 2
59
- optional :generation, :int64, 3
60
- map :labels, :string, :string, 4
61
- map :annotations, :string, :string, 5
62
- optional :create_time, :message, 6, "google.protobuf.Timestamp"
63
- optional :update_time, :message, 7, "google.protobuf.Timestamp"
64
- optional :delete_time, :message, 8, "google.protobuf.Timestamp"
65
- optional :expire_time, :message, 9, "google.protobuf.Timestamp"
66
- optional :creator, :string, 10
67
- optional :last_modifier, :string, 11
68
- optional :client, :string, 12
69
- optional :client_version, :string, 13
70
- optional :launch_stage, :enum, 14, "google.api.LaunchStage"
71
- optional :binary_authorization, :message, 15, "google.cloud.run.v2.BinaryAuthorization"
72
- optional :template, :message, 16, "google.cloud.run.v2.ExecutionTemplate"
73
- optional :observed_generation, :int64, 17
74
- optional :terminal_condition, :message, 18, "google.cloud.run.v2.Condition"
75
- repeated :conditions, :message, 19, "google.cloud.run.v2.Condition"
76
- optional :execution_count, :int32, 20
77
- optional :latest_created_execution, :message, 22, "google.cloud.run.v2.ExecutionReference"
78
- optional :reconciling, :bool, 23
79
- optional :satisfies_pzs, :bool, 25
80
- optional :etag, :string, 99
81
- end
82
- add_message "google.cloud.run.v2.ExecutionReference" do
83
- optional :name, :string, 1
84
- optional :create_time, :message, 2, "google.protobuf.Timestamp"
85
- optional :completion_time, :message, 3, "google.protobuf.Timestamp"
21
+
22
+ descriptor_data = "\n\x1dgoogle/cloud/run/v2/job.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/execution.proto\x1a,google/cloud/run/v2/execution_template.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9a\x01\n\x10\x43reateJobRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\x12*\n\x03job\x18\x02 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x13\n\x06job_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"=\n\rGetJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\"l\n\x10UpdateJobRequest\x12*\n\x03job\x18\x01 \x01(\x0b\x32\x18.google.cloud.run.v2.JobB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\"~\n\x0fListJobsRequest\x12.\n\x06parent\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\x12\x16run.googleapis.com/Job\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\"S\n\x10ListJobsResponse\x12&\n\x04jobs\x18\x01 \x03(\x0b\x32\x18.google.cloud.run.v2.Job\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"e\n\x10\x44\x65leteJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x04 \x01(\t\"b\n\rRunJobRequest\x12,\n\x04name\x18\x01 \x01(\tB\x1e\xe0\x41\x02\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xa6\t\n\x03Job\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12\x34\n\x06labels\x18\x04 \x03(\x0b\x32$.google.cloud.run.v2.Job.LabelsEntry\x12>\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32).google.cloud.run.v2.Job.AnnotationsEntry\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\x0c \x01(\t\x12\x16\n\x0e\x63lient_version\x18\r \x01(\t\x12-\n\x0claunch_stage\x18\x0e \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x46\n\x14\x62inary_authorization\x18\x0f \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorization\x12=\n\x08template\x18\x10 \x01(\x0b\x32&.google.cloud.run.v2.ExecutionTemplateB\x03\xe0\x41\x02\x12 \n\x13observed_generation\x18\x11 \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x12 \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x13 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x1c\n\x0f\x65xecution_count\x18\x14 \x01(\x05\x42\x03\xe0\x41\x03\x12N\n\x18latest_created_execution\x18\x16 \x01(\x0b\x32\'.google.cloud.run.v2.ExecutionReferenceB\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x17 \x01(\x08\x42\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18\x19 \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:R\xea\x41O\n\x16run.googleapis.com/Job\x12\x32projects/{project}/locations/{location}/jobs/{job}R\x01\x01\"\xab\x01\n\x12\x45xecutionReference\x12/\n\x04name\x18\x01 \x01(\tB!\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x33\n\x0f\x63ompletion_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xcc\x0b\n\x04Jobs\x12\xa9\x01\n\tCreateJob\x12%.google.cloud.run.v2.CreateJobRequest\x1a\x1d.google.longrunning.Operation\"V\x82\xd3\xe4\x93\x02/\"(/v2/{parent=projects/*/locations/*}/jobs:\x03job\xda\x41\x11parent,job,job_id\xca\x41\n\n\x03Job\x12\x03Job\x12\x7f\n\x06GetJob\x12\".google.cloud.run.v2.GetJobRequest\x1a\x18.google.cloud.run.v2.Job\"7\x82\xd3\xe4\x93\x02*\x12(/v2/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\x12\x92\x01\n\x08ListJobs\x12$.google.cloud.run.v2.ListJobsRequest\x1a%.google.cloud.run.v2.ListJobsResponse\"9\x82\xd3\xe4\x93\x02*\x12(/v2/{parent=projects/*/locations/*}/jobs\xda\x41\x06parent\x12\x9f\x01\n\tUpdateJob\x12%.google.cloud.run.v2.UpdateJobRequest\x1a\x1d.google.longrunning.Operation\"L\x82\xd3\xe4\x93\x02\x33\x32,/v2/{job.name=projects/*/locations/*/jobs/*}:\x03job\xda\x41\x03job\xca\x41\n\n\x03Job\x12\x03Job\x12\x97\x01\n\tDeleteJob\x12%.google.cloud.run.v2.DeleteJobRequest\x1a\x1d.google.longrunning.Operation\"D\x82\xd3\xe4\x93\x02**(/v2/{name=projects/*/locations/*/jobs/*}\xda\x41\x04name\xca\x41\n\n\x03Job\x12\x03Job\x12\xa4\x01\n\x06RunJob\x12\".google.cloud.run.v2.RunJobRequest\x1a\x1d.google.longrunning.Operation\"W\x82\xd3\xe4\x93\x02\x31\",/v2/{name=projects/*/locations/*/jobs/*}:run:\x01*\xda\x41\x04name\xca\x41\x16\n\tExecution\x12\tExecution\x12\x8c\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"A\x82\xd3\xe4\x93\x02;\x12\x39/v2/{resource=projects/*/locations/*/jobs/*}:getIamPolicy\x12\x8f\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"D\x82\xd3\xe4\x93\x02>\"9/v2/{resource=projects/*/locations/*/jobs/*}:setIamPolicy:\x01*\x12\xb5\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"J\x82\xd3\xe4\x93\x02\x44\"?/v2/{resource=projects/*/locations/*/jobs/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBP\n\x17\x63om.google.cloud.run.v2B\x08JobProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
23
+
24
+ pool = Google::Protobuf::DescriptorPool.generated_pool
25
+
26
+ begin
27
+ pool.add_serialized_file(descriptor_data)
28
+ rescue TypeError => e
29
+ # Compatibility code: will be removed in the next major version.
30
+ require 'google/protobuf/descriptor_pb'
31
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
32
+ parsed.clear_dependency
33
+ serialized = parsed.class.encode(parsed)
34
+ file = pool.add_serialized_file(serialized)
35
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
36
+ imports = [
37
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
38
+ ["google.cloud.run.v2.BinaryAuthorization", "google/cloud/run/v2/vendor_settings.proto"],
39
+ ["google.cloud.run.v2.ExecutionTemplate", "google/cloud/run/v2/execution_template.proto"],
40
+ ["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
41
+ ]
42
+ imports.each do |type_name, expected_filename|
43
+ import_file = pool.lookup(type_name).file_descriptor
44
+ if import_file.name != expected_filename
45
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
86
46
  end
87
47
  end
48
+ warn "Each proto file must use a consistent fully-qualified name."
49
+ warn "This will become an error in the next major version."
88
50
  end
89
51
 
90
52
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/k8s.min.proto
3
4
 
@@ -6,96 +7,31 @@ require 'google/protobuf'
6
7
  require 'google/api/field_behavior_pb'
7
8
  require 'google/api/resource_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/cloud/run/v2/k8s.min.proto", :syntax => :proto3) do
11
- add_message "google.cloud.run.v2.Container" do
12
- optional :name, :string, 1
13
- optional :image, :string, 2
14
- repeated :command, :string, 3
15
- repeated :args, :string, 4
16
- repeated :env, :message, 5, "google.cloud.run.v2.EnvVar"
17
- optional :resources, :message, 6, "google.cloud.run.v2.ResourceRequirements"
18
- repeated :ports, :message, 7, "google.cloud.run.v2.ContainerPort"
19
- repeated :volume_mounts, :message, 8, "google.cloud.run.v2.VolumeMount"
20
- optional :working_dir, :string, 9
21
- optional :liveness_probe, :message, 10, "google.cloud.run.v2.Probe"
22
- optional :startup_probe, :message, 11, "google.cloud.run.v2.Probe"
23
- end
24
- add_message "google.cloud.run.v2.ResourceRequirements" do
25
- map :limits, :string, :string, 1
26
- optional :cpu_idle, :bool, 2
27
- optional :startup_cpu_boost, :bool, 3
28
- end
29
- add_message "google.cloud.run.v2.EnvVar" do
30
- optional :name, :string, 1
31
- oneof :values do
32
- optional :value, :string, 2
33
- optional :value_source, :message, 3, "google.cloud.run.v2.EnvVarSource"
34
- end
35
- end
36
- add_message "google.cloud.run.v2.EnvVarSource" do
37
- optional :secret_key_ref, :message, 1, "google.cloud.run.v2.SecretKeySelector"
38
- end
39
- add_message "google.cloud.run.v2.SecretKeySelector" do
40
- optional :secret, :string, 1
41
- optional :version, :string, 2
42
- end
43
- add_message "google.cloud.run.v2.ContainerPort" do
44
- optional :name, :string, 1
45
- optional :container_port, :int32, 3
46
- end
47
- add_message "google.cloud.run.v2.VolumeMount" do
48
- optional :name, :string, 1
49
- optional :mount_path, :string, 3
50
- end
51
- add_message "google.cloud.run.v2.Volume" do
52
- optional :name, :string, 1
53
- oneof :volume_type do
54
- optional :secret, :message, 2, "google.cloud.run.v2.SecretVolumeSource"
55
- optional :cloud_sql_instance, :message, 3, "google.cloud.run.v2.CloudSqlInstance"
56
- end
57
- end
58
- add_message "google.cloud.run.v2.SecretVolumeSource" do
59
- optional :secret, :string, 1
60
- repeated :items, :message, 2, "google.cloud.run.v2.VersionToPath"
61
- optional :default_mode, :int32, 3
62
- end
63
- add_message "google.cloud.run.v2.VersionToPath" do
64
- optional :path, :string, 1
65
- optional :version, :string, 2
66
- optional :mode, :int32, 3
67
- end
68
- add_message "google.cloud.run.v2.CloudSqlInstance" do
69
- repeated :instances, :string, 1
70
- end
71
- add_message "google.cloud.run.v2.Probe" do
72
- optional :initial_delay_seconds, :int32, 1
73
- optional :timeout_seconds, :int32, 2
74
- optional :period_seconds, :int32, 3
75
- optional :failure_threshold, :int32, 4
76
- oneof :probe_type do
77
- optional :http_get, :message, 5, "google.cloud.run.v2.HTTPGetAction"
78
- optional :tcp_socket, :message, 6, "google.cloud.run.v2.TCPSocketAction"
79
- optional :grpc, :message, 7, "google.cloud.run.v2.GRPCAction"
80
- end
81
- end
82
- add_message "google.cloud.run.v2.HTTPGetAction" do
83
- optional :path, :string, 1
84
- repeated :http_headers, :message, 4, "google.cloud.run.v2.HTTPHeader"
85
- optional :port, :int32, 5
86
- end
87
- add_message "google.cloud.run.v2.HTTPHeader" do
88
- optional :name, :string, 1
89
- optional :value, :string, 2
90
- end
91
- add_message "google.cloud.run.v2.TCPSocketAction" do
92
- optional :port, :int32, 1
93
- end
94
- add_message "google.cloud.run.v2.GRPCAction" do
95
- optional :port, :int32, 1
96
- optional :service, :string, 2
10
+
11
+ descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x9c\x03\n\tContainer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\x05image\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x03(\t\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12<\n\tresources\x18\x06 \x01(\x0b\x32).google.cloud.run.v2.ResourceRequirements\x12\x31\n\x05ports\x18\x07 \x03(\x0b\x32\".google.cloud.run.v2.ContainerPort\x12\x37\n\rvolume_mounts\x18\x08 \x03(\x0b\x32 .google.cloud.run.v2.VolumeMount\x12\x13\n\x0bworking_dir\x18\t \x01(\t\x12\x32\n\x0eliveness_probe\x18\n \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x31\n\rstartup_probe\x18\x0b \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\"\xb9\x01\n\x14ResourceRequirements\x12\x45\n\x06limits\x18\x01 \x03(\x0b\x32\x35.google.cloud.run.v2.ResourceRequirements.LimitsEntry\x12\x10\n\x08\x63pu_idle\x18\x02 \x01(\x08\x12\x19\n\x11startup_cpu_boost\x18\x03 \x01(\x08\x1a-\n\x0bLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06\x45nvVar\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x05value\x18\x02 \x01(\tH\x00\x12\x39\n\x0cvalue_source\x18\x03 \x01(\x0b\x32!.google.cloud.run.v2.EnvVarSourceH\x00\x42\x08\n\x06values\"N\n\x0c\x45nvVarSource\x12>\n\x0esecret_key_ref\x18\x01 \x01(\x0b\x32&.google.cloud.run.v2.SecretKeySelector\"\x92\x01\n\x11SecretKeySelector\x12;\n\x06secret\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#secretmanager.googleapis.com/Secret\x12@\n\x07version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\"5\n\rContainerPort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"9\n\x0bVolumeMount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nmount_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xaa\x01\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32\'.google.cloud.run.v2.SecretVolumeSourceH\x00\x12\x43\n\x12\x63loud_sql_instance\x18\x03 \x01(\x0b\x32%.google.cloud.run.v2.CloudSqlInstanceH\x00\x42\r\n\x0bvolume_type\"r\n\x12SecretVolumeSource\x12\x13\n\x06secret\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.cloud.run.v2.VersionToPath\x12\x14\n\x0c\x64\x65\x66\x61ult_mode\x18\x03 \x01(\x05\"A\n\rVersionToPath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\x05\"%\n\x10\x43loudSqlInstance\x12\x11\n\tinstances\x18\x01 \x03(\t\"\xa5\x02\n\x05Probe\x12\x1d\n\x15initial_delay_seconds\x18\x01 \x01(\x05\x12\x17\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x12\x16\n\x0eperiod_seconds\x18\x03 \x01(\x05\x12\x19\n\x11\x66\x61ilure_threshold\x18\x04 \x01(\x05\x12\x36\n\x08http_get\x18\x05 \x01(\x0b\x32\".google.cloud.run.v2.HTTPGetActionH\x00\x12:\n\ntcp_socket\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.TCPSocketActionH\x00\x12/\n\x04grpc\x18\x07 \x01(\x0b\x32\x1f.google.cloud.run.v2.GRPCActionH\x00\x42\x0c\n\nprobe_type\"b\n\rHTTPGetAction\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x35\n\x0chttp_headers\x18\x04 \x03(\x0b\x32\x1f.google.cloud.run.v2.HTTPHeader\x12\x0c\n\x04port\x18\x05 \x01(\x05\".\n\nHTTPHeader\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\r\n\x05value\x18\x02 \x01(\t\"\x1f\n\x0fTCPSocketAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\"+\n\nGRPCAction\x12\x0c\n\x04port\x18\x01 \x01(\x05\x12\x0f\n\x07service\x18\x02 \x01(\tB\xe9\x03\n\x17\x63om.google.cloud.run.v2B\x0bK8sMinProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}b\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
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}"
97
31
  end
98
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."
99
35
  end
100
36
 
101
37
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/revision.proto
3
4
 
@@ -16,58 +17,36 @@ require 'google/longrunning/operations_pb'
16
17
  require 'google/protobuf/duration_pb'
17
18
  require 'google/protobuf/timestamp_pb'
18
19
 
19
- Google::Protobuf::DescriptorPool.generated_pool.build do
20
- add_file("google/cloud/run/v2/revision.proto", :syntax => :proto3) do
21
- add_message "google.cloud.run.v2.GetRevisionRequest" do
22
- optional :name, :string, 1
23
- end
24
- add_message "google.cloud.run.v2.ListRevisionsRequest" do
25
- optional :parent, :string, 1
26
- optional :page_size, :int32, 2
27
- optional :page_token, :string, 3
28
- optional :show_deleted, :bool, 4
29
- end
30
- add_message "google.cloud.run.v2.ListRevisionsResponse" do
31
- repeated :revisions, :message, 1, "google.cloud.run.v2.Revision"
32
- optional :next_page_token, :string, 2
33
- end
34
- add_message "google.cloud.run.v2.DeleteRevisionRequest" do
35
- optional :name, :string, 1
36
- optional :validate_only, :bool, 2
37
- optional :etag, :string, 3
38
- end
39
- add_message "google.cloud.run.v2.Revision" do
40
- optional :name, :string, 1
41
- optional :uid, :string, 2
42
- optional :generation, :int64, 3
43
- map :labels, :string, :string, 4
44
- map :annotations, :string, :string, 5
45
- optional :create_time, :message, 6, "google.protobuf.Timestamp"
46
- optional :update_time, :message, 7, "google.protobuf.Timestamp"
47
- optional :delete_time, :message, 8, "google.protobuf.Timestamp"
48
- optional :expire_time, :message, 9, "google.protobuf.Timestamp"
49
- optional :launch_stage, :enum, 10, "google.api.LaunchStage"
50
- optional :service, :string, 11
51
- optional :scaling, :message, 12, "google.cloud.run.v2.RevisionScaling"
52
- optional :vpc_access, :message, 13, "google.cloud.run.v2.VpcAccess"
53
- optional :max_instance_request_concurrency, :int32, 34
54
- optional :timeout, :message, 15, "google.protobuf.Duration"
55
- optional :service_account, :string, 16
56
- repeated :containers, :message, 17, "google.cloud.run.v2.Container"
57
- repeated :volumes, :message, 18, "google.cloud.run.v2.Volume"
58
- optional :execution_environment, :enum, 20, "google.cloud.run.v2.ExecutionEnvironment"
59
- optional :encryption_key, :string, 21
60
- optional :encryption_key_revocation_action, :enum, 23, "google.cloud.run.v2.EncryptionKeyRevocationAction"
61
- optional :encryption_key_shutdown_duration, :message, 24, "google.protobuf.Duration"
62
- optional :reconciling, :bool, 30
63
- repeated :conditions, :message, 31, "google.cloud.run.v2.Condition"
64
- optional :observed_generation, :int64, 32
65
- optional :log_uri, :string, 33
66
- optional :satisfies_pzs, :bool, 37
67
- optional :session_affinity, :bool, 38
68
- optional :etag, :string, 99
20
+
21
+ descriptor_data = "\n\"google/cloud/run/v2/revision.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/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\"G\n\x12GetRevisionRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\"\x88\x01\n\x14ListRevisionsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1brun.googleapis.com/Revision\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\"b\n\x15ListRevisionsResponse\x12\x30\n\trevisions\x18\x01 \x03(\x0b\x32\x1d.google.cloud.run.v2.Revision\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x15\x44\x65leteRevisionRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xa4\x0c\n\x08Revision\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\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12>\n\x06labels\x18\x04 \x03(\x0b\x32).google.cloud.run.v2.Revision.LabelsEntryB\x03\xe0\x41\x03\x12H\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32..google.cloud.run.v2.Revision.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\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12-\n\x0claunch_stage\x18\n \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x33\n\x07service\x18\x0b \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x35\n\x07scaling\x18\x0c \x01(\x0b\x32$.google.cloud.run.v2.RevisionScaling\x12\x32\n\nvpc_access\x18\r \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccess\x12(\n max_instance_request_concurrency\x18\" \x01(\x05\x12*\n\x07timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fservice_account\x18\x10 \x01(\t\x12\x32\n\ncontainers\x18\x11 \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12,\n\x07volumes\x18\x12 \x03(\x0b\x32\x1b.google.cloud.run.v2.Volume\x12H\n\x15\x65xecution_environment\x18\x14 \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironment\x12>\n\x0e\x65ncryption_key\x18\x15 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\\\n encryption_key_revocation_action\x18\x17 \x01(\x0e\x32\x32.google.cloud.run.v2.EncryptionKeyRevocationAction\x12\x43\n encryption_key_shutdown_duration\x18\x18 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x0breconciling\x18\x1e \x01(\x08\x42\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x1f \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\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\x1a\n\rsatisfies_pzs\x18% \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x10session_affinity\x18& \x01(\x08\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:t\xea\x41q\n\x1brun.googleapis.com/Revision\x12Oprojects/{project}/locations/{location}/services/{service}/revisions/{revision}R\x01\x01\x32\x85\x06\n\tRevisions\x12\xd2\x01\n\x0bGetRevision\x12\'.google.cloud.run.v2.GetRevisionRequest\x1a\x1d.google.cloud.run.v2.Revision\"{\x82\xd3\xe4\x93\x02:\x12\x38/v2/{name=projects/*/locations/*/services/*/revisions/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\xda\x41\x04name\x12\xe7\x01\n\rListRevisions\x12).google.cloud.run.v2.ListRevisionsRequest\x1a*.google.cloud.run.v2.ListRevisionsResponse\"\x7f\x82\xd3\xe4\x93\x02:\x12\x38/v2/{parent=projects/*/locations/*/services/*}/revisions\x8a\xd3\xe4\x93\x02\x30\x12.\n\x06parent\x12$projects/*/locations/{location=*}/**\xda\x41\x06parent\x12\xf0\x01\n\x0e\x44\x65leteRevision\x12*.google.cloud.run.v2.DeleteRevisionRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02:*8/v2/{name=projects/*/locations/*/services/*/revisions/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\xda\x41\x04name\xca\x41\x14\n\x08Revision\x12\x08Revision\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBU\n\x17\x63om.google.cloud.run.v2B\rRevisionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
22
+
23
+ pool = Google::Protobuf::DescriptorPool.generated_pool
24
+
25
+ begin
26
+ pool.add_serialized_file(descriptor_data)
27
+ rescue TypeError => e
28
+ # Compatibility code: will be removed in the next major version.
29
+ require 'google/protobuf/descriptor_pb'
30
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
31
+ parsed.clear_dependency
32
+ serialized = parsed.class.encode(parsed)
33
+ file = pool.add_serialized_file(serialized)
34
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
35
+ imports = [
36
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
37
+ ["google.cloud.run.v2.RevisionScaling", "google/cloud/run/v2/vendor_settings.proto"],
38
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
39
+ ["google.cloud.run.v2.Container", "google/cloud/run/v2/k8s.min.proto"],
40
+ ["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
41
+ ]
42
+ imports.each do |type_name, expected_filename|
43
+ import_file = pool.lookup(type_name).file_descriptor
44
+ if import_file.name != expected_filename
45
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
69
46
  end
70
47
  end
48
+ warn "Each proto file must use a consistent fully-qualified name."
49
+ warn "This will become an error in the next major version."
71
50
  end
72
51
 
73
52
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/revision_template.proto
3
4
 
@@ -8,24 +9,34 @@ require 'google/cloud/run/v2/k8s.min_pb'
8
9
  require 'google/cloud/run/v2/vendor_settings_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/run/v2/revision_template.proto", :syntax => :proto3) do
13
- add_message "google.cloud.run.v2.RevisionTemplate" do
14
- optional :revision, :string, 1
15
- map :labels, :string, :string, 2
16
- map :annotations, :string, :string, 3
17
- optional :scaling, :message, 4, "google.cloud.run.v2.RevisionScaling"
18
- optional :vpc_access, :message, 6, "google.cloud.run.v2.VpcAccess"
19
- optional :timeout, :message, 8, "google.protobuf.Duration"
20
- optional :service_account, :string, 9
21
- repeated :containers, :message, 10, "google.cloud.run.v2.Container"
22
- repeated :volumes, :message, 11, "google.cloud.run.v2.Volume"
23
- optional :execution_environment, :enum, 13, "google.cloud.run.v2.ExecutionEnvironment"
24
- optional :encryption_key, :string, 14
25
- optional :max_instance_request_concurrency, :int32, 15
26
- optional :session_affinity, :bool, 19
12
+
13
+ descriptor_data = "\n+google/cloud/run/v2/revision_template.proto\x12\x13google.cloud.run.v2\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\"\x99\x06\n\x10RevisionTemplate\x12\x32\n\x08revision\x18\x01 \x01(\tB \xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x41\n\x06labels\x18\x02 \x03(\x0b\x32\x31.google.cloud.run.v2.RevisionTemplate.LabelsEntry\x12K\n\x0b\x61nnotations\x18\x03 \x03(\x0b\x32\x36.google.cloud.run.v2.RevisionTemplate.AnnotationsEntry\x12\x35\n\x07scaling\x18\x04 \x01(\x0b\x32$.google.cloud.run.v2.RevisionScaling\x12\x32\n\nvpc_access\x18\x06 \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccess\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fservice_account\x18\t \x01(\t\x12\x32\n\ncontainers\x18\n \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12,\n\x07volumes\x18\x0b \x03(\x0b\x32\x1b.google.cloud.run.v2.Volume\x12H\n\x15\x65xecution_environment\x18\r \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironment\x12>\n\x0e\x65ncryption_key\x18\x0e \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12(\n max_instance_request_concurrency\x18\x0f \x01(\x05\x12\x18\n\x10session_affinity\x18\x13 \x01(\x08\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\x15RevisionTemplateProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.cloud.run.v2.RevisionScaling", "google/cloud/run/v2/vendor_settings.proto"],
29
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
30
+ ["google.cloud.run.v2.Container", "google/cloud/run/v2/k8s.min.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
27
36
  end
28
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
29
40
  end
30
41
 
31
42
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/service.proto
3
4
 
@@ -18,69 +19,36 @@ require 'google/iam/v1/policy_pb'
18
19
  require 'google/longrunning/operations_pb'
19
20
  require 'google/protobuf/timestamp_pb'
20
21
 
21
- Google::Protobuf::DescriptorPool.generated_pool.build do
22
- add_file("google/cloud/run/v2/service.proto", :syntax => :proto3) do
23
- add_message "google.cloud.run.v2.CreateServiceRequest" do
24
- optional :parent, :string, 1
25
- optional :service, :message, 2, "google.cloud.run.v2.Service"
26
- optional :service_id, :string, 3
27
- optional :validate_only, :bool, 4
28
- end
29
- add_message "google.cloud.run.v2.UpdateServiceRequest" do
30
- optional :service, :message, 1, "google.cloud.run.v2.Service"
31
- optional :validate_only, :bool, 3
32
- optional :allow_missing, :bool, 4
33
- end
34
- add_message "google.cloud.run.v2.ListServicesRequest" do
35
- optional :parent, :string, 1
36
- optional :page_size, :int32, 2
37
- optional :page_token, :string, 3
38
- optional :show_deleted, :bool, 4
39
- end
40
- add_message "google.cloud.run.v2.ListServicesResponse" do
41
- repeated :services, :message, 1, "google.cloud.run.v2.Service"
42
- optional :next_page_token, :string, 2
43
- end
44
- add_message "google.cloud.run.v2.GetServiceRequest" do
45
- optional :name, :string, 1
46
- end
47
- add_message "google.cloud.run.v2.DeleteServiceRequest" do
48
- optional :name, :string, 1
49
- optional :validate_only, :bool, 2
50
- optional :etag, :string, 3
51
- end
52
- add_message "google.cloud.run.v2.Service" do
53
- optional :name, :string, 1
54
- optional :description, :string, 2
55
- optional :uid, :string, 3
56
- optional :generation, :int64, 4
57
- map :labels, :string, :string, 5
58
- map :annotations, :string, :string, 6
59
- optional :create_time, :message, 7, "google.protobuf.Timestamp"
60
- optional :update_time, :message, 8, "google.protobuf.Timestamp"
61
- optional :delete_time, :message, 9, "google.protobuf.Timestamp"
62
- optional :expire_time, :message, 10, "google.protobuf.Timestamp"
63
- optional :creator, :string, 11
64
- optional :last_modifier, :string, 12
65
- optional :client, :string, 13
66
- optional :client_version, :string, 14
67
- optional :ingress, :enum, 15, "google.cloud.run.v2.IngressTraffic"
68
- optional :launch_stage, :enum, 16, "google.api.LaunchStage"
69
- optional :binary_authorization, :message, 17, "google.cloud.run.v2.BinaryAuthorization"
70
- optional :template, :message, 18, "google.cloud.run.v2.RevisionTemplate"
71
- repeated :traffic, :message, 19, "google.cloud.run.v2.TrafficTarget"
72
- optional :observed_generation, :int64, 30
73
- optional :terminal_condition, :message, 31, "google.cloud.run.v2.Condition"
74
- repeated :conditions, :message, 32, "google.cloud.run.v2.Condition"
75
- optional :latest_ready_revision, :string, 33
76
- optional :latest_created_revision, :string, 34
77
- repeated :traffic_statuses, :message, 35, "google.cloud.run.v2.TrafficTargetStatus"
78
- optional :uri, :string, 36
79
- optional :satisfies_pzs, :bool, 38
80
- optional :reconciling, :bool, 98
81
- optional :etag, :string, 99
22
+
23
+ descriptor_data = "\n!google/cloud/run/v2/service.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/revision_template.proto\x1a(google/cloud/run/v2/traffic_target.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x01\n\x14\x43reateServiceRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x32\n\x07service\x18\x02 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x17\n\nservice_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"x\n\x14UpdateServiceRequest\x12\x32\n\x07service\x18\x01 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x15\n\rallow_missing\x18\x04 \x01(\x08\"\x86\x01\n\x13ListServicesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\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\"_\n\x14ListServicesResponse\x12.\n\x08services\x18\x01 \x03(\x0b\x32\x1c.google.cloud.run.v2.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x11GetServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\"m\n\x14\x44\x65leteServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xb4\x0b\n\x07Service\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\x38\n\x06labels\x18\x05 \x03(\x0b\x32(.google.cloud.run.v2.Service.LabelsEntry\x12\x42\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32-.google.cloud.run.v2.Service.AnnotationsEntry\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\x34\n\x07ingress\x18\x0f \x01(\x0e\x32#.google.cloud.run.v2.IngressTraffic\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<\n\x08template\x18\x12 \x01(\x0b\x32%.google.cloud.run.v2.RevisionTemplateB\x03\xe0\x41\x02\x12\x33\n\x07traffic\x18\x13 \x03(\x0b\x32\".google.cloud.run.v2.TrafficTarget\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\x12G\n\x10traffic_statuses\x18# \x03(\x0b\x32(.google.cloud.run.v2.TrafficTargetStatusB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18$ \x01(\tB\x03\xe0\x41\x03\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\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:^\xea\x41[\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}R\x01\x01\x32\xb7\r\n\x08Services\x12\xfd\x01\n\rCreateService\x12).google.cloud.run.v2.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/locations/*}/services:\x07service\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\xda\x41\x19parent,service,service_id\xca\x41\x12\n\x07Service\x12\x07Service\x12\xc3\x01\n\nGetService\x12&.google.cloud.run.v2.GetServiceRequest\x1a\x1c.google.cloud.run.v2.Service\"o\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\xda\x41\x04name\x12\xd5\x01\n\x0cListServices\x12(.google.cloud.run.v2.ListServicesRequest\x1a).google.cloud.run.v2.ListServicesResponse\"p\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/services\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\xda\x41\x06parent\x12\xfc\x01\n\rUpdateService\x12).google.cloud.run.v2.UpdateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xa0\x01\x82\xd3\xe4\x93\x02?24/v2/{service.name=projects/*/locations/*/services/*}:\x07service\x8a\xd3\xe4\x93\x02\x36\x12\x34\n\x0cservice.name\x12$projects/*/locations/{location=*}/**\xda\x41\x07service\xca\x41\x12\n\x07Service\x12\x07Service\x12\xe0\x01\n\rDeleteService\x12).google.cloud.run.v2.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\xda\x41\x04name\xca\x41\x12\n\x07Service\x12\x07Service\x12\x90\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"E\x82\xd3\xe4\x93\x02?\x12=/v2/{resource=projects/*/locations/*/services/*}:getIamPolicy\x12\x93\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\xd3\xe4\x93\x02\x42\"=/v2/{resource=projects/*/locations/*/services/*}:setIamPolicy:\x01*\x12\xb9\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"N\x82\xd3\xe4\x93\x02H\"C/v2/{resource=projects/*/locations/*/services/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBT\n\x17\x63om.google.cloud.run.v2B\x0cServiceProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
24
+
25
+ pool = Google::Protobuf::DescriptorPool.generated_pool
26
+
27
+ begin
28
+ pool.add_serialized_file(descriptor_data)
29
+ rescue TypeError => e
30
+ # Compatibility code: will be removed in the next major version.
31
+ require 'google/protobuf/descriptor_pb'
32
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
33
+ parsed.clear_dependency
34
+ serialized = parsed.class.encode(parsed)
35
+ file = pool.add_serialized_file(serialized)
36
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
37
+ imports = [
38
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
39
+ ["google.cloud.run.v2.BinaryAuthorization", "google/cloud/run/v2/vendor_settings.proto"],
40
+ ["google.cloud.run.v2.RevisionTemplate", "google/cloud/run/v2/revision_template.proto"],
41
+ ["google.cloud.run.v2.TrafficTarget", "google/cloud/run/v2/traffic_target.proto"],
42
+ ["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
43
+ ]
44
+ imports.each do |type_name, expected_filename|
45
+ import_file = pool.lookup(type_name).file_descriptor
46
+ if import_file.name != expected_filename
47
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
82
48
  end
83
49
  end
50
+ warn "Each proto file must use a consistent fully-qualified name."
51
+ warn "This will become an error in the next major version."
84
52
  end
85
53
 
86
54
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/task.proto
3
4
 
@@ -14,58 +15,37 @@ require 'google/protobuf/duration_pb'
14
15
  require 'google/protobuf/timestamp_pb'
15
16
  require 'google/rpc/status_pb'
16
17
 
17
- Google::Protobuf::DescriptorPool.generated_pool.build do
18
- add_file("google/cloud/run/v2/task.proto", :syntax => :proto3) do
19
- add_message "google.cloud.run.v2.GetTaskRequest" do
20
- optional :name, :string, 1
21
- end
22
- add_message "google.cloud.run.v2.ListTasksRequest" do
23
- optional :parent, :string, 1
24
- optional :page_size, :int32, 2
25
- optional :page_token, :string, 3
26
- optional :show_deleted, :bool, 4
27
- end
28
- add_message "google.cloud.run.v2.ListTasksResponse" do
29
- repeated :tasks, :message, 1, "google.cloud.run.v2.Task"
30
- optional :next_page_token, :string, 2
31
- end
32
- add_message "google.cloud.run.v2.Task" do
33
- optional :name, :string, 1
34
- optional :uid, :string, 2
35
- optional :generation, :int64, 3
36
- map :labels, :string, :string, 4
37
- map :annotations, :string, :string, 5
38
- optional :create_time, :message, 6, "google.protobuf.Timestamp"
39
- optional :start_time, :message, 27, "google.protobuf.Timestamp"
40
- optional :completion_time, :message, 7, "google.protobuf.Timestamp"
41
- optional :update_time, :message, 8, "google.protobuf.Timestamp"
42
- optional :delete_time, :message, 9, "google.protobuf.Timestamp"
43
- optional :expire_time, :message, 10, "google.protobuf.Timestamp"
44
- optional :job, :string, 12
45
- optional :execution, :string, 13
46
- repeated :containers, :message, 14, "google.cloud.run.v2.Container"
47
- repeated :volumes, :message, 15, "google.cloud.run.v2.Volume"
48
- optional :max_retries, :int32, 16
49
- optional :timeout, :message, 17, "google.protobuf.Duration"
50
- optional :service_account, :string, 18
51
- optional :execution_environment, :enum, 20, "google.cloud.run.v2.ExecutionEnvironment"
52
- optional :reconciling, :bool, 21
53
- repeated :conditions, :message, 22, "google.cloud.run.v2.Condition"
54
- optional :observed_generation, :int64, 23
55
- optional :index, :int32, 24
56
- optional :retried, :int32, 25
57
- optional :last_attempt_result, :message, 26, "google.cloud.run.v2.TaskAttemptResult"
58
- optional :encryption_key, :string, 28
59
- optional :vpc_access, :message, 29, "google.cloud.run.v2.VpcAccess"
60
- optional :log_uri, :string, 32
61
- optional :satisfies_pzs, :bool, 33
62
- optional :etag, :string, 99
63
- end
64
- add_message "google.cloud.run.v2.TaskAttemptResult" do
65
- optional :status, :message, 1, "google.rpc.Status"
66
- optional :exit_code, :int32, 2
18
+
19
+ descriptor_data = "\n\x1egoogle/cloud/run/v2/task.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/cloud/run/v2/condition.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\"?\n\x0eGetTaskRequest\x12-\n\x04name\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\n\x17run.googleapis.com/Task\"\x80\x01\n\x10ListTasksRequest\x12/\n\x06parent\x18\x01 \x01(\tB\x1f\xe0\x41\x02\xfa\x41\x19\x12\x17run.googleapis.com/Task\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\"V\n\x11ListTasksResponse\x12(\n\x05tasks\x18\x01 \x03(\x0b\x32\x19.google.cloud.run.v2.Task\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xff\x0b\n\x04Task\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\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12:\n\x06labels\x18\x04 \x03(\x0b\x32%.google.cloud.run.v2.Task.LabelsEntryB\x03\xe0\x41\x03\x12\x44\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32*.google.cloud.run.v2.Task.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\x1b \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\x03job\x18\x0c \x01(\tB\x1e\xe0\x41\x03\xfa\x41\x18\n\x16run.googleapis.com/Job\x12\x37\n\texecution\x18\r \x01(\tB$\xe0\x41\x03\xfa\x41\x1e\n\x1crun.googleapis.com/Execution\x12\x32\n\ncontainers\x18\x0e \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12,\n\x07volumes\x18\x0f \x03(\x0b\x32\x1b.google.cloud.run.v2.Volume\x12\x13\n\x0bmax_retries\x18\x10 \x01(\x05\x12*\n\x07timeout\x18\x11 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fservice_account\x18\x12 \x01(\t\x12H\n\x15\x65xecution_environment\x18\x14 \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironment\x12\x18\n\x0breconciling\x18\x15 \x01(\x08\x42\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x16 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12 \n\x13observed_generation\x18\x17 \x01(\x03\x42\x03\xe0\x41\x03\x12\x12\n\x05index\x18\x18 \x01(\x05\x42\x03\xe0\x41\x03\x12\x14\n\x07retried\x18\x19 \x01(\x05\x42\x03\xe0\x41\x03\x12H\n\x13last_attempt_result\x18\x1a \x01(\x0b\x32&.google.cloud.run.v2.TaskAttemptResultB\x03\xe0\x41\x03\x12\x41\n\x0e\x65ncryption_key\x18\x1c \x01(\tB)\xe0\x41\x03\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x37\n\nvpc_access\x18\x1d \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccessB\x03\xe0\x41\x03\x12\x14\n\x07log_uri\x18 \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18! \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:w\xea\x41t\n\x17run.googleapis.com/Task\x12Vprojects/{project}/locations/{location}/jobs/{job}/executions/{execution}/tasks/{task}R\x01\x01\"T\n\x11TaskAttemptResult\x12\'\n\x06status\x18\x01 \x01(\x0b\x32\x12.google.rpc.StatusB\x03\xe0\x41\x03\x12\x16\n\texit_code\x18\x02 \x01(\x05\x42\x03\xe0\x41\x03\x32\x96\x03\n\x05Tasks\x12\x97\x01\n\x07GetTask\x12#.google.cloud.run.v2.GetTaskRequest\x1a\x19.google.cloud.run.v2.Task\"L\x82\xd3\xe4\x93\x02?\x12=/v2/{name=projects/*/locations/*/jobs/*/executions/*/tasks/*}\xda\x41\x04name\x12\xaa\x01\n\tListTasks\x12%.google.cloud.run.v2.ListTasksRequest\x1a&.google.cloud.run.v2.ListTasksResponse\"N\x82\xd3\xe4\x93\x02?\x12=/v2/{parent=projects/*/locations/*/jobs/*/executions/*}/tasks\xda\x41\x06parent\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBQ\n\x17\x63om.google.cloud.run.v2B\tTaskProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
20
+
21
+ pool = Google::Protobuf::DescriptorPool.generated_pool
22
+
23
+ begin
24
+ pool.add_serialized_file(descriptor_data)
25
+ rescue TypeError => e
26
+ # Compatibility code: will be removed in the next major version.
27
+ require 'google/protobuf/descriptor_pb'
28
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
29
+ parsed.clear_dependency
30
+ serialized = parsed.class.encode(parsed)
31
+ file = pool.add_serialized_file(serialized)
32
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
33
+ imports = [
34
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
35
+ ["google.cloud.run.v2.Container", "google/cloud/run/v2/k8s.min.proto"],
36
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
37
+ ["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
38
+ ["google.cloud.run.v2.VpcAccess", "google/cloud/run/v2/vendor_settings.proto"],
39
+ ["google.rpc.Status", "google/rpc/status.proto"],
40
+ ]
41
+ imports.each do |type_name, expected_filename|
42
+ import_file = pool.lookup(type_name).file_descriptor
43
+ if import_file.name != expected_filename
44
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
67
45
  end
68
46
  end
47
+ warn "Each proto file must use a consistent fully-qualified name."
48
+ warn "This will become an error in the next major version."
69
49
  end
70
50
 
71
51
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/task_template.proto
3
4
 
@@ -8,21 +9,34 @@ require 'google/cloud/run/v2/k8s.min_pb'
8
9
  require 'google/cloud/run/v2/vendor_settings_pb'
9
10
  require 'google/protobuf/duration_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/run/v2/task_template.proto", :syntax => :proto3) do
13
- add_message "google.cloud.run.v2.TaskTemplate" do
14
- repeated :containers, :message, 1, "google.cloud.run.v2.Container"
15
- repeated :volumes, :message, 2, "google.cloud.run.v2.Volume"
16
- optional :timeout, :message, 4, "google.protobuf.Duration"
17
- optional :service_account, :string, 5
18
- optional :execution_environment, :enum, 6, "google.cloud.run.v2.ExecutionEnvironment"
19
- optional :encryption_key, :string, 7
20
- optional :vpc_access, :message, 8, "google.cloud.run.v2.VpcAccess"
21
- oneof :retries do
22
- optional :max_retries, :int32, 3
23
- end
12
+
13
+ descriptor_data = "\n\'google/cloud/run/v2/task_template.proto\x12\x13google.cloud.run.v2\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\"\x95\x03\n\x0cTaskTemplate\x12\x32\n\ncontainers\x18\x01 \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12,\n\x07volumes\x18\x02 \x03(\x0b\x32\x1b.google.cloud.run.v2.Volume\x12\x15\n\x0bmax_retries\x18\x03 \x01(\x05H\x00\x12*\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fservice_account\x18\x05 \x01(\t\x12H\n\x15\x65xecution_environment\x18\x06 \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironment\x12>\n\x0e\x65ncryption_key\x18\x07 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x32\n\nvpc_access\x18\x08 \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccessB\t\n\x07retriesBY\n\x17\x63om.google.cloud.run.v2B\x11TaskTemplateProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.cloud.run.v2.Container", "google/cloud/run/v2/k8s.min.proto"],
29
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
30
+ ["google.cloud.run.v2.VpcAccess", "google/cloud/run/v2/vendor_settings.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
24
36
  end
25
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
26
40
  end
27
41
 
28
42
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/traffic_target.proto
3
4
 
@@ -5,27 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/resource_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/run/v2/traffic_target.proto", :syntax => :proto3) do
10
- add_message "google.cloud.run.v2.TrafficTarget" do
11
- optional :type, :enum, 1, "google.cloud.run.v2.TrafficTargetAllocationType"
12
- optional :revision, :string, 2
13
- optional :percent, :int32, 3
14
- optional :tag, :string, 4
15
- end
16
- add_message "google.cloud.run.v2.TrafficTargetStatus" do
17
- optional :type, :enum, 1, "google.cloud.run.v2.TrafficTargetAllocationType"
18
- optional :revision, :string, 2
19
- optional :percent, :int32, 3
20
- optional :tag, :string, 4
21
- optional :uri, :string, 5
22
- end
23
- add_enum "google.cloud.run.v2.TrafficTargetAllocationType" do
24
- value :TRAFFIC_TARGET_ALLOCATION_TYPE_UNSPECIFIED, 0
25
- value :TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST, 1
26
- value :TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION, 2
9
+
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
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
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}"
27
30
  end
28
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."
29
34
  end
30
35
 
31
36
  module Google
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/run/v2/vendor_settings.proto
3
4
 
@@ -5,44 +6,31 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/api/resource_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/cloud/run/v2/vendor_settings.proto", :syntax => :proto3) do
10
- add_message "google.cloud.run.v2.VpcAccess" do
11
- optional :connector, :string, 1
12
- optional :egress, :enum, 2, "google.cloud.run.v2.VpcAccess.VpcEgress"
13
- end
14
- add_enum "google.cloud.run.v2.VpcAccess.VpcEgress" do
15
- value :VPC_EGRESS_UNSPECIFIED, 0
16
- value :ALL_TRAFFIC, 1
17
- value :PRIVATE_RANGES_ONLY, 2
18
- end
19
- add_message "google.cloud.run.v2.BinaryAuthorization" do
20
- optional :breakglass_justification, :string, 2
21
- oneof :binauthz_method do
22
- optional :use_default, :bool, 1
23
- end
24
- end
25
- add_message "google.cloud.run.v2.RevisionScaling" do
26
- optional :min_instance_count, :int32, 1
27
- optional :max_instance_count, :int32, 2
28
- end
29
- add_enum "google.cloud.run.v2.IngressTraffic" do
30
- value :INGRESS_TRAFFIC_UNSPECIFIED, 0
31
- value :INGRESS_TRAFFIC_ALL, 1
32
- value :INGRESS_TRAFFIC_INTERNAL_ONLY, 2
33
- value :INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER, 3
34
- end
35
- add_enum "google.cloud.run.v2.ExecutionEnvironment" do
36
- value :EXECUTION_ENVIRONMENT_UNSPECIFIED, 0
37
- value :EXECUTION_ENVIRONMENT_GEN1, 1
38
- value :EXECUTION_ENVIRONMENT_GEN2, 2
39
- end
40
- add_enum "google.cloud.run.v2.EncryptionKeyRevocationAction" do
41
- value :ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED, 0
42
- value :PREVENT_NEW, 1
43
- value :SHUTDOWN, 2
9
+
10
+ descriptor_data = "\n)google/cloud/run/v2/vendor_settings.proto\x12\x13google.cloud.run.v2\x1a\x19google/api/resource.proto\"\xd4\x01\n\tVpcAccess\x12:\n\tconnector\x18\x01 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12\x38\n\x06\x65gress\x18\x02 \x01(\x0e\x32(.google.cloud.run.v2.VpcAccess.VpcEgress\"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\"a\n\x13\x42inaryAuthorization\x12\x15\n\x0buse_default\x18\x01 \x01(\x08H\x00\x12 \n\x18\x62reakglass_justification\x18\x02 \x01(\tB\x11\n\x0f\x62inauthz_method\"I\n\x0fRevisionScaling\x12\x1a\n\x12min_instance_count\x18\x01 \x01(\x05\x12\x1a\n\x12max_instance_count\x18\x02 \x01(\x05*\x99\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*}\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[\n\x17\x63om.google.cloud.run.v2B\x13VendorSettingsProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError => e
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}"
44
30
  end
45
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."
46
34
  end
47
35
 
48
36
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Run
23
23
  module V2
24
- VERSION = "0.8.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -43,8 +43,12 @@ module Google
43
43
  # if (any.is(Foo.class)) {
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
+ # // or ...
47
+ # if (any.isSameTypeAs(Foo.getDefaultInstance())) {
48
+ # foo = any.unpack(Foo.getDefaultInstance());
49
+ # }
46
50
  #
47
- # Example 3: Pack and unpack a message in Python.
51
+ # Example 3: Pack and unpack a message in Python.
48
52
  #
49
53
  # foo = Foo(...)
50
54
  # any = Any()
@@ -54,7 +58,7 @@ module Google
54
58
  # any.Unpack(foo)
55
59
  # ...
56
60
  #
57
- # Example 4: Pack and unpack a message in Go
61
+ # Example 4: Pack and unpack a message in Go
58
62
  #
59
63
  # foo := &pb.Foo{...}
60
64
  # any, err := anypb.New(foo)
@@ -73,9 +77,8 @@ module Google
73
77
  # in the type URL, for example "foo.bar.com/x/y.z" will yield type
74
78
  # name "y.z".
75
79
  #
76
- #
77
80
  # JSON
78
- #
81
+ # ====
79
82
  # The JSON representation of an `Any` value uses the regular
80
83
  # representation of the deserialized, embedded message, with an
81
84
  # additional field `@type` which contains the type URL. Example:
@@ -69,7 +69,6 @@ module Google
69
69
  # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
70
  # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
71
  #
72
- #
73
72
  # Example 5: Compute Timestamp from Java `Instant.now()`.
74
73
  #
75
74
  # Instant now = Instant.now();
@@ -78,7 +77,6 @@ module Google
78
77
  # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
79
78
  # .setNanos(now.getNano()).build();
80
79
  #
81
- #
82
80
  # Example 6: Compute Timestamp from current time in Python.
83
81
  #
84
82
  # timestamp = Timestamp()
@@ -108,7 +106,7 @@ module Google
108
106
  # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
109
107
  # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
110
108
  # the Joda Time's [`ISODateTimeFormat.dateTime()`](
111
- # http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
112
110
  # ) to obtain a formatter capable of generating timestamps in this format.
113
111
  # @!attribute [rw] seconds
114
112
  # @return [::Integer]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-run-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-04 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.18.0
19
+ version: 0.19.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a