google-cloud-backupdr-v1beta 0.a → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy_pb.rb +30 -0
  6. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicy_pb.rb +39 -0
  7. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicybinding_pb.rb +32 -0
  8. data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/client.rb +532 -0
  9. data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/credentials.rb +48 -0
  10. data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/paths.rb +50 -0
  11. data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/rest/client.rb +491 -0
  12. data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/rest/service_stub.rb +142 -0
  13. data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary/rest.rb +53 -0
  14. data/lib/google/cloud/backupdr/v1beta/backup_dr_protection_summary.rb +55 -0
  15. data/lib/google/cloud/backupdr/v1beta/backupdr/client.rb +6101 -0
  16. data/lib/google/cloud/backupdr/v1beta/backupdr/credentials.rb +48 -0
  17. data/lib/google/cloud/backupdr/v1beta/backupdr/operations.rb +843 -0
  18. data/lib/google/cloud/backupdr/v1beta/backupdr/paths.rb +372 -0
  19. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/client.rb +5724 -0
  20. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/operations.rb +927 -0
  21. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/service_stub.rb +3086 -0
  22. data/lib/google/cloud/backupdr/v1beta/backupdr/rest.rb +54 -0
  23. data/lib/google/cloud/backupdr/v1beta/backupdr.rb +56 -0
  24. data/lib/google/cloud/backupdr/v1beta/backupdr_pb.rb +55 -0
  25. data/lib/google/cloud/backupdr/v1beta/backupdr_services_pb.rb +145 -0
  26. data/lib/google/cloud/backupdr/v1beta/backupplan_pb.rb +49 -0
  27. data/lib/google/cloud/backupdr/v1beta/backupplanassociation_pb.rb +42 -0
  28. data/lib/google/cloud/backupdr/v1beta/backupvault_alloydb_pb.rb +30 -0
  29. data/lib/google/cloud/backupdr/v1beta/backupvault_ba_pb.rb +24 -0
  30. data/lib/google/cloud/backupdr/v1beta/backupvault_cloudsql_pb.rb +30 -0
  31. data/lib/google/cloud/backupdr/v1beta/backupvault_disk_pb.rb +33 -0
  32. data/lib/google/cloud/backupdr/v1beta/backupvault_gce_pb.rb +66 -0
  33. data/lib/google/cloud/backupdr/v1beta/backupvault_pb.rb +80 -0
  34. data/lib/google/cloud/backupdr/v1beta/bindingmatchingresource_pb.rb +31 -0
  35. data/lib/google/cloud/backupdr/v1beta/bindings_override.rb +108 -0
  36. data/lib/google/cloud/backupdr/v1beta/datasourcereference_pb.rb +35 -0
  37. data/lib/google/cloud/backupdr/v1beta/protection_summary_pb.rb +40 -0
  38. data/lib/google/cloud/backupdr/v1beta/protection_summary_services_pb.rb +45 -0
  39. data/lib/google/cloud/backupdr/v1beta/rest.rb +39 -0
  40. data/lib/google/cloud/backupdr/v1beta/version.rb +8 -3
  41. data/lib/google/cloud/backupdr/v1beta.rb +46 -0
  42. data/lib/google-cloud-backupdr-v1beta.rb +21 -0
  43. data/proto_docs/README.md +4 -0
  44. data/proto_docs/google/api/client.rb +593 -0
  45. data/proto_docs/google/api/field_behavior.rb +85 -0
  46. data/proto_docs/google/api/field_info.rb +88 -0
  47. data/proto_docs/google/api/launch_stage.rb +71 -0
  48. data/proto_docs/google/api/resource.rb +227 -0
  49. data/proto_docs/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy.rb +121 -0
  50. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicy.rb +277 -0
  51. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.rb +180 -0
  52. data/proto_docs/google/cloud/backupdr/v1beta/backupdr.rb +428 -0
  53. data/proto_docs/google/cloud/backupdr/v1beta/backupplan.rb +637 -0
  54. data/proto_docs/google/cloud/backupdr/v1beta/backupplanassociation.rb +423 -0
  55. data/proto_docs/google/cloud/backupdr/v1beta/backupvault.rb +1391 -0
  56. data/proto_docs/google/cloud/backupdr/v1beta/backupvault_alloydb.rb +105 -0
  57. data/proto_docs/google/cloud/backupdr/v1beta/backupvault_ba.rb +47 -0
  58. data/proto_docs/google/cloud/backupdr/v1beta/backupvault_cloudsql.rb +131 -0
  59. data/proto_docs/google/cloud/backupdr/v1beta/backupvault_disk.rb +301 -0
  60. data/proto_docs/google/cloud/backupdr/v1beta/backupvault_gce.rb +1010 -0
  61. data/proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb +160 -0
  62. data/proto_docs/google/cloud/backupdr/v1beta/datasourcereference.rb +236 -0
  63. data/proto_docs/google/cloud/backupdr/v1beta/protection_summary.rb +309 -0
  64. data/proto_docs/google/longrunning/operations.rb +191 -0
  65. data/proto_docs/google/protobuf/any.rb +145 -0
  66. data/proto_docs/google/protobuf/duration.rb +98 -0
  67. data/proto_docs/google/protobuf/empty.rb +34 -0
  68. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  69. data/proto_docs/google/protobuf/timestamp.rb +128 -0
  70. data/proto_docs/google/protobuf/wrappers.rb +148 -0
  71. data/proto_docs/google/rpc/status.rb +48 -0
  72. data/proto_docs/google/type/dayofweek.rb +49 -0
  73. data/proto_docs/google/type/month.rb +64 -0
  74. metadata +134 -9
@@ -0,0 +1,423 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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 V1beta
24
+ # A BackupPlanAssociation represents a single BackupPlanAssociation which
25
+ # contains details like workload, backup plan etc
26
+ # @!attribute [r] cloud_sql_instance_backup_plan_association_properties
27
+ # @return [::Google::Cloud::BackupDR::V1beta::CloudSqlInstanceBackupPlanAssociationProperties]
28
+ # Output only. Cloud SQL instance's backup plan association properties.
29
+ #
30
+ # Note: The following fields are mutually exclusive: `cloud_sql_instance_backup_plan_association_properties`, `alloydb_cluster_backup_plan_association_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared.
31
+ # @!attribute [r] alloydb_cluster_backup_plan_association_properties
32
+ # @return [::Google::Cloud::BackupDR::V1beta::AlloyDBClusterBackupPlanAssociationProperties]
33
+ # Output only. AlloyDB cluster's backup plan association properties.
34
+ #
35
+ # Note: The following fields are mutually exclusive: `alloydb_cluster_backup_plan_association_properties`, `cloud_sql_instance_backup_plan_association_properties`. If a field in that set is populated, all other fields in the set will automatically be cleared.
36
+ # @!attribute [r] name
37
+ # @return [::String]
38
+ # Output only. Identifier. The resource name of BackupPlanAssociation in
39
+ # below format Format :
40
+ # projects/\\{project}/locations/\\{location}/backupPlanAssociations/\\{backupPlanAssociationId}
41
+ # @!attribute [rw] resource_type
42
+ # @return [::String]
43
+ # Required. Immutable. Resource type of workload on which backupplan is
44
+ # applied
45
+ # @!attribute [rw] resource
46
+ # @return [::String]
47
+ # Required. Immutable. Resource name of workload on which the backup plan is
48
+ # applied.
49
+ #
50
+ # The format can either be the resource name (e.g.,
51
+ # "projects/my-project/zones/us-central1-a/instances/my-instance") or the
52
+ # full resource URI (e.g.,
53
+ # "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance").
54
+ # @!attribute [rw] backup_plan
55
+ # @return [::String]
56
+ # Required. Resource name of backup plan which needs to be applied on
57
+ # workload. Format:
58
+ # projects/\\{project}/locations/\\{location}/backupPlans/\\{backupPlanId}
59
+ # @!attribute [r] create_time
60
+ # @return [::Google::Protobuf::Timestamp]
61
+ # Output only. The time when the instance was created.
62
+ # @!attribute [r] update_time
63
+ # @return [::Google::Protobuf::Timestamp]
64
+ # Output only. The time when the instance was updated.
65
+ # @!attribute [r] state
66
+ # @return [::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation::State]
67
+ # Output only. The BackupPlanAssociation resource state.
68
+ # @!attribute [r] rules_config_info
69
+ # @return [::Array<::Google::Cloud::BackupDR::V1beta::RuleConfigInfo>]
70
+ # Output only. The config info related to backup rules.
71
+ # @!attribute [r] data_source
72
+ # @return [::String]
73
+ # Output only. Resource name of data source which will be used as storage
74
+ # location for backups taken. Format :
75
+ # projects/\\{project}/locations/\\{location}/backupVaults/\\{backupvault}/dataSources/\\{datasource}
76
+ # @!attribute [r] backup_plan_revision_id
77
+ # @return [::String]
78
+ # Output only. The user friendly revision ID of the `BackupPlanRevision`.
79
+ #
80
+ # Example: v0, v1, v2, etc.
81
+ # @!attribute [r] backup_plan_revision_name
82
+ # @return [::String]
83
+ # Output only. The resource id of the `BackupPlanRevision`.
84
+ #
85
+ # Format:
86
+ # `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`
87
+ # @!attribute [r] auto_protection_policy_binding
88
+ # @return [::String]
89
+ # Output only. The resource name of the `AutoProtectionPolicyBinding` that
90
+ # manages this association, if any.
91
+ # Format:
92
+ # `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
93
+ class BackupPlanAssociation
94
+ include ::Google::Protobuf::MessageExts
95
+ extend ::Google::Protobuf::MessageExts::ClassMethods
96
+
97
+ # Enum for State of BackupPlan Association
98
+ module State
99
+ # State not set.
100
+ STATE_UNSPECIFIED = 0
101
+
102
+ # The resource is being created.
103
+ CREATING = 1
104
+
105
+ # The resource has been created and is fully usable.
106
+ ACTIVE = 2
107
+
108
+ # The resource is being deleted.
109
+ DELETING = 3
110
+
111
+ # The resource has been created but is not usable.
112
+ INACTIVE = 4
113
+
114
+ # The resource is being updated.
115
+ UPDATING = 5
116
+
117
+ # The resource has been created but backups are paused.
118
+ PAUSED = 6
119
+ end
120
+ end
121
+
122
+ # Message for rules config info.
123
+ # @!attribute [r] rule_id
124
+ # @return [::String]
125
+ # Output only. Backup Rule id fetched from backup plan.
126
+ # @!attribute [r] last_backup_state
127
+ # @return [::Google::Cloud::BackupDR::V1beta::RuleConfigInfo::LastBackupState]
128
+ # Output only. The last backup state for rule.
129
+ # @!attribute [r] last_backup_error
130
+ # @return [::Google::Rpc::Status]
131
+ # Output only. google.rpc.Status object to store the last backup error.
132
+ # @!attribute [r] last_successful_backup_consistency_time
133
+ # @return [::Google::Protobuf::Timestamp]
134
+ # Output only. The point in time when the last successful backup was captured
135
+ # from the source.
136
+ class RuleConfigInfo
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+
140
+ # Enum for LastBackupState
141
+ module LastBackupState
142
+ # State not set.
143
+ LAST_BACKUP_STATE_UNSPECIFIED = 0
144
+
145
+ # The first backup is pending.
146
+ FIRST_BACKUP_PENDING = 1
147
+
148
+ # The most recent backup could not be run/failed because of the lack of
149
+ # permissions.
150
+ PERMISSION_DENIED = 2
151
+
152
+ # The last backup operation succeeded.
153
+ SUCCEEDED = 3
154
+
155
+ # The last backup operation failed.
156
+ FAILED = 4
157
+ end
158
+ end
159
+
160
+ # Request message for creating a backup plan.
161
+ # @!attribute [rw] parent
162
+ # @return [::String]
163
+ # Required. The backup plan association project and location in the format
164
+ # `projects/{project_id}/locations/{location}`. In Backup and DR locations
165
+ # map to Google Cloud regions, for example **us-central1**.
166
+ # @!attribute [rw] backup_plan_association_id
167
+ # @return [::String]
168
+ # Required. The name of the backup plan association to create. The name must
169
+ # be unique for the specified project and location.
170
+ # @!attribute [rw] backup_plan_association
171
+ # @return [::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation]
172
+ # Required. The resource being created
173
+ # @!attribute [rw] request_id
174
+ # @return [::String]
175
+ # Optional. An optional request ID to identify requests. Specify a unique
176
+ # request ID so that if you must retry your request, the server will know to
177
+ # ignore the request if it has already been completed. The server will
178
+ # guarantee that for at least 60 minutes since the first request.
179
+ #
180
+ # For example, consider a situation where you make an initial request and t
181
+ # he request times out. If you make the request again with the same request
182
+ # ID, the server can check if original operation with the same request ID
183
+ # was received, and if so, will ignore the second request. This prevents
184
+ # clients from accidentally creating duplicate commitments.
185
+ #
186
+ # The request ID must be a valid UUID with the exception that zero UUID is
187
+ # not supported (00000000-0000-0000-0000-000000000000).
188
+ class CreateBackupPlanAssociationRequest
189
+ include ::Google::Protobuf::MessageExts
190
+ extend ::Google::Protobuf::MessageExts::ClassMethods
191
+ end
192
+
193
+ # Request message for List BackupPlanAssociation
194
+ # @!attribute [rw] parent
195
+ # @return [::String]
196
+ # Required. The project and location for which to retrieve backup Plan
197
+ # Associations information, in the format
198
+ # `projects/{project_id}/locations/{location}`. In Backup and DR, locations
199
+ # map to Google Cloud regions, for example **us-central1**. To retrieve
200
+ # backup plan associations for all locations, use "-" for the
201
+ # `{location}` value.
202
+ # @!attribute [rw] page_size
203
+ # @return [::Integer]
204
+ # Optional. Requested page size. Server may return fewer items than
205
+ # requested. If unspecified, server will pick an appropriate default.
206
+ # @!attribute [rw] page_token
207
+ # @return [::String]
208
+ # Optional. A token identifying a page of results the server should return.
209
+ # @!attribute [rw] filter
210
+ # @return [::String]
211
+ # Optional. Filtering results
212
+ class ListBackupPlanAssociationsRequest
213
+ include ::Google::Protobuf::MessageExts
214
+ extend ::Google::Protobuf::MessageExts::ClassMethods
215
+ end
216
+
217
+ # Response message for List BackupPlanAssociation
218
+ # @!attribute [rw] backup_plan_associations
219
+ # @return [::Array<::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation>]
220
+ # The list of Backup Plan Associations in the project for the specified
221
+ # location.
222
+ #
223
+ # If the `{location}` value in the request is "-", the response contains a
224
+ # list of instances from all locations. In case any location is unreachable,
225
+ # the response will only return backup plan associations in reachable
226
+ # locations and the 'unreachable' field will be populated with a list of
227
+ # unreachable locations.
228
+ # @!attribute [rw] next_page_token
229
+ # @return [::String]
230
+ # A token identifying a page of results the server should return.
231
+ # @!attribute [rw] unreachable
232
+ # @return [::Array<::String>]
233
+ # Locations that could not be reached.
234
+ class ListBackupPlanAssociationsResponse
235
+ include ::Google::Protobuf::MessageExts
236
+ extend ::Google::Protobuf::MessageExts::ClassMethods
237
+ end
238
+
239
+ # Request for the FetchBackupPlanAssociationsForResourceType method.
240
+ # @!attribute [rw] parent
241
+ # @return [::String]
242
+ # Required. The parent resource name.
243
+ # Format: projects/\\{project}/locations/\\{location}
244
+ # @!attribute [rw] resource_type
245
+ # @return [::String]
246
+ # Required. The type of the Google Cloud resource.
247
+ # Ex: sql.googleapis.com/Instance
248
+ # @!attribute [rw] page_size
249
+ # @return [::Integer]
250
+ # Optional. The maximum number of BackupPlanAssociations to return. The
251
+ # service may return fewer than this value. If unspecified, at most 50
252
+ # BackupPlanAssociations will be returned. The maximum value is 100; values
253
+ # above 100 will be coerced to 100.
254
+ # @!attribute [rw] page_token
255
+ # @return [::String]
256
+ # Optional. A page token, received from a previous call of
257
+ # `FetchBackupPlanAssociationsForResourceType`.
258
+ # Provide this to retrieve the subsequent page.
259
+ #
260
+ # When paginating, all other parameters provided to
261
+ # `FetchBackupPlanAssociationsForResourceType` must match
262
+ # the call that provided the page token.
263
+ # @!attribute [rw] filter
264
+ # @return [::String]
265
+ # Optional. A filter expression that filters the results fetched in the
266
+ # response. The expression must specify the field name, a comparison
267
+ # operator, and the value that you want to use for filtering. Supported
268
+ # fields:
269
+ # * resource
270
+ # * backup_plan
271
+ # * state
272
+ # * data_source
273
+ # * cloud_sql_instance_backup_plan_association_properties.instance_create_time
274
+ # @!attribute [rw] order_by
275
+ # @return [::String]
276
+ # Optional. A comma-separated list of fields to order by, sorted in ascending
277
+ # order. Use "desc" after a field name for descending.
278
+ #
279
+ # Supported fields:
280
+ # * name
281
+ class FetchBackupPlanAssociationsForResourceTypeRequest
282
+ include ::Google::Protobuf::MessageExts
283
+ extend ::Google::Protobuf::MessageExts::ClassMethods
284
+ end
285
+
286
+ # Response for the FetchBackupPlanAssociationsForResourceType method.
287
+ # @!attribute [r] backup_plan_associations
288
+ # @return [::Array<::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation>]
289
+ # Output only. The BackupPlanAssociations from the specified parent.
290
+ # @!attribute [r] next_page_token
291
+ # @return [::String]
292
+ # Output only. A token, which can be sent as `page_token` to retrieve the
293
+ # next page. If this field is omitted, there are no subsequent pages.
294
+ class FetchBackupPlanAssociationsForResourceTypeResponse
295
+ include ::Google::Protobuf::MessageExts
296
+ extend ::Google::Protobuf::MessageExts::ClassMethods
297
+ end
298
+
299
+ # Request message for getting a BackupPlanAssociation resource.
300
+ # @!attribute [rw] name
301
+ # @return [::String]
302
+ # Required. Name of the backup plan association resource, in the format
303
+ # `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
304
+ class GetBackupPlanAssociationRequest
305
+ include ::Google::Protobuf::MessageExts
306
+ extend ::Google::Protobuf::MessageExts::ClassMethods
307
+ end
308
+
309
+ # Request message for deleting a backup plan association.
310
+ # @!attribute [rw] name
311
+ # @return [::String]
312
+ # Required. Name of the backup plan association resource, in the format
313
+ # `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
314
+ # @!attribute [rw] request_id
315
+ # @return [::String]
316
+ # Optional. An optional request ID to identify requests. Specify a unique
317
+ # request ID so that if you must retry your request, the server will know to
318
+ # ignore the request if it has already been completed. The server will
319
+ # guarantee that for at least 60 minutes after the first request.
320
+ #
321
+ # For example, consider a situation where you make an initial request and
322
+ # the request times out. If you make the request again with the same request
323
+ # ID, the server can check if original operation with the same request ID
324
+ # was received, and if so, will ignore the second request. This prevents
325
+ # clients from accidentally creating duplicate commitments.
326
+ #
327
+ # The request ID must be a valid UUID with the exception that zero UUID is
328
+ # not supported (00000000-0000-0000-0000-000000000000).
329
+ # @!attribute [rw] auto_protection_policy_binding
330
+ # @return [::String]
331
+ # Optional. This field is exclusively used by Backup and DR's auto-protection
332
+ # feature. The resource name of the `AutoProtectionPolicyBinding` that
333
+ # triggered the deletion of this association.
334
+ # Format:
335
+ # `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.
336
+ class DeleteBackupPlanAssociationRequest
337
+ include ::Google::Protobuf::MessageExts
338
+ extend ::Google::Protobuf::MessageExts::ClassMethods
339
+ end
340
+
341
+ # Request message for updating a backup plan association.
342
+ # @!attribute [rw] backup_plan_association
343
+ # @return [::Google::Cloud::BackupDR::V1beta::BackupPlanAssociation]
344
+ # Required. The resource being updated
345
+ # @!attribute [rw] update_mask
346
+ # @return [::Google::Protobuf::FieldMask]
347
+ # Required. The list of fields to update.
348
+ # Field mask is used to specify the fields to be overwritten in the
349
+ # BackupPlanAssociation resource by the update.
350
+ # The fields specified in the update_mask are relative to the resource, not
351
+ # the full request. A field will be overwritten if it is in the mask. If the
352
+ # user does not provide a mask then the request will fail.
353
+ # Currently backup_plan_association.backup_plan is the only supported field.
354
+ # @!attribute [rw] request_id
355
+ # @return [::String]
356
+ # Optional. An optional request ID to identify requests. Specify a unique
357
+ # request ID so that if you must retry your request, the server will know to
358
+ # ignore the request if it has already been completed. The server will
359
+ # guarantee that for at least 60 minutes since the first request.
360
+ #
361
+ # For example, consider a situation where you make an initial request and t
362
+ # he request times out. If you make the request again with the same request
363
+ # ID, the server can check if original operation with the same request ID
364
+ # was received, and if so, will ignore the second request. This prevents
365
+ # clients from accidentally creating duplicate commitments.
366
+ #
367
+ # The request ID must be a valid UUID with the exception that zero UUID is
368
+ # not supported (00000000-0000-0000-0000-000000000000).
369
+ class UpdateBackupPlanAssociationRequest
370
+ include ::Google::Protobuf::MessageExts
371
+ extend ::Google::Protobuf::MessageExts::ClassMethods
372
+ end
373
+
374
+ # Request message for triggering a backup.
375
+ # @!attribute [rw] name
376
+ # @return [::String]
377
+ # Required. Name of the backup plan association resource, in the format
378
+ # `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
379
+ # @!attribute [rw] rule_id
380
+ # @return [::String]
381
+ # Optional. backup rule_id for which a backup needs to be triggered.
382
+ # If not specified, on-demand backup with custom retention will be triggered.
383
+ # @!attribute [rw] request_id
384
+ # @return [::String]
385
+ # Optional. An optional request ID to identify requests. Specify a unique
386
+ # request ID so that if you must retry your request, the server will know to
387
+ # ignore the request if it has already been completed. The server will
388
+ # guarantee that for at least 60 minutes after the first request.
389
+ #
390
+ # For example, consider a situation where you make an initial request and
391
+ # the request times out. If you make the request again with the same request
392
+ # ID, the server can check if original operation with the same request ID
393
+ # was received, and if so, will ignore the second request. This prevents
394
+ # clients from accidentally creating duplicate commitments.
395
+ #
396
+ # The request ID must be a valid UUID with the exception that zero UUID is
397
+ # not supported (00000000-0000-0000-0000-000000000000).
398
+ # @!attribute [rw] custom_retention_days
399
+ # @return [::Integer]
400
+ # Optional. The duration for which backup data will be kept, while taking an
401
+ # on-demand backup with custom retention. It is defined in "days".
402
+ # It is mutually exclusive with rule_id. This field is required if
403
+ # rule_id is not provided.
404
+ # @!attribute [rw] labels
405
+ # @return [::Google::Protobuf::Map{::String => ::String}]
406
+ # Optional. Labels to be applied on the backup.
407
+ class TriggerBackupRequest
408
+ include ::Google::Protobuf::MessageExts
409
+ extend ::Google::Protobuf::MessageExts::ClassMethods
410
+
411
+ # @!attribute [rw] key
412
+ # @return [::String]
413
+ # @!attribute [rw] value
414
+ # @return [::String]
415
+ class LabelsEntry
416
+ include ::Google::Protobuf::MessageExts
417
+ extend ::Google::Protobuf::MessageExts::ClassMethods
418
+ end
419
+ end
420
+ end
421
+ end
422
+ end
423
+ end