|
| 1 | +// Copyright 2025 Google LLC |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +syntax = "proto3"; |
| 16 | + |
| 17 | +package google.cloud.backupdr.v1; |
| 18 | + |
| 19 | +import "google/api/field_behavior.proto"; |
| 20 | +import "google/api/resource.proto"; |
| 21 | + |
| 22 | +option csharp_namespace = "Google.Cloud.BackupDR.V1"; |
| 23 | +option go_package = "cloud.google.com/go/backupdr/apiv1/backupdrpb;backupdrpb"; |
| 24 | +option java_multiple_files = true; |
| 25 | +option java_outer_classname = "BackupvaultAlloyDBProto"; |
| 26 | +option java_package = "com.google.cloud.backupdr.v1"; |
| 27 | +option php_namespace = "Google\\Cloud\\BackupDR\\V1"; |
| 28 | +option ruby_package = "Google::Cloud::BackupDR::V1"; |
| 29 | +option (google.api.resource_definition) = { |
| 30 | + type: "alloydb.googleapis.com/Cluster" |
| 31 | + pattern: "projects/{project}/locations/{location}/clusters/{cluster}" |
| 32 | +}; |
| 33 | + |
| 34 | +// AlloyDBClusterDataSourceProperties represents the properties of a |
| 35 | +// AlloyDB cluster resource that are stored in the DataSource. |
| 36 | +// . |
| 37 | +message AlloyDBClusterDataSourceProperties { |
| 38 | + // Output only. Name of the AlloyDB cluster backed up by the datasource. |
| 39 | + string name = 1 [ |
| 40 | + (google.api.field_behavior) = OUTPUT_ONLY, |
| 41 | + (google.api.resource_reference) = { type: "alloydb.googleapis.com/Cluster" } |
| 42 | + ]; |
| 43 | +} |
| 44 | + |
| 45 | +// AlloyDbClusterBackupProperties represents AlloyDB cluster |
| 46 | +// backup properties. |
| 47 | +// . |
| 48 | +message AlloyDbClusterBackupProperties { |
| 49 | + // An optional text description for the backup. |
| 50 | + optional string description = 1; |
| 51 | + |
| 52 | + // Output only. Storage usage of this particular backup |
| 53 | + int64 stored_bytes = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 54 | + |
| 55 | + // Output only. The chain id of this backup. Backups belonging to the same |
| 56 | + // chain are sharing the same chain id. This property is calculated and |
| 57 | + // maintained by BackupDR. |
| 58 | + string chain_id = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 59 | + |
| 60 | + // Output only. The PostgreSQL major version of the AlloyDB cluster when the |
| 61 | + // backup was taken. |
| 62 | + string database_version = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; |
| 63 | +} |
0 commit comments