google-cloud-run-v2 0.31.0 → 0.32.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/lib/google/cloud/run/v2/build_pb.rb +1 -1
- data/lib/google/cloud/run/v2/builds/client.rb +2 -2
- data/lib/google/cloud/run/v2/builds/credentials.rb +2 -1
- data/lib/google/cloud/run/v2/builds/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/condition_pb.rb +2 -1
- data/lib/google/cloud/run/v2/execution_pb.rb +1 -1
- data/lib/google/cloud/run/v2/execution_template_pb.rb +1 -1
- data/lib/google/cloud/run/v2/executions/credentials.rb +3 -1
- data/lib/google/cloud/run/v2/instance_pb.rb +7 -1
- data/lib/google/cloud/run/v2/instance_services_pb.rb +14 -2
- data/lib/google/cloud/run/v2/instances/client.rb +424 -12
- data/lib/google/cloud/run/v2/instances/credentials.rb +3 -1
- data/lib/google/cloud/run/v2/instances/rest/client.rb +393 -12
- data/lib/google/cloud/run/v2/instances/rest/service_stub.rb +247 -0
- data/lib/google/cloud/run/v2/job_pb.rb +1 -1
- data/lib/google/cloud/run/v2/jobs/client.rb +2 -1
- data/lib/google/cloud/run/v2/jobs/credentials.rb +3 -1
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -1
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +3 -1
- data/lib/google/cloud/run/v2/rest.rb +1 -0
- data/lib/google/cloud/run/v2/revision_pb.rb +2 -1
- data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -1
- data/lib/google/cloud/run/v2/revisions/credentials.rb +3 -1
- data/lib/google/cloud/run/v2/sandbox_pb.rb +25 -0
- data/lib/google/cloud/run/v2/service_pb.rb +1 -1
- data/lib/google/cloud/run/v2/services/client.rb +12 -2
- data/lib/google/cloud/run/v2/services/credentials.rb +3 -1
- data/lib/google/cloud/run/v2/services/rest/client.rb +12 -2
- data/lib/google/cloud/run/v2/source_upload/client.rb +505 -0
- data/lib/google/cloud/run/v2/source_upload/credentials.rb +48 -0
- data/lib/google/cloud/run/v2/source_upload/paths.rb +69 -0
- data/lib/google/cloud/run/v2/source_upload/rest/client.rb +452 -0
- data/lib/google/cloud/run/v2/source_upload/rest/service_stub.rb +143 -0
- data/lib/google/cloud/run/v2/source_upload/rest.rb +53 -0
- data/lib/google/cloud/run/v2/source_upload.rb +56 -0
- data/lib/google/cloud/run/v2/source_upload_pb.rb +29 -0
- data/lib/google/cloud/run/v2/source_upload_services_pb.rb +52 -0
- data/lib/google/cloud/run/v2/task_pb.rb +2 -1
- data/lib/google/cloud/run/v2/task_template_pb.rb +2 -1
- data/lib/google/cloud/run/v2/tasks/credentials.rb +3 -1
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +6 -1
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2/worker_pool_pb.rb +1 -1
- data/lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb +2 -1
- data/lib/google/cloud/run/v2/worker_pools/client.rb +2 -1
- data/lib/google/cloud/run/v2/worker_pools/credentials.rb +3 -1
- data/lib/google/cloud/run/v2/worker_pools/rest/client.rb +2 -1
- data/lib/google/cloud/run/v2.rb +1 -0
- data/proto_docs/google/cloud/run/v2/build.rb +2 -2
- data/proto_docs/google/cloud/run/v2/condition.rb +29 -3
- data/proto_docs/google/cloud/run/v2/execution.rb +7 -1
- data/proto_docs/google/cloud/run/v2/execution_template.rb +10 -0
- data/proto_docs/google/cloud/run/v2/instance.rb +74 -32
- data/proto_docs/google/cloud/run/v2/job.rb +9 -1
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +78 -16
- data/proto_docs/google/cloud/run/v2/revision.rb +17 -2
- data/proto_docs/google/cloud/run/v2/revision_template.rb +16 -1
- data/proto_docs/google/cloud/run/v2/sandbox.rb +67 -0
- data/proto_docs/google/cloud/run/v2/service.rb +18 -1
- data/proto_docs/google/cloud/run/v2/source_upload.rb +48 -0
- data/proto_docs/google/cloud/run/v2/task.rb +6 -0
- data/proto_docs/google/cloud/run/v2/task_template.rb +6 -0
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +80 -2
- data/proto_docs/google/cloud/run/v2/worker_pool.rb +2 -1
- data/proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb +9 -0
- metadata +13 -1
|
@@ -0,0 +1,48 @@
|
|
|
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
|
+
# The request message for the UploadSource method.
|
|
25
|
+
# @!attribute [rw] parent
|
|
26
|
+
# @return [::String]
|
|
27
|
+
# Required. The project and location in which the source archive should be
|
|
28
|
+
# uploaded to, specified in the format `projects/*/locations/*`.
|
|
29
|
+
# @!attribute [rw] service
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# The name of Cloud Run Service upload source archive will be used for.
|
|
32
|
+
class UploadSourceRequest
|
|
33
|
+
include ::Google::Protobuf::MessageExts
|
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# The response message for the UploadSource method.
|
|
38
|
+
# @!attribute [rw] cloud_storage_source
|
|
39
|
+
# @return [::Google::Cloud::Run::V2::SourceCode::CloudStorageSource]
|
|
40
|
+
# The Cloud Storage object path the source archive is uploaded to.
|
|
41
|
+
class UploadSourceResponse
|
|
42
|
+
include ::Google::Protobuf::MessageExts
|
|
43
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -135,6 +135,9 @@ module Google
|
|
|
135
135
|
# @return [::Array<::Google::Cloud::Run::V2::Container>]
|
|
136
136
|
# Holds the single container that defines the unit of execution for this
|
|
137
137
|
# task.
|
|
138
|
+
# @!attribute [rw] sandboxes
|
|
139
|
+
# @return [::Google::Cloud::Run::V2::SandboxConfiguration]
|
|
140
|
+
# Configuration for sandboxes.
|
|
138
141
|
# @!attribute [rw] volumes
|
|
139
142
|
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
|
140
143
|
# A list of Volumes to make available to containers.
|
|
@@ -202,6 +205,9 @@ module Google
|
|
|
202
205
|
# @return [::Boolean]
|
|
203
206
|
# Optional. Output only. True if GPU zonal redundancy is disabled on this
|
|
204
207
|
# task.
|
|
208
|
+
# @!attribute [rw] workload_identity_config
|
|
209
|
+
# @return [::Google::Cloud::Run::V2::WorkloadIdentityConfig]
|
|
210
|
+
# Optional. The Task's workload identity settings.
|
|
205
211
|
# @!attribute [r] etag
|
|
206
212
|
# @return [::String]
|
|
207
213
|
# Output only. A system-generated fingerprint for this version of the
|
|
@@ -27,6 +27,9 @@ module Google
|
|
|
27
27
|
# @return [::Array<::Google::Cloud::Run::V2::Container>]
|
|
28
28
|
# Holds the single container that defines the unit of execution for this
|
|
29
29
|
# task.
|
|
30
|
+
# @!attribute [rw] sandboxes
|
|
31
|
+
# @return [::Google::Cloud::Run::V2::SandboxConfiguration]
|
|
32
|
+
# Optional. Configuration for sandboxes.
|
|
30
33
|
# @!attribute [rw] volumes
|
|
31
34
|
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
|
32
35
|
# Optional. A list of Volumes to make available to containers.
|
|
@@ -65,6 +68,9 @@ module Google
|
|
|
65
68
|
# @!attribute [rw] gpu_zonal_redundancy_disabled
|
|
66
69
|
# @return [::Boolean]
|
|
67
70
|
# Optional. True if GPU zonal redundancy is disabled on this task template.
|
|
71
|
+
# @!attribute [rw] workload_identity_config
|
|
72
|
+
# @return [::Google::Cloud::Run::V2::WorkloadIdentityConfig]
|
|
73
|
+
# Optional. The Task's workload identity settings.
|
|
68
74
|
class TaskTemplate
|
|
69
75
|
include ::Google::Protobuf::MessageExts
|
|
70
76
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -113,6 +113,18 @@ module Google
|
|
|
113
113
|
# have. When unspecified, the field is set to the server default value of
|
|
114
114
|
# 100. For more information see
|
|
115
115
|
# https://cloud.google.com/run/docs/configuring/max-instances
|
|
116
|
+
# @!attribute [rw] cpu_utilization
|
|
117
|
+
# @return [::Float]
|
|
118
|
+
# Optional. Determines a threshold for CPU utilization before scaling begins.
|
|
119
|
+
# Accepted values are between `0.1` and `0.90` (inclusive) or `0.0` to
|
|
120
|
+
# disable CPU utilization as threshold for scaling. CPU and concurrency
|
|
121
|
+
# scaling cannot both be disabled.
|
|
122
|
+
# @!attribute [rw] concurrency_utilization
|
|
123
|
+
# @return [::Float]
|
|
124
|
+
# Optional. Determines a threshold for concurrency utilization before scaling
|
|
125
|
+
# begins. Accepted values are between `0.1` and `0.95` (inclusive) or `0.0`
|
|
126
|
+
# to disable concurrency utilization as threshold for scaling. CPU and
|
|
127
|
+
# concurrency scaling cannot both be disabled.
|
|
116
128
|
class RevisionScaling
|
|
117
129
|
include ::Google::Protobuf::MessageExts
|
|
118
130
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -130,6 +142,18 @@ module Google
|
|
|
130
142
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
131
143
|
end
|
|
132
144
|
|
|
145
|
+
# Configuration for Ambient Networking.
|
|
146
|
+
# @!attribute [rw] enabled
|
|
147
|
+
# @return [::Boolean]
|
|
148
|
+
# Optional. Whether ambient networking is enabled.
|
|
149
|
+
# @!attribute [rw] ambient_scope
|
|
150
|
+
# @return [::Google::Cloud::Run::V2::AmbientScope]
|
|
151
|
+
# The ambient networking scope of the instance.
|
|
152
|
+
class AmbientNetworking
|
|
153
|
+
include ::Google::Protobuf::MessageExts
|
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
155
|
+
end
|
|
156
|
+
|
|
133
157
|
# Scaling settings applied at the service level rather than
|
|
134
158
|
# at the revision level.
|
|
135
159
|
# @!attribute [rw] min_instance_count
|
|
@@ -213,8 +237,8 @@ module Google
|
|
|
213
237
|
# updates.
|
|
214
238
|
# @!attribute [rw] worker_pool
|
|
215
239
|
# @return [::String]
|
|
216
|
-
# Optional. Name of the Cloud Build
|
|
217
|
-
#
|
|
240
|
+
# Optional. Name of the Cloud Build private pool that should be used to build
|
|
241
|
+
# the Cloud Run function. The format of this field is
|
|
218
242
|
# `projects/{project}/locations/{region}/workerPools/{workerPool}` where
|
|
219
243
|
# `{project}` and `{region}` are the project id and region respectively where
|
|
220
244
|
# the worker pool is defined and `{workerPool}` is the short name of the
|
|
@@ -241,6 +265,36 @@ module Google
|
|
|
241
265
|
end
|
|
242
266
|
end
|
|
243
267
|
|
|
268
|
+
# Workload identity settings.
|
|
269
|
+
# @!attribute [rw] identity
|
|
270
|
+
# @return [::String]
|
|
271
|
+
# Optional. The Revision's SPIFFE workload identity. Enables provisioning of
|
|
272
|
+
# SPIFFE workload certificates.
|
|
273
|
+
# @!attribute [rw] identity_type
|
|
274
|
+
# @return [::Google::Cloud::Run::V2::IdentityType]
|
|
275
|
+
# Optional. The type of identity to use.
|
|
276
|
+
# @!attribute [rw] identity_certificate_enabled
|
|
277
|
+
# @return [::Boolean]
|
|
278
|
+
# Optional. Controls whether an instance receives a MWLID certificate.
|
|
279
|
+
# Corresponds to the intention of the original --[no-]identity-certificate
|
|
280
|
+
# flag.
|
|
281
|
+
class WorkloadIdentityConfig
|
|
282
|
+
include ::Google::Protobuf::MessageExts
|
|
283
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
# The ambient networking scopes of the instance.
|
|
287
|
+
module AmbientScope
|
|
288
|
+
# Unspecified.
|
|
289
|
+
AMBIENT_SCOPE_UNSPECIFIED = 0
|
|
290
|
+
|
|
291
|
+
# Regional ambient networking.
|
|
292
|
+
AMBIENT_SCOPE_REGIONAL = 1
|
|
293
|
+
|
|
294
|
+
# Global ambient networking.
|
|
295
|
+
AMBIENT_SCOPE_GLOBAL = 2
|
|
296
|
+
end
|
|
297
|
+
|
|
244
298
|
# Allowed ingress traffic for the Container.
|
|
245
299
|
module IngressTraffic
|
|
246
300
|
# Unspecified
|
|
@@ -282,6 +336,30 @@ module Google
|
|
|
282
336
|
# Shuts down existing instances, and prevents creation of new ones.
|
|
283
337
|
SHUTDOWN = 2
|
|
284
338
|
end
|
|
339
|
+
|
|
340
|
+
# Identity type.
|
|
341
|
+
module IdentityType
|
|
342
|
+
# Unspecified
|
|
343
|
+
IDENTITY_TYPE_UNSPECIFIED = 0
|
|
344
|
+
|
|
345
|
+
# Service account identity.
|
|
346
|
+
IDENTITY_TYPE_SERVICE_ACCOUNT = 1
|
|
347
|
+
|
|
348
|
+
# Agent identity.
|
|
349
|
+
IDENTITY_TYPE_AGENT_IDENTITY = 3
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Represents the functional type.
|
|
353
|
+
module FunctionalType
|
|
354
|
+
# Specifies that the functional type is unspecified.
|
|
355
|
+
FUNCTIONAL_TYPE_UNSPECIFIED = 0
|
|
356
|
+
|
|
357
|
+
# Represents an AGENT functional type.
|
|
358
|
+
FUNCTIONAL_TYPE_AGENT = 1
|
|
359
|
+
|
|
360
|
+
# Represents an MCP_SERVER functional type.
|
|
361
|
+
FUNCTIONAL_TYPE_MCP_SERVER = 2
|
|
362
|
+
end
|
|
285
363
|
end
|
|
286
364
|
end
|
|
287
365
|
end
|
|
@@ -33,10 +33,11 @@ module Google
|
|
|
33
33
|
# Required. The WorkerPool instance to create.
|
|
34
34
|
# @!attribute [rw] worker_pool_id
|
|
35
35
|
# @return [::String]
|
|
36
|
-
#
|
|
36
|
+
# Optional. The unique identifier for the WorkerPool. It must begin with
|
|
37
37
|
# letter, and cannot end with hyphen; must contain fewer than 50 characters.
|
|
38
38
|
# The name of the worker pool becomes
|
|
39
39
|
# `{parent}/workerPools/{worker_pool_id}`.
|
|
40
|
+
# If not provided, the server will generate a unique `worker_pool_id`.
|
|
40
41
|
# @!attribute [rw] validate_only
|
|
41
42
|
# @return [::Boolean]
|
|
42
43
|
# Optional. Indicates that the request should be validated and default values
|
|
@@ -68,6 +68,9 @@ module Google
|
|
|
68
68
|
# @return [::Array<::Google::Cloud::Run::V2::Container>]
|
|
69
69
|
# Holds list of the containers that defines the unit of execution for this
|
|
70
70
|
# Revision.
|
|
71
|
+
# @!attribute [rw] sandboxes
|
|
72
|
+
# @return [::Google::Cloud::Run::V2::SandboxConfiguration]
|
|
73
|
+
# Optional. Configuration for sandboxes.
|
|
71
74
|
# @!attribute [rw] volumes
|
|
72
75
|
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
|
73
76
|
# Optional. A list of Volumes to make available to containers.
|
|
@@ -92,6 +95,12 @@ module Google
|
|
|
92
95
|
# @!attribute [rw] gpu_zonal_redundancy_disabled
|
|
93
96
|
# @return [::Boolean]
|
|
94
97
|
# Optional. True if GPU zonal redundancy is disabled on this worker pool.
|
|
98
|
+
# @!attribute [rw] client
|
|
99
|
+
# @return [::String]
|
|
100
|
+
# Optional. Arbitrary identifier for the API client.
|
|
101
|
+
# @!attribute [rw] client_version
|
|
102
|
+
# @return [::String]
|
|
103
|
+
# Optional. Arbitrary version identifier for the API client.
|
|
95
104
|
class WorkerPoolRevisionTemplate
|
|
96
105
|
include ::Google::Protobuf::MessageExts
|
|
97
106
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.32.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -142,6 +142,7 @@ files:
|
|
|
142
142
|
- lib/google/cloud/run/v2/revisions/rest/client.rb
|
|
143
143
|
- lib/google/cloud/run/v2/revisions/rest/operations.rb
|
|
144
144
|
- lib/google/cloud/run/v2/revisions/rest/service_stub.rb
|
|
145
|
+
- lib/google/cloud/run/v2/sandbox_pb.rb
|
|
145
146
|
- lib/google/cloud/run/v2/service_pb.rb
|
|
146
147
|
- lib/google/cloud/run/v2/service_services_pb.rb
|
|
147
148
|
- lib/google/cloud/run/v2/services.rb
|
|
@@ -153,6 +154,15 @@ files:
|
|
|
153
154
|
- lib/google/cloud/run/v2/services/rest/client.rb
|
|
154
155
|
- lib/google/cloud/run/v2/services/rest/operations.rb
|
|
155
156
|
- lib/google/cloud/run/v2/services/rest/service_stub.rb
|
|
157
|
+
- lib/google/cloud/run/v2/source_upload.rb
|
|
158
|
+
- lib/google/cloud/run/v2/source_upload/client.rb
|
|
159
|
+
- lib/google/cloud/run/v2/source_upload/credentials.rb
|
|
160
|
+
- lib/google/cloud/run/v2/source_upload/paths.rb
|
|
161
|
+
- lib/google/cloud/run/v2/source_upload/rest.rb
|
|
162
|
+
- lib/google/cloud/run/v2/source_upload/rest/client.rb
|
|
163
|
+
- lib/google/cloud/run/v2/source_upload/rest/service_stub.rb
|
|
164
|
+
- lib/google/cloud/run/v2/source_upload_pb.rb
|
|
165
|
+
- lib/google/cloud/run/v2/source_upload_services_pb.rb
|
|
156
166
|
- lib/google/cloud/run/v2/status_pb.rb
|
|
157
167
|
- lib/google/cloud/run/v2/task_pb.rb
|
|
158
168
|
- lib/google/cloud/run/v2/task_services_pb.rb
|
|
@@ -196,7 +206,9 @@ files:
|
|
|
196
206
|
- proto_docs/google/cloud/run/v2/k8s.min.rb
|
|
197
207
|
- proto_docs/google/cloud/run/v2/revision.rb
|
|
198
208
|
- proto_docs/google/cloud/run/v2/revision_template.rb
|
|
209
|
+
- proto_docs/google/cloud/run/v2/sandbox.rb
|
|
199
210
|
- proto_docs/google/cloud/run/v2/service.rb
|
|
211
|
+
- proto_docs/google/cloud/run/v2/source_upload.rb
|
|
200
212
|
- proto_docs/google/cloud/run/v2/status.rb
|
|
201
213
|
- proto_docs/google/cloud/run/v2/task.rb
|
|
202
214
|
- proto_docs/google/cloud/run/v2/task_template.rb
|