google-cloud-run-v2 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/run/v2/condition_pb.rb +25 -64
  4. data/lib/google/cloud/run/v2/execution_pb.rb +27 -47
  5. data/lib/google/cloud/run/v2/execution_template_pb.rb +25 -8
  6. data/lib/google/cloud/run/v2/executions/client.rb +2 -2
  7. data/lib/google/cloud/run/v2/executions/operations.rb +2 -2
  8. data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -2
  9. data/lib/google/cloud/run/v2/executions/rest/operations.rb +2 -2
  10. data/lib/google/cloud/run/v2/job_pb.rb +29 -66
  11. data/lib/google/cloud/run/v2/jobs/client.rb +2 -2
  12. data/lib/google/cloud/run/v2/jobs/operations.rb +2 -2
  13. data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -2
  14. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +2 -2
  15. data/lib/google/cloud/run/v2/k8s.min_pb.rb +24 -86
  16. data/lib/google/cloud/run/v2/revision_pb.rb +29 -48
  17. data/lib/google/cloud/run/v2/revision_template_pb.rb +27 -15
  18. data/lib/google/cloud/run/v2/revisions/client.rb +2 -2
  19. data/lib/google/cloud/run/v2/revisions/operations.rb +2 -2
  20. data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -2
  21. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +2 -2
  22. data/lib/google/cloud/run/v2/service_pb.rb +29 -60
  23. data/lib/google/cloud/run/v2/services/client.rb +4 -4
  24. data/lib/google/cloud/run/v2/services/operations.rb +2 -2
  25. data/lib/google/cloud/run/v2/services/rest/client.rb +4 -4
  26. data/lib/google/cloud/run/v2/services/rest/operations.rb +2 -2
  27. data/lib/google/cloud/run/v2/task_pb.rb +30 -49
  28. data/lib/google/cloud/run/v2/task_template_pb.rb +27 -13
  29. data/lib/google/cloud/run/v2/tasks/client.rb +2 -2
  30. data/lib/google/cloud/run/v2/tasks/rest/client.rb +2 -2
  31. data/lib/google/cloud/run/v2/traffic_target_pb.rb +24 -19
  32. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +24 -36
  33. data/lib/google/cloud/run/v2/version.rb +1 -1
  34. data/proto_docs/google/api/client.rb +67 -4
  35. data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
  36. data/proto_docs/google/cloud/run/v2/execution.rb +22 -15
  37. data/proto_docs/google/cloud/run/v2/execution_template.rb +14 -5
  38. data/proto_docs/google/cloud/run/v2/job.rb +16 -6
  39. data/proto_docs/google/cloud/run/v2/k8s.min.rb +23 -34
  40. data/proto_docs/google/cloud/run/v2/revision.rb +25 -12
  41. data/proto_docs/google/cloud/run/v2/revision_template.rb +16 -2
  42. data/proto_docs/google/cloud/run/v2/service.rb +16 -8
  43. data/proto_docs/google/cloud/run/v2/task.rb +13 -7
  44. data/proto_docs/google/cloud/run/v2/task_template.rb +2 -0
  45. data/proto_docs/google/iam/v1/policy.rb +8 -4
  46. data/proto_docs/google/protobuf/any.rb +7 -4
  47. data/proto_docs/google/protobuf/timestamp.rb +1 -3
  48. metadata +4 -4
@@ -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,94 +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
- end
28
- add_message "google.cloud.run.v2.EnvVar" do
29
- optional :name, :string, 1
30
- oneof :values do
31
- optional :value, :string, 2
32
- optional :value_source, :message, 3, "google.cloud.run.v2.EnvVarSource"
33
- end
34
- end
35
- add_message "google.cloud.run.v2.EnvVarSource" do
36
- optional :secret_key_ref, :message, 1, "google.cloud.run.v2.SecretKeySelector"
37
- end
38
- add_message "google.cloud.run.v2.SecretKeySelector" do
39
- optional :secret, :string, 1
40
- optional :version, :string, 2
41
- end
42
- add_message "google.cloud.run.v2.ContainerPort" do
43
- optional :name, :string, 1
44
- optional :container_port, :int32, 3
45
- end
46
- add_message "google.cloud.run.v2.VolumeMount" do
47
- optional :name, :string, 1
48
- optional :mount_path, :string, 3
49
- end
50
- add_message "google.cloud.run.v2.Volume" do
51
- optional :name, :string, 1
52
- oneof :volume_type do
53
- optional :secret, :message, 2, "google.cloud.run.v2.SecretVolumeSource"
54
- optional :cloud_sql_instance, :message, 3, "google.cloud.run.v2.CloudSqlInstance"
55
- end
56
- end
57
- add_message "google.cloud.run.v2.SecretVolumeSource" do
58
- optional :secret, :string, 1
59
- repeated :items, :message, 2, "google.cloud.run.v2.VersionToPath"
60
- optional :default_mode, :int32, 3
61
- end
62
- add_message "google.cloud.run.v2.VersionToPath" do
63
- optional :path, :string, 1
64
- optional :version, :string, 2
65
- optional :mode, :int32, 3
66
- end
67
- add_message "google.cloud.run.v2.CloudSqlInstance" do
68
- repeated :instances, :string, 1
69
- end
70
- add_message "google.cloud.run.v2.Probe" do
71
- optional :initial_delay_seconds, :int32, 1
72
- optional :timeout_seconds, :int32, 2
73
- optional :period_seconds, :int32, 3
74
- optional :failure_threshold, :int32, 4
75
- oneof :probe_type do
76
- optional :http_get, :message, 5, "google.cloud.run.v2.HTTPGetAction"
77
- optional :tcp_socket, :message, 6, "google.cloud.run.v2.TCPSocketAction"
78
- optional :grpc, :message, 7, "google.cloud.run.v2.GRPCAction"
79
- end
80
- end
81
- add_message "google.cloud.run.v2.HTTPGetAction" do
82
- optional :path, :string, 1
83
- repeated :http_headers, :message, 4, "google.cloud.run.v2.HTTPHeader"
84
- end
85
- add_message "google.cloud.run.v2.HTTPHeader" do
86
- optional :name, :string, 1
87
- optional :value, :string, 2
88
- end
89
- add_message "google.cloud.run.v2.TCPSocketAction" do
90
- optional :port, :int32, 1
91
- end
92
- add_message "google.cloud.run.v2.GRPCAction" do
93
- optional :port, :int32, 1
94
- 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}"
95
31
  end
96
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."
97
35
  end
98
36
 
99
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,56 +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 :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}"
67
46
  end
68
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."
69
50
  end
70
51
 
71
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,23 +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
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}"
26
36
  end
27
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."
28
40
  end
29
41
 
30
42
  module Google
@@ -506,9 +506,9 @@ module Google
506
506
  # * (`String`) The path to a service account key file in JSON format
507
507
  # * (`Hash`) A service account key as a Hash
508
508
  # * (`Google::Auth::Credentials`) A googleauth credentials object
509
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
509
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
510
510
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
511
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
511
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
512
512
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
513
513
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
514
514
  # * (`nil`) indicating no credentials
@@ -628,9 +628,9 @@ module Google
628
628
  # * (`String`) The path to a service account key file in JSON format
629
629
  # * (`Hash`) A service account key as a Hash
630
630
  # * (`Google::Auth::Credentials`) A googleauth credentials object
631
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
631
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
632
632
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
633
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
633
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
634
634
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
635
635
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
636
636
  # * (`nil`) indicating no credentials
@@ -408,9 +408,9 @@ module Google
408
408
  # * (`String`) The path to a service account key file in JSON format
409
409
  # * (`Hash`) A service account key as a Hash
410
410
  # * (`Google::Auth::Credentials`) A googleauth credentials object
411
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
411
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
412
412
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
413
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
413
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
414
414
  # * (`nil`) indicating no credentials
415
415
  # @return [::Object]
416
416
  # @!attribute [rw] scope
@@ -486,9 +486,9 @@ module Google
486
486
  # * (`String`) The path to a service account key file in JSON format
487
487
  # * (`Hash`) A service account key as a Hash
488
488
  # * (`Google::Auth::Credentials`) A googleauth credentials object
489
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
489
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
490
490
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
491
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
491
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
492
492
  # * (`nil`) indicating no credentials
493
493
  # @return [::Object]
494
494
  # @!attribute [rw] scope
@@ -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,68 +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 :reconciling, :bool, 98
80
- 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}"
81
48
  end
82
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."
83
52
  end
84
53
 
85
54
  module Google
@@ -512,8 +512,8 @@ module Google
512
512
  # populated, without persisting the request or updating any resources.
513
513
  # @param allow_missing [::Boolean]
514
514
  # If set to true, and if the Service does not exist, it will create a new
515
- # one. Caller must have both create and update permissions for this call if
516
- # this is set to true.
515
+ # one. The caller must have 'run.services.create' permissions if this is set
516
+ # to true and the Service does not exist.
517
517
  #
518
518
  # @yield [response, operation] Access the result along with the RPC operation
519
519
  # @yieldparam response [::Gapic::Operation]
@@ -1015,9 +1015,9 @@ module Google
1015
1015
  # * (`String`) The path to a service account key file in JSON format
1016
1016
  # * (`Hash`) A service account key as a Hash
1017
1017
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1018
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1018
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1019
1019
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1020
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1020
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1021
1021
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1022
1022
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1023
1023
  # * (`nil`) indicating no credentials
@@ -628,9 +628,9 @@ module Google
628
628
  # * (`String`) The path to a service account key file in JSON format
629
629
  # * (`Hash`) A service account key as a Hash
630
630
  # * (`Google::Auth::Credentials`) A googleauth credentials object
631
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
631
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
632
632
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
633
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
633
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
634
634
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
635
635
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
636
636
  # * (`nil`) indicating no credentials
@@ -414,8 +414,8 @@ module Google
414
414
  # populated, without persisting the request or updating any resources.
415
415
  # @param allow_missing [::Boolean]
416
416
  # If set to true, and if the Service does not exist, it will create a new
417
- # one. Caller must have both create and update permissions for this call if
418
- # this is set to true.
417
+ # one. The caller must have 'run.services.create' permissions if this is set
418
+ # to true and the Service does not exist.
419
419
  # @yield [result, operation] Access the result along with the TransportOperation object
420
420
  # @yieldparam result [::Gapic::Operation]
421
421
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -782,9 +782,9 @@ module Google
782
782
  # * (`String`) The path to a service account key file in JSON format
783
783
  # * (`Hash`) A service account key as a Hash
784
784
  # * (`Google::Auth::Credentials`) A googleauth credentials object
785
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
785
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
786
786
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
787
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
787
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
788
788
  # * (`nil`) indicating no credentials
789
789
  # @return [::Object]
790
790
  # @!attribute [rw] scope
@@ -486,9 +486,9 @@ module Google
486
486
  # * (`String`) The path to a service account key file in JSON format
487
487
  # * (`Hash`) A service account key as a Hash
488
488
  # * (`Google::Auth::Credentials`) A googleauth credentials object
489
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
489
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
490
490
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
491
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
491
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
492
492
  # * (`nil`) indicating no credentials
493
493
  # @return [::Object]
494
494
  # @!attribute [rw] scope