google-cloud-run-v2 0.14.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 +3 -1
- data/lib/google/cloud/run/v2/revision_pb.rb +3 -1
- data/lib/google/cloud/run/v2/revision_services_pb.rb +2 -1
- data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -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/status_pb.rb +42 -0
- 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 +65 -28
- data/proto_docs/google/cloud/run/v2/revision.rb +3 -0
- data/proto_docs/google/cloud/run/v2/revision_template.rb +25 -21
- data/proto_docs/google/cloud/run/v2/service.rb +29 -20
- data/proto_docs/google/cloud/run/v2/status.rb +35 -0
- data/proto_docs/google/cloud/run/v2/task_template.rb +13 -12
- data/proto_docs/google/cloud/run/v2/vendor_settings.rb +34 -16
- metadata +4 -2
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
# Service that implements Longrunning Operations API.
|
28
28
|
class Operations
|
29
|
+
# @private
|
30
|
+
API_VERSION = ""
|
31
|
+
|
29
32
|
# @private
|
30
33
|
DEFAULT_ENDPOINT_TEMPLATE = "run.$UNIVERSE_DOMAIN$"
|
31
34
|
|
@@ -181,12 +184,13 @@ module Google
|
|
181
184
|
# Customize the options with defaults
|
182
185
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
183
186
|
|
184
|
-
# Set x-goog-api-client
|
187
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
185
188
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
186
189
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
187
190
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
188
191
|
transports_version_send: [:rest]
|
189
192
|
|
193
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
190
194
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
191
195
|
|
192
196
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -269,12 +273,13 @@ module Google
|
|
269
273
|
# Customize the options with defaults
|
270
274
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
271
275
|
|
272
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
273
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
274
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
275
279
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
276
280
|
transports_version_send: [:rest]
|
277
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
278
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
279
284
|
|
280
285
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -351,12 +356,13 @@ module Google
|
|
351
356
|
# Customize the options with defaults
|
352
357
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
353
358
|
|
354
|
-
# Set x-goog-api-client
|
359
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
360
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
361
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
362
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
358
363
|
transports_version_send: [:rest]
|
359
364
|
|
365
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
366
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
367
|
|
362
368
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -438,12 +444,13 @@ module Google
|
|
438
444
|
# Customize the options with defaults
|
439
445
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
440
446
|
|
441
|
-
# Set x-goog-api-client
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -535,12 +542,13 @@ module Google
|
|
535
542
|
# Customize the options with defaults
|
536
543
|
call_metadata = @config.rpcs.wait_operation.metadata.to_h
|
537
544
|
|
538
|
-
# Set x-goog-api-client
|
545
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
539
546
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
540
547
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
541
548
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
542
549
|
transports_version_send: [:rest]
|
543
550
|
|
551
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
544
552
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
545
553
|
|
546
554
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/run/v2/status.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
|
8
|
+
descriptor_data = "\n google/cloud/run/v2/status.proto\x12\x13google.cloud.run.v2\";\n\x15RevisionScalingStatus\x12\"\n\x1a\x64\x65sired_min_instance_count\x18\x01 \x01(\x05\x42S\n\x17\x63om.google.cloud.run.v2B\x0bStatusProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
28
|
+
end
|
29
|
+
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
32
|
+
end
|
33
|
+
|
34
|
+
module Google
|
35
|
+
module Cloud
|
36
|
+
module Run
|
37
|
+
module V2
|
38
|
+
RevisionScalingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RevisionScalingStatus").msgclass
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -4,13 +4,14 @@
|
|
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
|
require 'google/cloud/run/v2/k8s.min_pb'
|
9
10
|
require 'google/cloud/run/v2/vendor_settings_pb'
|
10
11
|
require 'google/protobuf/duration_pb'
|
11
12
|
|
12
13
|
|
13
|
-
descriptor_data = "\n\'google/cloud/run/v2/task_template.proto\x12\x13google.cloud.run.v2\x1a\x19google/api/resource.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\"\
|
14
|
+
descriptor_data = "\n\'google/cloud/run/v2/task_template.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\"\xae\x03\n\x0cTaskTemplate\x12\x32\n\ncontainers\x18\x01 \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12\x31\n\x07volumes\x18\x02 \x03(\x0b\x32\x1b.google.cloud.run.v2.VolumeB\x03\xe0\x41\x01\x12\x15\n\x0bmax_retries\x18\x03 \x01(\x05H\x00\x12/\n\x07timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12M\n\x15\x65xecution_environment\x18\x06 \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironmentB\x03\xe0\x41\x01\x12>\n\x0e\x65ncryption_key\x18\x07 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x37\n\nvpc_access\x18\x08 \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccessB\x03\xe0\x41\x01\x42\t\n\x07retriesBY\n\x17\x63om.google.cloud.run.v2B\x11TaskTemplateProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
14
15
|
|
15
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
17
|
|
@@ -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,
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/api/resource_pb'
|
9
9
|
|
10
10
|
|
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\"\
|
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"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -43,6 +43,7 @@ module Google
|
|
43
43
|
VpcAccess::VpcEgress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.VpcAccess.VpcEgress").enummodule
|
44
44
|
BinaryAuthorization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.BinaryAuthorization").msgclass
|
45
45
|
RevisionScaling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.RevisionScaling").msgclass
|
46
|
+
ServiceScaling = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ServiceScaling").msgclass
|
46
47
|
IngressTraffic = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.IngressTraffic").enummodule
|
47
48
|
ExecutionEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.ExecutionEnvironment").enummodule
|
48
49
|
EncryptionKeyRevocationAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.EncryptionKeyRevocationAction").enummodule
|
@@ -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
|
@@ -85,7 +85,7 @@ module Google
|
|
85
85
|
# ResourceRequirements describes the compute resource requirements.
|
86
86
|
# @!attribute [rw] limits
|
87
87
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
88
|
-
# Only
|
88
|
+
# Only `memory` and `cpu` keys in the map are supported.
|
89
89
|
#
|
90
90
|
# <p>Notes:
|
91
91
|
# * The only supported values for CPU are '1', '2', '4', and '8'. Setting 4
|
@@ -95,7 +95,9 @@ module Google
|
|
95
95
|
# https://cloud.google.com/run/docs/configuring/memory-limits
|
96
96
|
# @!attribute [rw] cpu_idle
|
97
97
|
# @return [::Boolean]
|
98
|
-
# Determines whether CPU
|
98
|
+
# Determines whether CPU is only allocated during requests (true by default).
|
99
|
+
# However, if ResourceRequirements is set, the caller must explicitly
|
100
|
+
# set this field to true to preserve the default behavior.
|
99
101
|
# @!attribute [rw] startup_cpu_boost
|
100
102
|
# @return [::Boolean]
|
101
103
|
# Determines whether CPU should be boosted on startup of a new container
|
@@ -209,6 +211,12 @@ module Google
|
|
209
211
|
# @!attribute [rw] empty_dir
|
210
212
|
# @return [::Google::Cloud::Run::V2::EmptyDirVolumeSource]
|
211
213
|
# Ephemeral storage used as a shared volume.
|
214
|
+
# @!attribute [rw] nfs
|
215
|
+
# @return [::Google::Cloud::Run::V2::NFSVolumeSource]
|
216
|
+
# For NFS Voumes, contains the path to the nfs Volume
|
217
|
+
# @!attribute [rw] gcs
|
218
|
+
# @return [::Google::Cloud::Run::V2::GCSVolumeSource]
|
219
|
+
# Persistent storage backed by a Google Cloud Storage bucket.
|
212
220
|
class Volume
|
213
221
|
include ::Google::Protobuf::MessageExts
|
214
222
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -337,40 +345,67 @@ module Google
|
|
337
345
|
end
|
338
346
|
end
|
339
347
|
|
348
|
+
# Represents an NFS mount.
|
349
|
+
# @!attribute [rw] server
|
350
|
+
# @return [::String]
|
351
|
+
# Hostname or IP address of the NFS server
|
352
|
+
# @!attribute [rw] path
|
353
|
+
# @return [::String]
|
354
|
+
# Path that is exported by the NFS server.
|
355
|
+
# @!attribute [rw] read_only
|
356
|
+
# @return [::Boolean]
|
357
|
+
# If true, the volume will be mounted as read only for all mounts.
|
358
|
+
class NFSVolumeSource
|
359
|
+
include ::Google::Protobuf::MessageExts
|
360
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
361
|
+
end
|
362
|
+
|
363
|
+
# Represents a volume backed by a Cloud Storage bucket using Cloud Storage
|
364
|
+
# FUSE.
|
365
|
+
# @!attribute [rw] bucket
|
366
|
+
# @return [::String]
|
367
|
+
# Cloud Storage Bucket name.
|
368
|
+
# @!attribute [rw] read_only
|
369
|
+
# @return [::Boolean]
|
370
|
+
# If true, the volume will be mounted as read only for all mounts.
|
371
|
+
class GCSVolumeSource
|
372
|
+
include ::Google::Protobuf::MessageExts
|
373
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
374
|
+
end
|
375
|
+
|
340
376
|
# Probe describes a health check to be performed against a container to
|
341
377
|
# determine whether it is alive or ready to receive traffic.
|
342
378
|
# @!attribute [rw] initial_delay_seconds
|
343
379
|
# @return [::Integer]
|
344
|
-
# Number of seconds after the container has started before the
|
345
|
-
# initiated.
|
346
|
-
#
|
347
|
-
# 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.
|
348
383
|
# @!attribute [rw] timeout_seconds
|
349
384
|
# @return [::Integer]
|
350
|
-
# Number of seconds after which the probe times out.
|
385
|
+
# Optional. Number of seconds after which the probe times out.
|
351
386
|
# Defaults to 1 second. Minimum value is 1. Maximum value is 3600.
|
352
387
|
# Must be smaller than period_seconds.
|
353
388
|
# @!attribute [rw] period_seconds
|
354
389
|
# @return [::Integer]
|
355
|
-
# How often (in seconds) to perform the probe.
|
390
|
+
# Optional. How often (in seconds) to perform the probe.
|
356
391
|
# Default to 10 seconds. Minimum value is 1. Maximum value for liveness probe
|
357
392
|
# is 3600. Maximum value for startup probe is 240.
|
358
393
|
# Must be greater or equal than timeout_seconds.
|
359
394
|
# @!attribute [rw] failure_threshold
|
360
395
|
# @return [::Integer]
|
361
|
-
# Minimum consecutive failures for the probe to be considered
|
362
|
-
# 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.
|
363
398
|
# @!attribute [rw] http_get
|
364
399
|
# @return [::Google::Cloud::Run::V2::HTTPGetAction]
|
365
|
-
# HTTPGet specifies the http request to perform.
|
400
|
+
# Optional. HTTPGet specifies the http request to perform.
|
366
401
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
367
402
|
# @!attribute [rw] tcp_socket
|
368
403
|
# @return [::Google::Cloud::Run::V2::TCPSocketAction]
|
369
|
-
# TCPSocket specifies an action involving a TCP port.
|
404
|
+
# Optional. TCPSocket specifies an action involving a TCP port.
|
370
405
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
371
406
|
# @!attribute [rw] grpc
|
372
407
|
# @return [::Google::Cloud::Run::V2::GRPCAction]
|
373
|
-
# GRPC specifies an action involving a gRPC port.
|
408
|
+
# Optional. GRPC specifies an action involving a gRPC port.
|
374
409
|
# Exactly one of httpGet, tcpSocket, or grpc must be specified.
|
375
410
|
class Probe
|
376
411
|
include ::Google::Protobuf::MessageExts
|
@@ -380,15 +415,16 @@ module Google
|
|
380
415
|
# HTTPGetAction describes an action based on HTTP Get requests.
|
381
416
|
# @!attribute [rw] path
|
382
417
|
# @return [::String]
|
383
|
-
# Path to access on the HTTP server. Defaults to '/'.
|
418
|
+
# Optional. Path to access on the HTTP server. Defaults to '/'.
|
384
419
|
# @!attribute [rw] http_headers
|
385
420
|
# @return [::Array<::Google::Cloud::Run::V2::HTTPHeader>]
|
386
|
-
# Custom headers to set in the request. HTTP allows repeated
|
421
|
+
# Optional. Custom headers to set in the request. HTTP allows repeated
|
422
|
+
# headers.
|
387
423
|
# @!attribute [rw] port
|
388
424
|
# @return [::Integer]
|
389
|
-
# Port number to access on the container. Must be in the range 1 to
|
390
|
-
# If not specified, defaults to the exposed port of the container,
|
391
|
-
# 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.
|
392
428
|
class HTTPGetAction
|
393
429
|
include ::Google::Protobuf::MessageExts
|
394
430
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -400,7 +436,7 @@ module Google
|
|
400
436
|
# Required. The header field name
|
401
437
|
# @!attribute [rw] value
|
402
438
|
# @return [::String]
|
403
|
-
# The header field value
|
439
|
+
# Optional. The header field value
|
404
440
|
class HTTPHeader
|
405
441
|
include ::Google::Protobuf::MessageExts
|
406
442
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -409,9 +445,9 @@ module Google
|
|
409
445
|
# TCPSocketAction describes an action based on opening a socket
|
410
446
|
# @!attribute [rw] port
|
411
447
|
# @return [::Integer]
|
412
|
-
# Port number to access on the container. Must be in the range 1 to
|
413
|
-
# If not specified, defaults to the exposed port of the container,
|
414
|
-
# 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.
|
415
451
|
class TCPSocketAction
|
416
452
|
include ::Google::Protobuf::MessageExts
|
417
453
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -420,14 +456,15 @@ module Google
|
|
420
456
|
# GRPCAction describes an action involving a GRPC port.
|
421
457
|
# @!attribute [rw] port
|
422
458
|
# @return [::Integer]
|
423
|
-
# Port number of the gRPC service. Number must be in the range 1 to
|
424
|
-
# If not specified, defaults to the exposed port of the container,
|
425
|
-
# 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.
|
426
462
|
# @!attribute [rw] service
|
427
463
|
# @return [::String]
|
428
|
-
# Service is the name of the service to place in the gRPC
|
429
|
-
# (see
|
430
|
-
#
|
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.
|
431
468
|
class GRPCAction
|
432
469
|
include ::Google::Protobuf::MessageExts
|
433
470
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -209,6 +209,9 @@ module Google
|
|
209
209
|
# @!attribute [rw] session_affinity
|
210
210
|
# @return [::Boolean]
|
211
211
|
# Enable session affinity.
|
212
|
+
# @!attribute [r] scaling_status
|
213
|
+
# @return [::Google::Cloud::Run::V2::RevisionScalingStatus]
|
214
|
+
# Output only. The current effective scaling settings for the revision.
|
212
215
|
# @!attribute [r] etag
|
213
216
|
# @return [::String]
|
214
217
|
# Output only. A system-generated fingerprint for this version of the
|