google-cloud-run-v2 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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/task.proto
3
4
 
@@ -14,57 +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 :etag, :string, 99
62
- end
63
- add_message "google.cloud.run.v2.TaskAttemptResult" do
64
- optional :status, :message, 1, "google.rpc.Status"
65
- 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}"
66
45
  end
67
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."
68
49
  end
69
50
 
70
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
@@ -383,9 +383,9 @@ module Google
383
383
  # * (`String`) The path to a service account key file in JSON format
384
384
  # * (`Hash`) A service account key as a Hash
385
385
  # * (`Google::Auth::Credentials`) A googleauth credentials object
386
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
386
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
387
387
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
388
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
388
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
389
389
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
390
390
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
391
391
  # * (`nil`) indicating no credentials
@@ -324,9 +324,9 @@ module Google
324
324
  # * (`String`) The path to a service account key file in JSON format
325
325
  # * (`Hash`) A service account key as a Hash
326
326
  # * (`Google::Auth::Credentials`) A googleauth credentials object
327
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
327
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
328
328
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
329
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
329
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
330
330
  # * (`nil`) indicating no credentials
331
331
  # @return [::Object]
332
332
  # @!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/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.7.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -198,6 +198,9 @@ module Google
198
198
 
199
199
  # The execution was cancelled by users.
200
200
  CANCELLED = 3
201
+
202
+ # The execution is in the process of being cancelled.
203
+ CANCELLING = 4
201
204
  end
202
205
  end
203
206
  end
@@ -103,17 +103,20 @@ module Google
103
103
  # @return [::Integer]
104
104
  # Output only. A number that monotonically increases every time the user
105
105
  # modifies the desired state.
106
- # @!attribute [rw] labels
106
+ # @!attribute [r] labels
107
107
  # @return [::Google::Protobuf::Map{::String => ::String}]
108
- # KRM-style labels for the resource.
109
- # User-provided labels are shared with Google's billing system, so they can
110
- # be used to filter, or break down billing charges by team, component,
111
- # environment, state, etc. For more information, visit
108
+ # Output only. Unstructured key value map that can be used to organize and
109
+ # categorize objects. User-provided labels are shared with Google's billing
110
+ # system, so they can be used to filter, or break down billing charges by
111
+ # team, component, environment, state, etc. For more information, visit
112
112
  # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
113
113
  # https://cloud.google.com/run/docs/configuring/labels
114
- # @!attribute [rw] annotations
114
+ # @!attribute [r] annotations
115
115
  # @return [::Google::Protobuf::Map{::String => ::String}]
116
- # KRM-style annotations for the resource.
116
+ # Output only. Unstructured key value map that may
117
+ # be set by external tools to store and arbitrary metadata.
118
+ # They are not queryable and should be preserved
119
+ # when modifying objects.
117
120
  # @!attribute [r] create_time
118
121
  # @return [::Google::Protobuf::Timestamp]
119
122
  # Output only. Represents time when the execution was acknowledged by the
@@ -142,10 +145,14 @@ module Google
142
145
  # request.
143
146
  # @!attribute [rw] launch_stage
144
147
  # @return [::Google::Api::LaunchStage]
145
- # Set the launch stage to a preview stage on write to allow use of preview
146
- # features in that stage. On read, describes whether the resource uses
147
- # preview features. Launch Stages are defined at [Google Cloud Platform
148
- # Launch Stages](https://cloud.google.com/terms/launch-stages).
148
+ # The least stable launch stage needed to create this resource, as defined by
149
+ # [Google Cloud Platform Launch
150
+ # Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
151
+ # `ALPHA`, `BETA`, and `GA`.
152
+ # <p>Note that this value might not be what was used
153
+ # as input. For example, if ALPHA was provided as input in the parent
154
+ # resource, but only BETA and GA-level features are were, this field will be
155
+ # BETA.
149
156
  # @!attribute [r] job
150
157
  # @return [::String]
151
158
  # Output only. The name of the parent Job.
@@ -155,15 +162,12 @@ module Google
155
162
  # should run at any given time. Must be <= task_count. The actual number of
156
163
  # tasks running in steady state will be less than this number when
157
164
  # ((.spec.task_count - .status.successful) < .spec.parallelism), i.e. when
158
- # the work left to do is less than max parallelism. More info:
159
- # https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
165
+ # the work left to do is less than max parallelism.
160
166
  # @!attribute [r] task_count
161
167
  # @return [::Integer]
162
168
  # Output only. Specifies the desired number of tasks the execution should
163
169
  # run. Setting to 1 means that parallelism is limited to 1 and the success of
164
170
  # that task signals the success of the execution.
165
- # More info:
166
- # https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
167
171
  # @!attribute [r] template
168
172
  # @return [::Google::Cloud::Run::V2::TaskTemplate]
169
173
  # Output only. The template used to create tasks for this execution.
@@ -201,6 +205,9 @@ module Google
201
205
  # @return [::String]
202
206
  # Output only. URI where logs for this execution can be found in Cloud
203
207
  # Console.
208
+ # @!attribute [r] satisfies_pzs
209
+ # @return [::Boolean]
210
+ # Output only. Reserved for future use.
204
211
  # @!attribute [r] etag
205
212
  # @return [::String]
206
213
  # Output only. A system-generated fingerprint for this version of the
@@ -25,7 +25,13 @@ module Google
25
25
  # from a template.
26
26
  # @!attribute [rw] labels
27
27
  # @return [::Google::Protobuf::Map{::String => ::String}]
28
- # KRM-style labels for the resource.
28
+ # Unstructured key value map that can be used to organize and categorize
29
+ # objects.
30
+ # User-provided labels are shared with Google's billing system, so they can
31
+ # be used to filter, or break down billing charges by team, component,
32
+ # environment, state, etc. For more information, visit
33
+ # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
34
+ # https://cloud.google.com/run/docs/configuring/labels.
29
35
  #
30
36
  # <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
31
37
  # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
@@ -33,12 +39,17 @@ module Google
33
39
  # corresponding field in v2 ExecutionTemplate.
34
40
  # @!attribute [rw] annotations
35
41
  # @return [::Google::Protobuf::Map{::String => ::String}]
36
- # KRM-style annotations for the resource.
42
+ # Unstructured key value map that may be set by external tools to store and
43
+ # arbitrary metadata. They are not queryable and should be preserved
44
+ # when modifying objects.
37
45
  #
38
46
  # <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
39
47
  # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
40
48
  # namespaces, and they will be rejected. All system annotations in v1 now
41
49
  # have a corresponding field in v2 ExecutionTemplate.
50
+ #
51
+ # <p>This field follows Kubernetes annotations' namespacing, limits, and
52
+ # rules.
42
53
  # @!attribute [rw] parallelism
43
54
  # @return [::Integer]
44
55
  # Specifies the maximum desired number of tasks the execution should run at
@@ -52,9 +63,7 @@ module Google
52
63
  # @return [::Integer]
53
64
  # Specifies the desired number of tasks the execution should run.
54
65
  # Setting to 1 means that parallelism is limited to 1 and the success of
55
- # that task signals the success of the execution.
56
- # More info:
57
- # https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
66
+ # that task signals the success of the execution. Defaults to 1.
58
67
  # @!attribute [rw] template
59
68
  # @return [::Google::Cloud::Run::V2::TaskTemplate]
60
69
  # Required. Describes the task(s) that will be created when executing an
@@ -163,12 +163,13 @@ module Google
163
163
  # modifies the desired state.
164
164
  # @!attribute [rw] labels
165
165
  # @return [::Google::Protobuf::Map{::String => ::String}]
166
- # KRM-style labels for the resource.
166
+ # Unstructured key value map that can be used to organize and categorize
167
+ # objects.
167
168
  # User-provided labels are shared with Google's billing system, so they can
168
169
  # be used to filter, or break down billing charges by team, component,
169
170
  # environment, state, etc. For more information, visit
170
171
  # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
171
- # https://cloud.google.com/run/docs/configuring/labels
172
+ # https://cloud.google.com/run/docs/configuring/labels.
172
173
  #
173
174
  # <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
174
175
  # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
@@ -176,18 +177,18 @@ module Google
176
177
  # corresponding field in v2 Job.
177
178
  # @!attribute [rw] annotations
178
179
  # @return [::Google::Protobuf::Map{::String => ::String}]
179
- # KRM-style annotations for the resource. Unstructured key value map that may
180
+ # Unstructured key value map that may
180
181
  # be set by external tools to store and arbitrary metadata.
181
182
  # They are not queryable and should be preserved
182
183
  # when modifying objects.
183
184
  #
184
185
  # <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
185
186
  # `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
186
- # namespaces, and they will be rejected. All system annotations in v1 now
187
- # have a corresponding field in v2 Job.
187
+ # namespaces, and they will be rejected on new resources. All system
188
+ # annotations in v1 now have a corresponding field in v2 Job.
188
189
  #
189
190
  # <p>This field follows Kubernetes annotations' namespacing, limits, and
190
- # rules. More info: https://kubernetes.io/docs/user-guide/annotations
191
+ # rules.
191
192
  # @!attribute [r] create_time
192
193
  # @return [::Google::Protobuf::Timestamp]
193
194
  # Output only. The creation time.
@@ -219,6 +220,12 @@ module Google
219
220
  # Launch Stages](https://cloud.google.com/terms/launch-stages).
220
221
  # Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
221
222
  # is assumed.
223
+ # Set the launch stage to a preview stage on input to allow use of preview
224
+ # features in that stage. On read (or output), describes whether the resource
225
+ # uses preview features.
226
+ # <p>
227
+ # For example, if ALPHA is provided as input, but only BETA and GA-level
228
+ # features are used, this field will be BETA on output.
222
229
  # @!attribute [rw] binary_authorization
223
230
  # @return [::Google::Cloud::Run::V2::BinaryAuthorization]
224
231
  # Settings for the Binary Authorization feature.
@@ -268,6 +275,9 @@ module Google
268
275
  # `latest_succeeded_execution` will have the state of the last succeeded
269
276
  # execution or empty for newly created Job. Additional information on the
270
277
  # failure can be found in `terminal_condition` and `conditions`.
278
+ # @!attribute [r] satisfies_pzs
279
+ # @return [::Boolean]
280
+ # Output only. Reserved for future use.
271
281
  # @!attribute [r] etag
272
282
  # @return [::String]
273
283
  # Output only. A system-generated fingerprint for this version of the