google-cloud-compute-v1 2.4.0 → 2.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (118) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +52 -3
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -1
  6. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
  7. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +420 -3
  8. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
  9. data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
  10. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +52 -3
  11. data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
  12. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
  13. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
  14. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
  15. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
  16. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
  17. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
  18. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
  19. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
  20. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
  21. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
  22. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
  23. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
  24. data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
  25. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
  26. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
  27. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
  28. data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -4
  29. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
  30. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +116 -3
  31. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
  32. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
  33. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
  34. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
  35. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
  36. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
  37. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
  38. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
  39. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -3
  40. data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
  41. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +83 -2
  42. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
  43. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
  44. data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
  45. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
  46. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
  47. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
  48. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
  49. data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
  50. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -4
  51. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
  52. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +304 -3
  53. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
  54. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +97 -1
  55. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -1
  56. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
  57. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -3
  58. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
  59. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
  60. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
  61. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
  62. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
  63. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
  64. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
  65. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
  66. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +378 -4
  67. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
  68. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +273 -1
  69. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
  70. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
  71. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -5
  72. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
  73. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +65 -1
  74. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
  75. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
  76. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
  77. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
  78. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
  79. data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
  80. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
  81. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
  82. data/lib/google/cloud/compute/v1/rest.rb +1 -0
  83. data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
  84. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
  85. data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
  86. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
  87. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -3
  88. data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
  89. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
  90. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
  91. data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
  92. data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
  93. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +129 -1
  94. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
  95. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
  96. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
  97. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
  98. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
  99. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
  100. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -3
  101. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
  102. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +284 -3
  103. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
  104. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +145 -1
  105. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
  106. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
  107. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
  108. data/lib/google/cloud/compute/v1/version.rb +1 -1
  109. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
  110. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
  111. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
  112. data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
  113. data/lib/google/cloud/compute/v1.rb +1 -0
  114. data/proto_docs/google/api/client.rb +13 -0
  115. data/proto_docs/google/api/field_behavior.rb +14 -0
  116. data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
  117. data/proto_docs/google/protobuf/any.rb +144 -0
  118. metadata +11 -5
@@ -234,6 +234,22 @@ module Google
234
234
  # @return [::Gapic::GenericLRO::Operation]
235
235
  #
236
236
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
237
+ #
238
+ # @example Basic example
239
+ # require "google/cloud/compute/v1"
240
+ #
241
+ # # Create a client object. The client can be reused for multiple calls.
242
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
243
+ #
244
+ # # Create a request. To set request fields, pass in keyword arguments.
245
+ # request = Google::Cloud::Compute::V1::AbandonInstancesInstanceGroupManagerRequest.new
246
+ #
247
+ # # Call the abandon_instances method.
248
+ # result = client.abandon_instances request
249
+ #
250
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
251
+ # p result
252
+ #
237
253
  def abandon_instances request, options = nil
238
254
  raise ::ArgumentError, "request must be provided" if request.nil?
239
255
 
@@ -291,13 +307,13 @@ module Google
291
307
  # @param options [::Gapic::CallOptions, ::Hash]
292
308
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
293
309
  #
294
- # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
310
+ # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
295
311
  # Pass arguments to `aggregated_list` via keyword arguments. Note that at
296
312
  # least one keyword argument is required. To specify no parameters, or to keep all
297
313
  # the default parameter values, pass an empty Hash as a request object (see above).
298
314
  #
299
315
  # @param filter [::String]
300
- # 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. 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
316
+ # 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.
301
317
  # @param include_all_scopes [::Boolean]
302
318
  # 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.
303
319
  # @param max_results [::Integer]
@@ -310,6 +326,7 @@ module Google
310
326
  # Project ID for this request.
311
327
  # @param return_partial_success [::Boolean]
312
328
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
329
+ # @param service_project_number [::Integer]
313
330
  # @yield [result, operation] Access the result along with the TransportOperation object
314
331
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceGroupManagersScopedList>]
315
332
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -317,6 +334,22 @@ module Google
317
334
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceGroupManagersScopedList>]
318
335
  #
319
336
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
337
+ #
338
+ # @example Basic example
339
+ # require "google/cloud/compute/v1"
340
+ #
341
+ # # Create a client object. The client can be reused for multiple calls.
342
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
343
+ #
344
+ # # Create a request. To set request fields, pass in keyword arguments.
345
+ # request = Google::Cloud::Compute::V1::AggregatedListInstanceGroupManagersRequest.new
346
+ #
347
+ # # Call the aggregated_list method.
348
+ # result = client.aggregated_list request
349
+ #
350
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagerAggregatedList.
351
+ # p result
352
+ #
320
353
  def aggregated_list request, options = nil
321
354
  raise ::ArgumentError, "request must be provided" if request.nil?
322
355
 
@@ -386,6 +419,22 @@ module Google
386
419
  # @return [::Gapic::GenericLRO::Operation]
387
420
  #
388
421
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
422
+ #
423
+ # @example Basic example
424
+ # require "google/cloud/compute/v1"
425
+ #
426
+ # # Create a client object. The client can be reused for multiple calls.
427
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
428
+ #
429
+ # # Create a request. To set request fields, pass in keyword arguments.
430
+ # request = Google::Cloud::Compute::V1::ApplyUpdatesToInstancesInstanceGroupManagerRequest.new
431
+ #
432
+ # # Call the apply_updates_to_instances method.
433
+ # result = client.apply_updates_to_instances request
434
+ #
435
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
436
+ # p result
437
+ #
389
438
  def apply_updates_to_instances request, options = nil
390
439
  raise ::ArgumentError, "request must be provided" if request.nil?
391
440
 
@@ -465,6 +514,22 @@ module Google
465
514
  # @return [::Gapic::GenericLRO::Operation]
466
515
  #
467
516
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
517
+ #
518
+ # @example Basic example
519
+ # require "google/cloud/compute/v1"
520
+ #
521
+ # # Create a client object. The client can be reused for multiple calls.
522
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
523
+ #
524
+ # # Create a request. To set request fields, pass in keyword arguments.
525
+ # request = Google::Cloud::Compute::V1::CreateInstancesInstanceGroupManagerRequest.new
526
+ #
527
+ # # Call the create_instances method.
528
+ # result = client.create_instances request
529
+ #
530
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
531
+ # p result
532
+ #
468
533
  def create_instances request, options = nil
469
534
  raise ::ArgumentError, "request must be provided" if request.nil?
470
535
 
@@ -542,6 +607,22 @@ module Google
542
607
  # @return [::Gapic::GenericLRO::Operation]
543
608
  #
544
609
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
610
+ #
611
+ # @example Basic example
612
+ # require "google/cloud/compute/v1"
613
+ #
614
+ # # Create a client object. The client can be reused for multiple calls.
615
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
616
+ #
617
+ # # Create a request. To set request fields, pass in keyword arguments.
618
+ # request = Google::Cloud::Compute::V1::DeleteInstanceGroupManagerRequest.new
619
+ #
620
+ # # Call the delete method.
621
+ # result = client.delete request
622
+ #
623
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
624
+ # p result
625
+ #
545
626
  def delete request, options = nil
546
627
  raise ::ArgumentError, "request must be provided" if request.nil?
547
628
 
@@ -621,6 +702,22 @@ module Google
621
702
  # @return [::Gapic::GenericLRO::Operation]
622
703
  #
623
704
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
705
+ #
706
+ # @example Basic example
707
+ # require "google/cloud/compute/v1"
708
+ #
709
+ # # Create a client object. The client can be reused for multiple calls.
710
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
711
+ #
712
+ # # Create a request. To set request fields, pass in keyword arguments.
713
+ # request = Google::Cloud::Compute::V1::DeleteInstancesInstanceGroupManagerRequest.new
714
+ #
715
+ # # Call the delete_instances method.
716
+ # result = client.delete_instances request
717
+ #
718
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
719
+ # p result
720
+ #
624
721
  def delete_instances request, options = nil
625
722
  raise ::ArgumentError, "request must be provided" if request.nil?
626
723
 
@@ -698,6 +795,22 @@ module Google
698
795
  # @return [::Gapic::GenericLRO::Operation]
699
796
  #
700
797
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
798
+ #
799
+ # @example Basic example
800
+ # require "google/cloud/compute/v1"
801
+ #
802
+ # # Create a client object. The client can be reused for multiple calls.
803
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
804
+ #
805
+ # # Create a request. To set request fields, pass in keyword arguments.
806
+ # request = Google::Cloud::Compute::V1::DeletePerInstanceConfigsInstanceGroupManagerRequest.new
807
+ #
808
+ # # Call the delete_per_instance_configs method.
809
+ # result = client.delete_per_instance_configs request
810
+ #
811
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
812
+ # p result
813
+ #
701
814
  def delete_per_instance_configs request, options = nil
702
815
  raise ::ArgumentError, "request must be provided" if request.nil?
703
816
 
@@ -773,6 +886,22 @@ module Google
773
886
  # @return [::Google::Cloud::Compute::V1::InstanceGroupManager]
774
887
  #
775
888
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
889
+ #
890
+ # @example Basic example
891
+ # require "google/cloud/compute/v1"
892
+ #
893
+ # # Create a client object. The client can be reused for multiple calls.
894
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
895
+ #
896
+ # # Create a request. To set request fields, pass in keyword arguments.
897
+ # request = Google::Cloud::Compute::V1::GetInstanceGroupManagerRequest.new
898
+ #
899
+ # # Call the get method.
900
+ # result = client.get request
901
+ #
902
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManager.
903
+ # p result
904
+ #
776
905
  def get request, options = nil
777
906
  raise ::ArgumentError, "request must be provided" if request.nil?
778
907
 
@@ -841,6 +970,22 @@ module Google
841
970
  # @return [::Gapic::GenericLRO::Operation]
842
971
  #
843
972
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
973
+ #
974
+ # @example Basic example
975
+ # require "google/cloud/compute/v1"
976
+ #
977
+ # # Create a client object. The client can be reused for multiple calls.
978
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
979
+ #
980
+ # # Create a request. To set request fields, pass in keyword arguments.
981
+ # request = Google::Cloud::Compute::V1::InsertInstanceGroupManagerRequest.new
982
+ #
983
+ # # Call the insert method.
984
+ # result = client.insert request
985
+ #
986
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
987
+ # p result
988
+ #
844
989
  def insert request, options = nil
845
990
  raise ::ArgumentError, "request must be provided" if request.nil?
846
991
 
@@ -904,7 +1049,7 @@ module Google
904
1049
  # the default parameter values, pass an empty Hash as a request object (see above).
905
1050
  #
906
1051
  # @param filter [::String]
907
- # 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. 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
1052
+ # 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.
908
1053
  # @param max_results [::Integer]
909
1054
  # 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`)
910
1055
  # @param order_by [::String]
@@ -924,6 +1069,22 @@ module Google
924
1069
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroupManager>]
925
1070
  #
926
1071
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1072
+ #
1073
+ # @example Basic example
1074
+ # require "google/cloud/compute/v1"
1075
+ #
1076
+ # # Create a client object. The client can be reused for multiple calls.
1077
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1078
+ #
1079
+ # # Create a request. To set request fields, pass in keyword arguments.
1080
+ # request = Google::Cloud::Compute::V1::ListInstanceGroupManagersRequest.new
1081
+ #
1082
+ # # Call the list method.
1083
+ # result = client.list request
1084
+ #
1085
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagerList.
1086
+ # p result
1087
+ #
927
1088
  def list request, options = nil
928
1089
  raise ::ArgumentError, "request must be provided" if request.nil?
929
1090
 
@@ -979,7 +1140,7 @@ module Google
979
1140
  # the default parameter values, pass an empty Hash as a request object (see above).
980
1141
  #
981
1142
  # @param filter [::String]
982
- # 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. 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
1143
+ # 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.
983
1144
  # @param instance_group_manager [::String]
984
1145
  # The name of the managed instance group. It must be a string that meets the requirements in RFC1035, or an unsigned long integer: must match regexp pattern: (?:[a-z](?:[-a-z0-9]\\{0,61}[a-z0-9])?)|1-9\\{0,19}.
985
1146
  # @param max_results [::Integer]
@@ -1001,6 +1162,22 @@ module Google
1001
1162
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceManagedByIgmError>]
1002
1163
  #
1003
1164
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1165
+ #
1166
+ # @example Basic example
1167
+ # require "google/cloud/compute/v1"
1168
+ #
1169
+ # # Create a client object. The client can be reused for multiple calls.
1170
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1171
+ #
1172
+ # # Create a request. To set request fields, pass in keyword arguments.
1173
+ # request = Google::Cloud::Compute::V1::ListErrorsInstanceGroupManagersRequest.new
1174
+ #
1175
+ # # Call the list_errors method.
1176
+ # result = client.list_errors request
1177
+ #
1178
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagersListErrorsResponse.
1179
+ # p result
1180
+ #
1004
1181
  def list_errors request, options = nil
1005
1182
  raise ::ArgumentError, "request must be provided" if request.nil?
1006
1183
 
@@ -1056,7 +1233,7 @@ module Google
1056
1233
  # the default parameter values, pass an empty Hash as a request object (see above).
1057
1234
  #
1058
1235
  # @param filter [::String]
1059
- # 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. 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
1236
+ # 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.
1060
1237
  # @param instance_group_manager [::String]
1061
1238
  # The name of the managed instance group.
1062
1239
  # @param max_results [::Integer]
@@ -1078,6 +1255,22 @@ module Google
1078
1255
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ManagedInstance>]
1079
1256
  #
1080
1257
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1258
+ #
1259
+ # @example Basic example
1260
+ # require "google/cloud/compute/v1"
1261
+ #
1262
+ # # Create a client object. The client can be reused for multiple calls.
1263
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1264
+ #
1265
+ # # Create a request. To set request fields, pass in keyword arguments.
1266
+ # request = Google::Cloud::Compute::V1::ListManagedInstancesInstanceGroupManagersRequest.new
1267
+ #
1268
+ # # Call the list_managed_instances method.
1269
+ # result = client.list_managed_instances request
1270
+ #
1271
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagersListManagedInstancesResponse.
1272
+ # p result
1273
+ #
1081
1274
  def list_managed_instances request, options = nil
1082
1275
  raise ::ArgumentError, "request must be provided" if request.nil?
1083
1276
 
@@ -1133,7 +1326,7 @@ module Google
1133
1326
  # the default parameter values, pass an empty Hash as a request object (see above).
1134
1327
  #
1135
1328
  # @param filter [::String]
1136
- # 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. 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 `:` operator can be used with string fields to match substrings. For non-string fields it is equivalent to the `=` operator. 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`.
1329
+ # 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.
1137
1330
  # @param instance_group_manager [::String]
1138
1331
  # The name of the managed instance group. It should conform to RFC1035.
1139
1332
  # @param max_results [::Integer]
@@ -1155,6 +1348,22 @@ module Google
1155
1348
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PerInstanceConfig>]
1156
1349
  #
1157
1350
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1351
+ #
1352
+ # @example Basic example
1353
+ # require "google/cloud/compute/v1"
1354
+ #
1355
+ # # Create a client object. The client can be reused for multiple calls.
1356
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1357
+ #
1358
+ # # Create a request. To set request fields, pass in keyword arguments.
1359
+ # request = Google::Cloud::Compute::V1::ListPerInstanceConfigsInstanceGroupManagersRequest.new
1360
+ #
1361
+ # # Call the list_per_instance_configs method.
1362
+ # result = client.list_per_instance_configs request
1363
+ #
1364
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagersListPerInstanceConfigsResp.
1365
+ # p result
1366
+ #
1158
1367
  def list_per_instance_configs request, options = nil
1159
1368
  raise ::ArgumentError, "request must be provided" if request.nil?
1160
1369
 
@@ -1226,6 +1435,22 @@ module Google
1226
1435
  # @return [::Gapic::GenericLRO::Operation]
1227
1436
  #
1228
1437
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1438
+ #
1439
+ # @example Basic example
1440
+ # require "google/cloud/compute/v1"
1441
+ #
1442
+ # # Create a client object. The client can be reused for multiple calls.
1443
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1444
+ #
1445
+ # # Create a request. To set request fields, pass in keyword arguments.
1446
+ # request = Google::Cloud::Compute::V1::PatchInstanceGroupManagerRequest.new
1447
+ #
1448
+ # # Call the patch method.
1449
+ # result = client.patch request
1450
+ #
1451
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1452
+ # p result
1453
+ #
1229
1454
  def patch request, options = nil
1230
1455
  raise ::ArgumentError, "request must be provided" if request.nil?
1231
1456
 
@@ -1305,6 +1530,22 @@ module Google
1305
1530
  # @return [::Gapic::GenericLRO::Operation]
1306
1531
  #
1307
1532
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1533
+ #
1534
+ # @example Basic example
1535
+ # require "google/cloud/compute/v1"
1536
+ #
1537
+ # # Create a client object. The client can be reused for multiple calls.
1538
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1539
+ #
1540
+ # # Create a request. To set request fields, pass in keyword arguments.
1541
+ # request = Google::Cloud::Compute::V1::PatchPerInstanceConfigsInstanceGroupManagerRequest.new
1542
+ #
1543
+ # # Call the patch_per_instance_configs method.
1544
+ # result = client.patch_per_instance_configs request
1545
+ #
1546
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1547
+ # p result
1548
+ #
1308
1549
  def patch_per_instance_configs request, options = nil
1309
1550
  raise ::ArgumentError, "request must be provided" if request.nil?
1310
1551
 
@@ -1384,6 +1625,22 @@ module Google
1384
1625
  # @return [::Gapic::GenericLRO::Operation]
1385
1626
  #
1386
1627
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1628
+ #
1629
+ # @example Basic example
1630
+ # require "google/cloud/compute/v1"
1631
+ #
1632
+ # # Create a client object. The client can be reused for multiple calls.
1633
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1634
+ #
1635
+ # # Create a request. To set request fields, pass in keyword arguments.
1636
+ # request = Google::Cloud::Compute::V1::RecreateInstancesInstanceGroupManagerRequest.new
1637
+ #
1638
+ # # Call the recreate_instances method.
1639
+ # result = client.recreate_instances request
1640
+ #
1641
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1642
+ # p result
1643
+ #
1387
1644
  def recreate_instances request, options = nil
1388
1645
  raise ::ArgumentError, "request must be provided" if request.nil?
1389
1646
 
@@ -1463,6 +1720,22 @@ module Google
1463
1720
  # @return [::Gapic::GenericLRO::Operation]
1464
1721
  #
1465
1722
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1723
+ #
1724
+ # @example Basic example
1725
+ # require "google/cloud/compute/v1"
1726
+ #
1727
+ # # Create a client object. The client can be reused for multiple calls.
1728
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1729
+ #
1730
+ # # Create a request. To set request fields, pass in keyword arguments.
1731
+ # request = Google::Cloud::Compute::V1::ResizeInstanceGroupManagerRequest.new
1732
+ #
1733
+ # # Call the resize method.
1734
+ # result = client.resize request
1735
+ #
1736
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1737
+ # p result
1738
+ #
1466
1739
  def resize request, options = nil
1467
1740
  raise ::ArgumentError, "request must be provided" if request.nil?
1468
1741
 
@@ -1542,6 +1815,22 @@ module Google
1542
1815
  # @return [::Gapic::GenericLRO::Operation]
1543
1816
  #
1544
1817
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1818
+ #
1819
+ # @example Basic example
1820
+ # require "google/cloud/compute/v1"
1821
+ #
1822
+ # # Create a client object. The client can be reused for multiple calls.
1823
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1824
+ #
1825
+ # # Create a request. To set request fields, pass in keyword arguments.
1826
+ # request = Google::Cloud::Compute::V1::SetInstanceTemplateInstanceGroupManagerRequest.new
1827
+ #
1828
+ # # Call the set_instance_template method.
1829
+ # result = client.set_instance_template request
1830
+ #
1831
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1832
+ # p result
1833
+ #
1545
1834
  def set_instance_template request, options = nil
1546
1835
  raise ::ArgumentError, "request must be provided" if request.nil?
1547
1836
 
@@ -1621,6 +1910,22 @@ module Google
1621
1910
  # @return [::Gapic::GenericLRO::Operation]
1622
1911
  #
1623
1912
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1913
+ #
1914
+ # @example Basic example
1915
+ # require "google/cloud/compute/v1"
1916
+ #
1917
+ # # Create a client object. The client can be reused for multiple calls.
1918
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
1919
+ #
1920
+ # # Create a request. To set request fields, pass in keyword arguments.
1921
+ # request = Google::Cloud::Compute::V1::SetTargetPoolsInstanceGroupManagerRequest.new
1922
+ #
1923
+ # # Call the set_target_pools method.
1924
+ # result = client.set_target_pools request
1925
+ #
1926
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1927
+ # p result
1928
+ #
1624
1929
  def set_target_pools request, options = nil
1625
1930
  raise ::ArgumentError, "request must be provided" if request.nil?
1626
1931
 
@@ -1700,6 +2005,22 @@ module Google
1700
2005
  # @return [::Gapic::GenericLRO::Operation]
1701
2006
  #
1702
2007
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
2008
+ #
2009
+ # @example Basic example
2010
+ # require "google/cloud/compute/v1"
2011
+ #
2012
+ # # Create a client object. The client can be reused for multiple calls.
2013
+ # client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
2014
+ #
2015
+ # # Create a request. To set request fields, pass in keyword arguments.
2016
+ # request = Google::Cloud::Compute::V1::UpdatePerInstanceConfigsInstanceGroupManagerRequest.new
2017
+ #
2018
+ # # Call the update_per_instance_configs method.
2019
+ # result = client.update_per_instance_configs request
2020
+ #
2021
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
2022
+ # p result
2023
+ #
1703
2024
  def update_per_instance_configs request, options = nil
1704
2025
  raise ::ArgumentError, "request must be provided" if request.nil?
1705
2026