1.3.0
This commit is contained in:
@@ -11,12 +11,14 @@ type DataSourceDiskModel struct {
|
||||
Timeouts timeouts.Value `tfsdk:"timeouts"`
|
||||
|
||||
// response fields
|
||||
Id types.String `tfsdk:"id"`
|
||||
ID types.String `tfsdk:"id"`
|
||||
ACL types.String `tfsdk:"acl"`
|
||||
AccountID types.Int64 `tfsdk:"account_id"`
|
||||
AccountName types.String `tfsdk:"account_name"`
|
||||
Computes types.List `tfsdk:"computes"`
|
||||
CreatedBy types.String `tfsdk:"created_by"`
|
||||
CreatedTime types.Int64 `tfsdk:"created_time"`
|
||||
DeletedBy types.String `tfsdk:"deleted_by"`
|
||||
DeletedTime types.Int64 `tfsdk:"deleted_time"`
|
||||
DeviceName types.String `tfsdk:"devicename"`
|
||||
Description types.String `tfsdk:"desc"`
|
||||
@@ -25,13 +27,16 @@ type DataSourceDiskModel struct {
|
||||
ImageID types.Int64 `tfsdk:"image_id"`
|
||||
Images types.List `tfsdk:"images"`
|
||||
IOTune types.Object `tfsdk:"iotune"`
|
||||
MachineID types.Int64 `tfsdk:"machine_id"`
|
||||
MachineName types.String `tfsdk:"machine_name"`
|
||||
Milestones types.Int64 `tfsdk:"milestones"`
|
||||
Name types.String `tfsdk:"disk_name"`
|
||||
Order types.Int64 `tfsdk:"order"`
|
||||
Params types.String `tfsdk:"params"`
|
||||
ParentID types.Int64 `tfsdk:"parent_id"`
|
||||
PCISlot types.Int64 `tfsdk:"pci_slot"`
|
||||
Pool types.String `tfsdk:"pool"`
|
||||
PresentTo types.List `tfsdk:"present_to"`
|
||||
PresentTo types.Map `tfsdk:"present_to"`
|
||||
PurgeTime types.Int64 `tfsdk:"purge_time"`
|
||||
ResID types.String `tfsdk:"res_id"`
|
||||
ResName types.String `tfsdk:"res_name"`
|
||||
@@ -39,11 +44,14 @@ type DataSourceDiskModel struct {
|
||||
SepType types.String `tfsdk:"sep_type"`
|
||||
SepID types.Int64 `tfsdk:"sep_id"`
|
||||
Shareable types.Bool `tfsdk:"shareable"`
|
||||
SizeAvailable types.Float64 `tfsdk:"size_available"`
|
||||
SizeMax types.Int64 `tfsdk:"size_max"`
|
||||
SizeUsed types.Float64 `tfsdk:"size_used"`
|
||||
Snapshots types.List `tfsdk:"snapshots"`
|
||||
Status types.String `tfsdk:"status"`
|
||||
TechStatus types.String `tfsdk:"tech_status"`
|
||||
Type types.String `tfsdk:"type"`
|
||||
UpdatedBy types.String `tfsdk:"updated_by"`
|
||||
UpdatedTime types.Int64 `tfsdk:"updated_time"`
|
||||
VMID types.Int64 `tfsdk:"vmid"`
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ type DataSourceDiskListModel struct {
|
||||
Timeouts timeouts.Value `tfsdk:"timeouts"`
|
||||
|
||||
// response fields
|
||||
Id types.String `tfsdk:"id"`
|
||||
ID types.String `tfsdk:"id"`
|
||||
Items []ItemDiskModel `tfsdk:"items"`
|
||||
EntryCount types.Int64 `tfsdk:"entry_count"`
|
||||
}
|
||||
@@ -33,7 +33,9 @@ type ItemDiskModel struct {
|
||||
AccountName types.String `tfsdk:"account_name"`
|
||||
ACL types.String `tfsdk:"acl"`
|
||||
Computes types.List `tfsdk:"computes"`
|
||||
CreatedBy types.String `tfsdk:"created_by"`
|
||||
CreatedTime types.Int64 `tfsdk:"created_time"`
|
||||
DeletedBy types.String `tfsdk:"deleted_by"`
|
||||
DeletedTime types.Int64 `tfsdk:"deleted_time"`
|
||||
Description types.String `tfsdk:"desc"`
|
||||
DestructionTime types.Int64 `tfsdk:"destruction_time"`
|
||||
@@ -46,12 +48,13 @@ type ItemDiskModel struct {
|
||||
MachineName types.String `tfsdk:"machine_name"`
|
||||
DiskId types.Int64 `tfsdk:"disk_id"`
|
||||
DiskName types.String `tfsdk:"disk_name"`
|
||||
Milestones types.Int64 `tfsdk:"milestones"`
|
||||
Order types.Int64 `tfsdk:"order"`
|
||||
Params types.String `tfsdk:"params"`
|
||||
ParentID types.Int64 `tfsdk:"parent_id"`
|
||||
PCISlot types.Int64 `tfsdk:"pci_slot"`
|
||||
Pool types.String `tfsdk:"pool"`
|
||||
PresentTo types.List `tfsdk:"present_to"`
|
||||
PresentTo types.Map `tfsdk:"present_to"`
|
||||
PurgeTime types.Int64 `tfsdk:"purge_time"`
|
||||
ResID types.String `tfsdk:"res_id"`
|
||||
ResName types.String `tfsdk:"res_name"`
|
||||
@@ -59,11 +62,14 @@ type ItemDiskModel struct {
|
||||
SepID types.Int64 `tfsdk:"sep_id"`
|
||||
SepType types.String `tfsdk:"sep_type"`
|
||||
Shareable types.Bool `tfsdk:"shareable"`
|
||||
SizeAvailable types.Float64 `tfsdk:"size_available"`
|
||||
SizeMax types.Int64 `tfsdk:"size_max"`
|
||||
SizeUsed types.Float64 `tfsdk:"size_used"`
|
||||
Snapshots types.List `tfsdk:"snapshots"`
|
||||
Status types.String `tfsdk:"status"`
|
||||
TechStatus types.String `tfsdk:"tech_status"`
|
||||
Type types.String `tfsdk:"type"`
|
||||
UpdatedBy types.String `tfsdk:"updated_by"`
|
||||
UpdatedTime types.Int64 `tfsdk:"updated_time"`
|
||||
VMID types.Int64 `tfsdk:"vmid"`
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ type DataSourceDiskListDeletedModel struct {
|
||||
Timeouts timeouts.Value `tfsdk:"timeouts"`
|
||||
|
||||
// response fields
|
||||
Id types.String `tfsdk:"id"`
|
||||
ID types.String `tfsdk:"id"`
|
||||
Items []ItemDiskModel `tfsdk:"items"`
|
||||
EntryCount types.Int64 `tfsdk:"entry_count"`
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ type RecordDiskModel struct {
|
||||
ParentID types.Int64 `tfsdk:"parent_id"`
|
||||
PCISlot types.Int64 `tfsdk:"pci_slot"`
|
||||
Pool types.String `tfsdk:"pool"`
|
||||
PresentTo types.List `tfsdk:"present_to"`
|
||||
PresentTo types.Map `tfsdk:"present_to"`
|
||||
PurgeTime types.Int64 `tfsdk:"purge_time"`
|
||||
Replication *ItemReplicationModel `tfsdk:"replication"`
|
||||
ResID types.String `tfsdk:"res_id"`
|
||||
|
||||
@@ -11,7 +11,6 @@ type ResourceDiskModel struct {
|
||||
AccountID types.Int64 `tfsdk:"account_id"`
|
||||
DiskName types.String `tfsdk:"disk_name"`
|
||||
SizeMax types.Int64 `tfsdk:"size_max"`
|
||||
GID types.Int64 `tfsdk:"gid"`
|
||||
|
||||
// request fields - optional
|
||||
Description types.String `tfsdk:"desc"`
|
||||
@@ -25,23 +24,28 @@ type ResourceDiskModel struct {
|
||||
Timeouts timeouts.Value `tfsdk:"timeouts"`
|
||||
|
||||
// response fields
|
||||
Id types.String `tfsdk:"id"`
|
||||
ID types.String `tfsdk:"id"`
|
||||
LastUpdated types.String `tfsdk:"last_updated"`
|
||||
ACL types.String `tfsdk:"acl"`
|
||||
AccountName types.String `tfsdk:"account_name"`
|
||||
Computes types.List `tfsdk:"computes"`
|
||||
CreatedBy types.String `tfsdk:"created_by"`
|
||||
CreatedTime types.Int64 `tfsdk:"created_time"`
|
||||
DeletedBy types.String `tfsdk:"deleted_by"`
|
||||
DeletedTime types.Int64 `tfsdk:"deleted_time"`
|
||||
DeviceName types.String `tfsdk:"devicename"`
|
||||
DestructionTime types.Int64 `tfsdk:"destruction_time"`
|
||||
DiskId types.Int64 `tfsdk:"disk_id"`
|
||||
DiskID types.Int64 `tfsdk:"disk_id"`
|
||||
ImageID types.Int64 `tfsdk:"image_id"`
|
||||
Images types.List `tfsdk:"images"`
|
||||
MachineID types.Int64 `tfsdk:"machine_id"`
|
||||
MachineName types.String `tfsdk:"machine_name"`
|
||||
GID types.Int64 `tfsdk:"gid"`
|
||||
Order types.Int64 `tfsdk:"order"`
|
||||
Params types.String `tfsdk:"params"`
|
||||
ParentID types.Int64 `tfsdk:"parent_id"`
|
||||
PCISlot types.Int64 `tfsdk:"pci_slot"`
|
||||
PresentTo types.List `tfsdk:"present_to"`
|
||||
PresentTo types.Map `tfsdk:"present_to"`
|
||||
PurgeTime types.Int64 `tfsdk:"purge_time"`
|
||||
ResID types.String `tfsdk:"res_id"`
|
||||
ResName types.String `tfsdk:"res_name"`
|
||||
@@ -51,6 +55,8 @@ type ResourceDiskModel struct {
|
||||
Snapshots types.List `tfsdk:"snapshots"`
|
||||
Status types.String `tfsdk:"status"`
|
||||
TechStatus types.String `tfsdk:"tech_status"`
|
||||
UpdatedBy types.String `tfsdk:"updated_by"`
|
||||
UpdatedTime types.Int64 `tfsdk:"updated_time"`
|
||||
VMID types.Int64 `tfsdk:"vmid"`
|
||||
}
|
||||
|
||||
|
||||
@@ -40,7 +40,7 @@ type ResourceRecordDiskReplicationModel struct {
|
||||
ParentID types.Int64 `tfsdk:"parent_id"`
|
||||
PCISlot types.Int64 `tfsdk:"pci_slot"`
|
||||
Pool types.String `tfsdk:"pool"`
|
||||
PresentTo types.List `tfsdk:"present_to"`
|
||||
PresentTo types.Map `tfsdk:"present_to"`
|
||||
PurgeTime types.Int64 `tfsdk:"purge_time"`
|
||||
Replication types.Object `tfsdk:"replication"`
|
||||
ResID types.String `tfsdk:"res_id"`
|
||||
|
||||
Reference in New Issue
Block a user