diff --git a/README.md b/README.md
index 0728ba4f..93c029d0 100644
--- a/README.md
+++ b/README.md
@@ -3,9 +3,9 @@
## Introduction
-> Version: **2412.1.25**
+> Version: **2412.1.26**
>
-> Date: **January 23, 2024**
+> Date: **January 27, 2024**
---
diff --git a/doc/controllers/utilities-upgrade.md b/doc/controllers/utilities-upgrade.md
index c38b286c..e27aced7 100644
--- a/doc/controllers/utilities-upgrade.md
+++ b/doc/controllers/utilities-upgrade.md
@@ -1058,10 +1058,10 @@ orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
body := models.UpgradeOrgDevices{
Force: models.ToPointer(false),
- MaxFailurePercentage: models.ToPointer(float64(5)),
+ MaxFailurePercentage: models.ToPointer(5),
P2pClusterSize: models.ToPointer(0),
Reboot: models.ToPointer(false),
- RebootAt: models.ToPointer(float64(1624399840)),
+ RebootAt: models.ToPointer(1624399840),
RrmFirstBatchPercentage: models.ToPointer(2),
RrmMaxBatchPercentage: models.ToPointer(10),
RrmMeshUpgrade: models.ToPointer(models.DeviceUpgradeRrmMeshUpgradeEnum("sequential")),
@@ -1079,7 +1079,7 @@ body := models.UpgradeOrgDevices{
},
},
Snapshot: models.ToPointer(false),
- StartTime: models.ToPointer(float64(1624399840)),
+ StartTime: models.ToPointer(1624399840),
Strategy: models.ToPointer(models.DeviceUpgradeStrategyEnum("big_bang")),
Version: models.ToPointer("3.1.5"),
}
@@ -1250,7 +1250,7 @@ body := models.MxedgeUpgradeMulti{
MxedgeIds: []uuid.UUID{
uuid.MustParse("387804a7-3474-85ce-15a2-f9a9684c9c90"),
},
- StartTime: models.ToPointer(float64(1624399840)),
+ StartTime: models.ToPointer(1624399840),
Strategy: models.ToPointer(models.MxedgeUpgradeStrategyEnum("serial")),
Versions: models.ToPointer(models.MxedgeUpgradeVersion{
Mxagent: "latest",
@@ -1397,10 +1397,10 @@ siteId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
body := models.UpgradeSiteDevices{
Force: models.ToPointer(false),
- MaxFailurePercentage: models.ToPointer(float64(5)),
+ MaxFailurePercentage: models.ToPointer(5),
P2pClusterSize: models.ToPointer(0),
Reboot: models.ToPointer(false),
- RebootAt: models.ToPointer(float64(1624399840)),
+ RebootAt: models.ToPointer(1624399840),
RrmFirstBatchPercentage: models.ToPointer(2),
RrmMaxBatchPercentage: models.ToPointer(10),
RrmMeshUpgrade: models.ToPointer(models.DeviceUpgradeRrmMeshUpgradeEnum("sequential")),
@@ -1418,7 +1418,7 @@ body := models.UpgradeSiteDevices{
},
},
Snapshot: models.ToPointer(false),
- StartTime: models.ToPointer(float64(1624399840)),
+ StartTime: models.ToPointer(1624399840),
Strategy: models.ToPointer(models.DeviceUpgradeStrategyEnum("big_bang")),
Version: models.ToPointer("3.1.5"),
}
diff --git a/doc/models/device-upgrade.md b/doc/models/device-upgrade.md
index 6818f665..d49fb994 100644
--- a/doc/models/device-upgrade.md
+++ b/doc/models/device-upgrade.md
@@ -11,8 +11,8 @@
| Name | Type | Tags | Description |
| --- | --- | --- | --- |
-| `Reboot` | `*bool` | Optional | For Junos devices only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
**Default**: `false` |
-| `RebootAt` | `*int` | Optional | For Junos devices only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time` |
+| `Reboot` | `*bool` | Optional | For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
**Default**: `false` |
+| `RebootAt` | `*int` | Optional | For Switches and Gateways only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time` |
| `Snapshot` | `*bool` | Optional | For Junos devices only. Perform recovery snapshot after device is rebooted
**Default**: `false` |
| `StartTime` | `*int` | Optional | firmware download start time in epoch |
| `Version` | `string` | Required | specific version / `stable`, default is to use the latest
**Default**: `"stable"` |
diff --git a/doc/models/mxedge-upgrade-multi.md b/doc/models/mxedge-upgrade-multi.md
index 60826c8d..06e57df7 100644
--- a/doc/models/mxedge-upgrade-multi.md
+++ b/doc/models/mxedge-upgrade-multi.md
@@ -17,7 +17,7 @@
| `Distro` | `*string` | Optional | distro upgrade, optional, to specific codename (e.g. bullseye) with highest qualified versions |
| `MaxFailurePercentage` | `*int` | Optional | Failure threshold before we stop the upgrade and mark it as failed
**Default**: `5` |
| `MxedgeIds` | `[]uuid.UUID` | Required | list of mxedge IDs to upgrade. If not specified, it means all the org mxedges. |
-| `StartTime` | `*float64` | Optional | upgrade start time in epoch seconds, default is now |
+| `StartTime` | `*int` | Optional | upgrade start time in epoch seconds, default is now |
| `Strategy` | [`*models.MxedgeUpgradeStrategyEnum`](../../doc/models/mxedge-upgrade-strategy-enum.md) | Optional | enum:
* `big_bang`: upgrade all at once, no orchestration
* `serial`: one at a time'
* `canary`: upgrade in phases
**Default**: `"big_bang"` |
| `Versions` | [`*models.MxedgeUpgradeVersion`](../../doc/models/mxedge-upgrade-version.md) | Optional | version to upgrade for each service, `current` / `latest` / `default` / specific version (e.g. `2.5.100`).\nIgnored if distro upgrade, `tunterm`, `radsecproxy`, `mxagent`, `mxocproxy`, `mxdas` or `mxnacedge` |
| `AdditionalProperties` | `map[string]interface{}` | Optional | - |
diff --git a/doc/models/response-auto-placement-info.md b/doc/models/response-auto-placement-info.md
index 8afbf239..b20dbf99 100644
--- a/doc/models/response-auto-placement-info.md
+++ b/doc/models/response-auto-placement-info.md
@@ -13,7 +13,7 @@
| --- | --- | --- | --- |
| `EndTime` | `*float64` | Optional | time when autoplacement completed or was manually stopped |
| `EstTimeLeft` | `*float64` | Optional | (Only when inprogress) estimate of the time to completion |
-| `StartTime` | `*float64` | Optional | time when autoplacement process was last queued for this map |
+| `StartTime` | `*int` | Optional | time when autoplacement process was last queued for this map |
| `Status` | [`*models.AutoPlacementInfoStatusEnum`](../../doc/models/auto-placement-info-status-enum.md) | Optional | the status of autoplacement for a given map. enum: `done`, `error`, `inprogress`, `pending` |
| `AdditionalProperties` | `map[string]interface{}` | Optional | - |
@@ -23,7 +23,7 @@
{
"end_time": 184.76,
"est_time_left": 52.68,
- "start_time": 23.88,
+ "start_time": 84,
"status": "done",
"exampleAdditionalProperty": {
"key1": "val1",
diff --git a/doc/models/response-site-device-upgrade.md b/doc/models/response-site-device-upgrade.md
index 88c86a9a..6c7e5607 100644
--- a/doc/models/response-site-device-upgrade.md
+++ b/doc/models/response-site-device-upgrade.md
@@ -19,7 +19,7 @@
| `MaxFailurePercentage` | `*int` | Optional | percentage of failures allowed |
| `MaxFailures` | `[]int` | Optional | number of failures allowed within a canary phase or serial rollout |
| `RebootAt` | `*int` | Optional | reboot start time in epoch |
-| `StartTime` | `*float64` | Optional | firmware download start time in epoch |
+| `StartTime` | `*int` | Optional | firmware download start time in epoch |
| `Status` | [`*models.DeviceUpgradeStatusEnum`](../../doc/models/device-upgrade-status-enum.md) | Optional | status upgrade is in. enum: `cancelled`, `completed`, `created`, `downloaded`, `downloading`, `failed`, `upgrading` |
| `Strategy` | [`*models.DeviceUpgradeStrategyEnum`](../../doc/models/device-upgrade-strategy-enum.md) | Optional | For APs only. enum: `big_bang` (upgrade all at once), `canary`, `rrm`, `serial` (one at a time)
**Default**: `"big_bang"` |
| `TargetVersion` | `*string` | Optional | version to upgrade to
**Constraints**: *Minimum Length*: `1` |
diff --git a/doc/models/response-upgrade-org-device.md b/doc/models/response-upgrade-org-device.md
index f856e208..8775881d 100644
--- a/doc/models/response-upgrade-org-device.md
+++ b/doc/models/response-upgrade-org-device.md
@@ -22,7 +22,7 @@
"site_id": "441a1214-6928-442a-8e92-e1d34b8ec6a6",
"upgrade": {
"id": "000016ac-0000-0000-0000-000000000000",
- "start_time": 2.28,
+ "start_time": 228,
"status": "downloaded",
"targets": {
"download_requested": [
diff --git a/doc/models/ssr-upgrade.md b/doc/models/ssr-upgrade.md
index 71ae59d1..275cb5fc 100644
--- a/doc/models/ssr-upgrade.md
+++ b/doc/models/ssr-upgrade.md
@@ -12,7 +12,7 @@
| Name | Type | Tags | Description |
| --- | --- | --- | --- |
| `Channel` | [`*models.SsrUpgradeChannelEnum`](../../doc/models/ssr-upgrade-channel-enum.md) | Optional | upgrade channel to follow. enum: `alpha`, `beta`, `stable`
**Default**: `"stable"` |
-| `RebootAt` | `*int` | Optional | eboot start time in epoch seconds, default is start_time, -1 disables reboot |
+| `RebootAt` | `*int` | Optional | reboot start time in epoch seconds, default is start_time, -1 disables reboot |
| `StartTime` | `*int` | Optional | 128T firmware download start time in epoch seconds, default is now, -1 disables download |
| `Version` | `string` | Required | 128T firmware version to upgrade (e.g. 5.3.0-93)
**Default**: `"stable"`
**Constraints**: *Minimum Length*: `1` |
| `AdditionalProperties` | `map[string]interface{}` | Optional | - |
diff --git a/doc/models/upgrade-org-device-upgrade.md b/doc/models/upgrade-org-device-upgrade.md
index 2f6fe755..122f8099 100644
--- a/doc/models/upgrade-org-device-upgrade.md
+++ b/doc/models/upgrade-org-device-upgrade.md
@@ -12,7 +12,7 @@
| Name | Type | Tags | Description |
| --- | --- | --- | --- |
| `Id` | `*uuid.UUID` | Optional | Unique ID of the object instance in the Mist Organnization |
-| `StartTime` | `*float64` | Optional | - |
+| `StartTime` | `*int` | Optional | - |
| `Status` | [`*models.DeviceUpgradeStatusEnum`](../../doc/models/device-upgrade-status-enum.md) | Optional | status upgrade is in. enum: `cancelled`, `completed`, `created`, `downloaded`, `downloading`, `failed`, `upgrading` |
| `Targets` | [`*models.UpgradeOrgDeviceTargets`](../../doc/models/upgrade-org-device-targets.md) | Optional | - |
| `AdditionalProperties` | `map[string]interface{}` | Optional | - |
@@ -22,7 +22,7 @@
```json
{
"id": "53f10664-3ce8-4c27-b382-0ef66432349f",
- "start_time": 1717658765.0,
+ "start_time": 1717658765,
"status": "created",
"targets": {
"download_requested": [
diff --git a/doc/models/upgrade-org-devices.md b/doc/models/upgrade-org-devices.md
index 5191ac50..835879d9 100644
--- a/doc/models/upgrade-org-devices.md
+++ b/doc/models/upgrade-org-devices.md
@@ -14,13 +14,13 @@
| `CanaryPhases` | `[]int` | Optional | For APs only and if `strategy`==`canary`. Phases for canary deployment. Each phase represents percentage of devices that need to be upgraded in that phase. |
| `EnableP2p` | `*bool` | Optional | for APs only. whether to allow local AP-to-AP FW upgrade |
| `Force` | `*bool` | Optional | true will force upgrade when requested version is same as running version
**Default**: `false` |
-| `MaxFailurePercentage` | `*float64` | Optional | for APs only and if `strategy`!=`big_bang`. percentage of failures allowed across the entire upgrade
**Default**: `5`
**Constraints**: `>= 0`, `<= 100` |
+| `MaxFailurePercentage` | `*int` | Optional | for APs only and if `strategy`!=`big_bang`. percentage of failures allowed across the entire upgrade
**Default**: `5`
**Constraints**: `>= 0`, `<= 100` |
| `MaxFailures` | `[]int` | Optional | For APs only and if `strategy`==`canary`. Number of failures allowed within each phase. Only applicable for `canary`. Array length should be same as `canary_phases`. Will be used if provided, else `max_failure_percentage` will be used |
| `Models` | `[]string` | Optional | models which will be selected for upgrade |
| `P2pClusterSize` | `*int` | Optional | For APs only and if `enable_p2p`==`true`.
**Default**: `10`
**Constraints**: `>= 0` |
| `P2pParallelism` | `*int` | Optional | For APs only and if `enable_p2p`==`true`. Number of parallel p2p download batches to create |
-| `Reboot` | `*bool` | Optional | For Junos devices only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
**Default**: `false` |
-| `RebootAt` | `*float64` | Optional | For Junos devices only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time` |
+| `Reboot` | `*bool` | Optional | For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
**Default**: `false` |
+| `RebootAt` | `*int` | Optional | For Switches and Gateways only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time` |
| `RrmFirstBatchPercentage` | `*int` | Optional | For APs only and if `strategy`==`rrm`. Percentage of APs that need to be present in the first RRM batch |
| `RrmMaxBatchPercentage` | `*int` | Optional | For APs only and if `strategy`==`rrm`. Max percentage of APs that need to be present in each RRM batch |
| `RrmMeshUpgrade` | [`*models.DeviceUpgradeRrmMeshUpgradeEnum`](../../doc/models/device-upgrade-rrm-mesh-upgrade-enum.md) | Optional | For APs only and if `strategy`==`rrm`. Whether to upgrade mesh AP’s parallelly or sequentially at the end of the upgrade. enum: `parallel`, `sequential`
**Default**: `"sequential"` |
@@ -29,7 +29,7 @@
| `Rules` | `[]map[string]string` | Optional | Rules used to identify devices which will be selected for upgrade. Device will be selected as long as it satisfies any one rule
Property key defines the type of matching, value is the string to match. e.g:
* `match_name`: Device name must match the property value
* `match_name[0:3]`: Device name must match the first 3 letters of the property value
* `match_name[2:6]`: Device name must match the property value from the 2nd to the 6th letter
* `match_model`: Device model must match the property value
* `match_model[1:3]`: Device model must match the property value from the 1nd to the 3rd letter |
| `SiteIds` | `[]uuid.UUID` | Optional | - |
| `Snapshot` | `*bool` | Optional | For Junos devices only. Perform recovery snapshot after device is rebooted
**Default**: `false` |
-| `StartTime` | `*float64` | Optional | upgrade start time in epoch seconds, default is now |
+| `StartTime` | `*int` | Optional | upgrade start time in epoch seconds, default is now |
| `Strategy` | [`*models.DeviceUpgradeStrategyEnum`](../../doc/models/device-upgrade-strategy-enum.md) | Optional | For APs only. enum: `big_bang` (upgrade all at once), `canary`, `rrm`, `serial` (one at a time)
**Default**: `"big_bang"` |
| `Version` | `*string` | Optional | specific version / stable, default is to use the lastest available version |
| `AdditionalProperties` | `map[string]interface{}` | Optional | - |
@@ -43,7 +43,7 @@
138
],
"force": false,
- "max_failure_percentage": 5.0,
+ "max_failure_percentage": 5,
"p2p_cluster_size": 0,
"reboot": false,
"reboot_at": 1624399840,
diff --git a/doc/models/upgrade-site-devices.md b/doc/models/upgrade-site-devices.md
index 5f3bb4ab..75d0f49a 100644
--- a/doc/models/upgrade-site-devices.md
+++ b/doc/models/upgrade-site-devices.md
@@ -15,13 +15,13 @@
| `DeviceIds` | `[]uuid.UUID` | Optional | id’s of devices which will be selected for upgrade |
| `EnableP2p` | `*bool` | Optional | for APs only. whether to allow local AP-to-AP FW upgrade |
| `Force` | `*bool` | Optional | true will force upgrade when requested version is same as running version
**Default**: `false` |
-| `MaxFailurePercentage` | `*float64` | Optional | for APs only and if `strategy`!=`big_bang`. percentage of failures allowed across the entire upgrade
**Default**: `5`
**Constraints**: `>= 0`, `<= 100` |
+| `MaxFailurePercentage` | `*int` | Optional | for APs only and if `strategy`!=`big_bang`. percentage of failures allowed across the entire upgrade
**Default**: `5`
**Constraints**: `>= 0`, `<= 100` |
| `MaxFailures` | `[]int` | Optional | For APs only and if `strategy`==`canary`. Number of failures allowed within each phase. Only applicable for `canary`. Array length should be same as `canary_phases`. Will be used if provided, else `max_failure_percentage` will be used |
| `Models` | `[]string` | Optional | models which will be selected for upgrade |
| `P2pClusterSize` | `*int` | Optional | For APs only and if `enable_p2p`==`true`.
**Default**: `10`
**Constraints**: `>= 0` |
| `P2pParallelism` | `*int` | Optional | For APs only and if `enable_p2p`==`true`. Number of parallel p2p download batches to create |
-| `Reboot` | `*bool` | Optional | For Junos devices only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
**Default**: `false` |
-| `RebootAt` | `*float64` | Optional | For Junos devices only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time` |
+| `Reboot` | `*bool` | Optional | For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
**Default**: `false` |
+| `RebootAt` | `*int` | Optional | For Switches and Gateways only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time` |
| `RrmFirstBatchPercentage` | `*int` | Optional | For APs only and if `strategy`==`rrm`. Percentage of APs that need to be present in the first RRM batch |
| `RrmMaxBatchPercentage` | `*int` | Optional | For APs only and if `strategy`==`rrm`. Max percentage of APs that need to be present in each RRM batch |
| `RrmMeshUpgrade` | [`*models.DeviceUpgradeRrmMeshUpgradeEnum`](../../doc/models/device-upgrade-rrm-mesh-upgrade-enum.md) | Optional | For APs only and if `strategy`==`rrm`. Whether to upgrade mesh AP’s parallelly or sequentially at the end of the upgrade. enum: `parallel`, `sequential`
**Default**: `"sequential"` |
@@ -29,7 +29,7 @@
| `RrmSlowRamp` | `*bool` | Optional | For APs only and if `strategy`==`rrm`. True will make rrm batch sizes slowly ramp up |
| `Rules` | `[]map[string]string` | Optional | Rules used to identify devices which will be selected for upgrade. Device will be selected as long as it satisfies any one rule
Property key defines the type of matching, value is the string to match. e.g:
* `match_name`: Device name must match the property value
* `match_name[0:3]`: Device name must match the first 3 letters of the property value
* `match_name[2:6]`: Device name must match the property value from the 2nd to the 6th letter
* `match_model`: Device model must match the property value
* `match_model[1:3]`: Device model must match the property value from the 1nd to the 3rd letter |
| `Snapshot` | `*bool` | Optional | For Junos devices only. Perform recovery snapshot after device is rebooted
**Default**: `false` |
-| `StartTime` | `*float64` | Optional | upgrade start time in epoch seconds, default is now |
+| `StartTime` | `*int` | Optional | upgrade start time in epoch seconds, default is now |
| `Strategy` | [`*models.DeviceUpgradeStrategyEnum`](../../doc/models/device-upgrade-strategy-enum.md) | Optional | For APs only. enum: `big_bang` (upgrade all at once), `canary`, `rrm`, `serial` (one at a time)
**Default**: `"big_bang"` |
| `Version` | `*string` | Optional | specific version / stable, default is to use the lastest available version |
| `AdditionalProperties` | `map[string]interface{}` | Optional | - |
@@ -43,7 +43,7 @@
136
],
"force": false,
- "max_failure_percentage": 5.0,
+ "max_failure_percentage": 5,
"p2p_cluster_size": 0,
"reboot": false,
"reboot_at": 1624399840,
diff --git a/mistapi/client.go b/mistapi/client.go
index 0f55cf15..c86a8ff8 100644
--- a/mistapi/client.go
+++ b/mistapi/client.go
@@ -412,7 +412,7 @@ func NewClient(configuration Configuration) ClientInterface {
configuration: configuration,
}
- client.userAgent = utilities.UpdateUserAgent("SDK 2412.1.25")
+ client.userAgent = utilities.UpdateUserAgent("SDK 2412.1.26")
client.callBuilderFactory = callBuilderHandler(
func(server string) string {
if server == "" {
diff --git a/mistapi/models/device_upgrade.go b/mistapi/models/device_upgrade.go
index abb729b7..9424c6ca 100644
--- a/mistapi/models/device_upgrade.go
+++ b/mistapi/models/device_upgrade.go
@@ -9,9 +9,9 @@ import (
// DeviceUpgrade represents a DeviceUpgrade struct.
type DeviceUpgrade struct {
- // For Junos devices only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
+ // For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
Reboot *bool `json:"reboot,omitempty"`
- // For Junos devices only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time`
+ // For Switches and Gateways only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time`
RebootAt *int `json:"reboot_at,omitempty"`
// For Junos devices only. Perform recovery snapshot after device is rebooted
Snapshot *bool `json:"snapshot,omitempty"`
diff --git a/mistapi/models/mxedge_upgrade_multi.go b/mistapi/models/mxedge_upgrade_multi.go
index 25006225..66fe5fc3 100644
--- a/mistapi/models/mxedge_upgrade_multi.go
+++ b/mistapi/models/mxedge_upgrade_multi.go
@@ -23,7 +23,7 @@ type MxedgeUpgradeMulti struct {
// list of mxedge IDs to upgrade. If not specified, it means all the org mxedges.
MxedgeIds []uuid.UUID `json:"mxedge_ids"`
// upgrade start time in epoch seconds, default is now
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
// enum:
// * `big_bang`: upgrade all at once, no orchestration
// * `serial`: one at a time'
@@ -124,7 +124,7 @@ type tempMxedgeUpgradeMulti struct {
Distro *string `json:"distro,omitempty"`
MaxFailurePercentage *int `json:"max_failure_percentage,omitempty"`
MxedgeIds *[]uuid.UUID `json:"mxedge_ids"`
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
Strategy *MxedgeUpgradeStrategyEnum `json:"strategy,omitempty"`
Versions *MxedgeUpgradeVersion `json:"versions,omitempty"`
}
diff --git a/mistapi/models/response_auto_placement_info.go b/mistapi/models/response_auto_placement_info.go
index abfbe08d..cca86f31 100644
--- a/mistapi/models/response_auto_placement_info.go
+++ b/mistapi/models/response_auto_placement_info.go
@@ -12,7 +12,7 @@ type ResponseAutoPlacementInfo struct {
// (Only when inprogress) estimate of the time to completion
EstTimeLeft *float64 `json:"est_time_left,omitempty"`
// time when autoplacement process was last queued for this map
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
// the status of autoplacement for a given map. enum: `done`, `error`, `inprogress`, `pending`
Status *AutoPlacementInfoStatusEnum `json:"status,omitempty"`
AdditionalProperties map[string]interface{} `json:"_"`
@@ -82,6 +82,6 @@ func (r *ResponseAutoPlacementInfo) UnmarshalJSON(input []byte) error {
type tempResponseAutoPlacementInfo struct {
EndTime *float64 `json:"end_time,omitempty"`
EstTimeLeft *float64 `json:"est_time_left,omitempty"`
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
Status *AutoPlacementInfoStatusEnum `json:"status,omitempty"`
}
diff --git a/mistapi/models/response_site_device_upgrade.go b/mistapi/models/response_site_device_upgrade.go
index 14722509..b70685bb 100644
--- a/mistapi/models/response_site_device_upgrade.go
+++ b/mistapi/models/response_site_device_upgrade.go
@@ -26,7 +26,7 @@ type ResponseSiteDeviceUpgrade struct {
// reboot start time in epoch
RebootAt *int `json:"reboot_at,omitempty"`
// firmware download start time in epoch
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
// status upgrade is in. enum: `cancelled`, `completed`, `created`, `downloaded`, `downloading`, `failed`, `upgrading`
Status *DeviceUpgradeStatusEnum `json:"status,omitempty"`
// For APs only. enum: `big_bang` (upgrade all at once), `canary`, `rrm`, `serial` (one at a time)
@@ -146,7 +146,7 @@ type tempResponseSiteDeviceUpgrade struct {
MaxFailurePercentage *int `json:"max_failure_percentage,omitempty"`
MaxFailures []int `json:"max_failures,omitempty"`
RebootAt *int `json:"reboot_at,omitempty"`
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
Status *DeviceUpgradeStatusEnum `json:"status,omitempty"`
Strategy *DeviceUpgradeStrategyEnum `json:"strategy,omitempty"`
TargetVersion *string `json:"target_version,omitempty"`
diff --git a/mistapi/models/ssr_upgrade.go b/mistapi/models/ssr_upgrade.go
index c576b7bd..335f560a 100644
--- a/mistapi/models/ssr_upgrade.go
+++ b/mistapi/models/ssr_upgrade.go
@@ -11,7 +11,7 @@ import (
type SsrUpgrade struct {
// upgrade channel to follow. enum: `alpha`, `beta`, `stable`
Channel *SsrUpgradeChannelEnum `json:"channel,omitempty"`
- // eboot start time in epoch seconds, default is start_time, -1 disables reboot
+ // reboot start time in epoch seconds, default is start_time, -1 disables reboot
RebootAt *int `json:"reboot_at,omitempty"`
// 128T firmware download start time in epoch seconds, default is now, -1 disables download
StartTime *int `json:"start_time,omitempty"`
diff --git a/mistapi/models/upgrade_org_device_upgrade.go b/mistapi/models/upgrade_org_device_upgrade.go
index 95640e07..3ea78cfa 100644
--- a/mistapi/models/upgrade_org_device_upgrade.go
+++ b/mistapi/models/upgrade_org_device_upgrade.go
@@ -10,7 +10,7 @@ import (
type UpgradeOrgDeviceUpgrade struct {
// Unique ID of the object instance in the Mist Organnization
Id *uuid.UUID `json:"id,omitempty"`
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
// status upgrade is in. enum: `cancelled`, `completed`, `created`, `downloaded`, `downloading`, `failed`, `upgrading`
Status *DeviceUpgradeStatusEnum `json:"status,omitempty"`
Targets *UpgradeOrgDeviceTargets `json:"targets,omitempty"`
@@ -80,7 +80,7 @@ func (u *UpgradeOrgDeviceUpgrade) UnmarshalJSON(input []byte) error {
// tempUpgradeOrgDeviceUpgrade is a temporary struct used for validating the fields of UpgradeOrgDeviceUpgrade.
type tempUpgradeOrgDeviceUpgrade struct {
Id *uuid.UUID `json:"id,omitempty"`
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
Status *DeviceUpgradeStatusEnum `json:"status,omitempty"`
Targets *UpgradeOrgDeviceTargets `json:"targets,omitempty"`
}
diff --git a/mistapi/models/upgrade_org_devices.go b/mistapi/models/upgrade_org_devices.go
index 05903f19..a586fceb 100644
--- a/mistapi/models/upgrade_org_devices.go
+++ b/mistapi/models/upgrade_org_devices.go
@@ -15,7 +15,7 @@ type UpgradeOrgDevices struct {
// true will force upgrade when requested version is same as running version
Force *bool `json:"force,omitempty"`
// for APs only and if `strategy`!=`big_bang`. percentage of failures allowed across the entire upgrade
- MaxFailurePercentage *float64 `json:"max_failure_percentage,omitempty"`
+ MaxFailurePercentage *int `json:"max_failure_percentage,omitempty"`
// For APs only and if `strategy`==`canary`. Number of failures allowed within each phase. Only applicable for `canary`. Array length should be same as `canary_phases`. Will be used if provided, else `max_failure_percentage` will be used
MaxFailures []int `json:"max_failures,omitempty"`
// models which will be selected for upgrade
@@ -24,10 +24,10 @@ type UpgradeOrgDevices struct {
P2pClusterSize *int `json:"p2p_cluster_size,omitempty"`
// For APs only and if `enable_p2p`==`true`. Number of parallel p2p download batches to create
P2pParallelism *int `json:"p2p_parallelism,omitempty"`
- // For Junos devices only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
+ // For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
Reboot *bool `json:"reboot,omitempty"`
- // For Junos devices only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time`
- RebootAt *float64 `json:"reboot_at,omitempty"`
+ // For Switches and Gateways only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time`
+ RebootAt *int `json:"reboot_at,omitempty"`
// For APs only and if `strategy`==`rrm`. Percentage of APs that need to be present in the first RRM batch
RrmFirstBatchPercentage *int `json:"rrm_first_batch_percentage,omitempty"`
// For APs only and if `strategy`==`rrm`. Max percentage of APs that need to be present in each RRM batch
@@ -50,7 +50,7 @@ type UpgradeOrgDevices struct {
// For Junos devices only. Perform recovery snapshot after device is rebooted
Snapshot *bool `json:"snapshot,omitempty"`
// upgrade start time in epoch seconds, default is now
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
// For APs only. enum: `big_bang` (upgrade all at once), `canary`, `rrm`, `serial` (one at a time)
Strategy *DeviceUpgradeStrategyEnum `json:"strategy,omitempty"`
// specific version / stable, default is to use the lastest available version
@@ -191,13 +191,13 @@ type tempUpgradeOrgDevices struct {
CanaryPhases []int `json:"canary_phases,omitempty"`
EnableP2p *bool `json:"enable_p2p,omitempty"`
Force *bool `json:"force,omitempty"`
- MaxFailurePercentage *float64 `json:"max_failure_percentage,omitempty"`
+ MaxFailurePercentage *int `json:"max_failure_percentage,omitempty"`
MaxFailures []int `json:"max_failures,omitempty"`
Models []string `json:"models,omitempty"`
P2pClusterSize *int `json:"p2p_cluster_size,omitempty"`
P2pParallelism *int `json:"p2p_parallelism,omitempty"`
Reboot *bool `json:"reboot,omitempty"`
- RebootAt *float64 `json:"reboot_at,omitempty"`
+ RebootAt *int `json:"reboot_at,omitempty"`
RrmFirstBatchPercentage *int `json:"rrm_first_batch_percentage,omitempty"`
RrmMaxBatchPercentage *int `json:"rrm_max_batch_percentage,omitempty"`
RrmMeshUpgrade *DeviceUpgradeRrmMeshUpgradeEnum `json:"rrm_mesh_upgrade,omitempty"`
@@ -206,7 +206,7 @@ type tempUpgradeOrgDevices struct {
Rules []map[string]string `json:"rules,omitempty"`
SiteIds []uuid.UUID `json:"site_ids,omitempty"`
Snapshot *bool `json:"snapshot,omitempty"`
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
Strategy *DeviceUpgradeStrategyEnum `json:"strategy,omitempty"`
Version *string `json:"version,omitempty"`
}
diff --git a/mistapi/models/upgrade_site_devices.go b/mistapi/models/upgrade_site_devices.go
index 1ca904e4..82a6ac76 100644
--- a/mistapi/models/upgrade_site_devices.go
+++ b/mistapi/models/upgrade_site_devices.go
@@ -17,7 +17,7 @@ type UpgradeSiteDevices struct {
// true will force upgrade when requested version is same as running version
Force *bool `json:"force,omitempty"`
// for APs only and if `strategy`!=`big_bang`. percentage of failures allowed across the entire upgrade
- MaxFailurePercentage *float64 `json:"max_failure_percentage,omitempty"`
+ MaxFailurePercentage *int `json:"max_failure_percentage,omitempty"`
// For APs only and if `strategy`==`canary`. Number of failures allowed within each phase. Only applicable for `canary`. Array length should be same as `canary_phases`. Will be used if provided, else `max_failure_percentage` will be used
MaxFailures []int `json:"max_failures,omitempty"`
// models which will be selected for upgrade
@@ -26,10 +26,10 @@ type UpgradeSiteDevices struct {
P2pClusterSize *int `json:"p2p_cluster_size,omitempty"`
// For APs only and if `enable_p2p`==`true`. Number of parallel p2p download batches to create
P2pParallelism *int `json:"p2p_parallelism,omitempty"`
- // For Junos devices only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
+ // For Switches and Gateways only (APs are automatically rebooted). Reboot device immediately after upgrade is completed
Reboot *bool `json:"reboot,omitempty"`
- // For Junos devices only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time`
- RebootAt *float64 `json:"reboot_at,omitempty"`
+ // For Switches and Gateways only and if `reboot`==`true`. Reboot start time in epoch seconds, default is `start_time`
+ RebootAt *int `json:"reboot_at,omitempty"`
// For APs only and if `strategy`==`rrm`. Percentage of APs that need to be present in the first RRM batch
RrmFirstBatchPercentage *int `json:"rrm_first_batch_percentage,omitempty"`
// For APs only and if `strategy`==`rrm`. Max percentage of APs that need to be present in each RRM batch
@@ -51,7 +51,7 @@ type UpgradeSiteDevices struct {
// For Junos devices only. Perform recovery snapshot after device is rebooted
Snapshot *bool `json:"snapshot,omitempty"`
// upgrade start time in epoch seconds, default is now
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
// For APs only. enum: `big_bang` (upgrade all at once), `canary`, `rrm`, `serial` (one at a time)
Strategy *DeviceUpgradeStrategyEnum `json:"strategy,omitempty"`
// specific version / stable, default is to use the lastest available version
@@ -193,13 +193,13 @@ type tempUpgradeSiteDevices struct {
DeviceIds []uuid.UUID `json:"device_ids,omitempty"`
EnableP2p *bool `json:"enable_p2p,omitempty"`
Force *bool `json:"force,omitempty"`
- MaxFailurePercentage *float64 `json:"max_failure_percentage,omitempty"`
+ MaxFailurePercentage *int `json:"max_failure_percentage,omitempty"`
MaxFailures []int `json:"max_failures,omitempty"`
Models []string `json:"models,omitempty"`
P2pClusterSize *int `json:"p2p_cluster_size,omitempty"`
P2pParallelism *int `json:"p2p_parallelism,omitempty"`
Reboot *bool `json:"reboot,omitempty"`
- RebootAt *float64 `json:"reboot_at,omitempty"`
+ RebootAt *int `json:"reboot_at,omitempty"`
RrmFirstBatchPercentage *int `json:"rrm_first_batch_percentage,omitempty"`
RrmMaxBatchPercentage *int `json:"rrm_max_batch_percentage,omitempty"`
RrmMeshUpgrade *DeviceUpgradeRrmMeshUpgradeEnum `json:"rrm_mesh_upgrade,omitempty"`
@@ -207,7 +207,7 @@ type tempUpgradeSiteDevices struct {
RrmSlowRamp *bool `json:"rrm_slow_ramp,omitempty"`
Rules []map[string]string `json:"rules,omitempty"`
Snapshot *bool `json:"snapshot,omitempty"`
- StartTime *float64 `json:"start_time,omitempty"`
+ StartTime *int `json:"start_time,omitempty"`
Strategy *DeviceUpgradeStrategyEnum `json:"strategy,omitempty"`
Version *string `json:"version,omitempty"`
}