google-cloud-run-v2 0.16.1 → 0.18.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 +4 -4
- data/README.md +3 -3
- data/lib/google/cloud/run/v2/build_pb.rb +53 -0
- data/lib/google/cloud/run/v2/build_services_pb.rb +45 -0
- data/lib/google/cloud/run/v2/builds/client.rb +463 -0
- data/lib/google/cloud/run/v2/builds/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/builds/paths.rb +52 -0
- data/lib/google/cloud/run/v2/builds/rest/client.rb +430 -0
- data/lib/google/cloud/run/v2/builds/rest/service_stub.rb +129 -0
- data/lib/google/cloud/run/v2/builds/rest.rb +52 -0
- data/lib/google/cloud/run/v2/builds.rb +55 -0
- data/lib/google/cloud/run/v2/job_pb.rb +2 -1
- data/lib/google/cloud/run/v2/jobs/paths.rb +33 -0
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +1 -1
- data/lib/google/cloud/run/v2/rest.rb +2 -1
- data/lib/google/cloud/run/v2/revision_pb.rb +1 -1
- data/lib/google/cloud/run/v2/revision_template_pb.rb +1 -1
- data/lib/google/cloud/run/v2/service_pb.rb +1 -1
- data/lib/google/cloud/run/v2/services/paths.rb +52 -0
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +4 -1
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2.rb +3 -2
- data/proto_docs/google/api/client.rb +20 -0
- data/proto_docs/google/cloud/run/v2/build.rb +149 -0
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +12 -15
- data/proto_docs/google/cloud/run/v2/revision.rb +6 -0
- data/proto_docs/google/cloud/run/v2/revision_template.rb +15 -1
- data/proto_docs/google/cloud/run/v2/service.rb +16 -7
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +47 -5
- metadata +13 -3
@@ -124,14 +124,9 @@ module Google
|
|
124
124
|
# characters.
|
125
125
|
# @!attribute [rw] value
|
126
126
|
# @return [::String]
|
127
|
-
#
|
128
|
-
# using the previous defined environment variables in the container and
|
129
|
-
# any route environment variables. If a variable cannot be resolved,
|
130
|
-
# the reference in the input string will be unchanged. The $(VAR_NAME)
|
131
|
-
# syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped
|
132
|
-
# references will never be expanded, regardless of whether the variable
|
133
|
-
# exists or not.
|
127
|
+
# Literal value of the environment variable.
|
134
128
|
# Defaults to "", and the maximum length is 32768 bytes.
|
129
|
+
# Variable references are not supported in Cloud Run.
|
135
130
|
# @!attribute [rw] value_source
|
136
131
|
# @return [::Google::Cloud::Run::V2::EnvVarSource]
|
137
132
|
# Source for the environment variable's value.
|
@@ -249,10 +244,9 @@ module Google
|
|
249
244
|
# * Internally, a umask of 0222 will be applied to any non-zero value.
|
250
245
|
# * This is an integer representation of the mode bits. So, the octal
|
251
246
|
# integer value should look exactly as the chmod numeric notation with a
|
252
|
-
# leading zero. Some examples: for chmod
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# (base-10).
|
247
|
+
# leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal)
|
248
|
+
# or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or
|
249
|
+
# 493 (base-10).
|
256
250
|
# * This might be in conflict with other options that affect the
|
257
251
|
# file mode, like fsGroup, and the result can be other mode bits set.
|
258
252
|
#
|
@@ -284,10 +278,9 @@ module Google
|
|
284
278
|
# * Internally, a umask of 0222 will be applied to any non-zero value.
|
285
279
|
# * This is an integer representation of the mode bits. So, the octal
|
286
280
|
# integer value should look exactly as the chmod numeric notation with a
|
287
|
-
# leading zero. Some examples: for chmod
|
288
|
-
#
|
289
|
-
#
|
290
|
-
# (base-10).
|
281
|
+
# leading zero. Some examples: for chmod 640 (u=rw,g=r), set to 0640 (octal)
|
282
|
+
# or 416 (base-10). For chmod 755 (u=rwx,g=rx,o=rx), set to 0755 (octal) or
|
283
|
+
# 493 (base-10).
|
291
284
|
# * This might be in conflict with other options that affect the
|
292
285
|
# file mode, like fsGroup, and the result can be other mode bits set.
|
293
286
|
class VersionToPath
|
@@ -368,6 +361,10 @@ module Google
|
|
368
361
|
# @!attribute [rw] read_only
|
369
362
|
# @return [::Boolean]
|
370
363
|
# If true, the volume will be mounted as read only for all mounts.
|
364
|
+
# @!attribute [rw] mount_options
|
365
|
+
# @return [::Array<::String>]
|
366
|
+
# A list of additional flags to pass to the gcsfuse CLI.
|
367
|
+
# Options should be specified without the leading "--".
|
371
368
|
class GCSVolumeSource
|
372
369
|
include ::Google::Protobuf::MessageExts
|
373
370
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -178,6 +178,9 @@ module Google
|
|
178
178
|
# A reference to a customer managed encryption key (CMEK) to use to encrypt
|
179
179
|
# this container image. For more information, go to
|
180
180
|
# https://cloud.google.com/run/docs/securing/using-cmek
|
181
|
+
# @!attribute [rw] service_mesh
|
182
|
+
# @return [::Google::Cloud::Run::V2::ServiceMesh]
|
183
|
+
# Enables service mesh connectivity.
|
181
184
|
# @!attribute [rw] encryption_key_revocation_action
|
182
185
|
# @return [::Google::Cloud::Run::V2::EncryptionKeyRevocationAction]
|
183
186
|
# The action to take if the encryption key is revoked.
|
@@ -212,6 +215,9 @@ module Google
|
|
212
215
|
# @!attribute [r] scaling_status
|
213
216
|
# @return [::Google::Cloud::Run::V2::RevisionScalingStatus]
|
214
217
|
# Output only. The current effective scaling settings for the revision.
|
218
|
+
# @!attribute [rw] node_selector
|
219
|
+
# @return [::Google::Cloud::Run::V2::NodeSelector]
|
220
|
+
# The node selector for the revision.
|
215
221
|
# @!attribute [r] etag
|
216
222
|
# @return [::String]
|
217
223
|
# Output only. A system-generated fingerprint for this version of the
|
@@ -88,13 +88,27 @@ module Google
|
|
88
88
|
# @!attribute [rw] max_instance_request_concurrency
|
89
89
|
# @return [::Integer]
|
90
90
|
# Optional. Sets the maximum number of requests that each serving instance
|
91
|
-
# can receive.
|
91
|
+
# can receive. If not specified or 0, concurrency defaults to 80 when
|
92
|
+
# requested `CPU >= 1` and defaults to 1 when requested `CPU < 1`.
|
93
|
+
# @!attribute [rw] service_mesh
|
94
|
+
# @return [::Google::Cloud::Run::V2::ServiceMesh]
|
95
|
+
# Optional. Enables service mesh connectivity.
|
96
|
+
# @!attribute [rw] encryption_key_revocation_action
|
97
|
+
# @return [::Google::Cloud::Run::V2::EncryptionKeyRevocationAction]
|
98
|
+
# Optional. The action to take if the encryption key is revoked.
|
99
|
+
# @!attribute [rw] encryption_key_shutdown_duration
|
100
|
+
# @return [::Google::Protobuf::Duration]
|
101
|
+
# Optional. If encryption_key_revocation_action is SHUTDOWN, the duration
|
102
|
+
# before shutting down all instances. The minimum increment is 1 hour.
|
92
103
|
# @!attribute [rw] session_affinity
|
93
104
|
# @return [::Boolean]
|
94
105
|
# Optional. Enable session affinity.
|
95
106
|
# @!attribute [rw] health_check_disabled
|
96
107
|
# @return [::Boolean]
|
97
108
|
# Optional. Disables health checking containers during deployment.
|
109
|
+
# @!attribute [rw] node_selector
|
110
|
+
# @return [::Google::Cloud::Run::V2::NodeSelector]
|
111
|
+
# Optional. The node selector for the revision template.
|
98
112
|
class RevisionTemplate
|
99
113
|
include ::Google::Protobuf::MessageExts
|
100
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -241,9 +241,25 @@ module Google
|
|
241
241
|
# @!attribute [rw] scaling
|
242
242
|
# @return [::Google::Cloud::Run::V2::ServiceScaling]
|
243
243
|
# Optional. Specifies service-level scaling settings
|
244
|
+
# @!attribute [rw] invoker_iam_disabled
|
245
|
+
# @return [::Boolean]
|
246
|
+
# Optional. Disables IAM permission check for run.routes.invoke for callers
|
247
|
+
# of this service. This feature is available by invitation only. For more
|
248
|
+
# information, visit
|
249
|
+
# https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
|
244
250
|
# @!attribute [rw] default_uri_disabled
|
245
251
|
# @return [::Boolean]
|
246
252
|
# Optional. Disables public resolution of the default URI of this service.
|
253
|
+
# @!attribute [r] urls
|
254
|
+
# @return [::Array<::String>]
|
255
|
+
# Output only. All URLs serving traffic for this Service.
|
256
|
+
# @!attribute [rw] custom_audiences
|
257
|
+
# @return [::Array<::String>]
|
258
|
+
# One or more custom audiences that you want this service to support. Specify
|
259
|
+
# each custom audience as the full URL in a string. The custom audiences are
|
260
|
+
# encoded in the token and used to authenticate requests. For more
|
261
|
+
# information, see
|
262
|
+
# https://cloud.google.com/run/docs/configuring/custom-audiences.
|
247
263
|
# @!attribute [r] observed_generation
|
248
264
|
# @return [::Integer]
|
249
265
|
# Output only. The generation of this Service currently serving traffic. See
|
@@ -281,13 +297,6 @@ module Google
|
|
281
297
|
# @!attribute [r] uri
|
282
298
|
# @return [::String]
|
283
299
|
# Output only. The main URI in which this Service is serving traffic.
|
284
|
-
# @!attribute [rw] custom_audiences
|
285
|
-
# @return [::Array<::String>]
|
286
|
-
# One or more custom audiences that you want this service to support. Specify
|
287
|
-
# each custom audience as the full URL in a string. The custom audiences are
|
288
|
-
# encoded in the token and used to authenticate requests. For more
|
289
|
-
# information, see
|
290
|
-
# https://cloud.google.com/run/docs/configuring/custom-audiences.
|
291
300
|
# @!attribute [r] satisfies_pzs
|
292
301
|
# @return [::Boolean]
|
293
302
|
# Output only. Reserved for future use.
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
# @!attribute [rw] connector
|
27
27
|
# @return [::String]
|
28
28
|
# VPC Access connector name.
|
29
|
-
# Format: projects
|
30
|
-
# where
|
29
|
+
# Format: `projects/{project}/locations/{location}/connectors/{connector}`,
|
30
|
+
# where `{project}` can be project id or number.
|
31
31
|
# For more information on sending traffic to a VPC network via a connector,
|
32
32
|
# visit https://cloud.google.com/run/docs/configuring/vpc-connectors.
|
33
33
|
# @!attribute [rw] egress
|
@@ -86,7 +86,7 @@ module Google
|
|
86
86
|
# @!attribute [rw] policy
|
87
87
|
# @return [::String]
|
88
88
|
# Optional. The path to a binary authorization policy.
|
89
|
-
# Format: projects
|
89
|
+
# Format: `projects/{project}/platforms/cloudRun/{policy-name}`
|
90
90
|
# @!attribute [rw] breakglass_justification
|
91
91
|
# @return [::String]
|
92
92
|
# Optional. If present, indicates to use Breakglass using this justification.
|
@@ -106,22 +106,61 @@ module Google
|
|
106
106
|
# @!attribute [rw] max_instance_count
|
107
107
|
# @return [::Integer]
|
108
108
|
# Optional. Maximum number of serving instances that this resource should
|
109
|
-
# have.
|
109
|
+
# have. When unspecified, the field is set to the server default value of
|
110
|
+
# 100. For more information see
|
111
|
+
# https://cloud.google.com/run/docs/configuring/max-instances
|
110
112
|
class RevisionScaling
|
111
113
|
include ::Google::Protobuf::MessageExts
|
112
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
115
|
end
|
114
116
|
|
117
|
+
# Settings for Cloud Service Mesh. For more information see
|
118
|
+
# https://cloud.google.com/service-mesh/docs/overview.
|
119
|
+
# @!attribute [rw] mesh
|
120
|
+
# @return [::String]
|
121
|
+
# The Mesh resource name. Format:
|
122
|
+
# `projects/{project}/locations/global/meshes/{mesh}`, where `{project}` can
|
123
|
+
# be project id or number.
|
124
|
+
class ServiceMesh
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
115
129
|
# Scaling settings applied at the service level rather than
|
116
130
|
# at the revision level.
|
117
131
|
# @!attribute [rw] min_instance_count
|
118
132
|
# @return [::Integer]
|
119
133
|
# Optional. total min instances for the service. This number of instances is
|
120
134
|
# divided among all revisions with specified traffic based on the percent
|
121
|
-
# of traffic they are receiving.
|
135
|
+
# of traffic they are receiving.
|
136
|
+
# @!attribute [rw] scaling_mode
|
137
|
+
# @return [::Google::Cloud::Run::V2::ServiceScaling::ScalingMode]
|
138
|
+
# Optional. The scaling mode for the service.
|
122
139
|
class ServiceScaling
|
123
140
|
include ::Google::Protobuf::MessageExts
|
124
141
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
142
|
+
|
143
|
+
# The scaling mode for the service. If not provided, it defaults to
|
144
|
+
# AUTOMATIC.
|
145
|
+
module ScalingMode
|
146
|
+
# Unspecified.
|
147
|
+
SCALING_MODE_UNSPECIFIED = 0
|
148
|
+
|
149
|
+
# Scale based on traffic between min and max instances.
|
150
|
+
AUTOMATIC = 1
|
151
|
+
|
152
|
+
# Scale to exactly min instances and ignore max instances.
|
153
|
+
MANUAL = 2
|
154
|
+
end
|
155
|
+
end
|
156
|
+
|
157
|
+
# Hardware constraints configuration.
|
158
|
+
# @!attribute [rw] accelerator
|
159
|
+
# @return [::String]
|
160
|
+
# Required. GPU accelerator type to attach to an instance.
|
161
|
+
class NodeSelector
|
162
|
+
include ::Google::Protobuf::MessageExts
|
163
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
125
164
|
end
|
126
165
|
|
127
166
|
# Allowed ingress traffic for the Container.
|
@@ -137,6 +176,9 @@ module Google
|
|
137
176
|
|
138
177
|
# Both internal and Google Cloud Load Balancer traffic is allowed.
|
139
178
|
INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER = 3
|
179
|
+
|
180
|
+
# No ingress traffic is allowed.
|
181
|
+
INGRESS_TRAFFIC_NONE = 4
|
140
182
|
end
|
141
183
|
|
142
184
|
# Alternatives for execution environments.
|
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.18.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: 2024-
|
11
|
+
date: 2024-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -93,6 +93,15 @@ files:
|
|
93
93
|
- README.md
|
94
94
|
- lib/google-cloud-run-v2.rb
|
95
95
|
- lib/google/cloud/run/v2.rb
|
96
|
+
- lib/google/cloud/run/v2/build_pb.rb
|
97
|
+
- lib/google/cloud/run/v2/build_services_pb.rb
|
98
|
+
- lib/google/cloud/run/v2/builds.rb
|
99
|
+
- lib/google/cloud/run/v2/builds/client.rb
|
100
|
+
- lib/google/cloud/run/v2/builds/credentials.rb
|
101
|
+
- lib/google/cloud/run/v2/builds/paths.rb
|
102
|
+
- lib/google/cloud/run/v2/builds/rest.rb
|
103
|
+
- lib/google/cloud/run/v2/builds/rest/client.rb
|
104
|
+
- lib/google/cloud/run/v2/builds/rest/service_stub.rb
|
96
105
|
- lib/google/cloud/run/v2/condition_pb.rb
|
97
106
|
- lib/google/cloud/run/v2/execution_pb.rb
|
98
107
|
- lib/google/cloud/run/v2/execution_services_pb.rb
|
@@ -162,6 +171,7 @@ files:
|
|
162
171
|
- proto_docs/google/api/launch_stage.rb
|
163
172
|
- proto_docs/google/api/resource.rb
|
164
173
|
- proto_docs/google/api/routing.rb
|
174
|
+
- proto_docs/google/cloud/run/v2/build.rb
|
165
175
|
- proto_docs/google/cloud/run/v2/condition.rb
|
166
176
|
- proto_docs/google/cloud/run/v2/execution.rb
|
167
177
|
- proto_docs/google/cloud/run/v2/execution_template.rb
|
@@ -205,7 +215,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
215
|
- !ruby/object:Gem::Version
|
206
216
|
version: '0'
|
207
217
|
requirements: []
|
208
|
-
rubygems_version: 3.5.
|
218
|
+
rubygems_version: 3.5.22
|
209
219
|
signing_key:
|
210
220
|
specification_version: 4
|
211
221
|
summary: Deploy and manage user provided container images that scale automatically
|