google-cloud-backupdr-v1 1.5.0 → 1.7.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.
@@ -0,0 +1,309 @@
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 V1
24
+ # Request for ListResourceBackupConfigs.
25
+ # @!attribute [rw] parent
26
+ # @return [::String]
27
+ # Required. The project and location for which to retrieve resource backup
28
+ # configs. Format: 'projects/\\{project_id}/locations/\\{location}'. In Google
29
+ # Cloud Backup and DR, locations map to Google Cloud regions, for example
30
+ # **us-central1**.
31
+ # @!attribute [rw] page_size
32
+ # @return [::Integer]
33
+ # Optional. Requested page size. Server may return fewer items than
34
+ # requested. If unspecified, server will use 100 as default. Maximum value is
35
+ # 500 and values above 500 will be coerced to 500.
36
+ # @!attribute [rw] page_token
37
+ # @return [::String]
38
+ # Optional. A token identifying a page of results the server should return.
39
+ # @!attribute [rw] filter
40
+ # @return [::String]
41
+ # Optional. Filtering results.
42
+ # @!attribute [rw] order_by
43
+ # @return [::String]
44
+ # Optional. Hint for how to order the results.
45
+ class ListResourceBackupConfigsRequest
46
+ include ::Google::Protobuf::MessageExts
47
+ extend ::Google::Protobuf::MessageExts::ClassMethods
48
+ end
49
+
50
+ # Response for ListResourceBackupConfigs.
51
+ # @!attribute [rw] resource_backup_configs
52
+ # @return [::Array<::Google::Cloud::BackupDR::V1::ResourceBackupConfig>]
53
+ # The list of ResourceBackupConfigs for the specified scope.
54
+ # @!attribute [rw] next_page_token
55
+ # @return [::String]
56
+ # A token identifying a page of results the server should return.
57
+ class ListResourceBackupConfigsResponse
58
+ include ::Google::Protobuf::MessageExts
59
+ extend ::Google::Protobuf::MessageExts::ClassMethods
60
+ end
61
+
62
+ # ResourceBackupConfig represents a resource along with its backup
63
+ # configurations.
64
+ # @!attribute [rw] name
65
+ # @return [::String]
66
+ # Identifier. The resource name of the ResourceBackupConfig.
67
+ # Format:
68
+ # projects/\\{project}/locations/\\{location}/resourceBackupConfigs/\\{uid}
69
+ # @!attribute [r] uid
70
+ # @return [::String]
71
+ # Output only. The unique identifier of the resource backup config.
72
+ # @!attribute [r] target_resource
73
+ # @return [::String]
74
+ # Output only. The [full resource
75
+ # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
76
+ # of the cloud resource that this configuration applies to. Supported
77
+ # resource types are
78
+ # {::Google::Cloud::BackupDR::V1::ResourceBackupConfig::ResourceType ResourceBackupConfig.ResourceType}.
79
+ # @!attribute [r] target_resource_display_name
80
+ # @return [::String]
81
+ # Output only. The human friendly name of the target resource.
82
+ # @!attribute [r] target_resource_type
83
+ # @return [::Google::Cloud::BackupDR::V1::ResourceBackupConfig::ResourceType]
84
+ # Output only. The type of the target resource.
85
+ # @!attribute [rw] target_resource_labels
86
+ # @return [::Google::Protobuf::Map{::String => ::String}]
87
+ # Labels associated with the target resource.
88
+ # @!attribute [rw] backup_configs_details
89
+ # @return [::Array<::Google::Cloud::BackupDR::V1::BackupConfigDetails>]
90
+ # Backup configurations applying to the target resource, including those
91
+ # targeting its related/child resources. For example, backup configuration
92
+ # applicable to Compute Engine disks will be populated in this field for a
93
+ # Compute Engine VM which has the disk associated.
94
+ # @!attribute [r] backup_configured
95
+ # @return [::Boolean]
96
+ # Output only. Whether the target resource is configured for backup. This is
97
+ # true if the backup_configs_details is not empty.
98
+ # @!attribute [r] vaulted
99
+ # @return [::Boolean]
100
+ # Output only. Whether the target resource is protected by a backup vault.
101
+ # This is true if the backup_configs_details is not empty and any of the
102
+ # {::Google::Cloud::BackupDR::V1::ResourceBackupConfig#backup_configs_details ResourceBackupConfig.backup_configs_details}
103
+ # has a backup configuration with
104
+ # {::Google::Cloud::BackupDR::V1::BackupConfigDetails#backup_vault BackupConfigDetails.backup_vault}
105
+ # set. set.
106
+ class ResourceBackupConfig
107
+ include ::Google::Protobuf::MessageExts
108
+ extend ::Google::Protobuf::MessageExts::ClassMethods
109
+
110
+ # @!attribute [rw] key
111
+ # @return [::String]
112
+ # @!attribute [rw] value
113
+ # @return [::String]
114
+ class TargetResourceLabelsEntry
115
+ include ::Google::Protobuf::MessageExts
116
+ extend ::Google::Protobuf::MessageExts::ClassMethods
117
+ end
118
+
119
+ # The type of the cloud resource.
120
+ module ResourceType
121
+ # Resource type not set.
122
+ RESOURCE_TYPE_UNSPECIFIED = 0
123
+
124
+ # Cloud SQL instance.
125
+ CLOUD_SQL_INSTANCE = 1
126
+
127
+ # Compute Engine VM.
128
+ COMPUTE_ENGINE_VM = 2
129
+
130
+ # Compute Engine Disk.
131
+ COMPUTE_ENGINE_DISK = 3
132
+
133
+ # Compute Engine Regional Disk.
134
+ COMPUTE_ENGINE_REGIONAL_DISK = 4
135
+ end
136
+ end
137
+
138
+ # BackupConfigDetails has information about how the resource is configured
139
+ # for backups and about the most recent backup taken for this configuration.
140
+ # @!attribute [r] backup_config_source
141
+ # @return [::String]
142
+ # Output only. The full resource name of the backup config source resource.
143
+ # For example,
144
+ # "//backupdr.googleapis.com/v1/projects/\\{project}/locations/\\{region}/backupPlans/\\{backupplanId}"
145
+ # or
146
+ # "//compute.googleapis.com/projects/\\{project}/locations/\\{region}/resourcePolicies/\\{resourcePolicyId}".
147
+ # @!attribute [r] backup_config_source_display_name
148
+ # @return [::String]
149
+ # Output only. The display name of the backup config source resource.
150
+ # @!attribute [r] type
151
+ # @return [::Google::Cloud::BackupDR::V1::BackupConfigDetails::Type]
152
+ # Output only. The type of the backup config resource.
153
+ # @!attribute [r] state
154
+ # @return [::Google::Cloud::BackupDR::V1::BackupConfigDetails::State]
155
+ # Output only. The state of the backup config resource.
156
+ # @!attribute [r] pitr_settings
157
+ # @return [::Google::Cloud::BackupDR::V1::PitrSettings]
158
+ # Output only. Point in time recovery settings of the backup configuration
159
+ # resource.
160
+ # @!attribute [r] latest_successful_backup_time
161
+ # @return [::Google::Protobuf::Timestamp]
162
+ # Output only. Timestamp of the latest successful backup created via this
163
+ # backup configuration.
164
+ # @!attribute [r] applicable_resource
165
+ # @return [::String]
166
+ # Output only. The [full resource
167
+ # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
168
+ # of the resource that is applicable for the backup configuration. Example:
169
+ # "//compute.googleapis.com/projects/\\{project}/zones/\\{zone}/instances/\\{instance}"
170
+ # @!attribute [r] backup_vault
171
+ # @return [::String]
172
+ # Output only. The [full resource
173
+ # name](https://cloud.google.com/asset-inventory/docs/resource-name-format)
174
+ # of the backup vault that will store the backups generated through this
175
+ # backup configuration. Example:
176
+ # "//backupdr.googleapis.com/v1/projects/\\{project}/locations/\\{region}/backupVaults/\\{backupvaultId}"
177
+ # @!attribute [rw] backup_locations
178
+ # @return [::Array<::Google::Cloud::BackupDR::V1::BackupLocation>]
179
+ # The locations where the backups are to be stored.
180
+ # @!attribute [rw] backup_dr_plan_config
181
+ # @return [::Google::Cloud::BackupDR::V1::BackupDrPlanConfig]
182
+ # Google Cloud Backup and DR's Backup Plan specific data.
183
+ #
184
+ # Note: The following fields are mutually exclusive: `backup_dr_plan_config`, `backup_dr_template_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
185
+ # @!attribute [rw] backup_dr_template_config
186
+ # @return [::Google::Cloud::BackupDR::V1::BackupDrTemplateConfig]
187
+ # Google Cloud Backup and DR's Template specific data.
188
+ #
189
+ # Note: The following fields are mutually exclusive: `backup_dr_template_config`, `backup_dr_plan_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
190
+ class BackupConfigDetails
191
+ include ::Google::Protobuf::MessageExts
192
+ extend ::Google::Protobuf::MessageExts::ClassMethods
193
+
194
+ # Type of the backup configuration.
195
+ # This enum may receive new values in the future.
196
+ module Type
197
+ # Backup config type is unspecified.
198
+ TYPE_UNSPECIFIED = 0
199
+
200
+ # Backup config is Cloud SQL instance's automated backup config.
201
+ CLOUD_SQL_INSTANCE_BACKUP_CONFIG = 1
202
+
203
+ # Backup config is Compute Engine Resource Policy.
204
+ COMPUTE_ENGINE_RESOURCE_POLICY = 2
205
+
206
+ # Backup config is Google Cloud Backup and DR's Backup Plan.
207
+ BACKUPDR_BACKUP_PLAN = 3
208
+
209
+ # Backup config is Google Cloud Backup and DR's Template.
210
+ BACKUPDR_TEMPLATE = 4
211
+ end
212
+
213
+ # The state tells whether the backup config is active or not.
214
+ module State
215
+ # Backup config state not set.
216
+ STATE_UNSPECIFIED = 0
217
+
218
+ # The config is in an active state protecting the resource
219
+ ACTIVE = 1
220
+
221
+ # The config is currently not protecting the resource. Either because it is
222
+ # disabled or the owning project has been deleted without cleanup of the
223
+ # actual resource.
224
+ INACTIVE = 2
225
+
226
+ # The config still exists but because of some error state it is not
227
+ # protecting the resource. Like the source project is deleted. For eg.
228
+ # PlanAssociation, BackupPlan is deleted.
229
+ ERROR = 3
230
+ end
231
+ end
232
+
233
+ # Point in time recovery settings of the backup configuration resource.
234
+ # @!attribute [r] retention_days
235
+ # @return [::Integer]
236
+ # Output only. Number of days to retain the backup.
237
+ class PitrSettings
238
+ include ::Google::Protobuf::MessageExts
239
+ extend ::Google::Protobuf::MessageExts::ClassMethods
240
+ end
241
+
242
+ # Provides additional information about Google Cloud Backup
243
+ # and DR's Template backup configuration.
244
+ # @!attribute [r] first_party_management_uri
245
+ # @return [::String]
246
+ # Output only. The URI of the BackupDr template resource for the first party
247
+ # identity users.
248
+ # @!attribute [r] third_party_management_uri
249
+ # @return [::String]
250
+ # Output only. The URI of the BackupDr template resource for the third party
251
+ # identity users.
252
+ class BackupDrTemplateConfig
253
+ include ::Google::Protobuf::MessageExts
254
+ extend ::Google::Protobuf::MessageExts::ClassMethods
255
+ end
256
+
257
+ # BackupDrPlanConfig has additional information about Google Cloud Backup and
258
+ # DR's Plan backup configuration.
259
+ # @!attribute [rw] backup_dr_plan_rules
260
+ # @return [::Array<::Google::Cloud::BackupDR::V1::BackupDrPlanRule>]
261
+ # Backup rules of the backup plan resource.
262
+ class BackupDrPlanConfig
263
+ include ::Google::Protobuf::MessageExts
264
+ extend ::Google::Protobuf::MessageExts::ClassMethods
265
+ end
266
+
267
+ # BackupDrPlanRule has rule specific information of the backup plan resource.
268
+ # @!attribute [r] rule_id
269
+ # @return [::String]
270
+ # Output only. Unique Id of the backup rule.
271
+ # @!attribute [r] last_successful_backup_time
272
+ # @return [::Google::Protobuf::Timestamp]
273
+ # Output only. Timestamp of the latest successful backup created via this
274
+ # backup rule.
275
+ class BackupDrPlanRule
276
+ include ::Google::Protobuf::MessageExts
277
+ extend ::Google::Protobuf::MessageExts::ClassMethods
278
+ end
279
+
280
+ # BackupLocation represents a cloud location where a backup can be stored.
281
+ # @!attribute [r] type
282
+ # @return [::Google::Cloud::BackupDR::V1::BackupLocation::Type]
283
+ # Output only. The type of the location.
284
+ # @!attribute [r] location_id
285
+ # @return [::String]
286
+ # Output only. The id of the cloud location. Example: "us-central1"
287
+ class BackupLocation
288
+ include ::Google::Protobuf::MessageExts
289
+ extend ::Google::Protobuf::MessageExts::ClassMethods
290
+
291
+ # The type of the location.
292
+ module Type
293
+ # Location type is unspecified.
294
+ TYPE_UNSPECIFIED = 0
295
+
296
+ # Location type is zonal.
297
+ ZONAL = 1
298
+
299
+ # Location type is regional.
300
+ REGIONAL = 2
301
+
302
+ # Location type is multi regional.
303
+ MULTI_REGIONAL = 3
304
+ end
305
+ end
306
+ end
307
+ end
308
+ end
309
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-backupdr-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -80,6 +80,13 @@ files:
80
80
  - README.md
81
81
  - lib/google-cloud-backupdr-v1.rb
82
82
  - lib/google/cloud/backupdr/v1.rb
83
+ - lib/google/cloud/backupdr/v1/backup_dr_protection_summary.rb
84
+ - lib/google/cloud/backupdr/v1/backup_dr_protection_summary/client.rb
85
+ - lib/google/cloud/backupdr/v1/backup_dr_protection_summary/credentials.rb
86
+ - lib/google/cloud/backupdr/v1/backup_dr_protection_summary/paths.rb
87
+ - lib/google/cloud/backupdr/v1/backup_dr_protection_summary/rest.rb
88
+ - lib/google/cloud/backupdr/v1/backup_dr_protection_summary/rest/client.rb
89
+ - lib/google/cloud/backupdr/v1/backup_dr_protection_summary/rest/service_stub.rb
83
90
  - lib/google/cloud/backupdr/v1/backupdr.rb
84
91
  - lib/google/cloud/backupdr/v1/backupdr/client.rb
85
92
  - lib/google/cloud/backupdr/v1/backupdr/credentials.rb
@@ -100,6 +107,8 @@ files:
100
107
  - lib/google/cloud/backupdr/v1/backupvault_pb.rb
101
108
  - lib/google/cloud/backupdr/v1/bindings_override.rb
102
109
  - lib/google/cloud/backupdr/v1/datasourcereference_pb.rb
110
+ - lib/google/cloud/backupdr/v1/protection_summary_pb.rb
111
+ - lib/google/cloud/backupdr/v1/protection_summary_services_pb.rb
103
112
  - lib/google/cloud/backupdr/v1/rest.rb
104
113
  - lib/google/cloud/backupdr/v1/version.rb
105
114
  - proto_docs/README.md
@@ -117,6 +126,7 @@ files:
117
126
  - proto_docs/google/cloud/backupdr/v1/backupvault_disk.rb
118
127
  - proto_docs/google/cloud/backupdr/v1/backupvault_gce.rb
119
128
  - proto_docs/google/cloud/backupdr/v1/datasourcereference.rb
129
+ - proto_docs/google/cloud/backupdr/v1/protection_summary.rb
120
130
  - proto_docs/google/longrunning/operations.rb
121
131
  - proto_docs/google/protobuf/any.rb
122
132
  - proto_docs/google/protobuf/duration.rb