github.com/cloudwan/edgelq-sdk@v1.15.4/iam/proto/v1alpha2/service_account_key.proto (about) 1 syntax = "proto3"; 2 3 package ntt.iam.v1alpha2; 4 5 import "google/api/resource.proto"; 6 import "google/protobuf/duration.proto"; 7 import "google/protobuf/timestamp.proto"; 8 import "goten-sdk/types/meta.proto"; 9 10 option go_package = "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/service_account_key;service_account_key"; 11 option java_multiple_files = true; 12 option java_outer_classname = "ServiceAccountKeyProto"; 13 option java_package = "com.ntt.iam.pb.v1alpha2"; 14 15 // Represents a key pair for the service account 16 message ServiceAccountKey { 17 option (google.api.resource) = { 18 type : "iam.edgelq.com/ServiceAccountKey" 19 pattern : "projects/{project}/regions/{region}/serviceAccounts/" 20 "{service_account}/serviceAccountKeys/{service_account_key}" 21 }; 22 23 // Name of ServiceAccountKey 24 // When creating a new instance, this field is optional and if not provided, 25 // it will be generated automatically. Last ID segment must conform to the 26 // following regex: [a-z][a-z0-9\-]{0,28}[a-z0-9] 27 string name = 1; 28 29 // Display name 30 string display_name = 7; 31 32 // Public key contents 33 string public_key_data = 2; 34 35 // The private key of the pair. This field is only provided in 36 // CreateServiceAccountKey responses. Private keys are NOT stored on the 37 // server. 38 string private_key_data = 3; 39 40 // Api key is set if algorithm is equal to API_KEY and provided in 41 // CreateServiceAccountKey responses. They are not stored on the server, 42 // so caller is obliged to remember its value. If lost, its is necessary to 43 // create new key. Api key must be used in authorization header token when 44 // making request: 45 // - Authorization: "Bearer $API_KEY" 46 // Example for curl: 47 // $ curl -X GET -H "Authorization: Bearer $API_KEY" -s $URL 48 string api_key = 9; 49 50 // The algorithm used to generate the key. 51 Algorithm algorithm = 4; // TODO: This field should not be updateable 52 53 // The key is not valid before this timestamp. 54 google.protobuf.Timestamp valid_not_before = 5; 55 56 // The key is not valid after this timestamp. 57 google.protobuf.Timestamp valid_not_after = 6; 58 59 // Metadata 60 goten.types.Meta metadata = 8; 61 62 enum Algorithm { 63 KEY_ALGORITHM_UNSPECIFIED = 0; 64 65 RSA_1024 = 1; 66 67 RSA_2048 = 2; 68 69 RSA_4096 = 3; 70 71 API_KEY = 4; 72 } 73 }