google-cloud-netapp-v1 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +72 -99
  3. data/lib/google/cloud/netapp/v1/active_directory_pb.rb +1 -1
  4. data/lib/google/cloud/netapp/v1/backup_pb.rb +57 -0
  5. data/lib/google/cloud/netapp/v1/backup_policy_pb.rb +56 -0
  6. data/lib/google/cloud/netapp/v1/backup_vault_pb.rb +56 -0
  7. data/lib/google/cloud/netapp/v1/cloud_netapp_service_pb.rb +4 -1
  8. data/lib/google/cloud/netapp/v1/cloud_netapp_service_services_pb.rb +33 -0
  9. data/lib/google/cloud/netapp/v1/kms_pb.rb +1 -1
  10. data/lib/google/cloud/netapp/v1/netapp/client.rb +1758 -120
  11. data/lib/google/cloud/netapp/v1/netapp/operations.rb +28 -6
  12. data/lib/google/cloud/netapp/v1/netapp/paths.rb +59 -0
  13. data/lib/google/cloud/netapp/v1/netapp/rest/client.rb +1649 -116
  14. data/lib/google/cloud/netapp/v1/netapp/rest/operations.rb +33 -8
  15. data/lib/google/cloud/netapp/v1/netapp/rest/service_stub.rb +1054 -151
  16. data/lib/google/cloud/netapp/v1/replication_pb.rb +1 -1
  17. data/lib/google/cloud/netapp/v1/snapshot_pb.rb +1 -1
  18. data/lib/google/cloud/netapp/v1/storage_pool_pb.rb +1 -1
  19. data/lib/google/cloud/netapp/v1/version.rb +1 -1
  20. data/lib/google/cloud/netapp/v1/volume_pb.rb +2 -1
  21. data/proto_docs/google/api/client.rb +14 -0
  22. data/proto_docs/google/cloud/netapp/v1/active_directory.rb +2 -2
  23. data/proto_docs/google/cloud/netapp/v1/backup.rb +231 -0
  24. data/proto_docs/google/cloud/netapp/v1/backup_policy.rb +190 -0
  25. data/proto_docs/google/cloud/netapp/v1/backup_vault.rb +177 -0
  26. data/proto_docs/google/cloud/netapp/v1/common.rb +3 -0
  27. data/proto_docs/google/cloud/netapp/v1/kms.rb +2 -2
  28. data/proto_docs/google/cloud/netapp/v1/replication.rb +2 -2
  29. data/proto_docs/google/cloud/netapp/v1/snapshot.rb +2 -2
  30. data/proto_docs/google/cloud/netapp/v1/storage_pool.rb +5 -3
  31. data/proto_docs/google/cloud/netapp/v1/volume.rb +31 -2
  32. metadata +13 -7
@@ -33,6 +33,9 @@ module Google
33
33
  # NetApp Files Google Cloud Service
34
34
  #
35
35
  class Client
36
+ # @private
37
+ DEFAULT_ENDPOINT_TEMPLATE = "netapp.$UNIVERSE_DOMAIN$"
38
+
36
39
  include Paths
37
40
 
38
41
  # @private
@@ -175,6 +178,54 @@ module Google
175
178
 
176
179
  default_config.rpcs.reverse_replication_direction.timeout = 60.0
177
180
 
181
+ default_config.rpcs.create_backup_vault.timeout = 60.0
182
+
183
+ default_config.rpcs.get_backup_vault.timeout = 60.0
184
+ default_config.rpcs.get_backup_vault.retry_policy = {
185
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
186
+ }
187
+
188
+ default_config.rpcs.list_backup_vaults.timeout = 60.0
189
+ default_config.rpcs.list_backup_vaults.retry_policy = {
190
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
191
+ }
192
+
193
+ default_config.rpcs.update_backup_vault.timeout = 60.0
194
+
195
+ default_config.rpcs.delete_backup_vault.timeout = 60.0
196
+
197
+ default_config.rpcs.create_backup.timeout = 60.0
198
+
199
+ default_config.rpcs.get_backup.timeout = 60.0
200
+ default_config.rpcs.get_backup.retry_policy = {
201
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
202
+ }
203
+
204
+ default_config.rpcs.list_backups.timeout = 60.0
205
+ default_config.rpcs.list_backups.retry_policy = {
206
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
207
+ }
208
+
209
+ default_config.rpcs.delete_backup.timeout = 60.0
210
+
211
+ default_config.rpcs.update_backup.timeout = 60.0
212
+
213
+ default_config.rpcs.create_backup_policy.timeout = 60.0
214
+
215
+ default_config.rpcs.get_backup_policy.timeout = 60.0
216
+ default_config.rpcs.get_backup_policy.retry_policy = {
217
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
218
+ }
219
+
220
+ default_config.rpcs.list_backup_policies.timeout = 60.0
221
+ default_config.rpcs.list_backup_policies.retry_policy = {
222
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
223
+ }
224
+
225
+ default_config.rpcs.update_backup_policy.timeout = 60.0
226
+
227
+ default_config.rpcs.delete_backup_policy.timeout = 60.0
228
+
178
229
  default_config
179
230
  end
180
231
  yield @configure if block_given?
@@ -201,6 +252,15 @@ module Google
201
252
  @config
202
253
  end
203
254
 
255
+ ##
256
+ # The effective universe domain
257
+ #
258
+ # @return [String]
259
+ #
260
+ def universe_domain
261
+ @net_app_stub.universe_domain
262
+ end
263
+
204
264
  ##
205
265
  # Create a new NetApp REST client object.
206
266
  #
@@ -228,8 +288,9 @@ module Google
228
288
  credentials = @config.credentials
229
289
  # Use self-signed JWT if the endpoint is unchanged from default,
230
290
  # but only if the default endpoint does not have a region prefix.
231
- enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
232
- !@config.endpoint.split(".").first.include?("-")
291
+ enable_self_signed_jwt = @config.endpoint.nil? ||
292
+ (@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
293
+ !@config.endpoint.split(".").first.include?("-"))
233
294
  credentials ||= Credentials.default scope: @config.scope,
234
295
  enable_self_signed_jwt: enable_self_signed_jwt
235
296
  if credentials.is_a?(::String) || credentials.is_a?(::Hash)
@@ -243,16 +304,23 @@ module Google
243
304
  config.credentials = credentials
244
305
  config.quota_project = @quota_project_id
245
306
  config.endpoint = @config.endpoint
307
+ config.universe_domain = @config.universe_domain
246
308
  end
247
309
 
248
310
  @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
249
311
  config.credentials = credentials
250
312
  config.quota_project = @quota_project_id
251
313
  config.endpoint = @config.endpoint
314
+ config.universe_domain = @config.universe_domain
252
315
  config.bindings_override = @config.bindings_override
253
316
  end
254
317
 
255
- @net_app_stub = ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
318
+ @net_app_stub = ::Google::Cloud::NetApp::V1::NetApp::Rest::ServiceStub.new(
319
+ endpoint: @config.endpoint,
320
+ endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
321
+ universe_domain: @config.universe_domain,
322
+ credentials: credentials
323
+ )
256
324
  end
257
325
 
258
326
  ##
@@ -3440,135 +3508,1495 @@ module Google
3440
3508
  end
3441
3509
 
3442
3510
  ##
3443
- # Configuration class for the NetApp REST API.
3511
+ # Creates new backup vault
3444
3512
  #
3445
- # This class represents the configuration for NetApp REST,
3446
- # providing control over timeouts, retry behavior, logging, transport
3447
- # parameters, and other low-level controls. Certain parameters can also be
3448
- # applied individually to specific RPCs. See
3449
- # {::Google::Cloud::NetApp::V1::NetApp::Rest::Client::Configuration::Rpcs}
3450
- # for a list of RPCs that can be configured independently.
3513
+ # @overload create_backup_vault(request, options = nil)
3514
+ # Pass arguments to `create_backup_vault` via a request object, either of type
3515
+ # {::Google::Cloud::NetApp::V1::CreateBackupVaultRequest} or an equivalent Hash.
3451
3516
  #
3452
- # Configuration can be applied globally to all clients, or to a single client
3453
- # on construction.
3517
+ # @param request [::Google::Cloud::NetApp::V1::CreateBackupVaultRequest, ::Hash]
3518
+ # A request object representing the call parameters. Required. To specify no
3519
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3520
+ # @param options [::Gapic::CallOptions, ::Hash]
3521
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3454
3522
  #
3455
- # @example
3523
+ # @overload create_backup_vault(parent: nil, backup_vault_id: nil, backup_vault: nil)
3524
+ # Pass arguments to `create_backup_vault` via keyword arguments. Note that at
3525
+ # least one keyword argument is required. To specify no parameters, or to keep all
3526
+ # the default parameter values, pass an empty Hash as a request object (see above).
3456
3527
  #
3457
- # # Modify the global config, setting the timeout for
3458
- # # list_storage_pools to 20 seconds,
3459
- # # and all remaining timeouts to 10 seconds.
3460
- # ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.configure do |config|
3461
- # config.timeout = 10.0
3462
- # config.rpcs.list_storage_pools.timeout = 20.0
3463
- # end
3528
+ # @param parent [::String]
3529
+ # Required. The location to create the backup vaults, in the format
3530
+ # `projects/{project_id}/locations/{location}`
3531
+ # @param backup_vault_id [::String]
3532
+ # Required. The ID to use for the backupVault.
3533
+ # The ID must be unique within the specified location.
3534
+ # The max supported length is 63 characters.
3535
+ # This value must start with a lowercase letter followed by up to 62
3536
+ # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
3537
+ # Values that do not match this pattern will trigger an INVALID_ARGUMENT
3538
+ # error.
3539
+ # @param backup_vault [::Google::Cloud::NetApp::V1::BackupVault, ::Hash]
3540
+ # Required. A backupVault resource
3541
+ # @yield [result, operation] Access the result along with the TransportOperation object
3542
+ # @yieldparam result [::Gapic::Operation]
3543
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3464
3544
  #
3465
- # # Apply the above configuration only to a new client.
3466
- # client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config|
3467
- # config.timeout = 10.0
3468
- # config.rpcs.list_storage_pools.timeout = 20.0
3469
- # end
3545
+ # @return [::Gapic::Operation]
3470
3546
  #
3471
- # @!attribute [rw] endpoint
3472
- # The hostname or hostname:port of the service endpoint.
3473
- # Defaults to `"netapp.googleapis.com"`.
3474
- # @return [::String]
3475
- # @!attribute [rw] credentials
3476
- # Credentials to send with calls. You may provide any of the following types:
3477
- # * (`String`) The path to a service account key file in JSON format
3478
- # * (`Hash`) A service account key as a Hash
3479
- # * (`Google::Auth::Credentials`) A googleauth credentials object
3480
- # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3481
- # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3482
- # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3483
- # * (`nil`) indicating no credentials
3484
- # @return [::Object]
3485
- # @!attribute [rw] scope
3486
- # The OAuth scopes
3487
- # @return [::Array<::String>]
3488
- # @!attribute [rw] lib_name
3489
- # The library name as recorded in instrumentation and logging
3490
- # @return [::String]
3491
- # @!attribute [rw] lib_version
3492
- # The library version as recorded in instrumentation and logging
3493
- # @return [::String]
3494
- # @!attribute [rw] timeout
3495
- # The call timeout in seconds.
3496
- # @return [::Numeric]
3497
- # @!attribute [rw] metadata
3498
- # Additional headers to be sent with the call.
3499
- # @return [::Hash{::Symbol=>::String}]
3500
- # @!attribute [rw] retry_policy
3501
- # The retry policy. The value is a hash with the following keys:
3502
- # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3503
- # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3504
- # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3505
- # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3506
- # trigger a retry.
3507
- # @return [::Hash]
3508
- # @!attribute [rw] quota_project
3509
- # A separate project against which to charge quota.
3510
- # @return [::String]
3547
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3511
3548
  #
3512
- class Configuration
3513
- extend ::Gapic::Config
3549
+ # @example Basic example
3550
+ # require "google/cloud/netapp/v1"
3551
+ #
3552
+ # # Create a client object. The client can be reused for multiple calls.
3553
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
3554
+ #
3555
+ # # Create a request. To set request fields, pass in keyword arguments.
3556
+ # request = Google::Cloud::NetApp::V1::CreateBackupVaultRequest.new
3557
+ #
3558
+ # # Call the create_backup_vault method.
3559
+ # result = client.create_backup_vault request
3560
+ #
3561
+ # # The returned object is of type Gapic::Operation. You can use it to
3562
+ # # check the status of an operation, cancel it, or wait for results.
3563
+ # # Here is how to wait for a response.
3564
+ # result.wait_until_done! timeout: 60
3565
+ # if result.response?
3566
+ # p result.response
3567
+ # else
3568
+ # puts "No response received."
3569
+ # end
3570
+ #
3571
+ def create_backup_vault request, options = nil
3572
+ raise ::ArgumentError, "request must be provided" if request.nil?
3514
3573
 
3515
- DEFAULT_ENDPOINT = "netapp.googleapis.com"
3574
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::CreateBackupVaultRequest
3516
3575
 
3517
- config_attr :endpoint, DEFAULT_ENDPOINT, ::String
3518
- config_attr :credentials, nil do |value|
3519
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
3520
- allowed.any? { |klass| klass === value }
3521
- end
3522
- config_attr :scope, nil, ::String, ::Array, nil
3523
- config_attr :lib_name, nil, ::String, nil
3524
- config_attr :lib_version, nil, ::String, nil
3525
- config_attr :timeout, nil, ::Numeric, nil
3526
- config_attr :metadata, nil, ::Hash, nil
3527
- config_attr :retry_policy, nil, ::Hash, ::Proc, nil
3528
- config_attr :quota_project, nil, ::String, nil
3576
+ # Converts hash and nil to an options object
3577
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3529
3578
 
3530
- # @private
3531
- # Overrides for http bindings for the RPCs of this service
3532
- # are only used when this service is used as mixin, and only
3533
- # by the host service.
3534
- # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
3535
- config_attr :bindings_override, {}, ::Hash, nil
3579
+ # Customize the options with defaults
3580
+ call_metadata = @config.rpcs.create_backup_vault.metadata.to_h
3536
3581
 
3537
- # @private
3538
- def initialize parent_config = nil
3539
- @parent_config = parent_config unless parent_config.nil?
3582
+ # Set x-goog-api-client and x-goog-user-project headers
3583
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3584
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3585
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
3586
+ transports_version_send: [:rest]
3540
3587
 
3541
- yield self if block_given?
3588
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3589
+
3590
+ options.apply_defaults timeout: @config.rpcs.create_backup_vault.timeout,
3591
+ metadata: call_metadata,
3592
+ retry_policy: @config.rpcs.create_backup_vault.retry_policy
3593
+
3594
+ options.apply_defaults timeout: @config.timeout,
3595
+ metadata: @config.metadata,
3596
+ retry_policy: @config.retry_policy
3597
+
3598
+ @net_app_stub.create_backup_vault request, options do |result, operation|
3599
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3600
+ yield result, operation if block_given?
3601
+ return result
3542
3602
  end
3603
+ rescue ::Gapic::Rest::Error => e
3604
+ raise ::Google::Cloud::Error.from_error(e)
3605
+ end
3543
3606
 
3544
- ##
3545
- # Configurations for individual RPCs
3546
- # @return [Rpcs]
3547
- #
3548
- def rpcs
3549
- @rpcs ||= begin
3550
- parent_rpcs = nil
3551
- parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
3552
- Rpcs.new parent_rpcs
3553
- end
3607
+ ##
3608
+ # Returns the description of the specified backup vault
3609
+ #
3610
+ # @overload get_backup_vault(request, options = nil)
3611
+ # Pass arguments to `get_backup_vault` via a request object, either of type
3612
+ # {::Google::Cloud::NetApp::V1::GetBackupVaultRequest} or an equivalent Hash.
3613
+ #
3614
+ # @param request [::Google::Cloud::NetApp::V1::GetBackupVaultRequest, ::Hash]
3615
+ # A request object representing the call parameters. Required. To specify no
3616
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3617
+ # @param options [::Gapic::CallOptions, ::Hash]
3618
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3619
+ #
3620
+ # @overload get_backup_vault(name: nil)
3621
+ # Pass arguments to `get_backup_vault` via keyword arguments. Note that at
3622
+ # least one keyword argument is required. To specify no parameters, or to keep all
3623
+ # the default parameter values, pass an empty Hash as a request object (see above).
3624
+ #
3625
+ # @param name [::String]
3626
+ # Required. The backupVault resource name, in the format
3627
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
3628
+ # @yield [result, operation] Access the result along with the TransportOperation object
3629
+ # @yieldparam result [::Google::Cloud::NetApp::V1::BackupVault]
3630
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3631
+ #
3632
+ # @return [::Google::Cloud::NetApp::V1::BackupVault]
3633
+ #
3634
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3635
+ #
3636
+ # @example Basic example
3637
+ # require "google/cloud/netapp/v1"
3638
+ #
3639
+ # # Create a client object. The client can be reused for multiple calls.
3640
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
3641
+ #
3642
+ # # Create a request. To set request fields, pass in keyword arguments.
3643
+ # request = Google::Cloud::NetApp::V1::GetBackupVaultRequest.new
3644
+ #
3645
+ # # Call the get_backup_vault method.
3646
+ # result = client.get_backup_vault request
3647
+ #
3648
+ # # The returned object is of type Google::Cloud::NetApp::V1::BackupVault.
3649
+ # p result
3650
+ #
3651
+ def get_backup_vault request, options = nil
3652
+ raise ::ArgumentError, "request must be provided" if request.nil?
3653
+
3654
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::GetBackupVaultRequest
3655
+
3656
+ # Converts hash and nil to an options object
3657
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3658
+
3659
+ # Customize the options with defaults
3660
+ call_metadata = @config.rpcs.get_backup_vault.metadata.to_h
3661
+
3662
+ # Set x-goog-api-client and x-goog-user-project headers
3663
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3664
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3665
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
3666
+ transports_version_send: [:rest]
3667
+
3668
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3669
+
3670
+ options.apply_defaults timeout: @config.rpcs.get_backup_vault.timeout,
3671
+ metadata: call_metadata,
3672
+ retry_policy: @config.rpcs.get_backup_vault.retry_policy
3673
+
3674
+ options.apply_defaults timeout: @config.timeout,
3675
+ metadata: @config.metadata,
3676
+ retry_policy: @config.retry_policy
3677
+
3678
+ @net_app_stub.get_backup_vault request, options do |result, operation|
3679
+ yield result, operation if block_given?
3680
+ return result
3554
3681
  end
3682
+ rescue ::Gapic::Rest::Error => e
3683
+ raise ::Google::Cloud::Error.from_error(e)
3684
+ end
3555
3685
 
3556
- ##
3557
- # Configuration RPC class for the NetApp API.
3558
- #
3559
- # Includes fields providing the configuration for each RPC in this service.
3560
- # Each configuration object is of type `Gapic::Config::Method` and includes
3561
- # the following configuration fields:
3562
- #
3563
- # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
3564
- # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
3565
- # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
3566
- # include the following keys:
3567
- # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
3568
- # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
3569
- # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
3570
- # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
3571
- # trigger a retry.
3686
+ ##
3687
+ # Returns list of all available backup vaults.
3688
+ #
3689
+ # @overload list_backup_vaults(request, options = nil)
3690
+ # Pass arguments to `list_backup_vaults` via a request object, either of type
3691
+ # {::Google::Cloud::NetApp::V1::ListBackupVaultsRequest} or an equivalent Hash.
3692
+ #
3693
+ # @param request [::Google::Cloud::NetApp::V1::ListBackupVaultsRequest, ::Hash]
3694
+ # A request object representing the call parameters. Required. To specify no
3695
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3696
+ # @param options [::Gapic::CallOptions, ::Hash]
3697
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3698
+ #
3699
+ # @overload list_backup_vaults(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
3700
+ # Pass arguments to `list_backup_vaults` via keyword arguments. Note that at
3701
+ # least one keyword argument is required. To specify no parameters, or to keep all
3702
+ # the default parameter values, pass an empty Hash as a request object (see above).
3703
+ #
3704
+ # @param parent [::String]
3705
+ # Required. The location for which to retrieve backupVault information,
3706
+ # in the format
3707
+ # `projects/{project_id}/locations/{location}`.
3708
+ # @param page_size [::Integer]
3709
+ # The maximum number of items to return.
3710
+ # @param page_token [::String]
3711
+ # The next_page_token value to use if there are additional
3712
+ # results to retrieve for this list request.
3713
+ # @param order_by [::String]
3714
+ # Sort results. Supported values are "name", "name desc" or "" (unsorted).
3715
+ # @param filter [::String]
3716
+ # List filter.
3717
+ # @yield [result, operation] Access the result along with the TransportOperation object
3718
+ # @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupVaultsResponse]
3719
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3720
+ #
3721
+ # @return [::Google::Cloud::NetApp::V1::ListBackupVaultsResponse]
3722
+ #
3723
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3724
+ #
3725
+ # @example Basic example
3726
+ # require "google/cloud/netapp/v1"
3727
+ #
3728
+ # # Create a client object. The client can be reused for multiple calls.
3729
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
3730
+ #
3731
+ # # Create a request. To set request fields, pass in keyword arguments.
3732
+ # request = Google::Cloud::NetApp::V1::ListBackupVaultsRequest.new
3733
+ #
3734
+ # # Call the list_backup_vaults method.
3735
+ # result = client.list_backup_vaults request
3736
+ #
3737
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3738
+ # # over elements, and API calls will be issued to fetch pages as needed.
3739
+ # result.each do |item|
3740
+ # # Each element is of type ::Google::Cloud::NetApp::V1::BackupVault.
3741
+ # p item
3742
+ # end
3743
+ #
3744
+ def list_backup_vaults request, options = nil
3745
+ raise ::ArgumentError, "request must be provided" if request.nil?
3746
+
3747
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ListBackupVaultsRequest
3748
+
3749
+ # Converts hash and nil to an options object
3750
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3751
+
3752
+ # Customize the options with defaults
3753
+ call_metadata = @config.rpcs.list_backup_vaults.metadata.to_h
3754
+
3755
+ # Set x-goog-api-client and x-goog-user-project headers
3756
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3757
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3758
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
3759
+ transports_version_send: [:rest]
3760
+
3761
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3762
+
3763
+ options.apply_defaults timeout: @config.rpcs.list_backup_vaults.timeout,
3764
+ metadata: call_metadata,
3765
+ retry_policy: @config.rpcs.list_backup_vaults.retry_policy
3766
+
3767
+ options.apply_defaults timeout: @config.timeout,
3768
+ metadata: @config.metadata,
3769
+ retry_policy: @config.retry_policy
3770
+
3771
+ @net_app_stub.list_backup_vaults request, options do |result, operation|
3772
+ yield result, operation if block_given?
3773
+ return result
3774
+ end
3775
+ rescue ::Gapic::Rest::Error => e
3776
+ raise ::Google::Cloud::Error.from_error(e)
3777
+ end
3778
+
3779
+ ##
3780
+ # Updates the settings of a specific backup vault.
3781
+ #
3782
+ # @overload update_backup_vault(request, options = nil)
3783
+ # Pass arguments to `update_backup_vault` via a request object, either of type
3784
+ # {::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest} or an equivalent Hash.
3785
+ #
3786
+ # @param request [::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest, ::Hash]
3787
+ # A request object representing the call parameters. Required. To specify no
3788
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3789
+ # @param options [::Gapic::CallOptions, ::Hash]
3790
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3791
+ #
3792
+ # @overload update_backup_vault(update_mask: nil, backup_vault: nil)
3793
+ # Pass arguments to `update_backup_vault` via keyword arguments. Note that at
3794
+ # least one keyword argument is required. To specify no parameters, or to keep all
3795
+ # the default parameter values, pass an empty Hash as a request object (see above).
3796
+ #
3797
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
3798
+ # Required. Field mask is used to specify the fields to be overwritten in the
3799
+ # Backup resource to be updated.
3800
+ # The fields specified in the update_mask are relative to the resource, not
3801
+ # the full request. A field will be overwritten if it is in the mask. If the
3802
+ # user does not provide a mask then all fields will be overwritten.
3803
+ # @param backup_vault [::Google::Cloud::NetApp::V1::BackupVault, ::Hash]
3804
+ # Required. The backupVault being updated
3805
+ # @yield [result, operation] Access the result along with the TransportOperation object
3806
+ # @yieldparam result [::Gapic::Operation]
3807
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3808
+ #
3809
+ # @return [::Gapic::Operation]
3810
+ #
3811
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3812
+ #
3813
+ # @example Basic example
3814
+ # require "google/cloud/netapp/v1"
3815
+ #
3816
+ # # Create a client object. The client can be reused for multiple calls.
3817
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
3818
+ #
3819
+ # # Create a request. To set request fields, pass in keyword arguments.
3820
+ # request = Google::Cloud::NetApp::V1::UpdateBackupVaultRequest.new
3821
+ #
3822
+ # # Call the update_backup_vault method.
3823
+ # result = client.update_backup_vault request
3824
+ #
3825
+ # # The returned object is of type Gapic::Operation. You can use it to
3826
+ # # check the status of an operation, cancel it, or wait for results.
3827
+ # # Here is how to wait for a response.
3828
+ # result.wait_until_done! timeout: 60
3829
+ # if result.response?
3830
+ # p result.response
3831
+ # else
3832
+ # puts "No response received."
3833
+ # end
3834
+ #
3835
+ def update_backup_vault request, options = nil
3836
+ raise ::ArgumentError, "request must be provided" if request.nil?
3837
+
3838
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::UpdateBackupVaultRequest
3839
+
3840
+ # Converts hash and nil to an options object
3841
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3842
+
3843
+ # Customize the options with defaults
3844
+ call_metadata = @config.rpcs.update_backup_vault.metadata.to_h
3845
+
3846
+ # Set x-goog-api-client and x-goog-user-project headers
3847
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3848
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3849
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
3850
+ transports_version_send: [:rest]
3851
+
3852
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3853
+
3854
+ options.apply_defaults timeout: @config.rpcs.update_backup_vault.timeout,
3855
+ metadata: call_metadata,
3856
+ retry_policy: @config.rpcs.update_backup_vault.retry_policy
3857
+
3858
+ options.apply_defaults timeout: @config.timeout,
3859
+ metadata: @config.metadata,
3860
+ retry_policy: @config.retry_policy
3861
+
3862
+ @net_app_stub.update_backup_vault request, options do |result, operation|
3863
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3864
+ yield result, operation if block_given?
3865
+ return result
3866
+ end
3867
+ rescue ::Gapic::Rest::Error => e
3868
+ raise ::Google::Cloud::Error.from_error(e)
3869
+ end
3870
+
3871
+ ##
3872
+ # Warning! This operation will permanently delete the backup vault.
3873
+ #
3874
+ # @overload delete_backup_vault(request, options = nil)
3875
+ # Pass arguments to `delete_backup_vault` via a request object, either of type
3876
+ # {::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest} or an equivalent Hash.
3877
+ #
3878
+ # @param request [::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest, ::Hash]
3879
+ # A request object representing the call parameters. Required. To specify no
3880
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3881
+ # @param options [::Gapic::CallOptions, ::Hash]
3882
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3883
+ #
3884
+ # @overload delete_backup_vault(name: nil)
3885
+ # Pass arguments to `delete_backup_vault` via keyword arguments. Note that at
3886
+ # least one keyword argument is required. To specify no parameters, or to keep all
3887
+ # the default parameter values, pass an empty Hash as a request object (see above).
3888
+ #
3889
+ # @param name [::String]
3890
+ # Required. The backupVault resource name, in the format
3891
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
3892
+ # @yield [result, operation] Access the result along with the TransportOperation object
3893
+ # @yieldparam result [::Gapic::Operation]
3894
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3895
+ #
3896
+ # @return [::Gapic::Operation]
3897
+ #
3898
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3899
+ #
3900
+ # @example Basic example
3901
+ # require "google/cloud/netapp/v1"
3902
+ #
3903
+ # # Create a client object. The client can be reused for multiple calls.
3904
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
3905
+ #
3906
+ # # Create a request. To set request fields, pass in keyword arguments.
3907
+ # request = Google::Cloud::NetApp::V1::DeleteBackupVaultRequest.new
3908
+ #
3909
+ # # Call the delete_backup_vault method.
3910
+ # result = client.delete_backup_vault request
3911
+ #
3912
+ # # The returned object is of type Gapic::Operation. You can use it to
3913
+ # # check the status of an operation, cancel it, or wait for results.
3914
+ # # Here is how to wait for a response.
3915
+ # result.wait_until_done! timeout: 60
3916
+ # if result.response?
3917
+ # p result.response
3918
+ # else
3919
+ # puts "No response received."
3920
+ # end
3921
+ #
3922
+ def delete_backup_vault request, options = nil
3923
+ raise ::ArgumentError, "request must be provided" if request.nil?
3924
+
3925
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::DeleteBackupVaultRequest
3926
+
3927
+ # Converts hash and nil to an options object
3928
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3929
+
3930
+ # Customize the options with defaults
3931
+ call_metadata = @config.rpcs.delete_backup_vault.metadata.to_h
3932
+
3933
+ # Set x-goog-api-client and x-goog-user-project headers
3934
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3935
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3936
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
3937
+ transports_version_send: [:rest]
3938
+
3939
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3940
+
3941
+ options.apply_defaults timeout: @config.rpcs.delete_backup_vault.timeout,
3942
+ metadata: call_metadata,
3943
+ retry_policy: @config.rpcs.delete_backup_vault.retry_policy
3944
+
3945
+ options.apply_defaults timeout: @config.timeout,
3946
+ metadata: @config.metadata,
3947
+ retry_policy: @config.retry_policy
3948
+
3949
+ @net_app_stub.delete_backup_vault request, options do |result, operation|
3950
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3951
+ yield result, operation if block_given?
3952
+ return result
3953
+ end
3954
+ rescue ::Gapic::Rest::Error => e
3955
+ raise ::Google::Cloud::Error.from_error(e)
3956
+ end
3957
+
3958
+ ##
3959
+ # Creates a backup from the volume specified in the request
3960
+ # The backup can be created from the given snapshot if specified in the
3961
+ # request. If no snapshot specified, there'll be a new snapshot taken to
3962
+ # initiate the backup creation.
3963
+ #
3964
+ # @overload create_backup(request, options = nil)
3965
+ # Pass arguments to `create_backup` via a request object, either of type
3966
+ # {::Google::Cloud::NetApp::V1::CreateBackupRequest} or an equivalent Hash.
3967
+ #
3968
+ # @param request [::Google::Cloud::NetApp::V1::CreateBackupRequest, ::Hash]
3969
+ # A request object representing the call parameters. Required. To specify no
3970
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3971
+ # @param options [::Gapic::CallOptions, ::Hash]
3972
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3973
+ #
3974
+ # @overload create_backup(parent: nil, backup_id: nil, backup: nil)
3975
+ # Pass arguments to `create_backup` via keyword arguments. Note that at
3976
+ # least one keyword argument is required. To specify no parameters, or to keep all
3977
+ # the default parameter values, pass an empty Hash as a request object (see above).
3978
+ #
3979
+ # @param parent [::String]
3980
+ # Required. The NetApp backupVault to create the backups of, in the format
3981
+ # `projects/*/locations/*/backupVaults/{backup_vault_id}`
3982
+ # @param backup_id [::String]
3983
+ # Required. The ID to use for the backup.
3984
+ # The ID must be unique within the specified backupVault.
3985
+ # This value must start with a lowercase letter followed by up to 62
3986
+ # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
3987
+ # Values that do not match this pattern will trigger an INVALID_ARGUMENT
3988
+ # error.
3989
+ # @param backup [::Google::Cloud::NetApp::V1::Backup, ::Hash]
3990
+ # Required. A backup resource
3991
+ # @yield [result, operation] Access the result along with the TransportOperation object
3992
+ # @yieldparam result [::Gapic::Operation]
3993
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3994
+ #
3995
+ # @return [::Gapic::Operation]
3996
+ #
3997
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3998
+ #
3999
+ # @example Basic example
4000
+ # require "google/cloud/netapp/v1"
4001
+ #
4002
+ # # Create a client object. The client can be reused for multiple calls.
4003
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4004
+ #
4005
+ # # Create a request. To set request fields, pass in keyword arguments.
4006
+ # request = Google::Cloud::NetApp::V1::CreateBackupRequest.new
4007
+ #
4008
+ # # Call the create_backup method.
4009
+ # result = client.create_backup request
4010
+ #
4011
+ # # The returned object is of type Gapic::Operation. You can use it to
4012
+ # # check the status of an operation, cancel it, or wait for results.
4013
+ # # Here is how to wait for a response.
4014
+ # result.wait_until_done! timeout: 60
4015
+ # if result.response?
4016
+ # p result.response
4017
+ # else
4018
+ # puts "No response received."
4019
+ # end
4020
+ #
4021
+ def create_backup request, options = nil
4022
+ raise ::ArgumentError, "request must be provided" if request.nil?
4023
+
4024
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::CreateBackupRequest
4025
+
4026
+ # Converts hash and nil to an options object
4027
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4028
+
4029
+ # Customize the options with defaults
4030
+ call_metadata = @config.rpcs.create_backup.metadata.to_h
4031
+
4032
+ # Set x-goog-api-client and x-goog-user-project headers
4033
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4034
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4035
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4036
+ transports_version_send: [:rest]
4037
+
4038
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4039
+
4040
+ options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
4041
+ metadata: call_metadata,
4042
+ retry_policy: @config.rpcs.create_backup.retry_policy
4043
+
4044
+ options.apply_defaults timeout: @config.timeout,
4045
+ metadata: @config.metadata,
4046
+ retry_policy: @config.retry_policy
4047
+
4048
+ @net_app_stub.create_backup request, options do |result, operation|
4049
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4050
+ yield result, operation if block_given?
4051
+ return result
4052
+ end
4053
+ rescue ::Gapic::Rest::Error => e
4054
+ raise ::Google::Cloud::Error.from_error(e)
4055
+ end
4056
+
4057
+ ##
4058
+ # Returns the description of the specified backup
4059
+ #
4060
+ # @overload get_backup(request, options = nil)
4061
+ # Pass arguments to `get_backup` via a request object, either of type
4062
+ # {::Google::Cloud::NetApp::V1::GetBackupRequest} or an equivalent Hash.
4063
+ #
4064
+ # @param request [::Google::Cloud::NetApp::V1::GetBackupRequest, ::Hash]
4065
+ # A request object representing the call parameters. Required. To specify no
4066
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4067
+ # @param options [::Gapic::CallOptions, ::Hash]
4068
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4069
+ #
4070
+ # @overload get_backup(name: nil)
4071
+ # Pass arguments to `get_backup` via keyword arguments. Note that at
4072
+ # least one keyword argument is required. To specify no parameters, or to keep all
4073
+ # the default parameter values, pass an empty Hash as a request object (see above).
4074
+ #
4075
+ # @param name [::String]
4076
+ # Required. The backup resource name, in the format
4077
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
4078
+ # @yield [result, operation] Access the result along with the TransportOperation object
4079
+ # @yieldparam result [::Google::Cloud::NetApp::V1::Backup]
4080
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4081
+ #
4082
+ # @return [::Google::Cloud::NetApp::V1::Backup]
4083
+ #
4084
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4085
+ #
4086
+ # @example Basic example
4087
+ # require "google/cloud/netapp/v1"
4088
+ #
4089
+ # # Create a client object. The client can be reused for multiple calls.
4090
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4091
+ #
4092
+ # # Create a request. To set request fields, pass in keyword arguments.
4093
+ # request = Google::Cloud::NetApp::V1::GetBackupRequest.new
4094
+ #
4095
+ # # Call the get_backup method.
4096
+ # result = client.get_backup request
4097
+ #
4098
+ # # The returned object is of type Google::Cloud::NetApp::V1::Backup.
4099
+ # p result
4100
+ #
4101
+ def get_backup request, options = nil
4102
+ raise ::ArgumentError, "request must be provided" if request.nil?
4103
+
4104
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::GetBackupRequest
4105
+
4106
+ # Converts hash and nil to an options object
4107
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4108
+
4109
+ # Customize the options with defaults
4110
+ call_metadata = @config.rpcs.get_backup.metadata.to_h
4111
+
4112
+ # Set x-goog-api-client and x-goog-user-project headers
4113
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4114
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4115
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4116
+ transports_version_send: [:rest]
4117
+
4118
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4119
+
4120
+ options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
4121
+ metadata: call_metadata,
4122
+ retry_policy: @config.rpcs.get_backup.retry_policy
4123
+
4124
+ options.apply_defaults timeout: @config.timeout,
4125
+ metadata: @config.metadata,
4126
+ retry_policy: @config.retry_policy
4127
+
4128
+ @net_app_stub.get_backup request, options do |result, operation|
4129
+ yield result, operation if block_given?
4130
+ return result
4131
+ end
4132
+ rescue ::Gapic::Rest::Error => e
4133
+ raise ::Google::Cloud::Error.from_error(e)
4134
+ end
4135
+
4136
+ ##
4137
+ # Returns descriptions of all backups for a backupVault.
4138
+ #
4139
+ # @overload list_backups(request, options = nil)
4140
+ # Pass arguments to `list_backups` via a request object, either of type
4141
+ # {::Google::Cloud::NetApp::V1::ListBackupsRequest} or an equivalent Hash.
4142
+ #
4143
+ # @param request [::Google::Cloud::NetApp::V1::ListBackupsRequest, ::Hash]
4144
+ # A request object representing the call parameters. Required. To specify no
4145
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4146
+ # @param options [::Gapic::CallOptions, ::Hash]
4147
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4148
+ #
4149
+ # @overload list_backups(parent: nil, page_size: nil, page_token: nil, order_by: nil, filter: nil)
4150
+ # Pass arguments to `list_backups` via keyword arguments. Note that at
4151
+ # least one keyword argument is required. To specify no parameters, or to keep all
4152
+ # the default parameter values, pass an empty Hash as a request object (see above).
4153
+ #
4154
+ # @param parent [::String]
4155
+ # Required. The backupVault for which to retrieve backup information,
4156
+ # in the format
4157
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
4158
+ # To retrieve backup information for all locations, use "-" for the
4159
+ # `{location}` value.
4160
+ # To retrieve backup information for all backupVaults, use "-" for the
4161
+ # `{backup_vault_id}` value.
4162
+ # To retrieve backup information for a volume, use "-" for the
4163
+ # `{backup_vault_id}` value and specify volume full name with the filter.
4164
+ # @param page_size [::Integer]
4165
+ # The maximum number of items to return. The service may return fewer
4166
+ # than this value. The maximum value
4167
+ # is 1000; values above 1000 will be coerced to 1000.
4168
+ # @param page_token [::String]
4169
+ # The next_page_token value to use if there are additional
4170
+ # results to retrieve for this list request.
4171
+ # @param order_by [::String]
4172
+ # Sort results. Supported values are "name", "name desc" or "" (unsorted).
4173
+ # @param filter [::String]
4174
+ # The standard list filter.
4175
+ # If specified, backups will be returned based on the attribute name that
4176
+ # matches the filter expression. If empty, then no backups are filtered out.
4177
+ # See https://google.aip.dev/160
4178
+ # @yield [result, operation] Access the result along with the TransportOperation object
4179
+ # @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupsResponse]
4180
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4181
+ #
4182
+ # @return [::Google::Cloud::NetApp::V1::ListBackupsResponse]
4183
+ #
4184
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4185
+ #
4186
+ # @example Basic example
4187
+ # require "google/cloud/netapp/v1"
4188
+ #
4189
+ # # Create a client object. The client can be reused for multiple calls.
4190
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4191
+ #
4192
+ # # Create a request. To set request fields, pass in keyword arguments.
4193
+ # request = Google::Cloud::NetApp::V1::ListBackupsRequest.new
4194
+ #
4195
+ # # Call the list_backups method.
4196
+ # result = client.list_backups request
4197
+ #
4198
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4199
+ # # over elements, and API calls will be issued to fetch pages as needed.
4200
+ # result.each do |item|
4201
+ # # Each element is of type ::Google::Cloud::NetApp::V1::Backup.
4202
+ # p item
4203
+ # end
4204
+ #
4205
+ def list_backups request, options = nil
4206
+ raise ::ArgumentError, "request must be provided" if request.nil?
4207
+
4208
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ListBackupsRequest
4209
+
4210
+ # Converts hash and nil to an options object
4211
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4212
+
4213
+ # Customize the options with defaults
4214
+ call_metadata = @config.rpcs.list_backups.metadata.to_h
4215
+
4216
+ # Set x-goog-api-client and x-goog-user-project headers
4217
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4218
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4219
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4220
+ transports_version_send: [:rest]
4221
+
4222
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4223
+
4224
+ options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
4225
+ metadata: call_metadata,
4226
+ retry_policy: @config.rpcs.list_backups.retry_policy
4227
+
4228
+ options.apply_defaults timeout: @config.timeout,
4229
+ metadata: @config.metadata,
4230
+ retry_policy: @config.retry_policy
4231
+
4232
+ @net_app_stub.list_backups request, options do |result, operation|
4233
+ yield result, operation if block_given?
4234
+ return result
4235
+ end
4236
+ rescue ::Gapic::Rest::Error => e
4237
+ raise ::Google::Cloud::Error.from_error(e)
4238
+ end
4239
+
4240
+ ##
4241
+ # Warning! This operation will permanently delete the backup.
4242
+ #
4243
+ # @overload delete_backup(request, options = nil)
4244
+ # Pass arguments to `delete_backup` via a request object, either of type
4245
+ # {::Google::Cloud::NetApp::V1::DeleteBackupRequest} or an equivalent Hash.
4246
+ #
4247
+ # @param request [::Google::Cloud::NetApp::V1::DeleteBackupRequest, ::Hash]
4248
+ # A request object representing the call parameters. Required. To specify no
4249
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4250
+ # @param options [::Gapic::CallOptions, ::Hash]
4251
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4252
+ #
4253
+ # @overload delete_backup(name: nil)
4254
+ # Pass arguments to `delete_backup` via keyword arguments. Note that at
4255
+ # least one keyword argument is required. To specify no parameters, or to keep all
4256
+ # the default parameter values, pass an empty Hash as a request object (see above).
4257
+ #
4258
+ # @param name [::String]
4259
+ # Required. The backup resource name, in the format
4260
+ # `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}/backups/{backup_id}`
4261
+ # @yield [result, operation] Access the result along with the TransportOperation object
4262
+ # @yieldparam result [::Gapic::Operation]
4263
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4264
+ #
4265
+ # @return [::Gapic::Operation]
4266
+ #
4267
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4268
+ #
4269
+ # @example Basic example
4270
+ # require "google/cloud/netapp/v1"
4271
+ #
4272
+ # # Create a client object. The client can be reused for multiple calls.
4273
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4274
+ #
4275
+ # # Create a request. To set request fields, pass in keyword arguments.
4276
+ # request = Google::Cloud::NetApp::V1::DeleteBackupRequest.new
4277
+ #
4278
+ # # Call the delete_backup method.
4279
+ # result = client.delete_backup request
4280
+ #
4281
+ # # The returned object is of type Gapic::Operation. You can use it to
4282
+ # # check the status of an operation, cancel it, or wait for results.
4283
+ # # Here is how to wait for a response.
4284
+ # result.wait_until_done! timeout: 60
4285
+ # if result.response?
4286
+ # p result.response
4287
+ # else
4288
+ # puts "No response received."
4289
+ # end
4290
+ #
4291
+ def delete_backup request, options = nil
4292
+ raise ::ArgumentError, "request must be provided" if request.nil?
4293
+
4294
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::DeleteBackupRequest
4295
+
4296
+ # Converts hash and nil to an options object
4297
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4298
+
4299
+ # Customize the options with defaults
4300
+ call_metadata = @config.rpcs.delete_backup.metadata.to_h
4301
+
4302
+ # Set x-goog-api-client and x-goog-user-project headers
4303
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4304
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4305
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4306
+ transports_version_send: [:rest]
4307
+
4308
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4309
+
4310
+ options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
4311
+ metadata: call_metadata,
4312
+ retry_policy: @config.rpcs.delete_backup.retry_policy
4313
+
4314
+ options.apply_defaults timeout: @config.timeout,
4315
+ metadata: @config.metadata,
4316
+ retry_policy: @config.retry_policy
4317
+
4318
+ @net_app_stub.delete_backup request, options do |result, operation|
4319
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4320
+ yield result, operation if block_given?
4321
+ return result
4322
+ end
4323
+ rescue ::Gapic::Rest::Error => e
4324
+ raise ::Google::Cloud::Error.from_error(e)
4325
+ end
4326
+
4327
+ ##
4328
+ # Update backup with full spec.
4329
+ #
4330
+ # @overload update_backup(request, options = nil)
4331
+ # Pass arguments to `update_backup` via a request object, either of type
4332
+ # {::Google::Cloud::NetApp::V1::UpdateBackupRequest} or an equivalent Hash.
4333
+ #
4334
+ # @param request [::Google::Cloud::NetApp::V1::UpdateBackupRequest, ::Hash]
4335
+ # A request object representing the call parameters. Required. To specify no
4336
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4337
+ # @param options [::Gapic::CallOptions, ::Hash]
4338
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4339
+ #
4340
+ # @overload update_backup(update_mask: nil, backup: nil)
4341
+ # Pass arguments to `update_backup` via keyword arguments. Note that at
4342
+ # least one keyword argument is required. To specify no parameters, or to keep all
4343
+ # the default parameter values, pass an empty Hash as a request object (see above).
4344
+ #
4345
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4346
+ # Required. Field mask is used to specify the fields to be overwritten in the
4347
+ # Backup resource to be updated.
4348
+ # The fields specified in the update_mask are relative to the resource, not
4349
+ # the full request. A field will be overwritten if it is in the mask. If the
4350
+ # user does not provide a mask then all fields will be overwritten.
4351
+ # @param backup [::Google::Cloud::NetApp::V1::Backup, ::Hash]
4352
+ # Required. The backup being updated
4353
+ # @yield [result, operation] Access the result along with the TransportOperation object
4354
+ # @yieldparam result [::Gapic::Operation]
4355
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4356
+ #
4357
+ # @return [::Gapic::Operation]
4358
+ #
4359
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4360
+ #
4361
+ # @example Basic example
4362
+ # require "google/cloud/netapp/v1"
4363
+ #
4364
+ # # Create a client object. The client can be reused for multiple calls.
4365
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4366
+ #
4367
+ # # Create a request. To set request fields, pass in keyword arguments.
4368
+ # request = Google::Cloud::NetApp::V1::UpdateBackupRequest.new
4369
+ #
4370
+ # # Call the update_backup method.
4371
+ # result = client.update_backup request
4372
+ #
4373
+ # # The returned object is of type Gapic::Operation. You can use it to
4374
+ # # check the status of an operation, cancel it, or wait for results.
4375
+ # # Here is how to wait for a response.
4376
+ # result.wait_until_done! timeout: 60
4377
+ # if result.response?
4378
+ # p result.response
4379
+ # else
4380
+ # puts "No response received."
4381
+ # end
4382
+ #
4383
+ def update_backup request, options = nil
4384
+ raise ::ArgumentError, "request must be provided" if request.nil?
4385
+
4386
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::UpdateBackupRequest
4387
+
4388
+ # Converts hash and nil to an options object
4389
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4390
+
4391
+ # Customize the options with defaults
4392
+ call_metadata = @config.rpcs.update_backup.metadata.to_h
4393
+
4394
+ # Set x-goog-api-client and x-goog-user-project headers
4395
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4396
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4397
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4398
+ transports_version_send: [:rest]
4399
+
4400
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4401
+
4402
+ options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
4403
+ metadata: call_metadata,
4404
+ retry_policy: @config.rpcs.update_backup.retry_policy
4405
+
4406
+ options.apply_defaults timeout: @config.timeout,
4407
+ metadata: @config.metadata,
4408
+ retry_policy: @config.retry_policy
4409
+
4410
+ @net_app_stub.update_backup request, options do |result, operation|
4411
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4412
+ yield result, operation if block_given?
4413
+ return result
4414
+ end
4415
+ rescue ::Gapic::Rest::Error => e
4416
+ raise ::Google::Cloud::Error.from_error(e)
4417
+ end
4418
+
4419
+ ##
4420
+ # Creates new backup policy
4421
+ #
4422
+ # @overload create_backup_policy(request, options = nil)
4423
+ # Pass arguments to `create_backup_policy` via a request object, either of type
4424
+ # {::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest} or an equivalent Hash.
4425
+ #
4426
+ # @param request [::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest, ::Hash]
4427
+ # A request object representing the call parameters. Required. To specify no
4428
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4429
+ # @param options [::Gapic::CallOptions, ::Hash]
4430
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4431
+ #
4432
+ # @overload create_backup_policy(parent: nil, backup_policy: nil, backup_policy_id: nil)
4433
+ # Pass arguments to `create_backup_policy` via keyword arguments. Note that at
4434
+ # least one keyword argument is required. To specify no parameters, or to keep all
4435
+ # the default parameter values, pass an empty Hash as a request object (see above).
4436
+ #
4437
+ # @param parent [::String]
4438
+ # Required. The location to create the backup policies of, in the format
4439
+ # `projects/{project_id}/locations/{location}`
4440
+ # @param backup_policy [::Google::Cloud::NetApp::V1::BackupPolicy, ::Hash]
4441
+ # Required. A backupPolicy resource
4442
+ # @param backup_policy_id [::String]
4443
+ # Required. The ID to use for the backup policy.
4444
+ # The ID must be unique within the specified location.
4445
+ # This value must start with a lowercase letter followed by up to 62
4446
+ # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
4447
+ # @yield [result, operation] Access the result along with the TransportOperation object
4448
+ # @yieldparam result [::Gapic::Operation]
4449
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4450
+ #
4451
+ # @return [::Gapic::Operation]
4452
+ #
4453
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4454
+ #
4455
+ # @example Basic example
4456
+ # require "google/cloud/netapp/v1"
4457
+ #
4458
+ # # Create a client object. The client can be reused for multiple calls.
4459
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4460
+ #
4461
+ # # Create a request. To set request fields, pass in keyword arguments.
4462
+ # request = Google::Cloud::NetApp::V1::CreateBackupPolicyRequest.new
4463
+ #
4464
+ # # Call the create_backup_policy method.
4465
+ # result = client.create_backup_policy request
4466
+ #
4467
+ # # The returned object is of type Gapic::Operation. You can use it to
4468
+ # # check the status of an operation, cancel it, or wait for results.
4469
+ # # Here is how to wait for a response.
4470
+ # result.wait_until_done! timeout: 60
4471
+ # if result.response?
4472
+ # p result.response
4473
+ # else
4474
+ # puts "No response received."
4475
+ # end
4476
+ #
4477
+ def create_backup_policy request, options = nil
4478
+ raise ::ArgumentError, "request must be provided" if request.nil?
4479
+
4480
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::CreateBackupPolicyRequest
4481
+
4482
+ # Converts hash and nil to an options object
4483
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4484
+
4485
+ # Customize the options with defaults
4486
+ call_metadata = @config.rpcs.create_backup_policy.metadata.to_h
4487
+
4488
+ # Set x-goog-api-client and x-goog-user-project headers
4489
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4490
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4491
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4492
+ transports_version_send: [:rest]
4493
+
4494
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4495
+
4496
+ options.apply_defaults timeout: @config.rpcs.create_backup_policy.timeout,
4497
+ metadata: call_metadata,
4498
+ retry_policy: @config.rpcs.create_backup_policy.retry_policy
4499
+
4500
+ options.apply_defaults timeout: @config.timeout,
4501
+ metadata: @config.metadata,
4502
+ retry_policy: @config.retry_policy
4503
+
4504
+ @net_app_stub.create_backup_policy request, options do |result, operation|
4505
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4506
+ yield result, operation if block_given?
4507
+ return result
4508
+ end
4509
+ rescue ::Gapic::Rest::Error => e
4510
+ raise ::Google::Cloud::Error.from_error(e)
4511
+ end
4512
+
4513
+ ##
4514
+ # Returns the description of the specified backup policy by backup_policy_id.
4515
+ #
4516
+ # @overload get_backup_policy(request, options = nil)
4517
+ # Pass arguments to `get_backup_policy` via a request object, either of type
4518
+ # {::Google::Cloud::NetApp::V1::GetBackupPolicyRequest} or an equivalent Hash.
4519
+ #
4520
+ # @param request [::Google::Cloud::NetApp::V1::GetBackupPolicyRequest, ::Hash]
4521
+ # A request object representing the call parameters. Required. To specify no
4522
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4523
+ # @param options [::Gapic::CallOptions, ::Hash]
4524
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4525
+ #
4526
+ # @overload get_backup_policy(name: nil)
4527
+ # Pass arguments to `get_backup_policy` via keyword arguments. Note that at
4528
+ # least one keyword argument is required. To specify no parameters, or to keep all
4529
+ # the default parameter values, pass an empty Hash as a request object (see above).
4530
+ #
4531
+ # @param name [::String]
4532
+ # Required. The backupPolicy resource name, in the format
4533
+ # `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`
4534
+ # @yield [result, operation] Access the result along with the TransportOperation object
4535
+ # @yieldparam result [::Google::Cloud::NetApp::V1::BackupPolicy]
4536
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4537
+ #
4538
+ # @return [::Google::Cloud::NetApp::V1::BackupPolicy]
4539
+ #
4540
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4541
+ #
4542
+ # @example Basic example
4543
+ # require "google/cloud/netapp/v1"
4544
+ #
4545
+ # # Create a client object. The client can be reused for multiple calls.
4546
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4547
+ #
4548
+ # # Create a request. To set request fields, pass in keyword arguments.
4549
+ # request = Google::Cloud::NetApp::V1::GetBackupPolicyRequest.new
4550
+ #
4551
+ # # Call the get_backup_policy method.
4552
+ # result = client.get_backup_policy request
4553
+ #
4554
+ # # The returned object is of type Google::Cloud::NetApp::V1::BackupPolicy.
4555
+ # p result
4556
+ #
4557
+ def get_backup_policy request, options = nil
4558
+ raise ::ArgumentError, "request must be provided" if request.nil?
4559
+
4560
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::GetBackupPolicyRequest
4561
+
4562
+ # Converts hash and nil to an options object
4563
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4564
+
4565
+ # Customize the options with defaults
4566
+ call_metadata = @config.rpcs.get_backup_policy.metadata.to_h
4567
+
4568
+ # Set x-goog-api-client and x-goog-user-project headers
4569
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4570
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4571
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4572
+ transports_version_send: [:rest]
4573
+
4574
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4575
+
4576
+ options.apply_defaults timeout: @config.rpcs.get_backup_policy.timeout,
4577
+ metadata: call_metadata,
4578
+ retry_policy: @config.rpcs.get_backup_policy.retry_policy
4579
+
4580
+ options.apply_defaults timeout: @config.timeout,
4581
+ metadata: @config.metadata,
4582
+ retry_policy: @config.retry_policy
4583
+
4584
+ @net_app_stub.get_backup_policy request, options do |result, operation|
4585
+ yield result, operation if block_given?
4586
+ return result
4587
+ end
4588
+ rescue ::Gapic::Rest::Error => e
4589
+ raise ::Google::Cloud::Error.from_error(e)
4590
+ end
4591
+
4592
+ ##
4593
+ # Returns list of all available backup policies.
4594
+ #
4595
+ # @overload list_backup_policies(request, options = nil)
4596
+ # Pass arguments to `list_backup_policies` via a request object, either of type
4597
+ # {::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest} or an equivalent Hash.
4598
+ #
4599
+ # @param request [::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest, ::Hash]
4600
+ # A request object representing the call parameters. Required. To specify no
4601
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4602
+ # @param options [::Gapic::CallOptions, ::Hash]
4603
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4604
+ #
4605
+ # @overload list_backup_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
4606
+ # Pass arguments to `list_backup_policies` via keyword arguments. Note that at
4607
+ # least one keyword argument is required. To specify no parameters, or to keep all
4608
+ # the default parameter values, pass an empty Hash as a request object (see above).
4609
+ #
4610
+ # @param parent [::String]
4611
+ # Required. Parent value for ListBackupPoliciesRequest
4612
+ # @param page_size [::Integer]
4613
+ # Requested page size. Server may return fewer items than requested.
4614
+ # If unspecified, the server will pick an appropriate default.
4615
+ # @param page_token [::String]
4616
+ # A token identifying a page of results the server should return.
4617
+ # @param filter [::String]
4618
+ # Filtering results
4619
+ # @param order_by [::String]
4620
+ # Hint for how to order the results
4621
+ # @yield [result, operation] Access the result along with the TransportOperation object
4622
+ # @yieldparam result [::Google::Cloud::NetApp::V1::ListBackupPoliciesResponse]
4623
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4624
+ #
4625
+ # @return [::Google::Cloud::NetApp::V1::ListBackupPoliciesResponse]
4626
+ #
4627
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4628
+ #
4629
+ # @example Basic example
4630
+ # require "google/cloud/netapp/v1"
4631
+ #
4632
+ # # Create a client object. The client can be reused for multiple calls.
4633
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4634
+ #
4635
+ # # Create a request. To set request fields, pass in keyword arguments.
4636
+ # request = Google::Cloud::NetApp::V1::ListBackupPoliciesRequest.new
4637
+ #
4638
+ # # Call the list_backup_policies method.
4639
+ # result = client.list_backup_policies request
4640
+ #
4641
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
4642
+ # # over elements, and API calls will be issued to fetch pages as needed.
4643
+ # result.each do |item|
4644
+ # # Each element is of type ::Google::Cloud::NetApp::V1::BackupPolicy.
4645
+ # p item
4646
+ # end
4647
+ #
4648
+ def list_backup_policies request, options = nil
4649
+ raise ::ArgumentError, "request must be provided" if request.nil?
4650
+
4651
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::ListBackupPoliciesRequest
4652
+
4653
+ # Converts hash and nil to an options object
4654
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4655
+
4656
+ # Customize the options with defaults
4657
+ call_metadata = @config.rpcs.list_backup_policies.metadata.to_h
4658
+
4659
+ # Set x-goog-api-client and x-goog-user-project headers
4660
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4661
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4662
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4663
+ transports_version_send: [:rest]
4664
+
4665
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4666
+
4667
+ options.apply_defaults timeout: @config.rpcs.list_backup_policies.timeout,
4668
+ metadata: call_metadata,
4669
+ retry_policy: @config.rpcs.list_backup_policies.retry_policy
4670
+
4671
+ options.apply_defaults timeout: @config.timeout,
4672
+ metadata: @config.metadata,
4673
+ retry_policy: @config.retry_policy
4674
+
4675
+ @net_app_stub.list_backup_policies request, options do |result, operation|
4676
+ yield result, operation if block_given?
4677
+ return result
4678
+ end
4679
+ rescue ::Gapic::Rest::Error => e
4680
+ raise ::Google::Cloud::Error.from_error(e)
4681
+ end
4682
+
4683
+ ##
4684
+ # Updates settings of a specific backup policy.
4685
+ #
4686
+ # @overload update_backup_policy(request, options = nil)
4687
+ # Pass arguments to `update_backup_policy` via a request object, either of type
4688
+ # {::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest} or an equivalent Hash.
4689
+ #
4690
+ # @param request [::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest, ::Hash]
4691
+ # A request object representing the call parameters. Required. To specify no
4692
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4693
+ # @param options [::Gapic::CallOptions, ::Hash]
4694
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4695
+ #
4696
+ # @overload update_backup_policy(update_mask: nil, backup_policy: nil)
4697
+ # Pass arguments to `update_backup_policy` via keyword arguments. Note that at
4698
+ # least one keyword argument is required. To specify no parameters, or to keep all
4699
+ # the default parameter values, pass an empty Hash as a request object (see above).
4700
+ #
4701
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4702
+ # Required. Field mask is used to specify the fields to be overwritten in the
4703
+ # Backup Policy resource by the update.
4704
+ # The fields specified in the update_mask are relative to the resource, not
4705
+ # the full request. A field will be overwritten if it is in the mask. If the
4706
+ # user does not provide a mask then all fields will be overwritten.
4707
+ # @param backup_policy [::Google::Cloud::NetApp::V1::BackupPolicy, ::Hash]
4708
+ # Required. The backup policy being updated
4709
+ # @yield [result, operation] Access the result along with the TransportOperation object
4710
+ # @yieldparam result [::Gapic::Operation]
4711
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4712
+ #
4713
+ # @return [::Gapic::Operation]
4714
+ #
4715
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4716
+ #
4717
+ # @example Basic example
4718
+ # require "google/cloud/netapp/v1"
4719
+ #
4720
+ # # Create a client object. The client can be reused for multiple calls.
4721
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4722
+ #
4723
+ # # Create a request. To set request fields, pass in keyword arguments.
4724
+ # request = Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest.new
4725
+ #
4726
+ # # Call the update_backup_policy method.
4727
+ # result = client.update_backup_policy request
4728
+ #
4729
+ # # The returned object is of type Gapic::Operation. You can use it to
4730
+ # # check the status of an operation, cancel it, or wait for results.
4731
+ # # Here is how to wait for a response.
4732
+ # result.wait_until_done! timeout: 60
4733
+ # if result.response?
4734
+ # p result.response
4735
+ # else
4736
+ # puts "No response received."
4737
+ # end
4738
+ #
4739
+ def update_backup_policy request, options = nil
4740
+ raise ::ArgumentError, "request must be provided" if request.nil?
4741
+
4742
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::UpdateBackupPolicyRequest
4743
+
4744
+ # Converts hash and nil to an options object
4745
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4746
+
4747
+ # Customize the options with defaults
4748
+ call_metadata = @config.rpcs.update_backup_policy.metadata.to_h
4749
+
4750
+ # Set x-goog-api-client and x-goog-user-project headers
4751
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4752
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4753
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4754
+ transports_version_send: [:rest]
4755
+
4756
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4757
+
4758
+ options.apply_defaults timeout: @config.rpcs.update_backup_policy.timeout,
4759
+ metadata: call_metadata,
4760
+ retry_policy: @config.rpcs.update_backup_policy.retry_policy
4761
+
4762
+ options.apply_defaults timeout: @config.timeout,
4763
+ metadata: @config.metadata,
4764
+ retry_policy: @config.retry_policy
4765
+
4766
+ @net_app_stub.update_backup_policy request, options do |result, operation|
4767
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4768
+ yield result, operation if block_given?
4769
+ return result
4770
+ end
4771
+ rescue ::Gapic::Rest::Error => e
4772
+ raise ::Google::Cloud::Error.from_error(e)
4773
+ end
4774
+
4775
+ ##
4776
+ # Warning! This operation will permanently delete the backup policy.
4777
+ #
4778
+ # @overload delete_backup_policy(request, options = nil)
4779
+ # Pass arguments to `delete_backup_policy` via a request object, either of type
4780
+ # {::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest} or an equivalent Hash.
4781
+ #
4782
+ # @param request [::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest, ::Hash]
4783
+ # A request object representing the call parameters. Required. To specify no
4784
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
4785
+ # @param options [::Gapic::CallOptions, ::Hash]
4786
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
4787
+ #
4788
+ # @overload delete_backup_policy(name: nil)
4789
+ # Pass arguments to `delete_backup_policy` via keyword arguments. Note that at
4790
+ # least one keyword argument is required. To specify no parameters, or to keep all
4791
+ # the default parameter values, pass an empty Hash as a request object (see above).
4792
+ #
4793
+ # @param name [::String]
4794
+ # Required. The backup policy resource name, in the format
4795
+ # `projects/{project_id}/locations/{location}/backupPolicies/{backup_policy_id}`
4796
+ # @yield [result, operation] Access the result along with the TransportOperation object
4797
+ # @yieldparam result [::Gapic::Operation]
4798
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
4799
+ #
4800
+ # @return [::Gapic::Operation]
4801
+ #
4802
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
4803
+ #
4804
+ # @example Basic example
4805
+ # require "google/cloud/netapp/v1"
4806
+ #
4807
+ # # Create a client object. The client can be reused for multiple calls.
4808
+ # client = Google::Cloud::NetApp::V1::NetApp::Rest::Client.new
4809
+ #
4810
+ # # Create a request. To set request fields, pass in keyword arguments.
4811
+ # request = Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest.new
4812
+ #
4813
+ # # Call the delete_backup_policy method.
4814
+ # result = client.delete_backup_policy request
4815
+ #
4816
+ # # The returned object is of type Gapic::Operation. You can use it to
4817
+ # # check the status of an operation, cancel it, or wait for results.
4818
+ # # Here is how to wait for a response.
4819
+ # result.wait_until_done! timeout: 60
4820
+ # if result.response?
4821
+ # p result.response
4822
+ # else
4823
+ # puts "No response received."
4824
+ # end
4825
+ #
4826
+ def delete_backup_policy request, options = nil
4827
+ raise ::ArgumentError, "request must be provided" if request.nil?
4828
+
4829
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetApp::V1::DeleteBackupPolicyRequest
4830
+
4831
+ # Converts hash and nil to an options object
4832
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
4833
+
4834
+ # Customize the options with defaults
4835
+ call_metadata = @config.rpcs.delete_backup_policy.metadata.to_h
4836
+
4837
+ # Set x-goog-api-client and x-goog-user-project headers
4838
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
4839
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
4840
+ gapic_version: ::Google::Cloud::NetApp::V1::VERSION,
4841
+ transports_version_send: [:rest]
4842
+
4843
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
4844
+
4845
+ options.apply_defaults timeout: @config.rpcs.delete_backup_policy.timeout,
4846
+ metadata: call_metadata,
4847
+ retry_policy: @config.rpcs.delete_backup_policy.retry_policy
4848
+
4849
+ options.apply_defaults timeout: @config.timeout,
4850
+ metadata: @config.metadata,
4851
+ retry_policy: @config.retry_policy
4852
+
4853
+ @net_app_stub.delete_backup_policy request, options do |result, operation|
4854
+ result = ::Gapic::Operation.new result, @operations_client, options: options
4855
+ yield result, operation if block_given?
4856
+ return result
4857
+ end
4858
+ rescue ::Gapic::Rest::Error => e
4859
+ raise ::Google::Cloud::Error.from_error(e)
4860
+ end
4861
+
4862
+ ##
4863
+ # Configuration class for the NetApp REST API.
4864
+ #
4865
+ # This class represents the configuration for NetApp REST,
4866
+ # providing control over timeouts, retry behavior, logging, transport
4867
+ # parameters, and other low-level controls. Certain parameters can also be
4868
+ # applied individually to specific RPCs. See
4869
+ # {::Google::Cloud::NetApp::V1::NetApp::Rest::Client::Configuration::Rpcs}
4870
+ # for a list of RPCs that can be configured independently.
4871
+ #
4872
+ # Configuration can be applied globally to all clients, or to a single client
4873
+ # on construction.
4874
+ #
4875
+ # @example
4876
+ #
4877
+ # # Modify the global config, setting the timeout for
4878
+ # # list_storage_pools to 20 seconds,
4879
+ # # and all remaining timeouts to 10 seconds.
4880
+ # ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.configure do |config|
4881
+ # config.timeout = 10.0
4882
+ # config.rpcs.list_storage_pools.timeout = 20.0
4883
+ # end
4884
+ #
4885
+ # # Apply the above configuration only to a new client.
4886
+ # client = ::Google::Cloud::NetApp::V1::NetApp::Rest::Client.new do |config|
4887
+ # config.timeout = 10.0
4888
+ # config.rpcs.list_storage_pools.timeout = 20.0
4889
+ # end
4890
+ #
4891
+ # @!attribute [rw] endpoint
4892
+ # A custom service endpoint, as a hostname or hostname:port. The default is
4893
+ # nil, indicating to use the default endpoint in the current universe domain.
4894
+ # @return [::String,nil]
4895
+ # @!attribute [rw] credentials
4896
+ # Credentials to send with calls. You may provide any of the following types:
4897
+ # * (`String`) The path to a service account key file in JSON format
4898
+ # * (`Hash`) A service account key as a Hash
4899
+ # * (`Google::Auth::Credentials`) A googleauth credentials object
4900
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
4901
+ # * (`Signet::OAuth2::Client`) A signet oauth2 client object
4902
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
4903
+ # * (`nil`) indicating no credentials
4904
+ # @return [::Object]
4905
+ # @!attribute [rw] scope
4906
+ # The OAuth scopes
4907
+ # @return [::Array<::String>]
4908
+ # @!attribute [rw] lib_name
4909
+ # The library name as recorded in instrumentation and logging
4910
+ # @return [::String]
4911
+ # @!attribute [rw] lib_version
4912
+ # The library version as recorded in instrumentation and logging
4913
+ # @return [::String]
4914
+ # @!attribute [rw] timeout
4915
+ # The call timeout in seconds.
4916
+ # @return [::Numeric]
4917
+ # @!attribute [rw] metadata
4918
+ # Additional headers to be sent with the call.
4919
+ # @return [::Hash{::Symbol=>::String}]
4920
+ # @!attribute [rw] retry_policy
4921
+ # The retry policy. The value is a hash with the following keys:
4922
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4923
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4924
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
4925
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4926
+ # trigger a retry.
4927
+ # @return [::Hash]
4928
+ # @!attribute [rw] quota_project
4929
+ # A separate project against which to charge quota.
4930
+ # @return [::String]
4931
+ # @!attribute [rw] universe_domain
4932
+ # The universe domain within which to make requests. This determines the
4933
+ # default endpoint URL. The default value of nil uses the environment
4934
+ # universe (usually the default "googleapis.com" universe).
4935
+ # @return [::String,nil]
4936
+ #
4937
+ class Configuration
4938
+ extend ::Gapic::Config
4939
+
4940
+ # @private
4941
+ # The endpoint specific to the default "googleapis.com" universe. Deprecated.
4942
+ DEFAULT_ENDPOINT = "netapp.googleapis.com"
4943
+
4944
+ config_attr :endpoint, nil, ::String, nil
4945
+ config_attr :credentials, nil do |value|
4946
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
4947
+ allowed.any? { |klass| klass === value }
4948
+ end
4949
+ config_attr :scope, nil, ::String, ::Array, nil
4950
+ config_attr :lib_name, nil, ::String, nil
4951
+ config_attr :lib_version, nil, ::String, nil
4952
+ config_attr :timeout, nil, ::Numeric, nil
4953
+ config_attr :metadata, nil, ::Hash, nil
4954
+ config_attr :retry_policy, nil, ::Hash, ::Proc, nil
4955
+ config_attr :quota_project, nil, ::String, nil
4956
+ config_attr :universe_domain, nil, ::String, nil
4957
+
4958
+ # @private
4959
+ # Overrides for http bindings for the RPCs of this service
4960
+ # are only used when this service is used as mixin, and only
4961
+ # by the host service.
4962
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
4963
+ config_attr :bindings_override, {}, ::Hash, nil
4964
+
4965
+ # @private
4966
+ def initialize parent_config = nil
4967
+ @parent_config = parent_config unless parent_config.nil?
4968
+
4969
+ yield self if block_given?
4970
+ end
4971
+
4972
+ ##
4973
+ # Configurations for individual RPCs
4974
+ # @return [Rpcs]
4975
+ #
4976
+ def rpcs
4977
+ @rpcs ||= begin
4978
+ parent_rpcs = nil
4979
+ parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
4980
+ Rpcs.new parent_rpcs
4981
+ end
4982
+ end
4983
+
4984
+ ##
4985
+ # Configuration RPC class for the NetApp API.
4986
+ #
4987
+ # Includes fields providing the configuration for each RPC in this service.
4988
+ # Each configuration object is of type `Gapic::Config::Method` and includes
4989
+ # the following configuration fields:
4990
+ #
4991
+ # * `timeout` (*type:* `Numeric`) - The call timeout in seconds
4992
+ # * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
4993
+ # * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
4994
+ # include the following keys:
4995
+ # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
4996
+ # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
4997
+ # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
4998
+ # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
4999
+ # trigger a retry.
3572
5000
  #
3573
5001
  class Rpcs
3574
5002
  ##
@@ -3751,6 +5179,81 @@ module Google
3751
5179
  # @return [::Gapic::Config::Method]
3752
5180
  #
3753
5181
  attr_reader :reverse_replication_direction
5182
+ ##
5183
+ # RPC-specific configuration for `create_backup_vault`
5184
+ # @return [::Gapic::Config::Method]
5185
+ #
5186
+ attr_reader :create_backup_vault
5187
+ ##
5188
+ # RPC-specific configuration for `get_backup_vault`
5189
+ # @return [::Gapic::Config::Method]
5190
+ #
5191
+ attr_reader :get_backup_vault
5192
+ ##
5193
+ # RPC-specific configuration for `list_backup_vaults`
5194
+ # @return [::Gapic::Config::Method]
5195
+ #
5196
+ attr_reader :list_backup_vaults
5197
+ ##
5198
+ # RPC-specific configuration for `update_backup_vault`
5199
+ # @return [::Gapic::Config::Method]
5200
+ #
5201
+ attr_reader :update_backup_vault
5202
+ ##
5203
+ # RPC-specific configuration for `delete_backup_vault`
5204
+ # @return [::Gapic::Config::Method]
5205
+ #
5206
+ attr_reader :delete_backup_vault
5207
+ ##
5208
+ # RPC-specific configuration for `create_backup`
5209
+ # @return [::Gapic::Config::Method]
5210
+ #
5211
+ attr_reader :create_backup
5212
+ ##
5213
+ # RPC-specific configuration for `get_backup`
5214
+ # @return [::Gapic::Config::Method]
5215
+ #
5216
+ attr_reader :get_backup
5217
+ ##
5218
+ # RPC-specific configuration for `list_backups`
5219
+ # @return [::Gapic::Config::Method]
5220
+ #
5221
+ attr_reader :list_backups
5222
+ ##
5223
+ # RPC-specific configuration for `delete_backup`
5224
+ # @return [::Gapic::Config::Method]
5225
+ #
5226
+ attr_reader :delete_backup
5227
+ ##
5228
+ # RPC-specific configuration for `update_backup`
5229
+ # @return [::Gapic::Config::Method]
5230
+ #
5231
+ attr_reader :update_backup
5232
+ ##
5233
+ # RPC-specific configuration for `create_backup_policy`
5234
+ # @return [::Gapic::Config::Method]
5235
+ #
5236
+ attr_reader :create_backup_policy
5237
+ ##
5238
+ # RPC-specific configuration for `get_backup_policy`
5239
+ # @return [::Gapic::Config::Method]
5240
+ #
5241
+ attr_reader :get_backup_policy
5242
+ ##
5243
+ # RPC-specific configuration for `list_backup_policies`
5244
+ # @return [::Gapic::Config::Method]
5245
+ #
5246
+ attr_reader :list_backup_policies
5247
+ ##
5248
+ # RPC-specific configuration for `update_backup_policy`
5249
+ # @return [::Gapic::Config::Method]
5250
+ #
5251
+ attr_reader :update_backup_policy
5252
+ ##
5253
+ # RPC-specific configuration for `delete_backup_policy`
5254
+ # @return [::Gapic::Config::Method]
5255
+ #
5256
+ attr_reader :delete_backup_policy
3754
5257
 
3755
5258
  # @private
3756
5259
  def initialize parent_rpcs = nil
@@ -3826,6 +5329,36 @@ module Google
3826
5329
  @resume_replication = ::Gapic::Config::Method.new resume_replication_config
3827
5330
  reverse_replication_direction_config = parent_rpcs.reverse_replication_direction if parent_rpcs.respond_to? :reverse_replication_direction
3828
5331
  @reverse_replication_direction = ::Gapic::Config::Method.new reverse_replication_direction_config
5332
+ create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
5333
+ @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
5334
+ get_backup_vault_config = parent_rpcs.get_backup_vault if parent_rpcs.respond_to? :get_backup_vault
5335
+ @get_backup_vault = ::Gapic::Config::Method.new get_backup_vault_config
5336
+ list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
5337
+ @list_backup_vaults = ::Gapic::Config::Method.new list_backup_vaults_config
5338
+ update_backup_vault_config = parent_rpcs.update_backup_vault if parent_rpcs.respond_to? :update_backup_vault
5339
+ @update_backup_vault = ::Gapic::Config::Method.new update_backup_vault_config
5340
+ delete_backup_vault_config = parent_rpcs.delete_backup_vault if parent_rpcs.respond_to? :delete_backup_vault
5341
+ @delete_backup_vault = ::Gapic::Config::Method.new delete_backup_vault_config
5342
+ create_backup_config = parent_rpcs.create_backup if parent_rpcs.respond_to? :create_backup
5343
+ @create_backup = ::Gapic::Config::Method.new create_backup_config
5344
+ get_backup_config = parent_rpcs.get_backup if parent_rpcs.respond_to? :get_backup
5345
+ @get_backup = ::Gapic::Config::Method.new get_backup_config
5346
+ list_backups_config = parent_rpcs.list_backups if parent_rpcs.respond_to? :list_backups
5347
+ @list_backups = ::Gapic::Config::Method.new list_backups_config
5348
+ delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
5349
+ @delete_backup = ::Gapic::Config::Method.new delete_backup_config
5350
+ update_backup_config = parent_rpcs.update_backup if parent_rpcs.respond_to? :update_backup
5351
+ @update_backup = ::Gapic::Config::Method.new update_backup_config
5352
+ create_backup_policy_config = parent_rpcs.create_backup_policy if parent_rpcs.respond_to? :create_backup_policy
5353
+ @create_backup_policy = ::Gapic::Config::Method.new create_backup_policy_config
5354
+ get_backup_policy_config = parent_rpcs.get_backup_policy if parent_rpcs.respond_to? :get_backup_policy
5355
+ @get_backup_policy = ::Gapic::Config::Method.new get_backup_policy_config
5356
+ list_backup_policies_config = parent_rpcs.list_backup_policies if parent_rpcs.respond_to? :list_backup_policies
5357
+ @list_backup_policies = ::Gapic::Config::Method.new list_backup_policies_config
5358
+ update_backup_policy_config = parent_rpcs.update_backup_policy if parent_rpcs.respond_to? :update_backup_policy
5359
+ @update_backup_policy = ::Gapic::Config::Method.new update_backup_policy_config
5360
+ delete_backup_policy_config = parent_rpcs.delete_backup_policy if parent_rpcs.respond_to? :delete_backup_policy
5361
+ @delete_backup_policy = ::Gapic::Config::Method.new delete_backup_policy_config
3829
5362
 
3830
5363
  yield self if block_given?
3831
5364
  end