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
@@ -219,6 +219,22 @@ module Google
219
219
  # @return [::Gapic::GenericLRO::Operation]
220
220
  #
221
221
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
222
+ #
223
+ # @example Basic example
224
+ # require "google/cloud/compute/v1"
225
+ #
226
+ # # Create a client object. The client can be reused for multiple calls.
227
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
228
+ #
229
+ # # Create a request. To set request fields, pass in keyword arguments.
230
+ # request = Google::Cloud::Compute::V1::AddRuleSecurityPolicyRequest.new
231
+ #
232
+ # # Call the add_rule method.
233
+ # result = client.add_rule request
234
+ #
235
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
236
+ # p result
237
+ #
222
238
  def add_rule request, options = nil
223
239
  raise ::ArgumentError, "request must be provided" if request.nil?
224
240
 
@@ -275,13 +291,13 @@ module Google
275
291
  # @param options [::Gapic::CallOptions, ::Hash]
276
292
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
277
293
  #
278
- # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
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, service_project_number: nil)
279
295
  # Pass arguments to `aggregated_list` via keyword arguments. Note that at
280
296
  # least one keyword argument is required. To specify no parameters, or to keep all
281
297
  # the default parameter values, pass an empty Hash as a request object (see above).
282
298
  #
283
299
  # @param filter [::String]
284
- # 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`.
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. 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.
285
301
  # @param include_all_scopes [::Boolean]
286
302
  # 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.
287
303
  # @param max_results [::Integer]
@@ -294,6 +310,7 @@ module Google
294
310
  # Name of the project scoping this request.
295
311
  # @param return_partial_success [::Boolean]
296
312
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
313
+ # @param service_project_number [::Integer]
297
314
  # @yield [result, operation] Access the result along with the TransportOperation object
298
315
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SecurityPoliciesScopedList>]
299
316
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -301,6 +318,22 @@ module Google
301
318
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SecurityPoliciesScopedList>]
302
319
  #
303
320
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
321
+ #
322
+ # @example Basic example
323
+ # require "google/cloud/compute/v1"
324
+ #
325
+ # # Create a client object. The client can be reused for multiple calls.
326
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
327
+ #
328
+ # # Create a request. To set request fields, pass in keyword arguments.
329
+ # request = Google::Cloud::Compute::V1::AggregatedListSecurityPoliciesRequest.new
330
+ #
331
+ # # Call the aggregated_list method.
332
+ # result = client.aggregated_list request
333
+ #
334
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPoliciesAggregatedList.
335
+ # p result
336
+ #
304
337
  def aggregated_list request, options = nil
305
338
  raise ::ArgumentError, "request must be provided" if request.nil?
306
339
 
@@ -368,6 +401,22 @@ module Google
368
401
  # @return [::Gapic::GenericLRO::Operation]
369
402
  #
370
403
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
404
+ #
405
+ # @example Basic example
406
+ # require "google/cloud/compute/v1"
407
+ #
408
+ # # Create a client object. The client can be reused for multiple calls.
409
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
410
+ #
411
+ # # Create a request. To set request fields, pass in keyword arguments.
412
+ # request = Google::Cloud::Compute::V1::DeleteSecurityPolicyRequest.new
413
+ #
414
+ # # Call the delete method.
415
+ # result = client.delete request
416
+ #
417
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
418
+ # p result
419
+ #
371
420
  def delete request, options = nil
372
421
  raise ::ArgumentError, "request must be provided" if request.nil?
373
422
 
@@ -440,6 +489,22 @@ module Google
440
489
  # @return [::Google::Cloud::Compute::V1::SecurityPolicy]
441
490
  #
442
491
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
492
+ #
493
+ # @example Basic example
494
+ # require "google/cloud/compute/v1"
495
+ #
496
+ # # Create a client object. The client can be reused for multiple calls.
497
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
498
+ #
499
+ # # Create a request. To set request fields, pass in keyword arguments.
500
+ # request = Google::Cloud::Compute::V1::GetSecurityPolicyRequest.new
501
+ #
502
+ # # Call the get method.
503
+ # result = client.get request
504
+ #
505
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicy.
506
+ # p result
507
+ #
443
508
  def get request, options = nil
444
509
  raise ::ArgumentError, "request must be provided" if request.nil?
445
510
 
@@ -506,6 +571,22 @@ module Google
506
571
  # @return [::Google::Cloud::Compute::V1::SecurityPolicyRule]
507
572
  #
508
573
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
574
+ #
575
+ # @example Basic example
576
+ # require "google/cloud/compute/v1"
577
+ #
578
+ # # Create a client object. The client can be reused for multiple calls.
579
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
580
+ #
581
+ # # Create a request. To set request fields, pass in keyword arguments.
582
+ # request = Google::Cloud::Compute::V1::GetRuleSecurityPolicyRequest.new
583
+ #
584
+ # # Call the get_rule method.
585
+ # result = client.get_rule request
586
+ #
587
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicyRule.
588
+ # p result
589
+ #
509
590
  def get_rule request, options = nil
510
591
  raise ::ArgumentError, "request must be provided" if request.nil?
511
592
 
@@ -574,6 +655,22 @@ module Google
574
655
  # @return [::Gapic::GenericLRO::Operation]
575
656
  #
576
657
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
658
+ #
659
+ # @example Basic example
660
+ # require "google/cloud/compute/v1"
661
+ #
662
+ # # Create a client object. The client can be reused for multiple calls.
663
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
664
+ #
665
+ # # Create a request. To set request fields, pass in keyword arguments.
666
+ # request = Google::Cloud::Compute::V1::InsertSecurityPolicyRequest.new
667
+ #
668
+ # # Call the insert method.
669
+ # result = client.insert request
670
+ #
671
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
672
+ # p result
673
+ #
577
674
  def insert request, options = nil
578
675
  raise ::ArgumentError, "request must be provided" if request.nil?
579
676
 
@@ -636,7 +733,7 @@ module Google
636
733
  # the default parameter values, pass an empty Hash as a request object (see above).
637
734
  #
638
735
  # @param filter [::String]
639
- # 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`.
736
+ # 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.
640
737
  # @param max_results [::Integer]
641
738
  # 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`)
642
739
  # @param order_by [::String]
@@ -654,6 +751,22 @@ module Google
654
751
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SecurityPolicy>]
655
752
  #
656
753
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
754
+ #
755
+ # @example Basic example
756
+ # require "google/cloud/compute/v1"
757
+ #
758
+ # # Create a client object. The client can be reused for multiple calls.
759
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
760
+ #
761
+ # # Create a request. To set request fields, pass in keyword arguments.
762
+ # request = Google::Cloud::Compute::V1::ListSecurityPoliciesRequest.new
763
+ #
764
+ # # Call the list method.
765
+ # result = client.list request
766
+ #
767
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicyList.
768
+ # p result
769
+ #
657
770
  def list request, options = nil
658
771
  raise ::ArgumentError, "request must be provided" if request.nil?
659
772
 
@@ -709,7 +822,7 @@ module Google
709
822
  # the default parameter values, pass an empty Hash as a request object (see above).
710
823
  #
711
824
  # @param filter [::String]
712
- # 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`.
825
+ # 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.
713
826
  # @param max_results [::Integer]
714
827
  # 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`)
715
828
  # @param order_by [::String]
@@ -727,6 +840,22 @@ module Google
727
840
  # @return [::Google::Cloud::Compute::V1::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
728
841
  #
729
842
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
843
+ #
844
+ # @example Basic example
845
+ # require "google/cloud/compute/v1"
846
+ #
847
+ # # Create a client object. The client can be reused for multiple calls.
848
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
849
+ #
850
+ # # Create a request. To set request fields, pass in keyword arguments.
851
+ # request = Google::Cloud::Compute::V1::ListPreconfiguredExpressionSetsSecurityPoliciesRequest.new
852
+ #
853
+ # # Call the list_preconfigured_expression_sets method.
854
+ # result = client.list_preconfigured_expression_sets request
855
+ #
856
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPoliciesListPreconfiguredExpressionSetsResponse.
857
+ # p result
858
+ #
730
859
  def list_preconfigured_expression_sets request, options = nil
731
860
  raise ::ArgumentError, "request must be provided" if request.nil?
732
861
 
@@ -775,7 +904,7 @@ module Google
775
904
  # @param options [::Gapic::CallOptions, ::Hash]
776
905
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
777
906
  #
778
- # @overload patch(project: nil, request_id: nil, security_policy: nil, security_policy_resource: nil)
907
+ # @overload patch(project: nil, request_id: nil, security_policy: nil, security_policy_resource: nil, update_mask: nil)
779
908
  # Pass arguments to `patch` via keyword arguments. Note that at
780
909
  # least one keyword argument is required. To specify no parameters, or to keep all
781
910
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -788,6 +917,8 @@ module Google
788
917
  # Name of the security policy to update.
789
918
  # @param security_policy_resource [::Google::Cloud::Compute::V1::SecurityPolicy, ::Hash]
790
919
  # The body resource for this request
920
+ # @param update_mask [::String]
921
+ # Indicates fields to be cleared as part of this request.
791
922
  # @yield [result, operation] Access the result along with the TransportOperation object
792
923
  # @yieldparam result [::Gapic::GenericLRO::Operation]
793
924
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -795,6 +926,22 @@ module Google
795
926
  # @return [::Gapic::GenericLRO::Operation]
796
927
  #
797
928
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
929
+ #
930
+ # @example Basic example
931
+ # require "google/cloud/compute/v1"
932
+ #
933
+ # # Create a client object. The client can be reused for multiple calls.
934
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
935
+ #
936
+ # # Create a request. To set request fields, pass in keyword arguments.
937
+ # request = Google::Cloud::Compute::V1::PatchSecurityPolicyRequest.new
938
+ #
939
+ # # Call the patch method.
940
+ # result = client.patch request
941
+ #
942
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
943
+ # p result
944
+ #
798
945
  def patch request, options = nil
799
946
  raise ::ArgumentError, "request must be provided" if request.nil?
800
947
 
@@ -851,7 +998,7 @@ module Google
851
998
  # @param options [::Gapic::CallOptions, ::Hash]
852
999
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
853
1000
  #
854
- # @overload patch_rule(priority: nil, project: nil, security_policy: nil, security_policy_rule_resource: nil, validate_only: nil)
1001
+ # @overload patch_rule(priority: nil, project: nil, security_policy: nil, security_policy_rule_resource: nil, update_mask: nil, validate_only: nil)
855
1002
  # Pass arguments to `patch_rule` via keyword arguments. Note that at
856
1003
  # least one keyword argument is required. To specify no parameters, or to keep all
857
1004
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -864,6 +1011,8 @@ module Google
864
1011
  # Name of the security policy to update.
865
1012
  # @param security_policy_rule_resource [::Google::Cloud::Compute::V1::SecurityPolicyRule, ::Hash]
866
1013
  # The body resource for this request
1014
+ # @param update_mask [::String]
1015
+ # Indicates fields to be cleared as part of this request.
867
1016
  # @param validate_only [::Boolean]
868
1017
  # If true, the request will not be committed.
869
1018
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -873,6 +1022,22 @@ module Google
873
1022
  # @return [::Gapic::GenericLRO::Operation]
874
1023
  #
875
1024
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1025
+ #
1026
+ # @example Basic example
1027
+ # require "google/cloud/compute/v1"
1028
+ #
1029
+ # # Create a client object. The client can be reused for multiple calls.
1030
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
1031
+ #
1032
+ # # Create a request. To set request fields, pass in keyword arguments.
1033
+ # request = Google::Cloud::Compute::V1::PatchRuleSecurityPolicyRequest.new
1034
+ #
1035
+ # # Call the patch_rule method.
1036
+ # result = client.patch_rule request
1037
+ #
1038
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1039
+ # p result
1040
+ #
876
1041
  def patch_rule request, options = nil
877
1042
  raise ::ArgumentError, "request must be provided" if request.nil?
878
1043
 
@@ -947,6 +1112,22 @@ module Google
947
1112
  # @return [::Gapic::GenericLRO::Operation]
948
1113
  #
949
1114
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1115
+ #
1116
+ # @example Basic example
1117
+ # require "google/cloud/compute/v1"
1118
+ #
1119
+ # # Create a client object. The client can be reused for multiple calls.
1120
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
1121
+ #
1122
+ # # Create a request. To set request fields, pass in keyword arguments.
1123
+ # request = Google::Cloud::Compute::V1::RemoveRuleSecurityPolicyRequest.new
1124
+ #
1125
+ # # Call the remove_rule method.
1126
+ # result = client.remove_rule request
1127
+ #
1128
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1129
+ # p result
1130
+ #
950
1131
  def remove_rule request, options = nil
951
1132
  raise ::ArgumentError, "request must be provided" if request.nil?
952
1133
 
@@ -1021,6 +1202,22 @@ module Google
1021
1202
  # @return [::Gapic::GenericLRO::Operation]
1022
1203
  #
1023
1204
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1205
+ #
1206
+ # @example Basic example
1207
+ # require "google/cloud/compute/v1"
1208
+ #
1209
+ # # Create a client object. The client can be reused for multiple calls.
1210
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
1211
+ #
1212
+ # # Create a request. To set request fields, pass in keyword arguments.
1213
+ # request = Google::Cloud::Compute::V1::SetLabelsSecurityPolicyRequest.new
1214
+ #
1215
+ # # Call the set_labels method.
1216
+ # result = client.set_labels request
1217
+ #
1218
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1219
+ # p result
1220
+ #
1024
1221
  def set_labels request, options = nil
1025
1222
  raise ::ArgumentError, "request must be provided" if request.nil?
1026
1223
 
@@ -190,13 +190,13 @@ module Google
190
190
  # @param options [::Gapic::CallOptions, ::Hash]
191
191
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
192
192
  #
193
- # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
193
+ # @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)
194
194
  # Pass arguments to `aggregated_list` via keyword arguments. Note that at
195
195
  # least one keyword argument is required. To specify no parameters, or to keep all
196
196
  # the default parameter values, pass an empty Hash as a request object (see above).
197
197
  #
198
198
  # @param filter [::String]
199
- # 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`.
199
+ # 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.
200
200
  # @param include_all_scopes [::Boolean]
201
201
  # 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.
202
202
  # @param max_results [::Integer]
@@ -209,6 +209,7 @@ module Google
209
209
  # Name of the project scoping this request.
210
210
  # @param return_partial_success [::Boolean]
211
211
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
212
+ # @param service_project_number [::Integer]
212
213
  # @yield [result, operation] Access the result along with the TransportOperation object
213
214
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ServiceAttachmentsScopedList>]
214
215
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -216,6 +217,22 @@ module Google
216
217
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ServiceAttachmentsScopedList>]
217
218
  #
218
219
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
220
+ #
221
+ # @example Basic example
222
+ # require "google/cloud/compute/v1"
223
+ #
224
+ # # Create a client object. The client can be reused for multiple calls.
225
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
226
+ #
227
+ # # Create a request. To set request fields, pass in keyword arguments.
228
+ # request = Google::Cloud::Compute::V1::AggregatedListServiceAttachmentsRequest.new
229
+ #
230
+ # # Call the aggregated_list method.
231
+ # result = client.aggregated_list request
232
+ #
233
+ # # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachmentAggregatedList.
234
+ # p result
235
+ #
219
236
  def aggregated_list request, options = nil
220
237
  raise ::ArgumentError, "request must be provided" if request.nil?
221
238
 
@@ -285,6 +302,22 @@ module Google
285
302
  # @return [::Gapic::GenericLRO::Operation]
286
303
  #
287
304
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
305
+ #
306
+ # @example Basic example
307
+ # require "google/cloud/compute/v1"
308
+ #
309
+ # # Create a client object. The client can be reused for multiple calls.
310
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
311
+ #
312
+ # # Create a request. To set request fields, pass in keyword arguments.
313
+ # request = Google::Cloud::Compute::V1::DeleteServiceAttachmentRequest.new
314
+ #
315
+ # # Call the delete method.
316
+ # result = client.delete request
317
+ #
318
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
319
+ # p result
320
+ #
288
321
  def delete request, options = nil
289
322
  raise ::ArgumentError, "request must be provided" if request.nil?
290
323
 
@@ -360,6 +393,22 @@ module Google
360
393
  # @return [::Google::Cloud::Compute::V1::ServiceAttachment]
361
394
  #
362
395
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
396
+ #
397
+ # @example Basic example
398
+ # require "google/cloud/compute/v1"
399
+ #
400
+ # # Create a client object. The client can be reused for multiple calls.
401
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
402
+ #
403
+ # # Create a request. To set request fields, pass in keyword arguments.
404
+ # request = Google::Cloud::Compute::V1::GetServiceAttachmentRequest.new
405
+ #
406
+ # # Call the get method.
407
+ # result = client.get request
408
+ #
409
+ # # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachment.
410
+ # p result
411
+ #
363
412
  def get request, options = nil
364
413
  raise ::ArgumentError, "request must be provided" if request.nil?
365
414
 
@@ -428,6 +477,22 @@ module Google
428
477
  # @return [::Google::Cloud::Compute::V1::Policy]
429
478
  #
430
479
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
480
+ #
481
+ # @example Basic example
482
+ # require "google/cloud/compute/v1"
483
+ #
484
+ # # Create a client object. The client can be reused for multiple calls.
485
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
486
+ #
487
+ # # Create a request. To set request fields, pass in keyword arguments.
488
+ # request = Google::Cloud::Compute::V1::GetIamPolicyServiceAttachmentRequest.new
489
+ #
490
+ # # Call the get_iam_policy method.
491
+ # result = client.get_iam_policy request
492
+ #
493
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
494
+ # p result
495
+ #
431
496
  def get_iam_policy request, options = nil
432
497
  raise ::ArgumentError, "request must be provided" if request.nil?
433
498
 
@@ -496,6 +561,22 @@ module Google
496
561
  # @return [::Gapic::GenericLRO::Operation]
497
562
  #
498
563
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
564
+ #
565
+ # @example Basic example
566
+ # require "google/cloud/compute/v1"
567
+ #
568
+ # # Create a client object. The client can be reused for multiple calls.
569
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
570
+ #
571
+ # # Create a request. To set request fields, pass in keyword arguments.
572
+ # request = Google::Cloud::Compute::V1::InsertServiceAttachmentRequest.new
573
+ #
574
+ # # Call the insert method.
575
+ # result = client.insert request
576
+ #
577
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
578
+ # p result
579
+ #
499
580
  def insert request, options = nil
500
581
  raise ::ArgumentError, "request must be provided" if request.nil?
501
582
 
@@ -559,7 +640,7 @@ module Google
559
640
  # the default parameter values, pass an empty Hash as a request object (see above).
560
641
  #
561
642
  # @param filter [::String]
562
- # 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`.
643
+ # 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.
563
644
  # @param max_results [::Integer]
564
645
  # 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`)
565
646
  # @param order_by [::String]
@@ -579,6 +660,22 @@ module Google
579
660
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ServiceAttachment>]
580
661
  #
581
662
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
663
+ #
664
+ # @example Basic example
665
+ # require "google/cloud/compute/v1"
666
+ #
667
+ # # Create a client object. The client can be reused for multiple calls.
668
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
669
+ #
670
+ # # Create a request. To set request fields, pass in keyword arguments.
671
+ # request = Google::Cloud::Compute::V1::ListServiceAttachmentsRequest.new
672
+ #
673
+ # # Call the list method.
674
+ # result = client.list request
675
+ #
676
+ # # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachmentList.
677
+ # p result
678
+ #
582
679
  def list request, options = nil
583
680
  raise ::ArgumentError, "request must be provided" if request.nil?
584
681
 
@@ -650,6 +747,22 @@ module Google
650
747
  # @return [::Gapic::GenericLRO::Operation]
651
748
  #
652
749
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
750
+ #
751
+ # @example Basic example
752
+ # require "google/cloud/compute/v1"
753
+ #
754
+ # # Create a client object. The client can be reused for multiple calls.
755
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
756
+ #
757
+ # # Create a request. To set request fields, pass in keyword arguments.
758
+ # request = Google::Cloud::Compute::V1::PatchServiceAttachmentRequest.new
759
+ #
760
+ # # Call the patch method.
761
+ # result = client.patch request
762
+ #
763
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
764
+ # p result
765
+ #
653
766
  def patch request, options = nil
654
767
  raise ::ArgumentError, "request must be provided" if request.nil?
655
768
 
@@ -727,6 +840,22 @@ module Google
727
840
  # @return [::Google::Cloud::Compute::V1::Policy]
728
841
  #
729
842
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
843
+ #
844
+ # @example Basic example
845
+ # require "google/cloud/compute/v1"
846
+ #
847
+ # # Create a client object. The client can be reused for multiple calls.
848
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
849
+ #
850
+ # # Create a request. To set request fields, pass in keyword arguments.
851
+ # request = Google::Cloud::Compute::V1::SetIamPolicyServiceAttachmentRequest.new
852
+ #
853
+ # # Call the set_iam_policy method.
854
+ # result = client.set_iam_policy request
855
+ #
856
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
857
+ # p result
858
+ #
730
859
  def set_iam_policy request, options = nil
731
860
  raise ::ArgumentError, "request must be provided" if request.nil?
732
861
 
@@ -795,6 +924,22 @@ module Google
795
924
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
796
925
  #
797
926
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
927
+ #
928
+ # @example Basic example
929
+ # require "google/cloud/compute/v1"
930
+ #
931
+ # # Create a client object. The client can be reused for multiple calls.
932
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
933
+ #
934
+ # # Create a request. To set request fields, pass in keyword arguments.
935
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsServiceAttachmentRequest.new
936
+ #
937
+ # # Call the test_iam_permissions method.
938
+ # result = client.test_iam_permissions request
939
+ #
940
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
941
+ # p result
942
+ #
798
943
  def test_iam_permissions request, options = nil
799
944
  raise ::ArgumentError, "request must be provided" if request.nil?
800
945