aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/yandex-cloud-api-protos/yandex/cloud/organizationmanager/v1/user_account.proto
blob: c53ea4fdef703a086c35619ab17c5d994df0e1d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
syntax = "proto3";

package yandex.cloud.organizationmanager.v1;

import "yandex/cloud/validation.proto";

option go_package = "github.com/yandex-cloud/go-genproto/yandex/cloud/organizationmanager/v1;organizationmanager";
option java_package = "yandex.cloud.api.organizationmanager.v1";

// Currently represents only [Yandex account](/docs/iam/concepts/#passport).
message UserAccount {
  // ID of the user account.
  string id = 1;

  oneof user_account {
    option (exactly_one) = true;
    // A YandexPassportUserAccount resource.
    YandexPassportUserAccount yandex_passport_user_account = 2;
    // A SAML federated user.
    SamlUserAccount saml_user_account = 3;
  }
}

// A YandexPassportUserAccount resource.
// For more information, see [Yandex account](/docs/iam/concepts/#passport).
message YandexPassportUserAccount {
  // Login of the Yandex user account.
  string login = 1;
  // Default email of the Yandex user account.
  string default_email = 2;
}

// A SAML federated user.
// For more information, see [federations](/docs/iam/concepts/users/saml-federations).
message SamlUserAccount {
    message Attribute {
        repeated string value = 1;
    }
    // ID of the federation that the federation belongs to.
    string federation_id = 1 [(required) = true, (length) = "<=50"];
    // Name Id of the SAML federated user.
    // The name is unique within the federation. 1-256 characters long.
    string name_id = 2 [(required) = true, (length) = "1-256"];
    // Additional attributes of the SAML federated user.
    map <string, Attribute> attributes = 3;
}