Skip to content

Commit

Permalink
openapi spec updates (2408.1.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmunzer committed Aug 10, 2024
1 parent e989330 commit e2c613e
Show file tree
Hide file tree
Showing 65 changed files with 110 additions and 110 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/hashicorp/terraform-plugin-framework-validators v0.13.0
github.com/hashicorp/terraform-plugin-go v0.23.0
github.com/hashicorp/terraform-plugin-log v0.9.0
github.com/tmunzer/mistapi-go v0.2.37
github.com/tmunzer/mistapi-go v0.3.1
golang.org/x/net v0.27.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5
github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/tmunzer/mistapi-go v0.2.37 h1:GNpBeR+Ikwjmz8XL15+CUF4OiO4epAa/yrFipOhRsrs=
github.com/tmunzer/mistapi-go v0.2.37/go.mod h1:L85t86nrbWnZ+7uv4EpEbra9psqHQIE+ugBqHGNCmGA=
github.com/tmunzer/mistapi-go v0.3.1 h1:FC4xo69xkRhVb9QL4Q/vyCoMA6cpFF26mMIY4rYQBqI=
github.com/tmunzer/mistapi-go v0.3.1/go.mod h1:L85t86nrbWnZ+7uv4EpEbra9psqHQIE+ugBqHGNCmGA=
github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8=
github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok=
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
Expand Down
6 changes: 3 additions & 3 deletions internal/datasource_device_ap_stats/sdk_to_terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse) (basetypes.SetValue, diag.Diagnostics) {
func SdkToTerraform(ctx context.Context, l []models.StatsDevice) (basetypes.SetValue, diag.Diagnostics) {
var diags diag.Diagnostics

var elements []attr.Value
Expand All @@ -24,7 +24,7 @@ func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse)
if e != nil {
diags.AddError("Unable to Marshal AP Stats", e.Error())
} else {
ap := models.ApStats{}
ap := models.StatsAp{}
e := json.Unmarshal(ap_js, &ap)
if e != nil {
diags.AddError("Unable to unMarshal AP Stats", e.Error())
Expand All @@ -42,7 +42,7 @@ func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse)
return dataSet, diags
}

func deviceApStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStats) DeviceApStatsValue {
func deviceApStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsAp) DeviceApStatsValue {

var auto_placement basetypes.ObjectValue = types.ObjectNull(AutoPlacementValue{}.AttributeTypes(ctx))
var auto_upgrade_stat basetypes.ObjectValue = types.ObjectNull(AutoUpgradeStatValue{}.AttributeTypes(ctx))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func autoPlacementInfoProbaSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsAutoPlacementInfoProbabilitySurface) basetypes.ObjectValue {
func autoPlacementInfoProbaSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApAutoPlacementInfoProbabilitySurface) basetypes.ObjectValue {
var radius basetypes.NumberValue
var radius_m basetypes.NumberValue
var x basetypes.Float64Value
Expand All @@ -39,7 +39,7 @@ func autoPlacementInfoProbaSdkToTerraform(ctx context.Context, diags *diag.Diagn
return data
}

func autoPlacementInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsAutoPlacementInfo) basetypes.ObjectValue {
func autoPlacementInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApAutoPlacementInfo) basetypes.ObjectValue {
var cluster_number basetypes.Int64Value
var orientation_stats basetypes.Int64Value
var probability_surface basetypes.ObjectValue = types.ObjectNull(ProbabilitySurfaceValue{}.AttributeTypes(ctx))
Expand All @@ -66,7 +66,7 @@ func autoPlacementInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostic
return data
}

func autoPlacementSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsAutoPlacement) basetypes.ObjectValue {
func autoPlacementSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApAutoPlacement) basetypes.ObjectValue {
var info basetypes.ObjectValue = types.ObjectNull(InfoValue{}.AttributeTypes(ctx))
var recommended_anchor basetypes.BoolValue
var status basetypes.StringValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func autoUpgradeStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsAutoUpgrade) basetypes.ObjectValue {
func autoUpgradeStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApAutoUpgrade) basetypes.ObjectValue {
var lastcheck basetypes.Int64Value

if d.Lastcheck.Value() != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func bleStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsBle) basetypes.ObjectValue {
func bleStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApBle) basetypes.ObjectValue {
var beacon_enabled basetypes.BoolValue
var beacon_rate basetypes.Int64Value
var eddystone_uid_enabled basetypes.BoolValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func envStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsEnvStat) basetypes.ObjectValue {
func envStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApEnvStat) basetypes.ObjectValue {
var accel_x basetypes.Float64Value
var accel_y basetypes.Float64Value
var accel_z basetypes.Float64Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func eslStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsEslStat) basetypes.ObjectValue {
func eslStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApEslStat) basetypes.ObjectValue {
var channel basetypes.Int64Value
var connected basetypes.BoolValue
var type_esl basetypes.StringValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func iotStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.ApStatsIotStatAdditionalProperties) basetypes.MapValue {
func iotStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.StatsApIotStatAdditionalProperties) basetypes.MapValue {
map_attr_values := make(map[string]attr.Value)
for k, d := range m {
var value basetypes.Int64Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func l2tpStatsSessionSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.ApStatsL2TpStatSession) basetypes.ListValue {
func l2tpStatsSessionSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.StatsApL2tpStatSession) basetypes.ListValue {
var data_list = []SessionsValue{}
for _, d := range l {
var local_sid basetypes.Int64Value
Expand Down Expand Up @@ -48,7 +48,7 @@ func l2tpStatsSessionSdkToTerraform(ctx context.Context, diags *diag.Diagnostics
return r
}

func l2tpStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.ApStatsL2TpStat) basetypes.MapValue {
func l2tpStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.StatsApL2tpStat) basetypes.MapValue {
map_attr_values := make(map[string]attr.Value)
for k, d := range m {
var sessions basetypes.ListValue = types.ListUnknown(SessionsValue{}.Type(ctx))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func lldpSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsLldpStat) basetypes.ObjectValue {
func lldpSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApLldpStat) basetypes.ObjectValue {

var chassis_id basetypes.StringValue
var lldp_med_supported basetypes.BoolValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func portStatdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.ApStatsPortStat) basetypes.MapValue {
func portStatdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.StatsApPortStat) basetypes.MapValue {
map_attr_values := make(map[string]attr.Value)
for k, d := range m {
var full_duplex basetypes.BoolValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func radioStatBandSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApRadioStats) basetypes.ObjectValue {
func radioStatBandSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApRadioStat) basetypes.ObjectValue {

var bandwidth basetypes.Int64Value
var channel basetypes.Int64Value
Expand Down Expand Up @@ -119,7 +119,7 @@ func radioStatBandSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d
return data
}

func radioStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsRadioStat) basetypes.ObjectValue {
func radioStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApRadioStat) basetypes.ObjectValue {

var band_24 basetypes.ObjectValue = types.ObjectNull(BandValue{}.AttributeTypes(ctx))
var band_5 basetypes.ObjectValue = types.ObjectNull(BandValue{}.AttributeTypes(ctx))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func SwitchRedundancySdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsSwitchRedundancy) basetypes.ObjectValue {
func SwitchRedundancySdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApSwitchRedundancy) basetypes.ObjectValue {

var num_redundant_aps basetypes.Int64Value

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func usbStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ApStatsUsbStat) basetypes.ObjectValue {
func usbStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsApUsbStat) basetypes.ObjectValue {
var channel basetypes.Int64Value
var connected basetypes.BoolValue
var last_activity basetypes.Int64Value
Expand Down
6 changes: 3 additions & 3 deletions internal/datasource_device_gateway_stats/sdk_to_terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse) (basetypes.SetValue, diag.Diagnostics) {
func SdkToTerraform(ctx context.Context, l []models.StatsDevice) (basetypes.SetValue, diag.Diagnostics) {
var diags diag.Diagnostics

var elements []attr.Value
Expand All @@ -22,7 +22,7 @@ func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse)
if e != nil {
diags.AddError("Unable to unMarshal Gateway Stats", e.Error())
} else {
gw := models.GatewayStats{}
gw := models.StatsGateway{}
e := json.Unmarshal(gw_js, &gw)
if e != nil {
diags.AddError("Unable to unMarshal Switch Stats", e.Error())
Expand All @@ -40,7 +40,7 @@ func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse)
return dataSet, diags
}

func deviceGatewayStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.GatewayStats) DeviceGatewayStatsValue {
func deviceGatewayStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsGateway) DeviceGatewayStatsValue {

var ap_redundancy basetypes.ObjectValue = types.ObjectNull(ApRedundancyValue{}.AttributeTypes(ctx))
var arp_table_stats basetypes.ObjectValue = types.ObjectNull(ArpTableStatsValue{}.AttributeTypes(ctx))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func clusterConfigControlLinkInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ClusterConfigStatsControlLinkInfo) basetypes.ObjectValue {
func clusterConfigControlLinkInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsClusterConfigControlLinkInfo) basetypes.ObjectValue {
var name basetypes.StringValue
var status basetypes.StringValue

Expand All @@ -36,7 +36,7 @@ func clusterConfigControlLinkInfoSdkToTerraform(ctx context.Context, diags *diag
return data
}

func clusterConfigStatsEthernetConnectionSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.ClusterConfigStatsEthernetConnectionItem) basetypes.ListValue {
func clusterConfigStatsEthernetConnectionSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.StatsClusterConfigEthernetConnectionItem) basetypes.ListValue {
var data_list = []EthernetConnectionValue{}
for _, d := range l {

Expand Down Expand Up @@ -64,7 +64,7 @@ func clusterConfigStatsEthernetConnectionSdkToTerraform(ctx context.Context, dia
return r
}

func clusterConfigFabricLinkInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ClusterConfigStatsFabricLinkInfo) basetypes.ObjectValue {
func clusterConfigFabricLinkInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsClusterConfigFabricLinkInfo) basetypes.ObjectValue {
var data_plane_notified_status basetypes.StringValue
var interface_link basetypes.ListValue = types.ListNull(types.StringType)
var internal_status basetypes.StringValue
Expand Down Expand Up @@ -101,7 +101,7 @@ func clusterConfigFabricLinkInfoSdkToTerraform(ctx context.Context, diags *diag.
return data
}

func clusterConfigStatsRedundancySdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.ClusterConfigStatsRedundancyGroupInfoItem) basetypes.ListValue {
func clusterConfigStatsRedundancySdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.StatsClusterConfigRedundancyGroupInfoItem) basetypes.ListValue {
var data_list = []RedundancyGroupInformationValue{}
for _, d := range l {

Expand Down Expand Up @@ -134,7 +134,7 @@ func clusterConfigStatsRedundancySdkToTerraform(ctx context.Context, diags *diag
return r
}

func clusterConfigSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.ClusterConfigStats) basetypes.ObjectValue {
func clusterConfigSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsClusterConfig) basetypes.ObjectValue {
var configuration basetypes.StringValue
var control_link_info basetypes.ObjectValue = types.ObjectNull(ControlLinkInfoValue{}.AttributeTypes(ctx))
var ethernet_connection basetypes.ListValue = types.ListNull(EthernetConnectionValue{}.Type(ctx))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func clusterStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.GatewayStatsCluster) basetypes.ObjectValue {
func clusterStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsGatewayCluster) basetypes.ObjectValue {
var state basetypes.StringValue

if d.State.Value() != nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func serviceStatusSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.GatewayStatsServiceStatus) basetypes.ObjectValue {
func serviceStatusSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsGatewayServiceStatus) basetypes.ObjectValue {

var appid_install_result basetypes.StringValue
var appid_install_timestamp basetypes.StringValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func spuStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.GatewayStatsSpuItem) basetypes.ListValue {
func spuStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.StatsGatewaySpuItem) basetypes.ListValue {

var data_list = []SpuStatValue{}
for _, d := range l {
Expand Down
6 changes: 3 additions & 3 deletions internal/datasource_device_switch_stats/sdk_to_terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/tmunzer/mistapi-go/mistapi/models"
)

func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse) (basetypes.SetValue, diag.Diagnostics) {
func SdkToTerraform(ctx context.Context, l []models.StatsDevice) (basetypes.SetValue, diag.Diagnostics) {
var diags diag.Diagnostics

var elements []attr.Value
Expand All @@ -22,7 +22,7 @@ func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse)
if e != nil {
diags.AddError("Unable to Marshal Switch Stats", e.Error())
} else {
sw := models.SwitchStats{}
sw := models.StatsSwitch{}
e := json.Unmarshal(sw_js, &sw)
if e != nil {
diags.AddError("Unable to unMarshal Switch Stats", e.Error())
Expand All @@ -40,7 +40,7 @@ func SdkToTerraform(ctx context.Context, l []models.ListOrgDevicesStatsResponse)
return dataSet, diags
}

func deviceSwitchStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.SwitchStats) DeviceSwitchStatsValue {
func deviceSwitchStatSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsSwitch) DeviceSwitchStatsValue {

var ap_redundancy basetypes.ObjectValue = types.ObjectNull(ApRedundancyValue{}.AttributeTypes(ctx))
var arp_table_stats basetypes.ObjectValue = types.ObjectNull(ArpTableStatsValue{}.AttributeTypes(ctx))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func apRedundancyModuleSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.SwitchStatsApRedundancyModule) basetypes.MapValue {
func apRedundancyModuleSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, m map[string]models.StatsSwitchApRedundancyModule) basetypes.MapValue {

map_attr_values := make(map[string]attr.Value)
for k, d := range m {
Expand Down Expand Up @@ -39,7 +39,7 @@ func apRedundancyModuleSdkToTerraform(ctx context.Context, diags *diag.Diagnosti
return state_result
}

func apRedundancySdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.SwitchStatsApRedundancy) basetypes.ObjectValue {
func apRedundancySdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsSwitchApRedundancy) basetypes.ObjectValue {

var modules basetypes.MapValue = types.MapNull(ModulesValue{}.Type(ctx))
var num_aps basetypes.Int64Value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func clientsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.SwitchStatsClientItem) basetypes.ListValue {
func clientsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, l []models.StatsSwitchClientItem) basetypes.ListValue {

var data_list = []ClientsValue{}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func clientsStatsTotalSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.SwitchStatsClientsStatsTotal) basetypes.ObjectValue {
func clientsStatsTotalSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsSwitchClientsStatsTotal) basetypes.ObjectValue {

var num_aps basetypes.ListValue = types.ListNull(types.Int64Type)
var num_wired_clients basetypes.Int64Value
Expand All @@ -36,7 +36,7 @@ func clientsStatsTotalSdkToTerraform(ctx context.Context, diags *diag.Diagnostic
return data
}

func clientsStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.SwitchStatsClientsStats) basetypes.ObjectValue {
func clientsStatsSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsSwitchClientsStats) basetypes.ObjectValue {

var total basetypes.ObjectValue = types.ObjectNull(TotalValue{}.AttributeTypes(ctx))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func vcSetupInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.SwitchStatsVcSetupInfo) basetypes.ObjectValue {
func vcSetupInfoSdkToTerraform(ctx context.Context, diags *diag.Diagnostics, d *models.StatsSwitchVcSetupInfo) basetypes.ObjectValue {

var config_type basetypes.StringValue
var err_missing_dev_id_fpc basetypes.BoolValue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/types/basetypes"
)

func SdkToTerraform(ctx context.Context, l []models.ListOrgDeviceProfilesResponse) (basetypes.SetValue, diag.Diagnostics) {
func SdkToTerraform(ctx context.Context, l []models.Deviceprofile) (basetypes.SetValue, diag.Diagnostics) {
var diags diag.Diagnostics

var elements []attr.Value
Expand Down
Loading

0 comments on commit e2c613e

Please sign in to comment.