google-cloud-backupdr-v1 1.12.0 → 1.13.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/v1/appliedautoprotectionpolicy_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1/autoprotectionpolicy_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1/autoprotectionpolicybinding_pb.rb +33 -0
- data/lib/google/cloud/backupdr/v1/backupdr/client.rb +3484 -150
- data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +139 -0
- data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +3268 -137
- data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +1989 -209
- data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +9 -1
- data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +69 -0
- data/lib/google/cloud/backupdr/v1/backupplanassociation_pb.rb +1 -1
- data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +3 -1
- data/lib/google/cloud/backupdr/v1/bindingmatchingresource_pb.rb +30 -0
- data/lib/google/cloud/backupdr/v1/restore_template_common_pb.rb +28 -0
- data/lib/google/cloud/backupdr/v1/restore_template_execution_pb.rb +45 -0
- data/lib/google/cloud/backupdr/v1/restore_template_pb.rb +40 -0
- data/lib/google/cloud/backupdr/v1/restore_verification_plan_association_pb.rb +36 -0
- data/lib/google/cloud/backupdr/v1/restore_verification_plan_pb.rb +34 -0
- data/lib/google/cloud/backupdr/v1/version.rb +1 -1
- data/proto_docs/google/cloud/backupdr/v1/appliedautoprotectionpolicy.rb +123 -0
- data/proto_docs/google/cloud/backupdr/v1/autoprotectionpolicy.rb +307 -0
- data/proto_docs/google/cloud/backupdr/v1/autoprotectionpolicybinding.rb +207 -0
- data/proto_docs/google/cloud/backupdr/v1/backupplanassociation.rb +13 -1
- data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +37 -0
- data/proto_docs/google/cloud/backupdr/v1/bindingmatchingresource.rb +149 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template.rb +292 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template_common.rb +80 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_template_execution.rb +399 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_verification_plan.rb +270 -0
- data/proto_docs/google/cloud/backupdr/v1/restore_verification_plan_association.rb +264 -0
- data/proto_docs/google/protobuf/struct.rb +108 -0
- metadata +20 -1
|
@@ -146,6 +146,106 @@ module Google
|
|
|
146
146
|
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
+
default_config.rpcs.create_auto_protection_policy.timeout = 60.0
|
|
150
|
+
|
|
151
|
+
default_config.rpcs.list_auto_protection_policies.timeout = 60.0
|
|
152
|
+
default_config.rpcs.list_auto_protection_policies.retry_policy = {
|
|
153
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
default_config.rpcs.get_auto_protection_policy.timeout = 60.0
|
|
157
|
+
default_config.rpcs.get_auto_protection_policy.retry_policy = {
|
|
158
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
default_config.rpcs.update_auto_protection_policy.timeout = 60.0
|
|
162
|
+
|
|
163
|
+
default_config.rpcs.delete_auto_protection_policy.timeout = 60.0
|
|
164
|
+
|
|
165
|
+
default_config.rpcs.create_auto_protection_policy_binding.timeout = 60.0
|
|
166
|
+
|
|
167
|
+
default_config.rpcs.get_auto_protection_policy_binding.timeout = 60.0
|
|
168
|
+
default_config.rpcs.get_auto_protection_policy_binding.retry_policy = {
|
|
169
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
default_config.rpcs.list_auto_protection_policy_bindings.timeout = 60.0
|
|
173
|
+
default_config.rpcs.list_auto_protection_policy_bindings.retry_policy = {
|
|
174
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
default_config.rpcs.list_applied_auto_protection_policies.timeout = 60.0
|
|
178
|
+
default_config.rpcs.list_applied_auto_protection_policies.retry_policy = {
|
|
179
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
default_config.rpcs.initiate_delete_auto_protection_policy_binding.timeout = 60.0
|
|
183
|
+
|
|
184
|
+
default_config.rpcs.list_binding_matching_resources.timeout = 60.0
|
|
185
|
+
default_config.rpcs.list_binding_matching_resources.retry_policy = {
|
|
186
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
default_config.rpcs.create_restore_template.timeout = 60.0
|
|
190
|
+
|
|
191
|
+
default_config.rpcs.get_restore_template.timeout = 60.0
|
|
192
|
+
default_config.rpcs.get_restore_template.retry_policy = {
|
|
193
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
default_config.rpcs.list_restore_templates.timeout = 60.0
|
|
197
|
+
default_config.rpcs.list_restore_templates.retry_policy = {
|
|
198
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
default_config.rpcs.update_restore_template.timeout = 60.0
|
|
202
|
+
|
|
203
|
+
default_config.rpcs.delete_restore_template.timeout = 60.0
|
|
204
|
+
|
|
205
|
+
default_config.rpcs.run_restore_template.timeout = 60.0
|
|
206
|
+
|
|
207
|
+
default_config.rpcs.get_restore_template_execution.timeout = 60.0
|
|
208
|
+
default_config.rpcs.get_restore_template_execution.retry_policy = {
|
|
209
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
default_config.rpcs.list_restore_template_executions.timeout = 60.0
|
|
213
|
+
default_config.rpcs.list_restore_template_executions.retry_policy = {
|
|
214
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
default_config.rpcs.trigger_restore_cleanup.timeout = 60.0
|
|
218
|
+
|
|
219
|
+
default_config.rpcs.create_restore_verification_plan.timeout = 60.0
|
|
220
|
+
|
|
221
|
+
default_config.rpcs.create_restore_verification_plan_association.timeout = 60.0
|
|
222
|
+
|
|
223
|
+
default_config.rpcs.get_restore_verification_plan_association.timeout = 60.0
|
|
224
|
+
default_config.rpcs.get_restore_verification_plan_association.retry_policy = {
|
|
225
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
default_config.rpcs.list_restore_verification_plan_associations.timeout = 60.0
|
|
229
|
+
default_config.rpcs.list_restore_verification_plan_associations.retry_policy = {
|
|
230
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
default_config.rpcs.delete_restore_verification_plan_association.timeout = 60.0
|
|
234
|
+
|
|
235
|
+
default_config.rpcs.trigger_restore_verification.timeout = 60.0
|
|
236
|
+
|
|
237
|
+
default_config.rpcs.get_restore_verification_plan.timeout = 60.0
|
|
238
|
+
default_config.rpcs.get_restore_verification_plan.retry_policy = {
|
|
239
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
default_config.rpcs.list_restore_verification_plans.timeout = 60.0
|
|
243
|
+
default_config.rpcs.list_restore_verification_plans.retry_policy = {
|
|
244
|
+
initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
default_config.rpcs.delete_restore_verification_plan.timeout = 60.0
|
|
248
|
+
|
|
149
249
|
default_config
|
|
150
250
|
end
|
|
151
251
|
yield @configure if block_given?
|
|
@@ -3447,7 +3547,7 @@ module Google
|
|
|
3447
3547
|
# @param options [::Gapic::CallOptions, ::Hash]
|
|
3448
3548
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
3449
3549
|
#
|
|
3450
|
-
# @overload delete_backup_plan_association(name: nil, request_id: nil)
|
|
3550
|
+
# @overload delete_backup_plan_association(name: nil, request_id: nil, auto_protection_policy_binding: nil)
|
|
3451
3551
|
# Pass arguments to `delete_backup_plan_association` via keyword arguments. Note that at
|
|
3452
3552
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
3453
3553
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
@@ -3469,6 +3569,12 @@ module Google
|
|
|
3469
3569
|
#
|
|
3470
3570
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
3471
3571
|
# not supported (00000000-0000-0000-0000-000000000000).
|
|
3572
|
+
# @param auto_protection_policy_binding [::String]
|
|
3573
|
+
# Optional. This field is exclusively used by Backup and DR's auto-protection
|
|
3574
|
+
# feature. The resource name of the `AutoProtectionPolicyBinding` that
|
|
3575
|
+
# triggered the deletion of this association.
|
|
3576
|
+
# Format:
|
|
3577
|
+
# `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
|
|
3472
3578
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
3473
3579
|
# @yieldparam result [::Gapic::Operation]
|
|
3474
3580
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
@@ -4065,158 +4171,2980 @@ module Google
|
|
|
4065
4171
|
end
|
|
4066
4172
|
|
|
4067
4173
|
##
|
|
4068
|
-
#
|
|
4174
|
+
# Creates a new AutoProtectionPolicy in a given project and location.
|
|
4069
4175
|
#
|
|
4070
|
-
#
|
|
4071
|
-
#
|
|
4072
|
-
#
|
|
4073
|
-
# applied individually to specific RPCs. See
|
|
4074
|
-
# {::Google::Cloud::BackupDR::V1::BackupDR::Rest::Client::Configuration::Rpcs}
|
|
4075
|
-
# for a list of RPCs that can be configured independently.
|
|
4176
|
+
# @overload create_auto_protection_policy(request, options = nil)
|
|
4177
|
+
# Pass arguments to `create_auto_protection_policy` via a request object, either of type
|
|
4178
|
+
# {::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyRequest} or an equivalent Hash.
|
|
4076
4179
|
#
|
|
4077
|
-
#
|
|
4078
|
-
#
|
|
4180
|
+
# @param request [::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyRequest, ::Hash]
|
|
4181
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4182
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4183
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4184
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4079
4185
|
#
|
|
4080
|
-
# @
|
|
4186
|
+
# @overload create_auto_protection_policy(parent: nil, auto_protection_policy_id: nil, auto_protection_policy: nil, request_id: nil)
|
|
4187
|
+
# Pass arguments to `create_auto_protection_policy` via keyword arguments. Note that at
|
|
4188
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4189
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4081
4190
|
#
|
|
4082
|
-
#
|
|
4083
|
-
#
|
|
4084
|
-
#
|
|
4085
|
-
#
|
|
4086
|
-
#
|
|
4087
|
-
#
|
|
4088
|
-
#
|
|
4191
|
+
# @param parent [::String]
|
|
4192
|
+
# Required. The parent resource where this policy will be created.
|
|
4193
|
+
# Format: projects/\\{project}/locations/\\{location}
|
|
4194
|
+
# @param auto_protection_policy_id [::String]
|
|
4195
|
+
# Required. The ID to use for the policy.
|
|
4196
|
+
# This will become the final component of the policy's resource name.
|
|
4197
|
+
#
|
|
4198
|
+
# This value must start with a lowercase letter followed by up to 62
|
|
4199
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
|
4200
|
+
# @param auto_protection_policy [::Google::Cloud::BackupDR::V1::AutoProtectionPolicy, ::Hash]
|
|
4201
|
+
# Required. The AutoProtectionPolicy resource to create.
|
|
4202
|
+
# @param request_id [::String]
|
|
4203
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
4204
|
+
# request ID so that if you must retry your request, the server will know to
|
|
4205
|
+
# ignore the request if it has already been completed. The server will
|
|
4206
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
4089
4207
|
#
|
|
4090
|
-
#
|
|
4091
|
-
#
|
|
4092
|
-
#
|
|
4093
|
-
#
|
|
4094
|
-
#
|
|
4208
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
4209
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4210
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4211
|
+
# @yieldparam result [::Gapic::Operation]
|
|
4212
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4095
4213
|
#
|
|
4096
|
-
#
|
|
4097
|
-
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
4098
|
-
# nil, indicating to use the default endpoint in the current universe domain.
|
|
4099
|
-
# @return [::String,nil]
|
|
4100
|
-
# @!attribute [rw] credentials
|
|
4101
|
-
# Credentials to send with calls. You may provide any of the following types:
|
|
4102
|
-
# * (`String`) The path to a service account key file in JSON format
|
|
4103
|
-
# * (`Hash`) A service account key as a Hash
|
|
4104
|
-
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
4105
|
-
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
4106
|
-
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
4107
|
-
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
4108
|
-
# * (`nil`) indicating no credentials
|
|
4214
|
+
# @return [::Gapic::Operation]
|
|
4109
4215
|
#
|
|
4110
|
-
#
|
|
4111
|
-
# external source for authentication to Google Cloud, you must validate it before
|
|
4112
|
-
# providing it to a Google API client library. Providing an unvalidated credential
|
|
4113
|
-
# configuration to Google APIs can compromise the security of your systems and data.
|
|
4114
|
-
# For more information, refer to [Validate credential configurations from external
|
|
4115
|
-
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
4116
|
-
# @return [::Object]
|
|
4117
|
-
# @!attribute [rw] scope
|
|
4118
|
-
# The OAuth scopes
|
|
4119
|
-
# @return [::Array<::String>]
|
|
4120
|
-
# @!attribute [rw] lib_name
|
|
4121
|
-
# The library name as recorded in instrumentation and logging
|
|
4122
|
-
# @return [::String]
|
|
4123
|
-
# @!attribute [rw] lib_version
|
|
4124
|
-
# The library version as recorded in instrumentation and logging
|
|
4125
|
-
# @return [::String]
|
|
4126
|
-
# @!attribute [rw] timeout
|
|
4127
|
-
# The call timeout in seconds.
|
|
4128
|
-
# @return [::Numeric]
|
|
4129
|
-
# @!attribute [rw] metadata
|
|
4130
|
-
# Additional headers to be sent with the call.
|
|
4131
|
-
# @return [::Hash{::Symbol=>::String}]
|
|
4132
|
-
# @!attribute [rw] retry_policy
|
|
4133
|
-
# The retry policy. The value is a hash with the following keys:
|
|
4134
|
-
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
4135
|
-
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
4136
|
-
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
4137
|
-
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
4138
|
-
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
4139
|
-
# trigger a retry.
|
|
4140
|
-
# @return [::Hash]
|
|
4141
|
-
# @!attribute [rw] quota_project
|
|
4142
|
-
# A separate project against which to charge quota.
|
|
4143
|
-
# @return [::String]
|
|
4144
|
-
# @!attribute [rw] universe_domain
|
|
4145
|
-
# The universe domain within which to make requests. This determines the
|
|
4146
|
-
# default endpoint URL. The default value of nil uses the environment
|
|
4147
|
-
# universe (usually the default "googleapis.com" universe).
|
|
4148
|
-
# @return [::String,nil]
|
|
4149
|
-
# @!attribute [rw] logger
|
|
4150
|
-
# A custom logger to use for request/response debug logging, or the value
|
|
4151
|
-
# `:default` (the default) to construct a default logger, or `nil` to
|
|
4152
|
-
# explicitly disable logging.
|
|
4153
|
-
# @return [::Logger,:default,nil]
|
|
4216
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4154
4217
|
#
|
|
4155
|
-
|
|
4156
|
-
|
|
4218
|
+
# @example Basic example
|
|
4219
|
+
# require "google/cloud/backupdr/v1"
|
|
4220
|
+
#
|
|
4221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4222
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4223
|
+
#
|
|
4224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4225
|
+
# request = Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyRequest.new
|
|
4226
|
+
#
|
|
4227
|
+
# # Call the create_auto_protection_policy method.
|
|
4228
|
+
# result = client.create_auto_protection_policy request
|
|
4229
|
+
#
|
|
4230
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4231
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4232
|
+
# # Here is how to wait for a response.
|
|
4233
|
+
# result.wait_until_done! timeout: 60
|
|
4234
|
+
# if result.response?
|
|
4235
|
+
# p result.response
|
|
4236
|
+
# else
|
|
4237
|
+
# puts "No response received."
|
|
4238
|
+
# end
|
|
4239
|
+
#
|
|
4240
|
+
def create_auto_protection_policy request, options = nil
|
|
4241
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4157
4242
|
|
|
4158
|
-
|
|
4159
|
-
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
4160
|
-
DEFAULT_ENDPOINT = "backupdr.googleapis.com"
|
|
4243
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyRequest
|
|
4161
4244
|
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
|
4165
|
-
allowed.any? { |klass| klass === value }
|
|
4166
|
-
end
|
|
4167
|
-
config_attr :scope, nil, ::String, ::Array, nil
|
|
4168
|
-
config_attr :lib_name, nil, ::String, nil
|
|
4169
|
-
config_attr :lib_version, nil, ::String, nil
|
|
4170
|
-
config_attr :timeout, nil, ::Numeric, nil
|
|
4171
|
-
config_attr :metadata, nil, ::Hash, nil
|
|
4172
|
-
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
4173
|
-
config_attr :quota_project, nil, ::String, nil
|
|
4174
|
-
config_attr :universe_domain, nil, ::String, nil
|
|
4245
|
+
# Converts hash and nil to an options object
|
|
4246
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4175
4247
|
|
|
4176
|
-
#
|
|
4177
|
-
|
|
4178
|
-
# are only used when this service is used as mixin, and only
|
|
4179
|
-
# by the host service.
|
|
4180
|
-
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
4181
|
-
config_attr :bindings_override, {}, ::Hash, nil
|
|
4182
|
-
config_attr :logger, :default, ::Logger, nil, :default
|
|
4248
|
+
# Customize the options with defaults
|
|
4249
|
+
call_metadata = @config.rpcs.create_auto_protection_policy.metadata.to_h
|
|
4183
4250
|
|
|
4184
|
-
#
|
|
4185
|
-
|
|
4186
|
-
@
|
|
4251
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4252
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4253
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4254
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4255
|
+
transports_version_send: [:rest]
|
|
4187
4256
|
|
|
4188
|
-
|
|
4189
|
-
|
|
4257
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4258
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4190
4259
|
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4260
|
+
options.apply_defaults timeout: @config.rpcs.create_auto_protection_policy.timeout,
|
|
4261
|
+
metadata: call_metadata,
|
|
4262
|
+
retry_policy: @config.rpcs.create_auto_protection_policy.retry_policy
|
|
4263
|
+
|
|
4264
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4265
|
+
metadata: @config.metadata,
|
|
4266
|
+
retry_policy: @config.retry_policy
|
|
4267
|
+
|
|
4268
|
+
@backup_dr_stub.create_auto_protection_policy request, options do |result, operation|
|
|
4269
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
4270
|
+
yield result, operation if block_given?
|
|
4271
|
+
throw :response, result
|
|
4201
4272
|
end
|
|
4273
|
+
rescue ::Gapic::Rest::Error => e
|
|
4274
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4275
|
+
end
|
|
4202
4276
|
|
|
4203
|
-
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
|
|
4219
|
-
|
|
4277
|
+
##
|
|
4278
|
+
# Lists AutoProtectionPolicies for a given project and location.
|
|
4279
|
+
#
|
|
4280
|
+
# @overload list_auto_protection_policies(request, options = nil)
|
|
4281
|
+
# Pass arguments to `list_auto_protection_policies` via a request object, either of type
|
|
4282
|
+
# {::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesRequest} or an equivalent Hash.
|
|
4283
|
+
#
|
|
4284
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesRequest, ::Hash]
|
|
4285
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4286
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4287
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4288
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4289
|
+
#
|
|
4290
|
+
# @overload list_auto_protection_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
4291
|
+
# Pass arguments to `list_auto_protection_policies` via keyword arguments. Note that at
|
|
4292
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4293
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4294
|
+
#
|
|
4295
|
+
# @param parent [::String]
|
|
4296
|
+
# Required. The project and location for which to retrieve the list of
|
|
4297
|
+
# policies. Format: projects/\\{project}/locations/\\{location}
|
|
4298
|
+
# @param page_size [::Integer]
|
|
4299
|
+
# Optional. The maximum number of policies to return in a single page.
|
|
4300
|
+
# If unspecified, a server-default value will be used.
|
|
4301
|
+
# @param page_token [::String]
|
|
4302
|
+
# Optional. A page token, received from a previous
|
|
4303
|
+
# `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
|
|
4304
|
+
# page.
|
|
4305
|
+
# @param filter [::String]
|
|
4306
|
+
# Optional. A filter expression that filters resources listed in the
|
|
4307
|
+
# response. The following fields are filterable:
|
|
4308
|
+
# @param order_by [::String]
|
|
4309
|
+
# Optional. An expression that sorts the results in the response. The
|
|
4310
|
+
# following fields are sortable:
|
|
4311
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4312
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::AutoProtectionPolicy>]
|
|
4313
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4314
|
+
#
|
|
4315
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::AutoProtectionPolicy>]
|
|
4316
|
+
#
|
|
4317
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4318
|
+
#
|
|
4319
|
+
# @example Basic example
|
|
4320
|
+
# require "google/cloud/backupdr/v1"
|
|
4321
|
+
#
|
|
4322
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4323
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4324
|
+
#
|
|
4325
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4326
|
+
# request = Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesRequest.new
|
|
4327
|
+
#
|
|
4328
|
+
# # Call the list_auto_protection_policies method.
|
|
4329
|
+
# result = client.list_auto_protection_policies request
|
|
4330
|
+
#
|
|
4331
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4332
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4333
|
+
# result.each do |item|
|
|
4334
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::AutoProtectionPolicy.
|
|
4335
|
+
# p item
|
|
4336
|
+
# end
|
|
4337
|
+
#
|
|
4338
|
+
def list_auto_protection_policies request, options = nil
|
|
4339
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4340
|
+
|
|
4341
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListAutoProtectionPoliciesRequest
|
|
4342
|
+
|
|
4343
|
+
# Converts hash and nil to an options object
|
|
4344
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4345
|
+
|
|
4346
|
+
# Customize the options with defaults
|
|
4347
|
+
call_metadata = @config.rpcs.list_auto_protection_policies.metadata.to_h
|
|
4348
|
+
|
|
4349
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4350
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4351
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4352
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4353
|
+
transports_version_send: [:rest]
|
|
4354
|
+
|
|
4355
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4356
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4357
|
+
|
|
4358
|
+
options.apply_defaults timeout: @config.rpcs.list_auto_protection_policies.timeout,
|
|
4359
|
+
metadata: call_metadata,
|
|
4360
|
+
retry_policy: @config.rpcs.list_auto_protection_policies.retry_policy
|
|
4361
|
+
|
|
4362
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4363
|
+
metadata: @config.metadata,
|
|
4364
|
+
retry_policy: @config.retry_policy
|
|
4365
|
+
|
|
4366
|
+
@backup_dr_stub.list_auto_protection_policies request, options do |result, operation|
|
|
4367
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_auto_protection_policies, "auto_protection_policies", request, result, options
|
|
4368
|
+
yield result, operation if block_given?
|
|
4369
|
+
throw :response, result
|
|
4370
|
+
end
|
|
4371
|
+
rescue ::Gapic::Rest::Error => e
|
|
4372
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4373
|
+
end
|
|
4374
|
+
|
|
4375
|
+
##
|
|
4376
|
+
# Gets details of a single AutoProtectionPolicy.
|
|
4377
|
+
#
|
|
4378
|
+
# @overload get_auto_protection_policy(request, options = nil)
|
|
4379
|
+
# Pass arguments to `get_auto_protection_policy` via a request object, either of type
|
|
4380
|
+
# {::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyRequest} or an equivalent Hash.
|
|
4381
|
+
#
|
|
4382
|
+
# @param request [::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyRequest, ::Hash]
|
|
4383
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4384
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4385
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4386
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4387
|
+
#
|
|
4388
|
+
# @overload get_auto_protection_policy(name: nil)
|
|
4389
|
+
# Pass arguments to `get_auto_protection_policy` via keyword arguments. Note that at
|
|
4390
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4391
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4392
|
+
#
|
|
4393
|
+
# @param name [::String]
|
|
4394
|
+
# Required. The name of the policy to retrieve.
|
|
4395
|
+
# Format:
|
|
4396
|
+
# projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}
|
|
4397
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4398
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::AutoProtectionPolicy]
|
|
4399
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4400
|
+
#
|
|
4401
|
+
# @return [::Google::Cloud::BackupDR::V1::AutoProtectionPolicy]
|
|
4402
|
+
#
|
|
4403
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4404
|
+
#
|
|
4405
|
+
# @example Basic example
|
|
4406
|
+
# require "google/cloud/backupdr/v1"
|
|
4407
|
+
#
|
|
4408
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4409
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4410
|
+
#
|
|
4411
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4412
|
+
# request = Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyRequest.new
|
|
4413
|
+
#
|
|
4414
|
+
# # Call the get_auto_protection_policy method.
|
|
4415
|
+
# result = client.get_auto_protection_policy request
|
|
4416
|
+
#
|
|
4417
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1::AutoProtectionPolicy.
|
|
4418
|
+
# p result
|
|
4419
|
+
#
|
|
4420
|
+
def get_auto_protection_policy request, options = nil
|
|
4421
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4422
|
+
|
|
4423
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyRequest
|
|
4424
|
+
|
|
4425
|
+
# Converts hash and nil to an options object
|
|
4426
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4427
|
+
|
|
4428
|
+
# Customize the options with defaults
|
|
4429
|
+
call_metadata = @config.rpcs.get_auto_protection_policy.metadata.to_h
|
|
4430
|
+
|
|
4431
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4432
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4433
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4434
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4435
|
+
transports_version_send: [:rest]
|
|
4436
|
+
|
|
4437
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4438
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4439
|
+
|
|
4440
|
+
options.apply_defaults timeout: @config.rpcs.get_auto_protection_policy.timeout,
|
|
4441
|
+
metadata: call_metadata,
|
|
4442
|
+
retry_policy: @config.rpcs.get_auto_protection_policy.retry_policy
|
|
4443
|
+
|
|
4444
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4445
|
+
metadata: @config.metadata,
|
|
4446
|
+
retry_policy: @config.retry_policy
|
|
4447
|
+
|
|
4448
|
+
@backup_dr_stub.get_auto_protection_policy request, options do |result, operation|
|
|
4449
|
+
yield result, operation if block_given?
|
|
4450
|
+
end
|
|
4451
|
+
rescue ::Gapic::Rest::Error => e
|
|
4452
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4453
|
+
end
|
|
4454
|
+
|
|
4455
|
+
##
|
|
4456
|
+
# Updates the parameters of a single AutoProtectionPolicy.
|
|
4457
|
+
#
|
|
4458
|
+
# @overload update_auto_protection_policy(request, options = nil)
|
|
4459
|
+
# Pass arguments to `update_auto_protection_policy` via a request object, either of type
|
|
4460
|
+
# {::Google::Cloud::BackupDR::V1::UpdateAutoProtectionPolicyRequest} or an equivalent Hash.
|
|
4461
|
+
#
|
|
4462
|
+
# @param request [::Google::Cloud::BackupDR::V1::UpdateAutoProtectionPolicyRequest, ::Hash]
|
|
4463
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4464
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4465
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4466
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4467
|
+
#
|
|
4468
|
+
# @overload update_auto_protection_policy(auto_protection_policy: nil, update_mask: nil, request_id: nil)
|
|
4469
|
+
# Pass arguments to `update_auto_protection_policy` via keyword arguments. Note that at
|
|
4470
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4471
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4472
|
+
#
|
|
4473
|
+
# @param auto_protection_policy [::Google::Cloud::BackupDR::V1::AutoProtectionPolicy, ::Hash]
|
|
4474
|
+
# Required. The policy to update.
|
|
4475
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
4476
|
+
# Optional. Field mask is used to specify the fields to be overwritten in the
|
|
4477
|
+
# AutoProtectionPolicy resource by the update.
|
|
4478
|
+
# The fields specified in the update_mask are relative to the resource, not
|
|
4479
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
|
4480
|
+
# user does not provide a mask then all fields will be overwritten.
|
|
4481
|
+
# @param request_id [::String]
|
|
4482
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
4483
|
+
# request ID so that if you must retry your request, the server will know to
|
|
4484
|
+
# ignore the request if it has already been completed. The server will
|
|
4485
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
4486
|
+
#
|
|
4487
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
4488
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4489
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4490
|
+
# @yieldparam result [::Gapic::Operation]
|
|
4491
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4492
|
+
#
|
|
4493
|
+
# @return [::Gapic::Operation]
|
|
4494
|
+
#
|
|
4495
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4496
|
+
#
|
|
4497
|
+
# @example Basic example
|
|
4498
|
+
# require "google/cloud/backupdr/v1"
|
|
4499
|
+
#
|
|
4500
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4501
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4502
|
+
#
|
|
4503
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4504
|
+
# request = Google::Cloud::BackupDR::V1::UpdateAutoProtectionPolicyRequest.new
|
|
4505
|
+
#
|
|
4506
|
+
# # Call the update_auto_protection_policy method.
|
|
4507
|
+
# result = client.update_auto_protection_policy request
|
|
4508
|
+
#
|
|
4509
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4510
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4511
|
+
# # Here is how to wait for a response.
|
|
4512
|
+
# result.wait_until_done! timeout: 60
|
|
4513
|
+
# if result.response?
|
|
4514
|
+
# p result.response
|
|
4515
|
+
# else
|
|
4516
|
+
# puts "No response received."
|
|
4517
|
+
# end
|
|
4518
|
+
#
|
|
4519
|
+
def update_auto_protection_policy request, options = nil
|
|
4520
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4521
|
+
|
|
4522
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::UpdateAutoProtectionPolicyRequest
|
|
4523
|
+
|
|
4524
|
+
# Converts hash and nil to an options object
|
|
4525
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4526
|
+
|
|
4527
|
+
# Customize the options with defaults
|
|
4528
|
+
call_metadata = @config.rpcs.update_auto_protection_policy.metadata.to_h
|
|
4529
|
+
|
|
4530
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4531
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4532
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4533
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4534
|
+
transports_version_send: [:rest]
|
|
4535
|
+
|
|
4536
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4537
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4538
|
+
|
|
4539
|
+
options.apply_defaults timeout: @config.rpcs.update_auto_protection_policy.timeout,
|
|
4540
|
+
metadata: call_metadata,
|
|
4541
|
+
retry_policy: @config.rpcs.update_auto_protection_policy.retry_policy
|
|
4542
|
+
|
|
4543
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4544
|
+
metadata: @config.metadata,
|
|
4545
|
+
retry_policy: @config.retry_policy
|
|
4546
|
+
|
|
4547
|
+
@backup_dr_stub.update_auto_protection_policy request, options do |result, operation|
|
|
4548
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
4549
|
+
yield result, operation if block_given?
|
|
4550
|
+
throw :response, result
|
|
4551
|
+
end
|
|
4552
|
+
rescue ::Gapic::Rest::Error => e
|
|
4553
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4554
|
+
end
|
|
4555
|
+
|
|
4556
|
+
##
|
|
4557
|
+
# Deletes a single AutoProtectionPolicy.
|
|
4558
|
+
#
|
|
4559
|
+
# @overload delete_auto_protection_policy(request, options = nil)
|
|
4560
|
+
# Pass arguments to `delete_auto_protection_policy` via a request object, either of type
|
|
4561
|
+
# {::Google::Cloud::BackupDR::V1::DeleteAutoProtectionPolicyRequest} or an equivalent Hash.
|
|
4562
|
+
#
|
|
4563
|
+
# @param request [::Google::Cloud::BackupDR::V1::DeleteAutoProtectionPolicyRequest, ::Hash]
|
|
4564
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4565
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4566
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4567
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4568
|
+
#
|
|
4569
|
+
# @overload delete_auto_protection_policy(name: nil, etag: nil, request_id: nil)
|
|
4570
|
+
# Pass arguments to `delete_auto_protection_policy` via keyword arguments. Note that at
|
|
4571
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4572
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4573
|
+
#
|
|
4574
|
+
# @param name [::String]
|
|
4575
|
+
# Required. The name of the policy to delete.
|
|
4576
|
+
# Format:
|
|
4577
|
+
# projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}
|
|
4578
|
+
# @param etag [::String]
|
|
4579
|
+
# Optional. The current etag of the autoprotectionpolicy.
|
|
4580
|
+
# If an etag is provided and does not match the current etag of the
|
|
4581
|
+
# connection, deletion will be blocked.
|
|
4582
|
+
# @param request_id [::String]
|
|
4583
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
4584
|
+
# request ID so that if you must retry your request, the server will know to
|
|
4585
|
+
# ignore the request if it has already been completed. The server will
|
|
4586
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
4587
|
+
#
|
|
4588
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
4589
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4590
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4591
|
+
# @yieldparam result [::Gapic::Operation]
|
|
4592
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4593
|
+
#
|
|
4594
|
+
# @return [::Gapic::Operation]
|
|
4595
|
+
#
|
|
4596
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4597
|
+
#
|
|
4598
|
+
# @example Basic example
|
|
4599
|
+
# require "google/cloud/backupdr/v1"
|
|
4600
|
+
#
|
|
4601
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4602
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4603
|
+
#
|
|
4604
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4605
|
+
# request = Google::Cloud::BackupDR::V1::DeleteAutoProtectionPolicyRequest.new
|
|
4606
|
+
#
|
|
4607
|
+
# # Call the delete_auto_protection_policy method.
|
|
4608
|
+
# result = client.delete_auto_protection_policy request
|
|
4609
|
+
#
|
|
4610
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4611
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4612
|
+
# # Here is how to wait for a response.
|
|
4613
|
+
# result.wait_until_done! timeout: 60
|
|
4614
|
+
# if result.response?
|
|
4615
|
+
# p result.response
|
|
4616
|
+
# else
|
|
4617
|
+
# puts "No response received."
|
|
4618
|
+
# end
|
|
4619
|
+
#
|
|
4620
|
+
def delete_auto_protection_policy request, options = nil
|
|
4621
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4622
|
+
|
|
4623
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::DeleteAutoProtectionPolicyRequest
|
|
4624
|
+
|
|
4625
|
+
# Converts hash and nil to an options object
|
|
4626
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4627
|
+
|
|
4628
|
+
# Customize the options with defaults
|
|
4629
|
+
call_metadata = @config.rpcs.delete_auto_protection_policy.metadata.to_h
|
|
4630
|
+
|
|
4631
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4632
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4633
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4634
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4635
|
+
transports_version_send: [:rest]
|
|
4636
|
+
|
|
4637
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4638
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4639
|
+
|
|
4640
|
+
options.apply_defaults timeout: @config.rpcs.delete_auto_protection_policy.timeout,
|
|
4641
|
+
metadata: call_metadata,
|
|
4642
|
+
retry_policy: @config.rpcs.delete_auto_protection_policy.retry_policy
|
|
4643
|
+
|
|
4644
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4645
|
+
metadata: @config.metadata,
|
|
4646
|
+
retry_policy: @config.retry_policy
|
|
4647
|
+
|
|
4648
|
+
@backup_dr_stub.delete_auto_protection_policy request, options do |result, operation|
|
|
4649
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
4650
|
+
yield result, operation if block_given?
|
|
4651
|
+
throw :response, result
|
|
4652
|
+
end
|
|
4653
|
+
rescue ::Gapic::Rest::Error => e
|
|
4654
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4655
|
+
end
|
|
4656
|
+
|
|
4657
|
+
##
|
|
4658
|
+
# Creates a new AutoProtectionPolicyBinding in a given project and
|
|
4659
|
+
# location.
|
|
4660
|
+
#
|
|
4661
|
+
# @overload create_auto_protection_policy_binding(request, options = nil)
|
|
4662
|
+
# Pass arguments to `create_auto_protection_policy_binding` via a request object, either of type
|
|
4663
|
+
# {::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyBindingRequest} or an equivalent Hash.
|
|
4664
|
+
#
|
|
4665
|
+
# @param request [::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyBindingRequest, ::Hash]
|
|
4666
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4667
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4668
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4669
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4670
|
+
#
|
|
4671
|
+
# @overload create_auto_protection_policy_binding(parent: nil, auto_protection_policy_binding_id: nil, auto_protection_policy_binding: nil, request_id: nil)
|
|
4672
|
+
# Pass arguments to `create_auto_protection_policy_binding` via keyword arguments. Note that at
|
|
4673
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4674
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4675
|
+
#
|
|
4676
|
+
# @param parent [::String]
|
|
4677
|
+
# Required. The parent resource where this binding will be created.
|
|
4678
|
+
# Format:
|
|
4679
|
+
# projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}
|
|
4680
|
+
# @param auto_protection_policy_binding_id [::String]
|
|
4681
|
+
# Required. The ID to use for the binding.
|
|
4682
|
+
# This will become the final component of the binding's resource name.
|
|
4683
|
+
#
|
|
4684
|
+
# This value must start with a lowercase letter followed by up to 62
|
|
4685
|
+
# lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
|
|
4686
|
+
# @param auto_protection_policy_binding [::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding, ::Hash]
|
|
4687
|
+
# Required. The AutoProtectionPolicyBinding resource to create.
|
|
4688
|
+
# @param request_id [::String]
|
|
4689
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
4690
|
+
# request ID so that if you must retry your request, the server will know to
|
|
4691
|
+
# ignore the request if it has already been completed. The server will
|
|
4692
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
4693
|
+
#
|
|
4694
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
4695
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
4696
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4697
|
+
# @yieldparam result [::Gapic::Operation]
|
|
4698
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4699
|
+
#
|
|
4700
|
+
# @return [::Gapic::Operation]
|
|
4701
|
+
#
|
|
4702
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4703
|
+
#
|
|
4704
|
+
# @example Basic example
|
|
4705
|
+
# require "google/cloud/backupdr/v1"
|
|
4706
|
+
#
|
|
4707
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4708
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4709
|
+
#
|
|
4710
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4711
|
+
# request = Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyBindingRequest.new
|
|
4712
|
+
#
|
|
4713
|
+
# # Call the create_auto_protection_policy_binding method.
|
|
4714
|
+
# result = client.create_auto_protection_policy_binding request
|
|
4715
|
+
#
|
|
4716
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
4717
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
4718
|
+
# # Here is how to wait for a response.
|
|
4719
|
+
# result.wait_until_done! timeout: 60
|
|
4720
|
+
# if result.response?
|
|
4721
|
+
# p result.response
|
|
4722
|
+
# else
|
|
4723
|
+
# puts "No response received."
|
|
4724
|
+
# end
|
|
4725
|
+
#
|
|
4726
|
+
def create_auto_protection_policy_binding request, options = nil
|
|
4727
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4728
|
+
|
|
4729
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::CreateAutoProtectionPolicyBindingRequest
|
|
4730
|
+
|
|
4731
|
+
# Converts hash and nil to an options object
|
|
4732
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4733
|
+
|
|
4734
|
+
# Customize the options with defaults
|
|
4735
|
+
call_metadata = @config.rpcs.create_auto_protection_policy_binding.metadata.to_h
|
|
4736
|
+
|
|
4737
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4738
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4739
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4740
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4741
|
+
transports_version_send: [:rest]
|
|
4742
|
+
|
|
4743
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4744
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4745
|
+
|
|
4746
|
+
options.apply_defaults timeout: @config.rpcs.create_auto_protection_policy_binding.timeout,
|
|
4747
|
+
metadata: call_metadata,
|
|
4748
|
+
retry_policy: @config.rpcs.create_auto_protection_policy_binding.retry_policy
|
|
4749
|
+
|
|
4750
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4751
|
+
metadata: @config.metadata,
|
|
4752
|
+
retry_policy: @config.retry_policy
|
|
4753
|
+
|
|
4754
|
+
@backup_dr_stub.create_auto_protection_policy_binding request, options do |result, operation|
|
|
4755
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
4756
|
+
yield result, operation if block_given?
|
|
4757
|
+
throw :response, result
|
|
4758
|
+
end
|
|
4759
|
+
rescue ::Gapic::Rest::Error => e
|
|
4760
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4761
|
+
end
|
|
4762
|
+
|
|
4763
|
+
##
|
|
4764
|
+
# Returns the auto protection policy binding read from the CCFE tables.
|
|
4765
|
+
#
|
|
4766
|
+
# @overload get_auto_protection_policy_binding(request, options = nil)
|
|
4767
|
+
# Pass arguments to `get_auto_protection_policy_binding` via a request object, either of type
|
|
4768
|
+
# {::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyBindingRequest} or an equivalent Hash.
|
|
4769
|
+
#
|
|
4770
|
+
# @param request [::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyBindingRequest, ::Hash]
|
|
4771
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4772
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4773
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4774
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4775
|
+
#
|
|
4776
|
+
# @overload get_auto_protection_policy_binding(name: nil)
|
|
4777
|
+
# Pass arguments to `get_auto_protection_policy_binding` via keyword arguments. Note that at
|
|
4778
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4779
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4780
|
+
#
|
|
4781
|
+
# @param name [::String]
|
|
4782
|
+
# Required. The name of the binding to retrieve.
|
|
4783
|
+
# Format:
|
|
4784
|
+
# projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}/bindings/\\{binding}
|
|
4785
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4786
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding]
|
|
4787
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4788
|
+
#
|
|
4789
|
+
# @return [::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding]
|
|
4790
|
+
#
|
|
4791
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4792
|
+
#
|
|
4793
|
+
# @example Basic example
|
|
4794
|
+
# require "google/cloud/backupdr/v1"
|
|
4795
|
+
#
|
|
4796
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4797
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4798
|
+
#
|
|
4799
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4800
|
+
# request = Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyBindingRequest.new
|
|
4801
|
+
#
|
|
4802
|
+
# # Call the get_auto_protection_policy_binding method.
|
|
4803
|
+
# result = client.get_auto_protection_policy_binding request
|
|
4804
|
+
#
|
|
4805
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding.
|
|
4806
|
+
# p result
|
|
4807
|
+
#
|
|
4808
|
+
def get_auto_protection_policy_binding request, options = nil
|
|
4809
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4810
|
+
|
|
4811
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::GetAutoProtectionPolicyBindingRequest
|
|
4812
|
+
|
|
4813
|
+
# Converts hash and nil to an options object
|
|
4814
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4815
|
+
|
|
4816
|
+
# Customize the options with defaults
|
|
4817
|
+
call_metadata = @config.rpcs.get_auto_protection_policy_binding.metadata.to_h
|
|
4818
|
+
|
|
4819
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4820
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4821
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4822
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4823
|
+
transports_version_send: [:rest]
|
|
4824
|
+
|
|
4825
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4826
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4827
|
+
|
|
4828
|
+
options.apply_defaults timeout: @config.rpcs.get_auto_protection_policy_binding.timeout,
|
|
4829
|
+
metadata: call_metadata,
|
|
4830
|
+
retry_policy: @config.rpcs.get_auto_protection_policy_binding.retry_policy
|
|
4831
|
+
|
|
4832
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4833
|
+
metadata: @config.metadata,
|
|
4834
|
+
retry_policy: @config.retry_policy
|
|
4835
|
+
|
|
4836
|
+
@backup_dr_stub.get_auto_protection_policy_binding request, options do |result, operation|
|
|
4837
|
+
yield result, operation if block_given?
|
|
4838
|
+
end
|
|
4839
|
+
rescue ::Gapic::Rest::Error => e
|
|
4840
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4841
|
+
end
|
|
4842
|
+
|
|
4843
|
+
##
|
|
4844
|
+
# Returns the auto protection policy bindings read from the CCFE tables.
|
|
4845
|
+
#
|
|
4846
|
+
# @overload list_auto_protection_policy_bindings(request, options = nil)
|
|
4847
|
+
# Pass arguments to `list_auto_protection_policy_bindings` via a request object, either of type
|
|
4848
|
+
# {::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsRequest} or an equivalent Hash.
|
|
4849
|
+
#
|
|
4850
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsRequest, ::Hash]
|
|
4851
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4852
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4853
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4854
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4855
|
+
#
|
|
4856
|
+
# @overload list_auto_protection_policy_bindings(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
4857
|
+
# Pass arguments to `list_auto_protection_policy_bindings` via keyword arguments. Note that at
|
|
4858
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4859
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4860
|
+
#
|
|
4861
|
+
# @param parent [::String]
|
|
4862
|
+
# Required. The project and location for which to retrieve the list of
|
|
4863
|
+
# policies. Format: projects/\\{project}/locations/\\{location}
|
|
4864
|
+
# @param page_size [::Integer]
|
|
4865
|
+
# Optional. The maximum number of policies to return in a single page is 500.
|
|
4866
|
+
# If unspecified, a server-default value will be used.
|
|
4867
|
+
# @param page_token [::String]
|
|
4868
|
+
# Optional. A page token, received from a previous
|
|
4869
|
+
# `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent
|
|
4870
|
+
# page.
|
|
4871
|
+
# @param filter [::String]
|
|
4872
|
+
# Optional. A filter expression that filters resources listed in the
|
|
4873
|
+
# response. The following fields are filterable:
|
|
4874
|
+
# @param order_by [::String]
|
|
4875
|
+
# Optional. An expression that sorts the results in the response. The
|
|
4876
|
+
# following fields are sortable:
|
|
4877
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4878
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding>]
|
|
4879
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4880
|
+
#
|
|
4881
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding>]
|
|
4882
|
+
#
|
|
4883
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4884
|
+
#
|
|
4885
|
+
# @example Basic example
|
|
4886
|
+
# require "google/cloud/backupdr/v1"
|
|
4887
|
+
#
|
|
4888
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4889
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4890
|
+
#
|
|
4891
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4892
|
+
# request = Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsRequest.new
|
|
4893
|
+
#
|
|
4894
|
+
# # Call the list_auto_protection_policy_bindings method.
|
|
4895
|
+
# result = client.list_auto_protection_policy_bindings request
|
|
4896
|
+
#
|
|
4897
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4898
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4899
|
+
# result.each do |item|
|
|
4900
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::AutoProtectionPolicyBinding.
|
|
4901
|
+
# p item
|
|
4902
|
+
# end
|
|
4903
|
+
#
|
|
4904
|
+
def list_auto_protection_policy_bindings request, options = nil
|
|
4905
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
4906
|
+
|
|
4907
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListAutoProtectionPolicyBindingsRequest
|
|
4908
|
+
|
|
4909
|
+
# Converts hash and nil to an options object
|
|
4910
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
4911
|
+
|
|
4912
|
+
# Customize the options with defaults
|
|
4913
|
+
call_metadata = @config.rpcs.list_auto_protection_policy_bindings.metadata.to_h
|
|
4914
|
+
|
|
4915
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
4916
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
4917
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
4918
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
4919
|
+
transports_version_send: [:rest]
|
|
4920
|
+
|
|
4921
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
4922
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
4923
|
+
|
|
4924
|
+
options.apply_defaults timeout: @config.rpcs.list_auto_protection_policy_bindings.timeout,
|
|
4925
|
+
metadata: call_metadata,
|
|
4926
|
+
retry_policy: @config.rpcs.list_auto_protection_policy_bindings.retry_policy
|
|
4927
|
+
|
|
4928
|
+
options.apply_defaults timeout: @config.timeout,
|
|
4929
|
+
metadata: @config.metadata,
|
|
4930
|
+
retry_policy: @config.retry_policy
|
|
4931
|
+
|
|
4932
|
+
@backup_dr_stub.list_auto_protection_policy_bindings request, options do |result, operation|
|
|
4933
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_auto_protection_policy_bindings, "auto_protection_policy_bindings", request, result, options
|
|
4934
|
+
yield result, operation if block_given?
|
|
4935
|
+
throw :response, result
|
|
4936
|
+
end
|
|
4937
|
+
rescue ::Gapic::Rest::Error => e
|
|
4938
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
4939
|
+
end
|
|
4940
|
+
|
|
4941
|
+
##
|
|
4942
|
+
# Lists AppliedAutoProtectionPolicies in a given project and location.
|
|
4943
|
+
#
|
|
4944
|
+
# @overload list_applied_auto_protection_policies(request, options = nil)
|
|
4945
|
+
# Pass arguments to `list_applied_auto_protection_policies` via a request object, either of type
|
|
4946
|
+
# {::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesRequest} or an equivalent Hash.
|
|
4947
|
+
#
|
|
4948
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesRequest, ::Hash]
|
|
4949
|
+
# A request object representing the call parameters. Required. To specify no
|
|
4950
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
4951
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
4952
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
4953
|
+
#
|
|
4954
|
+
# @overload list_applied_auto_protection_policies(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
4955
|
+
# Pass arguments to `list_applied_auto_protection_policies` via keyword arguments. Note that at
|
|
4956
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
4957
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
4958
|
+
#
|
|
4959
|
+
# @param parent [::String]
|
|
4960
|
+
# Required. The project and location for which to retrieve the list of
|
|
4961
|
+
# applied policies. Format: projects/\\{project}/locations/\\{location}
|
|
4962
|
+
# @param page_size [::Integer]
|
|
4963
|
+
# Optional. The maximum number of applied policies to return in a single
|
|
4964
|
+
# page. The maximum value is 1000; values above 1000 will be coerced to
|
|
4965
|
+
# 1000. If unspecified or set to 0, a default page size of 500 will be used.
|
|
4966
|
+
# @param page_token [::String]
|
|
4967
|
+
# Optional. A page token, received from a previous
|
|
4968
|
+
# `ListAppliedAutoProtectionPolicies` call.
|
|
4969
|
+
# @param filter [::String]
|
|
4970
|
+
# Optional. A filter expression that filters resources listed in the
|
|
4971
|
+
# response.
|
|
4972
|
+
# @param order_by [::String]
|
|
4973
|
+
# Optional. An expression that sorts the results in the response.
|
|
4974
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
4975
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::AppliedAutoProtectionPolicy>]
|
|
4976
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
4977
|
+
#
|
|
4978
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::AppliedAutoProtectionPolicy>]
|
|
4979
|
+
#
|
|
4980
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
4981
|
+
#
|
|
4982
|
+
# @example Basic example
|
|
4983
|
+
# require "google/cloud/backupdr/v1"
|
|
4984
|
+
#
|
|
4985
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
4986
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
4987
|
+
#
|
|
4988
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
4989
|
+
# request = Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesRequest.new
|
|
4990
|
+
#
|
|
4991
|
+
# # Call the list_applied_auto_protection_policies method.
|
|
4992
|
+
# result = client.list_applied_auto_protection_policies request
|
|
4993
|
+
#
|
|
4994
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
4995
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
4996
|
+
# result.each do |item|
|
|
4997
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::AppliedAutoProtectionPolicy.
|
|
4998
|
+
# p item
|
|
4999
|
+
# end
|
|
5000
|
+
#
|
|
5001
|
+
def list_applied_auto_protection_policies request, options = nil
|
|
5002
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5003
|
+
|
|
5004
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListAppliedAutoProtectionPoliciesRequest
|
|
5005
|
+
|
|
5006
|
+
# Converts hash and nil to an options object
|
|
5007
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5008
|
+
|
|
5009
|
+
# Customize the options with defaults
|
|
5010
|
+
call_metadata = @config.rpcs.list_applied_auto_protection_policies.metadata.to_h
|
|
5011
|
+
|
|
5012
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5013
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5014
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5015
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5016
|
+
transports_version_send: [:rest]
|
|
5017
|
+
|
|
5018
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5019
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5020
|
+
|
|
5021
|
+
options.apply_defaults timeout: @config.rpcs.list_applied_auto_protection_policies.timeout,
|
|
5022
|
+
metadata: call_metadata,
|
|
5023
|
+
retry_policy: @config.rpcs.list_applied_auto_protection_policies.retry_policy
|
|
5024
|
+
|
|
5025
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5026
|
+
metadata: @config.metadata,
|
|
5027
|
+
retry_policy: @config.retry_policy
|
|
5028
|
+
|
|
5029
|
+
@backup_dr_stub.list_applied_auto_protection_policies request, options do |result, operation|
|
|
5030
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_applied_auto_protection_policies, "applied_auto_protection_policies", request, result, options
|
|
5031
|
+
yield result, operation if block_given?
|
|
5032
|
+
throw :response, result
|
|
5033
|
+
end
|
|
5034
|
+
rescue ::Gapic::Rest::Error => e
|
|
5035
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5036
|
+
end
|
|
5037
|
+
|
|
5038
|
+
##
|
|
5039
|
+
# InitiateDeleteAutoProtectionPolicyBinding initiates delete for
|
|
5040
|
+
# AutoProtectionPolicy Binding
|
|
5041
|
+
#
|
|
5042
|
+
# @overload initiate_delete_auto_protection_policy_binding(request, options = nil)
|
|
5043
|
+
# Pass arguments to `initiate_delete_auto_protection_policy_binding` via a request object, either of type
|
|
5044
|
+
# {::Google::Cloud::BackupDR::V1::InitiateDeleteAutoProtectionPolicyBindingRequest} or an equivalent Hash.
|
|
5045
|
+
#
|
|
5046
|
+
# @param request [::Google::Cloud::BackupDR::V1::InitiateDeleteAutoProtectionPolicyBindingRequest, ::Hash]
|
|
5047
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5048
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5049
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5050
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5051
|
+
#
|
|
5052
|
+
# @overload initiate_delete_auto_protection_policy_binding(name: nil, etag: nil, request_id: nil)
|
|
5053
|
+
# Pass arguments to `initiate_delete_auto_protection_policy_binding` via keyword arguments. Note that at
|
|
5054
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5055
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5056
|
+
#
|
|
5057
|
+
# @param name [::String]
|
|
5058
|
+
# Required. The name of the binding to delete.
|
|
5059
|
+
# Format:
|
|
5060
|
+
# projects/\\{project}/locations/\\{location}/autoProtectionPolicies/\\{auto_protection_policy}/bindings/\\{binding}
|
|
5061
|
+
# @param etag [::String]
|
|
5062
|
+
# Optional. The current etag of the AutoProtectionPolicyBinding.
|
|
5063
|
+
# If an etag is provided and does not match the current etag of the
|
|
5064
|
+
# binding, deletion will be blocked and an ABORTED error will be returned.
|
|
5065
|
+
# @param request_id [::String]
|
|
5066
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
5067
|
+
# request ID so that if you must retry your request, the server will know to
|
|
5068
|
+
# ignore the request if it has already been completed. The server will
|
|
5069
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
5070
|
+
#
|
|
5071
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
5072
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
5073
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5074
|
+
# @yieldparam result [::Gapic::Operation]
|
|
5075
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5076
|
+
#
|
|
5077
|
+
# @return [::Gapic::Operation]
|
|
5078
|
+
#
|
|
5079
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5080
|
+
#
|
|
5081
|
+
# @example Basic example
|
|
5082
|
+
# require "google/cloud/backupdr/v1"
|
|
5083
|
+
#
|
|
5084
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5085
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5086
|
+
#
|
|
5087
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5088
|
+
# request = Google::Cloud::BackupDR::V1::InitiateDeleteAutoProtectionPolicyBindingRequest.new
|
|
5089
|
+
#
|
|
5090
|
+
# # Call the initiate_delete_auto_protection_policy_binding method.
|
|
5091
|
+
# result = client.initiate_delete_auto_protection_policy_binding request
|
|
5092
|
+
#
|
|
5093
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
5094
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
5095
|
+
# # Here is how to wait for a response.
|
|
5096
|
+
# result.wait_until_done! timeout: 60
|
|
5097
|
+
# if result.response?
|
|
5098
|
+
# p result.response
|
|
5099
|
+
# else
|
|
5100
|
+
# puts "No response received."
|
|
5101
|
+
# end
|
|
5102
|
+
#
|
|
5103
|
+
def initiate_delete_auto_protection_policy_binding request, options = nil
|
|
5104
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5105
|
+
|
|
5106
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::InitiateDeleteAutoProtectionPolicyBindingRequest
|
|
5107
|
+
|
|
5108
|
+
# Converts hash and nil to an options object
|
|
5109
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5110
|
+
|
|
5111
|
+
# Customize the options with defaults
|
|
5112
|
+
call_metadata = @config.rpcs.initiate_delete_auto_protection_policy_binding.metadata.to_h
|
|
5113
|
+
|
|
5114
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5115
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5116
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5117
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5118
|
+
transports_version_send: [:rest]
|
|
5119
|
+
|
|
5120
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5121
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5122
|
+
|
|
5123
|
+
options.apply_defaults timeout: @config.rpcs.initiate_delete_auto_protection_policy_binding.timeout,
|
|
5124
|
+
metadata: call_metadata,
|
|
5125
|
+
retry_policy: @config.rpcs.initiate_delete_auto_protection_policy_binding.retry_policy
|
|
5126
|
+
|
|
5127
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5128
|
+
metadata: @config.metadata,
|
|
5129
|
+
retry_policy: @config.retry_policy
|
|
5130
|
+
|
|
5131
|
+
@backup_dr_stub.initiate_delete_auto_protection_policy_binding request, options do |result, operation|
|
|
5132
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
5133
|
+
yield result, operation if block_given?
|
|
5134
|
+
throw :response, result
|
|
5135
|
+
end
|
|
5136
|
+
rescue ::Gapic::Rest::Error => e
|
|
5137
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5138
|
+
end
|
|
5139
|
+
|
|
5140
|
+
##
|
|
5141
|
+
# Lists Binding Matching Resources for a given AutoProtectionPolicyBinding.
|
|
5142
|
+
#
|
|
5143
|
+
# @overload list_binding_matching_resources(request, options = nil)
|
|
5144
|
+
# Pass arguments to `list_binding_matching_resources` via a request object, either of type
|
|
5145
|
+
# {::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesRequest} or an equivalent Hash.
|
|
5146
|
+
#
|
|
5147
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesRequest, ::Hash]
|
|
5148
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5149
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5150
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5151
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5152
|
+
#
|
|
5153
|
+
# @overload list_binding_matching_resources(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
5154
|
+
# Pass arguments to `list_binding_matching_resources` via keyword arguments. Note that at
|
|
5155
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5156
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5157
|
+
#
|
|
5158
|
+
# @param parent [::String]
|
|
5159
|
+
# Required. The project, location, auto protection policy and binding for
|
|
5160
|
+
# which to retrieve `BindingMatchingResources` information. Format:
|
|
5161
|
+
# `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`.
|
|
5162
|
+
# In Google Cloud Backup and DR, locations map to Google Cloud regions, for
|
|
5163
|
+
# example **us-central1**.
|
|
5164
|
+
# @param page_size [::Integer]
|
|
5165
|
+
# Optional. The maximum number of `BindingMatchingResources` to return in a
|
|
5166
|
+
# single response. The default page size is 100 and maximum page size is 200.
|
|
5167
|
+
# Note that the response may include a partial list and a caller should
|
|
5168
|
+
# only rely on the response's
|
|
5169
|
+
# {::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesResponse#next_page_token next_page_token}
|
|
5170
|
+
# to determine if there are more instances left to be queried.
|
|
5171
|
+
# @param page_token [::String]
|
|
5172
|
+
# Optional. The value of
|
|
5173
|
+
# {::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesResponse#next_page_token next_page_token}
|
|
5174
|
+
# received from a previous `ListBindingMatchingResources` call. Provide this
|
|
5175
|
+
# to retrieve the subsequent page in a multi-page list of results. When
|
|
5176
|
+
# paginating, all other parameters provided to `ListBindingMatchingResources`
|
|
5177
|
+
# must match the call that provided the page token.
|
|
5178
|
+
# @param filter [::String]
|
|
5179
|
+
# Optional. Field match expression used to filter the results.
|
|
5180
|
+
# @param order_by [::String]
|
|
5181
|
+
# Optional. Field by which to sort the results.
|
|
5182
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5183
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BindingMatchingResource>]
|
|
5184
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5185
|
+
#
|
|
5186
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::BindingMatchingResource>]
|
|
5187
|
+
#
|
|
5188
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5189
|
+
#
|
|
5190
|
+
# @example Basic example
|
|
5191
|
+
# require "google/cloud/backupdr/v1"
|
|
5192
|
+
#
|
|
5193
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5194
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5195
|
+
#
|
|
5196
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5197
|
+
# request = Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesRequest.new
|
|
5198
|
+
#
|
|
5199
|
+
# # Call the list_binding_matching_resources method.
|
|
5200
|
+
# result = client.list_binding_matching_resources request
|
|
5201
|
+
#
|
|
5202
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
5203
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
5204
|
+
# result.each do |item|
|
|
5205
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::BindingMatchingResource.
|
|
5206
|
+
# p item
|
|
5207
|
+
# end
|
|
5208
|
+
#
|
|
5209
|
+
def list_binding_matching_resources request, options = nil
|
|
5210
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5211
|
+
|
|
5212
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListBindingMatchingResourcesRequest
|
|
5213
|
+
|
|
5214
|
+
# Converts hash and nil to an options object
|
|
5215
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5216
|
+
|
|
5217
|
+
# Customize the options with defaults
|
|
5218
|
+
call_metadata = @config.rpcs.list_binding_matching_resources.metadata.to_h
|
|
5219
|
+
|
|
5220
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5221
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5222
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5223
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5224
|
+
transports_version_send: [:rest]
|
|
5225
|
+
|
|
5226
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5227
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5228
|
+
|
|
5229
|
+
options.apply_defaults timeout: @config.rpcs.list_binding_matching_resources.timeout,
|
|
5230
|
+
metadata: call_metadata,
|
|
5231
|
+
retry_policy: @config.rpcs.list_binding_matching_resources.retry_policy
|
|
5232
|
+
|
|
5233
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5234
|
+
metadata: @config.metadata,
|
|
5235
|
+
retry_policy: @config.retry_policy
|
|
5236
|
+
|
|
5237
|
+
@backup_dr_stub.list_binding_matching_resources request, options do |result, operation|
|
|
5238
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_binding_matching_resources, "matching_resources", request, result, options
|
|
5239
|
+
yield result, operation if block_given?
|
|
5240
|
+
throw :response, result
|
|
5241
|
+
end
|
|
5242
|
+
rescue ::Gapic::Rest::Error => e
|
|
5243
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5244
|
+
end
|
|
5245
|
+
|
|
5246
|
+
##
|
|
5247
|
+
# Creates a new RestoreTemplate in a given project and location.
|
|
5248
|
+
#
|
|
5249
|
+
# @overload create_restore_template(request, options = nil)
|
|
5250
|
+
# Pass arguments to `create_restore_template` via a request object, either of type
|
|
5251
|
+
# {::Google::Cloud::BackupDR::V1::CreateRestoreTemplateRequest} or an equivalent Hash.
|
|
5252
|
+
#
|
|
5253
|
+
# @param request [::Google::Cloud::BackupDR::V1::CreateRestoreTemplateRequest, ::Hash]
|
|
5254
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5255
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5256
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5257
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5258
|
+
#
|
|
5259
|
+
# @overload create_restore_template(parent: nil, restore_template_id: nil, restore_template: nil, request_id: nil)
|
|
5260
|
+
# Pass arguments to `create_restore_template` via keyword arguments. Note that at
|
|
5261
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5262
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5263
|
+
#
|
|
5264
|
+
# @param parent [::String]
|
|
5265
|
+
# Required. The restore template project and location in the format
|
|
5266
|
+
# 'projects/\\{project_id}/locations/\\{location}'.
|
|
5267
|
+
# @param restore_template_id [::String]
|
|
5268
|
+
# Required. The ID of the restore template to create. The ID must be
|
|
5269
|
+
# unique for the specified project and location.
|
|
5270
|
+
# @param restore_template [::Google::Cloud::BackupDR::V1::RestoreTemplate, ::Hash]
|
|
5271
|
+
# Required. A RestoreTemplate resource.
|
|
5272
|
+
# @param request_id [::String]
|
|
5273
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
5274
|
+
# request ID so that if you must retry your request, the server will know to
|
|
5275
|
+
# ignore the request if it has already been completed.
|
|
5276
|
+
#
|
|
5277
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
5278
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
5279
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5280
|
+
# @yieldparam result [::Gapic::Operation]
|
|
5281
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5282
|
+
#
|
|
5283
|
+
# @return [::Gapic::Operation]
|
|
5284
|
+
#
|
|
5285
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5286
|
+
#
|
|
5287
|
+
# @example Basic example
|
|
5288
|
+
# require "google/cloud/backupdr/v1"
|
|
5289
|
+
#
|
|
5290
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5291
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5292
|
+
#
|
|
5293
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5294
|
+
# request = Google::Cloud::BackupDR::V1::CreateRestoreTemplateRequest.new
|
|
5295
|
+
#
|
|
5296
|
+
# # Call the create_restore_template method.
|
|
5297
|
+
# result = client.create_restore_template request
|
|
5298
|
+
#
|
|
5299
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
5300
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
5301
|
+
# # Here is how to wait for a response.
|
|
5302
|
+
# result.wait_until_done! timeout: 60
|
|
5303
|
+
# if result.response?
|
|
5304
|
+
# p result.response
|
|
5305
|
+
# else
|
|
5306
|
+
# puts "No response received."
|
|
5307
|
+
# end
|
|
5308
|
+
#
|
|
5309
|
+
def create_restore_template request, options = nil
|
|
5310
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5311
|
+
|
|
5312
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::CreateRestoreTemplateRequest
|
|
5313
|
+
|
|
5314
|
+
# Converts hash and nil to an options object
|
|
5315
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5316
|
+
|
|
5317
|
+
# Customize the options with defaults
|
|
5318
|
+
call_metadata = @config.rpcs.create_restore_template.metadata.to_h
|
|
5319
|
+
|
|
5320
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5321
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5322
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5323
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5324
|
+
transports_version_send: [:rest]
|
|
5325
|
+
|
|
5326
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5327
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5328
|
+
|
|
5329
|
+
options.apply_defaults timeout: @config.rpcs.create_restore_template.timeout,
|
|
5330
|
+
metadata: call_metadata,
|
|
5331
|
+
retry_policy: @config.rpcs.create_restore_template.retry_policy
|
|
5332
|
+
|
|
5333
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5334
|
+
metadata: @config.metadata,
|
|
5335
|
+
retry_policy: @config.retry_policy
|
|
5336
|
+
|
|
5337
|
+
@backup_dr_stub.create_restore_template request, options do |result, operation|
|
|
5338
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
5339
|
+
yield result, operation if block_given?
|
|
5340
|
+
throw :response, result
|
|
5341
|
+
end
|
|
5342
|
+
rescue ::Gapic::Rest::Error => e
|
|
5343
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5344
|
+
end
|
|
5345
|
+
|
|
5346
|
+
##
|
|
5347
|
+
# Gets details of a RestoreTemplate.
|
|
5348
|
+
#
|
|
5349
|
+
# @overload get_restore_template(request, options = nil)
|
|
5350
|
+
# Pass arguments to `get_restore_template` via a request object, either of type
|
|
5351
|
+
# {::Google::Cloud::BackupDR::V1::GetRestoreTemplateRequest} or an equivalent Hash.
|
|
5352
|
+
#
|
|
5353
|
+
# @param request [::Google::Cloud::BackupDR::V1::GetRestoreTemplateRequest, ::Hash]
|
|
5354
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5355
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5356
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5357
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5358
|
+
#
|
|
5359
|
+
# @overload get_restore_template(name: nil)
|
|
5360
|
+
# Pass arguments to `get_restore_template` via keyword arguments. Note that at
|
|
5361
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5362
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5363
|
+
#
|
|
5364
|
+
# @param name [::String]
|
|
5365
|
+
# Required. The name of the restore template to retrieve.
|
|
5366
|
+
# Format:
|
|
5367
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
|
|
5368
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5369
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreTemplate]
|
|
5370
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5371
|
+
#
|
|
5372
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreTemplate]
|
|
5373
|
+
#
|
|
5374
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5375
|
+
#
|
|
5376
|
+
# @example Basic example
|
|
5377
|
+
# require "google/cloud/backupdr/v1"
|
|
5378
|
+
#
|
|
5379
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5380
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5381
|
+
#
|
|
5382
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5383
|
+
# request = Google::Cloud::BackupDR::V1::GetRestoreTemplateRequest.new
|
|
5384
|
+
#
|
|
5385
|
+
# # Call the get_restore_template method.
|
|
5386
|
+
# result = client.get_restore_template request
|
|
5387
|
+
#
|
|
5388
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1::RestoreTemplate.
|
|
5389
|
+
# p result
|
|
5390
|
+
#
|
|
5391
|
+
def get_restore_template request, options = nil
|
|
5392
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5393
|
+
|
|
5394
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::GetRestoreTemplateRequest
|
|
5395
|
+
|
|
5396
|
+
# Converts hash and nil to an options object
|
|
5397
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5398
|
+
|
|
5399
|
+
# Customize the options with defaults
|
|
5400
|
+
call_metadata = @config.rpcs.get_restore_template.metadata.to_h
|
|
5401
|
+
|
|
5402
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5403
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5404
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5405
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5406
|
+
transports_version_send: [:rest]
|
|
5407
|
+
|
|
5408
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5409
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5410
|
+
|
|
5411
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_template.timeout,
|
|
5412
|
+
metadata: call_metadata,
|
|
5413
|
+
retry_policy: @config.rpcs.get_restore_template.retry_policy
|
|
5414
|
+
|
|
5415
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5416
|
+
metadata: @config.metadata,
|
|
5417
|
+
retry_policy: @config.retry_policy
|
|
5418
|
+
|
|
5419
|
+
@backup_dr_stub.get_restore_template request, options do |result, operation|
|
|
5420
|
+
yield result, operation if block_given?
|
|
5421
|
+
end
|
|
5422
|
+
rescue ::Gapic::Rest::Error => e
|
|
5423
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5424
|
+
end
|
|
5425
|
+
|
|
5426
|
+
##
|
|
5427
|
+
# Lists RestoreTemplates in a given project and location.
|
|
5428
|
+
#
|
|
5429
|
+
# @overload list_restore_templates(request, options = nil)
|
|
5430
|
+
# Pass arguments to `list_restore_templates` via a request object, either of type
|
|
5431
|
+
# {::Google::Cloud::BackupDR::V1::ListRestoreTemplatesRequest} or an equivalent Hash.
|
|
5432
|
+
#
|
|
5433
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListRestoreTemplatesRequest, ::Hash]
|
|
5434
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5435
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5436
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5437
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5438
|
+
#
|
|
5439
|
+
# @overload list_restore_templates(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
5440
|
+
# Pass arguments to `list_restore_templates` via keyword arguments. Note that at
|
|
5441
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5442
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5443
|
+
#
|
|
5444
|
+
# @param parent [::String]
|
|
5445
|
+
# Required. The project and location from which to list the restore
|
|
5446
|
+
# templates.
|
|
5447
|
+
# Format: `projects/{project}/locations/{location}`.
|
|
5448
|
+
# @param page_size [::Integer]
|
|
5449
|
+
# Optional. The maximum number of items to return.
|
|
5450
|
+
# @param page_token [::String]
|
|
5451
|
+
# Optional. A page token, received from a previous `ListRestoreTemplates`
|
|
5452
|
+
# call.
|
|
5453
|
+
# @param filter [::String]
|
|
5454
|
+
# Optional. Field match expression used to filter the results.
|
|
5455
|
+
# @param order_by [::String]
|
|
5456
|
+
# Optional. Field by which to sort the results.
|
|
5457
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5458
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreTemplate>]
|
|
5459
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5460
|
+
#
|
|
5461
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreTemplate>]
|
|
5462
|
+
#
|
|
5463
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5464
|
+
#
|
|
5465
|
+
# @example Basic example
|
|
5466
|
+
# require "google/cloud/backupdr/v1"
|
|
5467
|
+
#
|
|
5468
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5469
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5470
|
+
#
|
|
5471
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5472
|
+
# request = Google::Cloud::BackupDR::V1::ListRestoreTemplatesRequest.new
|
|
5473
|
+
#
|
|
5474
|
+
# # Call the list_restore_templates method.
|
|
5475
|
+
# result = client.list_restore_templates request
|
|
5476
|
+
#
|
|
5477
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
5478
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
5479
|
+
# result.each do |item|
|
|
5480
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::RestoreTemplate.
|
|
5481
|
+
# p item
|
|
5482
|
+
# end
|
|
5483
|
+
#
|
|
5484
|
+
def list_restore_templates request, options = nil
|
|
5485
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5486
|
+
|
|
5487
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListRestoreTemplatesRequest
|
|
5488
|
+
|
|
5489
|
+
# Converts hash and nil to an options object
|
|
5490
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5491
|
+
|
|
5492
|
+
# Customize the options with defaults
|
|
5493
|
+
call_metadata = @config.rpcs.list_restore_templates.metadata.to_h
|
|
5494
|
+
|
|
5495
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5496
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5497
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5498
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5499
|
+
transports_version_send: [:rest]
|
|
5500
|
+
|
|
5501
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5502
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5503
|
+
|
|
5504
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_templates.timeout,
|
|
5505
|
+
metadata: call_metadata,
|
|
5506
|
+
retry_policy: @config.rpcs.list_restore_templates.retry_policy
|
|
5507
|
+
|
|
5508
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5509
|
+
metadata: @config.metadata,
|
|
5510
|
+
retry_policy: @config.retry_policy
|
|
5511
|
+
|
|
5512
|
+
@backup_dr_stub.list_restore_templates request, options do |result, operation|
|
|
5513
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_templates, "restore_templates", request, result, options
|
|
5514
|
+
yield result, operation if block_given?
|
|
5515
|
+
throw :response, result
|
|
5516
|
+
end
|
|
5517
|
+
rescue ::Gapic::Rest::Error => e
|
|
5518
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5519
|
+
end
|
|
5520
|
+
|
|
5521
|
+
##
|
|
5522
|
+
# Updates the settings of a RestoreTemplate.
|
|
5523
|
+
#
|
|
5524
|
+
# @overload update_restore_template(request, options = nil)
|
|
5525
|
+
# Pass arguments to `update_restore_template` via a request object, either of type
|
|
5526
|
+
# {::Google::Cloud::BackupDR::V1::UpdateRestoreTemplateRequest} or an equivalent Hash.
|
|
5527
|
+
#
|
|
5528
|
+
# @param request [::Google::Cloud::BackupDR::V1::UpdateRestoreTemplateRequest, ::Hash]
|
|
5529
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5530
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5531
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5532
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5533
|
+
#
|
|
5534
|
+
# @overload update_restore_template(update_mask: nil, restore_template: nil, request_id: nil, validate_only: nil)
|
|
5535
|
+
# Pass arguments to `update_restore_template` via keyword arguments. Note that at
|
|
5536
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5537
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5538
|
+
#
|
|
5539
|
+
# @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
|
|
5540
|
+
# Optional. The list of fields to update.
|
|
5541
|
+
# Field mask is used to specify the fields to be overwritten in the
|
|
5542
|
+
# RestoreTemplate resource by the update.
|
|
5543
|
+
# The fields specified in the update_mask are relative to the resource, not
|
|
5544
|
+
# the full request. A field will be overwritten if it is in the mask.
|
|
5545
|
+
# @param restore_template [::Google::Cloud::BackupDR::V1::RestoreTemplate, ::Hash]
|
|
5546
|
+
# Required. The restore template to update.
|
|
5547
|
+
# @param request_id [::String]
|
|
5548
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
5549
|
+
# request ID so that if you must retry your request, the server will know to
|
|
5550
|
+
# ignore the request if it has already been completed.
|
|
5551
|
+
#
|
|
5552
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
5553
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
5554
|
+
# @param validate_only [::Boolean]
|
|
5555
|
+
# Optional. Only validate the request, but do not perform mutations.
|
|
5556
|
+
# The default is 'false'.
|
|
5557
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5558
|
+
# @yieldparam result [::Gapic::Operation]
|
|
5559
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5560
|
+
#
|
|
5561
|
+
# @return [::Gapic::Operation]
|
|
5562
|
+
#
|
|
5563
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5564
|
+
#
|
|
5565
|
+
# @example Basic example
|
|
5566
|
+
# require "google/cloud/backupdr/v1"
|
|
5567
|
+
#
|
|
5568
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5569
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5570
|
+
#
|
|
5571
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5572
|
+
# request = Google::Cloud::BackupDR::V1::UpdateRestoreTemplateRequest.new
|
|
5573
|
+
#
|
|
5574
|
+
# # Call the update_restore_template method.
|
|
5575
|
+
# result = client.update_restore_template request
|
|
5576
|
+
#
|
|
5577
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
5578
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
5579
|
+
# # Here is how to wait for a response.
|
|
5580
|
+
# result.wait_until_done! timeout: 60
|
|
5581
|
+
# if result.response?
|
|
5582
|
+
# p result.response
|
|
5583
|
+
# else
|
|
5584
|
+
# puts "No response received."
|
|
5585
|
+
# end
|
|
5586
|
+
#
|
|
5587
|
+
def update_restore_template request, options = nil
|
|
5588
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5589
|
+
|
|
5590
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::UpdateRestoreTemplateRequest
|
|
5591
|
+
|
|
5592
|
+
# Converts hash and nil to an options object
|
|
5593
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5594
|
+
|
|
5595
|
+
# Customize the options with defaults
|
|
5596
|
+
call_metadata = @config.rpcs.update_restore_template.metadata.to_h
|
|
5597
|
+
|
|
5598
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5599
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5600
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5601
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5602
|
+
transports_version_send: [:rest]
|
|
5603
|
+
|
|
5604
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5605
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5606
|
+
|
|
5607
|
+
options.apply_defaults timeout: @config.rpcs.update_restore_template.timeout,
|
|
5608
|
+
metadata: call_metadata,
|
|
5609
|
+
retry_policy: @config.rpcs.update_restore_template.retry_policy
|
|
5610
|
+
|
|
5611
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5612
|
+
metadata: @config.metadata,
|
|
5613
|
+
retry_policy: @config.retry_policy
|
|
5614
|
+
|
|
5615
|
+
@backup_dr_stub.update_restore_template request, options do |result, operation|
|
|
5616
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
5617
|
+
yield result, operation if block_given?
|
|
5618
|
+
throw :response, result
|
|
5619
|
+
end
|
|
5620
|
+
rescue ::Gapic::Rest::Error => e
|
|
5621
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5622
|
+
end
|
|
5623
|
+
|
|
5624
|
+
##
|
|
5625
|
+
# Deletes a RestoreTemplate.
|
|
5626
|
+
#
|
|
5627
|
+
# @overload delete_restore_template(request, options = nil)
|
|
5628
|
+
# Pass arguments to `delete_restore_template` via a request object, either of type
|
|
5629
|
+
# {::Google::Cloud::BackupDR::V1::DeleteRestoreTemplateRequest} or an equivalent Hash.
|
|
5630
|
+
#
|
|
5631
|
+
# @param request [::Google::Cloud::BackupDR::V1::DeleteRestoreTemplateRequest, ::Hash]
|
|
5632
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5633
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5634
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5635
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5636
|
+
#
|
|
5637
|
+
# @overload delete_restore_template(name: nil, request_id: nil, force: nil)
|
|
5638
|
+
# Pass arguments to `delete_restore_template` via keyword arguments. Note that at
|
|
5639
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5640
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5641
|
+
#
|
|
5642
|
+
# @param name [::String]
|
|
5643
|
+
# Required. The name of the restore template to delete.
|
|
5644
|
+
# Format:
|
|
5645
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
|
|
5646
|
+
# @param request_id [::String]
|
|
5647
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
5648
|
+
# request ID so that if you must retry your request, the server will know to
|
|
5649
|
+
# ignore the request if it has already been completed.
|
|
5650
|
+
#
|
|
5651
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
5652
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
5653
|
+
# @param force [::Boolean]
|
|
5654
|
+
# Optional. If set to true, any child RestoreTemplateExecutions will also be
|
|
5655
|
+
# deleted. If false and the RestoreTemplate has any child executions, the
|
|
5656
|
+
# request will fail.
|
|
5657
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5658
|
+
# @yieldparam result [::Gapic::Operation]
|
|
5659
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5660
|
+
#
|
|
5661
|
+
# @return [::Gapic::Operation]
|
|
5662
|
+
#
|
|
5663
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5664
|
+
#
|
|
5665
|
+
# @example Basic example
|
|
5666
|
+
# require "google/cloud/backupdr/v1"
|
|
5667
|
+
#
|
|
5668
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5669
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5670
|
+
#
|
|
5671
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5672
|
+
# request = Google::Cloud::BackupDR::V1::DeleteRestoreTemplateRequest.new
|
|
5673
|
+
#
|
|
5674
|
+
# # Call the delete_restore_template method.
|
|
5675
|
+
# result = client.delete_restore_template request
|
|
5676
|
+
#
|
|
5677
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
5678
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
5679
|
+
# # Here is how to wait for a response.
|
|
5680
|
+
# result.wait_until_done! timeout: 60
|
|
5681
|
+
# if result.response?
|
|
5682
|
+
# p result.response
|
|
5683
|
+
# else
|
|
5684
|
+
# puts "No response received."
|
|
5685
|
+
# end
|
|
5686
|
+
#
|
|
5687
|
+
def delete_restore_template request, options = nil
|
|
5688
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5689
|
+
|
|
5690
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::DeleteRestoreTemplateRequest
|
|
5691
|
+
|
|
5692
|
+
# Converts hash and nil to an options object
|
|
5693
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5694
|
+
|
|
5695
|
+
# Customize the options with defaults
|
|
5696
|
+
call_metadata = @config.rpcs.delete_restore_template.metadata.to_h
|
|
5697
|
+
|
|
5698
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5699
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5700
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5701
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5702
|
+
transports_version_send: [:rest]
|
|
5703
|
+
|
|
5704
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5705
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5706
|
+
|
|
5707
|
+
options.apply_defaults timeout: @config.rpcs.delete_restore_template.timeout,
|
|
5708
|
+
metadata: call_metadata,
|
|
5709
|
+
retry_policy: @config.rpcs.delete_restore_template.retry_policy
|
|
5710
|
+
|
|
5711
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5712
|
+
metadata: @config.metadata,
|
|
5713
|
+
retry_policy: @config.retry_policy
|
|
5714
|
+
|
|
5715
|
+
@backup_dr_stub.delete_restore_template request, options do |result, operation|
|
|
5716
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
5717
|
+
yield result, operation if block_given?
|
|
5718
|
+
throw :response, result
|
|
5719
|
+
end
|
|
5720
|
+
rescue ::Gapic::Rest::Error => e
|
|
5721
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5722
|
+
end
|
|
5723
|
+
|
|
5724
|
+
##
|
|
5725
|
+
# Runs a RestoreTemplate.
|
|
5726
|
+
#
|
|
5727
|
+
# @overload run_restore_template(request, options = nil)
|
|
5728
|
+
# Pass arguments to `run_restore_template` via a request object, either of type
|
|
5729
|
+
# {::Google::Cloud::BackupDR::V1::RunRestoreTemplateRequest} or an equivalent Hash.
|
|
5730
|
+
#
|
|
5731
|
+
# @param request [::Google::Cloud::BackupDR::V1::RunRestoreTemplateRequest, ::Hash]
|
|
5732
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5733
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5734
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5735
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5736
|
+
#
|
|
5737
|
+
# @overload run_restore_template(name: nil, backup: nil, request_id: nil)
|
|
5738
|
+
# Pass arguments to `run_restore_template` via keyword arguments. Note that at
|
|
5739
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5740
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5741
|
+
#
|
|
5742
|
+
# @param name [::String]
|
|
5743
|
+
# Required. The name of the restore template to run.
|
|
5744
|
+
# Format:
|
|
5745
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}'
|
|
5746
|
+
# @param backup [::String]
|
|
5747
|
+
# Optional. The resource name of the Backup to restore from.
|
|
5748
|
+
# If not specified, the latest backup matching the backup selection
|
|
5749
|
+
# configuration in the RestoreTemplate will be used.
|
|
5750
|
+
# Format:
|
|
5751
|
+
# 'projects/\\{project}/locations/\\{location}/backupVaults/\\{backup_vault}/dataSources/\\{data_source}/backups/\\{backup}'
|
|
5752
|
+
# @param request_id [::String]
|
|
5753
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
5754
|
+
# request ID so that if you must retry your request, the server will know to
|
|
5755
|
+
# ignore the request if it has already been completed.
|
|
5756
|
+
#
|
|
5757
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
5758
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
5759
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5760
|
+
# @yieldparam result [::Gapic::Operation]
|
|
5761
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5762
|
+
#
|
|
5763
|
+
# @return [::Gapic::Operation]
|
|
5764
|
+
#
|
|
5765
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5766
|
+
#
|
|
5767
|
+
# @example Basic example
|
|
5768
|
+
# require "google/cloud/backupdr/v1"
|
|
5769
|
+
#
|
|
5770
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5771
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5772
|
+
#
|
|
5773
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5774
|
+
# request = Google::Cloud::BackupDR::V1::RunRestoreTemplateRequest.new
|
|
5775
|
+
#
|
|
5776
|
+
# # Call the run_restore_template method.
|
|
5777
|
+
# result = client.run_restore_template request
|
|
5778
|
+
#
|
|
5779
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
5780
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
5781
|
+
# # Here is how to wait for a response.
|
|
5782
|
+
# result.wait_until_done! timeout: 60
|
|
5783
|
+
# if result.response?
|
|
5784
|
+
# p result.response
|
|
5785
|
+
# else
|
|
5786
|
+
# puts "No response received."
|
|
5787
|
+
# end
|
|
5788
|
+
#
|
|
5789
|
+
def run_restore_template request, options = nil
|
|
5790
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5791
|
+
|
|
5792
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::RunRestoreTemplateRequest
|
|
5793
|
+
|
|
5794
|
+
# Converts hash and nil to an options object
|
|
5795
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5796
|
+
|
|
5797
|
+
# Customize the options with defaults
|
|
5798
|
+
call_metadata = @config.rpcs.run_restore_template.metadata.to_h
|
|
5799
|
+
|
|
5800
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5801
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5802
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5803
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5804
|
+
transports_version_send: [:rest]
|
|
5805
|
+
|
|
5806
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5807
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5808
|
+
|
|
5809
|
+
options.apply_defaults timeout: @config.rpcs.run_restore_template.timeout,
|
|
5810
|
+
metadata: call_metadata,
|
|
5811
|
+
retry_policy: @config.rpcs.run_restore_template.retry_policy
|
|
5812
|
+
|
|
5813
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5814
|
+
metadata: @config.metadata,
|
|
5815
|
+
retry_policy: @config.retry_policy
|
|
5816
|
+
|
|
5817
|
+
@backup_dr_stub.run_restore_template request, options do |result, operation|
|
|
5818
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
5819
|
+
yield result, operation if block_given?
|
|
5820
|
+
throw :response, result
|
|
5821
|
+
end
|
|
5822
|
+
rescue ::Gapic::Rest::Error => e
|
|
5823
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5824
|
+
end
|
|
5825
|
+
|
|
5826
|
+
##
|
|
5827
|
+
# Gets details of a RestoreTemplateExecution.
|
|
5828
|
+
#
|
|
5829
|
+
# @overload get_restore_template_execution(request, options = nil)
|
|
5830
|
+
# Pass arguments to `get_restore_template_execution` via a request object, either of type
|
|
5831
|
+
# {::Google::Cloud::BackupDR::V1::GetRestoreTemplateExecutionRequest} or an equivalent Hash.
|
|
5832
|
+
#
|
|
5833
|
+
# @param request [::Google::Cloud::BackupDR::V1::GetRestoreTemplateExecutionRequest, ::Hash]
|
|
5834
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5835
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5836
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5837
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5838
|
+
#
|
|
5839
|
+
# @overload get_restore_template_execution(name: nil)
|
|
5840
|
+
# Pass arguments to `get_restore_template_execution` via keyword arguments. Note that at
|
|
5841
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5842
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5843
|
+
#
|
|
5844
|
+
# @param name [::String]
|
|
5845
|
+
# Required. The name of the restore template execution to retrieve.
|
|
5846
|
+
# Format:
|
|
5847
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}/executions/\\{execution_id}'
|
|
5848
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5849
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreTemplateExecution]
|
|
5850
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5851
|
+
#
|
|
5852
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreTemplateExecution]
|
|
5853
|
+
#
|
|
5854
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5855
|
+
#
|
|
5856
|
+
# @example Basic example
|
|
5857
|
+
# require "google/cloud/backupdr/v1"
|
|
5858
|
+
#
|
|
5859
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5860
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5861
|
+
#
|
|
5862
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5863
|
+
# request = Google::Cloud::BackupDR::V1::GetRestoreTemplateExecutionRequest.new
|
|
5864
|
+
#
|
|
5865
|
+
# # Call the get_restore_template_execution method.
|
|
5866
|
+
# result = client.get_restore_template_execution request
|
|
5867
|
+
#
|
|
5868
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1::RestoreTemplateExecution.
|
|
5869
|
+
# p result
|
|
5870
|
+
#
|
|
5871
|
+
def get_restore_template_execution request, options = nil
|
|
5872
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5873
|
+
|
|
5874
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::GetRestoreTemplateExecutionRequest
|
|
5875
|
+
|
|
5876
|
+
# Converts hash and nil to an options object
|
|
5877
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5878
|
+
|
|
5879
|
+
# Customize the options with defaults
|
|
5880
|
+
call_metadata = @config.rpcs.get_restore_template_execution.metadata.to_h
|
|
5881
|
+
|
|
5882
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5883
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5884
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5885
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5886
|
+
transports_version_send: [:rest]
|
|
5887
|
+
|
|
5888
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5889
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5890
|
+
|
|
5891
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_template_execution.timeout,
|
|
5892
|
+
metadata: call_metadata,
|
|
5893
|
+
retry_policy: @config.rpcs.get_restore_template_execution.retry_policy
|
|
5894
|
+
|
|
5895
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5896
|
+
metadata: @config.metadata,
|
|
5897
|
+
retry_policy: @config.retry_policy
|
|
5898
|
+
|
|
5899
|
+
@backup_dr_stub.get_restore_template_execution request, options do |result, operation|
|
|
5900
|
+
yield result, operation if block_given?
|
|
5901
|
+
end
|
|
5902
|
+
rescue ::Gapic::Rest::Error => e
|
|
5903
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
5904
|
+
end
|
|
5905
|
+
|
|
5906
|
+
##
|
|
5907
|
+
# Lists RestoreTemplateExecutions in a given project, location and restore
|
|
5908
|
+
# template.
|
|
5909
|
+
#
|
|
5910
|
+
# @overload list_restore_template_executions(request, options = nil)
|
|
5911
|
+
# Pass arguments to `list_restore_template_executions` via a request object, either of type
|
|
5912
|
+
# {::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsRequest} or an equivalent Hash.
|
|
5913
|
+
#
|
|
5914
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsRequest, ::Hash]
|
|
5915
|
+
# A request object representing the call parameters. Required. To specify no
|
|
5916
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
5917
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
5918
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
5919
|
+
#
|
|
5920
|
+
# @overload list_restore_template_executions(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
5921
|
+
# Pass arguments to `list_restore_template_executions` via keyword arguments. Note that at
|
|
5922
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
5923
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
5924
|
+
#
|
|
5925
|
+
# @param parent [::String]
|
|
5926
|
+
# Required. The project, location, and restore template for which to retrieve
|
|
5927
|
+
# executions information.
|
|
5928
|
+
# Format:
|
|
5929
|
+
# `projects/{project}/locations/{location}/restoreTemplates/{restore_template}`.
|
|
5930
|
+
# @param page_size [::Integer]
|
|
5931
|
+
# Optional. Requested page size.
|
|
5932
|
+
# @param page_token [::String]
|
|
5933
|
+
# Optional. A token identifying a page of results.
|
|
5934
|
+
# @param filter [::String]
|
|
5935
|
+
# Optional. Filtering results.
|
|
5936
|
+
# @param order_by [::String]
|
|
5937
|
+
# Optional. Hint for how to order the results.
|
|
5938
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
5939
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreTemplateExecution>]
|
|
5940
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
5941
|
+
#
|
|
5942
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreTemplateExecution>]
|
|
5943
|
+
#
|
|
5944
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
5945
|
+
#
|
|
5946
|
+
# @example Basic example
|
|
5947
|
+
# require "google/cloud/backupdr/v1"
|
|
5948
|
+
#
|
|
5949
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
5950
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
5951
|
+
#
|
|
5952
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
5953
|
+
# request = Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsRequest.new
|
|
5954
|
+
#
|
|
5955
|
+
# # Call the list_restore_template_executions method.
|
|
5956
|
+
# result = client.list_restore_template_executions request
|
|
5957
|
+
#
|
|
5958
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
5959
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
5960
|
+
# result.each do |item|
|
|
5961
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::RestoreTemplateExecution.
|
|
5962
|
+
# p item
|
|
5963
|
+
# end
|
|
5964
|
+
#
|
|
5965
|
+
def list_restore_template_executions request, options = nil
|
|
5966
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
5967
|
+
|
|
5968
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListRestoreTemplateExecutionsRequest
|
|
5969
|
+
|
|
5970
|
+
# Converts hash and nil to an options object
|
|
5971
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
5972
|
+
|
|
5973
|
+
# Customize the options with defaults
|
|
5974
|
+
call_metadata = @config.rpcs.list_restore_template_executions.metadata.to_h
|
|
5975
|
+
|
|
5976
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
5977
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
5978
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
5979
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
5980
|
+
transports_version_send: [:rest]
|
|
5981
|
+
|
|
5982
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
5983
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
5984
|
+
|
|
5985
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_template_executions.timeout,
|
|
5986
|
+
metadata: call_metadata,
|
|
5987
|
+
retry_policy: @config.rpcs.list_restore_template_executions.retry_policy
|
|
5988
|
+
|
|
5989
|
+
options.apply_defaults timeout: @config.timeout,
|
|
5990
|
+
metadata: @config.metadata,
|
|
5991
|
+
retry_policy: @config.retry_policy
|
|
5992
|
+
|
|
5993
|
+
@backup_dr_stub.list_restore_template_executions request, options do |result, operation|
|
|
5994
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_template_executions, "restore_template_executions", request, result, options
|
|
5995
|
+
yield result, operation if block_given?
|
|
5996
|
+
throw :response, result
|
|
5997
|
+
end
|
|
5998
|
+
rescue ::Gapic::Rest::Error => e
|
|
5999
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6000
|
+
end
|
|
6001
|
+
|
|
6002
|
+
##
|
|
6003
|
+
# Triggers cleanup of restored resources created during execution.
|
|
6004
|
+
#
|
|
6005
|
+
# @overload trigger_restore_cleanup(request, options = nil)
|
|
6006
|
+
# Pass arguments to `trigger_restore_cleanup` via a request object, either of type
|
|
6007
|
+
# {::Google::Cloud::BackupDR::V1::TriggerRestoreCleanupRequest} or an equivalent Hash.
|
|
6008
|
+
#
|
|
6009
|
+
# @param request [::Google::Cloud::BackupDR::V1::TriggerRestoreCleanupRequest, ::Hash]
|
|
6010
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6011
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6012
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6013
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6014
|
+
#
|
|
6015
|
+
# @overload trigger_restore_cleanup(name: nil, request_id: nil)
|
|
6016
|
+
# Pass arguments to `trigger_restore_cleanup` via keyword arguments. Note that at
|
|
6017
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6018
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6019
|
+
#
|
|
6020
|
+
# @param name [::String]
|
|
6021
|
+
# Required. Name of the restore template execution.
|
|
6022
|
+
# Format:
|
|
6023
|
+
# 'projects/\\{project_id}/locations/\\{location}/restoreTemplates/\\{restore_template_id}/executions/\\{execution_id}'
|
|
6024
|
+
# @param request_id [::String]
|
|
6025
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6026
|
+
# request ID so that if you must retry your request, the server will know to
|
|
6027
|
+
# ignore the request if it has already been completed. The server will
|
|
6028
|
+
# guarantee that for at least 60 minutes after the first request.
|
|
6029
|
+
#
|
|
6030
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
6031
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
6032
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6033
|
+
# @yieldparam result [::Gapic::Operation]
|
|
6034
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6035
|
+
#
|
|
6036
|
+
# @return [::Gapic::Operation]
|
|
6037
|
+
#
|
|
6038
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6039
|
+
#
|
|
6040
|
+
# @example Basic example
|
|
6041
|
+
# require "google/cloud/backupdr/v1"
|
|
6042
|
+
#
|
|
6043
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6044
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6045
|
+
#
|
|
6046
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6047
|
+
# request = Google::Cloud::BackupDR::V1::TriggerRestoreCleanupRequest.new
|
|
6048
|
+
#
|
|
6049
|
+
# # Call the trigger_restore_cleanup method.
|
|
6050
|
+
# result = client.trigger_restore_cleanup request
|
|
6051
|
+
#
|
|
6052
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
6053
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
6054
|
+
# # Here is how to wait for a response.
|
|
6055
|
+
# result.wait_until_done! timeout: 60
|
|
6056
|
+
# if result.response?
|
|
6057
|
+
# p result.response
|
|
6058
|
+
# else
|
|
6059
|
+
# puts "No response received."
|
|
6060
|
+
# end
|
|
6061
|
+
#
|
|
6062
|
+
def trigger_restore_cleanup request, options = nil
|
|
6063
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6064
|
+
|
|
6065
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::TriggerRestoreCleanupRequest
|
|
6066
|
+
|
|
6067
|
+
# Converts hash and nil to an options object
|
|
6068
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6069
|
+
|
|
6070
|
+
# Customize the options with defaults
|
|
6071
|
+
call_metadata = @config.rpcs.trigger_restore_cleanup.metadata.to_h
|
|
6072
|
+
|
|
6073
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6074
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6075
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6076
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6077
|
+
transports_version_send: [:rest]
|
|
6078
|
+
|
|
6079
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6080
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6081
|
+
|
|
6082
|
+
options.apply_defaults timeout: @config.rpcs.trigger_restore_cleanup.timeout,
|
|
6083
|
+
metadata: call_metadata,
|
|
6084
|
+
retry_policy: @config.rpcs.trigger_restore_cleanup.retry_policy
|
|
6085
|
+
|
|
6086
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6087
|
+
metadata: @config.metadata,
|
|
6088
|
+
retry_policy: @config.retry_policy
|
|
6089
|
+
|
|
6090
|
+
@backup_dr_stub.trigger_restore_cleanup request, options do |result, operation|
|
|
6091
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
6092
|
+
yield result, operation if block_given?
|
|
6093
|
+
throw :response, result
|
|
6094
|
+
end
|
|
6095
|
+
rescue ::Gapic::Rest::Error => e
|
|
6096
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6097
|
+
end
|
|
6098
|
+
|
|
6099
|
+
##
|
|
6100
|
+
# Creates a new RestoreVerificationPlan in a given project and location.
|
|
6101
|
+
#
|
|
6102
|
+
# @overload create_restore_verification_plan(request, options = nil)
|
|
6103
|
+
# Pass arguments to `create_restore_verification_plan` via a request object, either of type
|
|
6104
|
+
# {::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanRequest} or an equivalent Hash.
|
|
6105
|
+
#
|
|
6106
|
+
# @param request [::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanRequest, ::Hash]
|
|
6107
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6108
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6109
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6110
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6111
|
+
#
|
|
6112
|
+
# @overload create_restore_verification_plan(parent: nil, restore_verification_plan_id: nil, restore_verification_plan: nil, request_id: nil)
|
|
6113
|
+
# Pass arguments to `create_restore_verification_plan` via keyword arguments. Note that at
|
|
6114
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6115
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6116
|
+
#
|
|
6117
|
+
# @param parent [::String]
|
|
6118
|
+
# Required. The `RestoreVerificationPlan` project and location in the format
|
|
6119
|
+
# `projects/{project}/locations/{location}`. In Google Cloud Backup and DR
|
|
6120
|
+
# locations map to Google Cloud regions, for example **us-central1**.
|
|
6121
|
+
# @param restore_verification_plan_id [::String]
|
|
6122
|
+
# Required. The name of the `RestoreVerificationPlan` to create. The name
|
|
6123
|
+
# must be unique for the specified project and location. The name must start
|
|
6124
|
+
# with a lowercase letter followed by up to 62 lowercase letters, numbers, or
|
|
6125
|
+
# hyphens. Pattern, `^[a-z]([-a-z0-9]*[a-z0-9])?$`.
|
|
6126
|
+
# @param restore_verification_plan [::Google::Cloud::BackupDR::V1::RestoreVerificationPlan, ::Hash]
|
|
6127
|
+
# Required. The `RestoreVerificationPlan` resource object to create.
|
|
6128
|
+
# @param request_id [::String]
|
|
6129
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6130
|
+
# request ID so that if you must retry your request, the server will know to
|
|
6131
|
+
# ignore the request if it has already been completed. The server will
|
|
6132
|
+
# guarantee that for at least 60 minutes since the first request.
|
|
6133
|
+
#
|
|
6134
|
+
# For example, consider a situation where you make an initial request and
|
|
6135
|
+
# the request times out. If you make the request again with the same request
|
|
6136
|
+
# ID, the server can check if original operation with the same request ID
|
|
6137
|
+
# was received, and if so, will ignore the second request. This prevents
|
|
6138
|
+
# clients from accidentally creating duplicate commitments.
|
|
6139
|
+
#
|
|
6140
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
6141
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
6142
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6143
|
+
# @yieldparam result [::Gapic::Operation]
|
|
6144
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6145
|
+
#
|
|
6146
|
+
# @return [::Gapic::Operation]
|
|
6147
|
+
#
|
|
6148
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6149
|
+
#
|
|
6150
|
+
# @example Basic example
|
|
6151
|
+
# require "google/cloud/backupdr/v1"
|
|
6152
|
+
#
|
|
6153
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6154
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6155
|
+
#
|
|
6156
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6157
|
+
# request = Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanRequest.new
|
|
6158
|
+
#
|
|
6159
|
+
# # Call the create_restore_verification_plan method.
|
|
6160
|
+
# result = client.create_restore_verification_plan request
|
|
6161
|
+
#
|
|
6162
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
6163
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
6164
|
+
# # Here is how to wait for a response.
|
|
6165
|
+
# result.wait_until_done! timeout: 60
|
|
6166
|
+
# if result.response?
|
|
6167
|
+
# p result.response
|
|
6168
|
+
# else
|
|
6169
|
+
# puts "No response received."
|
|
6170
|
+
# end
|
|
6171
|
+
#
|
|
6172
|
+
def create_restore_verification_plan request, options = nil
|
|
6173
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6174
|
+
|
|
6175
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanRequest
|
|
6176
|
+
|
|
6177
|
+
# Converts hash and nil to an options object
|
|
6178
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6179
|
+
|
|
6180
|
+
# Customize the options with defaults
|
|
6181
|
+
call_metadata = @config.rpcs.create_restore_verification_plan.metadata.to_h
|
|
6182
|
+
|
|
6183
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6184
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6185
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6186
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6187
|
+
transports_version_send: [:rest]
|
|
6188
|
+
|
|
6189
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6190
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6191
|
+
|
|
6192
|
+
options.apply_defaults timeout: @config.rpcs.create_restore_verification_plan.timeout,
|
|
6193
|
+
metadata: call_metadata,
|
|
6194
|
+
retry_policy: @config.rpcs.create_restore_verification_plan.retry_policy
|
|
6195
|
+
|
|
6196
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6197
|
+
metadata: @config.metadata,
|
|
6198
|
+
retry_policy: @config.retry_policy
|
|
6199
|
+
|
|
6200
|
+
@backup_dr_stub.create_restore_verification_plan request, options do |result, operation|
|
|
6201
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
6202
|
+
yield result, operation if block_given?
|
|
6203
|
+
throw :response, result
|
|
6204
|
+
end
|
|
6205
|
+
rescue ::Gapic::Rest::Error => e
|
|
6206
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6207
|
+
end
|
|
6208
|
+
|
|
6209
|
+
##
|
|
6210
|
+
# Creates a new RestoreVerificationPlanAssociation in a given
|
|
6211
|
+
# RestoreVerificationPlan.
|
|
6212
|
+
#
|
|
6213
|
+
# @overload create_restore_verification_plan_association(request, options = nil)
|
|
6214
|
+
# Pass arguments to `create_restore_verification_plan_association` via a request object, either of type
|
|
6215
|
+
# {::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
|
|
6216
|
+
#
|
|
6217
|
+
# @param request [::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanAssociationRequest, ::Hash]
|
|
6218
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6219
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6220
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6221
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6222
|
+
#
|
|
6223
|
+
# @overload create_restore_verification_plan_association(parent: nil, restore_verification_plan_association_id: nil, restore_verification_plan_association: nil, request_id: nil)
|
|
6224
|
+
# Pass arguments to `create_restore_verification_plan_association` via keyword arguments. Note that at
|
|
6225
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6226
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6227
|
+
#
|
|
6228
|
+
# @param parent [::String]
|
|
6229
|
+
# Required. The parent resource where this association will be created.
|
|
6230
|
+
# Format:
|
|
6231
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
|
|
6232
|
+
# @param restore_verification_plan_association_id [::String]
|
|
6233
|
+
# Required. The ID to use for the association, which will become the final
|
|
6234
|
+
# component of the association's resource name.
|
|
6235
|
+
#
|
|
6236
|
+
# This value should be 1-63 characters, and valid characters are
|
|
6237
|
+
# /[a-z0-9_-]/.
|
|
6238
|
+
# @param restore_verification_plan_association [::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation, ::Hash]
|
|
6239
|
+
# Required. The RestoreVerificationPlanAssociation resource to create.
|
|
6240
|
+
# @param request_id [::String]
|
|
6241
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6242
|
+
# request ID so that if you must retry your request, the server will know
|
|
6243
|
+
# that the server has already received the duplicate request and can avoid
|
|
6244
|
+
# responding with an error. The request ID must be a valid UUID with the
|
|
6245
|
+
# exception that zero UUID is not supported
|
|
6246
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
6247
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6248
|
+
# @yieldparam result [::Gapic::Operation]
|
|
6249
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6250
|
+
#
|
|
6251
|
+
# @return [::Gapic::Operation]
|
|
6252
|
+
#
|
|
6253
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6254
|
+
#
|
|
6255
|
+
# @example Basic example
|
|
6256
|
+
# require "google/cloud/backupdr/v1"
|
|
6257
|
+
#
|
|
6258
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6259
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6260
|
+
#
|
|
6261
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6262
|
+
# request = Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanAssociationRequest.new
|
|
6263
|
+
#
|
|
6264
|
+
# # Call the create_restore_verification_plan_association method.
|
|
6265
|
+
# result = client.create_restore_verification_plan_association request
|
|
6266
|
+
#
|
|
6267
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
6268
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
6269
|
+
# # Here is how to wait for a response.
|
|
6270
|
+
# result.wait_until_done! timeout: 60
|
|
6271
|
+
# if result.response?
|
|
6272
|
+
# p result.response
|
|
6273
|
+
# else
|
|
6274
|
+
# puts "No response received."
|
|
6275
|
+
# end
|
|
6276
|
+
#
|
|
6277
|
+
def create_restore_verification_plan_association request, options = nil
|
|
6278
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6279
|
+
|
|
6280
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::CreateRestoreVerificationPlanAssociationRequest
|
|
6281
|
+
|
|
6282
|
+
# Converts hash and nil to an options object
|
|
6283
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6284
|
+
|
|
6285
|
+
# Customize the options with defaults
|
|
6286
|
+
call_metadata = @config.rpcs.create_restore_verification_plan_association.metadata.to_h
|
|
6287
|
+
|
|
6288
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6289
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6290
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6291
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6292
|
+
transports_version_send: [:rest]
|
|
6293
|
+
|
|
6294
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6295
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6296
|
+
|
|
6297
|
+
options.apply_defaults timeout: @config.rpcs.create_restore_verification_plan_association.timeout,
|
|
6298
|
+
metadata: call_metadata,
|
|
6299
|
+
retry_policy: @config.rpcs.create_restore_verification_plan_association.retry_policy
|
|
6300
|
+
|
|
6301
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6302
|
+
metadata: @config.metadata,
|
|
6303
|
+
retry_policy: @config.retry_policy
|
|
6304
|
+
|
|
6305
|
+
@backup_dr_stub.create_restore_verification_plan_association request, options do |result, operation|
|
|
6306
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
6307
|
+
yield result, operation if block_given?
|
|
6308
|
+
throw :response, result
|
|
6309
|
+
end
|
|
6310
|
+
rescue ::Gapic::Rest::Error => e
|
|
6311
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6312
|
+
end
|
|
6313
|
+
|
|
6314
|
+
##
|
|
6315
|
+
# Gets details of a single RestoreVerificationPlanAssociation in a given
|
|
6316
|
+
# RestoreVerificationPlan.
|
|
6317
|
+
#
|
|
6318
|
+
# @overload get_restore_verification_plan_association(request, options = nil)
|
|
6319
|
+
# Pass arguments to `get_restore_verification_plan_association` via a request object, either of type
|
|
6320
|
+
# {::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
|
|
6321
|
+
#
|
|
6322
|
+
# @param request [::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanAssociationRequest, ::Hash]
|
|
6323
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6324
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6325
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6326
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6327
|
+
#
|
|
6328
|
+
# @overload get_restore_verification_plan_association(name: nil)
|
|
6329
|
+
# Pass arguments to `get_restore_verification_plan_association` via keyword arguments. Note that at
|
|
6330
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6331
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6332
|
+
#
|
|
6333
|
+
# @param name [::String]
|
|
6334
|
+
# Required. The resource name of the RestoreVerificationPlanAssociation to
|
|
6335
|
+
# retrieve.
|
|
6336
|
+
# Format:
|
|
6337
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
|
|
6338
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6339
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation]
|
|
6340
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6341
|
+
#
|
|
6342
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation]
|
|
6343
|
+
#
|
|
6344
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6345
|
+
#
|
|
6346
|
+
# @example Basic example
|
|
6347
|
+
# require "google/cloud/backupdr/v1"
|
|
6348
|
+
#
|
|
6349
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6350
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6351
|
+
#
|
|
6352
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6353
|
+
# request = Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanAssociationRequest.new
|
|
6354
|
+
#
|
|
6355
|
+
# # Call the get_restore_verification_plan_association method.
|
|
6356
|
+
# result = client.get_restore_verification_plan_association request
|
|
6357
|
+
#
|
|
6358
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation.
|
|
6359
|
+
# p result
|
|
6360
|
+
#
|
|
6361
|
+
def get_restore_verification_plan_association request, options = nil
|
|
6362
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6363
|
+
|
|
6364
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanAssociationRequest
|
|
6365
|
+
|
|
6366
|
+
# Converts hash and nil to an options object
|
|
6367
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6368
|
+
|
|
6369
|
+
# Customize the options with defaults
|
|
6370
|
+
call_metadata = @config.rpcs.get_restore_verification_plan_association.metadata.to_h
|
|
6371
|
+
|
|
6372
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6373
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6374
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6375
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6376
|
+
transports_version_send: [:rest]
|
|
6377
|
+
|
|
6378
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6379
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6380
|
+
|
|
6381
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_verification_plan_association.timeout,
|
|
6382
|
+
metadata: call_metadata,
|
|
6383
|
+
retry_policy: @config.rpcs.get_restore_verification_plan_association.retry_policy
|
|
6384
|
+
|
|
6385
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6386
|
+
metadata: @config.metadata,
|
|
6387
|
+
retry_policy: @config.retry_policy
|
|
6388
|
+
|
|
6389
|
+
@backup_dr_stub.get_restore_verification_plan_association request, options do |result, operation|
|
|
6390
|
+
yield result, operation if block_given?
|
|
6391
|
+
end
|
|
6392
|
+
rescue ::Gapic::Rest::Error => e
|
|
6393
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6394
|
+
end
|
|
6395
|
+
|
|
6396
|
+
##
|
|
6397
|
+
# Lists RestoreVerificationPlanAssociations in a given
|
|
6398
|
+
# RestoreVerificationPlan.
|
|
6399
|
+
#
|
|
6400
|
+
# @overload list_restore_verification_plan_associations(request, options = nil)
|
|
6401
|
+
# Pass arguments to `list_restore_verification_plan_associations` via a request object, either of type
|
|
6402
|
+
# {::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsRequest} or an equivalent Hash.
|
|
6403
|
+
#
|
|
6404
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsRequest, ::Hash]
|
|
6405
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6406
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6407
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6408
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6409
|
+
#
|
|
6410
|
+
# @overload list_restore_verification_plan_associations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
6411
|
+
# Pass arguments to `list_restore_verification_plan_associations` via keyword arguments. Note that at
|
|
6412
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6413
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6414
|
+
#
|
|
6415
|
+
# @param parent [::String]
|
|
6416
|
+
# Required. The parent RestoreVerificationPlan name.
|
|
6417
|
+
# Format:
|
|
6418
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
|
|
6419
|
+
# @param page_size [::Integer]
|
|
6420
|
+
# Optional. The maximum number of associations to return. The service may
|
|
6421
|
+
# return fewer than this value.
|
|
6422
|
+
# If unspecified, at most 500 associations will be returned.
|
|
6423
|
+
# The maximum value is 1000; values above 1000 will be coerced to 1000.
|
|
6424
|
+
# @param page_token [::String]
|
|
6425
|
+
# Optional. A page token, received from a previous
|
|
6426
|
+
# `ListRestoreVerificationPlanAssociations` call.
|
|
6427
|
+
# Provide this to retrieve the subsequent page.
|
|
6428
|
+
#
|
|
6429
|
+
# When paginating, all other parameters provided to
|
|
6430
|
+
# `ListRestoreVerificationPlanAssociations` must match the call that provided
|
|
6431
|
+
# the page token.
|
|
6432
|
+
# @param filter [::String]
|
|
6433
|
+
# Optional. Filtering results.
|
|
6434
|
+
# @param order_by [::String]
|
|
6435
|
+
# Optional. Hint for how to order the results.
|
|
6436
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6437
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation>]
|
|
6438
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6439
|
+
#
|
|
6440
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation>]
|
|
6441
|
+
#
|
|
6442
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6443
|
+
#
|
|
6444
|
+
# @example Basic example
|
|
6445
|
+
# require "google/cloud/backupdr/v1"
|
|
6446
|
+
#
|
|
6447
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6448
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6449
|
+
#
|
|
6450
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6451
|
+
# request = Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsRequest.new
|
|
6452
|
+
#
|
|
6453
|
+
# # Call the list_restore_verification_plan_associations method.
|
|
6454
|
+
# result = client.list_restore_verification_plan_associations request
|
|
6455
|
+
#
|
|
6456
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
6457
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
6458
|
+
# result.each do |item|
|
|
6459
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::RestoreVerificationPlanAssociation.
|
|
6460
|
+
# p item
|
|
6461
|
+
# end
|
|
6462
|
+
#
|
|
6463
|
+
def list_restore_verification_plan_associations request, options = nil
|
|
6464
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6465
|
+
|
|
6466
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlanAssociationsRequest
|
|
6467
|
+
|
|
6468
|
+
# Converts hash and nil to an options object
|
|
6469
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6470
|
+
|
|
6471
|
+
# Customize the options with defaults
|
|
6472
|
+
call_metadata = @config.rpcs.list_restore_verification_plan_associations.metadata.to_h
|
|
6473
|
+
|
|
6474
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6475
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6476
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6477
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6478
|
+
transports_version_send: [:rest]
|
|
6479
|
+
|
|
6480
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6481
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6482
|
+
|
|
6483
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_verification_plan_associations.timeout,
|
|
6484
|
+
metadata: call_metadata,
|
|
6485
|
+
retry_policy: @config.rpcs.list_restore_verification_plan_associations.retry_policy
|
|
6486
|
+
|
|
6487
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6488
|
+
metadata: @config.metadata,
|
|
6489
|
+
retry_policy: @config.retry_policy
|
|
6490
|
+
|
|
6491
|
+
@backup_dr_stub.list_restore_verification_plan_associations request, options do |result, operation|
|
|
6492
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_verification_plan_associations, "restore_verification_plan_associations", request, result, options
|
|
6493
|
+
yield result, operation if block_given?
|
|
6494
|
+
throw :response, result
|
|
6495
|
+
end
|
|
6496
|
+
rescue ::Gapic::Rest::Error => e
|
|
6497
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6498
|
+
end
|
|
6499
|
+
|
|
6500
|
+
##
|
|
6501
|
+
# Deletes a single RestoreVerificationPlanAssociation in a given
|
|
6502
|
+
# RestoreVerificationPlan.
|
|
6503
|
+
#
|
|
6504
|
+
# @overload delete_restore_verification_plan_association(request, options = nil)
|
|
6505
|
+
# Pass arguments to `delete_restore_verification_plan_association` via a request object, either of type
|
|
6506
|
+
# {::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanAssociationRequest} or an equivalent Hash.
|
|
6507
|
+
#
|
|
6508
|
+
# @param request [::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanAssociationRequest, ::Hash]
|
|
6509
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6510
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6511
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6512
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6513
|
+
#
|
|
6514
|
+
# @overload delete_restore_verification_plan_association(name: nil, request_id: nil)
|
|
6515
|
+
# Pass arguments to `delete_restore_verification_plan_association` via keyword arguments. Note that at
|
|
6516
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6517
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6518
|
+
#
|
|
6519
|
+
# @param name [::String]
|
|
6520
|
+
# Required. The resource name of the RestoreVerificationPlanAssociation to
|
|
6521
|
+
# delete.
|
|
6522
|
+
# Format:
|
|
6523
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
|
|
6524
|
+
# @param request_id [::String]
|
|
6525
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6526
|
+
# request ID so that if you must retry your request, the server will know
|
|
6527
|
+
# that the server has already received the duplicate request and can avoid
|
|
6528
|
+
# responding with an error. The request ID must be a valid UUID with the
|
|
6529
|
+
# exception that zero UUID is not supported
|
|
6530
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
6531
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6532
|
+
# @yieldparam result [::Gapic::Operation]
|
|
6533
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6534
|
+
#
|
|
6535
|
+
# @return [::Gapic::Operation]
|
|
6536
|
+
#
|
|
6537
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6538
|
+
#
|
|
6539
|
+
# @example Basic example
|
|
6540
|
+
# require "google/cloud/backupdr/v1"
|
|
6541
|
+
#
|
|
6542
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6543
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6544
|
+
#
|
|
6545
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6546
|
+
# request = Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanAssociationRequest.new
|
|
6547
|
+
#
|
|
6548
|
+
# # Call the delete_restore_verification_plan_association method.
|
|
6549
|
+
# result = client.delete_restore_verification_plan_association request
|
|
6550
|
+
#
|
|
6551
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
6552
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
6553
|
+
# # Here is how to wait for a response.
|
|
6554
|
+
# result.wait_until_done! timeout: 60
|
|
6555
|
+
# if result.response?
|
|
6556
|
+
# p result.response
|
|
6557
|
+
# else
|
|
6558
|
+
# puts "No response received."
|
|
6559
|
+
# end
|
|
6560
|
+
#
|
|
6561
|
+
def delete_restore_verification_plan_association request, options = nil
|
|
6562
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6563
|
+
|
|
6564
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanAssociationRequest
|
|
6565
|
+
|
|
6566
|
+
# Converts hash and nil to an options object
|
|
6567
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6568
|
+
|
|
6569
|
+
# Customize the options with defaults
|
|
6570
|
+
call_metadata = @config.rpcs.delete_restore_verification_plan_association.metadata.to_h
|
|
6571
|
+
|
|
6572
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6573
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6574
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6575
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6576
|
+
transports_version_send: [:rest]
|
|
6577
|
+
|
|
6578
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6579
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6580
|
+
|
|
6581
|
+
options.apply_defaults timeout: @config.rpcs.delete_restore_verification_plan_association.timeout,
|
|
6582
|
+
metadata: call_metadata,
|
|
6583
|
+
retry_policy: @config.rpcs.delete_restore_verification_plan_association.retry_policy
|
|
6584
|
+
|
|
6585
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6586
|
+
metadata: @config.metadata,
|
|
6587
|
+
retry_policy: @config.retry_policy
|
|
6588
|
+
|
|
6589
|
+
@backup_dr_stub.delete_restore_verification_plan_association request, options do |result, operation|
|
|
6590
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
6591
|
+
yield result, operation if block_given?
|
|
6592
|
+
throw :response, result
|
|
6593
|
+
end
|
|
6594
|
+
rescue ::Gapic::Rest::Error => e
|
|
6595
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6596
|
+
end
|
|
6597
|
+
|
|
6598
|
+
##
|
|
6599
|
+
# Triggers a new Restore Verification for the association in a given
|
|
6600
|
+
# RestoreVerificationPlan.
|
|
6601
|
+
#
|
|
6602
|
+
# @overload trigger_restore_verification(request, options = nil)
|
|
6603
|
+
# Pass arguments to `trigger_restore_verification` via a request object, either of type
|
|
6604
|
+
# {::Google::Cloud::BackupDR::V1::TriggerRestoreVerificationRequest} or an equivalent Hash.
|
|
6605
|
+
#
|
|
6606
|
+
# @param request [::Google::Cloud::BackupDR::V1::TriggerRestoreVerificationRequest, ::Hash]
|
|
6607
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6608
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6609
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6610
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6611
|
+
#
|
|
6612
|
+
# @overload trigger_restore_verification(name: nil, request_id: nil)
|
|
6613
|
+
# Pass arguments to `trigger_restore_verification` via keyword arguments. Note that at
|
|
6614
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6615
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6616
|
+
#
|
|
6617
|
+
# @param name [::String]
|
|
6618
|
+
# Required. The resource name of the RestoreVerificationPlanAssociation to
|
|
6619
|
+
# trigger.
|
|
6620
|
+
# Format:
|
|
6621
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
|
|
6622
|
+
# @param request_id [::String]
|
|
6623
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6624
|
+
# request ID so that if you must retry your request, the server will know
|
|
6625
|
+
# that the server has already received the duplicate request and can avoid
|
|
6626
|
+
# responding with an error. The request ID must be a valid UUID with the
|
|
6627
|
+
# exception that zero UUID is not supported
|
|
6628
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
6629
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6630
|
+
# @yieldparam result [::Gapic::Operation]
|
|
6631
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6632
|
+
#
|
|
6633
|
+
# @return [::Gapic::Operation]
|
|
6634
|
+
#
|
|
6635
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6636
|
+
#
|
|
6637
|
+
# @example Basic example
|
|
6638
|
+
# require "google/cloud/backupdr/v1"
|
|
6639
|
+
#
|
|
6640
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6641
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6642
|
+
#
|
|
6643
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6644
|
+
# request = Google::Cloud::BackupDR::V1::TriggerRestoreVerificationRequest.new
|
|
6645
|
+
#
|
|
6646
|
+
# # Call the trigger_restore_verification method.
|
|
6647
|
+
# result = client.trigger_restore_verification request
|
|
6648
|
+
#
|
|
6649
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
6650
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
6651
|
+
# # Here is how to wait for a response.
|
|
6652
|
+
# result.wait_until_done! timeout: 60
|
|
6653
|
+
# if result.response?
|
|
6654
|
+
# p result.response
|
|
6655
|
+
# else
|
|
6656
|
+
# puts "No response received."
|
|
6657
|
+
# end
|
|
6658
|
+
#
|
|
6659
|
+
def trigger_restore_verification request, options = nil
|
|
6660
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6661
|
+
|
|
6662
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::TriggerRestoreVerificationRequest
|
|
6663
|
+
|
|
6664
|
+
# Converts hash and nil to an options object
|
|
6665
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6666
|
+
|
|
6667
|
+
# Customize the options with defaults
|
|
6668
|
+
call_metadata = @config.rpcs.trigger_restore_verification.metadata.to_h
|
|
6669
|
+
|
|
6670
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6671
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6672
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6673
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6674
|
+
transports_version_send: [:rest]
|
|
6675
|
+
|
|
6676
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6677
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6678
|
+
|
|
6679
|
+
options.apply_defaults timeout: @config.rpcs.trigger_restore_verification.timeout,
|
|
6680
|
+
metadata: call_metadata,
|
|
6681
|
+
retry_policy: @config.rpcs.trigger_restore_verification.retry_policy
|
|
6682
|
+
|
|
6683
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6684
|
+
metadata: @config.metadata,
|
|
6685
|
+
retry_policy: @config.retry_policy
|
|
6686
|
+
|
|
6687
|
+
@backup_dr_stub.trigger_restore_verification request, options do |result, operation|
|
|
6688
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
6689
|
+
yield result, operation if block_given?
|
|
6690
|
+
throw :response, result
|
|
6691
|
+
end
|
|
6692
|
+
rescue ::Gapic::Rest::Error => e
|
|
6693
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6694
|
+
end
|
|
6695
|
+
|
|
6696
|
+
##
|
|
6697
|
+
# Gets details of a single RestoreVerificationPlan. Returns the requested
|
|
6698
|
+
# RestoreVerificationPlan.
|
|
6699
|
+
#
|
|
6700
|
+
# @overload get_restore_verification_plan(request, options = nil)
|
|
6701
|
+
# Pass arguments to `get_restore_verification_plan` via a request object, either of type
|
|
6702
|
+
# {::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanRequest} or an equivalent Hash.
|
|
6703
|
+
#
|
|
6704
|
+
# @param request [::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanRequest, ::Hash]
|
|
6705
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6706
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6707
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6708
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6709
|
+
#
|
|
6710
|
+
# @overload get_restore_verification_plan(name: nil)
|
|
6711
|
+
# Pass arguments to `get_restore_verification_plan` via keyword arguments. Note that at
|
|
6712
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6713
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6714
|
+
#
|
|
6715
|
+
# @param name [::String]
|
|
6716
|
+
# Required. The resource name of the `RestoreVerificationPlan` to retrieve.
|
|
6717
|
+
#
|
|
6718
|
+
# Format:
|
|
6719
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}`
|
|
6720
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6721
|
+
# @yieldparam result [::Google::Cloud::BackupDR::V1::RestoreVerificationPlan]
|
|
6722
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6723
|
+
#
|
|
6724
|
+
# @return [::Google::Cloud::BackupDR::V1::RestoreVerificationPlan]
|
|
6725
|
+
#
|
|
6726
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6727
|
+
#
|
|
6728
|
+
# @example Basic example
|
|
6729
|
+
# require "google/cloud/backupdr/v1"
|
|
6730
|
+
#
|
|
6731
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6732
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6733
|
+
#
|
|
6734
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6735
|
+
# request = Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanRequest.new
|
|
6736
|
+
#
|
|
6737
|
+
# # Call the get_restore_verification_plan method.
|
|
6738
|
+
# result = client.get_restore_verification_plan request
|
|
6739
|
+
#
|
|
6740
|
+
# # The returned object is of type Google::Cloud::BackupDR::V1::RestoreVerificationPlan.
|
|
6741
|
+
# p result
|
|
6742
|
+
#
|
|
6743
|
+
def get_restore_verification_plan request, options = nil
|
|
6744
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6745
|
+
|
|
6746
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::GetRestoreVerificationPlanRequest
|
|
6747
|
+
|
|
6748
|
+
# Converts hash and nil to an options object
|
|
6749
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6750
|
+
|
|
6751
|
+
# Customize the options with defaults
|
|
6752
|
+
call_metadata = @config.rpcs.get_restore_verification_plan.metadata.to_h
|
|
6753
|
+
|
|
6754
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6755
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6756
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6757
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6758
|
+
transports_version_send: [:rest]
|
|
6759
|
+
|
|
6760
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6761
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6762
|
+
|
|
6763
|
+
options.apply_defaults timeout: @config.rpcs.get_restore_verification_plan.timeout,
|
|
6764
|
+
metadata: call_metadata,
|
|
6765
|
+
retry_policy: @config.rpcs.get_restore_verification_plan.retry_policy
|
|
6766
|
+
|
|
6767
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6768
|
+
metadata: @config.metadata,
|
|
6769
|
+
retry_policy: @config.retry_policy
|
|
6770
|
+
|
|
6771
|
+
@backup_dr_stub.get_restore_verification_plan request, options do |result, operation|
|
|
6772
|
+
yield result, operation if block_given?
|
|
6773
|
+
end
|
|
6774
|
+
rescue ::Gapic::Rest::Error => e
|
|
6775
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6776
|
+
end
|
|
6777
|
+
|
|
6778
|
+
##
|
|
6779
|
+
# Lists RestoreVerificationPlans in a given project and location.
|
|
6780
|
+
#
|
|
6781
|
+
# @overload list_restore_verification_plans(request, options = nil)
|
|
6782
|
+
# Pass arguments to `list_restore_verification_plans` via a request object, either of type
|
|
6783
|
+
# {::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansRequest} or an equivalent Hash.
|
|
6784
|
+
#
|
|
6785
|
+
# @param request [::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansRequest, ::Hash]
|
|
6786
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6787
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6788
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6789
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6790
|
+
#
|
|
6791
|
+
# @overload list_restore_verification_plans(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil)
|
|
6792
|
+
# Pass arguments to `list_restore_verification_plans` via keyword arguments. Note that at
|
|
6793
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6794
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6795
|
+
#
|
|
6796
|
+
# @param parent [::String]
|
|
6797
|
+
# Required. The project and location for which to retrieve
|
|
6798
|
+
# `RestoreVerificationPlans` information. Format:
|
|
6799
|
+
# `projects/{project}/locations/{location}`. In Google Cloud Backup and DR,
|
|
6800
|
+
# locations map to Google Cloud regions, for example **us-central1**. To
|
|
6801
|
+
# retrieve restore verification plans for all locations, use
|
|
6802
|
+
# "-" for the `{location}` value.
|
|
6803
|
+
# @param page_size [::Integer]
|
|
6804
|
+
# Optional. The maximum number of `RestoreVerificationPlans` to return in a
|
|
6805
|
+
# single response. If not specified, a default value will be chosen by the
|
|
6806
|
+
# service. Note that the response may include a partial list and a caller
|
|
6807
|
+
# should only rely on the response's
|
|
6808
|
+
# {::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansResponse#next_page_token next_page_token}
|
|
6809
|
+
# to determine if there are more instances left to be queried.
|
|
6810
|
+
# @param page_token [::String]
|
|
6811
|
+
# Optional. The value of
|
|
6812
|
+
# {::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansResponse#next_page_token next_page_token}
|
|
6813
|
+
# received from a previous `ListRestoreVerificationPlans` call.
|
|
6814
|
+
# Provide this to retrieve the subsequent page in a multi-page list of
|
|
6815
|
+
# results. When paginating, all other parameters provided to
|
|
6816
|
+
# `ListRestoreVerificationPlans` must match the call that provided the page
|
|
6817
|
+
# token.
|
|
6818
|
+
# @param filter [::String]
|
|
6819
|
+
# Optional. Field match expression used to filter the results.
|
|
6820
|
+
# @param order_by [::String]
|
|
6821
|
+
# Optional. Field by which to sort the results.
|
|
6822
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6823
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreVerificationPlan>]
|
|
6824
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6825
|
+
#
|
|
6826
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::BackupDR::V1::RestoreVerificationPlan>]
|
|
6827
|
+
#
|
|
6828
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6829
|
+
#
|
|
6830
|
+
# @example Basic example
|
|
6831
|
+
# require "google/cloud/backupdr/v1"
|
|
6832
|
+
#
|
|
6833
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6834
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6835
|
+
#
|
|
6836
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6837
|
+
# request = Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansRequest.new
|
|
6838
|
+
#
|
|
6839
|
+
# # Call the list_restore_verification_plans method.
|
|
6840
|
+
# result = client.list_restore_verification_plans request
|
|
6841
|
+
#
|
|
6842
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
|
6843
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
|
6844
|
+
# result.each do |item|
|
|
6845
|
+
# # Each element is of type ::Google::Cloud::BackupDR::V1::RestoreVerificationPlan.
|
|
6846
|
+
# p item
|
|
6847
|
+
# end
|
|
6848
|
+
#
|
|
6849
|
+
def list_restore_verification_plans request, options = nil
|
|
6850
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6851
|
+
|
|
6852
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::ListRestoreVerificationPlansRequest
|
|
6853
|
+
|
|
6854
|
+
# Converts hash and nil to an options object
|
|
6855
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6856
|
+
|
|
6857
|
+
# Customize the options with defaults
|
|
6858
|
+
call_metadata = @config.rpcs.list_restore_verification_plans.metadata.to_h
|
|
6859
|
+
|
|
6860
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6861
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6862
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6863
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6864
|
+
transports_version_send: [:rest]
|
|
6865
|
+
|
|
6866
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6867
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6868
|
+
|
|
6869
|
+
options.apply_defaults timeout: @config.rpcs.list_restore_verification_plans.timeout,
|
|
6870
|
+
metadata: call_metadata,
|
|
6871
|
+
retry_policy: @config.rpcs.list_restore_verification_plans.retry_policy
|
|
6872
|
+
|
|
6873
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6874
|
+
metadata: @config.metadata,
|
|
6875
|
+
retry_policy: @config.retry_policy
|
|
6876
|
+
|
|
6877
|
+
@backup_dr_stub.list_restore_verification_plans request, options do |result, operation|
|
|
6878
|
+
result = ::Gapic::Rest::PagedEnumerable.new @backup_dr_stub, :list_restore_verification_plans, "restore_verification_plans", request, result, options
|
|
6879
|
+
yield result, operation if block_given?
|
|
6880
|
+
throw :response, result
|
|
6881
|
+
end
|
|
6882
|
+
rescue ::Gapic::Rest::Error => e
|
|
6883
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6884
|
+
end
|
|
6885
|
+
|
|
6886
|
+
##
|
|
6887
|
+
# Deletes a single RestoreVerificationPlan. If the `force` flag is set to
|
|
6888
|
+
# `true`, any RestoreVerificationPlanAssociations linked to this
|
|
6889
|
+
# RestoreVerificationPlan will also be deleted.
|
|
6890
|
+
#
|
|
6891
|
+
# @overload delete_restore_verification_plan(request, options = nil)
|
|
6892
|
+
# Pass arguments to `delete_restore_verification_plan` via a request object, either of type
|
|
6893
|
+
# {::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanRequest} or an equivalent Hash.
|
|
6894
|
+
#
|
|
6895
|
+
# @param request [::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanRequest, ::Hash]
|
|
6896
|
+
# A request object representing the call parameters. Required. To specify no
|
|
6897
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
|
6898
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
|
6899
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
|
6900
|
+
#
|
|
6901
|
+
# @overload delete_restore_verification_plan(name: nil, request_id: nil, force: nil)
|
|
6902
|
+
# Pass arguments to `delete_restore_verification_plan` via keyword arguments. Note that at
|
|
6903
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
|
6904
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
|
6905
|
+
#
|
|
6906
|
+
# @param name [::String]
|
|
6907
|
+
# Required. The resource name of the `RestoreVerificationPlan` to delete.
|
|
6908
|
+
#
|
|
6909
|
+
# Format:
|
|
6910
|
+
# `projects/{project}/locations/{location}/restoreVerificationPlans/{restoreVerificationPlan}`
|
|
6911
|
+
# @param request_id [::String]
|
|
6912
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
|
6913
|
+
# request ID so that if you must retry your request, the server will know to
|
|
6914
|
+
# ignore the request if it has already been completed. The server will
|
|
6915
|
+
# guarantee that for at least 60 minutes after the first request.
|
|
6916
|
+
#
|
|
6917
|
+
# For example, consider a situation where you make an initial request and
|
|
6918
|
+
# the request times out. If you make the request again with the same request
|
|
6919
|
+
# ID, the server can check if original operation with the same request ID
|
|
6920
|
+
# was received, and if so, will ignore the second request. This prevents
|
|
6921
|
+
# clients from accidentally creating duplicate commitments.
|
|
6922
|
+
#
|
|
6923
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
|
6924
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
|
6925
|
+
# @param force [::Boolean]
|
|
6926
|
+
# Optional. If set to true, any RestoreVerificationPlanAssociations linked to
|
|
6927
|
+
# this RestoreVerificationPlan will also be deleted.
|
|
6928
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
|
6929
|
+
# @yieldparam result [::Gapic::Operation]
|
|
6930
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
|
6931
|
+
#
|
|
6932
|
+
# @return [::Gapic::Operation]
|
|
6933
|
+
#
|
|
6934
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
6935
|
+
#
|
|
6936
|
+
# @example Basic example
|
|
6937
|
+
# require "google/cloud/backupdr/v1"
|
|
6938
|
+
#
|
|
6939
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
6940
|
+
# client = Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new
|
|
6941
|
+
#
|
|
6942
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
6943
|
+
# request = Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanRequest.new
|
|
6944
|
+
#
|
|
6945
|
+
# # Call the delete_restore_verification_plan method.
|
|
6946
|
+
# result = client.delete_restore_verification_plan request
|
|
6947
|
+
#
|
|
6948
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
|
6949
|
+
# # check the status of an operation, cancel it, or wait for results.
|
|
6950
|
+
# # Here is how to wait for a response.
|
|
6951
|
+
# result.wait_until_done! timeout: 60
|
|
6952
|
+
# if result.response?
|
|
6953
|
+
# p result.response
|
|
6954
|
+
# else
|
|
6955
|
+
# puts "No response received."
|
|
6956
|
+
# end
|
|
6957
|
+
#
|
|
6958
|
+
def delete_restore_verification_plan request, options = nil
|
|
6959
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
6960
|
+
|
|
6961
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::BackupDR::V1::DeleteRestoreVerificationPlanRequest
|
|
6962
|
+
|
|
6963
|
+
# Converts hash and nil to an options object
|
|
6964
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
|
6965
|
+
|
|
6966
|
+
# Customize the options with defaults
|
|
6967
|
+
call_metadata = @config.rpcs.delete_restore_verification_plan.metadata.to_h
|
|
6968
|
+
|
|
6969
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
|
6970
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
|
6971
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
|
6972
|
+
gapic_version: ::Google::Cloud::BackupDR::V1::VERSION,
|
|
6973
|
+
transports_version_send: [:rest]
|
|
6974
|
+
|
|
6975
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
|
6976
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
|
6977
|
+
|
|
6978
|
+
options.apply_defaults timeout: @config.rpcs.delete_restore_verification_plan.timeout,
|
|
6979
|
+
metadata: call_metadata,
|
|
6980
|
+
retry_policy: @config.rpcs.delete_restore_verification_plan.retry_policy
|
|
6981
|
+
|
|
6982
|
+
options.apply_defaults timeout: @config.timeout,
|
|
6983
|
+
metadata: @config.metadata,
|
|
6984
|
+
retry_policy: @config.retry_policy
|
|
6985
|
+
|
|
6986
|
+
@backup_dr_stub.delete_restore_verification_plan request, options do |result, operation|
|
|
6987
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
|
6988
|
+
yield result, operation if block_given?
|
|
6989
|
+
throw :response, result
|
|
6990
|
+
end
|
|
6991
|
+
rescue ::Gapic::Rest::Error => e
|
|
6992
|
+
raise ::Google::Cloud::Error.from_error(e)
|
|
6993
|
+
end
|
|
6994
|
+
|
|
6995
|
+
##
|
|
6996
|
+
# Configuration class for the BackupDR REST API.
|
|
6997
|
+
#
|
|
6998
|
+
# This class represents the configuration for BackupDR REST,
|
|
6999
|
+
# providing control over timeouts, retry behavior, logging, transport
|
|
7000
|
+
# parameters, and other low-level controls. Certain parameters can also be
|
|
7001
|
+
# applied individually to specific RPCs. See
|
|
7002
|
+
# {::Google::Cloud::BackupDR::V1::BackupDR::Rest::Client::Configuration::Rpcs}
|
|
7003
|
+
# for a list of RPCs that can be configured independently.
|
|
7004
|
+
#
|
|
7005
|
+
# Configuration can be applied globally to all clients, or to a single client
|
|
7006
|
+
# on construction.
|
|
7007
|
+
#
|
|
7008
|
+
# @example
|
|
7009
|
+
#
|
|
7010
|
+
# # Modify the global config, setting the timeout for
|
|
7011
|
+
# # list_management_servers to 20 seconds,
|
|
7012
|
+
# # and all remaining timeouts to 10 seconds.
|
|
7013
|
+
# ::Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.configure do |config|
|
|
7014
|
+
# config.timeout = 10.0
|
|
7015
|
+
# config.rpcs.list_management_servers.timeout = 20.0
|
|
7016
|
+
# end
|
|
7017
|
+
#
|
|
7018
|
+
# # Apply the above configuration only to a new client.
|
|
7019
|
+
# client = ::Google::Cloud::BackupDR::V1::BackupDR::Rest::Client.new do |config|
|
|
7020
|
+
# config.timeout = 10.0
|
|
7021
|
+
# config.rpcs.list_management_servers.timeout = 20.0
|
|
7022
|
+
# end
|
|
7023
|
+
#
|
|
7024
|
+
# @!attribute [rw] endpoint
|
|
7025
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
7026
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
7027
|
+
# @return [::String,nil]
|
|
7028
|
+
# @!attribute [rw] credentials
|
|
7029
|
+
# Credentials to send with calls. You may provide any of the following types:
|
|
7030
|
+
# * (`String`) The path to a service account key file in JSON format
|
|
7031
|
+
# * (`Hash`) A service account key as a Hash
|
|
7032
|
+
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
|
7033
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
|
7034
|
+
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
|
7035
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
|
7036
|
+
# * (`nil`) indicating no credentials
|
|
7037
|
+
#
|
|
7038
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
|
7039
|
+
# external source for authentication to Google Cloud, you must validate it before
|
|
7040
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
|
7041
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
|
7042
|
+
# For more information, refer to [Validate credential configurations from external
|
|
7043
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
|
7044
|
+
# @return [::Object]
|
|
7045
|
+
# @!attribute [rw] scope
|
|
7046
|
+
# The OAuth scopes
|
|
7047
|
+
# @return [::Array<::String>]
|
|
7048
|
+
# @!attribute [rw] lib_name
|
|
7049
|
+
# The library name as recorded in instrumentation and logging
|
|
7050
|
+
# @return [::String]
|
|
7051
|
+
# @!attribute [rw] lib_version
|
|
7052
|
+
# The library version as recorded in instrumentation and logging
|
|
7053
|
+
# @return [::String]
|
|
7054
|
+
# @!attribute [rw] timeout
|
|
7055
|
+
# The call timeout in seconds.
|
|
7056
|
+
# @return [::Numeric]
|
|
7057
|
+
# @!attribute [rw] metadata
|
|
7058
|
+
# Additional headers to be sent with the call.
|
|
7059
|
+
# @return [::Hash{::Symbol=>::String}]
|
|
7060
|
+
# @!attribute [rw] retry_policy
|
|
7061
|
+
# The retry policy. The value is a hash with the following keys:
|
|
7062
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
7063
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
7064
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
7065
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
7066
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
7067
|
+
# trigger a retry.
|
|
7068
|
+
# @return [::Hash]
|
|
7069
|
+
# @!attribute [rw] quota_project
|
|
7070
|
+
# A separate project against which to charge quota.
|
|
7071
|
+
# @return [::String]
|
|
7072
|
+
# @!attribute [rw] universe_domain
|
|
7073
|
+
# The universe domain within which to make requests. This determines the
|
|
7074
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
7075
|
+
# universe (usually the default "googleapis.com" universe).
|
|
7076
|
+
# @return [::String,nil]
|
|
7077
|
+
# @!attribute [rw] logger
|
|
7078
|
+
# A custom logger to use for request/response debug logging, or the value
|
|
7079
|
+
# `:default` (the default) to construct a default logger, or `nil` to
|
|
7080
|
+
# explicitly disable logging.
|
|
7081
|
+
# @return [::Logger,:default,nil]
|
|
7082
|
+
#
|
|
7083
|
+
class Configuration
|
|
7084
|
+
extend ::Gapic::Config
|
|
7085
|
+
|
|
7086
|
+
# @private
|
|
7087
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
7088
|
+
DEFAULT_ENDPOINT = "backupdr.googleapis.com"
|
|
7089
|
+
|
|
7090
|
+
config_attr :endpoint, nil, ::String, nil
|
|
7091
|
+
config_attr :credentials, nil do |value|
|
|
7092
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
|
7093
|
+
allowed.any? { |klass| klass === value }
|
|
7094
|
+
end
|
|
7095
|
+
config_attr :scope, nil, ::String, ::Array, nil
|
|
7096
|
+
config_attr :lib_name, nil, ::String, nil
|
|
7097
|
+
config_attr :lib_version, nil, ::String, nil
|
|
7098
|
+
config_attr :timeout, nil, ::Numeric, nil
|
|
7099
|
+
config_attr :metadata, nil, ::Hash, nil
|
|
7100
|
+
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
7101
|
+
config_attr :quota_project, nil, ::String, nil
|
|
7102
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
7103
|
+
|
|
7104
|
+
# @private
|
|
7105
|
+
# Overrides for http bindings for the RPCs of this service
|
|
7106
|
+
# are only used when this service is used as mixin, and only
|
|
7107
|
+
# by the host service.
|
|
7108
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
|
7109
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
|
7110
|
+
config_attr :logger, :default, ::Logger, nil, :default
|
|
7111
|
+
|
|
7112
|
+
# @private
|
|
7113
|
+
def initialize parent_config = nil
|
|
7114
|
+
@parent_config = parent_config unless parent_config.nil?
|
|
7115
|
+
|
|
7116
|
+
yield self if block_given?
|
|
7117
|
+
end
|
|
7118
|
+
|
|
7119
|
+
##
|
|
7120
|
+
# Configurations for individual RPCs
|
|
7121
|
+
# @return [Rpcs]
|
|
7122
|
+
#
|
|
7123
|
+
def rpcs
|
|
7124
|
+
@rpcs ||= begin
|
|
7125
|
+
parent_rpcs = nil
|
|
7126
|
+
parent_rpcs = @parent_config.rpcs if defined?(@parent_config) && @parent_config.respond_to?(:rpcs)
|
|
7127
|
+
Rpcs.new parent_rpcs
|
|
7128
|
+
end
|
|
7129
|
+
end
|
|
7130
|
+
|
|
7131
|
+
##
|
|
7132
|
+
# Configuration RPC class for the BackupDR API.
|
|
7133
|
+
#
|
|
7134
|
+
# Includes fields providing the configuration for each RPC in this service.
|
|
7135
|
+
# Each configuration object is of type `Gapic::Config::Method` and includes
|
|
7136
|
+
# the following configuration fields:
|
|
7137
|
+
#
|
|
7138
|
+
# * `timeout` (*type:* `Numeric`) - The call timeout in seconds
|
|
7139
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) - Additional headers
|
|
7140
|
+
# * `retry_policy (*type:* `Hash`) - The retry policy. The policy fields
|
|
7141
|
+
# include the following keys:
|
|
7142
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
|
7143
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
|
7144
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
|
7145
|
+
# * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
|
|
7146
|
+
# * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
|
|
7147
|
+
# trigger a retry.
|
|
4220
7148
|
#
|
|
4221
7149
|
class Rpcs
|
|
4222
7150
|
##
|
|
@@ -4404,6 +7332,151 @@ module Google
|
|
|
4404
7332
|
# @return [::Gapic::Config::Method]
|
|
4405
7333
|
#
|
|
4406
7334
|
attr_reader :initialize_service
|
|
7335
|
+
##
|
|
7336
|
+
# RPC-specific configuration for `create_auto_protection_policy`
|
|
7337
|
+
# @return [::Gapic::Config::Method]
|
|
7338
|
+
#
|
|
7339
|
+
attr_reader :create_auto_protection_policy
|
|
7340
|
+
##
|
|
7341
|
+
# RPC-specific configuration for `list_auto_protection_policies`
|
|
7342
|
+
# @return [::Gapic::Config::Method]
|
|
7343
|
+
#
|
|
7344
|
+
attr_reader :list_auto_protection_policies
|
|
7345
|
+
##
|
|
7346
|
+
# RPC-specific configuration for `get_auto_protection_policy`
|
|
7347
|
+
# @return [::Gapic::Config::Method]
|
|
7348
|
+
#
|
|
7349
|
+
attr_reader :get_auto_protection_policy
|
|
7350
|
+
##
|
|
7351
|
+
# RPC-specific configuration for `update_auto_protection_policy`
|
|
7352
|
+
# @return [::Gapic::Config::Method]
|
|
7353
|
+
#
|
|
7354
|
+
attr_reader :update_auto_protection_policy
|
|
7355
|
+
##
|
|
7356
|
+
# RPC-specific configuration for `delete_auto_protection_policy`
|
|
7357
|
+
# @return [::Gapic::Config::Method]
|
|
7358
|
+
#
|
|
7359
|
+
attr_reader :delete_auto_protection_policy
|
|
7360
|
+
##
|
|
7361
|
+
# RPC-specific configuration for `create_auto_protection_policy_binding`
|
|
7362
|
+
# @return [::Gapic::Config::Method]
|
|
7363
|
+
#
|
|
7364
|
+
attr_reader :create_auto_protection_policy_binding
|
|
7365
|
+
##
|
|
7366
|
+
# RPC-specific configuration for `get_auto_protection_policy_binding`
|
|
7367
|
+
# @return [::Gapic::Config::Method]
|
|
7368
|
+
#
|
|
7369
|
+
attr_reader :get_auto_protection_policy_binding
|
|
7370
|
+
##
|
|
7371
|
+
# RPC-specific configuration for `list_auto_protection_policy_bindings`
|
|
7372
|
+
# @return [::Gapic::Config::Method]
|
|
7373
|
+
#
|
|
7374
|
+
attr_reader :list_auto_protection_policy_bindings
|
|
7375
|
+
##
|
|
7376
|
+
# RPC-specific configuration for `list_applied_auto_protection_policies`
|
|
7377
|
+
# @return [::Gapic::Config::Method]
|
|
7378
|
+
#
|
|
7379
|
+
attr_reader :list_applied_auto_protection_policies
|
|
7380
|
+
##
|
|
7381
|
+
# RPC-specific configuration for `initiate_delete_auto_protection_policy_binding`
|
|
7382
|
+
# @return [::Gapic::Config::Method]
|
|
7383
|
+
#
|
|
7384
|
+
attr_reader :initiate_delete_auto_protection_policy_binding
|
|
7385
|
+
##
|
|
7386
|
+
# RPC-specific configuration for `list_binding_matching_resources`
|
|
7387
|
+
# @return [::Gapic::Config::Method]
|
|
7388
|
+
#
|
|
7389
|
+
attr_reader :list_binding_matching_resources
|
|
7390
|
+
##
|
|
7391
|
+
# RPC-specific configuration for `create_restore_template`
|
|
7392
|
+
# @return [::Gapic::Config::Method]
|
|
7393
|
+
#
|
|
7394
|
+
attr_reader :create_restore_template
|
|
7395
|
+
##
|
|
7396
|
+
# RPC-specific configuration for `get_restore_template`
|
|
7397
|
+
# @return [::Gapic::Config::Method]
|
|
7398
|
+
#
|
|
7399
|
+
attr_reader :get_restore_template
|
|
7400
|
+
##
|
|
7401
|
+
# RPC-specific configuration for `list_restore_templates`
|
|
7402
|
+
# @return [::Gapic::Config::Method]
|
|
7403
|
+
#
|
|
7404
|
+
attr_reader :list_restore_templates
|
|
7405
|
+
##
|
|
7406
|
+
# RPC-specific configuration for `update_restore_template`
|
|
7407
|
+
# @return [::Gapic::Config::Method]
|
|
7408
|
+
#
|
|
7409
|
+
attr_reader :update_restore_template
|
|
7410
|
+
##
|
|
7411
|
+
# RPC-specific configuration for `delete_restore_template`
|
|
7412
|
+
# @return [::Gapic::Config::Method]
|
|
7413
|
+
#
|
|
7414
|
+
attr_reader :delete_restore_template
|
|
7415
|
+
##
|
|
7416
|
+
# RPC-specific configuration for `run_restore_template`
|
|
7417
|
+
# @return [::Gapic::Config::Method]
|
|
7418
|
+
#
|
|
7419
|
+
attr_reader :run_restore_template
|
|
7420
|
+
##
|
|
7421
|
+
# RPC-specific configuration for `get_restore_template_execution`
|
|
7422
|
+
# @return [::Gapic::Config::Method]
|
|
7423
|
+
#
|
|
7424
|
+
attr_reader :get_restore_template_execution
|
|
7425
|
+
##
|
|
7426
|
+
# RPC-specific configuration for `list_restore_template_executions`
|
|
7427
|
+
# @return [::Gapic::Config::Method]
|
|
7428
|
+
#
|
|
7429
|
+
attr_reader :list_restore_template_executions
|
|
7430
|
+
##
|
|
7431
|
+
# RPC-specific configuration for `trigger_restore_cleanup`
|
|
7432
|
+
# @return [::Gapic::Config::Method]
|
|
7433
|
+
#
|
|
7434
|
+
attr_reader :trigger_restore_cleanup
|
|
7435
|
+
##
|
|
7436
|
+
# RPC-specific configuration for `create_restore_verification_plan`
|
|
7437
|
+
# @return [::Gapic::Config::Method]
|
|
7438
|
+
#
|
|
7439
|
+
attr_reader :create_restore_verification_plan
|
|
7440
|
+
##
|
|
7441
|
+
# RPC-specific configuration for `create_restore_verification_plan_association`
|
|
7442
|
+
# @return [::Gapic::Config::Method]
|
|
7443
|
+
#
|
|
7444
|
+
attr_reader :create_restore_verification_plan_association
|
|
7445
|
+
##
|
|
7446
|
+
# RPC-specific configuration for `get_restore_verification_plan_association`
|
|
7447
|
+
# @return [::Gapic::Config::Method]
|
|
7448
|
+
#
|
|
7449
|
+
attr_reader :get_restore_verification_plan_association
|
|
7450
|
+
##
|
|
7451
|
+
# RPC-specific configuration for `list_restore_verification_plan_associations`
|
|
7452
|
+
# @return [::Gapic::Config::Method]
|
|
7453
|
+
#
|
|
7454
|
+
attr_reader :list_restore_verification_plan_associations
|
|
7455
|
+
##
|
|
7456
|
+
# RPC-specific configuration for `delete_restore_verification_plan_association`
|
|
7457
|
+
# @return [::Gapic::Config::Method]
|
|
7458
|
+
#
|
|
7459
|
+
attr_reader :delete_restore_verification_plan_association
|
|
7460
|
+
##
|
|
7461
|
+
# RPC-specific configuration for `trigger_restore_verification`
|
|
7462
|
+
# @return [::Gapic::Config::Method]
|
|
7463
|
+
#
|
|
7464
|
+
attr_reader :trigger_restore_verification
|
|
7465
|
+
##
|
|
7466
|
+
# RPC-specific configuration for `get_restore_verification_plan`
|
|
7467
|
+
# @return [::Gapic::Config::Method]
|
|
7468
|
+
#
|
|
7469
|
+
attr_reader :get_restore_verification_plan
|
|
7470
|
+
##
|
|
7471
|
+
# RPC-specific configuration for `list_restore_verification_plans`
|
|
7472
|
+
# @return [::Gapic::Config::Method]
|
|
7473
|
+
#
|
|
7474
|
+
attr_reader :list_restore_verification_plans
|
|
7475
|
+
##
|
|
7476
|
+
# RPC-specific configuration for `delete_restore_verification_plan`
|
|
7477
|
+
# @return [::Gapic::Config::Method]
|
|
7478
|
+
#
|
|
7479
|
+
attr_reader :delete_restore_verification_plan
|
|
4407
7480
|
|
|
4408
7481
|
# @private
|
|
4409
7482
|
def initialize parent_rpcs = nil
|
|
@@ -4481,6 +7554,64 @@ module Google
|
|
|
4481
7554
|
@fetch_data_source_references_for_resource_type = ::Gapic::Config::Method.new fetch_data_source_references_for_resource_type_config
|
|
4482
7555
|
initialize_service_config = parent_rpcs.initialize_service if parent_rpcs.respond_to? :initialize_service
|
|
4483
7556
|
@initialize_service = ::Gapic::Config::Method.new initialize_service_config
|
|
7557
|
+
create_auto_protection_policy_config = parent_rpcs.create_auto_protection_policy if parent_rpcs.respond_to? :create_auto_protection_policy
|
|
7558
|
+
@create_auto_protection_policy = ::Gapic::Config::Method.new create_auto_protection_policy_config
|
|
7559
|
+
list_auto_protection_policies_config = parent_rpcs.list_auto_protection_policies if parent_rpcs.respond_to? :list_auto_protection_policies
|
|
7560
|
+
@list_auto_protection_policies = ::Gapic::Config::Method.new list_auto_protection_policies_config
|
|
7561
|
+
get_auto_protection_policy_config = parent_rpcs.get_auto_protection_policy if parent_rpcs.respond_to? :get_auto_protection_policy
|
|
7562
|
+
@get_auto_protection_policy = ::Gapic::Config::Method.new get_auto_protection_policy_config
|
|
7563
|
+
update_auto_protection_policy_config = parent_rpcs.update_auto_protection_policy if parent_rpcs.respond_to? :update_auto_protection_policy
|
|
7564
|
+
@update_auto_protection_policy = ::Gapic::Config::Method.new update_auto_protection_policy_config
|
|
7565
|
+
delete_auto_protection_policy_config = parent_rpcs.delete_auto_protection_policy if parent_rpcs.respond_to? :delete_auto_protection_policy
|
|
7566
|
+
@delete_auto_protection_policy = ::Gapic::Config::Method.new delete_auto_protection_policy_config
|
|
7567
|
+
create_auto_protection_policy_binding_config = parent_rpcs.create_auto_protection_policy_binding if parent_rpcs.respond_to? :create_auto_protection_policy_binding
|
|
7568
|
+
@create_auto_protection_policy_binding = ::Gapic::Config::Method.new create_auto_protection_policy_binding_config
|
|
7569
|
+
get_auto_protection_policy_binding_config = parent_rpcs.get_auto_protection_policy_binding if parent_rpcs.respond_to? :get_auto_protection_policy_binding
|
|
7570
|
+
@get_auto_protection_policy_binding = ::Gapic::Config::Method.new get_auto_protection_policy_binding_config
|
|
7571
|
+
list_auto_protection_policy_bindings_config = parent_rpcs.list_auto_protection_policy_bindings if parent_rpcs.respond_to? :list_auto_protection_policy_bindings
|
|
7572
|
+
@list_auto_protection_policy_bindings = ::Gapic::Config::Method.new list_auto_protection_policy_bindings_config
|
|
7573
|
+
list_applied_auto_protection_policies_config = parent_rpcs.list_applied_auto_protection_policies if parent_rpcs.respond_to? :list_applied_auto_protection_policies
|
|
7574
|
+
@list_applied_auto_protection_policies = ::Gapic::Config::Method.new list_applied_auto_protection_policies_config
|
|
7575
|
+
initiate_delete_auto_protection_policy_binding_config = parent_rpcs.initiate_delete_auto_protection_policy_binding if parent_rpcs.respond_to? :initiate_delete_auto_protection_policy_binding
|
|
7576
|
+
@initiate_delete_auto_protection_policy_binding = ::Gapic::Config::Method.new initiate_delete_auto_protection_policy_binding_config
|
|
7577
|
+
list_binding_matching_resources_config = parent_rpcs.list_binding_matching_resources if parent_rpcs.respond_to? :list_binding_matching_resources
|
|
7578
|
+
@list_binding_matching_resources = ::Gapic::Config::Method.new list_binding_matching_resources_config
|
|
7579
|
+
create_restore_template_config = parent_rpcs.create_restore_template if parent_rpcs.respond_to? :create_restore_template
|
|
7580
|
+
@create_restore_template = ::Gapic::Config::Method.new create_restore_template_config
|
|
7581
|
+
get_restore_template_config = parent_rpcs.get_restore_template if parent_rpcs.respond_to? :get_restore_template
|
|
7582
|
+
@get_restore_template = ::Gapic::Config::Method.new get_restore_template_config
|
|
7583
|
+
list_restore_templates_config = parent_rpcs.list_restore_templates if parent_rpcs.respond_to? :list_restore_templates
|
|
7584
|
+
@list_restore_templates = ::Gapic::Config::Method.new list_restore_templates_config
|
|
7585
|
+
update_restore_template_config = parent_rpcs.update_restore_template if parent_rpcs.respond_to? :update_restore_template
|
|
7586
|
+
@update_restore_template = ::Gapic::Config::Method.new update_restore_template_config
|
|
7587
|
+
delete_restore_template_config = parent_rpcs.delete_restore_template if parent_rpcs.respond_to? :delete_restore_template
|
|
7588
|
+
@delete_restore_template = ::Gapic::Config::Method.new delete_restore_template_config
|
|
7589
|
+
run_restore_template_config = parent_rpcs.run_restore_template if parent_rpcs.respond_to? :run_restore_template
|
|
7590
|
+
@run_restore_template = ::Gapic::Config::Method.new run_restore_template_config
|
|
7591
|
+
get_restore_template_execution_config = parent_rpcs.get_restore_template_execution if parent_rpcs.respond_to? :get_restore_template_execution
|
|
7592
|
+
@get_restore_template_execution = ::Gapic::Config::Method.new get_restore_template_execution_config
|
|
7593
|
+
list_restore_template_executions_config = parent_rpcs.list_restore_template_executions if parent_rpcs.respond_to? :list_restore_template_executions
|
|
7594
|
+
@list_restore_template_executions = ::Gapic::Config::Method.new list_restore_template_executions_config
|
|
7595
|
+
trigger_restore_cleanup_config = parent_rpcs.trigger_restore_cleanup if parent_rpcs.respond_to? :trigger_restore_cleanup
|
|
7596
|
+
@trigger_restore_cleanup = ::Gapic::Config::Method.new trigger_restore_cleanup_config
|
|
7597
|
+
create_restore_verification_plan_config = parent_rpcs.create_restore_verification_plan if parent_rpcs.respond_to? :create_restore_verification_plan
|
|
7598
|
+
@create_restore_verification_plan = ::Gapic::Config::Method.new create_restore_verification_plan_config
|
|
7599
|
+
create_restore_verification_plan_association_config = parent_rpcs.create_restore_verification_plan_association if parent_rpcs.respond_to? :create_restore_verification_plan_association
|
|
7600
|
+
@create_restore_verification_plan_association = ::Gapic::Config::Method.new create_restore_verification_plan_association_config
|
|
7601
|
+
get_restore_verification_plan_association_config = parent_rpcs.get_restore_verification_plan_association if parent_rpcs.respond_to? :get_restore_verification_plan_association
|
|
7602
|
+
@get_restore_verification_plan_association = ::Gapic::Config::Method.new get_restore_verification_plan_association_config
|
|
7603
|
+
list_restore_verification_plan_associations_config = parent_rpcs.list_restore_verification_plan_associations if parent_rpcs.respond_to? :list_restore_verification_plan_associations
|
|
7604
|
+
@list_restore_verification_plan_associations = ::Gapic::Config::Method.new list_restore_verification_plan_associations_config
|
|
7605
|
+
delete_restore_verification_plan_association_config = parent_rpcs.delete_restore_verification_plan_association if parent_rpcs.respond_to? :delete_restore_verification_plan_association
|
|
7606
|
+
@delete_restore_verification_plan_association = ::Gapic::Config::Method.new delete_restore_verification_plan_association_config
|
|
7607
|
+
trigger_restore_verification_config = parent_rpcs.trigger_restore_verification if parent_rpcs.respond_to? :trigger_restore_verification
|
|
7608
|
+
@trigger_restore_verification = ::Gapic::Config::Method.new trigger_restore_verification_config
|
|
7609
|
+
get_restore_verification_plan_config = parent_rpcs.get_restore_verification_plan if parent_rpcs.respond_to? :get_restore_verification_plan
|
|
7610
|
+
@get_restore_verification_plan = ::Gapic::Config::Method.new get_restore_verification_plan_config
|
|
7611
|
+
list_restore_verification_plans_config = parent_rpcs.list_restore_verification_plans if parent_rpcs.respond_to? :list_restore_verification_plans
|
|
7612
|
+
@list_restore_verification_plans = ::Gapic::Config::Method.new list_restore_verification_plans_config
|
|
7613
|
+
delete_restore_verification_plan_config = parent_rpcs.delete_restore_verification_plan if parent_rpcs.respond_to? :delete_restore_verification_plan
|
|
7614
|
+
@delete_restore_verification_plan = ::Gapic::Config::Method.new delete_restore_verification_plan_config
|
|
4484
7615
|
|
|
4485
7616
|
yield self if block_given?
|
|
4486
7617
|
end
|