1.1.0
This commit is contained in:
@@ -10,32 +10,40 @@ type RecordK8SDataSourceModel struct {
|
||||
K8SID types.Int64 `tfsdk:"k8s_id"`
|
||||
Timeouts timeouts.Value `tfsdk:"timeouts"`
|
||||
// response fields
|
||||
Id types.String `tfsdk:"id"`
|
||||
ACL *RecordACLDataSourceModel `tfsdk:"acl"`
|
||||
AccountID types.Int64 `tfsdk:"account_id"`
|
||||
AccountName types.String `tfsdk:"account_name"`
|
||||
BServiceID types.Int64 `tfsdk:"bservice_id"`
|
||||
K8CI types.Int64 `tfsdk:"k8sci_id"`
|
||||
CreatedBy types.String `tfsdk:"created_by"`
|
||||
CreatedTime types.Int64 `tfsdk:"created_time"`
|
||||
DeletedBy types.String `tfsdk:"deleted_by"`
|
||||
DeletedTime types.Int64 `tfsdk:"deleted_time"`
|
||||
ExtNetID types.Int64 `tfsdk:"extnet_id"`
|
||||
K8CIName types.String `tfsdk:"k8sci_name"`
|
||||
Masters *MasterGroupDataSourceModel `tfsdk:"masters"`
|
||||
Workers []ItemK8SGroupDataSourceModel `tfsdk:"workers"`
|
||||
LBID types.Int64 `tfsdk:"lb_id"`
|
||||
LBIP types.String `tfsdk:"lb_ip"`
|
||||
Name types.String `tfsdk:"name"`
|
||||
NetworkPlugin types.String `tfsdk:"network_plugin"`
|
||||
RGID types.Int64 `tfsdk:"rg_id"`
|
||||
RGName types.String `tfsdk:"rg_name"`
|
||||
Status types.String `tfsdk:"status"`
|
||||
TechStatus types.String `tfsdk:"tech_status"`
|
||||
UpdatedBy types.String `tfsdk:"updated_by"`
|
||||
UpdatedTime types.Int64 `tfsdk:"updated_time"`
|
||||
Kubeconfig types.String `tfsdk:"kubeconfig"`
|
||||
VinsId types.Int64 `tfsdk:"vins_id"`
|
||||
Id types.String `tfsdk:"id"`
|
||||
ACL *RecordACLDataSourceModel `tfsdk:"acl"`
|
||||
AccountID types.Int64 `tfsdk:"account_id"`
|
||||
AccountName types.String `tfsdk:"account_name"`
|
||||
BServiceID types.Int64 `tfsdk:"bservice_id"`
|
||||
K8CI types.Int64 `tfsdk:"k8sci_id"`
|
||||
CreatedBy types.String `tfsdk:"created_by"`
|
||||
CreatedTime types.Int64 `tfsdk:"created_time"`
|
||||
DeletedBy types.String `tfsdk:"deleted_by"`
|
||||
ExtnetOnly types.Bool `tfsdk:"extnet_only"`
|
||||
HighlyAvailableLB types.Bool `tfsdk:"ha_mode"`
|
||||
K8SAddressVIP *K8SAddressVIP `tfsdk:"address_vip"`
|
||||
DeletedTime types.Int64 `tfsdk:"deleted_time"`
|
||||
ExtNetID types.Int64 `tfsdk:"extnet_id"`
|
||||
K8CIName types.String `tfsdk:"k8sci_name"`
|
||||
Masters *MasterGroupDataSourceModel `tfsdk:"masters"`
|
||||
Workers []ItemK8SGroupDataSourceModel `tfsdk:"workers"`
|
||||
LBID types.Int64 `tfsdk:"lb_id"`
|
||||
LBIP types.String `tfsdk:"lb_ip"`
|
||||
Name types.String `tfsdk:"name"`
|
||||
NetworkPlugin types.String `tfsdk:"network_plugin"`
|
||||
RGID types.Int64 `tfsdk:"rg_id"`
|
||||
RGName types.String `tfsdk:"rg_name"`
|
||||
Status types.String `tfsdk:"status"`
|
||||
TechStatus types.String `tfsdk:"tech_status"`
|
||||
UpdatedBy types.String `tfsdk:"updated_by"`
|
||||
UpdatedTime types.Int64 `tfsdk:"updated_time"`
|
||||
Kubeconfig types.String `tfsdk:"kubeconfig"`
|
||||
VinsId types.Int64 `tfsdk:"vins_id"`
|
||||
}
|
||||
|
||||
type K8SAddressVIP struct {
|
||||
BackendIP types.String `tfsdk:"backend_ip"`
|
||||
FrontendIP types.String `tfsdk:"frontend_ip"`
|
||||
}
|
||||
|
||||
type RecordACLDataSourceModel struct {
|
||||
|
||||
@@ -16,6 +16,7 @@ type ResourceK8SCPModel struct {
|
||||
SEPPool types.String `tfsdk:"sep_pool"`
|
||||
Num types.Int64 `tfsdk:"num"`
|
||||
CPU types.Int64 `tfsdk:"cpu"`
|
||||
Chipset types.String `tfsdk:"chipset"`
|
||||
RAM types.Int64 `tfsdk:"ram"`
|
||||
Disk types.Int64 `tfsdk:"disk"`
|
||||
ExtNetID types.Int64 `tfsdk:"extnet_id"`
|
||||
@@ -51,6 +52,7 @@ type ResourceK8SCPModel struct {
|
||||
DeletedTime types.Int64 `tfsdk:"deleted_time"`
|
||||
K8SID types.Int64 `tfsdk:"k8s_id"`
|
||||
K8CIName types.String `tfsdk:"k8s_ci_name"`
|
||||
K8SAddressVIP types.Object `tfsdk:"address_vip"`
|
||||
LBID types.Int64 `tfsdk:"lb_id"`
|
||||
LBIP types.String `tfsdk:"lb_ip"`
|
||||
MasterGroupId types.Int64 `tfsdk:"master_group_id"`
|
||||
@@ -63,6 +65,11 @@ type ResourceK8SCPModel struct {
|
||||
Kubeconfig types.String `tfsdk:"kubeconfig"`
|
||||
}
|
||||
|
||||
type AddressVIPModel struct {
|
||||
BackendIP types.String `tfsdk:"backend_ip"`
|
||||
FrontendIP types.String `tfsdk:"frontend_ip"`
|
||||
}
|
||||
|
||||
type RecordACLModel struct {
|
||||
AccountACL types.List `tfsdk:"account_acl"`
|
||||
K8SACL types.List `tfsdk:"k8s_acl"`
|
||||
@@ -93,6 +100,11 @@ type ItemInterfacesModel struct {
|
||||
IpAddress types.String `tfsdk:"ip_address"`
|
||||
}
|
||||
|
||||
var AddressVIP map[string]attr.Type = map[string]attr.Type{
|
||||
"backend_ip": types.StringType,
|
||||
"frontend_ip": types.StringType,
|
||||
}
|
||||
|
||||
var ItemInterfaces map[string]attr.Type = map[string]attr.Type{
|
||||
"def_gw": types.StringType,
|
||||
"ip_address": types.StringType,
|
||||
|
||||
@@ -11,8 +11,10 @@ type ResourceK8SWGModel struct {
|
||||
K8SID types.Int64 `tfsdk:"k8s_id"`
|
||||
Name types.String `tfsdk:"name"`
|
||||
Num types.Int64 `tfsdk:"num"`
|
||||
WorkerChipset types.String `tfsdk:"worker_chipset"`
|
||||
CPU types.Int64 `tfsdk:"cpu"`
|
||||
RAM types.Int64 `tfsdk:"ram"`
|
||||
Chipset types.String `tfsdk:"chipset"`
|
||||
Disk types.Int64 `tfsdk:"disk"`
|
||||
Annotations types.List `tfsdk:"annotations"`
|
||||
Labels types.List `tfsdk:"labels"`
|
||||
|
||||
Reference in New Issue
Block a user