google-cloud-run-v2 0.14.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Cloud Run Revision 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
|
|
@@ -238,12 +241,13 @@ module Google
|
|
238
241
|
# Customize the options with defaults
|
239
242
|
call_metadata = @config.rpcs.get_revision.metadata.to_h
|
240
243
|
|
241
|
-
# Set x-goog-api-client
|
244
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
242
245
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
243
246
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
244
247
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
245
248
|
transports_version_send: [:rest]
|
246
249
|
|
250
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
247
251
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
248
252
|
|
249
253
|
options.apply_defaults timeout: @config.rpcs.get_revision.timeout,
|
@@ -263,7 +267,8 @@ module Google
|
|
263
267
|
end
|
264
268
|
|
265
269
|
##
|
266
|
-
# Lists Revisions from a given Service, or from a given location.
|
270
|
+
# Lists Revisions from a given Service, or from a given location. Results
|
271
|
+
# are sorted by creation time, descending.
|
267
272
|
#
|
268
273
|
# @overload list_revisions(request, options = nil)
|
269
274
|
# Pass arguments to `list_revisions` via a request object, either of type
|
@@ -330,12 +335,13 @@ module Google
|
|
330
335
|
# Customize the options with defaults
|
331
336
|
call_metadata = @config.rpcs.list_revisions.metadata.to_h
|
332
337
|
|
333
|
-
# Set x-goog-api-client
|
338
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
334
339
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
335
340
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
336
341
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
337
342
|
transports_version_send: [:rest]
|
338
343
|
|
344
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
339
345
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
340
346
|
|
341
347
|
options.apply_defaults timeout: @config.rpcs.list_revisions.timeout,
|
@@ -424,12 +430,13 @@ module Google
|
|
424
430
|
# Customize the options with defaults
|
425
431
|
call_metadata = @config.rpcs.delete_revision.metadata.to_h
|
426
432
|
|
427
|
-
# Set x-goog-api-client
|
433
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
428
434
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
429
435
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
430
436
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
431
437
|
transports_version_send: [:rest]
|
432
438
|
|
439
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
433
440
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
434
441
|
|
435
442
|
options.apply_defaults timeout: @config.rpcs.delete_revision.timeout,
|
@@ -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,
|
@@ -17,10 +17,11 @@ require 'google/cloud/run/v2/vendor_settings_pb'
|
|
17
17
|
require 'google/iam/v1/iam_policy_pb'
|
18
18
|
require 'google/iam/v1/policy_pb'
|
19
19
|
require 'google/longrunning/operations_pb'
|
20
|
+
require 'google/protobuf/field_mask_pb'
|
20
21
|
require 'google/protobuf/timestamp_pb'
|
21
22
|
|
22
23
|
|
23
|
-
descriptor_data = "\n!google/cloud/run/v2/service.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a+google/cloud/run/v2/revision_template.proto\x1a(google/cloud/run/v2/traffic_target.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x01\n\x14\x43reateServiceRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x32\n\x07service\x18\x02 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x17\n\nservice_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"
|
24
|
+
descriptor_data = "\n!google/cloud/run/v2/service.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a+google/cloud/run/v2/revision_template.proto\x1a(google/cloud/run/v2/traffic_target.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x01\n\x14\x43reateServiceRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x32\n\x07service\x18\x02 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x17\n\nservice_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb3\x01\n\x14UpdateServiceRequest\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x32\n\x07service\x18\x01 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x86\x01\n\x13ListServicesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"_\n\x14ListServicesResponse\x12.\n\x08services\x18\x01 \x03(\x0b\x32\x1c.google.cloud.run.v2.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x11GetServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\"m\n\x14\x44\x65leteServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xca\x0c\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12=\n\x06labels\x18\x05 \x03(\x0b\x32(.google.cloud.run.v2.Service.LabelsEntryB\x03\xe0\x41\x01\x12G\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32-.google.cloud.run.v2.Service.AnnotationsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\r \x01(\t\x12\x16\n\x0e\x63lient_version\x18\x0e \x01(\t\x12\x39\n\x07ingress\x18\x0f \x01(\x0e\x32#.google.cloud.run.v2.IngressTrafficB\x03\xe0\x41\x01\x12\x32\n\x0claunch_stage\x18\x10 \x01(\x0e\x32\x17.google.api.LaunchStageB\x03\xe0\x41\x01\x12K\n\x14\x62inary_authorization\x18\x11 \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorizationB\x03\xe0\x41\x01\x12<\n\x08template\x18\x12 \x01(\x0b\x32%.google.cloud.run.v2.RevisionTemplateB\x03\xe0\x41\x02\x12\x38\n\x07traffic\x18\x13 \x03(\x0b\x32\".google.cloud.run.v2.TrafficTargetB\x03\xe0\x41\x01\x12\x39\n\x07scaling\x18\x14 \x01(\x0b\x32#.google.cloud.run.v2.ServiceScalingB\x03\xe0\x41\x01\x12!\n\x14\x64\x65\x66\x61ult_uri_disabled\x18\x16 \x01(\x08\x42\x03\xe0\x41\x01\x12 \n\x13observed_generation\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x1f \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x42\n\x15latest_ready_revision\x18! \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x44\n\x17latest_created_revision\x18\" \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12G\n\x10traffic_statuses\x18# \x03(\x0b\x32(.google.cloud.run.v2.TrafficTargetStatusB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x10\x63ustom_audiences\x18% \x03(\t\x12\x1a\n\rsatisfies_pzs\x18& \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0breconciling\x18\x62 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:^\xea\x41[\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}R\x01\x01\x32\xcd\r\n\x08Services\x12\xfd\x01\n\rCreateService\x12).google.cloud.run.v2.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x19parent,service,service_id\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/locations/*}/services:\x07service\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xc3\x01\n\nGetService\x12&.google.cloud.run.v2.GetServiceRequest\x1a\x1c.google.cloud.run.v2.Service\"o\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xd5\x01\n\x0cListServices\x12(.google.cloud.run.v2.ListServicesRequest\x1a).google.cloud.run.v2.ListServicesResponse\"p\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/services\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\x92\x02\n\rUpdateService\x12).google.cloud.run.v2.UpdateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xb6\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x07service\xda\x41\x13service,update_mask\x82\xd3\xe4\x93\x02?24/v2/{service.name=projects/*/locations/*/services/*}:\x07service\x8a\xd3\xe4\x93\x02\x36\x12\x34\n\x0cservice.name\x12$projects/*/locations/{location=*}/**\x12\xe0\x01\n\rDeleteService\x12).google.cloud.run.v2.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\x90\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"E\x82\xd3\xe4\x93\x02?\x12=/v2/{resource=projects/*/locations/*/services/*}:getIamPolicy\x12\x93\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\xd3\xe4\x93\x02\x42\"=/v2/{resource=projects/*/locations/*/services/*}:setIamPolicy:\x01*\x12\xb9\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"N\x82\xd3\xe4\x93\x02H\"C/v2/{resource=projects/*/locations/*/services/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBT\n\x17\x63om.google.cloud.run.v2B\x0cServiceProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
|
24
25
|
|
25
26
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
26
27
|
|
@@ -35,6 +36,7 @@ rescue TypeError
|
|
35
36
|
file = pool.add_serialized_file(serialized)
|
36
37
|
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
37
38
|
imports = [
|
39
|
+
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
38
40
|
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
39
41
|
["google.cloud.run.v2.BinaryAuthorization", "google/cloud/run/v2/vendor_settings.proto"],
|
40
42
|
["google.cloud.run.v2.RevisionTemplate", "google/cloud/run/v2/revision_template.proto"],
|
@@ -37,7 +37,7 @@ module Google
|
|
37
37
|
rpc :CreateService, ::Google::Cloud::Run::V2::CreateServiceRequest, ::Google::Longrunning::Operation
|
38
38
|
# Gets information about a Service.
|
39
39
|
rpc :GetService, ::Google::Cloud::Run::V2::GetServiceRequest, ::Google::Cloud::Run::V2::Service
|
40
|
-
# Lists Services.
|
40
|
+
# Lists Services. Results are sorted by creation time, descending.
|
41
41
|
rpc :ListServices, ::Google::Cloud::Run::V2::ListServicesRequest, ::Google::Cloud::Run::V2::ListServicesResponse
|
42
42
|
# Updates a Service.
|
43
43
|
rpc :UpdateService, ::Google::Cloud::Run::V2::UpdateServiceRequest, ::Google::Longrunning::Operation
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Cloud Run Service 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
|
|
@@ -278,10 +281,11 @@ module Google
|
|
278
281
|
# Customize the options with defaults
|
279
282
|
metadata = @config.rpcs.create_service.metadata.to_h
|
280
283
|
|
281
|
-
# Set x-goog-api-client
|
284
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
282
285
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
283
286
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
284
287
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
288
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
285
289
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
286
290
|
|
287
291
|
header_params = {}
|
@@ -369,10 +373,11 @@ module Google
|
|
369
373
|
# Customize the options with defaults
|
370
374
|
metadata = @config.rpcs.get_service.metadata.to_h
|
371
375
|
|
372
|
-
# Set x-goog-api-client
|
376
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
373
377
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
374
378
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
375
379
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
380
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
376
381
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
377
382
|
|
378
383
|
header_params = {}
|
@@ -403,7 +408,7 @@ module Google
|
|
403
408
|
end
|
404
409
|
|
405
410
|
##
|
406
|
-
# Lists Services.
|
411
|
+
# Lists Services. Results are sorted by creation time, descending.
|
407
412
|
#
|
408
413
|
# @overload list_services(request, options = nil)
|
409
414
|
# Pass arguments to `list_services` via a request object, either of type
|
@@ -471,10 +476,11 @@ module Google
|
|
471
476
|
# Customize the options with defaults
|
472
477
|
metadata = @config.rpcs.list_services.metadata.to_h
|
473
478
|
|
474
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
475
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
476
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
477
482
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
478
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
479
485
|
|
480
486
|
header_params = {}
|
@@ -518,20 +524,22 @@ module Google
|
|
518
524
|
# @param options [::Gapic::CallOptions, ::Hash]
|
519
525
|
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
520
526
|
#
|
521
|
-
# @overload update_service(service: nil, validate_only: nil, allow_missing: nil)
|
527
|
+
# @overload update_service(update_mask: nil, service: nil, validate_only: nil, allow_missing: nil)
|
522
528
|
# Pass arguments to `update_service` via keyword arguments. Note that at
|
523
529
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
524
530
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
525
531
|
#
|
532
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
533
|
+
# Optional. The list of fields to be updated.
|
526
534
|
# @param service [::Google::Cloud::Run::V2::Service, ::Hash]
|
527
535
|
# Required. The Service to be updated.
|
528
536
|
# @param validate_only [::Boolean]
|
529
537
|
# Indicates that the request should be validated and default values
|
530
538
|
# populated, without persisting the request or updating any resources.
|
531
539
|
# @param allow_missing [::Boolean]
|
532
|
-
# If set to true, and if the Service does not exist, it will create
|
533
|
-
# one. The caller must have 'run.services.create' permissions if this
|
534
|
-
# to true and the Service does not exist.
|
540
|
+
# Optional. If set to true, and if the Service does not exist, it will create
|
541
|
+
# a new one. The caller must have 'run.services.create' permissions if this
|
542
|
+
# is set to true and the Service does not exist.
|
535
543
|
#
|
536
544
|
# @yield [response, operation] Access the result along with the RPC operation
|
537
545
|
# @yieldparam response [::Gapic::Operation]
|
@@ -574,10 +582,11 @@ module Google
|
|
574
582
|
# Customize the options with defaults
|
575
583
|
metadata = @config.rpcs.update_service.metadata.to_h
|
576
584
|
|
577
|
-
# Set x-goog-api-client
|
585
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
586
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
587
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
588
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
589
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
590
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
591
|
|
583
592
|
header_params = {}
|
@@ -680,10 +689,11 @@ module Google
|
|
680
689
|
# Customize the options with defaults
|
681
690
|
metadata = @config.rpcs.delete_service.metadata.to_h
|
682
691
|
|
683
|
-
# Set x-goog-api-client
|
692
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
684
693
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
685
694
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
686
695
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
696
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
687
697
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
688
698
|
|
689
699
|
header_params = {}
|
@@ -774,10 +784,11 @@ module Google
|
|
774
784
|
# Customize the options with defaults
|
775
785
|
metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
776
786
|
|
777
|
-
# Set x-goog-api-client
|
787
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
778
788
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
779
789
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
780
790
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
791
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
781
792
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
782
793
|
|
783
794
|
header_params = {}
|
@@ -872,10 +883,11 @@ module Google
|
|
872
883
|
# Customize the options with defaults
|
873
884
|
metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
874
885
|
|
875
|
-
# Set x-goog-api-client
|
886
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
876
887
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
877
888
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
878
889
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
890
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
879
891
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
880
892
|
|
881
893
|
header_params = {}
|
@@ -965,10 +977,11 @@ module Google
|
|
965
977
|
# Customize the options with defaults
|
966
978
|
metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
967
979
|
|
968
|
-
# Set x-goog-api-client
|
980
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
969
981
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
970
982
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
971
983
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
984
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
972
985
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
973
986
|
|
974
987
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Services
|
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
|
|
@@ -191,10 +194,11 @@ module Google
|
|
191
194
|
# Customize the options with defaults
|
192
195
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
193
196
|
|
194
|
-
# Set x-goog-api-client
|
197
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
195
198
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
196
199
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
197
200
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
294
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
291
295
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
292
296
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
293
297
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
384
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
380
385
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
381
386
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
382
387
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
479
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
480
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
481
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
482
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::Run::V2::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Cloud Run Service 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
|
|
@@ -270,12 +273,13 @@ module Google
|
|
270
273
|
# Customize the options with defaults
|
271
274
|
call_metadata = @config.rpcs.create_service.metadata.to_h
|
272
275
|
|
273
|
-
# Set x-goog-api-client
|
276
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
274
277
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
275
278
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
276
279
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
277
280
|
transports_version_send: [:rest]
|
278
281
|
|
282
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
279
283
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
280
284
|
|
281
285
|
options.apply_defaults timeout: @config.rpcs.create_service.timeout,
|
@@ -351,12 +355,13 @@ module Google
|
|
351
355
|
# Customize the options with defaults
|
352
356
|
call_metadata = @config.rpcs.get_service.metadata.to_h
|
353
357
|
|
354
|
-
# Set x-goog-api-client
|
358
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
355
359
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
356
360
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
357
361
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
358
362
|
transports_version_send: [:rest]
|
359
363
|
|
364
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
365
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
366
|
|
362
367
|
options.apply_defaults timeout: @config.rpcs.get_service.timeout,
|
@@ -376,7 +381,7 @@ module Google
|
|
376
381
|
end
|
377
382
|
|
378
383
|
##
|
379
|
-
# Lists Services.
|
384
|
+
# Lists Services. Results are sorted by creation time, descending.
|
380
385
|
#
|
381
386
|
# @overload list_services(request, options = nil)
|
382
387
|
# Pass arguments to `list_services` via a request object, either of type
|
@@ -443,12 +448,13 @@ module Google
|
|
443
448
|
# Customize the options with defaults
|
444
449
|
call_metadata = @config.rpcs.list_services.metadata.to_h
|
445
450
|
|
446
|
-
# Set x-goog-api-client
|
451
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
447
452
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
448
453
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
449
454
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
450
455
|
transports_version_send: [:rest]
|
451
456
|
|
457
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
452
458
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
453
459
|
|
454
460
|
options.apply_defaults timeout: @config.rpcs.list_services.timeout,
|
@@ -481,20 +487,22 @@ module Google
|
|
481
487
|
# @param options [::Gapic::CallOptions, ::Hash]
|
482
488
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
483
489
|
#
|
484
|
-
# @overload update_service(service: nil, validate_only: nil, allow_missing: nil)
|
490
|
+
# @overload update_service(update_mask: nil, service: nil, validate_only: nil, allow_missing: nil)
|
485
491
|
# Pass arguments to `update_service` via keyword arguments. Note that at
|
486
492
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
487
493
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
488
494
|
#
|
495
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
496
|
+
# Optional. The list of fields to be updated.
|
489
497
|
# @param service [::Google::Cloud::Run::V2::Service, ::Hash]
|
490
498
|
# Required. The Service to be updated.
|
491
499
|
# @param validate_only [::Boolean]
|
492
500
|
# Indicates that the request should be validated and default values
|
493
501
|
# populated, without persisting the request or updating any resources.
|
494
502
|
# @param allow_missing [::Boolean]
|
495
|
-
# If set to true, and if the Service does not exist, it will create
|
496
|
-
# one. The caller must have 'run.services.create' permissions if this
|
497
|
-
# to true and the Service does not exist.
|
503
|
+
# Optional. If set to true, and if the Service does not exist, it will create
|
504
|
+
# a new one. The caller must have 'run.services.create' permissions if this
|
505
|
+
# is set to true and the Service does not exist.
|
498
506
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
499
507
|
# @yieldparam result [::Gapic::Operation]
|
500
508
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -536,12 +544,13 @@ module Google
|
|
536
544
|
# Customize the options with defaults
|
537
545
|
call_metadata = @config.rpcs.update_service.metadata.to_h
|
538
546
|
|
539
|
-
# Set x-goog-api-client
|
547
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
540
548
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
541
549
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
542
550
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
543
551
|
transports_version_send: [:rest]
|
544
552
|
|
553
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
545
554
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
546
555
|
|
547
556
|
options.apply_defaults timeout: @config.rpcs.update_service.timeout,
|
@@ -632,12 +641,13 @@ module Google
|
|
632
641
|
# Customize the options with defaults
|
633
642
|
call_metadata = @config.rpcs.delete_service.metadata.to_h
|
634
643
|
|
635
|
-
# Set x-goog-api-client
|
644
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
636
645
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
637
646
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
638
647
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
639
648
|
transports_version_send: [:rest]
|
640
649
|
|
650
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
641
651
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
642
652
|
|
643
653
|
options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
|
@@ -716,12 +726,13 @@ module Google
|
|
716
726
|
# Customize the options with defaults
|
717
727
|
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
718
728
|
|
719
|
-
# Set x-goog-api-client
|
729
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
720
730
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
721
731
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
722
732
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
723
733
|
transports_version_send: [:rest]
|
724
734
|
|
735
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
725
736
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
726
737
|
|
727
738
|
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
@@ -807,12 +818,13 @@ module Google
|
|
807
818
|
# Customize the options with defaults
|
808
819
|
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
809
820
|
|
810
|
-
# Set x-goog-api-client
|
821
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
811
822
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
812
823
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
813
824
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
814
825
|
transports_version_send: [:rest]
|
815
826
|
|
827
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
816
828
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
817
829
|
|
818
830
|
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
@@ -893,12 +905,13 @@ module Google
|
|
893
905
|
# Customize the options with defaults
|
894
906
|
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
895
907
|
|
896
|
-
# Set x-goog-api-client
|
908
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
897
909
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
898
910
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
899
911
|
gapic_version: ::Google::Cloud::Run::V2::VERSION,
|
900
912
|
transports_version_send: [:rest]
|
901
913
|
|
914
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
902
915
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
903
916
|
|
904
917
|
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|