google-cloud-compute-v1 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +10 -8
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +24 -12
- data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -19
- data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
- data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1459 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +60 -30
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +120 -60
- data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +30 -15
- data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +42 -21
- data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +576 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +671 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +36 -18
- data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +58 -29
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
- data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
- data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_instances/rest.rb +35 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +287 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +22 -11
- data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +10 -5
- data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +16 -8
- data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +32 -16
- data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +14 -7
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +28 -14
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +34 -17
- data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +18 -9
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +26 -13
- data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +20 -10
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +12 -6
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +8 -4
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
- metadata +37 -12
@@ -76,6 +76,7 @@ module Google
|
|
76
76
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/forwardingRules"
|
77
77
|
body = request_pb.forwarding_rule_resource.to_json
|
78
78
|
query_string_params = {}
|
79
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
79
80
|
|
80
81
|
[uri, body, query_string_params]
|
81
82
|
end
|
@@ -105,6 +106,7 @@ module Google
|
|
105
106
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/forwardingRules/#{request_pb.forwarding_rule}"
|
106
107
|
body = request_pb.forwarding_rule_resource.to_json
|
107
108
|
query_string_params = {}
|
109
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
108
110
|
|
109
111
|
[uri, body, query_string_params]
|
110
112
|
end
|
@@ -117,6 +119,7 @@ module Google
|
|
117
119
|
uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/forwardingRules/#{request_pb.forwarding_rule}/setTarget"
|
118
120
|
body = request_pb.target_reference_resource.to_json
|
119
121
|
query_string_params = {}
|
122
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
120
123
|
|
121
124
|
[uri, body, query_string_params]
|
122
125
|
end
|
@@ -186,7 +186,8 @@ module Google
|
|
186
186
|
# Set x-goog-api-client header
|
187
187
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
188
188
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
189
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
189
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
190
|
+
transports_version_send: [:rest]
|
190
191
|
|
191
192
|
options.apply_defaults timeout: @config.timeout,
|
192
193
|
metadata: call_metadata
|
@@ -251,7 +252,8 @@ module Google
|
|
251
252
|
# Set x-goog-api-client header
|
252
253
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
253
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
254
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
255
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
256
|
+
transports_version_send: [:rest]
|
255
257
|
|
256
258
|
options.apply_defaults timeout: @config.timeout,
|
257
259
|
metadata: call_metadata
|
@@ -321,15 +323,17 @@ module Google
|
|
321
323
|
# Set x-goog-api-client header
|
322
324
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
323
325
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
324
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
326
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
327
|
+
transports_version_send: [:rest]
|
325
328
|
|
326
329
|
options.apply_defaults timeout: @config.timeout,
|
327
330
|
metadata: call_metadata
|
328
331
|
|
329
|
-
uri, body,
|
332
|
+
uri, body, query_string_params = transcode_insert request
|
330
333
|
response = @client_stub.make_post_request(
|
331
334
|
uri: uri,
|
332
335
|
body: body,
|
336
|
+
params: query_string_params,
|
333
337
|
options: options
|
334
338
|
)
|
335
339
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -404,7 +408,8 @@ module Google
|
|
404
408
|
# Set x-goog-api-client header
|
405
409
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
406
410
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
407
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
411
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
412
|
+
transports_version_send: [:rest]
|
408
413
|
|
409
414
|
options.apply_defaults timeout: @config.timeout,
|
410
415
|
metadata: call_metadata
|
@@ -58,6 +58,7 @@ module Google
|
|
58
58
|
uri = "/compute/v1/projects/#{request_pb.project}/global/addresses"
|
59
59
|
body = request_pb.address_resource.to_json
|
60
60
|
query_string_params = {}
|
61
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
61
62
|
|
62
63
|
[uri, body, query_string_params]
|
63
64
|
end
|
@@ -186,7 +186,8 @@ module Google
|
|
186
186
|
# Set x-goog-api-client header
|
187
187
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
188
188
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
189
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
189
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
190
|
+
transports_version_send: [:rest]
|
190
191
|
|
191
192
|
options.apply_defaults timeout: @config.timeout,
|
192
193
|
metadata: call_metadata
|
@@ -251,7 +252,8 @@ module Google
|
|
251
252
|
# Set x-goog-api-client header
|
252
253
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
253
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
254
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
255
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
256
|
+
transports_version_send: [:rest]
|
255
257
|
|
256
258
|
options.apply_defaults timeout: @config.timeout,
|
257
259
|
metadata: call_metadata
|
@@ -321,15 +323,17 @@ module Google
|
|
321
323
|
# Set x-goog-api-client header
|
322
324
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
323
325
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
324
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
326
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
327
|
+
transports_version_send: [:rest]
|
325
328
|
|
326
329
|
options.apply_defaults timeout: @config.timeout,
|
327
330
|
metadata: call_metadata
|
328
331
|
|
329
|
-
uri, body,
|
332
|
+
uri, body, query_string_params = transcode_insert request
|
330
333
|
response = @client_stub.make_post_request(
|
331
334
|
uri: uri,
|
332
335
|
body: body,
|
336
|
+
params: query_string_params,
|
333
337
|
options: options
|
334
338
|
)
|
335
339
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -404,7 +408,8 @@ module Google
|
|
404
408
|
# Set x-goog-api-client header
|
405
409
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
406
410
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
407
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
411
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
412
|
+
transports_version_send: [:rest]
|
408
413
|
|
409
414
|
options.apply_defaults timeout: @config.timeout,
|
410
415
|
metadata: call_metadata
|
@@ -477,15 +482,17 @@ module Google
|
|
477
482
|
# Set x-goog-api-client header
|
478
483
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
479
484
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
480
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
485
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
486
|
+
transports_version_send: [:rest]
|
481
487
|
|
482
488
|
options.apply_defaults timeout: @config.timeout,
|
483
489
|
metadata: call_metadata
|
484
490
|
|
485
|
-
uri, body,
|
491
|
+
uri, body, query_string_params = transcode_patch request
|
486
492
|
response = @client_stub.make_patch_request(
|
487
493
|
uri: uri,
|
488
494
|
body: body,
|
495
|
+
params: query_string_params,
|
489
496
|
options: options
|
490
497
|
)
|
491
498
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -550,15 +557,17 @@ module Google
|
|
550
557
|
# Set x-goog-api-client header
|
551
558
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
552
559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
553
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
560
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
561
|
+
transports_version_send: [:rest]
|
554
562
|
|
555
563
|
options.apply_defaults timeout: @config.timeout,
|
556
564
|
metadata: call_metadata
|
557
565
|
|
558
|
-
uri, body,
|
566
|
+
uri, body, query_string_params = transcode_set_target request
|
559
567
|
response = @client_stub.make_post_request(
|
560
568
|
uri: uri,
|
561
569
|
body: body,
|
570
|
+
params: query_string_params,
|
562
571
|
options: options
|
563
572
|
)
|
564
573
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -58,6 +58,7 @@ module Google
|
|
58
58
|
uri = "/compute/v1/projects/#{request_pb.project}/global/forwardingRules"
|
59
59
|
body = request_pb.forwarding_rule_resource.to_json
|
60
60
|
query_string_params = {}
|
61
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
61
62
|
|
62
63
|
[uri, body, query_string_params]
|
63
64
|
end
|
@@ -87,6 +88,7 @@ module Google
|
|
87
88
|
uri = "/compute/v1/projects/#{request_pb.project}/global/forwardingRules/#{request_pb.forwarding_rule}"
|
88
89
|
body = request_pb.forwarding_rule_resource.to_json
|
89
90
|
query_string_params = {}
|
91
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
90
92
|
|
91
93
|
[uri, body, query_string_params]
|
92
94
|
end
|
@@ -99,6 +101,7 @@ module Google
|
|
99
101
|
uri = "/compute/v1/projects/#{request_pb.project}/global/forwardingRules/#{request_pb.forwarding_rule}/setTarget"
|
100
102
|
body = request_pb.target_reference_resource.to_json
|
101
103
|
query_string_params = {}
|
104
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
102
105
|
|
103
106
|
[uri, body, query_string_params]
|
104
107
|
end
|
@@ -188,15 +188,17 @@ module Google
|
|
188
188
|
# Set x-goog-api-client header
|
189
189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
190
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
191
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
191
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
192
|
+
transports_version_send: [:rest]
|
192
193
|
|
193
194
|
options.apply_defaults timeout: @config.timeout,
|
194
195
|
metadata: call_metadata
|
195
196
|
|
196
|
-
uri, body,
|
197
|
+
uri, body, query_string_params = transcode_attach_network_endpoints request
|
197
198
|
response = @client_stub.make_post_request(
|
198
199
|
uri: uri,
|
199
200
|
body: body,
|
201
|
+
params: query_string_params,
|
200
202
|
options: options
|
201
203
|
)
|
202
204
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -259,7 +261,8 @@ module Google
|
|
259
261
|
# Set x-goog-api-client header
|
260
262
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
261
263
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
262
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
264
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
265
|
+
transports_version_send: [:rest]
|
263
266
|
|
264
267
|
options.apply_defaults timeout: @config.timeout,
|
265
268
|
metadata: call_metadata
|
@@ -332,15 +335,17 @@ module Google
|
|
332
335
|
# Set x-goog-api-client header
|
333
336
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
334
337
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
335
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
338
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
339
|
+
transports_version_send: [:rest]
|
336
340
|
|
337
341
|
options.apply_defaults timeout: @config.timeout,
|
338
342
|
metadata: call_metadata
|
339
343
|
|
340
|
-
uri, body,
|
344
|
+
uri, body, query_string_params = transcode_detach_network_endpoints request
|
341
345
|
response = @client_stub.make_post_request(
|
342
346
|
uri: uri,
|
343
347
|
body: body,
|
348
|
+
params: query_string_params,
|
344
349
|
options: options
|
345
350
|
)
|
346
351
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -397,7 +402,8 @@ module Google
|
|
397
402
|
# Set x-goog-api-client header
|
398
403
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
399
404
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
400
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
405
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
406
|
+
transports_version_send: [:rest]
|
401
407
|
|
402
408
|
options.apply_defaults timeout: @config.timeout,
|
403
409
|
metadata: call_metadata
|
@@ -467,15 +473,17 @@ module Google
|
|
467
473
|
# Set x-goog-api-client header
|
468
474
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
469
475
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
470
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
476
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
477
|
+
transports_version_send: [:rest]
|
471
478
|
|
472
479
|
options.apply_defaults timeout: @config.timeout,
|
473
480
|
metadata: call_metadata
|
474
481
|
|
475
|
-
uri, body,
|
482
|
+
uri, body, query_string_params = transcode_insert request
|
476
483
|
response = @client_stub.make_post_request(
|
477
484
|
uri: uri,
|
478
485
|
body: body,
|
486
|
+
params: query_string_params,
|
479
487
|
options: options
|
480
488
|
)
|
481
489
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -550,7 +558,8 @@ module Google
|
|
550
558
|
# Set x-goog-api-client header
|
551
559
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
552
560
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
553
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
561
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
562
|
+
transports_version_send: [:rest]
|
554
563
|
|
555
564
|
options.apply_defaults timeout: @config.timeout,
|
556
565
|
metadata: call_metadata
|
@@ -635,7 +644,8 @@ module Google
|
|
635
644
|
# Set x-goog-api-client header
|
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
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
647
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
648
|
+
transports_version_send: [:rest]
|
639
649
|
|
640
650
|
options.apply_defaults timeout: @config.timeout,
|
641
651
|
metadata: call_metadata
|
@@ -33,6 +33,7 @@ module Google
|
|
33
33
|
uri = "/compute/v1/projects/#{request_pb.project}/global/networkEndpointGroups/#{request_pb.network_endpoint_group}/attachNetworkEndpoints"
|
34
34
|
body = request_pb.global_network_endpoint_groups_attach_endpoints_request_resource.to_json
|
35
35
|
query_string_params = {}
|
36
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
36
37
|
|
37
38
|
[uri, body, query_string_params]
|
38
39
|
end
|
@@ -58,6 +59,7 @@ module Google
|
|
58
59
|
uri = "/compute/v1/projects/#{request_pb.project}/global/networkEndpointGroups/#{request_pb.network_endpoint_group}/detachNetworkEndpoints"
|
59
60
|
body = request_pb.global_network_endpoint_groups_detach_endpoints_request_resource.to_json
|
60
61
|
query_string_params = {}
|
62
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
61
63
|
|
62
64
|
[uri, body, query_string_params]
|
63
65
|
end
|
@@ -82,6 +84,7 @@ module Google
|
|
82
84
|
uri = "/compute/v1/projects/#{request_pb.project}/global/networkEndpointGroups"
|
83
85
|
body = request_pb.network_endpoint_group_resource.to_json
|
84
86
|
query_string_params = {}
|
87
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
85
88
|
|
86
89
|
[uri, body, query_string_params]
|
87
90
|
end
|
@@ -200,7 +200,8 @@ module Google
|
|
200
200
|
# Set x-goog-api-client header
|
201
201
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
202
202
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
203
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
203
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
204
|
+
transports_version_send: [:rest]
|
204
205
|
|
205
206
|
options.apply_defaults timeout: @config.timeout,
|
206
207
|
metadata: call_metadata
|
@@ -265,7 +266,8 @@ module Google
|
|
265
266
|
# Set x-goog-api-client header
|
266
267
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
267
268
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
268
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
269
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
270
|
+
transports_version_send: [:rest]
|
269
271
|
|
270
272
|
options.apply_defaults timeout: @config.timeout,
|
271
273
|
metadata: call_metadata
|
@@ -329,7 +331,8 @@ module Google
|
|
329
331
|
# Set x-goog-api-client header
|
330
332
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
331
333
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
332
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
334
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
335
|
+
transports_version_send: [:rest]
|
333
336
|
|
334
337
|
options.apply_defaults timeout: @config.timeout,
|
335
338
|
metadata: call_metadata
|
@@ -411,7 +414,8 @@ module Google
|
|
411
414
|
# Set x-goog-api-client header
|
412
415
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
413
416
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
414
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
417
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
418
|
+
transports_version_send: [:rest]
|
415
419
|
|
416
420
|
options.apply_defaults timeout: @config.timeout,
|
417
421
|
metadata: call_metadata
|
@@ -480,7 +484,8 @@ module Google
|
|
480
484
|
# Set x-goog-api-client header
|
481
485
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
482
486
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
483
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
487
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
488
|
+
transports_version_send: [:rest]
|
484
489
|
|
485
490
|
options.apply_defaults timeout: @config.timeout,
|
486
491
|
metadata: call_metadata
|
@@ -180,7 +180,8 @@ module Google
|
|
180
180
|
# Set x-goog-api-client header
|
181
181
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
182
182
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
183
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
183
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
184
|
+
transports_version_send: [:rest]
|
184
185
|
|
185
186
|
options.apply_defaults timeout: @config.timeout,
|
186
187
|
metadata: call_metadata
|
@@ -245,7 +246,8 @@ module Google
|
|
245
246
|
# Set x-goog-api-client header
|
246
247
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
247
248
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
248
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
249
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
250
|
+
transports_version_send: [:rest]
|
249
251
|
|
250
252
|
options.apply_defaults timeout: @config.timeout,
|
251
253
|
metadata: call_metadata
|
@@ -328,7 +330,8 @@ module Google
|
|
328
330
|
# Set x-goog-api-client header
|
329
331
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
330
332
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
331
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
333
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
334
|
+
transports_version_send: [:rest]
|
332
335
|
|
333
336
|
options.apply_defaults timeout: @config.timeout,
|
334
337
|
metadata: call_metadata
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 "gapic/config"
|
20
|
+
require "gapic/config/method"
|
21
|
+
|
22
|
+
require "google/cloud/compute/v1/version"
|
23
|
+
|
24
|
+
require "google/cloud/compute/v1/global_public_delegated_prefixes/credentials"
|
25
|
+
require "google/cloud/compute/v1/global_public_delegated_prefixes/rest"
|
26
|
+
|
27
|
+
module Google
|
28
|
+
module Cloud
|
29
|
+
module Compute
|
30
|
+
module V1
|
31
|
+
# To load this service and instantiate a REST client:
|
32
|
+
#
|
33
|
+
# require "google/cloud/compute/v1/global_public_delegated_prefixes"
|
34
|
+
# client = ::Google::Cloud::Compute::V1::GlobalPublicDelegatedPrefixes::Rest::Client.new
|
35
|
+
#
|
36
|
+
module GlobalPublicDelegatedPrefixes
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
helper_path = ::File.join __dir__, "global_public_delegated_prefixes", "helpers.rb"
|
44
|
+
require "google/cloud/compute/v1/global_public_delegated_prefixes/helpers" if ::File.file? helper_path
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 GlobalPublicDelegatedPrefixes
|
26
|
+
# Credentials for the GlobalPublicDelegatedPrefixes 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
|