google-cloud-run-v2 0.3.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +6 -6
  3. data/README.md +3 -3
  4. data/lib/google/cloud/run/v2/condition_pb.rb +1 -0
  5. data/lib/google/cloud/run/v2/execution_pb.rb +76 -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 +770 -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 +104 -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 +770 -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 +34 -0
  21. data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -2
  22. data/lib/google/cloud/run/v2/revisions/client.rb +16 -2
  23. data/lib/google/cloud/run/v2/service_services_pb.rb +2 -2
  24. data/lib/google/cloud/run/v2/services/client.rb +28 -9
  25. data/lib/google/cloud/run/v2/task_pb.rb +81 -0
  26. data/lib/google/cloud/run/v2/task_services_pb.rb +47 -0
  27. data/lib/google/cloud/run/v2/task_template_pb.rb +36 -0
  28. data/lib/google/cloud/run/v2/tasks/client.rb +512 -0
  29. data/lib/google/cloud/run/v2/tasks/credentials.rb +47 -0
  30. data/lib/google/cloud/run/v2/tasks/paths.rb +77 -0
  31. data/lib/google/cloud/run/v2/tasks.rb +49 -0
  32. data/lib/google/cloud/run/v2/version.rb +1 -1
  33. data/lib/google/cloud/run/v2.rb +4 -1
  34. data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
  35. data/proto_docs/google/cloud/run/v2/execution.rb +223 -0
  36. data/proto_docs/google/cloud/run/v2/execution_template.rb +76 -0
  37. data/proto_docs/google/cloud/run/v2/job.rb +308 -0
  38. data/proto_docs/google/cloud/run/v2/k8s.min.rb +120 -6
  39. data/proto_docs/google/cloud/run/v2/service.rb +12 -7
  40. data/proto_docs/google/cloud/run/v2/task.rb +229 -0
  41. data/proto_docs/google/cloud/run/v2/task_template.rb +66 -0
  42. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +2 -1
  43. metadata +51 -4
@@ -74,6 +74,25 @@ module Google
74
74
  # @!attribute [rw] volume_mounts
75
75
  # @return [::Array<::Google::Cloud::Run::V2::VolumeMount>]
76
76
  # Volume to mount into the container's filesystem.
77
+ # @!attribute [rw] working_dir
78
+ # @return [::String]
79
+ # Container's working directory.
80
+ # If not specified, the container runtime's default will be used, which
81
+ # might be configured in the container image.
82
+ # @!attribute [rw] liveness_probe
83
+ # @return [::Google::Cloud::Run::V2::Probe]
84
+ # Periodic probe of container liveness.
85
+ # Container will be restarted if the probe fails.
86
+ # More info:
87
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
88
+ # @!attribute [rw] startup_probe
89
+ # @return [::Google::Cloud::Run::V2::Probe]
90
+ # Startup probe of application within the container.
91
+ # All other probes are disabled if a startup probe is provided, until it
92
+ # succeeds. Container will not be added to service endpoints if the probe
93
+ # fails.
94
+ # More info:
95
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
77
96
  class Container
78
97
  include ::Google::Protobuf::MessageExts
79
98
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -83,9 +102,9 @@ module Google
83
102
  # @!attribute [rw] limits
84
103
  # @return [::Google::Protobuf::Map{::String => ::String}]
85
104
  # Only memory and CPU are supported. Note: The only
86
- # supported values for CPU are '1', '2', and '4'. Setting 4 CPU requires at
87
- # least 2Gi of memory.
88
- # The values of the map is string form of the 'quantity' k8s type:
105
+ # supported values for CPU are '1', '2', '4', and '8'. Setting 4 CPU
106
+ # requires at least 2Gi of memory. The values of the map is string form of
107
+ # the 'quantity' k8s type:
89
108
  # https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
90
109
  # @!attribute [rw] cpu_idle
91
110
  # @return [::Boolean]
@@ -146,7 +165,8 @@ module Google
146
165
  # @!attribute [rw] version
147
166
  # @return [::String]
148
167
  # The Cloud Secret Manager secret version.
149
- # Can be 'latest' for the latest value or an integer for a specific version.
168
+ # Can be 'latest' for the latest version, an integer for a specific version,
169
+ # or a version alias.
150
170
  class SecretKeySelector
151
171
  include ::Google::Protobuf::MessageExts
152
172
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -219,7 +239,7 @@ module Google
219
239
  # @!attribute [rw] default_mode
220
240
  # @return [::Integer]
221
241
  # Integer representation of mode bits to use on created files by default.
222
- # Must be a value between 0000 and 0777 (octal), defaulting to 0644.
242
+ # Must be a value between 0000 and 0777 (octal), defaulting to 0444.
223
243
  # Directories within the path are not affected by this setting.
224
244
  #
225
245
  # Notes
@@ -249,7 +269,8 @@ module Google
249
269
  # @!attribute [rw] version
250
270
  # @return [::String]
251
271
  # The Cloud Secret Manager secret version.
252
- # Can be 'latest' for the latest value or an integer for a specific version.
272
+ # Can be 'latest' for the latest value, or an integer or a secret alias for a
273
+ # specific version.
253
274
  # @!attribute [rw] mode
254
275
  # @return [::Integer]
255
276
  # Integer octal mode bits to use on this file, must be a value between
@@ -284,6 +305,99 @@ module Google
284
305
  include ::Google::Protobuf::MessageExts
285
306
  extend ::Google::Protobuf::MessageExts::ClassMethods
286
307
  end
308
+
309
+ # Probe describes a health check to be performed against a container to
310
+ # determine whether it is alive or ready to receive traffic.
311
+ # @!attribute [rw] initial_delay_seconds
312
+ # @return [::Integer]
313
+ # Number of seconds after the container has started before the probe is
314
+ # initiated.
315
+ # Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe
316
+ # is 3600. Maximum value for startup probe is 240.
317
+ # More info:
318
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
319
+ # @!attribute [rw] timeout_seconds
320
+ # @return [::Integer]
321
+ # Number of seconds after which the probe times out.
322
+ # Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
323
+ # Must be smaller than period_seconds.
324
+ # More info:
325
+ # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
326
+ # @!attribute [rw] period_seconds
327
+ # @return [::Integer]
328
+ # How often (in seconds) to perform the probe.
329
+ # Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
330
+ # is 3600. Maximum value for startup probe is 240.
331
+ # Must be greater or equal than timeout_seconds.
332
+ # @!attribute [rw] failure_threshold
333
+ # @return [::Integer]
334
+ # Minimum consecutive failures for the probe to be considered failed after
335
+ # having succeeded. Defaults to 3. Minimum value is 1.
336
+ # @!attribute [rw] http_get
337
+ # @return [::Google::Cloud::Run::V2::HTTPGetAction]
338
+ # HTTPGet specifies the http request to perform.
339
+ # Exactly one of httpGet, tcpSocket, or grpc must be specified.
340
+ # @!attribute [rw] tcp_socket
341
+ # @return [::Google::Cloud::Run::V2::TCPSocketAction]
342
+ # TCPSocket specifies an action involving a TCP port.
343
+ # Exactly one of httpGet, tcpSocket, or grpc must be specified.
344
+ # @!attribute [rw] grpc
345
+ # @return [::Google::Cloud::Run::V2::GRPCAction]
346
+ # GRPC specifies an action involving a gRPC port.
347
+ # Exactly one of httpGet, tcpSocket, or grpc must be specified.
348
+ class Probe
349
+ include ::Google::Protobuf::MessageExts
350
+ extend ::Google::Protobuf::MessageExts::ClassMethods
351
+ end
352
+
353
+ # HTTPGetAction describes an action based on HTTP Get requests.
354
+ # @!attribute [rw] path
355
+ # @return [::String]
356
+ # Path to access on the HTTP server. Defaults to '/'.
357
+ # @!attribute [rw] http_headers
358
+ # @return [::Array<::Google::Cloud::Run::V2::HTTPHeader>]
359
+ # Custom headers to set in the request. HTTP allows repeated headers.
360
+ class HTTPGetAction
361
+ include ::Google::Protobuf::MessageExts
362
+ extend ::Google::Protobuf::MessageExts::ClassMethods
363
+ end
364
+
365
+ # HTTPHeader describes a custom header to be used in HTTP probes
366
+ # @!attribute [rw] name
367
+ # @return [::String]
368
+ # Required. The header field name
369
+ # @!attribute [rw] value
370
+ # @return [::String]
371
+ # The header field value
372
+ class HTTPHeader
373
+ include ::Google::Protobuf::MessageExts
374
+ extend ::Google::Protobuf::MessageExts::ClassMethods
375
+ end
376
+
377
+ # TCPSocketAction describes an action based on opening a socket
378
+ # @!attribute [rw] port
379
+ # @return [::Integer]
380
+ # Port number to access on the container. Must be in the range 1 to 65535.
381
+ # If not specified, defaults to 8080.
382
+ class TCPSocketAction
383
+ include ::Google::Protobuf::MessageExts
384
+ extend ::Google::Protobuf::MessageExts::ClassMethods
385
+ end
386
+
387
+ # GRPCAction describes an action involving a GRPC port.
388
+ # @!attribute [rw] port
389
+ # @return [::Integer]
390
+ # Port number of the gRPC service. Number must be in the range 1 to 65535.
391
+ # If not specified, defaults to 8080.
392
+ # @!attribute [rw] service
393
+ # @return [::String]
394
+ # Service is the name of the service to place in the gRPC HealthCheckRequest
395
+ # (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If
396
+ # this is not specified, the default behavior is defined by gRPC.
397
+ class GRPCAction
398
+ include ::Google::Protobuf::MessageExts
399
+ extend ::Google::Protobuf::MessageExts::ClassMethods
400
+ end
287
401
  end
288
402
  end
289
403
  end
@@ -25,14 +25,16 @@ module Google
25
25
  # @!attribute [rw] parent
26
26
  # @return [::String]
27
27
  # Required. The location and project in which this service should be created.
28
- # Format: projects/\\{projectnumber}/locations/\\{location}
28
+ # Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
29
+ # project id or number. Only lowercase characters, digits, and hyphens.
29
30
  # @!attribute [rw] service
30
31
  # @return [::Google::Cloud::Run::V2::Service]
31
32
  # Required. The Service instance to create.
32
33
  # @!attribute [rw] service_id
33
34
  # @return [::String]
34
- # Required. The unique identifier for the Service. The name of the service becomes
35
- # \\{parent}/services/\\{service_id}.
35
+ # Required. The unique identifier for the Service. It must begin with letter,
36
+ # and cannot end with hyphen; must contain fewer than 50 characters.
37
+ # The name of the service becomes \\{parent}/services/\\{service_id}.
36
38
  # @!attribute [rw] validate_only
37
39
  # @return [::Boolean]
38
40
  # Indicates that the request should be validated and default values
@@ -64,8 +66,9 @@ module Google
64
66
  # @!attribute [rw] parent
65
67
  # @return [::String]
66
68
  # Required. The location and project to list resources on.
67
- # Location must be a valid GCP region, and may not be the "-" wildcard.
68
- # Format: projects/\\{projectnumber}/locations/\\{location}
69
+ # Location must be a valid GCP region, and cannot be the "-" wildcard.
70
+ # Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
71
+ # project id or number.
69
72
  # @!attribute [rw] page_size
70
73
  # @return [::Integer]
71
74
  # Maximum number of Services to return in this call.
@@ -98,7 +101,8 @@ module Google
98
101
  # @!attribute [rw] name
99
102
  # @return [::String]
100
103
  # Required. The full name of the Service.
101
- # Format: projects/\\{projectnumber}/locations/\\{location}/services/\\{service}
104
+ # Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
105
+ # \\{project} can be project id or number.
102
106
  class GetServiceRequest
103
107
  include ::Google::Protobuf::MessageExts
104
108
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -108,7 +112,8 @@ module Google
108
112
  # @!attribute [rw] name
109
113
  # @return [::String]
110
114
  # Required. The full name of the Service.
111
- # Format: projects/\\{projectnumber}/locations/\\{location}/services/\\{service}
115
+ # Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
116
+ # \\{project} can be project id or number.
112
117
  # @!attribute [rw] validate_only
113
118
  # @return [::Boolean]
114
119
  # Indicates that the request should be validated without actually
@@ -0,0 +1,229 @@
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
+ # Request message for obtaining a Task by its full name.
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Required. The full name of the Task.
28
+ # Format:
29
+ # projects/\\{project}/locations/\\{location}/jobs/\\{job}/executions/\\{execution}/tasks/\\{task}
30
+ class GetTaskRequest
31
+ include ::Google::Protobuf::MessageExts
32
+ extend ::Google::Protobuf::MessageExts::ClassMethods
33
+ end
34
+
35
+ # Request message for retrieving a list of Tasks.
36
+ # @!attribute [rw] parent
37
+ # @return [::String]
38
+ # Required. The Execution from which the Tasks should be listed.
39
+ # To list all Tasks across Executions of a Job, use "-" instead of Execution
40
+ # name. To list all Tasks across Jobs, use "-" instead of Job name. Format:
41
+ # projects/\\{project}/locations/\\{location}/jobs/\\{job}/executions/\\{execution}
42
+ # @!attribute [rw] page_size
43
+ # @return [::Integer]
44
+ # Maximum number of Tasks to return in this call.
45
+ # @!attribute [rw] page_token
46
+ # @return [::String]
47
+ # A page token received from a previous call to ListTasks.
48
+ # All other parameters must match.
49
+ # @!attribute [rw] show_deleted
50
+ # @return [::Boolean]
51
+ # If true, returns deleted (but unexpired) resources along with active ones.
52
+ class ListTasksRequest
53
+ include ::Google::Protobuf::MessageExts
54
+ extend ::Google::Protobuf::MessageExts::ClassMethods
55
+ end
56
+
57
+ # Response message containing a list of Tasks.
58
+ # @!attribute [rw] tasks
59
+ # @return [::Array<::Google::Cloud::Run::V2::Task>]
60
+ # The resulting list of Tasks.
61
+ # @!attribute [rw] next_page_token
62
+ # @return [::String]
63
+ # A token indicating there are more items than page_size. Use it in the next
64
+ # ListTasks request to continue.
65
+ class ListTasksResponse
66
+ include ::Google::Protobuf::MessageExts
67
+ extend ::Google::Protobuf::MessageExts::ClassMethods
68
+ end
69
+
70
+ # Task represents a single run of a container to completion.
71
+ # @!attribute [r] name
72
+ # @return [::String]
73
+ # Output only. The unique name of this Task.
74
+ # @!attribute [r] uid
75
+ # @return [::String]
76
+ # Output only. Server assigned unique identifier for the Task. The value is a UUID4
77
+ # string and guaranteed to remain unchanged until the resource is deleted.
78
+ # @!attribute [r] generation
79
+ # @return [::Integer]
80
+ # Output only. A number that monotonically increases every time the user
81
+ # modifies the desired state.
82
+ # @!attribute [rw] labels
83
+ # @return [::Google::Protobuf::Map{::String => ::String}]
84
+ # KRM-style labels for the resource.
85
+ # User-provided labels are shared with Google's billing system, so they can
86
+ # be used to filter, or break down billing charges by team, component,
87
+ # environment, state, etc. For more information, visit
88
+ # https://cloud.google.com/resource-manager/docs/creating-managing-labels or
89
+ # https://cloud.google.com/run/docs/configuring/labels
90
+ # Cloud Run will populate some labels with 'run.googleapis.com' or
91
+ # 'serving.knative.dev' namespaces. Those labels are read-only, and user
92
+ # changes will not be preserved.
93
+ # @!attribute [rw] annotations
94
+ # @return [::Google::Protobuf::Map{::String => ::String}]
95
+ # KRM-style annotations for the resource.
96
+ # @!attribute [r] create_time
97
+ # @return [::Google::Protobuf::Timestamp]
98
+ # Output only. Represents time when the task was created by the job controller.
99
+ # It is not guaranteed to be set in happens-before order across separate
100
+ # operations.
101
+ # @!attribute [r] start_time
102
+ # @return [::Google::Protobuf::Timestamp]
103
+ # Output only. Represents time when the task started to run.
104
+ # It is not guaranteed to be set in happens-before order across separate
105
+ # operations.
106
+ # @!attribute [r] completion_time
107
+ # @return [::Google::Protobuf::Timestamp]
108
+ # Output only. Represents time when the Task was completed. It is not guaranteed to
109
+ # be set in happens-before order across separate operations.
110
+ # @!attribute [r] update_time
111
+ # @return [::Google::Protobuf::Timestamp]
112
+ # Output only. The last-modified time.
113
+ # @!attribute [r] delete_time
114
+ # @return [::Google::Protobuf::Timestamp]
115
+ # Output only. For a deleted resource, the deletion time. It is only
116
+ # populated as a response to a Delete request.
117
+ # @!attribute [r] expire_time
118
+ # @return [::Google::Protobuf::Timestamp]
119
+ # Output only. For a deleted resource, the time after which it will be
120
+ # permamently deleted. It is only populated as a response to a Delete
121
+ # request.
122
+ # @!attribute [r] job
123
+ # @return [::String]
124
+ # Output only. The name of the parent Job.
125
+ # @!attribute [r] execution
126
+ # @return [::String]
127
+ # Output only. The name of the parent Execution.
128
+ # @!attribute [rw] containers
129
+ # @return [::Array<::Google::Cloud::Run::V2::Container>]
130
+ # Holds the single container that defines the unit of execution for this
131
+ # task.
132
+ # @!attribute [rw] volumes
133
+ # @return [::Array<::Google::Cloud::Run::V2::Volume>]
134
+ # A list of Volumes to make available to containers.
135
+ # @!attribute [rw] max_retries
136
+ # @return [::Integer]
137
+ # Number of retries allowed per Task, before marking this Task failed.
138
+ # @!attribute [rw] timeout
139
+ # @return [::Google::Protobuf::Duration]
140
+ # Max allowed time duration the Task may be active before the system will
141
+ # actively try to mark it failed and kill associated containers. This applies
142
+ # per attempt of a task, meaning each retry can run for the full timeout.
143
+ # @!attribute [rw] service_account
144
+ # @return [::String]
145
+ # Email address of the IAM service account associated with the Task of a
146
+ # Job. The service account represents the identity of the
147
+ # running task, and determines what permissions the task has. If
148
+ # not provided, the task will use the project's default service account.
149
+ # @!attribute [rw] execution_environment
150
+ # @return [::Google::Cloud::Run::V2::ExecutionEnvironment]
151
+ # The execution environment being used to host this Task.
152
+ # @!attribute [r] reconciling
153
+ # @return [::Boolean]
154
+ # Output only. Indicates whether the resource's reconciliation is still in progress.
155
+ # See comments in `Job.reconciling` for additional information on
156
+ # reconciliation process in Cloud Run.
157
+ # @!attribute [r] conditions
158
+ # @return [::Array<::Google::Cloud::Run::V2::Condition>]
159
+ # Output only. The Condition of this Task, containing its readiness status, and
160
+ # detailed error information in case it did not reach the desired state.
161
+ # @!attribute [r] observed_generation
162
+ # @return [::Integer]
163
+ # Output only. The generation of this Task. See comments in `Job.reconciling`
164
+ # for additional information on reconciliation process in Cloud Run.
165
+ # @!attribute [r] index
166
+ # @return [::Integer]
167
+ # Output only. Index of the Task, unique per execution, and beginning at 0.
168
+ # @!attribute [r] retried
169
+ # @return [::Integer]
170
+ # Output only. The number of times this Task was retried.
171
+ # Tasks are retried when they fail up to the maxRetries limit.
172
+ # @!attribute [r] last_attempt_result
173
+ # @return [::Google::Cloud::Run::V2::TaskAttemptResult]
174
+ # Output only. Result of the last attempt of this Task.
175
+ # @!attribute [r] encryption_key
176
+ # @return [::String]
177
+ # Output only. A reference to a customer managed encryption key (CMEK) to use to encrypt
178
+ # this container image. For more information, go to
179
+ # https://cloud.google.com/run/docs/securing/using-cmek
180
+ # @!attribute [r] vpc_access
181
+ # @return [::Google::Cloud::Run::V2::VpcAccess]
182
+ # Output only. VPC Access configuration to use for this Task. For more information,
183
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
184
+ # @!attribute [r] etag
185
+ # @return [::String]
186
+ # Output only. A system-generated fingerprint for this version of the
187
+ # resource. May be used to detect modification conflict during updates.
188
+ class Task
189
+ include ::Google::Protobuf::MessageExts
190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
191
+
192
+ # @!attribute [rw] key
193
+ # @return [::String]
194
+ # @!attribute [rw] value
195
+ # @return [::String]
196
+ class LabelsEntry
197
+ include ::Google::Protobuf::MessageExts
198
+ extend ::Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+
201
+ # @!attribute [rw] key
202
+ # @return [::String]
203
+ # @!attribute [rw] value
204
+ # @return [::String]
205
+ class AnnotationsEntry
206
+ include ::Google::Protobuf::MessageExts
207
+ extend ::Google::Protobuf::MessageExts::ClassMethods
208
+ end
209
+ end
210
+
211
+ # Result of a task attempt.
212
+ # @!attribute [r] status
213
+ # @return [::Google::Rpc::Status]
214
+ # Output only. The status of this attempt.
215
+ # If the status code is OK, then the attempt succeeded.
216
+ # @!attribute [r] exit_code
217
+ # @return [::Integer]
218
+ # Output only. The exit code of this attempt.
219
+ # This may be unset if the container was unable to exit cleanly with a code
220
+ # due to some other failure.
221
+ # See status field for possible failure details.
222
+ class TaskAttemptResult
223
+ include ::Google::Protobuf::MessageExts
224
+ extend ::Google::Protobuf::MessageExts::ClassMethods
225
+ end
226
+ end
227
+ end
228
+ end
229
+ end
@@ -0,0 +1,66 @@
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
+ # TaskTemplate describes the data a task should have when created
25
+ # from a template.
26
+ # @!attribute [rw] containers
27
+ # @return [::Array<::Google::Cloud::Run::V2::Container>]
28
+ # Holds the single container that defines the unit of execution for this
29
+ # task.
30
+ # @!attribute [rw] volumes
31
+ # @return [::Array<::Google::Cloud::Run::V2::Volume>]
32
+ # A list of Volumes to make available to containers.
33
+ # @!attribute [rw] max_retries
34
+ # @return [::Integer]
35
+ # Number of retries allowed per Task, before marking this Task failed.
36
+ # @!attribute [rw] timeout
37
+ # @return [::Google::Protobuf::Duration]
38
+ # Max allowed time duration the Task may be active before the system will
39
+ # actively try to mark it failed and kill associated containers. This applies
40
+ # per attempt of a task, meaning each retry can run for the full timeout.
41
+ # @!attribute [rw] service_account
42
+ # @return [::String]
43
+ # Email address of the IAM service account associated with the Task of a
44
+ # Job. The service account represents the identity of the
45
+ # running task, and determines what permissions the task has. If
46
+ # not provided, the task will use the project's default service account.
47
+ # @!attribute [rw] execution_environment
48
+ # @return [::Google::Cloud::Run::V2::ExecutionEnvironment]
49
+ # The execution environment being used to host this Task.
50
+ # @!attribute [rw] encryption_key
51
+ # @return [::String]
52
+ # A reference to a customer managed encryption key (CMEK) to use to encrypt
53
+ # this container image. For more information, go to
54
+ # https://cloud.google.com/run/docs/securing/using-cmek
55
+ # @!attribute [rw] vpc_access
56
+ # @return [::Google::Cloud::Run::V2::VpcAccess]
57
+ # VPC Access configuration to use for this Task. For more information,
58
+ # visit https://cloud.google.com/run/docs/configuring/connecting-vpc.
59
+ class TaskTemplate
60
+ include ::Google::Protobuf::MessageExts
61
+ extend ::Google::Protobuf::MessageExts::ClassMethods
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -28,7 +28,8 @@ module Google
28
28
  # @!attribute [rw] connector
29
29
  # @return [::String]
30
30
  # VPC Access connector name.
31
- # Format: projects/\\{project}/locations/\\{location}/connectors/\\{connector}
31
+ # Format: projects/\\{project}/locations/\\{location}/connectors/\\{connector},
32
+ # where \\{project} can be project id or number.
32
33
  # @!attribute [rw] egress
33
34
  # @return [::Google::Cloud::Run::V2::VpcAccess::VpcEgress]
34
35
  # Traffic VPC egress settings.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-run-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-15 00:00:00.000000000 Z
11
+ date: 2022-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.10'
19
+ version: '0.12'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.10'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -44,6 +44,26 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: google-cloud-location
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
47
67
  - !ruby/object:Gem::Dependency
48
68
  name: grpc-google-iam-v1
49
69
  requirement: !ruby/object:Gem::Requirement
@@ -186,6 +206,21 @@ files:
186
206
  - lib/google-cloud-run-v2.rb
187
207
  - lib/google/cloud/run/v2.rb
188
208
  - lib/google/cloud/run/v2/condition_pb.rb
209
+ - lib/google/cloud/run/v2/execution_pb.rb
210
+ - lib/google/cloud/run/v2/execution_services_pb.rb
211
+ - lib/google/cloud/run/v2/execution_template_pb.rb
212
+ - lib/google/cloud/run/v2/executions.rb
213
+ - lib/google/cloud/run/v2/executions/client.rb
214
+ - lib/google/cloud/run/v2/executions/credentials.rb
215
+ - lib/google/cloud/run/v2/executions/operations.rb
216
+ - lib/google/cloud/run/v2/executions/paths.rb
217
+ - lib/google/cloud/run/v2/job_pb.rb
218
+ - lib/google/cloud/run/v2/job_services_pb.rb
219
+ - lib/google/cloud/run/v2/jobs.rb
220
+ - lib/google/cloud/run/v2/jobs/client.rb
221
+ - lib/google/cloud/run/v2/jobs/credentials.rb
222
+ - lib/google/cloud/run/v2/jobs/operations.rb
223
+ - lib/google/cloud/run/v2/jobs/paths.rb
189
224
  - lib/google/cloud/run/v2/k8s.min_pb.rb
190
225
  - lib/google/cloud/run/v2/revision_pb.rb
191
226
  - lib/google/cloud/run/v2/revision_services_pb.rb
@@ -202,6 +237,13 @@ files:
202
237
  - lib/google/cloud/run/v2/services/credentials.rb
203
238
  - lib/google/cloud/run/v2/services/operations.rb
204
239
  - lib/google/cloud/run/v2/services/paths.rb
240
+ - lib/google/cloud/run/v2/task_pb.rb
241
+ - lib/google/cloud/run/v2/task_services_pb.rb
242
+ - lib/google/cloud/run/v2/task_template_pb.rb
243
+ - lib/google/cloud/run/v2/tasks.rb
244
+ - lib/google/cloud/run/v2/tasks/client.rb
245
+ - lib/google/cloud/run/v2/tasks/credentials.rb
246
+ - lib/google/cloud/run/v2/tasks/paths.rb
205
247
  - lib/google/cloud/run/v2/traffic_target_pb.rb
206
248
  - lib/google/cloud/run/v2/vendor_settings_pb.rb
207
249
  - lib/google/cloud/run/v2/version.rb
@@ -211,10 +253,15 @@ files:
211
253
  - proto_docs/google/api/resource.rb
212
254
  - proto_docs/google/api/routing.rb
213
255
  - proto_docs/google/cloud/run/v2/condition.rb
256
+ - proto_docs/google/cloud/run/v2/execution.rb
257
+ - proto_docs/google/cloud/run/v2/execution_template.rb
258
+ - proto_docs/google/cloud/run/v2/job.rb
214
259
  - proto_docs/google/cloud/run/v2/k8s.min.rb
215
260
  - proto_docs/google/cloud/run/v2/revision.rb
216
261
  - proto_docs/google/cloud/run/v2/revision_template.rb
217
262
  - proto_docs/google/cloud/run/v2/service.rb
263
+ - proto_docs/google/cloud/run/v2/task.rb
264
+ - proto_docs/google/cloud/run/v2/task_template.rb
218
265
  - proto_docs/google/cloud/run/v2/traffic_target.rb
219
266
  - proto_docs/google/cloud/run/v2/vendor_settings.rb
220
267
  - proto_docs/google/iam/v1/iam_policy.rb