github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/MIGRATING.md (about) 1 # Compute 2 3 ## Floating IPs 4 5 * `github.com/huaweicloud/golangsdk/openstack/compute/v2/extensions/floatingip` is now `github.com/huaweicloud/golangsdk/openstack/compute/v2/extensions/floatingips` 6 * `floatingips.Associate` and `floatingips.Disassociate` have been removed. 7 * `floatingips.DisassociateOpts` is now required to disassociate a Floating IP. 8 9 ## Security Groups 10 11 * `secgroups.AddServerToGroup` is now `secgroups.AddServer`. 12 * `secgroups.RemoveServerFromGroup` is now `secgroups.RemoveServer`. 13 14 ## Servers 15 16 * `servers.Reboot` now requires a `servers.RebootOpts` struct: 17 18 ```golang 19 rebootOpts := &servers.RebootOpts{ 20 Type: servers.SoftReboot, 21 } 22 res := servers.Reboot(client, server.ID, rebootOpts) 23 ``` 24 25 # Identity 26 27 ## V3 28 29 ### Tokens 30 31 * `Token.ExpiresAt` is now of type `golangsdk.JSONRFC3339Milli` instead of 32 `time.Time`