google-cloud-backupdr-v1 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/backupdr/v1/backupdr/client.rb +2829 -157
- data/lib/google/cloud/backupdr/v1/backupdr/operations.rb +3 -10
- data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +101 -0
- data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +2656 -151
- data/lib/google/cloud/backupdr/v1/backupdr/rest/operations.rb +3 -10
- data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +1382 -17
- data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +5 -1
- data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +48 -0
- data/lib/google/cloud/backupdr/v1/backupplan_pb.rb +62 -0
- data/lib/google/cloud/backupdr/v1/backupplanassociation_pb.rb +59 -0
- data/lib/google/cloud/backupdr/v1/backupvault_ba_pb.rb +46 -0
- data/lib/google/cloud/backupdr/v1/backupvault_gce_pb.rb +87 -0
- data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +99 -0
- data/lib/google/cloud/backupdr/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +20 -0
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/cloud/backupdr/v1/backupdr.rb +11 -10
- data/proto_docs/google/cloud/backupdr/v1/backupplan.rb +414 -0
- data/proto_docs/google/cloud/backupdr/v1/backupplanassociation.rb +272 -0
- data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +1103 -0
- data/proto_docs/google/cloud/backupdr/v1/backupvault_ba.rb +47 -0
- data/proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb +993 -0
- data/proto_docs/google/longrunning/operations.rb +19 -14
- data/proto_docs/google/type/dayofweek.rb +49 -0
- data/proto_docs/google/type/month.rb +64 -0
- metadata +16 -3
@@ -0,0 +1,1103 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2024 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module BackupDR
|
23
|
+
module V1
|
24
|
+
# Message describing a BackupVault object.
|
25
|
+
# @!attribute [r] name
|
26
|
+
# @return [::String]
|
27
|
+
# Output only. Identifier. Name of the backup vault to create. It must have
|
28
|
+
# the
|
29
|
+
# format`"projects/{project}/locations/{location}/backupVaults/{backupvault}"`.
|
30
|
+
# `{backupvault}` cannot be changed after creation. It must be between 3-63
|
31
|
+
# characters long and must be unique within the project and location.
|
32
|
+
# @!attribute [rw] description
|
33
|
+
# @return [::String]
|
34
|
+
# Optional. The description of the BackupVault instance (2048 characters or
|
35
|
+
# less).
|
36
|
+
# @!attribute [rw] labels
|
37
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
38
|
+
# Optional. Resource labels to represent user provided metadata.
|
39
|
+
# No labels currently defined:
|
40
|
+
# @!attribute [r] create_time
|
41
|
+
# @return [::Google::Protobuf::Timestamp]
|
42
|
+
# Output only. The time when the instance was created.
|
43
|
+
# @!attribute [r] update_time
|
44
|
+
# @return [::Google::Protobuf::Timestamp]
|
45
|
+
# Output only. The time when the instance was updated.
|
46
|
+
# @!attribute [rw] backup_minimum_enforced_retention_duration
|
47
|
+
# @return [::Google::Protobuf::Duration]
|
48
|
+
# Required. The default and minimum enforced retention for each backup within
|
49
|
+
# the backup vault. The enforced retention for each backup can be extended.
|
50
|
+
# @!attribute [r] deletable
|
51
|
+
# @return [::Boolean]
|
52
|
+
# Output only. Set to true when there are no backups nested under this
|
53
|
+
# resource.
|
54
|
+
# @!attribute [rw] etag
|
55
|
+
# @return [::String]
|
56
|
+
# Optional. Server specified ETag for the backup vault resource to
|
57
|
+
# prevent simultaneous updates from overwiting each other.
|
58
|
+
# @!attribute [r] state
|
59
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupVault::State]
|
60
|
+
# Output only. The BackupVault resource instance state.
|
61
|
+
# @!attribute [rw] effective_time
|
62
|
+
# @return [::Google::Protobuf::Timestamp]
|
63
|
+
# Optional. Time after which the BackupVault resource is locked.
|
64
|
+
# @!attribute [r] backup_count
|
65
|
+
# @return [::Integer]
|
66
|
+
# Output only. The number of backups in this backup vault.
|
67
|
+
# @!attribute [r] service_account
|
68
|
+
# @return [::String]
|
69
|
+
# Output only. Service account used by the BackupVault Service for this
|
70
|
+
# BackupVault. The user should grant this account permissions in their
|
71
|
+
# workload project to enable the service to run backups and restores there.
|
72
|
+
# @!attribute [r] total_stored_bytes
|
73
|
+
# @return [::Integer]
|
74
|
+
# Output only. Total size of the storage used by all backup resources.
|
75
|
+
# @!attribute [r] uid
|
76
|
+
# @return [::String]
|
77
|
+
# Output only. Output only
|
78
|
+
# Immutable after resource creation until resource deletion.
|
79
|
+
# @!attribute [rw] annotations
|
80
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
81
|
+
# Optional. User annotations. See https://google.aip.dev/128#annotations
|
82
|
+
# Stores small amounts of arbitrary data.
|
83
|
+
# @!attribute [rw] access_restriction
|
84
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupVault::AccessRestriction]
|
85
|
+
# Optional. Note: This field is added for future use case and will not be
|
86
|
+
# supported in the current release.
|
87
|
+
#
|
88
|
+
# Optional.
|
89
|
+
#
|
90
|
+
# Access restriction for the backup vault.
|
91
|
+
# Default value is WITHIN_ORGANIZATION if not provided during creation.
|
92
|
+
class BackupVault
|
93
|
+
include ::Google::Protobuf::MessageExts
|
94
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
95
|
+
|
96
|
+
# @!attribute [rw] key
|
97
|
+
# @return [::String]
|
98
|
+
# @!attribute [rw] value
|
99
|
+
# @return [::String]
|
100
|
+
class LabelsEntry
|
101
|
+
include ::Google::Protobuf::MessageExts
|
102
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
103
|
+
end
|
104
|
+
|
105
|
+
# @!attribute [rw] key
|
106
|
+
# @return [::String]
|
107
|
+
# @!attribute [rw] value
|
108
|
+
# @return [::String]
|
109
|
+
class AnnotationsEntry
|
110
|
+
include ::Google::Protobuf::MessageExts
|
111
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
112
|
+
end
|
113
|
+
|
114
|
+
# Holds the state of the backup vault resource.
|
115
|
+
module State
|
116
|
+
# State not set.
|
117
|
+
STATE_UNSPECIFIED = 0
|
118
|
+
|
119
|
+
# The backup vault is being created.
|
120
|
+
CREATING = 1
|
121
|
+
|
122
|
+
# The backup vault has been created and is fully usable.
|
123
|
+
ACTIVE = 2
|
124
|
+
|
125
|
+
# The backup vault is being deleted.
|
126
|
+
DELETING = 3
|
127
|
+
|
128
|
+
# The backup vault is experiencing an issue and might be unusable.
|
129
|
+
ERROR = 4
|
130
|
+
end
|
131
|
+
|
132
|
+
# Holds the access restriction for the backup vault.
|
133
|
+
module AccessRestriction
|
134
|
+
# Access restriction not set.
|
135
|
+
ACCESS_RESTRICTION_UNSPECIFIED = 0
|
136
|
+
|
137
|
+
# Access to or from resources outside your current project will be denied.
|
138
|
+
WITHIN_PROJECT = 1
|
139
|
+
|
140
|
+
# Access to or from resources outside your current organization will be
|
141
|
+
# denied.
|
142
|
+
WITHIN_ORGANIZATION = 2
|
143
|
+
|
144
|
+
# No access restriction.
|
145
|
+
UNRESTRICTED = 3
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
# Message describing a DataSource object.
|
150
|
+
# Datasource object used to represent Datasource details for both admin and
|
151
|
+
# basic view.
|
152
|
+
# @!attribute [r] name
|
153
|
+
# @return [::String]
|
154
|
+
# Output only. Identifier. Name of the datasource to create.
|
155
|
+
# It must have the
|
156
|
+
# format`"projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}"`.
|
157
|
+
# `{datasource}` cannot be changed after creation. It must be between 3-63
|
158
|
+
# characters long and must be unique within the backup vault.
|
159
|
+
# @!attribute [r] state
|
160
|
+
# @return [::Google::Cloud::BackupDR::V1::DataSource::State]
|
161
|
+
# Output only. The DataSource resource instance state.
|
162
|
+
# @!attribute [rw] labels
|
163
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
164
|
+
# Optional. Resource labels to represent user provided metadata.
|
165
|
+
# No labels currently defined:
|
166
|
+
# @!attribute [r] create_time
|
167
|
+
# @return [::Google::Protobuf::Timestamp]
|
168
|
+
# Output only. The time when the instance was created.
|
169
|
+
# @!attribute [r] update_time
|
170
|
+
# @return [::Google::Protobuf::Timestamp]
|
171
|
+
# Output only. The time when the instance was updated.
|
172
|
+
# @!attribute [rw] backup_count
|
173
|
+
# @return [::Integer]
|
174
|
+
# Number of backups in the data source.
|
175
|
+
# @!attribute [rw] etag
|
176
|
+
# @return [::String]
|
177
|
+
# Server specified ETag for the ManagementServer resource to prevent
|
178
|
+
# simultaneous updates from overwiting each other.
|
179
|
+
# @!attribute [rw] total_stored_bytes
|
180
|
+
# @return [::Integer]
|
181
|
+
# The number of bytes (metadata and data) stored in this datasource.
|
182
|
+
# @!attribute [r] config_state
|
183
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupConfigState]
|
184
|
+
# Output only. The backup configuration state.
|
185
|
+
# @!attribute [r] backup_config_info
|
186
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupConfigInfo]
|
187
|
+
# Output only. Details of how the resource is configured for backup.
|
188
|
+
# @!attribute [rw] data_source_gcp_resource
|
189
|
+
# @return [::Google::Cloud::BackupDR::V1::DataSourceGcpResource]
|
190
|
+
# The backed up resource is a Google Cloud resource.
|
191
|
+
# The word 'DataSource' was included in the names to indicate that this is
|
192
|
+
# the representation of the Google Cloud resource used within the
|
193
|
+
# DataSource object.
|
194
|
+
# @!attribute [rw] data_source_backup_appliance_application
|
195
|
+
# @return [::Google::Cloud::BackupDR::V1::DataSourceBackupApplianceApplication]
|
196
|
+
# The backed up resource is a backup appliance application.
|
197
|
+
class DataSource
|
198
|
+
include ::Google::Protobuf::MessageExts
|
199
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
200
|
+
|
201
|
+
# @!attribute [rw] key
|
202
|
+
# @return [::String]
|
203
|
+
# @!attribute [rw] value
|
204
|
+
# @return [::String]
|
205
|
+
class LabelsEntry
|
206
|
+
include ::Google::Protobuf::MessageExts
|
207
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
208
|
+
end
|
209
|
+
|
210
|
+
# Holds the state of the data source resource.
|
211
|
+
module State
|
212
|
+
# State not set.
|
213
|
+
STATE_UNSPECIFIED = 0
|
214
|
+
|
215
|
+
# The data source is being created.
|
216
|
+
CREATING = 1
|
217
|
+
|
218
|
+
# The data source has been created and is fully usable.
|
219
|
+
ACTIVE = 2
|
220
|
+
|
221
|
+
# The data source is being deleted.
|
222
|
+
DELETING = 3
|
223
|
+
|
224
|
+
# The data source is experiencing an issue and might be unusable.
|
225
|
+
ERROR = 4
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
# BackupConfigInfo has information about how the resource is configured
|
230
|
+
# for Backup and about the most recent backup to this vault.
|
231
|
+
# @!attribute [r] last_backup_state
|
232
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupConfigInfo::LastBackupState]
|
233
|
+
# Output only. The status of the last backup to this BackupVault
|
234
|
+
# @!attribute [r] last_successful_backup_consistency_time
|
235
|
+
# @return [::Google::Protobuf::Timestamp]
|
236
|
+
# Output only. If the last backup were successful, this field has the
|
237
|
+
# consistency date.
|
238
|
+
# @!attribute [r] last_backup_error
|
239
|
+
# @return [::Google::Rpc::Status]
|
240
|
+
# Output only. If the last backup failed, this field has the error message.
|
241
|
+
# @!attribute [rw] gcp_backup_config
|
242
|
+
# @return [::Google::Cloud::BackupDR::V1::GcpBackupConfig]
|
243
|
+
# Configuration for a Google Cloud resource.
|
244
|
+
# @!attribute [rw] backup_appliance_backup_config
|
245
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupApplianceBackupConfig]
|
246
|
+
# Configuration for an application backed up by a Backup Appliance.
|
247
|
+
class BackupConfigInfo
|
248
|
+
include ::Google::Protobuf::MessageExts
|
249
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
250
|
+
|
251
|
+
# LastBackupstate tracks whether the last backup was not yet started,
|
252
|
+
# successful, failed, or could not be run because of the lack of permissions.
|
253
|
+
module LastBackupState
|
254
|
+
# Status not set.
|
255
|
+
LAST_BACKUP_STATE_UNSPECIFIED = 0
|
256
|
+
|
257
|
+
# The first backup has not yet completed
|
258
|
+
FIRST_BACKUP_PENDING = 1
|
259
|
+
|
260
|
+
# The most recent backup was successful
|
261
|
+
SUCCEEDED = 2
|
262
|
+
|
263
|
+
# The most recent backup failed
|
264
|
+
FAILED = 3
|
265
|
+
|
266
|
+
# The most recent backup could not be run/failed because of the lack of
|
267
|
+
# permissions
|
268
|
+
PERMISSION_DENIED = 4
|
269
|
+
end
|
270
|
+
end
|
271
|
+
|
272
|
+
# GcpBackupConfig captures the Backup configuration details for Google Cloud
|
273
|
+
# resources. All Google Cloud resources regardless of type are protected with
|
274
|
+
# backup plan associations.
|
275
|
+
# @!attribute [rw] backup_plan
|
276
|
+
# @return [::String]
|
277
|
+
# The name of the backup plan.
|
278
|
+
# @!attribute [rw] backup_plan_description
|
279
|
+
# @return [::String]
|
280
|
+
# The description of the backup plan.
|
281
|
+
# @!attribute [rw] backup_plan_association
|
282
|
+
# @return [::String]
|
283
|
+
# The name of the backup plan association.
|
284
|
+
# @!attribute [rw] backup_plan_rules
|
285
|
+
# @return [::Array<::String>]
|
286
|
+
# The names of the backup plan rules which point to this backupvault
|
287
|
+
class GcpBackupConfig
|
288
|
+
include ::Google::Protobuf::MessageExts
|
289
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
290
|
+
end
|
291
|
+
|
292
|
+
# BackupApplianceBackupConfig captures the backup configuration for
|
293
|
+
# applications that are protected by Backup Appliances.
|
294
|
+
# @!attribute [rw] backup_appliance_name
|
295
|
+
# @return [::String]
|
296
|
+
# The name of the backup appliance.
|
297
|
+
# @!attribute [rw] backup_appliance_id
|
298
|
+
# @return [::Integer]
|
299
|
+
# The ID of the backup appliance.
|
300
|
+
# @!attribute [rw] sla_id
|
301
|
+
# @return [::Integer]
|
302
|
+
# The ID of the SLA of this application.
|
303
|
+
# @!attribute [rw] application_name
|
304
|
+
# @return [::String]
|
305
|
+
# The name of the application.
|
306
|
+
# @!attribute [rw] host_name
|
307
|
+
# @return [::String]
|
308
|
+
# The name of the host where the application is running.
|
309
|
+
# @!attribute [rw] slt_name
|
310
|
+
# @return [::String]
|
311
|
+
# The name of the SLT associated with the application.
|
312
|
+
# @!attribute [rw] slp_name
|
313
|
+
# @return [::String]
|
314
|
+
# The name of the SLP associated with the application.
|
315
|
+
class BackupApplianceBackupConfig
|
316
|
+
include ::Google::Protobuf::MessageExts
|
317
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
318
|
+
end
|
319
|
+
|
320
|
+
# DataSourceGcpResource is used for protected resources that are Google Cloud
|
321
|
+
# Resources. This name is easeier to understand than GcpResourceDataSource or
|
322
|
+
# GcpDataSourceResource
|
323
|
+
# @!attribute [r] gcp_resourcename
|
324
|
+
# @return [::String]
|
325
|
+
# Output only. Full resource pathname URL of the source Google Cloud
|
326
|
+
# resource.
|
327
|
+
# @!attribute [rw] location
|
328
|
+
# @return [::String]
|
329
|
+
# Location of the resource: <region>/<zone>/"global"/"unspecified".
|
330
|
+
# @!attribute [rw] type
|
331
|
+
# @return [::String]
|
332
|
+
# The type of the Google Cloud resource. Use the Unified Resource Type,
|
333
|
+
# eg. compute.googleapis.com/Instance.
|
334
|
+
# @!attribute [rw] compute_instance_datasource_properties
|
335
|
+
# @return [::Google::Cloud::BackupDR::V1::ComputeInstanceDataSourceProperties]
|
336
|
+
# ComputeInstanceDataSourceProperties has a subset of Compute Instance
|
337
|
+
# properties that are useful at the Datasource level.
|
338
|
+
class DataSourceGcpResource
|
339
|
+
include ::Google::Protobuf::MessageExts
|
340
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
341
|
+
end
|
342
|
+
|
343
|
+
# BackupApplianceApplication describes a Source Resource when it is an
|
344
|
+
# application backed up by a BackupAppliance.
|
345
|
+
# @!attribute [rw] application_name
|
346
|
+
# @return [::String]
|
347
|
+
# The name of the Application as known to the Backup Appliance.
|
348
|
+
# @!attribute [rw] backup_appliance
|
349
|
+
# @return [::String]
|
350
|
+
# Appliance name.
|
351
|
+
# @!attribute [rw] appliance_id
|
352
|
+
# @return [::Integer]
|
353
|
+
# Appliance Id of the Backup Appliance.
|
354
|
+
# @!attribute [rw] type
|
355
|
+
# @return [::String]
|
356
|
+
# The type of the application. e.g. VMBackup
|
357
|
+
# @!attribute [rw] application_id
|
358
|
+
# @return [::Integer]
|
359
|
+
# The appid field of the application within the Backup Appliance.
|
360
|
+
# @!attribute [rw] hostname
|
361
|
+
# @return [::String]
|
362
|
+
# Hostname of the host where the application is running.
|
363
|
+
# @!attribute [rw] host_id
|
364
|
+
# @return [::Integer]
|
365
|
+
# Hostid of the application host.
|
366
|
+
class DataSourceBackupApplianceApplication
|
367
|
+
include ::Google::Protobuf::MessageExts
|
368
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
369
|
+
end
|
370
|
+
|
371
|
+
# ServiceLockInfo represents the details of a lock taken by the service on a
|
372
|
+
# Backup resource.
|
373
|
+
# @!attribute [r] operation
|
374
|
+
# @return [::String]
|
375
|
+
# Output only. The name of the operation that created this lock.
|
376
|
+
# The lock will automatically be released when the operation completes.
|
377
|
+
class ServiceLockInfo
|
378
|
+
include ::Google::Protobuf::MessageExts
|
379
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
380
|
+
end
|
381
|
+
|
382
|
+
# BackupApplianceLockInfo contains metadata about the backupappliance that
|
383
|
+
# created the lock.
|
384
|
+
# @!attribute [rw] backup_appliance_id
|
385
|
+
# @return [::Integer]
|
386
|
+
# Required. The ID of the backup/recovery appliance that created this lock.
|
387
|
+
# @!attribute [rw] backup_appliance_name
|
388
|
+
# @return [::String]
|
389
|
+
# Required. The name of the backup/recovery appliance that created this lock.
|
390
|
+
# @!attribute [rw] lock_reason
|
391
|
+
# @return [::String]
|
392
|
+
# Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The
|
393
|
+
# value of this string is only meaningful to the client and it is not
|
394
|
+
# interpreted by the BackupVault service.
|
395
|
+
# @!attribute [rw] job_name
|
396
|
+
# @return [::String]
|
397
|
+
# The job name on the backup/recovery appliance that created this lock.
|
398
|
+
# @!attribute [rw] backup_image
|
399
|
+
# @return [::String]
|
400
|
+
# The image name that depends on this Backup.
|
401
|
+
# @!attribute [rw] sla_id
|
402
|
+
# @return [::Integer]
|
403
|
+
# The SLA on the backup/recovery appliance that owns the lock.
|
404
|
+
class BackupApplianceLockInfo
|
405
|
+
include ::Google::Protobuf::MessageExts
|
406
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
407
|
+
end
|
408
|
+
|
409
|
+
# BackupLock represents a single lock on a Backup resource. An unexpired
|
410
|
+
# lock on a Backup prevents the Backup from being deleted.
|
411
|
+
# @!attribute [rw] lock_until_time
|
412
|
+
# @return [::Google::Protobuf::Timestamp]
|
413
|
+
# Required. The time after which this lock is not considered valid and will
|
414
|
+
# no longer protect the Backup from deletion.
|
415
|
+
# @!attribute [rw] backup_appliance_lock_info
|
416
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupApplianceLockInfo]
|
417
|
+
# If the client is a backup and recovery appliance, this
|
418
|
+
# contains metadata about why the lock exists.
|
419
|
+
# @!attribute [r] service_lock_info
|
420
|
+
# @return [::Google::Cloud::BackupDR::V1::ServiceLockInfo]
|
421
|
+
# Output only. Contains metadata about the lock exist for Google Cloud
|
422
|
+
# native backups.
|
423
|
+
class BackupLock
|
424
|
+
include ::Google::Protobuf::MessageExts
|
425
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
426
|
+
end
|
427
|
+
|
428
|
+
# Message describing a Backup object.
|
429
|
+
# @!attribute [r] name
|
430
|
+
# @return [::String]
|
431
|
+
# Output only. Identifier. Name of the backup to create. It must have the
|
432
|
+
# format`"projects/<project>/locations/<location>/backupVaults/<backupvault>/dataSources/{datasource}/backups/{backup}"`.
|
433
|
+
# `{backup}` cannot be changed after creation. It must be between 3-63
|
434
|
+
# characters long and must be unique within the datasource.
|
435
|
+
# @!attribute [r] description
|
436
|
+
# @return [::String]
|
437
|
+
# Output only. The description of the Backup instance (2048 characters or
|
438
|
+
# less).
|
439
|
+
# @!attribute [r] create_time
|
440
|
+
# @return [::Google::Protobuf::Timestamp]
|
441
|
+
# Output only. The time when the instance was created.
|
442
|
+
# @!attribute [r] update_time
|
443
|
+
# @return [::Google::Protobuf::Timestamp]
|
444
|
+
# Output only. The time when the instance was updated.
|
445
|
+
# @!attribute [rw] labels
|
446
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
447
|
+
# Optional. Resource labels to represent user provided metadata.
|
448
|
+
# No labels currently defined.
|
449
|
+
# @!attribute [rw] enforced_retention_end_time
|
450
|
+
# @return [::Google::Protobuf::Timestamp]
|
451
|
+
# Optional. The backup can not be deleted before this time.
|
452
|
+
# @!attribute [rw] expire_time
|
453
|
+
# @return [::Google::Protobuf::Timestamp]
|
454
|
+
# Optional. When this backup is automatically expired.
|
455
|
+
# @!attribute [r] consistency_time
|
456
|
+
# @return [::Google::Protobuf::Timestamp]
|
457
|
+
# Output only. The point in time when this backup was captured from the
|
458
|
+
# source.
|
459
|
+
# @!attribute [rw] etag
|
460
|
+
# @return [::String]
|
461
|
+
# Optional. Server specified ETag to prevent updates from overwriting each
|
462
|
+
# other.
|
463
|
+
# @!attribute [r] state
|
464
|
+
# @return [::Google::Cloud::BackupDR::V1::Backup::State]
|
465
|
+
# Output only. The Backup resource instance state.
|
466
|
+
# @!attribute [r] service_locks
|
467
|
+
# @return [::Array<::Google::Cloud::BackupDR::V1::BackupLock>]
|
468
|
+
# Output only. The list of BackupLocks taken by the service to prevent the
|
469
|
+
# deletion of the backup.
|
470
|
+
# @!attribute [rw] backup_appliance_locks
|
471
|
+
# @return [::Array<::Google::Cloud::BackupDR::V1::BackupLock>]
|
472
|
+
# Optional. The list of BackupLocks taken by the accessor Backup Appliance.
|
473
|
+
# @!attribute [r] compute_instance_backup_properties
|
474
|
+
# @return [::Google::Cloud::BackupDR::V1::ComputeInstanceBackupProperties]
|
475
|
+
# Output only. Compute Engine specific backup properties.
|
476
|
+
# @!attribute [r] backup_appliance_backup_properties
|
477
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupApplianceBackupProperties]
|
478
|
+
# Output only. Backup Appliance specific backup properties.
|
479
|
+
# @!attribute [r] backup_type
|
480
|
+
# @return [::Google::Cloud::BackupDR::V1::Backup::BackupType]
|
481
|
+
# Output only. Type of the backup, unspecified, scheduled or ondemand.
|
482
|
+
# @!attribute [r] gcp_backup_plan_info
|
483
|
+
# @return [::Google::Cloud::BackupDR::V1::Backup::GCPBackupPlanInfo]
|
484
|
+
# Output only. Configuration for a Google Cloud resource.
|
485
|
+
# @!attribute [r] resource_size_bytes
|
486
|
+
# @return [::Integer]
|
487
|
+
# Output only. source resource size in bytes at the time of the backup.
|
488
|
+
class Backup
|
489
|
+
include ::Google::Protobuf::MessageExts
|
490
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
491
|
+
|
492
|
+
# GCPBackupPlanInfo captures the plan configuration details of Google Cloud
|
493
|
+
# resources at the time of backup.
|
494
|
+
# @!attribute [rw] backup_plan
|
495
|
+
# @return [::String]
|
496
|
+
# Resource name of backup plan by which workload is protected at the time
|
497
|
+
# of the backup.
|
498
|
+
# Format:
|
499
|
+
# projects/\\{project}/locations/\\{location}/backupPlans/\\{backupPlanId}
|
500
|
+
# @!attribute [rw] backup_plan_rule_id
|
501
|
+
# @return [::String]
|
502
|
+
# The rule id of the backup plan which triggered this backup in case of
|
503
|
+
# scheduled backup or used for
|
504
|
+
class GCPBackupPlanInfo
|
505
|
+
include ::Google::Protobuf::MessageExts
|
506
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
507
|
+
end
|
508
|
+
|
509
|
+
# @!attribute [rw] key
|
510
|
+
# @return [::String]
|
511
|
+
# @!attribute [rw] value
|
512
|
+
# @return [::String]
|
513
|
+
class LabelsEntry
|
514
|
+
include ::Google::Protobuf::MessageExts
|
515
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
516
|
+
end
|
517
|
+
|
518
|
+
# Holds the state of the backup resource.
|
519
|
+
module State
|
520
|
+
# State not set.
|
521
|
+
STATE_UNSPECIFIED = 0
|
522
|
+
|
523
|
+
# The backup is being created.
|
524
|
+
CREATING = 1
|
525
|
+
|
526
|
+
# The backup has been created and is fully usable.
|
527
|
+
ACTIVE = 2
|
528
|
+
|
529
|
+
# The backup is being deleted.
|
530
|
+
DELETING = 3
|
531
|
+
|
532
|
+
# The backup is experiencing an issue and might be unusable.
|
533
|
+
ERROR = 4
|
534
|
+
end
|
535
|
+
|
536
|
+
# Type of the backup, scheduled or ondemand.
|
537
|
+
module BackupType
|
538
|
+
# Backup type is unspecified.
|
539
|
+
BACKUP_TYPE_UNSPECIFIED = 0
|
540
|
+
|
541
|
+
# Scheduled backup.
|
542
|
+
SCHEDULED = 1
|
543
|
+
|
544
|
+
# On demand backup.
|
545
|
+
ON_DEMAND = 2
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
# Message for creating a BackupVault.
|
550
|
+
# @!attribute [rw] parent
|
551
|
+
# @return [::String]
|
552
|
+
# Required. Value for parent.
|
553
|
+
# @!attribute [rw] backup_vault_id
|
554
|
+
# @return [::String]
|
555
|
+
# Required. ID of the requesting object
|
556
|
+
# If auto-generating ID server-side, remove this field and
|
557
|
+
# backup_vault_id from the method_signature of Create RPC
|
558
|
+
# @!attribute [rw] backup_vault
|
559
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupVault]
|
560
|
+
# Required. The resource being created
|
561
|
+
# @!attribute [rw] request_id
|
562
|
+
# @return [::String]
|
563
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
564
|
+
# request ID so that if you must retry your request, the server will know to
|
565
|
+
# ignore the request if it has already been completed. The server will
|
566
|
+
# guarantee that for at least 60 minutes since the first request.
|
567
|
+
#
|
568
|
+
# For example, consider a situation where you make an initial request and
|
569
|
+
# the request times out. If you make the request again with the same request
|
570
|
+
# ID, the server can check if original operation with the same request ID
|
571
|
+
# was received, and if so, will ignore the second request. This prevents
|
572
|
+
# clients from accidentally creating duplicate commitments.
|
573
|
+
#
|
574
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
575
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
576
|
+
# @!attribute [rw] validate_only
|
577
|
+
# @return [::Boolean]
|
578
|
+
# Optional. Only validate the request, but do not perform mutations.
|
579
|
+
# The default is 'false'.
|
580
|
+
class CreateBackupVaultRequest
|
581
|
+
include ::Google::Protobuf::MessageExts
|
582
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
583
|
+
end
|
584
|
+
|
585
|
+
# Request message for listing backupvault stores.
|
586
|
+
# @!attribute [rw] parent
|
587
|
+
# @return [::String]
|
588
|
+
# Required. The project and location for which to retrieve backupvault stores
|
589
|
+
# information, in the format 'projects/\\{project_id}/locations/\\{location}'. In
|
590
|
+
# Cloud Backup and DR, locations map to Google Cloud regions, for example
|
591
|
+
# **us-central1**.
|
592
|
+
# To retrieve backupvault stores for all locations, use "-" for the
|
593
|
+
# '\\{location}' value.
|
594
|
+
# @!attribute [rw] page_size
|
595
|
+
# @return [::Integer]
|
596
|
+
# Optional. Requested page size. Server may return fewer items than
|
597
|
+
# requested. If unspecified, server will pick an appropriate default.
|
598
|
+
# @!attribute [rw] page_token
|
599
|
+
# @return [::String]
|
600
|
+
# Optional. A token identifying a page of results the server should return.
|
601
|
+
# @!attribute [rw] filter
|
602
|
+
# @return [::String]
|
603
|
+
# Optional. Filtering results.
|
604
|
+
# @!attribute [rw] order_by
|
605
|
+
# @return [::String]
|
606
|
+
# Optional. Hint for how to order the results.
|
607
|
+
# @!attribute [rw] view
|
608
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupVaultView]
|
609
|
+
# Optional. Reserved for future use to provide a BASIC & FULL view of Backup
|
610
|
+
# Vault.
|
611
|
+
class ListBackupVaultsRequest
|
612
|
+
include ::Google::Protobuf::MessageExts
|
613
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
614
|
+
end
|
615
|
+
|
616
|
+
# Response message for listing BackupVaults.
|
617
|
+
# @!attribute [rw] backup_vaults
|
618
|
+
# @return [::Array<::Google::Cloud::BackupDR::V1::BackupVault>]
|
619
|
+
# The list of BackupVault instances in the project for the specified
|
620
|
+
# location.
|
621
|
+
#
|
622
|
+
# If the '\\{location}' value in the request is "-", the response contains a
|
623
|
+
# list of instances from all locations. In case any location is unreachable,
|
624
|
+
# the response will only return backup vaults in reachable locations and
|
625
|
+
# the 'unreachable' field will be populated with a list of unreachable
|
626
|
+
# locations.
|
627
|
+
# @!attribute [rw] next_page_token
|
628
|
+
# @return [::String]
|
629
|
+
# A token identifying a page of results the server should return.
|
630
|
+
# @!attribute [rw] unreachable
|
631
|
+
# @return [::Array<::String>]
|
632
|
+
# Locations that could not be reached.
|
633
|
+
class ListBackupVaultsResponse
|
634
|
+
include ::Google::Protobuf::MessageExts
|
635
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
636
|
+
end
|
637
|
+
|
638
|
+
# Request message for fetching usable BackupVaults.
|
639
|
+
# @!attribute [rw] parent
|
640
|
+
# @return [::String]
|
641
|
+
# Required. The project and location for which to retrieve backupvault stores
|
642
|
+
# information, in the format 'projects/\\{project_id}/locations/\\{location}'. In
|
643
|
+
# Cloud Backup and DR, locations map to Google Cloud regions, for example
|
644
|
+
# **us-central1**.
|
645
|
+
# To retrieve backupvault stores for all locations, use "-" for the
|
646
|
+
# '\\{location}' value.
|
647
|
+
# @!attribute [rw] page_size
|
648
|
+
# @return [::Integer]
|
649
|
+
# Optional. Requested page size. Server may return fewer items than
|
650
|
+
# requested. If unspecified, server will pick an appropriate default.
|
651
|
+
# @!attribute [rw] page_token
|
652
|
+
# @return [::String]
|
653
|
+
# Optional. A token identifying a page of results the server should return.
|
654
|
+
# @!attribute [rw] filter
|
655
|
+
# @return [::String]
|
656
|
+
# Optional. Filtering results.
|
657
|
+
# @!attribute [rw] order_by
|
658
|
+
# @return [::String]
|
659
|
+
# Optional. Hint for how to order the results.
|
660
|
+
class FetchUsableBackupVaultsRequest
|
661
|
+
include ::Google::Protobuf::MessageExts
|
662
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
663
|
+
end
|
664
|
+
|
665
|
+
# Response message for fetching usable BackupVaults.
|
666
|
+
# @!attribute [rw] backup_vaults
|
667
|
+
# @return [::Array<::Google::Cloud::BackupDR::V1::BackupVault>]
|
668
|
+
# The list of BackupVault instances in the project for the specified
|
669
|
+
# location.
|
670
|
+
#
|
671
|
+
# If the '\\{location}' value in the request is "-", the response contains a
|
672
|
+
# list of instances from all locations. In case any location is unreachable,
|
673
|
+
# the response will only return backup vaults in reachable locations and
|
674
|
+
# the 'unreachable' field will be populated with a list of unreachable
|
675
|
+
# locations.
|
676
|
+
# @!attribute [rw] next_page_token
|
677
|
+
# @return [::String]
|
678
|
+
# A token identifying a page of results the server should return.
|
679
|
+
# @!attribute [rw] unreachable
|
680
|
+
# @return [::Array<::String>]
|
681
|
+
# Locations that could not be reached.
|
682
|
+
class FetchUsableBackupVaultsResponse
|
683
|
+
include ::Google::Protobuf::MessageExts
|
684
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
685
|
+
end
|
686
|
+
|
687
|
+
# Request message for getting a BackupVault.
|
688
|
+
# @!attribute [rw] name
|
689
|
+
# @return [::String]
|
690
|
+
# Required. Name of the backupvault store resource name, in the format
|
691
|
+
# 'projects/\\{project_id}/locations/\\{location}/backupVaults/\\{resource_name}'
|
692
|
+
# @!attribute [rw] view
|
693
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupVaultView]
|
694
|
+
# Optional. Reserved for future use to provide a BASIC & FULL view of Backup
|
695
|
+
# Vault
|
696
|
+
class GetBackupVaultRequest
|
697
|
+
include ::Google::Protobuf::MessageExts
|
698
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
699
|
+
end
|
700
|
+
|
701
|
+
# Request message for updating a BackupVault.
|
702
|
+
# @!attribute [rw] update_mask
|
703
|
+
# @return [::Google::Protobuf::FieldMask]
|
704
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
705
|
+
# BackupVault resource by the update.
|
706
|
+
# The fields specified in the update_mask are relative to the resource, not
|
707
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
708
|
+
# user does not provide a mask then the request will fail.
|
709
|
+
# @!attribute [rw] backup_vault
|
710
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupVault]
|
711
|
+
# Required. The resource being updated
|
712
|
+
# @!attribute [rw] request_id
|
713
|
+
# @return [::String]
|
714
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
715
|
+
# request ID so that if you must retry your request, the server will know to
|
716
|
+
# ignore the request if it has already been completed. The server will
|
717
|
+
# guarantee that for at least 60 minutes since the first request.
|
718
|
+
#
|
719
|
+
# For example, consider a situation where you make an initial request and
|
720
|
+
# the request times out. If you make the request again with the same request
|
721
|
+
# ID, the server can check if original operation with the same request ID
|
722
|
+
# was received, and if so, will ignore the second request. This prevents
|
723
|
+
# clients from accidentally creating duplicate commitments.
|
724
|
+
#
|
725
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
726
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
727
|
+
# @!attribute [rw] validate_only
|
728
|
+
# @return [::Boolean]
|
729
|
+
# Optional. Only validate the request, but do not perform mutations.
|
730
|
+
# The default is 'false'.
|
731
|
+
# @!attribute [rw] force
|
732
|
+
# @return [::Boolean]
|
733
|
+
# Optional. If set to true, will not check plan duration against backup vault
|
734
|
+
# enforcement duration.
|
735
|
+
class UpdateBackupVaultRequest
|
736
|
+
include ::Google::Protobuf::MessageExts
|
737
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
738
|
+
end
|
739
|
+
|
740
|
+
# Message for deleting a BackupVault.
|
741
|
+
# @!attribute [rw] name
|
742
|
+
# @return [::String]
|
743
|
+
# Required. Name of the resource.
|
744
|
+
# @!attribute [rw] request_id
|
745
|
+
# @return [::String]
|
746
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
747
|
+
# request ID so that if you must retry your request, the server will know to
|
748
|
+
# ignore the request if it has already been completed. The server will
|
749
|
+
# guarantee that for at least 60 minutes after the first request.
|
750
|
+
#
|
751
|
+
# For example, consider a situation where you make an initial request and
|
752
|
+
# the request times out. If you make the request again with the same request
|
753
|
+
# ID, the server can check if original operation with the same request ID
|
754
|
+
# was received, and if so, will ignore the second request. This prevents
|
755
|
+
# clients from accidentally creating duplicate commitments.
|
756
|
+
#
|
757
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
758
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
759
|
+
# @!attribute [rw] force
|
760
|
+
# @return [::Boolean]
|
761
|
+
# Optional. If set to true, any data source from this backup vault will also
|
762
|
+
# be deleted.
|
763
|
+
# @!attribute [rw] etag
|
764
|
+
# @return [::String]
|
765
|
+
# The current etag of the backup vault.
|
766
|
+
# If an etag is provided and does not match the current etag of the
|
767
|
+
# connection, deletion will be blocked.
|
768
|
+
# @!attribute [rw] validate_only
|
769
|
+
# @return [::Boolean]
|
770
|
+
# Optional. Only validate the request, but do not perform mutations.
|
771
|
+
# The default is 'false'.
|
772
|
+
# @!attribute [rw] allow_missing
|
773
|
+
# @return [::Boolean]
|
774
|
+
# Optional. If true and the BackupVault is not found, the request will
|
775
|
+
# succeed but no action will be taken.
|
776
|
+
class DeleteBackupVaultRequest
|
777
|
+
include ::Google::Protobuf::MessageExts
|
778
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
779
|
+
end
|
780
|
+
|
781
|
+
# Request message for listing DataSources.
|
782
|
+
# @!attribute [rw] parent
|
783
|
+
# @return [::String]
|
784
|
+
# Required. The project and location for which to retrieve data
|
785
|
+
# sources information, in the format
|
786
|
+
# 'projects/\\{project_id}/locations/\\{location}'. In Cloud Backup and DR,
|
787
|
+
# locations map to Google Cloud regions, for example **us-central1**.
|
788
|
+
# To retrieve data sources for all locations, use "-" for the
|
789
|
+
# '\\{location}' value.
|
790
|
+
# @!attribute [rw] page_size
|
791
|
+
# @return [::Integer]
|
792
|
+
# Optional. Requested page size. Server may return fewer items than
|
793
|
+
# requested. If unspecified, server will pick an appropriate default.
|
794
|
+
# @!attribute [rw] page_token
|
795
|
+
# @return [::String]
|
796
|
+
# Optional. A token identifying a page of results the server should return.
|
797
|
+
# @!attribute [rw] filter
|
798
|
+
# @return [::String]
|
799
|
+
# Optional. Filtering results.
|
800
|
+
# @!attribute [rw] order_by
|
801
|
+
# @return [::String]
|
802
|
+
# Optional. Hint for how to order the results.
|
803
|
+
class ListDataSourcesRequest
|
804
|
+
include ::Google::Protobuf::MessageExts
|
805
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
806
|
+
end
|
807
|
+
|
808
|
+
# Response message for listing DataSources.
|
809
|
+
# @!attribute [rw] data_sources
|
810
|
+
# @return [::Array<::Google::Cloud::BackupDR::V1::DataSource>]
|
811
|
+
# The list of DataSource instances in the project for the specified
|
812
|
+
# location.
|
813
|
+
#
|
814
|
+
# If the '\\{location}' value in the request is "-", the response contains a
|
815
|
+
# list of instances from all locations. In case any location is unreachable,
|
816
|
+
# the response will only return data sources in reachable locations
|
817
|
+
# and the 'unreachable' field will be populated with a list of unreachable
|
818
|
+
# locations.
|
819
|
+
# @!attribute [rw] next_page_token
|
820
|
+
# @return [::String]
|
821
|
+
# A token identifying a page of results the server should return.
|
822
|
+
# @!attribute [rw] unreachable
|
823
|
+
# @return [::Array<::String>]
|
824
|
+
# Locations that could not be reached.
|
825
|
+
class ListDataSourcesResponse
|
826
|
+
include ::Google::Protobuf::MessageExts
|
827
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
828
|
+
end
|
829
|
+
|
830
|
+
# Request message for getting a DataSource instance.
|
831
|
+
# @!attribute [rw] name
|
832
|
+
# @return [::String]
|
833
|
+
# Required. Name of the data source resource name, in the format
|
834
|
+
# 'projects/\\{project_id}/locations/\\{location}/backupVaults/\\{resource_name}/dataSource/\\{resource_name}'
|
835
|
+
class GetDataSourceRequest
|
836
|
+
include ::Google::Protobuf::MessageExts
|
837
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
838
|
+
end
|
839
|
+
|
840
|
+
# Request message for updating a data source instance.
|
841
|
+
# @!attribute [rw] update_mask
|
842
|
+
# @return [::Google::Protobuf::FieldMask]
|
843
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
844
|
+
# DataSource resource by the update.
|
845
|
+
# The fields specified in the update_mask are relative to the resource, not
|
846
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
847
|
+
# user does not provide a mask then the request will fail.
|
848
|
+
# @!attribute [rw] data_source
|
849
|
+
# @return [::Google::Cloud::BackupDR::V1::DataSource]
|
850
|
+
# Required. The resource being updated
|
851
|
+
# @!attribute [rw] request_id
|
852
|
+
# @return [::String]
|
853
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
854
|
+
# request ID so that if you must retry your request, the server will know to
|
855
|
+
# ignore the request if it has already been completed. The server will
|
856
|
+
# guarantee that for at least 60 minutes since the first request.
|
857
|
+
#
|
858
|
+
# For example, consider a situation where you make an initial request and
|
859
|
+
# the request times out. If you make the request again with the same request
|
860
|
+
# ID, the server can check if original operation with the same request ID
|
861
|
+
# was received, and if so, will ignore the second request. This prevents
|
862
|
+
# clients from accidentally creating duplicate commitments.
|
863
|
+
#
|
864
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
865
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
866
|
+
# @!attribute [rw] allow_missing
|
867
|
+
# @return [::Boolean]
|
868
|
+
# Optional. Enable upsert.
|
869
|
+
class UpdateDataSourceRequest
|
870
|
+
include ::Google::Protobuf::MessageExts
|
871
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
872
|
+
end
|
873
|
+
|
874
|
+
# Request message for listing Backups.
|
875
|
+
# @!attribute [rw] parent
|
876
|
+
# @return [::String]
|
877
|
+
# Required. The project and location for which to retrieve backup
|
878
|
+
# information, in the format
|
879
|
+
# 'projects/\\{project_id}/locations/\\{location}'. In Cloud Backup and DR,
|
880
|
+
# locations map to Google Cloud regions, for example **us-central1**.
|
881
|
+
# To retrieve data sources for all locations, use "-" for the
|
882
|
+
# '\\{location}' value.
|
883
|
+
# @!attribute [rw] page_size
|
884
|
+
# @return [::Integer]
|
885
|
+
# Optional. Requested page size. Server may return fewer items than
|
886
|
+
# requested. If unspecified, server will pick an appropriate default.
|
887
|
+
# @!attribute [rw] page_token
|
888
|
+
# @return [::String]
|
889
|
+
# Optional. A token identifying a page of results the server should return.
|
890
|
+
# @!attribute [rw] filter
|
891
|
+
# @return [::String]
|
892
|
+
# Optional. Filtering results.
|
893
|
+
# @!attribute [rw] order_by
|
894
|
+
# @return [::String]
|
895
|
+
# Optional. Hint for how to order the results.
|
896
|
+
# @!attribute [rw] view
|
897
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupView]
|
898
|
+
# Optional. Reserved for future use to provide a BASIC & FULL view of Backup
|
899
|
+
# resource.
|
900
|
+
class ListBackupsRequest
|
901
|
+
include ::Google::Protobuf::MessageExts
|
902
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
903
|
+
end
|
904
|
+
|
905
|
+
# Response message for listing Backups.
|
906
|
+
# @!attribute [rw] backups
|
907
|
+
# @return [::Array<::Google::Cloud::BackupDR::V1::Backup>]
|
908
|
+
# The list of Backup instances in the project for the specified
|
909
|
+
# location.
|
910
|
+
#
|
911
|
+
# If the '\\{location}' value in the request is "-", the response contains a
|
912
|
+
# list of instances from all locations. In case any location is unreachable,
|
913
|
+
# the response will only return data sources in reachable locations
|
914
|
+
# and the 'unreachable' field will be populated with a list of unreachable
|
915
|
+
# locations.
|
916
|
+
# @!attribute [rw] next_page_token
|
917
|
+
# @return [::String]
|
918
|
+
# A token identifying a page of results the server should return.
|
919
|
+
# @!attribute [rw] unreachable
|
920
|
+
# @return [::Array<::String>]
|
921
|
+
# Locations that could not be reached.
|
922
|
+
class ListBackupsResponse
|
923
|
+
include ::Google::Protobuf::MessageExts
|
924
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
925
|
+
end
|
926
|
+
|
927
|
+
# Request message for getting a Backup.
|
928
|
+
# @!attribute [rw] name
|
929
|
+
# @return [::String]
|
930
|
+
# Required. Name of the data source resource name, in the format
|
931
|
+
# 'projects/\\{project_id}/locations/\\{location}/backupVaults/\\{backupVault}/dataSources/\\{datasource}/backups/\\{backup}'
|
932
|
+
# @!attribute [rw] view
|
933
|
+
# @return [::Google::Cloud::BackupDR::V1::BackupView]
|
934
|
+
# Optional. Reserved for future use to provide a BASIC & FULL view of Backup
|
935
|
+
# resource.
|
936
|
+
class GetBackupRequest
|
937
|
+
include ::Google::Protobuf::MessageExts
|
938
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
939
|
+
end
|
940
|
+
|
941
|
+
# Request message for updating a Backup.
|
942
|
+
# @!attribute [rw] update_mask
|
943
|
+
# @return [::Google::Protobuf::FieldMask]
|
944
|
+
# Required. Field mask is used to specify the fields to be overwritten in the
|
945
|
+
# Backup resource by the update.
|
946
|
+
# The fields specified in the update_mask are relative to the resource, not
|
947
|
+
# the full request. A field will be overwritten if it is in the mask. If the
|
948
|
+
# user does not provide a mask then the request will fail.
|
949
|
+
# @!attribute [rw] backup
|
950
|
+
# @return [::Google::Cloud::BackupDR::V1::Backup]
|
951
|
+
# Required. The resource being updated
|
952
|
+
# @!attribute [rw] request_id
|
953
|
+
# @return [::String]
|
954
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
955
|
+
# request ID so that if you must retry your request, the server will know to
|
956
|
+
# ignore the request if it has already been completed. The server will
|
957
|
+
# guarantee that for at least 60 minutes since the first request.
|
958
|
+
#
|
959
|
+
# For example, consider a situation where you make an initial request and
|
960
|
+
# the request times out. If you make the request again with the same request
|
961
|
+
# ID, the server can check if original operation with the same request ID
|
962
|
+
# was received, and if so, will ignore the second request. This prevents
|
963
|
+
# clients from accidentally creating duplicate commitments.
|
964
|
+
#
|
965
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
966
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
967
|
+
class UpdateBackupRequest
|
968
|
+
include ::Google::Protobuf::MessageExts
|
969
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
970
|
+
end
|
971
|
+
|
972
|
+
# Message for deleting a Backup.
|
973
|
+
# @!attribute [rw] name
|
974
|
+
# @return [::String]
|
975
|
+
# Required. Name of the resource.
|
976
|
+
# @!attribute [rw] request_id
|
977
|
+
# @return [::String]
|
978
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
979
|
+
# request ID so that if you must retry your request, the server will know to
|
980
|
+
# ignore the request if it has already been completed. The server will
|
981
|
+
# guarantee that for at least 60 minutes after the first request.
|
982
|
+
#
|
983
|
+
# For example, consider a situation where you make an initial request and
|
984
|
+
# the request times out. If you make the request again with the same request
|
985
|
+
# ID, the server can check if original operation with the same request ID
|
986
|
+
# was received, and if so, will ignore the second request. This prevents
|
987
|
+
# clients from accidentally creating duplicate commitments.
|
988
|
+
#
|
989
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
990
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
991
|
+
class DeleteBackupRequest
|
992
|
+
include ::Google::Protobuf::MessageExts
|
993
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
994
|
+
end
|
995
|
+
|
996
|
+
# Request message for restoring from a Backup.
|
997
|
+
# @!attribute [rw] name
|
998
|
+
# @return [::String]
|
999
|
+
# Required. The resource name of the Backup instance, in the format
|
1000
|
+
# 'projects/*/locations/*/backupVaults/*/dataSources/*/backups/'.
|
1001
|
+
# @!attribute [rw] request_id
|
1002
|
+
# @return [::String]
|
1003
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
1004
|
+
# request ID so that if you must retry your request, the server will know to
|
1005
|
+
# ignore the request if it has already been completed. The server will
|
1006
|
+
# guarantee that for at least 60 minutes after the first request.
|
1007
|
+
#
|
1008
|
+
# For example, consider a situation where you make an initial request and
|
1009
|
+
# the request times out. If you make the request again with the same request
|
1010
|
+
# ID, the server can check if original operation with the same request ID
|
1011
|
+
# was received, and if so, will ignore the second request. This prevents
|
1012
|
+
# clients from accidentally creating duplicate commitments.
|
1013
|
+
#
|
1014
|
+
# The request ID must be a valid UUID with the exception that zero UUID is
|
1015
|
+
# not supported (00000000-0000-0000-0000-000000000000).
|
1016
|
+
# @!attribute [rw] compute_instance_target_environment
|
1017
|
+
# @return [::Google::Cloud::BackupDR::V1::ComputeInstanceTargetEnvironment]
|
1018
|
+
# Compute Engine target environment to be used during restore.
|
1019
|
+
# @!attribute [rw] compute_instance_restore_properties
|
1020
|
+
# @return [::Google::Cloud::BackupDR::V1::ComputeInstanceRestoreProperties]
|
1021
|
+
# Compute Engine instance properties to be overridden during restore.
|
1022
|
+
class RestoreBackupRequest
|
1023
|
+
include ::Google::Protobuf::MessageExts
|
1024
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# Response message for restoring from a Backup.
|
1028
|
+
# @!attribute [rw] target_resource
|
1029
|
+
# @return [::Google::Cloud::BackupDR::V1::TargetResource]
|
1030
|
+
# Details of the target resource created/modified as part of restore.
|
1031
|
+
class RestoreBackupResponse
|
1032
|
+
include ::Google::Protobuf::MessageExts
|
1033
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Details of the target resource created/modified as part of restore.
|
1037
|
+
# @!attribute [rw] gcp_resource
|
1038
|
+
# @return [::Google::Cloud::BackupDR::V1::GcpResource]
|
1039
|
+
# Details of the native Google Cloud resource created as part of restore.
|
1040
|
+
class TargetResource
|
1041
|
+
include ::Google::Protobuf::MessageExts
|
1042
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
# Minimum details to identify a Google Cloud resource
|
1046
|
+
# @!attribute [rw] gcp_resourcename
|
1047
|
+
# @return [::String]
|
1048
|
+
# Name of the Google Cloud resource.
|
1049
|
+
# @!attribute [rw] location
|
1050
|
+
# @return [::String]
|
1051
|
+
# Location of the resource: <region>/<zone>/"global"/"unspecified".
|
1052
|
+
# @!attribute [rw] type
|
1053
|
+
# @return [::String]
|
1054
|
+
# Type of the resource. Use the Unified Resource Type,
|
1055
|
+
# eg. compute.googleapis.com/Instance.
|
1056
|
+
class GcpResource
|
1057
|
+
include ::Google::Protobuf::MessageExts
|
1058
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1059
|
+
end
|
1060
|
+
|
1061
|
+
# Backup configuration state. Is the resource configured for backup?
|
1062
|
+
module BackupConfigState
|
1063
|
+
# The possible states of backup configuration.
|
1064
|
+
# Status not set.
|
1065
|
+
BACKUP_CONFIG_STATE_UNSPECIFIED = 0
|
1066
|
+
|
1067
|
+
# The data source is actively protected (i.e. there is a
|
1068
|
+
# BackupPlanAssociation or Appliance SLA pointing to it)
|
1069
|
+
ACTIVE = 1
|
1070
|
+
|
1071
|
+
# The data source is no longer protected (but may have backups under it)
|
1072
|
+
PASSIVE = 2
|
1073
|
+
end
|
1074
|
+
|
1075
|
+
# BackupView contains enum options for Partial and Full view.
|
1076
|
+
module BackupView
|
1077
|
+
# If the value is not set, the default 'FULL' view is used.
|
1078
|
+
BACKUP_VIEW_UNSPECIFIED = 0
|
1079
|
+
|
1080
|
+
# Includes basic data about the Backup, but not the full contents.
|
1081
|
+
BACKUP_VIEW_BASIC = 1
|
1082
|
+
|
1083
|
+
# Includes all data about the Backup.
|
1084
|
+
# This is the default value (for both ListBackups and GetBackup).
|
1085
|
+
BACKUP_VIEW_FULL = 2
|
1086
|
+
end
|
1087
|
+
|
1088
|
+
# BackupVaultView contains enum options for Partial and Full view.
|
1089
|
+
module BackupVaultView
|
1090
|
+
# If the value is not set, the default 'FULL' view is used.
|
1091
|
+
BACKUP_VAULT_VIEW_UNSPECIFIED = 0
|
1092
|
+
|
1093
|
+
# Includes basic data about the Backup Vault, but not the full contents.
|
1094
|
+
BACKUP_VAULT_VIEW_BASIC = 1
|
1095
|
+
|
1096
|
+
# Includes all data about the Backup Vault.
|
1097
|
+
# This is the default value (for both ListBackupVaults and GetBackupVault).
|
1098
|
+
BACKUP_VAULT_VIEW_FULL = 2
|
1099
|
+
end
|
1100
|
+
end
|
1101
|
+
end
|
1102
|
+
end
|
1103
|
+
end
|