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
@@ -33,6 +33,7 @@ module Google
33
33
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/addResourcePolicies"
34
34
  body = request_pb.region_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
@@ -45,6 +46,7 @@ module Google
45
46
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/createSnapshot"
46
47
  body = request_pb.snapshot_resource.to_json
47
48
  query_string_params = {}
49
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
48
50
 
49
51
  [uri, body, query_string_params]
50
52
  end
@@ -95,6 +97,8 @@ module Google
95
97
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks"
96
98
  body = request_pb.disk_resource.to_json
97
99
  query_string_params = {}
100
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
101
+ query_string_params["sourceImage"] = request_pb.source_image.to_s if request_pb.has_source_image?
98
102
 
99
103
  [uri, body, query_string_params]
100
104
  end
@@ -124,6 +128,7 @@ module Google
124
128
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/removeResourcePolicies"
125
129
  body = request_pb.region_disks_remove_resource_policies_request_resource.to_json
126
130
  query_string_params = {}
131
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
127
132
 
128
133
  [uri, body, query_string_params]
129
134
  end
@@ -136,6 +141,7 @@ module Google
136
141
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.disk}/resize"
137
142
  body = request_pb.region_disks_resize_request_resource.to_json
138
143
  query_string_params = {}
144
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
139
145
 
140
146
  [uri, body, query_string_params]
141
147
  end
@@ -160,6 +166,7 @@ module Google
160
166
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/disks/#{request_pb.resource}/setLabels"
161
167
  body = request_pb.region_set_labels_request_resource.to_json
162
168
  query_string_params = {}
169
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
163
170
 
164
171
  [uri, body, query_string_params]
165
172
  end
@@ -188,7 +188,8 @@ 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
@@ -255,7 +256,8 @@ module Google
255
256
  # Set x-goog-api-client header
256
257
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
257
258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
258
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
259
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
260
+ transports_version_send: [:rest]
259
261
 
260
262
  options.apply_defaults timeout: @config.timeout,
261
263
  metadata: call_metadata
@@ -327,15 +329,17 @@ module Google
327
329
  # Set x-goog-api-client header
328
330
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
329
331
  lib_name: @config.lib_name, lib_version: @config.lib_version,
330
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
332
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
333
+ transports_version_send: [:rest]
331
334
 
332
335
  options.apply_defaults timeout: @config.timeout,
333
336
  metadata: call_metadata
334
337
 
335
- uri, body, _query_string_params = transcode_insert request
338
+ uri, body, query_string_params = transcode_insert request
336
339
  response = @client_stub.make_post_request(
337
340
  uri: uri,
338
341
  body: body,
342
+ params: query_string_params,
339
343
  options: options
340
344
  )
341
345
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -412,7 +416,8 @@ module Google
412
416
  # Set x-goog-api-client header
413
417
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
415
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
419
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
420
+ transports_version_send: [:rest]
416
421
 
417
422
  options.apply_defaults timeout: @config.timeout,
418
423
  metadata: call_metadata
@@ -487,15 +492,17 @@ module Google
487
492
  # Set x-goog-api-client header
488
493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
489
494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
490
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
495
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
496
+ transports_version_send: [:rest]
491
497
 
492
498
  options.apply_defaults timeout: @config.timeout,
493
499
  metadata: call_metadata
494
500
 
495
- uri, body, _query_string_params = transcode_patch request
501
+ uri, body, query_string_params = transcode_patch request
496
502
  response = @client_stub.make_patch_request(
497
503
  uri: uri,
498
504
  body: body,
505
+ params: query_string_params,
499
506
  options: options
500
507
  )
501
508
  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}/regions/#{request_pb.region}/healthCheckServices"
59
59
  body = request_pb.health_check_service_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}/regions/#{request_pb.region}/healthCheckServices/#{request_pb.health_check_service}"
88
89
  body = request_pb.health_check_service_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
@@ -188,7 +188,8 @@ 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
@@ -255,7 +256,8 @@ module Google
255
256
  # Set x-goog-api-client header
256
257
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
257
258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
258
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
259
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
260
+ transports_version_send: [:rest]
259
261
 
260
262
  options.apply_defaults timeout: @config.timeout,
261
263
  metadata: call_metadata
@@ -327,15 +329,17 @@ module Google
327
329
  # Set x-goog-api-client header
328
330
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
329
331
  lib_name: @config.lib_name, lib_version: @config.lib_version,
330
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
332
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
333
+ transports_version_send: [:rest]
331
334
 
332
335
  options.apply_defaults timeout: @config.timeout,
333
336
  metadata: call_metadata
334
337
 
335
- uri, body, _query_string_params = transcode_insert request
338
+ uri, body, query_string_params = transcode_insert request
336
339
  response = @client_stub.make_post_request(
337
340
  uri: uri,
338
341
  body: body,
342
+ params: query_string_params,
339
343
  options: options
340
344
  )
341
345
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -412,7 +416,8 @@ module Google
412
416
  # Set x-goog-api-client header
413
417
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
415
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
419
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
420
+ transports_version_send: [:rest]
416
421
 
417
422
  options.apply_defaults timeout: @config.timeout,
418
423
  metadata: call_metadata
@@ -487,15 +492,17 @@ module Google
487
492
  # Set x-goog-api-client header
488
493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
489
494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
490
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
495
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
496
+ transports_version_send: [:rest]
491
497
 
492
498
  options.apply_defaults timeout: @config.timeout,
493
499
  metadata: call_metadata
494
500
 
495
- uri, body, _query_string_params = transcode_patch request
501
+ uri, body, query_string_params = transcode_patch request
496
502
  response = @client_stub.make_patch_request(
497
503
  uri: uri,
498
504
  body: body,
505
+ params: query_string_params,
499
506
  options: options
500
507
  )
501
508
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -562,15 +569,17 @@ module Google
562
569
  # Set x-goog-api-client header
563
570
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
564
571
  lib_name: @config.lib_name, lib_version: @config.lib_version,
565
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
572
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
573
+ transports_version_send: [:rest]
566
574
 
567
575
  options.apply_defaults timeout: @config.timeout,
568
576
  metadata: call_metadata
569
577
 
570
- uri, body, _query_string_params = transcode_update request
578
+ uri, body, query_string_params = transcode_update request
571
579
  response = @client_stub.make_put_request(
572
580
  uri: uri,
573
581
  body: body,
582
+ params: query_string_params,
574
583
  options: options
575
584
  )
576
585
  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}/regions/#{request_pb.region}/healthChecks"
59
59
  body = request_pb.health_check_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}/regions/#{request_pb.region}/healthChecks/#{request_pb.health_check}"
88
89
  body = request_pb.health_check_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}/regions/#{request_pb.region}/healthChecks/#{request_pb.health_check}"
100
102
  body = request_pb.health_check_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
@@ -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
@@ -263,7 +265,8 @@ module Google
263
265
  # Set x-goog-api-client header
264
266
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
268
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
269
+ transports_version_send: [:rest]
267
270
 
268
271
  options.apply_defaults timeout: @config.timeout,
269
272
  metadata: call_metadata
@@ -338,15 +341,17 @@ module Google
338
341
  # Set x-goog-api-client header
339
342
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
340
343
  lib_name: @config.lib_name, lib_version: @config.lib_version,
341
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
344
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
345
+ transports_version_send: [:rest]
342
346
 
343
347
  options.apply_defaults timeout: @config.timeout,
344
348
  metadata: call_metadata
345
349
 
346
- uri, body, _query_string_params = transcode_create_instances request
350
+ uri, body, query_string_params = transcode_create_instances request
347
351
  response = @client_stub.make_post_request(
348
352
  uri: uri,
349
353
  body: body,
354
+ params: query_string_params,
350
355
  options: options
351
356
  )
352
357
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -411,7 +416,8 @@ module Google
411
416
  # Set x-goog-api-client header
412
417
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
413
418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
414
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
419
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
420
+ transports_version_send: [:rest]
415
421
 
416
422
  options.apply_defaults timeout: @config.timeout,
417
423
  metadata: call_metadata
@@ -490,15 +496,17 @@ module Google
490
496
  # Set x-goog-api-client header
491
497
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
492
498
  lib_name: @config.lib_name, lib_version: @config.lib_version,
493
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
499
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
500
+ transports_version_send: [:rest]
494
501
 
495
502
  options.apply_defaults timeout: @config.timeout,
496
503
  metadata: call_metadata
497
504
 
498
- uri, body, _query_string_params = transcode_delete_instances request
505
+ uri, body, query_string_params = transcode_delete_instances request
499
506
  response = @client_stub.make_post_request(
500
507
  uri: uri,
501
508
  body: body,
509
+ params: query_string_params,
502
510
  options: options
503
511
  )
504
512
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -559,7 +567,8 @@ module Google
559
567
  # Set x-goog-api-client header
560
568
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
561
569
  lib_name: @config.lib_name, lib_version: @config.lib_version,
562
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
570
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
571
+ transports_version_send: [:rest]
563
572
 
564
573
  options.apply_defaults timeout: @config.timeout,
565
574
  metadata: call_metadata
@@ -626,7 +635,8 @@ module Google
626
635
  # Set x-goog-api-client header
627
636
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
628
637
  lib_name: @config.lib_name, lib_version: @config.lib_version,
629
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
638
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
639
+ transports_version_send: [:rest]
630
640
 
631
641
  options.apply_defaults timeout: @config.timeout,
632
642
  metadata: call_metadata
@@ -700,15 +710,17 @@ module Google
700
710
  # Set x-goog-api-client header
701
711
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
702
712
  lib_name: @config.lib_name, lib_version: @config.lib_version,
703
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
713
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
714
+ transports_version_send: [:rest]
704
715
 
705
716
  options.apply_defaults timeout: @config.timeout,
706
717
  metadata: call_metadata
707
718
 
708
- uri, body, _query_string_params = transcode_insert request
719
+ uri, body, query_string_params = transcode_insert request
709
720
  response = @client_stub.make_post_request(
710
721
  uri: uri,
711
722
  body: body,
723
+ params: query_string_params,
712
724
  options: options
713
725
  )
714
726
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -785,7 +797,8 @@ module Google
785
797
  # Set x-goog-api-client header
786
798
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
787
799
  lib_name: @config.lib_name, lib_version: @config.lib_version,
788
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
800
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
801
+ transports_version_send: [:rest]
789
802
 
790
803
  options.apply_defaults timeout: @config.timeout,
791
804
  metadata: call_metadata
@@ -872,7 +885,8 @@ module Google
872
885
  # Set x-goog-api-client header
873
886
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
874
887
  lib_name: @config.lib_name, lib_version: @config.lib_version,
875
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
888
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
889
+ transports_version_send: [:rest]
876
890
 
877
891
  options.apply_defaults timeout: @config.timeout,
878
892
  metadata: call_metadata
@@ -959,7 +973,8 @@ module Google
959
973
  # Set x-goog-api-client header
960
974
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
961
975
  lib_name: @config.lib_name, lib_version: @config.lib_version,
962
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
976
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
977
+ transports_version_send: [:rest]
963
978
 
964
979
  options.apply_defaults timeout: @config.timeout,
965
980
  metadata: call_metadata
@@ -1046,7 +1061,8 @@ module Google
1046
1061
  # Set x-goog-api-client header
1047
1062
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1048
1063
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1049
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1064
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1065
+ transports_version_send: [:rest]
1050
1066
 
1051
1067
  options.apply_defaults timeout: @config.timeout,
1052
1068
  metadata: call_metadata
@@ -1121,15 +1137,17 @@ module Google
1121
1137
  # Set x-goog-api-client header
1122
1138
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1123
1139
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1124
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1140
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1141
+ transports_version_send: [:rest]
1125
1142
 
1126
1143
  options.apply_defaults timeout: @config.timeout,
1127
1144
  metadata: call_metadata
1128
1145
 
1129
- uri, body, _query_string_params = transcode_patch request
1146
+ uri, body, query_string_params = transcode_patch request
1130
1147
  response = @client_stub.make_patch_request(
1131
1148
  uri: uri,
1132
1149
  body: body,
1150
+ params: query_string_params,
1133
1151
  options: options
1134
1152
  )
1135
1153
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1196,15 +1214,17 @@ module Google
1196
1214
  # Set x-goog-api-client header
1197
1215
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1198
1216
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1199
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1217
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1218
+ transports_version_send: [:rest]
1200
1219
 
1201
1220
  options.apply_defaults timeout: @config.timeout,
1202
1221
  metadata: call_metadata
1203
1222
 
1204
- uri, body, _query_string_params = transcode_patch_per_instance_configs request
1223
+ uri, body, query_string_params = transcode_patch_per_instance_configs request
1205
1224
  response = @client_stub.make_post_request(
1206
1225
  uri: uri,
1207
1226
  body: body,
1227
+ params: query_string_params,
1208
1228
  options: options
1209
1229
  )
1210
1230
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1275,15 +1295,17 @@ module Google
1275
1295
  # Set x-goog-api-client header
1276
1296
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1277
1297
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1278
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1298
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1299
+ transports_version_send: [:rest]
1279
1300
 
1280
1301
  options.apply_defaults timeout: @config.timeout,
1281
1302
  metadata: call_metadata
1282
1303
 
1283
- uri, body, _query_string_params = transcode_recreate_instances request
1304
+ uri, body, query_string_params = transcode_recreate_instances request
1284
1305
  response = @client_stub.make_post_request(
1285
1306
  uri: uri,
1286
1307
  body: body,
1308
+ params: query_string_params,
1287
1309
  options: options
1288
1310
  )
1289
1311
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1354,7 +1376,8 @@ module Google
1354
1376
  # Set x-goog-api-client header
1355
1377
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1356
1378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1357
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1379
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1380
+ transports_version_send: [:rest]
1358
1381
 
1359
1382
  options.apply_defaults timeout: @config.timeout,
1360
1383
  metadata: call_metadata
@@ -1429,15 +1452,17 @@ module Google
1429
1452
  # Set x-goog-api-client header
1430
1453
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1431
1454
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1432
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1455
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1456
+ transports_version_send: [:rest]
1433
1457
 
1434
1458
  options.apply_defaults timeout: @config.timeout,
1435
1459
  metadata: call_metadata
1436
1460
 
1437
- uri, body, _query_string_params = transcode_set_instance_template request
1461
+ uri, body, query_string_params = transcode_set_instance_template request
1438
1462
  response = @client_stub.make_post_request(
1439
1463
  uri: uri,
1440
1464
  body: body,
1465
+ params: query_string_params,
1441
1466
  options: options
1442
1467
  )
1443
1468
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1504,15 +1529,17 @@ module Google
1504
1529
  # Set x-goog-api-client header
1505
1530
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1506
1531
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1507
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1532
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1533
+ transports_version_send: [:rest]
1508
1534
 
1509
1535
  options.apply_defaults timeout: @config.timeout,
1510
1536
  metadata: call_metadata
1511
1537
 
1512
- uri, body, _query_string_params = transcode_set_target_pools request
1538
+ uri, body, query_string_params = transcode_set_target_pools request
1513
1539
  response = @client_stub.make_post_request(
1514
1540
  uri: uri,
1515
1541
  body: body,
1542
+ params: query_string_params,
1516
1543
  options: options
1517
1544
  )
1518
1545
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1579,15 +1606,17 @@ module Google
1579
1606
  # Set x-goog-api-client header
1580
1607
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1581
1608
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1582
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1609
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1610
+ transports_version_send: [:rest]
1583
1611
 
1584
1612
  options.apply_defaults timeout: @config.timeout,
1585
1613
  metadata: call_metadata
1586
1614
 
1587
- uri, body, _query_string_params = transcode_update_per_instance_configs request
1615
+ uri, body, query_string_params = transcode_update_per_instance_configs request
1588
1616
  response = @client_stub.make_post_request(
1589
1617
  uri: uri,
1590
1618
  body: body,
1619
+ params: query_string_params,
1591
1620
  options: options
1592
1621
  )
1593
1622
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true