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.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +10 -8
  4. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -3
  5. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +12 -6
  6. data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +20 -10
  8. data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +24 -12
  10. data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
  11. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +32 -16
  12. data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -3
  14. data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -19
  15. data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
  16. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +14 -7
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
  18. data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
  19. data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
  20. data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +35 -0
  21. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1459 -0
  22. data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
  23. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +18 -9
  24. data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
  25. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +20 -10
  26. data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
  27. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +10 -5
  28. data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
  29. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +18 -9
  30. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
  31. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +20 -10
  32. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
  33. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +10 -5
  34. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +6 -3
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
  36. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
  37. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +35 -0
  38. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +576 -0
  39. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
  40. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +20 -10
  41. data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
  42. data/lib/google/cloud/compute/v1/images/rest/client.rb +28 -14
  43. data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
  44. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +60 -30
  45. data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +28 -14
  47. data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +16 -8
  49. data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
  50. data/lib/google/cloud/compute/v1/instances/rest/client.rb +120 -60
  51. data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
  52. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +16 -8
  53. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
  54. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
  55. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +16 -8
  56. data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
  57. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
  58. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +16 -8
  59. data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
  60. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -3
  61. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +26 -13
  62. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
  63. data/lib/google/cloud/compute/v1/networks/rest/client.rb +30 -15
  64. data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
  65. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +36 -18
  66. data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
  67. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +18 -9
  68. data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
  69. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -3
  70. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +18 -9
  71. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
  72. data/lib/google/cloud/compute/v1/projects/rest/client.rb +42 -21
  73. data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
  74. data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
  75. data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
  76. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +35 -0
  77. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +576 -0
  78. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
  79. data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
  80. data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
  81. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +35 -0
  82. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +671 -0
  83. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
  84. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +18 -9
  85. data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
  86. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +20 -10
  87. data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
  88. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +10 -5
  89. data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
  90. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
  91. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +36 -18
  92. data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
  93. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +14 -7
  94. data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
  95. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +18 -9
  96. data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
  97. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +58 -29
  98. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
  99. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +12 -6
  100. data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
  101. data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
  102. data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
  103. data/lib/google/cloud/compute/v1/region_instances/rest.rb +35 -0
  104. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +287 -0
  105. data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
  106. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +10 -5
  107. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
  108. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +10 -5
  109. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
  110. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +8 -4
  111. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +10 -5
  112. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
  113. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +14 -7
  114. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
  115. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +18 -9
  116. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
  117. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +20 -10
  118. data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
  119. data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
  120. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +22 -11
  121. data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
  122. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +18 -9
  123. data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
  124. data/lib/google/cloud/compute/v1/routers/rest/client.rb +26 -13
  125. data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
  126. data/lib/google/cloud/compute/v1/routes/rest/client.rb +10 -5
  127. data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
  128. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +26 -13
  129. data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
  130. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +14 -7
  131. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +12 -6
  132. data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
  133. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +16 -8
  134. data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
  135. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +32 -16
  136. data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
  137. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +14 -7
  138. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
  139. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +20 -10
  140. data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
  141. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +28 -14
  142. data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
  143. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +12 -6
  144. data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
  145. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +34 -17
  146. data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
  147. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +26 -13
  148. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
  149. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +18 -9
  150. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
  151. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +12 -6
  152. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
  153. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +26 -13
  154. data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
  155. data/lib/google/cloud/compute/v1/version.rb +1 -1
  156. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +20 -10
  157. data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
  158. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +12 -6
  159. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
  160. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +8 -4
  161. data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
  162. metadata +37 -12
@@ -0,0 +1,100 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module Compute
23
+ module V1
24
+ module GlobalPublicDelegatedPrefixes
25
+ module Rest
26
+ # GRPC transcoding helper methods for the GlobalPublicDelegatedPrefixes REST API.
27
+ module GrpcTranscoding
28
+ # @param request_pb [::Google::Cloud::Compute::V1::DeleteGlobalPublicDelegatedPrefixeRequest]
29
+ # A request object representing the call parameters. Required.
30
+ # @return [Array(String, [String, nil], Hash{String => String})]
31
+ # Uri, Body, Query string parameters
32
+ def transcode_delete request_pb
33
+ uri = "/compute/v1/projects/#{request_pb.project}/global/publicDelegatedPrefixes/#{request_pb.public_delegated_prefix}"
34
+ body = nil
35
+ query_string_params = {}
36
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
37
+
38
+ [uri, body, query_string_params]
39
+ end
40
+
41
+ # @param request_pb [::Google::Cloud::Compute::V1::GetGlobalPublicDelegatedPrefixeRequest]
42
+ # A request object representing the call parameters. Required.
43
+ # @return [Array(String, [String, nil], Hash{String => String})]
44
+ # Uri, Body, Query string parameters
45
+ def transcode_get request_pb
46
+ uri = "/compute/v1/projects/#{request_pb.project}/global/publicDelegatedPrefixes/#{request_pb.public_delegated_prefix}"
47
+ body = nil
48
+ query_string_params = {}
49
+
50
+ [uri, body, query_string_params]
51
+ end
52
+
53
+ # @param request_pb [::Google::Cloud::Compute::V1::InsertGlobalPublicDelegatedPrefixeRequest]
54
+ # A request object representing the call parameters. Required.
55
+ # @return [Array(String, [String, nil], Hash{String => String})]
56
+ # Uri, Body, Query string parameters
57
+ def transcode_insert request_pb
58
+ uri = "/compute/v1/projects/#{request_pb.project}/global/publicDelegatedPrefixes"
59
+ body = request_pb.public_delegated_prefix_resource.to_json
60
+ query_string_params = {}
61
+
62
+ [uri, body, query_string_params]
63
+ end
64
+
65
+ # @param request_pb [::Google::Cloud::Compute::V1::ListGlobalPublicDelegatedPrefixesRequest]
66
+ # A request object representing the call parameters. Required.
67
+ # @return [Array(String, [String, nil], Hash{String => String})]
68
+ # Uri, Body, Query string parameters
69
+ def transcode_list request_pb
70
+ uri = "/compute/v1/projects/#{request_pb.project}/global/publicDelegatedPrefixes"
71
+ body = nil
72
+ query_string_params = {}
73
+ query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
74
+ query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
75
+ query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
76
+ query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
77
+ query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
78
+
79
+ [uri, body, query_string_params]
80
+ end
81
+
82
+ # @param request_pb [::Google::Cloud::Compute::V1::PatchGlobalPublicDelegatedPrefixeRequest]
83
+ # A request object representing the call parameters. Required.
84
+ # @return [Array(String, [String, nil], Hash{String => String})]
85
+ # Uri, Body, Query string parameters
86
+ def transcode_patch request_pb
87
+ uri = "/compute/v1/projects/#{request_pb.project}/global/publicDelegatedPrefixes/#{request_pb.public_delegated_prefix}"
88
+ body = request_pb.public_delegated_prefix_resource.to_json
89
+ query_string_params = {}
90
+
91
+ [uri, body, query_string_params]
92
+ end
93
+ extend self
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
99
+ end
100
+ 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
@@ -271,7 +272,8 @@ module Google
271
272
  # Set x-goog-api-client header
272
273
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
273
274
  lib_name: @config.lib_name, lib_version: @config.lib_version,
274
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
275
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
276
+ transports_version_send: [:rest]
275
277
 
276
278
  options.apply_defaults timeout: @config.timeout,
277
279
  metadata: call_metadata
@@ -336,7 +338,8 @@ module Google
336
338
  # Set x-goog-api-client header
337
339
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
338
340
  lib_name: @config.lib_name, lib_version: @config.lib_version,
339
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
341
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
342
+ transports_version_send: [:rest]
340
343
 
341
344
  options.apply_defaults timeout: @config.timeout,
342
345
  metadata: call_metadata
@@ -406,15 +409,17 @@ module Google
406
409
  # Set x-goog-api-client header
407
410
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
408
411
  lib_name: @config.lib_name, lib_version: @config.lib_version,
409
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
412
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
413
+ transports_version_send: [:rest]
410
414
 
411
415
  options.apply_defaults timeout: @config.timeout,
412
416
  metadata: call_metadata
413
417
 
414
- uri, body, _query_string_params = transcode_insert request
418
+ uri, body, query_string_params = transcode_insert request
415
419
  response = @client_stub.make_post_request(
416
420
  uri: uri,
417
421
  body: body,
422
+ params: query_string_params,
418
423
  options: options
419
424
  )
420
425
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -489,7 +494,8 @@ module Google
489
494
  # Set x-goog-api-client header
490
495
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
491
496
  lib_name: @config.lib_name, lib_version: @config.lib_version,
492
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
497
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
498
+ transports_version_send: [:rest]
493
499
 
494
500
  options.apply_defaults timeout: @config.timeout,
495
501
  metadata: call_metadata
@@ -562,15 +568,17 @@ module Google
562
568
  # Set x-goog-api-client header
563
569
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
564
570
  lib_name: @config.lib_name, lib_version: @config.lib_version,
565
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
571
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
572
+ transports_version_send: [:rest]
566
573
 
567
574
  options.apply_defaults timeout: @config.timeout,
568
575
  metadata: call_metadata
569
576
 
570
- uri, body, _query_string_params = transcode_patch request
577
+ uri, body, query_string_params = transcode_patch request
571
578
  response = @client_stub.make_patch_request(
572
579
  uri: uri,
573
580
  body: body,
581
+ params: query_string_params,
574
582
  options: options
575
583
  )
576
584
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -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, _query_string_params = transcode_update request
652
+ uri, body, query_string_params = transcode_update request
644
653
  response = @client_stub.make_put_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
@@ -76,6 +76,7 @@ module Google
76
76
  uri = "/compute/v1/projects/#{request_pb.project}/global/healthChecks"
77
77
  body = request_pb.health_check_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}/global/healthChecks/#{request_pb.health_check}"
106
107
  body = request_pb.health_check_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}/global/healthChecks/#{request_pb.health_check}"
118
120
  body = request_pb.health_check_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
@@ -261,15 +262,17 @@ module Google
261
262
  # Set x-goog-api-client header
262
263
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
264
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
265
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
266
+ transports_version_send: [:rest]
265
267
 
266
268
  options.apply_defaults timeout: @config.timeout,
267
269
  metadata: call_metadata
268
270
 
269
- uri, body, _query_string_params = transcode_deprecate request
271
+ uri, body, query_string_params = transcode_deprecate request
270
272
  response = @client_stub.make_post_request(
271
273
  uri: uri,
272
274
  body: body,
275
+ params: query_string_params,
273
276
  options: options
274
277
  )
275
278
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -326,7 +329,8 @@ module Google
326
329
  # Set x-goog-api-client header
327
330
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
328
331
  lib_name: @config.lib_name, lib_version: @config.lib_version,
329
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
332
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
333
+ transports_version_send: [:rest]
330
334
 
331
335
  options.apply_defaults timeout: @config.timeout,
332
336
  metadata: call_metadata
@@ -390,7 +394,8 @@ module Google
390
394
  # Set x-goog-api-client header
391
395
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
392
396
  lib_name: @config.lib_name, lib_version: @config.lib_version,
393
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
397
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
398
+ transports_version_send: [:rest]
394
399
 
395
400
  options.apply_defaults timeout: @config.timeout,
396
401
  metadata: call_metadata
@@ -456,7 +461,8 @@ module Google
456
461
  # Set x-goog-api-client header
457
462
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
458
463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
459
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
464
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
465
+ transports_version_send: [:rest]
460
466
 
461
467
  options.apply_defaults timeout: @config.timeout,
462
468
  metadata: call_metadata
@@ -529,15 +535,17 @@ module Google
529
535
  # Set x-goog-api-client header
530
536
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
531
537
  lib_name: @config.lib_name, lib_version: @config.lib_version,
532
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
538
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
539
+ transports_version_send: [:rest]
533
540
 
534
541
  options.apply_defaults timeout: @config.timeout,
535
542
  metadata: call_metadata
536
543
 
537
- uri, body, _query_string_params = transcode_insert request
544
+ uri, body, query_string_params = transcode_insert request
538
545
  response = @client_stub.make_post_request(
539
546
  uri: uri,
540
547
  body: body,
548
+ params: query_string_params,
541
549
  options: options
542
550
  )
543
551
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -612,7 +620,8 @@ module Google
612
620
  # Set x-goog-api-client header
613
621
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
614
622
  lib_name: @config.lib_name, lib_version: @config.lib_version,
615
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
623
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
624
+ transports_version_send: [:rest]
616
625
 
617
626
  options.apply_defaults timeout: @config.timeout,
618
627
  metadata: call_metadata
@@ -685,15 +694,17 @@ module Google
685
694
  # Set x-goog-api-client header
686
695
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
687
696
  lib_name: @config.lib_name, lib_version: @config.lib_version,
688
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
697
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
698
+ transports_version_send: [:rest]
689
699
 
690
700
  options.apply_defaults timeout: @config.timeout,
691
701
  metadata: call_metadata
692
702
 
693
- uri, body, _query_string_params = transcode_patch request
703
+ uri, body, query_string_params = transcode_patch request
694
704
  response = @client_stub.make_patch_request(
695
705
  uri: uri,
696
706
  body: body,
707
+ params: query_string_params,
697
708
  options: options
698
709
  )
699
710
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -752,7 +763,8 @@ module Google
752
763
  # Set x-goog-api-client header
753
764
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
765
  lib_name: @config.lib_name, lib_version: @config.lib_version,
755
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
766
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
767
+ transports_version_send: [:rest]
756
768
 
757
769
  options.apply_defaults timeout: @config.timeout,
758
770
  metadata: call_metadata
@@ -819,7 +831,8 @@ module Google
819
831
  # Set x-goog-api-client header
820
832
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
821
833
  lib_name: @config.lib_name, lib_version: @config.lib_version,
822
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
834
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
835
+ transports_version_send: [:rest]
823
836
 
824
837
  options.apply_defaults timeout: @config.timeout,
825
838
  metadata: call_metadata
@@ -886,7 +899,8 @@ module Google
886
899
  # Set x-goog-api-client header
887
900
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
888
901
  lib_name: @config.lib_name, lib_version: @config.lib_version,
889
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
902
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
903
+ transports_version_send: [:rest]
890
904
 
891
905
  options.apply_defaults timeout: @config.timeout,
892
906
  metadata: call_metadata
@@ -46,6 +46,7 @@ module Google
46
46
  uri = "/compute/v1/projects/#{request_pb.project}/global/images/#{request_pb.image}/deprecate"
47
47
  body = request_pb.deprecation_status_resource.to_json
48
48
  query_string_params = {}
49
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
49
50
 
50
51
  [uri, body, query_string_params]
51
52
  end
@@ -95,6 +96,8 @@ module Google
95
96
  uri = "/compute/v1/projects/#{request_pb.project}/global/images"
96
97
  body = request_pb.image_resource.to_json
97
98
  query_string_params = {}
99
+ query_string_params["forceCreate"] = request_pb.force_create.to_s if request_pb.has_force_create?
100
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
98
101
 
99
102
  [uri, body, query_string_params]
100
103
  end
@@ -124,6 +127,7 @@ module Google
124
127
  uri = "/compute/v1/projects/#{request_pb.project}/global/images/#{request_pb.image}"
125
128
  body = request_pb.image_resource.to_json
126
129
  query_string_params = {}
130
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
127
131
 
128
132
  [uri, body, query_string_params]
129
133
  end
@@ -194,15 +194,17 @@ module Google
194
194
  # Set x-goog-api-client header
195
195
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
196
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
197
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
198
+ transports_version_send: [:rest]
198
199
 
199
200
  options.apply_defaults timeout: @config.timeout,
200
201
  metadata: call_metadata
201
202
 
202
- uri, body, _query_string_params = transcode_abandon_instances request
203
+ uri, body, query_string_params = transcode_abandon_instances request
203
204
  response = @client_stub.make_post_request(
204
205
  uri: uri,
205
206
  body: body,
207
+ params: query_string_params,
206
208
  options: options
207
209
  )
208
210
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -279,7 +281,8 @@ module Google
279
281
  # Set x-goog-api-client header
280
282
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
281
283
  lib_name: @config.lib_name, lib_version: @config.lib_version,
282
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
284
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
285
+ transports_version_send: [:rest]
283
286
 
284
287
  options.apply_defaults timeout: @config.timeout,
285
288
  metadata: call_metadata
@@ -348,7 +351,8 @@ module Google
348
351
  # Set x-goog-api-client header
349
352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
354
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
355
+ transports_version_send: [:rest]
352
356
 
353
357
  options.apply_defaults timeout: @config.timeout,
354
358
  metadata: call_metadata
@@ -423,15 +427,17 @@ module Google
423
427
  # Set x-goog-api-client header
424
428
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
425
429
  lib_name: @config.lib_name, lib_version: @config.lib_version,
426
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
430
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
431
+ transports_version_send: [:rest]
427
432
 
428
433
  options.apply_defaults timeout: @config.timeout,
429
434
  metadata: call_metadata
430
435
 
431
- uri, body, _query_string_params = transcode_create_instances request
436
+ uri, body, query_string_params = transcode_create_instances request
432
437
  response = @client_stub.make_post_request(
433
438
  uri: uri,
434
439
  body: body,
440
+ params: query_string_params,
435
441
  options: options
436
442
  )
437
443
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -496,7 +502,8 @@ module Google
496
502
  # Set x-goog-api-client header
497
503
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
498
504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
499
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
505
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
506
+ transports_version_send: [:rest]
500
507
 
501
508
  options.apply_defaults timeout: @config.timeout,
502
509
  metadata: call_metadata
@@ -575,15 +582,17 @@ module Google
575
582
  # Set x-goog-api-client header
576
583
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
577
584
  lib_name: @config.lib_name, lib_version: @config.lib_version,
578
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
585
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
586
+ transports_version_send: [:rest]
579
587
 
580
588
  options.apply_defaults timeout: @config.timeout,
581
589
  metadata: call_metadata
582
590
 
583
- uri, body, _query_string_params = transcode_delete_instances request
591
+ uri, body, query_string_params = transcode_delete_instances request
584
592
  response = @client_stub.make_post_request(
585
593
  uri: uri,
586
594
  body: body,
595
+ params: query_string_params,
587
596
  options: options
588
597
  )
589
598
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -644,7 +653,8 @@ module Google
644
653
  # Set x-goog-api-client header
645
654
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
646
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
647
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
656
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
657
+ transports_version_send: [:rest]
648
658
 
649
659
  options.apply_defaults timeout: @config.timeout,
650
660
  metadata: call_metadata
@@ -711,7 +721,8 @@ module Google
711
721
  # Set x-goog-api-client header
712
722
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
713
723
  lib_name: @config.lib_name, lib_version: @config.lib_version,
714
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
724
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
725
+ transports_version_send: [:rest]
715
726
 
716
727
  options.apply_defaults timeout: @config.timeout,
717
728
  metadata: call_metadata
@@ -785,15 +796,17 @@ module Google
785
796
  # Set x-goog-api-client header
786
797
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
787
798
  lib_name: @config.lib_name, lib_version: @config.lib_version,
788
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
799
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
800
+ transports_version_send: [:rest]
789
801
 
790
802
  options.apply_defaults timeout: @config.timeout,
791
803
  metadata: call_metadata
792
804
 
793
- uri, body, _query_string_params = transcode_insert request
805
+ uri, body, query_string_params = transcode_insert request
794
806
  response = @client_stub.make_post_request(
795
807
  uri: uri,
796
808
  body: body,
809
+ params: query_string_params,
797
810
  options: options
798
811
  )
799
812
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -870,7 +883,8 @@ 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
@@ -957,7 +971,8 @@ module Google
957
971
  # Set x-goog-api-client header
958
972
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
959
973
  lib_name: @config.lib_name, lib_version: @config.lib_version,
960
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
974
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
975
+ transports_version_send: [:rest]
961
976
 
962
977
  options.apply_defaults timeout: @config.timeout,
963
978
  metadata: call_metadata
@@ -1044,7 +1059,8 @@ module Google
1044
1059
  # Set x-goog-api-client header
1045
1060
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1046
1061
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1047
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1062
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1063
+ transports_version_send: [:rest]
1048
1064
 
1049
1065
  options.apply_defaults timeout: @config.timeout,
1050
1066
  metadata: call_metadata
@@ -1131,7 +1147,8 @@ module Google
1131
1147
  # Set x-goog-api-client header
1132
1148
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1133
1149
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1134
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1150
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1151
+ transports_version_send: [:rest]
1135
1152
 
1136
1153
  options.apply_defaults timeout: @config.timeout,
1137
1154
  metadata: call_metadata
@@ -1206,15 +1223,17 @@ module Google
1206
1223
  # Set x-goog-api-client header
1207
1224
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1208
1225
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1209
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1226
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1227
+ transports_version_send: [:rest]
1210
1228
 
1211
1229
  options.apply_defaults timeout: @config.timeout,
1212
1230
  metadata: call_metadata
1213
1231
 
1214
- uri, body, _query_string_params = transcode_patch request
1232
+ uri, body, query_string_params = transcode_patch request
1215
1233
  response = @client_stub.make_patch_request(
1216
1234
  uri: uri,
1217
1235
  body: body,
1236
+ params: query_string_params,
1218
1237
  options: options
1219
1238
  )
1220
1239
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1281,15 +1300,17 @@ module Google
1281
1300
  # Set x-goog-api-client header
1282
1301
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1283
1302
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1284
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1303
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1304
+ transports_version_send: [:rest]
1285
1305
 
1286
1306
  options.apply_defaults timeout: @config.timeout,
1287
1307
  metadata: call_metadata
1288
1308
 
1289
- uri, body, _query_string_params = transcode_patch_per_instance_configs request
1309
+ uri, body, query_string_params = transcode_patch_per_instance_configs request
1290
1310
  response = @client_stub.make_post_request(
1291
1311
  uri: uri,
1292
1312
  body: body,
1313
+ params: query_string_params,
1293
1314
  options: options
1294
1315
  )
1295
1316
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1360,15 +1381,17 @@ module Google
1360
1381
  # Set x-goog-api-client header
1361
1382
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1362
1383
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1363
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1384
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1385
+ transports_version_send: [:rest]
1364
1386
 
1365
1387
  options.apply_defaults timeout: @config.timeout,
1366
1388
  metadata: call_metadata
1367
1389
 
1368
- uri, body, _query_string_params = transcode_recreate_instances request
1390
+ uri, body, query_string_params = transcode_recreate_instances request
1369
1391
  response = @client_stub.make_post_request(
1370
1392
  uri: uri,
1371
1393
  body: body,
1394
+ params: query_string_params,
1372
1395
  options: options
1373
1396
  )
1374
1397
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1443,7 +1466,8 @@ module Google
1443
1466
  # Set x-goog-api-client header
1444
1467
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1445
1468
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1446
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1469
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1470
+ transports_version_send: [:rest]
1447
1471
 
1448
1472
  options.apply_defaults timeout: @config.timeout,
1449
1473
  metadata: call_metadata
@@ -1518,15 +1542,17 @@ module Google
1518
1542
  # Set x-goog-api-client header
1519
1543
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1520
1544
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1521
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1545
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1546
+ transports_version_send: [:rest]
1522
1547
 
1523
1548
  options.apply_defaults timeout: @config.timeout,
1524
1549
  metadata: call_metadata
1525
1550
 
1526
- uri, body, _query_string_params = transcode_set_instance_template request
1551
+ uri, body, query_string_params = transcode_set_instance_template request
1527
1552
  response = @client_stub.make_post_request(
1528
1553
  uri: uri,
1529
1554
  body: body,
1555
+ params: query_string_params,
1530
1556
  options: options
1531
1557
  )
1532
1558
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1593,15 +1619,17 @@ module Google
1593
1619
  # Set x-goog-api-client header
1594
1620
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1595
1621
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1596
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1622
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1623
+ transports_version_send: [:rest]
1597
1624
 
1598
1625
  options.apply_defaults timeout: @config.timeout,
1599
1626
  metadata: call_metadata
1600
1627
 
1601
- uri, body, _query_string_params = transcode_set_target_pools request
1628
+ uri, body, query_string_params = transcode_set_target_pools request
1602
1629
  response = @client_stub.make_post_request(
1603
1630
  uri: uri,
1604
1631
  body: body,
1632
+ params: query_string_params,
1605
1633
  options: options
1606
1634
  )
1607
1635
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1668,15 +1696,17 @@ module Google
1668
1696
  # Set x-goog-api-client header
1669
1697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1670
1698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1671
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1699
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1700
+ transports_version_send: [:rest]
1672
1701
 
1673
1702
  options.apply_defaults timeout: @config.timeout,
1674
1703
  metadata: call_metadata
1675
1704
 
1676
- uri, body, _query_string_params = transcode_update_per_instance_configs request
1705
+ uri, body, query_string_params = transcode_update_per_instance_configs request
1677
1706
  response = @client_stub.make_post_request(
1678
1707
  uri: uri,
1679
1708
  body: body,
1709
+ params: query_string_params,
1680
1710
  options: options
1681
1711
  )
1682
1712
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true