github.com/cloudwan/edgelq-sdk@v1.15.4/iam/proto/v1/user.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/user;user";
    10  option java_multiple_files = true;
    11  option java_outer_classname = "UserProto";
    12  option java_package = "com.ntt.iam.pb.v1";
    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: [a-z][a-z0-9\\-]{0,28}[a-z0-9]
    25    string name = 1;
    26  
    27    // Metadata is an object with information like create, update and delete time
    28    // (for async deleted resources), has user labels/annotations, sharding
    29    // information, multi-region syncing information and may have non-schema
    30    // owners (useful for taking ownership of resources belonging to lower level
    31    // services by higher ones).
    32    goten.types.Meta metadata = 8;
    33  
    34    // Full Name
    35    string full_name = 2;
    36  
    37    // Email
    38    string email = 3;
    39  
    40    // Is email verified
    41    bool email_verified = 4;
    42  
    43    AuthInfo auth_info = 5;
    44  
    45    // User settings and preferences
    46    map<string, string> settings = 7;
    47  
    48    google.protobuf.Timestamp refreshed_time = 6;
    49  
    50    // Internal status used by controller.
    51    WorkStatus ctrl_status = 9;
    52  
    53    message AuthInfo {
    54      // auth provider
    55      string provider = 1;
    56  
    57      // auth provider id
    58      string id = 2;
    59    }
    60  
    61    message WorkStatus {
    62      // if controller has some work on this resource
    63      bool pending = 1;
    64    }
    65  }