github.com/cloudwan/edgelq-sdk@v1.15.4/secrets/proto/v1/secret.proto (about) 1 syntax = "proto3"; 2 3 package ntt.secrets.v1; 4 5 import "google/api/resource.proto"; 6 import "goten-sdk/types/meta.proto"; 7 8 option go_package = "github.com/cloudwan/edgelq-sdk/secrets/resources/v1/secret;secret"; 9 option java_multiple_files = true; 10 option java_outer_classname = "SecretProto"; 11 option java_package = "com.ntt.secrets.pb.v1"; 12 13 // Secret Resource 14 message Secret { 15 option (google.api.resource) = { 16 type : "secrets.edgelq.com/Secret" 17 pattern : "projects/{project}/regions/{region}/secrets/{secret}" 18 }; 19 20 // Name of Secret 21 // When creating a new instance, this field is optional and if not provided, 22 // it will be generated automatically. Last ID segment must conform to the 23 // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9] 24 string name = 1; 25 26 // Metadata is an object with information like create, update and delete time 27 // (for async deleted resources), has user labels/annotations, sharding 28 // information, multi-region syncing information and may have non-schema 29 // owners (useful for taking ownership of resources belonging to lower level 30 // services by higher ones). 31 goten.types.Meta metadata = 4; 32 33 // Display name of Secret 34 string display_name = 6; 35 36 // Optional. A detailed description of the Secret. 37 string description = 5; 38 39 // masked by read_checks. Database only. 40 bytes enc_data = 2; 41 42 // Data to store as secret. Must be base64 encoded. 43 map<string, string> data = 3; 44 }