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
@@ -33,6 +33,7 @@ module Google
|
|
33
33
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/addSignedUrlKey"
|
34
34
|
body = request_pb.signed_url_key_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
|
@@ -114,6 +115,7 @@ module Google
|
|
114
115
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices"
|
115
116
|
body = request_pb.backend_service_resource.to_json
|
116
117
|
query_string_params = {}
|
118
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
117
119
|
|
118
120
|
[uri, body, query_string_params]
|
119
121
|
end
|
@@ -143,6 +145,7 @@ module Google
|
|
143
145
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}"
|
144
146
|
body = request_pb.backend_service_resource.to_json
|
145
147
|
query_string_params = {}
|
148
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
146
149
|
|
147
150
|
[uri, body, query_string_params]
|
148
151
|
end
|
@@ -155,6 +158,7 @@ module Google
|
|
155
158
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}/setSecurityPolicy"
|
156
159
|
body = request_pb.security_policy_reference_resource.to_json
|
157
160
|
query_string_params = {}
|
161
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
158
162
|
|
159
163
|
[uri, body, query_string_params]
|
160
164
|
end
|
@@ -167,6 +171,7 @@ module Google
|
|
167
171
|
uri = "/compute/v1/projects/#{request_pb.project}/global/backendServices/#{request_pb.backend_service}"
|
168
172
|
body = request_pb.backend_service_resource.to_json
|
169
173
|
query_string_params = {}
|
174
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
170
175
|
|
171
176
|
[uri, body, query_string_params]
|
172
177
|
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
|
@@ -267,7 +268,8 @@ module Google
|
|
267
268
|
# Set x-goog-api-client header
|
268
269
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
269
270
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
270
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
271
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
272
|
+
transports_version_send: [:rest]
|
271
273
|
|
272
274
|
options.apply_defaults timeout: @config.timeout,
|
273
275
|
metadata: call_metadata
|
@@ -351,7 +353,8 @@ module Google
|
|
351
353
|
# Set x-goog-api-client header
|
352
354
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
353
355
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
354
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
356
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
357
|
+
transports_version_send: [:rest]
|
355
358
|
|
356
359
|
options.apply_defaults timeout: @config.timeout,
|
357
360
|
metadata: call_metadata
|
@@ -190,15 +190,17 @@ module Google
|
|
190
190
|
# Set x-goog-api-client header
|
191
191
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
192
192
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
193
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
193
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
194
|
+
transports_version_send: [:rest]
|
194
195
|
|
195
196
|
options.apply_defaults timeout: @config.timeout,
|
196
197
|
metadata: call_metadata
|
197
198
|
|
198
|
-
uri, body,
|
199
|
+
uri, body, query_string_params = transcode_add_resource_policies request
|
199
200
|
response = @client_stub.make_post_request(
|
200
201
|
uri: uri,
|
201
202
|
body: body,
|
203
|
+
params: query_string_params,
|
202
204
|
options: options
|
203
205
|
)
|
204
206
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -275,7 +277,8 @@ module Google
|
|
275
277
|
# Set x-goog-api-client header
|
276
278
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
277
279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
278
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
280
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
281
|
+
transports_version_send: [:rest]
|
279
282
|
|
280
283
|
options.apply_defaults timeout: @config.timeout,
|
281
284
|
metadata: call_metadata
|
@@ -352,15 +355,17 @@ module Google
|
|
352
355
|
# Set x-goog-api-client header
|
353
356
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
354
357
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
355
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
358
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
359
|
+
transports_version_send: [:rest]
|
356
360
|
|
357
361
|
options.apply_defaults timeout: @config.timeout,
|
358
362
|
metadata: call_metadata
|
359
363
|
|
360
|
-
uri, body,
|
364
|
+
uri, body, query_string_params = transcode_create_snapshot request
|
361
365
|
response = @client_stub.make_post_request(
|
362
366
|
uri: uri,
|
363
367
|
body: body,
|
368
|
+
params: query_string_params,
|
364
369
|
options: options
|
365
370
|
)
|
366
371
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -425,7 +430,8 @@ module Google
|
|
425
430
|
# Set x-goog-api-client header
|
426
431
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
427
432
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
428
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
433
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
434
|
+
transports_version_send: [:rest]
|
429
435
|
|
430
436
|
options.apply_defaults timeout: @config.timeout,
|
431
437
|
metadata: call_metadata
|
@@ -492,7 +498,8 @@ module Google
|
|
492
498
|
# Set x-goog-api-client header
|
493
499
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
494
500
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
495
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
501
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
502
|
+
transports_version_send: [:rest]
|
496
503
|
|
497
504
|
options.apply_defaults timeout: @config.timeout,
|
498
505
|
metadata: call_metadata
|
@@ -560,7 +567,8 @@ module Google
|
|
560
567
|
# Set x-goog-api-client header
|
561
568
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
562
569
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
563
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
570
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
571
|
+
transports_version_send: [:rest]
|
564
572
|
|
565
573
|
options.apply_defaults timeout: @config.timeout,
|
566
574
|
metadata: call_metadata
|
@@ -635,15 +643,17 @@ module Google
|
|
635
643
|
# Set x-goog-api-client header
|
636
644
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
637
645
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
638
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
646
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
647
|
+
transports_version_send: [:rest]
|
639
648
|
|
640
649
|
options.apply_defaults timeout: @config.timeout,
|
641
650
|
metadata: call_metadata
|
642
651
|
|
643
|
-
uri, body,
|
652
|
+
uri, body, query_string_params = transcode_insert request
|
644
653
|
response = @client_stub.make_post_request(
|
645
654
|
uri: uri,
|
646
655
|
body: body,
|
656
|
+
params: query_string_params,
|
647
657
|
options: options
|
648
658
|
)
|
649
659
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -720,7 +730,8 @@ module Google
|
|
720
730
|
# Set x-goog-api-client header
|
721
731
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
722
732
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
723
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
733
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
734
|
+
transports_version_send: [:rest]
|
724
735
|
|
725
736
|
options.apply_defaults timeout: @config.timeout,
|
726
737
|
metadata: call_metadata
|
@@ -795,15 +806,17 @@ module Google
|
|
795
806
|
# Set x-goog-api-client header
|
796
807
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
797
808
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
798
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
809
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
810
|
+
transports_version_send: [:rest]
|
799
811
|
|
800
812
|
options.apply_defaults timeout: @config.timeout,
|
801
813
|
metadata: call_metadata
|
802
814
|
|
803
|
-
uri, body,
|
815
|
+
uri, body, query_string_params = transcode_remove_resource_policies request
|
804
816
|
response = @client_stub.make_post_request(
|
805
817
|
uri: uri,
|
806
818
|
body: body,
|
819
|
+
params: query_string_params,
|
807
820
|
options: options
|
808
821
|
)
|
809
822
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -870,15 +883,17 @@ module Google
|
|
870
883
|
# Set x-goog-api-client header
|
871
884
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
872
885
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
873
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
886
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
887
|
+
transports_version_send: [:rest]
|
874
888
|
|
875
889
|
options.apply_defaults timeout: @config.timeout,
|
876
890
|
metadata: call_metadata
|
877
891
|
|
878
|
-
uri, body,
|
892
|
+
uri, body, query_string_params = transcode_resize request
|
879
893
|
response = @client_stub.make_post_request(
|
880
894
|
uri: uri,
|
881
895
|
body: body,
|
896
|
+
params: query_string_params,
|
882
897
|
options: options
|
883
898
|
)
|
884
899
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -939,7 +954,8 @@ module Google
|
|
939
954
|
# Set x-goog-api-client header
|
940
955
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
941
956
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
942
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
957
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
958
|
+
transports_version_send: [:rest]
|
943
959
|
|
944
960
|
options.apply_defaults timeout: @config.timeout,
|
945
961
|
metadata: call_metadata
|
@@ -1014,15 +1030,17 @@ module Google
|
|
1014
1030
|
# Set x-goog-api-client header
|
1015
1031
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1016
1032
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1017
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1033
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1034
|
+
transports_version_send: [:rest]
|
1018
1035
|
|
1019
1036
|
options.apply_defaults timeout: @config.timeout,
|
1020
1037
|
metadata: call_metadata
|
1021
1038
|
|
1022
|
-
uri, body,
|
1039
|
+
uri, body, query_string_params = transcode_set_labels request
|
1023
1040
|
response = @client_stub.make_post_request(
|
1024
1041
|
uri: uri,
|
1025
1042
|
body: body,
|
1043
|
+
params: query_string_params,
|
1026
1044
|
options: options
|
1027
1045
|
)
|
1028
1046
|
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
@@ -1083,7 +1101,8 @@ module Google
|
|
1083
1101
|
# Set x-goog-api-client header
|
1084
1102
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1085
1103
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1086
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
1104
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
1105
|
+
transports_version_send: [:rest]
|
1087
1106
|
|
1088
1107
|
options.apply_defaults timeout: @config.timeout,
|
1089
1108
|
metadata: call_metadata
|
@@ -33,6 +33,7 @@ module Google
|
|
33
33
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/disks/#{request_pb.disk}/addResourcePolicies"
|
34
34
|
body = request_pb.disks_add_resource_policies_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
|
@@ -63,6 +64,8 @@ module Google
|
|
63
64
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/disks/#{request_pb.disk}/createSnapshot"
|
64
65
|
body = request_pb.snapshot_resource.to_json
|
65
66
|
query_string_params = {}
|
67
|
+
query_string_params["guestFlush"] = request_pb.guest_flush.to_s if request_pb.has_guest_flush?
|
68
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
66
69
|
|
67
70
|
[uri, body, query_string_params]
|
68
71
|
end
|
@@ -113,6 +116,8 @@ module Google
|
|
113
116
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/disks"
|
114
117
|
body = request_pb.disk_resource.to_json
|
115
118
|
query_string_params = {}
|
119
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
120
|
+
query_string_params["sourceImage"] = request_pb.source_image.to_s if request_pb.has_source_image?
|
116
121
|
|
117
122
|
[uri, body, query_string_params]
|
118
123
|
end
|
@@ -142,6 +147,7 @@ module Google
|
|
142
147
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/disks/#{request_pb.disk}/removeResourcePolicies"
|
143
148
|
body = request_pb.disks_remove_resource_policies_request_resource.to_json
|
144
149
|
query_string_params = {}
|
150
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
145
151
|
|
146
152
|
[uri, body, query_string_params]
|
147
153
|
end
|
@@ -154,6 +160,7 @@ module Google
|
|
154
160
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/disks/#{request_pb.disk}/resize"
|
155
161
|
body = request_pb.disks_resize_request_resource.to_json
|
156
162
|
query_string_params = {}
|
163
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
157
164
|
|
158
165
|
[uri, body, query_string_params]
|
159
166
|
end
|
@@ -178,6 +185,7 @@ module Google
|
|
178
185
|
uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/disks/#{request_pb.resource}/setLabels"
|
179
186
|
body = request_pb.zone_set_labels_request_resource.to_json
|
180
187
|
query_string_params = {}
|
188
|
+
query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
|
181
189
|
|
182
190
|
[uri, body, query_string_params]
|
183
191
|
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
|
@@ -471,7 +476,8 @@ module Google
|
|
471
476
|
# Set x-goog-api-client header
|
472
477
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
473
478
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
474
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
479
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
480
|
+
transports_version_send: [:rest]
|
475
481
|
|
476
482
|
options.apply_defaults timeout: @config.timeout,
|
477
483
|
metadata: call_metadata
|
@@ -538,7 +544,8 @@ module Google
|
|
538
544
|
# Set x-goog-api-client header
|
539
545
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
540
546
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
541
|
-
gapic_version: ::Google::Cloud::Compute::V1::VERSION
|
547
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
548
|
+
transports_version_send: [:rest]
|
542
549
|
|
543
550
|
options.apply_defaults timeout: @config.timeout,
|
544
551
|
metadata: call_metadata
|
@@ -58,6 +58,7 @@ module Google
|
|
58
58
|
uri = "/compute/v1/projects/#{request_pb.project}/global/externalVpnGateways"
|
59
59
|
body = request_pb.external_vpn_gateway_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
|
@@ -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/firewall_policies/credentials"
|
25
|
+
require "google/cloud/compute/v1/firewall_policies/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/firewall_policies"
|
34
|
+
# client = ::Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
|
35
|
+
#
|
36
|
+
module FirewallPolicies
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
helper_path = ::File.join __dir__, "firewall_policies", "helpers.rb"
|
44
|
+
require "google/cloud/compute/v1/firewall_policies/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 FirewallPolicies
|
26
|
+
# Credentials for the FirewallPolicies 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
|