google-cloud-run-v2 0.28.1 → 0.29.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/README.md +1 -1
- data/lib/google/cloud/run/v2/build_pb.rb +4 -25
- data/lib/google/cloud/run/v2/builds/client.rb +11 -1
- data/lib/google/cloud/run/v2/builds/rest/client.rb +11 -1
- data/lib/google/cloud/run/v2/condition_pb.rb +3 -25
- data/lib/google/cloud/run/v2/container_status_pb.rb +21 -0
- data/lib/google/cloud/run/v2/execution_pb.rb +2 -26
- data/lib/google/cloud/run/v2/execution_template_pb.rb +2 -24
- data/lib/google/cloud/run/v2/executions/client.rb +2 -0
- data/lib/google/cloud/run/v2/executions/operations.rb +2 -0
- data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/instance_pb.rb +42 -0
- data/lib/google/cloud/run/v2/instance_services_pb.rb +55 -0
- data/lib/google/cloud/run/v2/instance_split_pb.rb +2 -23
- data/lib/google/cloud/run/v2/instances/client.rb +1059 -0
- data/lib/google/cloud/run/v2/instances/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/instances/operations.rb +851 -0
- data/lib/google/cloud/run/v2/instances/paths.rb +178 -0
- data/lib/google/cloud/run/v2/instances/rest/client.rb +962 -0
- data/lib/google/cloud/run/v2/instances/rest/operations.rb +1095 -0
- data/lib/google/cloud/run/v2/instances/rest/service_stub.rb +450 -0
- data/lib/google/cloud/run/v2/instances/rest.rb +53 -0
- data/lib/google/cloud/run/v2/instances.rb +56 -0
- data/lib/google/cloud/run/v2/job_pb.rb +3 -30
- data/lib/google/cloud/run/v2/jobs/client.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/operations.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +5 -24
- data/lib/google/cloud/run/v2/rest.rb +1 -0
- data/lib/google/cloud/run/v2/revision_pb.rb +2 -29
- data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -26
- data/lib/google/cloud/run/v2/revisions/client.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/operations.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/service_pb.rb +4 -30
- data/lib/google/cloud/run/v2/services/client.rb +2 -0
- data/lib/google/cloud/run/v2/services/operations.rb +2 -0
- data/lib/google/cloud/run/v2/services/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/services/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2/status_pb.rb +2 -23
- data/lib/google/cloud/run/v2/task_pb.rb +2 -29
- data/lib/google/cloud/run/v2/task_template_pb.rb +2 -26
- data/lib/google/cloud/run/v2/tasks/client.rb +2 -0
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/traffic_target_pb.rb +2 -23
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -24
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2/worker_pool_pb.rb +3 -30
- data/lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb +3 -27
- data/lib/google/cloud/run/v2/worker_pools/client.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/operations.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/rest/operations.rb +2 -0
- data/lib/google/cloud/run/v2.rb +1 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/api/routing.rb +7 -3
- data/proto_docs/google/cloud/run/v2/build.rb +11 -0
- data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
- data/proto_docs/google/cloud/run/v2/container_status.rb +42 -0
- data/proto_docs/google/cloud/run/v2/instance.rb +328 -0
- data/proto_docs/google/cloud/run/v2/job.rb +2 -2
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +37 -2
- data/proto_docs/google/cloud/run/v2/service.rb +32 -7
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +5 -0
- data/proto_docs/google/cloud/run/v2/worker_pool.rb +23 -22
- data/proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb +3 -0
- metadata +18 -4
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 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
|
+
# @!attribute [rw] parent
|
|
25
|
+
# @return [::String]
|
|
26
|
+
# @!attribute [rw] instance
|
|
27
|
+
# @return [::Google::Cloud::Run::V2::Instance]
|
|
28
|
+
# @!attribute [rw] instance_id
|
|
29
|
+
# @return [::String]
|
|
30
|
+
# Required. The unique identifier for the Instance. It must begin with
|
|
31
|
+
# letter, and cannot end with hyphen; must contain fewer than 50 characters.
|
|
32
|
+
# The name of the instance becomes \\{parent}/instances/\\{instance_id}.
|
|
33
|
+
# @!attribute [rw] validate_only
|
|
34
|
+
# @return [::Boolean]
|
|
35
|
+
# Optional. Indicates that the request should be validated and default values
|
|
36
|
+
# populated, without persisting the request or creating any resources.
|
|
37
|
+
class CreateInstanceRequest
|
|
38
|
+
include ::Google::Protobuf::MessageExts
|
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @!attribute [rw] name
|
|
43
|
+
# @return [::String]
|
|
44
|
+
class GetInstanceRequest
|
|
45
|
+
include ::Google::Protobuf::MessageExts
|
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# @!attribute [rw] name
|
|
50
|
+
# @return [::String]
|
|
51
|
+
# @!attribute [rw] validate_only
|
|
52
|
+
# @return [::Boolean]
|
|
53
|
+
# Optional. Indicates that the request should be validated without actually
|
|
54
|
+
# deleting any resources.
|
|
55
|
+
# @!attribute [rw] etag
|
|
56
|
+
# @return [::String]
|
|
57
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
58
|
+
# resource. May be used to detect modification conflict during updates.
|
|
59
|
+
class DeleteInstanceRequest
|
|
60
|
+
include ::Google::Protobuf::MessageExts
|
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Request message for retrieving a list of Instances.
|
|
65
|
+
# @!attribute [rw] parent
|
|
66
|
+
# @return [::String]
|
|
67
|
+
# Required. The location and project to list resources on.
|
|
68
|
+
# Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
|
|
69
|
+
# project id or number.
|
|
70
|
+
# @!attribute [rw] page_size
|
|
71
|
+
# @return [::Integer]
|
|
72
|
+
# Optional. Maximum number of Instances to return in this call.
|
|
73
|
+
# @!attribute [rw] page_token
|
|
74
|
+
# @return [::String]
|
|
75
|
+
# Optional. A page token received from a previous call to ListInstances.
|
|
76
|
+
# All other parameters must match.
|
|
77
|
+
# @!attribute [rw] show_deleted
|
|
78
|
+
# @return [::Boolean]
|
|
79
|
+
# Optional. If true, returns deleted (but unexpired) resources along with
|
|
80
|
+
# active ones.
|
|
81
|
+
class ListInstancesRequest
|
|
82
|
+
include ::Google::Protobuf::MessageExts
|
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Response message containing a list of Instances.
|
|
87
|
+
# @!attribute [rw] instances
|
|
88
|
+
# @return [::Array<::Google::Cloud::Run::V2::Instance>]
|
|
89
|
+
# The resulting list of Instances.
|
|
90
|
+
# @!attribute [rw] next_page_token
|
|
91
|
+
# @return [::String]
|
|
92
|
+
# A token indicating there are more items than page_size. Use it in the next
|
|
93
|
+
# ListInstances request to continue.
|
|
94
|
+
class ListInstancesResponse
|
|
95
|
+
include ::Google::Protobuf::MessageExts
|
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Request message for deleting an Instance.
|
|
100
|
+
# @!attribute [rw] name
|
|
101
|
+
# @return [::String]
|
|
102
|
+
# Required. The name of the Instance to stop.
|
|
103
|
+
# Format:
|
|
104
|
+
# `projects/{project}/locations/{location}/instances/{instance}`,
|
|
105
|
+
# where `{project}` can be project id or number.
|
|
106
|
+
# @!attribute [rw] validate_only
|
|
107
|
+
# @return [::Boolean]
|
|
108
|
+
# Optional. Indicates that the request should be validated without actually
|
|
109
|
+
# stopping any resources.
|
|
110
|
+
# @!attribute [rw] etag
|
|
111
|
+
# @return [::String]
|
|
112
|
+
# Optional. A system-generated fingerprint for this version of the resource.
|
|
113
|
+
# This may be used to detect modification conflict during updates.
|
|
114
|
+
class StopInstanceRequest
|
|
115
|
+
include ::Google::Protobuf::MessageExts
|
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Request message for starting an Instance.
|
|
120
|
+
# @!attribute [rw] name
|
|
121
|
+
# @return [::String]
|
|
122
|
+
# Required. The name of the Instance to stop.
|
|
123
|
+
# Format:
|
|
124
|
+
# `projects/{project}/locations/{location}/instances/{instance}`,
|
|
125
|
+
# where `{project}` can be project id or number.
|
|
126
|
+
# @!attribute [rw] validate_only
|
|
127
|
+
# @return [::Boolean]
|
|
128
|
+
# Optional. Indicates that the request should be validated without actually
|
|
129
|
+
# stopping any resources.
|
|
130
|
+
# @!attribute [rw] etag
|
|
131
|
+
# @return [::String]
|
|
132
|
+
# Optional. A system-generated fingerprint for this version of the resource.
|
|
133
|
+
# This may be used to detect modification conflict during updates.
|
|
134
|
+
class StartInstanceRequest
|
|
135
|
+
include ::Google::Protobuf::MessageExts
|
|
136
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# A Cloud Run Instance represents a single group of containers running in a
|
|
140
|
+
# region.
|
|
141
|
+
# @!attribute [rw] name
|
|
142
|
+
# @return [::String]
|
|
143
|
+
# The fully qualified name of this Instance. In CreateInstanceRequest, this
|
|
144
|
+
# field is ignored, and instead composed from CreateInstanceRequest.parent
|
|
145
|
+
# and CreateInstanceRequest.instance_id.
|
|
146
|
+
#
|
|
147
|
+
# Format:
|
|
148
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance_id}
|
|
149
|
+
# @!attribute [rw] description
|
|
150
|
+
# @return [::String]
|
|
151
|
+
# User-provided description of the Instance. This field currently has a
|
|
152
|
+
# 512-character limit.
|
|
153
|
+
# @!attribute [r] uid
|
|
154
|
+
# @return [::String]
|
|
155
|
+
# Output only. Server assigned unique identifier for the trigger. The value
|
|
156
|
+
# is a UUID4 string and guaranteed to remain unchanged until the resource is
|
|
157
|
+
# deleted.
|
|
158
|
+
# @!attribute [r] generation
|
|
159
|
+
# @return [::Integer]
|
|
160
|
+
# Output only. A number that monotonically increases every time the user
|
|
161
|
+
# modifies the desired state.
|
|
162
|
+
# Please note that unlike v1, this is an int64 value. As with most Google
|
|
163
|
+
# APIs, its JSON representation will be a `string` instead of an `integer`.
|
|
164
|
+
# @!attribute [rw] labels
|
|
165
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
166
|
+
# @!attribute [rw] annotations
|
|
167
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
168
|
+
# @!attribute [r] create_time
|
|
169
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
170
|
+
# Output only. The creation time.
|
|
171
|
+
# @!attribute [r] update_time
|
|
172
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
173
|
+
# Output only. The last-modified time.
|
|
174
|
+
# @!attribute [r] delete_time
|
|
175
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
176
|
+
# Output only. The deletion time.
|
|
177
|
+
# @!attribute [r] expire_time
|
|
178
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
179
|
+
# Output only. For a deleted resource, the time after which it will be
|
|
180
|
+
# permamently deleted.
|
|
181
|
+
# @!attribute [r] creator
|
|
182
|
+
# @return [::String]
|
|
183
|
+
# Output only. Email address of the authenticated creator.
|
|
184
|
+
# @!attribute [r] last_modifier
|
|
185
|
+
# @return [::String]
|
|
186
|
+
# Output only. Email address of the last authenticated modifier.
|
|
187
|
+
# @!attribute [rw] client
|
|
188
|
+
# @return [::String]
|
|
189
|
+
# Arbitrary identifier for the API client.
|
|
190
|
+
# @!attribute [rw] client_version
|
|
191
|
+
# @return [::String]
|
|
192
|
+
# Arbitrary version identifier for the API client.
|
|
193
|
+
# @!attribute [rw] launch_stage
|
|
194
|
+
# @return [::Google::Api::LaunchStage]
|
|
195
|
+
# The launch stage as defined by [Google Cloud Platform
|
|
196
|
+
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
|
197
|
+
# Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
|
|
198
|
+
# is assumed.
|
|
199
|
+
# Set the launch stage to a preview stage on input to allow use of preview
|
|
200
|
+
# features in that stage. On read (or output), describes whether the
|
|
201
|
+
# resource uses preview features.
|
|
202
|
+
# <p>
|
|
203
|
+
# For example, if ALPHA is provided as input, but only BETA and GA-level
|
|
204
|
+
# features are used, this field will be BETA on output.
|
|
205
|
+
# @!attribute [rw] binary_authorization
|
|
206
|
+
# @return [::Google::Cloud::Run::V2::BinaryAuthorization]
|
|
207
|
+
# Settings for the Binary Authorization feature.
|
|
208
|
+
# @!attribute [rw] vpc_access
|
|
209
|
+
# @return [::Google::Cloud::Run::V2::VpcAccess]
|
|
210
|
+
# Optional. VPC Access configuration to use for this Revision. For more
|
|
211
|
+
# information, visit
|
|
212
|
+
# https://cloud.google.com/run/docs/configuring/connecting-vpc.
|
|
213
|
+
# @!attribute [rw] service_account
|
|
214
|
+
# @return [::String]
|
|
215
|
+
# @!attribute [rw] containers
|
|
216
|
+
# @return [::Array<::Google::Cloud::Run::V2::Container>]
|
|
217
|
+
# Required. Holds the single container that defines the unit of execution for
|
|
218
|
+
# this Instance.
|
|
219
|
+
# @!attribute [rw] volumes
|
|
220
|
+
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
|
221
|
+
# A list of Volumes to make available to containers.
|
|
222
|
+
# @!attribute [rw] encryption_key
|
|
223
|
+
# @return [::String]
|
|
224
|
+
# A reference to a customer managed encryption key (CMEK) to use to encrypt
|
|
225
|
+
# this container image. For more information, go to
|
|
226
|
+
# https://cloud.google.com/run/docs/securing/using-cmek
|
|
227
|
+
# @!attribute [rw] encryption_key_revocation_action
|
|
228
|
+
# @return [::Google::Cloud::Run::V2::EncryptionKeyRevocationAction]
|
|
229
|
+
# The action to take if the encryption key is revoked.
|
|
230
|
+
# @!attribute [rw] encryption_key_shutdown_duration
|
|
231
|
+
# @return [::Google::Protobuf::Duration]
|
|
232
|
+
# If encryption_key_revocation_action is SHUTDOWN, the duration before
|
|
233
|
+
# shutting down all instances. The minimum increment is 1 hour.
|
|
234
|
+
# @!attribute [rw] node_selector
|
|
235
|
+
# @return [::Google::Cloud::Run::V2::NodeSelector]
|
|
236
|
+
# Optional. The node selector for the instance.
|
|
237
|
+
# @!attribute [rw] gpu_zonal_redundancy_disabled
|
|
238
|
+
# @return [::Boolean]
|
|
239
|
+
# Optional. True if GPU zonal redundancy is disabled on this instance.
|
|
240
|
+
# @!attribute [rw] ingress
|
|
241
|
+
# @return [::Google::Cloud::Run::V2::IngressTraffic]
|
|
242
|
+
# Optional. Provides the ingress settings for this Instance. On output,
|
|
243
|
+
# returns the currently observed ingress settings, or
|
|
244
|
+
# INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
|
|
245
|
+
# @!attribute [rw] invoker_iam_disabled
|
|
246
|
+
# @return [::Boolean]
|
|
247
|
+
# Optional. Disables IAM permission check for run.routes.invoke for callers
|
|
248
|
+
# of this Instance. For more information, visit
|
|
249
|
+
# https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
|
|
250
|
+
# @!attribute [rw] iap_enabled
|
|
251
|
+
# @return [::Boolean]
|
|
252
|
+
# Optional. IAP settings on the Instance.
|
|
253
|
+
# @!attribute [r] observed_generation
|
|
254
|
+
# @return [::Integer]
|
|
255
|
+
# Output only. The generation of this Instance currently serving traffic. See
|
|
256
|
+
# comments in `reconciling` for additional information on reconciliation
|
|
257
|
+
# process in Cloud Run. Please note that unlike v1, this is an int64 value.
|
|
258
|
+
# As with most Google APIs, its JSON representation will be a `string`
|
|
259
|
+
# instead of an `integer`.
|
|
260
|
+
# @!attribute [r] log_uri
|
|
261
|
+
# @return [::String]
|
|
262
|
+
# Output only. The Google Console URI to obtain logs for the Instance.
|
|
263
|
+
# @!attribute [r] terminal_condition
|
|
264
|
+
# @return [::Google::Cloud::Run::V2::Condition]
|
|
265
|
+
# Output only. The Condition of this Instance, containing its readiness
|
|
266
|
+
# status, and detailed error information in case it did not reach a serving
|
|
267
|
+
# state. See comments in `reconciling` for additional information on
|
|
268
|
+
# reconciliation process in Cloud Run.
|
|
269
|
+
# @!attribute [r] conditions
|
|
270
|
+
# @return [::Array<::Google::Cloud::Run::V2::Condition>]
|
|
271
|
+
# Output only. The Conditions of all other associated sub-resources. They
|
|
272
|
+
# contain additional diagnostics information in case the Instance does not
|
|
273
|
+
# reach its Serving state. See comments in `reconciling` for additional
|
|
274
|
+
# information on reconciliation process in Cloud Run.
|
|
275
|
+
# @!attribute [r] container_statuses
|
|
276
|
+
# @return [::Array<::Google::Cloud::Run::V2::ContainerStatus>]
|
|
277
|
+
# Output only. Status information for each of the specified containers. The
|
|
278
|
+
# status includes the resolved digest for specified images.
|
|
279
|
+
# @!attribute [r] satisfies_pzs
|
|
280
|
+
# @return [::Boolean]
|
|
281
|
+
# Output only. Reserved for future use.
|
|
282
|
+
# @!attribute [r] urls
|
|
283
|
+
# @return [::Array<::String>]
|
|
284
|
+
# Output only. All URLs serving traffic for this Instance.
|
|
285
|
+
# @!attribute [r] reconciling
|
|
286
|
+
# @return [::Boolean]
|
|
287
|
+
# Output only. Returns true if the Instance is currently being acted upon by
|
|
288
|
+
# the system to bring it into the desired state.
|
|
289
|
+
#
|
|
290
|
+
# When a new Instance is created, or an existing one is updated, Cloud Run
|
|
291
|
+
# will asynchronously perform all necessary steps to bring the Instance to
|
|
292
|
+
# the desired serving state. This process is called reconciliation. While
|
|
293
|
+
# reconciliation is in process, `observed_generation` will have a transient
|
|
294
|
+
# value that might mismatch the intended state.
|
|
295
|
+
# Once reconciliation is over (and this field is false), there are two
|
|
296
|
+
# possible outcomes: reconciliation succeeded and the serving state matches
|
|
297
|
+
# the Instance, or there was an error, and reconciliation failed. This state
|
|
298
|
+
# can be found in `terminal_condition.state`.
|
|
299
|
+
# @!attribute [rw] etag
|
|
300
|
+
# @return [::String]
|
|
301
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
302
|
+
# resource. May be used to detect modification conflict during updates.
|
|
303
|
+
class Instance
|
|
304
|
+
include ::Google::Protobuf::MessageExts
|
|
305
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
306
|
+
|
|
307
|
+
# @!attribute [rw] key
|
|
308
|
+
# @return [::String]
|
|
309
|
+
# @!attribute [rw] value
|
|
310
|
+
# @return [::String]
|
|
311
|
+
class LabelsEntry
|
|
312
|
+
include ::Google::Protobuf::MessageExts
|
|
313
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# @!attribute [rw] key
|
|
317
|
+
# @return [::String]
|
|
318
|
+
# @!attribute [rw] value
|
|
319
|
+
# @return [::String]
|
|
320
|
+
class AnnotationsEntry
|
|
321
|
+
include ::Google::Protobuf::MessageExts
|
|
322
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
end
|
|
@@ -335,9 +335,9 @@ module Google
|
|
|
335
335
|
# The sum of job name and token length must be fewer than 63 characters.
|
|
336
336
|
#
|
|
337
337
|
# Note: The following fields are mutually exclusive: `run_execution_token`, `start_execution_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
338
|
-
# @!attribute [
|
|
338
|
+
# @!attribute [rw] etag
|
|
339
339
|
# @return [::String]
|
|
340
|
-
#
|
|
340
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
341
341
|
# resource. May be used to detect modification conflict during updates.
|
|
342
342
|
class Job
|
|
343
343
|
include ::Google::Protobuf::MessageExts
|
|
@@ -34,6 +34,9 @@ module Google
|
|
|
34
34
|
# Required. Name of the container image in Dockerhub, Google Artifact
|
|
35
35
|
# Registry, or Google Container Registry. If the host is not provided,
|
|
36
36
|
# Dockerhub is assumed.
|
|
37
|
+
# @!attribute [rw] source_code
|
|
38
|
+
# @return [::Google::Cloud::Run::V2::SourceCode]
|
|
39
|
+
# Optional. Location of the source.
|
|
37
40
|
# @!attribute [rw] command
|
|
38
41
|
# @return [::Array<::String>]
|
|
39
42
|
# Entrypoint array. Not executed within a shell.
|
|
@@ -74,6 +77,9 @@ module Google
|
|
|
74
77
|
# All other probes are disabled if a startup probe is provided, until it
|
|
75
78
|
# succeeds. Container will not be added to service endpoints if the probe
|
|
76
79
|
# fails.
|
|
80
|
+
# @!attribute [rw] readiness_probe
|
|
81
|
+
# @return [::Google::Cloud::Run::V2::Probe]
|
|
82
|
+
# Readiness probe to be used for health checks.
|
|
77
83
|
# @!attribute [rw] depends_on
|
|
78
84
|
# @return [::Array<::String>]
|
|
79
85
|
# Names of the containers that must start before this container.
|
|
@@ -92,7 +98,7 @@ module Google
|
|
|
92
98
|
# ResourceRequirements describes the compute resource requirements.
|
|
93
99
|
# @!attribute [rw] limits
|
|
94
100
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
95
|
-
# Only `memory` and `
|
|
101
|
+
# Only `memory`, `cpu` and `nvidia.com/gpu` keys in the map are supported.
|
|
96
102
|
#
|
|
97
103
|
# <p>Notes:
|
|
98
104
|
# * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
|
|
@@ -100,6 +106,7 @@ module Google
|
|
|
100
106
|
# https://cloud.google.com/run/docs/configuring/cpu.
|
|
101
107
|
# * For supported 'memory' values and syntax, go to
|
|
102
108
|
# https://cloud.google.com/run/docs/configuring/memory-limits
|
|
109
|
+
# * The only supported 'nvidia.com/gpu' value is '1'.
|
|
103
110
|
# @!attribute [rw] cpu_idle
|
|
104
111
|
# @return [::Boolean]
|
|
105
112
|
# Determines whether CPU is only allocated during requests (true by default).
|
|
@@ -197,6 +204,10 @@ module Google
|
|
|
197
204
|
# otherwise be `/cloudsql`. All instances defined in the Volume will be
|
|
198
205
|
# available as `/cloudsql/[instance]`. For more information on Cloud SQL
|
|
199
206
|
# volumes, visit https://cloud.google.com/sql/docs/mysql/connect-run
|
|
207
|
+
# @!attribute [rw] sub_path
|
|
208
|
+
# @return [::String]
|
|
209
|
+
# Optional. Path within the volume from which the container's volume should
|
|
210
|
+
# be mounted. Defaults to "" (volume's root).
|
|
200
211
|
class VolumeMount
|
|
201
212
|
include ::Google::Protobuf::MessageExts
|
|
202
213
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -250,7 +261,7 @@ module Google
|
|
|
250
261
|
# @!attribute [rw] items
|
|
251
262
|
# @return [::Array<::Google::Cloud::Run::V2::VersionToPath>]
|
|
252
263
|
# If unspecified, the volume will expose a file whose name is the
|
|
253
|
-
# secret, relative to VolumeMount.mount_path.
|
|
264
|
+
# secret, relative to VolumeMount.mount_path + VolumeMount.sub_path.
|
|
254
265
|
# If specified, the key will be used as the version to fetch from Cloud
|
|
255
266
|
# Secret Manager and the path will be the name of the file exposed in the
|
|
256
267
|
# volume. When items are defined, they must specify a path and a version.
|
|
@@ -506,6 +517,30 @@ module Google
|
|
|
506
517
|
include ::Google::Protobuf::MessageExts
|
|
507
518
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
508
519
|
end
|
|
520
|
+
|
|
521
|
+
# Source type for the container.
|
|
522
|
+
# @!attribute [rw] cloud_storage_source
|
|
523
|
+
# @return [::Google::Cloud::Run::V2::SourceCode::CloudStorageSource]
|
|
524
|
+
# The source is a Cloud Storage bucket.
|
|
525
|
+
class SourceCode
|
|
526
|
+
include ::Google::Protobuf::MessageExts
|
|
527
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
528
|
+
|
|
529
|
+
# Cloud Storage source.
|
|
530
|
+
# @!attribute [rw] bucket
|
|
531
|
+
# @return [::String]
|
|
532
|
+
# Required. The Cloud Storage bucket name.
|
|
533
|
+
# @!attribute [rw] object
|
|
534
|
+
# @return [::String]
|
|
535
|
+
# Required. The Cloud Storage object name.
|
|
536
|
+
# @!attribute [rw] generation
|
|
537
|
+
# @return [::Integer]
|
|
538
|
+
# Optional. The Cloud Storage object generation.
|
|
539
|
+
class CloudStorageSource
|
|
540
|
+
include ::Google::Protobuf::MessageExts
|
|
541
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
542
|
+
end
|
|
543
|
+
end
|
|
509
544
|
end
|
|
510
545
|
end
|
|
511
546
|
end
|
|
@@ -95,6 +95,10 @@ module Google
|
|
|
95
95
|
# @return [::String]
|
|
96
96
|
# A token indicating there are more items than page_size. Use it in the next
|
|
97
97
|
# ListServices request to continue.
|
|
98
|
+
# @!attribute [r] unreachable
|
|
99
|
+
# @return [::Array<::String>]
|
|
100
|
+
# Output only. For global requests, returns the list of regions that could
|
|
101
|
+
# not be reached within the deadline.
|
|
98
102
|
class ListServicesResponse
|
|
99
103
|
include ::Google::Protobuf::MessageExts
|
|
100
104
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -137,9 +141,9 @@ module Google
|
|
|
137
141
|
# decisions such as rollout policy and team resource ownership.
|
|
138
142
|
# @!attribute [rw] name
|
|
139
143
|
# @return [::String]
|
|
140
|
-
# The fully qualified name of this Service. In
|
|
141
|
-
# field is ignored, and instead composed from
|
|
142
|
-
# CreateServiceRequest.service_id.
|
|
144
|
+
# Identifier. The fully qualified name of this Service. In
|
|
145
|
+
# CreateServiceRequest, this field is ignored, and instead composed from
|
|
146
|
+
# CreateServiceRequest.parent and CreateServiceRequest.service_id.
|
|
143
147
|
#
|
|
144
148
|
# Format:
|
|
145
149
|
# projects/\\{project}/locations/\\{location}/services/\\{service_id}
|
|
@@ -244,8 +248,7 @@ module Google
|
|
|
244
248
|
# @!attribute [rw] invoker_iam_disabled
|
|
245
249
|
# @return [::Boolean]
|
|
246
250
|
# Optional. Disables IAM permission check for run.routes.invoke for callers
|
|
247
|
-
# of this service.
|
|
248
|
-
# information, visit
|
|
251
|
+
# of this service. For more information, visit
|
|
249
252
|
# https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
|
|
250
253
|
# @!attribute [rw] default_uri_disabled
|
|
251
254
|
# @return [::Boolean]
|
|
@@ -253,6 +256,12 @@ module Google
|
|
|
253
256
|
# @!attribute [r] urls
|
|
254
257
|
# @return [::Array<::String>]
|
|
255
258
|
# Output only. All URLs serving traffic for this Service.
|
|
259
|
+
# @!attribute [rw] iap_enabled
|
|
260
|
+
# @return [::Boolean]
|
|
261
|
+
# Optional. IAP settings on the Service.
|
|
262
|
+
# @!attribute [rw] multi_region_settings
|
|
263
|
+
# @return [::Google::Cloud::Run::V2::Service::MultiRegionSettings]
|
|
264
|
+
# Optional. Settings for multi-region deployment.
|
|
256
265
|
# @!attribute [rw] custom_audiences
|
|
257
266
|
# @return [::Array<::String>]
|
|
258
267
|
# One or more custom audiences that you want this service to support. Specify
|
|
@@ -300,6 +309,10 @@ module Google
|
|
|
300
309
|
# @!attribute [r] satisfies_pzs
|
|
301
310
|
# @return [::Boolean]
|
|
302
311
|
# Output only. Reserved for future use.
|
|
312
|
+
# @!attribute [r] threat_detection_enabled
|
|
313
|
+
# @return [::Boolean]
|
|
314
|
+
# Output only. True if Cloud Run Threat Detection monitoring is enabled for
|
|
315
|
+
# the parent project of this Service.
|
|
303
316
|
# @!attribute [rw] build_config
|
|
304
317
|
# @return [::Google::Cloud::Run::V2::BuildConfig]
|
|
305
318
|
# Optional. Configuration for building a Cloud Run function.
|
|
@@ -327,14 +340,26 @@ module Google
|
|
|
327
340
|
# `latest_ready_revision` will have the state of the last serving revision,
|
|
328
341
|
# or empty for newly created Services. Additional information on the failure
|
|
329
342
|
# can be found in `terminal_condition` and `conditions`.
|
|
330
|
-
# @!attribute [
|
|
343
|
+
# @!attribute [rw] etag
|
|
331
344
|
# @return [::String]
|
|
332
|
-
#
|
|
345
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
333
346
|
# resource. May be used to detect modification conflict during updates.
|
|
334
347
|
class Service
|
|
335
348
|
include ::Google::Protobuf::MessageExts
|
|
336
349
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
337
350
|
|
|
351
|
+
# Settings for multi-region deployment.
|
|
352
|
+
# @!attribute [rw] regions
|
|
353
|
+
# @return [::Array<::String>]
|
|
354
|
+
# Required. List of regions to deploy to, including primary region.
|
|
355
|
+
# @!attribute [rw] multi_region_id
|
|
356
|
+
# @return [::String]
|
|
357
|
+
# Optional. System-generated unique id for the multi-region Service.
|
|
358
|
+
class MultiRegionSettings
|
|
359
|
+
include ::Google::Protobuf::MessageExts
|
|
360
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
361
|
+
end
|
|
362
|
+
|
|
338
363
|
# @!attribute [rw] key
|
|
339
364
|
# @return [::String]
|
|
340
365
|
# @!attribute [rw] value
|
|
@@ -140,6 +140,11 @@ module Google
|
|
|
140
140
|
# @!attribute [rw] scaling_mode
|
|
141
141
|
# @return [::Google::Cloud::Run::V2::ServiceScaling::ScalingMode]
|
|
142
142
|
# Optional. The scaling mode for the service.
|
|
143
|
+
# @!attribute [rw] max_instance_count
|
|
144
|
+
# @return [::Integer]
|
|
145
|
+
# Optional. total max instances for the service. This number of instances is
|
|
146
|
+
# divided among all revisions with specified traffic based on the percent
|
|
147
|
+
# of traffic they are receiving.
|
|
143
148
|
# @!attribute [rw] manual_instance_count
|
|
144
149
|
# @return [::Integer]
|
|
145
150
|
# Optional. total instance count for the service in manual scaling mode. This
|
|
@@ -253,7 +253,7 @@ module Google
|
|
|
253
253
|
# Optional. Specifies worker-pool-level scaling settings
|
|
254
254
|
# @!attribute [r] observed_generation
|
|
255
255
|
# @return [::Integer]
|
|
256
|
-
# Output only. The generation of this WorkerPool currently serving
|
|
256
|
+
# Output only. The generation of this WorkerPool currently serving workloads.
|
|
257
257
|
# See comments in `reconciling` for additional information on reconciliation
|
|
258
258
|
# process in Cloud Run. Please note that unlike v1, this is an int64 value.
|
|
259
259
|
# As with most Google APIs, its JSON representation will be a `string`
|
|
@@ -272,7 +272,7 @@ module Google
|
|
|
272
272
|
# information on reconciliation process in Cloud Run.
|
|
273
273
|
# @!attribute [r] latest_ready_revision
|
|
274
274
|
# @return [::String]
|
|
275
|
-
# Output only. Name of the latest revision that is serving
|
|
275
|
+
# Output only. Name of the latest revision that is serving workloads. See
|
|
276
276
|
# comments in `reconciling` for additional information on reconciliation
|
|
277
277
|
# process in Cloud Run.
|
|
278
278
|
# @!attribute [r] latest_created_revision
|
|
@@ -285,13 +285,14 @@ module Google
|
|
|
285
285
|
# Output only. Detailed status information for corresponding instance splits.
|
|
286
286
|
# See comments in `reconciling` for additional information on reconciliation
|
|
287
287
|
# process in Cloud Run.
|
|
288
|
+
# @!attribute [r] threat_detection_enabled
|
|
289
|
+
# @return [::Boolean]
|
|
290
|
+
# Output only. Indicates whether Cloud Run Threat Detection monitoring is
|
|
291
|
+
# enabled for the parent project of this worker pool.
|
|
288
292
|
# @!attribute [rw] custom_audiences
|
|
293
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
289
294
|
# @return [::Array<::String>]
|
|
290
|
-
#
|
|
291
|
-
# Specify each custom audience as the full URL in a string. The custom
|
|
292
|
-
# audiences are encoded in the token and used to authenticate requests. For
|
|
293
|
-
# more information, see
|
|
294
|
-
# https://cloud.google.com/run/docs/configuring/custom-audiences.
|
|
295
|
+
# Deprecated: Not supported, and ignored by Cloud Run.
|
|
295
296
|
# @!attribute [r] satisfies_pzs
|
|
296
297
|
# @return [::Boolean]
|
|
297
298
|
# Output only. Reserved for future use.
|
|
@@ -304,24 +305,24 @@ module Google
|
|
|
304
305
|
# will asynchronously perform all necessary steps to bring the WorkerPool to
|
|
305
306
|
# the desired serving state. This process is called reconciliation. While
|
|
306
307
|
# reconciliation is in process, `observed_generation`,
|
|
307
|
-
# `latest_ready_revison`, `
|
|
308
|
-
# values that might mismatch the intended state: Once
|
|
309
|
-
# (and this field is false), there are two possible
|
|
310
|
-
# succeeded and the serving state matches the
|
|
311
|
-
# error, and reconciliation failed. This state
|
|
312
|
-
# `terminal_condition.state`.
|
|
308
|
+
# `latest_ready_revison`, `instance_split_statuses`, and `uri` will have
|
|
309
|
+
# transient values that might mismatch the intended state: Once
|
|
310
|
+
# reconciliation is over (and this field is false), there are two possible
|
|
311
|
+
# outcomes: reconciliation succeeded and the serving state matches the
|
|
312
|
+
# WorkerPool, or there was an error, and reconciliation failed. This state
|
|
313
|
+
# can be found in `terminal_condition.state`.
|
|
313
314
|
#
|
|
314
|
-
# If reconciliation succeeded, the following fields will match:
|
|
315
|
-
# `
|
|
316
|
-
# `latest_ready_revision` and `latest_created_revision`.
|
|
315
|
+
# If reconciliation succeeded, the following fields will match:
|
|
316
|
+
# `instance_splits` and `instance_split_statuses`, `observed_generation` and
|
|
317
|
+
# `generation`, `latest_ready_revision` and `latest_created_revision`.
|
|
317
318
|
#
|
|
318
|
-
# If reconciliation failed, `
|
|
319
|
-
# `latest_ready_revision` will have the state of the last serving
|
|
320
|
-
# or empty for newly created WorkerPools. Additional information on
|
|
321
|
-
# failure can be found in `terminal_condition` and `conditions`.
|
|
322
|
-
# @!attribute [
|
|
319
|
+
# If reconciliation failed, `instance_split_statuses`, `observed_generation`,
|
|
320
|
+
# and `latest_ready_revision` will have the state of the last serving
|
|
321
|
+
# revision, or empty for newly created WorkerPools. Additional information on
|
|
322
|
+
# the failure can be found in `terminal_condition` and `conditions`.
|
|
323
|
+
# @!attribute [rw] etag
|
|
323
324
|
# @return [::String]
|
|
324
|
-
#
|
|
325
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
325
326
|
# resource. May be used to detect modification conflict during updates.
|
|
326
327
|
class WorkerPool
|
|
327
328
|
include ::Google::Protobuf::MessageExts
|
|
@@ -89,6 +89,9 @@ module Google
|
|
|
89
89
|
# @!attribute [rw] node_selector
|
|
90
90
|
# @return [::Google::Cloud::Run::V2::NodeSelector]
|
|
91
91
|
# Optional. The node selector for the revision template.
|
|
92
|
+
# @!attribute [rw] gpu_zonal_redundancy_disabled
|
|
93
|
+
# @return [::Boolean]
|
|
94
|
+
# Optional. True if GPU zonal redundancy is disabled on this worker pool.
|
|
92
95
|
class WorkerPoolRevisionTemplate
|
|
93
96
|
include ::Google::Protobuf::MessageExts
|
|
94
97
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|