google-cloud-run-v2 0.4.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +4 -4
  4. data/lib/google/cloud/run/v2/condition_pb.rb +1 -0
  5. data/lib/google/cloud/run/v2/execution_pb.rb +79 -0
  6. data/lib/google/cloud/run/v2/execution_services_pb.rb +49 -0
  7. data/lib/google/cloud/run/v2/execution_template_pb.rb +29 -0
  8. data/lib/google/cloud/run/v2/executions/client.rb +635 -0
  9. data/lib/google/cloud/run/v2/executions/credentials.rb +47 -0
  10. data/lib/google/cloud/run/v2/executions/operations.rb +778 -0
  11. data/lib/google/cloud/run/v2/executions/paths.rb +73 -0
  12. data/lib/google/cloud/run/v2/executions.rb +50 -0
  13. data/lib/google/cloud/run/v2/job_pb.rb +105 -0
  14. data/lib/google/cloud/run/v2/job_services_pb.rb +65 -0
  15. data/lib/google/cloud/run/v2/jobs/client.rb +1259 -0
  16. data/lib/google/cloud/run/v2/jobs/credentials.rb +47 -0
  17. data/lib/google/cloud/run/v2/jobs/operations.rb +778 -0
  18. data/lib/google/cloud/run/v2/jobs/paths.rb +166 -0
  19. data/lib/google/cloud/run/v2/jobs.rb +50 -0
  20. data/lib/google/cloud/run/v2/k8s.min_pb.rb +6 -0
  21. data/lib/google/cloud/run/v2/revision_pb.rb +2 -0
  22. data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -2
  23. data/lib/google/cloud/run/v2/revisions/client.rb +2 -2
  24. data/lib/google/cloud/run/v2/revisions/operations.rb +8 -0
  25. data/lib/google/cloud/run/v2/revisions.rb +1 -1
  26. data/lib/google/cloud/run/v2/service_services_pb.rb +2 -2
  27. data/lib/google/cloud/run/v2/services/client.rb +13 -10
  28. data/lib/google/cloud/run/v2/services/operations.rb +8 -0
  29. data/lib/google/cloud/run/v2/services.rb +1 -1
  30. data/lib/google/cloud/run/v2/task_pb.rb +82 -0
  31. data/lib/google/cloud/run/v2/task_services_pb.rb +47 -0
  32. data/lib/google/cloud/run/v2/task_template_pb.rb +36 -0
  33. data/lib/google/cloud/run/v2/tasks/client.rb +512 -0
  34. data/lib/google/cloud/run/v2/tasks/credentials.rb +47 -0
  35. data/lib/google/cloud/run/v2/tasks/paths.rb +77 -0
  36. data/lib/google/cloud/run/v2/tasks.rb +49 -0
  37. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +6 -0
  38. data/lib/google/cloud/run/v2/version.rb +1 -1
  39. data/lib/google/cloud/run/v2.rb +6 -3
  40. data/proto_docs/google/api/client.rb +318 -0
  41. data/proto_docs/google/api/launch_stage.rb +3 -3
  42. data/proto_docs/google/cloud/run/v2/condition.rb +4 -0
  43. data/proto_docs/google/cloud/run/v2/execution.rb +233 -0
  44. data/proto_docs/google/cloud/run/v2/execution_template.rb +87 -0
  45. data/proto_docs/google/cloud/run/v2/job.rb +316 -0
  46. data/proto_docs/google/cloud/run/v2/k8s.min.rb +42 -15
  47. data/proto_docs/google/cloud/run/v2/revision.rb +19 -13
  48. data/proto_docs/google/cloud/run/v2/revision_template.rb +10 -0
  49. data/proto_docs/google/cloud/run/v2/service.rb +52 -39
  50. data/proto_docs/google/cloud/run/v2/task.rb +232 -0
  51. data/proto_docs/google/cloud/run/v2/task_template.rb +66 -0
  52. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +14 -1
  53. data/proto_docs/google/rpc/status.rb +4 -2
  54. metadata +35 -7
@@ -0,0 +1,166 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Run
23
+ module V2
24
+ module Jobs
25
+ # Path helper methods for the Jobs API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Connector resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/connectors/{connector}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param connector [String]
37
+ #
38
+ # @return [::String]
39
+ def connector_path project:, location:, connector:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/connectors/#{connector}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified CryptoKey resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param key_ring [String]
56
+ # @param crypto_key [String]
57
+ #
58
+ # @return [::String]
59
+ def crypto_key_path project:, location:, key_ring:, crypto_key:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+ raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
65
+ end
66
+
67
+ ##
68
+ # Create a fully-qualified Execution resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}/jobs/{job}/executions/{execution}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ # @param job [String]
77
+ # @param execution [String]
78
+ #
79
+ # @return [::String]
80
+ def execution_path project:, location:, job:, execution:
81
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
82
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
83
+ raise ::ArgumentError, "job cannot contain /" if job.to_s.include? "/"
84
+
85
+ "projects/#{project}/locations/#{location}/jobs/#{job}/executions/#{execution}"
86
+ end
87
+
88
+ ##
89
+ # Create a fully-qualified Job resource string.
90
+ #
91
+ # The resource will be in the following format:
92
+ #
93
+ # `projects/{project}/locations/{location}/jobs/{job}`
94
+ #
95
+ # @param project [String]
96
+ # @param location [String]
97
+ # @param job [String]
98
+ #
99
+ # @return [::String]
100
+ def job_path project:, location:, job:
101
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
102
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
103
+
104
+ "projects/#{project}/locations/#{location}/jobs/#{job}"
105
+ end
106
+
107
+ ##
108
+ # Create a fully-qualified Location resource string.
109
+ #
110
+ # The resource will be in the following format:
111
+ #
112
+ # `projects/{project}/locations/{location}`
113
+ #
114
+ # @param project [String]
115
+ # @param location [String]
116
+ #
117
+ # @return [::String]
118
+ def location_path project:, location:
119
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
120
+
121
+ "projects/#{project}/locations/#{location}"
122
+ end
123
+
124
+ ##
125
+ # Create a fully-qualified Secret resource string.
126
+ #
127
+ # The resource will be in the following format:
128
+ #
129
+ # `projects/{project}/secrets/{secret}`
130
+ #
131
+ # @param project [String]
132
+ # @param secret [String]
133
+ #
134
+ # @return [::String]
135
+ def secret_path project:, secret:
136
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
137
+
138
+ "projects/#{project}/secrets/#{secret}"
139
+ end
140
+
141
+ ##
142
+ # Create a fully-qualified SecretVersion resource string.
143
+ #
144
+ # The resource will be in the following format:
145
+ #
146
+ # `projects/{project}/secrets/{secret}/versions/{version}`
147
+ #
148
+ # @param project [String]
149
+ # @param secret [String]
150
+ # @param version [String]
151
+ #
152
+ # @return [::String]
153
+ def secret_version_path project:, secret:, version:
154
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
155
+ raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
156
+
157
+ "projects/#{project}/secrets/#{secret}/versions/#{version}"
158
+ end
159
+
160
+ extend self
161
+ end
162
+ end
163
+ end
164
+ end
165
+ end
166
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/run/v2/version"
24
+
25
+ require "google/cloud/run/v2/jobs/credentials"
26
+ require "google/cloud/run/v2/jobs/paths"
27
+ require "google/cloud/run/v2/jobs/operations"
28
+ require "google/cloud/run/v2/jobs/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module Run
33
+ module V2
34
+ ##
35
+ # Cloud Run Job Control Plane API.
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/cloud/run/v2/jobs"
40
+ # client = ::Google::Cloud::Run::V2::Jobs::Client.new
41
+ #
42
+ module Jobs
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "jobs", "helpers.rb"
50
+ require "google/cloud/run/v2/jobs/helpers" if ::File.file? helper_path
@@ -75,6 +75,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
75
75
  oneof :probe_type do
76
76
  optional :http_get, :message, 5, "google.cloud.run.v2.HTTPGetAction"
77
77
  optional :tcp_socket, :message, 6, "google.cloud.run.v2.TCPSocketAction"
78
+ optional :grpc, :message, 7, "google.cloud.run.v2.GRPCAction"
78
79
  end
79
80
  end
80
81
  add_message "google.cloud.run.v2.HTTPGetAction" do
@@ -88,6 +89,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
88
89
  add_message "google.cloud.run.v2.TCPSocketAction" do
89
90
  optional :port, :int32, 1
90
91
  end
92
+ add_message "google.cloud.run.v2.GRPCAction" do
93
+ optional :port, :int32, 1
94
+ optional :service, :string, 2
95
+ end
91
96
  end
92
97
  end
93
98
 
@@ -110,6 +115,7 @@ module Google
110
115
  HTTPGetAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPGetAction").msgclass
111
116
  HTTPHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.HTTPHeader").msgclass
112
117
  TCPSocketAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TCPSocketAction").msgclass
118
+ GRPCAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GRPCAction").msgclass
113
119
  end
114
120
  end
115
121
  end
@@ -57,6 +57,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
57
57
  repeated :volumes, :message, 18, "google.cloud.run.v2.Volume"
58
58
  optional :execution_environment, :enum, 20, "google.cloud.run.v2.ExecutionEnvironment"
59
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"
60
62
  optional :reconciling, :bool, 30
61
63
  repeated :conditions, :message, 31, "google.cloud.run.v2.Condition"
62
64
  optional :observed_generation, :int64, 32
@@ -35,9 +35,9 @@ module Google
35
35
 
36
36
  # Gets information about a Revision.
37
37
  rpc :GetRevision, ::Google::Cloud::Run::V2::GetRevisionRequest, ::Google::Cloud::Run::V2::Revision
38
- # List Revisions from a given Service, or from a given location.
38
+ # Lists Revisions from a given Service, or from a given location.
39
39
  rpc :ListRevisions, ::Google::Cloud::Run::V2::ListRevisionsRequest, ::Google::Cloud::Run::V2::ListRevisionsResponse
40
- # Delete a Revision.
40
+ # Deletes a Revision.
41
41
  rpc :DeleteRevision, ::Google::Cloud::Run::V2::DeleteRevisionRequest, ::Google::Longrunning::Operation
42
42
  end
43
43
 
@@ -262,7 +262,7 @@ module Google
262
262
  end
263
263
 
264
264
  ##
265
- # List Revisions from a given Service, or from a given location.
265
+ # Lists Revisions from a given Service, or from a given location.
266
266
  #
267
267
  # @overload list_revisions(request, options = nil)
268
268
  # Pass arguments to `list_revisions` via a request object, either of type
@@ -367,7 +367,7 @@ module Google
367
367
  end
368
368
 
369
369
  ##
370
- # Delete a Revision.
370
+ # Deletes a Revision.
371
371
  #
372
372
  # @overload delete_revision(request, options = nil)
373
373
  # Pass arguments to `delete_revision` via a request object, either of type
@@ -567,6 +567,14 @@ module Google
567
567
  gapic_version: ::Google::Cloud::Run::V2::VERSION
568
568
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
569
569
 
570
+ header_params = {}
571
+ if request.name
572
+ header_params["name"] = request.name
573
+ end
574
+
575
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
576
+ metadata[:"x-goog-request-params"] ||= request_params_header
577
+
570
578
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
571
579
  metadata: metadata,
572
580
  retry_policy: @config.rpcs.wait_operation.retry_policy
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # Cloud Run Revision Control Plane API.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/run/v2/revisions"
40
40
  # client = ::Google::Cloud::Run::V2::Revisions::Client.new
@@ -37,7 +37,7 @@ module Google
37
37
  rpc :CreateService, ::Google::Cloud::Run::V2::CreateServiceRequest, ::Google::Longrunning::Operation
38
38
  # Gets information about a Service.
39
39
  rpc :GetService, ::Google::Cloud::Run::V2::GetServiceRequest, ::Google::Cloud::Run::V2::Service
40
- # List Services.
40
+ # Lists Services.
41
41
  rpc :ListServices, ::Google::Cloud::Run::V2::ListServicesRequest, ::Google::Cloud::Run::V2::ListServicesResponse
42
42
  # Updates a Service.
43
43
  rpc :UpdateService, ::Google::Cloud::Run::V2::UpdateServiceRequest, ::Google::Longrunning::Operation
@@ -45,7 +45,7 @@ module Google
45
45
  # This will cause the Service to stop serving traffic and will delete all
46
46
  # revisions.
47
47
  rpc :DeleteService, ::Google::Cloud::Run::V2::DeleteServiceRequest, ::Google::Longrunning::Operation
48
- # Get the IAM Access Control policy currently in effect for the given
48
+ # Gets the IAM Access Control policy currently in effect for the given
49
49
  # Cloud Run Service. This result does not include any inherited policies.
50
50
  rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
51
51
  # Sets the IAM Access control policy for the specified Service. Overwrites
@@ -206,14 +206,14 @@ module Google
206
206
  # the default parameter values, pass an empty Hash as a request object (see above).
207
207
  #
208
208
  # @param parent [::String]
209
- # The location and project in which this service should be created.
210
- # Format: projects/\\{project}/locations/\\{location}
211
- # Only lowercase characters, digits, and hyphens.
209
+ # Required. The location and project in which this service should be created.
210
+ # Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
211
+ # project id or number. Only lowercase characters, digits, and hyphens.
212
212
  # @param service [::Google::Cloud::Run::V2::Service, ::Hash]
213
213
  # Required. The Service instance to create.
214
214
  # @param service_id [::String]
215
215
  # Required. The unique identifier for the Service. It must begin with letter,
216
- # and may not end with hyphen; must contain fewer than 50 characters.
216
+ # and cannot end with hyphen; must contain fewer than 50 characters.
217
217
  # The name of the service becomes \\{parent}/services/\\{service_id}.
218
218
  # @param validate_only [::Boolean]
219
219
  # Indicates that the request should be validated and default values
@@ -314,7 +314,8 @@ module Google
314
314
  #
315
315
  # @param name [::String]
316
316
  # Required. The full name of the Service.
317
- # Format: projects/\\{project}/locations/\\{location}/services/\\{service}
317
+ # Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
318
+ # \\{project} can be project id or number.
318
319
  #
319
320
  # @yield [response, operation] Access the result along with the RPC operation
320
321
  # @yieldparam response [::Google::Cloud::Run::V2::Service]
@@ -384,7 +385,7 @@ module Google
384
385
  end
385
386
 
386
387
  ##
387
- # List Services.
388
+ # Lists Services.
388
389
  #
389
390
  # @overload list_services(request, options = nil)
390
391
  # Pass arguments to `list_services` via a request object, either of type
@@ -403,8 +404,9 @@ module Google
403
404
  #
404
405
  # @param parent [::String]
405
406
  # Required. The location and project to list resources on.
406
- # Location must be a valid GCP region, and may not be the "-" wildcard.
407
- # Format: projects/\\{project}/locations/\\{location}
407
+ # Location must be a valid Google Cloud region, and cannot be the "-"
408
+ # wildcard. Format: projects/\\{project}/locations/\\{location}, where \\{project}
409
+ # can be project id or number.
408
410
  # @param page_size [::Integer]
409
411
  # Maximum number of Services to return in this call.
410
412
  # @param page_token [::String]
@@ -612,7 +614,8 @@ module Google
612
614
  #
613
615
  # @param name [::String]
614
616
  # Required. The full name of the Service.
615
- # Format: projects/\\{project}/locations/\\{location}/services/\\{service}
617
+ # Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
618
+ # \\{project} can be project id or number.
616
619
  # @param validate_only [::Boolean]
617
620
  # Indicates that the request should be validated without actually
618
621
  # deleting any resources.
@@ -696,7 +699,7 @@ module Google
696
699
  end
697
700
 
698
701
  ##
699
- # Get the IAM Access Control policy currently in effect for the given
702
+ # Gets the IAM Access Control policy currently in effect for the given
700
703
  # Cloud Run Service. This result does not include any inherited policies.
701
704
  #
702
705
  # @overload get_iam_policy(request, options = nil)
@@ -567,6 +567,14 @@ module Google
567
567
  gapic_version: ::Google::Cloud::Run::V2::VERSION
568
568
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
569
569
 
570
+ header_params = {}
571
+ if request.name
572
+ header_params["name"] = request.name
573
+ end
574
+
575
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
576
+ metadata[:"x-goog-request-params"] ||= request_params_header
577
+
570
578
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
571
579
  metadata: metadata,
572
580
  retry_policy: @config.rpcs.wait_operation.retry_policy
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # Cloud Run Service Control Plane API
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/run/v2/services"
40
40
  # client = ::Google::Cloud::Run::V2::Services::Client.new
@@ -0,0 +1,82 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/run/v2/task.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/annotations_pb'
7
+ require 'google/api/client_pb'
8
+ require 'google/api/field_behavior_pb'
9
+ require 'google/api/resource_pb'
10
+ require 'google/cloud/run/v2/condition_pb'
11
+ require 'google/cloud/run/v2/k8s.min_pb'
12
+ require 'google/cloud/run/v2/vendor_settings_pb'
13
+ require 'google/protobuf/duration_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+ require 'google/rpc/status_pb'
16
+
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
66
+ end
67
+ end
68
+ end
69
+
70
+ module Google
71
+ module Cloud
72
+ module Run
73
+ module V2
74
+ GetTaskRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GetTaskRequest").msgclass
75
+ ListTasksRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListTasksRequest").msgclass
76
+ ListTasksResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ListTasksResponse").msgclass
77
+ Task = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Task").msgclass
78
+ TaskAttemptResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TaskAttemptResult").msgclass
79
+ end
80
+ end
81
+ end
82
+ end
@@ -0,0 +1,47 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/run/v2/task.proto for package 'google.cloud.run.v2'
3
+ # Original file comments:
4
+ # Copyright 2022 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/run/v2/task_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Run
25
+ module V2
26
+ module Tasks
27
+ # Cloud Run Task Control Plane API.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.run.v2.Tasks'
35
+
36
+ # Gets information about a Task.
37
+ rpc :GetTask, ::Google::Cloud::Run::V2::GetTaskRequest, ::Google::Cloud::Run::V2::Task
38
+ # Lists Tasks from an Execution of a Job.
39
+ rpc :ListTasks, ::Google::Cloud::Run::V2::ListTasksRequest, ::Google::Cloud::Run::V2::ListTasksResponse
40
+ end
41
+
42
+ Stub = Service.rpc_stub_class
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,36 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/run/v2/task_template.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/api/resource_pb'
7
+ require 'google/cloud/run/v2/k8s.min_pb'
8
+ require 'google/cloud/run/v2/vendor_settings_pb'
9
+ require 'google/protobuf/duration_pb'
10
+
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
24
+ end
25
+ end
26
+ end
27
+
28
+ module Google
29
+ module Cloud
30
+ module Run
31
+ module V2
32
+ TaskTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TaskTemplate").msgclass
33
+ end
34
+ end
35
+ end
36
+ end