You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
140 lines
3.0 KiB
140 lines
3.0 KiB
package schemas
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform-plugin-framework/datasource/schema"
|
|
"github.com/hashicorp/terraform-plugin-framework/types"
|
|
)
|
|
|
|
func MakeSchemaDataSourceAccount() map[string]schema.Attribute {
|
|
return map[string]schema.Attribute{
|
|
"account_id": schema.Int64Attribute{
|
|
Required: true,
|
|
},
|
|
"dc_location": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"ckey": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"acl": schema.ListNestedAttribute{
|
|
Computed: true,
|
|
NestedObject: schema.NestedAttributeObject{
|
|
Attributes: map[string]schema.Attribute{
|
|
"explicit": schema.BoolAttribute{
|
|
Computed: true,
|
|
},
|
|
"guid": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"right": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"status": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"type": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"user_group_id": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
"company": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"companyurl": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"compute_features": schema.ListAttribute{
|
|
Computed: true,
|
|
ElementType: types.StringType,
|
|
},
|
|
"cpu_allocation_parameter": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"cpu_allocation_ratio": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"created_by": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"created_time": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"deactivation_time": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"deleted_by": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"deleted_time": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"displayname": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"guid": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"id": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"name": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"resource_limits": schema.SingleNestedAttribute{
|
|
Computed: true,
|
|
Attributes: map[string]schema.Attribute{
|
|
"cu_c": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"cu_d": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"cu_dm": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"cu_i": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"cu_m": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"cu_np": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
"gpu_units": schema.Float64Attribute{
|
|
Computed: true,
|
|
},
|
|
},
|
|
},
|
|
"resource_types": schema.ListAttribute{
|
|
Computed: true,
|
|
ElementType: types.StringType,
|
|
},
|
|
"send_access_emails": schema.BoolAttribute{
|
|
Computed: true,
|
|
},
|
|
"status": schema.StringAttribute{
|
|
Computed: true,
|
|
},
|
|
"uniq_pools": schema.ListAttribute{
|
|
Computed: true,
|
|
ElementType: types.StringType,
|
|
},
|
|
"updated_time": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"version": schema.Int64Attribute{
|
|
Computed: true,
|
|
},
|
|
"vins": schema.ListAttribute{
|
|
Computed: true,
|
|
ElementType: types.Int64Type,
|
|
},
|
|
}
|
|
|
|
}
|