google-cloud-run-v2 0.8.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/run/v2/condition_pb.rb +25 -65
  3. data/lib/google/cloud/run/v2/execution_pb.rb +27 -48
  4. data/lib/google/cloud/run/v2/execution_template_pb.rb +25 -8
  5. data/lib/google/cloud/run/v2/executions/client.rb +4 -2
  6. data/lib/google/cloud/run/v2/executions/operations.rb +3 -1
  7. data/lib/google/cloud/run/v2/executions/rest/client.rb +4 -2
  8. data/lib/google/cloud/run/v2/executions/rest/operations.rb +8 -6
  9. data/lib/google/cloud/run/v2/executions/rest/service_stub.rb +3 -3
  10. data/lib/google/cloud/run/v2/job_pb.rb +28 -66
  11. data/lib/google/cloud/run/v2/jobs/client.rb +4 -2
  12. data/lib/google/cloud/run/v2/jobs/operations.rb +3 -1
  13. data/lib/google/cloud/run/v2/jobs/rest/client.rb +4 -2
  14. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +8 -6
  15. data/lib/google/cloud/run/v2/jobs/rest/service_stub.rb +9 -9
  16. data/lib/google/cloud/run/v2/k8s.min_pb.rb +24 -88
  17. data/lib/google/cloud/run/v2/revision_pb.rb +29 -50
  18. data/lib/google/cloud/run/v2/revision_template_pb.rb +27 -16
  19. data/lib/google/cloud/run/v2/revisions/client.rb +4 -2
  20. data/lib/google/cloud/run/v2/revisions/operations.rb +3 -1
  21. data/lib/google/cloud/run/v2/revisions/rest/client.rb +4 -2
  22. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +8 -6
  23. data/lib/google/cloud/run/v2/revisions/rest/service_stub.rb +3 -3
  24. data/lib/google/cloud/run/v2/service_pb.rb +29 -61
  25. data/lib/google/cloud/run/v2/services/client.rb +4 -2
  26. data/lib/google/cloud/run/v2/services/operations.rb +3 -1
  27. data/lib/google/cloud/run/v2/services/rest/client.rb +4 -2
  28. data/lib/google/cloud/run/v2/services/rest/operations.rb +8 -6
  29. data/lib/google/cloud/run/v2/services/rest/service_stub.rb +8 -8
  30. data/lib/google/cloud/run/v2/task_pb.rb +30 -50
  31. data/lib/google/cloud/run/v2/task_template_pb.rb +27 -13
  32. data/lib/google/cloud/run/v2/tasks/client.rb +4 -2
  33. data/lib/google/cloud/run/v2/tasks/rest/client.rb +4 -2
  34. data/lib/google/cloud/run/v2/tasks/rest/service_stub.rb +2 -2
  35. data/lib/google/cloud/run/v2/traffic_target_pb.rb +24 -19
  36. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +24 -36
  37. data/lib/google/cloud/run/v2/version.rb +1 -1
  38. data/proto_docs/google/protobuf/any.rb +7 -4
  39. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  40. metadata +4 -4
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_create_job_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_get_job_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_list_jobs_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -173,7 +173,7 @@ module Google
173
173
 
174
174
  verb, uri, query_string_params, body = ServiceStub.transcode_update_job_request request_pb
175
175
  query_string_params = if query_string_params.any?
176
- query_string_params.to_h { |p| p.split("=", 2) }
176
+ query_string_params.to_h { |p| p.split "=", 2 }
177
177
  else
178
178
  {}
179
179
  end
@@ -211,7 +211,7 @@ module Google
211
211
 
212
212
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_job_request request_pb
213
213
  query_string_params = if query_string_params.any?
214
- query_string_params.to_h { |p| p.split("=", 2) }
214
+ query_string_params.to_h { |p| p.split "=", 2 }
215
215
  else
216
216
  {}
217
217
  end
@@ -249,7 +249,7 @@ module Google
249
249
 
250
250
  verb, uri, query_string_params, body = ServiceStub.transcode_run_job_request request_pb
251
251
  query_string_params = if query_string_params.any?
252
- query_string_params.to_h { |p| p.split("=", 2) }
252
+ query_string_params.to_h { |p| p.split "=", 2 }
253
253
  else
254
254
  {}
255
255
  end
@@ -287,7 +287,7 @@ module Google
287
287
 
288
288
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
289
289
  query_string_params = if query_string_params.any?
290
- query_string_params.to_h { |p| p.split("=", 2) }
290
+ query_string_params.to_h { |p| p.split "=", 2 }
291
291
  else
292
292
  {}
293
293
  end
@@ -325,7 +325,7 @@ module Google
325
325
 
326
326
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
327
327
  query_string_params = if query_string_params.any?
328
- query_string_params.to_h { |p| p.split("=", 2) }
328
+ query_string_params.to_h { |p| p.split "=", 2 }
329
329
  else
330
330
  {}
331
331
  end
@@ -363,7 +363,7 @@ module Google
363
363
 
364
364
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
365
365
  query_string_params = if query_string_params.any?
366
- query_string_params.to_h { |p| p.split("=", 2) }
366
+ query_string_params.to_h { |p| p.split "=", 2 }
367
367
  else
368
368
  {}
369
369
  end
@@ -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
@@ -124,7 +124,7 @@ module Google
124
124
  credentials = @config.credentials
125
125
  # Use self-signed JWT if the endpoint is unchanged from default,
126
126
  # but only if the default endpoint does not have a region prefix.
127
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
127
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
128
128
  !@config.endpoint.split(".").first.include?("-")
129
129
  credentials ||= Credentials.default scope: @config.scope,
130
130
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -550,7 +550,9 @@ module Google
550
550
  class Configuration
551
551
  extend ::Gapic::Config
552
552
 
553
- config_attr :endpoint, "run.googleapis.com", ::String
553
+ DEFAULT_ENDPOINT = "run.googleapis.com"
554
+
555
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
554
556
  config_attr :credentials, nil do |value|
555
557
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
556
558
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -672,7 +672,9 @@ module Google
672
672
  class Configuration
673
673
  extend ::Gapic::Config
674
674
 
675
- config_attr :endpoint, "run.googleapis.com", ::String
675
+ DEFAULT_ENDPOINT = "run.googleapis.com"
676
+
677
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
676
678
  config_attr :credentials, nil do |value|
677
679
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
678
680
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -120,7 +120,7 @@ module Google
120
120
  credentials = @config.credentials
121
121
  # Use self-signed JWT if the endpoint is unchanged from default,
122
122
  # but only if the default endpoint does not have a region prefix.
123
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
123
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
124
124
  !@config.endpoint.split(".").first.include?("-")
125
125
  credentials ||= Credentials.default scope: @config.scope,
126
126
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -443,7 +443,9 @@ module Google
443
443
  class Configuration
444
444
  extend ::Gapic::Config
445
445
 
446
- config_attr :endpoint, "run.googleapis.com", ::String
446
+ DEFAULT_ENDPOINT = "run.googleapis.com"
447
+
448
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
447
449
  config_attr :credentials, nil do |value|
448
450
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
449
451
  allowed.any? { |klass| klass === value }
@@ -521,7 +521,9 @@ module Google
521
521
  class Configuration
522
522
  extend ::Gapic::Config
523
523
 
524
- config_attr :endpoint, "run.googleapis.com", ::String
524
+ DEFAULT_ENDPOINT = "run.googleapis.com"
525
+
526
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
525
527
  config_attr :credentials, nil do |value|
526
528
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
527
529
  allowed.any? { |klass| klass === value }
@@ -649,7 +651,7 @@ module Google
649
651
 
650
652
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
651
653
  query_string_params = if query_string_params.any?
652
- query_string_params.to_h { |p| p.split("=", 2) }
654
+ query_string_params.to_h { |p| p.split "=", 2 }
653
655
  else
654
656
  {}
655
657
  end
@@ -687,7 +689,7 @@ module Google
687
689
 
688
690
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
689
691
  query_string_params = if query_string_params.any?
690
- query_string_params.to_h { |p| p.split("=", 2) }
692
+ query_string_params.to_h { |p| p.split "=", 2 }
691
693
  else
692
694
  {}
693
695
  end
@@ -725,7 +727,7 @@ module Google
725
727
 
726
728
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
727
729
  query_string_params = if query_string_params.any?
728
- query_string_params.to_h { |p| p.split("=", 2) }
730
+ query_string_params.to_h { |p| p.split "=", 2 }
729
731
  else
730
732
  {}
731
733
  end
@@ -763,7 +765,7 @@ module Google
763
765
 
764
766
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
765
767
  query_string_params = if query_string_params.any?
766
- query_string_params.to_h { |p| p.split("=", 2) }
768
+ query_string_params.to_h { |p| p.split "=", 2 }
767
769
  else
768
770
  {}
769
771
  end
@@ -801,7 +803,7 @@ module Google
801
803
 
802
804
  verb, uri, query_string_params, body = OperationsServiceStub.transcode_wait_operation_request request_pb
803
805
  query_string_params = if query_string_params.any?
804
- query_string_params.to_h { |p| p.split("=", 2) }
806
+ query_string_params.to_h { |p| p.split "=", 2 }
805
807
  else
806
808
  {}
807
809
  end
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_get_revision_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_list_revisions_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_delete_revision_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
@@ -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