in teamcity/connection.go [49:96]
func (r *connectionResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "TeamCity allows storing presets of connections to external services. Currently only GitHub App type is supported for adding SSO to the server. More info [here](https://www.jetbrains.com/help/teamcity/configuring-connections.html#GitHub)",
Attributes: map[string]schema.Attribute{
"project_id": schema.StringAttribute{
Required: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.RequiresReplace(),
},
},
"feature_id": schema.StringAttribute{
Computed: true,
PlanModifiers: []planmodifier.String{
stringplanmodifier.UseStateForUnknown(),
},
},
"github_app": schema.SingleNestedAttribute{
Required: true,
Attributes: map[string]schema.Attribute{
"display_name": schema.StringAttribute{
Required: true,
},
"owner_url": schema.StringAttribute{
Required: true,
},
"app_id": schema.StringAttribute{
Required: true,
},
"client_id": schema.StringAttribute{
Required: true,
},
"client_secret": schema.StringAttribute{
Required: true,
Sensitive: true,
},
"private_key": schema.StringAttribute{
Required: true,
Sensitive: true,
},
"webhook_secret": schema.StringAttribute{
Required: true,
Sensitive: true,
},
},
},
},
}
}