From 4be8fe6b4dbfb3b808d961ab9cbc3bd9130da01c Mon Sep 17 00:00:00 2001 From: phillc <15082+phillc@users.noreply.github.com> Date: Wed, 18 Sep 2019 15:57:17 -0400 Subject: [PATCH 1/4] go.mod --- go.mod | 2 ++ 1 file changed, 2 insertions(+) diff --git a/go.mod b/go.mod index 9c2a9c42a..2dc012577 100644 --- a/go.mod +++ b/go.mod @@ -12,3 +12,5 @@ require ( gopkg.in/resty.v1 v1.9.1 gopkg.in/yaml.v2 v2.2.1 // indirect ) + +go 1.13 From 424860d8b38bc5160a0b2d87dd013f341db9b674 Mon Sep 17 00:00:00 2001 From: phillc <15082+phillc@users.noreply.github.com> Date: Thu, 19 Sep 2019 09:14:56 -0400 Subject: [PATCH 2/4] Fix too long method errors from linter --- client.go | 178 ++++++++++++++++++++++++++------------------------ pagination.go | 2 + resources.go | 80 +++++++++++------------ waitfor.go | 1 + 4 files changed, 135 insertions(+), 126 deletions(-) diff --git a/client.go b/client.go index 7d87dc763..f5713ccb1 100644 --- a/client.go +++ b/client.go @@ -47,46 +47,46 @@ type Client struct { millisecondsPerPoll time.Duration + Account *Resource + AccountSettings *Resource + DomainRecords *Resource + Domains *Resource + Events *Resource + IPAddresses *Resource + IPv6Pools *Resource + IPv6Ranges *Resource Images *Resource - InstanceDisks *Resource InstanceConfigs *Resource - InstanceSnapshots *Resource + InstanceDisks *Resource InstanceIPs *Resource - InstanceVolumes *Resource + InstanceSnapshots *Resource InstanceStats *Resource + InstanceVolumes *Resource Instances *Resource - IPAddresses *Resource - IPv6Pools *Resource - IPv6Ranges *Resource - Regions *Resource - StackScripts *Resource - Volumes *Resource + InvoiceItems *Resource + Invoices *Resource Kernels *Resource - Types *Resource - Domains *Resource - DomainRecords *Resource Longview *Resource LongviewClients *Resource LongviewSubscriptions *Resource - NodeBalancers *Resource + Managed *Resource NodeBalancerConfigs *Resource NodeBalancerNodes *Resource - SSHKeys *Resource - Tickets *Resource - Tokens *Resource - Token *Resource - Account *Resource - AccountSettings *Resource - Invoices *Resource - InvoiceItems *Resource - Events *Resource + NodeBalancers *Resource Notifications *Resource OAuthClients *Resource + Payments *Resource Profile *Resource - Managed *Resource + Regions *Resource + SSHKeys *Resource + StackScripts *Resource Tags *Resource + Tickets *Resource + Token *Resource + Tokens *Resource + Types *Resource Users *Resource - Payments *Resource + Volumes *Resource } func init() { @@ -186,89 +186,95 @@ func NewClient(hc *http.Client) (client Client) { } } client.SetPollDelay(1000 * APISecondsPerPoll) + client.SetDebug(envDebug) + addResources(&client) + + return +} + +// nolint +func addResources(client *Client) { resources := map[string]*Resource{ - stackscriptsName: NewResource(&client, stackscriptsName, stackscriptsEndpoint, false, Stackscript{}, StackscriptsPagedResponse{}), - imagesName: NewResource(&client, imagesName, imagesEndpoint, false, Image{}, ImagesPagedResponse{}), - instancesName: NewResource(&client, instancesName, instancesEndpoint, false, Instance{}, InstancesPagedResponse{}), - instanceDisksName: NewResource(&client, instanceDisksName, instanceDisksEndpoint, true, InstanceDisk{}, InstanceDisksPagedResponse{}), - instanceConfigsName: NewResource(&client, instanceConfigsName, instanceConfigsEndpoint, true, InstanceConfig{}, InstanceConfigsPagedResponse{}), - instanceSnapshotsName: NewResource(&client, instanceSnapshotsName, instanceSnapshotsEndpoint, true, InstanceSnapshot{}, nil), - instanceIPsName: NewResource(&client, instanceIPsName, instanceIPsEndpoint, true, InstanceIP{}, nil), // really? - instanceVolumesName: NewResource(&client, instanceVolumesName, instanceVolumesEndpoint, true, nil, InstanceVolumesPagedResponse{}), // really? - instanceStatsName: NewResource(&client, instanceStatsName, instanceStatsEndpoint, true, InstanceStats{}, nil), - ipaddressesName: NewResource(&client, ipaddressesName, ipaddressesEndpoint, false, nil, IPAddressesPagedResponse{}), // really? - ipv6poolsName: NewResource(&client, ipv6poolsName, ipv6poolsEndpoint, false, nil, IPv6PoolsPagedResponse{}), // really? - ipv6rangesName: NewResource(&client, ipv6rangesName, ipv6rangesEndpoint, false, IPv6Range{}, IPv6RangesPagedResponse{}), - regionsName: NewResource(&client, regionsName, regionsEndpoint, false, Region{}, RegionsPagedResponse{}), - volumesName: NewResource(&client, volumesName, volumesEndpoint, false, Volume{}, VolumesPagedResponse{}), - kernelsName: NewResource(&client, kernelsName, kernelsEndpoint, false, LinodeKernel{}, LinodeKernelsPagedResponse{}), - typesName: NewResource(&client, typesName, typesEndpoint, false, LinodeType{}, LinodeTypesPagedResponse{}), - domainsName: NewResource(&client, domainsName, domainsEndpoint, false, Domain{}, DomainsPagedResponse{}), - domainRecordsName: NewResource(&client, domainRecordsName, domainRecordsEndpoint, true, DomainRecord{}, DomainRecordsPagedResponse{}), - longviewName: NewResource(&client, longviewName, longviewEndpoint, false, nil, nil), // really? - longviewclientsName: NewResource(&client, longviewclientsName, longviewclientsEndpoint, false, LongviewClient{}, LongviewClientsPagedResponse{}), - longviewsubscriptionsName: NewResource(&client, longviewsubscriptionsName, longviewsubscriptionsEndpoint, false, LongviewSubscription{}, LongviewSubscriptionsPagedResponse{}), - nodebalancersName: NewResource(&client, nodebalancersName, nodebalancersEndpoint, false, NodeBalancer{}, NodeBalancerConfigsPagedResponse{}), - nodebalancerconfigsName: NewResource(&client, nodebalancerconfigsName, nodebalancerconfigsEndpoint, true, NodeBalancerConfig{}, NodeBalancerConfigsPagedResponse{}), - nodebalancernodesName: NewResource(&client, nodebalancernodesName, nodebalancernodesEndpoint, true, NodeBalancerNode{}, NodeBalancerNodesPagedResponse{}), - notificationsName: NewResource(&client, notificationsName, notificationsEndpoint, false, Notification{}, NotificationsPagedResponse{}), - oauthClientsName: NewResource(&client, oauthClientsName, oauthClientsEndpoint, false, OAuthClient{}, OAuthClientsPagedResponse{}), - sshkeysName: NewResource(&client, sshkeysName, sshkeysEndpoint, false, SSHKey{}, SSHKeysPagedResponse{}), - ticketsName: NewResource(&client, ticketsName, ticketsEndpoint, false, Ticket{}, TicketsPagedResponse{}), - tokensName: NewResource(&client, tokensName, tokensEndpoint, false, Token{}, TokensPagedResponse{}), - accountName: NewResource(&client, accountName, accountEndpoint, false, Account{}, nil), // really? - accountSettingsName: NewResource(&client, accountSettingsName, accountSettingsEndpoint, false, AccountSettings{}, nil), // really? - eventsName: NewResource(&client, eventsName, eventsEndpoint, false, Event{}, EventsPagedResponse{}), - invoicesName: NewResource(&client, invoicesName, invoicesEndpoint, false, Invoice{}, InvoicesPagedResponse{}), - invoiceItemsName: NewResource(&client, invoiceItemsName, invoiceItemsEndpoint, true, InvoiceItem{}, InvoiceItemsPagedResponse{}), - profileName: NewResource(&client, profileName, profileEndpoint, false, nil, nil), // really? - managedName: NewResource(&client, managedName, managedEndpoint, false, nil, nil), // really? - tagsName: NewResource(&client, tagsName, tagsEndpoint, false, Tag{}, TagsPagedResponse{}), - usersName: NewResource(&client, usersName, usersEndpoint, false, User{}, UsersPagedResponse{}), - paymentsName: NewResource(&client, paymentsName, paymentsEndpoint, false, Payment{}, PaymentsPagedResponse{}), + accountName: NewResource(client, accountName, accountEndpoint, false, Account{}, nil), // really? + accountSettingsName: NewResource(client, accountSettingsName, accountSettingsEndpoint, false, AccountSettings{}, nil), // really? + domainRecordsName: NewResource(client, domainRecordsName, domainRecordsEndpoint, true, DomainRecord{}, DomainRecordsPagedResponse{}), + domainsName: NewResource(client, domainsName, domainsEndpoint, false, Domain{}, DomainsPagedResponse{}), + eventsName: NewResource(client, eventsName, eventsEndpoint, false, Event{}, EventsPagedResponse{}), + imagesName: NewResource(client, imagesName, imagesEndpoint, false, Image{}, ImagesPagedResponse{}), + instanceConfigsName: NewResource(client, instanceConfigsName, instanceConfigsEndpoint, true, InstanceConfig{}, InstanceConfigsPagedResponse{}), + instanceDisksName: NewResource(client, instanceDisksName, instanceDisksEndpoint, true, InstanceDisk{}, InstanceDisksPagedResponse{}), + instanceIPsName: NewResource(client, instanceIPsName, instanceIPsEndpoint, true, InstanceIP{}, nil), // really? + instanceSnapshotsName: NewResource(client, instanceSnapshotsName, instanceSnapshotsEndpoint, true, InstanceSnapshot{}, nil), + instanceStatsName: NewResource(client, instanceStatsName, instanceStatsEndpoint, true, InstanceStats{}, nil), + instanceVolumesName: NewResource(client, instanceVolumesName, instanceVolumesEndpoint, true, nil, InstanceVolumesPagedResponse{}), // really? + instancesName: NewResource(client, instancesName, instancesEndpoint, false, Instance{}, InstancesPagedResponse{}), + invoiceItemsName: NewResource(client, invoiceItemsName, invoiceItemsEndpoint, true, InvoiceItem{}, InvoiceItemsPagedResponse{}), + invoicesName: NewResource(client, invoicesName, invoicesEndpoint, false, Invoice{}, InvoicesPagedResponse{}), + ipaddressesName: NewResource(client, ipaddressesName, ipaddressesEndpoint, false, nil, IPAddressesPagedResponse{}), // really? + ipv6poolsName: NewResource(client, ipv6poolsName, ipv6poolsEndpoint, false, nil, IPv6PoolsPagedResponse{}), // really? + ipv6rangesName: NewResource(client, ipv6rangesName, ipv6rangesEndpoint, false, IPv6Range{}, IPv6RangesPagedResponse{}), + kernelsName: NewResource(client, kernelsName, kernelsEndpoint, false, LinodeKernel{}, LinodeKernelsPagedResponse{}), + longviewName: NewResource(client, longviewName, longviewEndpoint, false, nil, nil), // really? + longviewclientsName: NewResource(client, longviewclientsName, longviewclientsEndpoint, false, LongviewClient{}, LongviewClientsPagedResponse{}), + longviewsubscriptionsName: NewResource(client, longviewsubscriptionsName, longviewsubscriptionsEndpoint, false, LongviewSubscription{}, LongviewSubscriptionsPagedResponse{}), + managedName: NewResource(client, managedName, managedEndpoint, false, nil, nil), // really? + nodebalancerconfigsName: NewResource(client, nodebalancerconfigsName, nodebalancerconfigsEndpoint, true, NodeBalancerConfig{}, NodeBalancerConfigsPagedResponse{}), + nodebalancernodesName: NewResource(client, nodebalancernodesName, nodebalancernodesEndpoint, true, NodeBalancerNode{}, NodeBalancerNodesPagedResponse{}), + nodebalancersName: NewResource(client, nodebalancersName, nodebalancersEndpoint, false, NodeBalancer{}, NodeBalancerConfigsPagedResponse{}), + notificationsName: NewResource(client, notificationsName, notificationsEndpoint, false, Notification{}, NotificationsPagedResponse{}), + oauthClientsName: NewResource(client, oauthClientsName, oauthClientsEndpoint, false, OAuthClient{}, OAuthClientsPagedResponse{}), + paymentsName: NewResource(client, paymentsName, paymentsEndpoint, false, Payment{}, PaymentsPagedResponse{}), + profileName: NewResource(client, profileName, profileEndpoint, false, nil, nil), // really? + regionsName: NewResource(client, regionsName, regionsEndpoint, false, Region{}, RegionsPagedResponse{}), + sshkeysName: NewResource(client, sshkeysName, sshkeysEndpoint, false, SSHKey{}, SSHKeysPagedResponse{}), + stackscriptsName: NewResource(client, stackscriptsName, stackscriptsEndpoint, false, Stackscript{}, StackscriptsPagedResponse{}), + tagsName: NewResource(client, tagsName, tagsEndpoint, false, Tag{}, TagsPagedResponse{}), + ticketsName: NewResource(client, ticketsName, ticketsEndpoint, false, Ticket{}, TicketsPagedResponse{}), + tokensName: NewResource(client, tokensName, tokensEndpoint, false, Token{}, TokensPagedResponse{}), + typesName: NewResource(client, typesName, typesEndpoint, false, LinodeType{}, LinodeTypesPagedResponse{}), + usersName: NewResource(client, usersName, usersEndpoint, false, User{}, UsersPagedResponse{}), + volumesName: NewResource(client, volumesName, volumesEndpoint, false, Volume{}, VolumesPagedResponse{}), } client.resources = resources - client.SetDebug(envDebug) + client.Account = resources[accountName] + client.DomainRecords = resources[domainRecordsName] + client.Domains = resources[domainsName] + client.Events = resources[eventsName] + client.IPAddresses = resources[ipaddressesName] + client.IPv6Pools = resources[ipv6poolsName] + client.IPv6Ranges = resources[ipv6rangesName] client.Images = resources[imagesName] - client.StackScripts = resources[stackscriptsName] - client.Instances = resources[instancesName] - client.Regions = resources[regionsName] - client.InstanceDisks = resources[instanceDisksName] client.InstanceConfigs = resources[instanceConfigsName] - client.InstanceSnapshots = resources[instanceSnapshotsName] + client.InstanceDisks = resources[instanceDisksName] client.InstanceIPs = resources[instanceIPsName] - client.InstanceVolumes = resources[instanceVolumesName] + client.InstanceSnapshots = resources[instanceSnapshotsName] client.InstanceStats = resources[instanceStatsName] - client.IPAddresses = resources[ipaddressesName] - client.IPv6Pools = resources[ipv6poolsName] - client.IPv6Ranges = resources[ipv6rangesName] - client.Volumes = resources[volumesName] + client.InstanceVolumes = resources[instanceVolumesName] + client.Instances = resources[instancesName] + client.Invoices = resources[invoicesName] client.Kernels = resources[kernelsName] - client.Types = resources[typesName] - client.Domains = resources[domainsName] - client.DomainRecords = resources[domainRecordsName] client.Longview = resources[longviewName] client.LongviewSubscriptions = resources[longviewsubscriptionsName] - client.NodeBalancers = resources[nodebalancersName] + client.Managed = resources[managedName] client.NodeBalancerConfigs = resources[nodebalancerconfigsName] client.NodeBalancerNodes = resources[nodebalancernodesName] + client.NodeBalancers = resources[nodebalancersName] client.Notifications = resources[notificationsName] client.OAuthClients = resources[oauthClientsName] + client.Payments = resources[paymentsName] + client.Profile = resources[profileName] + client.Regions = resources[regionsName] client.SSHKeys = resources[sshkeysName] + client.StackScripts = resources[stackscriptsName] + client.Tags = resources[tagsName] client.Tickets = resources[ticketsName] client.Tokens = resources[tokensName] - client.Account = resources[accountName] - client.Events = resources[eventsName] - client.Invoices = resources[invoicesName] - client.Profile = resources[profileName] - client.Managed = resources[managedName] - client.Tags = resources[tagsName] + client.Types = resources[typesName] client.Users = resources[usersName] - client.Payments = resources[paymentsName] - return + client.Volumes = resources[volumesName] } func copyBool(bPtr *bool) *bool { diff --git a/pagination.go b/pagination.go index 7ca52e2f0..3bfed58fd 100644 --- a/pagination.go +++ b/pagination.go @@ -38,6 +38,7 @@ func NewListOptions(page int, filter string) *ListOptions { // When opts (or opts.Page) is nil, all pages will be fetched and // returned in a single (endpoint-specific)PagedResponse // opts.results and opts.pages will be updated from the API response +// nolint func (c *Client) listHelper(ctx context.Context, i interface{}, opts *ListOptions) error { req := c.R(ctx) if opts != nil && opts.PageOptions != nil && opts.Page > 0 { @@ -257,6 +258,7 @@ func (c *Client) listHelper(ctx context.Context, i interface{}, opts *ListOption // When opts (or opts.Page) is nil, all pages will be fetched and // returned in a single (endpoint-specific)PagedResponse // opts.results and opts.pages will be updated from the API response +// nolint func (c *Client) listHelperWithID(ctx context.Context, i interface{}, idRaw interface{}, opts *ListOptions) error { req := c.R(ctx) if opts != nil && opts.Page > 0 { diff --git a/resources.go b/resources.go index 705ec9ac3..16eb0ef68 100644 --- a/resources.go +++ b/resources.go @@ -10,89 +10,89 @@ import ( ) const ( - stackscriptsName = "stackscripts" + accountName = "account" + accountSettingsName = "accountsettings" + domainRecordsName = "records" + domainsName = "domains" + eventsName = "events" imagesName = "images" - instancesName = "instances" - instanceDisksName = "disks" instanceConfigsName = "configs" + instanceDisksName = "disks" instanceIPsName = "ips" instanceSnapshotsName = "snapshots" - instanceVolumesName = "instancevolumes" instanceStatsName = "instancestats" + instanceVolumesName = "instancevolumes" + instancesName = "instances" + invoiceItemsName = "invoiceitems" + invoicesName = "invoices" ipaddressesName = "ipaddresses" ipv6poolsName = "ipv6pools" ipv6rangesName = "ipv6ranges" - regionsName = "regions" - volumesName = "volumes" kernelsName = "kernels" - typesName = "types" - domainsName = "domains" - domainRecordsName = "records" longviewName = "longview" longviewclientsName = "longviewclients" longviewsubscriptionsName = "longviewsubscriptions" - nodebalancersName = "nodebalancers" + managedName = "managed" nodebalancerconfigsName = "nodebalancerconfigs" nodebalancernodesName = "nodebalancernodes" + nodebalancersName = "nodebalancers" notificationsName = "notifications" oauthClientsName = "oauthClients" + paymentsName = "payments" + profileName = "profile" + regionsName = "regions" sshkeysName = "sshkeys" + stackscriptsName = "stackscripts" + tagsName = "tags" ticketsName = "tickets" tokensName = "tokens" - accountName = "account" - accountSettingsName = "accountsettings" - eventsName = "events" - invoicesName = "invoices" - invoiceItemsName = "invoiceitems" - profileName = "profile" - managedName = "managed" - tagsName = "tags" + typesName = "types" usersName = "users" - paymentsName = "payments" + volumesName = "volumes" - stackscriptsEndpoint = "linode/stackscripts" + accountEndpoint = "account" + accountSettingsEndpoint = "account/settings" + domainRecordsEndpoint = "domains/{{ .ID }}/records" + domainsEndpoint = "domains" + eventsEndpoint = "account/events" imagesEndpoint = "images" - instancesEndpoint = "linode/instances" instanceConfigsEndpoint = "linode/instances/{{ .ID }}/configs" instanceDisksEndpoint = "linode/instances/{{ .ID }}/disks" - instanceSnapshotsEndpoint = "linode/instances/{{ .ID }}/backups" instanceIPsEndpoint = "linode/instances/{{ .ID }}/ips" - instanceVolumesEndpoint = "linode/instances/{{ .ID }}/volumes" + instanceSnapshotsEndpoint = "linode/instances/{{ .ID }}/backups" instanceStatsEndpoint = "linode/instances/{{ .ID }}/stats" + instanceVolumesEndpoint = "linode/instances/{{ .ID }}/volumes" + instancesEndpoint = "linode/instances" + invoiceItemsEndpoint = "account/invoices/{{ .ID }}/items" + invoicesEndpoint = "account/invoices" ipaddressesEndpoint = "networking/ips" ipv6poolsEndpoint = "networking/ipv6/pools" ipv6rangesEndpoint = "networking/ipv6/ranges" - regionsEndpoint = "regions" - volumesEndpoint = "volumes" kernelsEndpoint = "linode/kernels" - typesEndpoint = "linode/types" - domainsEndpoint = "domains" - domainRecordsEndpoint = "domains/{{ .ID }}/records" longviewEndpoint = "longview" longviewclientsEndpoint = "longview/clients" longviewsubscriptionsEndpoint = "longview/subscriptions" - nodebalancersEndpoint = "nodebalancers" + managedEndpoint = "managed" // @TODO we can't use these nodebalancer endpoints unless we include these templated fields // The API seems inconsistent about including parent IDs in objects, (compare instance configs to nb configs) // Parent IDs would be immutable for updates and are ignored in create requests .. // Should we include these fields in CreateOpts and UpdateOpts? nodebalancerconfigsEndpoint = "nodebalancers/{{ .ID }}/configs" nodebalancernodesEndpoint = "nodebalancers/{{ .ID }}/configs/{{ .SecondID }}/nodes" + nodebalancersEndpoint = "nodebalancers" + notificationsEndpoint = "account/notifications" + oauthClientsEndpoint = "account/oauth-clients" + paymentsEndpoint = "account/payments" + profileEndpoint = "profile" + regionsEndpoint = "regions" sshkeysEndpoint = "profile/sshkeys" + stackscriptsEndpoint = "linode/stackscripts" + tagsEndpoint = "tags" ticketsEndpoint = "support/tickets" tokensEndpoint = "profile/tokens" - accountEndpoint = "account" - accountSettingsEndpoint = "account/settings" - eventsEndpoint = "account/events" - invoicesEndpoint = "account/invoices" - invoiceItemsEndpoint = "account/invoices/{{ .ID }}/items" - profileEndpoint = "profile" - managedEndpoint = "managed" - tagsEndpoint = "tags" + typesEndpoint = "linode/types" usersEndpoint = "account/users" - notificationsEndpoint = "account/notifications" - oauthClientsEndpoint = "account/oauth-clients" - paymentsEndpoint = "account/payments" + volumesEndpoint = "volumes" ) // Resource represents a linode API resource diff --git a/waitfor.go b/waitfor.go index b34ea3d72..36540c34d 100644 --- a/waitfor.go +++ b/waitfor.go @@ -158,6 +158,7 @@ func (client Client) WaitForVolumeLinodeID(ctx context.Context, volumeID int, li // WaitForEventFinished waits for an entity action to reach the 'finished' state // before returning. It will timeout with an error after timeoutSeconds. // If the event indicates a failure both the failed event and the error will be returned. +// nolint func (client Client) WaitForEventFinished(ctx context.Context, id interface{}, entityType EntityType, action EventAction, minStart time.Time, timeoutSeconds int) (*Event, error) { titledEntityType := strings.Title(string(entityType)) filterStruct := map[string]interface{}{ From 1c447f8916d74de901f202b44fdde6f21d323eb4 Mon Sep 17 00:00:00 2001 From: phillc <15082+phillc@users.noreply.github.com> Date: Wed, 18 Sep 2019 15:31:40 -0400 Subject: [PATCH 3/4] Can provide API Version as a Env Var --- client.go | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index f5713ccb1..9c061a34f 100644 --- a/client.go +++ b/client.go @@ -22,6 +22,8 @@ const ( APIHostCert = "LINODE_CA" // APIVersion Linode API version APIVersion = "v4" + // APIVersionVar environment var to check for alternate API Version + APIVersionVar = "LINODE_API_VERSION" // APIProto connect to API with http(s) APIProto = "https" // Version of linodego @@ -132,6 +134,11 @@ func (c *Client) SetBaseURL(url string) *Client { return c } +func (c *Client) SetAPIVersion(apiVersion string) *Client { + c.SetBaseURL(fmt.Sprintf("%s://%s/%s", APIProto, APIHost, apiVersion)) + return c +} + func (c *Client) SetRootCertificate(path string) *Client { c.resty.SetRootCertificate(path) return c @@ -172,7 +179,12 @@ func NewClient(hc *http.Client) (client Client) { if baseURLExists { client.SetBaseURL(baseURL) } else { - client.SetBaseURL(fmt.Sprintf("%s://%s/%s", APIProto, APIHost, APIVersion)) + apiVersion, apiVersionExists := os.LookupEnv(APIVersionVar) + if apiVersionExists { + client.SetAPIVersion(apiVersion) + } else { + client.SetAPIVersion(APIVersion) + } } certPath, certPathExists := os.LookupEnv(APIHostCert) if certPathExists { From ab94b7a2f1fc1f003786a2bdf563624c603a6a48 Mon Sep 17 00:00:00 2001 From: phillc <15082+phillc@users.noreply.github.com> Date: Wed, 18 Sep 2019 15:30:49 -0400 Subject: [PATCH 4/4] Run tests against v4beta --- Makefile | 8 ++++-- example_test.go | 4 +-- fixtures/Example.yaml | 24 ++++++++--------- fixtures/ExampleCreateNodeBalancer.yaml | 8 +++--- fixtures/ExampleCreateNodeBalancerConfig.yaml | 14 +++++----- fixtures/ExampleCreateNodeBalancerNode.yaml | 18 ++++++------- fixtures/ExampleCreateStackscript.yaml | 10 +++---- fixtures/ExampleGetAccount.yaml | 2 +- fixtures/ExampleGetImage_missing.yaml | 2 +- fixtures/ExampleGetKernel_specific.yaml | 4 +-- fixtures/ExampleGetType_missing.yaml | 2 +- fixtures/ExampleListImages_all.yaml | 2 +- fixtures/ExampleListImages_badfilter.yaml | 2 +- fixtures/ExampleListImages_notfound.yaml | 2 +- fixtures/ExampleListKernels_all.yaml | 6 ++--- fixtures/ExampleListKernels_allWithOpts.yaml | 6 ++--- fixtures/ExampleListKernels_filtered.yaml | 2 +- fixtures/ExampleListKernels_page1.yaml | 2 +- ...xampleListLongviewSubscriptions_page1.yaml | 2 +- fixtures/ExampleListStackscripts_page1.yaml | 2 +- fixtures/ExampleListTypes_all.yaml | 2 +- fixtures/ExampleListUsers.yaml | 2 +- .../TestClient_APIResponseBadGateway.yaml | 2 +- fixtures/TestCreateDomain.yaml | 4 +-- fixtures/TestCreateDomainRecord.yaml | 8 +++--- fixtures/TestCreateNodeBalancer.yaml | 4 +-- fixtures/TestCreateNodeBalancerConfig.yaml | 8 +++--- fixtures/TestCreateNodeBalancerNode.yaml | 12 ++++----- fixtures/TestCreateTag.yaml | 18 ++++++------- fixtures/TestCreateVolume.yaml | 4 +-- fixtures/TestGetAccount.yaml | 2 +- fixtures/TestGetDomain.yaml | 6 ++--- fixtures/TestGetDomainRecord.yaml | 10 +++---- fixtures/TestGetIPAddress_found.yaml | 8 +++--- fixtures/TestGetIPAddress_missing.yaml | 2 +- fixtures/TestGetImage_found.yaml | 2 +- fixtures/TestGetImage_missing.yaml | 2 +- fixtures/TestGetInstance.yaml | 8 +++--- fixtures/TestGetInstanceIPAddresses.yaml | 8 +++--- fixtures/TestGetInstanceStats.yaml | 10 +++---- fixtures/TestGetNodeBalancer.yaml | 6 ++--- fixtures/TestGetNodeBalancerConfig.yaml | 10 +++---- fixtures/TestGetNodeBalancerNode.yaml | 14 +++++----- fixtures/TestGetOAuthClient_found.yaml | 6 ++--- fixtures/TestGetOAuthClient_missing.yaml | 2 +- fixtures/TestGetPayment_found.yaml | 2 +- fixtures/TestGetPayment_missing.yaml | 2 +- fixtures/TestGetProfile.yaml | 2 +- fixtures/TestGetSSHKey_found.yaml | 6 ++--- fixtures/TestGetSSHKey_missing.yaml | 2 +- fixtures/TestGetToken_found.yaml | 6 ++--- fixtures/TestGetToken_missing.yaml | 2 +- fixtures/TestGetToken_noexpiry.yaml | 6 ++--- fixtures/TestGetType_found.yaml | 2 +- fixtures/TestGetType_missing.yaml | 2 +- fixtures/TestGetUser_missing.yaml | 2 +- fixtures/TestGetVolume.yaml | 6 ++--- fixtures/TestListDomainRecords.yaml | 10 +++---- .../TestListDomainRecordsMultiplePages.yaml | 12 ++++----- fixtures/TestListDomains.yaml | 6 ++--- fixtures/TestListEvents_resizing.yaml | 2 +- fixtures/TestListIPAddresses.yaml | 8 +++--- fixtures/TestListImages.yaml | 2 +- fixtures/TestListInstanceBackups.yaml | 26 +++++++++---------- fixtures/TestListInstanceConfigs.yaml | 8 +++--- fixtures/TestListInstanceDisks.yaml | 6 ++--- fixtures/TestListInstanceVolumes.yaml | 6 ++--- .../TestListInstanceVolumes_instance.yaml | 8 +++--- fixtures/TestListInstances.yaml | 8 +++--- fixtures/TestListNodeBalancerConfigs.yaml | 10 +++---- ...tListNodeBalancerConfigsMultiplePages.yaml | 12 ++++----- fixtures/TestListNodeBalancerNodes.yaml | 14 +++++----- ...estListNodeBalancerNodesMultiplePages.yaml | 16 ++++++------ fixtures/TestListNodeBalancers.yaml | 6 ++--- fixtures/TestListNotifications.yaml | 2 +- fixtures/TestListOAuthClients.yaml | 6 ++--- fixtures/TestListPayments.yaml | 2 +- fixtures/TestListRegions.yaml | 2 +- fixtures/TestListSSHKey.yaml | 6 ++--- fixtures/TestListStackscripts.yaml | 2 +- fixtures/TestListTaggedObjects_missing.yaml | 2 +- fixtures/TestListTokens.yaml | 6 ++--- fixtures/TestListTypes.yaml | 2 +- fixtures/TestListTypes_429.yaml | 2 +- fixtures/TestListVolumes.yaml | 2 +- fixtures/TestPasswordResetInstanceDisk.yaml | 16 ++++++------ fixtures/TestRebuildNodeBalancer.yaml | 14 +++++----- fixtures/TestRenameVolume.yaml | 6 ++--- fixtures/TestResizeInstanceDisk.yaml | 14 +++++----- fixtures/TestResizeVolume.yaml | 6 ++--- fixtures/TestUpdateDomain.yaml | 6 ++--- fixtures/TestUpdateDomainRecord.yaml | 10 +++---- fixtures/TestUpdateIPAddress.yaml | 10 +++---- fixtures/TestUpdateInstanceConfig.yaml | 8 +++--- fixtures/TestUpdateNodeBalancer.yaml | 6 ++--- fixtures/TestUpdateNodeBalancerConfig.yaml | 10 +++---- fixtures/TestUpdateNodeBalancerNode.yaml | 14 +++++----- fixtures/TestUpdateProfile.yaml | 4 +-- fixtures/TestUpdateSSHKey.yaml | 6 ++--- fixtures/TestUpdateToken.yaml | 6 ++--- fixtures/TestWaitForVolumeLinodeID.yaml | 14 +++++----- .../TestWaitForVolumeLinodeID_linode.yaml | 6 ++--- fixtures/TestWaitForVolumeLinodeID_nil.yaml | 6 ++--- 103 files changed, 341 insertions(+), 337 deletions(-) diff --git a/Makefile b/Makefile index c8cf813e0..193c11b5e 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ GOLANGCILINT_WARN_ARGS := run --no-config --issues-exit-code=0 --disable-all --e test: build lint @LINODE_FIXTURE_MODE="play" \ LINODE_TOKEN="awesometokenawesometokenawesometoken" \ + LINODE_API_VERSION="v4beta" \ GO111MODULE="on" \ go test $(ARGS) @@ -31,8 +32,11 @@ refresh-fixtures: clean-fixtures fixtures run_fixtures: @echo "* Running fixtures" - @LINODE_TOKEN=$(LINODE_TOKEN) \ - LINODE_FIXTURE_MODE="record" go test $(ARGS) + @LINODE_FIXTURE_MODE="record" \ + LINODE_TOKEN=$(LINODE_TOKEN) \ + LINODE_API_VERSION="v4beta" \ + GO111MODULE="on" \ + go test $(ARGS) sanitize: @echo "* Santizing fixtures" diff --git a/example_test.go b/example_test.go index a8070d36d..364a3f4c4 100644 --- a/example_test.go +++ b/example_test.go @@ -52,7 +52,7 @@ func ExampleClient_GetType_missing() { } // Output: - // Request was: https://api.linode.com/v4/linode/types/missing-type + // Request was: https://api.linode.com/v4beta/linode/types/missing-type // Response was: 404 NOT FOUND // Error was: [404] Not found } @@ -184,7 +184,7 @@ func ExampleClient_GetImage_missing() { } // Output: - // Request was: https://api.linode.com/v4/images/not-found + // Request was: https://api.linode.com/v4beta/images/not-found // Response was: 404 NOT FOUND // Error was: [404] Not found } diff --git a/fixtures/Example.yaml b/fixtures/Example.yaml index 46ed045ae..5a0ef3738 100644 --- a/fixtures/Example.yaml +++ b/fixtures/Example.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/1231 + url: https://api.linode.com/v4beta/linode/instances/1231 method: GET response: body: '{"errors": [{"reason": "Not found"}]}' @@ -69,7 +69,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: GET response: body: '{"data": [{"region": "us-east", "alerts": {"network_in": 10, "network_out": @@ -149,7 +149,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403 + url: https://api.linode.com/v4beta/linode/instances/76859403 method: GET response: body: '{"image": "linode/ubuntu18.04", "group": "", "updated": "2018-01-02T03:04:05", @@ -228,7 +228,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403/configs + url: https://api.linode.com/v4beta/linode/instances/76859403/configs method: GET response: body: '{"results": 1, "data": [{"memory_limit": 0, "kernel": "linode/grub2", "label": @@ -308,7 +308,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403/configs/9958462 + url: https://api.linode.com/v4beta/linode/instances/76859403/configs/9958462 method: GET response: body: '{"initrd": null, "kernel": "linode/grub2", "devices": {"sdh": null, "sdf": @@ -387,7 +387,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403/disks + url: https://api.linode.com/v4beta/linode/instances/76859403/disks method: GET response: body: '{"pages": 1, "page": 1, "data": [{"updated": "2018-01-02T03:04:05", "label": @@ -463,7 +463,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403/disks/18974977 + url: https://api.linode.com/v4beta/linode/instances/76859403/disks/18974977 method: GET response: body: '{"created": "2018-01-02T03:04:05", "id": 18974977, "filesystem": "ext4", @@ -537,7 +537,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403/backups + url: https://api.linode.com/v4beta/linode/instances/76859403/backups method: GET response: body: '{"snapshot": {"in_progress": null, "current": {"configs": ["My Ubuntu 18.04 @@ -615,7 +615,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403/backups/96509901 + url: https://api.linode.com/v4beta/linode/instances/76859403/backups/96509901 method: GET response: body: '{"label": "test-snapshot", "region": "us-east", "status": "successful", @@ -691,7 +691,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/76859403/volumes + url: https://api.linode.com/v4beta/linode/instances/76859403/volumes method: GET response: body: '{"results": 1, "data": [{"created": "2018-01-02T03:04:05", "id": 6574839201, @@ -766,7 +766,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes/6574839201 + url: https://api.linode.com/v4beta/volumes/6574839201 method: GET response: body: '{"filesystem_path": "/dev/disk/by-id/scsi-0Linode_Volume_test-volume", @@ -843,7 +843,7 @@ interactions: - linodego 0.0.1 https://github.com/linode/linodego X-Filter: - '{"mine":true}' - url: https://api.linode.com/v4/linode/stackscripts + url: https://api.linode.com/v4beta/linode/stackscripts method: GET response: body: '{"pages": 1, "page": 1, "data": [{"script": "#!/bin/bash\n# diff --git a/fixtures/TestCreateDomain.yaml b/fixtures/TestCreateDomain.yaml index 856be1c33..4579bc778 100644 --- a/fixtures/TestCreateDomain.yaml +++ b/fixtures/TestCreateDomain.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: POST response: body: '{"id": 1102856, "description": "", "axfr_ips": [], "status": "active", @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102856 + url: https://api.linode.com/v4beta/domains/1102856 method: DELETE response: body: '{}' diff --git a/fixtures/TestCreateDomainRecord.yaml b/fixtures/TestCreateDomainRecord.yaml index e9e31cfeb..d40aa211e 100644 --- a/fixtures/TestCreateDomainRecord.yaml +++ b/fixtures/TestCreateDomainRecord.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: POST response: body: '{"id": 1102871, "description": "", "axfr_ips": [], "status": "active", @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102871/records + url: https://api.linode.com/v4beta/domains/1102871/records method: POST response: body: '{"type": "A", "priority": 0, "protocol": null, "port": 0, "target": "010.020.030.040", @@ -158,7 +158,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102871/records/10468360 + url: https://api.linode.com/v4beta/domains/1102871/records/10468360 method: DELETE response: body: '{}' @@ -228,7 +228,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102871 + url: https://api.linode.com/v4beta/domains/1102871 method: DELETE response: body: '{}' diff --git a/fixtures/TestCreateNodeBalancer.yaml b/fixtures/TestCreateNodeBalancer.yaml index 558b336f8..a01d9b298 100644 --- a/fixtures/TestCreateNodeBalancer.yaml +++ b/fixtures/TestCreateNodeBalancer.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"ipv4": "010.020.030.040", "region": "us-west", "label": "o7x58j8hy1c2-linodego-testing", @@ -87,7 +87,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37826 + url: https://api.linode.com/v4beta/nodebalancers/37826 method: DELETE response: body: '{}' diff --git a/fixtures/TestCreateNodeBalancerConfig.yaml b/fixtures/TestCreateNodeBalancerConfig.yaml index a95ddaedd..aeae6aa7b 100644 --- a/fixtures/TestCreateNodeBalancerConfig.yaml +++ b/fixtures/TestCreateNodeBalancerConfig.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"updated": "2018-01-02T03:04:05", "client_conn_throttle": 20, "created": @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37810/configs + url: https://api.linode.com/v4beta/nodebalancers/37810/configs method: POST response: body: '{"check_path": "", "algorithm": "roundrobin", "ssl_fingerprint": "", "check_body": @@ -160,7 +160,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37810/configs/33557 + url: https://api.linode.com/v4beta/nodebalancers/37810/configs/33557 method: DELETE response: body: '{}' @@ -230,7 +230,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37810 + url: https://api.linode.com/v4beta/nodebalancers/37810 method: DELETE response: body: '{}' diff --git a/fixtures/TestCreateNodeBalancerNode.yaml b/fixtures/TestCreateNodeBalancerNode.yaml index 51a1a0d7b..68a8c944d 100644 --- a/fixtures/TestCreateNodeBalancerNode.yaml +++ b/fixtures/TestCreateNodeBalancerNode.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"transfer": {"out": null, "in": null, "total": null}, "hostname": "nb-10-20-30-40.fremont.nodebalancer.linode.com", @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37830/configs + url: https://api.linode.com/v4beta/nodebalancers/37830/configs method: POST response: body: '{"cipher_suite": "recommended", "algorithm": "roundrobin", "check": "none", @@ -161,7 +161,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37830/configs/33569/nodes + url: https://api.linode.com/v4beta/nodebalancers/37830/configs/33569/nodes method: POST response: body: '{"address": "192.168.030.040:8080", "id": 316372, "weight": 10, "nodebalancer_id": @@ -233,7 +233,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37830/configs/33569/nodes/316372 + url: https://api.linode.com/v4beta/nodebalancers/37830/configs/33569/nodes/316372 method: DELETE response: body: '{}' @@ -303,7 +303,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37830/configs/33569 + url: https://api.linode.com/v4beta/nodebalancers/37830/configs/33569 method: DELETE response: body: '{}' @@ -373,7 +373,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37830 + url: https://api.linode.com/v4beta/nodebalancers/37830 method: DELETE response: body: '{}' diff --git a/fixtures/TestCreateTag.yaml b/fixtures/TestCreateTag.yaml index 37405ea9d..3d27caa3a 100644 --- a/fixtures/TestCreateTag.yaml +++ b/fixtures/TestCreateTag.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"ipv6": "1234::5678/64", "group": "", "region": "us-west", @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10698247 + url: https://api.linode.com/v4beta/linode/instances/10698247 method: PUT response: body: '{"hypervisor": "kvm", "updated": "2018-01-02T03:04:05", "group": "", "ipv6": @@ -167,7 +167,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/tags + url: https://api.linode.com/v4beta/tags method: POST response: body: '{"label": "linodego-test-foo"}' @@ -237,7 +237,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/tags + url: https://api.linode.com/v4beta/tags method: GET response: body: '{"results": 3, "page": 1, "data": [{"label": "linodego-test"}, {"label": @@ -310,7 +310,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/tags/linodego-test + url: https://api.linode.com/v4beta/tags/linodego-test method: GET response: body: '{"pages": 1, "results": 1, "data": [{"type": "linode", "data": {"hypervisor": @@ -390,7 +390,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/tags/linodego-test + url: https://api.linode.com/v4beta/tags/linodego-test method: DELETE response: body: '{}' @@ -460,7 +460,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/tags/linodego-test-foo + url: https://api.linode.com/v4beta/tags/linodego-test-foo method: DELETE response: body: '{}' @@ -530,7 +530,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/tags/linodego-test-bar + url: https://api.linode.com/v4beta/tags/linodego-test-bar method: DELETE response: body: '{}' @@ -600,7 +600,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10698247 + url: https://api.linode.com/v4beta/linode/instances/10698247 method: DELETE response: body: '{}' diff --git a/fixtures/TestCreateVolume.yaml b/fixtures/TestCreateVolume.yaml index fd032e3e2..1f3f3c6ea 100644 --- a/fixtures/TestCreateVolume.yaml +++ b/fixtures/TestCreateVolume.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes + url: https://api.linode.com/v4beta/volumes method: POST response: body: '{"status": "creating", "linode_id": null, "label": "linodego-test-volume", @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes/9357 + url: https://api.linode.com/v4beta/volumes/9357 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetAccount.yaml b/fixtures/TestGetAccount.yaml index 948358a31..543a3378f 100644 --- a/fixtures/TestGetAccount.yaml +++ b/fixtures/TestGetAccount.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account + url: https://api.linode.com/v4beta/account method: GET response: body: '{"phone": "555-555-5555", "email": "linode+_go_@example.com", "address_2": diff --git a/fixtures/TestGetDomain.yaml b/fixtures/TestGetDomain.yaml index 29949c458..5001ec3bc 100644 --- a/fixtures/TestGetDomain.yaml +++ b/fixtures/TestGetDomain.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: POST response: body: '{"id": 1102864, "description": "", "axfr_ips": [], "status": "active", @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102864 + url: https://api.linode.com/v4beta/domains/1102864 method: GET response: body: '{"expire_sec": 0, "refresh_sec": 0, "type": "master", "group": "", "master_ips": @@ -161,7 +161,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102864 + url: https://api.linode.com/v4beta/domains/1102864 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetDomainRecord.yaml b/fixtures/TestGetDomainRecord.yaml index 72118d23c..b3829b59c 100644 --- a/fixtures/TestGetDomainRecord.yaml +++ b/fixtures/TestGetDomainRecord.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: POST response: body: '{"expire_sec": 0, "refresh_sec": 0, "type": "master", "group": "", "master_ips": @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102872/records + url: https://api.linode.com/v4beta/domains/1102872/records method: POST response: body: '{"type": "A", "priority": 0, "protocol": null, "port": 0, "target": "010.020.030.040", @@ -158,7 +158,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102872/records/10468361 + url: https://api.linode.com/v4beta/domains/1102872/records/10468361 method: GET response: body: '{"id": 10468361, "priority": 0, "tag": null, "port": 0, "protocol": null, @@ -232,7 +232,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102872/records/10468361 + url: https://api.linode.com/v4beta/domains/1102872/records/10468361 method: DELETE response: body: '{}' @@ -302,7 +302,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102872 + url: https://api.linode.com/v4beta/domains/1102872 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetIPAddress_found.yaml b/fixtures/TestGetIPAddress_found.yaml index 981ddb906..560cfd47f 100644 --- a/fixtures/TestGetIPAddress_found.yaml +++ b/fixtures/TestGetIPAddress_found.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"group": "", "label": "linodego-test-instance", "created": "2018-01-02T03:04:05", @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/11758350/configs + url: https://api.linode.com/v4beta/linode/instances/11758350/configs method: POST response: body: '{"id": 12984579, "created": "2018-01-02T03:04:05", "comments": "", "devices": @@ -166,7 +166,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/networking/ips/10.20.30.40 + url: https://api.linode.com/v4beta/networking/ips/10.20.30.40 method: GET response: body: '{"subnet_mask": "10.20.30.40", "linode_id": 11758350, "type": "ipv4", @@ -240,7 +240,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/11758350 + url: https://api.linode.com/v4beta/linode/instances/11758350 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetIPAddress_missing.yaml b/fixtures/TestGetIPAddress_missing.yaml index a066a170c..7b13365b1 100644 --- a/fixtures/TestGetIPAddress_missing.yaml +++ b/fixtures/TestGetIPAddress_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/networking/ips/010.020.030.040 + url: https://api.linode.com/v4beta/networking/ips/010.020.030.040 method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetImage_found.yaml b/fixtures/TestGetImage_found.yaml index 3ec44e3fe..8edab7f46 100644 --- a/fixtures/TestGetImage_found.yaml +++ b/fixtures/TestGetImage_found.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/images/linode/ubuntu16.04lts + url: https://api.linode.com/v4beta/images/linode/ubuntu16.04lts method: GET response: body: '{"label": "Ubuntu 16.04 LTS", "id": "linode/ubuntu16.04lts", "is_public": diff --git a/fixtures/TestGetImage_missing.yaml b/fixtures/TestGetImage_missing.yaml index 9ecb10b58..74a154144 100644 --- a/fixtures/TestGetImage_missing.yaml +++ b/fixtures/TestGetImage_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/images/does-not-exist + url: https://api.linode.com/v4beta/images/does-not-exist method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetInstance.yaml b/fixtures/TestGetInstance.yaml index d91ba2add..a83527ce7 100644 --- a/fixtures/TestGetInstance.yaml +++ b/fixtures/TestGetInstance.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"region": "us-west", "alerts": {"network_in": 10, "io": 10000, "cpu": @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10157452/configs + url: https://api.linode.com/v4beta/linode/instances/10157452/configs method: POST response: body: '{"virt_mode": "paravirt", "devices": {"sdg": null, "sda": null, "sdd": @@ -166,7 +166,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10157452 + url: https://api.linode.com/v4beta/linode/instances/10157452 method: GET response: body: '{"group": "", "backups": {"schedule": {"window": null, "day": null}, "enabled": @@ -244,7 +244,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10157452 + url: https://api.linode.com/v4beta/linode/instances/10157452 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetInstanceIPAddresses.yaml b/fixtures/TestGetInstanceIPAddresses.yaml index ac545c255..5ccbb6b3e 100644 --- a/fixtures/TestGetInstanceIPAddresses.yaml +++ b/fixtures/TestGetInstanceIPAddresses.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"status": "provisioning", "backups": {"schedule": {"window": null, "day": @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/11758358/configs + url: https://api.linode.com/v4beta/linode/instances/11758358/configs method: POST response: body: '{"created": "2018-01-02T03:04:05", "virt_mode": "paravirt", "kernel": "linode/latest-64bit", @@ -165,7 +165,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/11758358/ips + url: https://api.linode.com/v4beta/linode/instances/11758358/ips method: GET response: body: '{"ipv4": {"shared": [], "private": [], "public": [{"rdns": "li594-78.members.linode.com", @@ -245,7 +245,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/11758358 + url: https://api.linode.com/v4beta/linode/instances/11758358 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetInstanceStats.yaml b/fixtures/TestGetInstanceStats.yaml index 2efbcf10c..aa8b40722 100644 --- a/fixtures/TestGetInstanceStats.yaml +++ b/fixtures/TestGetInstanceStats.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"backups": {"schedule": {"window": null, "day": null}, "enabled": false}, @@ -89,7 +89,7 @@ interactions: - application/json User-Agent: - linodego 0.7.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/13585000/boot + url: https://api.linode.com/v4beta/linode/instances/13585000/boot method: POST response: body: '{}' @@ -158,7 +158,7 @@ interactions: - application/json User-Agent: - linodego 0.7.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/13585000/stats + url: https://api.linode.com/v4beta/linode/instances/13585000/stats method: GET response: body: '{"data": {"cpu": [[1555000500000, 0], [1555000800000, 0], [1555001100000, @@ -1019,7 +1019,7 @@ interactions: - application/json User-Agent: - linodego 0.7.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/13585000/stats/2018/1 + url: https://api.linode.com/v4beta/linode/instances/13585000/stats/2018/1 method: GET response: body: '{"title": "linode.com - linodego-test-instance (linode13585000) - month @@ -2077,7 +2077,7 @@ interactions: - application/json User-Agent: - linodego 0.7.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/13585000 + url: https://api.linode.com/v4beta/linode/instances/13585000 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetNodeBalancer.yaml b/fixtures/TestGetNodeBalancer.yaml index d85a11cc8..266c64ef9 100644 --- a/fixtures/TestGetNodeBalancer.yaml +++ b/fixtures/TestGetNodeBalancer.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"ipv4": "010.020.030.040", "region": "us-west", "label": "aw21uv73un07-linodego-testing", @@ -87,7 +87,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37821 + url: https://api.linode.com/v4beta/nodebalancers/37821 method: GET response: body: '{"transfer": {"out": null, "in": null, "total": null}, "hostname": "nb-10-20-30-40.fremont.nodebalancer.linode.com", @@ -162,7 +162,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37821 + url: https://api.linode.com/v4beta/nodebalancers/37821 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetNodeBalancerConfig.yaml b/fixtures/TestGetNodeBalancerConfig.yaml index eaa8e77c3..217d973dc 100644 --- a/fixtures/TestGetNodeBalancerConfig.yaml +++ b/fixtures/TestGetNodeBalancerConfig.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"ipv4": "010.020.030.040", "region": "us-west", "label": "46m4wvnt3f40-linodego-testing", @@ -87,7 +87,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37814/configs + url: https://api.linode.com/v4beta/nodebalancers/37814/configs method: POST response: body: '{"cipher_suite": "recommended", "algorithm": "roundrobin", "check": "none", @@ -162,7 +162,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37814/configs/33561 + url: https://api.linode.com/v4beta/nodebalancers/37814/configs/33561 method: GET response: body: '{"ssl_commonname": "", "algorithm": "roundrobin", "protocol": "http", "port": @@ -239,7 +239,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37814/configs/33561 + url: https://api.linode.com/v4beta/nodebalancers/37814/configs/33561 method: DELETE response: body: '{}' @@ -309,7 +309,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37814 + url: https://api.linode.com/v4beta/nodebalancers/37814 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetNodeBalancerNode.yaml b/fixtures/TestGetNodeBalancerNode.yaml index 610616f61..9ca1401ab 100644 --- a/fixtures/TestGetNodeBalancerNode.yaml +++ b/fixtures/TestGetNodeBalancerNode.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"transfer": {"out": null, "in": null, "total": null}, "hostname": "nb-10-20-30-40.fremont.nodebalancer.linode.com", @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37835/configs + url: https://api.linode.com/v4beta/nodebalancers/37835/configs method: POST response: body: '{"check_interval": 0, "check_attempts": 3, "nodebalancer_id": 37835, "check_path": @@ -161,7 +161,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37835/configs/33574/nodes + url: https://api.linode.com/v4beta/nodebalancers/37835/configs/33574/nodes method: POST response: body: '{"status": "Unknown", "mode": "accept", "config_id": 33574, "address": @@ -233,7 +233,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37835/configs/33574/nodes/316377 + url: https://api.linode.com/v4beta/nodebalancers/37835/configs/33574/nodes/316377 method: GET response: body: '{"weight": 10, "nodebalancer_id": 37835, "label": "test-label", "address": @@ -307,7 +307,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37835/configs/33574/nodes/316377 + url: https://api.linode.com/v4beta/nodebalancers/37835/configs/33574/nodes/316377 method: DELETE response: body: '{}' @@ -377,7 +377,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37835/configs/33574 + url: https://api.linode.com/v4beta/nodebalancers/37835/configs/33574 method: DELETE response: body: '{}' @@ -447,7 +447,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37835 + url: https://api.linode.com/v4beta/nodebalancers/37835 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetOAuthClient_found.yaml b/fixtures/TestGetOAuthClient_found.yaml index fc952894e..541cf7975 100644 --- a/fixtures/TestGetOAuthClient_found.yaml +++ b/fixtures/TestGetOAuthClient_found.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/oauth-clients + url: https://api.linode.com/v4beta/account/oauth-clients method: POST response: body: '{"thumbnail_url": null, "public": true, "id": "507baedeab630e1931a0", "secret": @@ -84,7 +84,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/oauth-clients/507baedeab630e1931a0 + url: https://api.linode.com/v4beta/account/oauth-clients/507baedeab630e1931a0 method: GET response: body: '{"thumbnail_url": null, "public": true, "id": "507baedeab630e1931a0", "secret": @@ -157,7 +157,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/oauth-clients/507baedeab630e1931a0 + url: https://api.linode.com/v4beta/account/oauth-clients/507baedeab630e1931a0 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetOAuthClient_missing.yaml b/fixtures/TestGetOAuthClient_missing.yaml index 8c57a2ec1..e395a8eda 100644 --- a/fixtures/TestGetOAuthClient_missing.yaml +++ b/fixtures/TestGetOAuthClient_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/oauth-clients/does-not-exist + url: https://api.linode.com/v4beta/account/oauth-clients/does-not-exist method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetPayment_found.yaml b/fixtures/TestGetPayment_found.yaml index 53bceeb51..4adf197a3 100644 --- a/fixtures/TestGetPayment_found.yaml +++ b/fixtures/TestGetPayment_found.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/payments/123 + url: https://api.linode.com/v4beta/account/payments/123 method: GET response: body: '{"id": 123, "usd": 1.0, "date": "2018-01-02T03:04:05"}' diff --git a/fixtures/TestGetPayment_missing.yaml b/fixtures/TestGetPayment_missing.yaml index 9628caa83..66271ad7a 100644 --- a/fixtures/TestGetPayment_missing.yaml +++ b/fixtures/TestGetPayment_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/payments/-1 + url: https://api.linode.com/v4beta/account/payments/-1 method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetProfile.yaml b/fixtures/TestGetProfile.yaml index e3ee94492..5fafc95b5 100644 --- a/fixtures/TestGetProfile.yaml +++ b/fixtures/TestGetProfile.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.6.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile + url: https://api.linode.com/v4beta/profile method: GET response: body: '{"ip_whitelist_enabled": false, "email_notifications": true, "email": "restricted_tester@example.com", diff --git a/fixtures/TestGetSSHKey_found.yaml b/fixtures/TestGetSSHKey_found.yaml index d54dbaef4..7be80c114 100644 --- a/fixtures/TestGetSSHKey_found.yaml +++ b/fixtures/TestGetSSHKey_found.yaml @@ -14,7 +14,7 @@ interactions: - application/json User-Agent: - linodego 0.5.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/sshkeys + url: https://api.linode.com/v4beta/profile/sshkeys method: POST response: body: '{"id": 43, "ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYlv4Ns3tY2NEseuuMXEz1sLzO9sGC0cwaT2ECbWFyrsn1Fg5ISdkaJD8LiuhZ41/1Mh0Sq49wY89yLkmw+Ukrd+thFbhUqTzjL09U89kn3Ds/ajVJgwnJ4pXmBqhq0/3pmO/UkYIBi5ErTnPWL+yHAoQ1HsVetxYUmY2SPaT0pduDIrvNZRvWn3Nvn9qsUVfthWiGc8oHWE5xyd7+3UPLHSMkE4rZd2k6e7bJWCM/VJ7ZrJQ6UVTDXjBCkkT12WsOWxcEuL36RUGgGa4h5M4IY0SkgQSKHer01dJSj3c6OBzj2CRDZFoM8f/YC66s0+ZQ9cE/aADDycMIvqOJBI6X @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.5.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/sshkeys/43 + url: https://api.linode.com/v4beta/profile/sshkeys/43 method: GET response: body: '{"ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYlv4Ns3tY2NEseuuMXEz1sLzO9sGC0cwaT2ECbWFyrsn1Fg5ISdkaJD8LiuhZ41/1Mh0Sq49wY89yLkmw+Ukrd+thFbhUqTzjL09U89kn3Ds/ajVJgwnJ4pXmBqhq0/3pmO/UkYIBi5ErTnPWL+yHAoQ1HsVetxYUmY2SPaT0pduDIrvNZRvWn3Nvn9qsUVfthWiGc8oHWE5xyd7+3UPLHSMkE4rZd2k6e7bJWCM/VJ7ZrJQ6UVTDXjBCkkT12WsOWxcEuL36RUGgGa4h5M4IY0SkgQSKHer01dJSj3c6OBzj2CRDZFoM8f/YC66s0+ZQ9cE/aADDycMIvqOJBI6X @@ -160,7 +160,7 @@ interactions: - application/json User-Agent: - linodego 0.5.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/sshkeys/43 + url: https://api.linode.com/v4beta/profile/sshkeys/43 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetSSHKey_missing.yaml b/fixtures/TestGetSSHKey_missing.yaml index fa798b644..5f1b5f917 100644 --- a/fixtures/TestGetSSHKey_missing.yaml +++ b/fixtures/TestGetSSHKey_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.5.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/sshkeys/123 + url: https://api.linode.com/v4beta/profile/sshkeys/123 method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetToken_found.yaml b/fixtures/TestGetToken_found.yaml index 800cd7e90..2166477c7 100644 --- a/fixtures/TestGetToken_found.yaml +++ b/fixtures/TestGetToken_found.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/tokens + url: https://api.linode.com/v4beta/profile/tokens method: POST response: body: '{"token": "b0c2deb6a3d1ebd82fd34b9dc388c3a4338d11e425ed79ad783423b6f8484360", @@ -85,7 +85,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/tokens/319582 + url: https://api.linode.com/v4beta/profile/tokens/319582 method: GET response: body: '{"label": "linodego-test-token", "expiry": "2018-01-02T03:04:05", "created": @@ -159,7 +159,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/tokens/319582 + url: https://api.linode.com/v4beta/profile/tokens/319582 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetToken_missing.yaml b/fixtures/TestGetToken_missing.yaml index 69b1141f1..ad24f68c8 100644 --- a/fixtures/TestGetToken_missing.yaml +++ b/fixtures/TestGetToken_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/tokens/123 + url: https://api.linode.com/v4beta/profile/tokens/123 method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetToken_noexpiry.yaml b/fixtures/TestGetToken_noexpiry.yaml index 3c0ae362f..aa9c70442 100644 --- a/fixtures/TestGetToken_noexpiry.yaml +++ b/fixtures/TestGetToken_noexpiry.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/tokens + url: https://api.linode.com/v4beta/profile/tokens method: POST response: body: '{"label": "linodego-test-token", "expiry": "2999-12-12T05:00:00", "token": @@ -85,7 +85,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/tokens/319584 + url: https://api.linode.com/v4beta/profile/tokens/319584 method: GET response: body: '{"id": 319584, "label": "linodego-test-token", "token": "431485bee492baf2", @@ -159,7 +159,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/tokens/319584 + url: https://api.linode.com/v4beta/profile/tokens/319584 method: DELETE response: body: '{}' diff --git a/fixtures/TestGetType_found.yaml b/fixtures/TestGetType_found.yaml index 0fbb9304d..c713ab442 100644 --- a/fixtures/TestGetType_found.yaml +++ b/fixtures/TestGetType_found.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/types/g6-standard-1 + url: https://api.linode.com/v4beta/linode/types/g6-standard-1 method: GET response: body: '{"disk": 51200, "price": {"hourly": 0.015, "monthly": 10.0}, "vcpus": 1, diff --git a/fixtures/TestGetType_missing.yaml b/fixtures/TestGetType_missing.yaml index ce1e8cb36..41946a92c 100644 --- a/fixtures/TestGetType_missing.yaml +++ b/fixtures/TestGetType_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/types/does-not-exist + url: https://api.linode.com/v4beta/linode/types/does-not-exist method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetUser_missing.yaml b/fixtures/TestGetUser_missing.yaml index bb6f5e43a..94f119eee 100644 --- a/fixtures/TestGetUser_missing.yaml +++ b/fixtures/TestGetUser_missing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.5.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/users/does-not-exist + url: https://api.linode.com/v4beta/account/users/does-not-exist method: GET response: body: '{"errors": [{"reason": "Not found"}]}' diff --git a/fixtures/TestGetVolume.yaml b/fixtures/TestGetVolume.yaml index 8481bd1bb..def9f2d48 100644 --- a/fixtures/TestGetVolume.yaml +++ b/fixtures/TestGetVolume.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes + url: https://api.linode.com/v4beta/volumes method: POST response: body: '{"updated": "2018-01-02T03:04:05", "filesystem_path": "/dev/disk/by-id/scsi-0Linode_Volume_linodego-test-volume", @@ -85,7 +85,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes/12771 + url: https://api.linode.com/v4beta/volumes/12771 method: GET response: body: '{"label": "linodego-test-volume", "filesystem_path": "/dev/disk/by-id/scsi-0Linode_Volume_linodego-test-volume", @@ -159,7 +159,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes/12771 + url: https://api.linode.com/v4beta/volumes/12771 method: DELETE response: body: '{}' diff --git a/fixtures/TestListDomainRecords.yaml b/fixtures/TestListDomainRecords.yaml index f8d415163..5cbfcbffc 100644 --- a/fixtures/TestListDomainRecords.yaml +++ b/fixtures/TestListDomainRecords.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: POST response: body: '{"expire_sec": 0, "refresh_sec": 0, "type": "master", "group": "", "master_ips": @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102892/records + url: https://api.linode.com/v4beta/domains/1102892/records method: POST response: body: '{"type": "A", "priority": 0, "protocol": null, "port": 0, "target": "010.020.030.040", @@ -160,7 +160,7 @@ interactions: - linodego 0.1.0 https://github.com/linode/linodego X-Filter: - '{"name":"a"}' - url: https://api.linode.com/v4/domains/1102892/records + url: https://api.linode.com/v4beta/domains/1102892/records method: GET response: body: '{"page": 1, "data": [{"id": 10468540, "priority": 0, "tag": null, "port": @@ -234,7 +234,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102892/records/10468540 + url: https://api.linode.com/v4beta/domains/1102892/records/10468540 method: DELETE response: body: '{}' @@ -304,7 +304,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102892 + url: https://api.linode.com/v4beta/domains/1102892 method: DELETE response: body: '{}' diff --git a/fixtures/TestListDomainRecordsMultiplePages.yaml b/fixtures/TestListDomainRecordsMultiplePages.yaml index 022f428e5..0e2739c7f 100644 --- a/fixtures/TestListDomainRecordsMultiplePages.yaml +++ b/fixtures/TestListDomainRecordsMultiplePages.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: POST response: body: '{"expire_sec": 0, "refresh_sec": 0, "type": "master", "group": "", "master_ips": @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102892/records + url: https://api.linode.com/v4beta/domains/1102892/records method: POST response: body: '{"type": "A", "priority": 0, "protocol": null, "port": 0, "target": "010.020.030.040", @@ -160,7 +160,7 @@ interactions: - linodego 0.1.0 https://github.com/linode/linodego X-Filter: - '{"name":"a"}' - url: https://api.linode.com/v4/domains/1102892/records + url: https://api.linode.com/v4beta/domains/1102892/records method: GET response: body: '{"page": 1, "data": [{"id": 10468540, "priority": 0, "tag": null, "port": @@ -236,7 +236,7 @@ interactions: - linodego 0.1.0 https://github.com/linode/linodego X-Filter: - '{"name":"a"}' - url: https://api.linode.com/v4/domains/1102892/records?page=2 + url: https://api.linode.com/v4beta/domains/1102892/records?page=2 method: GET response: body: '{"page": 2, "data": [{"id": 10468541, "priority": 0, "tag": null, "port": @@ -310,7 +310,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102892/records/10468540 + url: https://api.linode.com/v4beta/domains/1102892/records/10468540 method: DELETE response: body: '{}' @@ -380,7 +380,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102892 + url: https://api.linode.com/v4beta/domains/1102892 method: DELETE response: body: '{}' diff --git a/fixtures/TestListDomains.yaml b/fixtures/TestListDomains.yaml index c1a50f195..8606082b6 100644 --- a/fixtures/TestListDomains.yaml +++ b/fixtures/TestListDomains.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: POST response: body: '{"expire_sec": 0, "refresh_sec": 0, "type": "master", "group": "", "master_ips": @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains + url: https://api.linode.com/v4beta/domains method: GET response: body: '{"page": 1, "data": [{"id": 1102862, "description": "", "axfr_ips": [], @@ -162,7 +162,7 @@ interactions: - application/json User-Agent: - linodego 0.1.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/domains/1102862 + url: https://api.linode.com/v4beta/domains/1102862 method: DELETE response: body: '{}' diff --git a/fixtures/TestListEvents_resizing.yaml b/fixtures/TestListEvents_resizing.yaml index b3d1eaf28..114fd794c 100644 --- a/fixtures/TestListEvents_resizing.yaml +++ b/fixtures/TestListEvents_resizing.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/events + url: https://api.linode.com/v4beta/account/events method: GET response: body: '{"data": [{"created": "2018-01-02T03:04:05", "username": "restricted_tester", diff --git a/fixtures/TestListIPAddresses.yaml b/fixtures/TestListIPAddresses.yaml index 6f0608009..b41666f75 100644 --- a/fixtures/TestListIPAddresses.yaml +++ b/fixtures/TestListIPAddresses.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"status": "provisioning", "backups": {"schedule": {"window": null, "day": @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/11758356/configs + url: https://api.linode.com/v4beta/linode/instances/11758356/configs method: POST response: body: '{"virt_mode": "paravirt", "initrd": null, "id": 12984581, "memory_limit": @@ -168,7 +168,7 @@ interactions: - linodego 0.6.2 https://github.com/linode/linodego X-Filter: - '{"linode_id":11758356}' - url: https://api.linode.com/v4/networking/ips + url: https://api.linode.com/v4beta/networking/ips method: GET response: body: '{"pages": 1, "page": 1, "data": [{"public": true, "subnet_mask": "10.20.30.40", @@ -321,7 +321,7 @@ interactions: - application/json User-Agent: - linodego 0.6.2 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/11758356 + url: https://api.linode.com/v4beta/linode/instances/11758356 method: DELETE response: body: '{}' diff --git a/fixtures/TestListImages.yaml b/fixtures/TestListImages.yaml index e94d0cbad..5785fb1de 100644 --- a/fixtures/TestListImages.yaml +++ b/fixtures/TestListImages.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/images + url: https://api.linode.com/v4beta/images method: GET response: body: '{"results": 19, "data": [{"created": "2018-01-02T03:04:05", "id": "linode/arch", diff --git a/fixtures/TestListInstanceBackups.yaml b/fixtures/TestListInstanceBackups.yaml index c84272e85..94d780006 100644 --- a/fixtures/TestListInstanceBackups.yaml +++ b/fixtures/TestListInstanceBackups.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"created": "2018-01-02T03:04:05", "image": null, "id": 9588435, "updated": @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/configs + url: https://api.linode.com/v4beta/linode/instances/9588435/configs method: POST response: body: '{"created": "2018-01-02T03:04:05", "comments": "", "updated": "2018-01-02T03:04:05", @@ -166,7 +166,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435 + url: https://api.linode.com/v4beta/linode/instances/9588435 method: GET response: body: '{"alerts": {"network_in": 10, "io": 10000, "network_out": 10, "transfer_quota": @@ -244,7 +244,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/disks + url: https://api.linode.com/v4beta/linode/instances/9588435/disks method: POST response: body: '{"created": "2018-01-02T03:04:05", "id": 20675853, "updated": "2018-01-02T03:04:05", @@ -318,7 +318,7 @@ interactions: - linodego 0.1.1 https://github.com/linode/linodego X-Filter: - '{"+order":"desc","+order_by":"created","seen":false}' - url: https://api.linode.com/v4/account/events?page=1 + url: https://api.linode.com/v4beta/account/events?page=1 method: GET response: body: '{"data": [{"created": "2018-01-02T03:04:05", "username": "restricted_tester", @@ -398,7 +398,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/backups/enable + url: https://api.linode.com/v4beta/linode/instances/9588435/backups/enable method: POST response: body: '{}' @@ -468,7 +468,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/backups + url: https://api.linode.com/v4beta/linode/instances/9588435/backups method: POST response: body: '{"created": "2018-01-02T03:04:05", "region": "us-west", "id": 98986758, @@ -540,7 +540,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/backups + url: https://api.linode.com/v4beta/linode/instances/9588435/backups method: GET response: body: '{"snapshot": {"in_progress": null, "current": {"configs": ["linodego-test-config"], @@ -617,7 +617,7 @@ interactions: - linodego 0.1.1 https://github.com/linode/linodego X-Filter: - '{"+order":"desc","+order_by":"created","seen":false}' - url: https://api.linode.com/v4/account/events?page=1 + url: https://api.linode.com/v4beta/account/events?page=1 method: GET response: body: '{"data": [{"created": "2018-01-02T03:04:05", "username": "restricted_tester", @@ -697,7 +697,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/backups/98986758 + url: https://api.linode.com/v4beta/linode/instances/9588435/backups/98986758 method: GET response: body: '{"created": "2018-01-02T03:04:05", "region": "us-west", "id": 98986758, @@ -773,7 +773,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/backups/98986758/restore + url: https://api.linode.com/v4beta/linode/instances/9588435/backups/98986758/restore method: POST response: body: '{}' @@ -843,7 +843,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435/backups/cancel + url: https://api.linode.com/v4beta/linode/instances/9588435/backups/cancel method: POST response: body: '{}' @@ -913,7 +913,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/9588435 + url: https://api.linode.com/v4beta/linode/instances/9588435 method: DELETE response: body: '{}' diff --git a/fixtures/TestListInstanceConfigs.yaml b/fixtures/TestListInstanceConfigs.yaml index d92c11dc6..ddb2c6ec9 100644 --- a/fixtures/TestListInstanceConfigs.yaml +++ b/fixtures/TestListInstanceConfigs.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"backups": {"enabled": false, "schedule": {"day": null, "window": null}}, @@ -90,7 +90,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10174066/configs + url: https://api.linode.com/v4beta/linode/instances/10174066/configs method: POST response: body: '{"helpers": {"distro": true, "network": true, "devtmpfs_automount": true, @@ -166,7 +166,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10174066/configs + url: https://api.linode.com/v4beta/linode/instances/10174066/configs method: GET response: body: '{"data": [{"helpers": {"distro": true, "devtmpfs_automount": true, "updatedb_disabled": @@ -244,7 +244,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10174066 + url: https://api.linode.com/v4beta/linode/instances/10174066 method: DELETE response: body: '{}' diff --git a/fixtures/TestListInstanceDisks.yaml b/fixtures/TestListInstanceDisks.yaml index aaec90c34..a323df1c2 100644 --- a/fixtures/TestListInstanceDisks.yaml +++ b/fixtures/TestListInstanceDisks.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"group": "", "specs": {"transfer": 1000, "memory": 1024, "disk": 25600, @@ -89,7 +89,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10158886/disks + url: https://api.linode.com/v4beta/linode/instances/10158886/disks method: GET response: body: '{"pages": 1, "results": 2, "data": [{"id": 21758686, "status": "not ready", @@ -165,7 +165,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10158886 + url: https://api.linode.com/v4beta/linode/instances/10158886 method: DELETE response: body: '{}' diff --git a/fixtures/TestListInstanceVolumes.yaml b/fixtures/TestListInstanceVolumes.yaml index 99fc6d055..c4ebdea70 100644 --- a/fixtures/TestListInstanceVolumes.yaml +++ b/fixtures/TestListInstanceVolumes.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes + url: https://api.linode.com/v4beta/volumes method: POST response: body: '{"filesystem_path": "/dev/disk/by-id/scsi-0Linode_Volume_linodego-test-volume", @@ -85,7 +85,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10174075/volumes + url: https://api.linode.com/v4beta/linode/instances/10174075/volumes method: GET response: body: '{"pages": 1, "results": 1, "data": [{"id": 12787, "status": "active", "label": @@ -160,7 +160,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/volumes/12787 + url: https://api.linode.com/v4beta/volumes/12787 method: DELETE response: body: '{}' diff --git a/fixtures/TestListInstanceVolumes_instance.yaml b/fixtures/TestListInstanceVolumes_instance.yaml index 90f93478f..1e05b5b46 100644 --- a/fixtures/TestListInstanceVolumes_instance.yaml +++ b/fixtures/TestListInstanceVolumes_instance.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"group": "", "specs": {"transfer": 1000, "memory": 1024, "disk": 25600, @@ -89,7 +89,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10174075/configs + url: https://api.linode.com/v4beta/linode/instances/10174075/configs method: POST response: body: '{"virt_mode": "paravirt", "devices": {"sdg": null, "sda": null, "sdd": @@ -165,7 +165,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10174075/configs/11421192 + url: https://api.linode.com/v4beta/linode/instances/10174075/configs/11421192 method: PUT response: body: '{"root_device": "/dev/sda", "updated": "2018-01-02T03:04:05", "virt_mode": @@ -241,7 +241,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10174075 + url: https://api.linode.com/v4beta/linode/instances/10174075 method: DELETE response: body: '{}' diff --git a/fixtures/TestListInstances.yaml b/fixtures/TestListInstances.yaml index 3fa3a5908..b750cd21e 100644 --- a/fixtures/TestListInstances.yaml +++ b/fixtures/TestListInstances.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances + url: https://api.linode.com/v4beta/linode/instances method: POST response: body: '{"status": "provisioning", "group": "", "watchdog_enabled": true, "hypervisor": @@ -89,7 +89,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10157365/configs + url: https://api.linode.com/v4beta/linode/instances/10157365/configs method: POST response: body: '{"helpers": {"distro": true, "devtmpfs_automount": true, "updatedb_disabled": @@ -167,7 +167,7 @@ interactions: - linodego 0.4.0 https://github.com/linode/linodego X-Filter: - '{"id": 10157365}' - url: https://api.linode.com/v4/linode/instances?page=1 + url: https://api.linode.com/v4beta/linode/instances?page=1 method: GET response: body: '{"data": [{"backups": {"enabled": false, "schedule": {"window": null, "day": @@ -246,7 +246,7 @@ interactions: - application/json User-Agent: - linodego 0.4.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/instances/10157365 + url: https://api.linode.com/v4beta/linode/instances/10157365 method: DELETE response: body: '{}' diff --git a/fixtures/TestListNodeBalancerConfigs.yaml b/fixtures/TestListNodeBalancerConfigs.yaml index 0af110eb4..e4027ed5c 100644 --- a/fixtures/TestListNodeBalancerConfigs.yaml +++ b/fixtures/TestListNodeBalancerConfigs.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"ipv4": "010.020.030.040", "region": "us-west", "label": "39x21bczi38d-linodego-testing", @@ -87,7 +87,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37812/configs + url: https://api.linode.com/v4beta/nodebalancers/37812/configs method: POST response: body: '{"cipher_suite": "recommended", "algorithm": "roundrobin", "check": "none", @@ -162,7 +162,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37812/configs + url: https://api.linode.com/v4beta/nodebalancers/37812/configs method: GET response: body: '{"results": 1, "pages": 1, "page": 1, "data": [{"ssl_commonname": "", "algorithm": @@ -239,7 +239,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37812/configs/33559 + url: https://api.linode.com/v4beta/nodebalancers/37812/configs/33559 method: DELETE response: body: '{}' @@ -309,7 +309,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37812 + url: https://api.linode.com/v4beta/nodebalancers/37812 method: DELETE response: body: '{}' diff --git a/fixtures/TestListNodeBalancerConfigsMultiplePages.yaml b/fixtures/TestListNodeBalancerConfigsMultiplePages.yaml index c4890f23f..064ea6e63 100644 --- a/fixtures/TestListNodeBalancerConfigsMultiplePages.yaml +++ b/fixtures/TestListNodeBalancerConfigsMultiplePages.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"updated": "2018-01-02T03:04:05", "ipv4": "010.020.030.040", "label": "fgl98j2ok963-linodego-testing", @@ -87,7 +87,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37786/configs + url: https://api.linode.com/v4beta/nodebalancers/37786/configs method: POST response: body: '{"ssl_commonname": "", "algorithm": "roundrobin", "protocol": "http", "port": @@ -162,7 +162,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37786/configs + url: https://api.linode.com/v4beta/nodebalancers/37786/configs method: GET response: body: '{"results": 1, "data": [], "pages": 2, "page": 1}' @@ -234,7 +234,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37786/configs?page=2 + url: https://api.linode.com/v4beta/nodebalancers/37786/configs?page=2 method: GET response: body: '{"results": 1, "data": [{"check_path": "", "algorithm": "roundrobin", "ssl_fingerprint": @@ -311,7 +311,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37786/configs/33528 + url: https://api.linode.com/v4beta/nodebalancers/37786/configs/33528 method: DELETE response: body: '{}' @@ -381,7 +381,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37786 + url: https://api.linode.com/v4beta/nodebalancers/37786 method: DELETE response: body: '{}' diff --git a/fixtures/TestListNodeBalancerNodes.yaml b/fixtures/TestListNodeBalancerNodes.yaml index 179bc2a77..d93f0aafb 100644 --- a/fixtures/TestListNodeBalancerNodes.yaml +++ b/fixtures/TestListNodeBalancerNodes.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"ipv4": "010.020.030.040", "region": "us-west", "label": "271ch55ni6qo-linodego-testing", @@ -87,7 +87,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37832/configs + url: https://api.linode.com/v4beta/nodebalancers/37832/configs method: POST response: body: '{"cipher_suite": "recommended", "algorithm": "roundrobin", "check": "none", @@ -162,7 +162,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37832/configs/33571/nodes + url: https://api.linode.com/v4beta/nodebalancers/37832/configs/33571/nodes method: POST response: body: '{"status": "Unknown", "mode": "accept", "config_id": 33571, "address": @@ -234,7 +234,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37832/configs/33571/nodes + url: https://api.linode.com/v4beta/nodebalancers/37832/configs/33571/nodes method: GET response: body: '{"results": 1, "data": [{"address": "192.168.030.040:8080", "id": 316374, @@ -308,7 +308,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37832/configs/33571/nodes/316374 + url: https://api.linode.com/v4beta/nodebalancers/37832/configs/33571/nodes/316374 method: DELETE response: body: '{}' @@ -378,7 +378,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37832/configs/33571 + url: https://api.linode.com/v4beta/nodebalancers/37832/configs/33571 method: DELETE response: body: '{}' @@ -448,7 +448,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37832 + url: https://api.linode.com/v4beta/nodebalancers/37832 method: DELETE response: body: '{}' diff --git a/fixtures/TestListNodeBalancerNodesMultiplePages.yaml b/fixtures/TestListNodeBalancerNodesMultiplePages.yaml index e99e28ba5..1f2385691 100644 --- a/fixtures/TestListNodeBalancerNodesMultiplePages.yaml +++ b/fixtures/TestListNodeBalancerNodesMultiplePages.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"ipv4": "010.020.030.040", "region": "us-west", "label": "1163u49dpliq-linodego-testing", @@ -87,7 +87,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37834/configs + url: https://api.linode.com/v4beta/nodebalancers/37834/configs method: POST response: body: '{"check_path": "", "algorithm": "roundrobin", "ssl_fingerprint": "", "check_body": @@ -161,7 +161,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37834/configs/33573/nodes + url: https://api.linode.com/v4beta/nodebalancers/37834/configs/33573/nodes method: POST response: body: '{"weight": 10, "nodebalancer_id": 37834, "label": "test-label", "address": @@ -233,7 +233,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37834/configs/33573/nodes + url: https://api.linode.com/v4beta/nodebalancers/37834/configs/33573/nodes method: GET response: body: '{"results": 1, "page": 1, "pages": 2, "data": []}' @@ -305,7 +305,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37834/configs/33573/nodes?page=2 + url: https://api.linode.com/v4beta/nodebalancers/37834/configs/33573/nodes?page=2 method: GET response: body: '{"results": 1, "page": 2, "pages": 2, "data": [{"status": "Unknown", "mode": @@ -379,7 +379,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37834/configs/33573/nodes/316376 + url: https://api.linode.com/v4beta/nodebalancers/37834/configs/33573/nodes/316376 method: DELETE response: body: '{}' @@ -449,7 +449,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37834/configs/33573 + url: https://api.linode.com/v4beta/nodebalancers/37834/configs/33573 method: DELETE response: body: '{}' @@ -519,7 +519,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37834 + url: https://api.linode.com/v4beta/nodebalancers/37834 method: DELETE response: body: '{}' diff --git a/fixtures/TestListNodeBalancers.yaml b/fixtures/TestListNodeBalancers.yaml index 17abc5257..e29b4b1c7 100644 --- a/fixtures/TestListNodeBalancers.yaml +++ b/fixtures/TestListNodeBalancers.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: POST response: body: '{"transfer": {"out": null, "in": null, "total": null}, "hostname": "nb-10-20-30-40.fremont.nodebalancer.linode.com", @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers + url: https://api.linode.com/v4beta/nodebalancers method: GET response: body: '{"pages": 1, "results": 3, "page": 1, "data": [{"updated": "2018-01-02T03:04:05", @@ -171,7 +171,7 @@ interactions: - application/json User-Agent: - linodego 0.1.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/nodebalancers/37827 + url: https://api.linode.com/v4beta/nodebalancers/37827 method: DELETE response: body: '{}' diff --git a/fixtures/TestListNotifications.yaml b/fixtures/TestListNotifications.yaml index c2612e69b..682c5e2f1 100644 --- a/fixtures/TestListNotifications.yaml +++ b/fixtures/TestListNotifications.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/notifications + url: https://api.linode.com/v4beta/account/notifications method: GET response: body: '{"data": [{"type": "migration_pending", "severity": "major", "label": "You diff --git a/fixtures/TestListOAuthClients.yaml b/fixtures/TestListOAuthClients.yaml index 7aad9e249..bbde261fb 100644 --- a/fixtures/TestListOAuthClients.yaml +++ b/fixtures/TestListOAuthClients.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/oauth-clients + url: https://api.linode.com/v4beta/account/oauth-clients method: POST response: body: '{"thumbnail_url": null, "public": true, "id": "8a1df9a00ada5083f936", "secret": @@ -84,7 +84,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/oauth-clients + url: https://api.linode.com/v4beta/account/oauth-clients method: GET response: body: '{"page": 1, "data": [{"thumbnail_url": null, "public": true, "id": "8a1df9a00ada5083f936", @@ -157,7 +157,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/oauth-clients/8a1df9a00ada5083f936 + url: https://api.linode.com/v4beta/account/oauth-clients/8a1df9a00ada5083f936 method: DELETE response: body: '{}' diff --git a/fixtures/TestListPayments.yaml b/fixtures/TestListPayments.yaml index dd282cd03..43e02e10f 100644 --- a/fixtures/TestListPayments.yaml +++ b/fixtures/TestListPayments.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.7.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/account/payments + url: https://api.linode.com/v4beta/account/payments method: GET response: body: '{"data": [{"date": diff --git a/fixtures/TestListRegions.yaml b/fixtures/TestListRegions.yaml index 0c88c78e5..d46c057a9 100644 --- a/fixtures/TestListRegions.yaml +++ b/fixtures/TestListRegions.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/regions + url: https://api.linode.com/v4beta/regions method: GET response: body: '{"data": [{"country": "us", "id": "us-central"}, {"country": "us", "id": diff --git a/fixtures/TestListSSHKey.yaml b/fixtures/TestListSSHKey.yaml index fabbfdb74..cbe42840f 100644 --- a/fixtures/TestListSSHKey.yaml +++ b/fixtures/TestListSSHKey.yaml @@ -14,7 +14,7 @@ interactions: - application/json User-Agent: - linodego 0.5.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/sshkeys + url: https://api.linode.com/v4beta/profile/sshkeys method: POST response: body: '{"id": 45, "ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYlv4Ns3tY2NEseuuMXEz1sLzO9sGC0cwaT2ECbWFyrsn1Fg5ISdkaJD8LiuhZ41/1Mh0Sq49wY89yLkmw+Ukrd+thFbhUqTzjL09U89kn3Ds/ajVJgwnJ4pXmBqhq0/3pmO/UkYIBi5ErTnPWL+yHAoQ1HsVetxYUmY2SPaT0pduDIrvNZRvWn3Nvn9qsUVfthWiGc8oHWE5xyd7+3UPLHSMkE4rZd2k6e7bJWCM/VJ7ZrJQ6UVTDXjBCkkT12WsOWxcEuL36RUGgGa4h5M4IY0SkgQSKHer01dJSj3c6OBzj2CRDZFoM8f/YC66s0+ZQ9cE/aADDycMIvqOJBI6X @@ -86,7 +86,7 @@ interactions: - application/json User-Agent: - linodego 0.5.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/sshkeys + url: https://api.linode.com/v4beta/profile/sshkeys method: GET response: body: '{"data": [{"ssh_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDYlv4Ns3tY2NEseuuMXEz1sLzO9sGC0cwaT2ECbWFyrsn1Fg5ISdkaJD8LiuhZ41/1Mh0Sq49wY89yLkmw+Ukrd+thFbhUqTzjL09U89kn3Ds/ajVJgwnJ4pXmBqhq0/3pmO/UkYIBi5ErTnPWL+yHAoQ1HsVetxYUmY2SPaT0pduDIrvNZRvWn3Nvn9qsUVfthWiGc8oHWE5xyd7+3UPLHSMkE4rZd2k6e7bJWCM/VJ7ZrJQ6UVTDXjBCkkT12WsOWxcEuL36RUGgGa4h5M4IY0SkgQSKHer01dJSj3c6OBzj2CRDZFoM8f/YC66s0+ZQ9cE/aADDycMIvqOJBI6X @@ -161,7 +161,7 @@ interactions: - application/json User-Agent: - linodego 0.5.0 https://github.com/linode/linodego - url: https://api.linode.com/v4/profile/sshkeys/45 + url: https://api.linode.com/v4beta/profile/sshkeys/45 method: DELETE response: body: '{}' diff --git a/fixtures/TestListStackscripts.yaml b/fixtures/TestListStackscripts.yaml index 3c301fa4e..f2f6909f3 100644 --- a/fixtures/TestListStackscripts.yaml +++ b/fixtures/TestListStackscripts.yaml @@ -13,7 +13,7 @@ interactions: - application/json User-Agent: - linodego 0.0.1 https://github.com/linode/linodego - url: https://api.linode.com/v4/linode/stackscripts?page=1 + url: https://api.linode.com/v4beta/linode/stackscripts?page=1 method: GET response: body: '{"pages": 11, "page": 1, "data": [{"script": "#!/bin/bash\n#