google-cloud-run-v2 0.4.0 → 0.6.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.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +6 -6
- data/README.md +4 -4
- data/lib/google/cloud/run/v2/condition_pb.rb +1 -0
- data/lib/google/cloud/run/v2/execution_pb.rb +79 -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 +778 -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 +105 -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 +778 -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_pb.rb +2 -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/revisions/operations.rb +8 -0
- data/lib/google/cloud/run/v2/revisions.rb +1 -1
- 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/services/operations.rb +8 -0
- data/lib/google/cloud/run/v2/services.rb +1 -1
- data/lib/google/cloud/run/v2/task_pb.rb +82 -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/vendor_settings_pb.rb +6 -0
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2.rb +6 -3
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +3 -3
- data/proto_docs/google/cloud/run/v2/condition.rb +4 -0
- data/proto_docs/google/cloud/run/v2/execution.rb +233 -0
- data/proto_docs/google/cloud/run/v2/execution_template.rb +87 -0
- data/proto_docs/google/cloud/run/v2/job.rb +316 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +42 -15
- data/proto_docs/google/cloud/run/v2/revision.rb +19 -13
- data/proto_docs/google/cloud/run/v2/revision_template.rb +10 -0
- data/proto_docs/google/cloud/run/v2/service.rb +52 -39
- data/proto_docs/google/cloud/run/v2/task.rb +232 -0
- data/proto_docs/google/cloud/run/v2/task_template.rb +66 -0
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +14 -1
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +35 -7
@@ -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
|
70
|
-
# Format: projects/\\{project}/locations/\\{location}
|
69
|
+
# Location must be a valid Google Cloud region, and cannot be the "-"
|
70
|
+
# wildcard. Format: projects/\\{project}/locations/\\{location}, where \\{project}
|
71
|
+
# can be 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
|
@@ -143,8 +146,9 @@ module Google
|
|
143
146
|
# 512-character limit.
|
144
147
|
# @!attribute [r] uid
|
145
148
|
# @return [::String]
|
146
|
-
# Output only. Server assigned unique identifier for the trigger. The value
|
147
|
-
# string and guaranteed to remain unchanged until the resource is
|
149
|
+
# Output only. Server assigned unique identifier for the trigger. The value
|
150
|
+
# is a UUID4 string and guaranteed to remain unchanged until the resource is
|
151
|
+
# deleted.
|
148
152
|
# @!attribute [r] generation
|
149
153
|
# @return [::Integer]
|
150
154
|
# Output only. A number that monotonically increases every time the user
|
@@ -160,16 +164,24 @@ module Google
|
|
160
164
|
# environment, state, etc. For more information, visit
|
161
165
|
# https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
162
166
|
# https://cloud.google.com/run/docs/configuring/labels
|
163
|
-
#
|
164
|
-
#
|
165
|
-
#
|
167
|
+
#
|
168
|
+
# <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
|
169
|
+
# `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
|
170
|
+
# namespaces, and they will be rejected. All system labels in v1 now have a
|
171
|
+
# corresponding field in v2 Service.
|
166
172
|
# @!attribute [rw] annotations
|
167
173
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
168
174
|
# Unstructured key value map that may be set by external tools to store and
|
169
175
|
# arbitrary metadata. They are not queryable and should be preserved
|
170
|
-
# when modifying objects.
|
171
|
-
#
|
172
|
-
#
|
176
|
+
# when modifying objects.
|
177
|
+
#
|
178
|
+
# <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
|
179
|
+
# `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
|
180
|
+
# namespaces, and they will be rejected. All system annotations in v1 now
|
181
|
+
# have a corresponding field in v2 Service.
|
182
|
+
#
|
183
|
+
# <p>This field follows Kubernetes
|
184
|
+
# annotations' namespacing, limits, and rules. More info:
|
173
185
|
# https://kubernetes.io/docs/user-guide/annotations
|
174
186
|
# @!attribute [r] create_time
|
175
187
|
# @return [::Google::Protobuf::Timestamp]
|
@@ -220,44 +232,45 @@ module Google
|
|
220
232
|
# 100% traffic to the latest `Ready` Revision.
|
221
233
|
# @!attribute [r] observed_generation
|
222
234
|
# @return [::Integer]
|
223
|
-
# Output only. The generation of this Service currently serving traffic. See
|
224
|
-
# `reconciling` for additional information on reconciliation
|
225
|
-
# Run.
|
226
|
-
#
|
227
|
-
#
|
235
|
+
# Output only. The generation of this Service currently serving traffic. See
|
236
|
+
# comments in `reconciling` for additional information on reconciliation
|
237
|
+
# process in Cloud Run. Please note that unlike v1, this is an int64 value.
|
238
|
+
# As with most Google APIs, its JSON representation will be a `string`
|
239
|
+
# instead of an `integer`.
|
228
240
|
# @!attribute [r] terminal_condition
|
229
241
|
# @return [::Google::Cloud::Run::V2::Condition]
|
230
|
-
# Output only. The Condition of this Service, containing its readiness
|
231
|
-
# detailed error information in case it did not reach a serving
|
232
|
-
# comments in `reconciling` for additional information on
|
233
|
-
# process in Cloud Run.
|
242
|
+
# Output only. The Condition of this Service, containing its readiness
|
243
|
+
# status, and detailed error information in case it did not reach a serving
|
244
|
+
# state. See comments in `reconciling` for additional information on
|
245
|
+
# reconciliation process in Cloud Run.
|
234
246
|
# @!attribute [r] conditions
|
235
247
|
# @return [::Array<::Google::Cloud::Run::V2::Condition>]
|
236
|
-
# Output only. The Conditions of all other associated sub-resources. They
|
237
|
-
# additional diagnostics information in case the Service does not
|
238
|
-
# Serving state. See comments in `reconciling` for additional
|
239
|
-
# reconciliation process in Cloud Run.
|
248
|
+
# Output only. The Conditions of all other associated sub-resources. They
|
249
|
+
# contain additional diagnostics information in case the Service does not
|
250
|
+
# reach its Serving state. See comments in `reconciling` for additional
|
251
|
+
# information on reconciliation process in Cloud Run.
|
240
252
|
# @!attribute [r] latest_ready_revision
|
241
253
|
# @return [::String]
|
242
|
-
# Output only. Name of the latest revision that is serving traffic. See
|
243
|
-
# `reconciling` for additional information on reconciliation
|
244
|
-
# Run.
|
254
|
+
# Output only. Name of the latest revision that is serving traffic. See
|
255
|
+
# comments in `reconciling` for additional information on reconciliation
|
256
|
+
# process in Cloud Run.
|
245
257
|
# @!attribute [r] latest_created_revision
|
246
258
|
# @return [::String]
|
247
|
-
# Output only. Name of the last created revision. See comments in
|
248
|
-
# additional information on reconciliation process in Cloud
|
259
|
+
# Output only. Name of the last created revision. See comments in
|
260
|
+
# `reconciling` for additional information on reconciliation process in Cloud
|
261
|
+
# Run.
|
249
262
|
# @!attribute [r] traffic_statuses
|
250
263
|
# @return [::Array<::Google::Cloud::Run::V2::TrafficTargetStatus>]
|
251
|
-
# Output only. Detailed status information for corresponding traffic targets.
|
252
|
-
# in `reconciling` for additional information on reconciliation
|
253
|
-
# Cloud Run.
|
264
|
+
# Output only. Detailed status information for corresponding traffic targets.
|
265
|
+
# See comments in `reconciling` for additional information on reconciliation
|
266
|
+
# process in Cloud Run.
|
254
267
|
# @!attribute [r] uri
|
255
268
|
# @return [::String]
|
256
269
|
# Output only. The main URI in which this Service is serving traffic.
|
257
270
|
# @!attribute [r] reconciling
|
258
271
|
# @return [::Boolean]
|
259
|
-
# Output only. Returns true if the Service is currently being acted upon by
|
260
|
-
# bring it into the desired state.
|
272
|
+
# Output only. Returns true if the Service is currently being acted upon by
|
273
|
+
# the system to bring it into the desired state.
|
261
274
|
#
|
262
275
|
# When a new Service is created, or an existing one is updated, Cloud Run
|
263
276
|
# will asynchronously perform all necessary steps to bring the Service to the
|
@@ -0,0 +1,232 @@
|
|
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
|
77
|
+
# UUID4 string and guaranteed to remain unchanged until the resource is
|
78
|
+
# deleted.
|
79
|
+
# @!attribute [r] generation
|
80
|
+
# @return [::Integer]
|
81
|
+
# Output only. A number that monotonically increases every time the user
|
82
|
+
# modifies the desired state.
|
83
|
+
# @!attribute [rw] labels
|
84
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
85
|
+
# KRM-style labels for the resource.
|
86
|
+
# User-provided labels are shared with Google's billing system, so they can
|
87
|
+
# be used to filter, or break down billing charges by team, component,
|
88
|
+
# environment, state, etc. For more information, visit
|
89
|
+
# https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
90
|
+
# https://cloud.google.com/run/docs/configuring/labels
|
91
|
+
# @!attribute [rw] annotations
|
92
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
93
|
+
# KRM-style annotations for the resource.
|
94
|
+
# @!attribute [r] create_time
|
95
|
+
# @return [::Google::Protobuf::Timestamp]
|
96
|
+
# Output only. Represents time when the task was created by the job
|
97
|
+
# controller. It is not guaranteed to be set in happens-before order across
|
98
|
+
# separate operations.
|
99
|
+
# @!attribute [r] start_time
|
100
|
+
# @return [::Google::Protobuf::Timestamp]
|
101
|
+
# Output only. Represents time when the task started to run.
|
102
|
+
# It is not guaranteed to be set in happens-before order across separate
|
103
|
+
# operations.
|
104
|
+
# @!attribute [r] completion_time
|
105
|
+
# @return [::Google::Protobuf::Timestamp]
|
106
|
+
# Output only. Represents time when the Task was completed. It is not
|
107
|
+
# guaranteed to be set in happens-before order across separate operations.
|
108
|
+
# @!attribute [r] update_time
|
109
|
+
# @return [::Google::Protobuf::Timestamp]
|
110
|
+
# Output only. The last-modified time.
|
111
|
+
# @!attribute [r] delete_time
|
112
|
+
# @return [::Google::Protobuf::Timestamp]
|
113
|
+
# Output only. For a deleted resource, the deletion time. It is only
|
114
|
+
# populated as a response to a Delete request.
|
115
|
+
# @!attribute [r] expire_time
|
116
|
+
# @return [::Google::Protobuf::Timestamp]
|
117
|
+
# Output only. For a deleted resource, the time after which it will be
|
118
|
+
# permamently deleted. It is only populated as a response to a Delete
|
119
|
+
# request.
|
120
|
+
# @!attribute [r] job
|
121
|
+
# @return [::String]
|
122
|
+
# Output only. The name of the parent Job.
|
123
|
+
# @!attribute [r] execution
|
124
|
+
# @return [::String]
|
125
|
+
# Output only. The name of the parent Execution.
|
126
|
+
# @!attribute [rw] containers
|
127
|
+
# @return [::Array<::Google::Cloud::Run::V2::Container>]
|
128
|
+
# Holds the single container that defines the unit of execution for this
|
129
|
+
# task.
|
130
|
+
# @!attribute [rw] volumes
|
131
|
+
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
132
|
+
# A list of Volumes to make available to containers.
|
133
|
+
# @!attribute [rw] max_retries
|
134
|
+
# @return [::Integer]
|
135
|
+
# Number of retries allowed per Task, before marking this Task failed.
|
136
|
+
# @!attribute [rw] timeout
|
137
|
+
# @return [::Google::Protobuf::Duration]
|
138
|
+
# Max allowed time duration the Task may be active before the system will
|
139
|
+
# actively try to mark it failed and kill associated containers. This applies
|
140
|
+
# per attempt of a task, meaning each retry can run for the full timeout.
|
141
|
+
# @!attribute [rw] service_account
|
142
|
+
# @return [::String]
|
143
|
+
# Email address of the IAM service account associated with the Task of a
|
144
|
+
# Job. The service account represents the identity of the
|
145
|
+
# running task, and determines what permissions the task has. If
|
146
|
+
# not provided, the task will use the project's default service account.
|
147
|
+
# @!attribute [rw] execution_environment
|
148
|
+
# @return [::Google::Cloud::Run::V2::ExecutionEnvironment]
|
149
|
+
# The execution environment being used to host this Task.
|
150
|
+
# @!attribute [r] reconciling
|
151
|
+
# @return [::Boolean]
|
152
|
+
# Output only. Indicates whether the resource's reconciliation is still in
|
153
|
+
# progress. See comments in `Job.reconciling` for additional information on
|
154
|
+
# reconciliation process in Cloud Run.
|
155
|
+
# @!attribute [r] conditions
|
156
|
+
# @return [::Array<::Google::Cloud::Run::V2::Condition>]
|
157
|
+
# Output only. The Condition of this Task, containing its readiness status,
|
158
|
+
# and detailed error information in case it did not reach the desired state.
|
159
|
+
# @!attribute [r] observed_generation
|
160
|
+
# @return [::Integer]
|
161
|
+
# Output only. The generation of this Task. See comments in `Job.reconciling`
|
162
|
+
# for additional information on reconciliation process in Cloud Run.
|
163
|
+
# @!attribute [r] index
|
164
|
+
# @return [::Integer]
|
165
|
+
# Output only. Index of the Task, unique per execution, and beginning at 0.
|
166
|
+
# @!attribute [r] retried
|
167
|
+
# @return [::Integer]
|
168
|
+
# Output only. The number of times this Task was retried.
|
169
|
+
# Tasks are retried when they fail up to the maxRetries limit.
|
170
|
+
# @!attribute [r] last_attempt_result
|
171
|
+
# @return [::Google::Cloud::Run::V2::TaskAttemptResult]
|
172
|
+
# Output only. Result of the last attempt of this Task.
|
173
|
+
# @!attribute [r] encryption_key
|
174
|
+
# @return [::String]
|
175
|
+
# Output only. A reference to a customer managed encryption key (CMEK) to use
|
176
|
+
# to encrypt this container image. For more information, go to
|
177
|
+
# https://cloud.google.com/run/docs/securing/using-cmek
|
178
|
+
# @!attribute [r] vpc_access
|
179
|
+
# @return [::Google::Cloud::Run::V2::VpcAccess]
|
180
|
+
# Output only. VPC Access configuration to use for this Task. For more
|
181
|
+
# information, visit
|
182
|
+
# https://cloud.google.com/run/docs/configuring/connecting-vpc.
|
183
|
+
# @!attribute [r] log_uri
|
184
|
+
# @return [::String]
|
185
|
+
# Output only. URI where logs for this execution can be found in Cloud
|
186
|
+
# Console.
|
187
|
+
# @!attribute [r] etag
|
188
|
+
# @return [::String]
|
189
|
+
# Output only. A system-generated fingerprint for this version of the
|
190
|
+
# resource. May be used to detect modification conflict during updates.
|
191
|
+
class Task
|
192
|
+
include ::Google::Protobuf::MessageExts
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
194
|
+
|
195
|
+
# @!attribute [rw] key
|
196
|
+
# @return [::String]
|
197
|
+
# @!attribute [rw] value
|
198
|
+
# @return [::String]
|
199
|
+
class LabelsEntry
|
200
|
+
include ::Google::Protobuf::MessageExts
|
201
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
202
|
+
end
|
203
|
+
|
204
|
+
# @!attribute [rw] key
|
205
|
+
# @return [::String]
|
206
|
+
# @!attribute [rw] value
|
207
|
+
# @return [::String]
|
208
|
+
class AnnotationsEntry
|
209
|
+
include ::Google::Protobuf::MessageExts
|
210
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# Result of a task attempt.
|
215
|
+
# @!attribute [r] status
|
216
|
+
# @return [::Google::Rpc::Status]
|
217
|
+
# Output only. The status of this attempt.
|
218
|
+
# If the status code is OK, then the attempt succeeded.
|
219
|
+
# @!attribute [r] exit_code
|
220
|
+
# @return [::Integer]
|
221
|
+
# Output only. The exit code of this attempt.
|
222
|
+
# This may be unset if the container was unable to exit cleanly with a code
|
223
|
+
# due to some other failure.
|
224
|
+
# See status field for possible failure details.
|
225
|
+
class TaskAttemptResult
|
226
|
+
include ::Google::Protobuf::MessageExts
|
227
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
228
|
+
end
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
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.
|
@@ -103,6 +104,18 @@ module Google
|
|
103
104
|
# Uses Second Generation environment.
|
104
105
|
EXECUTION_ENVIRONMENT_GEN2 = 2
|
105
106
|
end
|
107
|
+
|
108
|
+
# Specifies behavior if an encryption key used by a resource is revoked.
|
109
|
+
module EncryptionKeyRevocationAction
|
110
|
+
# Unspecified
|
111
|
+
ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED = 0
|
112
|
+
|
113
|
+
# Prevents the creation of new instances.
|
114
|
+
PREVENT_NEW = 1
|
115
|
+
|
116
|
+
# Shuts down existing instances, and prevents creation of new ones.
|
117
|
+
SHUTDOWN = 2
|
118
|
+
end
|
106
119
|
end
|
107
120
|
end
|
108
121
|
end
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
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.6.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:
|
11
|
+
date: 2023-01-27 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:
|
19
|
+
version: 0.16.0
|
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:
|
29
|
+
version: 0.16.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '0.
|
53
|
+
version: '0.3'
|
54
54
|
- - "<"
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: 2.a
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: '0.
|
63
|
+
version: '0.3'
|
64
64
|
- - "<"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 2.a
|
@@ -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,19 +237,32 @@ 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
|
228
250
|
- proto_docs/README.md
|
251
|
+
- proto_docs/google/api/client.rb
|
229
252
|
- proto_docs/google/api/field_behavior.rb
|
230
253
|
- proto_docs/google/api/launch_stage.rb
|
231
254
|
- proto_docs/google/api/resource.rb
|
232
255
|
- proto_docs/google/api/routing.rb
|
233
256
|
- proto_docs/google/cloud/run/v2/condition.rb
|
257
|
+
- proto_docs/google/cloud/run/v2/execution.rb
|
258
|
+
- proto_docs/google/cloud/run/v2/execution_template.rb
|
259
|
+
- proto_docs/google/cloud/run/v2/job.rb
|
234
260
|
- proto_docs/google/cloud/run/v2/k8s.min.rb
|
235
261
|
- proto_docs/google/cloud/run/v2/revision.rb
|
236
262
|
- proto_docs/google/cloud/run/v2/revision_template.rb
|
237
263
|
- proto_docs/google/cloud/run/v2/service.rb
|
264
|
+
- proto_docs/google/cloud/run/v2/task.rb
|
265
|
+
- proto_docs/google/cloud/run/v2/task_template.rb
|
238
266
|
- proto_docs/google/cloud/run/v2/traffic_target.rb
|
239
267
|
- proto_docs/google/cloud/run/v2/vendor_settings.rb
|
240
268
|
- proto_docs/google/iam/v1/iam_policy.rb
|
@@ -267,7 +295,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
295
|
- !ruby/object:Gem::Version
|
268
296
|
version: '0'
|
269
297
|
requirements: []
|
270
|
-
rubygems_version: 3.
|
298
|
+
rubygems_version: 3.4.2
|
271
299
|
signing_key:
|
272
300
|
specification_version: 4
|
273
301
|
summary: API Client library for the Cloud Run V2 API
|