1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
/*
Package apiversions provides information and interaction with the different
API versions for the Compute service, code-named Nova.
Example to List API Versions
allPages, err := apiversions.List(computeClient).AllPages()
if err != nil {
panic(err)
}
allVersions, err := apiversions.ExtractAPIVersions(allPages)
if err != nil {
panic(err)
}
for _, version := range allVersions {
fmt.Printf("%+v\n", version)
}
Example to Get an API Version
version, err := apiVersions.Get(computeClient, "v2.1").Extract()
if err != nil {
panic(err)
}
fmt.Printf("%+v\n", version)
*/
package apiversions
|