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
@@ -95,6 +95,11 @@ module Google
95
95
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
96
96
  }
97
97
 
98
+ default_config.rpcs.list_usable.timeout = 600.0
99
+ default_config.rpcs.list_usable.retry_policy = {
100
+ initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
101
+ }
102
+
98
103
  default_config.rpcs.patch.timeout = 600.0
99
104
 
100
105
  default_config.rpcs.set_edge_security_policy.timeout = 600.0
@@ -103,6 +108,8 @@ module Google
103
108
 
104
109
  default_config.rpcs.set_security_policy.timeout = 600.0
105
110
 
111
+ default_config.rpcs.test_iam_permissions.timeout = 600.0
112
+
106
113
  default_config.rpcs.update.timeout = 600.0
107
114
 
108
115
  default_config
@@ -220,6 +227,22 @@ module Google
220
227
  # @return [::Gapic::GenericLRO::Operation]
221
228
  #
222
229
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
230
+ #
231
+ # @example Basic example
232
+ # require "google/cloud/compute/v1"
233
+ #
234
+ # # Create a client object. The client can be reused for multiple calls.
235
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
236
+ #
237
+ # # Create a request. To set request fields, pass in keyword arguments.
238
+ # request = Google::Cloud::Compute::V1::AddSignedUrlKeyBackendServiceRequest.new
239
+ #
240
+ # # Call the add_signed_url_key method.
241
+ # result = client.add_signed_url_key request
242
+ #
243
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
244
+ # p result
245
+ #
223
246
  def add_signed_url_key request, options = nil
224
247
  raise ::ArgumentError, "request must be provided" if request.nil?
225
248
 
@@ -276,13 +299,13 @@ module Google
276
299
  # @param options [::Gapic::CallOptions, ::Hash]
277
300
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
278
301
  #
279
- # @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
302
+ # @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)
280
303
  # Pass arguments to `aggregated_list` via keyword arguments. Note that at
281
304
  # least one keyword argument is required. To specify no parameters, or to keep all
282
305
  # the default parameter values, pass an empty Hash as a request object (see above).
283
306
  #
284
307
  # @param filter [::String]
285
- # 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`.
308
+ # 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.
286
309
  # @param include_all_scopes [::Boolean]
287
310
  # 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.
288
311
  # @param max_results [::Integer]
@@ -295,6 +318,7 @@ module Google
295
318
  # Name of the project scoping this request.
296
319
  # @param return_partial_success [::Boolean]
297
320
  # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
321
+ # @param service_project_number [::Integer]
298
322
  # @yield [result, operation] Access the result along with the TransportOperation object
299
323
  # @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendServicesScopedList>]
300
324
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -302,6 +326,22 @@ module Google
302
326
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendServicesScopedList>]
303
327
  #
304
328
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
329
+ #
330
+ # @example Basic example
331
+ # require "google/cloud/compute/v1"
332
+ #
333
+ # # Create a client object. The client can be reused for multiple calls.
334
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
335
+ #
336
+ # # Create a request. To set request fields, pass in keyword arguments.
337
+ # request = Google::Cloud::Compute::V1::AggregatedListBackendServicesRequest.new
338
+ #
339
+ # # Call the aggregated_list method.
340
+ # result = client.aggregated_list request
341
+ #
342
+ # # The returned object is of type Google::Cloud::Compute::V1::BackendServiceAggregatedList.
343
+ # p result
344
+ #
305
345
  def aggregated_list request, options = nil
306
346
  raise ::ArgumentError, "request must be provided" if request.nil?
307
347
 
@@ -369,6 +409,22 @@ module Google
369
409
  # @return [::Gapic::GenericLRO::Operation]
370
410
  #
371
411
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
412
+ #
413
+ # @example Basic example
414
+ # require "google/cloud/compute/v1"
415
+ #
416
+ # # Create a client object. The client can be reused for multiple calls.
417
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
418
+ #
419
+ # # Create a request. To set request fields, pass in keyword arguments.
420
+ # request = Google::Cloud::Compute::V1::DeleteBackendServiceRequest.new
421
+ #
422
+ # # Call the delete method.
423
+ # result = client.delete request
424
+ #
425
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
426
+ # p result
427
+ #
372
428
  def delete request, options = nil
373
429
  raise ::ArgumentError, "request must be provided" if request.nil?
374
430
 
@@ -445,6 +501,22 @@ module Google
445
501
  # @return [::Gapic::GenericLRO::Operation]
446
502
  #
447
503
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
504
+ #
505
+ # @example Basic example
506
+ # require "google/cloud/compute/v1"
507
+ #
508
+ # # Create a client object. The client can be reused for multiple calls.
509
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
510
+ #
511
+ # # Create a request. To set request fields, pass in keyword arguments.
512
+ # request = Google::Cloud::Compute::V1::DeleteSignedUrlKeyBackendServiceRequest.new
513
+ #
514
+ # # Call the delete_signed_url_key method.
515
+ # result = client.delete_signed_url_key request
516
+ #
517
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
518
+ # p result
519
+ #
448
520
  def delete_signed_url_key request, options = nil
449
521
  raise ::ArgumentError, "request must be provided" if request.nil?
450
522
 
@@ -517,6 +589,22 @@ module Google
517
589
  # @return [::Google::Cloud::Compute::V1::BackendService]
518
590
  #
519
591
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
592
+ #
593
+ # @example Basic example
594
+ # require "google/cloud/compute/v1"
595
+ #
596
+ # # Create a client object. The client can be reused for multiple calls.
597
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
598
+ #
599
+ # # Create a request. To set request fields, pass in keyword arguments.
600
+ # request = Google::Cloud::Compute::V1::GetBackendServiceRequest.new
601
+ #
602
+ # # Call the get method.
603
+ # result = client.get request
604
+ #
605
+ # # The returned object is of type Google::Cloud::Compute::V1::BackendService.
606
+ # p result
607
+ #
520
608
  def get request, options = nil
521
609
  raise ::ArgumentError, "request must be provided" if request.nil?
522
610
 
@@ -582,6 +670,22 @@ module Google
582
670
  # @return [::Google::Cloud::Compute::V1::BackendServiceGroupHealth]
583
671
  #
584
672
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
673
+ #
674
+ # @example Basic example
675
+ # require "google/cloud/compute/v1"
676
+ #
677
+ # # Create a client object. The client can be reused for multiple calls.
678
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
679
+ #
680
+ # # Create a request. To set request fields, pass in keyword arguments.
681
+ # request = Google::Cloud::Compute::V1::GetHealthBackendServiceRequest.new
682
+ #
683
+ # # Call the get_health method.
684
+ # result = client.get_health request
685
+ #
686
+ # # The returned object is of type Google::Cloud::Compute::V1::BackendServiceGroupHealth.
687
+ # p result
688
+ #
585
689
  def get_health request, options = nil
586
690
  raise ::ArgumentError, "request must be provided" if request.nil?
587
691
 
@@ -648,6 +752,22 @@ module Google
648
752
  # @return [::Google::Cloud::Compute::V1::Policy]
649
753
  #
650
754
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
755
+ #
756
+ # @example Basic example
757
+ # require "google/cloud/compute/v1"
758
+ #
759
+ # # Create a client object. The client can be reused for multiple calls.
760
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
761
+ #
762
+ # # Create a request. To set request fields, pass in keyword arguments.
763
+ # request = Google::Cloud::Compute::V1::GetIamPolicyBackendServiceRequest.new
764
+ #
765
+ # # Call the get_iam_policy method.
766
+ # result = client.get_iam_policy request
767
+ #
768
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
769
+ # p result
770
+ #
651
771
  def get_iam_policy request, options = nil
652
772
  raise ::ArgumentError, "request must be provided" if request.nil?
653
773
 
@@ -714,6 +834,22 @@ module Google
714
834
  # @return [::Gapic::GenericLRO::Operation]
715
835
  #
716
836
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
837
+ #
838
+ # @example Basic example
839
+ # require "google/cloud/compute/v1"
840
+ #
841
+ # # Create a client object. The client can be reused for multiple calls.
842
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
843
+ #
844
+ # # Create a request. To set request fields, pass in keyword arguments.
845
+ # request = Google::Cloud::Compute::V1::InsertBackendServiceRequest.new
846
+ #
847
+ # # Call the insert method.
848
+ # result = client.insert request
849
+ #
850
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
851
+ # p result
852
+ #
717
853
  def insert request, options = nil
718
854
  raise ::ArgumentError, "request must be provided" if request.nil?
719
855
 
@@ -776,7 +912,7 @@ module Google
776
912
  # the default parameter values, pass an empty Hash as a request object (see above).
777
913
  #
778
914
  # @param filter [::String]
779
- # 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`.
915
+ # 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.
780
916
  # @param max_results [::Integer]
781
917
  # 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`)
782
918
  # @param order_by [::String]
@@ -794,6 +930,22 @@ module Google
794
930
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
795
931
  #
796
932
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
933
+ #
934
+ # @example Basic example
935
+ # require "google/cloud/compute/v1"
936
+ #
937
+ # # Create a client object. The client can be reused for multiple calls.
938
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
939
+ #
940
+ # # Create a request. To set request fields, pass in keyword arguments.
941
+ # request = Google::Cloud::Compute::V1::ListBackendServicesRequest.new
942
+ #
943
+ # # Call the list method.
944
+ # result = client.list request
945
+ #
946
+ # # The returned object is of type Google::Cloud::Compute::V1::BackendServiceList.
947
+ # p result
948
+ #
797
949
  def list request, options = nil
798
950
  raise ::ArgumentError, "request must be provided" if request.nil?
799
951
 
@@ -830,6 +982,95 @@ module Google
830
982
  raise ::Google::Cloud::Error.from_error(e)
831
983
  end
832
984
 
985
+ ##
986
+ # Retrieves an aggregated list of all usable backend services in the specified project.
987
+ #
988
+ # @overload list_usable(request, options = nil)
989
+ # Pass arguments to `list_usable` via a request object, either of type
990
+ # {::Google::Cloud::Compute::V1::ListUsableBackendServicesRequest} or an equivalent Hash.
991
+ #
992
+ # @param request [::Google::Cloud::Compute::V1::ListUsableBackendServicesRequest, ::Hash]
993
+ # A request object representing the call parameters. Required. To specify no
994
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
995
+ # @param options [::Gapic::CallOptions, ::Hash]
996
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
997
+ #
998
+ # @overload list_usable(filter: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
999
+ # Pass arguments to `list_usable` via keyword arguments. Note that at
1000
+ # least one keyword argument is required. To specify no parameters, or to keep all
1001
+ # the default parameter values, pass an empty Hash as a request object (see above).
1002
+ #
1003
+ # @param filter [::String]
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.
1005
+ # @param max_results [::Integer]
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`)
1007
+ # @param order_by [::String]
1008
+ # Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. You can also sort results in descending order based on the creation timestamp using `orderBy="creationTimestamp desc"`. This sorts results based on the `creationTimestamp` field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. Currently, only sorting by `name` or `creationTimestamp desc` is supported.
1009
+ # @param page_token [::String]
1010
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned by a previous list request to get the next page of results.
1011
+ # @param project [::String]
1012
+ # Project ID for this request.
1013
+ # @param return_partial_success [::Boolean]
1014
+ # Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
1015
+ # @yield [result, operation] Access the result along with the TransportOperation object
1016
+ # @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
1017
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1018
+ #
1019
+ # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
1020
+ #
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::BackendServices::Rest::Client.new
1028
+ #
1029
+ # # Create a request. To set request fields, pass in keyword arguments.
1030
+ # request = Google::Cloud::Compute::V1::ListUsableBackendServicesRequest.new
1031
+ #
1032
+ # # Call the list_usable method.
1033
+ # result = client.list_usable request
1034
+ #
1035
+ # # The returned object is of type Google::Cloud::Compute::V1::BackendServiceListUsable.
1036
+ # p result
1037
+ #
1038
+ def list_usable request, options = nil
1039
+ raise ::ArgumentError, "request must be provided" if request.nil?
1040
+
1041
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::ListUsableBackendServicesRequest
1042
+
1043
+ # Converts hash and nil to an options object
1044
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1045
+
1046
+ # Customize the options with defaults
1047
+ call_metadata = @config.rpcs.list_usable.metadata.to_h
1048
+
1049
+ # Set x-goog-api-client and x-goog-user-project headers
1050
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1051
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1052
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1053
+ transports_version_send: [:rest]
1054
+
1055
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1056
+
1057
+ options.apply_defaults timeout: @config.rpcs.list_usable.timeout,
1058
+ metadata: call_metadata,
1059
+ retry_policy: @config.rpcs.list_usable.retry_policy
1060
+
1061
+ options.apply_defaults timeout: @config.timeout,
1062
+ metadata: @config.metadata,
1063
+ retry_policy: @config.retry_policy
1064
+
1065
+ @backend_services_stub.list_usable request, options do |result, operation|
1066
+ result = ::Gapic::Rest::PagedEnumerable.new @backend_services_stub, :list_usable, "items", request, result, options
1067
+ yield result, operation if block_given?
1068
+ return result
1069
+ end
1070
+ rescue ::Gapic::Rest::Error => e
1071
+ raise ::Google::Cloud::Error.from_error(e)
1072
+ end
1073
+
833
1074
  ##
834
1075
  # Patches the specified BackendService resource with the data included in the request. For more information, see Backend services overview. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.
835
1076
  #
@@ -863,6 +1104,22 @@ module Google
863
1104
  # @return [::Gapic::GenericLRO::Operation]
864
1105
  #
865
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::BackendServices::Rest::Client.new
1113
+ #
1114
+ # # Create a request. To set request fields, pass in keyword arguments.
1115
+ # request = Google::Cloud::Compute::V1::PatchBackendServiceRequest.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
+ #
866
1123
  def patch request, options = nil
867
1124
  raise ::ArgumentError, "request must be provided" if request.nil?
868
1125
 
@@ -939,6 +1196,22 @@ module Google
939
1196
  # @return [::Gapic::GenericLRO::Operation]
940
1197
  #
941
1198
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1199
+ #
1200
+ # @example Basic example
1201
+ # require "google/cloud/compute/v1"
1202
+ #
1203
+ # # Create a client object. The client can be reused for multiple calls.
1204
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
1205
+ #
1206
+ # # Create a request. To set request fields, pass in keyword arguments.
1207
+ # request = Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest.new
1208
+ #
1209
+ # # Call the set_edge_security_policy method.
1210
+ # result = client.set_edge_security_policy request
1211
+ #
1212
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1213
+ # p result
1214
+ #
942
1215
  def set_edge_security_policy request, options = nil
943
1216
  raise ::ArgumentError, "request must be provided" if request.nil?
944
1217
 
@@ -1013,6 +1286,22 @@ module Google
1013
1286
  # @return [::Google::Cloud::Compute::V1::Policy]
1014
1287
  #
1015
1288
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1289
+ #
1290
+ # @example Basic example
1291
+ # require "google/cloud/compute/v1"
1292
+ #
1293
+ # # Create a client object. The client can be reused for multiple calls.
1294
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
1295
+ #
1296
+ # # Create a request. To set request fields, pass in keyword arguments.
1297
+ # request = Google::Cloud::Compute::V1::SetIamPolicyBackendServiceRequest.new
1298
+ #
1299
+ # # Call the set_iam_policy method.
1300
+ # result = client.set_iam_policy request
1301
+ #
1302
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
1303
+ # p result
1304
+ #
1016
1305
  def set_iam_policy request, options = nil
1017
1306
  raise ::ArgumentError, "request must be provided" if request.nil?
1018
1307
 
@@ -1081,6 +1370,22 @@ module Google
1081
1370
  # @return [::Gapic::GenericLRO::Operation]
1082
1371
  #
1083
1372
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1373
+ #
1374
+ # @example Basic example
1375
+ # require "google/cloud/compute/v1"
1376
+ #
1377
+ # # Create a client object. The client can be reused for multiple calls.
1378
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
1379
+ #
1380
+ # # Create a request. To set request fields, pass in keyword arguments.
1381
+ # request = Google::Cloud::Compute::V1::SetSecurityPolicyBackendServiceRequest.new
1382
+ #
1383
+ # # Call the set_security_policy method.
1384
+ # result = client.set_security_policy request
1385
+ #
1386
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1387
+ # p result
1388
+ #
1084
1389
  def set_security_policy request, options = nil
1085
1390
  raise ::ArgumentError, "request must be provided" if request.nil?
1086
1391
 
@@ -1124,6 +1429,88 @@ module Google
1124
1429
  raise ::Google::Cloud::Error.from_error(e)
1125
1430
  end
1126
1431
 
1432
+ ##
1433
+ # Returns permissions that a caller has on the specified resource.
1434
+ #
1435
+ # @overload test_iam_permissions(request, options = nil)
1436
+ # Pass arguments to `test_iam_permissions` via a request object, either of type
1437
+ # {::Google::Cloud::Compute::V1::TestIamPermissionsBackendServiceRequest} or an equivalent Hash.
1438
+ #
1439
+ # @param request [::Google::Cloud::Compute::V1::TestIamPermissionsBackendServiceRequest, ::Hash]
1440
+ # A request object representing the call parameters. Required. To specify no
1441
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1442
+ # @param options [::Gapic::CallOptions, ::Hash]
1443
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1444
+ #
1445
+ # @overload test_iam_permissions(project: nil, resource: nil, test_permissions_request_resource: nil)
1446
+ # Pass arguments to `test_iam_permissions` via keyword arguments. Note that at
1447
+ # least one keyword argument is required. To specify no parameters, or to keep all
1448
+ # the default parameter values, pass an empty Hash as a request object (see above).
1449
+ #
1450
+ # @param project [::String]
1451
+ # Project ID for this request.
1452
+ # @param resource [::String]
1453
+ # Name or id of the resource for this request.
1454
+ # @param test_permissions_request_resource [::Google::Cloud::Compute::V1::TestPermissionsRequest, ::Hash]
1455
+ # The body resource for this request
1456
+ # @yield [result, operation] Access the result along with the TransportOperation object
1457
+ # @yieldparam result [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1458
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
1459
+ #
1460
+ # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1461
+ #
1462
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
1463
+ #
1464
+ # @example Basic example
1465
+ # require "google/cloud/compute/v1"
1466
+ #
1467
+ # # Create a client object. The client can be reused for multiple calls.
1468
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
1469
+ #
1470
+ # # Create a request. To set request fields, pass in keyword arguments.
1471
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsBackendServiceRequest.new
1472
+ #
1473
+ # # Call the test_iam_permissions method.
1474
+ # result = client.test_iam_permissions request
1475
+ #
1476
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1477
+ # p result
1478
+ #
1479
+ def test_iam_permissions request, options = nil
1480
+ raise ::ArgumentError, "request must be provided" if request.nil?
1481
+
1482
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::TestIamPermissionsBackendServiceRequest
1483
+
1484
+ # Converts hash and nil to an options object
1485
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1486
+
1487
+ # Customize the options with defaults
1488
+ call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1489
+
1490
+ # Set x-goog-api-client and x-goog-user-project headers
1491
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1492
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1493
+ gapic_version: ::Google::Cloud::Compute::V1::VERSION,
1494
+ transports_version_send: [:rest]
1495
+
1496
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1497
+
1498
+ options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
1499
+ metadata: call_metadata,
1500
+ retry_policy: @config.rpcs.test_iam_permissions.retry_policy
1501
+
1502
+ options.apply_defaults timeout: @config.timeout,
1503
+ metadata: @config.metadata,
1504
+ retry_policy: @config.retry_policy
1505
+
1506
+ @backend_services_stub.test_iam_permissions request, options do |result, operation|
1507
+ yield result, operation if block_given?
1508
+ return result
1509
+ end
1510
+ rescue ::Gapic::Rest::Error => e
1511
+ raise ::Google::Cloud::Error.from_error(e)
1512
+ end
1513
+
1127
1514
  ##
1128
1515
  # Updates the specified BackendService resource with the data included in the request. For more information, see Backend services overview.
1129
1516
  #
@@ -1157,6 +1544,22 @@ module Google
1157
1544
  # @return [::Gapic::GenericLRO::Operation]
1158
1545
  #
1159
1546
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1547
+ #
1548
+ # @example Basic example
1549
+ # require "google/cloud/compute/v1"
1550
+ #
1551
+ # # Create a client object. The client can be reused for multiple calls.
1552
+ # client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
1553
+ #
1554
+ # # Create a request. To set request fields, pass in keyword arguments.
1555
+ # request = Google::Cloud::Compute::V1::UpdateBackendServiceRequest.new
1556
+ #
1557
+ # # Call the update method.
1558
+ # result = client.update request
1559
+ #
1560
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1561
+ # p result
1562
+ #
1160
1563
  def update request, options = nil
1161
1564
  raise ::ArgumentError, "request must be provided" if request.nil?
1162
1565
 
@@ -1371,6 +1774,11 @@ module Google
1371
1774
  #
1372
1775
  attr_reader :list
1373
1776
  ##
1777
+ # RPC-specific configuration for `list_usable`
1778
+ # @return [::Gapic::Config::Method]
1779
+ #
1780
+ attr_reader :list_usable
1781
+ ##
1374
1782
  # RPC-specific configuration for `patch`
1375
1783
  # @return [::Gapic::Config::Method]
1376
1784
  #
@@ -1391,6 +1799,11 @@ module Google
1391
1799
  #
1392
1800
  attr_reader :set_security_policy
1393
1801
  ##
1802
+ # RPC-specific configuration for `test_iam_permissions`
1803
+ # @return [::Gapic::Config::Method]
1804
+ #
1805
+ attr_reader :test_iam_permissions
1806
+ ##
1394
1807
  # RPC-specific configuration for `update`
1395
1808
  # @return [::Gapic::Config::Method]
1396
1809
  #
@@ -1416,6 +1829,8 @@ module Google
1416
1829
  @insert = ::Gapic::Config::Method.new insert_config
1417
1830
  list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
1418
1831
  @list = ::Gapic::Config::Method.new list_config
1832
+ list_usable_config = parent_rpcs.list_usable if parent_rpcs.respond_to? :list_usable
1833
+ @list_usable = ::Gapic::Config::Method.new list_usable_config
1419
1834
  patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
1420
1835
  @patch = ::Gapic::Config::Method.new patch_config
1421
1836
  set_edge_security_policy_config = parent_rpcs.set_edge_security_policy if parent_rpcs.respond_to? :set_edge_security_policy
@@ -1424,6 +1839,8 @@ module Google
1424
1839
  @set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
1425
1840
  set_security_policy_config = parent_rpcs.set_security_policy if parent_rpcs.respond_to? :set_security_policy
1426
1841
  @set_security_policy = ::Gapic::Config::Method.new set_security_policy_config
1842
+ test_iam_permissions_config = parent_rpcs.test_iam_permissions if parent_rpcs.respond_to? :test_iam_permissions
1843
+ @test_iam_permissions = ::Gapic::Config::Method.new test_iam_permissions_config
1427
1844
  update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
1428
1845
  @update = ::Gapic::Config::Method.new update_config
1429
1846