google-cloud-compute-v1 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (162) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/README.md +10 -8
  4. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +6 -3
  5. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +12 -6
  6. data/lib/google/cloud/compute/v1/addresses/rest/grpc_transcoding.rb +1 -0
  7. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +20 -10
  8. data/lib/google/cloud/compute/v1/autoscalers/rest/grpc_transcoding.rb +5 -0
  9. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +24 -12
  10. data/lib/google/cloud/compute/v1/backend_buckets/rest/grpc_transcoding.rb +4 -0
  11. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +32 -16
  12. data/lib/google/cloud/compute/v1/backend_services/rest/grpc_transcoding.rb +5 -0
  13. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +6 -3
  14. data/lib/google/cloud/compute/v1/disks/rest/client.rb +38 -19
  15. data/lib/google/cloud/compute/v1/disks/rest/grpc_transcoding.rb +8 -0
  16. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +14 -7
  17. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/grpc_transcoding.rb +1 -0
  18. data/lib/google/cloud/compute/v1/firewall_policies.rb +44 -0
  19. data/lib/google/cloud/compute/v1/firewall_policies/credentials.rb +52 -0
  20. data/lib/google/cloud/compute/v1/firewall_policies/rest.rb +35 -0
  21. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1459 -0
  22. data/lib/google/cloud/compute/v1/firewall_policies/rest/grpc_transcoding.rb +269 -0
  23. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +18 -9
  24. data/lib/google/cloud/compute/v1/firewalls/rest/grpc_transcoding.rb +3 -0
  25. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +20 -10
  26. data/lib/google/cloud/compute/v1/forwarding_rules/rest/grpc_transcoding.rb +3 -0
  27. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +10 -5
  28. data/lib/google/cloud/compute/v1/global_addresses/rest/grpc_transcoding.rb +1 -0
  29. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +18 -9
  30. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/grpc_transcoding.rb +3 -0
  31. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +20 -10
  32. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/grpc_transcoding.rb +3 -0
  33. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +10 -5
  34. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +6 -3
  35. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes.rb +44 -0
  36. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/credentials.rb +52 -0
  37. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest.rb +35 -0
  38. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +576 -0
  39. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/grpc_transcoding.rb +100 -0
  40. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +20 -10
  41. data/lib/google/cloud/compute/v1/health_checks/rest/grpc_transcoding.rb +3 -0
  42. data/lib/google/cloud/compute/v1/images/rest/client.rb +28 -14
  43. data/lib/google/cloud/compute/v1/images/rest/grpc_transcoding.rb +4 -0
  44. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +60 -30
  45. data/lib/google/cloud/compute/v1/instance_group_managers/rest/grpc_transcoding.rb +10 -0
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +28 -14
  47. data/lib/google/cloud/compute/v1/instance_groups/rest/grpc_transcoding.rb +9 -0
  48. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +16 -8
  49. data/lib/google/cloud/compute/v1/instance_templates/rest/grpc_transcoding.rb +1 -0
  50. data/lib/google/cloud/compute/v1/instances/rest/client.rb +120 -60
  51. data/lib/google/cloud/compute/v1/instances/rest/grpc_transcoding.rb +27 -0
  52. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +16 -8
  53. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/grpc_transcoding.rb +3 -0
  54. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +4 -2
  55. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +16 -8
  56. data/lib/google/cloud/compute/v1/interconnects/rest/grpc_transcoding.rb +2 -0
  57. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +4 -2
  58. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +16 -8
  59. data/lib/google/cloud/compute/v1/licenses/rest/grpc_transcoding.rb +1 -0
  60. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +6 -3
  61. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +26 -13
  62. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/grpc_transcoding.rb +8 -0
  63. data/lib/google/cloud/compute/v1/networks/rest/client.rb +30 -15
  64. data/lib/google/cloud/compute/v1/networks/rest/grpc_transcoding.rb +5 -0
  65. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +36 -18
  66. data/lib/google/cloud/compute/v1/node_groups/rest/grpc_transcoding.rb +6 -0
  67. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +18 -9
  68. data/lib/google/cloud/compute/v1/node_templates/rest/grpc_transcoding.rb +1 -0
  69. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +6 -3
  70. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +18 -9
  71. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/grpc_transcoding.rb +2 -0
  72. data/lib/google/cloud/compute/v1/projects/rest/client.rb +42 -21
  73. data/lib/google/cloud/compute/v1/projects/rest/grpc_transcoding.rb +12 -0
  74. data/lib/google/cloud/compute/v1/public_advertised_prefixes.rb +44 -0
  75. data/lib/google/cloud/compute/v1/public_advertised_prefixes/credentials.rb +52 -0
  76. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest.rb +35 -0
  77. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +576 -0
  78. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/grpc_transcoding.rb +100 -0
  79. data/lib/google/cloud/compute/v1/public_delegated_prefixes.rb +44 -0
  80. data/lib/google/cloud/compute/v1/public_delegated_prefixes/credentials.rb +52 -0
  81. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest.rb +35 -0
  82. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +671 -0
  83. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/grpc_transcoding.rb +118 -0
  84. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +18 -9
  85. data/lib/google/cloud/compute/v1/region_autoscalers/rest/grpc_transcoding.rb +5 -0
  86. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +20 -10
  87. data/lib/google/cloud/compute/v1/region_backend_services/rest/grpc_transcoding.rb +3 -0
  88. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +10 -5
  89. data/lib/google/cloud/compute/v1/region_commitments/rest/grpc_transcoding.rb +1 -0
  90. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +4 -2
  91. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +36 -18
  92. data/lib/google/cloud/compute/v1/region_disks/rest/grpc_transcoding.rb +7 -0
  93. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +14 -7
  94. data/lib/google/cloud/compute/v1/region_health_check_services/rest/grpc_transcoding.rb +2 -0
  95. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +18 -9
  96. data/lib/google/cloud/compute/v1/region_health_checks/rest/grpc_transcoding.rb +3 -0
  97. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +58 -29
  98. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/grpc_transcoding.rb +10 -0
  99. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +12 -6
  100. data/lib/google/cloud/compute/v1/region_instance_groups/rest/grpc_transcoding.rb +6 -0
  101. data/lib/google/cloud/compute/v1/region_instances.rb +44 -0
  102. data/lib/google/cloud/compute/v1/region_instances/credentials.rb +52 -0
  103. data/lib/google/cloud/compute/v1/region_instances/rest.rb +35 -0
  104. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +287 -0
  105. data/lib/google/cloud/compute/v1/region_instances/rest/grpc_transcoding.rb +46 -0
  106. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +10 -5
  107. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/grpc_transcoding.rb +1 -0
  108. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +10 -5
  109. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/grpc_transcoding.rb +1 -0
  110. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +8 -4
  111. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +10 -5
  112. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/grpc_transcoding.rb +1 -0
  113. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +14 -7
  114. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/grpc_transcoding.rb +2 -0
  115. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +18 -9
  116. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/grpc_transcoding.rb +3 -0
  117. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +20 -10
  118. data/lib/google/cloud/compute/v1/region_url_maps/rest/grpc_transcoding.rb +3 -0
  119. data/lib/google/cloud/compute/v1/regions/rest/client.rb +4 -2
  120. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +22 -11
  121. data/lib/google/cloud/compute/v1/reservations/rest/grpc_transcoding.rb +2 -0
  122. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +18 -9
  123. data/lib/google/cloud/compute/v1/resource_policies/rest/grpc_transcoding.rb +1 -0
  124. data/lib/google/cloud/compute/v1/routers/rest/client.rb +26 -13
  125. data/lib/google/cloud/compute/v1/routers/rest/grpc_transcoding.rb +3 -0
  126. data/lib/google/cloud/compute/v1/routes/rest/client.rb +10 -5
  127. data/lib/google/cloud/compute/v1/routes/rest/grpc_transcoding.rb +1 -0
  128. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +26 -13
  129. data/lib/google/cloud/compute/v1/security_policies/rest/grpc_transcoding.rb +3 -0
  130. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +14 -7
  131. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +12 -6
  132. data/lib/google/cloud/compute/v1/ssl_certificates/rest/grpc_transcoding.rb +1 -0
  133. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +16 -8
  134. data/lib/google/cloud/compute/v1/ssl_policies/rest/grpc_transcoding.rb +2 -0
  135. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +32 -16
  136. data/lib/google/cloud/compute/v1/subnetworks/rest/grpc_transcoding.rb +5 -0
  137. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +14 -7
  138. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/grpc_transcoding.rb +2 -0
  139. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +20 -10
  140. data/lib/google/cloud/compute/v1/target_http_proxies/rest/grpc_transcoding.rb +3 -0
  141. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +28 -14
  142. data/lib/google/cloud/compute/v1/target_https_proxies/rest/grpc_transcoding.rb +5 -0
  143. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +12 -6
  144. data/lib/google/cloud/compute/v1/target_instances/rest/grpc_transcoding.rb +1 -0
  145. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +34 -17
  146. data/lib/google/cloud/compute/v1/target_pools/rest/grpc_transcoding.rb +7 -0
  147. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +26 -13
  148. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/grpc_transcoding.rb +5 -0
  149. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +18 -9
  150. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/grpc_transcoding.rb +3 -0
  151. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +12 -6
  152. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/grpc_transcoding.rb +1 -0
  153. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +26 -13
  154. data/lib/google/cloud/compute/v1/url_maps/rest/grpc_transcoding.rb +4 -0
  155. data/lib/google/cloud/compute/v1/version.rb +1 -1
  156. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +20 -10
  157. data/lib/google/cloud/compute/v1/vpn_gateways/rest/grpc_transcoding.rb +2 -0
  158. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +12 -6
  159. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/grpc_transcoding.rb +1 -0
  160. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +8 -4
  161. data/lib/google/cloud/compute/v1/zones/rest/client.rb +4 -2
  162. metadata +37 -12
@@ -33,6 +33,7 @@ module Google
33
33
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/nodeGroups/#{request_pb.node_group}/addNodes"
34
34
  body = request_pb.node_groups_add_nodes_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
@@ -76,6 +77,7 @@ module Google
76
77
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/nodeGroups/#{request_pb.node_group}/deleteNodes"
77
78
  body = request_pb.node_groups_delete_nodes_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
@@ -113,6 +115,8 @@ module Google
113
115
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/nodeGroups"
114
116
  body = request_pb.node_group_resource.to_json
115
117
  query_string_params = {}
118
+ query_string_params["initialNodeCount"] = request_pb.initial_node_count.to_s
119
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
116
120
 
117
121
  [uri, body, query_string_params]
118
122
  end
@@ -159,6 +163,7 @@ module Google
159
163
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/nodeGroups/#{request_pb.node_group}"
160
164
  body = request_pb.node_group_resource.to_json
161
165
  query_string_params = {}
166
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
162
167
 
163
168
  [uri, body, query_string_params]
164
169
  end
@@ -183,6 +188,7 @@ module Google
183
188
  uri = "/compute/v1/projects/#{request_pb.project}/zones/#{request_pb.zone}/nodeGroups/#{request_pb.node_group}/setNodeTemplate"
184
189
  body = request_pb.node_groups_set_node_template_request_resource.to_json
185
190
  query_string_params = {}
191
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
186
192
 
187
193
  [uri, body, query_string_params]
188
194
  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
@@ -408,7 +411,8 @@ module Google
408
411
  # Set x-goog-api-client header
409
412
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
410
413
  lib_name: @config.lib_name, lib_version: @config.lib_version,
411
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
414
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
415
+ transports_version_send: [:rest]
412
416
 
413
417
  options.apply_defaults timeout: @config.timeout,
414
418
  metadata: call_metadata
@@ -481,15 +485,17 @@ module Google
481
485
  # Set x-goog-api-client header
482
486
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
483
487
  lib_name: @config.lib_name, lib_version: @config.lib_version,
484
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
488
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
489
+ transports_version_send: [:rest]
485
490
 
486
491
  options.apply_defaults timeout: @config.timeout,
487
492
  metadata: call_metadata
488
493
 
489
- uri, body, _query_string_params = transcode_insert request
494
+ uri, body, query_string_params = transcode_insert request
490
495
  response = @client_stub.make_post_request(
491
496
  uri: uri,
492
497
  body: body,
498
+ params: query_string_params,
493
499
  options: options
494
500
  )
495
501
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -566,7 +572,8 @@ module Google
566
572
  # Set x-goog-api-client header
567
573
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
568
574
  lib_name: @config.lib_name, lib_version: @config.lib_version,
569
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
575
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
576
+ transports_version_send: [:rest]
570
577
 
571
578
  options.apply_defaults timeout: @config.timeout,
572
579
  metadata: call_metadata
@@ -635,7 +642,8 @@ module Google
635
642
  # Set x-goog-api-client header
636
643
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
637
644
  lib_name: @config.lib_name, lib_version: @config.lib_version,
638
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
645
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
646
+ transports_version_send: [:rest]
639
647
 
640
648
  options.apply_defaults timeout: @config.timeout,
641
649
  metadata: call_metadata
@@ -704,7 +712,8 @@ module Google
704
712
  # Set x-goog-api-client header
705
713
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
714
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
715
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
716
+ transports_version_send: [:rest]
708
717
 
709
718
  options.apply_defaults timeout: @config.timeout,
710
719
  metadata: call_metadata
@@ -89,6 +89,7 @@ module Google
89
89
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/nodeTemplates"
90
90
  body = request_pb.node_template_resource.to_json
91
91
  query_string_params = {}
92
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
92
93
 
93
94
  [uri, body, query_string_params]
94
95
  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
@@ -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
@@ -572,15 +578,17 @@ module Google
572
578
  # Set x-goog-api-client header
573
579
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
574
580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
575
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
581
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
582
+ transports_version_send: [:rest]
576
583
 
577
584
  options.apply_defaults timeout: @config.timeout,
578
585
  metadata: call_metadata
579
586
 
580
- uri, body, _query_string_params = transcode_patch request
587
+ uri, body, query_string_params = transcode_patch request
581
588
  response = @client_stub.make_patch_request(
582
589
  uri: uri,
583
590
  body: body,
591
+ params: query_string_params,
584
592
  options: options
585
593
  )
586
594
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -641,7 +649,8 @@ 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
@@ -76,6 +76,7 @@ module Google
76
76
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/packetMirrorings"
77
77
  body = request_pb.packet_mirroring_resource.to_json
78
78
  query_string_params = {}
79
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
79
80
 
80
81
  [uri, body, query_string_params]
81
82
  end
@@ -105,6 +106,7 @@ module Google
105
106
  uri = "/compute/v1/projects/#{request_pb.project}/regions/#{request_pb.region}/packetMirrorings/#{request_pb.packet_mirroring}"
106
107
  body = request_pb.packet_mirroring_resource.to_json
107
108
  query_string_params = {}
109
+ query_string_params["requestId"] = request_pb.request_id.to_s if request_pb.has_request_id?
108
110
 
109
111
  [uri, body, query_string_params]
110
112
  end
@@ -184,7 +184,8 @@ module Google
184
184
  # Set x-goog-api-client header
185
185
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
186
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
187
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
188
+ transports_version_send: [:rest]
188
189
 
189
190
  options.apply_defaults timeout: @config.timeout,
190
191
  metadata: call_metadata
@@ -255,15 +256,17 @@ module Google
255
256
  # Set x-goog-api-client header
256
257
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
257
258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
258
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
259
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
260
+ transports_version_send: [:rest]
259
261
 
260
262
  options.apply_defaults timeout: @config.timeout,
261
263
  metadata: call_metadata
262
264
 
263
- uri, body, _query_string_params = transcode_disable_xpn_resource request
265
+ uri, body, query_string_params = transcode_disable_xpn_resource request
264
266
  response = @client_stub.make_post_request(
265
267
  uri: uri,
266
268
  body: body,
269
+ params: query_string_params,
267
270
  options: options
268
271
  )
269
272
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -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
@@ -395,15 +399,17 @@ module Google
395
399
  # Set x-goog-api-client header
396
400
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
397
401
  lib_name: @config.lib_name, lib_version: @config.lib_version,
398
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
402
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
403
+ transports_version_send: [:rest]
399
404
 
400
405
  options.apply_defaults timeout: @config.timeout,
401
406
  metadata: call_metadata
402
407
 
403
- uri, body, _query_string_params = transcode_enable_xpn_resource request
408
+ uri, body, query_string_params = transcode_enable_xpn_resource request
404
409
  response = @client_stub.make_post_request(
405
410
  uri: uri,
406
411
  body: body,
412
+ params: query_string_params,
407
413
  options: options
408
414
  )
409
415
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -458,7 +464,8 @@ module Google
458
464
  # Set x-goog-api-client header
459
465
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
460
466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
461
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
467
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
468
+ transports_version_send: [:rest]
462
469
 
463
470
  options.apply_defaults timeout: @config.timeout,
464
471
  metadata: call_metadata
@@ -520,7 +527,8 @@ module Google
520
527
  # Set x-goog-api-client header
521
528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
522
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
523
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
530
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
531
+ transports_version_send: [:rest]
524
532
 
525
533
  options.apply_defaults timeout: @config.timeout,
526
534
  metadata: call_metadata
@@ -602,7 +610,8 @@ module Google
602
610
  # Set x-goog-api-client header
603
611
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
604
612
  lib_name: @config.lib_name, lib_version: @config.lib_version,
605
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
613
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
614
+ transports_version_send: [:rest]
606
615
 
607
616
  options.apply_defaults timeout: @config.timeout,
608
617
  metadata: call_metadata
@@ -687,15 +696,17 @@ module Google
687
696
  # Set x-goog-api-client header
688
697
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
689
698
  lib_name: @config.lib_name, lib_version: @config.lib_version,
690
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
699
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
700
+ transports_version_send: [:rest]
691
701
 
692
702
  options.apply_defaults timeout: @config.timeout,
693
703
  metadata: call_metadata
694
704
 
695
- uri, body, _query_string_params = transcode_list_xpn_hosts request
705
+ uri, body, query_string_params = transcode_list_xpn_hosts request
696
706
  response = @client_stub.make_post_request(
697
707
  uri: uri,
698
708
  body: body,
709
+ params: query_string_params,
699
710
  options: options
700
711
  )
701
712
  result = ::Google::Cloud::Compute::V1::XpnHostList.decode_json response.body, ignore_unknown_fields: true
@@ -758,15 +769,17 @@ module Google
758
769
  # Set x-goog-api-client header
759
770
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
760
771
  lib_name: @config.lib_name, lib_version: @config.lib_version,
761
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
772
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
773
+ transports_version_send: [:rest]
762
774
 
763
775
  options.apply_defaults timeout: @config.timeout,
764
776
  metadata: call_metadata
765
777
 
766
- uri, body, _query_string_params = transcode_move_disk request
778
+ uri, body, query_string_params = transcode_move_disk request
767
779
  response = @client_stub.make_post_request(
768
780
  uri: uri,
769
781
  body: body,
782
+ params: query_string_params,
770
783
  options: options
771
784
  )
772
785
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -829,15 +842,17 @@ module Google
829
842
  # Set x-goog-api-client header
830
843
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
831
844
  lib_name: @config.lib_name, lib_version: @config.lib_version,
832
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
845
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
846
+ transports_version_send: [:rest]
833
847
 
834
848
  options.apply_defaults timeout: @config.timeout,
835
849
  metadata: call_metadata
836
850
 
837
- uri, body, _query_string_params = transcode_move_instance request
851
+ uri, body, query_string_params = transcode_move_instance request
838
852
  response = @client_stub.make_post_request(
839
853
  uri: uri,
840
854
  body: body,
855
+ params: query_string_params,
841
856
  options: options
842
857
  )
843
858
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -900,15 +915,17 @@ module Google
900
915
  # Set x-goog-api-client header
901
916
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
902
917
  lib_name: @config.lib_name, lib_version: @config.lib_version,
903
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
918
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
919
+ transports_version_send: [:rest]
904
920
 
905
921
  options.apply_defaults timeout: @config.timeout,
906
922
  metadata: call_metadata
907
923
 
908
- uri, body, _query_string_params = transcode_set_common_instance_metadata request
924
+ uri, body, query_string_params = transcode_set_common_instance_metadata request
909
925
  response = @client_stub.make_post_request(
910
926
  uri: uri,
911
927
  body: body,
928
+ params: query_string_params,
912
929
  options: options
913
930
  )
914
931
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -971,15 +988,17 @@ module Google
971
988
  # Set x-goog-api-client header
972
989
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
973
990
  lib_name: @config.lib_name, lib_version: @config.lib_version,
974
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
991
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
992
+ transports_version_send: [:rest]
975
993
 
976
994
  options.apply_defaults timeout: @config.timeout,
977
995
  metadata: call_metadata
978
996
 
979
- uri, body, _query_string_params = transcode_set_default_network_tier request
997
+ uri, body, query_string_params = transcode_set_default_network_tier request
980
998
  response = @client_stub.make_post_request(
981
999
  uri: uri,
982
1000
  body: body,
1001
+ params: query_string_params,
983
1002
  options: options
984
1003
  )
985
1004
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
@@ -1042,15 +1061,17 @@ module Google
1042
1061
  # Set x-goog-api-client header
1043
1062
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1044
1063
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1045
- gapic_version: ::Google::Cloud::Compute::V1::VERSION
1064
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1065
+ transports_version_send: [:rest]
1046
1066
 
1047
1067
  options.apply_defaults timeout: @config.timeout,
1048
1068
  metadata: call_metadata
1049
1069
 
1050
- uri, body, _query_string_params = transcode_set_usage_export_bucket request
1070
+ uri, body, query_string_params = transcode_set_usage_export_bucket request
1051
1071
  response = @client_stub.make_post_request(
1052
1072
  uri: uri,
1053
1073
  body: body,
1074
+ params: query_string_params,
1054
1075
  options: options
1055
1076
  )
1056
1077
  result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true