diff --git a/pkg/models/load_balancer.go b/pkg/models/load_balancer.go index e278872..b069308 100644 --- a/pkg/models/load_balancer.go +++ b/pkg/models/load_balancer.go @@ -612,32 +612,27 @@ type CreateLBPoolResp struct { } type LBPoolResp struct { - ID int `json:"id" tf:"id,computed"` - LbID int `json:"lb_id" tf:"lb_id"` - Name string `json:"name"` - Category string `json:"category"` - Visibility string `json:"visibility"` - Description string `json:"description"` - InternalID string `json:"internalId"` - ExternalID string `json:"externalId"` - Enabled bool `json:"enabled"` - VipBalance string `json:"vipBalance"` - MinActive int `json:"minActive"` - NumberActive int `json:"numberActive"` - NumberInService int `json:"numberInService"` - HealthScore float32 `json:"healthScore"` - PerformanceScore float32 `json:"performanceScore"` - HealthPenalty float32 `json:"healthPenalty"` - SecurityPenalty float32 `json:"securityPenalty"` - ErrorPenalty float32 `json:"errorPenalty"` - Status string `json:"status"` - DateCreated string `json:"dateCreated"` - LastUpdated string `json:"lastUpdated"` - Nodes []string `json:"nodes"` - Monitors []string `json:"monitors"` - Members []string `json:"members"` - LoadBalancer LBMonitor `json:"loadBalancer"` - LBPoolConfig PoolConfig `json:"config" tf:"config"` + ID int `json:"id" tf:"id,computed"` + LbID int `json:"lb_id" tf:"lb_id"` + Name string `json:"name"` + Category string `json:"category"` + Visibility string `json:"visibility"` + Description string `json:"description"` + InternalID string `json:"internalId"` + ExternalID string `json:"externalId"` + Enabled bool `json:"enabled"` + VipBalance string `json:"vipBalance"` + MinActive int `json:"minActive"` + NumberActive int `json:"numberActive"` + NumberInService int `json:"numberInService"` + HealthScore float32 `json:"healthScore"` + PerformanceScore float32 `json:"performanceScore"` + HealthPenalty float32 `json:"healthPenalty"` + SecurityPenalty float32 `json:"securityPenalty"` + ErrorPenalty float32 `json:"errorPenalty"` + Status string `json:"status"` + DateCreated string `json:"dateCreated"` + LastUpdated string `json:"lastUpdated"` } // Get LB Pools @@ -646,32 +641,27 @@ type GetLBPools struct { } type GetLBPoolsResp struct { - ID int `json:"id" tf:"id,computed"` - LbID int `json:"-" tf:"lb_id,computed"` - Name string `json:"name"` - Visibility string `json:"visibility"` - Description string `json:"description"` - InternalID string `json:"internalId"` - ExternalID string `json:"externalId"` - Enabled bool `json:"enabled"` - VipBalance string `json:"vipBalance"` - MinActive int `json:"minActive"` - NumberActive int `json:"numberActive"` - NumberInService int `json:"numberInService"` - HealthScore float32 `json:"healthScore"` - PerformanceScore float32 `json:"performanceScore"` - HealthPenalty float32 `json:"healthPenalty"` - SecurityPenalty float32 `json:"securityPenalty"` - ErrorPenalty float32 `json:"errorPenalty"` - Status string `json:"status"` - DateCreated string `json:"dateCreated"` - LastUpdated string `json:"lastUpdated"` - Nodes []string `json:"nodes"` - Monitors []string `json:"monitors"` - Members []string `json:"members"` - LoadBalancer LBMonitor `json:"loadBalancer"` - LBPoolConfig PoolConfig `json:"config" tf:"config"` - Meta MetaInfo `json:"meta"` + ID int `json:"id" tf:"id,computed"` + LbID int `json:"-" tf:"lb_id,computed"` + Name string `json:"name"` + Visibility string `json:"visibility"` + Description string `json:"description"` + InternalID string `json:"internalId"` + ExternalID string `json:"externalId"` + Enabled bool `json:"enabled"` + VipBalance string `json:"vipBalance"` + MinActive int `json:"minActive"` + NumberActive int `json:"numberActive"` + NumberInService int `json:"numberInService"` + HealthScore float32 `json:"healthScore"` + PerformanceScore float32 `json:"performanceScore"` + HealthPenalty float32 `json:"healthPenalty"` + SecurityPenalty float32 `json:"securityPenalty"` + ErrorPenalty float32 `json:"errorPenalty"` + Status string `json:"status"` + DateCreated string `json:"dateCreated"` + LastUpdated string `json:"lastUpdated"` + Meta MetaInfo `json:"meta"` } // Get Specific LB Pools @@ -680,31 +670,26 @@ type GetSpecificLBPool struct { } type GetSpecificLBPoolResp struct { - ID int `json:"-" tf:"id,computed"` - LbID int `json:"-" tf:"lb_id,computed"` - Name string `json:"name"` - Visibility string `json:"visibility"` - Description string `json:"description"` - InternalID string `json:"internalId"` - ExternalID string `json:"externalId"` - Enabled bool `json:"enabled"` - VipBalance string `json:"vipBalance"` - MinActive int `json:"minActive"` - NumberActive int `json:"numberActive"` - NumberInService int `json:"numberInService"` - HealthScore float32 `json:"healthScore"` - PerformanceScore float32 `json:"performanceScore"` - HealthPenalty float32 `json:"healthPenalty"` - SecurityPenalty float32 `json:"securityPenalty"` - ErrorPenalty float32 `json:"errorPenalty"` - Status string `json:"status"` - DateCreated string `json:"dateCreated"` - LastUpdated string `json:"lastUpdated"` - Nodes []string `json:"nodes"` - Monitors []string `json:"monitors"` - Members []string `json:"members"` - LoadBalancer LBMonitor `json:"loadBalancer"` - LBPoolConfig PoolConfig `json:"config" tf:"config"` + ID int `json:"-" tf:"id,computed"` + LbID int `json:"-" tf:"lb_id,computed"` + Name string `json:"name"` + Visibility string `json:"visibility"` + Description string `json:"description"` + InternalID string `json:"internalId"` + ExternalID string `json:"externalId"` + Enabled bool `json:"enabled"` + VipBalance string `json:"vipBalance"` + MinActive int `json:"minActive"` + NumberActive int `json:"numberActive"` + NumberInService int `json:"numberInService"` + HealthScore float32 `json:"healthScore"` + PerformanceScore float32 `json:"performanceScore"` + HealthPenalty float32 `json:"healthPenalty"` + SecurityPenalty float32 `json:"securityPenalty"` + ErrorPenalty float32 `json:"errorPenalty"` + Status string `json:"status"` + DateCreated string `json:"dateCreated"` + LastUpdated string `json:"lastUpdated"` } // CREATE LB Virtual servers