in teamcity/user.go [49:87]
func (r *userResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "User account is a combination of username and password that allows TeamCity users to sign in to the server and use its features. More info [here](https://www.jetbrains.com/help/teamcity/creating-and-managing-users.html)",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
},
"username": schema.StringAttribute{
Required: true,
},
"password": schema.StringAttribute{
Optional: true,
Sensitive: true,
},
"github_username": schema.StringAttribute{
Optional: true,
},
"roles": schema.SetNestedAttribute{
Optional: true,
NestedObject: schema.NestedAttributeObject{
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Required: true,
},
"global": schema.BoolAttribute{
Optional: true,
},
"project": schema.StringAttribute{
Optional: true,
},
},
},
},
},
}
}