google-cloud-compute-v1 3.3.0 → 3.5.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/compute/v1/accelerator_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +330 -20
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
- data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
- data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/advice.rb +47 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +198 -23
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +281 -25
- data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
- data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +390 -42
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
- data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
- data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +217 -10
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
- data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
- data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +473 -40
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1144 -99
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +127 -0
- data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
- data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
- data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
- data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
- data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
- data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
- data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
- data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
- data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +269 -29
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1268 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -0
- data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +280 -14
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
- data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
- data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
- data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
- data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
- data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
- data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/rest.rb +10 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +234 -22
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
- data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
- data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +320 -20
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +387 -26
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +64 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
- data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
- data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
- data/lib/google/cloud/compute/v1.rb +10 -0
- data/proto_docs/google/api/client.rb +149 -29
- data/proto_docs/google/cloud/compute/v1/compute.rb +44226 -5514
- metadata +52 -2
|
@@ -73,6 +73,46 @@ module Google
|
|
|
73
73
|
stub ? @client_stub.stub_logger : @client_stub.logger
|
|
74
74
|
end
|
|
75
75
|
|
|
76
|
+
##
|
|
77
|
+
# Baseline implementation for the aggregated_list REST call
|
|
78
|
+
#
|
|
79
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListRegionHealthCheckServicesRequest]
|
|
80
|
+
# A request object representing the call parameters. Required.
|
|
81
|
+
# @param options [::Gapic::CallOptions]
|
|
82
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
83
|
+
#
|
|
84
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
85
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::HealthCheckServiceAggregatedList]
|
|
86
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
87
|
+
#
|
|
88
|
+
# @return [::Google::Cloud::Compute::V1::HealthCheckServiceAggregatedList]
|
|
89
|
+
# A result object deserialized from the server's reply
|
|
90
|
+
def aggregated_list request_pb, options = nil
|
|
91
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
92
|
+
|
|
93
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_aggregated_list_request request_pb
|
|
94
|
+
query_string_params = if query_string_params.any?
|
|
95
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
96
|
+
else
|
|
97
|
+
{}
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
response = @client_stub.make_http_request(
|
|
101
|
+
verb,
|
|
102
|
+
uri: uri,
|
|
103
|
+
body: body || "",
|
|
104
|
+
params: query_string_params,
|
|
105
|
+
method_name: "aggregated_list",
|
|
106
|
+
options: options
|
|
107
|
+
)
|
|
108
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
109
|
+
result = ::Google::Cloud::Compute::V1::HealthCheckServiceAggregatedList.decode_json response.body, ignore_unknown_fields: true
|
|
110
|
+
catch :response do
|
|
111
|
+
yield result, operation if block_given?
|
|
112
|
+
result
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
76
116
|
##
|
|
77
117
|
# Baseline implementation for the delete REST call
|
|
78
118
|
#
|
|
@@ -273,6 +313,67 @@ module Google
|
|
|
273
313
|
end
|
|
274
314
|
end
|
|
275
315
|
|
|
316
|
+
##
|
|
317
|
+
# Baseline implementation for the test_iam_permissions REST call
|
|
318
|
+
#
|
|
319
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckServiceRequest]
|
|
320
|
+
# A request object representing the call parameters. Required.
|
|
321
|
+
# @param options [::Gapic::CallOptions]
|
|
322
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
323
|
+
#
|
|
324
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
325
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
326
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
327
|
+
#
|
|
328
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
329
|
+
# A result object deserialized from the server's reply
|
|
330
|
+
def test_iam_permissions request_pb, options = nil
|
|
331
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
332
|
+
|
|
333
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
334
|
+
query_string_params = if query_string_params.any?
|
|
335
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
336
|
+
else
|
|
337
|
+
{}
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
response = @client_stub.make_http_request(
|
|
341
|
+
verb,
|
|
342
|
+
uri: uri,
|
|
343
|
+
body: body || "",
|
|
344
|
+
params: query_string_params,
|
|
345
|
+
method_name: "test_iam_permissions",
|
|
346
|
+
options: options
|
|
347
|
+
)
|
|
348
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
349
|
+
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
350
|
+
catch :response do
|
|
351
|
+
yield result, operation if block_given?
|
|
352
|
+
result
|
|
353
|
+
end
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
##
|
|
357
|
+
# @private
|
|
358
|
+
#
|
|
359
|
+
# GRPC transcoding helper method for the aggregated_list REST call
|
|
360
|
+
#
|
|
361
|
+
# @param request_pb [::Google::Cloud::Compute::V1::AggregatedListRegionHealthCheckServicesRequest]
|
|
362
|
+
# A request object representing the call parameters. Required.
|
|
363
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
364
|
+
# Uri, Body, Query string parameters
|
|
365
|
+
def self.transcode_aggregated_list_request request_pb
|
|
366
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
367
|
+
.with_bindings(
|
|
368
|
+
uri_method: :get,
|
|
369
|
+
uri_template: "/compute/v1/projects/{project}/aggregated/healthCheckServices",
|
|
370
|
+
matches: [
|
|
371
|
+
["project", %r{^[^/]+/?$}, false]
|
|
372
|
+
]
|
|
373
|
+
)
|
|
374
|
+
transcoder.transcode request_pb
|
|
375
|
+
end
|
|
376
|
+
|
|
276
377
|
##
|
|
277
378
|
# @private
|
|
278
379
|
#
|
|
@@ -387,6 +488,30 @@ module Google
|
|
|
387
488
|
)
|
|
388
489
|
transcoder.transcode request_pb
|
|
389
490
|
end
|
|
491
|
+
|
|
492
|
+
##
|
|
493
|
+
# @private
|
|
494
|
+
#
|
|
495
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
|
496
|
+
#
|
|
497
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckServiceRequest]
|
|
498
|
+
# A request object representing the call parameters. Required.
|
|
499
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
500
|
+
# Uri, Body, Query string parameters
|
|
501
|
+
def self.transcode_test_iam_permissions_request request_pb
|
|
502
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
503
|
+
.with_bindings(
|
|
504
|
+
uri_method: :post,
|
|
505
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions",
|
|
506
|
+
body: "test_permissions_request_resource",
|
|
507
|
+
matches: [
|
|
508
|
+
["project", %r{^[^/]+/?$}, false],
|
|
509
|
+
["region", %r{^[^/]+/?$}, false],
|
|
510
|
+
["resource", %r{^[^/]+/?$}, false]
|
|
511
|
+
]
|
|
512
|
+
)
|
|
513
|
+
transcoder.transcode request_pb
|
|
514
|
+
end
|
|
390
515
|
end
|
|
391
516
|
end
|
|
392
517
|
end
|
|
@@ -87,6 +87,8 @@ module Google
|
|
|
87
87
|
|
|
88
88
|
default_config.rpcs.patch.timeout = 600.0
|
|
89
89
|
|
|
90
|
+
default_config.rpcs.test_iam_permissions.timeout = 600.0
|
|
91
|
+
|
|
90
92
|
default_config.rpcs.update.timeout = 600.0
|
|
91
93
|
|
|
92
94
|
default_config
|
|
@@ -232,7 +234,19 @@ module Google
|
|
|
232
234
|
# @param region [::String]
|
|
233
235
|
# Name of the region scoping this request.
|
|
234
236
|
# @param request_id [::String]
|
|
235
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
237
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
238
|
+
# that if you must retry your request, the server will know to ignore the
|
|
239
|
+
# request if it has already been completed.
|
|
240
|
+
#
|
|
241
|
+
# For example, consider a situation where you make an initial request and
|
|
242
|
+
# the request times out. If you make the request again with the same
|
|
243
|
+
# request ID, the server can check if original operation with the same
|
|
244
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
245
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
246
|
+
#
|
|
247
|
+
# The request ID must be
|
|
248
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
249
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
236
250
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
237
251
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
238
252
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -384,7 +398,8 @@ module Google
|
|
|
384
398
|
end
|
|
385
399
|
|
|
386
400
|
##
|
|
387
|
-
# Creates a HealthCheck resource in the specified project using the data
|
|
401
|
+
# Creates a HealthCheck resource in the specified project using the data
|
|
402
|
+
# included in the request.
|
|
388
403
|
#
|
|
389
404
|
# @overload insert(request, options = nil)
|
|
390
405
|
# Pass arguments to `insert` via a request object, either of type
|
|
@@ -408,7 +423,19 @@ module Google
|
|
|
408
423
|
# @param region [::String]
|
|
409
424
|
# Name of the region scoping this request.
|
|
410
425
|
# @param request_id [::String]
|
|
411
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
426
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
427
|
+
# that if you must retry your request, the server will know to ignore the
|
|
428
|
+
# request if it has already been completed.
|
|
429
|
+
#
|
|
430
|
+
# For example, consider a situation where you make an initial request and
|
|
431
|
+
# the request times out. If you make the request again with the same
|
|
432
|
+
# request ID, the server can check if original operation with the same
|
|
433
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
434
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
435
|
+
#
|
|
436
|
+
# The request ID must be
|
|
437
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
438
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
412
439
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
413
440
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
414
441
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -478,7 +505,8 @@ module Google
|
|
|
478
505
|
end
|
|
479
506
|
|
|
480
507
|
##
|
|
481
|
-
# Retrieves the list of HealthCheck resources available to the specified
|
|
508
|
+
# Retrieves the list of HealthCheck resources available to the specified
|
|
509
|
+
# project.
|
|
482
510
|
#
|
|
483
511
|
# @overload list(request, options = nil)
|
|
484
512
|
# Pass arguments to `list` via a request object, either of type
|
|
@@ -496,19 +524,97 @@ module Google
|
|
|
496
524
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
497
525
|
#
|
|
498
526
|
# @param filter [::String]
|
|
499
|
-
# A filter expression that filters resources listed in the response. Most
|
|
527
|
+
# A filter expression that filters resources listed in the response. Most
|
|
528
|
+
# Compute resources support two types of filter expressions:
|
|
529
|
+
# expressions that support regular expressions and expressions that follow
|
|
530
|
+
# API improvement proposal AIP-160.
|
|
531
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
532
|
+
#
|
|
533
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
534
|
+
# operator, and the value that you want to use for filtering. The value
|
|
535
|
+
# must be a string, a number, or a boolean. The operator
|
|
536
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
537
|
+
#
|
|
538
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
539
|
+
# exclude instances named `example-instance` by specifying
|
|
540
|
+
# `name != example-instance`.
|
|
541
|
+
#
|
|
542
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
543
|
+
# For example, to find all objects with `owner` label use:
|
|
544
|
+
# ```
|
|
545
|
+
# labels.owner:*
|
|
546
|
+
# ```
|
|
547
|
+
#
|
|
548
|
+
# You can also filter nested fields. For example, you could specify
|
|
549
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
550
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
551
|
+
# on nested fields to filter based onresource labels.
|
|
552
|
+
#
|
|
553
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
554
|
+
# parentheses. For example:
|
|
555
|
+
# ```
|
|
556
|
+
# (scheduling.automaticRestart = true)
|
|
557
|
+
# (cpuPlatform = "Intel Skylake")
|
|
558
|
+
# ```
|
|
559
|
+
# By default, each expression is an `AND` expression. However, you
|
|
560
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
561
|
+
# For example:
|
|
562
|
+
# ```
|
|
563
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
564
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
565
|
+
# (scheduling.automaticRestart = true)
|
|
566
|
+
# ```
|
|
567
|
+
#
|
|
568
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
569
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
570
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
571
|
+
#
|
|
572
|
+
# `fieldname eq unquoted literal`
|
|
573
|
+
# `fieldname eq 'single quoted literal'`
|
|
574
|
+
# `fieldname eq "double quoted literal"`
|
|
575
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
576
|
+
#
|
|
577
|
+
# The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
|
|
578
|
+
# The literal value must match the entire field.
|
|
579
|
+
#
|
|
580
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
581
|
+
# you would use `name ne .*instance`.
|
|
582
|
+
#
|
|
583
|
+
# You cannot combine constraints on multiple fields using regular
|
|
584
|
+
# expressions.
|
|
500
585
|
# @param max_results [::Integer]
|
|
501
|
-
# The maximum number of results per page that should be returned.
|
|
586
|
+
# The maximum number of results per page that should be returned.
|
|
587
|
+
# If the number of available results is larger than `maxResults`,
|
|
588
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
589
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
590
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
502
591
|
# @param order_by [::String]
|
|
503
|
-
# Sorts list results by a certain order. By default, results
|
|
592
|
+
# Sorts list results by a certain order. By default, results
|
|
593
|
+
# are returned in alphanumerical order based on the resource name.
|
|
594
|
+
#
|
|
595
|
+
# You can also sort results in descending order based on the creation
|
|
596
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
597
|
+
# results based on the `creationTimestamp` field in
|
|
598
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
599
|
+
# resources like operations so that the newest operation is returned first.
|
|
600
|
+
#
|
|
601
|
+
# Currently, only sorting by `name` or
|
|
602
|
+
# `creationTimestamp desc` is supported.
|
|
504
603
|
# @param page_token [::String]
|
|
505
|
-
# Specifies a page token to use. Set `pageToken` to the
|
|
604
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
605
|
+
# `nextPageToken` returned by a previous list request to get
|
|
606
|
+
# the next page of results.
|
|
506
607
|
# @param project [::String]
|
|
507
608
|
# Project ID for this request.
|
|
508
609
|
# @param region [::String]
|
|
509
610
|
# Name of the region scoping this request.
|
|
510
611
|
# @param return_partial_success [::Boolean]
|
|
511
|
-
# Opt-in for partial success behavior which provides partial results in case
|
|
612
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
613
|
+
# of failure. The default value is false.
|
|
614
|
+
#
|
|
615
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
616
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
617
|
+
# with an error code.
|
|
512
618
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
513
619
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheck>]
|
|
514
620
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -570,7 +676,10 @@ module Google
|
|
|
570
676
|
end
|
|
571
677
|
|
|
572
678
|
##
|
|
573
|
-
# Updates a HealthCheck resource in the specified project using the data
|
|
679
|
+
# Updates a HealthCheck resource in the specified project using the data
|
|
680
|
+
# included in the request. This method supportsPATCH
|
|
681
|
+
# semantics and uses theJSON merge
|
|
682
|
+
# patch format and processing rules.
|
|
574
683
|
#
|
|
575
684
|
# @overload patch(request, options = nil)
|
|
576
685
|
# Pass arguments to `patch` via a request object, either of type
|
|
@@ -596,7 +705,19 @@ module Google
|
|
|
596
705
|
# @param region [::String]
|
|
597
706
|
# Name of the region scoping this request.
|
|
598
707
|
# @param request_id [::String]
|
|
599
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
708
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
709
|
+
# that if you must retry your request, the server will know to ignore the
|
|
710
|
+
# request if it has already been completed.
|
|
711
|
+
#
|
|
712
|
+
# For example, consider a situation where you make an initial request and
|
|
713
|
+
# the request times out. If you make the request again with the same
|
|
714
|
+
# request ID, the server can check if original operation with the same
|
|
715
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
716
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
717
|
+
#
|
|
718
|
+
# The request ID must be
|
|
719
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
720
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
600
721
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
601
722
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
602
723
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -666,7 +787,92 @@ module Google
|
|
|
666
787
|
end
|
|
667
788
|
|
|
668
789
|
##
|
|
669
|
-
#
|
|
790
|
+
# Returns permissions that a caller has on the specified resource.
|
|
791
|
+
#
|
|
792
|
+
# @overload test_iam_permissions(request, options = nil)
|
|
793
|
+
# Pass arguments to `test_iam_permissions` via a request object, either of type
|
|
794
|
+
# {::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckRequest} or an equivalent Hash.
|
|
795
|
+
#
|
|
796
|
+
# @param request [::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckRequest, ::Hash]
|
|
797
|
+
# A request object representing the call parameters. Required. To specify no
|
|
798
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
799
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
800
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
801
|
+
#
|
|
802
|
+
# @overload test_iam_permissions(project: nil, region: nil, resource: nil, test_permissions_request_resource: nil)
|
|
803
|
+
# Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
|
|
804
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
805
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
806
|
+
#
|
|
807
|
+
# @param project [::String]
|
|
808
|
+
# Project ID for this request.
|
|
809
|
+
# @param region [::String]
|
|
810
|
+
# The name of the region for this request.
|
|
811
|
+
# @param resource [::String]
|
|
812
|
+
# Name or id of the resource for this request.
|
|
813
|
+
# @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
|
|
814
|
+
# The body resource for this request
|
|
815
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
816
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
817
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
818
|
+
#
|
|
819
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
820
|
+
#
|
|
821
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
822
|
+
#
|
|
823
|
+
# @example Basic example
|
|
824
|
+
# require "google/cloud/compute/v1"
|
|
825
|
+
#
|
|
826
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
827
|
+
# client = Google::Cloud::Compute::V1::RegionHealthChecks::Rest::Client.new
|
|
828
|
+
#
|
|
829
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
830
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckRequest.new
|
|
831
|
+
#
|
|
832
|
+
# # Call the test_iam_permissions method.
|
|
833
|
+
# result = client.test_iam_permissions request
|
|
834
|
+
#
|
|
835
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
836
|
+
# p result
|
|
837
|
+
#
|
|
838
|
+
def test_iam_permissions request, options = nil
|
|
839
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
840
|
+
|
|
841
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckRequest
|
|
842
|
+
|
|
843
|
+
# Converts hash and nil to an options object
|
|
844
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
845
|
+
|
|
846
|
+
# Customize the options with defaults
|
|
847
|
+
call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
|
|
848
|
+
|
|
849
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
850
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
851
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
852
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
|
853
|
+
transports_version_send: [:rest]
|
|
854
|
+
|
|
855
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
856
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
857
|
+
|
|
858
|
+
options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
|
|
859
|
+
metadata: call_metadata,
|
|
860
|
+
retry_policy: @config.rpcs.test_iam_permissions.retry_policy
|
|
861
|
+
|
|
862
|
+
options.apply_defaults timeout: @config.timeout,
|
|
863
|
+
metadata: @config.metadata,
|
|
864
|
+
retry_policy: @config.retry_policy
|
|
865
|
+
|
|
866
|
+
@region_health_checks_stub.test_iam_permissions request, options do |result, operation|
|
|
867
|
+
yield result, operation if block_given?
|
|
868
|
+
end
|
|
869
|
+
rescue ::Gapic::Rest::Error => e
|
|
870
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
871
|
+
end
|
|
872
|
+
|
|
873
|
+
##
|
|
874
|
+
# Updates a HealthCheck resource in the specified project using the data
|
|
875
|
+
# included in the request.
|
|
670
876
|
#
|
|
671
877
|
# @overload update(request, options = nil)
|
|
672
878
|
# Pass arguments to `update` via a request object, either of type
|
|
@@ -692,7 +898,19 @@ module Google
|
|
|
692
898
|
# @param region [::String]
|
|
693
899
|
# Name of the region scoping this request.
|
|
694
900
|
# @param request_id [::String]
|
|
695
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
|
901
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
902
|
+
# that if you must retry your request, the server will know to ignore the
|
|
903
|
+
# request if it has already been completed.
|
|
904
|
+
#
|
|
905
|
+
# For example, consider a situation where you make an initial request and
|
|
906
|
+
# the request times out. If you make the request again with the same
|
|
907
|
+
# request ID, the server can check if original operation with the same
|
|
908
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
909
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
910
|
+
#
|
|
911
|
+
# The request ID must be
|
|
912
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
913
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
696
914
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
697
915
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
|
698
916
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -933,6 +1151,11 @@ module Google
|
|
|
933
1151
|
#
|
|
934
1152
|
attr_reader :patch
|
|
935
1153
|
##
|
|
1154
|
+
# RPC-specific configuration for `test_iam_permissions`
|
|
1155
|
+
# @return [::Gapic::Config::Method]
|
|
1156
|
+
#
|
|
1157
|
+
attr_reader :test_iam_permissions
|
|
1158
|
+
##
|
|
936
1159
|
# RPC-specific configuration for `update`
|
|
937
1160
|
# @return [::Gapic::Config::Method]
|
|
938
1161
|
#
|
|
@@ -950,6 +1173,8 @@ module Google
|
|
|
950
1173
|
@list = ::Gapic::Config::Method.new list_config
|
|
951
1174
|
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
|
952
1175
|
@patch = ::Gapic::Config::Method.new patch_config
|
|
1176
|
+
test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
|
|
1177
|
+
@test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
|
|
953
1178
|
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
|
954
1179
|
@update = ::Gapic::Config::Method.new update_config
|
|
955
1180
|
|
|
@@ -273,6 +273,46 @@ module Google
|
|
|
273
273
|
end
|
|
274
274
|
end
|
|
275
275
|
|
|
276
|
+
##
|
|
277
|
+
# Baseline implementation for the test_iam_permissions REST call
|
|
278
|
+
#
|
|
279
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckRequest]
|
|
280
|
+
# A request object representing the call parameters. Required.
|
|
281
|
+
# @param options [::Gapic::CallOptions]
|
|
282
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
283
|
+
#
|
|
284
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
285
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
286
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
287
|
+
#
|
|
288
|
+
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
289
|
+
# A result object deserialized from the server's reply
|
|
290
|
+
def test_iam_permissions request_pb, options = nil
|
|
291
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
|
292
|
+
|
|
293
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
|
294
|
+
query_string_params = if query_string_params.any?
|
|
295
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
|
296
|
+
else
|
|
297
|
+
{}
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
response = @client_stub.make_http_request(
|
|
301
|
+
verb,
|
|
302
|
+
uri: uri,
|
|
303
|
+
body: body || "",
|
|
304
|
+
params: query_string_params,
|
|
305
|
+
method_name: "test_iam_permissions",
|
|
306
|
+
options: options
|
|
307
|
+
)
|
|
308
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
|
309
|
+
result = ::Google::Cloud::Compute::V1::TestPermissionsResponse.decode_json response.body, ignore_unknown_fields: true
|
|
310
|
+
catch :response do
|
|
311
|
+
yield result, operation if block_given?
|
|
312
|
+
result
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
276
316
|
##
|
|
277
317
|
# Baseline implementation for the update REST call
|
|
278
318
|
#
|
|
@@ -428,6 +468,30 @@ module Google
|
|
|
428
468
|
transcoder.transcode request_pb
|
|
429
469
|
end
|
|
430
470
|
|
|
471
|
+
##
|
|
472
|
+
# @private
|
|
473
|
+
#
|
|
474
|
+
# GRPC transcoding helper method for the test_iam_permissions REST call
|
|
475
|
+
#
|
|
476
|
+
# @param request_pb [::Google::Cloud::Compute::V1::TestIamPermissionsRegionHealthCheckRequest]
|
|
477
|
+
# A request object representing the call parameters. Required.
|
|
478
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
|
479
|
+
# Uri, Body, Query string parameters
|
|
480
|
+
def self.transcode_test_iam_permissions_request request_pb
|
|
481
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
|
482
|
+
.with_bindings(
|
|
483
|
+
uri_method: :post,
|
|
484
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions",
|
|
485
|
+
body: "test_permissions_request_resource",
|
|
486
|
+
matches: [
|
|
487
|
+
["project", %r{^[^/]+/?$}, false],
|
|
488
|
+
["region", %r{^[^/]+/?$}, false],
|
|
489
|
+
["resource", %r{^[^/]+/?$}, false]
|
|
490
|
+
]
|
|
491
|
+
)
|
|
492
|
+
transcoder.transcode request_pb
|
|
493
|
+
end
|
|
494
|
+
|
|
431
495
|
##
|
|
432
496
|
# @private
|
|
433
497
|
#
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
require "googleauth"
|
|
20
|
+
|
|
21
|
+
module Google
|
|
22
|
+
module Cloud
|
|
23
|
+
module Compute
|
|
24
|
+
module V1
|
|
25
|
+
module RegionHealthSources
|
|
26
|
+
# Credentials for the RegionHealthSources API.
|
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
|
28
|
+
self.scope = [
|
|
29
|
+
"https://www.googleapis.com/auth/compute",
|
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
|
31
|
+
]
|
|
32
|
+
self.env_vars = [
|
|
33
|
+
"COMPUTE_CREDENTIALS",
|
|
34
|
+
"COMPUTE_KEYFILE",
|
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
|
37
|
+
"GCLOUD_KEYFILE",
|
|
38
|
+
"COMPUTE_CREDENTIALS_JSON",
|
|
39
|
+
"COMPUTE_KEYFILE_JSON",
|
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
|
43
|
+
]
|
|
44
|
+
self.paths = [
|
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
|
46
|
+
]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|