google-cloud-backupdr-v1 0.2.1 → 0.4.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 (28) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -20
  3. data/lib/google/cloud/backupdr/v1/backupdr/client.rb +2850 -156
  4. data/lib/google/cloud/backupdr/v1/backupdr/operations.rb +12 -15
  5. data/lib/google/cloud/backupdr/v1/backupdr/paths.rb +101 -0
  6. data/lib/google/cloud/backupdr/v1/backupdr/rest/client.rb +2676 -156
  7. data/lib/google/cloud/backupdr/v1/backupdr/rest/operations.rb +43 -38
  8. data/lib/google/cloud/backupdr/v1/backupdr/rest/service_stub.rb +1514 -83
  9. data/lib/google/cloud/backupdr/v1/backupdr_pb.rb +5 -1
  10. data/lib/google/cloud/backupdr/v1/backupdr_services_pb.rb +48 -0
  11. data/lib/google/cloud/backupdr/v1/backupplan_pb.rb +62 -0
  12. data/lib/google/cloud/backupdr/v1/backupplanassociation_pb.rb +59 -0
  13. data/lib/google/cloud/backupdr/v1/backupvault_ba_pb.rb +46 -0
  14. data/lib/google/cloud/backupdr/v1/backupvault_gce_pb.rb +87 -0
  15. data/lib/google/cloud/backupdr/v1/backupvault_pb.rb +99 -0
  16. data/lib/google/cloud/backupdr/v1/version.rb +1 -1
  17. data/proto_docs/google/api/client.rb +39 -0
  18. data/proto_docs/google/api/field_info.rb +88 -0
  19. data/proto_docs/google/cloud/backupdr/v1/backupdr.rb +11 -10
  20. data/proto_docs/google/cloud/backupdr/v1/backupplan.rb +414 -0
  21. data/proto_docs/google/cloud/backupdr/v1/backupplanassociation.rb +272 -0
  22. data/proto_docs/google/cloud/backupdr/v1/backupvault.rb +1103 -0
  23. data/proto_docs/google/cloud/backupdr/v1/backupvault_ba.rb +47 -0
  24. data/proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb +993 -0
  25. data/proto_docs/google/longrunning/operations.rb +19 -14
  26. data/proto_docs/google/type/dayofweek.rb +49 -0
  27. data/proto_docs/google/type/month.rb +64 -0
  28. metadata +18 -5
@@ -0,0 +1,272 @@
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
+ # A BackupPlanAssociation represents a single BackupPlanAssociation which
25
+ # contains details like workload, backup plan etc
26
+ # @!attribute [r] name
27
+ # @return [::String]
28
+ # Output only. Identifier. The resource name of BackupPlanAssociation in
29
+ # below format Format :
30
+ # projects/\\{project}/locations/\\{location}/backupPlanAssociations/\\{backupPlanAssociationId}
31
+ # @!attribute [rw] resource_type
32
+ # @return [::String]
33
+ # Optional. Resource type of workload on which backupplan is applied
34
+ # @!attribute [rw] resource
35
+ # @return [::String]
36
+ # Required. Immutable. Resource name of workload on which backupplan is
37
+ # applied
38
+ # @!attribute [rw] backup_plan
39
+ # @return [::String]
40
+ # Required. Resource name of backup plan which needs to be applied on
41
+ # workload. Format:
42
+ # projects/\\{project}/locations/\\{location}/backupPlans/\\{backupPlanId}
43
+ # @!attribute [r] create_time
44
+ # @return [::Google::Protobuf::Timestamp]
45
+ # Output only. The time when the instance was created.
46
+ # @!attribute [r] update_time
47
+ # @return [::Google::Protobuf::Timestamp]
48
+ # Output only. The time when the instance was updated.
49
+ # @!attribute [r] state
50
+ # @return [::Google::Cloud::BackupDR::V1::BackupPlanAssociation::State]
51
+ # Output only. The BackupPlanAssociation resource state.
52
+ # @!attribute [r] rules_config_info
53
+ # @return [::Array<::Google::Cloud::BackupDR::V1::RuleConfigInfo>]
54
+ # Output only. The config info related to backup rules.
55
+ # @!attribute [r] data_source
56
+ # @return [::String]
57
+ # Output only. Output Only.
58
+ #
59
+ # Resource name of data source which will be used as storage location for
60
+ # backups taken.
61
+ # Format :
62
+ # projects/\\{project}/locations/\\{location}/backupVaults/\\{backupvault}/dataSources/\\{datasource}
63
+ class BackupPlanAssociation
64
+ include ::Google::Protobuf::MessageExts
65
+ extend ::Google::Protobuf::MessageExts::ClassMethods
66
+
67
+ # Enum for State of BackupPlan Association
68
+ module State
69
+ # State not set.
70
+ STATE_UNSPECIFIED = 0
71
+
72
+ # The resource is being created.
73
+ CREATING = 1
74
+
75
+ # The resource has been created and is fully usable.
76
+ ACTIVE = 2
77
+
78
+ # The resource is being deleted.
79
+ DELETING = 3
80
+
81
+ # The resource has been created but is not usable.
82
+ INACTIVE = 4
83
+ end
84
+ end
85
+
86
+ # Message for rules config info.
87
+ # @!attribute [r] rule_id
88
+ # @return [::String]
89
+ # Output only. Output Only.
90
+ #
91
+ # Backup Rule id fetched from backup plan.
92
+ # @!attribute [r] last_backup_state
93
+ # @return [::Google::Cloud::BackupDR::V1::RuleConfigInfo::LastBackupState]
94
+ # Output only. The last backup state for rule.
95
+ # @!attribute [r] last_backup_error
96
+ # @return [::Google::Rpc::Status]
97
+ # Output only. Output Only.
98
+ #
99
+ # google.rpc.Status object to store the last backup error.
100
+ # @!attribute [r] last_successful_backup_consistency_time
101
+ # @return [::Google::Protobuf::Timestamp]
102
+ # Output only. The point in time when the last successful backup was captured
103
+ # from the source.
104
+ class RuleConfigInfo
105
+ include ::Google::Protobuf::MessageExts
106
+ extend ::Google::Protobuf::MessageExts::ClassMethods
107
+
108
+ # Enum for LastBackupState
109
+ module LastBackupState
110
+ # State not set.
111
+ LAST_BACKUP_STATE_UNSPECIFIED = 0
112
+
113
+ # The first backup is pending.
114
+ FIRST_BACKUP_PENDING = 1
115
+
116
+ # The most recent backup could not be run/failed because of the lack of
117
+ # permissions.
118
+ PERMISSION_DENIED = 2
119
+
120
+ # The last backup operation succeeded.
121
+ SUCCEEDED = 3
122
+
123
+ # The last backup operation failed.
124
+ FAILED = 4
125
+ end
126
+ end
127
+
128
+ # Request message for creating a backup plan.
129
+ # @!attribute [rw] parent
130
+ # @return [::String]
131
+ # Required. The backup plan association project and location in the format
132
+ # `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations
133
+ # map to GCP regions, for example **us-central1**.
134
+ # @!attribute [rw] backup_plan_association_id
135
+ # @return [::String]
136
+ # Required. The name of the backup plan association to create. The name must
137
+ # be unique for the specified project and location.
138
+ # @!attribute [rw] backup_plan_association
139
+ # @return [::Google::Cloud::BackupDR::V1::BackupPlanAssociation]
140
+ # Required. The resource being created
141
+ # @!attribute [rw] request_id
142
+ # @return [::String]
143
+ # Optional. An optional request ID to identify requests. Specify a unique
144
+ # request ID so that if you must retry your request, the server will know to
145
+ # ignore the request if it has already been completed. The server will
146
+ # guarantee that for at least 60 minutes since the first request.
147
+ #
148
+ # For example, consider a situation where you make an initial request and t
149
+ # he request times out. If you make the request again with the same request
150
+ # ID, the server can check if original operation with the same request ID
151
+ # was received, and if so, will ignore the second request. This prevents
152
+ # clients from accidentally creating duplicate commitments.
153
+ #
154
+ # The request ID must be a valid UUID with the exception that zero UUID is
155
+ # not supported (00000000-0000-0000-0000-000000000000).
156
+ class CreateBackupPlanAssociationRequest
157
+ include ::Google::Protobuf::MessageExts
158
+ extend ::Google::Protobuf::MessageExts::ClassMethods
159
+ end
160
+
161
+ # Request message for List BackupPlanAssociation
162
+ # @!attribute [rw] parent
163
+ # @return [::String]
164
+ # Required. The project and location for which to retrieve backup Plan
165
+ # Associations information, in the format
166
+ # `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations
167
+ # map to GCP regions, for example **us-central1**. To retrieve backup plan
168
+ # associations for all locations, use "-" for the
169
+ # `{location}` value.
170
+ # @!attribute [rw] page_size
171
+ # @return [::Integer]
172
+ # Optional. Requested page size. Server may return fewer items than
173
+ # requested. If unspecified, server will pick an appropriate default.
174
+ # @!attribute [rw] page_token
175
+ # @return [::String]
176
+ # Optional. A token identifying a page of results the server should return.
177
+ # @!attribute [rw] filter
178
+ # @return [::String]
179
+ # Optional. Filtering results
180
+ class ListBackupPlanAssociationsRequest
181
+ include ::Google::Protobuf::MessageExts
182
+ extend ::Google::Protobuf::MessageExts::ClassMethods
183
+ end
184
+
185
+ # Response message for List BackupPlanAssociation
186
+ # @!attribute [rw] backup_plan_associations
187
+ # @return [::Array<::Google::Cloud::BackupDR::V1::BackupPlanAssociation>]
188
+ # The list of Backup Plan Associations in the project for the specified
189
+ # location.
190
+ #
191
+ # If the `{location}` value in the request is "-", the response contains a
192
+ # list of instances from all locations. In case any location is unreachable,
193
+ # the response will only return backup plan associations in reachable
194
+ # locations and the 'unreachable' field will be populated with a list of
195
+ # unreachable locations.
196
+ # @!attribute [rw] next_page_token
197
+ # @return [::String]
198
+ # A token identifying a page of results the server should return.
199
+ # @!attribute [rw] unreachable
200
+ # @return [::Array<::String>]
201
+ # Locations that could not be reached.
202
+ class ListBackupPlanAssociationsResponse
203
+ include ::Google::Protobuf::MessageExts
204
+ extend ::Google::Protobuf::MessageExts::ClassMethods
205
+ end
206
+
207
+ # Request message for getting a BackupPlanAssociation resource.
208
+ # @!attribute [rw] name
209
+ # @return [::String]
210
+ # Required. Name of the backup plan association resource, in the format
211
+ # `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
212
+ class GetBackupPlanAssociationRequest
213
+ include ::Google::Protobuf::MessageExts
214
+ extend ::Google::Protobuf::MessageExts::ClassMethods
215
+ end
216
+
217
+ # Request message for deleting a backup plan association.
218
+ # @!attribute [rw] name
219
+ # @return [::String]
220
+ # Required. Name of the backup plan association resource, in the format
221
+ # `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
222
+ # @!attribute [rw] request_id
223
+ # @return [::String]
224
+ # Optional. An optional request ID to identify requests. Specify a unique
225
+ # request ID so that if you must retry your request, the server will know to
226
+ # ignore the request if it has already been completed. The server will
227
+ # guarantee that for at least 60 minutes after the first request.
228
+ #
229
+ # For example, consider a situation where you make an initial request and
230
+ # the request times out. If you make the request again with the same request
231
+ # ID, the server can check if original operation with the same request ID
232
+ # was received, and if so, will ignore the second request. This prevents
233
+ # clients from accidentally creating duplicate commitments.
234
+ #
235
+ # The request ID must be a valid UUID with the exception that zero UUID is
236
+ # not supported (00000000-0000-0000-0000-000000000000).
237
+ class DeleteBackupPlanAssociationRequest
238
+ include ::Google::Protobuf::MessageExts
239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
240
+ end
241
+
242
+ # Request message for triggering a backup.
243
+ # @!attribute [rw] name
244
+ # @return [::String]
245
+ # Required. Name of the backup plan association resource, in the format
246
+ # `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
247
+ # @!attribute [rw] rule_id
248
+ # @return [::String]
249
+ # Required. backup rule_id for which a backup needs to be triggered.
250
+ # @!attribute [rw] request_id
251
+ # @return [::String]
252
+ # Optional. An optional request ID to identify requests. Specify a unique
253
+ # request ID so that if you must retry your request, the server will know to
254
+ # ignore the request if it has already been completed. The server will
255
+ # guarantee that for at least 60 minutes after the first request.
256
+ #
257
+ # For example, consider a situation where you make an initial request and
258
+ # the request times out. If you make the request again with the same request
259
+ # ID, the server can check if original operation with the same request ID
260
+ # was received, and if so, will ignore the second request. This prevents
261
+ # clients from accidentally creating duplicate commitments.
262
+ #
263
+ # The request ID must be a valid UUID with the exception that zero UUID is
264
+ # not supported (00000000-0000-0000-0000-000000000000).
265
+ class TriggerBackupRequest
266
+ include ::Google::Protobuf::MessageExts
267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
268
+ end
269
+ end
270
+ end
271
+ end
272
+ end