google-cloud-run-v2 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/run/v2/condition_pb.rb +25 -64
- data/lib/google/cloud/run/v2/execution_pb.rb +27 -47
- data/lib/google/cloud/run/v2/execution_template_pb.rb +25 -8
- data/lib/google/cloud/run/v2/executions/client.rb +2 -2
- data/lib/google/cloud/run/v2/executions/operations.rb +2 -2
- data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/job_pb.rb +29 -66
- data/lib/google/cloud/run/v2/jobs/client.rb +2 -2
- data/lib/google/cloud/run/v2/jobs/operations.rb +2 -2
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +24 -86
- data/lib/google/cloud/run/v2/revision_pb.rb +29 -48
- data/lib/google/cloud/run/v2/revision_template_pb.rb +27 -15
- data/lib/google/cloud/run/v2/revisions/client.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/operations.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/service_pb.rb +29 -60
- data/lib/google/cloud/run/v2/services/client.rb +4 -4
- data/lib/google/cloud/run/v2/services/operations.rb +2 -2
- data/lib/google/cloud/run/v2/services/rest/client.rb +4 -4
- data/lib/google/cloud/run/v2/services/rest/operations.rb +2 -2
- data/lib/google/cloud/run/v2/task_pb.rb +30 -49
- data/lib/google/cloud/run/v2/task_template_pb.rb +27 -13
- data/lib/google/cloud/run/v2/tasks/client.rb +2 -2
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +2 -2
- data/lib/google/cloud/run/v2/traffic_target_pb.rb +24 -19
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +24 -36
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
- data/proto_docs/google/cloud/run/v2/execution.rb +22 -15
- data/proto_docs/google/cloud/run/v2/execution_template.rb +14 -5
- data/proto_docs/google/cloud/run/v2/job.rb +16 -6
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +23 -34
- data/proto_docs/google/cloud/run/v2/revision.rb +25 -12
- data/proto_docs/google/cloud/run/v2/revision_template.rb +16 -2
- data/proto_docs/google/cloud/run/v2/service.rb +16 -8
- data/proto_docs/google/cloud/run/v2/task.rb +13 -7
- data/proto_docs/google/cloud/run/v2/task_template.rb +2 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
@@ -33,38 +33,21 @@ module Google
|
|
33
33
|
# @return [::String]
|
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
|
-
# Dockerhub is assumed.
|
37
|
-
# https://kubernetes.io/docs/concepts/containers/images
|
36
|
+
# Dockerhub is assumed.
|
38
37
|
# @!attribute [rw] command
|
39
38
|
# @return [::Array<::String>]
|
40
39
|
# Entrypoint array. Not executed within a shell.
|
41
40
|
# The docker image's ENTRYPOINT is used if this is not provided.
|
42
|
-
# Variable references $(VAR_NAME) are expanded using the container's
|
43
|
-
# environment. If a variable cannot be resolved, the reference in the input
|
44
|
-
# string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
|
45
|
-
# double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
|
46
|
-
# regardless of whether the variable exists or not.
|
47
|
-
# More info:
|
48
|
-
# https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
|
49
41
|
# @!attribute [rw] args
|
50
42
|
# @return [::Array<::String>]
|
51
43
|
# Arguments to the entrypoint.
|
52
44
|
# The docker image's CMD is used if this is not provided.
|
53
|
-
# Variable references $(VAR_NAME) are expanded using the container's
|
54
|
-
# environment. If a variable cannot be resolved, the reference in the input
|
55
|
-
# string will be unchanged. The $(VAR_NAME) syntax can be escaped with a
|
56
|
-
# double $$, ie: $$(VAR_NAME). Escaped references will never be expanded,
|
57
|
-
# regardless of whether the variable exists or not.
|
58
|
-
# More info:
|
59
|
-
# https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell
|
60
45
|
# @!attribute [rw] env
|
61
46
|
# @return [::Array<::Google::Cloud::Run::V2::EnvVar>]
|
62
47
|
# List of environment variables to set in the container.
|
63
48
|
# @!attribute [rw] resources
|
64
49
|
# @return [::Google::Cloud::Run::V2::ResourceRequirements]
|
65
50
|
# Compute Resource requirements by this container.
|
66
|
-
# More info:
|
67
|
-
# https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources
|
68
51
|
# @!attribute [rw] ports
|
69
52
|
# @return [::Array<::Google::Cloud::Run::V2::ContainerPort>]
|
70
53
|
# List of ports to expose from the container. Only a single port can be
|
@@ -85,16 +68,12 @@ module Google
|
|
85
68
|
# @return [::Google::Cloud::Run::V2::Probe]
|
86
69
|
# Periodic probe of container liveness.
|
87
70
|
# Container will be restarted if the probe fails.
|
88
|
-
# More info:
|
89
|
-
# https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
90
71
|
# @!attribute [rw] startup_probe
|
91
72
|
# @return [::Google::Cloud::Run::V2::Probe]
|
92
73
|
# Startup probe of application within the container.
|
93
74
|
# All other probes are disabled if a startup probe is provided, until it
|
94
75
|
# succeeds. Container will not be added to service endpoints if the probe
|
95
76
|
# fails.
|
96
|
-
# More info:
|
97
|
-
# https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
98
77
|
class Container
|
99
78
|
include ::Google::Protobuf::MessageExts
|
100
79
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -103,14 +82,22 @@ module Google
|
|
103
82
|
# ResourceRequirements describes the compute resource requirements.
|
104
83
|
# @!attribute [rw] limits
|
105
84
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
106
|
-
# Only memory and
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
85
|
+
# Only ´memory´ and 'cpu' are supported.
|
86
|
+
#
|
87
|
+
# <p>Notes:
|
88
|
+
# * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
|
89
|
+
# CPU requires at least 2Gi of memory. For more information, go to
|
90
|
+
# https://cloud.google.com/run/docs/configuring/cpu.
|
91
|
+
# * For supported 'memory' values and syntax, go to
|
92
|
+
# https://cloud.google.com/run/docs/configuring/memory-limits
|
111
93
|
# @!attribute [rw] cpu_idle
|
112
94
|
# @return [::Boolean]
|
113
95
|
# Determines whether CPU should be throttled or not outside of requests.
|
96
|
+
# @!attribute [rw] startup_cpu_boost
|
97
|
+
# @return [::Boolean]
|
98
|
+
# Determines whether CPU should be boosted on startup of a new container
|
99
|
+
# instance above the requested CPU threshold, this can help reduce cold-start
|
100
|
+
# latency.
|
114
101
|
class ResourceRequirements
|
115
102
|
include ::Google::Protobuf::MessageExts
|
116
103
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -211,7 +198,6 @@ module Google
|
|
211
198
|
# @!attribute [rw] secret
|
212
199
|
# @return [::Google::Cloud::Run::V2::SecretVolumeSource]
|
213
200
|
# Secret represents a secret that should populate this volume.
|
214
|
-
# More info: https://kubernetes.io/docs/concepts/storage/volumes#secret
|
215
201
|
# @!attribute [rw] cloud_sql_instance
|
216
202
|
# @return [::Google::Cloud::Run::V2::CloudSqlInstance]
|
217
203
|
# For Cloud SQL volumes, contains the specific instances that should be
|
@@ -319,15 +305,11 @@ module Google
|
|
319
305
|
# initiated.
|
320
306
|
# Defaults to 0 seconds. Minimum value is 0. Maximum value for liveness probe
|
321
307
|
# is 3600. Maximum value for startup probe is 240.
|
322
|
-
# More info:
|
323
|
-
# https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
324
308
|
# @!attribute [rw] timeout_seconds
|
325
309
|
# @return [::Integer]
|
326
310
|
# Number of seconds after which the probe times out.
|
327
311
|
# Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
|
328
312
|
# Must be smaller than period_seconds.
|
329
|
-
# More info:
|
330
|
-
# https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes
|
331
313
|
# @!attribute [rw] period_seconds
|
332
314
|
# @return [::Integer]
|
333
315
|
# How often (in seconds) to perform the probe.
|
@@ -362,6 +344,11 @@ module Google
|
|
362
344
|
# @!attribute [rw] http_headers
|
363
345
|
# @return [::Array<::Google::Cloud::Run::V2::HTTPHeader>]
|
364
346
|
# Custom headers to set in the request. HTTP allows repeated headers.
|
347
|
+
# @!attribute [rw] port
|
348
|
+
# @return [::Integer]
|
349
|
+
# Port number to access on the container. Must be in the range 1 to 65535.
|
350
|
+
# If not specified, defaults to the exposed port of the container, which is
|
351
|
+
# the value of container.ports[0].containerPort.
|
365
352
|
class HTTPGetAction
|
366
353
|
include ::Google::Protobuf::MessageExts
|
367
354
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -383,7 +370,8 @@ module Google
|
|
383
370
|
# @!attribute [rw] port
|
384
371
|
# @return [::Integer]
|
385
372
|
# Port number to access on the container. Must be in the range 1 to 65535.
|
386
|
-
# If not specified, defaults to
|
373
|
+
# If not specified, defaults to the exposed port of the container, which is
|
374
|
+
# the value of container.ports[0].containerPort.
|
387
375
|
class TCPSocketAction
|
388
376
|
include ::Google::Protobuf::MessageExts
|
389
377
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -393,7 +381,8 @@ module Google
|
|
393
381
|
# @!attribute [rw] port
|
394
382
|
# @return [::Integer]
|
395
383
|
# Port number of the gRPC service. Number must be in the range 1 to 65535.
|
396
|
-
# If not specified, defaults to
|
384
|
+
# If not specified, defaults to the exposed port of the container, which is
|
385
|
+
# the value of container.ports[0].containerPort.
|
397
386
|
# @!attribute [rw] service
|
398
387
|
# @return [::String]
|
399
388
|
# Service is the name of the service to place in the gRPC HealthCheckRequest
|
@@ -103,17 +103,20 @@ module Google
|
|
103
103
|
# @return [::Integer]
|
104
104
|
# Output only. A number that monotonically increases every time the user
|
105
105
|
# modifies the desired state.
|
106
|
-
# @!attribute [
|
106
|
+
# @!attribute [r] labels
|
107
107
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
108
|
-
#
|
109
|
-
# User-provided labels are shared with Google's billing
|
110
|
-
# be used to filter, or break down billing charges by
|
111
|
-
# environment, state, etc. For more information, visit
|
108
|
+
# Output only. Unstructured key value map that can be used to organize and
|
109
|
+
# categorize objects. User-provided labels are shared with Google's billing
|
110
|
+
# system, so they can be used to filter, or break down billing charges by
|
111
|
+
# team, component, environment, state, etc. For more information, visit
|
112
112
|
# https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
113
|
-
# https://cloud.google.com/run/docs/configuring/labels
|
114
|
-
# @!attribute [
|
113
|
+
# https://cloud.google.com/run/docs/configuring/labels.
|
114
|
+
# @!attribute [r] annotations
|
115
115
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
116
|
-
#
|
116
|
+
# Output only. Unstructured key value map that may
|
117
|
+
# be set by external tools to store and arbitrary metadata.
|
118
|
+
# They are not queryable and should be preserved
|
119
|
+
# when modifying objects.
|
117
120
|
# @!attribute [r] create_time
|
118
121
|
# @return [::Google::Protobuf::Timestamp]
|
119
122
|
# Output only. The creation time.
|
@@ -131,10 +134,14 @@ module Google
|
|
131
134
|
# request.
|
132
135
|
# @!attribute [rw] launch_stage
|
133
136
|
# @return [::Google::Api::LaunchStage]
|
134
|
-
#
|
135
|
-
#
|
136
|
-
#
|
137
|
-
#
|
137
|
+
# The least stable launch stage needed to create this resource, as defined by
|
138
|
+
# [Google Cloud Platform Launch
|
139
|
+
# Stages](https://cloud.google.com/terms/launch-stages). Cloud Run supports
|
140
|
+
# `ALPHA`, `BETA`, and `GA`.
|
141
|
+
# <p>Note that this value might not be what was used
|
142
|
+
# as input. For example, if ALPHA was provided as input in the parent
|
143
|
+
# resource, but only BETA and GA-level features are were, this field will be
|
144
|
+
# BETA.
|
138
145
|
# @!attribute [r] service
|
139
146
|
# @return [::String]
|
140
147
|
# Output only. The name of the parent service.
|
@@ -196,6 +203,12 @@ module Google
|
|
196
203
|
# @!attribute [r] log_uri
|
197
204
|
# @return [::String]
|
198
205
|
# Output only. The Google Console URI to obtain logs for the Revision.
|
206
|
+
# @!attribute [r] satisfies_pzs
|
207
|
+
# @return [::Boolean]
|
208
|
+
# Output only. Reserved for future use.
|
209
|
+
# @!attribute [rw] session_affinity
|
210
|
+
# @return [::Boolean]
|
211
|
+
# Enable session affinity.
|
199
212
|
# @!attribute [r] etag
|
200
213
|
# @return [::String]
|
201
214
|
# Output only. A system-generated fingerprint for this version of the
|
@@ -29,7 +29,13 @@ module Google
|
|
29
29
|
# automatically generated based on the Service name.
|
30
30
|
# @!attribute [rw] labels
|
31
31
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
32
|
-
#
|
32
|
+
# Unstructured key value map that can be used to organize and categorize
|
33
|
+
# objects.
|
34
|
+
# User-provided labels are shared with Google's billing system, so they can
|
35
|
+
# be used to filter, or break down billing charges by team, component,
|
36
|
+
# environment, state, etc. For more information, visit
|
37
|
+
# https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
38
|
+
# https://cloud.google.com/run/docs/configuring/labels.
|
33
39
|
#
|
34
40
|
# <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
|
35
41
|
# `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
|
@@ -37,12 +43,17 @@ module Google
|
|
37
43
|
# corresponding field in v2 RevisionTemplate.
|
38
44
|
# @!attribute [rw] annotations
|
39
45
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
40
|
-
#
|
46
|
+
# Unstructured key value map that may be set by external tools to store and
|
47
|
+
# arbitrary metadata. They are not queryable and should be preserved
|
48
|
+
# when modifying objects.
|
41
49
|
#
|
42
50
|
# <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
|
43
51
|
# `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
|
44
52
|
# namespaces, and they will be rejected. All system annotations in v1 now
|
45
53
|
# have a corresponding field in v2 RevisionTemplate.
|
54
|
+
#
|
55
|
+
# <p>This field follows Kubernetes annotations' namespacing, limits, and
|
56
|
+
# rules.
|
46
57
|
# @!attribute [rw] scaling
|
47
58
|
# @return [::Google::Cloud::Run::V2::RevisionScaling]
|
48
59
|
# Scaling settings for this Revision.
|
@@ -77,6 +88,9 @@ module Google
|
|
77
88
|
# @!attribute [rw] max_instance_request_concurrency
|
78
89
|
# @return [::Integer]
|
79
90
|
# Sets the maximum number of requests that each serving instance can receive.
|
91
|
+
# @!attribute [rw] session_affinity
|
92
|
+
# @return [::Boolean]
|
93
|
+
# Enable session affinity.
|
80
94
|
class RevisionTemplate
|
81
95
|
include ::Google::Protobuf::MessageExts
|
82
96
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -55,8 +55,8 @@ module Google
|
|
55
55
|
# @!attribute [rw] allow_missing
|
56
56
|
# @return [::Boolean]
|
57
57
|
# If set to true, and if the Service does not exist, it will create a new
|
58
|
-
# one.
|
59
|
-
#
|
58
|
+
# one. The caller must have 'run.services.create' permissions if this is set
|
59
|
+
# to true and the Service does not exist.
|
60
60
|
class UpdateServiceRequest
|
61
61
|
include ::Google::Protobuf::MessageExts
|
62
62
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -157,13 +157,13 @@ module Google
|
|
157
157
|
# APIs, its JSON representation will be a `string` instead of an `integer`.
|
158
158
|
# @!attribute [rw] labels
|
159
159
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
160
|
-
#
|
160
|
+
# Unstructured key value map that can be used to organize and categorize
|
161
161
|
# objects.
|
162
162
|
# User-provided labels are shared with Google's billing system, so they can
|
163
163
|
# be used to filter, or break down billing charges by team, component,
|
164
164
|
# environment, state, etc. For more information, visit
|
165
165
|
# https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
166
|
-
# https://cloud.google.com/run/docs/configuring/labels
|
166
|
+
# https://cloud.google.com/run/docs/configuring/labels.
|
167
167
|
#
|
168
168
|
# <p>Cloud Run API v2 does not support labels with `run.googleapis.com`,
|
169
169
|
# `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
|
@@ -177,12 +177,11 @@ module Google
|
|
177
177
|
#
|
178
178
|
# <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
|
179
179
|
# `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
|
180
|
-
# namespaces, and they will be rejected. All system
|
181
|
-
# have a corresponding field in v2 Service.
|
180
|
+
# namespaces, and they will be rejected in new resources. All system
|
181
|
+
# annotations in v1 now have a corresponding field in v2 Service.
|
182
182
|
#
|
183
183
|
# <p>This field follows Kubernetes
|
184
|
-
# annotations' namespacing, limits, and rules.
|
185
|
-
# https://kubernetes.io/docs/user-guide/annotations
|
184
|
+
# annotations' namespacing, limits, and rules.
|
186
185
|
# @!attribute [r] create_time
|
187
186
|
# @return [::Google::Protobuf::Timestamp]
|
188
187
|
# Output only. The creation time.
|
@@ -219,6 +218,12 @@ module Google
|
|
219
218
|
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
220
219
|
# Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
|
221
220
|
# is assumed.
|
221
|
+
# Set the launch stage to a preview stage on input to allow use of preview
|
222
|
+
# features in that stage. On read (or output), describes whether the resource
|
223
|
+
# uses preview features.
|
224
|
+
# <p>
|
225
|
+
# For example, if ALPHA is provided as input, but only BETA and GA-level
|
226
|
+
# features are used, this field will be BETA on output.
|
222
227
|
# @!attribute [rw] binary_authorization
|
223
228
|
# @return [::Google::Cloud::Run::V2::BinaryAuthorization]
|
224
229
|
# Settings for the Binary Authorization feature.
|
@@ -267,6 +272,9 @@ module Google
|
|
267
272
|
# @!attribute [r] uri
|
268
273
|
# @return [::String]
|
269
274
|
# Output only. The main URI in which this Service is serving traffic.
|
275
|
+
# @!attribute [r] satisfies_pzs
|
276
|
+
# @return [::Boolean]
|
277
|
+
# Output only. Reserved for future use.
|
270
278
|
# @!attribute [r] reconciling
|
271
279
|
# @return [::Boolean]
|
272
280
|
# Output only. Returns true if the Service is currently being acted upon by
|
@@ -80,17 +80,20 @@ module Google
|
|
80
80
|
# @return [::Integer]
|
81
81
|
# Output only. A number that monotonically increases every time the user
|
82
82
|
# modifies the desired state.
|
83
|
-
# @!attribute [
|
83
|
+
# @!attribute [r] labels
|
84
84
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
85
|
-
#
|
86
|
-
# User-provided labels are shared with Google's billing
|
87
|
-
# be used to filter, or break down billing charges by
|
88
|
-
# environment, state, etc. For more information, visit
|
85
|
+
# Output only. Unstructured key value map that can be used to organize and
|
86
|
+
# categorize objects. User-provided labels are shared with Google's billing
|
87
|
+
# system, so they can be used to filter, or break down billing charges by
|
88
|
+
# team, component, environment, state, etc. For more information, visit
|
89
89
|
# https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
90
90
|
# https://cloud.google.com/run/docs/configuring/labels
|
91
|
-
# @!attribute [
|
91
|
+
# @!attribute [r] annotations
|
92
92
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
93
|
-
#
|
93
|
+
# Output only. Unstructured key value map that may
|
94
|
+
# be set by external tools to store and arbitrary metadata.
|
95
|
+
# They are not queryable and should be preserved
|
96
|
+
# when modifying objects.
|
94
97
|
# @!attribute [r] create_time
|
95
98
|
# @return [::Google::Protobuf::Timestamp]
|
96
99
|
# Output only. Represents time when the task was created by the job
|
@@ -184,6 +187,9 @@ module Google
|
|
184
187
|
# @return [::String]
|
185
188
|
# Output only. URI where logs for this execution can be found in Cloud
|
186
189
|
# Console.
|
190
|
+
# @!attribute [r] satisfies_pzs
|
191
|
+
# @return [::Boolean]
|
192
|
+
# Output only. Reserved for future use.
|
187
193
|
# @!attribute [r] etag
|
188
194
|
# @return [::String]
|
189
195
|
# Output only. A system-generated fingerprint for this version of the
|
@@ -33,11 +33,13 @@ module Google
|
|
33
33
|
# @!attribute [rw] max_retries
|
34
34
|
# @return [::Integer]
|
35
35
|
# Number of retries allowed per Task, before marking this Task failed.
|
36
|
+
# Defaults to 3.
|
36
37
|
# @!attribute [rw] timeout
|
37
38
|
# @return [::Google::Protobuf::Duration]
|
38
39
|
# Max allowed time duration the Task may be active before the system will
|
39
40
|
# actively try to mark it failed and kill associated containers. This applies
|
40
41
|
# per attempt of a task, meaning each retry can run for the full timeout.
|
42
|
+
# Defaults to 600 seconds.
|
41
43
|
# @!attribute [rw] service_account
|
42
44
|
# @return [::String]
|
43
45
|
# Email address of the IAM service account associated with the Task of a
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# only if the expression evaluates to `true`. A condition can add constraints
|
36
36
|
# based on attributes of the request, the resource, or both. To learn which
|
37
37
|
# resources support conditions in their IAM policies, see the
|
38
|
-
# [IAM
|
38
|
+
# [IAM
|
39
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
39
40
|
#
|
40
41
|
# **JSON example:**
|
41
42
|
#
|
@@ -58,7 +59,8 @@ module Google
|
|
58
59
|
# "condition": {
|
59
60
|
# "title": "expirable access",
|
60
61
|
# "description": "Does not grant access after Sep 2020",
|
61
|
-
# "expression": "request.time <
|
62
|
+
# "expression": "request.time <
|
63
|
+
# timestamp('2020-10-01T00:00:00.000Z')",
|
62
64
|
# }
|
63
65
|
# }
|
64
66
|
# ],
|
@@ -112,7 +114,8 @@ module Google
|
|
112
114
|
# specify any valid version or leave the field unset.
|
113
115
|
#
|
114
116
|
# To learn which resources support conditions in their IAM policies, see the
|
115
|
-
# [IAM
|
117
|
+
# [IAM
|
118
|
+
# documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
116
119
|
# @!attribute [rw] bindings
|
117
120
|
# @return [::Array<::Google::Iam::V1::Binding>]
|
118
121
|
# Associates a list of `members`, or principals, with a `role`. Optionally,
|
@@ -305,7 +308,8 @@ module Google
|
|
305
308
|
# @return [::Array<::String>]
|
306
309
|
# Specifies the identities that do not cause logging for this type of
|
307
310
|
# permission.
|
308
|
-
# Follows the same format of
|
311
|
+
# Follows the same format of
|
312
|
+
# {::Google::Iam::V1::Binding#members Binding.members}.
|
309
313
|
class AuditLogConfig
|
310
314
|
include ::Google::Protobuf::MessageExts
|
311
315
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
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.9.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: 2023-
|
11
|
+
date: 2023-06-01 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: 0.
|
19
|
+
version: 0.19.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: 0.
|
29
|
+
version: 0.19.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|