google-cloud-run-v2 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +3 -3
- data/lib/google/cloud/run/v2/execution_pb.rb +76 -0
- data/lib/google/cloud/run/v2/execution_services_pb.rb +49 -0
- data/lib/google/cloud/run/v2/execution_template_pb.rb +29 -0
- data/lib/google/cloud/run/v2/executions/client.rb +635 -0
- data/lib/google/cloud/run/v2/executions/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/executions/operations.rb +770 -0
- data/lib/google/cloud/run/v2/executions/paths.rb +73 -0
- data/lib/google/cloud/run/v2/executions.rb +50 -0
- data/lib/google/cloud/run/v2/job_pb.rb +104 -0
- data/lib/google/cloud/run/v2/job_services_pb.rb +65 -0
- data/lib/google/cloud/run/v2/jobs/client.rb +1259 -0
- data/lib/google/cloud/run/v2/jobs/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/jobs/operations.rb +770 -0
- data/lib/google/cloud/run/v2/jobs/paths.rb +166 -0
- data/lib/google/cloud/run/v2/jobs.rb +50 -0
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +6 -0
- data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/client.rb +2 -2
- data/lib/google/cloud/run/v2/service_services_pb.rb +2 -2
- data/lib/google/cloud/run/v2/services/client.rb +13 -10
- data/lib/google/cloud/run/v2/task_pb.rb +81 -0
- data/lib/google/cloud/run/v2/task_services_pb.rb +47 -0
- data/lib/google/cloud/run/v2/task_template_pb.rb +36 -0
- data/lib/google/cloud/run/v2/tasks/client.rb +512 -0
- data/lib/google/cloud/run/v2/tasks/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/tasks/paths.rb +77 -0
- data/lib/google/cloud/run/v2/tasks.rb +49 -0
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2.rb +4 -1
- data/proto_docs/google/cloud/run/v2/execution.rb +223 -0
- data/proto_docs/google/cloud/run/v2/execution_template.rb +76 -0
- data/proto_docs/google/cloud/run/v2/job.rb +308 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +29 -7
- data/proto_docs/google/cloud/run/v2/service.rb +11 -8
- data/proto_docs/google/cloud/run/v2/task.rb +229 -0
- data/proto_docs/google/cloud/run/v2/task_template.rb +66 -0
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +2 -1
- metadata +29 -2
@@ -102,9 +102,9 @@ module Google
|
|
102
102
|
# @!attribute [rw] limits
|
103
103
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
104
104
|
# Only memory and CPU are supported. Note: The only
|
105
|
-
# supported values for CPU are '1', '2', and '
|
106
|
-
# least 2Gi of memory.
|
107
|
-
#
|
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:
|
108
108
|
# https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go
|
109
109
|
# @!attribute [rw] cpu_idle
|
110
110
|
# @return [::Boolean]
|
@@ -165,7 +165,8 @@ module Google
|
|
165
165
|
# @!attribute [rw] version
|
166
166
|
# @return [::String]
|
167
167
|
# The Cloud Secret Manager secret version.
|
168
|
-
# Can be 'latest' for the latest
|
168
|
+
# Can be 'latest' for the latest version, an integer for a specific version,
|
169
|
+
# or a version alias.
|
169
170
|
class SecretKeySelector
|
170
171
|
include ::Google::Protobuf::MessageExts
|
171
172
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -268,7 +269,8 @@ module Google
|
|
268
269
|
# @!attribute [rw] version
|
269
270
|
# @return [::String]
|
270
271
|
# The Cloud Secret Manager secret version.
|
271
|
-
# Can be 'latest' for the latest value or an integer
|
272
|
+
# Can be 'latest' for the latest value, or an integer or a secret alias for a
|
273
|
+
# specific version.
|
272
274
|
# @!attribute [rw] mode
|
273
275
|
# @return [::Integer]
|
274
276
|
# Integer octal mode bits to use on this file, must be a value between
|
@@ -334,11 +336,15 @@ module Google
|
|
334
336
|
# @!attribute [rw] http_get
|
335
337
|
# @return [::Google::Cloud::Run::V2::HTTPGetAction]
|
336
338
|
# HTTPGet specifies the http request to perform.
|
337
|
-
# Exactly one of
|
339
|
+
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
338
340
|
# @!attribute [rw] tcp_socket
|
339
341
|
# @return [::Google::Cloud::Run::V2::TCPSocketAction]
|
340
342
|
# TCPSocket specifies an action involving a TCP port.
|
341
|
-
# Exactly one of
|
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.
|
342
348
|
class Probe
|
343
349
|
include ::Google::Protobuf::MessageExts
|
344
350
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -372,10 +378,26 @@ module Google
|
|
372
378
|
# @!attribute [rw] port
|
373
379
|
# @return [::Integer]
|
374
380
|
# Port number to access on the container. Must be in the range 1 to 65535.
|
381
|
+
# If not specified, defaults to 8080.
|
375
382
|
class TCPSocketAction
|
376
383
|
include ::Google::Protobuf::MessageExts
|
377
384
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
378
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
|
379
401
|
end
|
380
402
|
end
|
381
403
|
end
|
@@ -24,16 +24,16 @@ module Google
|
|
24
24
|
# Request message for creating a Service.
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [::String]
|
27
|
-
# The location and project in which this service should be created.
|
28
|
-
# Format: projects/\\{project}/locations/\\{location}
|
29
|
-
# Only lowercase characters, digits, and hyphens.
|
27
|
+
# Required. The location and project in which this service should be created.
|
28
|
+
# Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
|
29
|
+
# project id or number. Only lowercase characters, digits, and hyphens.
|
30
30
|
# @!attribute [rw] service
|
31
31
|
# @return [::Google::Cloud::Run::V2::Service]
|
32
32
|
# Required. The Service instance to create.
|
33
33
|
# @!attribute [rw] service_id
|
34
34
|
# @return [::String]
|
35
35
|
# Required. The unique identifier for the Service. It must begin with letter,
|
36
|
-
# and
|
36
|
+
# and cannot end with hyphen; must contain fewer than 50 characters.
|
37
37
|
# The name of the service becomes \\{parent}/services/\\{service_id}.
|
38
38
|
# @!attribute [rw] validate_only
|
39
39
|
# @return [::Boolean]
|
@@ -66,8 +66,9 @@ module Google
|
|
66
66
|
# @!attribute [rw] parent
|
67
67
|
# @return [::String]
|
68
68
|
# Required. The location and project to list resources on.
|
69
|
-
# Location must be a valid GCP region, and
|
70
|
-
# Format: projects/\\{project}/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.
|
71
72
|
# @!attribute [rw] page_size
|
72
73
|
# @return [::Integer]
|
73
74
|
# Maximum number of Services to return in this call.
|
@@ -100,7 +101,8 @@ module Google
|
|
100
101
|
# @!attribute [rw] name
|
101
102
|
# @return [::String]
|
102
103
|
# Required. The full name of the Service.
|
103
|
-
# Format: projects/\\{project}/locations/\\{location}/services/\\{service}
|
104
|
+
# Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
|
105
|
+
# \\{project} can be project id or number.
|
104
106
|
class GetServiceRequest
|
105
107
|
include ::Google::Protobuf::MessageExts
|
106
108
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -110,7 +112,8 @@ module Google
|
|
110
112
|
# @!attribute [rw] name
|
111
113
|
# @return [::String]
|
112
114
|
# Required. The full name of the Service.
|
113
|
-
# Format: projects/\\{project}/locations/\\{location}/services/\\{service}
|
115
|
+
# Format: projects/\\{project}/locations/\\{location}/services/\\{service}, where
|
116
|
+
# \\{project} can be project id or number.
|
114
117
|
# @!attribute [rw] validate_only
|
115
118
|
# @return [::Boolean]
|
116
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.
|
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-
|
11
|
+
date: 2022-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -206,6 +206,21 @@ files:
|
|
206
206
|
- lib/google-cloud-run-v2.rb
|
207
207
|
- lib/google/cloud/run/v2.rb
|
208
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
|
209
224
|
- lib/google/cloud/run/v2/k8s.min_pb.rb
|
210
225
|
- lib/google/cloud/run/v2/revision_pb.rb
|
211
226
|
- lib/google/cloud/run/v2/revision_services_pb.rb
|
@@ -222,6 +237,13 @@ files:
|
|
222
237
|
- lib/google/cloud/run/v2/services/credentials.rb
|
223
238
|
- lib/google/cloud/run/v2/services/operations.rb
|
224
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
|
225
247
|
- lib/google/cloud/run/v2/traffic_target_pb.rb
|
226
248
|
- lib/google/cloud/run/v2/vendor_settings_pb.rb
|
227
249
|
- lib/google/cloud/run/v2/version.rb
|
@@ -231,10 +253,15 @@ files:
|
|
231
253
|
- proto_docs/google/api/resource.rb
|
232
254
|
- proto_docs/google/api/routing.rb
|
233
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
|
234
259
|
- proto_docs/google/cloud/run/v2/k8s.min.rb
|
235
260
|
- proto_docs/google/cloud/run/v2/revision.rb
|
236
261
|
- proto_docs/google/cloud/run/v2/revision_template.rb
|
237
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
|
238
265
|
- proto_docs/google/cloud/run/v2/traffic_target.rb
|
239
266
|
- proto_docs/google/cloud/run/v2/vendor_settings.rb
|
240
267
|
- proto_docs/google/iam/v1/iam_policy.rb
|