Documentation
¶
Index ¶
- func UserDataSourceSchema(ctx context.Context) schema.Schema
- func UsersDataSourceSchema(ctx context.Context) schema.Schema
- type PaginationType
- func (t PaginationType) Equal(o attr.Type) bool
- func (t PaginationType) String() string
- func (t PaginationType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t PaginationType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t PaginationType) ValueType(ctx context.Context) attr.Value
- type PaginationValue
- func NewPaginationValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (PaginationValue, diag.Diagnostics)
- func NewPaginationValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) PaginationValue
- func NewPaginationValueNull() PaginationValue
- func NewPaginationValueUnknown() PaginationValue
- func (v PaginationValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v PaginationValue) Equal(o attr.Value) bool
- func (v PaginationValue) IsNull() bool
- func (v PaginationValue) IsUnknown() bool
- func (v PaginationValue) String() string
- func (v PaginationValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v PaginationValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v PaginationValue) Type(ctx context.Context) attr.Type
- type UserModel
- type UsersModel
- type UsersType
- func (t UsersType) Equal(o attr.Type) bool
- func (t UsersType) String() string
- func (t UsersType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t UsersType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t UsersType) ValueType(ctx context.Context) attr.Value
- type UsersValue
- func NewUsersValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (UsersValue, diag.Diagnostics)
- func NewUsersValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) UsersValue
- func NewUsersValueNull() UsersValue
- func NewUsersValueUnknown() UsersValue
- func (v UsersValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v UsersValue) Equal(o attr.Value) bool
- func (v UsersValue) IsNull() bool
- func (v UsersValue) IsUnknown() bool
- func (v UsersValue) String() string
- func (v UsersValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v UsersValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v UsersValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PaginationType ¶
type PaginationType struct {
basetypes.ObjectType
}
func (PaginationType) String ¶
func (t PaginationType) String() string
func (PaginationType) ValueFromObject ¶
func (t PaginationType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (PaginationType) ValueFromTerraform ¶
type PaginationValue ¶
type PaginationValue struct {
Page basetypes.Int64Value `tfsdk:"page"`
Size basetypes.Int64Value `tfsdk:"size"`
Sort basetypes.StringValue `tfsdk:"sort"`
TotalPages basetypes.Int64Value `tfsdk:"total_pages"`
TotalRows basetypes.Int64Value `tfsdk:"total_rows"`
// contains filtered or unexported fields
}
func NewPaginationValue ¶
func NewPaginationValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (PaginationValue, diag.Diagnostics)
func NewPaginationValueMust ¶
func NewPaginationValueNull ¶
func NewPaginationValueNull() PaginationValue
func NewPaginationValueUnknown ¶
func NewPaginationValueUnknown() PaginationValue
func (PaginationValue) AttributeTypes ¶
func (PaginationValue) IsNull ¶
func (v PaginationValue) IsNull() bool
func (PaginationValue) IsUnknown ¶
func (v PaginationValue) IsUnknown() bool
func (PaginationValue) String ¶
func (v PaginationValue) String() string
func (PaginationValue) ToObjectValue ¶
func (v PaginationValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (PaginationValue) ToTerraformValue ¶
type UserModel ¶
type UserModel struct {
Id types.Int64 `tfsdk:"tf_original_api_id"`
InstanceId types.String `tfsdk:"instance_id"`
Name types.String `tfsdk:"name"`
ProjectId types.String `tfsdk:"project_id"`
Region types.String `tfsdk:"region"`
Roles types.List `tfsdk:"roles"`
Status types.String `tfsdk:"status"`
UserId types.Int64 `tfsdk:"user_id"`
}
type UsersModel ¶
type UsersModel struct {
InstanceId types.String `tfsdk:"instance_id"`
Page types.Int64 `tfsdk:"page"`
Pagination PaginationValue `tfsdk:"pagination"`
ProjectId types.String `tfsdk:"project_id"`
Region types.String `tfsdk:"region"`
Size types.Int64 `tfsdk:"size"`
Sort types.String `tfsdk:"sort"`
Users types.List `tfsdk:"users"`
}
type UsersType ¶
type UsersType struct {
basetypes.ObjectType
}
func (UsersType) ValueFromObject ¶
func (t UsersType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (UsersType) ValueFromTerraform ¶
type UsersValue ¶
type UsersValue struct {
Id basetypes.Int64Value `tfsdk:"id"`
Name basetypes.StringValue `tfsdk:"name"`
Status basetypes.StringValue `tfsdk:"status"`
// contains filtered or unexported fields
}
func NewUsersValue ¶
func NewUsersValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (UsersValue, diag.Diagnostics)
func NewUsersValueMust ¶
func NewUsersValueNull ¶
func NewUsersValueNull() UsersValue
func NewUsersValueUnknown ¶
func NewUsersValueUnknown() UsersValue
func (UsersValue) AttributeTypes ¶
func (UsersValue) IsNull ¶
func (v UsersValue) IsNull() bool
func (UsersValue) IsUnknown ¶
func (v UsersValue) IsUnknown() bool
func (UsersValue) String ¶
func (v UsersValue) String() string
func (UsersValue) ToObjectValue ¶
func (v UsersValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (UsersValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.