Skip to content

Commit

Permalink
Update port data type in network and wireless structs
Browse files Browse the repository at this point in the history
  • Loading branch information
bvargasre committed Mar 8, 2024
1 parent 2eb086a commit 66b5493
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.6] - 2024-03-08
### Changed
- `ResponseNetworksGetNetworkSyslogServersServers` changes Port from `int` to `string`.
- `RequestNetworksUpdateNetworkSyslogServersServers` changes Port from `int` to `string`.
- `RequestNetworksUpdateNetworkAlertsSettingsAlertsFilters` changes from `interface` to `struct`.
- `ResponseWirelessGetNetworkWirelessBillingPlans` changes Price from `int` to `float64`.

## [2.0.5] - 2024-03-04
### Changed
- Changed custom logger. Censure API Key.
Expand Down
12 changes: 8 additions & 4 deletions sdk/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,7 @@ type ResponseNetworksGetNetworkSyslogServers struct {
}
type ResponseNetworksGetNetworkSyslogServersServers struct {
Host string `json:"host,omitempty"` // The IP address of the syslog server
Port *int `json:"port,omitempty"` // The port of the syslog server
Port string `json:"port,omitempty"` // The port of the syslog server
Roles []string `json:"roles,omitempty"` // A list of roles for the syslog server. Options (case-insensitive): 'Wireless event log', 'Appliance event log', 'Switch event log', 'Air Marshal events', 'Flows', 'URLs', 'IDS alerts', 'Security events'
}
type ResponseNetworksUpdateNetworkSyslogServers struct {
Expand Down Expand Up @@ -2363,7 +2363,11 @@ type RequestNetworksUpdateNetworkAlertsSettingsAlertsAlertDestinations struct {
HTTPServerIDs []string `json:"httpServerIds,omitempty"` // A list of HTTP server IDs to send a Webhook to for this alert
SNMP *bool `json:"snmp,omitempty"` // If true, then an SNMP trap will be sent for this alert if there is an SNMP trap server configured for this network
}
type RequestNetworksUpdateNetworkAlertsSettingsAlertsFilters interface{}
type RequestNetworksUpdateNetworkAlertsSettingsAlertsFilters struct {
Timeout *int `json:"timeout,omitempty"`
Threshold *int `json:"threshold,omitempty"`
Period *int `json:"period,omitempty"`
}
type RequestNetworksUpdateNetworkAlertsSettingsDefaultDestinations struct {
AllAdmins *bool `json:"allAdmins,omitempty"` // If true, then all network admins will receive emails.
Emails []string `json:"emails,omitempty"` // A list of emails that will recieve the alert(s).
Expand Down Expand Up @@ -2535,7 +2539,7 @@ type RequestNetworksUpdateNetworkClientSplashAuthorizationStatusSSIDs9 struct {
IsAuthorized *bool `json:"isAuthorized,omitempty"` // New authorization status for the SSID (true, false).
}
type RequestNetworksClaimNetworkDevices struct {
Serials []string `json:"serials,omitempty"` // A list of serials of devices to claim
Serials []string `json:"serials"` // A list of serials of devices to claim
}
type RequestNetworksVmxNetworkDevicesClaim struct {
Size string `json:"size,omitempty"` // The size of the vMX you claim. It can be one of: small, medium, large, 100
Expand Down Expand Up @@ -3160,7 +3164,7 @@ type RequestNetworksUpdateNetworkSyslogServers struct {
}
type RequestNetworksUpdateNetworkSyslogServersServers struct {
Host string `json:"host,omitempty"` // The IP address of the syslog server
Port *int `json:"port,omitempty"` // The port of the syslog server
Port string `json:"port,omitempty"` // The port of the syslog server
Roles []string `json:"roles,omitempty"` // A list of roles for the syslog server. Options (case-insensitive): 'Wireless event log', 'Appliance event log', 'Switch event log', 'Air Marshal events', 'Flows', 'URLs', 'IDS alerts', 'Security events'
}
type RequestNetworksUpdateNetworkTrafficAnalysis struct {
Expand Down
2 changes: 1 addition & 1 deletion sdk/wireless.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ type ResponseWirelessGetNetworkWirelessBilling struct {
type ResponseWirelessGetNetworkWirelessBillingPlans struct {
BandwidthLimits *ResponseWirelessGetNetworkWirelessBillingPlansBandwidthLimits `json:"bandwidthLimits,omitempty"` //
ID string `json:"id,omitempty"` //
Price *int `json:"price,omitempty"` //
Price *float64 `json:"price,omitempty"` //
TimeLimit string `json:"timeLimit,omitempty"` //
}
type ResponseWirelessGetNetworkWirelessBillingPlansBandwidthLimits struct {
Expand Down

0 comments on commit 66b5493

Please sign in to comment.