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
@@ -71,6 +71,7 @@ module Google
71
71
  uri = "/compute/v1/projects/#{request_pb.project}/global/licenses"
72
72
  body = request_pb.license_resource.to_json
73
73
  query_string_params = {}
74
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
74
75
 
75
76
  [uri, body, query_string_params]
76
77
  end
@@ -200,7 +200,8 @@ module Google
200
200
  # Set x-goog-api-client header
201
201
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
202
202
  lib_name: @config.lib_name, lib_version: @config.lib_version,
203
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
203
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
204
+ transports_version_send: [:rest]
204
205
 
205
206
  options.apply_defaults timeout: @config.timeout,
206
207
  metadata: call_metadata
@@ -267,7 +268,8 @@ module Google
267
268
  # Set x-goog-api-client header
268
269
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
270
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
271
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
272
+ transports_version_send: [:rest]
271
273
 
272
274
  options.apply_defaults timeout: @config.timeout,
273
275
  metadata: call_metadata
@@ -351,7 +353,8 @@ module Google
351
353
  # Set x-goog-api-client header
352
354
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
353
355
  lib_name: @config.lib_name, lib_version: @config.lib_version,
354
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
356
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
357
+ transports_version_send: [:rest]
355
358
 
356
359
  options.apply_defaults timeout: @config.timeout,
357
360
  metadata: call_metadata
@@ -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
@@ -275,15 +276,17 @@ module Google
275
276
  # Set x-goog-api-client header
276
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
277
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
278
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
279
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
280
+ transports_version_send: [:rest]
279
281
 
280
282
  options.apply_defaults timeout: @config.timeout,
281
283
  metadata: call_metadata
282
284
 
283
- uri, body, _query_string_params = transcode_attach_network_endpoints request
285
+ uri, body, query_string_params = transcode_attach_network_endpoints request
284
286
  response = @client_stub.make_post_request(
285
287
  uri: uri,
286
288
  body: body,
289
+ params: query_string_params,
287
290
  options: options
288
291
  )
289
292
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -348,7 +351,8 @@ module Google
348
351
  # Set x-goog-api-client header
349
352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
354
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
355
+ transports_version_send: [:rest]
352
356
 
353
357
  options.apply_defaults timeout: @config.timeout,
354
358
  metadata: call_metadata
@@ -423,15 +427,17 @@ module Google
423
427
  # Set x-goog-api-client header
424
428
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
425
429
  lib_name: @config.lib_name, lib_version: @config.lib_version,
426
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
430
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
431
+ transports_version_send: [:rest]
427
432
 
428
433
  options.apply_defaults timeout: @config.timeout,
429
434
  metadata: call_metadata
430
435
 
431
- uri, body, _query_string_params = transcode_detach_network_endpoints request
436
+ uri, body, query_string_params = transcode_detach_network_endpoints request
432
437
  response = @client_stub.make_post_request(
433
438
  uri: uri,
434
439
  body: body,
440
+ params: query_string_params,
435
441
  options: options
436
442
  )
437
443
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -490,7 +496,8 @@ 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
@@ -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_insert request
578
+ uri, body, query_string_params = transcode_insert request
571
579
  response = @client_stub.make_post_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
@@ -647,7 +656,8 @@ module Google
647
656
  # Set x-goog-api-client header
648
657
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
649
658
  lib_name: @config.lib_name, lib_version: @config.lib_version,
650
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
659
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
660
+ transports_version_send: [:rest]
651
661
 
652
662
  options.apply_defaults timeout: @config.timeout,
653
663
  metadata: call_metadata
@@ -736,15 +746,17 @@ module Google
736
746
  # Set x-goog-api-client header
737
747
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
738
748
  lib_name: @config.lib_name, lib_version: @config.lib_version,
739
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
749
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
750
+ transports_version_send: [:rest]
740
751
 
741
752
  options.apply_defaults timeout: @config.timeout,
742
753
  metadata: call_metadata
743
754
 
744
- uri, body, _query_string_params = transcode_list_network_endpoints request
755
+ uri, body, query_string_params = transcode_list_network_endpoints request
745
756
  response = @client_stub.make_post_request(
746
757
  uri: uri,
747
758
  body: body,
759
+ params: query_string_params,
748
760
  options: options
749
761
  )
750
762
  result = ::Google::Cloud::Compute::V1::NetworkEndpointGroupsListNetworkEndpoints.decode_json response.body, ignore_unknown_fields: true
@@ -805,7 +817,8 @@ module Google
805
817
  # Set x-goog-api-client header
806
818
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
807
819
  lib_name: @config.lib_name, lib_version: @config.lib_version,
808
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
820
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
821
+ transports_version_send: [:rest]
809
822
 
810
823
  options.apply_defaults timeout: @config.timeout,
811
824
  metadata: call_metadata
@@ -51,6 +51,7 @@ module Google
51
51
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/networkEndpointGroups/#{request_pb.network_endpoint_group}/attachNetworkEndpoints"
52
52
  body = request_pb.network_endpoint_groups_attach_endpoints_request_resource.to_json
53
53
  query_string_params = {}
54
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
54
55
 
55
56
  [uri, body, query_string_params]
56
57
  end
@@ -76,6 +77,7 @@ module Google
76
77
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/networkEndpointGroups/#{request_pb.network_endpoint_group}/detachNetworkEndpoints"
77
78
  body = request_pb.network_endpoint_groups_detach_endpoints_request_resource.to_json
78
79
  query_string_params = {}
80
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
79
81
 
80
82
  [uri, body, query_string_params]
81
83
  end
@@ -100,6 +102,7 @@ module Google
100
102
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/networkEndpointGroups"
101
103
  body = request_pb.network_endpoint_group_resource.to_json
102
104
  query_string_params = {}
105
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
103
106
 
104
107
  [uri, body, query_string_params]
105
108
  end
@@ -129,6 +132,11 @@ module Google
129
132
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/networkEndpointGroups/#{request_pb.network_endpoint_group}/listNetworkEndpoints"
130
133
  body = request_pb.network_endpoint_groups_list_endpoints_request_resource.to_json
131
134
  query_string_params = {}
135
+ query_string_params["filter"] = request_pb.filter.to_s if request_pb.has_filter?
136
+ query_string_params["maxResults"] = request_pb.max_results.to_s if request_pb.has_max_results?
137
+ query_string_params["orderBy"] = request_pb.order_by.to_s if request_pb.has_order_by?
138
+ query_string_params["pageToken"] = request_pb.page_token.to_s if request_pb.has_page_token?
139
+ query_string_params["returnPartialSuccess"] = request_pb.return_partial_success.to_s if request_pb.has_return_partial_success?
132
140
 
133
141
  [uri, body, query_string_params]
134
142
  end
@@ -188,15 +188,17 @@ 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
195
196
 
196
- uri, body, _query_string_params = transcode_add_peering request
197
+ uri, body, query_string_params = transcode_add_peering request
197
198
  response = @client_stub.make_post_request(
198
199
  uri: uri,
199
200
  body: body,
201
+ params: query_string_params,
200
202
  options: options
201
203
  )
202
204
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -259,7 +261,8 @@ module Google
259
261
  # Set x-goog-api-client header
260
262
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
261
263
  lib_name: @config.lib_name, lib_version: @config.lib_version,
262
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
264
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
265
+ transports_version_send: [:rest]
263
266
 
264
267
  options.apply_defaults timeout: @config.timeout,
265
268
  metadata: call_metadata
@@ -324,7 +327,8 @@ module Google
324
327
  # Set x-goog-api-client header
325
328
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
326
329
  lib_name: @config.lib_name, lib_version: @config.lib_version,
327
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
330
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
331
+ transports_version_send: [:rest]
328
332
 
329
333
  options.apply_defaults timeout: @config.timeout,
330
334
  metadata: call_metadata
@@ -394,15 +398,17 @@ module Google
394
398
  # Set x-goog-api-client header
395
399
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
396
400
  lib_name: @config.lib_name, lib_version: @config.lib_version,
397
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
401
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
402
+ transports_version_send: [:rest]
398
403
 
399
404
  options.apply_defaults timeout: @config.timeout,
400
405
  metadata: call_metadata
401
406
 
402
- uri, body, _query_string_params = transcode_insert request
407
+ uri, body, query_string_params = transcode_insert request
403
408
  response = @client_stub.make_post_request(
404
409
  uri: uri,
405
410
  body: body,
411
+ params: query_string_params,
406
412
  options: options
407
413
  )
408
414
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -477,7 +483,8 @@ module Google
477
483
  # Set x-goog-api-client header
478
484
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
479
485
  lib_name: @config.lib_name, lib_version: @config.lib_version,
480
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
486
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
487
+ transports_version_send: [:rest]
481
488
 
482
489
  options.apply_defaults timeout: @config.timeout,
483
490
  metadata: call_metadata
@@ -568,7 +575,8 @@ module Google
568
575
  # Set x-goog-api-client header
569
576
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
570
577
  lib_name: @config.lib_name, lib_version: @config.lib_version,
571
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
578
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
579
+ transports_version_send: [:rest]
572
580
 
573
581
  options.apply_defaults timeout: @config.timeout,
574
582
  metadata: call_metadata
@@ -641,15 +649,17 @@ module Google
641
649
  # Set x-goog-api-client header
642
650
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
643
651
  lib_name: @config.lib_name, lib_version: @config.lib_version,
644
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
652
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
653
+ transports_version_send: [:rest]
645
654
 
646
655
  options.apply_defaults timeout: @config.timeout,
647
656
  metadata: call_metadata
648
657
 
649
- uri, body, _query_string_params = transcode_patch request
658
+ uri, body, query_string_params = transcode_patch request
650
659
  response = @client_stub.make_patch_request(
651
660
  uri: uri,
652
661
  body: body,
662
+ params: query_string_params,
653
663
  options: options
654
664
  )
655
665
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -714,15 +724,17 @@ module Google
714
724
  # Set x-goog-api-client header
715
725
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
716
726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
717
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
727
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
728
+ transports_version_send: [:rest]
718
729
 
719
730
  options.apply_defaults timeout: @config.timeout,
720
731
  metadata: call_metadata
721
732
 
722
- uri, body, _query_string_params = transcode_remove_peering request
733
+ uri, body, query_string_params = transcode_remove_peering request
723
734
  response = @client_stub.make_post_request(
724
735
  uri: uri,
725
736
  body: body,
737
+ params: query_string_params,
726
738
  options: options
727
739
  )
728
740
  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
@@ -858,15 +871,17 @@ module Google
858
871
  # Set x-goog-api-client header
859
872
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
860
873
  lib_name: @config.lib_name, lib_version: @config.lib_version,
861
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
874
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
875
+ transports_version_send: [:rest]
862
876
 
863
877
  options.apply_defaults timeout: @config.timeout,
864
878
  metadata: call_metadata
865
879
 
866
- uri, body, _query_string_params = transcode_update_peering request
880
+ uri, body, query_string_params = transcode_update_peering request
867
881
  response = @client_stub.make_patch_request(
868
882
  uri: uri,
869
883
  body: body,
884
+ params: query_string_params,
870
885
  options: options
871
886
  )
872
887
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -33,6 +33,7 @@ module Google
33
33
  uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/addPeering"
34
34
  body = request_pb.networks_add_peering_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
@@ -70,6 +71,7 @@ module Google
70
71
  uri = "/compute/v1/projects/#{request_pb.project}/global/networks"
71
72
  body = request_pb.network_resource.to_json
72
73
  query_string_params = {}
74
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
73
75
 
74
76
  [uri, body, query_string_params]
75
77
  end
@@ -119,6 +121,7 @@ module Google
119
121
  uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}"
120
122
  body = request_pb.network_resource.to_json
121
123
  query_string_params = {}
124
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
122
125
 
123
126
  [uri, body, query_string_params]
124
127
  end
@@ -131,6 +134,7 @@ module Google
131
134
  uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/removePeering"
132
135
  body = request_pb.networks_remove_peering_request_resource.to_json
133
136
  query_string_params = {}
137
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
134
138
 
135
139
  [uri, body, query_string_params]
136
140
  end
@@ -156,6 +160,7 @@ module Google
156
160
  uri = "/compute/v1/projects/#{request_pb.project}/global/networks/#{request_pb.network}/updatePeering"
157
161
  body = request_pb.networks_update_peering_request_resource.to_json
158
162
  query_string_params = {}
163
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
159
164
 
160
165
  [uri, body, query_string_params]
161
166
  end
@@ -190,15 +190,17 @@ module Google
190
190
  # Set x-goog-api-client header
191
191
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
192
192
  lib_name: @config.lib_name, lib_version: @config.lib_version,
193
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
193
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
194
+ transports_version_send: [:rest]
194
195
 
195
196
  options.apply_defaults timeout: @config.timeout,
196
197
  metadata: call_metadata
197
198
 
198
- uri, body, _query_string_params = transcode_add_nodes request
199
+ uri, body, query_string_params = transcode_add_nodes request
199
200
  response = @client_stub.make_post_request(
200
201
  uri: uri,
201
202
  body: body,
203
+ params: query_string_params,
202
204
  options: options
203
205
  )
204
206
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -275,7 +277,8 @@ module Google
275
277
  # Set x-goog-api-client header
276
278
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
277
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
278
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
280
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
281
+ transports_version_send: [:rest]
279
282
 
280
283
  options.apply_defaults timeout: @config.timeout,
281
284
  metadata: call_metadata
@@ -348,7 +351,8 @@ module Google
348
351
  # Set x-goog-api-client header
349
352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
354
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
355
+ transports_version_send: [:rest]
352
356
 
353
357
  options.apply_defaults timeout: @config.timeout,
354
358
  metadata: call_metadata
@@ -423,15 +427,17 @@ module Google
423
427
  # Set x-goog-api-client header
424
428
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
425
429
  lib_name: @config.lib_name, lib_version: @config.lib_version,
426
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
430
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
431
+ transports_version_send: [:rest]
427
432
 
428
433
  options.apply_defaults timeout: @config.timeout,
429
434
  metadata: call_metadata
430
435
 
431
- uri, body, _query_string_params = transcode_delete_nodes request
436
+ uri, body, query_string_params = transcode_delete_nodes request
432
437
  response = @client_stub.make_post_request(
433
438
  uri: uri,
434
439
  body: body,
440
+ params: query_string_params,
435
441
  options: options
436
442
  )
437
443
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -490,7 +496,8 @@ 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
@@ -558,7 +565,8 @@ module Google
558
565
  # Set x-goog-api-client header
559
566
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
560
567
  lib_name: @config.lib_name, lib_version: @config.lib_version,
561
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
568
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
569
+ transports_version_send: [:rest]
562
570
 
563
571
  options.apply_defaults timeout: @config.timeout,
564
572
  metadata: call_metadata
@@ -633,15 +641,17 @@ module Google
633
641
  # Set x-goog-api-client header
634
642
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
635
643
  lib_name: @config.lib_name, lib_version: @config.lib_version,
636
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
644
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
645
+ transports_version_send: [:rest]
637
646
 
638
647
  options.apply_defaults timeout: @config.timeout,
639
648
  metadata: call_metadata
640
649
 
641
- uri, body, _query_string_params = transcode_insert request
650
+ uri, body, query_string_params = transcode_insert request
642
651
  response = @client_stub.make_post_request(
643
652
  uri: uri,
644
653
  body: body,
654
+ params: query_string_params,
645
655
  options: options
646
656
  )
647
657
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -718,7 +728,8 @@ module Google
718
728
  # Set x-goog-api-client header
719
729
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
720
730
  lib_name: @config.lib_name, lib_version: @config.lib_version,
721
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
731
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
732
+ transports_version_send: [:rest]
722
733
 
723
734
  options.apply_defaults timeout: @config.timeout,
724
735
  metadata: call_metadata
@@ -805,7 +816,8 @@ module Google
805
816
  # Set x-goog-api-client header
806
817
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
807
818
  lib_name: @config.lib_name, lib_version: @config.lib_version,
808
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
819
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
820
+ transports_version_send: [:rest]
809
821
 
810
822
  options.apply_defaults timeout: @config.timeout,
811
823
  metadata: call_metadata
@@ -880,15 +892,17 @@ module Google
880
892
  # Set x-goog-api-client header
881
893
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
882
894
  lib_name: @config.lib_name, lib_version: @config.lib_version,
883
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
895
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
896
+ transports_version_send: [:rest]
884
897
 
885
898
  options.apply_defaults timeout: @config.timeout,
886
899
  metadata: call_metadata
887
900
 
888
- uri, body, _query_string_params = transcode_patch request
901
+ uri, body, query_string_params = transcode_patch request
889
902
  response = @client_stub.make_patch_request(
890
903
  uri: uri,
891
904
  body: body,
905
+ params: query_string_params,
892
906
  options: options
893
907
  )
894
908
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -949,7 +963,8 @@ module Google
949
963
  # Set x-goog-api-client header
950
964
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
951
965
  lib_name: @config.lib_name, lib_version: @config.lib_version,
952
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
966
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
967
+ transports_version_send: [:rest]
953
968
 
954
969
  options.apply_defaults timeout: @config.timeout,
955
970
  metadata: call_metadata
@@ -1024,15 +1039,17 @@ module Google
1024
1039
  # Set x-goog-api-client header
1025
1040
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1026
1041
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1027
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1042
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1043
+ transports_version_send: [:rest]
1028
1044
 
1029
1045
  options.apply_defaults timeout: @config.timeout,
1030
1046
  metadata: call_metadata
1031
1047
 
1032
- uri, body, _query_string_params = transcode_set_node_template request
1048
+ uri, body, query_string_params = transcode_set_node_template request
1033
1049
  response = @client_stub.make_post_request(
1034
1050
  uri: uri,
1035
1051
  body: body,
1052
+ params: query_string_params,
1036
1053
  options: options
1037
1054
  )
1038
1055
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1093,7 +1110,8 @@ module Google
1093
1110
  # Set x-goog-api-client header
1094
1111
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1095
1112
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1096
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1113
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1114
+ transports_version_send: [:rest]
1097
1115
 
1098
1116
  options.apply_defaults timeout: @config.timeout,
1099
1117
  metadata: call_metadata