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
@@ -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
@@ -477,15 +482,17 @@ module Google
477
482
  # Set x-goog-api-client header
478
483
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
479
484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
480
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
485
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
486
+ transports_version_send: [:rest]
481
487
 
482
488
  options.apply_defaults timeout: @config.timeout,
483
489
  metadata: call_metadata
484
490
 
485
- uri, body, _query_string_params = transcode_set_backend_service request
491
+ uri, body, query_string_params = transcode_set_backend_service request
486
492
  response = @client_stub.make_post_request(
487
493
  uri: uri,
488
494
  body: body,
495
+ params: query_string_params,
489
496
  options: options
490
497
  )
491
498
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -550,15 +557,17 @@ module Google
550
557
  # Set x-goog-api-client header
551
558
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
552
559
  lib_name: @config.lib_name, lib_version: @config.lib_version,
553
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
560
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
561
+ transports_version_send: [:rest]
554
562
 
555
563
  options.apply_defaults timeout: @config.timeout,
556
564
  metadata: call_metadata
557
565
 
558
- uri, body, _query_string_params = transcode_set_proxy_header request
566
+ uri, body, query_string_params = transcode_set_proxy_header request
559
567
  response = @client_stub.make_post_request(
560
568
  uri: uri,
561
569
  body: body,
570
+ params: query_string_params,
562
571
  options: options
563
572
  )
564
573
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -58,6 +58,7 @@ module Google
58
58
  uri = "/compute/v1/projects/#{request_pb.project}/global/targetTcpProxies"
59
59
  body = request_pb.target_tcp_proxy_resource.to_json
60
60
  query_string_params = {}
61
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
61
62
 
62
63
  [uri, body, query_string_params]
63
64
  end
@@ -87,6 +88,7 @@ module Google
87
88
  uri = "/compute/v1/projects/#{request_pb.project}/global/targetTcpProxies/#{request_pb.target_tcp_proxy}/setBackendService"
88
89
  body = request_pb.target_tcp_proxies_set_backend_service_request_resource.to_json
89
90
  query_string_params = {}
91
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
90
92
 
91
93
  [uri, body, query_string_params]
92
94
  end
@@ -99,6 +101,7 @@ module Google
99
101
  uri = "/compute/v1/projects/#{request_pb.project}/global/targetTcpProxies/#{request_pb.target_tcp_proxy}/setProxyHeader"
100
102
  body = request_pb.target_tcp_proxies_set_proxy_header_request_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
@@ -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
@@ -273,7 +274,8 @@ module Google
273
274
  # Set x-goog-api-client header
274
275
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
276
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
277
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
278
+ transports_version_send: [:rest]
277
279
 
278
280
  options.apply_defaults timeout: @config.timeout,
279
281
  metadata: call_metadata
@@ -340,7 +342,8 @@ module Google
340
342
  # Set x-goog-api-client header
341
343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
345
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
346
+ transports_version_send: [:rest]
344
347
 
345
348
  options.apply_defaults timeout: @config.timeout,
346
349
  metadata: call_metadata
@@ -412,15 +415,17 @@ module Google
412
415
  # Set x-goog-api-client header
413
416
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
417
  lib_name: @config.lib_name, lib_version: @config.lib_version,
415
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
418
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
419
+ transports_version_send: [:rest]
416
420
 
417
421
  options.apply_defaults timeout: @config.timeout,
418
422
  metadata: call_metadata
419
423
 
420
- uri, body, _query_string_params = transcode_insert request
424
+ uri, body, query_string_params = transcode_insert request
421
425
  response = @client_stub.make_post_request(
422
426
  uri: uri,
423
427
  body: body,
428
+ params: query_string_params,
424
429
  options: options
425
430
  )
426
431
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -497,7 +502,8 @@ module Google
497
502
  # Set x-goog-api-client header
498
503
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
499
504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
500
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
505
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
506
+ transports_version_send: [:rest]
501
507
 
502
508
  options.apply_defaults timeout: @config.timeout,
503
509
  metadata: call_metadata
@@ -76,6 +76,7 @@ module Google
76
76
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/targetVpnGateways"
77
77
  body = request_pb.target_vpn_gateway_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
@@ -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
@@ -481,15 +486,17 @@ module Google
481
486
  # Set x-goog-api-client header
482
487
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
488
  lib_name: @config.lib_name, lib_version: @config.lib_version,
484
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
489
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
490
+ transports_version_send: [:rest]
485
491
 
486
492
  options.apply_defaults timeout: @config.timeout,
487
493
  metadata: call_metadata
488
494
 
489
- uri, body, _query_string_params = transcode_invalidate_cache request
495
+ uri, body, query_string_params = transcode_invalidate_cache request
490
496
  response = @client_stub.make_post_request(
491
497
  uri: uri,
492
498
  body: body,
499
+ params: query_string_params,
493
500
  options: options
494
501
  )
495
502
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -564,7 +571,8 @@ module Google
564
571
  # Set x-goog-api-client header
565
572
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
566
573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
567
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
574
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
575
+ transports_version_send: [:rest]
568
576
 
569
577
  options.apply_defaults timeout: @config.timeout,
570
578
  metadata: call_metadata
@@ -637,15 +645,17 @@ module Google
637
645
  # Set x-goog-api-client header
638
646
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
639
647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
640
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
648
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
649
+ transports_version_send: [:rest]
641
650
 
642
651
  options.apply_defaults timeout: @config.timeout,
643
652
  metadata: call_metadata
644
653
 
645
- uri, body, _query_string_params = transcode_patch request
654
+ uri, body, query_string_params = transcode_patch request
646
655
  response = @client_stub.make_patch_request(
647
656
  uri: uri,
648
657
  body: body,
658
+ params: query_string_params,
649
659
  options: options
650
660
  )
651
661
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -710,15 +720,17 @@ module Google
710
720
  # Set x-goog-api-client header
711
721
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
722
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
723
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
724
+ transports_version_send: [:rest]
714
725
 
715
726
  options.apply_defaults timeout: @config.timeout,
716
727
  metadata: call_metadata
717
728
 
718
- uri, body, _query_string_params = transcode_update request
729
+ uri, body, query_string_params = transcode_update request
719
730
  response = @client_stub.make_put_request(
720
731
  uri: uri,
721
732
  body: body,
733
+ params: query_string_params,
722
734
  options: options
723
735
  )
724
736
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -777,7 +789,8 @@ module Google
777
789
  # Set x-goog-api-client header
778
790
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
779
791
  lib_name: @config.lib_name, lib_version: @config.lib_version,
780
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
792
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
793
+ transports_version_send: [:rest]
781
794
 
782
795
  options.apply_defaults timeout: @config.timeout,
783
796
  metadata: call_metadata
@@ -76,6 +76,7 @@ module Google
76
76
  uri = "/compute/v1/projects/#{request_pb.project}/global/urlMaps"
77
77
  body = request_pb.url_map_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
@@ -88,6 +89,7 @@ module Google
88
89
  uri = "/compute/v1/projects/#{request_pb.project}/global/urlMaps/#{request_pb.url_map}/invalidateCache"
89
90
  body = request_pb.cache_invalidation_rule_resource.to_json
90
91
  query_string_params = {}
92
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
91
93
 
92
94
  [uri, body, query_string_params]
93
95
  end
@@ -117,6 +119,7 @@ module Google
117
119
  uri = "/compute/v1/projects/#{request_pb.project}/global/urlMaps/#{request_pb.url_map}"
118
120
  body = request_pb.url_map_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
@@ -129,6 +132,7 @@ module Google
129
132
  uri = "/compute/v1/projects/#{request_pb.project}/global/urlMaps/#{request_pb.url_map}"
130
133
  body = request_pb.url_map_resource.to_json
131
134
  query_string_params = {}
135
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
132
136
 
133
137
  [uri, body, query_string_params]
134
138
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Compute
23
23
  module V1
24
- VERSION = "0.1.0"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  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
@@ -273,7 +274,8 @@ module Google
273
274
  # Set x-goog-api-client header
274
275
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
276
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
277
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
278
+ transports_version_send: [:rest]
277
279
 
278
280
  options.apply_defaults timeout: @config.timeout,
279
281
  metadata: call_metadata
@@ -340,7 +342,8 @@ module Google
340
342
  # Set x-goog-api-client header
341
343
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
344
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
345
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
346
+ transports_version_send: [:rest]
344
347
 
345
348
  options.apply_defaults timeout: @config.timeout,
346
349
  metadata: call_metadata
@@ -406,7 +409,8 @@ 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
@@ -478,15 +482,17 @@ module Google
478
482
  # Set x-goog-api-client header
479
483
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
480
484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
481
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
485
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
486
+ transports_version_send: [:rest]
482
487
 
483
488
  options.apply_defaults timeout: @config.timeout,
484
489
  metadata: call_metadata
485
490
 
486
- uri, body, _query_string_params = transcode_insert request
491
+ uri, body, query_string_params = transcode_insert request
487
492
  response = @client_stub.make_post_request(
488
493
  uri: uri,
489
494
  body: body,
495
+ params: query_string_params,
490
496
  options: options
491
497
  )
492
498
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -563,7 +569,8 @@ module Google
563
569
  # Set x-goog-api-client header
564
570
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
565
571
  lib_name: @config.lib_name, lib_version: @config.lib_version,
566
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
572
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
573
+ transports_version_send: [:rest]
567
574
 
568
575
  options.apply_defaults timeout: @config.timeout,
569
576
  metadata: call_metadata
@@ -638,15 +645,17 @@ module Google
638
645
  # Set x-goog-api-client header
639
646
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
640
647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
641
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
648
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
649
+ transports_version_send: [:rest]
642
650
 
643
651
  options.apply_defaults timeout: @config.timeout,
644
652
  metadata: call_metadata
645
653
 
646
- uri, body, _query_string_params = transcode_set_labels request
654
+ uri, body, query_string_params = transcode_set_labels request
647
655
  response = @client_stub.make_post_request(
648
656
  uri: uri,
649
657
  body: body,
658
+ params: query_string_params,
650
659
  options: options
651
660
  )
652
661
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -707,7 +716,8 @@ module Google
707
716
  # Set x-goog-api-client header
708
717
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
709
718
  lib_name: @config.lib_name, lib_version: @config.lib_version,
710
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
719
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
720
+ transports_version_send: [:rest]
711
721
 
712
722
  options.apply_defaults timeout: @config.timeout,
713
723
  metadata: call_metadata
@@ -88,6 +88,7 @@ module Google
88
88
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/vpnGateways"
89
89
  body = request_pb.vpn_gateway_resource.to_json
90
90
  query_string_params = {}
91
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
91
92
 
92
93
  [uri, body, query_string_params]
93
94
  end
@@ -117,6 +118,7 @@ module Google
117
118
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/vpnGateways/#{request_pb.resource}/setLabels"
118
119
  body = request_pb.region_set_labels_request_resource.to_json
119
120
  query_string_params = {}
121
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
120
122
 
121
123
  [uri, body, query_string_params]
122
124
  end