github.com/cloudwan/edgelq-sdk@v1.15.4/iam/proto/v1alpha2/role.proto (about)

     1  syntax = "proto3";
     2  
     3  package ntt.iam.v1alpha2;
     4  
     5  import "edgelq-sdk/iam/proto/v1alpha2/condition.proto";
     6  import "google/api/resource.proto";
     7  import "goten-sdk/types/meta.proto";
     8  
     9  option go_package = "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/role;role";
    10  option java_multiple_files = true;
    11  option java_outer_classname = "RoleProto";
    12  option java_package = "com.ntt.iam.pb.v1alpha2";
    13  
    14  // Role Resource
    15  message Role {
    16    option (google.api.resource) = {
    17      type : "iam.edgelq.com/Role"
    18      pattern : "roles/{role}"
    19    };
    20  
    21    // Name of Role
    22    string name = 1;
    23  
    24    // Display Name
    25    string display_name = 2;
    26  
    27    // Included Permissions in this Role. Binding this role grants all following
    28    // Permissions.
    29    repeated string included_permissions = 3
    30        [ (google.api.resource_reference) = {type : "Permission"} ];
    31  
    32    // Default conditionBinding (optional), cannot be used with required
    33    // TODO: Deprecated...
    34    ConditionBinding default_condition_binding = 5;
    35  
    36    // Condition bindings that will be copied into created role bindings
    37    // TODO: Works only if only one element is specified
    38    repeated ConditionBinding included_condition_bindings = 6;
    39  
    40    // List of conditions that must be used for this role. Parameters must be
    41    // defined by client.
    42    // TODO: Works only if only one element is specified
    43    repeated string required_conditions = 7
    44        [ (google.api.resource_reference) = {type : "Condition"} ];
    45  
    46    // Metadata
    47    goten.types.Meta metadata = 4;
    48  }