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
@@ -105,6 +105,7 @@ module Google
105
105
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/routers"
106
106
  body = request_pb.router_resource.to_json
107
107
  query_string_params = {}
108
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
108
109
 
109
110
  [uri, body, query_string_params]
110
111
  end
@@ -134,6 +135,7 @@ module Google
134
135
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/routers/#{request_pb.router}"
135
136
  body = request_pb.router_resource.to_json
136
137
  query_string_params = {}
138
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
137
139
 
138
140
  [uri, body, query_string_params]
139
141
  end
@@ -158,6 +160,7 @@ module Google
158
160
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/routers/#{request_pb.router}"
159
161
  body = request_pb.router_resource.to_json
160
162
  query_string_params = {}
163
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
161
164
 
162
165
  [uri, body, query_string_params]
163
166
  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, _query_string_params = transcode_insert request
332
+ uri, body, query_string_params = transcode_insert request
330
333
  response = @client_stub.make_post_request(
331
334
  uri: uri,
332
335
  body: body,
336
+ params: query_string_params,
333
337
  options: options
334
338
  )
335
339
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -404,7 +408,8 @@ module Google
404
408
  # Set x-goog-api-client header
405
409
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
406
410
  lib_name: @config.lib_name, lib_version: @config.lib_version,
407
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
411
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
412
+ transports_version_send: [:rest]
408
413
 
409
414
  options.apply_defaults timeout: @config.timeout,
410
415
  metadata: call_metadata
@@ -58,6 +58,7 @@ module Google
58
58
  uri = "/compute/v1/projects/#{request_pb.project}/global/routes"
59
59
  body = request_pb.route_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
@@ -182,7 +182,8 @@ module Google
182
182
  # Set x-goog-api-client header
183
183
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
184
184
  lib_name: @config.lib_name, lib_version: @config.lib_version,
185
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
185
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
186
+ transports_version_send: [:rest]
186
187
 
187
188
  options.apply_defaults timeout: @config.timeout,
188
189
  metadata: call_metadata
@@ -253,7 +254,8 @@ module Google
253
254
  # Set x-goog-api-client header
254
255
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
255
256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
256
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
257
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
258
+ transports_version_send: [:rest]
257
259
 
258
260
  options.apply_defaults timeout: @config.timeout,
259
261
  metadata: call_metadata
@@ -318,7 +320,8 @@ module Google
318
320
  # Set x-goog-api-client header
319
321
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
320
322
  lib_name: @config.lib_name, lib_version: @config.lib_version,
321
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
323
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
324
+ transports_version_send: [:rest]
322
325
 
323
326
  options.apply_defaults timeout: @config.timeout,
324
327
  metadata: call_metadata
@@ -384,7 +387,8 @@ module Google
384
387
  # Set x-goog-api-client header
385
388
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
386
389
  lib_name: @config.lib_name, lib_version: @config.lib_version,
387
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
390
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
391
+ transports_version_send: [:rest]
388
392
 
389
393
  options.apply_defaults timeout: @config.timeout,
390
394
  metadata: call_metadata
@@ -455,15 +459,17 @@ module Google
455
459
  # Set x-goog-api-client header
456
460
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
457
461
  lib_name: @config.lib_name, lib_version: @config.lib_version,
458
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
462
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
463
+ transports_version_send: [:rest]
459
464
 
460
465
  options.apply_defaults timeout: @config.timeout,
461
466
  metadata: call_metadata
462
467
 
463
- uri, body, _query_string_params = transcode_insert request
468
+ uri, body, query_string_params = transcode_insert request
464
469
  response = @client_stub.make_post_request(
465
470
  uri: uri,
466
471
  body: body,
472
+ params: query_string_params,
467
473
  options: options
468
474
  )
469
475
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -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
@@ -621,7 +628,8 @@ module Google
621
628
  # Set x-goog-api-client header
622
629
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
623
630
  lib_name: @config.lib_name, lib_version: @config.lib_version,
624
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
631
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
632
+ transports_version_send: [:rest]
625
633
 
626
634
  options.apply_defaults timeout: @config.timeout,
627
635
  metadata: call_metadata
@@ -694,15 +702,17 @@ module Google
694
702
  # Set x-goog-api-client header
695
703
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
696
704
  lib_name: @config.lib_name, lib_version: @config.lib_version,
697
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
705
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
706
+ transports_version_send: [:rest]
698
707
 
699
708
  options.apply_defaults timeout: @config.timeout,
700
709
  metadata: call_metadata
701
710
 
702
- uri, body, _query_string_params = transcode_patch request
711
+ uri, body, query_string_params = transcode_patch request
703
712
  response = @client_stub.make_patch_request(
704
713
  uri: uri,
705
714
  body: body,
715
+ params: query_string_params,
706
716
  options: options
707
717
  )
708
718
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -763,15 +773,17 @@ module Google
763
773
  # Set x-goog-api-client header
764
774
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
765
775
  lib_name: @config.lib_name, lib_version: @config.lib_version,
766
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
776
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
777
+ transports_version_send: [:rest]
767
778
 
768
779
  options.apply_defaults timeout: @config.timeout,
769
780
  metadata: call_metadata
770
781
 
771
- uri, body, _query_string_params = transcode_patch_rule request
782
+ uri, body, query_string_params = transcode_patch_rule request
772
783
  response = @client_stub.make_post_request(
773
784
  uri: uri,
774
785
  body: body,
786
+ params: query_string_params,
775
787
  options: options
776
788
  )
777
789
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -830,7 +842,8 @@ module Google
830
842
  # Set x-goog-api-client header
831
843
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
832
844
  lib_name: @config.lib_name, lib_version: @config.lib_version,
833
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
845
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
846
+ transports_version_send: [:rest]
834
847
 
835
848
  options.apply_defaults timeout: @config.timeout,
836
849
  metadata: call_metadata
@@ -83,6 +83,7 @@ module Google
83
83
  uri = "/compute/v1/projects/#{request_pb.project}/global/securityPolicies"
84
84
  body = request_pb.security_policy_resource.to_json
85
85
  query_string_params = {}
86
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
86
87
 
87
88
  [uri, body, query_string_params]
88
89
  end
@@ -129,6 +130,7 @@ module Google
129
130
  uri = "/compute/v1/projects/#{request_pb.project}/global/securityPolicies/#{request_pb.security_policy}"
130
131
  body = request_pb.security_policy_resource.to_json
131
132
  query_string_params = {}
133
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
132
134
 
133
135
  [uri, body, query_string_params]
134
136
  end
@@ -141,6 +143,7 @@ module Google
141
143
  uri = "/compute/v1/projects/#{request_pb.project}/global/securityPolicies/#{request_pb.security_policy}/patchRule"
142
144
  body = request_pb.security_policy_rule_resource.to_json
143
145
  query_string_params = {}
146
+ query_string_params["priority"] = request_pb.priority.to_s if request_pb.has_priority?
144
147
 
145
148
  [uri, body, query_string_params]
146
149
  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
@@ -253,7 +254,8 @@ module Google
253
254
  # Set x-goog-api-client header
254
255
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
255
256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
256
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
257
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
258
+ transports_version_send: [:rest]
257
259
 
258
260
  options.apply_defaults timeout: @config.timeout,
259
261
  metadata: call_metadata
@@ -319,7 +321,8 @@ module Google
319
321
  # Set x-goog-api-client header
320
322
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
321
323
  lib_name: @config.lib_name, lib_version: @config.lib_version,
322
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
324
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
325
+ transports_version_send: [:rest]
323
326
 
324
327
  options.apply_defaults timeout: @config.timeout,
325
328
  metadata: call_metadata
@@ -402,7 +405,8 @@ module Google
402
405
  # Set x-goog-api-client header
403
406
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
404
407
  lib_name: @config.lib_name, lib_version: @config.lib_version,
405
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
408
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
409
+ transports_version_send: [:rest]
406
410
 
407
411
  options.apply_defaults timeout: @config.timeout,
408
412
  metadata: call_metadata
@@ -469,7 +473,8 @@ module Google
469
473
  # Set x-goog-api-client header
470
474
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
471
475
  lib_name: @config.lib_name, lib_version: @config.lib_version,
472
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
476
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
477
+ transports_version_send: [:rest]
473
478
 
474
479
  options.apply_defaults timeout: @config.timeout,
475
480
  metadata: call_metadata
@@ -536,7 +541,8 @@ module Google
536
541
  # Set x-goog-api-client header
537
542
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
538
543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
539
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
544
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
545
+ transports_version_send: [:rest]
540
546
 
541
547
  options.apply_defaults timeout: @config.timeout,
542
548
  metadata: call_metadata
@@ -603,7 +609,8 @@ module Google
603
609
  # Set x-goog-api-client header
604
610
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
605
611
  lib_name: @config.lib_name, lib_version: @config.lib_version,
606
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
612
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
613
+ transports_version_send: [:rest]
607
614
 
608
615
  options.apply_defaults timeout: @config.timeout,
609
616
  metadata: call_metadata
@@ -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
@@ -76,6 +76,7 @@ module Google
76
76
  uri = "/compute/v1/projects/#{request_pb.project}/global/sslCertificates"
77
77
  body = request_pb.ssl_certificate_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
@@ -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, _query_string_params = transcode_insert request
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
@@ -487,7 +492,8 @@ 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
@@ -560,15 +566,17 @@ module Google
560
566
  # Set x-goog-api-client header
561
567
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
562
568
  lib_name: @config.lib_name, lib_version: @config.lib_version,
563
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
569
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
570
+ transports_version_send: [:rest]
564
571
 
565
572
  options.apply_defaults timeout: @config.timeout,
566
573
  metadata: call_metadata
567
574
 
568
- uri, body, _query_string_params = transcode_patch request
575
+ uri, body, query_string_params = transcode_patch request
569
576
  response = @client_stub.make_patch_request(
570
577
  uri: uri,
571
578
  body: body,
579
+ params: query_string_params,
572
580
  options: options
573
581
  )
574
582
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -58,6 +58,7 @@ module Google
58
58
  uri = "/compute/v1/projects/#{request_pb.project}/global/sslPolicies"
59
59
  body = request_pb.ssl_policy_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
@@ -104,6 +105,7 @@ module Google
104
105
  uri = "/compute/v1/projects/#{request_pb.project}/global/sslPolicies/#{request_pb.ssl_policy}"
105
106
  body = request_pb.ssl_policy_resource.to_json
106
107
  query_string_params = {}
108
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
107
109
 
108
110
  [uri, body, query_string_params]
109
111
  end