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