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
@@ -229,6 +229,22 @@ module Google
229
229
  # @return [::Gapic::GenericLRO::Operation]
230
230
  #
231
231
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
232
+ #
233
+ # @example Basic example
234
+ # require "google/cloud/compute/v1"
235
+ #
236
+ # # Create a client object. The client can be reused for multiple calls.
237
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
238
+ #
239
+ # # Create a request. To set request fields, pass in keyword arguments.
240
+ # request = Google::Cloud::Compute::V1::AddAssociationNetworkFirewallPolicyRequest.new
241
+ #
242
+ # # Call the add_association method.
243
+ # result = client.add_association request
244
+ #
245
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
246
+ # p result
247
+ #
232
248
  def add_association request, options = nil
233
249
  raise ::ArgumentError, "request must be provided" if request.nil?
234
250
 
@@ -309,6 +325,22 @@ module Google
309
325
  # @return [::Gapic::GenericLRO::Operation]
310
326
  #
311
327
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
328
+ #
329
+ # @example Basic example
330
+ # require "google/cloud/compute/v1"
331
+ #
332
+ # # Create a client object. The client can be reused for multiple calls.
333
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
334
+ #
335
+ # # Create a request. To set request fields, pass in keyword arguments.
336
+ # request = Google::Cloud::Compute::V1::AddRuleNetworkFirewallPolicyRequest.new
337
+ #
338
+ # # Call the add_rule method.
339
+ # result = client.add_rule request
340
+ #
341
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
342
+ # p result
343
+ #
312
344
  def add_rule request, options = nil
313
345
  raise ::ArgumentError, "request must be provided" if request.nil?
314
346
 
@@ -385,6 +417,22 @@ module Google
385
417
  # @return [::Gapic::GenericLRO::Operation]
386
418
  #
387
419
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
420
+ #
421
+ # @example Basic example
422
+ # require "google/cloud/compute/v1"
423
+ #
424
+ # # Create a client object. The client can be reused for multiple calls.
425
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
426
+ #
427
+ # # Create a request. To set request fields, pass in keyword arguments.
428
+ # request = Google::Cloud::Compute::V1::CloneRulesNetworkFirewallPolicyRequest.new
429
+ #
430
+ # # Call the clone_rules method.
431
+ # result = client.clone_rules request
432
+ #
433
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
434
+ # p result
435
+ #
388
436
  def clone_rules request, options = nil
389
437
  raise ::ArgumentError, "request must be provided" if request.nil?
390
438
 
@@ -459,6 +507,22 @@ module Google
459
507
  # @return [::Gapic::GenericLRO::Operation]
460
508
  #
461
509
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
510
+ #
511
+ # @example Basic example
512
+ # require "google/cloud/compute/v1"
513
+ #
514
+ # # Create a client object. The client can be reused for multiple calls.
515
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
516
+ #
517
+ # # Create a request. To set request fields, pass in keyword arguments.
518
+ # request = Google::Cloud::Compute::V1::DeleteNetworkFirewallPolicyRequest.new
519
+ #
520
+ # # Call the delete method.
521
+ # result = client.delete request
522
+ #
523
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
524
+ # p result
525
+ #
462
526
  def delete request, options = nil
463
527
  raise ::ArgumentError, "request must be provided" if request.nil?
464
528
 
@@ -531,6 +595,22 @@ module Google
531
595
  # @return [::Google::Cloud::Compute::V1::FirewallPolicy]
532
596
  #
533
597
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
598
+ #
599
+ # @example Basic example
600
+ # require "google/cloud/compute/v1"
601
+ #
602
+ # # Create a client object. The client can be reused for multiple calls.
603
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
604
+ #
605
+ # # Create a request. To set request fields, pass in keyword arguments.
606
+ # request = Google::Cloud::Compute::V1::GetNetworkFirewallPolicyRequest.new
607
+ #
608
+ # # Call the get method.
609
+ # result = client.get request
610
+ #
611
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicy.
612
+ # p result
613
+ #
534
614
  def get request, options = nil
535
615
  raise ::ArgumentError, "request must be provided" if request.nil?
536
616
 
@@ -597,6 +677,22 @@ module Google
597
677
  # @return [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
598
678
  #
599
679
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
680
+ #
681
+ # @example Basic example
682
+ # require "google/cloud/compute/v1"
683
+ #
684
+ # # Create a client object. The client can be reused for multiple calls.
685
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
686
+ #
687
+ # # Create a request. To set request fields, pass in keyword arguments.
688
+ # request = Google::Cloud::Compute::V1::GetAssociationNetworkFirewallPolicyRequest.new
689
+ #
690
+ # # Call the get_association method.
691
+ # result = client.get_association request
692
+ #
693
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyAssociation.
694
+ # p result
695
+ #
600
696
  def get_association request, options = nil
601
697
  raise ::ArgumentError, "request must be provided" if request.nil?
602
698
 
@@ -663,6 +759,22 @@ module Google
663
759
  # @return [::Google::Cloud::Compute::V1::Policy]
664
760
  #
665
761
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
762
+ #
763
+ # @example Basic example
764
+ # require "google/cloud/compute/v1"
765
+ #
766
+ # # Create a client object. The client can be reused for multiple calls.
767
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
768
+ #
769
+ # # Create a request. To set request fields, pass in keyword arguments.
770
+ # request = Google::Cloud::Compute::V1::GetIamPolicyNetworkFirewallPolicyRequest.new
771
+ #
772
+ # # Call the get_iam_policy method.
773
+ # result = client.get_iam_policy request
774
+ #
775
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
776
+ # p result
777
+ #
666
778
  def get_iam_policy request, options = nil
667
779
  raise ::ArgumentError, "request must be provided" if request.nil?
668
780
 
@@ -729,6 +841,22 @@ module Google
729
841
  # @return [::Google::Cloud::Compute::V1::FirewallPolicyRule]
730
842
  #
731
843
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
844
+ #
845
+ # @example Basic example
846
+ # require "google/cloud/compute/v1"
847
+ #
848
+ # # Create a client object. The client can be reused for multiple calls.
849
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
850
+ #
851
+ # # Create a request. To set request fields, pass in keyword arguments.
852
+ # request = Google::Cloud::Compute::V1::GetRuleNetworkFirewallPolicyRequest.new
853
+ #
854
+ # # Call the get_rule method.
855
+ # result = client.get_rule request
856
+ #
857
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyRule.
858
+ # p result
859
+ #
732
860
  def get_rule request, options = nil
733
861
  raise ::ArgumentError, "request must be provided" if request.nil?
734
862
 
@@ -795,6 +923,22 @@ module Google
795
923
  # @return [::Gapic::GenericLRO::Operation]
796
924
  #
797
925
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
926
+ #
927
+ # @example Basic example
928
+ # require "google/cloud/compute/v1"
929
+ #
930
+ # # Create a client object. The client can be reused for multiple calls.
931
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
932
+ #
933
+ # # Create a request. To set request fields, pass in keyword arguments.
934
+ # request = Google::Cloud::Compute::V1::InsertNetworkFirewallPolicyRequest.new
935
+ #
936
+ # # Call the insert method.
937
+ # result = client.insert request
938
+ #
939
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
940
+ # p result
941
+ #
798
942
  def insert request, options = nil
799
943
  raise ::ArgumentError, "request must be provided" if request.nil?
800
944
 
@@ -857,7 +1001,7 @@ module Google
857
1001
  # the default parameter values, pass an empty Hash as a request object (see above).
858
1002
  #
859
1003
  # @param filter [::String]
860
- # 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`.
1004
+ # 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.
861
1005
  # @param max_results [::Integer]
862
1006
  # 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`)
863
1007
  # @param order_by [::String]
@@ -875,6 +1019,22 @@ module Google
875
1019
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
876
1020
  #
877
1021
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1022
+ #
1023
+ # @example Basic example
1024
+ # require "google/cloud/compute/v1"
1025
+ #
1026
+ # # Create a client object. The client can be reused for multiple calls.
1027
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
1028
+ #
1029
+ # # Create a request. To set request fields, pass in keyword arguments.
1030
+ # request = Google::Cloud::Compute::V1::ListNetworkFirewallPoliciesRequest.new
1031
+ #
1032
+ # # Call the list method.
1033
+ # result = client.list request
1034
+ #
1035
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyList.
1036
+ # p result
1037
+ #
878
1038
  def list request, options = nil
879
1039
  raise ::ArgumentError, "request must be provided" if request.nil?
880
1040
 
@@ -944,6 +1104,22 @@ module Google
944
1104
  # @return [::Gapic::GenericLRO::Operation]
945
1105
  #
946
1106
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1107
+ #
1108
+ # @example Basic example
1109
+ # require "google/cloud/compute/v1"
1110
+ #
1111
+ # # Create a client object. The client can be reused for multiple calls.
1112
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
1113
+ #
1114
+ # # Create a request. To set request fields, pass in keyword arguments.
1115
+ # request = Google::Cloud::Compute::V1::PatchNetworkFirewallPolicyRequest.new
1116
+ #
1117
+ # # Call the patch method.
1118
+ # result = client.patch request
1119
+ #
1120
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1121
+ # p result
1122
+ #
947
1123
  def patch request, options = nil
948
1124
  raise ::ArgumentError, "request must be provided" if request.nil?
949
1125
 
@@ -1022,6 +1198,22 @@ module Google
1022
1198
  # @return [::Gapic::GenericLRO::Operation]
1023
1199
  #
1024
1200
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1201
+ #
1202
+ # @example Basic example
1203
+ # require "google/cloud/compute/v1"
1204
+ #
1205
+ # # Create a client object. The client can be reused for multiple calls.
1206
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
1207
+ #
1208
+ # # Create a request. To set request fields, pass in keyword arguments.
1209
+ # request = Google::Cloud::Compute::V1::PatchRuleNetworkFirewallPolicyRequest.new
1210
+ #
1211
+ # # Call the patch_rule method.
1212
+ # result = client.patch_rule request
1213
+ #
1214
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1215
+ # p result
1216
+ #
1025
1217
  def patch_rule request, options = nil
1026
1218
  raise ::ArgumentError, "request must be provided" if request.nil?
1027
1219
 
@@ -1098,6 +1290,22 @@ module Google
1098
1290
  # @return [::Gapic::GenericLRO::Operation]
1099
1291
  #
1100
1292
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1293
+ #
1294
+ # @example Basic example
1295
+ # require "google/cloud/compute/v1"
1296
+ #
1297
+ # # Create a client object. The client can be reused for multiple calls.
1298
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
1299
+ #
1300
+ # # Create a request. To set request fields, pass in keyword arguments.
1301
+ # request = Google::Cloud::Compute::V1::RemoveAssociationNetworkFirewallPolicyRequest.new
1302
+ #
1303
+ # # Call the remove_association method.
1304
+ # result = client.remove_association request
1305
+ #
1306
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1307
+ # p result
1308
+ #
1101
1309
  def remove_association request, options = nil
1102
1310
  raise ::ArgumentError, "request must be provided" if request.nil?
1103
1311
 
@@ -1174,6 +1382,22 @@ module Google
1174
1382
  # @return [::Gapic::GenericLRO::Operation]
1175
1383
  #
1176
1384
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1385
+ #
1386
+ # @example Basic example
1387
+ # require "google/cloud/compute/v1"
1388
+ #
1389
+ # # Create a client object. The client can be reused for multiple calls.
1390
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
1391
+ #
1392
+ # # Create a request. To set request fields, pass in keyword arguments.
1393
+ # request = Google::Cloud::Compute::V1::RemoveRuleNetworkFirewallPolicyRequest.new
1394
+ #
1395
+ # # Call the remove_rule method.
1396
+ # result = client.remove_rule request
1397
+ #
1398
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1399
+ # p result
1400
+ #
1177
1401
  def remove_rule request, options = nil
1178
1402
  raise ::ArgumentError, "request must be provided" if request.nil?
1179
1403
 
@@ -1248,6 +1472,22 @@ module Google
1248
1472
  # @return [::Google::Cloud::Compute::V1::Policy]
1249
1473
  #
1250
1474
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1475
+ #
1476
+ # @example Basic example
1477
+ # require "google/cloud/compute/v1"
1478
+ #
1479
+ # # Create a client object. The client can be reused for multiple calls.
1480
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
1481
+ #
1482
+ # # Create a request. To set request fields, pass in keyword arguments.
1483
+ # request = Google::Cloud::Compute::V1::SetIamPolicyNetworkFirewallPolicyRequest.new
1484
+ #
1485
+ # # Call the set_iam_policy method.
1486
+ # result = client.set_iam_policy request
1487
+ #
1488
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
1489
+ # p result
1490
+ #
1251
1491
  def set_iam_policy request, options = nil
1252
1492
  raise ::ArgumentError, "request must be provided" if request.nil?
1253
1493
 
@@ -1314,6 +1554,22 @@ module Google
1314
1554
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1315
1555
  #
1316
1556
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1557
+ #
1558
+ # @example Basic example
1559
+ # require "google/cloud/compute/v1"
1560
+ #
1561
+ # # Create a client object. The client can be reused for multiple calls.
1562
+ # client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
1563
+ #
1564
+ # # Create a request. To set request fields, pass in keyword arguments.
1565
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsNetworkFirewallPolicyRequest.new
1566
+ #
1567
+ # # Call the test_iam_permissions method.
1568
+ # result = client.test_iam_permissions request
1569
+ #
1570
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1571
+ # p result
1572
+ #
1317
1573
  def test_iam_permissions request, options = nil
1318
1574
  raise ::ArgumentError, "request must be provided" if request.nil?
1319
1575
 
@@ -214,6 +214,22 @@ module Google
214
214
  # @return [::Gapic::GenericLRO::Operation]
215
215
  #
216
216
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
217
+ #
218
+ # @example Basic example
219
+ # require "google/cloud/compute/v1"
220
+ #
221
+ # # Create a client object. The client can be reused for multiple calls.
222
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
223
+ #
224
+ # # Create a request. To set request fields, pass in keyword arguments.
225
+ # request = Google::Cloud::Compute::V1::AddPeeringNetworkRequest.new
226
+ #
227
+ # # Call the add_peering method.
228
+ # result = client.add_peering request
229
+ #
230
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
231
+ # p result
232
+ #
217
233
  def add_peering request, options = nil
218
234
  raise ::ArgumentError, "request must be provided" if request.nil?
219
235
 
@@ -288,6 +304,22 @@ module Google
288
304
  # @return [::Gapic::GenericLRO::Operation]
289
305
  #
290
306
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
307
+ #
308
+ # @example Basic example
309
+ # require "google/cloud/compute/v1"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Cloud::Compute::V1::DeleteNetworkRequest.new
316
+ #
317
+ # # Call the delete method.
318
+ # result = client.delete request
319
+ #
320
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
321
+ # p result
322
+ #
291
323
  def delete request, options = nil
292
324
  raise ::ArgumentError, "request must be provided" if request.nil?
293
325
 
@@ -360,6 +392,22 @@ module Google
360
392
  # @return [::Google::Cloud::Compute::V1::Network]
361
393
  #
362
394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
395
+ #
396
+ # @example Basic example
397
+ # require "google/cloud/compute/v1"
398
+ #
399
+ # # Create a client object. The client can be reused for multiple calls.
400
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::Compute::V1::GetNetworkRequest.new
404
+ #
405
+ # # Call the get method.
406
+ # result = client.get request
407
+ #
408
+ # # The returned object is of type Google::Cloud::Compute::V1::Network.
409
+ # p result
410
+ #
363
411
  def get request, options = nil
364
412
  raise ::ArgumentError, "request must be provided" if request.nil?
365
413
 
@@ -424,6 +472,22 @@ module Google
424
472
  # @return [::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse]
425
473
  #
426
474
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
475
+ #
476
+ # @example Basic example
477
+ # require "google/cloud/compute/v1"
478
+ #
479
+ # # Create a client object. The client can be reused for multiple calls.
480
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
481
+ #
482
+ # # Create a request. To set request fields, pass in keyword arguments.
483
+ # request = Google::Cloud::Compute::V1::GetEffectiveFirewallsNetworkRequest.new
484
+ #
485
+ # # Call the get_effective_firewalls method.
486
+ # result = client.get_effective_firewalls request
487
+ #
488
+ # # The returned object is of type Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse.
489
+ # p result
490
+ #
427
491
  def get_effective_firewalls request, options = nil
428
492
  raise ::ArgumentError, "request must be provided" if request.nil?
429
493
 
@@ -490,6 +554,22 @@ module Google
490
554
  # @return [::Gapic::GenericLRO::Operation]
491
555
  #
492
556
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
557
+ #
558
+ # @example Basic example
559
+ # require "google/cloud/compute/v1"
560
+ #
561
+ # # Create a client object. The client can be reused for multiple calls.
562
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
563
+ #
564
+ # # Create a request. To set request fields, pass in keyword arguments.
565
+ # request = Google::Cloud::Compute::V1::InsertNetworkRequest.new
566
+ #
567
+ # # Call the insert method.
568
+ # result = client.insert request
569
+ #
570
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
571
+ # p result
572
+ #
493
573
  def insert request, options = nil
494
574
  raise ::ArgumentError, "request must be provided" if request.nil?
495
575
 
@@ -552,7 +632,7 @@ module Google
552
632
  # the default parameter values, pass an empty Hash as a request object (see above).
553
633
  #
554
634
  # @param filter [::String]
555
- # 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`.
635
+ # 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.
556
636
  # @param max_results [::Integer]
557
637
  # 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`)
558
638
  # @param order_by [::String]
@@ -570,6 +650,22 @@ module Google
570
650
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Network>]
571
651
  #
572
652
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
653
+ #
654
+ # @example Basic example
655
+ # require "google/cloud/compute/v1"
656
+ #
657
+ # # Create a client object. The client can be reused for multiple calls.
658
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
659
+ #
660
+ # # Create a request. To set request fields, pass in keyword arguments.
661
+ # request = Google::Cloud::Compute::V1::ListNetworksRequest.new
662
+ #
663
+ # # Call the list method.
664
+ # result = client.list request
665
+ #
666
+ # # The returned object is of type Google::Cloud::Compute::V1::NetworkList.
667
+ # p result
668
+ #
573
669
  def list request, options = nil
574
670
  raise ::ArgumentError, "request must be provided" if request.nil?
575
671
 
@@ -628,7 +724,7 @@ module Google
628
724
  # The direction of the exchanged routes.
629
725
  # Check the Direction enum for the list of possible values.
630
726
  # @param filter [::String]
631
- # 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`.
727
+ # 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.
632
728
  # @param max_results [::Integer]
633
729
  # 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`)
634
730
  # @param network [::String]
@@ -652,6 +748,22 @@ module Google
652
748
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ExchangedPeeringRoute>]
653
749
  #
654
750
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
751
+ #
752
+ # @example Basic example
753
+ # require "google/cloud/compute/v1"
754
+ #
755
+ # # Create a client object. The client can be reused for multiple calls.
756
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
757
+ #
758
+ # # Create a request. To set request fields, pass in keyword arguments.
759
+ # request = Google::Cloud::Compute::V1::ListPeeringRoutesNetworksRequest.new
760
+ #
761
+ # # Call the list_peering_routes method.
762
+ # result = client.list_peering_routes request
763
+ #
764
+ # # The returned object is of type Google::Cloud::Compute::V1::ExchangedPeeringRoutesList.
765
+ # p result
766
+ #
655
767
  def list_peering_routes request, options = nil
656
768
  raise ::ArgumentError, "request must be provided" if request.nil?
657
769
 
@@ -721,6 +833,22 @@ module Google
721
833
  # @return [::Gapic::GenericLRO::Operation]
722
834
  #
723
835
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
836
+ #
837
+ # @example Basic example
838
+ # require "google/cloud/compute/v1"
839
+ #
840
+ # # Create a client object. The client can be reused for multiple calls.
841
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
842
+ #
843
+ # # Create a request. To set request fields, pass in keyword arguments.
844
+ # request = Google::Cloud::Compute::V1::PatchNetworkRequest.new
845
+ #
846
+ # # Call the patch method.
847
+ # result = client.patch request
848
+ #
849
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
850
+ # p result
851
+ #
724
852
  def patch request, options = nil
725
853
  raise ::ArgumentError, "request must be provided" if request.nil?
726
854
 
@@ -797,6 +925,22 @@ module Google
797
925
  # @return [::Gapic::GenericLRO::Operation]
798
926
  #
799
927
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
928
+ #
929
+ # @example Basic example
930
+ # require "google/cloud/compute/v1"
931
+ #
932
+ # # Create a client object. The client can be reused for multiple calls.
933
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
934
+ #
935
+ # # Create a request. To set request fields, pass in keyword arguments.
936
+ # request = Google::Cloud::Compute::V1::RemovePeeringNetworkRequest.new
937
+ #
938
+ # # Call the remove_peering method.
939
+ # result = client.remove_peering request
940
+ #
941
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
942
+ # p result
943
+ #
800
944
  def remove_peering request, options = nil
801
945
  raise ::ArgumentError, "request must be provided" if request.nil?
802
946
 
@@ -871,6 +1015,22 @@ module Google
871
1015
  # @return [::Gapic::GenericLRO::Operation]
872
1016
  #
873
1017
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1018
+ #
1019
+ # @example Basic example
1020
+ # require "google/cloud/compute/v1"
1021
+ #
1022
+ # # Create a client object. The client can be reused for multiple calls.
1023
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
1024
+ #
1025
+ # # Create a request. To set request fields, pass in keyword arguments.
1026
+ # request = Google::Cloud::Compute::V1::SwitchToCustomModeNetworkRequest.new
1027
+ #
1028
+ # # Call the switch_to_custom_mode method.
1029
+ # result = client.switch_to_custom_mode request
1030
+ #
1031
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1032
+ # p result
1033
+ #
874
1034
  def switch_to_custom_mode request, options = nil
875
1035
  raise ::ArgumentError, "request must be provided" if request.nil?
876
1036
 
@@ -947,6 +1107,22 @@ module Google
947
1107
  # @return [::Gapic::GenericLRO::Operation]
948
1108
  #
949
1109
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1110
+ #
1111
+ # @example Basic example
1112
+ # require "google/cloud/compute/v1"
1113
+ #
1114
+ # # Create a client object. The client can be reused for multiple calls.
1115
+ # client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
1116
+ #
1117
+ # # Create a request. To set request fields, pass in keyword arguments.
1118
+ # request = Google::Cloud::Compute::V1::UpdatePeeringNetworkRequest.new
1119
+ #
1120
+ # # Call the update_peering method.
1121
+ # result = client.update_peering request
1122
+ #
1123
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1124
+ # p result
1125
+ #
950
1126
  def update_peering request, options = nil
951
1127
  raise ::ArgumentError, "request must be provided" if request.nil?
952
1128