Documentation
¶
Index ¶
- func InstanceResourceSchema(ctx context.Context) schema.Schema
- type EncryptionType
- func (t EncryptionType) Equal(o attr.Type) bool
- func (t EncryptionType) String() string
- func (t EncryptionType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t EncryptionType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t EncryptionType) ValueType(ctx context.Context) attr.Value
- type EncryptionValue
- func NewEncryptionValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (EncryptionValue, diag.Diagnostics)
- func NewEncryptionValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) EncryptionValue
- func NewEncryptionValueNull() EncryptionValue
- func NewEncryptionValueUnknown() EncryptionValue
- func (v EncryptionValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v EncryptionValue) Equal(o attr.Value) bool
- func (v EncryptionValue) IsNull() bool
- func (v EncryptionValue) IsUnknown() bool
- func (v EncryptionValue) String() string
- func (v EncryptionValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v EncryptionValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v EncryptionValue) Type(ctx context.Context) attr.Type
- type InstanceModel
- type NetworkType
- func (t NetworkType) Equal(o attr.Type) bool
- func (t NetworkType) String() string
- func (t NetworkType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t NetworkType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NetworkType) ValueType(ctx context.Context) attr.Value
- type NetworkValue
- func NewNetworkValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (NetworkValue, diag.Diagnostics)
- func NewNetworkValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) NetworkValue
- func NewNetworkValueNull() NetworkValue
- func NewNetworkValueUnknown() NetworkValue
- func (v NetworkValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v NetworkValue) Equal(o attr.Value) bool
- func (v NetworkValue) IsNull() bool
- func (v NetworkValue) IsUnknown() bool
- func (v NetworkValue) String() string
- func (v NetworkValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v NetworkValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v NetworkValue) Type(ctx context.Context) attr.Type
- type StorageType
- func (t StorageType) Equal(o attr.Type) bool
- func (t StorageType) String() string
- func (t StorageType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t StorageType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t StorageType) ValueType(ctx context.Context) attr.Value
- type StorageValue
- func NewStorageValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (StorageValue, diag.Diagnostics)
- func NewStorageValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) StorageValue
- func NewStorageValueNull() StorageValue
- func NewStorageValueUnknown() StorageValue
- func (v StorageValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v StorageValue) Equal(o attr.Value) bool
- func (v StorageValue) IsNull() bool
- func (v StorageValue) IsUnknown() bool
- func (v StorageValue) String() string
- func (v StorageValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v StorageValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v StorageValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncryptionType ¶
type EncryptionType struct {
basetypes.ObjectType
}
func (EncryptionType) String ¶
func (t EncryptionType) String() string
func (EncryptionType) ValueFromObject ¶
func (t EncryptionType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (EncryptionType) ValueFromTerraform ¶
type EncryptionValue ¶
type EncryptionValue struct {
KekKeyId basetypes.StringValue `tfsdk:"kek_key_id"`
KekKeyRingId basetypes.StringValue `tfsdk:"kek_key_ring_id"`
KekKeyVersion basetypes.StringValue `tfsdk:"kek_key_version"`
ServiceAccount basetypes.StringValue `tfsdk:"service_account"`
// contains filtered or unexported fields
}
func NewEncryptionValue ¶
func NewEncryptionValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (EncryptionValue, diag.Diagnostics)
func NewEncryptionValueMust ¶
func NewEncryptionValueNull ¶
func NewEncryptionValueNull() EncryptionValue
func NewEncryptionValueUnknown ¶
func NewEncryptionValueUnknown() EncryptionValue
func (EncryptionValue) AttributeTypes ¶
func (EncryptionValue) IsNull ¶
func (v EncryptionValue) IsNull() bool
func (EncryptionValue) IsUnknown ¶
func (v EncryptionValue) IsUnknown() bool
func (EncryptionValue) String ¶
func (v EncryptionValue) String() string
func (EncryptionValue) ToObjectValue ¶
func (v EncryptionValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (EncryptionValue) ToTerraformValue ¶
type InstanceModel ¶
type InstanceModel struct {
BackupSchedule types.String `tfsdk:"backup_schedule"`
Edition types.String `tfsdk:"edition"`
Encryption EncryptionValue `tfsdk:"encryption"`
FlavorId types.String `tfsdk:"flavor_id"`
Id types.String `tfsdk:"id"`
InstanceId types.String `tfsdk:"instance_id"`
IsDeletable types.Bool `tfsdk:"is_deletable"`
Name types.String `tfsdk:"name"`
Network NetworkValue `tfsdk:"network"`
ProjectId types.String `tfsdk:"project_id"`
Region types.String `tfsdk:"region"`
Replicas types.Int64 `tfsdk:"replicas"`
RetentionDays types.Int64 `tfsdk:"retention_days"`
Status types.String `tfsdk:"status"`
Storage StorageValue `tfsdk:"storage"`
Version types.String `tfsdk:"version"`
}
type NetworkType ¶
type NetworkType struct {
basetypes.ObjectType
}
func (NetworkType) String ¶
func (t NetworkType) String() string
func (NetworkType) ValueFromObject ¶
func (t NetworkType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (NetworkType) ValueFromTerraform ¶
type NetworkValue ¶
type NetworkValue struct {
AccessScope basetypes.StringValue `tfsdk:"access_scope"`
Acl basetypes.ListValue `tfsdk:"acl"`
InstanceAddress basetypes.StringValue `tfsdk:"instance_address"`
RouterAddress basetypes.StringValue `tfsdk:"router_address"`
// contains filtered or unexported fields
}
func NewNetworkValue ¶
func NewNetworkValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (NetworkValue, diag.Diagnostics)
func NewNetworkValueMust ¶
func NewNetworkValueNull ¶
func NewNetworkValueNull() NetworkValue
func NewNetworkValueUnknown ¶
func NewNetworkValueUnknown() NetworkValue
func (NetworkValue) AttributeTypes ¶
func (NetworkValue) IsNull ¶
func (v NetworkValue) IsNull() bool
func (NetworkValue) IsUnknown ¶
func (v NetworkValue) IsUnknown() bool
func (NetworkValue) String ¶
func (v NetworkValue) String() string
func (NetworkValue) ToObjectValue ¶
func (v NetworkValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (NetworkValue) ToTerraformValue ¶
type StorageType ¶
type StorageType struct {
basetypes.ObjectType
}
func (StorageType) String ¶
func (t StorageType) String() string
func (StorageType) ValueFromObject ¶
func (t StorageType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (StorageType) ValueFromTerraform ¶
type StorageValue ¶
type StorageValue struct {
Class basetypes.StringValue `tfsdk:"class"`
Size basetypes.Int64Value `tfsdk:"size"`
// contains filtered or unexported fields
}
func NewStorageValue ¶
func NewStorageValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (StorageValue, diag.Diagnostics)
func NewStorageValueMust ¶
func NewStorageValueNull ¶
func NewStorageValueNull() StorageValue
func NewStorageValueUnknown ¶
func NewStorageValueUnknown() StorageValue
func (StorageValue) AttributeTypes ¶
func (StorageValue) IsNull ¶
func (v StorageValue) IsNull() bool
func (StorageValue) IsUnknown ¶
func (v StorageValue) IsUnknown() bool
func (StorageValue) String ¶
func (v StorageValue) String() string
func (StorageValue) ToObjectValue ¶
func (v StorageValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (StorageValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.