google-cloud-backupdr-v1beta 0.2.0 → 0.3.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 (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -6
  3. data/lib/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy_pb.rb +1 -1
  4. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicy_pb.rb +2 -1
  5. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicybinding_pb.rb +2 -1
  6. data/lib/google/cloud/backupdr/v1beta/backupdr/client.rb +2265 -114
  7. data/lib/google/cloud/backupdr/v1beta/backupdr/paths.rb +99 -0
  8. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/client.rb +2137 -112
  9. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/service_stub.rb +1491 -386
  10. data/lib/google/cloud/backupdr/v1beta/backupdr_pb.rb +5 -1
  11. data/lib/google/cloud/backupdr/v1beta/backupdr_services_pb.rb +45 -0
  12. data/lib/google/cloud/backupdr/v1beta/backupvault_pb.rb +3 -1
  13. data/lib/google/cloud/backupdr/v1beta/bindingmatchingresource_pb.rb +1 -1
  14. data/lib/google/cloud/backupdr/v1beta/restore_template_common_pb.rb +28 -0
  15. data/lib/google/cloud/backupdr/v1beta/restore_template_execution_pb.rb +45 -0
  16. data/lib/google/cloud/backupdr/v1beta/restore_template_pb.rb +40 -0
  17. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_association_pb.rb +36 -0
  18. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_pb.rb +34 -0
  19. data/lib/google/cloud/backupdr/v1beta/version.rb +1 -1
  20. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicy.rb +38 -7
  21. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.rb +32 -5
  22. data/proto_docs/google/cloud/backupdr/v1beta/backupvault.rb +31 -0
  23. data/proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb +6 -6
  24. data/proto_docs/google/cloud/backupdr/v1beta/restore_template.rb +292 -0
  25. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_common.rb +80 -0
  26. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_execution.rb +399 -0
  27. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan.rb +270 -0
  28. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan_association.rb +264 -0
  29. data/proto_docs/google/protobuf/struct.rb +108 -0
  30. metadata +12 -1
@@ -86,6 +86,66 @@ module Google
86
86
 
87
87
  default_config.rpcs.delete_management_server.timeout = 60.0
88
88
 
89
+ default_config.rpcs.create_restore_template.timeout = 60.0
90
+
91
+ default_config.rpcs.get_restore_template.timeout = 60.0
92
+ default_config.rpcs.get_restore_template.retry_policy = {
93
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
94
+ }
95
+
96
+ default_config.rpcs.list_restore_templates.timeout = 60.0
97
+ default_config.rpcs.list_restore_templates.retry_policy = {
98
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
99
+ }
100
+
101
+ default_config.rpcs.update_restore_template.timeout = 60.0
102
+
103
+ default_config.rpcs.delete_restore_template.timeout = 60.0
104
+
105
+ default_config.rpcs.run_restore_template.timeout = 60.0
106
+
107
+ default_config.rpcs.get_restore_template_execution.timeout = 60.0
108
+ default_config.rpcs.get_restore_template_execution.retry_policy = {
109
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
110
+ }
111
+
112
+ default_config.rpcs.list_restore_template_executions.timeout = 60.0
113
+ default_config.rpcs.list_restore_template_executions.retry_policy = {
114
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
115
+ }
116
+
117
+ default_config.rpcs.trigger_restore_cleanup.timeout = 60.0
118
+
119
+ default_config.rpcs.create_restore_verification_plan.timeout = 60.0
120
+
121
+ default_config.rpcs.create_restore_verification_plan_association.timeout = 60.0
122
+
123
+ default_config.rpcs.get_restore_verification_plan_association.timeout = 60.0
124
+ default_config.rpcs.get_restore_verification_plan_association.retry_policy = {
125
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
126
+ }
127
+
128
+ default_config.rpcs.list_restore_verification_plan_associations.timeout = 60.0
129
+ default_config.rpcs.list_restore_verification_plan_associations.retry_policy = {
130
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
131
+ }
132
+
133
+ default_config.rpcs.delete_restore_verification_plan_association.timeout = 60.0
134
+
135
+ default_config.rpcs.trigger_restore_verification.timeout = 60.0
136
+
137
+ default_config.rpcs.get_restore_verification_plan.timeout = 60.0
138
+ default_config.rpcs.get_restore_verification_plan.retry_policy = {
139
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
140
+ }
141
+
142
+ default_config.rpcs.list_restore_verification_plans.timeout = 60.0
143
+ default_config.rpcs.list_restore_verification_plans.retry_policy = {
144
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
145
+ }
146
+
147
+ default_config.rpcs.delete_restore_verification_plan.timeout = 60.0
148
+
89
149
  default_config.rpcs.create_backup_vault.timeout = 60.0
90
150
  default_config.rpcs.create_backup_vault.retry_policy = {
91
151
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
@@ -144,6 +204,46 @@ module Google
144
204
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
145
205
  }
146
206
 
207
+ default_config.rpcs.create_auto_protection_policy.timeout = 60.0
208
+
209
+ default_config.rpcs.list_auto_protection_policies.timeout = 60.0
210
+ default_config.rpcs.list_auto_protection_policies.retry_policy = {
211
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
212
+ }
213
+
214
+ default_config.rpcs.get_auto_protection_policy.timeout = 60.0
215
+ default_config.rpcs.get_auto_protection_policy.retry_policy = {
216
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
217
+ }
218
+
219
+ default_config.rpcs.update_auto_protection_policy.timeout = 60.0
220
+
221
+ default_config.rpcs.delete_auto_protection_policy.timeout = 60.0
222
+
223
+ default_config.rpcs.create_auto_protection_policy_binding.timeout = 60.0
224
+
225
+ default_config.rpcs.get_auto_protection_policy_binding.timeout = 60.0
226
+ default_config.rpcs.get_auto_protection_policy_binding.retry_policy = {
227
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
228
+ }
229
+
230
+ default_config.rpcs.list_auto_protection_policy_bindings.timeout = 60.0
231
+ default_config.rpcs.list_auto_protection_policy_bindings.retry_policy = {
232
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
233
+ }
234
+
235
+ default_config.rpcs.list_applied_auto_protection_policies.timeout = 60.0
236
+ default_config.rpcs.list_applied_auto_protection_policies.retry_policy = {
237
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
238
+ }
239
+
240
+ default_config.rpcs.initiate_delete_auto_protection_policy_binding.timeout = 60.0
241
+
242
+ default_config.rpcs.list_binding_matching_resources.timeout = 60.0
243
+ default_config.rpcs.list_binding_matching_resources.retry_policy = {
244
+ initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
245
+ }
246
+
147
247
  default_config
148
248
  end
149
249
  yield @configure if block_given?
@@ -338,10 +438,1872 @@ module Google
338
438
  # Optional. Hint for how to order the results.
339
439
  #
340
440
  # @yield [response, operation] Access the result along with the RPC operation
341
- # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::ManagementServer>]
441
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::ManagementServer>]
442
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
443
+ #
444
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::ManagementServer>]
445
+ #
446
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
+ #
448
+ # @example Basic example
449
+ # require "google/cloud/backupdr/v1beta"
450
+ #
451
+ # # Create a client object. The client can be reused for multiple calls.
452
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
453
+ #
454
+ # # Create a request. To set request fields, pass in keyword arguments.
455
+ # request = Google::Cloud::BackupDR::V1beta::ListManagementServersRequest.new
456
+ #
457
+ # # Call the list_management_servers method.
458
+ # result = client.list_management_servers request
459
+ #
460
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
461
+ # # over elements, and API calls will be issued to fetch pages as needed.
462
+ # result.each do |item|
463
+ # # Each element is of type ::Google::Cloud::BackupDR::V1beta::ManagementServer.
464
+ # p item
465
+ # end
466
+ #
467
+ def list_management_servers request, options = nil
468
+ raise ::ArgumentError, "request must be provided" if request.nil?
469
+
470
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListManagementServersRequest
471
+
472
+ # Converts hash and nil to an options object
473
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
474
+
475
+ # Customize the options with defaults
476
+ metadata = @config.rpcs.list_management_servers.metadata.to_h
477
+
478
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
479
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
480
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
481
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
482
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
483
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
484
+
485
+ header_params = {}
486
+ if request.parent
487
+ header_params["parent"] = request.parent
488
+ end
489
+
490
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
491
+ metadata[:"x-goog-request-params"] ||= request_params_header
492
+
493
+ options.apply_defaults timeout: @config.rpcs.list_management_servers.timeout,
494
+ metadata: metadata,
495
+ retry_policy: @config.rpcs.list_management_servers.retry_policy
496
+
497
+ options.apply_defaults timeout: @config.timeout,
498
+ metadata: @config.metadata,
499
+ retry_policy: @config.retry_policy
500
+
501
+ @backup_dr_stub.call_rpc :list_management_servers, request, options: options do |response, operation|
502
+ response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :list_management_servers, request, response, operation, options
503
+ yield response, operation if block_given?
504
+ throw :response, response
505
+ end
506
+ rescue ::GRPC::BadStatus => e
507
+ raise ::Google::Cloud::Error.from_error(e)
508
+ end
509
+
510
+ ##
511
+ # Gets details of a single ManagementServer.
512
+ #
513
+ # @overload get_management_server(request, options = nil)
514
+ # Pass arguments to `get_management_server` via a request object, either of type
515
+ # {::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest} or an equivalent Hash.
516
+ #
517
+ # @param request [::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest, ::Hash]
518
+ # A request object representing the call parameters. Required. To specify no
519
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
520
+ # @param options [::Gapic::CallOptions, ::Hash]
521
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
522
+ #
523
+ # @overload get_management_server(name: nil)
524
+ # Pass arguments to `get_management_server` via keyword arguments. Note that at
525
+ # least one keyword argument is required. To specify no parameters, or to keep all
526
+ # the default parameter values, pass an empty Hash as a request object (see above).
527
+ #
528
+ # @param name [::String]
529
+ # Required. Name of the management server resource name, in the format
530
+ # 'projects/\\{project_id}/locations/\\{location}/managementServers/\\{resource_name}'
531
+ #
532
+ # @yield [response, operation] Access the result along with the RPC operation
533
+ # @yieldparam response [::Google::Cloud::BackupDR::V1beta::ManagementServer]
534
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
535
+ #
536
+ # @return [::Google::Cloud::BackupDR::V1beta::ManagementServer]
537
+ #
538
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
539
+ #
540
+ # @example Basic example
541
+ # require "google/cloud/backupdr/v1beta"
542
+ #
543
+ # # Create a client object. The client can be reused for multiple calls.
544
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
545
+ #
546
+ # # Create a request. To set request fields, pass in keyword arguments.
547
+ # request = Google::Cloud::BackupDR::V1beta::GetManagementServerRequest.new
548
+ #
549
+ # # Call the get_management_server method.
550
+ # result = client.get_management_server request
551
+ #
552
+ # # The returned object is of type Google::Cloud::BackupDR::V1beta::ManagementServer.
553
+ # p result
554
+ #
555
+ def get_management_server request, options = nil
556
+ raise ::ArgumentError, "request must be provided" if request.nil?
557
+
558
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest
559
+
560
+ # Converts hash and nil to an options object
561
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
562
+
563
+ # Customize the options with defaults
564
+ metadata = @config.rpcs.get_management_server.metadata.to_h
565
+
566
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
567
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
568
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
569
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
570
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
571
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
572
+
573
+ header_params = {}
574
+ if request.name
575
+ header_params["name"] = request.name
576
+ end
577
+
578
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
579
+ metadata[:"x-goog-request-params"] ||= request_params_header
580
+
581
+ options.apply_defaults timeout: @config.rpcs.get_management_server.timeout,
582
+ metadata: metadata,
583
+ retry_policy: @config.rpcs.get_management_server.retry_policy
584
+
585
+ options.apply_defaults timeout: @config.timeout,
586
+ metadata: @config.metadata,
587
+ retry_policy: @config.retry_policy
588
+
589
+ @backup_dr_stub.call_rpc :get_management_server, request, options: options do |response, operation|
590
+ yield response, operation if block_given?
591
+ end
592
+ rescue ::GRPC::BadStatus => e
593
+ raise ::Google::Cloud::Error.from_error(e)
594
+ end
595
+
596
+ ##
597
+ # Creates a new ManagementServer in a given project and location.
598
+ #
599
+ # @overload create_management_server(request, options = nil)
600
+ # Pass arguments to `create_management_server` via a request object, either of type
601
+ # {::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest} or an equivalent Hash.
602
+ #
603
+ # @param request [::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest, ::Hash]
604
+ # A request object representing the call parameters. Required. To specify no
605
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
606
+ # @param options [::Gapic::CallOptions, ::Hash]
607
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
608
+ #
609
+ # @overload create_management_server(parent: nil, management_server_id: nil, management_server: nil, request_id: nil)
610
+ # Pass arguments to `create_management_server` via keyword arguments. Note that at
611
+ # least one keyword argument is required. To specify no parameters, or to keep all
612
+ # the default parameter values, pass an empty Hash as a request object (see above).
613
+ #
614
+ # @param parent [::String]
615
+ # Required. The management server project and location in the format
616
+ # 'projects/\\{project_id}/locations/\\{location}'. In Google Cloud Backup and DR
617
+ # locations map to Google Cloud regions, for example **us-central1**.
618
+ # @param management_server_id [::String]
619
+ # Required. The name of the management server to create. The name must be
620
+ # unique for the specified project and location.
621
+ # @param management_server [::Google::Cloud::BackupDR::V1beta::ManagementServer, ::Hash]
622
+ # Required. A [management server
623
+ # resource][google.cloud.backupdr.v1.ManagementServer]
624
+ # @param request_id [::String]
625
+ # Optional. An optional request ID to identify requests. Specify a unique
626
+ # request ID so that if you must retry your request, the server will know to
627
+ # ignore the request if it has already been completed. The server will
628
+ # guarantee that for at least 60 minutes since the first request.
629
+ #
630
+ # For example, consider a situation where you make an initial request and
631
+ # the request times out. If you make the request again with the same request
632
+ # ID, the server can check if original operation with the same request ID
633
+ # was received, and if so, will ignore the second request. This prevents
634
+ # clients from accidentally creating duplicate commitments.
635
+ #
636
+ # The request ID must be a valid UUID with the exception that zero UUID is
637
+ # not supported (00000000-0000-0000-0000-000000000000).
638
+ #
639
+ # @yield [response, operation] Access the result along with the RPC operation
640
+ # @yieldparam response [::Gapic::Operation]
641
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
642
+ #
643
+ # @return [::Gapic::Operation]
644
+ #
645
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
646
+ #
647
+ # @example Basic example
648
+ # require "google/cloud/backupdr/v1beta"
649
+ #
650
+ # # Create a client object. The client can be reused for multiple calls.
651
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
652
+ #
653
+ # # Create a request. To set request fields, pass in keyword arguments.
654
+ # request = Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest.new
655
+ #
656
+ # # Call the create_management_server method.
657
+ # result = client.create_management_server request
658
+ #
659
+ # # The returned object is of type Gapic::Operation. You can use it to
660
+ # # check the status of an operation, cancel it, or wait for results.
661
+ # # Here is how to wait for a response.
662
+ # result.wait_until_done! timeout: 60
663
+ # if result.response?
664
+ # p result.response
665
+ # else
666
+ # puts "No response received."
667
+ # end
668
+ #
669
+ def create_management_server request, options = nil
670
+ raise ::ArgumentError, "request must be provided" if request.nil?
671
+
672
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest
673
+
674
+ # Converts hash and nil to an options object
675
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
676
+
677
+ # Customize the options with defaults
678
+ metadata = @config.rpcs.create_management_server.metadata.to_h
679
+
680
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
681
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
682
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
683
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
684
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
685
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
686
+
687
+ header_params = {}
688
+ if request.parent
689
+ header_params["parent"] = request.parent
690
+ end
691
+
692
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
693
+ metadata[:"x-goog-request-params"] ||= request_params_header
694
+
695
+ options.apply_defaults timeout: @config.rpcs.create_management_server.timeout,
696
+ metadata: metadata,
697
+ retry_policy: @config.rpcs.create_management_server.retry_policy
698
+
699
+ options.apply_defaults timeout: @config.timeout,
700
+ metadata: @config.metadata,
701
+ retry_policy: @config.retry_policy
702
+
703
+ @backup_dr_stub.call_rpc :create_management_server, request, options: options do |response, operation|
704
+ response = ::Gapic::Operation.new response, @operations_client, options: options
705
+ yield response, operation if block_given?
706
+ throw :response, response
707
+ end
708
+ rescue ::GRPC::BadStatus => e
709
+ raise ::Google::Cloud::Error.from_error(e)
710
+ end
711
+
712
+ ##
713
+ # Deletes a single ManagementServer.
714
+ #
715
+ # @overload delete_management_server(request, options = nil)
716
+ # Pass arguments to `delete_management_server` via a request object, either of type
717
+ # {::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest} or an equivalent Hash.
718
+ #
719
+ # @param request [::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest, ::Hash]
720
+ # A request object representing the call parameters. Required. To specify no
721
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
722
+ # @param options [::Gapic::CallOptions, ::Hash]
723
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
724
+ #
725
+ # @overload delete_management_server(name: nil, request_id: nil)
726
+ # Pass arguments to `delete_management_server` via keyword arguments. Note that at
727
+ # least one keyword argument is required. To specify no parameters, or to keep all
728
+ # the default parameter values, pass an empty Hash as a request object (see above).
729
+ #
730
+ # @param name [::String]
731
+ # Required. Name of the resource
732
+ # @param request_id [::String]
733
+ # Optional. An optional request ID to identify requests. Specify a unique
734
+ # request ID so that if you must retry your request, the server will know to
735
+ # ignore the request if it has already been completed. The server will
736
+ # guarantee that for at least 60 minutes after the first request.
737
+ #
738
+ # For example, consider a situation where you make an initial request and
739
+ # the request times out. If you make the request again with the same request
740
+ # ID, the server can check if original operation with the same request ID
741
+ # was received, and if so, will ignore the second request. This prevents
742
+ # clients from accidentally creating duplicate commitments.
743
+ #
744
+ # The request ID must be a valid UUID with the exception that zero UUID is
745
+ # not supported (00000000-0000-0000-0000-000000000000).
746
+ #
747
+ # @yield [response, operation] Access the result along with the RPC operation
748
+ # @yieldparam response [::Gapic::Operation]
749
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
750
+ #
751
+ # @return [::Gapic::Operation]
752
+ #
753
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
754
+ #
755
+ # @example Basic example
756
+ # require "google/cloud/backupdr/v1beta"
757
+ #
758
+ # # Create a client object. The client can be reused for multiple calls.
759
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
760
+ #
761
+ # # Create a request. To set request fields, pass in keyword arguments.
762
+ # request = Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest.new
763
+ #
764
+ # # Call the delete_management_server method.
765
+ # result = client.delete_management_server request
766
+ #
767
+ # # The returned object is of type Gapic::Operation. You can use it to
768
+ # # check the status of an operation, cancel it, or wait for results.
769
+ # # Here is how to wait for a response.
770
+ # result.wait_until_done! timeout: 60
771
+ # if result.response?
772
+ # p result.response
773
+ # else
774
+ # puts "No response received."
775
+ # end
776
+ #
777
+ def delete_management_server request, options = nil
778
+ raise ::ArgumentError, "request must be provided" if request.nil?
779
+
780
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest
781
+
782
+ # Converts hash and nil to an options object
783
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
784
+
785
+ # Customize the options with defaults
786
+ metadata = @config.rpcs.delete_management_server.metadata.to_h
787
+
788
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
789
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
790
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
791
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
792
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
793
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
794
+
795
+ header_params = {}
796
+ if request.name
797
+ header_params["name"] = request.name
798
+ end
799
+
800
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
801
+ metadata[:"x-goog-request-params"] ||= request_params_header
802
+
803
+ options.apply_defaults timeout: @config.rpcs.delete_management_server.timeout,
804
+ metadata: metadata,
805
+ retry_policy: @config.rpcs.delete_management_server.retry_policy
806
+
807
+ options.apply_defaults timeout: @config.timeout,
808
+ metadata: @config.metadata,
809
+ retry_policy: @config.retry_policy
810
+
811
+ @backup_dr_stub.call_rpc :delete_management_server, request, options: options do |response, operation|
812
+ response = ::Gapic::Operation.new response, @operations_client, options: options
813
+ yield response, operation if block_given?
814
+ throw :response, response
815
+ end
816
+ rescue ::GRPC::BadStatus => e
817
+ raise ::Google::Cloud::Error.from_error(e)
818
+ end
819
+
820
+ ##
821
+ # Creates a new RestoreTemplate in a given project and location.
822
+ #
823
+ # @overload create_restore_template(request, options = nil)
824
+ # Pass arguments to `create_restore_template` via a request object, either of type
825
+ # {::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest} or an equivalent Hash.
826
+ #
827
+ # @param request [::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest, ::Hash]
828
+ # A request object representing the call parameters. Required. To specify no
829
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
830
+ # @param options [::Gapic::CallOptions, ::Hash]
831
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
832
+ #
833
+ # @overload create_restore_template(parent: nil, restore_template_id: nil, restore_template: nil, request_id: nil)
834
+ # Pass arguments to `create_restore_template` via keyword arguments. Note that at
835
+ # least one keyword argument is required. To specify no parameters, or to keep all
836
+ # the default parameter values, pass an empty Hash as a request object (see above).
837
+ #
838
+ # @param parent [::String]
839
+ # Required. The restore template project and location in the format
840
+ # 'projects/\\{project_id}/locations/\\{location}'.
841
+ # @param restore_template_id [::String]
842
+ # Required. The ID of the restore template to create. The ID must be
843
+ # unique for the specified project and location.
844
+ # @param restore_template [::Google::Cloud::BackupDR::V1beta::RestoreTemplate, ::Hash]
845
+ # Required. A RestoreTemplate resource.
846
+ # @param request_id [::String]
847
+ # Optional. An optional request ID to identify requests. Specify a unique
848
+ # request ID so that if you must retry your request, the server will know to
849
+ # ignore the request if it has already been completed.
850
+ #
851
+ # The request ID must be a valid UUID with the exception that zero UUID is
852
+ # not supported (00000000-0000-0000-0000-000000000000).
853
+ #
854
+ # @yield [response, operation] Access the result along with the RPC operation
855
+ # @yieldparam response [::Gapic::Operation]
856
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
857
+ #
858
+ # @return [::Gapic::Operation]
859
+ #
860
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
861
+ #
862
+ # @example Basic example
863
+ # require "google/cloud/backupdr/v1beta"
864
+ #
865
+ # # Create a client object. The client can be reused for multiple calls.
866
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
867
+ #
868
+ # # Create a request. To set request fields, pass in keyword arguments.
869
+ # request = Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest.new
870
+ #
871
+ # # Call the create_restore_template method.
872
+ # result = client.create_restore_template request
873
+ #
874
+ # # The returned object is of type Gapic::Operation. You can use it to
875
+ # # check the status of an operation, cancel it, or wait for results.
876
+ # # Here is how to wait for a response.
877
+ # result.wait_until_done! timeout: 60
878
+ # if result.response?
879
+ # p result.response
880
+ # else
881
+ # puts "No response received."
882
+ # end
883
+ #
884
+ def create_restore_template request, options = nil
885
+ raise ::ArgumentError, "request must be provided" if request.nil?
886
+
887
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest
888
+
889
+ # Converts hash and nil to an options object
890
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
891
+
892
+ # Customize the options with defaults
893
+ metadata = @config.rpcs.create_restore_template.metadata.to_h
894
+
895
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
896
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
897
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
898
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
899
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
900
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
901
+
902
+ header_params = {}
903
+ if request.parent
904
+ header_params["parent"] = request.parent
905
+ end
906
+
907
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
908
+ metadata[:"x-goog-request-params"] ||= request_params_header
909
+
910
+ options.apply_defaults timeout: @config.rpcs.create_restore_template.timeout,
911
+ metadata: metadata,
912
+ retry_policy: @config.rpcs.create_restore_template.retry_policy
913
+
914
+ options.apply_defaults timeout: @config.timeout,
915
+ metadata: @config.metadata,
916
+ retry_policy: @config.retry_policy
917
+
918
+ @backup_dr_stub.call_rpc :create_restore_template, request, options: options do |response, operation|
919
+ response = ::Gapic::Operation.new response, @operations_client, options: options
920
+ yield response, operation if block_given?
921
+ throw :response, response
922
+ end
923
+ rescue ::GRPC::BadStatus => e
924
+ raise ::Google::Cloud::Error.from_error(e)
925
+ end
926
+
927
+ ##
928
+ # Gets details of a RestoreTemplate.
929
+ #
930
+ # @overload get_restore_template(request, options = nil)
931
+ # Pass arguments to `get_restore_template` via a request object, either of type
932
+ # {::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest} or an equivalent Hash.
933
+ #
934
+ # @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest, ::Hash]
935
+ # A request object representing the call parameters. Required. To specify no
936
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
937
+ # @param options [::Gapic::CallOptions, ::Hash]
938
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
939
+ #
940
+ # @overload get_restore_template(name: nil)
941
+ # Pass arguments to `get_restore_template` via keyword arguments. Note that at
942
+ # least one keyword argument is required. To specify no parameters, or to keep all
943
+ # the default parameter values, pass an empty Hash as a request object (see above).
944
+ #
945
+ # @param name [::String]
946
+ # Required. The name of the restore template to retrieve.
947
+ # Format:
948
+ # 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
949
+ #
950
+ # @yield [response, operation] Access the result along with the RPC operation
951
+ # @yieldparam response [::Google::Cloud::BackupDR::V1beta::RestoreTemplate]
952
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
953
+ #
954
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreTemplate]
955
+ #
956
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
957
+ #
958
+ # @example Basic example
959
+ # require "google/cloud/backupdr/v1beta"
960
+ #
961
+ # # Create a client object. The client can be reused for multiple calls.
962
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
963
+ #
964
+ # # Create a request. To set request fields, pass in keyword arguments.
965
+ # request = Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest.new
966
+ #
967
+ # # Call the get_restore_template method.
968
+ # result = client.get_restore_template request
969
+ #
970
+ # # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreTemplate.
971
+ # p result
972
+ #
973
+ def get_restore_template request, options = nil
974
+ raise ::ArgumentError, "request must be provided" if request.nil?
975
+
976
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest
977
+
978
+ # Converts hash and nil to an options object
979
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
980
+
981
+ # Customize the options with defaults
982
+ metadata = @config.rpcs.get_restore_template.metadata.to_h
983
+
984
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
985
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
986
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
987
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
988
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
989
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
990
+
991
+ header_params = {}
992
+ if request.name
993
+ header_params["name"] = request.name
994
+ end
995
+
996
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
997
+ metadata[:"x-goog-request-params"] ||= request_params_header
998
+
999
+ options.apply_defaults timeout: @config.rpcs.get_restore_template.timeout,
1000
+ metadata: metadata,
1001
+ retry_policy: @config.rpcs.get_restore_template.retry_policy
1002
+
1003
+ options.apply_defaults timeout: @config.timeout,
1004
+ metadata: @config.metadata,
1005
+ retry_policy: @config.retry_policy
1006
+
1007
+ @backup_dr_stub.call_rpc :get_restore_template, request, options: options do |response, operation|
1008
+ yield response, operation if block_given?
1009
+ end
1010
+ rescue ::GRPC::BadStatus => e
1011
+ raise ::Google::Cloud::Error.from_error(e)
1012
+ end
1013
+
1014
+ ##
1015
+ # Lists RestoreTemplates in a given project and location.
1016
+ #
1017
+ # @overload list_restore_templates(request, options = nil)
1018
+ # Pass arguments to `list_restore_templates` via a request object, either of type
1019
+ # {::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest} or an equivalent Hash.
1020
+ #
1021
+ # @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest, ::Hash]
1022
+ # A request object representing the call parameters. Required. To specify no
1023
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1024
+ # @param options [::Gapic::CallOptions, ::Hash]
1025
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1026
+ #
1027
+ # @overload list_restore_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1028
+ # Pass arguments to `list_restore_templates` via keyword arguments. Note that at
1029
+ # least one keyword argument is required. To specify no parameters, or to keep all
1030
+ # the default parameter values, pass an empty Hash as a request object (see above).
1031
+ #
1032
+ # @param parent [::String]
1033
+ # Required. The project and location from which to list the restore
1034
+ # templates.
1035
+ # Format: `projects/{project}/locations/{location}`.
1036
+ # @param page_size [::Integer]
1037
+ # Optional. The maximum number of items to return.
1038
+ # @param page_token [::String]
1039
+ # Optional. A page token, received from a previous `ListRestoreTemplates`
1040
+ # call.
1041
+ # @param filter [::String]
1042
+ # Optional. Field match expression used to filter the results.
1043
+ # @param order_by [::String]
1044
+ # Optional. Field by which to sort the results.
1045
+ #
1046
+ # @yield [response, operation] Access the result along with the RPC operation
1047
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplate>]
1048
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1049
+ #
1050
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplate>]
1051
+ #
1052
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1053
+ #
1054
+ # @example Basic example
1055
+ # require "google/cloud/backupdr/v1beta"
1056
+ #
1057
+ # # Create a client object. The client can be reused for multiple calls.
1058
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1059
+ #
1060
+ # # Create a request. To set request fields, pass in keyword arguments.
1061
+ # request = Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest.new
1062
+ #
1063
+ # # Call the list_restore_templates method.
1064
+ # result = client.list_restore_templates request
1065
+ #
1066
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1067
+ # # over elements, and API calls will be issued to fetch pages as needed.
1068
+ # result.each do |item|
1069
+ # # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreTemplate.
1070
+ # p item
1071
+ # end
1072
+ #
1073
+ def list_restore_templates request, options = nil
1074
+ raise ::ArgumentError, "request must be provided" if request.nil?
1075
+
1076
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest
1077
+
1078
+ # Converts hash and nil to an options object
1079
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1080
+
1081
+ # Customize the options with defaults
1082
+ metadata = @config.rpcs.list_restore_templates.metadata.to_h
1083
+
1084
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1085
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1086
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1087
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1088
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1089
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1090
+
1091
+ header_params = {}
1092
+ if request.parent
1093
+ header_params["parent"] = request.parent
1094
+ end
1095
+
1096
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1097
+ metadata[:"x-goog-request-params"] ||= request_params_header
1098
+
1099
+ options.apply_defaults timeout: @config.rpcs.list_restore_templates.timeout,
1100
+ metadata: metadata,
1101
+ retry_policy: @config.rpcs.list_restore_templates.retry_policy
1102
+
1103
+ options.apply_defaults timeout: @config.timeout,
1104
+ metadata: @config.metadata,
1105
+ retry_policy: @config.retry_policy
1106
+
1107
+ @backup_dr_stub.call_rpc :list_restore_templates, request, options: options do |response, operation|
1108
+ response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :list_restore_templates, request, response, operation, options
1109
+ yield response, operation if block_given?
1110
+ throw :response, response
1111
+ end
1112
+ rescue ::GRPC::BadStatus => e
1113
+ raise ::Google::Cloud::Error.from_error(e)
1114
+ end
1115
+
1116
+ ##
1117
+ # Updates the settings of a RestoreTemplate.
1118
+ #
1119
+ # @overload update_restore_template(request, options = nil)
1120
+ # Pass arguments to `update_restore_template` via a request object, either of type
1121
+ # {::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest} or an equivalent Hash.
1122
+ #
1123
+ # @param request [::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest, ::Hash]
1124
+ # A request object representing the call parameters. Required. To specify no
1125
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1126
+ # @param options [::Gapic::CallOptions, ::Hash]
1127
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1128
+ #
1129
+ # @overload update_restore_template(update_mask: nil, restore_template: nil, request_id: nil, validate_only: nil)
1130
+ # Pass arguments to `update_restore_template` via keyword arguments. Note that at
1131
+ # least one keyword argument is required. To specify no parameters, or to keep all
1132
+ # the default parameter values, pass an empty Hash as a request object (see above).
1133
+ #
1134
+ # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
1135
+ # Optional. The list of fields to update.
1136
+ # Field mask is used to specify the fields to be overwritten in the
1137
+ # RestoreTemplate resource by the update.
1138
+ # The fields specified in the update_mask are relative to the resource, not
1139
+ # the full request. A field will be overwritten if it is in the mask.
1140
+ # @param restore_template [::Google::Cloud::BackupDR::V1beta::RestoreTemplate, ::Hash]
1141
+ # Required. The restore template to update.
1142
+ # @param request_id [::String]
1143
+ # Optional. An optional request ID to identify requests. Specify a unique
1144
+ # request ID so that if you must retry your request, the server will know to
1145
+ # ignore the request if it has already been completed.
1146
+ #
1147
+ # The request ID must be a valid UUID with the exception that zero UUID is
1148
+ # not supported (00000000-0000-0000-0000-000000000000).
1149
+ # @param validate_only [::Boolean]
1150
+ # Optional. Only validate the request, but do not perform mutations.
1151
+ # The default is 'false'.
1152
+ #
1153
+ # @yield [response, operation] Access the result along with the RPC operation
1154
+ # @yieldparam response [::Gapic::Operation]
1155
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1156
+ #
1157
+ # @return [::Gapic::Operation]
1158
+ #
1159
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1160
+ #
1161
+ # @example Basic example
1162
+ # require "google/cloud/backupdr/v1beta"
1163
+ #
1164
+ # # Create a client object. The client can be reused for multiple calls.
1165
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1166
+ #
1167
+ # # Create a request. To set request fields, pass in keyword arguments.
1168
+ # request = Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest.new
1169
+ #
1170
+ # # Call the update_restore_template method.
1171
+ # result = client.update_restore_template request
1172
+ #
1173
+ # # The returned object is of type Gapic::Operation. You can use it to
1174
+ # # check the status of an operation, cancel it, or wait for results.
1175
+ # # Here is how to wait for a response.
1176
+ # result.wait_until_done! timeout: 60
1177
+ # if result.response?
1178
+ # p result.response
1179
+ # else
1180
+ # puts "No response received."
1181
+ # end
1182
+ #
1183
+ def update_restore_template request, options = nil
1184
+ raise ::ArgumentError, "request must be provided" if request.nil?
1185
+
1186
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest
1187
+
1188
+ # Converts hash and nil to an options object
1189
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1190
+
1191
+ # Customize the options with defaults
1192
+ metadata = @config.rpcs.update_restore_template.metadata.to_h
1193
+
1194
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1195
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1196
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1197
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1198
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1199
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1200
+
1201
+ header_params = {}
1202
+ if request.restore_template&.name
1203
+ header_params["restore_template.name"] = request.restore_template.name
1204
+ end
1205
+
1206
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1207
+ metadata[:"x-goog-request-params"] ||= request_params_header
1208
+
1209
+ options.apply_defaults timeout: @config.rpcs.update_restore_template.timeout,
1210
+ metadata: metadata,
1211
+ retry_policy: @config.rpcs.update_restore_template.retry_policy
1212
+
1213
+ options.apply_defaults timeout: @config.timeout,
1214
+ metadata: @config.metadata,
1215
+ retry_policy: @config.retry_policy
1216
+
1217
+ @backup_dr_stub.call_rpc :update_restore_template, request, options: options do |response, operation|
1218
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1219
+ yield response, operation if block_given?
1220
+ throw :response, response
1221
+ end
1222
+ rescue ::GRPC::BadStatus => e
1223
+ raise ::Google::Cloud::Error.from_error(e)
1224
+ end
1225
+
1226
+ ##
1227
+ # Deletes a RestoreTemplate.
1228
+ #
1229
+ # @overload delete_restore_template(request, options = nil)
1230
+ # Pass arguments to `delete_restore_template` via a request object, either of type
1231
+ # {::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest} or an equivalent Hash.
1232
+ #
1233
+ # @param request [::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest, ::Hash]
1234
+ # A request object representing the call parameters. Required. To specify no
1235
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1236
+ # @param options [::Gapic::CallOptions, ::Hash]
1237
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1238
+ #
1239
+ # @overload delete_restore_template(name: nil, request_id: nil, force: nil)
1240
+ # Pass arguments to `delete_restore_template` via keyword arguments. Note that at
1241
+ # least one keyword argument is required. To specify no parameters, or to keep all
1242
+ # the default parameter values, pass an empty Hash as a request object (see above).
1243
+ #
1244
+ # @param name [::String]
1245
+ # Required. The name of the restore template to delete.
1246
+ # Format:
1247
+ # 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
1248
+ # @param request_id [::String]
1249
+ # Optional. An optional request ID to identify requests. Specify a unique
1250
+ # request ID so that if you must retry your request, the server will know to
1251
+ # ignore the request if it has already been completed.
1252
+ #
1253
+ # The request ID must be a valid UUID with the exception that zero UUID is
1254
+ # not supported (00000000-0000-0000-0000-000000000000).
1255
+ # @param force [::Boolean]
1256
+ # Optional. If set to true, any child RestoreTemplateExecutions will also be
1257
+ # deleted. If false and the RestoreTemplate has any child executions, the
1258
+ # request will fail.
1259
+ #
1260
+ # @yield [response, operation] Access the result along with the RPC operation
1261
+ # @yieldparam response [::Gapic::Operation]
1262
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1263
+ #
1264
+ # @return [::Gapic::Operation]
1265
+ #
1266
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1267
+ #
1268
+ # @example Basic example
1269
+ # require "google/cloud/backupdr/v1beta"
1270
+ #
1271
+ # # Create a client object. The client can be reused for multiple calls.
1272
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1273
+ #
1274
+ # # Create a request. To set request fields, pass in keyword arguments.
1275
+ # request = Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest.new
1276
+ #
1277
+ # # Call the delete_restore_template method.
1278
+ # result = client.delete_restore_template request
1279
+ #
1280
+ # # The returned object is of type Gapic::Operation. You can use it to
1281
+ # # check the status of an operation, cancel it, or wait for results.
1282
+ # # Here is how to wait for a response.
1283
+ # result.wait_until_done! timeout: 60
1284
+ # if result.response?
1285
+ # p result.response
1286
+ # else
1287
+ # puts "No response received."
1288
+ # end
1289
+ #
1290
+ def delete_restore_template request, options = nil
1291
+ raise ::ArgumentError, "request must be provided" if request.nil?
1292
+
1293
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest
1294
+
1295
+ # Converts hash and nil to an options object
1296
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1297
+
1298
+ # Customize the options with defaults
1299
+ metadata = @config.rpcs.delete_restore_template.metadata.to_h
1300
+
1301
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1302
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1303
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1304
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1305
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1306
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1307
+
1308
+ header_params = {}
1309
+ if request.name
1310
+ header_params["name"] = request.name
1311
+ end
1312
+
1313
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1314
+ metadata[:"x-goog-request-params"] ||= request_params_header
1315
+
1316
+ options.apply_defaults timeout: @config.rpcs.delete_restore_template.timeout,
1317
+ metadata: metadata,
1318
+ retry_policy: @config.rpcs.delete_restore_template.retry_policy
1319
+
1320
+ options.apply_defaults timeout: @config.timeout,
1321
+ metadata: @config.metadata,
1322
+ retry_policy: @config.retry_policy
1323
+
1324
+ @backup_dr_stub.call_rpc :delete_restore_template, request, options: options do |response, operation|
1325
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1326
+ yield response, operation if block_given?
1327
+ throw :response, response
1328
+ end
1329
+ rescue ::GRPC::BadStatus => e
1330
+ raise ::Google::Cloud::Error.from_error(e)
1331
+ end
1332
+
1333
+ ##
1334
+ # Runs a RestoreTemplate.
1335
+ #
1336
+ # @overload run_restore_template(request, options = nil)
1337
+ # Pass arguments to `run_restore_template` via a request object, either of type
1338
+ # {::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest} or an equivalent Hash.
1339
+ #
1340
+ # @param request [::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest, ::Hash]
1341
+ # A request object representing the call parameters. Required. To specify no
1342
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1343
+ # @param options [::Gapic::CallOptions, ::Hash]
1344
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1345
+ #
1346
+ # @overload run_restore_template(name: nil, backup: nil, request_id: nil)
1347
+ # Pass arguments to `run_restore_template` via keyword arguments. Note that at
1348
+ # least one keyword argument is required. To specify no parameters, or to keep all
1349
+ # the default parameter values, pass an empty Hash as a request object (see above).
1350
+ #
1351
+ # @param name [::String]
1352
+ # Required. The name of the restore template to run.
1353
+ # Format:
1354
+ # 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
1355
+ # @param backup [::String]
1356
+ # Optional. The resource name of the Backup to restore from.
1357
+ # If not specified, the latest backup matching the backup selection
1358
+ # configuration in the RestoreTemplate will be used.
1359
+ # Format:
1360
+ # 'projects/\\{project}/locations/\\{location}/backupVaults/\\{backup_vault}/dataSources/\\{data_source}/backups/\\{backup}'
1361
+ # @param request_id [::String]
1362
+ # Optional. An optional request ID to identify requests. Specify a unique
1363
+ # request ID so that if you must retry your request, the server will know to
1364
+ # ignore the request if it has already been completed.
1365
+ #
1366
+ # The request ID must be a valid UUID with the exception that zero UUID is
1367
+ # not supported (00000000-0000-0000-0000-000000000000).
1368
+ #
1369
+ # @yield [response, operation] Access the result along with the RPC operation
1370
+ # @yieldparam response [::Gapic::Operation]
1371
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1372
+ #
1373
+ # @return [::Gapic::Operation]
1374
+ #
1375
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1376
+ #
1377
+ # @example Basic example
1378
+ # require "google/cloud/backupdr/v1beta"
1379
+ #
1380
+ # # Create a client object. The client can be reused for multiple calls.
1381
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1382
+ #
1383
+ # # Create a request. To set request fields, pass in keyword arguments.
1384
+ # request = Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest.new
1385
+ #
1386
+ # # Call the run_restore_template method.
1387
+ # result = client.run_restore_template request
1388
+ #
1389
+ # # The returned object is of type Gapic::Operation. You can use it to
1390
+ # # check the status of an operation, cancel it, or wait for results.
1391
+ # # Here is how to wait for a response.
1392
+ # result.wait_until_done! timeout: 60
1393
+ # if result.response?
1394
+ # p result.response
1395
+ # else
1396
+ # puts "No response received."
1397
+ # end
1398
+ #
1399
+ def run_restore_template request, options = nil
1400
+ raise ::ArgumentError, "request must be provided" if request.nil?
1401
+
1402
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest
1403
+
1404
+ # Converts hash and nil to an options object
1405
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1406
+
1407
+ # Customize the options with defaults
1408
+ metadata = @config.rpcs.run_restore_template.metadata.to_h
1409
+
1410
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1411
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1412
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1413
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1414
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1415
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1416
+
1417
+ header_params = {}
1418
+ if request.name
1419
+ header_params["name"] = request.name
1420
+ end
1421
+
1422
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1423
+ metadata[:"x-goog-request-params"] ||= request_params_header
1424
+
1425
+ options.apply_defaults timeout: @config.rpcs.run_restore_template.timeout,
1426
+ metadata: metadata,
1427
+ retry_policy: @config.rpcs.run_restore_template.retry_policy
1428
+
1429
+ options.apply_defaults timeout: @config.timeout,
1430
+ metadata: @config.metadata,
1431
+ retry_policy: @config.retry_policy
1432
+
1433
+ @backup_dr_stub.call_rpc :run_restore_template, request, options: options do |response, operation|
1434
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1435
+ yield response, operation if block_given?
1436
+ throw :response, response
1437
+ end
1438
+ rescue ::GRPC::BadStatus => e
1439
+ raise ::Google::Cloud::Error.from_error(e)
1440
+ end
1441
+
1442
+ ##
1443
+ # Gets details of a RestoreTemplateExecution.
1444
+ #
1445
+ # @overload get_restore_template_execution(request, options = nil)
1446
+ # Pass arguments to `get_restore_template_execution` via a request object, either of type
1447
+ # {::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest} or an equivalent Hash.
1448
+ #
1449
+ # @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest, ::Hash]
1450
+ # A request object representing the call parameters. Required. To specify no
1451
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1452
+ # @param options [::Gapic::CallOptions, ::Hash]
1453
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1454
+ #
1455
+ # @overload get_restore_template_execution(name: nil)
1456
+ # Pass arguments to `get_restore_template_execution` via keyword arguments. Note that at
1457
+ # least one keyword argument is required. To specify no parameters, or to keep all
1458
+ # the default parameter values, pass an empty Hash as a request object (see above).
1459
+ #
1460
+ # @param name [::String]
1461
+ # Required. The name of the restore template execution to retrieve.
1462
+ # Format:
1463
+ # 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}/executions/\\{execution_id}'
1464
+ #
1465
+ # @yield [response, operation] Access the result along with the RPC operation
1466
+ # @yieldparam response [::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution]
1467
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1468
+ #
1469
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution]
1470
+ #
1471
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1472
+ #
1473
+ # @example Basic example
1474
+ # require "google/cloud/backupdr/v1beta"
1475
+ #
1476
+ # # Create a client object. The client can be reused for multiple calls.
1477
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1478
+ #
1479
+ # # Create a request. To set request fields, pass in keyword arguments.
1480
+ # request = Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest.new
1481
+ #
1482
+ # # Call the get_restore_template_execution method.
1483
+ # result = client.get_restore_template_execution request
1484
+ #
1485
+ # # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution.
1486
+ # p result
1487
+ #
1488
+ def get_restore_template_execution request, options = nil
1489
+ raise ::ArgumentError, "request must be provided" if request.nil?
1490
+
1491
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest
1492
+
1493
+ # Converts hash and nil to an options object
1494
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1495
+
1496
+ # Customize the options with defaults
1497
+ metadata = @config.rpcs.get_restore_template_execution.metadata.to_h
1498
+
1499
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1500
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1501
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1502
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1503
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1504
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1505
+
1506
+ header_params = {}
1507
+ if request.name
1508
+ header_params["name"] = request.name
1509
+ end
1510
+
1511
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1512
+ metadata[:"x-goog-request-params"] ||= request_params_header
1513
+
1514
+ options.apply_defaults timeout: @config.rpcs.get_restore_template_execution.timeout,
1515
+ metadata: metadata,
1516
+ retry_policy: @config.rpcs.get_restore_template_execution.retry_policy
1517
+
1518
+ options.apply_defaults timeout: @config.timeout,
1519
+ metadata: @config.metadata,
1520
+ retry_policy: @config.retry_policy
1521
+
1522
+ @backup_dr_stub.call_rpc :get_restore_template_execution, request, options: options do |response, operation|
1523
+ yield response, operation if block_given?
1524
+ end
1525
+ rescue ::GRPC::BadStatus => e
1526
+ raise ::Google::Cloud::Error.from_error(e)
1527
+ end
1528
+
1529
+ ##
1530
+ # Lists RestoreTemplateExecutions in a given project, location and restore
1531
+ # template.
1532
+ #
1533
+ # @overload list_restore_template_executions(request, options = nil)
1534
+ # Pass arguments to `list_restore_template_executions` via a request object, either of type
1535
+ # {::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest} or an equivalent Hash.
1536
+ #
1537
+ # @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest, ::Hash]
1538
+ # A request object representing the call parameters. Required. To specify no
1539
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1540
+ # @param options [::Gapic::CallOptions, ::Hash]
1541
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1542
+ #
1543
+ # @overload list_restore_template_executions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
1544
+ # Pass arguments to `list_restore_template_executions` via keyword arguments. Note that at
1545
+ # least one keyword argument is required. To specify no parameters, or to keep all
1546
+ # the default parameter values, pass an empty Hash as a request object (see above).
1547
+ #
1548
+ # @param parent [::String]
1549
+ # Required. The project, location, and restore template for which to retrieve
1550
+ # executions information.
1551
+ # Format:
1552
+ # `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`.
1553
+ # @param page_size [::Integer]
1554
+ # Optional. Requested page size.
1555
+ # @param page_token [::String]
1556
+ # Optional. A token identifying a page of results.
1557
+ # @param filter [::String]
1558
+ # Optional. Filtering results.
1559
+ # @param order_by [::String]
1560
+ # Optional. Hint for how to order the results.
1561
+ #
1562
+ # @yield [response, operation] Access the result along with the RPC operation
1563
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution>]
1564
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1565
+ #
1566
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution>]
1567
+ #
1568
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1569
+ #
1570
+ # @example Basic example
1571
+ # require "google/cloud/backupdr/v1beta"
1572
+ #
1573
+ # # Create a client object. The client can be reused for multiple calls.
1574
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1575
+ #
1576
+ # # Create a request. To set request fields, pass in keyword arguments.
1577
+ # request = Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest.new
1578
+ #
1579
+ # # Call the list_restore_template_executions method.
1580
+ # result = client.list_restore_template_executions request
1581
+ #
1582
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1583
+ # # over elements, and API calls will be issued to fetch pages as needed.
1584
+ # result.each do |item|
1585
+ # # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution.
1586
+ # p item
1587
+ # end
1588
+ #
1589
+ def list_restore_template_executions request, options = nil
1590
+ raise ::ArgumentError, "request must be provided" if request.nil?
1591
+
1592
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest
1593
+
1594
+ # Converts hash and nil to an options object
1595
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1596
+
1597
+ # Customize the options with defaults
1598
+ metadata = @config.rpcs.list_restore_template_executions.metadata.to_h
1599
+
1600
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1601
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1602
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1603
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1604
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1605
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1606
+
1607
+ header_params = {}
1608
+ if request.parent
1609
+ header_params["parent"] = request.parent
1610
+ end
1611
+
1612
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1613
+ metadata[:"x-goog-request-params"] ||= request_params_header
1614
+
1615
+ options.apply_defaults timeout: @config.rpcs.list_restore_template_executions.timeout,
1616
+ metadata: metadata,
1617
+ retry_policy: @config.rpcs.list_restore_template_executions.retry_policy
1618
+
1619
+ options.apply_defaults timeout: @config.timeout,
1620
+ metadata: @config.metadata,
1621
+ retry_policy: @config.retry_policy
1622
+
1623
+ @backup_dr_stub.call_rpc :list_restore_template_executions, request, options: options do |response, operation|
1624
+ response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :list_restore_template_executions, request, response, operation, options
1625
+ yield response, operation if block_given?
1626
+ throw :response, response
1627
+ end
1628
+ rescue ::GRPC::BadStatus => e
1629
+ raise ::Google::Cloud::Error.from_error(e)
1630
+ end
1631
+
1632
+ ##
1633
+ # Triggers cleanup of restored resources created during execution.
1634
+ #
1635
+ # @overload trigger_restore_cleanup(request, options = nil)
1636
+ # Pass arguments to `trigger_restore_cleanup` via a request object, either of type
1637
+ # {::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest} or an equivalent Hash.
1638
+ #
1639
+ # @param request [::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest, ::Hash]
1640
+ # A request object representing the call parameters. Required. To specify no
1641
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1642
+ # @param options [::Gapic::CallOptions, ::Hash]
1643
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1644
+ #
1645
+ # @overload trigger_restore_cleanup(name: nil, request_id: nil)
1646
+ # Pass arguments to `trigger_restore_cleanup` via keyword arguments. Note that at
1647
+ # least one keyword argument is required. To specify no parameters, or to keep all
1648
+ # the default parameter values, pass an empty Hash as a request object (see above).
1649
+ #
1650
+ # @param name [::String]
1651
+ # Required. Name of the restore template execution.
1652
+ # Format:
1653
+ # 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}/executions/\\{execution_id}'
1654
+ # @param request_id [::String]
1655
+ # Optional. An optional request ID to identify requests. Specify a unique
1656
+ # request ID so that if you must retry your request, the server will know to
1657
+ # ignore the request if it has already been completed. The server will
1658
+ # guarantee that for at least 60 minutes after the first request.
1659
+ #
1660
+ # The request ID must be a valid UUID with the exception that zero UUID is
1661
+ # not supported (00000000-0000-0000-0000-000000000000).
1662
+ #
1663
+ # @yield [response, operation] Access the result along with the RPC operation
1664
+ # @yieldparam response [::Gapic::Operation]
1665
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1666
+ #
1667
+ # @return [::Gapic::Operation]
1668
+ #
1669
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1670
+ #
1671
+ # @example Basic example
1672
+ # require "google/cloud/backupdr/v1beta"
1673
+ #
1674
+ # # Create a client object. The client can be reused for multiple calls.
1675
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1676
+ #
1677
+ # # Create a request. To set request fields, pass in keyword arguments.
1678
+ # request = Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest.new
1679
+ #
1680
+ # # Call the trigger_restore_cleanup method.
1681
+ # result = client.trigger_restore_cleanup request
1682
+ #
1683
+ # # The returned object is of type Gapic::Operation. You can use it to
1684
+ # # check the status of an operation, cancel it, or wait for results.
1685
+ # # Here is how to wait for a response.
1686
+ # result.wait_until_done! timeout: 60
1687
+ # if result.response?
1688
+ # p result.response
1689
+ # else
1690
+ # puts "No response received."
1691
+ # end
1692
+ #
1693
+ def trigger_restore_cleanup request, options = nil
1694
+ raise ::ArgumentError, "request must be provided" if request.nil?
1695
+
1696
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest
1697
+
1698
+ # Converts hash and nil to an options object
1699
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1700
+
1701
+ # Customize the options with defaults
1702
+ metadata = @config.rpcs.trigger_restore_cleanup.metadata.to_h
1703
+
1704
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1705
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1706
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1707
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1708
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1709
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1710
+
1711
+ header_params = {}
1712
+ if request.name
1713
+ header_params["name"] = request.name
1714
+ end
1715
+
1716
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1717
+ metadata[:"x-goog-request-params"] ||= request_params_header
1718
+
1719
+ options.apply_defaults timeout: @config.rpcs.trigger_restore_cleanup.timeout,
1720
+ metadata: metadata,
1721
+ retry_policy: @config.rpcs.trigger_restore_cleanup.retry_policy
1722
+
1723
+ options.apply_defaults timeout: @config.timeout,
1724
+ metadata: @config.metadata,
1725
+ retry_policy: @config.retry_policy
1726
+
1727
+ @backup_dr_stub.call_rpc :trigger_restore_cleanup, request, options: options do |response, operation|
1728
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1729
+ yield response, operation if block_given?
1730
+ throw :response, response
1731
+ end
1732
+ rescue ::GRPC::BadStatus => e
1733
+ raise ::Google::Cloud::Error.from_error(e)
1734
+ end
1735
+
1736
+ ##
1737
+ # Creates a new RestoreVerificationPlan in a given project and location.
1738
+ #
1739
+ # @overload create_restore_verification_plan(request, options = nil)
1740
+ # Pass arguments to `create_restore_verification_plan` via a request object, either of type
1741
+ # {::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest} or an equivalent Hash.
1742
+ #
1743
+ # @param request [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest, ::Hash]
1744
+ # A request object representing the call parameters. Required. To specify no
1745
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1746
+ # @param options [::Gapic::CallOptions, ::Hash]
1747
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1748
+ #
1749
+ # @overload create_restore_verification_plan(parent: nil, restore_verification_plan_id: nil, restore_verification_plan: nil, request_id: nil)
1750
+ # Pass arguments to `create_restore_verification_plan` via keyword arguments. Note that at
1751
+ # least one keyword argument is required. To specify no parameters, or to keep all
1752
+ # the default parameter values, pass an empty Hash as a request object (see above).
1753
+ #
1754
+ # @param parent [::String]
1755
+ # Required. The `RestoreVerificationPlan` project and location in the format
1756
+ # `projects/{project}/locations/{location}`. In Google Cloud Backup and DR
1757
+ # locations map to Google Cloud regions, for example **us-central1**.
1758
+ # @param restore_verification_plan_id [::String]
1759
+ # Required. The name of the `RestoreVerificationPlan` to create. The name
1760
+ # must be unique for the specified project and location. The name must start
1761
+ # with a lowercase letter followed by up to 62 lowercase letters, numbers, or
1762
+ # hyphens. Pattern, `^[a-z]([-a-z0-9]*[a-z0-9])?$`.
1763
+ # @param restore_verification_plan [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan, ::Hash]
1764
+ # Required. The `RestoreVerificationPlan` resource object to create.
1765
+ # @param request_id [::String]
1766
+ # Optional. An optional request ID to identify requests. Specify a unique
1767
+ # request ID so that if you must retry your request, the server will know to
1768
+ # ignore the request if it has already been completed. The server will
1769
+ # guarantee that for at least 60 minutes since the first request.
1770
+ #
1771
+ # For example, consider a situation where you make an initial request and
1772
+ # the request times out. If you make the request again with the same request
1773
+ # ID, the server can check if original operation with the same request ID
1774
+ # was received, and if so, will ignore the second request. This prevents
1775
+ # clients from accidentally creating duplicate commitments.
1776
+ #
1777
+ # The request ID must be a valid UUID with the exception that zero UUID is
1778
+ # not supported (00000000-0000-0000-0000-000000000000).
1779
+ #
1780
+ # @yield [response, operation] Access the result along with the RPC operation
1781
+ # @yieldparam response [::Gapic::Operation]
1782
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1783
+ #
1784
+ # @return [::Gapic::Operation]
1785
+ #
1786
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1787
+ #
1788
+ # @example Basic example
1789
+ # require "google/cloud/backupdr/v1beta"
1790
+ #
1791
+ # # Create a client object. The client can be reused for multiple calls.
1792
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1793
+ #
1794
+ # # Create a request. To set request fields, pass in keyword arguments.
1795
+ # request = Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest.new
1796
+ #
1797
+ # # Call the create_restore_verification_plan method.
1798
+ # result = client.create_restore_verification_plan request
1799
+ #
1800
+ # # The returned object is of type Gapic::Operation. You can use it to
1801
+ # # check the status of an operation, cancel it, or wait for results.
1802
+ # # Here is how to wait for a response.
1803
+ # result.wait_until_done! timeout: 60
1804
+ # if result.response?
1805
+ # p result.response
1806
+ # else
1807
+ # puts "No response received."
1808
+ # end
1809
+ #
1810
+ def create_restore_verification_plan request, options = nil
1811
+ raise ::ArgumentError, "request must be provided" if request.nil?
1812
+
1813
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest
1814
+
1815
+ # Converts hash and nil to an options object
1816
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1817
+
1818
+ # Customize the options with defaults
1819
+ metadata = @config.rpcs.create_restore_verification_plan.metadata.to_h
1820
+
1821
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1822
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1823
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1824
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1825
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1826
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1827
+
1828
+ header_params = {}
1829
+ if request.parent
1830
+ header_params["parent"] = request.parent
1831
+ end
1832
+
1833
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1834
+ metadata[:"x-goog-request-params"] ||= request_params_header
1835
+
1836
+ options.apply_defaults timeout: @config.rpcs.create_restore_verification_plan.timeout,
1837
+ metadata: metadata,
1838
+ retry_policy: @config.rpcs.create_restore_verification_plan.retry_policy
1839
+
1840
+ options.apply_defaults timeout: @config.timeout,
1841
+ metadata: @config.metadata,
1842
+ retry_policy: @config.retry_policy
1843
+
1844
+ @backup_dr_stub.call_rpc :create_restore_verification_plan, request, options: options do |response, operation|
1845
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1846
+ yield response, operation if block_given?
1847
+ throw :response, response
1848
+ end
1849
+ rescue ::GRPC::BadStatus => e
1850
+ raise ::Google::Cloud::Error.from_error(e)
1851
+ end
1852
+
1853
+ ##
1854
+ # Creates a new RestoreVerificationPlanAssociation in a given
1855
+ # RestoreVerificationPlan.
1856
+ #
1857
+ # @overload create_restore_verification_plan_association(request, options = nil)
1858
+ # Pass arguments to `create_restore_verification_plan_association` via a request object, either of type
1859
+ # {::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
1860
+ #
1861
+ # @param request [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest, ::Hash]
1862
+ # A request object representing the call parameters. Required. To specify no
1863
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1864
+ # @param options [::Gapic::CallOptions, ::Hash]
1865
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1866
+ #
1867
+ # @overload create_restore_verification_plan_association(parent: nil, restore_verification_plan_association_id: nil, restore_verification_plan_association: nil, request_id: nil)
1868
+ # Pass arguments to `create_restore_verification_plan_association` via keyword arguments. Note that at
1869
+ # least one keyword argument is required. To specify no parameters, or to keep all
1870
+ # the default parameter values, pass an empty Hash as a request object (see above).
1871
+ #
1872
+ # @param parent [::String]
1873
+ # Required. The parent resource where this association will be created.
1874
+ # Format:
1875
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
1876
+ # @param restore_verification_plan_association_id [::String]
1877
+ # Required. The ID to use for the association, which will become the final
1878
+ # component of the association's resource name.
1879
+ #
1880
+ # This value should be 1-63 characters, and valid characters are
1881
+ # /[a-z0-9_-]/.
1882
+ # @param restore_verification_plan_association [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation, ::Hash]
1883
+ # Required. The RestoreVerificationPlanAssociation resource to create.
1884
+ # @param request_id [::String]
1885
+ # Optional. An optional request ID to identify requests. Specify a unique
1886
+ # request ID so that if you must retry your request, the server will know
1887
+ # that the server has already received the duplicate request and can avoid
1888
+ # responding with an error. The request ID must be a valid UUID with the
1889
+ # exception that zero UUID is not supported
1890
+ # (00000000-0000-0000-0000-000000000000).
1891
+ #
1892
+ # @yield [response, operation] Access the result along with the RPC operation
1893
+ # @yieldparam response [::Gapic::Operation]
1894
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1895
+ #
1896
+ # @return [::Gapic::Operation]
1897
+ #
1898
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1899
+ #
1900
+ # @example Basic example
1901
+ # require "google/cloud/backupdr/v1beta"
1902
+ #
1903
+ # # Create a client object. The client can be reused for multiple calls.
1904
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
1905
+ #
1906
+ # # Create a request. To set request fields, pass in keyword arguments.
1907
+ # request = Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest.new
1908
+ #
1909
+ # # Call the create_restore_verification_plan_association method.
1910
+ # result = client.create_restore_verification_plan_association request
1911
+ #
1912
+ # # The returned object is of type Gapic::Operation. You can use it to
1913
+ # # check the status of an operation, cancel it, or wait for results.
1914
+ # # Here is how to wait for a response.
1915
+ # result.wait_until_done! timeout: 60
1916
+ # if result.response?
1917
+ # p result.response
1918
+ # else
1919
+ # puts "No response received."
1920
+ # end
1921
+ #
1922
+ def create_restore_verification_plan_association request, options = nil
1923
+ raise ::ArgumentError, "request must be provided" if request.nil?
1924
+
1925
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest
1926
+
1927
+ # Converts hash and nil to an options object
1928
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1929
+
1930
+ # Customize the options with defaults
1931
+ metadata = @config.rpcs.create_restore_verification_plan_association.metadata.to_h
1932
+
1933
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1934
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1935
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1936
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
1937
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1938
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1939
+
1940
+ header_params = {}
1941
+ if request.parent
1942
+ header_params["parent"] = request.parent
1943
+ end
1944
+
1945
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1946
+ metadata[:"x-goog-request-params"] ||= request_params_header
1947
+
1948
+ options.apply_defaults timeout: @config.rpcs.create_restore_verification_plan_association.timeout,
1949
+ metadata: metadata,
1950
+ retry_policy: @config.rpcs.create_restore_verification_plan_association.retry_policy
1951
+
1952
+ options.apply_defaults timeout: @config.timeout,
1953
+ metadata: @config.metadata,
1954
+ retry_policy: @config.retry_policy
1955
+
1956
+ @backup_dr_stub.call_rpc :create_restore_verification_plan_association, request, options: options do |response, operation|
1957
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1958
+ yield response, operation if block_given?
1959
+ throw :response, response
1960
+ end
1961
+ rescue ::GRPC::BadStatus => e
1962
+ raise ::Google::Cloud::Error.from_error(e)
1963
+ end
1964
+
1965
+ ##
1966
+ # Gets details of a single RestoreVerificationPlanAssociation in a given
1967
+ # RestoreVerificationPlan.
1968
+ #
1969
+ # @overload get_restore_verification_plan_association(request, options = nil)
1970
+ # Pass arguments to `get_restore_verification_plan_association` via a request object, either of type
1971
+ # {::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
1972
+ #
1973
+ # @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest, ::Hash]
1974
+ # A request object representing the call parameters. Required. To specify no
1975
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1976
+ # @param options [::Gapic::CallOptions, ::Hash]
1977
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1978
+ #
1979
+ # @overload get_restore_verification_plan_association(name: nil)
1980
+ # Pass arguments to `get_restore_verification_plan_association` via keyword arguments. Note that at
1981
+ # least one keyword argument is required. To specify no parameters, or to keep all
1982
+ # the default parameter values, pass an empty Hash as a request object (see above).
1983
+ #
1984
+ # @param name [::String]
1985
+ # Required. The resource name of the RestoreVerificationPlanAssociation to
1986
+ # retrieve.
1987
+ # Format:
1988
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
1989
+ #
1990
+ # @yield [response, operation] Access the result along with the RPC operation
1991
+ # @yieldparam response [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation]
1992
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1993
+ #
1994
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation]
1995
+ #
1996
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1997
+ #
1998
+ # @example Basic example
1999
+ # require "google/cloud/backupdr/v1beta"
2000
+ #
2001
+ # # Create a client object. The client can be reused for multiple calls.
2002
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
2003
+ #
2004
+ # # Create a request. To set request fields, pass in keyword arguments.
2005
+ # request = Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest.new
2006
+ #
2007
+ # # Call the get_restore_verification_plan_association method.
2008
+ # result = client.get_restore_verification_plan_association request
2009
+ #
2010
+ # # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation.
2011
+ # p result
2012
+ #
2013
+ def get_restore_verification_plan_association request, options = nil
2014
+ raise ::ArgumentError, "request must be provided" if request.nil?
2015
+
2016
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest
2017
+
2018
+ # Converts hash and nil to an options object
2019
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2020
+
2021
+ # Customize the options with defaults
2022
+ metadata = @config.rpcs.get_restore_verification_plan_association.metadata.to_h
2023
+
2024
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2025
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2026
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2027
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
2028
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2029
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2030
+
2031
+ header_params = {}
2032
+ if request.name
2033
+ header_params["name"] = request.name
2034
+ end
2035
+
2036
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2037
+ metadata[:"x-goog-request-params"] ||= request_params_header
2038
+
2039
+ options.apply_defaults timeout: @config.rpcs.get_restore_verification_plan_association.timeout,
2040
+ metadata: metadata,
2041
+ retry_policy: @config.rpcs.get_restore_verification_plan_association.retry_policy
2042
+
2043
+ options.apply_defaults timeout: @config.timeout,
2044
+ metadata: @config.metadata,
2045
+ retry_policy: @config.retry_policy
2046
+
2047
+ @backup_dr_stub.call_rpc :get_restore_verification_plan_association, request, options: options do |response, operation|
2048
+ yield response, operation if block_given?
2049
+ end
2050
+ rescue ::GRPC::BadStatus => e
2051
+ raise ::Google::Cloud::Error.from_error(e)
2052
+ end
2053
+
2054
+ ##
2055
+ # Lists RestoreVerificationPlanAssociations in a given
2056
+ # RestoreVerificationPlan.
2057
+ #
2058
+ # @overload list_restore_verification_plan_associations(request, options = nil)
2059
+ # Pass arguments to `list_restore_verification_plan_associations` via a request object, either of type
2060
+ # {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest} or an equivalent Hash.
2061
+ #
2062
+ # @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest, ::Hash]
2063
+ # A request object representing the call parameters. Required. To specify no
2064
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2065
+ # @param options [::Gapic::CallOptions, ::Hash]
2066
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2067
+ #
2068
+ # @overload list_restore_verification_plan_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
2069
+ # Pass arguments to `list_restore_verification_plan_associations` via keyword arguments. Note that at
2070
+ # least one keyword argument is required. To specify no parameters, or to keep all
2071
+ # the default parameter values, pass an empty Hash as a request object (see above).
2072
+ #
2073
+ # @param parent [::String]
2074
+ # Required. The parent RestoreVerificationPlan name.
2075
+ # Format:
2076
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
2077
+ # @param page_size [::Integer]
2078
+ # Optional. The maximum number of associations to return. The service may
2079
+ # return fewer than this value.
2080
+ # If unspecified, at most 500 associations will be returned.
2081
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
2082
+ # @param page_token [::String]
2083
+ # Optional. A page token, received from a previous
2084
+ # `ListRestoreVerificationPlanAssociations` call.
2085
+ # Provide this to retrieve the subsequent page.
2086
+ #
2087
+ # When paginating, all other parameters provided to
2088
+ # `ListRestoreVerificationPlanAssociations` must match the call that provided
2089
+ # the page token.
2090
+ # @param filter [::String]
2091
+ # Optional. Filtering results.
2092
+ # @param order_by [::String]
2093
+ # Optional. Hint for how to order the results.
2094
+ #
2095
+ # @yield [response, operation] Access the result along with the RPC operation
2096
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation>]
2097
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2098
+ #
2099
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation>]
2100
+ #
2101
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2102
+ #
2103
+ # @example Basic example
2104
+ # require "google/cloud/backupdr/v1beta"
2105
+ #
2106
+ # # Create a client object. The client can be reused for multiple calls.
2107
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
2108
+ #
2109
+ # # Create a request. To set request fields, pass in keyword arguments.
2110
+ # request = Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest.new
2111
+ #
2112
+ # # Call the list_restore_verification_plan_associations method.
2113
+ # result = client.list_restore_verification_plan_associations request
2114
+ #
2115
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2116
+ # # over elements, and API calls will be issued to fetch pages as needed.
2117
+ # result.each do |item|
2118
+ # # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation.
2119
+ # p item
2120
+ # end
2121
+ #
2122
+ def list_restore_verification_plan_associations request, options = nil
2123
+ raise ::ArgumentError, "request must be provided" if request.nil?
2124
+
2125
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest
2126
+
2127
+ # Converts hash and nil to an options object
2128
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2129
+
2130
+ # Customize the options with defaults
2131
+ metadata = @config.rpcs.list_restore_verification_plan_associations.metadata.to_h
2132
+
2133
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2134
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2135
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2136
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
2137
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2138
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2139
+
2140
+ header_params = {}
2141
+ if request.parent
2142
+ header_params["parent"] = request.parent
2143
+ end
2144
+
2145
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2146
+ metadata[:"x-goog-request-params"] ||= request_params_header
2147
+
2148
+ options.apply_defaults timeout: @config.rpcs.list_restore_verification_plan_associations.timeout,
2149
+ metadata: metadata,
2150
+ retry_policy: @config.rpcs.list_restore_verification_plan_associations.retry_policy
2151
+
2152
+ options.apply_defaults timeout: @config.timeout,
2153
+ metadata: @config.metadata,
2154
+ retry_policy: @config.retry_policy
2155
+
2156
+ @backup_dr_stub.call_rpc :list_restore_verification_plan_associations, request, options: options do |response, operation|
2157
+ response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :list_restore_verification_plan_associations, request, response, operation, options
2158
+ yield response, operation if block_given?
2159
+ throw :response, response
2160
+ end
2161
+ rescue ::GRPC::BadStatus => e
2162
+ raise ::Google::Cloud::Error.from_error(e)
2163
+ end
2164
+
2165
+ ##
2166
+ # Deletes a single RestoreVerificationPlanAssociation in a given
2167
+ # RestoreVerificationPlan.
2168
+ #
2169
+ # @overload delete_restore_verification_plan_association(request, options = nil)
2170
+ # Pass arguments to `delete_restore_verification_plan_association` via a request object, either of type
2171
+ # {::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
2172
+ #
2173
+ # @param request [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest, ::Hash]
2174
+ # A request object representing the call parameters. Required. To specify no
2175
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2176
+ # @param options [::Gapic::CallOptions, ::Hash]
2177
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2178
+ #
2179
+ # @overload delete_restore_verification_plan_association(name: nil, request_id: nil)
2180
+ # Pass arguments to `delete_restore_verification_plan_association` via keyword arguments. Note that at
2181
+ # least one keyword argument is required. To specify no parameters, or to keep all
2182
+ # the default parameter values, pass an empty Hash as a request object (see above).
2183
+ #
2184
+ # @param name [::String]
2185
+ # Required. The resource name of the RestoreVerificationPlanAssociation to
2186
+ # delete.
2187
+ # Format:
2188
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
2189
+ # @param request_id [::String]
2190
+ # Optional. An optional request ID to identify requests. Specify a unique
2191
+ # request ID so that if you must retry your request, the server will know
2192
+ # that the server has already received the duplicate request and can avoid
2193
+ # responding with an error. The request ID must be a valid UUID with the
2194
+ # exception that zero UUID is not supported
2195
+ # (00000000-0000-0000-0000-000000000000).
2196
+ #
2197
+ # @yield [response, operation] Access the result along with the RPC operation
2198
+ # @yieldparam response [::Gapic::Operation]
2199
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2200
+ #
2201
+ # @return [::Gapic::Operation]
2202
+ #
2203
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2204
+ #
2205
+ # @example Basic example
2206
+ # require "google/cloud/backupdr/v1beta"
2207
+ #
2208
+ # # Create a client object. The client can be reused for multiple calls.
2209
+ # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
2210
+ #
2211
+ # # Create a request. To set request fields, pass in keyword arguments.
2212
+ # request = Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest.new
2213
+ #
2214
+ # # Call the delete_restore_verification_plan_association method.
2215
+ # result = client.delete_restore_verification_plan_association request
2216
+ #
2217
+ # # The returned object is of type Gapic::Operation. You can use it to
2218
+ # # check the status of an operation, cancel it, or wait for results.
2219
+ # # Here is how to wait for a response.
2220
+ # result.wait_until_done! timeout: 60
2221
+ # if result.response?
2222
+ # p result.response
2223
+ # else
2224
+ # puts "No response received."
2225
+ # end
2226
+ #
2227
+ def delete_restore_verification_plan_association request, options = nil
2228
+ raise ::ArgumentError, "request must be provided" if request.nil?
2229
+
2230
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest
2231
+
2232
+ # Converts hash and nil to an options object
2233
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2234
+
2235
+ # Customize the options with defaults
2236
+ metadata = @config.rpcs.delete_restore_verification_plan_association.metadata.to_h
2237
+
2238
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2239
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2240
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2241
+ gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION
2242
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2243
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2244
+
2245
+ header_params = {}
2246
+ if request.name
2247
+ header_params["name"] = request.name
2248
+ end
2249
+
2250
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2251
+ metadata[:"x-goog-request-params"] ||= request_params_header
2252
+
2253
+ options.apply_defaults timeout: @config.rpcs.delete_restore_verification_plan_association.timeout,
2254
+ metadata: metadata,
2255
+ retry_policy: @config.rpcs.delete_restore_verification_plan_association.retry_policy
2256
+
2257
+ options.apply_defaults timeout: @config.timeout,
2258
+ metadata: @config.metadata,
2259
+ retry_policy: @config.retry_policy
2260
+
2261
+ @backup_dr_stub.call_rpc :delete_restore_verification_plan_association, request, options: options do |response, operation|
2262
+ response = ::Gapic::Operation.new response, @operations_client, options: options
2263
+ yield response, operation if block_given?
2264
+ throw :response, response
2265
+ end
2266
+ rescue ::GRPC::BadStatus => e
2267
+ raise ::Google::Cloud::Error.from_error(e)
2268
+ end
2269
+
2270
+ ##
2271
+ # Triggers a new Restore Verification for the association in a given
2272
+ # RestoreVerificationPlan.
2273
+ #
2274
+ # @overload trigger_restore_verification(request, options = nil)
2275
+ # Pass arguments to `trigger_restore_verification` via a request object, either of type
2276
+ # {::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest} or an equivalent Hash.
2277
+ #
2278
+ # @param request [::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest, ::Hash]
2279
+ # A request object representing the call parameters. Required. To specify no
2280
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2281
+ # @param options [::Gapic::CallOptions, ::Hash]
2282
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2283
+ #
2284
+ # @overload trigger_restore_verification(name: nil, request_id: nil)
2285
+ # Pass arguments to `trigger_restore_verification` via keyword arguments. Note that at
2286
+ # least one keyword argument is required. To specify no parameters, or to keep all
2287
+ # the default parameter values, pass an empty Hash as a request object (see above).
2288
+ #
2289
+ # @param name [::String]
2290
+ # Required. The resource name of the RestoreVerificationPlanAssociation to
2291
+ # trigger.
2292
+ # Format:
2293
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
2294
+ # @param request_id [::String]
2295
+ # Optional. An optional request ID to identify requests. Specify a unique
2296
+ # request ID so that if you must retry your request, the server will know
2297
+ # that the server has already received the duplicate request and can avoid
2298
+ # responding with an error. The request ID must be a valid UUID with the
2299
+ # exception that zero UUID is not supported
2300
+ # (00000000-0000-0000-0000-000000000000).
2301
+ #
2302
+ # @yield [response, operation] Access the result along with the RPC operation
2303
+ # @yieldparam response [::Gapic::Operation]
342
2304
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
343
2305
  #
344
- # @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::ManagementServer>]
2306
+ # @return [::Gapic::Operation]
345
2307
  #
346
2308
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
347
2309
  #
@@ -352,28 +2314,31 @@ module Google
352
2314
  # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
353
2315
  #
354
2316
  # # Create a request. To set request fields, pass in keyword arguments.
355
- # request = Google::Cloud::BackupDR::V1beta::ListManagementServersRequest.new
2317
+ # request = Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest.new
356
2318
  #
357
- # # Call the list_management_servers method.
358
- # result = client.list_management_servers request
2319
+ # # Call the trigger_restore_verification method.
2320
+ # result = client.trigger_restore_verification request
359
2321
  #
360
- # # The returned object is of type Gapic::PagedEnumerable. You can iterate
361
- # # over elements, and API calls will be issued to fetch pages as needed.
362
- # result.each do |item|
363
- # # Each element is of type ::Google::Cloud::BackupDR::V1beta::ManagementServer.
364
- # p item
2322
+ # # The returned object is of type Gapic::Operation. You can use it to
2323
+ # # check the status of an operation, cancel it, or wait for results.
2324
+ # # Here is how to wait for a response.
2325
+ # result.wait_until_done! timeout: 60
2326
+ # if result.response?
2327
+ # p result.response
2328
+ # else
2329
+ # puts "No response received."
365
2330
  # end
366
2331
  #
367
- def list_management_servers request, options = nil
2332
+ def trigger_restore_verification request, options = nil
368
2333
  raise ::ArgumentError, "request must be provided" if request.nil?
369
2334
 
370
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListManagementServersRequest
2335
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest
371
2336
 
372
2337
  # Converts hash and nil to an options object
373
2338
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
374
2339
 
375
2340
  # Customize the options with defaults
376
- metadata = @config.rpcs.list_management_servers.metadata.to_h
2341
+ metadata = @config.rpcs.trigger_restore_verification.metadata.to_h
377
2342
 
378
2343
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
379
2344
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -383,23 +2348,23 @@ module Google
383
2348
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
2349
 
385
2350
  header_params = {}
386
- if request.parent
387
- header_params["parent"] = request.parent
2351
+ if request.name
2352
+ header_params["name"] = request.name
388
2353
  end
389
2354
 
390
2355
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
391
2356
  metadata[:"x-goog-request-params"] ||= request_params_header
392
2357
 
393
- options.apply_defaults timeout: @config.rpcs.list_management_servers.timeout,
2358
+ options.apply_defaults timeout: @config.rpcs.trigger_restore_verification.timeout,
394
2359
  metadata: metadata,
395
- retry_policy: @config.rpcs.list_management_servers.retry_policy
2360
+ retry_policy: @config.rpcs.trigger_restore_verification.retry_policy
396
2361
 
397
2362
  options.apply_defaults timeout: @config.timeout,
398
2363
  metadata: @config.metadata,
399
2364
  retry_policy: @config.retry_policy
400
2365
 
401
- @backup_dr_stub.call_rpc :list_management_servers, request, options: options do |response, operation|
402
- response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :list_management_servers, request, response, operation, options
2366
+ @backup_dr_stub.call_rpc :trigger_restore_verification, request, options: options do |response, operation|
2367
+ response = ::Gapic::Operation.new response, @operations_client, options: options
403
2368
  yield response, operation if block_given?
404
2369
  throw :response, response
405
2370
  end
@@ -408,32 +2373,35 @@ module Google
408
2373
  end
409
2374
 
410
2375
  ##
411
- # Gets details of a single ManagementServer.
2376
+ # Gets details of a single RestoreVerificationPlan. Returns the requested
2377
+ # RestoreVerificationPlan.
412
2378
  #
413
- # @overload get_management_server(request, options = nil)
414
- # Pass arguments to `get_management_server` via a request object, either of type
415
- # {::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest} or an equivalent Hash.
2379
+ # @overload get_restore_verification_plan(request, options = nil)
2380
+ # Pass arguments to `get_restore_verification_plan` via a request object, either of type
2381
+ # {::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest} or an equivalent Hash.
416
2382
  #
417
- # @param request [::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest, ::Hash]
2383
+ # @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest, ::Hash]
418
2384
  # A request object representing the call parameters. Required. To specify no
419
2385
  # parameters, or to keep all the default parameter values, pass an empty Hash.
420
2386
  # @param options [::Gapic::CallOptions, ::Hash]
421
2387
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
422
2388
  #
423
- # @overload get_management_server(name: nil)
424
- # Pass arguments to `get_management_server` via keyword arguments. Note that at
2389
+ # @overload get_restore_verification_plan(name: nil)
2390
+ # Pass arguments to `get_restore_verification_plan` via keyword arguments. Note that at
425
2391
  # least one keyword argument is required. To specify no parameters, or to keep all
426
2392
  # the default parameter values, pass an empty Hash as a request object (see above).
427
2393
  #
428
2394
  # @param name [::String]
429
- # Required. Name of the management server resource name, in the format
430
- # 'projects/\\{project_id}/locations/\\{location}/managementServers/\\{resource_name}'
2395
+ # Required. The resource name of the `RestoreVerificationPlan` to retrieve.
2396
+ #
2397
+ # Format:
2398
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}`
431
2399
  #
432
2400
  # @yield [response, operation] Access the result along with the RPC operation
433
- # @yieldparam response [::Google::Cloud::BackupDR::V1beta::ManagementServer]
2401
+ # @yieldparam response [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan]
434
2402
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
435
2403
  #
436
- # @return [::Google::Cloud::BackupDR::V1beta::ManagementServer]
2404
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan]
437
2405
  #
438
2406
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
439
2407
  #
@@ -444,24 +2412,24 @@ module Google
444
2412
  # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
445
2413
  #
446
2414
  # # Create a request. To set request fields, pass in keyword arguments.
447
- # request = Google::Cloud::BackupDR::V1beta::GetManagementServerRequest.new
2415
+ # request = Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest.new
448
2416
  #
449
- # # Call the get_management_server method.
450
- # result = client.get_management_server request
2417
+ # # Call the get_restore_verification_plan method.
2418
+ # result = client.get_restore_verification_plan request
451
2419
  #
452
- # # The returned object is of type Google::Cloud::BackupDR::V1beta::ManagementServer.
2420
+ # # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan.
453
2421
  # p result
454
2422
  #
455
- def get_management_server request, options = nil
2423
+ def get_restore_verification_plan request, options = nil
456
2424
  raise ::ArgumentError, "request must be provided" if request.nil?
457
2425
 
458
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest
2426
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest
459
2427
 
460
2428
  # Converts hash and nil to an options object
461
2429
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
462
2430
 
463
2431
  # Customize the options with defaults
464
- metadata = @config.rpcs.get_management_server.metadata.to_h
2432
+ metadata = @config.rpcs.get_restore_verification_plan.metadata.to_h
465
2433
 
466
2434
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
467
2435
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -478,15 +2446,15 @@ module Google
478
2446
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
479
2447
  metadata[:"x-goog-request-params"] ||= request_params_header
480
2448
 
481
- options.apply_defaults timeout: @config.rpcs.get_management_server.timeout,
2449
+ options.apply_defaults timeout: @config.rpcs.get_restore_verification_plan.timeout,
482
2450
  metadata: metadata,
483
- retry_policy: @config.rpcs.get_management_server.retry_policy
2451
+ retry_policy: @config.rpcs.get_restore_verification_plan.retry_policy
484
2452
 
485
2453
  options.apply_defaults timeout: @config.timeout,
486
2454
  metadata: @config.metadata,
487
2455
  retry_policy: @config.retry_policy
488
2456
 
489
- @backup_dr_stub.call_rpc :get_management_server, request, options: options do |response, operation|
2457
+ @backup_dr_stub.call_rpc :get_restore_verification_plan, request, options: options do |response, operation|
490
2458
  yield response, operation if block_given?
491
2459
  end
492
2460
  rescue ::GRPC::BadStatus => e
@@ -494,53 +2462,55 @@ module Google
494
2462
  end
495
2463
 
496
2464
  ##
497
- # Creates a new ManagementServer in a given project and location.
2465
+ # Lists RestoreVerificationPlans in a given project and location.
498
2466
  #
499
- # @overload create_management_server(request, options = nil)
500
- # Pass arguments to `create_management_server` via a request object, either of type
501
- # {::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest} or an equivalent Hash.
2467
+ # @overload list_restore_verification_plans(request, options = nil)
2468
+ # Pass arguments to `list_restore_verification_plans` via a request object, either of type
2469
+ # {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest} or an equivalent Hash.
502
2470
  #
503
- # @param request [::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest, ::Hash]
2471
+ # @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest, ::Hash]
504
2472
  # A request object representing the call parameters. Required. To specify no
505
2473
  # parameters, or to keep all the default parameter values, pass an empty Hash.
506
2474
  # @param options [::Gapic::CallOptions, ::Hash]
507
2475
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
508
2476
  #
509
- # @overload create_management_server(parent: nil, management_server_id: nil, management_server: nil, request_id: nil)
510
- # Pass arguments to `create_management_server` via keyword arguments. Note that at
2477
+ # @overload list_restore_verification_plans(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
2478
+ # Pass arguments to `list_restore_verification_plans` via keyword arguments. Note that at
511
2479
  # least one keyword argument is required. To specify no parameters, or to keep all
512
2480
  # the default parameter values, pass an empty Hash as a request object (see above).
513
2481
  #
514
2482
  # @param parent [::String]
515
- # Required. The management server project and location in the format
516
- # 'projects/\\{project_id}/locations/\\{location}'. In Google Cloud Backup and DR
517
- # locations map to Google Cloud regions, for example **us-central1**.
518
- # @param management_server_id [::String]
519
- # Required. The name of the management server to create. The name must be
520
- # unique for the specified project and location.
521
- # @param management_server [::Google::Cloud::BackupDR::V1beta::ManagementServer, ::Hash]
522
- # Required. A [management server
523
- # resource][google.cloud.backupdr.v1.ManagementServer]
524
- # @param request_id [::String]
525
- # Optional. An optional request ID to identify requests. Specify a unique
526
- # request ID so that if you must retry your request, the server will know to
527
- # ignore the request if it has already been completed. The server will
528
- # guarantee that for at least 60 minutes since the first request.
529
- #
530
- # For example, consider a situation where you make an initial request and
531
- # the request times out. If you make the request again with the same request
532
- # ID, the server can check if original operation with the same request ID
533
- # was received, and if so, will ignore the second request. This prevents
534
- # clients from accidentally creating duplicate commitments.
535
- #
536
- # The request ID must be a valid UUID with the exception that zero UUID is
537
- # not supported (00000000-0000-0000-0000-000000000000).
2483
+ # Required. The project and location for which to retrieve
2484
+ # `RestoreVerificationPlans` information. Format:
2485
+ # `projects/{project}/locations/{location}`. In Google Cloud Backup and DR,
2486
+ # locations map to Google Cloud regions, for example **us-central1**. To
2487
+ # retrieve restore verification plans for all locations, use
2488
+ # "-" for the `{location}` value.
2489
+ # @param page_size [::Integer]
2490
+ # Optional. The maximum number of `RestoreVerificationPlans` to return in a
2491
+ # single response. If not specified, a default value will be chosen by the
2492
+ # service. Note that the response may include a partial list and a caller
2493
+ # should only rely on the response's
2494
+ # {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansResponse#next_page_token next_page_token}
2495
+ # to determine if there are more instances left to be queried.
2496
+ # @param page_token [::String]
2497
+ # Optional. The value of
2498
+ # {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansResponse#next_page_token next_page_token}
2499
+ # received from a previous `ListRestoreVerificationPlans` call.
2500
+ # Provide this to retrieve the subsequent page in a multi-page list of
2501
+ # results. When paginating, all other parameters provided to
2502
+ # `ListRestoreVerificationPlans` must match the call that provided the page
2503
+ # token.
2504
+ # @param filter [::String]
2505
+ # Optional. Field match expression used to filter the results.
2506
+ # @param order_by [::String]
2507
+ # Optional. Field by which to sort the results.
538
2508
  #
539
2509
  # @yield [response, operation] Access the result along with the RPC operation
540
- # @yieldparam response [::Gapic::Operation]
2510
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan>]
541
2511
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
542
2512
  #
543
- # @return [::Gapic::Operation]
2513
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan>]
544
2514
  #
545
2515
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
546
2516
  #
@@ -551,31 +2521,28 @@ module Google
551
2521
  # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
552
2522
  #
553
2523
  # # Create a request. To set request fields, pass in keyword arguments.
554
- # request = Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest.new
2524
+ # request = Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest.new
555
2525
  #
556
- # # Call the create_management_server method.
557
- # result = client.create_management_server request
2526
+ # # Call the list_restore_verification_plans method.
2527
+ # result = client.list_restore_verification_plans request
558
2528
  #
559
- # # The returned object is of type Gapic::Operation. You can use it to
560
- # # check the status of an operation, cancel it, or wait for results.
561
- # # Here is how to wait for a response.
562
- # result.wait_until_done! timeout: 60
563
- # if result.response?
564
- # p result.response
565
- # else
566
- # puts "No response received."
2529
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2530
+ # # over elements, and API calls will be issued to fetch pages as needed.
2531
+ # result.each do |item|
2532
+ # # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan.
2533
+ # p item
567
2534
  # end
568
2535
  #
569
- def create_management_server request, options = nil
2536
+ def list_restore_verification_plans request, options = nil
570
2537
  raise ::ArgumentError, "request must be provided" if request.nil?
571
2538
 
572
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest
2539
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest
573
2540
 
574
2541
  # Converts hash and nil to an options object
575
2542
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
576
2543
 
577
2544
  # Customize the options with defaults
578
- metadata = @config.rpcs.create_management_server.metadata.to_h
2545
+ metadata = @config.rpcs.list_restore_verification_plans.metadata.to_h
579
2546
 
580
2547
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
581
2548
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -592,16 +2559,16 @@ module Google
592
2559
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
593
2560
  metadata[:"x-goog-request-params"] ||= request_params_header
594
2561
 
595
- options.apply_defaults timeout: @config.rpcs.create_management_server.timeout,
2562
+ options.apply_defaults timeout: @config.rpcs.list_restore_verification_plans.timeout,
596
2563
  metadata: metadata,
597
- retry_policy: @config.rpcs.create_management_server.retry_policy
2564
+ retry_policy: @config.rpcs.list_restore_verification_plans.retry_policy
598
2565
 
599
2566
  options.apply_defaults timeout: @config.timeout,
600
2567
  metadata: @config.metadata,
601
2568
  retry_policy: @config.retry_policy
602
2569
 
603
- @backup_dr_stub.call_rpc :create_management_server, request, options: options do |response, operation|
604
- response = ::Gapic::Operation.new response, @operations_client, options: options
2570
+ @backup_dr_stub.call_rpc :list_restore_verification_plans, request, options: options do |response, operation|
2571
+ response = ::Gapic::PagedEnumerable.new @backup_dr_stub, :list_restore_verification_plans, request, response, operation, options
605
2572
  yield response, operation if block_given?
606
2573
  throw :response, response
607
2574
  end
@@ -610,25 +2577,30 @@ module Google
610
2577
  end
611
2578
 
612
2579
  ##
613
- # Deletes a single ManagementServer.
2580
+ # Deletes a single RestoreVerificationPlan. If the `force` flag is set to
2581
+ # `true`, any RestoreVerificationPlanAssociations linked to this
2582
+ # RestoreVerificationPlan will also be deleted.
614
2583
  #
615
- # @overload delete_management_server(request, options = nil)
616
- # Pass arguments to `delete_management_server` via a request object, either of type
617
- # {::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest} or an equivalent Hash.
2584
+ # @overload delete_restore_verification_plan(request, options = nil)
2585
+ # Pass arguments to `delete_restore_verification_plan` via a request object, either of type
2586
+ # {::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest} or an equivalent Hash.
618
2587
  #
619
- # @param request [::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest, ::Hash]
2588
+ # @param request [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest, ::Hash]
620
2589
  # A request object representing the call parameters. Required. To specify no
621
2590
  # parameters, or to keep all the default parameter values, pass an empty Hash.
622
2591
  # @param options [::Gapic::CallOptions, ::Hash]
623
2592
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
624
2593
  #
625
- # @overload delete_management_server(name: nil, request_id: nil)
626
- # Pass arguments to `delete_management_server` via keyword arguments. Note that at
2594
+ # @overload delete_restore_verification_plan(name: nil, request_id: nil, force: nil)
2595
+ # Pass arguments to `delete_restore_verification_plan` via keyword arguments. Note that at
627
2596
  # least one keyword argument is required. To specify no parameters, or to keep all
628
2597
  # the default parameter values, pass an empty Hash as a request object (see above).
629
2598
  #
630
2599
  # @param name [::String]
631
- # Required. Name of the resource
2600
+ # Required. The resource name of the `RestoreVerificationPlan` to delete.
2601
+ #
2602
+ # Format:
2603
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}`
632
2604
  # @param request_id [::String]
633
2605
  # Optional. An optional request ID to identify requests. Specify a unique
634
2606
  # request ID so that if you must retry your request, the server will know to
@@ -643,6 +2615,9 @@ module Google
643
2615
  #
644
2616
  # The request ID must be a valid UUID with the exception that zero UUID is
645
2617
  # not supported (00000000-0000-0000-0000-000000000000).
2618
+ # @param force [::Boolean]
2619
+ # Optional. If set to true, any RestoreVerificationPlanAssociations linked to
2620
+ # this RestoreVerificationPlan will also be deleted.
646
2621
  #
647
2622
  # @yield [response, operation] Access the result along with the RPC operation
648
2623
  # @yieldparam response [::Gapic::Operation]
@@ -659,10 +2634,10 @@ module Google
659
2634
  # client = Google::Cloud::BackupDR::V1beta::BackupDR::Client.new
660
2635
  #
661
2636
  # # Create a request. To set request fields, pass in keyword arguments.
662
- # request = Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest.new
2637
+ # request = Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest.new
663
2638
  #
664
- # # Call the delete_management_server method.
665
- # result = client.delete_management_server request
2639
+ # # Call the delete_restore_verification_plan method.
2640
+ # result = client.delete_restore_verification_plan request
666
2641
  #
667
2642
  # # The returned object is of type Gapic::Operation. You can use it to
668
2643
  # # check the status of an operation, cancel it, or wait for results.
@@ -674,16 +2649,16 @@ module Google
674
2649
  # puts "No response received."
675
2650
  # end
676
2651
  #
677
- def delete_management_server request, options = nil
2652
+ def delete_restore_verification_plan request, options = nil
678
2653
  raise ::ArgumentError, "request must be provided" if request.nil?
679
2654
 
680
- request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest
2655
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest
681
2656
 
682
2657
  # Converts hash and nil to an options object
683
2658
  options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
684
2659
 
685
2660
  # Customize the options with defaults
686
- metadata = @config.rpcs.delete_management_server.metadata.to_h
2661
+ metadata = @config.rpcs.delete_restore_verification_plan.metadata.to_h
687
2662
 
688
2663
  # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
689
2664
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
@@ -700,15 +2675,15 @@ module Google
700
2675
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
701
2676
  metadata[:"x-goog-request-params"] ||= request_params_header
702
2677
 
703
- options.apply_defaults timeout: @config.rpcs.delete_management_server.timeout,
2678
+ options.apply_defaults timeout: @config.rpcs.delete_restore_verification_plan.timeout,
704
2679
  metadata: metadata,
705
- retry_policy: @config.rpcs.delete_management_server.retry_policy
2680
+ retry_policy: @config.rpcs.delete_restore_verification_plan.retry_policy
706
2681
 
707
2682
  options.apply_defaults timeout: @config.timeout,
708
2683
  metadata: @config.metadata,
709
2684
  retry_policy: @config.retry_policy
710
2685
 
711
- @backup_dr_stub.call_rpc :delete_management_server, request, options: options do |response, operation|
2686
+ @backup_dr_stub.call_rpc :delete_restore_verification_plan, request, options: options do |response, operation|
712
2687
  response = ::Gapic::Operation.new response, @operations_client, options: options
713
2688
  yield response, operation if block_given?
714
2689
  throw :response, response
@@ -4384,7 +6359,7 @@ module Google
4384
6359
  # @param options [::Gapic::CallOptions, ::Hash]
4385
6360
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4386
6361
  #
4387
- # @overload create_auto_protection_policy(parent: nil, auto_protection_policy_id: nil, auto_protection_policy: nil)
6362
+ # @overload create_auto_protection_policy(parent: nil, auto_protection_policy_id: nil, auto_protection_policy: nil, request_id: nil)
4388
6363
  # Pass arguments to `create_auto_protection_policy` via keyword arguments. Note that at
4389
6364
  # least one keyword argument is required. To specify no parameters, or to keep all
4390
6365
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -4395,8 +6370,19 @@ module Google
4395
6370
  # @param auto_protection_policy_id [::String]
4396
6371
  # Required. The ID to use for the policy.
4397
6372
  # This will become the final component of the policy's resource name.
6373
+ #
6374
+ # This value must start with a lowercase letter followed by up to 62
6375
+ # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
4398
6376
  # @param auto_protection_policy [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy, ::Hash]
4399
6377
  # Required. The AutoProtectionPolicy resource to create.
6378
+ # @param request_id [::String]
6379
+ # Optional. An optional request ID to identify requests. Specify a unique
6380
+ # request ID so that if you must retry your request, the server will know to
6381
+ # ignore the request if it has already been completed. The server will
6382
+ # guarantee that for at least 60 minutes since the first request.
6383
+ #
6384
+ # The request ID must be a valid UUID with the exception that zero UUID is
6385
+ # not supported (00000000-0000-0000-0000-000000000000).
4400
6386
  #
4401
6387
  # @yield [response, operation] Access the result along with the RPC operation
4402
6388
  # @yieldparam response [::Gapic::Operation]
@@ -4676,7 +6662,7 @@ module Google
4676
6662
  # @param options [::Gapic::CallOptions, ::Hash]
4677
6663
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4678
6664
  #
4679
- # @overload update_auto_protection_policy(auto_protection_policy: nil, update_mask: nil)
6665
+ # @overload update_auto_protection_policy(auto_protection_policy: nil, update_mask: nil, request_id: nil)
4680
6666
  # Pass arguments to `update_auto_protection_policy` via keyword arguments. Note that at
4681
6667
  # least one keyword argument is required. To specify no parameters, or to keep all
4682
6668
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -4684,11 +6670,19 @@ module Google
4684
6670
  # @param auto_protection_policy [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy, ::Hash]
4685
6671
  # Required. The policy to update.
4686
6672
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
4687
- # Required. Field mask is used to specify the fields to be overwritten in the
6673
+ # Optional. Field mask is used to specify the fields to be overwritten in the
4688
6674
  # AutoProtectionPolicy resource by the update.
4689
6675
  # The fields specified in the update_mask are relative to the resource, not
4690
6676
  # the full request. A field will be overwritten if it is in the mask. If the
4691
6677
  # user does not provide a mask then all fields will be overwritten.
6678
+ # @param request_id [::String]
6679
+ # Optional. An optional request ID to identify requests. Specify a unique
6680
+ # request ID so that if you must retry your request, the server will know to
6681
+ # ignore the request if it has already been completed. The server will
6682
+ # guarantee that for at least 60 minutes since the first request.
6683
+ #
6684
+ # The request ID must be a valid UUID with the exception that zero UUID is
6685
+ # not supported (00000000-0000-0000-0000-000000000000).
4692
6686
  #
4693
6687
  # @yield [response, operation] Access the result along with the RPC operation
4694
6688
  # @yieldparam response [::Gapic::Operation]
@@ -4776,7 +6770,7 @@ module Google
4776
6770
  # @param options [::Gapic::CallOptions, ::Hash]
4777
6771
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4778
6772
  #
4779
- # @overload delete_auto_protection_policy(name: nil, etag: nil)
6773
+ # @overload delete_auto_protection_policy(name: nil, etag: nil, request_id: nil)
4780
6774
  # Pass arguments to `delete_auto_protection_policy` via keyword arguments. Note that at
4781
6775
  # least one keyword argument is required. To specify no parameters, or to keep all
4782
6776
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -4786,9 +6780,17 @@ module Google
4786
6780
  # Format:
4787
6781
  # projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}
4788
6782
  # @param etag [::String]
4789
- # The current etag of the AutoProtectionPolicy.
6783
+ # Optional. The current etag of the AutoProtectionPolicy.
4790
6784
  # If an etag is provided and does not match the current etag of the
4791
6785
  # connection, the request will be rejected with an ABORTED error.
6786
+ # @param request_id [::String]
6787
+ # Optional. An optional request ID to identify requests. Specify a unique
6788
+ # request ID so that if you must retry your request, the server will know to
6789
+ # ignore the request if it has already been completed. The server will
6790
+ # guarantee that for at least 60 minutes since the first request.
6791
+ #
6792
+ # The request ID must be a valid UUID with the exception that zero UUID is
6793
+ # not supported (00000000-0000-0000-0000-000000000000).
4792
6794
  #
4793
6795
  # @yield [response, operation] Access the result along with the RPC operation
4794
6796
  # @yieldparam response [::Gapic::Operation]
@@ -4877,7 +6879,7 @@ module Google
4877
6879
  # @param options [::Gapic::CallOptions, ::Hash]
4878
6880
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
4879
6881
  #
4880
- # @overload create_auto_protection_policy_binding(parent: nil, auto_protection_policy_binding_id: nil, auto_protection_policy_binding: nil)
6882
+ # @overload create_auto_protection_policy_binding(parent: nil, auto_protection_policy_binding_id: nil, auto_protection_policy_binding: nil, request_id: nil)
4881
6883
  # Pass arguments to `create_auto_protection_policy_binding` via keyword arguments. Note that at
4882
6884
  # least one keyword argument is required. To specify no parameters, or to keep all
4883
6885
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -4889,8 +6891,19 @@ module Google
4889
6891
  # @param auto_protection_policy_binding_id [::String]
4890
6892
  # Required. The ID to use for the binding.
4891
6893
  # This will become the final component of the binding's resource name.
6894
+ #
6895
+ # This value must start with a lowercase letter followed by up to 62
6896
+ # lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
4892
6897
  # @param auto_protection_policy_binding [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding, ::Hash]
4893
6898
  # Required. The AutoProtectionPolicyBinding resource to create.
6899
+ # @param request_id [::String]
6900
+ # Optional. An optional request ID to identify requests. Specify a unique
6901
+ # request ID so that if you must retry your request, the server will know to
6902
+ # ignore the request if it has already been completed. The server will
6903
+ # guarantee that for at least 60 minutes since the first request.
6904
+ #
6905
+ # The request ID must be a valid UUID with the exception that zero UUID is
6906
+ # not supported (00000000-0000-0000-0000-000000000000).
4894
6907
  #
4895
6908
  # @yield [response, operation] Access the result along with the RPC operation
4896
6909
  # @yieldparam response [::Gapic::Operation]
@@ -5274,7 +7287,7 @@ module Google
5274
7287
  # @param options [::Gapic::CallOptions, ::Hash]
5275
7288
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
5276
7289
  #
5277
- # @overload initiate_delete_auto_protection_policy_binding(name: nil)
7290
+ # @overload initiate_delete_auto_protection_policy_binding(name: nil, etag: nil, request_id: nil)
5278
7291
  # Pass arguments to `initiate_delete_auto_protection_policy_binding` via keyword arguments. Note that at
5279
7292
  # least one keyword argument is required. To specify no parameters, or to keep all
5280
7293
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -5283,6 +7296,18 @@ module Google
5283
7296
  # Required. The name of the binding to delete.
5284
7297
  # Format:
5285
7298
  # projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}/bindings/\\{binding}
7299
+ # @param etag [::String]
7300
+ # Optional. The current etag of the AutoProtectionPolicyBinding.
7301
+ # If an etag is provided and does not match the current etag of the
7302
+ # binding, deletion will be blocked and an ABORTED error will be returned.
7303
+ # @param request_id [::String]
7304
+ # Optional. An optional request ID to identify requests. Specify a unique
7305
+ # request ID so that if you must retry your request, the server will know to
7306
+ # ignore the request if it has already been completed. The server will
7307
+ # guarantee that for at least 60 minutes since the first request.
7308
+ #
7309
+ # The request ID must be a valid UUID with the exception that zero UUID is
7310
+ # not supported (00000000-0000-0000-0000-000000000000).
5286
7311
  #
5287
7312
  # @yield [response, operation] Access the result along with the RPC operation
5288
7313
  # @yieldparam response [::Gapic::Operation]
@@ -5763,6 +7788,96 @@ module Google
5763
7788
  #
5764
7789
  attr_reader :delete_management_server
5765
7790
  ##
7791
+ # RPC-specific configuration for `create_restore_template`
7792
+ # @return [::Gapic::Config::Method]
7793
+ #
7794
+ attr_reader :create_restore_template
7795
+ ##
7796
+ # RPC-specific configuration for `get_restore_template`
7797
+ # @return [::Gapic::Config::Method]
7798
+ #
7799
+ attr_reader :get_restore_template
7800
+ ##
7801
+ # RPC-specific configuration for `list_restore_templates`
7802
+ # @return [::Gapic::Config::Method]
7803
+ #
7804
+ attr_reader :list_restore_templates
7805
+ ##
7806
+ # RPC-specific configuration for `update_restore_template`
7807
+ # @return [::Gapic::Config::Method]
7808
+ #
7809
+ attr_reader :update_restore_template
7810
+ ##
7811
+ # RPC-specific configuration for `delete_restore_template`
7812
+ # @return [::Gapic::Config::Method]
7813
+ #
7814
+ attr_reader :delete_restore_template
7815
+ ##
7816
+ # RPC-specific configuration for `run_restore_template`
7817
+ # @return [::Gapic::Config::Method]
7818
+ #
7819
+ attr_reader :run_restore_template
7820
+ ##
7821
+ # RPC-specific configuration for `get_restore_template_execution`
7822
+ # @return [::Gapic::Config::Method]
7823
+ #
7824
+ attr_reader :get_restore_template_execution
7825
+ ##
7826
+ # RPC-specific configuration for `list_restore_template_executions`
7827
+ # @return [::Gapic::Config::Method]
7828
+ #
7829
+ attr_reader :list_restore_template_executions
7830
+ ##
7831
+ # RPC-specific configuration for `trigger_restore_cleanup`
7832
+ # @return [::Gapic::Config::Method]
7833
+ #
7834
+ attr_reader :trigger_restore_cleanup
7835
+ ##
7836
+ # RPC-specific configuration for `create_restore_verification_plan`
7837
+ # @return [::Gapic::Config::Method]
7838
+ #
7839
+ attr_reader :create_restore_verification_plan
7840
+ ##
7841
+ # RPC-specific configuration for `create_restore_verification_plan_association`
7842
+ # @return [::Gapic::Config::Method]
7843
+ #
7844
+ attr_reader :create_restore_verification_plan_association
7845
+ ##
7846
+ # RPC-specific configuration for `get_restore_verification_plan_association`
7847
+ # @return [::Gapic::Config::Method]
7848
+ #
7849
+ attr_reader :get_restore_verification_plan_association
7850
+ ##
7851
+ # RPC-specific configuration for `list_restore_verification_plan_associations`
7852
+ # @return [::Gapic::Config::Method]
7853
+ #
7854
+ attr_reader :list_restore_verification_plan_associations
7855
+ ##
7856
+ # RPC-specific configuration for `delete_restore_verification_plan_association`
7857
+ # @return [::Gapic::Config::Method]
7858
+ #
7859
+ attr_reader :delete_restore_verification_plan_association
7860
+ ##
7861
+ # RPC-specific configuration for `trigger_restore_verification`
7862
+ # @return [::Gapic::Config::Method]
7863
+ #
7864
+ attr_reader :trigger_restore_verification
7865
+ ##
7866
+ # RPC-specific configuration for `get_restore_verification_plan`
7867
+ # @return [::Gapic::Config::Method]
7868
+ #
7869
+ attr_reader :get_restore_verification_plan
7870
+ ##
7871
+ # RPC-specific configuration for `list_restore_verification_plans`
7872
+ # @return [::Gapic::Config::Method]
7873
+ #
7874
+ attr_reader :list_restore_verification_plans
7875
+ ##
7876
+ # RPC-specific configuration for `delete_restore_verification_plan`
7877
+ # @return [::Gapic::Config::Method]
7878
+ #
7879
+ attr_reader :delete_restore_verification_plan
7880
+ ##
5766
7881
  # RPC-specific configuration for `create_backup_vault`
5767
7882
  # @return [::Gapic::Config::Method]
5768
7883
  #
@@ -5998,6 +8113,42 @@ module Google
5998
8113
  @create_management_server = ::Gapic::Config::Method.new create_management_server_config
5999
8114
  delete_management_server_config = parent_rpcs.delete_management_server if parent_rpcs.respond_to? :delete_management_server
6000
8115
  @delete_management_server = ::Gapic::Config::Method.new delete_management_server_config
8116
+ create_restore_template_config = parent_rpcs.create_restore_template if parent_rpcs.respond_to? :create_restore_template
8117
+ @create_restore_template = ::Gapic::Config::Method.new create_restore_template_config
8118
+ get_restore_template_config = parent_rpcs.get_restore_template if parent_rpcs.respond_to? :get_restore_template
8119
+ @get_restore_template = ::Gapic::Config::Method.new get_restore_template_config
8120
+ list_restore_templates_config = parent_rpcs.list_restore_templates if parent_rpcs.respond_to? :list_restore_templates
8121
+ @list_restore_templates = ::Gapic::Config::Method.new list_restore_templates_config
8122
+ update_restore_template_config = parent_rpcs.update_restore_template if parent_rpcs.respond_to? :update_restore_template
8123
+ @update_restore_template = ::Gapic::Config::Method.new update_restore_template_config
8124
+ delete_restore_template_config = parent_rpcs.delete_restore_template if parent_rpcs.respond_to? :delete_restore_template
8125
+ @delete_restore_template = ::Gapic::Config::Method.new delete_restore_template_config
8126
+ run_restore_template_config = parent_rpcs.run_restore_template if parent_rpcs.respond_to? :run_restore_template
8127
+ @run_restore_template = ::Gapic::Config::Method.new run_restore_template_config
8128
+ get_restore_template_execution_config = parent_rpcs.get_restore_template_execution if parent_rpcs.respond_to? :get_restore_template_execution
8129
+ @get_restore_template_execution = ::Gapic::Config::Method.new get_restore_template_execution_config
8130
+ list_restore_template_executions_config = parent_rpcs.list_restore_template_executions if parent_rpcs.respond_to? :list_restore_template_executions
8131
+ @list_restore_template_executions = ::Gapic::Config::Method.new list_restore_template_executions_config
8132
+ trigger_restore_cleanup_config = parent_rpcs.trigger_restore_cleanup if parent_rpcs.respond_to? :trigger_restore_cleanup
8133
+ @trigger_restore_cleanup = ::Gapic::Config::Method.new trigger_restore_cleanup_config
8134
+ create_restore_verification_plan_config = parent_rpcs.create_restore_verification_plan if parent_rpcs.respond_to? :create_restore_verification_plan
8135
+ @create_restore_verification_plan = ::Gapic::Config::Method.new create_restore_verification_plan_config
8136
+ create_restore_verification_plan_association_config = parent_rpcs.create_restore_verification_plan_association if parent_rpcs.respond_to? :create_restore_verification_plan_association
8137
+ @create_restore_verification_plan_association = ::Gapic::Config::Method.new create_restore_verification_plan_association_config
8138
+ get_restore_verification_plan_association_config = parent_rpcs.get_restore_verification_plan_association if parent_rpcs.respond_to? :get_restore_verification_plan_association
8139
+ @get_restore_verification_plan_association = ::Gapic::Config::Method.new get_restore_verification_plan_association_config
8140
+ list_restore_verification_plan_associations_config = parent_rpcs.list_restore_verification_plan_associations if parent_rpcs.respond_to? :list_restore_verification_plan_associations
8141
+ @list_restore_verification_plan_associations = ::Gapic::Config::Method.new list_restore_verification_plan_associations_config
8142
+ delete_restore_verification_plan_association_config = parent_rpcs.delete_restore_verification_plan_association if parent_rpcs.respond_to? :delete_restore_verification_plan_association
8143
+ @delete_restore_verification_plan_association = ::Gapic::Config::Method.new delete_restore_verification_plan_association_config
8144
+ trigger_restore_verification_config = parent_rpcs.trigger_restore_verification if parent_rpcs.respond_to? :trigger_restore_verification
8145
+ @trigger_restore_verification = ::Gapic::Config::Method.new trigger_restore_verification_config
8146
+ get_restore_verification_plan_config = parent_rpcs.get_restore_verification_plan if parent_rpcs.respond_to? :get_restore_verification_plan
8147
+ @get_restore_verification_plan = ::Gapic::Config::Method.new get_restore_verification_plan_config
8148
+ list_restore_verification_plans_config = parent_rpcs.list_restore_verification_plans if parent_rpcs.respond_to? :list_restore_verification_plans
8149
+ @list_restore_verification_plans = ::Gapic::Config::Method.new list_restore_verification_plans_config
8150
+ delete_restore_verification_plan_config = parent_rpcs.delete_restore_verification_plan if parent_rpcs.respond_to? :delete_restore_verification_plan
8151
+ @delete_restore_verification_plan = ::Gapic::Config::Method.new delete_restore_verification_plan_config
6001
8152
  create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
6002
8153
  @create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
6003
8154
  list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults