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.
- checksums.yaml +4 -4
- data/README.md +4 -6
- data/lib/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicy_pb.rb +2 -1
- data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicybinding_pb.rb +2 -1
- data/lib/google/cloud/backupdr/v1beta/backupdr/client.rb +2265 -114
- data/lib/google/cloud/backupdr/v1beta/backupdr/paths.rb +99 -0
- data/lib/google/cloud/backupdr/v1beta/backupdr/rest/client.rb +2137 -112
- data/lib/google/cloud/backupdr/v1beta/backupdr/rest/service_stub.rb +1491 -386
- data/lib/google/cloud/backupdr/v1beta/backupdr_pb.rb +5 -1
- data/lib/google/cloud/backupdr/v1beta/backupdr_services_pb.rb +45 -0
- data/lib/google/cloud/backupdr/v1beta/backupvault_pb.rb +3 -1
- data/lib/google/cloud/backupdr/v1beta/bindingmatchingresource_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1beta/restore_template_common_pb.rb +28 -0
- data/lib/google/cloud/backupdr/v1beta/restore_template_execution_pb.rb +45 -0
- data/lib/google/cloud/backupdr/v1beta/restore_template_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_association_pb.rb +36 -0
- data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_pb.rb +34 -0
- data/lib/google/cloud/backupdr/v1beta/version.rb +1 -1
- data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicy.rb +38 -7
- data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.rb +32 -5
- data/proto_docs/google/cloud/backupdr/v1beta/backupvault.rb +31 -0
- data/proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb +6 -6
- data/proto_docs/google/cloud/backupdr/v1beta/restore_template.rb +292 -0
- data/proto_docs/google/cloud/backupdr/v1beta/restore_template_common.rb +80 -0
- data/proto_docs/google/cloud/backupdr/v1beta/restore_template_execution.rb +399 -0
- data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan.rb +270 -0
- data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan_association.rb +264 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- metadata +12 -1
|
@@ -88,6 +88,66 @@ module Google
|
|
|
88
88
|
|
|
89
89
|
default_config.rpcs.delete_management_server.timeout = 60.0
|
|
90
90
|
|
|
91
|
+
default_config.rpcs.create_restore_template.timeout = 60.0
|
|
92
|
+
|
|
93
|
+
default_config.rpcs.get_restore_template.timeout = 60.0
|
|
94
|
+
default_config.rpcs.get_restore_template.retry_policy = {
|
|
95
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
default_config.rpcs.list_restore_templates.timeout = 60.0
|
|
99
|
+
default_config.rpcs.list_restore_templates.retry_policy = {
|
|
100
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
default_config.rpcs.update_restore_template.timeout = 60.0
|
|
104
|
+
|
|
105
|
+
default_config.rpcs.delete_restore_template.timeout = 60.0
|
|
106
|
+
|
|
107
|
+
default_config.rpcs.run_restore_template.timeout = 60.0
|
|
108
|
+
|
|
109
|
+
default_config.rpcs.get_restore_template_execution.timeout = 60.0
|
|
110
|
+
default_config.rpcs.get_restore_template_execution.retry_policy = {
|
|
111
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
default_config.rpcs.list_restore_template_executions.timeout = 60.0
|
|
115
|
+
default_config.rpcs.list_restore_template_executions.retry_policy = {
|
|
116
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
default_config.rpcs.trigger_restore_cleanup.timeout = 60.0
|
|
120
|
+
|
|
121
|
+
default_config.rpcs.create_restore_verification_plan.timeout = 60.0
|
|
122
|
+
|
|
123
|
+
default_config.rpcs.create_restore_verification_plan_association.timeout = 60.0
|
|
124
|
+
|
|
125
|
+
default_config.rpcs.get_restore_verification_plan_association.timeout = 60.0
|
|
126
|
+
default_config.rpcs.get_restore_verification_plan_association.retry_policy = {
|
|
127
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
default_config.rpcs.list_restore_verification_plan_associations.timeout = 60.0
|
|
131
|
+
default_config.rpcs.list_restore_verification_plan_associations.retry_policy = {
|
|
132
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
default_config.rpcs.delete_restore_verification_plan_association.timeout = 60.0
|
|
136
|
+
|
|
137
|
+
default_config.rpcs.trigger_restore_verification.timeout = 60.0
|
|
138
|
+
|
|
139
|
+
default_config.rpcs.get_restore_verification_plan.timeout = 60.0
|
|
140
|
+
default_config.rpcs.get_restore_verification_plan.retry_policy = {
|
|
141
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
default_config.rpcs.list_restore_verification_plans.timeout = 60.0
|
|
145
|
+
default_config.rpcs.list_restore_verification_plans.retry_policy = {
|
|
146
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
default_config.rpcs.delete_restore_verification_plan.timeout = 60.0
|
|
150
|
+
|
|
91
151
|
default_config.rpcs.create_backup_vault.timeout = 60.0
|
|
92
152
|
default_config.rpcs.create_backup_vault.retry_policy = {
|
|
93
153
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
@@ -146,6 +206,46 @@ module Google
|
|
|
146
206
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
147
207
|
}
|
|
148
208
|
|
|
209
|
+
default_config.rpcs.create_auto_protection_policy.timeout = 60.0
|
|
210
|
+
|
|
211
|
+
default_config.rpcs.list_auto_protection_policies.timeout = 60.0
|
|
212
|
+
default_config.rpcs.list_auto_protection_policies.retry_policy = {
|
|
213
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
default_config.rpcs.get_auto_protection_policy.timeout = 60.0
|
|
217
|
+
default_config.rpcs.get_auto_protection_policy.retry_policy = {
|
|
218
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
default_config.rpcs.update_auto_protection_policy.timeout = 60.0
|
|
222
|
+
|
|
223
|
+
default_config.rpcs.delete_auto_protection_policy.timeout = 60.0
|
|
224
|
+
|
|
225
|
+
default_config.rpcs.create_auto_protection_policy_binding.timeout = 60.0
|
|
226
|
+
|
|
227
|
+
default_config.rpcs.get_auto_protection_policy_binding.timeout = 60.0
|
|
228
|
+
default_config.rpcs.get_auto_protection_policy_binding.retry_policy = {
|
|
229
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
default_config.rpcs.list_auto_protection_policy_bindings.timeout = 60.0
|
|
233
|
+
default_config.rpcs.list_auto_protection_policy_bindings.retry_policy = {
|
|
234
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
default_config.rpcs.list_applied_auto_protection_policies.timeout = 60.0
|
|
238
|
+
default_config.rpcs.list_applied_auto_protection_policies.retry_policy = {
|
|
239
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
default_config.rpcs.initiate_delete_auto_protection_policy_binding.timeout = 60.0
|
|
243
|
+
|
|
244
|
+
default_config.rpcs.list_binding_matching_resources.timeout = 60.0
|
|
245
|
+
default_config.rpcs.list_binding_matching_resources.retry_policy = {
|
|
246
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
247
|
+
}
|
|
248
|
+
|
|
149
249
|
default_config
|
|
150
250
|
end
|
|
151
251
|
yield @configure if block_given?
|
|
@@ -332,10 +432,1746 @@ module Google
|
|
|
332
432
|
# @param order_by [::String]
|
|
333
433
|
# Optional. Hint for how to order the results.
|
|
334
434
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
335
|
-
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::ManagementServer>]
|
|
435
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::ManagementServer>]
|
|
436
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
437
|
+
#
|
|
438
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::ManagementServer>]
|
|
439
|
+
#
|
|
440
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
441
|
+
#
|
|
442
|
+
# @example Basic example
|
|
443
|
+
# require "google/cloud/backupdr/v1beta"
|
|
444
|
+
#
|
|
445
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
446
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
447
|
+
#
|
|
448
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
449
|
+
# request = Google::Cloud::BackupDR::V1beta::ListManagementServersRequest.new
|
|
450
|
+
#
|
|
451
|
+
# # Call the list_management_servers method.
|
|
452
|
+
# result = client.list_management_servers request
|
|
453
|
+
#
|
|
454
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
455
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
456
|
+
# result.each do |item|
|
|
457
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1beta::ManagementServer.
|
|
458
|
+
# p item
|
|
459
|
+
# end
|
|
460
|
+
#
|
|
461
|
+
def list_management_servers request, options = nil
|
|
462
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
463
|
+
|
|
464
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListManagementServersRequest
|
|
465
|
+
|
|
466
|
+
# Converts hash and nil to an options object
|
|
467
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
468
|
+
|
|
469
|
+
# Customize the options with defaults
|
|
470
|
+
call_metadata = @config.rpcs.list_management_servers.metadata.to_h
|
|
471
|
+
|
|
472
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
473
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
474
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
475
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
476
|
+
transports_version_send: [:rest]
|
|
477
|
+
|
|
478
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
479
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
480
|
+
|
|
481
|
+
options.apply_defaults timeout: @config.rpcs.list_management_servers.timeout,
|
|
482
|
+
metadata: call_metadata,
|
|
483
|
+
retry_policy: @config.rpcs.list_management_servers.retry_policy
|
|
484
|
+
|
|
485
|
+
options.apply_defaults timeout: @config.timeout,
|
|
486
|
+
metadata: @config.metadata,
|
|
487
|
+
retry_policy: @config.retry_policy
|
|
488
|
+
|
|
489
|
+
@backup_dr_stub.list_management_servers request, options do |result, operation|
|
|
490
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_management_servers, "management_servers", request, result, options
|
|
491
|
+
yield result, operation if block_given?
|
|
492
|
+
throw :response, result
|
|
493
|
+
end
|
|
494
|
+
rescue ::Gapic::Rest::Error => e
|
|
495
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
##
|
|
499
|
+
# Gets details of a single ManagementServer.
|
|
500
|
+
#
|
|
501
|
+
# @overload get_management_server(request, options = nil)
|
|
502
|
+
# Pass arguments to `get_management_server` via a request object, either of type
|
|
503
|
+
# {::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest} or an equivalent Hash.
|
|
504
|
+
#
|
|
505
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest, ::Hash]
|
|
506
|
+
# A request object representing the call parameters. Required. To specify no
|
|
507
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
508
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
509
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
510
|
+
#
|
|
511
|
+
# @overload get_management_server(name: nil)
|
|
512
|
+
# Pass arguments to `get_management_server` via keyword arguments. Note that at
|
|
513
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
514
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
515
|
+
#
|
|
516
|
+
# @param name [::String]
|
|
517
|
+
# Required. Name of the management server resource name, in the format
|
|
518
|
+
# 'projects/\\{project_id}/locations/\\{location}/managementServers/\\{resource_name}'
|
|
519
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
520
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1beta::ManagementServer]
|
|
521
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
522
|
+
#
|
|
523
|
+
# @return [::Google::Cloud::BackupDR::V1beta::ManagementServer]
|
|
524
|
+
#
|
|
525
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
526
|
+
#
|
|
527
|
+
# @example Basic example
|
|
528
|
+
# require "google/cloud/backupdr/v1beta"
|
|
529
|
+
#
|
|
530
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
531
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
532
|
+
#
|
|
533
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
534
|
+
# request = Google::Cloud::BackupDR::V1beta::GetManagementServerRequest.new
|
|
535
|
+
#
|
|
536
|
+
# # Call the get_management_server method.
|
|
537
|
+
# result = client.get_management_server request
|
|
538
|
+
#
|
|
539
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1beta::ManagementServer.
|
|
540
|
+
# p result
|
|
541
|
+
#
|
|
542
|
+
def get_management_server request, options = nil
|
|
543
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
544
|
+
|
|
545
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetManagementServerRequest
|
|
546
|
+
|
|
547
|
+
# Converts hash and nil to an options object
|
|
548
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
549
|
+
|
|
550
|
+
# Customize the options with defaults
|
|
551
|
+
call_metadata = @config.rpcs.get_management_server.metadata.to_h
|
|
552
|
+
|
|
553
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
554
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
555
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
556
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
557
|
+
transports_version_send: [:rest]
|
|
558
|
+
|
|
559
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
560
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
561
|
+
|
|
562
|
+
options.apply_defaults timeout: @config.rpcs.get_management_server.timeout,
|
|
563
|
+
metadata: call_metadata,
|
|
564
|
+
retry_policy: @config.rpcs.get_management_server.retry_policy
|
|
565
|
+
|
|
566
|
+
options.apply_defaults timeout: @config.timeout,
|
|
567
|
+
metadata: @config.metadata,
|
|
568
|
+
retry_policy: @config.retry_policy
|
|
569
|
+
|
|
570
|
+
@backup_dr_stub.get_management_server request, options do |result, operation|
|
|
571
|
+
yield result, operation if block_given?
|
|
572
|
+
end
|
|
573
|
+
rescue ::Gapic::Rest::Error => e
|
|
574
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
##
|
|
578
|
+
# Creates a new ManagementServer in a given project and location.
|
|
579
|
+
#
|
|
580
|
+
# @overload create_management_server(request, options = nil)
|
|
581
|
+
# Pass arguments to `create_management_server` via a request object, either of type
|
|
582
|
+
# {::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest} or an equivalent Hash.
|
|
583
|
+
#
|
|
584
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest, ::Hash]
|
|
585
|
+
# A request object representing the call parameters. Required. To specify no
|
|
586
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
587
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
588
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
589
|
+
#
|
|
590
|
+
# @overload create_management_server(parent: nil, management_server_id: nil, management_server: nil, request_id: nil)
|
|
591
|
+
# Pass arguments to `create_management_server` via keyword arguments. Note that at
|
|
592
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
593
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
594
|
+
#
|
|
595
|
+
# @param parent [::String]
|
|
596
|
+
# Required. The management server project and location in the format
|
|
597
|
+
# 'projects/\\{project_id}/locations/\\{location}'. In Google Cloud Backup and DR
|
|
598
|
+
# locations map to Google Cloud regions, for example **us-central1**.
|
|
599
|
+
# @param management_server_id [::String]
|
|
600
|
+
# Required. The name of the management server to create. The name must be
|
|
601
|
+
# unique for the specified project and location.
|
|
602
|
+
# @param management_server [::Google::Cloud::BackupDR::V1beta::ManagementServer, ::Hash]
|
|
603
|
+
# Required. A [management server
|
|
604
|
+
# resource][google.cloud.backupdr.v1.ManagementServer]
|
|
605
|
+
# @param request_id [::String]
|
|
606
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
607
|
+
# request ID so that if you must retry your request, the server will know to
|
|
608
|
+
# ignore the request if it has already been completed. The server will
|
|
609
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
610
|
+
#
|
|
611
|
+
# For example, consider a situation where you make an initial request and
|
|
612
|
+
# the request times out. If you make the request again with the same request
|
|
613
|
+
# ID, the server can check if original operation with the same request ID
|
|
614
|
+
# was received, and if so, will ignore the second request. This prevents
|
|
615
|
+
# clients from accidentally creating duplicate commitments.
|
|
616
|
+
#
|
|
617
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
618
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
619
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
620
|
+
# @yieldparam result [::Gapic::Operation]
|
|
621
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
622
|
+
#
|
|
623
|
+
# @return [::Gapic::Operation]
|
|
624
|
+
#
|
|
625
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
626
|
+
#
|
|
627
|
+
# @example Basic example
|
|
628
|
+
# require "google/cloud/backupdr/v1beta"
|
|
629
|
+
#
|
|
630
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
631
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
632
|
+
#
|
|
633
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
634
|
+
# request = Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest.new
|
|
635
|
+
#
|
|
636
|
+
# # Call the create_management_server method.
|
|
637
|
+
# result = client.create_management_server request
|
|
638
|
+
#
|
|
639
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
640
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
641
|
+
# # Here is how to wait for a response.
|
|
642
|
+
# result.wait_until_done! timeout: 60
|
|
643
|
+
# if result.response?
|
|
644
|
+
# p result.response
|
|
645
|
+
# else
|
|
646
|
+
# puts "No response received."
|
|
647
|
+
# end
|
|
648
|
+
#
|
|
649
|
+
def create_management_server request, options = nil
|
|
650
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
651
|
+
|
|
652
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateManagementServerRequest
|
|
653
|
+
|
|
654
|
+
# Converts hash and nil to an options object
|
|
655
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
656
|
+
|
|
657
|
+
# Customize the options with defaults
|
|
658
|
+
call_metadata = @config.rpcs.create_management_server.metadata.to_h
|
|
659
|
+
|
|
660
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
661
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
662
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
663
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
664
|
+
transports_version_send: [:rest]
|
|
665
|
+
|
|
666
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
667
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
668
|
+
|
|
669
|
+
options.apply_defaults timeout: @config.rpcs.create_management_server.timeout,
|
|
670
|
+
metadata: call_metadata,
|
|
671
|
+
retry_policy: @config.rpcs.create_management_server.retry_policy
|
|
672
|
+
|
|
673
|
+
options.apply_defaults timeout: @config.timeout,
|
|
674
|
+
metadata: @config.metadata,
|
|
675
|
+
retry_policy: @config.retry_policy
|
|
676
|
+
|
|
677
|
+
@backup_dr_stub.create_management_server request, options do |result, operation|
|
|
678
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
679
|
+
yield result, operation if block_given?
|
|
680
|
+
throw :response, result
|
|
681
|
+
end
|
|
682
|
+
rescue ::Gapic::Rest::Error => e
|
|
683
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
##
|
|
687
|
+
# Deletes a single ManagementServer.
|
|
688
|
+
#
|
|
689
|
+
# @overload delete_management_server(request, options = nil)
|
|
690
|
+
# Pass arguments to `delete_management_server` via a request object, either of type
|
|
691
|
+
# {::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest} or an equivalent Hash.
|
|
692
|
+
#
|
|
693
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest, ::Hash]
|
|
694
|
+
# A request object representing the call parameters. Required. To specify no
|
|
695
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
696
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
697
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
698
|
+
#
|
|
699
|
+
# @overload delete_management_server(name: nil, request_id: nil)
|
|
700
|
+
# Pass arguments to `delete_management_server` via keyword arguments. Note that at
|
|
701
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
702
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
703
|
+
#
|
|
704
|
+
# @param name [::String]
|
|
705
|
+
# Required. Name of the resource
|
|
706
|
+
# @param request_id [::String]
|
|
707
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
708
|
+
# request ID so that if you must retry your request, the server will know to
|
|
709
|
+
# ignore the request if it has already been completed. The server will
|
|
710
|
+
# guarantee that for at least 60 minutes after the first request.
|
|
711
|
+
#
|
|
712
|
+
# For example, consider a situation where you make an initial request and
|
|
713
|
+
# the request times out. If you make the request again with the same request
|
|
714
|
+
# ID, the server can check if original operation with the same request ID
|
|
715
|
+
# was received, and if so, will ignore the second request. This prevents
|
|
716
|
+
# clients from accidentally creating duplicate commitments.
|
|
717
|
+
#
|
|
718
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
719
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
720
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
721
|
+
# @yieldparam result [::Gapic::Operation]
|
|
722
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
723
|
+
#
|
|
724
|
+
# @return [::Gapic::Operation]
|
|
725
|
+
#
|
|
726
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
727
|
+
#
|
|
728
|
+
# @example Basic example
|
|
729
|
+
# require "google/cloud/backupdr/v1beta"
|
|
730
|
+
#
|
|
731
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
732
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
733
|
+
#
|
|
734
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
735
|
+
# request = Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest.new
|
|
736
|
+
#
|
|
737
|
+
# # Call the delete_management_server method.
|
|
738
|
+
# result = client.delete_management_server request
|
|
739
|
+
#
|
|
740
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
741
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
742
|
+
# # Here is how to wait for a response.
|
|
743
|
+
# result.wait_until_done! timeout: 60
|
|
744
|
+
# if result.response?
|
|
745
|
+
# p result.response
|
|
746
|
+
# else
|
|
747
|
+
# puts "No response received."
|
|
748
|
+
# end
|
|
749
|
+
#
|
|
750
|
+
def delete_management_server request, options = nil
|
|
751
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
752
|
+
|
|
753
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteManagementServerRequest
|
|
754
|
+
|
|
755
|
+
# Converts hash and nil to an options object
|
|
756
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
757
|
+
|
|
758
|
+
# Customize the options with defaults
|
|
759
|
+
call_metadata = @config.rpcs.delete_management_server.metadata.to_h
|
|
760
|
+
|
|
761
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
762
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
763
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
764
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
765
|
+
transports_version_send: [:rest]
|
|
766
|
+
|
|
767
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
768
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
769
|
+
|
|
770
|
+
options.apply_defaults timeout: @config.rpcs.delete_management_server.timeout,
|
|
771
|
+
metadata: call_metadata,
|
|
772
|
+
retry_policy: @config.rpcs.delete_management_server.retry_policy
|
|
773
|
+
|
|
774
|
+
options.apply_defaults timeout: @config.timeout,
|
|
775
|
+
metadata: @config.metadata,
|
|
776
|
+
retry_policy: @config.retry_policy
|
|
777
|
+
|
|
778
|
+
@backup_dr_stub.delete_management_server request, options do |result, operation|
|
|
779
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
780
|
+
yield result, operation if block_given?
|
|
781
|
+
throw :response, result
|
|
782
|
+
end
|
|
783
|
+
rescue ::Gapic::Rest::Error => e
|
|
784
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
785
|
+
end
|
|
786
|
+
|
|
787
|
+
##
|
|
788
|
+
# Creates a new RestoreTemplate in a given project and location.
|
|
789
|
+
#
|
|
790
|
+
# @overload create_restore_template(request, options = nil)
|
|
791
|
+
# Pass arguments to `create_restore_template` via a request object, either of type
|
|
792
|
+
# {::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest} or an equivalent Hash.
|
|
793
|
+
#
|
|
794
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest, ::Hash]
|
|
795
|
+
# A request object representing the call parameters. Required. To specify no
|
|
796
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
797
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
798
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
799
|
+
#
|
|
800
|
+
# @overload create_restore_template(parent: nil, restore_template_id: nil, restore_template: nil, request_id: nil)
|
|
801
|
+
# Pass arguments to `create_restore_template` via keyword arguments. Note that at
|
|
802
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
803
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
804
|
+
#
|
|
805
|
+
# @param parent [::String]
|
|
806
|
+
# Required. The restore template project and location in the format
|
|
807
|
+
# 'projects/\\{project_id}/locations/\\{location}'.
|
|
808
|
+
# @param restore_template_id [::String]
|
|
809
|
+
# Required. The ID of the restore template to create. The ID must be
|
|
810
|
+
# unique for the specified project and location.
|
|
811
|
+
# @param restore_template [::Google::Cloud::BackupDR::V1beta::RestoreTemplate, ::Hash]
|
|
812
|
+
# Required. A RestoreTemplate resource.
|
|
813
|
+
# @param request_id [::String]
|
|
814
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
815
|
+
# request ID so that if you must retry your request, the server will know to
|
|
816
|
+
# ignore the request if it has already been completed.
|
|
817
|
+
#
|
|
818
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
819
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
820
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
821
|
+
# @yieldparam result [::Gapic::Operation]
|
|
822
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
823
|
+
#
|
|
824
|
+
# @return [::Gapic::Operation]
|
|
825
|
+
#
|
|
826
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
827
|
+
#
|
|
828
|
+
# @example Basic example
|
|
829
|
+
# require "google/cloud/backupdr/v1beta"
|
|
830
|
+
#
|
|
831
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
832
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
833
|
+
#
|
|
834
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
835
|
+
# request = Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest.new
|
|
836
|
+
#
|
|
837
|
+
# # Call the create_restore_template method.
|
|
838
|
+
# result = client.create_restore_template request
|
|
839
|
+
#
|
|
840
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
841
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
842
|
+
# # Here is how to wait for a response.
|
|
843
|
+
# result.wait_until_done! timeout: 60
|
|
844
|
+
# if result.response?
|
|
845
|
+
# p result.response
|
|
846
|
+
# else
|
|
847
|
+
# puts "No response received."
|
|
848
|
+
# end
|
|
849
|
+
#
|
|
850
|
+
def create_restore_template request, options = nil
|
|
851
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
852
|
+
|
|
853
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateRestoreTemplateRequest
|
|
854
|
+
|
|
855
|
+
# Converts hash and nil to an options object
|
|
856
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
857
|
+
|
|
858
|
+
# Customize the options with defaults
|
|
859
|
+
call_metadata = @config.rpcs.create_restore_template.metadata.to_h
|
|
860
|
+
|
|
861
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
862
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
863
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
864
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
865
|
+
transports_version_send: [:rest]
|
|
866
|
+
|
|
867
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
868
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
869
|
+
|
|
870
|
+
options.apply_defaults timeout: @config.rpcs.create_restore_template.timeout,
|
|
871
|
+
metadata: call_metadata,
|
|
872
|
+
retry_policy: @config.rpcs.create_restore_template.retry_policy
|
|
873
|
+
|
|
874
|
+
options.apply_defaults timeout: @config.timeout,
|
|
875
|
+
metadata: @config.metadata,
|
|
876
|
+
retry_policy: @config.retry_policy
|
|
877
|
+
|
|
878
|
+
@backup_dr_stub.create_restore_template request, options do |result, operation|
|
|
879
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
880
|
+
yield result, operation if block_given?
|
|
881
|
+
throw :response, result
|
|
882
|
+
end
|
|
883
|
+
rescue ::Gapic::Rest::Error => e
|
|
884
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
885
|
+
end
|
|
886
|
+
|
|
887
|
+
##
|
|
888
|
+
# Gets details of a RestoreTemplate.
|
|
889
|
+
#
|
|
890
|
+
# @overload get_restore_template(request, options = nil)
|
|
891
|
+
# Pass arguments to `get_restore_template` via a request object, either of type
|
|
892
|
+
# {::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest} or an equivalent Hash.
|
|
893
|
+
#
|
|
894
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest, ::Hash]
|
|
895
|
+
# A request object representing the call parameters. Required. To specify no
|
|
896
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
897
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
898
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
899
|
+
#
|
|
900
|
+
# @overload get_restore_template(name: nil)
|
|
901
|
+
# Pass arguments to `get_restore_template` via keyword arguments. Note that at
|
|
902
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
903
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
904
|
+
#
|
|
905
|
+
# @param name [::String]
|
|
906
|
+
# Required. The name of the restore template to retrieve.
|
|
907
|
+
# Format:
|
|
908
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
|
|
909
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
910
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreTemplate]
|
|
911
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
912
|
+
#
|
|
913
|
+
# @return [::Google::Cloud::BackupDR::V1beta::RestoreTemplate]
|
|
914
|
+
#
|
|
915
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
916
|
+
#
|
|
917
|
+
# @example Basic example
|
|
918
|
+
# require "google/cloud/backupdr/v1beta"
|
|
919
|
+
#
|
|
920
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
921
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
922
|
+
#
|
|
923
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
924
|
+
# request = Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest.new
|
|
925
|
+
#
|
|
926
|
+
# # Call the get_restore_template method.
|
|
927
|
+
# result = client.get_restore_template request
|
|
928
|
+
#
|
|
929
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreTemplate.
|
|
930
|
+
# p result
|
|
931
|
+
#
|
|
932
|
+
def get_restore_template request, options = nil
|
|
933
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
934
|
+
|
|
935
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateRequest
|
|
936
|
+
|
|
937
|
+
# Converts hash and nil to an options object
|
|
938
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
939
|
+
|
|
940
|
+
# Customize the options with defaults
|
|
941
|
+
call_metadata = @config.rpcs.get_restore_template.metadata.to_h
|
|
942
|
+
|
|
943
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
944
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
945
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
946
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
947
|
+
transports_version_send: [:rest]
|
|
948
|
+
|
|
949
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
950
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
951
|
+
|
|
952
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_template.timeout,
|
|
953
|
+
metadata: call_metadata,
|
|
954
|
+
retry_policy: @config.rpcs.get_restore_template.retry_policy
|
|
955
|
+
|
|
956
|
+
options.apply_defaults timeout: @config.timeout,
|
|
957
|
+
metadata: @config.metadata,
|
|
958
|
+
retry_policy: @config.retry_policy
|
|
959
|
+
|
|
960
|
+
@backup_dr_stub.get_restore_template request, options do |result, operation|
|
|
961
|
+
yield result, operation if block_given?
|
|
962
|
+
end
|
|
963
|
+
rescue ::Gapic::Rest::Error => e
|
|
964
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
965
|
+
end
|
|
966
|
+
|
|
967
|
+
##
|
|
968
|
+
# Lists RestoreTemplates in a given project and location.
|
|
969
|
+
#
|
|
970
|
+
# @overload list_restore_templates(request, options = nil)
|
|
971
|
+
# Pass arguments to `list_restore_templates` via a request object, either of type
|
|
972
|
+
# {::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest} or an equivalent Hash.
|
|
973
|
+
#
|
|
974
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest, ::Hash]
|
|
975
|
+
# A request object representing the call parameters. Required. To specify no
|
|
976
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
977
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
978
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
979
|
+
#
|
|
980
|
+
# @overload list_restore_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
981
|
+
# Pass arguments to `list_restore_templates` via keyword arguments. Note that at
|
|
982
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
983
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
984
|
+
#
|
|
985
|
+
# @param parent [::String]
|
|
986
|
+
# Required. The project and location from which to list the restore
|
|
987
|
+
# templates.
|
|
988
|
+
# Format: `projects/{project}/locations/{location}`.
|
|
989
|
+
# @param page_size [::Integer]
|
|
990
|
+
# Optional. The maximum number of items to return.
|
|
991
|
+
# @param page_token [::String]
|
|
992
|
+
# Optional. A page token, received from a previous `ListRestoreTemplates`
|
|
993
|
+
# call.
|
|
994
|
+
# @param filter [::String]
|
|
995
|
+
# Optional. Field match expression used to filter the results.
|
|
996
|
+
# @param order_by [::String]
|
|
997
|
+
# Optional. Field by which to sort the results.
|
|
998
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
999
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplate>]
|
|
1000
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1001
|
+
#
|
|
1002
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplate>]
|
|
1003
|
+
#
|
|
1004
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1005
|
+
#
|
|
1006
|
+
# @example Basic example
|
|
1007
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1008
|
+
#
|
|
1009
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1010
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1011
|
+
#
|
|
1012
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1013
|
+
# request = Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest.new
|
|
1014
|
+
#
|
|
1015
|
+
# # Call the list_restore_templates method.
|
|
1016
|
+
# result = client.list_restore_templates request
|
|
1017
|
+
#
|
|
1018
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1019
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1020
|
+
# result.each do |item|
|
|
1021
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreTemplate.
|
|
1022
|
+
# p item
|
|
1023
|
+
# end
|
|
1024
|
+
#
|
|
1025
|
+
def list_restore_templates request, options = nil
|
|
1026
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1027
|
+
|
|
1028
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreTemplatesRequest
|
|
1029
|
+
|
|
1030
|
+
# Converts hash and nil to an options object
|
|
1031
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1032
|
+
|
|
1033
|
+
# Customize the options with defaults
|
|
1034
|
+
call_metadata = @config.rpcs.list_restore_templates.metadata.to_h
|
|
1035
|
+
|
|
1036
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1037
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1038
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1039
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1040
|
+
transports_version_send: [:rest]
|
|
1041
|
+
|
|
1042
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1043
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1044
|
+
|
|
1045
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_templates.timeout,
|
|
1046
|
+
metadata: call_metadata,
|
|
1047
|
+
retry_policy: @config.rpcs.list_restore_templates.retry_policy
|
|
1048
|
+
|
|
1049
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1050
|
+
metadata: @config.metadata,
|
|
1051
|
+
retry_policy: @config.retry_policy
|
|
1052
|
+
|
|
1053
|
+
@backup_dr_stub.list_restore_templates request, options do |result, operation|
|
|
1054
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_templates, "restore_templates", request, result, options
|
|
1055
|
+
yield result, operation if block_given?
|
|
1056
|
+
throw :response, result
|
|
1057
|
+
end
|
|
1058
|
+
rescue ::Gapic::Rest::Error => e
|
|
1059
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1060
|
+
end
|
|
1061
|
+
|
|
1062
|
+
##
|
|
1063
|
+
# Updates the settings of a RestoreTemplate.
|
|
1064
|
+
#
|
|
1065
|
+
# @overload update_restore_template(request, options = nil)
|
|
1066
|
+
# Pass arguments to `update_restore_template` via a request object, either of type
|
|
1067
|
+
# {::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest} or an equivalent Hash.
|
|
1068
|
+
#
|
|
1069
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest, ::Hash]
|
|
1070
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1071
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1072
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1073
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1074
|
+
#
|
|
1075
|
+
# @overload update_restore_template(update_mask: nil, restore_template: nil, request_id: nil, validate_only: nil)
|
|
1076
|
+
# Pass arguments to `update_restore_template` via keyword arguments. Note that at
|
|
1077
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1078
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1079
|
+
#
|
|
1080
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
1081
|
+
# Optional. The list of fields to update.
|
|
1082
|
+
# Field mask is used to specify the fields to be overwritten in the
|
|
1083
|
+
# RestoreTemplate resource by the update.
|
|
1084
|
+
# The fields specified in the update_mask are relative to the resource, not
|
|
1085
|
+
# the full request. A field will be overwritten if it is in the mask.
|
|
1086
|
+
# @param restore_template [::Google::Cloud::BackupDR::V1beta::RestoreTemplate, ::Hash]
|
|
1087
|
+
# Required. The restore template to update.
|
|
1088
|
+
# @param request_id [::String]
|
|
1089
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
1090
|
+
# request ID so that if you must retry your request, the server will know to
|
|
1091
|
+
# ignore the request if it has already been completed.
|
|
1092
|
+
#
|
|
1093
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
1094
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
1095
|
+
# @param validate_only [::Boolean]
|
|
1096
|
+
# Optional. Only validate the request, but do not perform mutations.
|
|
1097
|
+
# The default is 'false'.
|
|
1098
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1099
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1100
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1101
|
+
#
|
|
1102
|
+
# @return [::Gapic::Operation]
|
|
1103
|
+
#
|
|
1104
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1105
|
+
#
|
|
1106
|
+
# @example Basic example
|
|
1107
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1108
|
+
#
|
|
1109
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1110
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1111
|
+
#
|
|
1112
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1113
|
+
# request = Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest.new
|
|
1114
|
+
#
|
|
1115
|
+
# # Call the update_restore_template method.
|
|
1116
|
+
# result = client.update_restore_template request
|
|
1117
|
+
#
|
|
1118
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1119
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1120
|
+
# # Here is how to wait for a response.
|
|
1121
|
+
# result.wait_until_done! timeout: 60
|
|
1122
|
+
# if result.response?
|
|
1123
|
+
# p result.response
|
|
1124
|
+
# else
|
|
1125
|
+
# puts "No response received."
|
|
1126
|
+
# end
|
|
1127
|
+
#
|
|
1128
|
+
def update_restore_template request, options = nil
|
|
1129
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1130
|
+
|
|
1131
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::UpdateRestoreTemplateRequest
|
|
1132
|
+
|
|
1133
|
+
# Converts hash and nil to an options object
|
|
1134
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1135
|
+
|
|
1136
|
+
# Customize the options with defaults
|
|
1137
|
+
call_metadata = @config.rpcs.update_restore_template.metadata.to_h
|
|
1138
|
+
|
|
1139
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1140
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1141
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1142
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1143
|
+
transports_version_send: [:rest]
|
|
1144
|
+
|
|
1145
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1146
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1147
|
+
|
|
1148
|
+
options.apply_defaults timeout: @config.rpcs.update_restore_template.timeout,
|
|
1149
|
+
metadata: call_metadata,
|
|
1150
|
+
retry_policy: @config.rpcs.update_restore_template.retry_policy
|
|
1151
|
+
|
|
1152
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1153
|
+
metadata: @config.metadata,
|
|
1154
|
+
retry_policy: @config.retry_policy
|
|
1155
|
+
|
|
1156
|
+
@backup_dr_stub.update_restore_template request, options do |result, operation|
|
|
1157
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1158
|
+
yield result, operation if block_given?
|
|
1159
|
+
throw :response, result
|
|
1160
|
+
end
|
|
1161
|
+
rescue ::Gapic::Rest::Error => e
|
|
1162
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1163
|
+
end
|
|
1164
|
+
|
|
1165
|
+
##
|
|
1166
|
+
# Deletes a RestoreTemplate.
|
|
1167
|
+
#
|
|
1168
|
+
# @overload delete_restore_template(request, options = nil)
|
|
1169
|
+
# Pass arguments to `delete_restore_template` via a request object, either of type
|
|
1170
|
+
# {::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest} or an equivalent Hash.
|
|
1171
|
+
#
|
|
1172
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest, ::Hash]
|
|
1173
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1174
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1175
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1176
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1177
|
+
#
|
|
1178
|
+
# @overload delete_restore_template(name: nil, request_id: nil, force: nil)
|
|
1179
|
+
# Pass arguments to `delete_restore_template` via keyword arguments. Note that at
|
|
1180
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1181
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1182
|
+
#
|
|
1183
|
+
# @param name [::String]
|
|
1184
|
+
# Required. The name of the restore template to delete.
|
|
1185
|
+
# Format:
|
|
1186
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
|
|
1187
|
+
# @param request_id [::String]
|
|
1188
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
1189
|
+
# request ID so that if you must retry your request, the server will know to
|
|
1190
|
+
# ignore the request if it has already been completed.
|
|
1191
|
+
#
|
|
1192
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
1193
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
1194
|
+
# @param force [::Boolean]
|
|
1195
|
+
# Optional. If set to true, any child RestoreTemplateExecutions will also be
|
|
1196
|
+
# deleted. If false and the RestoreTemplate has any child executions, the
|
|
1197
|
+
# request will fail.
|
|
1198
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1199
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1200
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1201
|
+
#
|
|
1202
|
+
# @return [::Gapic::Operation]
|
|
1203
|
+
#
|
|
1204
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1205
|
+
#
|
|
1206
|
+
# @example Basic example
|
|
1207
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1208
|
+
#
|
|
1209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1210
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1211
|
+
#
|
|
1212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1213
|
+
# request = Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest.new
|
|
1214
|
+
#
|
|
1215
|
+
# # Call the delete_restore_template method.
|
|
1216
|
+
# result = client.delete_restore_template request
|
|
1217
|
+
#
|
|
1218
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1219
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1220
|
+
# # Here is how to wait for a response.
|
|
1221
|
+
# result.wait_until_done! timeout: 60
|
|
1222
|
+
# if result.response?
|
|
1223
|
+
# p result.response
|
|
1224
|
+
# else
|
|
1225
|
+
# puts "No response received."
|
|
1226
|
+
# end
|
|
1227
|
+
#
|
|
1228
|
+
def delete_restore_template request, options = nil
|
|
1229
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1230
|
+
|
|
1231
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteRestoreTemplateRequest
|
|
1232
|
+
|
|
1233
|
+
# Converts hash and nil to an options object
|
|
1234
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1235
|
+
|
|
1236
|
+
# Customize the options with defaults
|
|
1237
|
+
call_metadata = @config.rpcs.delete_restore_template.metadata.to_h
|
|
1238
|
+
|
|
1239
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1240
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1241
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1242
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1243
|
+
transports_version_send: [:rest]
|
|
1244
|
+
|
|
1245
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1246
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1247
|
+
|
|
1248
|
+
options.apply_defaults timeout: @config.rpcs.delete_restore_template.timeout,
|
|
1249
|
+
metadata: call_metadata,
|
|
1250
|
+
retry_policy: @config.rpcs.delete_restore_template.retry_policy
|
|
1251
|
+
|
|
1252
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1253
|
+
metadata: @config.metadata,
|
|
1254
|
+
retry_policy: @config.retry_policy
|
|
1255
|
+
|
|
1256
|
+
@backup_dr_stub.delete_restore_template request, options do |result, operation|
|
|
1257
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1258
|
+
yield result, operation if block_given?
|
|
1259
|
+
throw :response, result
|
|
1260
|
+
end
|
|
1261
|
+
rescue ::Gapic::Rest::Error => e
|
|
1262
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1263
|
+
end
|
|
1264
|
+
|
|
1265
|
+
##
|
|
1266
|
+
# Runs a RestoreTemplate.
|
|
1267
|
+
#
|
|
1268
|
+
# @overload run_restore_template(request, options = nil)
|
|
1269
|
+
# Pass arguments to `run_restore_template` via a request object, either of type
|
|
1270
|
+
# {::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest} or an equivalent Hash.
|
|
1271
|
+
#
|
|
1272
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest, ::Hash]
|
|
1273
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1274
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1275
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1276
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1277
|
+
#
|
|
1278
|
+
# @overload run_restore_template(name: nil, backup: nil, request_id: nil)
|
|
1279
|
+
# Pass arguments to `run_restore_template` via keyword arguments. Note that at
|
|
1280
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1281
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1282
|
+
#
|
|
1283
|
+
# @param name [::String]
|
|
1284
|
+
# Required. The name of the restore template to run.
|
|
1285
|
+
# Format:
|
|
1286
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
|
|
1287
|
+
# @param backup [::String]
|
|
1288
|
+
# Optional. The resource name of the Backup to restore from.
|
|
1289
|
+
# If not specified, the latest backup matching the backup selection
|
|
1290
|
+
# configuration in the RestoreTemplate will be used.
|
|
1291
|
+
# Format:
|
|
1292
|
+
# 'projects/\\{project}/locations/\\{location}/backupVaults/\\{backup_vault}/dataSources/\\{data_source}/backups/\\{backup}'
|
|
1293
|
+
# @param request_id [::String]
|
|
1294
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
1295
|
+
# request ID so that if you must retry your request, the server will know to
|
|
1296
|
+
# ignore the request if it has already been completed.
|
|
1297
|
+
#
|
|
1298
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
1299
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
1300
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1301
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1302
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1303
|
+
#
|
|
1304
|
+
# @return [::Gapic::Operation]
|
|
1305
|
+
#
|
|
1306
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1307
|
+
#
|
|
1308
|
+
# @example Basic example
|
|
1309
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1310
|
+
#
|
|
1311
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1312
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1313
|
+
#
|
|
1314
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1315
|
+
# request = Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest.new
|
|
1316
|
+
#
|
|
1317
|
+
# # Call the run_restore_template method.
|
|
1318
|
+
# result = client.run_restore_template request
|
|
1319
|
+
#
|
|
1320
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1321
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1322
|
+
# # Here is how to wait for a response.
|
|
1323
|
+
# result.wait_until_done! timeout: 60
|
|
1324
|
+
# if result.response?
|
|
1325
|
+
# p result.response
|
|
1326
|
+
# else
|
|
1327
|
+
# puts "No response received."
|
|
1328
|
+
# end
|
|
1329
|
+
#
|
|
1330
|
+
def run_restore_template request, options = nil
|
|
1331
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1332
|
+
|
|
1333
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::RunRestoreTemplateRequest
|
|
1334
|
+
|
|
1335
|
+
# Converts hash and nil to an options object
|
|
1336
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1337
|
+
|
|
1338
|
+
# Customize the options with defaults
|
|
1339
|
+
call_metadata = @config.rpcs.run_restore_template.metadata.to_h
|
|
1340
|
+
|
|
1341
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1342
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1343
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1344
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1345
|
+
transports_version_send: [:rest]
|
|
1346
|
+
|
|
1347
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1348
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1349
|
+
|
|
1350
|
+
options.apply_defaults timeout: @config.rpcs.run_restore_template.timeout,
|
|
1351
|
+
metadata: call_metadata,
|
|
1352
|
+
retry_policy: @config.rpcs.run_restore_template.retry_policy
|
|
1353
|
+
|
|
1354
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1355
|
+
metadata: @config.metadata,
|
|
1356
|
+
retry_policy: @config.retry_policy
|
|
1357
|
+
|
|
1358
|
+
@backup_dr_stub.run_restore_template request, options do |result, operation|
|
|
1359
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1360
|
+
yield result, operation if block_given?
|
|
1361
|
+
throw :response, result
|
|
1362
|
+
end
|
|
1363
|
+
rescue ::Gapic::Rest::Error => e
|
|
1364
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1365
|
+
end
|
|
1366
|
+
|
|
1367
|
+
##
|
|
1368
|
+
# Gets details of a RestoreTemplateExecution.
|
|
1369
|
+
#
|
|
1370
|
+
# @overload get_restore_template_execution(request, options = nil)
|
|
1371
|
+
# Pass arguments to `get_restore_template_execution` via a request object, either of type
|
|
1372
|
+
# {::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest} or an equivalent Hash.
|
|
1373
|
+
#
|
|
1374
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest, ::Hash]
|
|
1375
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1376
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1377
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1378
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1379
|
+
#
|
|
1380
|
+
# @overload get_restore_template_execution(name: nil)
|
|
1381
|
+
# Pass arguments to `get_restore_template_execution` via keyword arguments. Note that at
|
|
1382
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1383
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1384
|
+
#
|
|
1385
|
+
# @param name [::String]
|
|
1386
|
+
# Required. The name of the restore template execution to retrieve.
|
|
1387
|
+
# Format:
|
|
1388
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}/executions/\\{execution_id}'
|
|
1389
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1390
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution]
|
|
1391
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1392
|
+
#
|
|
1393
|
+
# @return [::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution]
|
|
1394
|
+
#
|
|
1395
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1396
|
+
#
|
|
1397
|
+
# @example Basic example
|
|
1398
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1399
|
+
#
|
|
1400
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1401
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1402
|
+
#
|
|
1403
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1404
|
+
# request = Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest.new
|
|
1405
|
+
#
|
|
1406
|
+
# # Call the get_restore_template_execution method.
|
|
1407
|
+
# result = client.get_restore_template_execution request
|
|
1408
|
+
#
|
|
1409
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution.
|
|
1410
|
+
# p result
|
|
1411
|
+
#
|
|
1412
|
+
def get_restore_template_execution request, options = nil
|
|
1413
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1414
|
+
|
|
1415
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreTemplateExecutionRequest
|
|
1416
|
+
|
|
1417
|
+
# Converts hash and nil to an options object
|
|
1418
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1419
|
+
|
|
1420
|
+
# Customize the options with defaults
|
|
1421
|
+
call_metadata = @config.rpcs.get_restore_template_execution.metadata.to_h
|
|
1422
|
+
|
|
1423
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1424
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1425
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1426
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1427
|
+
transports_version_send: [:rest]
|
|
1428
|
+
|
|
1429
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1430
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1431
|
+
|
|
1432
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_template_execution.timeout,
|
|
1433
|
+
metadata: call_metadata,
|
|
1434
|
+
retry_policy: @config.rpcs.get_restore_template_execution.retry_policy
|
|
1435
|
+
|
|
1436
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1437
|
+
metadata: @config.metadata,
|
|
1438
|
+
retry_policy: @config.retry_policy
|
|
1439
|
+
|
|
1440
|
+
@backup_dr_stub.get_restore_template_execution request, options do |result, operation|
|
|
1441
|
+
yield result, operation if block_given?
|
|
1442
|
+
end
|
|
1443
|
+
rescue ::Gapic::Rest::Error => e
|
|
1444
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1445
|
+
end
|
|
1446
|
+
|
|
1447
|
+
##
|
|
1448
|
+
# Lists RestoreTemplateExecutions in a given project, location and restore
|
|
1449
|
+
# template.
|
|
1450
|
+
#
|
|
1451
|
+
# @overload list_restore_template_executions(request, options = nil)
|
|
1452
|
+
# Pass arguments to `list_restore_template_executions` via a request object, either of type
|
|
1453
|
+
# {::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest} or an equivalent Hash.
|
|
1454
|
+
#
|
|
1455
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest, ::Hash]
|
|
1456
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1457
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1458
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1459
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1460
|
+
#
|
|
1461
|
+
# @overload list_restore_template_executions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
1462
|
+
# Pass arguments to `list_restore_template_executions` via keyword arguments. Note that at
|
|
1463
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1464
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1465
|
+
#
|
|
1466
|
+
# @param parent [::String]
|
|
1467
|
+
# Required. The project, location, and restore template for which to retrieve
|
|
1468
|
+
# executions information.
|
|
1469
|
+
# Format:
|
|
1470
|
+
# `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`.
|
|
1471
|
+
# @param page_size [::Integer]
|
|
1472
|
+
# Optional. Requested page size.
|
|
1473
|
+
# @param page_token [::String]
|
|
1474
|
+
# Optional. A token identifying a page of results.
|
|
1475
|
+
# @param filter [::String]
|
|
1476
|
+
# Optional. Filtering results.
|
|
1477
|
+
# @param order_by [::String]
|
|
1478
|
+
# Optional. Hint for how to order the results.
|
|
1479
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1480
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution>]
|
|
1481
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1482
|
+
#
|
|
1483
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution>]
|
|
1484
|
+
#
|
|
1485
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1486
|
+
#
|
|
1487
|
+
# @example Basic example
|
|
1488
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1489
|
+
#
|
|
1490
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1491
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1492
|
+
#
|
|
1493
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1494
|
+
# request = Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest.new
|
|
1495
|
+
#
|
|
1496
|
+
# # Call the list_restore_template_executions method.
|
|
1497
|
+
# result = client.list_restore_template_executions request
|
|
1498
|
+
#
|
|
1499
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1500
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1501
|
+
# result.each do |item|
|
|
1502
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreTemplateExecution.
|
|
1503
|
+
# p item
|
|
1504
|
+
# end
|
|
1505
|
+
#
|
|
1506
|
+
def list_restore_template_executions request, options = nil
|
|
1507
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1508
|
+
|
|
1509
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreTemplateExecutionsRequest
|
|
1510
|
+
|
|
1511
|
+
# Converts hash and nil to an options object
|
|
1512
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1513
|
+
|
|
1514
|
+
# Customize the options with defaults
|
|
1515
|
+
call_metadata = @config.rpcs.list_restore_template_executions.metadata.to_h
|
|
1516
|
+
|
|
1517
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1518
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1519
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1520
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1521
|
+
transports_version_send: [:rest]
|
|
1522
|
+
|
|
1523
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1524
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1525
|
+
|
|
1526
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_template_executions.timeout,
|
|
1527
|
+
metadata: call_metadata,
|
|
1528
|
+
retry_policy: @config.rpcs.list_restore_template_executions.retry_policy
|
|
1529
|
+
|
|
1530
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1531
|
+
metadata: @config.metadata,
|
|
1532
|
+
retry_policy: @config.retry_policy
|
|
1533
|
+
|
|
1534
|
+
@backup_dr_stub.list_restore_template_executions request, options do |result, operation|
|
|
1535
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_template_executions, "restore_template_executions", request, result, options
|
|
1536
|
+
yield result, operation if block_given?
|
|
1537
|
+
throw :response, result
|
|
1538
|
+
end
|
|
1539
|
+
rescue ::Gapic::Rest::Error => e
|
|
1540
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1541
|
+
end
|
|
1542
|
+
|
|
1543
|
+
##
|
|
1544
|
+
# Triggers cleanup of restored resources created during execution.
|
|
1545
|
+
#
|
|
1546
|
+
# @overload trigger_restore_cleanup(request, options = nil)
|
|
1547
|
+
# Pass arguments to `trigger_restore_cleanup` via a request object, either of type
|
|
1548
|
+
# {::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest} or an equivalent Hash.
|
|
1549
|
+
#
|
|
1550
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest, ::Hash]
|
|
1551
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1552
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1553
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1554
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1555
|
+
#
|
|
1556
|
+
# @overload trigger_restore_cleanup(name: nil, request_id: nil)
|
|
1557
|
+
# Pass arguments to `trigger_restore_cleanup` via keyword arguments. Note that at
|
|
1558
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1559
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1560
|
+
#
|
|
1561
|
+
# @param name [::String]
|
|
1562
|
+
# Required. Name of the restore template execution.
|
|
1563
|
+
# Format:
|
|
1564
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}/executions/\\{execution_id}'
|
|
1565
|
+
# @param request_id [::String]
|
|
1566
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
1567
|
+
# request ID so that if you must retry your request, the server will know to
|
|
1568
|
+
# ignore the request if it has already been completed. The server will
|
|
1569
|
+
# guarantee that for at least 60 minutes after the first request.
|
|
1570
|
+
#
|
|
1571
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
1572
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
1573
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1574
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1575
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1576
|
+
#
|
|
1577
|
+
# @return [::Gapic::Operation]
|
|
1578
|
+
#
|
|
1579
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1580
|
+
#
|
|
1581
|
+
# @example Basic example
|
|
1582
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1583
|
+
#
|
|
1584
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1585
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1586
|
+
#
|
|
1587
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1588
|
+
# request = Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest.new
|
|
1589
|
+
#
|
|
1590
|
+
# # Call the trigger_restore_cleanup method.
|
|
1591
|
+
# result = client.trigger_restore_cleanup request
|
|
1592
|
+
#
|
|
1593
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1594
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1595
|
+
# # Here is how to wait for a response.
|
|
1596
|
+
# result.wait_until_done! timeout: 60
|
|
1597
|
+
# if result.response?
|
|
1598
|
+
# p result.response
|
|
1599
|
+
# else
|
|
1600
|
+
# puts "No response received."
|
|
1601
|
+
# end
|
|
1602
|
+
#
|
|
1603
|
+
def trigger_restore_cleanup request, options = nil
|
|
1604
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1605
|
+
|
|
1606
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::TriggerRestoreCleanupRequest
|
|
1607
|
+
|
|
1608
|
+
# Converts hash and nil to an options object
|
|
1609
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1610
|
+
|
|
1611
|
+
# Customize the options with defaults
|
|
1612
|
+
call_metadata = @config.rpcs.trigger_restore_cleanup.metadata.to_h
|
|
1613
|
+
|
|
1614
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1615
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1616
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1617
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1618
|
+
transports_version_send: [:rest]
|
|
1619
|
+
|
|
1620
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1621
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1622
|
+
|
|
1623
|
+
options.apply_defaults timeout: @config.rpcs.trigger_restore_cleanup.timeout,
|
|
1624
|
+
metadata: call_metadata,
|
|
1625
|
+
retry_policy: @config.rpcs.trigger_restore_cleanup.retry_policy
|
|
1626
|
+
|
|
1627
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1628
|
+
metadata: @config.metadata,
|
|
1629
|
+
retry_policy: @config.retry_policy
|
|
1630
|
+
|
|
1631
|
+
@backup_dr_stub.trigger_restore_cleanup request, options do |result, operation|
|
|
1632
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1633
|
+
yield result, operation if block_given?
|
|
1634
|
+
throw :response, result
|
|
1635
|
+
end
|
|
1636
|
+
rescue ::Gapic::Rest::Error => e
|
|
1637
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1638
|
+
end
|
|
1639
|
+
|
|
1640
|
+
##
|
|
1641
|
+
# Creates a new RestoreVerificationPlan in a given project and location.
|
|
1642
|
+
#
|
|
1643
|
+
# @overload create_restore_verification_plan(request, options = nil)
|
|
1644
|
+
# Pass arguments to `create_restore_verification_plan` via a request object, either of type
|
|
1645
|
+
# {::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest} or an equivalent Hash.
|
|
1646
|
+
#
|
|
1647
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest, ::Hash]
|
|
1648
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1649
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1650
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1651
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1652
|
+
#
|
|
1653
|
+
# @overload create_restore_verification_plan(parent: nil, restore_verification_plan_id: nil, restore_verification_plan: nil, request_id: nil)
|
|
1654
|
+
# Pass arguments to `create_restore_verification_plan` via keyword arguments. Note that at
|
|
1655
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1656
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1657
|
+
#
|
|
1658
|
+
# @param parent [::String]
|
|
1659
|
+
# Required. The `RestoreVerificationPlan` project and location in the format
|
|
1660
|
+
# `projects/{project}/locations/{location}`. In Google Cloud Backup and DR
|
|
1661
|
+
# locations map to Google Cloud regions, for example **us-central1**.
|
|
1662
|
+
# @param restore_verification_plan_id [::String]
|
|
1663
|
+
# Required. The name of the `RestoreVerificationPlan` to create. The name
|
|
1664
|
+
# must be unique for the specified project and location. The name must start
|
|
1665
|
+
# with a lowercase letter followed by up to 62 lowercase letters, numbers, or
|
|
1666
|
+
# hyphens. Pattern, `^[a-z]([-a-z0-9]*[a-z0-9])?$`.
|
|
1667
|
+
# @param restore_verification_plan [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan, ::Hash]
|
|
1668
|
+
# Required. The `RestoreVerificationPlan` resource object to create.
|
|
1669
|
+
# @param request_id [::String]
|
|
1670
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
1671
|
+
# request ID so that if you must retry your request, the server will know to
|
|
1672
|
+
# ignore the request if it has already been completed. The server will
|
|
1673
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
1674
|
+
#
|
|
1675
|
+
# For example, consider a situation where you make an initial request and
|
|
1676
|
+
# the request times out. If you make the request again with the same request
|
|
1677
|
+
# ID, the server can check if original operation with the same request ID
|
|
1678
|
+
# was received, and if so, will ignore the second request. This prevents
|
|
1679
|
+
# clients from accidentally creating duplicate commitments.
|
|
1680
|
+
#
|
|
1681
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
1682
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
1683
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1684
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1685
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1686
|
+
#
|
|
1687
|
+
# @return [::Gapic::Operation]
|
|
1688
|
+
#
|
|
1689
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1690
|
+
#
|
|
1691
|
+
# @example Basic example
|
|
1692
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1693
|
+
#
|
|
1694
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1695
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1696
|
+
#
|
|
1697
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1698
|
+
# request = Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest.new
|
|
1699
|
+
#
|
|
1700
|
+
# # Call the create_restore_verification_plan method.
|
|
1701
|
+
# result = client.create_restore_verification_plan request
|
|
1702
|
+
#
|
|
1703
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1704
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1705
|
+
# # Here is how to wait for a response.
|
|
1706
|
+
# result.wait_until_done! timeout: 60
|
|
1707
|
+
# if result.response?
|
|
1708
|
+
# p result.response
|
|
1709
|
+
# else
|
|
1710
|
+
# puts "No response received."
|
|
1711
|
+
# end
|
|
1712
|
+
#
|
|
1713
|
+
def create_restore_verification_plan request, options = nil
|
|
1714
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1715
|
+
|
|
1716
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanRequest
|
|
1717
|
+
|
|
1718
|
+
# Converts hash and nil to an options object
|
|
1719
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1720
|
+
|
|
1721
|
+
# Customize the options with defaults
|
|
1722
|
+
call_metadata = @config.rpcs.create_restore_verification_plan.metadata.to_h
|
|
1723
|
+
|
|
1724
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1725
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1726
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1727
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1728
|
+
transports_version_send: [:rest]
|
|
1729
|
+
|
|
1730
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1731
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1732
|
+
|
|
1733
|
+
options.apply_defaults timeout: @config.rpcs.create_restore_verification_plan.timeout,
|
|
1734
|
+
metadata: call_metadata,
|
|
1735
|
+
retry_policy: @config.rpcs.create_restore_verification_plan.retry_policy
|
|
1736
|
+
|
|
1737
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1738
|
+
metadata: @config.metadata,
|
|
1739
|
+
retry_policy: @config.retry_policy
|
|
1740
|
+
|
|
1741
|
+
@backup_dr_stub.create_restore_verification_plan request, options do |result, operation|
|
|
1742
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1743
|
+
yield result, operation if block_given?
|
|
1744
|
+
throw :response, result
|
|
1745
|
+
end
|
|
1746
|
+
rescue ::Gapic::Rest::Error => e
|
|
1747
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1748
|
+
end
|
|
1749
|
+
|
|
1750
|
+
##
|
|
1751
|
+
# Creates a new RestoreVerificationPlanAssociation in a given
|
|
1752
|
+
# RestoreVerificationPlan.
|
|
1753
|
+
#
|
|
1754
|
+
# @overload create_restore_verification_plan_association(request, options = nil)
|
|
1755
|
+
# Pass arguments to `create_restore_verification_plan_association` via a request object, either of type
|
|
1756
|
+
# {::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
|
|
1757
|
+
#
|
|
1758
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest, ::Hash]
|
|
1759
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1760
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1761
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1762
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1763
|
+
#
|
|
1764
|
+
# @overload create_restore_verification_plan_association(parent: nil, restore_verification_plan_association_id: nil, restore_verification_plan_association: nil, request_id: nil)
|
|
1765
|
+
# Pass arguments to `create_restore_verification_plan_association` via keyword arguments. Note that at
|
|
1766
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1767
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1768
|
+
#
|
|
1769
|
+
# @param parent [::String]
|
|
1770
|
+
# Required. The parent resource where this association will be created.
|
|
1771
|
+
# Format:
|
|
1772
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
|
|
1773
|
+
# @param restore_verification_plan_association_id [::String]
|
|
1774
|
+
# Required. The ID to use for the association, which will become the final
|
|
1775
|
+
# component of the association's resource name.
|
|
1776
|
+
#
|
|
1777
|
+
# This value should be 1-63 characters, and valid characters are
|
|
1778
|
+
# /[a-z0-9_-]/.
|
|
1779
|
+
# @param restore_verification_plan_association [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation, ::Hash]
|
|
1780
|
+
# Required. The RestoreVerificationPlanAssociation resource to create.
|
|
1781
|
+
# @param request_id [::String]
|
|
1782
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
1783
|
+
# request ID so that if you must retry your request, the server will know
|
|
1784
|
+
# that the server has already received the duplicate request and can avoid
|
|
1785
|
+
# responding with an error. The request ID must be a valid UUID with the
|
|
1786
|
+
# exception that zero UUID is not supported
|
|
1787
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
1788
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1789
|
+
# @yieldparam result [::Gapic::Operation]
|
|
1790
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1791
|
+
#
|
|
1792
|
+
# @return [::Gapic::Operation]
|
|
1793
|
+
#
|
|
1794
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1795
|
+
#
|
|
1796
|
+
# @example Basic example
|
|
1797
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1798
|
+
#
|
|
1799
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1800
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1801
|
+
#
|
|
1802
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1803
|
+
# request = Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest.new
|
|
1804
|
+
#
|
|
1805
|
+
# # Call the create_restore_verification_plan_association method.
|
|
1806
|
+
# result = client.create_restore_verification_plan_association request
|
|
1807
|
+
#
|
|
1808
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
1809
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
1810
|
+
# # Here is how to wait for a response.
|
|
1811
|
+
# result.wait_until_done! timeout: 60
|
|
1812
|
+
# if result.response?
|
|
1813
|
+
# p result.response
|
|
1814
|
+
# else
|
|
1815
|
+
# puts "No response received."
|
|
1816
|
+
# end
|
|
1817
|
+
#
|
|
1818
|
+
def create_restore_verification_plan_association request, options = nil
|
|
1819
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1820
|
+
|
|
1821
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::CreateRestoreVerificationPlanAssociationRequest
|
|
1822
|
+
|
|
1823
|
+
# Converts hash and nil to an options object
|
|
1824
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1825
|
+
|
|
1826
|
+
# Customize the options with defaults
|
|
1827
|
+
call_metadata = @config.rpcs.create_restore_verification_plan_association.metadata.to_h
|
|
1828
|
+
|
|
1829
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1830
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1831
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1832
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1833
|
+
transports_version_send: [:rest]
|
|
1834
|
+
|
|
1835
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1836
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1837
|
+
|
|
1838
|
+
options.apply_defaults timeout: @config.rpcs.create_restore_verification_plan_association.timeout,
|
|
1839
|
+
metadata: call_metadata,
|
|
1840
|
+
retry_policy: @config.rpcs.create_restore_verification_plan_association.retry_policy
|
|
1841
|
+
|
|
1842
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1843
|
+
metadata: @config.metadata,
|
|
1844
|
+
retry_policy: @config.retry_policy
|
|
1845
|
+
|
|
1846
|
+
@backup_dr_stub.create_restore_verification_plan_association request, options do |result, operation|
|
|
1847
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
1848
|
+
yield result, operation if block_given?
|
|
1849
|
+
throw :response, result
|
|
1850
|
+
end
|
|
1851
|
+
rescue ::Gapic::Rest::Error => e
|
|
1852
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1853
|
+
end
|
|
1854
|
+
|
|
1855
|
+
##
|
|
1856
|
+
# Gets details of a single RestoreVerificationPlanAssociation in a given
|
|
1857
|
+
# RestoreVerificationPlan.
|
|
1858
|
+
#
|
|
1859
|
+
# @overload get_restore_verification_plan_association(request, options = nil)
|
|
1860
|
+
# Pass arguments to `get_restore_verification_plan_association` via a request object, either of type
|
|
1861
|
+
# {::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
|
|
1862
|
+
#
|
|
1863
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest, ::Hash]
|
|
1864
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1865
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1866
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1867
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1868
|
+
#
|
|
1869
|
+
# @overload get_restore_verification_plan_association(name: nil)
|
|
1870
|
+
# Pass arguments to `get_restore_verification_plan_association` via keyword arguments. Note that at
|
|
1871
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1872
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1873
|
+
#
|
|
1874
|
+
# @param name [::String]
|
|
1875
|
+
# Required. The resource name of the RestoreVerificationPlanAssociation to
|
|
1876
|
+
# retrieve.
|
|
1877
|
+
# Format:
|
|
1878
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
|
|
1879
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1880
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation]
|
|
1881
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1882
|
+
#
|
|
1883
|
+
# @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation]
|
|
1884
|
+
#
|
|
1885
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1886
|
+
#
|
|
1887
|
+
# @example Basic example
|
|
1888
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1889
|
+
#
|
|
1890
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1891
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1892
|
+
#
|
|
1893
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1894
|
+
# request = Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest.new
|
|
1895
|
+
#
|
|
1896
|
+
# # Call the get_restore_verification_plan_association method.
|
|
1897
|
+
# result = client.get_restore_verification_plan_association request
|
|
1898
|
+
#
|
|
1899
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation.
|
|
1900
|
+
# p result
|
|
1901
|
+
#
|
|
1902
|
+
def get_restore_verification_plan_association request, options = nil
|
|
1903
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1904
|
+
|
|
1905
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanAssociationRequest
|
|
1906
|
+
|
|
1907
|
+
# Converts hash and nil to an options object
|
|
1908
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
1909
|
+
|
|
1910
|
+
# Customize the options with defaults
|
|
1911
|
+
call_metadata = @config.rpcs.get_restore_verification_plan_association.metadata.to_h
|
|
1912
|
+
|
|
1913
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
1914
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
1915
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
1916
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
1917
|
+
transports_version_send: [:rest]
|
|
1918
|
+
|
|
1919
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
1920
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
1921
|
+
|
|
1922
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_verification_plan_association.timeout,
|
|
1923
|
+
metadata: call_metadata,
|
|
1924
|
+
retry_policy: @config.rpcs.get_restore_verification_plan_association.retry_policy
|
|
1925
|
+
|
|
1926
|
+
options.apply_defaults timeout: @config.timeout,
|
|
1927
|
+
metadata: @config.metadata,
|
|
1928
|
+
retry_policy: @config.retry_policy
|
|
1929
|
+
|
|
1930
|
+
@backup_dr_stub.get_restore_verification_plan_association request, options do |result, operation|
|
|
1931
|
+
yield result, operation if block_given?
|
|
1932
|
+
end
|
|
1933
|
+
rescue ::Gapic::Rest::Error => e
|
|
1934
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
1935
|
+
end
|
|
1936
|
+
|
|
1937
|
+
##
|
|
1938
|
+
# Lists RestoreVerificationPlanAssociations in a given
|
|
1939
|
+
# RestoreVerificationPlan.
|
|
1940
|
+
#
|
|
1941
|
+
# @overload list_restore_verification_plan_associations(request, options = nil)
|
|
1942
|
+
# Pass arguments to `list_restore_verification_plan_associations` via a request object, either of type
|
|
1943
|
+
# {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest} or an equivalent Hash.
|
|
1944
|
+
#
|
|
1945
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest, ::Hash]
|
|
1946
|
+
# A request object representing the call parameters. Required. To specify no
|
|
1947
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
1948
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
1949
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
1950
|
+
#
|
|
1951
|
+
# @overload list_restore_verification_plan_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
1952
|
+
# Pass arguments to `list_restore_verification_plan_associations` via keyword arguments. Note that at
|
|
1953
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
1954
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
1955
|
+
#
|
|
1956
|
+
# @param parent [::String]
|
|
1957
|
+
# Required. The parent RestoreVerificationPlan name.
|
|
1958
|
+
# Format:
|
|
1959
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
|
|
1960
|
+
# @param page_size [::Integer]
|
|
1961
|
+
# Optional. The maximum number of associations to return. The service may
|
|
1962
|
+
# return fewer than this value.
|
|
1963
|
+
# If unspecified, at most 500 associations will be returned.
|
|
1964
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
1965
|
+
# @param page_token [::String]
|
|
1966
|
+
# Optional. A page token, received from a previous
|
|
1967
|
+
# `ListRestoreVerificationPlanAssociations` call.
|
|
1968
|
+
# Provide this to retrieve the subsequent page.
|
|
1969
|
+
#
|
|
1970
|
+
# When paginating, all other parameters provided to
|
|
1971
|
+
# `ListRestoreVerificationPlanAssociations` must match the call that provided
|
|
1972
|
+
# the page token.
|
|
1973
|
+
# @param filter [::String]
|
|
1974
|
+
# Optional. Filtering results.
|
|
1975
|
+
# @param order_by [::String]
|
|
1976
|
+
# Optional. Hint for how to order the results.
|
|
1977
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
1978
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation>]
|
|
1979
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
1980
|
+
#
|
|
1981
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation>]
|
|
1982
|
+
#
|
|
1983
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1984
|
+
#
|
|
1985
|
+
# @example Basic example
|
|
1986
|
+
# require "google/cloud/backupdr/v1beta"
|
|
1987
|
+
#
|
|
1988
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1989
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
1990
|
+
#
|
|
1991
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1992
|
+
# request = Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest.new
|
|
1993
|
+
#
|
|
1994
|
+
# # Call the list_restore_verification_plan_associations method.
|
|
1995
|
+
# result = client.list_restore_verification_plan_associations request
|
|
1996
|
+
#
|
|
1997
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
1998
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
1999
|
+
# result.each do |item|
|
|
2000
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation.
|
|
2001
|
+
# p item
|
|
2002
|
+
# end
|
|
2003
|
+
#
|
|
2004
|
+
def list_restore_verification_plan_associations request, options = nil
|
|
2005
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2006
|
+
|
|
2007
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlanAssociationsRequest
|
|
2008
|
+
|
|
2009
|
+
# Converts hash and nil to an options object
|
|
2010
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2011
|
+
|
|
2012
|
+
# Customize the options with defaults
|
|
2013
|
+
call_metadata = @config.rpcs.list_restore_verification_plan_associations.metadata.to_h
|
|
2014
|
+
|
|
2015
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2016
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2017
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2018
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
2019
|
+
transports_version_send: [:rest]
|
|
2020
|
+
|
|
2021
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2022
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2023
|
+
|
|
2024
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_verification_plan_associations.timeout,
|
|
2025
|
+
metadata: call_metadata,
|
|
2026
|
+
retry_policy: @config.rpcs.list_restore_verification_plan_associations.retry_policy
|
|
2027
|
+
|
|
2028
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2029
|
+
metadata: @config.metadata,
|
|
2030
|
+
retry_policy: @config.retry_policy
|
|
2031
|
+
|
|
2032
|
+
@backup_dr_stub.list_restore_verification_plan_associations request, options do |result, operation|
|
|
2033
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_verification_plan_associations, "restore_verification_plan_associations", request, result, options
|
|
2034
|
+
yield result, operation if block_given?
|
|
2035
|
+
throw :response, result
|
|
2036
|
+
end
|
|
2037
|
+
rescue ::Gapic::Rest::Error => e
|
|
2038
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2039
|
+
end
|
|
2040
|
+
|
|
2041
|
+
##
|
|
2042
|
+
# Deletes a single RestoreVerificationPlanAssociation in a given
|
|
2043
|
+
# RestoreVerificationPlan.
|
|
2044
|
+
#
|
|
2045
|
+
# @overload delete_restore_verification_plan_association(request, options = nil)
|
|
2046
|
+
# Pass arguments to `delete_restore_verification_plan_association` via a request object, either of type
|
|
2047
|
+
# {::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
|
|
2048
|
+
#
|
|
2049
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest, ::Hash]
|
|
2050
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2051
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2052
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2053
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2054
|
+
#
|
|
2055
|
+
# @overload delete_restore_verification_plan_association(name: nil, request_id: nil)
|
|
2056
|
+
# Pass arguments to `delete_restore_verification_plan_association` via keyword arguments. Note that at
|
|
2057
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2058
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2059
|
+
#
|
|
2060
|
+
# @param name [::String]
|
|
2061
|
+
# Required. The resource name of the RestoreVerificationPlanAssociation to
|
|
2062
|
+
# delete.
|
|
2063
|
+
# Format:
|
|
2064
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
|
|
2065
|
+
# @param request_id [::String]
|
|
2066
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
2067
|
+
# request ID so that if you must retry your request, the server will know
|
|
2068
|
+
# that the server has already received the duplicate request and can avoid
|
|
2069
|
+
# responding with an error. The request ID must be a valid UUID with the
|
|
2070
|
+
# exception that zero UUID is not supported
|
|
2071
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
2072
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2073
|
+
# @yieldparam result [::Gapic::Operation]
|
|
2074
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
2075
|
+
#
|
|
2076
|
+
# @return [::Gapic::Operation]
|
|
2077
|
+
#
|
|
2078
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
2079
|
+
#
|
|
2080
|
+
# @example Basic example
|
|
2081
|
+
# require "google/cloud/backupdr/v1beta"
|
|
2082
|
+
#
|
|
2083
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
2084
|
+
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
2085
|
+
#
|
|
2086
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
2087
|
+
# request = Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest.new
|
|
2088
|
+
#
|
|
2089
|
+
# # Call the delete_restore_verification_plan_association method.
|
|
2090
|
+
# result = client.delete_restore_verification_plan_association request
|
|
2091
|
+
#
|
|
2092
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2093
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2094
|
+
# # Here is how to wait for a response.
|
|
2095
|
+
# result.wait_until_done! timeout: 60
|
|
2096
|
+
# if result.response?
|
|
2097
|
+
# p result.response
|
|
2098
|
+
# else
|
|
2099
|
+
# puts "No response received."
|
|
2100
|
+
# end
|
|
2101
|
+
#
|
|
2102
|
+
def delete_restore_verification_plan_association request, options = nil
|
|
2103
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
2104
|
+
|
|
2105
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanAssociationRequest
|
|
2106
|
+
|
|
2107
|
+
# Converts hash and nil to an options object
|
|
2108
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
2109
|
+
|
|
2110
|
+
# Customize the options with defaults
|
|
2111
|
+
call_metadata = @config.rpcs.delete_restore_verification_plan_association.metadata.to_h
|
|
2112
|
+
|
|
2113
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
2114
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
2115
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
2116
|
+
gapic_version: ::Google::Cloud::BackupDR::V1beta::VERSION,
|
|
2117
|
+
transports_version_send: [:rest]
|
|
2118
|
+
|
|
2119
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
2120
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
2121
|
+
|
|
2122
|
+
options.apply_defaults timeout: @config.rpcs.delete_restore_verification_plan_association.timeout,
|
|
2123
|
+
metadata: call_metadata,
|
|
2124
|
+
retry_policy: @config.rpcs.delete_restore_verification_plan_association.retry_policy
|
|
2125
|
+
|
|
2126
|
+
options.apply_defaults timeout: @config.timeout,
|
|
2127
|
+
metadata: @config.metadata,
|
|
2128
|
+
retry_policy: @config.retry_policy
|
|
2129
|
+
|
|
2130
|
+
@backup_dr_stub.delete_restore_verification_plan_association request, options do |result, operation|
|
|
2131
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
2132
|
+
yield result, operation if block_given?
|
|
2133
|
+
throw :response, result
|
|
2134
|
+
end
|
|
2135
|
+
rescue ::Gapic::Rest::Error => e
|
|
2136
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
2137
|
+
end
|
|
2138
|
+
|
|
2139
|
+
##
|
|
2140
|
+
# Triggers a new Restore Verification for the association in a given
|
|
2141
|
+
# RestoreVerificationPlan.
|
|
2142
|
+
#
|
|
2143
|
+
# @overload trigger_restore_verification(request, options = nil)
|
|
2144
|
+
# Pass arguments to `trigger_restore_verification` via a request object, either of type
|
|
2145
|
+
# {::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest} or an equivalent Hash.
|
|
2146
|
+
#
|
|
2147
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest, ::Hash]
|
|
2148
|
+
# A request object representing the call parameters. Required. To specify no
|
|
2149
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
2150
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
2151
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
2152
|
+
#
|
|
2153
|
+
# @overload trigger_restore_verification(name: nil, request_id: nil)
|
|
2154
|
+
# Pass arguments to `trigger_restore_verification` via keyword arguments. Note that at
|
|
2155
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
2156
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
2157
|
+
#
|
|
2158
|
+
# @param name [::String]
|
|
2159
|
+
# Required. The resource name of the RestoreVerificationPlanAssociation to
|
|
2160
|
+
# trigger.
|
|
2161
|
+
# Format:
|
|
2162
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
|
|
2163
|
+
# @param request_id [::String]
|
|
2164
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
2165
|
+
# request ID so that if you must retry your request, the server will know
|
|
2166
|
+
# that the server has already received the duplicate request and can avoid
|
|
2167
|
+
# responding with an error. The request ID must be a valid UUID with the
|
|
2168
|
+
# exception that zero UUID is not supported
|
|
2169
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
2170
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
2171
|
+
# @yieldparam result [::Gapic::Operation]
|
|
336
2172
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
337
2173
|
#
|
|
338
|
-
# @return [::Gapic::
|
|
2174
|
+
# @return [::Gapic::Operation]
|
|
339
2175
|
#
|
|
340
2176
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
341
2177
|
#
|
|
@@ -346,28 +2182,31 @@ module Google
|
|
|
346
2182
|
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
347
2183
|
#
|
|
348
2184
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
349
|
-
# request = Google::Cloud::BackupDR::V1beta::
|
|
2185
|
+
# request = Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest.new
|
|
350
2186
|
#
|
|
351
|
-
# # Call the
|
|
352
|
-
# result = client.
|
|
2187
|
+
# # Call the trigger_restore_verification method.
|
|
2188
|
+
# result = client.trigger_restore_verification request
|
|
353
2189
|
#
|
|
354
|
-
# # The returned object is of type Gapic::
|
|
355
|
-
# #
|
|
356
|
-
#
|
|
357
|
-
#
|
|
358
|
-
#
|
|
2190
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
2191
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
2192
|
+
# # Here is how to wait for a response.
|
|
2193
|
+
# result.wait_until_done! timeout: 60
|
|
2194
|
+
# if result.response?
|
|
2195
|
+
# p result.response
|
|
2196
|
+
# else
|
|
2197
|
+
# puts "No response received."
|
|
359
2198
|
# end
|
|
360
2199
|
#
|
|
361
|
-
def
|
|
2200
|
+
def trigger_restore_verification request, options = nil
|
|
362
2201
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
363
2202
|
|
|
364
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::
|
|
2203
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::TriggerRestoreVerificationRequest
|
|
365
2204
|
|
|
366
2205
|
# Converts hash and nil to an options object
|
|
367
2206
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
368
2207
|
|
|
369
2208
|
# Customize the options with defaults
|
|
370
|
-
call_metadata = @config.rpcs.
|
|
2209
|
+
call_metadata = @config.rpcs.trigger_restore_verification.metadata.to_h
|
|
371
2210
|
|
|
372
2211
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
373
2212
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -378,16 +2217,16 @@ module Google
|
|
|
378
2217
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
379
2218
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
380
2219
|
|
|
381
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2220
|
+
options.apply_defaults timeout: @config.rpcs.trigger_restore_verification.timeout,
|
|
382
2221
|
metadata: call_metadata,
|
|
383
|
-
retry_policy: @config.rpcs.
|
|
2222
|
+
retry_policy: @config.rpcs.trigger_restore_verification.retry_policy
|
|
384
2223
|
|
|
385
2224
|
options.apply_defaults timeout: @config.timeout,
|
|
386
2225
|
metadata: @config.metadata,
|
|
387
2226
|
retry_policy: @config.retry_policy
|
|
388
2227
|
|
|
389
|
-
@backup_dr_stub.
|
|
390
|
-
result = ::Gapic::
|
|
2228
|
+
@backup_dr_stub.trigger_restore_verification request, options do |result, operation|
|
|
2229
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
391
2230
|
yield result, operation if block_given?
|
|
392
2231
|
throw :response, result
|
|
393
2232
|
end
|
|
@@ -396,31 +2235,34 @@ module Google
|
|
|
396
2235
|
end
|
|
397
2236
|
|
|
398
2237
|
##
|
|
399
|
-
# Gets details of a single
|
|
2238
|
+
# Gets details of a single RestoreVerificationPlan. Returns the requested
|
|
2239
|
+
# RestoreVerificationPlan.
|
|
400
2240
|
#
|
|
401
|
-
# @overload
|
|
402
|
-
# Pass arguments to `
|
|
403
|
-
# {::Google::Cloud::BackupDR::V1beta::
|
|
2241
|
+
# @overload get_restore_verification_plan(request, options = nil)
|
|
2242
|
+
# Pass arguments to `get_restore_verification_plan` via a request object, either of type
|
|
2243
|
+
# {::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest} or an equivalent Hash.
|
|
404
2244
|
#
|
|
405
|
-
# @param request [::Google::Cloud::BackupDR::V1beta::
|
|
2245
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest, ::Hash]
|
|
406
2246
|
# A request object representing the call parameters. Required. To specify no
|
|
407
2247
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
408
2248
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
409
2249
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
410
2250
|
#
|
|
411
|
-
# @overload
|
|
412
|
-
# Pass arguments to `
|
|
2251
|
+
# @overload get_restore_verification_plan(name: nil)
|
|
2252
|
+
# Pass arguments to `get_restore_verification_plan` via keyword arguments. Note that at
|
|
413
2253
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
414
2254
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
415
2255
|
#
|
|
416
2256
|
# @param name [::String]
|
|
417
|
-
# Required.
|
|
418
|
-
#
|
|
2257
|
+
# Required. The resource name of the `RestoreVerificationPlan` to retrieve.
|
|
2258
|
+
#
|
|
2259
|
+
# Format:
|
|
2260
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}`
|
|
419
2261
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
420
|
-
# @yieldparam result [::Google::Cloud::BackupDR::V1beta::
|
|
2262
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan]
|
|
421
2263
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
422
2264
|
#
|
|
423
|
-
# @return [::Google::Cloud::BackupDR::V1beta::
|
|
2265
|
+
# @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan]
|
|
424
2266
|
#
|
|
425
2267
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
426
2268
|
#
|
|
@@ -431,24 +2273,24 @@ module Google
|
|
|
431
2273
|
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
432
2274
|
#
|
|
433
2275
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
434
|
-
# request = Google::Cloud::BackupDR::V1beta::
|
|
2276
|
+
# request = Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest.new
|
|
435
2277
|
#
|
|
436
|
-
# # Call the
|
|
437
|
-
# result = client.
|
|
2278
|
+
# # Call the get_restore_verification_plan method.
|
|
2279
|
+
# result = client.get_restore_verification_plan request
|
|
438
2280
|
#
|
|
439
|
-
# # The returned object is of type Google::Cloud::BackupDR::V1beta::
|
|
2281
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan.
|
|
440
2282
|
# p result
|
|
441
2283
|
#
|
|
442
|
-
def
|
|
2284
|
+
def get_restore_verification_plan request, options = nil
|
|
443
2285
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
444
2286
|
|
|
445
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::
|
|
2287
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::GetRestoreVerificationPlanRequest
|
|
446
2288
|
|
|
447
2289
|
# Converts hash and nil to an options object
|
|
448
2290
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
449
2291
|
|
|
450
2292
|
# Customize the options with defaults
|
|
451
|
-
call_metadata = @config.rpcs.
|
|
2293
|
+
call_metadata = @config.rpcs.get_restore_verification_plan.metadata.to_h
|
|
452
2294
|
|
|
453
2295
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
454
2296
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -459,15 +2301,15 @@ module Google
|
|
|
459
2301
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
460
2302
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
461
2303
|
|
|
462
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2304
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_verification_plan.timeout,
|
|
463
2305
|
metadata: call_metadata,
|
|
464
|
-
retry_policy: @config.rpcs.
|
|
2306
|
+
retry_policy: @config.rpcs.get_restore_verification_plan.retry_policy
|
|
465
2307
|
|
|
466
2308
|
options.apply_defaults timeout: @config.timeout,
|
|
467
2309
|
metadata: @config.metadata,
|
|
468
2310
|
retry_policy: @config.retry_policy
|
|
469
2311
|
|
|
470
|
-
@backup_dr_stub.
|
|
2312
|
+
@backup_dr_stub.get_restore_verification_plan request, options do |result, operation|
|
|
471
2313
|
yield result, operation if block_given?
|
|
472
2314
|
end
|
|
473
2315
|
rescue ::Gapic::Rest::Error => e
|
|
@@ -475,52 +2317,54 @@ module Google
|
|
|
475
2317
|
end
|
|
476
2318
|
|
|
477
2319
|
##
|
|
478
|
-
#
|
|
2320
|
+
# Lists RestoreVerificationPlans in a given project and location.
|
|
479
2321
|
#
|
|
480
|
-
# @overload
|
|
481
|
-
# Pass arguments to `
|
|
482
|
-
# {::Google::Cloud::BackupDR::V1beta::
|
|
2322
|
+
# @overload list_restore_verification_plans(request, options = nil)
|
|
2323
|
+
# Pass arguments to `list_restore_verification_plans` via a request object, either of type
|
|
2324
|
+
# {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest} or an equivalent Hash.
|
|
483
2325
|
#
|
|
484
|
-
# @param request [::Google::Cloud::BackupDR::V1beta::
|
|
2326
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest, ::Hash]
|
|
485
2327
|
# A request object representing the call parameters. Required. To specify no
|
|
486
2328
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
487
2329
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
488
2330
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
489
2331
|
#
|
|
490
|
-
# @overload
|
|
491
|
-
# Pass arguments to `
|
|
2332
|
+
# @overload list_restore_verification_plans(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
2333
|
+
# Pass arguments to `list_restore_verification_plans` via keyword arguments. Note that at
|
|
492
2334
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
493
2335
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
494
2336
|
#
|
|
495
2337
|
# @param parent [::String]
|
|
496
|
-
# Required. The
|
|
497
|
-
#
|
|
498
|
-
# locations
|
|
499
|
-
#
|
|
500
|
-
#
|
|
501
|
-
#
|
|
502
|
-
# @param
|
|
503
|
-
#
|
|
504
|
-
#
|
|
505
|
-
#
|
|
506
|
-
#
|
|
507
|
-
#
|
|
508
|
-
#
|
|
509
|
-
#
|
|
510
|
-
#
|
|
511
|
-
#
|
|
512
|
-
#
|
|
513
|
-
#
|
|
514
|
-
#
|
|
515
|
-
#
|
|
516
|
-
#
|
|
517
|
-
#
|
|
518
|
-
#
|
|
2338
|
+
# Required. The project and location for which to retrieve
|
|
2339
|
+
# `RestoreVerificationPlans` information. Format:
|
|
2340
|
+
# `projects/{project}/locations/{location}`. In Google Cloud Backup and DR,
|
|
2341
|
+
# locations map to Google Cloud regions, for example **us-central1**. To
|
|
2342
|
+
# retrieve restore verification plans for all locations, use
|
|
2343
|
+
# "-" for the `{location}` value.
|
|
2344
|
+
# @param page_size [::Integer]
|
|
2345
|
+
# Optional. The maximum number of `RestoreVerificationPlans` to return in a
|
|
2346
|
+
# single response. If not specified, a default value will be chosen by the
|
|
2347
|
+
# service. Note that the response may include a partial list and a caller
|
|
2348
|
+
# should only rely on the response's
|
|
2349
|
+
# {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansResponse#next_page_token next_page_token}
|
|
2350
|
+
# to determine if there are more instances left to be queried.
|
|
2351
|
+
# @param page_token [::String]
|
|
2352
|
+
# Optional. The value of
|
|
2353
|
+
# {::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansResponse#next_page_token next_page_token}
|
|
2354
|
+
# received from a previous `ListRestoreVerificationPlans` call.
|
|
2355
|
+
# Provide this to retrieve the subsequent page in a multi-page list of
|
|
2356
|
+
# results. When paginating, all other parameters provided to
|
|
2357
|
+
# `ListRestoreVerificationPlans` must match the call that provided the page
|
|
2358
|
+
# token.
|
|
2359
|
+
# @param filter [::String]
|
|
2360
|
+
# Optional. Field match expression used to filter the results.
|
|
2361
|
+
# @param order_by [::String]
|
|
2362
|
+
# Optional. Field by which to sort the results.
|
|
519
2363
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
520
|
-
# @yieldparam result [::Gapic::
|
|
2364
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan>]
|
|
521
2365
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
522
2366
|
#
|
|
523
|
-
# @return [::Gapic::
|
|
2367
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan>]
|
|
524
2368
|
#
|
|
525
2369
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
526
2370
|
#
|
|
@@ -531,31 +2375,28 @@ module Google
|
|
|
531
2375
|
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
532
2376
|
#
|
|
533
2377
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
534
|
-
# request = Google::Cloud::BackupDR::V1beta::
|
|
2378
|
+
# request = Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest.new
|
|
535
2379
|
#
|
|
536
|
-
# # Call the
|
|
537
|
-
# result = client.
|
|
2380
|
+
# # Call the list_restore_verification_plans method.
|
|
2381
|
+
# result = client.list_restore_verification_plans request
|
|
538
2382
|
#
|
|
539
|
-
# # The returned object is of type Gapic::
|
|
540
|
-
# #
|
|
541
|
-
#
|
|
542
|
-
#
|
|
543
|
-
#
|
|
544
|
-
# p result.response
|
|
545
|
-
# else
|
|
546
|
-
# puts "No response received."
|
|
2383
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
2384
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
2385
|
+
# result.each do |item|
|
|
2386
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlan.
|
|
2387
|
+
# p item
|
|
547
2388
|
# end
|
|
548
2389
|
#
|
|
549
|
-
def
|
|
2390
|
+
def list_restore_verification_plans request, options = nil
|
|
550
2391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
551
2392
|
|
|
552
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::
|
|
2393
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::ListRestoreVerificationPlansRequest
|
|
553
2394
|
|
|
554
2395
|
# Converts hash and nil to an options object
|
|
555
2396
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
556
2397
|
|
|
557
2398
|
# Customize the options with defaults
|
|
558
|
-
call_metadata = @config.rpcs.
|
|
2399
|
+
call_metadata = @config.rpcs.list_restore_verification_plans.metadata.to_h
|
|
559
2400
|
|
|
560
2401
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
561
2402
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -566,16 +2407,16 @@ module Google
|
|
|
566
2407
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
567
2408
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
568
2409
|
|
|
569
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2410
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_verification_plans.timeout,
|
|
570
2411
|
metadata: call_metadata,
|
|
571
|
-
retry_policy: @config.rpcs.
|
|
2412
|
+
retry_policy: @config.rpcs.list_restore_verification_plans.retry_policy
|
|
572
2413
|
|
|
573
2414
|
options.apply_defaults timeout: @config.timeout,
|
|
574
2415
|
metadata: @config.metadata,
|
|
575
2416
|
retry_policy: @config.retry_policy
|
|
576
2417
|
|
|
577
|
-
@backup_dr_stub.
|
|
578
|
-
result = ::Gapic::
|
|
2418
|
+
@backup_dr_stub.list_restore_verification_plans request, options do |result, operation|
|
|
2419
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_verification_plans, "restore_verification_plans", request, result, options
|
|
579
2420
|
yield result, operation if block_given?
|
|
580
2421
|
throw :response, result
|
|
581
2422
|
end
|
|
@@ -584,25 +2425,30 @@ module Google
|
|
|
584
2425
|
end
|
|
585
2426
|
|
|
586
2427
|
##
|
|
587
|
-
# Deletes a single
|
|
2428
|
+
# Deletes a single RestoreVerificationPlan. If the `force` flag is set to
|
|
2429
|
+
# `true`, any RestoreVerificationPlanAssociations linked to this
|
|
2430
|
+
# RestoreVerificationPlan will also be deleted.
|
|
588
2431
|
#
|
|
589
|
-
# @overload
|
|
590
|
-
# Pass arguments to `
|
|
591
|
-
# {::Google::Cloud::BackupDR::V1beta::
|
|
2432
|
+
# @overload delete_restore_verification_plan(request, options = nil)
|
|
2433
|
+
# Pass arguments to `delete_restore_verification_plan` via a request object, either of type
|
|
2434
|
+
# {::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest} or an equivalent Hash.
|
|
592
2435
|
#
|
|
593
|
-
# @param request [::Google::Cloud::BackupDR::V1beta::
|
|
2436
|
+
# @param request [::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest, ::Hash]
|
|
594
2437
|
# A request object representing the call parameters. Required. To specify no
|
|
595
2438
|
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
596
2439
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
597
2440
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
598
2441
|
#
|
|
599
|
-
# @overload
|
|
600
|
-
# Pass arguments to `
|
|
2442
|
+
# @overload delete_restore_verification_plan(name: nil, request_id: nil, force: nil)
|
|
2443
|
+
# Pass arguments to `delete_restore_verification_plan` via keyword arguments. Note that at
|
|
601
2444
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
602
2445
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
603
2446
|
#
|
|
604
2447
|
# @param name [::String]
|
|
605
|
-
# Required.
|
|
2448
|
+
# Required. The resource name of the `RestoreVerificationPlan` to delete.
|
|
2449
|
+
#
|
|
2450
|
+
# Format:
|
|
2451
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}`
|
|
606
2452
|
# @param request_id [::String]
|
|
607
2453
|
# Optional. An optional request ID to identify requests. Specify a unique
|
|
608
2454
|
# request ID so that if you must retry your request, the server will know to
|
|
@@ -617,6 +2463,9 @@ module Google
|
|
|
617
2463
|
#
|
|
618
2464
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
619
2465
|
# not supported (00000000-0000-0000-0000-000000000000).
|
|
2466
|
+
# @param force [::Boolean]
|
|
2467
|
+
# Optional. If set to true, any RestoreVerificationPlanAssociations linked to
|
|
2468
|
+
# this RestoreVerificationPlan will also be deleted.
|
|
620
2469
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
621
2470
|
# @yieldparam result [::Gapic::Operation]
|
|
622
2471
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -632,10 +2481,10 @@ module Google
|
|
|
632
2481
|
# client = Google::Cloud::BackupDR::V1beta::BackupDR::Rest::Client.new
|
|
633
2482
|
#
|
|
634
2483
|
# # Create a request. To set request fields, pass in keyword arguments.
|
|
635
|
-
# request = Google::Cloud::BackupDR::V1beta::
|
|
2484
|
+
# request = Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest.new
|
|
636
2485
|
#
|
|
637
|
-
# # Call the
|
|
638
|
-
# result = client.
|
|
2486
|
+
# # Call the delete_restore_verification_plan method.
|
|
2487
|
+
# result = client.delete_restore_verification_plan request
|
|
639
2488
|
#
|
|
640
2489
|
# # The returned object is of type Gapic::Operation. You can use it to
|
|
641
2490
|
# # check the status of an operation, cancel it, or wait for results.
|
|
@@ -647,16 +2496,16 @@ module Google
|
|
|
647
2496
|
# puts "No response received."
|
|
648
2497
|
# end
|
|
649
2498
|
#
|
|
650
|
-
def
|
|
2499
|
+
def delete_restore_verification_plan request, options = nil
|
|
651
2500
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
652
2501
|
|
|
653
|
-
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::
|
|
2502
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1beta::DeleteRestoreVerificationPlanRequest
|
|
654
2503
|
|
|
655
2504
|
# Converts hash and nil to an options object
|
|
656
2505
|
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
657
2506
|
|
|
658
2507
|
# Customize the options with defaults
|
|
659
|
-
call_metadata = @config.rpcs.
|
|
2508
|
+
call_metadata = @config.rpcs.delete_restore_verification_plan.metadata.to_h
|
|
660
2509
|
|
|
661
2510
|
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
662
2511
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
@@ -667,15 +2516,15 @@ module Google
|
|
|
667
2516
|
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
668
2517
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
669
2518
|
|
|
670
|
-
options.apply_defaults timeout: @config.rpcs.
|
|
2519
|
+
options.apply_defaults timeout: @config.rpcs.delete_restore_verification_plan.timeout,
|
|
671
2520
|
metadata: call_metadata,
|
|
672
|
-
retry_policy: @config.rpcs.
|
|
2521
|
+
retry_policy: @config.rpcs.delete_restore_verification_plan.retry_policy
|
|
673
2522
|
|
|
674
2523
|
options.apply_defaults timeout: @config.timeout,
|
|
675
2524
|
metadata: @config.metadata,
|
|
676
2525
|
retry_policy: @config.retry_policy
|
|
677
2526
|
|
|
678
|
-
@backup_dr_stub.
|
|
2527
|
+
@backup_dr_stub.delete_restore_verification_plan request, options do |result, operation|
|
|
679
2528
|
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
680
2529
|
yield result, operation if block_given?
|
|
681
2530
|
throw :response, result
|
|
@@ -4120,7 +5969,7 @@ module Google
|
|
|
4120
5969
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4121
5970
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4122
5971
|
#
|
|
4123
|
-
# @overload create_auto_protection_policy(parent: nil, auto_protection_policy_id: nil, auto_protection_policy: nil)
|
|
5972
|
+
# @overload create_auto_protection_policy(parent: nil, auto_protection_policy_id: nil, auto_protection_policy: nil, request_id: nil)
|
|
4124
5973
|
# Pass arguments to `create_auto_protection_policy` via keyword arguments. Note that at
|
|
4125
5974
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4126
5975
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -4131,8 +5980,19 @@ module Google
|
|
|
4131
5980
|
# @param auto_protection_policy_id [::String]
|
|
4132
5981
|
# Required. The ID to use for the policy.
|
|
4133
5982
|
# This will become the final component of the policy's resource name.
|
|
5983
|
+
#
|
|
5984
|
+
# This value must start with a lowercase letter followed by up to 62
|
|
5985
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
|
4134
5986
|
# @param auto_protection_policy [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy, ::Hash]
|
|
4135
5987
|
# Required. The AutoProtectionPolicy resource to create.
|
|
5988
|
+
# @param request_id [::String]
|
|
5989
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
5990
|
+
# request ID so that if you must retry your request, the server will know to
|
|
5991
|
+
# ignore the request if it has already been completed. The server will
|
|
5992
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
5993
|
+
#
|
|
5994
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
5995
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4136
5996
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4137
5997
|
# @yieldparam result [::Gapic::Operation]
|
|
4138
5998
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -4391,7 +6251,7 @@ module Google
|
|
|
4391
6251
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4392
6252
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4393
6253
|
#
|
|
4394
|
-
# @overload update_auto_protection_policy(auto_protection_policy: nil, update_mask: nil)
|
|
6254
|
+
# @overload update_auto_protection_policy(auto_protection_policy: nil, update_mask: nil, request_id: nil)
|
|
4395
6255
|
# Pass arguments to `update_auto_protection_policy` via keyword arguments. Note that at
|
|
4396
6256
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4397
6257
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -4399,11 +6259,19 @@ module Google
|
|
|
4399
6259
|
# @param auto_protection_policy [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicy, ::Hash]
|
|
4400
6260
|
# Required. The policy to update.
|
|
4401
6261
|
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
4402
|
-
#
|
|
6262
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
4403
6263
|
# AutoProtectionPolicy resource by the update.
|
|
4404
6264
|
# The fields specified in the update_mask are relative to the resource, not
|
|
4405
6265
|
# the full request. A field will be overwritten if it is in the mask. If the
|
|
4406
6266
|
# user does not provide a mask then all fields will be overwritten.
|
|
6267
|
+
# @param request_id [::String]
|
|
6268
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6269
|
+
# request ID so that if you must retry your request, the server will know to
|
|
6270
|
+
# ignore the request if it has already been completed. The server will
|
|
6271
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
6272
|
+
#
|
|
6273
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
6274
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4407
6275
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4408
6276
|
# @yieldparam result [::Gapic::Operation]
|
|
4409
6277
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -4484,7 +6352,7 @@ module Google
|
|
|
4484
6352
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4485
6353
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4486
6354
|
#
|
|
4487
|
-
# @overload delete_auto_protection_policy(name: nil, etag: nil)
|
|
6355
|
+
# @overload delete_auto_protection_policy(name: nil, etag: nil, request_id: nil)
|
|
4488
6356
|
# Pass arguments to `delete_auto_protection_policy` via keyword arguments. Note that at
|
|
4489
6357
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4490
6358
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -4494,9 +6362,17 @@ module Google
|
|
|
4494
6362
|
# Format:
|
|
4495
6363
|
# projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}
|
|
4496
6364
|
# @param etag [::String]
|
|
4497
|
-
# The current etag of the AutoProtectionPolicy.
|
|
6365
|
+
# Optional. The current etag of the AutoProtectionPolicy.
|
|
4498
6366
|
# If an etag is provided and does not match the current etag of the
|
|
4499
6367
|
# connection, the request will be rejected with an ABORTED error.
|
|
6368
|
+
# @param request_id [::String]
|
|
6369
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6370
|
+
# request ID so that if you must retry your request, the server will know to
|
|
6371
|
+
# ignore the request if it has already been completed. The server will
|
|
6372
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
6373
|
+
#
|
|
6374
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
6375
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4500
6376
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4501
6377
|
# @yieldparam result [::Gapic::Operation]
|
|
4502
6378
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -4578,7 +6454,7 @@ module Google
|
|
|
4578
6454
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4579
6455
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4580
6456
|
#
|
|
4581
|
-
# @overload create_auto_protection_policy_binding(parent: nil, auto_protection_policy_binding_id: nil, auto_protection_policy_binding: nil)
|
|
6457
|
+
# @overload create_auto_protection_policy_binding(parent: nil, auto_protection_policy_binding_id: nil, auto_protection_policy_binding: nil, request_id: nil)
|
|
4582
6458
|
# Pass arguments to `create_auto_protection_policy_binding` via keyword arguments. Note that at
|
|
4583
6459
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4584
6460
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -4590,8 +6466,19 @@ module Google
|
|
|
4590
6466
|
# @param auto_protection_policy_binding_id [::String]
|
|
4591
6467
|
# Required. The ID to use for the binding.
|
|
4592
6468
|
# This will become the final component of the binding's resource name.
|
|
6469
|
+
#
|
|
6470
|
+
# This value must start with a lowercase letter followed by up to 62
|
|
6471
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
|
4593
6472
|
# @param auto_protection_policy_binding [::Google::Cloud::BackupDR::V1beta::AutoProtectionPolicyBinding, ::Hash]
|
|
4594
6473
|
# Required. The AutoProtectionPolicyBinding resource to create.
|
|
6474
|
+
# @param request_id [::String]
|
|
6475
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6476
|
+
# request ID so that if you must retry your request, the server will know to
|
|
6477
|
+
# ignore the request if it has already been completed. The server will
|
|
6478
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
6479
|
+
#
|
|
6480
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
6481
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4595
6482
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4596
6483
|
# @yieldparam result [::Gapic::Operation]
|
|
4597
6484
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -4947,7 +6834,7 @@ module Google
|
|
|
4947
6834
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4948
6835
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4949
6836
|
#
|
|
4950
|
-
# @overload initiate_delete_auto_protection_policy_binding(name: nil)
|
|
6837
|
+
# @overload initiate_delete_auto_protection_policy_binding(name: nil, etag: nil, request_id: nil)
|
|
4951
6838
|
# Pass arguments to `initiate_delete_auto_protection_policy_binding` via keyword arguments. Note that at
|
|
4952
6839
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4953
6840
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -4956,6 +6843,18 @@ module Google
|
|
|
4956
6843
|
# Required. The name of the binding to delete.
|
|
4957
6844
|
# Format:
|
|
4958
6845
|
# projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}/bindings/\\{binding}
|
|
6846
|
+
# @param etag [::String]
|
|
6847
|
+
# Optional. The current etag of the AutoProtectionPolicyBinding.
|
|
6848
|
+
# If an etag is provided and does not match the current etag of the
|
|
6849
|
+
# binding, deletion will be blocked and an ABORTED error will be returned.
|
|
6850
|
+
# @param request_id [::String]
|
|
6851
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6852
|
+
# request ID so that if you must retry your request, the server will know to
|
|
6853
|
+
# ignore the request if it has already been completed. The server will
|
|
6854
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
6855
|
+
#
|
|
6856
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
6857
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4959
6858
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4960
6859
|
# @yieldparam result [::Gapic::Operation]
|
|
4961
6860
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -5385,6 +7284,96 @@ module Google
|
|
|
5385
7284
|
#
|
|
5386
7285
|
attr_reader :delete_management_server
|
|
5387
7286
|
##
|
|
7287
|
+
# RPC-specific configuration for `create_restore_template`
|
|
7288
|
+
# @return [::Gapic::Config::Method]
|
|
7289
|
+
#
|
|
7290
|
+
attr_reader :create_restore_template
|
|
7291
|
+
##
|
|
7292
|
+
# RPC-specific configuration for `get_restore_template`
|
|
7293
|
+
# @return [::Gapic::Config::Method]
|
|
7294
|
+
#
|
|
7295
|
+
attr_reader :get_restore_template
|
|
7296
|
+
##
|
|
7297
|
+
# RPC-specific configuration for `list_restore_templates`
|
|
7298
|
+
# @return [::Gapic::Config::Method]
|
|
7299
|
+
#
|
|
7300
|
+
attr_reader :list_restore_templates
|
|
7301
|
+
##
|
|
7302
|
+
# RPC-specific configuration for `update_restore_template`
|
|
7303
|
+
# @return [::Gapic::Config::Method]
|
|
7304
|
+
#
|
|
7305
|
+
attr_reader :update_restore_template
|
|
7306
|
+
##
|
|
7307
|
+
# RPC-specific configuration for `delete_restore_template`
|
|
7308
|
+
# @return [::Gapic::Config::Method]
|
|
7309
|
+
#
|
|
7310
|
+
attr_reader :delete_restore_template
|
|
7311
|
+
##
|
|
7312
|
+
# RPC-specific configuration for `run_restore_template`
|
|
7313
|
+
# @return [::Gapic::Config::Method]
|
|
7314
|
+
#
|
|
7315
|
+
attr_reader :run_restore_template
|
|
7316
|
+
##
|
|
7317
|
+
# RPC-specific configuration for `get_restore_template_execution`
|
|
7318
|
+
# @return [::Gapic::Config::Method]
|
|
7319
|
+
#
|
|
7320
|
+
attr_reader :get_restore_template_execution
|
|
7321
|
+
##
|
|
7322
|
+
# RPC-specific configuration for `list_restore_template_executions`
|
|
7323
|
+
# @return [::Gapic::Config::Method]
|
|
7324
|
+
#
|
|
7325
|
+
attr_reader :list_restore_template_executions
|
|
7326
|
+
##
|
|
7327
|
+
# RPC-specific configuration for `trigger_restore_cleanup`
|
|
7328
|
+
# @return [::Gapic::Config::Method]
|
|
7329
|
+
#
|
|
7330
|
+
attr_reader :trigger_restore_cleanup
|
|
7331
|
+
##
|
|
7332
|
+
# RPC-specific configuration for `create_restore_verification_plan`
|
|
7333
|
+
# @return [::Gapic::Config::Method]
|
|
7334
|
+
#
|
|
7335
|
+
attr_reader :create_restore_verification_plan
|
|
7336
|
+
##
|
|
7337
|
+
# RPC-specific configuration for `create_restore_verification_plan_association`
|
|
7338
|
+
# @return [::Gapic::Config::Method]
|
|
7339
|
+
#
|
|
7340
|
+
attr_reader :create_restore_verification_plan_association
|
|
7341
|
+
##
|
|
7342
|
+
# RPC-specific configuration for `get_restore_verification_plan_association`
|
|
7343
|
+
# @return [::Gapic::Config::Method]
|
|
7344
|
+
#
|
|
7345
|
+
attr_reader :get_restore_verification_plan_association
|
|
7346
|
+
##
|
|
7347
|
+
# RPC-specific configuration for `list_restore_verification_plan_associations`
|
|
7348
|
+
# @return [::Gapic::Config::Method]
|
|
7349
|
+
#
|
|
7350
|
+
attr_reader :list_restore_verification_plan_associations
|
|
7351
|
+
##
|
|
7352
|
+
# RPC-specific configuration for `delete_restore_verification_plan_association`
|
|
7353
|
+
# @return [::Gapic::Config::Method]
|
|
7354
|
+
#
|
|
7355
|
+
attr_reader :delete_restore_verification_plan_association
|
|
7356
|
+
##
|
|
7357
|
+
# RPC-specific configuration for `trigger_restore_verification`
|
|
7358
|
+
# @return [::Gapic::Config::Method]
|
|
7359
|
+
#
|
|
7360
|
+
attr_reader :trigger_restore_verification
|
|
7361
|
+
##
|
|
7362
|
+
# RPC-specific configuration for `get_restore_verification_plan`
|
|
7363
|
+
# @return [::Gapic::Config::Method]
|
|
7364
|
+
#
|
|
7365
|
+
attr_reader :get_restore_verification_plan
|
|
7366
|
+
##
|
|
7367
|
+
# RPC-specific configuration for `list_restore_verification_plans`
|
|
7368
|
+
# @return [::Gapic::Config::Method]
|
|
7369
|
+
#
|
|
7370
|
+
attr_reader :list_restore_verification_plans
|
|
7371
|
+
##
|
|
7372
|
+
# RPC-specific configuration for `delete_restore_verification_plan`
|
|
7373
|
+
# @return [::Gapic::Config::Method]
|
|
7374
|
+
#
|
|
7375
|
+
attr_reader :delete_restore_verification_plan
|
|
7376
|
+
##
|
|
5388
7377
|
# RPC-specific configuration for `create_backup_vault`
|
|
5389
7378
|
# @return [::Gapic::Config::Method]
|
|
5390
7379
|
#
|
|
@@ -5620,6 +7609,42 @@ module Google
|
|
|
5620
7609
|
@create_management_server = ::Gapic::Config::Method.new create_management_server_config
|
|
5621
7610
|
delete_management_server_config = parent_rpcs.delete_management_server if parent_rpcs.respond_to? :delete_management_server
|
|
5622
7611
|
@delete_management_server = ::Gapic::Config::Method.new delete_management_server_config
|
|
7612
|
+
create_restore_template_config = parent_rpcs.create_restore_template if parent_rpcs.respond_to? :create_restore_template
|
|
7613
|
+
@create_restore_template = ::Gapic::Config::Method.new create_restore_template_config
|
|
7614
|
+
get_restore_template_config = parent_rpcs.get_restore_template if parent_rpcs.respond_to? :get_restore_template
|
|
7615
|
+
@get_restore_template = ::Gapic::Config::Method.new get_restore_template_config
|
|
7616
|
+
list_restore_templates_config = parent_rpcs.list_restore_templates if parent_rpcs.respond_to? :list_restore_templates
|
|
7617
|
+
@list_restore_templates = ::Gapic::Config::Method.new list_restore_templates_config
|
|
7618
|
+
update_restore_template_config = parent_rpcs.update_restore_template if parent_rpcs.respond_to? :update_restore_template
|
|
7619
|
+
@update_restore_template = ::Gapic::Config::Method.new update_restore_template_config
|
|
7620
|
+
delete_restore_template_config = parent_rpcs.delete_restore_template if parent_rpcs.respond_to? :delete_restore_template
|
|
7621
|
+
@delete_restore_template = ::Gapic::Config::Method.new delete_restore_template_config
|
|
7622
|
+
run_restore_template_config = parent_rpcs.run_restore_template if parent_rpcs.respond_to? :run_restore_template
|
|
7623
|
+
@run_restore_template = ::Gapic::Config::Method.new run_restore_template_config
|
|
7624
|
+
get_restore_template_execution_config = parent_rpcs.get_restore_template_execution if parent_rpcs.respond_to? :get_restore_template_execution
|
|
7625
|
+
@get_restore_template_execution = ::Gapic::Config::Method.new get_restore_template_execution_config
|
|
7626
|
+
list_restore_template_executions_config = parent_rpcs.list_restore_template_executions if parent_rpcs.respond_to? :list_restore_template_executions
|
|
7627
|
+
@list_restore_template_executions = ::Gapic::Config::Method.new list_restore_template_executions_config
|
|
7628
|
+
trigger_restore_cleanup_config = parent_rpcs.trigger_restore_cleanup if parent_rpcs.respond_to? :trigger_restore_cleanup
|
|
7629
|
+
@trigger_restore_cleanup = ::Gapic::Config::Method.new trigger_restore_cleanup_config
|
|
7630
|
+
create_restore_verification_plan_config = parent_rpcs.create_restore_verification_plan if parent_rpcs.respond_to? :create_restore_verification_plan
|
|
7631
|
+
@create_restore_verification_plan = ::Gapic::Config::Method.new create_restore_verification_plan_config
|
|
7632
|
+
create_restore_verification_plan_association_config = parent_rpcs.create_restore_verification_plan_association if parent_rpcs.respond_to? :create_restore_verification_plan_association
|
|
7633
|
+
@create_restore_verification_plan_association = ::Gapic::Config::Method.new create_restore_verification_plan_association_config
|
|
7634
|
+
get_restore_verification_plan_association_config = parent_rpcs.get_restore_verification_plan_association if parent_rpcs.respond_to? :get_restore_verification_plan_association
|
|
7635
|
+
@get_restore_verification_plan_association = ::Gapic::Config::Method.new get_restore_verification_plan_association_config
|
|
7636
|
+
list_restore_verification_plan_associations_config = parent_rpcs.list_restore_verification_plan_associations if parent_rpcs.respond_to? :list_restore_verification_plan_associations
|
|
7637
|
+
@list_restore_verification_plan_associations = ::Gapic::Config::Method.new list_restore_verification_plan_associations_config
|
|
7638
|
+
delete_restore_verification_plan_association_config = parent_rpcs.delete_restore_verification_plan_association if parent_rpcs.respond_to? :delete_restore_verification_plan_association
|
|
7639
|
+
@delete_restore_verification_plan_association = ::Gapic::Config::Method.new delete_restore_verification_plan_association_config
|
|
7640
|
+
trigger_restore_verification_config = parent_rpcs.trigger_restore_verification if parent_rpcs.respond_to? :trigger_restore_verification
|
|
7641
|
+
@trigger_restore_verification = ::Gapic::Config::Method.new trigger_restore_verification_config
|
|
7642
|
+
get_restore_verification_plan_config = parent_rpcs.get_restore_verification_plan if parent_rpcs.respond_to? :get_restore_verification_plan
|
|
7643
|
+
@get_restore_verification_plan = ::Gapic::Config::Method.new get_restore_verification_plan_config
|
|
7644
|
+
list_restore_verification_plans_config = parent_rpcs.list_restore_verification_plans if parent_rpcs.respond_to? :list_restore_verification_plans
|
|
7645
|
+
@list_restore_verification_plans = ::Gapic::Config::Method.new list_restore_verification_plans_config
|
|
7646
|
+
delete_restore_verification_plan_config = parent_rpcs.delete_restore_verification_plan if parent_rpcs.respond_to? :delete_restore_verification_plan
|
|
7647
|
+
@delete_restore_verification_plan = ::Gapic::Config::Method.new delete_restore_verification_plan_config
|
|
5623
7648
|
create_backup_vault_config = parent_rpcs.create_backup_vault if parent_rpcs.respond_to? :create_backup_vault
|
|
5624
7649
|
@create_backup_vault = ::Gapic::Config::Method.new create_backup_vault_config
|
|
5625
7650
|
list_backup_vaults_config = parent_rpcs.list_backup_vaults if parent_rpcs.respond_to? :list_backup_vaults
|