google-cloud-compute-v1 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +181 -14
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +330 -20
  4. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +64 -0
  5. data/lib/google/cloud/compute/v1/advice/credentials.rb +52 -0
  6. data/lib/google/cloud/compute/v1/advice/rest/client.rb +431 -0
  7. data/lib/google/cloud/compute/v1/advice/rest/service_stub.rb +144 -0
  8. data/lib/google/cloud/compute/v1/advice/rest.rb +51 -0
  9. data/lib/google/cloud/compute/v1/advice.rb +47 -0
  10. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +334 -21
  11. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +64 -0
  12. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +198 -23
  13. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +499 -40
  14. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +62 -0
  15. data/lib/google/cloud/compute/v1/compute_pb.rb +281 -25
  16. data/lib/google/cloud/compute/v1/cross_site_networks/credentials.rb +52 -0
  17. data/lib/google/cloud/compute/v1/cross_site_networks/rest/client.rb +975 -0
  18. data/lib/google/cloud/compute/v1/cross_site_networks/rest/service_stub.rb +391 -0
  19. data/lib/google/cloud/compute/v1/cross_site_networks/rest.rb +51 -0
  20. data/lib/google/cloud/compute/v1/cross_site_networks.rb +47 -0
  21. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +181 -14
  22. data/lib/google/cloud/compute/v1/disks/rest/client.rb +390 -42
  23. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +118 -11
  24. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +240 -25
  25. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +238 -13
  26. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +63 -0
  27. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +258 -23
  28. data/lib/google/cloud/compute/v1/future_reservations/credentials.rb +52 -0
  29. data/lib/google/cloud/compute/v1/future_reservations/rest/client.rb +1287 -0
  30. data/lib/google/cloud/compute/v1/future_reservations/rest/service_stub.rb +520 -0
  31. data/lib/google/cloud/compute/v1/future_reservations/rest.rb +51 -0
  32. data/lib/google/cloud/compute/v1/future_reservations.rb +47 -0
  33. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +217 -10
  34. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +63 -0
  35. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +151 -15
  36. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +246 -21
  37. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +203 -18
  38. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +91 -9
  39. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +128 -10
  40. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +333 -21
  41. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +63 -0
  42. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +2 -1
  43. data/lib/google/cloud/compute/v1/images/rest/client.rb +161 -18
  44. data/lib/google/cloud/compute/v1/instance_group_manager_resize_requests/rest/client.rb +159 -24
  45. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +920 -95
  46. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +473 -40
  47. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +64 -0
  48. data/lib/google/cloud/compute/v1/instance_settings_service/rest/client.rb +13 -1
  49. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +220 -20
  50. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1144 -99
  51. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +127 -0
  52. data/lib/google/cloud/compute/v1/instant_snapshots/rest/client.rb +235 -21
  53. data/lib/google/cloud/compute/v1/interconnect_attachment_groups/rest/client.rb +139 -14
  54. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +242 -21
  55. data/lib/google/cloud/compute/v1/interconnect_groups/rest/client.rb +139 -14
  56. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +87 -7
  57. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +87 -7
  58. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +145 -14
  59. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +9 -2
  60. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +161 -16
  61. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +124 -13
  62. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +181 -14
  63. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +232 -20
  64. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +138 -12
  65. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +361 -37
  66. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +354 -33
  67. data/lib/google/cloud/compute/v1/network_profiles/rest/client.rb +85 -6
  68. data/lib/google/cloud/compute/v1/networks/rest/client.rb +281 -23
  69. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +381 -32
  70. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +213 -19
  71. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +181 -14
  72. data/lib/google/cloud/compute/v1/organization_security_policies/credentials.rb +52 -0
  73. data/lib/google/cloud/compute/v1/organization_security_policies/rest/client.rb +2259 -0
  74. data/lib/google/cloud/compute/v1/organization_security_policies/rest/service_stub.rb +1054 -0
  75. data/lib/google/cloud/compute/v1/organization_security_policies/rest.rb +51 -0
  76. data/lib/google/cloud/compute/v1/organization_security_policies.rb +47 -0
  77. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +226 -19
  78. data/lib/google/cloud/compute/v1/preview_features/credentials.rb +52 -0
  79. data/lib/google/cloud/compute/v1/preview_features/rest/client.rb +739 -0
  80. data/lib/google/cloud/compute/v1/preview_features/rest/service_stub.rb +267 -0
  81. data/lib/google/cloud/compute/v1/preview_features/rest.rb +51 -0
  82. data/lib/google/cloud/compute/v1/preview_features.rb +47 -0
  83. data/lib/google/cloud/compute/v1/projects/rest/client.rb +346 -30
  84. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +154 -12
  85. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +255 -22
  86. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +238 -13
  87. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +64 -0
  88. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +260 -26
  89. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +212 -18
  90. data/lib/google/cloud/compute/v1/region_composite_health_checks/credentials.rb +52 -0
  91. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/client.rb +1268 -0
  92. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest/service_stub.rb +521 -0
  93. data/lib/google/cloud/compute/v1/region_composite_health_checks/rest.rb +51 -0
  94. data/lib/google/cloud/compute/v1/region_composite_health_checks.rb +47 -0
  95. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +83 -5
  96. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +269 -29
  97. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/credentials.rb +52 -0
  98. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/client.rb +1268 -0
  99. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest/service_stub.rb +521 -0
  100. data/lib/google/cloud/compute/v1/region_health_aggregation_policies/rest.rb +51 -0
  101. data/lib/google/cloud/compute/v1/region_health_aggregation_policies.rb +47 -0
  102. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +427 -17
  103. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +125 -0
  104. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +238 -13
  105. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +64 -0
  106. data/lib/google/cloud/compute/v1/region_health_sources/credentials.rb +52 -0
  107. data/lib/google/cloud/compute/v1/region_health_sources/rest/client.rb +1268 -0
  108. data/lib/google/cloud/compute/v1/region_health_sources/rest/service_stub.rb +521 -0
  109. data/lib/google/cloud/compute/v1/region_health_sources/rest.rb +51 -0
  110. data/lib/google/cloud/compute/v1/region_health_sources.rb +47 -0
  111. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +750 -64
  112. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +280 -14
  113. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +64 -0
  114. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +115 -10
  115. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +15 -2
  116. data/lib/google/cloud/compute/v1/region_instant_snapshots/rest/client.rb +139 -13
  117. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +264 -28
  118. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +213 -20
  119. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +399 -11
  120. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +125 -0
  121. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +107 -10
  122. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +149 -14
  123. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +116 -10
  124. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +220 -20
  125. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +126 -10
  126. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +158 -14
  127. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +113 -9
  128. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +104 -14
  129. data/lib/google/cloud/compute/v1/region_zones/rest/client.rb +85 -6
  130. data/lib/google/cloud/compute/v1/regions/rest/client.rb +120 -7
  131. data/lib/google/cloud/compute/v1/reservation_blocks/rest/client.rb +396 -11
  132. data/lib/google/cloud/compute/v1/reservation_blocks/rest/service_stub.rb +194 -0
  133. data/lib/google/cloud/compute/v1/reservation_slots/credentials.rb +52 -0
  134. data/lib/google/cloud/compute/v1/reservation_slots/rest/client.rb +863 -0
  135. data/lib/google/cloud/compute/v1/reservation_slots/rest/service_stub.rb +338 -0
  136. data/lib/google/cloud/compute/v1/reservation_slots/rest.rb +51 -0
  137. data/lib/google/cloud/compute/v1/reservation_slots.rb +47 -0
  138. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/client.rb +642 -12
  139. data/lib/google/cloud/compute/v1/reservation_sub_blocks/rest/service_stub.rb +327 -3
  140. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +257 -24
  141. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +224 -19
  142. data/lib/google/cloud/compute/v1/rest.rb +10 -0
  143. data/lib/google/cloud/compute/v1/routers/rest/client.rb +555 -50
  144. data/lib/google/cloud/compute/v1/routes/rest/client.rb +202 -8
  145. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +63 -0
  146. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +316 -26
  147. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +234 -22
  148. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +13 -1
  149. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +130 -13
  150. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +210 -17
  151. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +315 -27
  152. data/lib/google/cloud/compute/v1/storage_pool_types/rest/client.rb +181 -14
  153. data/lib/google/cloud/compute/v1/storage_pools/rest/client.rb +321 -28
  154. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +378 -34
  155. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +128 -10
  156. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +240 -20
  157. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +306 -30
  158. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +320 -20
  159. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +64 -0
  160. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +387 -26
  161. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +64 -0
  162. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +281 -19
  163. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +63 -0
  164. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +329 -20
  165. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +63 -0
  166. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +224 -19
  167. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +354 -24
  168. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +63 -0
  169. data/lib/google/cloud/compute/v1/version.rb +1 -1
  170. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +224 -19
  171. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +224 -19
  172. data/lib/google/cloud/compute/v1/wire_groups/credentials.rb +52 -0
  173. data/lib/google/cloud/compute/v1/wire_groups/rest/client.rb +980 -0
  174. data/lib/google/cloud/compute/v1/wire_groups/rest/service_stub.rb +396 -0
  175. data/lib/google/cloud/compute/v1/wire_groups/rest.rb +51 -0
  176. data/lib/google/cloud/compute/v1/wire_groups.rb +47 -0
  177. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +106 -10
  178. data/lib/google/cloud/compute/v1/zones/rest/client.rb +83 -5
  179. data/lib/google/cloud/compute/v1.rb +10 -0
  180. data/proto_docs/google/api/client.rb +149 -29
  181. data/proto_docs/google/cloud/compute/v1/compute.rb +44226 -5514
  182. metadata +52 -2
@@ -73,6 +73,8 @@ module Google
73
73
 
74
74
  default_config.rpcs.add_access_config.timeout = 600.0
75
75
 
76
+ default_config.rpcs.add_network_interface.timeout = 600.0
77
+
76
78
  default_config.rpcs.add_resource_policies.timeout = 600.0
77
79
 
78
80
  default_config.rpcs.aggregated_list.timeout = 600.0
@@ -88,6 +90,8 @@ module Google
88
90
 
89
91
  default_config.rpcs.delete_access_config.timeout = 600.0
90
92
 
93
+ default_config.rpcs.delete_network_interface.timeout = 600.0
94
+
91
95
  default_config.rpcs.detach_disk.timeout = 600.0
92
96
 
93
97
  default_config.rpcs.get.timeout = 600.0
@@ -344,7 +348,19 @@ module Google
344
348
  # @param project [::String]
345
349
  # Project ID for this request.
346
350
  # @param request_id [::String]
347
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
351
+ # An optional request ID to identify requests. Specify a unique request ID so
352
+ # that if you must retry your request, the server will know to ignore the
353
+ # request if it has already been completed.
354
+ #
355
+ # For example, consider a situation where you make an initial request and
356
+ # the request times out. If you make the request again with the same
357
+ # request ID, the server can check if original operation with the same
358
+ # request ID was received, and if so, will ignore the second request. This
359
+ # prevents clients from accidentally creating duplicate commitments.
360
+ #
361
+ # The request ID must be
362
+ # a valid UUID with the exception that zero UUID is not supported
363
+ # (00000000-0000-0000-0000-000000000000).
348
364
  # @param zone [::String]
349
365
  # The name of the zone for this request.
350
366
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -416,7 +432,118 @@ module Google
416
432
  end
417
433
 
418
434
  ##
419
- # Adds existing resource policies to an instance. You can only add one policy right now which will be applied to this instance for scheduling live migrations.
435
+ # Adds one dynamic network interface to an active instance.
436
+ #
437
+ # @overload add_network_interface(request, options = nil)
438
+ # Pass arguments to `add_network_interface` via a request object, either of type
439
+ # {::Google::Cloud::Compute::V1::AddNetworkInterfaceInstanceRequest} or an equivalent Hash.
440
+ #
441
+ # @param request [::Google::Cloud::Compute::V1::AddNetworkInterfaceInstanceRequest, ::Hash]
442
+ # A request object representing the call parameters. Required. To specify no
443
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
444
+ # @param options [::Gapic::CallOptions, ::Hash]
445
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
446
+ #
447
+ # @overload add_network_interface(instance: nil, network_interface_resource: nil, project: nil, request_id: nil, zone: nil)
448
+ # Pass arguments to `add_network_interface` via keyword arguments. Note that at
449
+ # least one keyword argument is required. To specify no parameters, or to keep all
450
+ # the default parameter values, pass an empty Hash as a request object (see above).
451
+ #
452
+ # @param instance [::String]
453
+ # The instance name for this request stored as resource_id.
454
+ # Name should conform to RFC1035 or be an unsigned long integer.
455
+ # @param network_interface_resource [::Google::Cloud::Compute::V1::NetworkInterface, ::Hash]
456
+ # The body resource for this request
457
+ # @param project [::String]
458
+ # Project ID for this request.
459
+ # @param request_id [::String]
460
+ # An optional request ID to identify requests. Specify a unique request ID so
461
+ # that if you must retry your request, the server will know to ignore the
462
+ # request if it has already been completed.
463
+ #
464
+ # For example, consider a situation where you make an initial request and
465
+ # the request times out. If you make the request again with the same
466
+ # request ID, the server can check if original operation with the same
467
+ # request ID was received, and if so, will ignore the second request. This
468
+ # prevents clients from accidentally creating duplicate commitments.
469
+ #
470
+ # The request ID must be
471
+ # a valid UUID with the exception that zero UUID is not supported
472
+ # (00000000-0000-0000-0000-000000000000).
473
+ # @param zone [::String]
474
+ # The name of the zone for this request.
475
+ # @yield [result, operation] Access the result along with the TransportOperation object
476
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
477
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
478
+ #
479
+ # @return [::Gapic::GenericLRO::Operation]
480
+ #
481
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
482
+ #
483
+ # @example Basic example
484
+ # require "google/cloud/compute/v1"
485
+ #
486
+ # # Create a client object. The client can be reused for multiple calls.
487
+ # client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
488
+ #
489
+ # # Create a request. To set request fields, pass in keyword arguments.
490
+ # request = Google::Cloud::Compute::V1::AddNetworkInterfaceInstanceRequest.new
491
+ #
492
+ # # Call the add_network_interface method.
493
+ # result = client.add_network_interface request
494
+ #
495
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
496
+ # p result
497
+ #
498
+ def add_network_interface request, options = nil
499
+ raise ::ArgumentError, "request must be provided" if request.nil?
500
+
501
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::AddNetworkInterfaceInstanceRequest
502
+
503
+ # Converts hash and nil to an options object
504
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
505
+
506
+ # Customize the options with defaults
507
+ call_metadata = @config.rpcs.add_network_interface.metadata.to_h
508
+
509
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
510
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
511
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
512
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
513
+ transports_version_send: [:rest]
514
+
515
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
516
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
517
+
518
+ options.apply_defaults timeout: @config.rpcs.add_network_interface.timeout,
519
+ metadata: call_metadata,
520
+ retry_policy: @config.rpcs.add_network_interface.retry_policy
521
+
522
+ options.apply_defaults timeout: @config.timeout,
523
+ metadata: @config.metadata,
524
+ retry_policy: @config.retry_policy
525
+
526
+ @instances_stub.add_network_interface request, options do |result, response|
527
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
528
+ operation: result,
529
+ client: zone_operations,
530
+ request_values: {
531
+ "project" => request.project,
532
+ "zone" => request.zone
533
+ },
534
+ options: options
535
+ )
536
+ yield result, response if block_given?
537
+ throw :response, result
538
+ end
539
+ rescue ::Gapic::Rest::Error => e
540
+ raise ::Google::Cloud::Error.from_error(e)
541
+ end
542
+
543
+ ##
544
+ # Adds existing resource policies to an instance. You can only add one
545
+ # policy right now which will be applied to this instance for scheduling live
546
+ # migrations.
420
547
  #
421
548
  # @overload add_resource_policies(request, options = nil)
422
549
  # Pass arguments to `add_resource_policies` via a request object, either of type
@@ -440,7 +567,19 @@ module Google
440
567
  # @param project [::String]
441
568
  # Project ID for this request.
442
569
  # @param request_id [::String]
443
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
570
+ # An optional request ID to identify requests. Specify a unique request ID so
571
+ # that if you must retry your request, the server will know to ignore the
572
+ # request if it has already been completed.
573
+ #
574
+ # For example, consider a situation where you make an initial request and
575
+ # the request times out. If you make the request again with the same
576
+ # request ID, the server can check if original operation with the same
577
+ # request ID was received, and if so, will ignore the second request. This
578
+ # prevents clients from accidentally creating duplicate commitments.
579
+ #
580
+ # The request ID must be
581
+ # a valid UUID with the exception that zero UUID is not supported
582
+ # (00000000-0000-0000-0000-000000000000).
444
583
  # @param zone [::String]
445
584
  # The name of the zone for this request.
446
585
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -512,7 +651,14 @@ module Google
512
651
  end
513
652
 
514
653
  ##
515
- # Retrieves an aggregated list of all of the instances in your project across all regions and zones. The performance of this method degrades when a filter is specified on a project that has a very large number of instances. To prevent failure, Google recommends that you set the `returnPartialSuccess` parameter to `true`.
654
+ # Retrieves an aggregated list of all of the instances in your project
655
+ # across all regions and zones.
656
+ #
657
+ # The performance of this method degrades when a filter is specified on a
658
+ # project that has a very large number of instances.
659
+ #
660
+ # To prevent failure, Google recommends that you set the
661
+ # `returnPartialSuccess` parameter to `true`.
516
662
  #
517
663
  # @overload aggregated_list(request, options = nil)
518
664
  # Pass arguments to `aggregated_list` via a request object, either of type
@@ -530,21 +676,106 @@ module Google
530
676
  # the default parameter values, pass an empty Hash as a request object (see above).
531
677
  #
532
678
  # @param filter [::String]
533
- # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
679
+ # A filter expression that filters resources listed in the response. Most
680
+ # Compute resources support two types of filter expressions:
681
+ # expressions that support regular expressions and expressions that follow
682
+ # API improvement proposal AIP-160.
683
+ # These two types of filter expressions cannot be mixed in one request.
684
+ #
685
+ # If you want to use AIP-160, your expression must specify the field name, an
686
+ # operator, and the value that you want to use for filtering. The value
687
+ # must be a string, a number, or a boolean. The operator
688
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
689
+ #
690
+ # For example, if you are filtering Compute Engine instances, you can
691
+ # exclude instances named `example-instance` by specifying
692
+ # `name != example-instance`.
693
+ #
694
+ # The `:*` comparison can be used to test whether a key has been defined.
695
+ # For example, to find all objects with `owner` label use:
696
+ # ```
697
+ # labels.owner:*
698
+ # ```
699
+ #
700
+ # You can also filter nested fields. For example, you could specify
701
+ # `scheduling.automaticRestart = false` to include instances only
702
+ # if they are not scheduled for automatic restarts. You can use filtering
703
+ # on nested fields to filter based onresource labels.
704
+ #
705
+ # To filter on multiple expressions, provide each separate expression within
706
+ # parentheses. For example:
707
+ # ```
708
+ # (scheduling.automaticRestart = true)
709
+ # (cpuPlatform = "Intel Skylake")
710
+ # ```
711
+ # By default, each expression is an `AND` expression. However, you
712
+ # can include `AND` and `OR` expressions explicitly.
713
+ # For example:
714
+ # ```
715
+ # (cpuPlatform = "Intel Skylake") OR
716
+ # (cpuPlatform = "Intel Broadwell") AND
717
+ # (scheduling.automaticRestart = true)
718
+ # ```
719
+ #
720
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
721
+ # (not equal) operator against a single un-parenthesized expression with or
722
+ # without quotes or against multiple parenthesized expressions. Examples:
723
+ #
724
+ # `fieldname eq unquoted literal`
725
+ # `fieldname eq 'single quoted literal'`
726
+ # `fieldname eq "double quoted literal"`
727
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
728
+ #
729
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
730
+ # The literal value must match the entire field.
731
+ #
732
+ # For example, to filter for instances that do not end with name "instance",
733
+ # you would use `name ne .*instance`.
734
+ #
735
+ # You cannot combine constraints on multiple fields using regular
736
+ # expressions.
534
737
  # @param include_all_scopes [::Boolean]
535
- # Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
738
+ # Indicates whether every visible scope for each scope type (zone, region,
739
+ # global) should be included in the response. For new resource types added
740
+ # after this field, the flag has no effect as new resource types will always
741
+ # include every visible scope for each scope type in response. For resource
742
+ # types which predate this field, if this flag is omitted or false, only
743
+ # scopes of the scope types where the resource type is expected to be found
744
+ # will be included.
536
745
  # @param max_results [::Integer]
537
- # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
746
+ # The maximum number of results per page that should be returned.
747
+ # If the number of available results is larger than `maxResults`,
748
+ # Compute Engine returns a `nextPageToken` that can be used to get
749
+ # the next page of results in subsequent list requests. Acceptable values are
750
+ # `0` to `500`, inclusive. (Default: `500`)
538
751
  # @param order_by [::String]
539
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
752
+ # Sorts list results by a certain order. By default, results
753
+ # are returned in alphanumerical order based on the resource name.
754
+ #
755
+ # You can also sort results in descending order based on the creation
756
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
757
+ # results based on the `creationTimestamp` field in
758
+ # reverse chronological order (newest result first). Use this to sort
759
+ # resources like operations so that the newest operation is returned first.
760
+ #
761
+ # Currently, only sorting by `name` or
762
+ # `creationTimestamp desc` is supported.
540
763
  # @param page_token [::String]
541
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
764
+ # Specifies a page token to use. Set `pageToken` to the
765
+ # `nextPageToken` returned by a previous list request to get
766
+ # the next page of results.
542
767
  # @param project [::String]
543
768
  # Project ID for this request.
544
769
  # @param return_partial_success [::Boolean]
545
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
770
+ # Opt-in for partial success behavior which provides partial results in case
771
+ # of failure. The default value is false.
772
+ #
773
+ # For example, when partial success behavior is enabled, aggregatedList for a
774
+ # single zone scope either returns all resources in the zone or no resources,
775
+ # with an error code.
546
776
  # @param service_project_number [::Integer]
547
- # The Shared VPC service project id or service project number for which aggregated list request is invoked for subnetworks list-usable api.
777
+ # The Shared VPC service project id or service project number for which
778
+ # aggregated list request is invoked for subnetworks list-usable api.
548
779
  # @yield [result, operation] Access the result along with the TransportOperation object
549
780
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstancesScopedList>]
550
781
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -606,7 +837,10 @@ module Google
606
837
  end
607
838
 
608
839
  ##
609
- # Attaches an existing Disk resource to an instance. You must first create the disk before you can attach it. It is not possible to create and attach a disk at the same time. For more information, read Adding a persistent disk to your instance.
840
+ # Attaches an existing Disk resource to an instance. You must first
841
+ # create the disk before you can attach it. It is not possible to create
842
+ # and attach a disk at the same time. For more information, readAdding a
843
+ # persistent disk to your instance.
610
844
  #
611
845
  # @overload attach_disk(request, options = nil)
612
846
  # Pass arguments to `attach_disk` via a request object, either of type
@@ -626,13 +860,27 @@ module Google
626
860
  # @param attached_disk_resource [::Google::Cloud::Compute::V1::AttachedDisk, ::Hash]
627
861
  # The body resource for this request
628
862
  # @param force_attach [::Boolean]
629
- # Whether to force attach the regional disk even if it's currently attached to another instance. If you try to force attach a zonal disk to an instance, you will receive an error.
863
+ # Whether to force attach the regional disk even if it's currently attached
864
+ # to another instance. If you try to force attach a zonal disk to an
865
+ # instance, you will receive an error.
630
866
  # @param instance [::String]
631
867
  # The instance name for this request.
632
868
  # @param project [::String]
633
869
  # Project ID for this request.
634
870
  # @param request_id [::String]
635
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
871
+ # An optional request ID to identify requests. Specify a unique request ID so
872
+ # that if you must retry your request, the server will know to ignore the
873
+ # request if it has already been completed.
874
+ #
875
+ # For example, consider a situation where you make an initial request and
876
+ # the request times out. If you make the request again with the same
877
+ # request ID, the server can check if original operation with the same
878
+ # request ID was received, and if so, will ignore the second request. This
879
+ # prevents clients from accidentally creating duplicate commitments.
880
+ #
881
+ # The request ID must be
882
+ # a valid UUID with the exception that zero UUID is not supported
883
+ # (00000000-0000-0000-0000-000000000000).
636
884
  # @param zone [::String]
637
885
  # The name of the zone for this request.
638
886
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -704,7 +952,9 @@ module Google
704
952
  end
705
953
 
706
954
  ##
707
- # Creates multiple instances. Count specifies the number of instances to create. For more information, see About bulk creation of VMs.
955
+ # Creates multiple instances. Count specifies the number of instances to
956
+ # create. For more information, seeAbout bulk
957
+ # creation of VMs.
708
958
  #
709
959
  # @overload bulk_insert(request, options = nil)
710
960
  # Pass arguments to `bulk_insert` via a request object, either of type
@@ -726,7 +976,19 @@ module Google
726
976
  # @param project [::String]
727
977
  # Project ID for this request.
728
978
  # @param request_id [::String]
729
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
979
+ # An optional request ID to identify requests. Specify a unique request ID so
980
+ # that if you must retry your request, the server will know to ignore the
981
+ # request if it has already been completed.
982
+ #
983
+ # For example, consider a situation where you make an initial request and
984
+ # the request times out. If you make the request again with the same
985
+ # request ID, the server can check if original operation with the same
986
+ # request ID was received, and if so, will ignore the second request. This
987
+ # prevents clients from accidentally creating duplicate commitments.
988
+ #
989
+ # The request ID must be
990
+ # a valid UUID with the exception that zero UUID is not supported
991
+ # (00000000-0000-0000-0000-000000000000).
730
992
  # @param zone [::String]
731
993
  # The name of the zone for this request.
732
994
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -798,7 +1060,8 @@ module Google
798
1060
  end
799
1061
 
800
1062
  ##
801
- # Deletes the specified Instance resource. For more information, see Deleting an instance.
1063
+ # Deletes the specified Instance resource. For more information, seeDeleting
1064
+ # an instance.
802
1065
  #
803
1066
  # @overload delete(request, options = nil)
804
1067
  # Pass arguments to `delete` via a request object, either of type
@@ -820,7 +1083,19 @@ module Google
820
1083
  # @param project [::String]
821
1084
  # Project ID for this request.
822
1085
  # @param request_id [::String]
823
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1086
+ # An optional request ID to identify requests. Specify a unique request ID so
1087
+ # that if you must retry your request, the server will know to ignore the
1088
+ # request if it has already been completed.
1089
+ #
1090
+ # For example, consider a situation where you make an initial request and
1091
+ # the request times out. If you make the request again with the same
1092
+ # request ID, the server can check if original operation with the same
1093
+ # request ID was received, and if so, will ignore the second request. This
1094
+ # prevents clients from accidentally creating duplicate commitments.
1095
+ #
1096
+ # The request ID must be
1097
+ # a valid UUID with the exception that zero UUID is not supported
1098
+ # (00000000-0000-0000-0000-000000000000).
824
1099
  # @param zone [::String]
825
1100
  # The name of the zone for this request.
826
1101
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -918,7 +1193,19 @@ module Google
918
1193
  # @param project [::String]
919
1194
  # Project ID for this request.
920
1195
  # @param request_id [::String]
921
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1196
+ # An optional request ID to identify requests. Specify a unique request ID so
1197
+ # that if you must retry your request, the server will know to ignore the
1198
+ # request if it has already been completed.
1199
+ #
1200
+ # For example, consider a situation where you make an initial request and
1201
+ # the request times out. If you make the request again with the same
1202
+ # request ID, the server can check if original operation with the same
1203
+ # request ID was received, and if so, will ignore the second request. This
1204
+ # prevents clients from accidentally creating duplicate commitments.
1205
+ #
1206
+ # The request ID must be
1207
+ # a valid UUID with the exception that zero UUID is not supported
1208
+ # (00000000-0000-0000-0000-000000000000).
922
1209
  # @param zone [::String]
923
1210
  # The name of the zone for this request.
924
1211
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -989,6 +1276,119 @@ module Google
989
1276
  raise ::Google::Cloud::Error.from_error(e)
990
1277
  end
991
1278
 
1279
+ ##
1280
+ # Deletes one dynamic network interface from an active instance.
1281
+ # InstancesDeleteNetworkInterfaceRequest indicates:
1282
+ # - instance from which to delete, using project+zone+resource_id fields;
1283
+ # - dynamic network interface to be deleted, using network_interface_name
1284
+ # field;
1285
+ #
1286
+ # @overload delete_network_interface(request, options = nil)
1287
+ # Pass arguments to `delete_network_interface` via a request object, either of type
1288
+ # {::Google::Cloud::Compute::V1::DeleteNetworkInterfaceInstanceRequest} or an equivalent Hash.
1289
+ #
1290
+ # @param request [::Google::Cloud::Compute::V1::DeleteNetworkInterfaceInstanceRequest, ::Hash]
1291
+ # A request object representing the call parameters. Required. To specify no
1292
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1293
+ # @param options [::Gapic::CallOptions, ::Hash]
1294
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1295
+ #
1296
+ # @overload delete_network_interface(instance: nil, network_interface_name: nil, project: nil, request_id: nil, zone: nil)
1297
+ # Pass arguments to `delete_network_interface` via keyword arguments. Note that at
1298
+ # least one keyword argument is required. To specify no parameters, or to keep all
1299
+ # the default parameter values, pass an empty Hash as a request object (see above).
1300
+ #
1301
+ # @param instance [::String]
1302
+ # The instance name for this request stored as resource_id.
1303
+ # Name should conform to RFC1035 or be an unsigned long integer.
1304
+ # @param network_interface_name [::String]
1305
+ # The name of the dynamic network interface to be deleted from the instance.
1306
+ # @param project [::String]
1307
+ # Project ID for this request.
1308
+ # @param request_id [::String]
1309
+ # An optional request ID to identify requests. Specify a unique request ID so
1310
+ # that if you must retry your request, the server will know to ignore the
1311
+ # request if it has already been completed.
1312
+ #
1313
+ # For example, consider a situation where you make an initial request and
1314
+ # the request times out. If you make the request again with the same
1315
+ # request ID, the server can check if original operation with the same
1316
+ # request ID was received, and if so, will ignore the second request. This
1317
+ # prevents clients from accidentally creating duplicate commitments.
1318
+ #
1319
+ # The request ID must be
1320
+ # a valid UUID with the exception that zero UUID is not supported
1321
+ # (00000000-0000-0000-0000-000000000000).
1322
+ # @param zone [::String]
1323
+ # The name of the zone for this request.
1324
+ # @yield [result, operation] Access the result along with the TransportOperation object
1325
+ # @yieldparam result [::Gapic::GenericLRO::Operation]
1326
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1327
+ #
1328
+ # @return [::Gapic::GenericLRO::Operation]
1329
+ #
1330
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1331
+ #
1332
+ # @example Basic example
1333
+ # require "google/cloud/compute/v1"
1334
+ #
1335
+ # # Create a client object. The client can be reused for multiple calls.
1336
+ # client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
1337
+ #
1338
+ # # Create a request. To set request fields, pass in keyword arguments.
1339
+ # request = Google::Cloud::Compute::V1::DeleteNetworkInterfaceInstanceRequest.new
1340
+ #
1341
+ # # Call the delete_network_interface method.
1342
+ # result = client.delete_network_interface request
1343
+ #
1344
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1345
+ # p result
1346
+ #
1347
+ def delete_network_interface request, options = nil
1348
+ raise ::ArgumentError, "request must be provided" if request.nil?
1349
+
1350
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::DeleteNetworkInterfaceInstanceRequest
1351
+
1352
+ # Converts hash and nil to an options object
1353
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1354
+
1355
+ # Customize the options with defaults
1356
+ call_metadata = @config.rpcs.delete_network_interface.metadata.to_h
1357
+
1358
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1359
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1360
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1361
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1362
+ transports_version_send: [:rest]
1363
+
1364
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1365
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1366
+
1367
+ options.apply_defaults timeout: @config.rpcs.delete_network_interface.timeout,
1368
+ metadata: call_metadata,
1369
+ retry_policy: @config.rpcs.delete_network_interface.retry_policy
1370
+
1371
+ options.apply_defaults timeout: @config.timeout,
1372
+ metadata: @config.metadata,
1373
+ retry_policy: @config.retry_policy
1374
+
1375
+ @instances_stub.delete_network_interface request, options do |result, response|
1376
+ result = ::Google::Cloud::Compute::V1::ZoneOperations::Rest::NonstandardLro.create_operation(
1377
+ operation: result,
1378
+ client: zone_operations,
1379
+ request_values: {
1380
+ "project" => request.project,
1381
+ "zone" => request.zone
1382
+ },
1383
+ options: options
1384
+ )
1385
+ yield result, response if block_given?
1386
+ throw :response, result
1387
+ end
1388
+ rescue ::Gapic::Rest::Error => e
1389
+ raise ::Google::Cloud::Error.from_error(e)
1390
+ end
1391
+
992
1392
  ##
993
1393
  # Detaches a disk from an instance.
994
1394
  #
@@ -1008,13 +1408,26 @@ module Google
1008
1408
  # the default parameter values, pass an empty Hash as a request object (see above).
1009
1409
  #
1010
1410
  # @param device_name [::String]
1011
- # The device name of the disk to detach. Make a get() request on the instance to view currently attached disks and device names.
1411
+ # The device name of the disk to detach. Make a get() request on
1412
+ # the instance to view currently attached disks and device names.
1012
1413
  # @param instance [::String]
1013
1414
  # Instance name for this request.
1014
1415
  # @param project [::String]
1015
1416
  # Project ID for this request.
1016
1417
  # @param request_id [::String]
1017
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
1418
+ # An optional request ID to identify requests. Specify a unique request ID so
1419
+ # that if you must retry your request, the server will know to ignore the
1420
+ # request if it has already been completed.
1421
+ #
1422
+ # For example, consider a situation where you make an initial request and
1423
+ # the request times out. If you make the request again with the same
1424
+ # request ID, the server can check if original operation with the same
1425
+ # request ID was received, and if so, will ignore the second request. This
1426
+ # prevents clients from accidentally creating duplicate commitments.
1427
+ #
1428
+ # The request ID must be
1429
+ # a valid UUID with the exception that zero UUID is not supported
1430
+ # (00000000-0000-0000-0000-000000000000).
1018
1431
  # @param zone [::String]
1019
1432
  # The name of the zone for this request.
1020
1433
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1338,7 +1751,8 @@ module Google
1338
1751
  end
1339
1752
 
1340
1753
  ##
1341
- # Gets the access control policy for a resource. May be empty if no such policy or resource exists.
1754
+ # Gets the access control policy for a resource. May be empty if no such
1755
+ # policy or resource exists.
1342
1756
  #
1343
1757
  # @overload get_iam_policy(request, options = nil)
1344
1758
  # Pass arguments to `get_iam_policy` via a request object, either of type
@@ -1528,7 +1942,23 @@ module Google
1528
1942
  # @param project [::String]
1529
1943
  # Project ID for this request.
1530
1944
  # @param start [::Integer]
1531
- # Specifies the starting byte position of the output to return. To start with the first byte of output to the specified port, omit this field or set it to `0`. If the output for that byte position is available, this field matches the `start` parameter sent with the request. If the amount of serial console output exceeds the size of the buffer (1 MB), the oldest output is discarded and is no longer available. If the requested start position refers to discarded output, the start position is adjusted to the oldest output still available, and the adjusted start position is returned as the `start` property value. You can also provide a negative start position, which translates to the most recent number of bytes written to the serial port. For example, -3 is interpreted as the most recent 3 bytes written to the serial console. Note that the negative start is bounded by the retained buffer size, and the returned serial console output will not exceed the max buffer size.
1945
+ # Specifies the starting byte position of the output to return. To start with
1946
+ # the first byte of output to the specified port, omit this field or set it
1947
+ # to `0`.
1948
+ #
1949
+ # If the output for that byte position is available, this field matches the
1950
+ # `start` parameter sent with the request. If the amount of serial console
1951
+ # output exceeds the size of the buffer (1 MB), the oldest output is
1952
+ # discarded and is no longer available. If the requested start position
1953
+ # refers to discarded output, the start position is adjusted to the oldest
1954
+ # output still available, and the adjusted start position is returned as the
1955
+ # `start` property value.
1956
+ #
1957
+ # You can also provide a negative start position, which translates to the
1958
+ # most recent number of bytes written to the serial port. For example, -3 is
1959
+ # interpreted as the most recent 3 bytes written to the serial console. Note
1960
+ # that the negative start is bounded by the retained buffer size, and the
1961
+ # returned serial console output will not exceed the max buffer size.
1532
1962
  # @param zone [::String]
1533
1963
  # The name of the zone for this request.
1534
1964
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1672,7 +2102,8 @@ module Google
1672
2102
  end
1673
2103
 
1674
2104
  ##
1675
- # Creates an instance resource in the specified project using the data included in the request.
2105
+ # Creates an instance resource in the specified project using the data
2106
+ # included in the request.
1676
2107
  #
1677
2108
  # @overload insert(request, options = nil)
1678
2109
  # Pass arguments to `insert` via a request object, either of type
@@ -1694,11 +2125,39 @@ module Google
1694
2125
  # @param project [::String]
1695
2126
  # Project ID for this request.
1696
2127
  # @param request_id [::String]
1697
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2128
+ # An optional request ID to identify requests. Specify a unique request ID so
2129
+ # that if you must retry your request, the server will know to ignore the
2130
+ # request if it has already been completed.
2131
+ #
2132
+ # For example, consider a situation where you make an initial request and
2133
+ # the request times out. If you make the request again with the same
2134
+ # request ID, the server can check if original operation with the same
2135
+ # request ID was received, and if so, will ignore the second request. This
2136
+ # prevents clients from accidentally creating duplicate commitments.
2137
+ #
2138
+ # The request ID must be
2139
+ # a valid UUID with the exception that zero UUID is not supported
2140
+ # (00000000-0000-0000-0000-000000000000).
1698
2141
  # @param source_instance_template [::String]
1699
- # Specifies instance template to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to an instance template: - https://www.googleapis.com/compute/v1/projects/project /global/instanceTemplates/instanceTemplate - projects/project/global/instanceTemplates/instanceTemplate - global/instanceTemplates/instanceTemplate
2142
+ # Specifies instance template to create the instance.
2143
+ #
2144
+ # This field is optional. It can be a full or partial URL. For example, the
2145
+ # following are all valid URLs to an instance template:
2146
+ #
2147
+ #
2148
+ # - https://www.googleapis.com/compute/v1/projects/project/global/instanceTemplates/instanceTemplate
2149
+ # - projects/project/global/instanceTemplates/instanceTemplate
2150
+ # - global/instanceTemplates/instanceTemplate
1700
2151
  # @param source_machine_image [::String]
1701
- # Specifies the machine image to use to create the instance. This field is optional. It can be a full or partial URL. For example, the following are all valid URLs to a machine image: - https://www.googleapis.com/compute/v1/projects/project/global/global /machineImages/machineImage - projects/project/global/global/machineImages/machineImage - global/machineImages/machineImage
2152
+ # Specifies the machine image to use to create the instance.
2153
+ #
2154
+ # This field is optional. It can be a full or partial URL. For example, the
2155
+ # following are all valid URLs to a machine image:
2156
+ #
2157
+ #
2158
+ # - https://www.googleapis.com/compute/v1/projects/project/global/global/machineImages/machineImage
2159
+ # - projects/project/global/global/machineImages/machineImage
2160
+ # - global/machineImages/machineImage
1702
2161
  # @param zone [::String]
1703
2162
  # The name of the zone for this request.
1704
2163
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1770,7 +2229,8 @@ module Google
1770
2229
  end
1771
2230
 
1772
2231
  ##
1773
- # Retrieves the list of instances contained within the specified zone.
2232
+ # Retrieves the list of instances contained within
2233
+ # the specified zone.
1774
2234
  #
1775
2235
  # @overload list(request, options = nil)
1776
2236
  # Pass arguments to `list` via a request object, either of type
@@ -1788,17 +2248,95 @@ module Google
1788
2248
  # the default parameter values, pass an empty Hash as a request object (see above).
1789
2249
  #
1790
2250
  # @param filter [::String]
1791
- # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
2251
+ # A filter expression that filters resources listed in the response. Most
2252
+ # Compute resources support two types of filter expressions:
2253
+ # expressions that support regular expressions and expressions that follow
2254
+ # API improvement proposal AIP-160.
2255
+ # These two types of filter expressions cannot be mixed in one request.
2256
+ #
2257
+ # If you want to use AIP-160, your expression must specify the field name, an
2258
+ # operator, and the value that you want to use for filtering. The value
2259
+ # must be a string, a number, or a boolean. The operator
2260
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
2261
+ #
2262
+ # For example, if you are filtering Compute Engine instances, you can
2263
+ # exclude instances named `example-instance` by specifying
2264
+ # `name != example-instance`.
2265
+ #
2266
+ # The `:*` comparison can be used to test whether a key has been defined.
2267
+ # For example, to find all objects with `owner` label use:
2268
+ # ```
2269
+ # labels.owner:*
2270
+ # ```
2271
+ #
2272
+ # You can also filter nested fields. For example, you could specify
2273
+ # `scheduling.automaticRestart = false` to include instances only
2274
+ # if they are not scheduled for automatic restarts. You can use filtering
2275
+ # on nested fields to filter based onresource labels.
2276
+ #
2277
+ # To filter on multiple expressions, provide each separate expression within
2278
+ # parentheses. For example:
2279
+ # ```
2280
+ # (scheduling.automaticRestart = true)
2281
+ # (cpuPlatform = "Intel Skylake")
2282
+ # ```
2283
+ # By default, each expression is an `AND` expression. However, you
2284
+ # can include `AND` and `OR` expressions explicitly.
2285
+ # For example:
2286
+ # ```
2287
+ # (cpuPlatform = "Intel Skylake") OR
2288
+ # (cpuPlatform = "Intel Broadwell") AND
2289
+ # (scheduling.automaticRestart = true)
2290
+ # ```
2291
+ #
2292
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
2293
+ # (not equal) operator against a single un-parenthesized expression with or
2294
+ # without quotes or against multiple parenthesized expressions. Examples:
2295
+ #
2296
+ # `fieldname eq unquoted literal`
2297
+ # `fieldname eq 'single quoted literal'`
2298
+ # `fieldname eq "double quoted literal"`
2299
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
2300
+ #
2301
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
2302
+ # The literal value must match the entire field.
2303
+ #
2304
+ # For example, to filter for instances that do not end with name "instance",
2305
+ # you would use `name ne .*instance`.
2306
+ #
2307
+ # You cannot combine constraints on multiple fields using regular
2308
+ # expressions.
1792
2309
  # @param max_results [::Integer]
1793
- # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
2310
+ # The maximum number of results per page that should be returned.
2311
+ # If the number of available results is larger than `maxResults`,
2312
+ # Compute Engine returns a `nextPageToken` that can be used to get
2313
+ # the next page of results in subsequent list requests. Acceptable values are
2314
+ # `0` to `500`, inclusive. (Default: `500`)
1794
2315
  # @param order_by [::String]
1795
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
2316
+ # Sorts list results by a certain order. By default, results
2317
+ # are returned in alphanumerical order based on the resource name.
2318
+ #
2319
+ # You can also sort results in descending order based on the creation
2320
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
2321
+ # results based on the `creationTimestamp` field in
2322
+ # reverse chronological order (newest result first). Use this to sort
2323
+ # resources like operations so that the newest operation is returned first.
2324
+ #
2325
+ # Currently, only sorting by `name` or
2326
+ # `creationTimestamp desc` is supported.
1796
2327
  # @param page_token [::String]
1797
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
2328
+ # Specifies a page token to use. Set `pageToken` to the
2329
+ # `nextPageToken` returned by a previous list request to get
2330
+ # the next page of results.
1798
2331
  # @param project [::String]
1799
2332
  # Project ID for this request.
1800
2333
  # @param return_partial_success [::Boolean]
1801
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
2334
+ # Opt-in for partial success behavior which provides partial results in case
2335
+ # of failure. The default value is false.
2336
+ #
2337
+ # For example, when partial success behavior is enabled, aggregatedList for a
2338
+ # single zone scope either returns all resources in the zone or no resources,
2339
+ # with an error code.
1802
2340
  # @param zone [::String]
1803
2341
  # The name of the zone for this request.
1804
2342
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1862,7 +2400,11 @@ module Google
1862
2400
  end
1863
2401
 
1864
2402
  ##
1865
- # Retrieves a list of resources that refer to the VM instance specified in the request. For example, if the VM instance is part of a managed or unmanaged instance group, the referrers list includes the instance group. For more information, read Viewing referrers to VM instances.
2403
+ # Retrieves a list of resources that refer to the VM instance specified in
2404
+ # the request. For example, if the VM instance is part of a managed or
2405
+ # unmanaged instance group, the referrers list includes the instance group.
2406
+ # For more information, readViewing
2407
+ # referrers to VM instances.
1866
2408
  #
1867
2409
  # @overload list_referrers(request, options = nil)
1868
2410
  # Pass arguments to `list_referrers` via a request object, either of type
@@ -1880,19 +2422,98 @@ module Google
1880
2422
  # the default parameter values, pass an empty Hash as a request object (see above).
1881
2423
  #
1882
2424
  # @param filter [::String]
1883
- # A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
2425
+ # A filter expression that filters resources listed in the response. Most
2426
+ # Compute resources support two types of filter expressions:
2427
+ # expressions that support regular expressions and expressions that follow
2428
+ # API improvement proposal AIP-160.
2429
+ # These two types of filter expressions cannot be mixed in one request.
2430
+ #
2431
+ # If you want to use AIP-160, your expression must specify the field name, an
2432
+ # operator, and the value that you want to use for filtering. The value
2433
+ # must be a string, a number, or a boolean. The operator
2434
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
2435
+ #
2436
+ # For example, if you are filtering Compute Engine instances, you can
2437
+ # exclude instances named `example-instance` by specifying
2438
+ # `name != example-instance`.
2439
+ #
2440
+ # The `:*` comparison can be used to test whether a key has been defined.
2441
+ # For example, to find all objects with `owner` label use:
2442
+ # ```
2443
+ # labels.owner:*
2444
+ # ```
2445
+ #
2446
+ # You can also filter nested fields. For example, you could specify
2447
+ # `scheduling.automaticRestart = false` to include instances only
2448
+ # if they are not scheduled for automatic restarts. You can use filtering
2449
+ # on nested fields to filter based onresource labels.
2450
+ #
2451
+ # To filter on multiple expressions, provide each separate expression within
2452
+ # parentheses. For example:
2453
+ # ```
2454
+ # (scheduling.automaticRestart = true)
2455
+ # (cpuPlatform = "Intel Skylake")
2456
+ # ```
2457
+ # By default, each expression is an `AND` expression. However, you
2458
+ # can include `AND` and `OR` expressions explicitly.
2459
+ # For example:
2460
+ # ```
2461
+ # (cpuPlatform = "Intel Skylake") OR
2462
+ # (cpuPlatform = "Intel Broadwell") AND
2463
+ # (scheduling.automaticRestart = true)
2464
+ # ```
2465
+ #
2466
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
2467
+ # (not equal) operator against a single un-parenthesized expression with or
2468
+ # without quotes or against multiple parenthesized expressions. Examples:
2469
+ #
2470
+ # `fieldname eq unquoted literal`
2471
+ # `fieldname eq 'single quoted literal'`
2472
+ # `fieldname eq "double quoted literal"`
2473
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
2474
+ #
2475
+ # The literal value is interpreted as a regular expression using GoogleRE2 library syntax.
2476
+ # The literal value must match the entire field.
2477
+ #
2478
+ # For example, to filter for instances that do not end with name "instance",
2479
+ # you would use `name ne .*instance`.
2480
+ #
2481
+ # You cannot combine constraints on multiple fields using regular
2482
+ # expressions.
1884
2483
  # @param instance [::String]
1885
- # Name of the target instance scoping this request, or '-' if the request should span over all instances in the container.
2484
+ # Name of the target instance scoping this request, or '-' if the
2485
+ # request should span over all instances in the container.
1886
2486
  # @param max_results [::Integer]
1887
- # The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
2487
+ # The maximum number of results per page that should be returned.
2488
+ # If the number of available results is larger than `maxResults`,
2489
+ # Compute Engine returns a `nextPageToken` that can be used to get
2490
+ # the next page of results in subsequent list requests. Acceptable values are
2491
+ # `0` to `500`, inclusive. (Default: `500`)
1888
2492
  # @param order_by [::String]
1889
- # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
2493
+ # Sorts list results by a certain order. By default, results
2494
+ # are returned in alphanumerical order based on the resource name.
2495
+ #
2496
+ # You can also sort results in descending order based on the creation
2497
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
2498
+ # results based on the `creationTimestamp` field in
2499
+ # reverse chronological order (newest result first). Use this to sort
2500
+ # resources like operations so that the newest operation is returned first.
2501
+ #
2502
+ # Currently, only sorting by `name` or
2503
+ # `creationTimestamp desc` is supported.
1890
2504
  # @param page_token [::String]
1891
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
2505
+ # Specifies a page token to use. Set `pageToken` to the
2506
+ # `nextPageToken` returned by a previous list request to get
2507
+ # the next page of results.
1892
2508
  # @param project [::String]
1893
2509
  # Project ID for this request.
1894
2510
  # @param return_partial_success [::Boolean]
1895
- # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false. For example, when partial success behavior is enabled, aggregatedList for a single zone scope either returns all resources in the zone or no resources, with an error code.
2511
+ # Opt-in for partial success behavior which provides partial results in case
2512
+ # of failure. The default value is false.
2513
+ #
2514
+ # For example, when partial success behavior is enabled, aggregatedList for a
2515
+ # single zone scope either returns all resources in the zone or no resources,
2516
+ # with an error code.
1896
2517
  # @param zone [::String]
1897
2518
  # The name of the zone for this request.
1898
2519
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1978,7 +2599,19 @@ module Google
1978
2599
  # @param project [::String]
1979
2600
  # Project ID for this request.
1980
2601
  # @param request_id [::String]
1981
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2602
+ # An optional request ID to identify requests. Specify a unique request ID so
2603
+ # that if you must retry your request, the server will know to ignore the
2604
+ # request if it has already been completed.
2605
+ #
2606
+ # For example, consider a situation where you make an initial request and
2607
+ # the request times out. If you make the request again with the same
2608
+ # request ID, the server can check if original operation with the same
2609
+ # request ID was received, and if so, will ignore the second request. This
2610
+ # prevents clients from accidentally creating duplicate commitments.
2611
+ #
2612
+ # The request ID must be
2613
+ # a valid UUID with the exception that zero UUID is not supported
2614
+ # (00000000-0000-0000-0000-000000000000).
1982
2615
  # @param zone [::String]
1983
2616
  # The name of the zone for this request.
1984
2617
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2074,7 +2707,19 @@ module Google
2074
2707
  # @param project [::String]
2075
2708
  # Project ID for this request.
2076
2709
  # @param request_id [::String]
2077
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2710
+ # An optional request ID to identify requests. Specify a unique request ID so
2711
+ # that if you must retry your request, the server will know to ignore the
2712
+ # request if it has already been completed.
2713
+ #
2714
+ # For example, consider a situation where you make an initial request and
2715
+ # the request times out. If you make the request again with the same
2716
+ # request ID, the server can check if original operation with the same
2717
+ # request ID was received, and if so, will ignore the second request. This
2718
+ # prevents clients from accidentally creating duplicate commitments.
2719
+ #
2720
+ # The request ID must be
2721
+ # a valid UUID with the exception that zero UUID is not supported
2722
+ # (00000000-0000-0000-0000-000000000000).
2078
2723
  # @param zone [::String]
2079
2724
  # The name of the zone for this request.
2080
2725
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2170,7 +2815,19 @@ module Google
2170
2815
  # @param project [::String]
2171
2816
  # Project ID for this request.
2172
2817
  # @param request_id [::String]
2173
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2818
+ # An optional request ID to identify requests. Specify a unique request ID so
2819
+ # that if you must retry your request, the server will know to ignore the
2820
+ # request if it has already been completed.
2821
+ #
2822
+ # For example, consider a situation where you make an initial request and
2823
+ # the request times out. If you make the request again with the same
2824
+ # request ID, the server can check if original operation with the same
2825
+ # request ID was received, and if so, will ignore the second request. This
2826
+ # prevents clients from accidentally creating duplicate commitments.
2827
+ #
2828
+ # The request ID must be
2829
+ # a valid UUID with the exception that zero UUID is not supported
2830
+ # (00000000-0000-0000-0000-000000000000).
2174
2831
  # @param zone [::String]
2175
2832
  # The name of the zone for this request.
2176
2833
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2242,7 +2899,9 @@ module Google
2242
2899
  end
2243
2900
 
2244
2901
  ##
2245
- # Performs a reset on the instance. This is a hard reset. The VM does not do a graceful shutdown. For more information, see Resetting an instance.
2902
+ # Performs a reset on the instance. This is a hard reset. The VM
2903
+ # does not do a graceful shutdown. For more information, seeResetting
2904
+ # an instance.
2246
2905
  #
2247
2906
  # @overload reset(request, options = nil)
2248
2907
  # Pass arguments to `reset` via a request object, either of type
@@ -2264,7 +2923,19 @@ module Google
2264
2923
  # @param project [::String]
2265
2924
  # Project ID for this request.
2266
2925
  # @param request_id [::String]
2267
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
2926
+ # An optional request ID to identify requests. Specify a unique request ID so
2927
+ # that if you must retry your request, the server will know to ignore the
2928
+ # request if it has already been completed.
2929
+ #
2930
+ # For example, consider a situation where you make an initial request and
2931
+ # the request times out. If you make the request again with the same
2932
+ # request ID, the server can check if original operation with the same
2933
+ # request ID was received, and if so, will ignore the second request. This
2934
+ # prevents clients from accidentally creating duplicate commitments.
2935
+ #
2936
+ # The request ID must be
2937
+ # a valid UUID with the exception that zero UUID is not supported
2938
+ # (00000000-0000-0000-0000-000000000000).
2268
2939
  # @param zone [::String]
2269
2940
  # The name of the zone for this request.
2270
2941
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2336,7 +3007,8 @@ module Google
2336
3007
  end
2337
3008
 
2338
3009
  ##
2339
- # Resumes an instance that was suspended using the instances().suspend method.
3010
+ # Resumes an instance that was suspended using theinstances().suspend
3011
+ # method.
2340
3012
  #
2341
3013
  # @overload resume(request, options = nil)
2342
3014
  # Pass arguments to `resume` via a request object, either of type
@@ -2358,7 +3030,19 @@ module Google
2358
3030
  # @param project [::String]
2359
3031
  # Project ID for this request.
2360
3032
  # @param request_id [::String]
2361
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3033
+ # An optional request ID to identify requests. Specify a unique request ID so
3034
+ # that if you must retry your request, the server will know to ignore the
3035
+ # request if it has already been completed.
3036
+ #
3037
+ # For example, consider a situation where you make an initial request and
3038
+ # the request times out. If you make the request again with the same
3039
+ # request ID, the server can check if original operation with the same
3040
+ # request ID was received, and if so, will ignore the second request. This
3041
+ # prevents clients from accidentally creating duplicate commitments.
3042
+ #
3043
+ # The request ID must be
3044
+ # a valid UUID with the exception that zero UUID is not supported
3045
+ # (00000000-0000-0000-0000-000000000000).
2362
3046
  # @param zone [::String]
2363
3047
  # The name of the zone for this request.
2364
3048
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2534,7 +3218,19 @@ module Google
2534
3218
  # @param project [::String]
2535
3219
  # Project ID for this request.
2536
3220
  # @param request_id [::String]
2537
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3221
+ # An optional request ID to identify requests. Specify a unique request ID so
3222
+ # that if you must retry your request, the server will know to ignore the
3223
+ # request if it has already been completed.
3224
+ #
3225
+ # For example, consider a situation where you make an initial request and
3226
+ # the request times out. If you make the request again with the same
3227
+ # request ID, the server can check if original operation with the same
3228
+ # request ID was received, and if so, will ignore the second request. This
3229
+ # prevents clients from accidentally creating duplicate commitments.
3230
+ #
3231
+ # The request ID must be
3232
+ # a valid UUID with the exception that zero UUID is not supported
3233
+ # (00000000-0000-0000-0000-000000000000).
2538
3234
  # @param resource [::String]
2539
3235
  # Name or id of the resource for this request.
2540
3236
  # @param zone [::String]
@@ -2628,13 +3324,26 @@ module Google
2628
3324
  # @param auto_delete [::Boolean]
2629
3325
  # Whether to auto-delete the disk when the instance is deleted.
2630
3326
  # @param device_name [::String]
2631
- # The device name of the disk to modify. Make a get() request on the instance to view currently attached disks and device names.
3327
+ # The device name of the disk to modify. Make a get() request
3328
+ # on the instance to view currently attached disks and device names.
2632
3329
  # @param instance [::String]
2633
3330
  # The instance name for this request.
2634
3331
  # @param project [::String]
2635
3332
  # Project ID for this request.
2636
3333
  # @param request_id [::String]
2637
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3334
+ # An optional request ID to identify requests. Specify a unique request ID so
3335
+ # that if you must retry your request, the server will know to ignore the
3336
+ # request if it has already been completed.
3337
+ #
3338
+ # For example, consider a situation where you make an initial request and
3339
+ # the request times out. If you make the request again with the same
3340
+ # request ID, the server can check if original operation with the same
3341
+ # request ID was received, and if so, will ignore the second request. This
3342
+ # prevents clients from accidentally creating duplicate commitments.
3343
+ #
3344
+ # The request ID must be
3345
+ # a valid UUID with the exception that zero UUID is not supported
3346
+ # (00000000-0000-0000-0000-000000000000).
2638
3347
  # @param zone [::String]
2639
3348
  # The name of the zone for this request.
2640
3349
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2706,7 +3415,8 @@ module Google
2706
3415
  end
2707
3416
 
2708
3417
  ##
2709
- # Sets the access control policy on the specified resource. Replaces any existing policy.
3418
+ # Sets the access control policy on the specified resource.
3419
+ # Replaces any existing policy.
2710
3420
  #
2711
3421
  # @overload set_iam_policy(request, options = nil)
2712
3422
  # Pass arguments to `set_iam_policy` via a request object, either of type
@@ -2790,7 +3500,8 @@ module Google
2790
3500
  end
2791
3501
 
2792
3502
  ##
2793
- # Sets labels on an instance. To learn more about labels, read the Labeling Resources documentation.
3503
+ # Sets labels on an instance. To learn more about labels, read theLabeling
3504
+ # Resources documentation.
2794
3505
  #
2795
3506
  # @overload set_labels(request, options = nil)
2796
3507
  # Pass arguments to `set_labels` via a request object, either of type
@@ -2814,7 +3525,19 @@ module Google
2814
3525
  # @param project [::String]
2815
3526
  # Project ID for this request.
2816
3527
  # @param request_id [::String]
2817
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3528
+ # An optional request ID to identify requests. Specify a unique request ID so
3529
+ # that if you must retry your request, the server will know to ignore the
3530
+ # request if it has already been completed.
3531
+ #
3532
+ # For example, consider a situation where you make an initial request and
3533
+ # the request times out. If you make the request again with the same
3534
+ # request ID, the server can check if original operation with the same
3535
+ # request ID was received, and if so, will ignore the second request. This
3536
+ # prevents clients from accidentally creating duplicate commitments.
3537
+ #
3538
+ # The request ID must be
3539
+ # a valid UUID with the exception that zero UUID is not supported
3540
+ # (00000000-0000-0000-0000-000000000000).
2818
3541
  # @param zone [::String]
2819
3542
  # The name of the zone for this request.
2820
3543
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2886,7 +3609,8 @@ module Google
2886
3609
  end
2887
3610
 
2888
3611
  ##
2889
- # Changes the number and/or type of accelerator for a stopped instance to the values specified in the request.
3612
+ # Changes the number and/or type of accelerator for a stopped instance to the
3613
+ # values specified in the request.
2890
3614
  #
2891
3615
  # @overload set_machine_resources(request, options = nil)
2892
3616
  # Pass arguments to `set_machine_resources` via a request object, either of type
@@ -2910,7 +3634,19 @@ module Google
2910
3634
  # @param project [::String]
2911
3635
  # Project ID for this request.
2912
3636
  # @param request_id [::String]
2913
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3637
+ # An optional request ID to identify requests. Specify a unique request ID so
3638
+ # that if you must retry your request, the server will know to ignore the
3639
+ # request if it has already been completed.
3640
+ #
3641
+ # For example, consider a situation where you make an initial request and
3642
+ # the request times out. If you make the request again with the same
3643
+ # request ID, the server can check if original operation with the same
3644
+ # request ID was received, and if so, will ignore the second request. This
3645
+ # prevents clients from accidentally creating duplicate commitments.
3646
+ #
3647
+ # The request ID must be
3648
+ # a valid UUID with the exception that zero UUID is not supported
3649
+ # (00000000-0000-0000-0000-000000000000).
2914
3650
  # @param zone [::String]
2915
3651
  # The name of the zone for this request.
2916
3652
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -2982,7 +3718,8 @@ module Google
2982
3718
  end
2983
3719
 
2984
3720
  ##
2985
- # Changes the machine type for a stopped instance to the machine type specified in the request.
3721
+ # Changes the machine type for a stopped instance to the machine
3722
+ # type specified in the request.
2986
3723
  #
2987
3724
  # @overload set_machine_type(request, options = nil)
2988
3725
  # Pass arguments to `set_machine_type` via a request object, either of type
@@ -3006,7 +3743,19 @@ module Google
3006
3743
  # @param project [::String]
3007
3744
  # Project ID for this request.
3008
3745
  # @param request_id [::String]
3009
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3746
+ # An optional request ID to identify requests. Specify a unique request ID so
3747
+ # that if you must retry your request, the server will know to ignore the
3748
+ # request if it has already been completed.
3749
+ #
3750
+ # For example, consider a situation where you make an initial request and
3751
+ # the request times out. If you make the request again with the same
3752
+ # request ID, the server can check if original operation with the same
3753
+ # request ID was received, and if so, will ignore the second request. This
3754
+ # prevents clients from accidentally creating duplicate commitments.
3755
+ #
3756
+ # The request ID must be
3757
+ # a valid UUID with the exception that zero UUID is not supported
3758
+ # (00000000-0000-0000-0000-000000000000).
3010
3759
  # @param zone [::String]
3011
3760
  # The name of the zone for this request.
3012
3761
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3078,7 +3827,8 @@ module Google
3078
3827
  end
3079
3828
 
3080
3829
  ##
3081
- # Sets metadata for the specified instance to the data included in the request.
3830
+ # Sets metadata for the specified instance to the data included
3831
+ # in the request.
3082
3832
  #
3083
3833
  # @overload set_metadata(request, options = nil)
3084
3834
  # Pass arguments to `set_metadata` via a request object, either of type
@@ -3102,7 +3852,19 @@ module Google
3102
3852
  # @param project [::String]
3103
3853
  # Project ID for this request.
3104
3854
  # @param request_id [::String]
3105
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3855
+ # An optional request ID to identify requests. Specify a unique request ID so
3856
+ # that if you must retry your request, the server will know to ignore the
3857
+ # request if it has already been completed.
3858
+ #
3859
+ # For example, consider a situation where you make an initial request and
3860
+ # the request times out. If you make the request again with the same
3861
+ # request ID, the server can check if original operation with the same
3862
+ # request ID was received, and if so, will ignore the second request. This
3863
+ # prevents clients from accidentally creating duplicate commitments.
3864
+ #
3865
+ # The request ID must be
3866
+ # a valid UUID with the exception that zero UUID is not supported
3867
+ # (00000000-0000-0000-0000-000000000000).
3106
3868
  # @param zone [::String]
3107
3869
  # The name of the zone for this request.
3108
3870
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3174,7 +3936,10 @@ module Google
3174
3936
  end
3175
3937
 
3176
3938
  ##
3177
- # Changes the minimum CPU platform that this instance should use. This method can only be called on a stopped instance. For more information, read Specifying a Minimum CPU Platform.
3939
+ # Changes the minimum CPU platform that this instance should use.
3940
+ # This method can only
3941
+ # be called on a stopped instance. For more information, readSpecifying a
3942
+ # Minimum CPU Platform.
3178
3943
  #
3179
3944
  # @overload set_min_cpu_platform(request, options = nil)
3180
3945
  # Pass arguments to `set_min_cpu_platform` via a request object, either of type
@@ -3198,7 +3963,19 @@ module Google
3198
3963
  # @param project [::String]
3199
3964
  # Project ID for this request.
3200
3965
  # @param request_id [::String]
3201
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
3966
+ # An optional request ID to identify requests. Specify a unique request ID so
3967
+ # that if you must retry your request, the server will know to ignore the
3968
+ # request if it has already been completed.
3969
+ #
3970
+ # For example, consider a situation where you make an initial request and
3971
+ # the request times out. If you make the request again with the same
3972
+ # request ID, the server can check if original operation with the same
3973
+ # request ID was received, and if so, will ignore the second request. This
3974
+ # prevents clients from accidentally creating duplicate commitments.
3975
+ #
3976
+ # The request ID must be
3977
+ # a valid UUID with the exception that zero UUID is not supported
3978
+ # (00000000-0000-0000-0000-000000000000).
3202
3979
  # @param zone [::String]
3203
3980
  # The name of the zone for this request.
3204
3981
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3294,7 +4071,19 @@ module Google
3294
4071
  # @param project [::String]
3295
4072
  # Project ID for this request.
3296
4073
  # @param request_id [::String]
3297
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4074
+ # An optional request ID to identify requests. Specify a unique request ID so
4075
+ # that if you must retry your request, the server will know to ignore the
4076
+ # request if it has already been completed.
4077
+ #
4078
+ # For example, consider a situation where you make an initial request and
4079
+ # the request times out. If you make the request again with the same
4080
+ # request ID, the server can check if original operation with the same
4081
+ # request ID was received, and if so, will ignore the second request. This
4082
+ # prevents clients from accidentally creating duplicate commitments.
4083
+ #
4084
+ # The request ID must be
4085
+ # a valid UUID with the exception that zero UUID is not supported
4086
+ # (00000000-0000-0000-0000-000000000000).
3298
4087
  # @param zone [::String]
3299
4088
  # The name of the zone for this request.
3300
4089
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3366,7 +4155,11 @@ module Google
3366
4155
  end
3367
4156
 
3368
4157
  ##
3369
- # Sets an instance's scheduling options. You can only call this method on a stopped instance, that is, a VM instance that is in a `TERMINATED` state. See Instance Life Cycle for more information on the possible instance states. For more information about setting scheduling options for a VM, see Set VM host maintenance policy.
4158
+ # Sets an instance's scheduling options. You can only call this method on astopped instance,
4159
+ # that is, a VM instance that is in a `TERMINATED` state. SeeInstance Life
4160
+ # Cycle for more information on the possible instance states.
4161
+ # For more information about setting scheduling options for a VM, seeSet
4162
+ # VM host maintenance policy.
3370
4163
  #
3371
4164
  # @overload set_scheduling(request, options = nil)
3372
4165
  # Pass arguments to `set_scheduling` via a request object, either of type
@@ -3388,7 +4181,19 @@ module Google
3388
4181
  # @param project [::String]
3389
4182
  # Project ID for this request.
3390
4183
  # @param request_id [::String]
3391
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4184
+ # An optional request ID to identify requests. Specify a unique request ID so
4185
+ # that if you must retry your request, the server will know to ignore the
4186
+ # request if it has already been completed.
4187
+ #
4188
+ # For example, consider a situation where you make an initial request and
4189
+ # the request times out. If you make the request again with the same
4190
+ # request ID, the server can check if original operation with the same
4191
+ # request ID was received, and if so, will ignore the second request. This
4192
+ # prevents clients from accidentally creating duplicate commitments.
4193
+ #
4194
+ # The request ID must be
4195
+ # a valid UUID with the exception that zero UUID is not supported
4196
+ # (00000000-0000-0000-0000-000000000000).
3392
4197
  # @param scheduling_resource [::Google::Cloud::Compute::V1::Scheduling, ::Hash]
3393
4198
  # The body resource for this request
3394
4199
  # @param zone [::String]
@@ -3462,7 +4267,9 @@ module Google
3462
4267
  end
3463
4268
 
3464
4269
  ##
3465
- # Sets the Google Cloud Armor security policy for the specified instance. For more information, see Google Cloud Armor Overview
4270
+ # Sets the Google Cloud Armor security policy for the specified instance.
4271
+ # For more information, seeGoogle
4272
+ # Cloud Armor Overview
3466
4273
  #
3467
4274
  # @overload set_security_policy(request, options = nil)
3468
4275
  # Pass arguments to `set_security_policy` via a request object, either of type
@@ -3480,13 +4287,26 @@ module Google
3480
4287
  # the default parameter values, pass an empty Hash as a request object (see above).
3481
4288
  #
3482
4289
  # @param instance [::String]
3483
- # Name of the Instance resource to which the security policy should be set. The name should conform to RFC1035.
4290
+ # Name of the Instance resource to which the security policy should be
4291
+ # set. The name should conform to RFC1035.
3484
4292
  # @param instances_set_security_policy_request_resource [::Google::Cloud::Compute::V1::InstancesSetSecurityPolicyRequest, ::Hash]
3485
4293
  # The body resource for this request
3486
4294
  # @param project [::String]
3487
4295
  # Project ID for this request.
3488
4296
  # @param request_id [::String]
3489
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4297
+ # An optional request ID to identify requests. Specify a unique request ID so
4298
+ # that if you must retry your request, the server will know to ignore the
4299
+ # request if it has already been completed.
4300
+ #
4301
+ # For example, consider a situation where you make an initial request and
4302
+ # the request times out. If you make the request again with the same
4303
+ # request ID, the server can check if original operation with the same
4304
+ # request ID was received, and if so, will ignore the second request. This
4305
+ # prevents clients from accidentally creating duplicate commitments.
4306
+ #
4307
+ # The request ID must be
4308
+ # a valid UUID with the exception that zero UUID is not supported
4309
+ # (00000000-0000-0000-0000-000000000000).
3490
4310
  # @param zone [::String]
3491
4311
  # Name of the zone scoping this request.
3492
4312
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3558,7 +4378,9 @@ module Google
3558
4378
  end
3559
4379
 
3560
4380
  ##
3561
- # Sets the service account on the instance. For more information, read Changing the service account and access scopes for an instance.
4381
+ # Sets the service account on the instance. For more information,
4382
+ # readChanging
4383
+ # the service account and access scopes for an instance.
3562
4384
  #
3563
4385
  # @overload set_service_account(request, options = nil)
3564
4386
  # Pass arguments to `set_service_account` via a request object, either of type
@@ -3582,7 +4404,19 @@ module Google
3582
4404
  # @param project [::String]
3583
4405
  # Project ID for this request.
3584
4406
  # @param request_id [::String]
3585
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4407
+ # An optional request ID to identify requests. Specify a unique request ID so
4408
+ # that if you must retry your request, the server will know to ignore the
4409
+ # request if it has already been completed.
4410
+ #
4411
+ # For example, consider a situation where you make an initial request and
4412
+ # the request times out. If you make the request again with the same
4413
+ # request ID, the server can check if original operation with the same
4414
+ # request ID was received, and if so, will ignore the second request. This
4415
+ # prevents clients from accidentally creating duplicate commitments.
4416
+ #
4417
+ # The request ID must be
4418
+ # a valid UUID with the exception that zero UUID is not supported
4419
+ # (00000000-0000-0000-0000-000000000000).
3586
4420
  # @param zone [::String]
3587
4421
  # The name of the zone for this request.
3588
4422
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3654,7 +4488,10 @@ module Google
3654
4488
  end
3655
4489
 
3656
4490
  ##
3657
- # Sets the Shielded Instance integrity policy for an instance. You can only use this method on a running instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
4491
+ # Sets the Shielded Instance integrity policy for an instance. You can
4492
+ # only use this method on a running instance. This method
4493
+ # supports PATCH semantics and uses the JSON merge
4494
+ # patch format and processing rules.
3658
4495
  #
3659
4496
  # @overload set_shielded_instance_integrity_policy(request, options = nil)
3660
4497
  # Pass arguments to `set_shielded_instance_integrity_policy` via a request object, either of type
@@ -3676,7 +4513,19 @@ module Google
3676
4513
  # @param project [::String]
3677
4514
  # Project ID for this request.
3678
4515
  # @param request_id [::String]
3679
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4516
+ # An optional request ID to identify requests. Specify a unique request ID so
4517
+ # that if you must retry your request, the server will know to ignore the
4518
+ # request if it has already been completed.
4519
+ #
4520
+ # For example, consider a situation where you make an initial request and
4521
+ # the request times out. If you make the request again with the same
4522
+ # request ID, the server can check if original operation with the same
4523
+ # request ID was received, and if so, will ignore the second request. This
4524
+ # prevents clients from accidentally creating duplicate commitments.
4525
+ #
4526
+ # The request ID must be
4527
+ # a valid UUID with the exception that zero UUID is not supported
4528
+ # (00000000-0000-0000-0000-000000000000).
3680
4529
  # @param shielded_instance_integrity_policy_resource [::Google::Cloud::Compute::V1::ShieldedInstanceIntegrityPolicy, ::Hash]
3681
4530
  # The body resource for this request
3682
4531
  # @param zone [::String]
@@ -3750,7 +4599,8 @@ module Google
3750
4599
  end
3751
4600
 
3752
4601
  ##
3753
- # Sets network tags for the specified instance to the data included in the request.
4602
+ # Sets network tags
4603
+ # for the specified instance to the data included in the request.
3754
4604
  #
3755
4605
  # @overload set_tags(request, options = nil)
3756
4606
  # Pass arguments to `set_tags` via a request object, either of type
@@ -3772,7 +4622,19 @@ module Google
3772
4622
  # @param project [::String]
3773
4623
  # Project ID for this request.
3774
4624
  # @param request_id [::String]
3775
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4625
+ # An optional request ID to identify requests. Specify a unique request ID so
4626
+ # that if you must retry your request, the server will know to ignore the
4627
+ # request if it has already been completed.
4628
+ #
4629
+ # For example, consider a situation where you make an initial request and
4630
+ # the request times out. If you make the request again with the same
4631
+ # request ID, the server can check if original operation with the same
4632
+ # request ID was received, and if so, will ignore the second request. This
4633
+ # prevents clients from accidentally creating duplicate commitments.
4634
+ #
4635
+ # The request ID must be
4636
+ # a valid UUID with the exception that zero UUID is not supported
4637
+ # (00000000-0000-0000-0000-000000000000).
3776
4638
  # @param tags_resource [::Google::Cloud::Compute::V1::Tags, ::Hash]
3777
4639
  # The body resource for this request
3778
4640
  # @param zone [::String]
@@ -3846,7 +4708,8 @@ module Google
3846
4708
  end
3847
4709
 
3848
4710
  ##
3849
- # Simulates a host maintenance event on a VM. For more information, see Simulate a host maintenance event.
4711
+ # Simulates a host maintenance event on a VM. For more information, see
4712
+ # Simulate a host maintenance event.
3850
4713
  #
3851
4714
  # @overload simulate_maintenance_event(request, options = nil)
3852
4715
  # Pass arguments to `simulate_maintenance_event` via a request object, either of type
@@ -3868,9 +4731,22 @@ module Google
3868
4731
  # @param project [::String]
3869
4732
  # Project ID for this request.
3870
4733
  # @param request_id [::String]
3871
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4734
+ # An optional request ID to identify requests. Specify a unique request ID so
4735
+ # that if you must retry your request, the server will know to ignore the
4736
+ # request if it has already been completed.
4737
+ #
4738
+ # For example, consider a situation where you make an initial request and
4739
+ # the request times out. If you make the request again with the same
4740
+ # request ID, the server can check if original operation with the same
4741
+ # request ID was received, and if so, will ignore the second request. This
4742
+ # prevents clients from accidentally creating duplicate commitments.
4743
+ #
4744
+ # The request ID must be
4745
+ # a valid UUID with the exception that zero UUID is not supported
4746
+ # (00000000-0000-0000-0000-000000000000).
3872
4747
  # @param with_extended_notifications [::Boolean]
3873
- # Determines whether the customers receive notifications before migration. Only applicable to SF vms.
4748
+ # Determines whether the customers receive notifications before migration.
4749
+ # Only applicable to SF vms.
3874
4750
  # @param zone [::String]
3875
4751
  # The name of the zone for this request.
3876
4752
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -3942,7 +4818,9 @@ module Google
3942
4818
  end
3943
4819
 
3944
4820
  ##
3945
- # Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
4821
+ # Starts an instance that was stopped using theinstances().stop
4822
+ # method. For more information, seeRestart an
4823
+ # instance.
3946
4824
  #
3947
4825
  # @overload start(request, options = nil)
3948
4826
  # Pass arguments to `start` via a request object, either of type
@@ -3964,7 +4842,19 @@ module Google
3964
4842
  # @param project [::String]
3965
4843
  # Project ID for this request.
3966
4844
  # @param request_id [::String]
3967
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4845
+ # An optional request ID to identify requests. Specify a unique request ID so
4846
+ # that if you must retry your request, the server will know to ignore the
4847
+ # request if it has already been completed.
4848
+ #
4849
+ # For example, consider a situation where you make an initial request and
4850
+ # the request times out. If you make the request again with the same
4851
+ # request ID, the server can check if original operation with the same
4852
+ # request ID was received, and if so, will ignore the second request. This
4853
+ # prevents clients from accidentally creating duplicate commitments.
4854
+ #
4855
+ # The request ID must be
4856
+ # a valid UUID with the exception that zero UUID is not supported
4857
+ # (00000000-0000-0000-0000-000000000000).
3968
4858
  # @param zone [::String]
3969
4859
  # The name of the zone for this request.
3970
4860
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4036,7 +4926,9 @@ module Google
4036
4926
  end
4037
4927
 
4038
4928
  ##
4039
- # Starts an instance that was stopped using the instances().stop method. For more information, see Restart an instance.
4929
+ # Starts an instance that was stopped using theinstances().stop
4930
+ # method. For more information, seeRestart an
4931
+ # instance.
4040
4932
  #
4041
4933
  # @overload start_with_encryption_key(request, options = nil)
4042
4934
  # Pass arguments to `start_with_encryption_key` via a request object, either of type
@@ -4060,7 +4952,19 @@ module Google
4060
4952
  # @param project [::String]
4061
4953
  # Project ID for this request.
4062
4954
  # @param request_id [::String]
4063
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
4955
+ # An optional request ID to identify requests. Specify a unique request ID so
4956
+ # that if you must retry your request, the server will know to ignore the
4957
+ # request if it has already been completed.
4958
+ #
4959
+ # For example, consider a situation where you make an initial request and
4960
+ # the request times out. If you make the request again with the same
4961
+ # request ID, the server can check if original operation with the same
4962
+ # request ID was received, and if so, will ignore the second request. This
4963
+ # prevents clients from accidentally creating duplicate commitments.
4964
+ #
4965
+ # The request ID must be
4966
+ # a valid UUID with the exception that zero UUID is not supported
4967
+ # (00000000-0000-0000-0000-000000000000).
4064
4968
  # @param zone [::String]
4065
4969
  # The name of the zone for this request.
4066
4970
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4132,7 +5036,12 @@ module Google
4132
5036
  end
4133
5037
 
4134
5038
  ##
4135
- # Stops a running instance, shutting it down cleanly, and allows you to restart the instance at a later time. Stopped instances do not incur VM usage charges while they are stopped. However, resources that the VM is using, such as persistent disks and static IP addresses, will continue to be charged until they are deleted. For more information, see Stopping an instance.
5039
+ # Stops a running instance, shutting it down cleanly, and allows
5040
+ # you to restart the instance at a later time. Stopped instances do not incur
5041
+ # VM usage charges while they are stopped. However, resources that the VM is
5042
+ # using, such as persistent disks and static IP addresses, will continue to
5043
+ # be charged until they are deleted. For more information, seeStopping
5044
+ # an instance.
4136
5045
  #
4137
5046
  # @overload stop(request, options = nil)
4138
5047
  # Pass arguments to `stop` via a request object, either of type
@@ -4150,13 +5059,27 @@ module Google
4150
5059
  # the default parameter values, pass an empty Hash as a request object (see above).
4151
5060
  #
4152
5061
  # @param discard_local_ssd [::Boolean]
4153
- # This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
5062
+ # This property is required if the instance has any attached Local SSD disks.
5063
+ # If false, Local SSD data will be preserved when the instance is suspended.
5064
+ # If true, the contents of any attached Local SSD disks will be discarded.
4154
5065
  # @param instance [::String]
4155
5066
  # Name of the instance resource to stop.
4156
5067
  # @param project [::String]
4157
5068
  # Project ID for this request.
4158
5069
  # @param request_id [::String]
4159
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5070
+ # An optional request ID to identify requests. Specify a unique request ID so
5071
+ # that if you must retry your request, the server will know to ignore the
5072
+ # request if it has already been completed.
5073
+ #
5074
+ # For example, consider a situation where you make an initial request and
5075
+ # the request times out. If you make the request again with the same
5076
+ # request ID, the server can check if original operation with the same
5077
+ # request ID was received, and if so, will ignore the second request. This
5078
+ # prevents clients from accidentally creating duplicate commitments.
5079
+ #
5080
+ # The request ID must be
5081
+ # a valid UUID with the exception that zero UUID is not supported
5082
+ # (00000000-0000-0000-0000-000000000000).
4160
5083
  # @param zone [::String]
4161
5084
  # The name of the zone for this request.
4162
5085
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4228,7 +5151,14 @@ module Google
4228
5151
  end
4229
5152
 
4230
5153
  ##
4231
- # This method suspends a running instance, saving its state to persistent storage, and allows you to resume the instance at a later time. Suspended instances have no compute costs (cores or RAM), and incur only storage charges for the saved VM memory and localSSD data. Any charged resources the virtual machine was using, such as persistent disks and static IP addresses, will continue to be charged while the instance is suspended. For more information, see Suspending and resuming an instance.
5154
+ # This method suspends a running instance, saving its state to persistent
5155
+ # storage, and allows you to resume the instance at a later time. Suspended
5156
+ # instances have no compute costs (cores or RAM), and incur only storage
5157
+ # charges for the saved VM memory and localSSD data. Any charged resources
5158
+ # the virtual machine was using, such as persistent disks and static IP
5159
+ # addresses, will continue to be charged while the instance is suspended.
5160
+ # For more information, see
5161
+ # Suspending and resuming an instance.
4232
5162
  #
4233
5163
  # @overload suspend(request, options = nil)
4234
5164
  # Pass arguments to `suspend` via a request object, either of type
@@ -4246,13 +5176,27 @@ module Google
4246
5176
  # the default parameter values, pass an empty Hash as a request object (see above).
4247
5177
  #
4248
5178
  # @param discard_local_ssd [::Boolean]
4249
- # This property is required if the instance has any attached Local SSD disks. If false, Local SSD data will be preserved when the instance is suspended. If true, the contents of any attached Local SSD disks will be discarded.
5179
+ # This property is required if the instance has any attached Local SSD disks.
5180
+ # If false, Local SSD data will be preserved when the instance is suspended.
5181
+ # If true, the contents of any attached Local SSD disks will be discarded.
4250
5182
  # @param instance [::String]
4251
5183
  # Name of the instance resource to suspend.
4252
5184
  # @param project [::String]
4253
5185
  # Project ID for this request.
4254
5186
  # @param request_id [::String]
4255
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5187
+ # An optional request ID to identify requests. Specify a unique request ID so
5188
+ # that if you must retry your request, the server will know to ignore the
5189
+ # request if it has already been completed.
5190
+ #
5191
+ # For example, consider a situation where you make an initial request and
5192
+ # the request times out. If you make the request again with the same
5193
+ # request ID, the server can check if original operation with the same
5194
+ # request ID was received, and if so, will ignore the second request. This
5195
+ # prevents clients from accidentally creating duplicate commitments.
5196
+ #
5197
+ # The request ID must be
5198
+ # a valid UUID with the exception that zero UUID is not supported
5199
+ # (00000000-0000-0000-0000-000000000000).
4256
5200
  # @param zone [::String]
4257
5201
  # The name of the zone for this request.
4258
5202
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4408,7 +5352,10 @@ module Google
4408
5352
  end
4409
5353
 
4410
5354
  ##
4411
- # Updates an instance only if the necessary resources are available. This method can update only a specific set of instance properties. See Updating a running instance for a list of updatable instance properties.
5355
+ # Updates an instance only if the necessary resources are available. This
5356
+ # method can update only a specific set of instance properties. See
5357
+ # Updating a running instance for a list of updatable instance
5358
+ # properties.
4412
5359
  #
4413
5360
  # @overload update(request, options = nil)
4414
5361
  # Pass arguments to `update` via a request object, either of type
@@ -4420,25 +5367,47 @@ module Google
4420
5367
  # @param options [::Gapic::CallOptions, ::Hash]
4421
5368
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4422
5369
  #
4423
- # @overload update(instance: nil, instance_resource: nil, minimal_action: nil, most_disruptive_allowed_action: nil, project: nil, request_id: nil, zone: nil)
5370
+ # @overload update(discard_local_ssd: nil, instance: nil, instance_resource: nil, minimal_action: nil, most_disruptive_allowed_action: nil, project: nil, request_id: nil, zone: nil)
4424
5371
  # Pass arguments to `update` via keyword arguments. Note that at
4425
5372
  # least one keyword argument is required. To specify no parameters, or to keep all
4426
5373
  # the default parameter values, pass an empty Hash as a request object (see above).
4427
5374
  #
5375
+ # @param discard_local_ssd [::Boolean]
5376
+ # Whether to discard local SSDs from the instance during restart
5377
+ # default value is false.
4428
5378
  # @param instance [::String]
4429
5379
  # Name of the instance resource to update.
4430
5380
  # @param instance_resource [::Google::Cloud::Compute::V1::Instance, ::Hash]
4431
5381
  # The body resource for this request
4432
5382
  # @param minimal_action [::String]
4433
- # Specifies the action to take when updating an instance even if the updated properties do not require it. If not specified, then Compute Engine acts based on the minimum action that the updated properties require.
5383
+ # Specifies the action to take when updating an instance even if the
5384
+ # updated properties do not require it. If not specified, then
5385
+ # Compute Engine acts based on the minimum action that the updated
5386
+ # properties require.
4434
5387
  # Check the MinimalAction enum for the list of possible values.
4435
5388
  # @param most_disruptive_allowed_action [::String]
4436
- # Specifies the most disruptive action that can be taken on the instance as part of the update. Compute Engine returns an error if the instance properties require a more disruptive action as part of the instance update. Valid options from lowest to highest are NO_EFFECT, REFRESH, and RESTART.
5389
+ # Specifies the most disruptive action that can be taken on the instance
5390
+ # as part of the update. Compute Engine returns an error if the
5391
+ # instance properties require a more disruptive action as part of the
5392
+ # instance update. Valid options from lowest to highest are
5393
+ # NO_EFFECT, REFRESH, and RESTART.
4437
5394
  # Check the MostDisruptiveAllowedAction enum for the list of possible values.
4438
5395
  # @param project [::String]
4439
5396
  # Project ID for this request.
4440
5397
  # @param request_id [::String]
4441
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5398
+ # An optional request ID to identify requests. Specify a unique request ID so
5399
+ # that if you must retry your request, the server will know to ignore the
5400
+ # request if it has already been completed.
5401
+ #
5402
+ # For example, consider a situation where you make an initial request and
5403
+ # the request times out. If you make the request again with the same
5404
+ # request ID, the server can check if original operation with the same
5405
+ # request ID was received, and if so, will ignore the second request. This
5406
+ # prevents clients from accidentally creating duplicate commitments.
5407
+ #
5408
+ # The request ID must be
5409
+ # a valid UUID with the exception that zero UUID is not supported
5410
+ # (00000000-0000-0000-0000-000000000000).
4442
5411
  # @param zone [::String]
4443
5412
  # The name of the zone for this request.
4444
5413
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4510,7 +5479,10 @@ module Google
4510
5479
  end
4511
5480
 
4512
5481
  ##
4513
- # Updates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
5482
+ # Updates the specified access config from an instance's network interface
5483
+ # with the data included in the request. This method supportsPATCH
5484
+ # semantics and uses theJSON merge
5485
+ # patch format and processing rules.
4514
5486
  #
4515
5487
  # @overload update_access_config(request, options = nil)
4516
5488
  # Pass arguments to `update_access_config` via a request object, either of type
@@ -4536,7 +5508,19 @@ module Google
4536
5508
  # @param project [::String]
4537
5509
  # Project ID for this request.
4538
5510
  # @param request_id [::String]
4539
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5511
+ # An optional request ID to identify requests. Specify a unique request ID so
5512
+ # that if you must retry your request, the server will know to ignore the
5513
+ # request if it has already been completed.
5514
+ #
5515
+ # For example, consider a situation where you make an initial request and
5516
+ # the request times out. If you make the request again with the same
5517
+ # request ID, the server can check if original operation with the same
5518
+ # request ID was received, and if so, will ignore the second request. This
5519
+ # prevents clients from accidentally creating duplicate commitments.
5520
+ #
5521
+ # The request ID must be
5522
+ # a valid UUID with the exception that zero UUID is not supported
5523
+ # (00000000-0000-0000-0000-000000000000).
4540
5524
  # @param zone [::String]
4541
5525
  # The name of the zone for this request.
4542
5526
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4608,7 +5592,10 @@ module Google
4608
5592
  end
4609
5593
 
4610
5594
  ##
4611
- # Updates the Display config for a VM instance. You can only use this method on a stopped VM instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
5595
+ # Updates the Display config for a VM instance. You can
5596
+ # only use this method on a stopped VM instance. This method supportsPATCH
5597
+ # semantics and uses theJSON merge
5598
+ # patch format and processing rules.
4612
5599
  #
4613
5600
  # @overload update_display_device(request, options = nil)
4614
5601
  # Pass arguments to `update_display_device` via a request object, either of type
@@ -4632,7 +5619,19 @@ module Google
4632
5619
  # @param project [::String]
4633
5620
  # Project ID for this request.
4634
5621
  # @param request_id [::String]
4635
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5622
+ # An optional request ID to identify requests. Specify a unique request ID so
5623
+ # that if you must retry your request, the server will know to ignore the
5624
+ # request if it has already been completed.
5625
+ #
5626
+ # For example, consider a situation where you make an initial request and
5627
+ # the request times out. If you make the request again with the same
5628
+ # request ID, the server can check if original operation with the same
5629
+ # request ID was received, and if so, will ignore the second request. This
5630
+ # prevents clients from accidentally creating duplicate commitments.
5631
+ #
5632
+ # The request ID must be
5633
+ # a valid UUID with the exception that zero UUID is not supported
5634
+ # (00000000-0000-0000-0000-000000000000).
4636
5635
  # @param zone [::String]
4637
5636
  # The name of the zone for this request.
4638
5637
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4704,7 +5703,12 @@ module Google
4704
5703
  end
4705
5704
 
4706
5705
  ##
4707
- # Updates an instance's network interface. This method can only update an interface's alias IP range and attached network. See Modifying alias IP ranges for an existing instance for instructions on changing alias IP ranges. See Migrating a VM between networks for instructions on migrating an interface. This method follows PATCH semantics.
5706
+ # Updates an instance's network interface. This method can only update an
5707
+ # interface's alias IP range and attached network. See Modifying
5708
+ # alias IP ranges for an existing instance for instructions on
5709
+ # changing alias IP ranges. See Migrating
5710
+ # a VM between networks for instructions on migrating an interface.
5711
+ # This method follows PATCH semantics.
4708
5712
  #
4709
5713
  # @overload update_network_interface(request, options = nil)
4710
5714
  # Pass arguments to `update_network_interface` via a request object, either of type
@@ -4730,7 +5734,19 @@ module Google
4730
5734
  # @param project [::String]
4731
5735
  # Project ID for this request.
4732
5736
  # @param request_id [::String]
4733
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5737
+ # An optional request ID to identify requests. Specify a unique request ID so
5738
+ # that if you must retry your request, the server will know to ignore the
5739
+ # request if it has already been completed.
5740
+ #
5741
+ # For example, consider a situation where you make an initial request and
5742
+ # the request times out. If you make the request again with the same
5743
+ # request ID, the server can check if original operation with the same
5744
+ # request ID was received, and if so, will ignore the second request. This
5745
+ # prevents clients from accidentally creating duplicate commitments.
5746
+ #
5747
+ # The request ID must be
5748
+ # a valid UUID with the exception that zero UUID is not supported
5749
+ # (00000000-0000-0000-0000-000000000000).
4734
5750
  # @param zone [::String]
4735
5751
  # The name of the zone for this request.
4736
5752
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -4802,7 +5818,10 @@ module Google
4802
5818
  end
4803
5819
 
4804
5820
  ##
4805
- # Updates the Shielded Instance config for an instance. You can only use this method on a stopped instance. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
5821
+ # Updates the Shielded Instance config for an instance. You can
5822
+ # only use this method on a stopped instance. This method supportsPATCH
5823
+ # semantics and uses theJSON merge
5824
+ # patch format and processing rules.
4806
5825
  #
4807
5826
  # @overload update_shielded_instance_config(request, options = nil)
4808
5827
  # Pass arguments to `update_shielded_instance_config` via a request object, either of type
@@ -4824,7 +5843,19 @@ module Google
4824
5843
  # @param project [::String]
4825
5844
  # Project ID for this request.
4826
5845
  # @param request_id [::String]
4827
- # An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5846
+ # An optional request ID to identify requests. Specify a unique request ID so
5847
+ # that if you must retry your request, the server will know to ignore the
5848
+ # request if it has already been completed.
5849
+ #
5850
+ # For example, consider a situation where you make an initial request and
5851
+ # the request times out. If you make the request again with the same
5852
+ # request ID, the server can check if original operation with the same
5853
+ # request ID was received, and if so, will ignore the second request. This
5854
+ # prevents clients from accidentally creating duplicate commitments.
5855
+ #
5856
+ # The request ID must be
5857
+ # a valid UUID with the exception that zero UUID is not supported
5858
+ # (00000000-0000-0000-0000-000000000000).
4828
5859
  # @param shielded_instance_config_resource [::Google::Cloud::Compute::V1::ShieldedInstanceConfig, ::Hash]
4829
5860
  # The body resource for this request
4830
5861
  # @param zone [::String]
@@ -5049,6 +6080,11 @@ module Google
5049
6080
  #
5050
6081
  attr_reader :add_access_config
5051
6082
  ##
6083
+ # RPC-specific configuration for `add_network_interface`
6084
+ # @return [::Gapic::Config::Method]
6085
+ #
6086
+ attr_reader :add_network_interface
6087
+ ##
5052
6088
  # RPC-specific configuration for `add_resource_policies`
5053
6089
  # @return [::Gapic::Config::Method]
5054
6090
  #
@@ -5079,6 +6115,11 @@ module Google
5079
6115
  #
5080
6116
  attr_reader :delete_access_config
5081
6117
  ##
6118
+ # RPC-specific configuration for `delete_network_interface`
6119
+ # @return [::Gapic::Config::Method]
6120
+ #
6121
+ attr_reader :delete_network_interface
6122
+ ##
5082
6123
  # RPC-specific configuration for `detach_disk`
5083
6124
  # @return [::Gapic::Config::Method]
5084
6125
  #
@@ -5293,6 +6334,8 @@ module Google
5293
6334
  def initialize parent_rpcs = nil
5294
6335
  add_access_config_config = parent_rpcs.add_access_config if parent_rpcs.respond_to? :add_access_config
5295
6336
  @add_access_config = ::Gapic::Config::Method.new add_access_config_config
6337
+ add_network_interface_config = parent_rpcs.add_network_interface if parent_rpcs.respond_to? :add_network_interface
6338
+ @add_network_interface = ::Gapic::Config::Method.new add_network_interface_config
5296
6339
  add_resource_policies_config = parent_rpcs.add_resource_policies if parent_rpcs.respond_to? :add_resource_policies
5297
6340
  @add_resource_policies = ::Gapic::Config::Method.new add_resource_policies_config
5298
6341
  aggregated_list_config = parent_rpcs.aggregated_list if parent_rpcs.respond_to? :aggregated_list
@@ -5305,6 +6348,8 @@ module Google
5305
6348
  @delete = ::Gapic::Config::Method.new delete_config
5306
6349
  delete_access_config_config = parent_rpcs.delete_access_config if parent_rpcs.respond_to? :delete_access_config
5307
6350
  @delete_access_config = ::Gapic::Config::Method.new delete_access_config_config
6351
+ delete_network_interface_config = parent_rpcs.delete_network_interface if parent_rpcs.respond_to? :delete_network_interface
6352
+ @delete_network_interface = ::Gapic::Config::Method.new delete_network_interface_config
5308
6353
  detach_disk_config = parent_rpcs.detach_disk if parent_rpcs.respond_to? :detach_disk
5309
6354
  @detach_disk = ::Gapic::Config::Method.new detach_disk_config
5310
6355
  get_config = parent_rpcs.get if parent_rpcs.respond_to? :get