github.com/cloudwan/edgelq-sdk@v1.15.4/iam/proto/v1alpha2/user.proto (about) 1 syntax = "proto3"; 2 3 package ntt.iam.v1alpha2; 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/v1alpha2/user;user"; 10 option java_multiple_files = true; 11 option java_outer_classname = "UserProto"; 12 option java_package = "com.ntt.iam.pb.v1alpha2"; 13 14 // User Resource 15 message User { 16 option (google.api.resource) = { 17 type : "iam.edgelq.com/User" 18 pattern : "users/{user}" 19 }; 20 21 // Name of User 22 // When creating a new instance, this field is optional and if not provided, 23 // it will be generated automatically. Last ID segment must conform to the 24 // following regex: [\\w.@|_-]{1,128} 25 string name = 1; 26 27 // Full Name 28 string full_name = 2; 29 30 // Metadata 31 goten.types.Meta metadata = 8; 32 33 // Email 34 string email = 3; 35 36 // Is email verified 37 bool email_verified = 4; 38 39 AuthInfo auth_info = 5; 40 41 // User settings and preferences 42 map<string, string> settings = 7; 43 44 google.protobuf.Timestamp refreshed_time = 6; 45 46 message AuthInfo { 47 // auth provider 48 string provider = 1; 49 50 // auth provider id 51 string id = 2; 52 } 53 }