google-cloud-run-v2 0.28.1 → 0.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/run/v2/build_pb.rb +4 -25
- data/lib/google/cloud/run/v2/builds/client.rb +11 -1
- data/lib/google/cloud/run/v2/builds/rest/client.rb +11 -1
- data/lib/google/cloud/run/v2/condition_pb.rb +3 -25
- data/lib/google/cloud/run/v2/container_status_pb.rb +21 -0
- data/lib/google/cloud/run/v2/execution_pb.rb +2 -26
- data/lib/google/cloud/run/v2/execution_template_pb.rb +2 -24
- data/lib/google/cloud/run/v2/executions/client.rb +2 -0
- data/lib/google/cloud/run/v2/executions/operations.rb +2 -0
- data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/executions/rest/operations.rb +3 -1
- data/lib/google/cloud/run/v2/instance_pb.rb +42 -0
- data/lib/google/cloud/run/v2/instance_services_pb.rb +55 -0
- data/lib/google/cloud/run/v2/instance_split_pb.rb +2 -23
- data/lib/google/cloud/run/v2/instances/client.rb +1059 -0
- data/lib/google/cloud/run/v2/instances/credentials.rb +47 -0
- data/lib/google/cloud/run/v2/instances/operations.rb +851 -0
- data/lib/google/cloud/run/v2/instances/paths.rb +178 -0
- data/lib/google/cloud/run/v2/instances/rest/client.rb +962 -0
- data/lib/google/cloud/run/v2/instances/rest/operations.rb +1095 -0
- data/lib/google/cloud/run/v2/instances/rest/service_stub.rb +450 -0
- data/lib/google/cloud/run/v2/instances/rest.rb +53 -0
- data/lib/google/cloud/run/v2/instances.rb +56 -0
- data/lib/google/cloud/run/v2/job_pb.rb +3 -30
- data/lib/google/cloud/run/v2/jobs/client.rb +6 -4
- data/lib/google/cloud/run/v2/jobs/operations.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/jobs/rest/operations.rb +3 -1
- data/lib/google/cloud/run/v2/k8s.min_pb.rb +5 -24
- data/lib/google/cloud/run/v2/rest.rb +1 -0
- data/lib/google/cloud/run/v2/revision_pb.rb +2 -29
- data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -26
- data/lib/google/cloud/run/v2/revisions/client.rb +5 -3
- data/lib/google/cloud/run/v2/revisions/operations.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/revisions/rest/operations.rb +3 -1
- data/lib/google/cloud/run/v2/service_pb.rb +4 -30
- data/lib/google/cloud/run/v2/services/client.rb +5 -3
- data/lib/google/cloud/run/v2/services/operations.rb +2 -0
- data/lib/google/cloud/run/v2/services/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/services/rest/operations.rb +3 -1
- data/lib/google/cloud/run/v2/status_pb.rb +2 -23
- data/lib/google/cloud/run/v2/task_pb.rb +2 -29
- data/lib/google/cloud/run/v2/task_template_pb.rb +2 -26
- data/lib/google/cloud/run/v2/tasks/client.rb +2 -0
- data/lib/google/cloud/run/v2/tasks/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/traffic_target_pb.rb +2 -23
- data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -24
- data/lib/google/cloud/run/v2/version.rb +1 -1
- data/lib/google/cloud/run/v2/worker_pool_pb.rb +3 -30
- data/lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb +3 -27
- data/lib/google/cloud/run/v2/worker_pools/client.rb +5 -3
- data/lib/google/cloud/run/v2/worker_pools/operations.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/rest/client.rb +2 -0
- data/lib/google/cloud/run/v2/worker_pools/rest/operations.rb +3 -1
- data/lib/google/cloud/run/v2.rb +1 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/api/routing.rb +7 -3
- data/proto_docs/google/cloud/run/v2/build.rb +11 -0
- data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
- data/proto_docs/google/cloud/run/v2/container_status.rb +42 -0
- data/proto_docs/google/cloud/run/v2/instance.rb +328 -0
- data/proto_docs/google/cloud/run/v2/job.rb +2 -2
- data/proto_docs/google/cloud/run/v2/k8s.min.rb +37 -2
- data/proto_docs/google/cloud/run/v2/service.rb +32 -7
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +5 -0
- data/proto_docs/google/cloud/run/v2/worker_pool.rb +23 -22
- data/proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb +3 -0
- metadata +18 -4
|
@@ -31,6 +31,8 @@ module Google
|
|
|
31
31
|
# @!attribute [rw] selective_gapic_generation
|
|
32
32
|
# @return [::Google::Api::SelectiveGapicGeneration]
|
|
33
33
|
# Configuration for which RPCs should be generated in the GAPIC client.
|
|
34
|
+
#
|
|
35
|
+
# Note: This field should not be used in most cases.
|
|
34
36
|
class CommonLanguageSettings
|
|
35
37
|
include ::Google::Protobuf::MessageExts
|
|
36
38
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -141,9 +143,10 @@ module Google
|
|
|
141
143
|
#
|
|
142
144
|
# Example of a YAML configuration::
|
|
143
145
|
#
|
|
144
|
-
#
|
|
145
|
-
#
|
|
146
|
-
#
|
|
146
|
+
# publishing:
|
|
147
|
+
# library_settings:
|
|
148
|
+
# java_settings:
|
|
149
|
+
# library_package: com.google.cloud.pubsub.v1
|
|
147
150
|
# @!attribute [rw] service_class_names
|
|
148
151
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
149
152
|
# Configure the Java class name to use instead of the service's for its
|
|
@@ -155,11 +158,11 @@ module Google
|
|
|
155
158
|
#
|
|
156
159
|
# Example of a YAML configuration::
|
|
157
160
|
#
|
|
158
|
-
#
|
|
159
|
-
#
|
|
160
|
-
#
|
|
161
|
-
#
|
|
162
|
-
#
|
|
161
|
+
# publishing:
|
|
162
|
+
# java_settings:
|
|
163
|
+
# service_class_names:
|
|
164
|
+
# - google.pubsub.v1.Publisher: TopicAdmin
|
|
165
|
+
# - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
163
166
|
# @!attribute [rw] common
|
|
164
167
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
165
168
|
# Some settings.
|
|
@@ -190,6 +193,20 @@ module Google
|
|
|
190
193
|
# @!attribute [rw] common
|
|
191
194
|
# @return [::Google::Api::CommonLanguageSettings]
|
|
192
195
|
# Some settings.
|
|
196
|
+
# @!attribute [rw] library_package
|
|
197
|
+
# @return [::String]
|
|
198
|
+
# The package name to use in Php. Clobbers the php_namespace option
|
|
199
|
+
# set in the protobuf. This should be used **only** by APIs
|
|
200
|
+
# who have already set the language_settings.php.package_name" field
|
|
201
|
+
# in gapic.yaml. API teams should use the protobuf php_namespace option
|
|
202
|
+
# where possible.
|
|
203
|
+
#
|
|
204
|
+
# Example of a YAML configuration::
|
|
205
|
+
#
|
|
206
|
+
# publishing:
|
|
207
|
+
# library_settings:
|
|
208
|
+
# php_settings:
|
|
209
|
+
# library_package: Google\Cloud\PubSub\V1
|
|
193
210
|
class PhpSettings
|
|
194
211
|
include ::Google::Protobuf::MessageExts
|
|
195
212
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -318,10 +335,12 @@ module Google
|
|
|
318
335
|
# service names and values are the name to be used for the service client
|
|
319
336
|
# and call options.
|
|
320
337
|
#
|
|
321
|
-
#
|
|
322
|
-
#
|
|
323
|
-
#
|
|
324
|
-
#
|
|
338
|
+
# Example:
|
|
339
|
+
#
|
|
340
|
+
# publishing:
|
|
341
|
+
# go_settings:
|
|
342
|
+
# renamed_services:
|
|
343
|
+
# Publisher: TopicAdmin
|
|
325
344
|
class GoSettings
|
|
326
345
|
include ::Google::Protobuf::MessageExts
|
|
327
346
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -344,10 +363,10 @@ module Google
|
|
|
344
363
|
#
|
|
345
364
|
# Example:
|
|
346
365
|
#
|
|
347
|
-
#
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
366
|
+
# publishing:
|
|
367
|
+
# method_settings:
|
|
368
|
+
# - selector: google.storage.control.v2.StorageControl.CreateFolder
|
|
369
|
+
# # method settings for CreateFolder...
|
|
351
370
|
# @!attribute [rw] long_running
|
|
352
371
|
# @return [::Google::Api::MethodSettings::LongRunning]
|
|
353
372
|
# Describes settings to use for long-running operations when generating
|
|
@@ -356,14 +375,14 @@ module Google
|
|
|
356
375
|
#
|
|
357
376
|
# Example of a YAML configuration::
|
|
358
377
|
#
|
|
359
|
-
#
|
|
360
|
-
#
|
|
361
|
-
#
|
|
362
|
-
#
|
|
363
|
-
#
|
|
364
|
-
#
|
|
365
|
-
#
|
|
366
|
-
#
|
|
378
|
+
# publishing:
|
|
379
|
+
# method_settings:
|
|
380
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
381
|
+
# long_running:
|
|
382
|
+
# initial_poll_delay: 60s # 1 minute
|
|
383
|
+
# poll_delay_multiplier: 1.5
|
|
384
|
+
# max_poll_delay: 360s # 6 minutes
|
|
385
|
+
# total_poll_timeout: 54000s # 90 minutes
|
|
367
386
|
# @!attribute [rw] auto_populated_fields
|
|
368
387
|
# @return [::Array<::String>]
|
|
369
388
|
# List of top-level fields of the request message, that should be
|
|
@@ -372,11 +391,24 @@ module Google
|
|
|
372
391
|
#
|
|
373
392
|
# Example of a YAML configuration:
|
|
374
393
|
#
|
|
375
|
-
#
|
|
376
|
-
#
|
|
377
|
-
#
|
|
378
|
-
#
|
|
379
|
-
#
|
|
394
|
+
# publishing:
|
|
395
|
+
# method_settings:
|
|
396
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
397
|
+
# auto_populated_fields:
|
|
398
|
+
# - request_id
|
|
399
|
+
# @!attribute [rw] batching
|
|
400
|
+
# @return [::Google::Api::BatchingConfigProto]
|
|
401
|
+
# Batching configuration for an API method in client libraries.
|
|
402
|
+
#
|
|
403
|
+
# Example of a YAML configuration:
|
|
404
|
+
#
|
|
405
|
+
# publishing:
|
|
406
|
+
# method_settings:
|
|
407
|
+
# - selector: google.example.v1.ExampleService.BatchCreateExample
|
|
408
|
+
# batching:
|
|
409
|
+
# element_count_threshold: 1000
|
|
410
|
+
# request_byte_threshold: 100000000
|
|
411
|
+
# delay_threshold_millis: 10
|
|
380
412
|
class MethodSettings
|
|
381
413
|
include ::Google::Protobuf::MessageExts
|
|
382
414
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -411,6 +443,8 @@ module Google
|
|
|
411
443
|
|
|
412
444
|
# This message is used to configure the generation of a subset of the RPCs in
|
|
413
445
|
# a service for client libraries.
|
|
446
|
+
#
|
|
447
|
+
# Note: This feature should not be used in most cases.
|
|
414
448
|
# @!attribute [rw] methods
|
|
415
449
|
# @return [::Array<::String>]
|
|
416
450
|
# An allowlist of the fully qualified names of RPCs that should be included
|
|
@@ -428,6 +462,77 @@ module Google
|
|
|
428
462
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
429
463
|
end
|
|
430
464
|
|
|
465
|
+
# `BatchingConfigProto` defines the batching configuration for an API method.
|
|
466
|
+
# @!attribute [rw] thresholds
|
|
467
|
+
# @return [::Google::Api::BatchingSettingsProto]
|
|
468
|
+
# The thresholds which trigger a batched request to be sent.
|
|
469
|
+
# @!attribute [rw] batch_descriptor
|
|
470
|
+
# @return [::Google::Api::BatchingDescriptorProto]
|
|
471
|
+
# The request and response fields used in batching.
|
|
472
|
+
class BatchingConfigProto
|
|
473
|
+
include ::Google::Protobuf::MessageExts
|
|
474
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
# `BatchingSettingsProto` specifies a set of batching thresholds, each of
|
|
478
|
+
# which acts as a trigger to send a batch of messages as a request. At least
|
|
479
|
+
# one threshold must be positive nonzero.
|
|
480
|
+
# @!attribute [rw] element_count_threshold
|
|
481
|
+
# @return [::Integer]
|
|
482
|
+
# The number of elements of a field collected into a batch which, if
|
|
483
|
+
# exceeded, causes the batch to be sent.
|
|
484
|
+
# @!attribute [rw] request_byte_threshold
|
|
485
|
+
# @return [::Integer]
|
|
486
|
+
# The aggregated size of the batched field which, if exceeded, causes the
|
|
487
|
+
# batch to be sent. This size is computed by aggregating the sizes of the
|
|
488
|
+
# request field to be batched, not of the entire request message.
|
|
489
|
+
# @!attribute [rw] delay_threshold
|
|
490
|
+
# @return [::Google::Protobuf::Duration]
|
|
491
|
+
# The duration after which a batch should be sent, starting from the addition
|
|
492
|
+
# of the first message to that batch.
|
|
493
|
+
# @!attribute [rw] element_count_limit
|
|
494
|
+
# @return [::Integer]
|
|
495
|
+
# The maximum number of elements collected in a batch that could be accepted
|
|
496
|
+
# by server.
|
|
497
|
+
# @!attribute [rw] request_byte_limit
|
|
498
|
+
# @return [::Integer]
|
|
499
|
+
# The maximum size of the request that could be accepted by server.
|
|
500
|
+
# @!attribute [rw] flow_control_element_limit
|
|
501
|
+
# @return [::Integer]
|
|
502
|
+
# The maximum number of elements allowed by flow control.
|
|
503
|
+
# @!attribute [rw] flow_control_byte_limit
|
|
504
|
+
# @return [::Integer]
|
|
505
|
+
# The maximum size of data allowed by flow control.
|
|
506
|
+
# @!attribute [rw] flow_control_limit_exceeded_behavior
|
|
507
|
+
# @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
|
|
508
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
509
|
+
class BatchingSettingsProto
|
|
510
|
+
include ::Google::Protobuf::MessageExts
|
|
511
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
512
|
+
end
|
|
513
|
+
|
|
514
|
+
# `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
515
|
+
# used for batching, and, optionally, the fields of the response message to be
|
|
516
|
+
# used for demultiplexing.
|
|
517
|
+
# @!attribute [rw] batched_field
|
|
518
|
+
# @return [::String]
|
|
519
|
+
# The repeated field in the request message to be aggregated by batching.
|
|
520
|
+
# @!attribute [rw] discriminator_fields
|
|
521
|
+
# @return [::Array<::String>]
|
|
522
|
+
# A list of the fields in the request message. Two requests will be batched
|
|
523
|
+
# together only if the values of every field specified in
|
|
524
|
+
# `request_discriminator_fields` is equal between the two requests.
|
|
525
|
+
# @!attribute [rw] subresponse_field
|
|
526
|
+
# @return [::String]
|
|
527
|
+
# Optional. When present, indicates the field in the response message to be
|
|
528
|
+
# used to demultiplex the response into multiple response messages, in
|
|
529
|
+
# correspondence with the multiple request messages originally batched
|
|
530
|
+
# together.
|
|
531
|
+
class BatchingDescriptorProto
|
|
532
|
+
include ::Google::Protobuf::MessageExts
|
|
533
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
534
|
+
end
|
|
535
|
+
|
|
431
536
|
# The organization for which the client libraries are being published.
|
|
432
537
|
# Affects the url where generated docs are published, etc.
|
|
433
538
|
module ClientLibraryOrganization
|
|
@@ -469,5 +574,20 @@ module Google
|
|
|
469
574
|
# Publish the library to package managers like nuget.org and npmjs.com.
|
|
470
575
|
PACKAGE_MANAGER = 20
|
|
471
576
|
end
|
|
577
|
+
|
|
578
|
+
# The behavior to take when the flow control limit is exceeded.
|
|
579
|
+
module FlowControlLimitExceededBehaviorProto
|
|
580
|
+
# Default behavior, system-defined.
|
|
581
|
+
UNSET_BEHAVIOR = 0
|
|
582
|
+
|
|
583
|
+
# Stop operation, raise error.
|
|
584
|
+
THROW_EXCEPTION = 1
|
|
585
|
+
|
|
586
|
+
# Pause operation until limit clears.
|
|
587
|
+
BLOCK = 2
|
|
588
|
+
|
|
589
|
+
# Continue operation, disregard limit.
|
|
590
|
+
IGNORE = 3
|
|
591
|
+
end
|
|
472
592
|
end
|
|
473
593
|
end
|
|
@@ -49,9 +49,13 @@ module Google
|
|
|
49
49
|
# app_profile_id: profiles/prof_qux
|
|
50
50
|
# }
|
|
51
51
|
#
|
|
52
|
-
# The routing header consists of one or multiple key-value pairs.
|
|
53
|
-
#
|
|
54
|
-
# `
|
|
52
|
+
# The routing header consists of one or multiple key-value pairs. The order of
|
|
53
|
+
# the key-value pairs is undefined, the order of the `routing_parameters` in
|
|
54
|
+
# the `RoutingRule` only matters for the evaluation order of the path
|
|
55
|
+
# templates when `field` is the same. See the examples below for more details.
|
|
56
|
+
#
|
|
57
|
+
# Every key and value in the routing header must be percent-encoded,
|
|
58
|
+
# and joined together in the following format: `key1=value1&key2=value2`.
|
|
55
59
|
# The examples below skip the percent-encoding for readability.
|
|
56
60
|
#
|
|
57
61
|
# Example 1
|
|
@@ -59,6 +59,17 @@ module Google
|
|
|
59
59
|
# @!attribute [rw] tags
|
|
60
60
|
# @return [::Array<::String>]
|
|
61
61
|
# Optional. Additional tags to annotate the build.
|
|
62
|
+
# @!attribute [rw] machine_type
|
|
63
|
+
# @return [::String]
|
|
64
|
+
# Optional. The machine type from default pool to use for the build. If left
|
|
65
|
+
# blank, cloudbuild will use a sensible default. Currently only E2_HIGHCPU_8
|
|
66
|
+
# is supported. If worker_pool is set, this field will be ignored.
|
|
67
|
+
# @!attribute [rw] release_track
|
|
68
|
+
# @return [::Google::Api::LaunchStage]
|
|
69
|
+
# Optional. The release track of the client that initiated the build request.
|
|
70
|
+
# @!attribute [rw] client
|
|
71
|
+
# @return [::String]
|
|
72
|
+
# Optional. The client that initiated the build request.
|
|
62
73
|
class SubmitBuildRequest
|
|
63
74
|
include ::Google::Protobuf::MessageExts
|
|
64
75
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
# ContainerStatus holds the information of container name and image digest
|
|
25
|
+
# value.
|
|
26
|
+
# @!attribute [rw] name
|
|
27
|
+
# @return [::String]
|
|
28
|
+
# The name of the container, if specified.
|
|
29
|
+
# @!attribute [rw] image_digest
|
|
30
|
+
# @return [::String]
|
|
31
|
+
# ImageDigest holds the resolved digest for the image specified and resolved
|
|
32
|
+
# during the creation of Revision. This field holds the digest value
|
|
33
|
+
# regardless of whether a tag or digest was originally specified in the
|
|
34
|
+
# Container object.
|
|
35
|
+
class ContainerStatus
|
|
36
|
+
include ::Google::Protobuf::MessageExts
|
|
37
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# Copyright 2026 Google LLC
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this file except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Cloud
|
|
22
|
+
module Run
|
|
23
|
+
module V2
|
|
24
|
+
# @!attribute [rw] parent
|
|
25
|
+
# @return [::String]
|
|
26
|
+
# @!attribute [rw] instance
|
|
27
|
+
# @return [::Google::Cloud::Run::V2::Instance]
|
|
28
|
+
# @!attribute [rw] instance_id
|
|
29
|
+
# @return [::String]
|
|
30
|
+
# Required. The unique identifier for the Instance. It must begin with
|
|
31
|
+
# letter, and cannot end with hyphen; must contain fewer than 50 characters.
|
|
32
|
+
# The name of the instance becomes \\{parent}/instances/\\{instance_id}.
|
|
33
|
+
# @!attribute [rw] validate_only
|
|
34
|
+
# @return [::Boolean]
|
|
35
|
+
# Optional. Indicates that the request should be validated and default values
|
|
36
|
+
# populated, without persisting the request or creating any resources.
|
|
37
|
+
class CreateInstanceRequest
|
|
38
|
+
include ::Google::Protobuf::MessageExts
|
|
39
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# @!attribute [rw] name
|
|
43
|
+
# @return [::String]
|
|
44
|
+
class GetInstanceRequest
|
|
45
|
+
include ::Google::Protobuf::MessageExts
|
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# @!attribute [rw] name
|
|
50
|
+
# @return [::String]
|
|
51
|
+
# @!attribute [rw] validate_only
|
|
52
|
+
# @return [::Boolean]
|
|
53
|
+
# Optional. Indicates that the request should be validated without actually
|
|
54
|
+
# deleting any resources.
|
|
55
|
+
# @!attribute [rw] etag
|
|
56
|
+
# @return [::String]
|
|
57
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
58
|
+
# resource. May be used to detect modification conflict during updates.
|
|
59
|
+
class DeleteInstanceRequest
|
|
60
|
+
include ::Google::Protobuf::MessageExts
|
|
61
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Request message for retrieving a list of Instances.
|
|
65
|
+
# @!attribute [rw] parent
|
|
66
|
+
# @return [::String]
|
|
67
|
+
# Required. The location and project to list resources on.
|
|
68
|
+
# Format: projects/\\{project}/locations/\\{location}, where \\{project} can be
|
|
69
|
+
# project id or number.
|
|
70
|
+
# @!attribute [rw] page_size
|
|
71
|
+
# @return [::Integer]
|
|
72
|
+
# Optional. Maximum number of Instances to return in this call.
|
|
73
|
+
# @!attribute [rw] page_token
|
|
74
|
+
# @return [::String]
|
|
75
|
+
# Optional. A page token received from a previous call to ListInstances.
|
|
76
|
+
# All other parameters must match.
|
|
77
|
+
# @!attribute [rw] show_deleted
|
|
78
|
+
# @return [::Boolean]
|
|
79
|
+
# Optional. If true, returns deleted (but unexpired) resources along with
|
|
80
|
+
# active ones.
|
|
81
|
+
class ListInstancesRequest
|
|
82
|
+
include ::Google::Protobuf::MessageExts
|
|
83
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Response message containing a list of Instances.
|
|
87
|
+
# @!attribute [rw] instances
|
|
88
|
+
# @return [::Array<::Google::Cloud::Run::V2::Instance>]
|
|
89
|
+
# The resulting list of Instances.
|
|
90
|
+
# @!attribute [rw] next_page_token
|
|
91
|
+
# @return [::String]
|
|
92
|
+
# A token indicating there are more items than page_size. Use it in the next
|
|
93
|
+
# ListInstances request to continue.
|
|
94
|
+
class ListInstancesResponse
|
|
95
|
+
include ::Google::Protobuf::MessageExts
|
|
96
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Request message for deleting an Instance.
|
|
100
|
+
# @!attribute [rw] name
|
|
101
|
+
# @return [::String]
|
|
102
|
+
# Required. The name of the Instance to stop.
|
|
103
|
+
# Format:
|
|
104
|
+
# `projects/{project}/locations/{location}/instances/{instance}`,
|
|
105
|
+
# where `{project}` can be project id or number.
|
|
106
|
+
# @!attribute [rw] validate_only
|
|
107
|
+
# @return [::Boolean]
|
|
108
|
+
# Optional. Indicates that the request should be validated without actually
|
|
109
|
+
# stopping any resources.
|
|
110
|
+
# @!attribute [rw] etag
|
|
111
|
+
# @return [::String]
|
|
112
|
+
# Optional. A system-generated fingerprint for this version of the resource.
|
|
113
|
+
# This may be used to detect modification conflict during updates.
|
|
114
|
+
class StopInstanceRequest
|
|
115
|
+
include ::Google::Protobuf::MessageExts
|
|
116
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Request message for starting an Instance.
|
|
120
|
+
# @!attribute [rw] name
|
|
121
|
+
# @return [::String]
|
|
122
|
+
# Required. The name of the Instance to stop.
|
|
123
|
+
# Format:
|
|
124
|
+
# `projects/{project}/locations/{location}/instances/{instance}`,
|
|
125
|
+
# where `{project}` can be project id or number.
|
|
126
|
+
# @!attribute [rw] validate_only
|
|
127
|
+
# @return [::Boolean]
|
|
128
|
+
# Optional. Indicates that the request should be validated without actually
|
|
129
|
+
# stopping any resources.
|
|
130
|
+
# @!attribute [rw] etag
|
|
131
|
+
# @return [::String]
|
|
132
|
+
# Optional. A system-generated fingerprint for this version of the resource.
|
|
133
|
+
# This may be used to detect modification conflict during updates.
|
|
134
|
+
class StartInstanceRequest
|
|
135
|
+
include ::Google::Protobuf::MessageExts
|
|
136
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# A Cloud Run Instance represents a single group of containers running in a
|
|
140
|
+
# region.
|
|
141
|
+
# @!attribute [rw] name
|
|
142
|
+
# @return [::String]
|
|
143
|
+
# The fully qualified name of this Instance. In CreateInstanceRequest, this
|
|
144
|
+
# field is ignored, and instead composed from CreateInstanceRequest.parent
|
|
145
|
+
# and CreateInstanceRequest.instance_id.
|
|
146
|
+
#
|
|
147
|
+
# Format:
|
|
148
|
+
# projects/\\{project}/locations/\\{location}/instances/\\{instance_id}
|
|
149
|
+
# @!attribute [rw] description
|
|
150
|
+
# @return [::String]
|
|
151
|
+
# User-provided description of the Instance. This field currently has a
|
|
152
|
+
# 512-character limit.
|
|
153
|
+
# @!attribute [r] uid
|
|
154
|
+
# @return [::String]
|
|
155
|
+
# Output only. Server assigned unique identifier for the trigger. The value
|
|
156
|
+
# is a UUID4 string and guaranteed to remain unchanged until the resource is
|
|
157
|
+
# deleted.
|
|
158
|
+
# @!attribute [r] generation
|
|
159
|
+
# @return [::Integer]
|
|
160
|
+
# Output only. A number that monotonically increases every time the user
|
|
161
|
+
# modifies the desired state.
|
|
162
|
+
# Please note that unlike v1, this is an int64 value. As with most Google
|
|
163
|
+
# APIs, its JSON representation will be a `string` instead of an `integer`.
|
|
164
|
+
# @!attribute [rw] labels
|
|
165
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
166
|
+
# @!attribute [rw] annotations
|
|
167
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
168
|
+
# @!attribute [r] create_time
|
|
169
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
170
|
+
# Output only. The creation time.
|
|
171
|
+
# @!attribute [r] update_time
|
|
172
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
173
|
+
# Output only. The last-modified time.
|
|
174
|
+
# @!attribute [r] delete_time
|
|
175
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
176
|
+
# Output only. The deletion time.
|
|
177
|
+
# @!attribute [r] expire_time
|
|
178
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
179
|
+
# Output only. For a deleted resource, the time after which it will be
|
|
180
|
+
# permamently deleted.
|
|
181
|
+
# @!attribute [r] creator
|
|
182
|
+
# @return [::String]
|
|
183
|
+
# Output only. Email address of the authenticated creator.
|
|
184
|
+
# @!attribute [r] last_modifier
|
|
185
|
+
# @return [::String]
|
|
186
|
+
# Output only. Email address of the last authenticated modifier.
|
|
187
|
+
# @!attribute [rw] client
|
|
188
|
+
# @return [::String]
|
|
189
|
+
# Arbitrary identifier for the API client.
|
|
190
|
+
# @!attribute [rw] client_version
|
|
191
|
+
# @return [::String]
|
|
192
|
+
# Arbitrary version identifier for the API client.
|
|
193
|
+
# @!attribute [rw] launch_stage
|
|
194
|
+
# @return [::Google::Api::LaunchStage]
|
|
195
|
+
# The launch stage as defined by [Google Cloud Platform
|
|
196
|
+
# Launch Stages](https://cloud.google.com/terms/launch-stages).
|
|
197
|
+
# Cloud Run supports `ALPHA`, `BETA`, and `GA`. If no value is specified, GA
|
|
198
|
+
# is assumed.
|
|
199
|
+
# Set the launch stage to a preview stage on input to allow use of preview
|
|
200
|
+
# features in that stage. On read (or output), describes whether the
|
|
201
|
+
# resource uses preview features.
|
|
202
|
+
# <p>
|
|
203
|
+
# For example, if ALPHA is provided as input, but only BETA and GA-level
|
|
204
|
+
# features are used, this field will be BETA on output.
|
|
205
|
+
# @!attribute [rw] binary_authorization
|
|
206
|
+
# @return [::Google::Cloud::Run::V2::BinaryAuthorization]
|
|
207
|
+
# Settings for the Binary Authorization feature.
|
|
208
|
+
# @!attribute [rw] vpc_access
|
|
209
|
+
# @return [::Google::Cloud::Run::V2::VpcAccess]
|
|
210
|
+
# Optional. VPC Access configuration to use for this Revision. For more
|
|
211
|
+
# information, visit
|
|
212
|
+
# https://cloud.google.com/run/docs/configuring/connecting-vpc.
|
|
213
|
+
# @!attribute [rw] service_account
|
|
214
|
+
# @return [::String]
|
|
215
|
+
# @!attribute [rw] containers
|
|
216
|
+
# @return [::Array<::Google::Cloud::Run::V2::Container>]
|
|
217
|
+
# Required. Holds the single container that defines the unit of execution for
|
|
218
|
+
# this Instance.
|
|
219
|
+
# @!attribute [rw] volumes
|
|
220
|
+
# @return [::Array<::Google::Cloud::Run::V2::Volume>]
|
|
221
|
+
# A list of Volumes to make available to containers.
|
|
222
|
+
# @!attribute [rw] encryption_key
|
|
223
|
+
# @return [::String]
|
|
224
|
+
# A reference to a customer managed encryption key (CMEK) to use to encrypt
|
|
225
|
+
# this container image. For more information, go to
|
|
226
|
+
# https://cloud.google.com/run/docs/securing/using-cmek
|
|
227
|
+
# @!attribute [rw] encryption_key_revocation_action
|
|
228
|
+
# @return [::Google::Cloud::Run::V2::EncryptionKeyRevocationAction]
|
|
229
|
+
# The action to take if the encryption key is revoked.
|
|
230
|
+
# @!attribute [rw] encryption_key_shutdown_duration
|
|
231
|
+
# @return [::Google::Protobuf::Duration]
|
|
232
|
+
# If encryption_key_revocation_action is SHUTDOWN, the duration before
|
|
233
|
+
# shutting down all instances. The minimum increment is 1 hour.
|
|
234
|
+
# @!attribute [rw] node_selector
|
|
235
|
+
# @return [::Google::Cloud::Run::V2::NodeSelector]
|
|
236
|
+
# Optional. The node selector for the instance.
|
|
237
|
+
# @!attribute [rw] gpu_zonal_redundancy_disabled
|
|
238
|
+
# @return [::Boolean]
|
|
239
|
+
# Optional. True if GPU zonal redundancy is disabled on this instance.
|
|
240
|
+
# @!attribute [rw] ingress
|
|
241
|
+
# @return [::Google::Cloud::Run::V2::IngressTraffic]
|
|
242
|
+
# Optional. Provides the ingress settings for this Instance. On output,
|
|
243
|
+
# returns the currently observed ingress settings, or
|
|
244
|
+
# INGRESS_TRAFFIC_UNSPECIFIED if no revision is active.
|
|
245
|
+
# @!attribute [rw] invoker_iam_disabled
|
|
246
|
+
# @return [::Boolean]
|
|
247
|
+
# Optional. Disables IAM permission check for run.routes.invoke for callers
|
|
248
|
+
# of this Instance. For more information, visit
|
|
249
|
+
# https://cloud.google.com/run/docs/securing/managing-access#invoker_check.
|
|
250
|
+
# @!attribute [rw] iap_enabled
|
|
251
|
+
# @return [::Boolean]
|
|
252
|
+
# Optional. IAP settings on the Instance.
|
|
253
|
+
# @!attribute [r] observed_generation
|
|
254
|
+
# @return [::Integer]
|
|
255
|
+
# Output only. The generation of this Instance currently serving traffic. See
|
|
256
|
+
# comments in `reconciling` for additional information on reconciliation
|
|
257
|
+
# process in Cloud Run. Please note that unlike v1, this is an int64 value.
|
|
258
|
+
# As with most Google APIs, its JSON representation will be a `string`
|
|
259
|
+
# instead of an `integer`.
|
|
260
|
+
# @!attribute [r] log_uri
|
|
261
|
+
# @return [::String]
|
|
262
|
+
# Output only. The Google Console URI to obtain logs for the Instance.
|
|
263
|
+
# @!attribute [r] terminal_condition
|
|
264
|
+
# @return [::Google::Cloud::Run::V2::Condition]
|
|
265
|
+
# Output only. The Condition of this Instance, containing its readiness
|
|
266
|
+
# status, and detailed error information in case it did not reach a serving
|
|
267
|
+
# state. See comments in `reconciling` for additional information on
|
|
268
|
+
# reconciliation process in Cloud Run.
|
|
269
|
+
# @!attribute [r] conditions
|
|
270
|
+
# @return [::Array<::Google::Cloud::Run::V2::Condition>]
|
|
271
|
+
# Output only. The Conditions of all other associated sub-resources. They
|
|
272
|
+
# contain additional diagnostics information in case the Instance does not
|
|
273
|
+
# reach its Serving state. See comments in `reconciling` for additional
|
|
274
|
+
# information on reconciliation process in Cloud Run.
|
|
275
|
+
# @!attribute [r] container_statuses
|
|
276
|
+
# @return [::Array<::Google::Cloud::Run::V2::ContainerStatus>]
|
|
277
|
+
# Output only. Status information for each of the specified containers. The
|
|
278
|
+
# status includes the resolved digest for specified images.
|
|
279
|
+
# @!attribute [r] satisfies_pzs
|
|
280
|
+
# @return [::Boolean]
|
|
281
|
+
# Output only. Reserved for future use.
|
|
282
|
+
# @!attribute [r] urls
|
|
283
|
+
# @return [::Array<::String>]
|
|
284
|
+
# Output only. All URLs serving traffic for this Instance.
|
|
285
|
+
# @!attribute [r] reconciling
|
|
286
|
+
# @return [::Boolean]
|
|
287
|
+
# Output only. Returns true if the Instance is currently being acted upon by
|
|
288
|
+
# the system to bring it into the desired state.
|
|
289
|
+
#
|
|
290
|
+
# When a new Instance is created, or an existing one is updated, Cloud Run
|
|
291
|
+
# will asynchronously perform all necessary steps to bring the Instance to
|
|
292
|
+
# the desired serving state. This process is called reconciliation. While
|
|
293
|
+
# reconciliation is in process, `observed_generation` will have a transient
|
|
294
|
+
# value that might mismatch the intended state.
|
|
295
|
+
# Once reconciliation is over (and this field is false), there are two
|
|
296
|
+
# possible outcomes: reconciliation succeeded and the serving state matches
|
|
297
|
+
# the Instance, or there was an error, and reconciliation failed. This state
|
|
298
|
+
# can be found in `terminal_condition.state`.
|
|
299
|
+
# @!attribute [rw] etag
|
|
300
|
+
# @return [::String]
|
|
301
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
302
|
+
# resource. May be used to detect modification conflict during updates.
|
|
303
|
+
class Instance
|
|
304
|
+
include ::Google::Protobuf::MessageExts
|
|
305
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
306
|
+
|
|
307
|
+
# @!attribute [rw] key
|
|
308
|
+
# @return [::String]
|
|
309
|
+
# @!attribute [rw] value
|
|
310
|
+
# @return [::String]
|
|
311
|
+
class LabelsEntry
|
|
312
|
+
include ::Google::Protobuf::MessageExts
|
|
313
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
# @!attribute [rw] key
|
|
317
|
+
# @return [::String]
|
|
318
|
+
# @!attribute [rw] value
|
|
319
|
+
# @return [::String]
|
|
320
|
+
class AnnotationsEntry
|
|
321
|
+
include ::Google::Protobuf::MessageExts
|
|
322
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
end
|
|
@@ -335,9 +335,9 @@ module Google
|
|
|
335
335
|
# The sum of job name and token length must be fewer than 63 characters.
|
|
336
336
|
#
|
|
337
337
|
# Note: The following fields are mutually exclusive: `run_execution_token`, `start_execution_token`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
338
|
-
# @!attribute [
|
|
338
|
+
# @!attribute [rw] etag
|
|
339
339
|
# @return [::String]
|
|
340
|
-
#
|
|
340
|
+
# Optional. A system-generated fingerprint for this version of the
|
|
341
341
|
# resource. May be used to detect modification conflict during updates.
|
|
342
342
|
class Job
|
|
343
343
|
include ::Google::Protobuf::MessageExts
|