Documentation ¶
Index ¶
- func DatastoreResourceSchema(ctx context.Context) schema.Schema
- func NewResource() resource.Resource
- type ClusterInfoType
- func (t ClusterInfoType) Equal(o attr.Type) bool
- func (t ClusterInfoType) String() string
- func (t ClusterInfoType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t ClusterInfoType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ClusterInfoType) ValueType(ctx context.Context) attr.Value
- type ClusterInfoValue
- func NewClusterInfoValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ClusterInfoValue, diag.Diagnostics)
- func NewClusterInfoValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ClusterInfoValue
- func NewClusterInfoValueNull() ClusterInfoValue
- func NewClusterInfoValueUnknown() ClusterInfoValue
- func (v ClusterInfoValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v ClusterInfoValue) Equal(o attr.Value) bool
- func (v ClusterInfoValue) IsNull() bool
- func (v ClusterInfoValue) IsUnknown() bool
- func (v ClusterInfoValue) String() string
- func (v ClusterInfoValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v ClusterInfoValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v ClusterInfoValue) Type(ctx context.Context) attr.Type
- type DatacentersInfoType
- func (t DatacentersInfoType) Equal(o attr.Type) bool
- func (t DatacentersInfoType) String() string
- func (t DatacentersInfoType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t DatacentersInfoType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t DatacentersInfoType) ValueType(ctx context.Context) attr.Value
- type DatacentersInfoValue
- func NewDatacentersInfoValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DatacentersInfoValue, diag.Diagnostics)
- func NewDatacentersInfoValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DatacentersInfoValue
- func NewDatacentersInfoValueNull() DatacentersInfoValue
- func NewDatacentersInfoValueUnknown() DatacentersInfoValue
- func (v DatacentersInfoValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v DatacentersInfoValue) Equal(o attr.Value) bool
- func (v DatacentersInfoValue) IsNull() bool
- func (v DatacentersInfoValue) IsUnknown() bool
- func (v DatacentersInfoValue) String() string
- func (v DatacentersInfoValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v DatacentersInfoValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v DatacentersInfoValue) Type(ctx context.Context) attr.Type
- type DatastoreModel
- type Resource
- func (r *Resource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(ctx context.Context, req resource.MetadataRequest, ...)
- func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
Types ¶
type ClusterInfoType ¶
type ClusterInfoType struct {
basetypes.ObjectType
}
func (ClusterInfoType) String ¶
func (t ClusterInfoType) String() string
func (ClusterInfoType) ValueFromObject ¶
func (t ClusterInfoType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ClusterInfoType) ValueFromTerraform ¶
type ClusterInfoValue ¶
type ClusterInfoValue struct { Id basetypes.StringValue `tfsdk:"id"` Name basetypes.StringValue `tfsdk:"name"` // contains filtered or unexported fields }
func NewClusterInfoValue ¶
func NewClusterInfoValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ClusterInfoValue, diag.Diagnostics)
func NewClusterInfoValueMust ¶
func NewClusterInfoValueNull ¶
func NewClusterInfoValueNull() ClusterInfoValue
func NewClusterInfoValueUnknown ¶
func NewClusterInfoValueUnknown() ClusterInfoValue
func (ClusterInfoValue) AttributeTypes ¶
func (ClusterInfoValue) IsNull ¶
func (v ClusterInfoValue) IsNull() bool
func (ClusterInfoValue) IsUnknown ¶
func (v ClusterInfoValue) IsUnknown() bool
func (ClusterInfoValue) String ¶
func (v ClusterInfoValue) String() string
func (ClusterInfoValue) ToObjectValue ¶
func (v ClusterInfoValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (ClusterInfoValue) ToTerraformValue ¶
type DatacentersInfoType ¶
type DatacentersInfoType struct {
basetypes.ObjectType
}
func (DatacentersInfoType) String ¶
func (t DatacentersInfoType) String() string
func (DatacentersInfoType) ValueFromObject ¶
func (t DatacentersInfoType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (DatacentersInfoType) ValueFromTerraform ¶
type DatacentersInfoValue ¶
type DatacentersInfoValue struct { Id basetypes.StringValue `tfsdk:"id"` Name basetypes.StringValue `tfsdk:"name"` // contains filtered or unexported fields }
func NewDatacentersInfoValue ¶
func NewDatacentersInfoValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DatacentersInfoValue, diag.Diagnostics)
func NewDatacentersInfoValueNull ¶
func NewDatacentersInfoValueNull() DatacentersInfoValue
func NewDatacentersInfoValueUnknown ¶
func NewDatacentersInfoValueUnknown() DatacentersInfoValue
func (DatacentersInfoValue) AttributeTypes ¶
func (DatacentersInfoValue) IsNull ¶
func (v DatacentersInfoValue) IsNull() bool
func (DatacentersInfoValue) IsUnknown ¶
func (v DatacentersInfoValue) IsUnknown() bool
func (DatacentersInfoValue) String ¶
func (v DatacentersInfoValue) String() string
func (DatacentersInfoValue) ToObjectValue ¶
func (v DatacentersInfoValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (DatacentersInfoValue) ToTerraformValue ¶
type DatastoreModel ¶
type DatastoreModel struct { CapacityInBytes types.Int64 `tfsdk:"capacity_in_bytes"` ClusterInfo ClusterInfoValue `tfsdk:"cluster_info"` DatacentersInfo types.List `tfsdk:"datacenters_info"` DatastoreType types.String `tfsdk:"datastore_type"` HciClusterUuid types.String `tfsdk:"hci_cluster_uuid"` Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` }
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource defines the resource implementation.
func (*Resource) Configure ¶
func (r *Resource) Configure( ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse, )
func (*Resource) Create ¶
func (r *Resource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*Resource) Delete ¶
func (r *Resource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*Resource) ImportState ¶
func (r *Resource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*Resource) Metadata ¶
func (r *Resource) Metadata( ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*Resource) Read ¶
func (r *Resource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*Resource) Schema ¶
func (r *Resource) Schema( ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*Resource) Update ¶
func (r *Resource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
Click to show internal directories.
Click to hide internal directories.