Skip to content

Commit 385d8b8

Browse files
Google APIscopybara-github
authored andcommitted
feat: add volume_region and backup_region to backup Backup message
feat: add `source_region`, `backup_region`, `source_backup_vault`, `destination_backup_vault`, `backupVault_type` (of new enum type `BackupVaultType`) to `BackupVault` message PiperOrigin-RevId: 752905479
1 parent e3b25af commit 385d8b8

2 files changed

Lines changed: 73 additions & 0 deletions

File tree

google/cloud/netapp/v1/backup.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,24 @@ message Backup {
130130

131131
// Output only. Reserved for future use
132132
bool satisfies_pzi = 12 [(google.api.field_behavior) = OUTPUT_ONLY];
133+
134+
// Output only. Region of the volume from which the backup was created.
135+
// Format: `projects/{project_id}/locations/{location}`
136+
string volume_region = 13 [
137+
(google.api.field_behavior) = OUTPUT_ONLY,
138+
(google.api.resource_reference) = {
139+
type: "locations.googleapis.com/Location"
140+
}
141+
];
142+
143+
// Output only. Region in which backup is stored.
144+
// Format: `projects/{project_id}/locations/{location}`
145+
string backup_region = 14 [
146+
(google.api.field_behavior) = OUTPUT_ONLY,
147+
(google.api.resource_reference) = {
148+
type: "locations.googleapis.com/Location"
149+
}
150+
];
133151
}
134152

135153
// ListBackupsRequest lists backups.

google/cloud/netapp/v1/backup_vault.proto

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,18 @@ message BackupVault {
5959
UPDATING = 5;
6060
}
6161

62+
// Backup Vault Type.
63+
enum BackupVaultType {
64+
// BackupVault type not set.
65+
BACKUP_VAULT_TYPE_UNSPECIFIED = 0;
66+
67+
// BackupVault type is IN_REGION.
68+
IN_REGION = 1;
69+
70+
// BackupVault type is CROSS_REGION.
71+
CROSS_REGION = 2;
72+
}
73+
6274
// Identifier. The resource name of the backup vault.
6375
// Format:
6476
// `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`.
@@ -76,6 +88,49 @@ message BackupVault {
7688

7789
// Resource labels to represent user provided metadata.
7890
map<string, string> labels = 5;
91+
92+
// Optional. Type of backup vault to be created.
93+
// Default is IN_REGION.
94+
BackupVaultType backup_vault_type = 6
95+
[(google.api.field_behavior) = OPTIONAL];
96+
97+
// Output only. Region in which the backup vault is created.
98+
// Format: `projects/{project_id}/locations/{location}`
99+
string source_region = 7 [
100+
(google.api.field_behavior) = OUTPUT_ONLY,
101+
(google.api.resource_reference) = {
102+
type: "locations.googleapis.com/Location"
103+
}
104+
];
105+
106+
// Optional. Region where the backups are stored.
107+
// Format: `projects/{project_id}/locations/{location}`
108+
string backup_region = 8 [
109+
(google.api.field_behavior) = OPTIONAL,
110+
(google.api.resource_reference) = {
111+
type: "locations.googleapis.com/Location"
112+
}
113+
];
114+
115+
// Output only. Name of the Backup vault created in source region.
116+
// Format:
117+
// `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
118+
string source_backup_vault = 9 [
119+
(google.api.field_behavior) = OUTPUT_ONLY,
120+
(google.api.resource_reference) = {
121+
type: "netapp.googleapis.com/BackupVault"
122+
}
123+
];
124+
125+
// Output only. Name of the Backup vault created in backup region.
126+
// Format:
127+
// `projects/{project_id}/locations/{location}/backupVaults/{backup_vault_id}`
128+
string destination_backup_vault = 10 [
129+
(google.api.field_behavior) = OUTPUT_ONLY,
130+
(google.api.resource_reference) = {
131+
type: "netapp.googleapis.com/BackupVault"
132+
}
133+
];
79134
}
80135

81136
// GetBackupVaultRequest gets the state of a backupVault.

0 commit comments

Comments
 (0)