1// Copyright 2023 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 15syntax = "proto3"; 16 17package google.cloud.gkebackup.v1; 18 19import "google/api/field_behavior.proto"; 20import "google/api/resource.proto"; 21 22option csharp_namespace = "Google.Cloud.GkeBackup.V1"; 23option go_package = "cloud.google.com/go/gkebackup/apiv1/gkebackuppb;gkebackuppb"; 24option java_multiple_files = true; 25option java_outer_classname = "CommonProto"; 26option java_package = "com.google.cloud.gkebackup.v1"; 27option php_namespace = "Google\\Cloud\\GkeBackup\\V1"; 28option ruby_package = "Google::Cloud::GkeBackup::V1"; 29 30// A list of Kubernetes Namespaces 31message Namespaces { 32 // Optional. A list of Kubernetes Namespaces 33 repeated string namespaces = 1 [(google.api.field_behavior) = OPTIONAL]; 34} 35 36// A reference to a namespaced resource in Kubernetes. 37message NamespacedName { 38 // Optional. The Namespace of the Kubernetes resource. 39 string namespace = 1 [(google.api.field_behavior) = OPTIONAL]; 40 41 // Optional. The name of the Kubernetes resource. 42 string name = 2 [(google.api.field_behavior) = OPTIONAL]; 43} 44 45// A list of namespaced Kubernetes resources. 46message NamespacedNames { 47 // Optional. A list of namespaced Kubernetes resources. 48 repeated NamespacedName namespaced_names = 1 49 [(google.api.field_behavior) = OPTIONAL]; 50} 51 52// Defined a customer managed encryption key that will be used to encrypt Backup 53// artifacts. 54message EncryptionKey { 55 // Optional. Google Cloud KMS encryption key. Format: 56 // `projects/*/locations/*/keyRings/*/cryptoKeys/*` 57 string gcp_kms_encryption_key = 1 [ 58 (google.api.field_behavior) = OPTIONAL, 59 (google.api.resource_reference) = { 60 type: "cloudkms.googleapis.com/CryptoKey" 61 } 62 ]; 63} 64