google-cloud-backupdr-v1beta 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -6
  3. data/lib/google/cloud/backupdr/v1beta/appliedautoprotectionpolicy_pb.rb +1 -1
  4. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicy_pb.rb +2 -1
  5. data/lib/google/cloud/backupdr/v1beta/autoprotectionpolicybinding_pb.rb +2 -1
  6. data/lib/google/cloud/backupdr/v1beta/backupdr/client.rb +2265 -114
  7. data/lib/google/cloud/backupdr/v1beta/backupdr/paths.rb +99 -0
  8. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/client.rb +2137 -112
  9. data/lib/google/cloud/backupdr/v1beta/backupdr/rest/service_stub.rb +1491 -386
  10. data/lib/google/cloud/backupdr/v1beta/backupdr_pb.rb +5 -1
  11. data/lib/google/cloud/backupdr/v1beta/backupdr_services_pb.rb +45 -0
  12. data/lib/google/cloud/backupdr/v1beta/backupvault_pb.rb +3 -1
  13. data/lib/google/cloud/backupdr/v1beta/bindingmatchingresource_pb.rb +1 -1
  14. data/lib/google/cloud/backupdr/v1beta/restore_template_common_pb.rb +28 -0
  15. data/lib/google/cloud/backupdr/v1beta/restore_template_execution_pb.rb +45 -0
  16. data/lib/google/cloud/backupdr/v1beta/restore_template_pb.rb +40 -0
  17. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_association_pb.rb +36 -0
  18. data/lib/google/cloud/backupdr/v1beta/restore_verification_plan_pb.rb +34 -0
  19. data/lib/google/cloud/backupdr/v1beta/version.rb +1 -1
  20. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicy.rb +38 -7
  21. data/proto_docs/google/cloud/backupdr/v1beta/autoprotectionpolicybinding.rb +32 -5
  22. data/proto_docs/google/cloud/backupdr/v1beta/backupvault.rb +31 -0
  23. data/proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb +6 -6
  24. data/proto_docs/google/cloud/backupdr/v1beta/restore_template.rb +292 -0
  25. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_common.rb +80 -0
  26. data/proto_docs/google/cloud/backupdr/v1beta/restore_template_execution.rb +399 -0
  27. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan.rb +270 -0
  28. data/proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan_association.rb +264 -0
  29. data/proto_docs/google/protobuf/struct.rb +108 -0
  30. metadata +12 -1
@@ -0,0 +1,264 @@
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 `RestoreVerificationPlanAssociation` binds a specific workload to a
25
+ # `RestoreVerificationPlan`.
26
+ # @!attribute [rw] restore_template
27
+ # @return [::String]
28
+ # Required. Immutable. The canonical name of the RestoreTemplate to
29
+ # trigger.
30
+ # @!attribute [r] name
31
+ # @return [::String]
32
+ # Output only. Identifier. The resource name of the
33
+ # `RestoreVerificationPlanAssociation`.
34
+ #
35
+ # Format:
36
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
37
+ # @!attribute [rw] description
38
+ # @return [::String]
39
+ # Optional. The description of the `RestoreVerificationPlanAssociation`
40
+ # resource.
41
+ # @!attribute [r] create_time
42
+ # @return [::Google::Protobuf::Timestamp]
43
+ # Output only. The time when the association was created.
44
+ # @!attribute [r] update_time
45
+ # @return [::Google::Protobuf::Timestamp]
46
+ # Output only. The time when the association was updated.
47
+ # @!attribute [r] state
48
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation::State]
49
+ # Output only. The `State` for the `RestoreVerificationPlanAssociation`.
50
+ # @!attribute [r] trigger_summary
51
+ # @return [::Google::Cloud::BackupDR::V1beta::TriggerSummary]
52
+ # Output only. Results of the most recent automated restore initiation
53
+ # and the next scheduled execution time.
54
+ # @!attribute [rw] resource_type
55
+ # @return [::String]
56
+ # Required. Immutable. The type of the Google Cloud resource (e.g.,
57
+ # `compute.googleapis.com/Instance`, `sqladmin.googleapis.com/Instance`).
58
+ # @!attribute [rw] labels
59
+ # @return [::Google::Protobuf::Map{::String => ::String}]
60
+ # Optional. User-defined labels.
61
+ class RestoreVerificationPlanAssociation
62
+ include ::Google::Protobuf::MessageExts
63
+ extend ::Google::Protobuf::MessageExts::ClassMethods
64
+
65
+ # @!attribute [rw] key
66
+ # @return [::String]
67
+ # @!attribute [rw] value
68
+ # @return [::String]
69
+ class LabelsEntry
70
+ include ::Google::Protobuf::MessageExts
71
+ extend ::Google::Protobuf::MessageExts::ClassMethods
72
+ end
73
+
74
+ # `State` enumerates the possible states for a
75
+ # `RestoreVerificationPlanAssociation`.
76
+ module State
77
+ # State not set.
78
+ STATE_UNSPECIFIED = 0
79
+
80
+ # The resource is being created.
81
+ CREATING = 1
82
+
83
+ # The resource has been created and is fully usable.
84
+ ACTIVE = 2
85
+
86
+ # The resource is being deleted.
87
+ DELETING = 3
88
+
89
+ # The resource has been created but is not usable.
90
+ INACTIVE = 4
91
+
92
+ # The resource is being updated.
93
+ UPDATING = 5
94
+
95
+ # The resource is in an error state due to a configuration issue.
96
+ ERROR = 6
97
+ end
98
+ end
99
+
100
+ # `TriggerSummary` contains the results of the most recent automated restore
101
+ # initiation and the next scheduled execution time.
102
+ # @!attribute [r] last_trigger_time
103
+ # @return [::Google::Protobuf::Timestamp]
104
+ # Output only. The time of the most recent trigger initiation.
105
+ # @!attribute [r] next_trigger_time
106
+ # @return [::Google::Protobuf::Timestamp]
107
+ # Output only. The scheduled time of the next trigger initiation.
108
+ # @!attribute [r] last_trigger_error
109
+ # @return [::Google::Rpc::Status]
110
+ # Output only. The error status of the most recent failed trigger.
111
+ # @!attribute [r] last_verification_execution
112
+ # @return [::String]
113
+ # Output only. The resource name of the most recent initiated
114
+ # RestoreTemplateExecution.
115
+ # Format:
116
+ # `projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{execution}`
117
+ class TriggerSummary
118
+ include ::Google::Protobuf::MessageExts
119
+ extend ::Google::Protobuf::MessageExts::ClassMethods
120
+ end
121
+
122
+ # Request message for CreateRestoreVerificationPlanAssociation.
123
+ # @!attribute [rw] parent
124
+ # @return [::String]
125
+ # Required. The parent resource where this association will be created.
126
+ # Format:
127
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
128
+ # @!attribute [rw] restore_verification_plan_association_id
129
+ # @return [::String]
130
+ # Required. The ID to use for the association, which will become the final
131
+ # component of the association's resource name.
132
+ #
133
+ # This value should be 1-63 characters, and valid characters are
134
+ # /[a-z0-9_-]/.
135
+ # @!attribute [rw] restore_verification_plan_association
136
+ # @return [::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation]
137
+ # Required. The RestoreVerificationPlanAssociation resource to create.
138
+ # @!attribute [rw] request_id
139
+ # @return [::String]
140
+ # Optional. An optional request ID to identify requests. Specify a unique
141
+ # request ID so that if you must retry your request, the server will know
142
+ # that the server has already received the duplicate request and can avoid
143
+ # responding with an error. The request ID must be a valid UUID with the
144
+ # exception that zero UUID is not supported
145
+ # (00000000-0000-0000-0000-000000000000).
146
+ class CreateRestoreVerificationPlanAssociationRequest
147
+ include ::Google::Protobuf::MessageExts
148
+ extend ::Google::Protobuf::MessageExts::ClassMethods
149
+ end
150
+
151
+ # Request message for GetRestoreVerificationPlanAssociation.
152
+ # @!attribute [rw] name
153
+ # @return [::String]
154
+ # Required. The resource name of the RestoreVerificationPlanAssociation to
155
+ # retrieve.
156
+ # Format:
157
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
158
+ class GetRestoreVerificationPlanAssociationRequest
159
+ include ::Google::Protobuf::MessageExts
160
+ extend ::Google::Protobuf::MessageExts::ClassMethods
161
+ end
162
+
163
+ # Request message for ListRestoreVerificationPlanAssociations.
164
+ # @!attribute [rw] parent
165
+ # @return [::String]
166
+ # Required. The parent RestoreVerificationPlan name.
167
+ # Format:
168
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}`
169
+ # @!attribute [rw] page_size
170
+ # @return [::Integer]
171
+ # Optional. The maximum number of associations to return. The service may
172
+ # return fewer than this value.
173
+ # If unspecified, at most 500 associations will be returned.
174
+ # The maximum value is 1000; values above 1000 will be coerced to 1000.
175
+ # @!attribute [rw] page_token
176
+ # @return [::String]
177
+ # Optional. A page token, received from a previous
178
+ # `ListRestoreVerificationPlanAssociations` call.
179
+ # Provide this to retrieve the subsequent page.
180
+ #
181
+ # When paginating, all other parameters provided to
182
+ # `ListRestoreVerificationPlanAssociations` must match the call that provided
183
+ # the page token.
184
+ # @!attribute [rw] filter
185
+ # @return [::String]
186
+ # Optional. Filtering results.
187
+ # @!attribute [rw] order_by
188
+ # @return [::String]
189
+ # Optional. Hint for how to order the results.
190
+ class ListRestoreVerificationPlanAssociationsRequest
191
+ include ::Google::Protobuf::MessageExts
192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
+ end
194
+
195
+ # Response message for ListRestoreVerificationPlanAssociations.
196
+ # @!attribute [rw] restore_verification_plan_associations
197
+ # @return [::Array<::Google::Cloud::BackupDR::V1beta::RestoreVerificationPlanAssociation>]
198
+ # The list of RestoreVerificationPlanAssociations.
199
+ # @!attribute [rw] next_page_token
200
+ # @return [::String]
201
+ # A token, which can be sent as `page_token` to retrieve the next page.
202
+ # If this field is omitted, there are no subsequent pages.
203
+ # @!attribute [rw] unreachable
204
+ # @return [::Array<::String>]
205
+ # Unordered list. Locations that could not be reached.
206
+ class ListRestoreVerificationPlanAssociationsResponse
207
+ include ::Google::Protobuf::MessageExts
208
+ extend ::Google::Protobuf::MessageExts::ClassMethods
209
+ end
210
+
211
+ # Request message for DeleteRestoreVerificationPlanAssociation.
212
+ # @!attribute [rw] name
213
+ # @return [::String]
214
+ # Required. The resource name of the RestoreVerificationPlanAssociation to
215
+ # delete.
216
+ # Format:
217
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
218
+ # @!attribute [rw] request_id
219
+ # @return [::String]
220
+ # Optional. An optional request ID to identify requests. Specify a unique
221
+ # request ID so that if you must retry your request, the server will know
222
+ # that the server has already received the duplicate request and can avoid
223
+ # responding with an error. The request ID must be a valid UUID with the
224
+ # exception that zero UUID is not supported
225
+ # (00000000-0000-0000-0000-000000000000).
226
+ class DeleteRestoreVerificationPlanAssociationRequest
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+ end
230
+
231
+ # Request message for TriggerRestoreVerification.
232
+ # @!attribute [rw] name
233
+ # @return [::String]
234
+ # Required. The resource name of the RestoreVerificationPlanAssociation to
235
+ # trigger.
236
+ # Format:
237
+ # `projects/{project}/locations/{location}/restoreVerificationPlans/{restore_verification_plan}/associations/{association}`
238
+ # @!attribute [rw] request_id
239
+ # @return [::String]
240
+ # Optional. An optional request ID to identify requests. Specify a unique
241
+ # request ID so that if you must retry your request, the server will know
242
+ # that the server has already received the duplicate request and can avoid
243
+ # responding with an error. The request ID must be a valid UUID with the
244
+ # exception that zero UUID is not supported
245
+ # (00000000-0000-0000-0000-000000000000).
246
+ class TriggerRestoreVerificationRequest
247
+ include ::Google::Protobuf::MessageExts
248
+ extend ::Google::Protobuf::MessageExts::ClassMethods
249
+ end
250
+
251
+ # Response message for TriggerRestoreVerification.
252
+ # @!attribute [r] restore_template_execution
253
+ # @return [::String]
254
+ # Output only. The resource name of the initiated RestoreTemplateExecution.
255
+ # Format:
256
+ # `projects/{project}/locations/{location}/restoreTemplates/{restore_template}/executions/{execution}`
257
+ class TriggerRestoreVerificationResponse
258
+ include ::Google::Protobuf::MessageExts
259
+ extend ::Google::Protobuf::MessageExts::ClassMethods
260
+ end
261
+ end
262
+ end
263
+ end
264
+ end
@@ -0,0 +1,108 @@
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 Protobuf
22
+ # `Struct` represents a structured data value, consisting of fields
23
+ # which map to dynamically typed values. In some languages, `Struct`
24
+ # might be supported by a native representation. For example, in
25
+ # scripting languages like JS a struct is represented as an
26
+ # object. The details of that representation are described together
27
+ # with the proto support for the language.
28
+ #
29
+ # The JSON representation for `Struct` is JSON object.
30
+ # @!attribute [rw] fields
31
+ # @return [::Google::Protobuf::Map{::String => ::Google::Protobuf::Value}]
32
+ # Unordered map of dynamically typed values.
33
+ class Struct
34
+ include ::Google::Protobuf::MessageExts
35
+ extend ::Google::Protobuf::MessageExts::ClassMethods
36
+
37
+ # @!attribute [rw] key
38
+ # @return [::String]
39
+ # @!attribute [rw] value
40
+ # @return [::Google::Protobuf::Value]
41
+ class FieldsEntry
42
+ include ::Google::Protobuf::MessageExts
43
+ extend ::Google::Protobuf::MessageExts::ClassMethods
44
+ end
45
+ end
46
+
47
+ # `Value` represents a dynamically typed value which can be either
48
+ # null, a number, a string, a boolean, a recursive struct value, or a
49
+ # list of values. A producer of value is expected to set one of these
50
+ # variants. Absence of any variant indicates an error.
51
+ #
52
+ # The JSON representation for `Value` is JSON value.
53
+ # @!attribute [rw] null_value
54
+ # @return [::Google::Protobuf::NullValue]
55
+ # Represents a null value.
56
+ #
57
+ # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
58
+ # @!attribute [rw] number_value
59
+ # @return [::Float]
60
+ # Represents a double value.
61
+ #
62
+ # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
63
+ # @!attribute [rw] string_value
64
+ # @return [::String]
65
+ # Represents a string value.
66
+ #
67
+ # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
68
+ # @!attribute [rw] bool_value
69
+ # @return [::Boolean]
70
+ # Represents a boolean value.
71
+ #
72
+ # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
73
+ # @!attribute [rw] struct_value
74
+ # @return [::Google::Protobuf::Struct]
75
+ # Represents a structured value.
76
+ #
77
+ # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
78
+ # @!attribute [rw] list_value
79
+ # @return [::Google::Protobuf::ListValue]
80
+ # Represents a repeated `Value`.
81
+ #
82
+ # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
83
+ class Value
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
87
+
88
+ # `ListValue` is a wrapper around a repeated field of values.
89
+ #
90
+ # The JSON representation for `ListValue` is JSON array.
91
+ # @!attribute [rw] values
92
+ # @return [::Array<::Google::Protobuf::Value>]
93
+ # Repeated field of dynamically typed values.
94
+ class ListValue
95
+ include ::Google::Protobuf::MessageExts
96
+ extend ::Google::Protobuf::MessageExts::ClassMethods
97
+ end
98
+
99
+ # `NullValue` is a singleton enumeration to represent the null value for the
100
+ # `Value` type union.
101
+ #
102
+ # The JSON representation for `NullValue` is JSON `null`.
103
+ module NullValue
104
+ # Null value.
105
+ NULL_VALUE = 0
106
+ end
107
+ end
108
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-backupdr-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -115,6 +115,11 @@ files:
115
115
  - lib/google/cloud/backupdr/v1beta/protection_summary_pb.rb
116
116
  - lib/google/cloud/backupdr/v1beta/protection_summary_services_pb.rb
117
117
  - lib/google/cloud/backupdr/v1beta/rest.rb
118
+ - lib/google/cloud/backupdr/v1beta/restore_template_common_pb.rb
119
+ - lib/google/cloud/backupdr/v1beta/restore_template_execution_pb.rb
120
+ - lib/google/cloud/backupdr/v1beta/restore_template_pb.rb
121
+ - lib/google/cloud/backupdr/v1beta/restore_verification_plan_association_pb.rb
122
+ - lib/google/cloud/backupdr/v1beta/restore_verification_plan_pb.rb
118
123
  - lib/google/cloud/backupdr/v1beta/version.rb
119
124
  - proto_docs/README.md
120
125
  - proto_docs/google/api/client.rb
@@ -137,11 +142,17 @@ files:
137
142
  - proto_docs/google/cloud/backupdr/v1beta/bindingmatchingresource.rb
138
143
  - proto_docs/google/cloud/backupdr/v1beta/datasourcereference.rb
139
144
  - proto_docs/google/cloud/backupdr/v1beta/protection_summary.rb
145
+ - proto_docs/google/cloud/backupdr/v1beta/restore_template.rb
146
+ - proto_docs/google/cloud/backupdr/v1beta/restore_template_common.rb
147
+ - proto_docs/google/cloud/backupdr/v1beta/restore_template_execution.rb
148
+ - proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan.rb
149
+ - proto_docs/google/cloud/backupdr/v1beta/restore_verification_plan_association.rb
140
150
  - proto_docs/google/longrunning/operations.rb
141
151
  - proto_docs/google/protobuf/any.rb
142
152
  - proto_docs/google/protobuf/duration.rb
143
153
  - proto_docs/google/protobuf/empty.rb
144
154
  - proto_docs/google/protobuf/field_mask.rb
155
+ - proto_docs/google/protobuf/struct.rb
145
156
  - proto_docs/google/protobuf/timestamp.rb
146
157
  - proto_docs/google/protobuf/wrappers.rb
147
158
  - proto_docs/google/rpc/status.rb