Files
threshold/internal/proto/controller/api/resources/users/v1/user.proto
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

86 lines
3.6 KiB
Protocol Buffer
Raw Normal View History

// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
2023-02-02 17:15:17 -08:00
2020-06-09 11:20:59 -07:00
syntax = "proto3";
package controller.api.resources.users.v1;
2020-07-22 00:14:28 -04:00
import "controller/api/resources/scopes/v1/scope.proto";
2020-08-07 12:55:02 -04:00
import "controller/custom_options/v1/options.proto";
2020-06-09 11:20:59 -07:00
import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";
option go_package = "github.com/hashicorp/boundary/sdk/pbs/controller/api/resources/users;users";
2020-06-09 11:20:59 -07:00
message Account {
// Output only. The ID of the Account.
2023-07-28 12:41:55 -07:00
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Scope containing the Account.
2023-07-28 12:41:55 -07:00
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
}
2020-06-09 11:20:59 -07:00
// User contains all fields related to a User resource
message User {
// Output only. The ID of the User.
2023-07-28 12:41:55 -07:00
string id = 10; // @gotags: `class:"public" eventstream:"observation"`
2020-06-09 11:20:59 -07:00
// The ID of the Scope this resource is in.
2023-07-28 12:41:55 -07:00
string scope_id = 20 [json_name = "scope_id"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. Scope information for this resource.
resources.scopes.v1.ScopeInfo scope = 30;
2020-06-09 11:20:59 -07:00
// Optional name for identification purposes.
google.protobuf.StringValue name = 40 [
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "name"
that: "name"
}
]; // @gotags: `class:"sensitive"`
2020-06-09 11:20:59 -07:00
// Optional user-set description for identification purposes.
google.protobuf.StringValue description = 50 [
(custom_options.v1.generate_sdk_option) = true,
(custom_options.v1.mask_mapping) = {
this: "description"
that: "description"
}
]; // @gotags: `class:"sensitive"`
2020-06-09 11:20:59 -07:00
// Output only. The time this resource was created.
2023-07-28 12:41:55 -07:00
google.protobuf.Timestamp created_time = 60 [json_name = "created_time"]; // @gotags: `class:"public" eventstream:"observation"`
2020-08-07 12:55:02 -04:00
// Output only. The time this resource was last updated.
2023-07-28 12:41:55 -07:00
google.protobuf.Timestamp updated_time = 70 [json_name = "updated_time"]; // @gotags: `class:"public" eventstream:"observation"`
// Version is used in mutation requests, after the initial creation, to ensure this resource has not changed.
// The mutation will fail if the version does not match the latest known good version.
uint32 version = 80; // @gotags: `class:"public"`
// Output only. Contains the list of Account IDs linked to this User.
2023-07-28 12:41:55 -07:00
repeated string account_ids = 90 [json_name = "account_ids"]; // @gotags: `class:"public" eventstream:"observation"`
// Output only. The Accounts linked to this User.
repeated Account accounts = 100;
// Output only. The available actions on this resource for this user.
repeated string authorized_actions = 300 [json_name = "authorized_actions"]; // @gotags: `class:"public"`
// Output only. login_name is a string that maps to the user's account "login
// name" from the scope's primary auth method
string login_name = 110 [json_name = "login_name"]; // @gotags: `class:"sensitive"`
// Output only. full_name is a string that maps to the user's account name
// from the scope's primary auth method
string full_name = 120 [json_name = "full_name"]; // @gotags: `class:"sensitive"`
// Output only. email is a string that maps to the user's account email from
// the scope's primary auth method
string email = 130 [json_name = "email"]; // @gotags: `class:"sensitive"`
// Output only. primary_account_id is a string that maps to the user's account
// public_id from the scope's primary auth method
2023-07-28 12:41:55 -07:00
string primary_account_id = 140 [json_name = "primary_account_id"]; // @gotags: `class:"public" eventstream:"observation"`
2020-06-09 11:20:59 -07:00
}