google-cloud-run-v2 0.15.0 → 0.16.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/condition_pb.rb +2 -1
- data/lib/google/cloud/run/v2/execution_services_pb.rb +2 -1
- data/lib/google/cloud/run/v2/executions/client.rb +13 -5
- data/lib/google/cloud/run/v2/executions/operations.rb +13 -5
- data/lib/google/cloud/run/v2/executions/rest/client.rb +13 -5
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +13 -5
- data/lib/google/cloud/run/v2/job_pb.rb +2 -2
- data/lib/google/cloud/run/v2/job_services_pb.rb +1 -1
- data/lib/google/cloud/run/v2/jobs/client.rb +25 -13
- data/lib/google/cloud/run/v2/jobs/operations.rb +13 -5
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +25 -13
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +13 -5
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +1 -1
- data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -1
- data/lib/google/cloud/run/v2/revision_template_pb.rb +1 -1
- data/lib/google/cloud/run/v2/revisions/client.rb +11 -4
- data/lib/google/cloud/run/v2/revisions/operations.rb +13 -5
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +11 -4
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +13 -5
- data/lib/google/cloud/run/v2/service_pb.rb +3 -1
- data/lib/google/cloud/run/v2/service_services_pb.rb +1 -1
- data/lib/google/cloud/run/v2/services/client.rb +26 -13
- data/lib/google/cloud/run/v2/services/operations.rb +13 -5
- data/lib/google/cloud/run/v2/services/rest/client.rb +26 -13
- data/lib/google/cloud/run/v2/services/rest/operations.rb +13 -5
- data/lib/google/cloud/run/v2/task_template_pb.rb +2 -1
- data/lib/google/cloud/run/v2/tasks/client.rb +7 -2
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +7 -2
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +2 -1
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/run/v2/condition.rb +6 -6
- data/proto_docs/google/cloud/run/v2/job.rb +43 -4
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +32 -30
- data/proto_docs/google/cloud/run/v2/revision_template.rb +21 -20
- data/proto_docs/google/cloud/run/v2/service.rb +16 -12
- data/proto_docs/google/cloud/run/v2/task_template.rb +13 -12
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +23 -17
- metadata +2 -2
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Cloud Run Task Control Plane API.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
# @private
|
35
|
+
API_VERSION = ""
|
36
|
+
|
34
37
|
# @private
|
35
38
|
DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
|
36
39
|
|
@@ -232,10 +235,11 @@ module Google
|
|
232
235
|
# Customize the options with defaults
|
233
236
|
metadata = @config.rpcs.get_task.metadata.to_h
|
234
237
|
|
235
|
-
# Set x-goog-api-client
|
238
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
236
239
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
237
240
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
238
241
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
242
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
239
243
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
240
244
|
|
241
245
|
header_params = {}
|
@@ -331,10 +335,11 @@ module Google
|
|
331
335
|
# Customize the options with defaults
|
332
336
|
metadata = @config.rpcs.list_tasks.metadata.to_h
|
333
337
|
|
334
|
-
# Set x-goog-api-client
|
338
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
335
339
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
336
340
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
337
341
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
342
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
338
343
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
339
344
|
|
340
345
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Cloud Run Task Control Plane API.
|
34
34
|
#
|
35
35
|
class Client
|
36
|
+
# @private
|
37
|
+
API_VERSION = ""
|
38
|
+
|
36
39
|
# @private
|
37
40
|
DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
|
38
41
|
|
@@ -224,12 +227,13 @@ module Google
|
|
224
227
|
# Customize the options with defaults
|
225
228
|
call_metadata = @config.rpcs.get_task.metadata.to_h
|
226
229
|
|
227
|
-
# Set x-goog-api-client
|
230
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
228
231
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
229
232
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
230
233
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
231
234
|
transports_version_send: [:rest]
|
232
235
|
|
236
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
233
237
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
238
|
|
235
239
|
options.apply_defaults timeout: @config.rpcs.get_task.timeout,
|
@@ -316,12 +320,13 @@ module Google
|
|
316
320
|
# Customize the options with defaults
|
317
321
|
call_metadata = @config.rpcs.list_tasks.metadata.to_h
|
318
322
|
|
319
|
-
# Set x-goog-api-client
|
323
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
320
324
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
321
325
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
322
326
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
323
327
|
transports_version_send: [:rest]
|
324
328
|
|
329
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
325
330
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
326
331
|
|
327
332
|
options.apply_defaults timeout: @config.rpcs.list_tasks.timeout,
|
@@ -4,10 +4,11 @@
|
|
4
4
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
|
+
require 'google/api/field_behavior_pb'
|
7
8
|
require 'google/api/resource_pb'
|
8
9
|
|
9
10
|
|
10
|
-
descriptor_data = "\n)google/cloud/run/v2/vendor_settings.proto\x12\x13google.cloud.run.v2\x1a\x19google/api/resource.proto\"\
|
11
|
+
descriptor_data = "\n)google/cloud/run/v2/vendor_settings.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x81\x03\n\tVpcAccess\x12:\n\tconnector\x18\x01 \x01(\tB\'\xfa\x41$\n\"vpcaccess.googleapis.com/Connector\x12=\n\x06\x65gress\x18\x02 \x01(\x0e\x32(.google.cloud.run.v2.VpcAccess.VpcEgressB\x03\xe0\x41\x01\x12P\n\x12network_interfaces\x18\x03 \x03(\x0b\x32/.google.cloud.run.v2.VpcAccess.NetworkInterfaceB\x03\xe0\x41\x01\x1aT\n\x10NetworkInterface\x12\x14\n\x07network\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nsubnetwork\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x11\n\x04tags\x18\x03 \x03(\tB\x03\xe0\x41\x01\"Q\n\tVpcEgress\x12\x1a\n\x16VPC_EGRESS_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x01\x12\x17\n\x13PRIVATE_RANGES_ONLY\x10\x02\"\x82\x01\n\x13\x42inaryAuthorization\x12\x1a\n\x0buse_default\x18\x01 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x12\x15\n\x06policy\x18\x03 \x01(\tB\x03\xe0\x41\x01H\x00\x12%\n\x18\x62reakglass_justification\x18\x02 \x01(\tB\x03\xe0\x41\x01\x42\x11\n\x0f\x62inauthz_method\"S\n\x0fRevisionScaling\x12\x1f\n\x12min_instance_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1f\n\x12max_instance_count\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\"1\n\x0eServiceScaling\x12\x1f\n\x12min_instance_count\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01*\x99\x01\n\x0eIngressTraffic\x12\x1f\n\x1bINGRESS_TRAFFIC_UNSPECIFIED\x10\x00\x12\x17\n\x13INGRESS_TRAFFIC_ALL\x10\x01\x12!\n\x1dINGRESS_TRAFFIC_INTERNAL_ONLY\x10\x02\x12*\n&INGRESS_TRAFFIC_INTERNAL_LOAD_BALANCER\x10\x03*}\n\x14\x45xecutionEnvironment\x12%\n!EXECUTION_ENVIRONMENT_UNSPECIFIED\x10\x00\x12\x1e\n\x1a\x45XECUTION_ENVIRONMENT_GEN1\x10\x01\x12\x1e\n\x1a\x45XECUTION_ENVIRONMENT_GEN2\x10\x02*p\n\x1d\x45ncryptionKeyRevocationAction\x12\x30\n,ENCRYPTION_KEY_REVOCATION_ACTION_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPREVENT_NEW\x10\x01\x12\x0c\n\x08SHUTDOWN\x10\x02\x42[\n\x17\x63om.google.cloud.run.v2B\x13VendorSettingsProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
11
12
|
|
12
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
14
|
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -41,15 +41,15 @@ module Google
|
|
41
41
|
# @!attribute [rw] severity
|
42
42
|
# @return [::Google::Cloud::Run::V2::Condition::Severity]
|
43
43
|
# How to interpret failures of this condition, one of Error, Warning, Info
|
44
|
-
# @!attribute [
|
44
|
+
# @!attribute [r] reason
|
45
45
|
# @return [::Google::Cloud::Run::V2::Condition::CommonReason]
|
46
|
-
# A common (service-level) reason for this condition.
|
47
|
-
# @!attribute [
|
46
|
+
# Output only. A common (service-level) reason for this condition.
|
47
|
+
# @!attribute [r] revision_reason
|
48
48
|
# @return [::Google::Cloud::Run::V2::Condition::RevisionReason]
|
49
|
-
# A reason for the revision condition.
|
50
|
-
# @!attribute [
|
49
|
+
# Output only. A reason for the revision condition.
|
50
|
+
# @!attribute [r] execution_reason
|
51
51
|
# @return [::Google::Cloud::Run::V2::Condition::ExecutionReason]
|
52
|
-
# A reason for the execution condition.
|
52
|
+
# Output only. A reason for the execution condition.
|
53
53
|
class Condition
|
54
54
|
include ::Google::Protobuf::MessageExts
|
55
55
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -64,9 +64,9 @@ module Google
|
|
64
64
|
# populated, without persisting the request or updating any resources.
|
65
65
|
# @!attribute [rw] allow_missing
|
66
66
|
# @return [::Boolean]
|
67
|
-
# If set to true, and if the Job does not exist, it will create a
|
68
|
-
# one. Caller must have both create and update permissions for this call
|
69
|
-
# this is set to true.
|
67
|
+
# Optional. If set to true, and if the Job does not exist, it will create a
|
68
|
+
# new one. Caller must have both create and update permissions for this call
|
69
|
+
# if this is set to true.
|
70
70
|
class UpdateJobRequest
|
71
71
|
include ::Google::Protobuf::MessageExts
|
72
72
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -239,7 +239,8 @@ module Google
|
|
239
239
|
# Output only. The last-modified time.
|
240
240
|
# @!attribute [r] delete_time
|
241
241
|
# @return [::Google::Protobuf::Timestamp]
|
242
|
-
# Output only. The deletion time.
|
242
|
+
# Output only. The deletion time. It is only populated as a response to a
|
243
|
+
# Delete request.
|
243
244
|
# @!attribute [r] expire_time
|
244
245
|
# @return [::Google::Protobuf::Timestamp]
|
245
246
|
# Output only. For a deleted resource, the time after which it will be
|
@@ -320,6 +321,16 @@ module Google
|
|
320
321
|
# @!attribute [r] satisfies_pzs
|
321
322
|
# @return [::Boolean]
|
322
323
|
# Output only. Reserved for future use.
|
324
|
+
# @!attribute [rw] start_execution_token
|
325
|
+
# @return [::String]
|
326
|
+
# A unique string used as a suffix creating a new execution. The Job will
|
327
|
+
# become ready when the execution is successfully started.
|
328
|
+
# The sum of job name and token length must be fewer than 63 characters.
|
329
|
+
# @!attribute [rw] run_execution_token
|
330
|
+
# @return [::String]
|
331
|
+
# A unique string used as a suffix for creating a new execution. The Job
|
332
|
+
# will become ready when the execution is successfully completed.
|
333
|
+
# The sum of job name and token length must be fewer than 63 characters.
|
323
334
|
# @!attribute [r] etag
|
324
335
|
# @return [::String]
|
325
336
|
# Output only. A system-generated fingerprint for this version of the
|
@@ -358,9 +369,37 @@ module Google
|
|
358
369
|
# @!attribute [rw] completion_time
|
359
370
|
# @return [::Google::Protobuf::Timestamp]
|
360
371
|
# Creation timestamp of the execution.
|
372
|
+
# @!attribute [rw] delete_time
|
373
|
+
# @return [::Google::Protobuf::Timestamp]
|
374
|
+
# The deletion time of the execution. It is only
|
375
|
+
# populated as a response to a Delete request.
|
376
|
+
# @!attribute [rw] completion_status
|
377
|
+
# @return [::Google::Cloud::Run::V2::ExecutionReference::CompletionStatus]
|
378
|
+
# Status for the execution completion.
|
361
379
|
class ExecutionReference
|
362
380
|
include ::Google::Protobuf::MessageExts
|
363
381
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
382
|
+
|
383
|
+
# Possible execution completion status.
|
384
|
+
module CompletionStatus
|
385
|
+
# The default value. This value is used if the state is omitted.
|
386
|
+
COMPLETION_STATUS_UNSPECIFIED = 0
|
387
|
+
|
388
|
+
# Job execution has succeeded.
|
389
|
+
EXECUTION_SUCCEEDED = 1
|
390
|
+
|
391
|
+
# Job execution has failed.
|
392
|
+
EXECUTION_FAILED = 2
|
393
|
+
|
394
|
+
# Job execution is running normally.
|
395
|
+
EXECUTION_RUNNING = 3
|
396
|
+
|
397
|
+
# Waiting for backing resources to be provisioned.
|
398
|
+
EXECUTION_PENDING = 4
|
399
|
+
|
400
|
+
# Job execution has been cancelled by the user.
|
401
|
+
EXECUTION_CANCELLED = 5
|
402
|
+
end
|
364
403
|
end
|
365
404
|
end
|
366
405
|
end
|
@@ -354,19 +354,20 @@ module Google
|
|
354
354
|
# Path that is exported by the NFS server.
|
355
355
|
# @!attribute [rw] read_only
|
356
356
|
# @return [::Boolean]
|
357
|
-
# If true,
|
357
|
+
# If true, the volume will be mounted as read only for all mounts.
|
358
358
|
class NFSVolumeSource
|
359
359
|
include ::Google::Protobuf::MessageExts
|
360
360
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
361
361
|
end
|
362
362
|
|
363
|
-
# Represents a
|
363
|
+
# Represents a volume backed by a Cloud Storage bucket using Cloud Storage
|
364
|
+
# FUSE.
|
364
365
|
# @!attribute [rw] bucket
|
365
366
|
# @return [::String]
|
366
|
-
#
|
367
|
+
# Cloud Storage Bucket name.
|
367
368
|
# @!attribute [rw] read_only
|
368
369
|
# @return [::Boolean]
|
369
|
-
# If true,
|
370
|
+
# If true, the volume will be mounted as read only for all mounts.
|
370
371
|
class GCSVolumeSource
|
371
372
|
include ::Google::Protobuf::MessageExts
|
372
373
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -376,36 +377,35 @@ module Google
|
|
376
377
|
# determine whether it is alive or ready to receive traffic.
|
377
378
|
# @!attribute [rw] initial_delay_seconds
|
378
379
|
# @return [::Integer]
|
379
|
-
# Number of seconds after the container has started before the
|
380
|
-
# initiated.
|
381
|
-
#
|
382
|
-
# is 3600. Maximum value for startup probe is 240.
|
380
|
+
# Optional. Number of seconds after the container has started before the
|
381
|
+
# probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum
|
382
|
+
# value for liveness probe is 3600. Maximum value for startup probe is 240.
|
383
383
|
# @!attribute [rw] timeout_seconds
|
384
384
|
# @return [::Integer]
|
385
|
-
# Number of seconds after which the probe times out.
|
385
|
+
# Optional. Number of seconds after which the probe times out.
|
386
386
|
# Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
|
387
387
|
# Must be smaller than period_seconds.
|
388
388
|
# @!attribute [rw] period_seconds
|
389
389
|
# @return [::Integer]
|
390
|
-
# How often (in seconds) to perform the probe.
|
390
|
+
# Optional. How often (in seconds) to perform the probe.
|
391
391
|
# Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
|
392
392
|
# is 3600. Maximum value for startup probe is 240.
|
393
393
|
# Must be greater or equal than timeout_seconds.
|
394
394
|
# @!attribute [rw] failure_threshold
|
395
395
|
# @return [::Integer]
|
396
|
-
# Minimum consecutive failures for the probe to be considered
|
397
|
-
# having succeeded. Defaults to 3. Minimum value is 1.
|
396
|
+
# Optional. Minimum consecutive failures for the probe to be considered
|
397
|
+
# failed after having succeeded. Defaults to 3. Minimum value is 1.
|
398
398
|
# @!attribute [rw] http_get
|
399
399
|
# @return [::Google::Cloud::Run::V2::HTTPGetAction]
|
400
|
-
# HTTPGet specifies the http request to perform.
|
400
|
+
# Optional. HTTPGet specifies the http request to perform.
|
401
401
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
402
402
|
# @!attribute [rw] tcp_socket
|
403
403
|
# @return [::Google::Cloud::Run::V2::TCPSocketAction]
|
404
|
-
# TCPSocket specifies an action involving a TCP port.
|
404
|
+
# Optional. TCPSocket specifies an action involving a TCP port.
|
405
405
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
406
406
|
# @!attribute [rw] grpc
|
407
407
|
# @return [::Google::Cloud::Run::V2::GRPCAction]
|
408
|
-
# GRPC specifies an action involving a gRPC port.
|
408
|
+
# Optional. GRPC specifies an action involving a gRPC port.
|
409
409
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
410
410
|
class Probe
|
411
411
|
include ::Google::Protobuf::MessageExts
|
@@ -415,15 +415,16 @@ module Google
|
|
415
415
|
# HTTPGetAction describes an action based on HTTP Get requests.
|
416
416
|
# @!attribute [rw] path
|
417
417
|
# @return [::String]
|
418
|
-
# Path to access on the HTTP server. Defaults to '/'.
|
418
|
+
# Optional. Path to access on the HTTP server. Defaults to '/'.
|
419
419
|
# @!attribute [rw] http_headers
|
420
420
|
# @return [::Array<::Google::Cloud::Run::V2::HTTPHeader>]
|
421
|
-
# Custom headers to set in the request. HTTP allows repeated
|
421
|
+
# Optional. Custom headers to set in the request. HTTP allows repeated
|
422
|
+
# headers.
|
422
423
|
# @!attribute [rw] port
|
423
424
|
# @return [::Integer]
|
424
|
-
# Port number to access on the container. Must be in the range 1 to
|
425
|
-
# If not specified, defaults to the exposed port of the container,
|
426
|
-
# the value of container.ports[0].containerPort.
|
425
|
+
# Optional. Port number to access on the container. Must be in the range 1 to
|
426
|
+
# 65535. If not specified, defaults to the exposed port of the container,
|
427
|
+
# which is the value of container.ports[0].containerPort.
|
427
428
|
class HTTPGetAction
|
428
429
|
include ::Google::Protobuf::MessageExts
|
429
430
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -435,7 +436,7 @@ module Google
|
|
435
436
|
# Required. The header field name
|
436
437
|
# @!attribute [rw] value
|
437
438
|
# @return [::String]
|
438
|
-
# The header field value
|
439
|
+
# Optional. The header field value
|
439
440
|
class HTTPHeader
|
440
441
|
include ::Google::Protobuf::MessageExts
|
441
442
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -444,9 +445,9 @@ module Google
|
|
444
445
|
# TCPSocketAction describes an action based on opening a socket
|
445
446
|
# @!attribute [rw] port
|
446
447
|
# @return [::Integer]
|
447
|
-
# Port number to access on the container. Must be in the range 1 to
|
448
|
-
# If not specified, defaults to the exposed port of the container,
|
449
|
-
# the value of container.ports[0].containerPort.
|
448
|
+
# Optional. Port number to access on the container. Must be in the range 1 to
|
449
|
+
# 65535. If not specified, defaults to the exposed port of the container,
|
450
|
+
# which is the value of container.ports[0].containerPort.
|
450
451
|
class TCPSocketAction
|
451
452
|
include ::Google::Protobuf::MessageExts
|
452
453
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -455,14 +456,15 @@ module Google
|
|
455
456
|
# GRPCAction describes an action involving a GRPC port.
|
456
457
|
# @!attribute [rw] port
|
457
458
|
# @return [::Integer]
|
458
|
-
# Port number of the gRPC service. Number must be in the range 1 to
|
459
|
-
# If not specified, defaults to the exposed port of the container,
|
460
|
-
# the value of container.ports[0].containerPort.
|
459
|
+
# Optional. Port number of the gRPC service. Number must be in the range 1 to
|
460
|
+
# 65535. If not specified, defaults to the exposed port of the container,
|
461
|
+
# which is the value of container.ports[0].containerPort.
|
461
462
|
# @!attribute [rw] service
|
462
463
|
# @return [::String]
|
463
|
-
# Service is the name of the service to place in the gRPC
|
464
|
-
# (see
|
465
|
-
#
|
464
|
+
# Optional. Service is the name of the service to place in the gRPC
|
465
|
+
# HealthCheckRequest (see
|
466
|
+
# https://github.com/grpc/grpc/blob/master/doc/health-checking.md ). If this
|
467
|
+
# is not specified, the default behavior is defined by gRPC.
|
466
468
|
class GRPCAction
|
467
469
|
include ::Google::Protobuf::MessageExts
|
468
470
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -25,15 +25,14 @@ module Google
|
|
25
25
|
# a template.
|
26
26
|
# @!attribute [rw] revision
|
27
27
|
# @return [::String]
|
28
|
-
# The unique name for the revision. If this field is omitted, it
|
29
|
-
# automatically generated based on the Service name.
|
28
|
+
# Optional. The unique name for the revision. If this field is omitted, it
|
29
|
+
# will be automatically generated based on the Service name.
|
30
30
|
# @!attribute [rw] labels
|
31
31
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
32
|
-
# Unstructured key value map that can be used to organize and
|
33
|
-
# objects.
|
34
|
-
#
|
35
|
-
#
|
36
|
-
# environment, state, etc. For more information, visit
|
32
|
+
# Optional. Unstructured key value map that can be used to organize and
|
33
|
+
# categorize objects. User-provided labels are shared with Google's billing
|
34
|
+
# system, so they can be used to filter, or break down billing charges by
|
35
|
+
# team, component, environment, state, etc. For more information, visit
|
37
36
|
# https://cloud.google.com/resource-manager/docs/creating-managing-labels or
|
38
37
|
# https://cloud.google.com/run/docs/configuring/labels.
|
39
38
|
#
|
@@ -43,9 +42,9 @@ module Google
|
|
43
42
|
# corresponding field in v2 RevisionTemplate.
|
44
43
|
# @!attribute [rw] annotations
|
45
44
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
46
|
-
# Unstructured key value map that may be set by external tools to
|
47
|
-
# arbitrary metadata. They are not queryable and should be
|
48
|
-
# when modifying objects.
|
45
|
+
# Optional. Unstructured key value map that may be set by external tools to
|
46
|
+
# store and arbitrary metadata. They are not queryable and should be
|
47
|
+
# preserved when modifying objects.
|
49
48
|
#
|
50
49
|
# <p>Cloud Run API v2 does not support annotations with `run.googleapis.com`,
|
51
50
|
# `cloud.googleapis.com`, `serving.knative.dev`, or `autoscaling.knative.dev`
|
@@ -56,19 +55,20 @@ module Google
|
|
56
55
|
# rules.
|
57
56
|
# @!attribute [rw] scaling
|
58
57
|
# @return [::Google::Cloud::Run::V2::RevisionScaling]
|
59
|
-
# Scaling settings for this Revision.
|
58
|
+
# Optional. Scaling settings for this Revision.
|
60
59
|
# @!attribute [rw] vpc_access
|
61
60
|
# @return [::Google::Cloud::Run::V2::VpcAccess]
|
62
|
-
# VPC Access configuration to use for this Revision. For more
|
63
|
-
# visit
|
61
|
+
# Optional. VPC Access configuration to use for this Revision. For more
|
62
|
+
# information, visit
|
63
|
+
# https://cloud.google.com/run/docs/configuring/connecting-vpc.
|
64
64
|
# @!attribute [rw] timeout
|
65
65
|
# @return [::Google::Protobuf::Duration]
|
66
|
-
# Max allowed time for an instance to respond to a request.
|
66
|
+
# Optional. Max allowed time for an instance to respond to a request.
|
67
67
|
# @!attribute [rw] service_account
|
68
68
|
# @return [::String]
|
69
|
-
# Email address of the IAM service account associated with the
|
70
|
-
# the service. The service account represents the identity of the
|
71
|
-
# revision, and determines what permissions the revision has. If not
|
69
|
+
# Optional. Email address of the IAM service account associated with the
|
70
|
+
# revision of the service. The service account represents the identity of the
|
71
|
+
# running revision, and determines what permissions the revision has. If not
|
72
72
|
# provided, the revision will use the project's default service account.
|
73
73
|
# @!attribute [rw] containers
|
74
74
|
# @return [::Array<::Google::Cloud::Run::V2::Container>]
|
@@ -76,10 +76,10 @@ module Google
|
|
76
76
|
# Revision.
|
77
77
|
# @!attribute [rw] volumes
|
78
78
|
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
79
|
-
# A list of Volumes to make available to containers.
|
79
|
+
# Optional. A list of Volumes to make available to containers.
|
80
80
|
# @!attribute [rw] execution_environment
|
81
81
|
# @return [::Google::Cloud::Run::V2::ExecutionEnvironment]
|
82
|
-
# The sandbox environment to host this Revision.
|
82
|
+
# Optional. The sandbox environment to host this Revision.
|
83
83
|
# @!attribute [rw] encryption_key
|
84
84
|
# @return [::String]
|
85
85
|
# A reference to a customer managed encryption key (CMEK) to use to encrypt
|
@@ -87,7 +87,8 @@ module Google
|
|
87
87
|
# https://cloud.google.com/run/docs/securing/using-cmek
|
88
88
|
# @!attribute [rw] max_instance_request_concurrency
|
89
89
|
# @return [::Integer]
|
90
|
-
# Sets the maximum number of requests that each serving instance
|
90
|
+
# Optional. Sets the maximum number of requests that each serving instance
|
91
|
+
# can receive.
|
91
92
|
# @!attribute [rw] session_affinity
|
92
93
|
# @return [::Boolean]
|
93
94
|
# Optional. Enable session affinity.
|
@@ -45,6 +45,9 @@ module Google
|
|
45
45
|
end
|
46
46
|
|
47
47
|
# Request message for updating a service.
|
48
|
+
# @!attribute [rw] update_mask
|
49
|
+
# @return [::Google::Protobuf::FieldMask]
|
50
|
+
# Optional. The list of fields to be updated.
|
48
51
|
# @!attribute [rw] service
|
49
52
|
# @return [::Google::Cloud::Run::V2::Service]
|
50
53
|
# Required. The Service to be updated.
|
@@ -54,9 +57,9 @@ module Google
|
|
54
57
|
# populated, without persisting the request or updating any resources.
|
55
58
|
# @!attribute [rw] allow_missing
|
56
59
|
# @return [::Boolean]
|
57
|
-
# If set to true, and if the Service does not exist, it will create
|
58
|
-
# one. The caller must have 'run.services.create' permissions if this
|
59
|
-
# to true and the Service does not exist.
|
60
|
+
# Optional. If set to true, and if the Service does not exist, it will create
|
61
|
+
# a new one. The caller must have 'run.services.create' permissions if this
|
62
|
+
# is set to true and the Service does not exist.
|
60
63
|
class UpdateServiceRequest
|
61
64
|
include ::Google::Protobuf::MessageExts
|
62
65
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -189,7 +192,8 @@ module Google
|
|
189
192
|
# Output only. The last-modified time.
|
190
193
|
# @!attribute [r] delete_time
|
191
194
|
# @return [::Google::Protobuf::Timestamp]
|
192
|
-
# Output only. The deletion time.
|
195
|
+
# Output only. The deletion time. It is only populated as a response to a
|
196
|
+
# Delete request.
|
193
197
|
# @!attribute [r] expire_time
|
194
198
|
# @return [::Google::Protobuf::Timestamp]
|
195
199
|
# Output only. For a deleted resource, the time after which it will be
|
@@ -208,12 +212,12 @@ module Google
|
|
208
212
|
# Arbitrary version identifier for the API client.
|
209
213
|
# @!attribute [rw] ingress
|
210
214
|
# @return [::Google::Cloud::Run::V2::IngressTraffic]
|
211
|
-
# Provides the ingress settings for this Service. On output,
|
212
|
-
# currently observed ingress settings, or
|
213
|
-
# revision is active.
|
215
|
+
# Optional. Provides the ingress settings for this Service. On output,
|
216
|
+
# returns the currently observed ingress settings, or
|
217
|
+
# INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
|
214
218
|
# @!attribute [rw] launch_stage
|
215
219
|
# @return [::Google::Api::LaunchStage]
|
216
|
-
# The launch stage as defined by [Google Cloud Platform
|
220
|
+
# Optional. The launch stage as defined by [Google Cloud Platform
|
217
221
|
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
218
222
|
# Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
|
219
223
|
# is assumed.
|
@@ -225,15 +229,15 @@ module Google
|
|
225
229
|
# features are used, this field will be BETA on output.
|
226
230
|
# @!attribute [rw] binary_authorization
|
227
231
|
# @return [::Google::Cloud::Run::V2::BinaryAuthorization]
|
228
|
-
# Settings for the Binary Authorization feature.
|
232
|
+
# Optional. Settings for the Binary Authorization feature.
|
229
233
|
# @!attribute [rw] template
|
230
234
|
# @return [::Google::Cloud::Run::V2::RevisionTemplate]
|
231
235
|
# Required. The template used to create revisions for this Service.
|
232
236
|
# @!attribute [rw] traffic
|
233
237
|
# @return [::Array<::Google::Cloud::Run::V2::TrafficTarget>]
|
234
|
-
# Specifies how to distribute traffic over a collection of
|
235
|
-
# belonging to the Service. If traffic is empty or not provided,
|
236
|
-
# 100% traffic to the latest `Ready` Revision.
|
238
|
+
# Optional. Specifies how to distribute traffic over a collection of
|
239
|
+
# Revisions belonging to the Service. If traffic is empty or not provided,
|
240
|
+
# defaults to 100% traffic to the latest `Ready` Revision.
|
237
241
|
# @!attribute [rw] scaling
|
238
242
|
# @return [::Google::Cloud::Run::V2::ServiceScaling]
|
239
243
|
# Optional. Specifies service-level scaling settings
|
@@ -29,26 +29,26 @@ module Google
|
|
29
29
|
# task.
|
30
30
|
# @!attribute [rw] volumes
|
31
31
|
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
32
|
-
# A list of Volumes to make available to containers.
|
32
|
+
# Optional. A list of Volumes to make available to containers.
|
33
33
|
# @!attribute [rw] max_retries
|
34
34
|
# @return [::Integer]
|
35
35
|
# Number of retries allowed per Task, before marking this Task failed.
|
36
36
|
# Defaults to 3.
|
37
37
|
# @!attribute [rw] timeout
|
38
38
|
# @return [::Google::Protobuf::Duration]
|
39
|
-
# Max allowed time duration the Task may be active before the
|
40
|
-
# actively try to mark it failed and kill associated containers.
|
41
|
-
# per attempt of a task, meaning each retry can run for the full
|
42
|
-
# Defaults to 600 seconds.
|
39
|
+
# Optional. Max allowed time duration the Task may be active before the
|
40
|
+
# system will actively try to mark it failed and kill associated containers.
|
41
|
+
# This applies per attempt of a task, meaning each retry can run for the full
|
42
|
+
# timeout. Defaults to 600 seconds.
|
43
43
|
# @!attribute [rw] service_account
|
44
44
|
# @return [::String]
|
45
|
-
# Email address of the IAM service account associated with the Task
|
46
|
-
# Job. The service account represents the identity of the
|
47
|
-
#
|
48
|
-
#
|
45
|
+
# Optional. Email address of the IAM service account associated with the Task
|
46
|
+
# of a Job. The service account represents the identity of the running task,
|
47
|
+
# and determines what permissions the task has. If not provided, the task
|
48
|
+
# will use the project's default service account.
|
49
49
|
# @!attribute [rw] execution_environment
|
50
50
|
# @return [::Google::Cloud::Run::V2::ExecutionEnvironment]
|
51
|
-
# The execution environment being used to host this Task.
|
51
|
+
# Optional. The execution environment being used to host this Task.
|
52
52
|
# @!attribute [rw] encryption_key
|
53
53
|
# @return [::String]
|
54
54
|
# A reference to a customer managed encryption key (CMEK) to use to encrypt
|
@@ -56,8 +56,9 @@ module Google
|
|
56
56
|
# https://cloud.google.com/run/docs/securing/using-cmek
|
57
57
|
# @!attribute [rw] vpc_access
|
58
58
|
# @return [::Google::Cloud::Run::V2::VpcAccess]
|
59
|
-
# VPC Access configuration to use for this Task. For more
|
60
|
-
# visit
|
59
|
+
# Optional. VPC Access configuration to use for this Task. For more
|
60
|
+
# information, visit
|
61
|
+
# https://cloud.google.com/run/docs/configuring/connecting-vpc.
|
61
62
|
class TaskTemplate
|
62
63
|
include ::Google::Protobuf::MessageExts
|
63
64
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|