From 14a275e06f61a53ce5d19f7494abe03febcef628 Mon Sep 17 00:00:00 2001 From: Oscar Hermoso Date: Sat, 7 Mar 2026 11:34:37 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20Update=20BinaryLane=20OpenAPI=20?= =?UTF-8?q?schema=20to=20v0.34.4=20(#120)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/data-sources/sizes.md | 2 +- internal/binarylane/client_gen.go | 302 ++-- internal/binarylane/types_gen.go | 1218 ++++++++++++++--- .../data_sources/sizes_data_source_gen.go | 4 +- openapi.json | 253 ++-- provider_code_spec.json | 2 +- scripts/fetch-openapi.sh | 1 + 7 files changed, 1326 insertions(+), 456 deletions(-) diff --git a/docs/data-sources/sizes.md b/docs/data-sources/sizes.md index 5b6c24a..8ce953c 100644 --- a/docs/data-sources/sizes.md +++ b/docs/data-sources/sizes.md @@ -74,7 +74,7 @@ Read-Only: - `offsite_backups_cost_per_gigabyte` (Number) The additional cost per GB of storage for enabling offsite backups. See the API support document for how to calculate the final cost of backups based on the options selected. - `restricted_disk_values` (List of Number) If this is null the normal valid values in the documentation for SizeOptionsRequest are used, otherwise only these values (in GB) are permitted. - `transfer_cost_per_additional_gigabyte` (Number) The additional cost per GB per month for additional included transfer. -- `transfer_max` (Number) The maximum transfer in TB permitted for this size. +- `transfer_max` (Number) The maximum transfer in TB permitted for this size. If this is the same as `transfer` no additional transfer is supported. - `weekly_backups` (Number) The number of weekly backups included in the base size cost. diff --git a/internal/binarylane/client_gen.go b/internal/binarylane/client_gen.go index 387d28b..21ffab7 100644 --- a/internal/binarylane/client_gen.go +++ b/internal/binarylane/client_gen.go @@ -1,6 +1,6 @@ // Package binarylane provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT. package binarylane import ( @@ -2778,7 +2778,7 @@ func NewGetAccountKeysRequest(server string, params *GetAccountKeysParams) (*htt if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -2794,7 +2794,7 @@ func NewGetAccountKeysRequest(server string, params *GetAccountKeysParams) (*htt if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -2865,7 +2865,7 @@ func NewDeleteAccountKeysKeyIdRequest(server string, keyId int) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "key_id", runtime.ParamLocationPath, keyId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "key_id", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -2899,7 +2899,7 @@ func NewGetAccountKeysKeyIdRequest(server string, keyId int) (*http.Request, err var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "key_id", runtime.ParamLocationPath, keyId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "key_id", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -2944,7 +2944,7 @@ func NewPutAccountKeysKeyIdRequestWithBody(server string, keyId int, contentType var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "key_id", runtime.ParamLocationPath, keyId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "key_id", keyId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: ""}) if err != nil { return nil, err } @@ -2998,7 +2998,7 @@ func NewGetActionsRequest(server string, params *GetActionsParams) (*http.Reques if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3014,7 +3014,7 @@ func NewGetActionsRequest(server string, params *GetActionsParams) (*http.Reques if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3045,7 +3045,7 @@ func NewGetActionsActionIdRequest(server string, actionId int64) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "action_id", runtime.ParamLocationPath, actionId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "action_id", actionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -3090,7 +3090,7 @@ func NewPostActionsActionIdProceedRequestWithBody(server string, actionId int64, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "action_id", runtime.ParamLocationPath, actionId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "action_id", actionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -3171,7 +3171,7 @@ func NewGetCustomersMyInvoicesRequest(server string, params *GetCustomersMyInvoi if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3187,7 +3187,7 @@ func NewGetCustomersMyInvoicesRequest(server string, params *GetCustomersMyInvoi if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3218,7 +3218,7 @@ func NewGetCustomersMyInvoicesInvoiceIdRequest(server string, invoiceId int64) ( var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "invoice_id", runtime.ParamLocationPath, invoiceId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "invoice_id", invoiceId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -3297,7 +3297,7 @@ func NewGetDataUsagesCurrentRequest(server string, params *GetDataUsagesCurrentP if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3313,7 +3313,7 @@ func NewGetDataUsagesCurrentRequest(server string, params *GetDataUsagesCurrentP if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3344,7 +3344,7 @@ func NewGetDataUsagesServerIdCurrentRequest(server string, serverId int64) (*htt var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -3396,7 +3396,7 @@ func NewGetDomainsRequest(server string, params *GetDomainsParams) (*http.Reques if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3412,7 +3412,7 @@ func NewGetDomainsRequest(server string, params *GetDomainsParams) (*http.Reques if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3552,7 +3552,7 @@ func NewDeleteDomainsDomainNameRequest(server string, domainName struct { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "domain_name", runtime.ParamLocationPath, domainName) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain_name", domainName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -3588,7 +3588,7 @@ func NewGetDomainsDomainNameRequest(server string, domainName struct { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "domain_name", runtime.ParamLocationPath, domainName) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain_name", domainName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -3624,7 +3624,7 @@ func NewGetDomainsDomainNameRecordsRequest(server string, domainName struct { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "domain_name", runtime.ParamLocationPath, domainName) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain_name", domainName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -3649,7 +3649,7 @@ func NewGetDomainsDomainNameRecordsRequest(server string, domainName struct { if params.Type != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3665,7 +3665,7 @@ func NewGetDomainsDomainNameRecordsRequest(server string, domainName struct { if params.Name != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "name", runtime.ParamLocationQuery, *params.Name); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "name", *params.Name, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3681,7 +3681,7 @@ func NewGetDomainsDomainNameRecordsRequest(server string, domainName struct { if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3697,7 +3697,7 @@ func NewGetDomainsDomainNameRecordsRequest(server string, domainName struct { if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3743,7 +3743,7 @@ func NewPostDomainsDomainNameRecordsRequestWithBody(server string, domainName st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "domain_name", runtime.ParamLocationPath, domainName) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain_name", domainName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -3781,14 +3781,14 @@ func NewDeleteDomainsDomainNameRecordsRecordIdRequest(server string, domainName var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "domain_name", runtime.ParamLocationPath, domainName) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain_name", domainName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "record_id", runtime.ParamLocationPath, recordId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "record_id", recordId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -3824,14 +3824,14 @@ func NewGetDomainsDomainNameRecordsRecordIdRequest(server string, domainName str var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "domain_name", runtime.ParamLocationPath, domainName) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain_name", domainName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "record_id", runtime.ParamLocationPath, recordId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "record_id", recordId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -3880,14 +3880,14 @@ func NewPutDomainsDomainNameRecordsRecordIdRequestWithBody(server string, domain var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "domain_name", runtime.ParamLocationPath, domainName) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "domain_name", domainName, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "record_id", runtime.ParamLocationPath, recordId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "record_id", recordId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -3941,7 +3941,7 @@ func NewGetImagesRequest(server string, params *GetImagesParams) (*http.Request, if params.Type != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "type", runtime.ParamLocationQuery, *params.Type); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "type", *params.Type, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3957,7 +3957,7 @@ func NewGetImagesRequest(server string, params *GetImagesParams) (*http.Request, if params.Private != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "private", runtime.ParamLocationQuery, *params.Private); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "private", *params.Private, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "boolean", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3973,7 +3973,7 @@ func NewGetImagesRequest(server string, params *GetImagesParams) (*http.Request, if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -3989,7 +3989,7 @@ func NewGetImagesRequest(server string, params *GetImagesParams) (*http.Request, if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4022,7 +4022,7 @@ func NewGetImagesImageIdOrSlugRequest(server string, imageIdOrSlug struct { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "image_id_or_slug", runtime.ParamLocationPath, imageIdOrSlug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "image_id_or_slug", imageIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -4056,7 +4056,7 @@ func NewGetImagesImageIdDownloadRequest(server string, imageId int64) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "image_id", runtime.ParamLocationPath, imageId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "image_id", imageId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4108,7 +4108,7 @@ func NewGetLoadBalancersRequest(server string, params *GetLoadBalancersParams) ( if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4124,7 +4124,7 @@ func NewGetLoadBalancersRequest(server string, params *GetLoadBalancersParams) ( if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4222,7 +4222,7 @@ func NewDeleteLoadBalancersLoadBalancerIdRequest(server string, loadBalancerId i var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "load_balancer_id", runtime.ParamLocationPath, loadBalancerId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "load_balancer_id", loadBalancerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4256,7 +4256,7 @@ func NewGetLoadBalancersLoadBalancerIdRequest(server string, loadBalancerId int6 var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "load_balancer_id", runtime.ParamLocationPath, loadBalancerId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "load_balancer_id", loadBalancerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4301,7 +4301,7 @@ func NewPutLoadBalancersLoadBalancerIdRequestWithBody(server string, loadBalance var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "load_balancer_id", runtime.ParamLocationPath, loadBalancerId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "load_balancer_id", loadBalancerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4348,7 +4348,7 @@ func NewDeleteLoadBalancersLoadBalancerIdForwardingRulesRequestWithBody(server s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "load_balancer_id", runtime.ParamLocationPath, loadBalancerId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "load_balancer_id", loadBalancerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4395,7 +4395,7 @@ func NewPostLoadBalancersLoadBalancerIdForwardingRulesRequestWithBody(server str var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "load_balancer_id", runtime.ParamLocationPath, loadBalancerId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "load_balancer_id", loadBalancerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4442,7 +4442,7 @@ func NewDeleteLoadBalancersLoadBalancerIdServersRequestWithBody(server string, l var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "load_balancer_id", runtime.ParamLocationPath, loadBalancerId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "load_balancer_id", loadBalancerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4489,7 +4489,7 @@ func NewPostLoadBalancersLoadBalancerIdServersRequestWithBody(server string, loa var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "load_balancer_id", runtime.ParamLocationPath, loadBalancerId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "load_balancer_id", loadBalancerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4543,7 +4543,7 @@ func NewGetRegionsRequest(server string, params *GetRegionsParams) (*http.Reques if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4559,7 +4559,7 @@ func NewGetRegionsRequest(server string, params *GetRegionsParams) (*http.Reques if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4608,7 +4608,7 @@ func NewGetReverseNamesIpv6Request(server string, params *GetReverseNamesIpv6Par if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4624,7 +4624,7 @@ func NewGetReverseNamesIpv6Request(server string, params *GetReverseNamesIpv6Par if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4695,7 +4695,7 @@ func NewGetSamplesetsServerIdRequest(server string, serverId int64, params *GetS var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4720,7 +4720,7 @@ func NewGetSamplesetsServerIdRequest(server string, serverId int64, params *GetS if params.DataInterval != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data_interval", runtime.ParamLocationQuery, *params.DataInterval); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "data_interval", *params.DataInterval, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4736,7 +4736,7 @@ func NewGetSamplesetsServerIdRequest(server string, serverId int64, params *GetS if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "start", *params.Start, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4752,7 +4752,7 @@ func NewGetSamplesetsServerIdRequest(server string, serverId int64, params *GetS if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "end", *params.End, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: "date-time"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4768,7 +4768,7 @@ func NewGetSamplesetsServerIdRequest(server string, serverId int64, params *GetS if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4784,7 +4784,7 @@ func NewGetSamplesetsServerIdRequest(server string, serverId int64, params *GetS if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4815,7 +4815,7 @@ func NewGetSamplesetsServerIdLatestRequest(server string, serverId int64, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -4840,7 +4840,7 @@ func NewGetSamplesetsServerIdLatestRequest(server string, serverId int64, params if params.DataInterval != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data_interval", runtime.ParamLocationQuery, *params.DataInterval); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "data_interval", *params.DataInterval, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4889,7 +4889,7 @@ func NewGetServersRequest(server string, params *GetServersParams) (*http.Reques if params.Hostname != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "hostname", runtime.ParamLocationQuery, *params.Hostname); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "hostname", *params.Hostname, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4905,7 +4905,7 @@ func NewGetServersRequest(server string, params *GetServersParams) (*http.Reques if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -4921,7 +4921,7 @@ func NewGetServersRequest(server string, params *GetServersParams) (*http.Reques if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -5019,7 +5019,7 @@ func NewDeleteServersServerIdRequest(server string, serverId int64, params *Dele var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5044,7 +5044,7 @@ func NewDeleteServersServerIdRequest(server string, serverId int64, params *Dele if params.Reason != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "reason", runtime.ParamLocationQuery, *params.Reason); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "reason", *params.Reason, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -5075,7 +5075,7 @@ func NewGetServersServerIdRequest(server string, serverId int64) (*http.Request, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5109,7 +5109,7 @@ func NewGetServersServerIdActionsRequest(server string, serverId int64, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5134,7 +5134,7 @@ func NewGetServersServerIdActionsRequest(server string, serverId int64, params * if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -5150,7 +5150,7 @@ func NewGetServersServerIdActionsRequest(server string, serverId int64, params * if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -5192,7 +5192,7 @@ func NewPostServersServerIdActionsRequestWithBody(server string, serverId int64, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5239,7 +5239,7 @@ func NewPostServersServerIdActionsAddDiskRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5286,7 +5286,7 @@ func NewPostServersServerIdActionsAttachBackupRequestWithBody(server string, ser var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5333,7 +5333,7 @@ func NewPostServersServerIdActionsChangeAdvancedFeaturesRequestWithBody(server s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5380,7 +5380,7 @@ func NewPostServersServerIdActionsChangeAdvancedFirewallRulesRequestWithBody(ser var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5427,7 +5427,7 @@ func NewPostServersServerIdActionsChangeBackupScheduleRequestWithBody(server str var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5474,7 +5474,7 @@ func NewPostServersServerIdActionsChangeIpv6RequestWithBody(server string, serve var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5521,7 +5521,7 @@ func NewPostServersServerIdActionsChangeIpv6ReverseNameserversRequestWithBody(se var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5568,7 +5568,7 @@ func NewPostServersServerIdActionsChangeKernelRequestWithBody(server string, ser var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5615,7 +5615,7 @@ func NewPostServersServerIdActionsChangeManageOffsiteBackupCopiesRequestWithBody var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5662,7 +5662,7 @@ func NewPostServersServerIdActionsChangeNetworkRequestWithBody(server string, se var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5709,7 +5709,7 @@ func NewPostServersServerIdActionsChangeOffsiteBackupLocationRequestWithBody(ser var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5756,7 +5756,7 @@ func NewPostServersServerIdActionsChangePartnerRequestWithBody(server string, se var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5803,7 +5803,7 @@ func NewPostServersServerIdActionsChangePortBlockingRequestWithBody(server strin var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5850,7 +5850,7 @@ func NewPostServersServerIdActionsChangeRegionRequestWithBody(server string, ser var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5897,7 +5897,7 @@ func NewPostServersServerIdActionsChangeReverseNameRequestWithBody(server string var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5944,7 +5944,7 @@ func NewPostServersServerIdActionsChangeSeparatePrivateNetworkInterfaceRequestWi var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -5991,7 +5991,7 @@ func NewPostServersServerIdActionsChangeSourceAndDestinationCheckRequestWithBody var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6038,7 +6038,7 @@ func NewPostServersServerIdActionsChangeThresholdAlertsRequestWithBody(server st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6085,7 +6085,7 @@ func NewPostServersServerIdActionsChangeVpcIpv4RequestWithBody(server string, se var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6132,7 +6132,7 @@ func NewPostServersServerIdActionsCloneUsingBackupRequestWithBody(server string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6179,7 +6179,7 @@ func NewPostServersServerIdActionsDeleteDiskRequestWithBody(server string, serve var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6226,7 +6226,7 @@ func NewPostServersServerIdActionsDetachBackupRequestWithBody(server string, ser var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6273,7 +6273,7 @@ func NewPostServersServerIdActionsDisableBackupsRequestWithBody(server string, s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6320,7 +6320,7 @@ func NewPostServersServerIdActionsDisableSelinuxRequestWithBody(server string, s var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6367,7 +6367,7 @@ func NewPostServersServerIdActionsEnableBackupsRequestWithBody(server string, se var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6414,7 +6414,7 @@ func NewPostServersServerIdActionsEnableIpv6RequestWithBody(server string, serve var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6461,7 +6461,7 @@ func NewPostServersServerIdActionsIsRunningRequestWithBody(server string, server var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6508,7 +6508,7 @@ func NewPostServersServerIdActionsPasswordResetRequestWithBody(server string, se var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6555,7 +6555,7 @@ func NewPostServersServerIdActionsPingRequestWithBody(server string, serverId in var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6602,7 +6602,7 @@ func NewPostServersServerIdActionsPowerCycleRequestWithBody(server string, serve var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6649,7 +6649,7 @@ func NewPostServersServerIdActionsPowerOffRequestWithBody(server string, serverI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6696,7 +6696,7 @@ func NewPostServersServerIdActionsPowerOnRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6743,7 +6743,7 @@ func NewPostServersServerIdActionsRebootRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6790,7 +6790,7 @@ func NewPostServersServerIdActionsRebuildRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6837,7 +6837,7 @@ func NewPostServersServerIdActionsRenameRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6884,7 +6884,7 @@ func NewPostServersServerIdActionsResizeRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6931,7 +6931,7 @@ func NewPostServersServerIdActionsResizeDiskRequestWithBody(server string, serve var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -6978,7 +6978,7 @@ func NewPostServersServerIdActionsRestoreRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7025,7 +7025,7 @@ func NewPostServersServerIdActionsShutdownRequestWithBody(server string, serverI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7072,7 +7072,7 @@ func NewPostServersServerIdActionsTakeBackupRequestWithBody(server string, serve var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7119,7 +7119,7 @@ func NewPostServersServerIdActionsUncancelRequestWithBody(server string, serverI var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7166,7 +7166,7 @@ func NewPostServersServerIdActionsUptimeRequestWithBody(server string, serverId var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7202,14 +7202,14 @@ func NewGetServersServerIdActionsActionIdRequest(server string, serverId int64, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } var pathParam1 string - pathParam1, err = runtime.StyleParamWithLocation("simple", false, "action_id", runtime.ParamLocationPath, actionId) + pathParam1, err = runtime.StyleParamWithOptions("simple", false, "action_id", actionId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7243,7 +7243,7 @@ func NewGetServersServerIdAdvancedFirewallRulesRequest(server string, serverId i var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7277,7 +7277,7 @@ func NewGetServersServerIdAvailableAdvancedFeaturesRequest(server string, server var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7311,7 +7311,7 @@ func NewGetServersServerIdBackupsRequest(server string, serverId int64, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7336,7 +7336,7 @@ func NewGetServersServerIdBackupsRequest(server string, serverId int64, params * if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7352,7 +7352,7 @@ func NewGetServersServerIdBackupsRequest(server string, serverId int64, params * if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7394,7 +7394,7 @@ func NewPostServersServerIdBackupsRequestWithBody(server string, serverId int64, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7430,7 +7430,7 @@ func NewGetServersServerIdConsoleRequest(server string, serverId int64) (*http.R var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7464,7 +7464,7 @@ func NewGetServersServerIdKernelsRequest(server string, serverId int64, params * var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7489,7 +7489,7 @@ func NewGetServersServerIdKernelsRequest(server string, serverId int64, params * if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7505,7 +7505,7 @@ func NewGetServersServerIdKernelsRequest(server string, serverId int64, params * if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7536,7 +7536,7 @@ func NewGetServersServerIdSnapshotsRequest(server string, serverId int64, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7561,7 +7561,7 @@ func NewGetServersServerIdSnapshotsRequest(server string, serverId int64, params if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7577,7 +7577,7 @@ func NewGetServersServerIdSnapshotsRequest(server string, serverId int64, params if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7608,7 +7608,7 @@ func NewGetServersServerIdSoftwareRequest(server string, serverId int64, params var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7633,7 +7633,7 @@ func NewGetServersServerIdSoftwareRequest(server string, serverId int64, params if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7649,7 +7649,7 @@ func NewGetServersServerIdSoftwareRequest(server string, serverId int64, params if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7680,7 +7680,7 @@ func NewGetServersServerIdThresholdAlertsRequest(server string, serverId int64) var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7714,7 +7714,7 @@ func NewGetServersServerIdUserDataRequest(server string, serverId int64) (*http. var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "server_id", runtime.ParamLocationPath, serverId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "server_id", serverId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -7766,7 +7766,7 @@ func NewGetSizesRequest(server string, params *GetSizesParams) (*http.Request, e if params.ServerId != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "server_id", runtime.ParamLocationQuery, *params.ServerId); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "server_id", *params.ServerId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int64"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7782,7 +7782,7 @@ func NewGetSizesRequest(server string, params *GetSizesParams) (*http.Request, e if params.Image != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "image", runtime.ParamLocationQuery, *params.Image); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "image", *params.Image, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "string", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7798,7 +7798,7 @@ func NewGetSizesRequest(server string, params *GetSizesParams) (*http.Request, e if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7814,7 +7814,7 @@ func NewGetSizesRequest(server string, params *GetSizesParams) (*http.Request, e if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7863,7 +7863,7 @@ func NewGetSoftwareRequest(server string, params *GetSoftwareParams) (*http.Requ if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7879,7 +7879,7 @@ func NewGetSoftwareRequest(server string, params *GetSoftwareParams) (*http.Requ if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7912,7 +7912,7 @@ func NewGetSoftwareOperatingSystemOperatingSystemIdOrSlugRequest(server string, var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "operating_system_id_or_slug", runtime.ParamLocationPath, operatingSystemIdOrSlug) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "operating_system_id_or_slug", operatingSystemIdOrSlug, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "", Format: ""}) if err != nil { return nil, err } @@ -7937,7 +7937,7 @@ func NewGetSoftwareOperatingSystemOperatingSystemIdOrSlugRequest(server string, if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7953,7 +7953,7 @@ func NewGetSoftwareOperatingSystemOperatingSystemIdOrSlugRequest(server string, if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -7984,7 +7984,7 @@ func NewGetSoftwareSoftwareIdRequest(server string, softwareId int64) (*http.Req var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "software_id", runtime.ParamLocationPath, softwareId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "software_id", softwareId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -8036,7 +8036,7 @@ func NewGetVpcsRequest(server string, params *GetVpcsParams) (*http.Request, err if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -8052,7 +8052,7 @@ func NewGetVpcsRequest(server string, params *GetVpcsParams) (*http.Request, err if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -8123,7 +8123,7 @@ func NewDeleteVpcsVpcIdRequest(server string, vpcId int64) (*http.Request, error var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "vpc_id", runtime.ParamLocationPath, vpcId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vpc_id", vpcId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -8157,7 +8157,7 @@ func NewGetVpcsVpcIdRequest(server string, vpcId int64) (*http.Request, error) { var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "vpc_id", runtime.ParamLocationPath, vpcId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vpc_id", vpcId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -8202,7 +8202,7 @@ func NewPatchVpcsVpcIdRequestWithBody(server string, vpcId int64, contentType st var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "vpc_id", runtime.ParamLocationPath, vpcId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vpc_id", vpcId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -8249,7 +8249,7 @@ func NewPutVpcsVpcIdRequestWithBody(server string, vpcId int64, contentType stri var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "vpc_id", runtime.ParamLocationPath, vpcId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vpc_id", vpcId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -8285,7 +8285,7 @@ func NewGetVpcsVpcIdMembersRequest(server string, vpcId int64, params *GetVpcsVp var pathParam0 string - pathParam0, err = runtime.StyleParamWithLocation("simple", false, "vpc_id", runtime.ParamLocationPath, vpcId) + pathParam0, err = runtime.StyleParamWithOptions("simple", false, "vpc_id", vpcId, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationPath, Type: "integer", Format: "int64"}) if err != nil { return nil, err } @@ -8310,7 +8310,7 @@ func NewGetVpcsVpcIdMembersRequest(server string, vpcId int64, params *GetVpcsVp if params.ResourceType != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "resource_type", runtime.ParamLocationQuery, *params.ResourceType); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "resource_type", *params.ResourceType, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "", Format: ""}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -8326,7 +8326,7 @@ func NewGetVpcsVpcIdMembersRequest(server string, vpcId int64, params *GetVpcsVp if params.Page != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "page", runtime.ParamLocationQuery, *params.Page); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "page", *params.Page, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err @@ -8342,7 +8342,7 @@ func NewGetVpcsVpcIdMembersRequest(server string, vpcId int64, params *GetVpcsVp if params.PerPage != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "per_page", runtime.ParamLocationQuery, *params.PerPage); err != nil { + if queryFrag, err := runtime.StyleParamWithOptions("form", true, "per_page", *params.PerPage, runtime.StyleParamOptions{ParamLocation: runtime.ParamLocationQuery, Type: "integer", Format: "int32"}); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { return nil, err diff --git a/internal/binarylane/types_gen.go b/internal/binarylane/types_gen.go index bcde4a8..63c01bc 100644 --- a/internal/binarylane/types_gen.go +++ b/internal/binarylane/types_gen.go @@ -1,6 +1,6 @@ // Package binarylane provides primitives to interact with the openapi HTTP API. // -// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT. +// Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT. package binarylane import ( @@ -24,6 +24,22 @@ const ( AccountStatusWarning AccountStatus = "warning" ) +// Valid indicates whether the value is a known member of the AccountStatus enum. +func (e AccountStatus) Valid() bool { + switch e { + case AccountStatusActive: + return true + case AccountStatusIncomplete: + return true + case AccountStatusLocked: + return true + case AccountStatusWarning: + return true + default: + return false + } +} + // Defines values for ActionStatus. const ( Completed ActionStatus = "completed" @@ -31,17 +47,53 @@ const ( InProgress ActionStatus = "in-progress" ) +// Valid indicates whether the value is a known member of the ActionStatus enum. +func (e ActionStatus) Valid() bool { + switch e { + case Completed: + return true + case Errored: + return true + case InProgress: + return true + default: + return false + } +} + // Defines values for AddDiskType. const ( AddDiskTypeAddDisk AddDiskType = "add_disk" ) +// Valid indicates whether the value is a known member of the AddDiskType enum. +func (e AddDiskType) Valid() bool { + switch e { + case AddDiskTypeAddDisk: + return true + default: + return false + } +} + // Defines values for AdvancedFirewallRuleAction. const ( Accept AdvancedFirewallRuleAction = "accept" Drop AdvancedFirewallRuleAction = "drop" ) +// Valid indicates whether the value is a known member of the AdvancedFirewallRuleAction enum. +func (e AdvancedFirewallRuleAction) Valid() bool { + switch e { + case Accept: + return true + case Drop: + return true + default: + return false + } +} + // Defines values for AdvancedFirewallRuleProtocol. const ( All AdvancedFirewallRuleProtocol = "all" @@ -50,11 +102,37 @@ const ( Udp AdvancedFirewallRuleProtocol = "udp" ) +// Valid indicates whether the value is a known member of the AdvancedFirewallRuleProtocol enum. +func (e AdvancedFirewallRuleProtocol) Valid() bool { + switch e { + case All: + return true + case Icmp: + return true + case Tcp: + return true + case Udp: + return true + default: + return false + } +} + // Defines values for AttachBackupType. const ( AttachBackupTypeAttachBackup AttachBackupType = "attach_backup" ) +// Valid indicates whether the value is a known member of the AttachBackupType enum. +func (e AttachBackupType) Valid() bool { + switch e { + case AttachBackupTypeAttachBackup: + return true + default: + return false + } +} + // Defines values for BackupReplacementStrategy. const ( BackupReplacementStrategyNewest BackupReplacementStrategy = "newest" @@ -63,6 +141,22 @@ const ( BackupReplacementStrategySpecified BackupReplacementStrategy = "specified" ) +// Valid indicates whether the value is a known member of the BackupReplacementStrategy enum. +func (e BackupReplacementStrategy) Valid() bool { + switch e { + case BackupReplacementStrategyNewest: + return true + case BackupReplacementStrategyNone: + return true + case BackupReplacementStrategyOldest: + return true + case BackupReplacementStrategySpecified: + return true + default: + return false + } +} + // Defines values for BackupSlot. const ( Daily BackupSlot = "daily" @@ -71,96 +165,292 @@ const ( Weekly BackupSlot = "weekly" ) +// Valid indicates whether the value is a known member of the BackupSlot enum. +func (e BackupSlot) Valid() bool { + switch e { + case Daily: + return true + case Monthly: + return true + case Temporary: + return true + case Weekly: + return true + default: + return false + } +} + // Defines values for ChangeAdvancedFeaturesType. const ( ChangeAdvancedFeaturesTypeChangeAdvancedFeatures ChangeAdvancedFeaturesType = "change_advanced_features" ) +// Valid indicates whether the value is a known member of the ChangeAdvancedFeaturesType enum. +func (e ChangeAdvancedFeaturesType) Valid() bool { + switch e { + case ChangeAdvancedFeaturesTypeChangeAdvancedFeatures: + return true + default: + return false + } +} + // Defines values for ChangeAdvancedFirewallRulesType. const ( ChangeAdvancedFirewallRulesTypeChangeAdvancedFirewallRules ChangeAdvancedFirewallRulesType = "change_advanced_firewall_rules" ) +// Valid indicates whether the value is a known member of the ChangeAdvancedFirewallRulesType enum. +func (e ChangeAdvancedFirewallRulesType) Valid() bool { + switch e { + case ChangeAdvancedFirewallRulesTypeChangeAdvancedFirewallRules: + return true + default: + return false + } +} + // Defines values for ChangeBackupScheduleType. const ( ChangeBackupScheduleTypeChangeBackupSchedule ChangeBackupScheduleType = "change_backup_schedule" ) +// Valid indicates whether the value is a known member of the ChangeBackupScheduleType enum. +func (e ChangeBackupScheduleType) Valid() bool { + switch e { + case ChangeBackupScheduleTypeChangeBackupSchedule: + return true + default: + return false + } +} + // Defines values for ChangeIpv6Type. const ( ChangeIpv6TypeChangeIpv6 ChangeIpv6Type = "change_ipv6" ) +// Valid indicates whether the value is a known member of the ChangeIpv6Type enum. +func (e ChangeIpv6Type) Valid() bool { + switch e { + case ChangeIpv6TypeChangeIpv6: + return true + default: + return false + } +} + // Defines values for ChangeIpv6ReverseNameserversType. const ( ChangeIpv6ReverseNameserversTypeChangeIpv6ReverseNameservers ChangeIpv6ReverseNameserversType = "change_ipv6_reverse_nameservers" ) +// Valid indicates whether the value is a known member of the ChangeIpv6ReverseNameserversType enum. +func (e ChangeIpv6ReverseNameserversType) Valid() bool { + switch e { + case ChangeIpv6ReverseNameserversTypeChangeIpv6ReverseNameservers: + return true + default: + return false + } +} + // Defines values for ChangeKernelType. const ( ChangeKernelTypeChangeKernel ChangeKernelType = "change_kernel" ) +// Valid indicates whether the value is a known member of the ChangeKernelType enum. +func (e ChangeKernelType) Valid() bool { + switch e { + case ChangeKernelTypeChangeKernel: + return true + default: + return false + } +} + // Defines values for ChangeManageOffsiteBackupCopiesType. const ( ChangeManageOffsiteBackupCopiesTypeChangeManageOffsiteBackupCopies ChangeManageOffsiteBackupCopiesType = "change_manage_offsite_backup_copies" ) +// Valid indicates whether the value is a known member of the ChangeManageOffsiteBackupCopiesType enum. +func (e ChangeManageOffsiteBackupCopiesType) Valid() bool { + switch e { + case ChangeManageOffsiteBackupCopiesTypeChangeManageOffsiteBackupCopies: + return true + default: + return false + } +} + // Defines values for ChangeNetworkType. const ( ChangeNetworkTypeChangeNetwork ChangeNetworkType = "change_network" ) +// Valid indicates whether the value is a known member of the ChangeNetworkType enum. +func (e ChangeNetworkType) Valid() bool { + switch e { + case ChangeNetworkTypeChangeNetwork: + return true + default: + return false + } +} + // Defines values for ChangeOffsiteBackupLocationType. const ( ChangeOffsiteBackupLocationTypeChangeOffsiteBackupLocation ChangeOffsiteBackupLocationType = "change_offsite_backup_location" ) +// Valid indicates whether the value is a known member of the ChangeOffsiteBackupLocationType enum. +func (e ChangeOffsiteBackupLocationType) Valid() bool { + switch e { + case ChangeOffsiteBackupLocationTypeChangeOffsiteBackupLocation: + return true + default: + return false + } +} + // Defines values for ChangePartnerType. const ( ChangePartnerTypeChangePartner ChangePartnerType = "change_partner" ) +// Valid indicates whether the value is a known member of the ChangePartnerType enum. +func (e ChangePartnerType) Valid() bool { + switch e { + case ChangePartnerTypeChangePartner: + return true + default: + return false + } +} + // Defines values for ChangePortBlockingType. const ( ChangePortBlockingTypeChangePortBlocking ChangePortBlockingType = "change_port_blocking" ) +// Valid indicates whether the value is a known member of the ChangePortBlockingType enum. +func (e ChangePortBlockingType) Valid() bool { + switch e { + case ChangePortBlockingTypeChangePortBlocking: + return true + default: + return false + } +} + // Defines values for ChangeRegionType. const ( ChangeRegionTypeChangeRegion ChangeRegionType = "change_region" ) +// Valid indicates whether the value is a known member of the ChangeRegionType enum. +func (e ChangeRegionType) Valid() bool { + switch e { + case ChangeRegionTypeChangeRegion: + return true + default: + return false + } +} + // Defines values for ChangeReverseNameType. const ( ChangeReverseNameTypeChangeReverseName ChangeReverseNameType = "change_reverse_name" ) +// Valid indicates whether the value is a known member of the ChangeReverseNameType enum. +func (e ChangeReverseNameType) Valid() bool { + switch e { + case ChangeReverseNameTypeChangeReverseName: + return true + default: + return false + } +} + // Defines values for ChangeSeparatePrivateNetworkInterfaceType. const ( ChangeSeparatePrivateNetworkInterfaceTypeChangeSeparatePrivateNetworkInterface ChangeSeparatePrivateNetworkInterfaceType = "change_separate_private_network_interface" ) +// Valid indicates whether the value is a known member of the ChangeSeparatePrivateNetworkInterfaceType enum. +func (e ChangeSeparatePrivateNetworkInterfaceType) Valid() bool { + switch e { + case ChangeSeparatePrivateNetworkInterfaceTypeChangeSeparatePrivateNetworkInterface: + return true + default: + return false + } +} + // Defines values for ChangeSourceAndDestinationCheckType. const ( ChangeSourceAndDestinationCheckTypeChangeSourceAndDestinationCheck ChangeSourceAndDestinationCheckType = "change_source_and_destination_check" ) +// Valid indicates whether the value is a known member of the ChangeSourceAndDestinationCheckType enum. +func (e ChangeSourceAndDestinationCheckType) Valid() bool { + switch e { + case ChangeSourceAndDestinationCheckTypeChangeSourceAndDestinationCheck: + return true + default: + return false + } +} + // Defines values for ChangeThresholdAlertsType. const ( ChangeThresholdAlertsTypeChangeThresholdAlerts ChangeThresholdAlertsType = "change_threshold_alerts" ) +// Valid indicates whether the value is a known member of the ChangeThresholdAlertsType enum. +func (e ChangeThresholdAlertsType) Valid() bool { + switch e { + case ChangeThresholdAlertsTypeChangeThresholdAlerts: + return true + default: + return false + } +} + // Defines values for ChangeVpcIpv4Type. const ( ChangeVpcIpv4TypeChangeVpcIpv4 ChangeVpcIpv4Type = "change_vpc_ipv4" ) +// Valid indicates whether the value is a known member of the ChangeVpcIpv4Type enum. +func (e ChangeVpcIpv4Type) Valid() bool { + switch e { + case ChangeVpcIpv4TypeChangeVpcIpv4: + return true + default: + return false + } +} + // Defines values for CloneUsingBackupType. const ( CloneUsingBackupTypeCloneUsingBackup CloneUsingBackupType = "clone_using_backup" ) +// Valid indicates whether the value is a known member of the CloneUsingBackupType enum. +func (e CloneUsingBackupType) Valid() bool { + switch e { + case CloneUsingBackupTypeCloneUsingBackup: + return true + default: + return false + } +} + // Defines values for DataInterval. const ( Day DataInterval = "day" @@ -171,26 +461,86 @@ const ( Week DataInterval = "week" ) +// Valid indicates whether the value is a known member of the DataInterval enum. +func (e DataInterval) Valid() bool { + switch e { + case Day: + return true + case FiveMinute: + return true + case FourHour: + return true + case HalfHour: + return true + case Month: + return true + case Week: + return true + default: + return false + } +} + // Defines values for DeleteDiskType. const ( DeleteDiskTypeDeleteDisk DeleteDiskType = "delete_disk" ) +// Valid indicates whether the value is a known member of the DeleteDiskType enum. +func (e DeleteDiskType) Valid() bool { + switch e { + case DeleteDiskTypeDeleteDisk: + return true + default: + return false + } +} + // Defines values for DetachBackupType. const ( DetachBackupTypeDetachBackup DetachBackupType = "detach_backup" ) +// Valid indicates whether the value is a known member of the DetachBackupType enum. +func (e DetachBackupType) Valid() bool { + switch e { + case DetachBackupTypeDetachBackup: + return true + default: + return false + } +} + // Defines values for DisableBackupsType. const ( DisableBackupsTypeDisableBackups DisableBackupsType = "disable_backups" ) +// Valid indicates whether the value is a known member of the DisableBackupsType enum. +func (e DisableBackupsType) Valid() bool { + switch e { + case DisableBackupsTypeDisableBackups: + return true + default: + return false + } +} + // Defines values for DisableSelinuxType. const ( DisableSelinuxTypeDisableSelinux DisableSelinuxType = "disable_selinux" ) +// Valid indicates whether the value is a known member of the DisableSelinuxType enum. +func (e DisableSelinuxType) Valid() bool { + switch e { + case DisableSelinuxTypeDisableSelinux: + return true + default: + return false + } +} + // Defines values for DistributionFeature. const ( DistributionFeatureRemoteDesktop DistributionFeature = "remote-desktop" @@ -198,6 +548,20 @@ const ( DistributionFeatureUserData DistributionFeature = "user-data" ) +// Valid indicates whether the value is a known member of the DistributionFeature enum. +func (e DistributionFeature) Valid() bool { + switch e { + case DistributionFeatureRemoteDesktop: + return true + case DistributionFeatureSsh: + return true + case DistributionFeatureUserData: + return true + default: + return false + } +} + // Defines values for DomainRecordType. const ( A DomainRecordType = "A" @@ -211,16 +575,62 @@ const ( TXT DomainRecordType = "TXT" ) +// Valid indicates whether the value is a known member of the DomainRecordType enum. +func (e DomainRecordType) Valid() bool { + switch e { + case A: + return true + case AAAA: + return true + case CAA: + return true + case CNAME: + return true + case MX: + return true + case NS: + return true + case SOA: + return true + case SRV: + return true + case TXT: + return true + default: + return false + } +} + // Defines values for EnableBackupsType. const ( EnableBackupsTypeEnableBackups EnableBackupsType = "enable_backups" ) +// Valid indicates whether the value is a known member of the EnableBackupsType enum. +func (e EnableBackupsType) Valid() bool { + switch e { + case EnableBackupsTypeEnableBackups: + return true + default: + return false + } +} + // Defines values for EnableIpv6Type. const ( EnableIpv6TypeEnableIpv6 EnableIpv6Type = "enable_ipv6" ) +// Valid indicates whether the value is a known member of the EnableIpv6Type enum. +func (e EnableIpv6Type) Valid() bool { + switch e { + case EnableIpv6TypeEnableIpv6: + return true + default: + return false + } +} + // Defines values for ImageStatus. const ( Available ImageStatus = "available" @@ -229,6 +639,22 @@ const ( Pending ImageStatus = "pending" ) +// Valid indicates whether the value is a known member of the ImageStatus enum. +func (e ImageStatus) Valid() bool { + switch e { + case Available: + return true + case Deleted: + return true + case NEW: + return true + case Pending: + return true + default: + return false + } +} + // Defines values for ImageType. const ( Backup ImageType = "backup" @@ -236,17 +662,53 @@ const ( Snapshot ImageType = "snapshot" ) +// Valid indicates whether the value is a known member of the ImageType enum. +func (e ImageType) Valid() bool { + switch e { + case Backup: + return true + case Custom: + return true + case Snapshot: + return true + default: + return false + } +} + // Defines values for IsRunningType. const ( IsRunningTypeIsRunning IsRunningType = "is_running" ) +// Valid indicates whether the value is a known member of the IsRunningType enum. +func (e IsRunningType) Valid() bool { + switch e { + case IsRunningTypeIsRunning: + return true + default: + return false + } +} + // Defines values for LoadBalancerRuleProtocol. const ( Http LoadBalancerRuleProtocol = "http" Https LoadBalancerRuleProtocol = "https" ) +// Valid indicates whether the value is a known member of the LoadBalancerRuleProtocol enum. +func (e LoadBalancerRuleProtocol) Valid() bool { + switch e { + case Http: + return true + case Https: + return true + default: + return false + } +} + // Defines values for LoadBalancerStatus. const ( LoadBalancerStatusActive LoadBalancerStatus = "active" @@ -254,12 +716,38 @@ const ( LoadBalancerStatusNew LoadBalancerStatus = "new" ) +// Valid indicates whether the value is a known member of the LoadBalancerStatus enum. +func (e LoadBalancerStatus) Valid() bool { + switch e { + case LoadBalancerStatusActive: + return true + case LoadBalancerStatusErrored: + return true + case LoadBalancerStatusNew: + return true + default: + return false + } +} + // Defines values for NetworkType. const ( Private NetworkType = "private" Public NetworkType = "public" ) +// Valid indicates whether the value is a known member of the NetworkType enum. +func (e NetworkType) Valid() bool { + switch e { + case Private: + return true + case Public: + return true + default: + return false + } +} + // Defines values for PasswordRecoveryType. const ( Manual PasswordRecoveryType = "manual" @@ -268,62 +756,190 @@ const ( OnlineChange PasswordRecoveryType = "online-change" ) +// Valid indicates whether the value is a known member of the PasswordRecoveryType enum. +func (e PasswordRecoveryType) Valid() bool { + switch e { + case Manual: + return true + case OfflineChange: + return true + case OfflineClear: + return true + case OnlineChange: + return true + default: + return false + } +} + // Defines values for PasswordResetType. const ( PasswordResetTypePasswordReset PasswordResetType = "password_reset" ) +// Valid indicates whether the value is a known member of the PasswordResetType enum. +func (e PasswordResetType) Valid() bool { + switch e { + case PasswordResetTypePasswordReset: + return true + default: + return false + } +} + // Defines values for PaymentMethod. const ( CreditCard PaymentMethod = "credit-card" Paypal PaymentMethod = "paypal" ) +// Valid indicates whether the value is a known member of the PaymentMethod enum. +func (e PaymentMethod) Valid() bool { + switch e { + case CreditCard: + return true + case Paypal: + return true + default: + return false + } +} + // Defines values for PingType. const ( PingTypePing PingType = "ping" ) +// Valid indicates whether the value is a known member of the PingType enum. +func (e PingType) Valid() bool { + switch e { + case PingTypePing: + return true + default: + return false + } +} + // Defines values for PowerCycleType. const ( PowerCycleTypePowerCycle PowerCycleType = "power_cycle" ) +// Valid indicates whether the value is a known member of the PowerCycleType enum. +func (e PowerCycleType) Valid() bool { + switch e { + case PowerCycleTypePowerCycle: + return true + default: + return false + } +} + // Defines values for PowerOffType. const ( PowerOffTypePowerOff PowerOffType = "power_off" ) +// Valid indicates whether the value is a known member of the PowerOffType enum. +func (e PowerOffType) Valid() bool { + switch e { + case PowerOffTypePowerOff: + return true + default: + return false + } +} + // Defines values for PowerOnType. const ( PowerOnTypePowerOn PowerOnType = "power_on" ) +// Valid indicates whether the value is a known member of the PowerOnType enum. +func (e PowerOnType) Valid() bool { + switch e { + case PowerOnTypePowerOn: + return true + default: + return false + } +} + // Defines values for RebootType. const ( RebootTypeReboot RebootType = "reboot" ) +// Valid indicates whether the value is a known member of the RebootType enum. +func (e RebootType) Valid() bool { + switch e { + case RebootTypeReboot: + return true + default: + return false + } +} + // Defines values for RebuildType. const ( RebuildTypeRebuild RebuildType = "rebuild" ) +// Valid indicates whether the value is a known member of the RebuildType enum. +func (e RebuildType) Valid() bool { + switch e { + case RebuildTypeRebuild: + return true + default: + return false + } +} + // Defines values for RenameType. const ( RenameTypeRename RenameType = "rename" ) +// Valid indicates whether the value is a known member of the RenameType enum. +func (e RenameType) Valid() bool { + switch e { + case RenameTypeRename: + return true + default: + return false + } +} + // Defines values for ResizeType. const ( ResizeTypeResize ResizeType = "resize" ) +// Valid indicates whether the value is a known member of the ResizeType enum. +func (e ResizeType) Valid() bool { + switch e { + case ResizeTypeResize: + return true + default: + return false + } +} + // Defines values for ResizeDiskType. const ( ResizeDiskTypeResizeDisk ResizeDiskType = "resize_disk" ) +// Valid indicates whether the value is a known member of the ResizeDiskType enum. +func (e ResizeDiskType) Valid() bool { + switch e { + case ResizeDiskTypeResizeDisk: + return true + default: + return false + } +} + // Defines values for ResourceType. const ( ResourceTypeImage ResourceType = "image" @@ -334,11 +950,41 @@ const ( ResourceTypeVpc ResourceType = "vpc" ) +// Valid indicates whether the value is a known member of the ResourceType enum. +func (e ResourceType) Valid() bool { + switch e { + case ResourceTypeImage: + return true + case ResourceTypeLoadBalancer: + return true + case ResourceTypeRegisteredDomainName: + return true + case ResourceTypeServer: + return true + case ResourceTypeSshKey: + return true + case ResourceTypeVpc: + return true + default: + return false + } +} + // Defines values for RestoreType. const ( RestoreTypeRestore RestoreType = "restore" ) +// Valid indicates whether the value is a known member of the RestoreType enum. +func (e RestoreType) Valid() bool { + switch e { + case RestoreTypeRestore: + return true + default: + return false + } +} + // Defines values for ServerStatus. const ( Active ServerStatus = "active" @@ -347,22 +993,70 @@ const ( Off ServerStatus = "off" ) +// Valid indicates whether the value is a known member of the ServerStatus enum. +func (e ServerStatus) Valid() bool { + switch e { + case Active: + return true + case Archive: + return true + case New: + return true + case Off: + return true + default: + return false + } +} + // Defines values for ShutdownType. const ( ShutdownTypeShutdown ShutdownType = "shutdown" ) +// Valid indicates whether the value is a known member of the ShutdownType enum. +func (e ShutdownType) Valid() bool { + switch e { + case ShutdownTypeShutdown: + return true + default: + return false + } +} + // Defines values for TakeBackupType. const ( TakeBackupTypeTakeBackup TakeBackupType = "take_backup" ) +// Valid indicates whether the value is a known member of the TakeBackupType enum. +func (e TakeBackupType) Valid() bool { + switch e { + case TakeBackupTypeTakeBackup: + return true + default: + return false + } +} + // Defines values for TaxCodeType. const ( TaxCodeTypeNone TaxCodeType = "none" TaxCodeTypeScalar TaxCodeType = "scalar" ) +// Valid indicates whether the value is a known member of the TaxCodeType enum. +func (e TaxCodeType) Valid() bool { + switch e { + case TaxCodeTypeNone: + return true + case TaxCodeTypeScalar: + return true + default: + return false + } +} + // Defines values for ThresholdAlertType. const ( Cpu ThresholdAlertType = "cpu" @@ -374,22 +1068,76 @@ const ( StorageUsed ThresholdAlertType = "storage-used" ) +// Valid indicates whether the value is a known member of the ThresholdAlertType enum. +func (e ThresholdAlertType) Valid() bool { + switch e { + case Cpu: + return true + case DataTransferUsed: + return true + case MemoryUsed: + return true + case NetworkIncoming: + return true + case NetworkOutgoing: + return true + case StorageRequests: + return true + case StorageUsed: + return true + default: + return false + } +} + // Defines values for UncancelType. const ( UncancelTypeUncancel UncancelType = "uncancel" ) +// Valid indicates whether the value is a known member of the UncancelType enum. +func (e UncancelType) Valid() bool { + switch e { + case UncancelTypeUncancel: + return true + default: + return false + } +} + // Defines values for UptimeType. const ( UptimeTypeUptime UptimeType = "uptime" ) +// Valid indicates whether the value is a known member of the UptimeType enum. +func (e UptimeType) Valid() bool { + switch e { + case UptimeTypeUptime: + return true + default: + return false + } +} + // Defines values for UserInteractionType. const ( AllowUncleanPowerOff UserInteractionType = "allow-unclean-power-off" ContinueAfterPingFailure UserInteractionType = "continue-after-ping-failure" ) +// Valid indicates whether the value is a known member of the UserInteractionType enum. +func (e UserInteractionType) Valid() bool { + switch e { + case AllowUncleanPowerOff: + return true + case ContinueAfterPingFailure: + return true + default: + return false + } +} + // Defines values for VideoDevice. const ( CirrusLogic VideoDevice = "cirrus-logic" @@ -398,6 +1146,22 @@ const ( VirtioWide VideoDevice = "virtio-wide" ) +// Valid indicates whether the value is a known member of the VideoDevice enum. +func (e VideoDevice) Valid() bool { + switch e { + case CirrusLogic: + return true + case Standard: + return true + case Virtio: + return true + case VirtioWide: + return true + default: + return false + } +} + // Defines values for VmMachineType. const ( PcI440fx1point5 VmMachineType = "pc_i440fx_1point5" @@ -410,6 +1174,30 @@ const ( PcI440fx8point2 VmMachineType = "pc_i440fx_8point2" ) +// Valid indicates whether the value is a known member of the VmMachineType enum. +func (e VmMachineType) Valid() bool { + switch e { + case PcI440fx1point5: + return true + case PcI440fx2point11: + return true + case PcI440fx4point1: + return true + case PcI440fx4point2: + return true + case PcI440fx5point0: + return true + case PcI440fx5point1: + return true + case PcI440fx7point2: + return true + case PcI440fx8point2: + return true + default: + return false + } +} + // Account defines model for Account. type Account struct { // AdditionalIpv4Limit The maximum additional IPv4 addresses this account may assign across all servers. You may contact support to request this limit be increased. @@ -459,10 +1247,10 @@ type AccountStatus string // Action defines model for Action. type Action struct { // BlockingInvoiceId If this Action is currently blocked by an invoice that requires payment this property will be set. - BlockingInvoiceId *int64 `json:"blocking_invoice_id"` + BlockingInvoiceId *int64 `json:"blocking_invoice_id,omitempty"` // CompletedAt The timestamp in ISO8601 format of when processing of this action completed. If this value is null the action is currently in progress. - CompletedAt *time.Time `json:"completed_at"` + CompletedAt *time.Time `json:"completed_at,omitempty"` // Id The ID of this action. Id int64 `json:"id"` @@ -471,13 +1259,13 @@ type Action struct { Progress ActionProgress `json:"progress"` // Region The region (if any) of the resource associated with this action. - Region *Region `json:"region"` + Region *Region `json:"region,omitempty"` // RegionSlug The region slug (if any) of the resource associated with this action. - RegionSlug *string `json:"region_slug"` + RegionSlug *string `json:"region_slug,omitempty"` // ResourceId The resource id of the resource (if any) associated with this action. - ResourceId *int64 `json:"resource_id"` + ResourceId *int64 `json:"resource_id,omitempty"` // ResourceType The resource type (if any) associated with this action. // @@ -490,10 +1278,10 @@ type Action struct { // | image | Backup or Operating System Image | // | registered-domain-name | Registered Domain Name | // - ResourceType *ResourceType `json:"resource_type"` + ResourceType *ResourceType `json:"resource_type,omitempty"` // ResultData Returned information from a completed action. For example: a successful completed 'uptime' action will have the uptime value in this field. - ResultData *string `json:"result_data"` + ResultData *string `json:"result_data,omitempty"` // StartedAt The timestamp in ISO8601 format of when processing of this action started. StartedAt time.Time `json:"started_at"` @@ -503,7 +1291,7 @@ type Action struct { Type string `json:"type"` // UserInteractionRequired If this is not null the action is waiting on a response from the user. - UserInteractionRequired *UserInteractionRequired `json:"user_interaction_required"` + UserInteractionRequired *UserInteractionRequired `json:"user_interaction_required,omitempty"` } // ActionLink defines model for ActionLink. @@ -519,10 +1307,10 @@ type ActionProgress struct { CompletedSteps []string `json:"completed_steps"` // CurrentStep An description of the current action step. - CurrentStep *string `json:"current_step"` + CurrentStep *string `json:"current_step,omitempty"` // CurrentStepDetail Detail about the progress of the current step of the action. For example, when creating an offsite backup this may be populated with the current upload speed and completion ETA of the upload step. - CurrentStepDetail *string `json:"current_step_detail"` + CurrentStepDetail *string `json:"current_step_detail,omitempty"` // PercentComplete An estimation of the overall completion of the action. PercentComplete int32 `json:"percent_complete"` @@ -549,7 +1337,7 @@ type ActionsLinks struct { // ActionsResponse defines model for ActionsResponse. type ActionsResponse struct { Actions []Action `json:"actions"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -558,7 +1346,7 @@ type ActionsResponse struct { // AddDisk Create an Additional Disk for a Server type AddDisk struct { // Description An optional description for the disk. If this is null a default description will be added. Submit an empty string to prevent the default description being added. - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // SizeGigabytes The size of the new disk in GB. The server must have at least this much unallocated storage space. SizeGigabytes int32 `json:"size_gigabytes"` @@ -580,13 +1368,13 @@ type AdvancedFirewallRule struct { Action AdvancedFirewallRuleAction `json:"action" tfsdk:"action"` // Description A description to assist in identifying this rule. Commonly used to record the reason for the rule or the intent behind it, e.g. "Block access to RDP" or "Allow access from HQ". - Description *string `json:"description" tfsdk:"description"` + Description *string `json:"description,omitempty" tfsdk:"description"` // DestinationAddresses The destination addresses to match for this rule. Each address may be an individual IPv4 address or a range in IPv4 CIDR notation. DestinationAddresses []string `json:"destination_addresses" tfsdk:"destination_addresses"` // DestinationPorts The destination ports to match for this rule. Leave null or empty to match on all ports. - DestinationPorts *[]string `json:"destination_ports" tfsdk:"destination_ports"` + DestinationPorts *[]string `json:"destination_ports,omitempty" tfsdk:"destination_ports"` // Protocol The protocol to match for this rule. // @@ -631,13 +1419,13 @@ type AdvancedFirewallRuleRequest struct { Action AdvancedFirewallRuleAction `json:"action" tfsdk:"action"` // Description A description to assist in identifying this rule. Commonly used to record the reason for the rule or the intent behind it, e.g. "Block access to RDP" or "Allow access from HQ". - Description *string `json:"description" tfsdk:"description"` + Description *string `json:"description,omitempty" tfsdk:"description"` // DestinationAddresses The destination addresses to match for this rule. Each address may be an individual IPv4 address or a range in IPv4 CIDR notation. DestinationAddresses []string `json:"destination_addresses" tfsdk:"destination_addresses"` // DestinationPorts The destination ports to match for this rule. Leave null or empty to match on all ports. - DestinationPorts *[]string `json:"destination_ports" tfsdk:"destination_ports"` + DestinationPorts *[]string `json:"destination_ports,omitempty" tfsdk:"destination_ports"` // Protocol The protocol to match for this rule. // @@ -679,12 +1467,12 @@ type AdvancedServerFeatures struct { // | pc_i440fx_7point2 | PC i440FX 7.2 | // | pc_i440fx_8point2 | PC i440FX 8.2 | // - MachineType *VmMachineType `json:"machine_type"` + MachineType *VmMachineType `json:"machine_type,omitempty"` // ProcessorModel The ID of the processor model (and therefore CPU flags) available for this server. // A null value indicates automatic selection of the best processor model supported by the host node. // This does not change the physical CPU, only the CPU flags available to the operating system. - ProcessorModel *int64 `json:"processor_model"` + ProcessorModel *int64 `json:"processor_model,omitempty"` // VideoDevice Video Device // @@ -711,10 +1499,10 @@ type AttachBackupType string // AttachedBackup defines model for AttachedBackup. type AttachedBackup struct { // AttachedAt The date and time in ISO8601 format when this image was attached to the server. - AttachedAt *time.Time `json:"attached_at"` + AttachedAt *time.Time `json:"attached_at,omitempty"` // AttachmentExpires The date and time in ISO8601 format when the backup will be automatically detached unless it is manually detached earlier. - AttachmentExpires *time.Time `json:"attachment_expires"` + AttachmentExpires *time.Time `json:"attachment_expires,omitempty"` // DiskIdentifiers A list of the operating specific disk identifiers for the attached backup disks. DiskIdentifiers []string `json:"disk_identifiers"` @@ -743,7 +1531,7 @@ type AvailableAdvancedServerFeaturesResponse struct { // BackupDisk defines model for BackupDisk. type BackupDisk struct { // Description A description of this disk. - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Id The ID of this backup disk. Id int64 `json:"id"` @@ -795,7 +1583,7 @@ type BackupSettings struct { BackupHourOfDay int32 `json:"backup_hour_of_day"` // OffsiteBackupSettings If offsite backups are enabled this details how they are stored and managed. - OffsiteBackupSettings *OffsiteBackupSettings `json:"offsite_backup_settings"` + OffsiteBackupSettings *OffsiteBackupSettings `json:"offsite_backup_settings,omitempty"` } // BackupSlot @@ -820,7 +1608,7 @@ type BackupWindow struct { // BackupsResponse defines model for BackupsResponse. type BackupsResponse struct { Backups []Image `json:"backups"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -835,7 +1623,7 @@ type Balance struct { Charges []ChargeInformation `json:"charges"` // GeneratedAt The timestamp of the most recent charge. - GeneratedAt *time.Time `json:"generated_at"` + GeneratedAt *time.Time `json:"generated_at,omitempty"` // UnbilledTotal The total of any un-billed charges in AU$. UnbilledTotal float64 `json:"unbilled_total"` @@ -849,13 +1637,13 @@ type BalanceResponse struct { // ChangeAdvancedFeatures Change the Advanced Features of a Server type ChangeAdvancedFeatures struct { // AutomaticMachineType Set to true to use best available machine type. If this is provided the machine_type property must not be provided. - AutomaticMachineType *bool `json:"automatic_machine_type"` + AutomaticMachineType *bool `json:"automatic_machine_type,omitempty"` // AutomaticProcessorModel Set to true to use best available processor model. If this is provided the processor_model property must not be provided. - AutomaticProcessorModel *bool `json:"automatic_processor_model"` + AutomaticProcessorModel *bool `json:"automatic_processor_model,omitempty"` // EnabledAdvancedFeatures Do not provide or set to null to keep existing advanced features. Provide an empty array to disable all advanced features, otherwise provide an array with selected advanced features. If provided, any currently enabled advanced features that aren't included will be disabled. - EnabledAdvancedFeatures *[]string `json:"enabled_advanced_features"` + EnabledAdvancedFeatures *[]string `json:"enabled_advanced_features,omitempty"` // MachineType Do not provide or set to null to keep existing machine type. // @@ -870,10 +1658,10 @@ type ChangeAdvancedFeatures struct { // | pc_i440fx_7point2 | PC i440FX 7.2 | // | pc_i440fx_8point2 | PC i440FX 8.2 | // - MachineType *VmMachineType `json:"machine_type"` + MachineType *VmMachineType `json:"machine_type,omitempty"` // ProcessorModel Do not provide or set to null to keep existing processor model. - ProcessorModel *int64 `json:"processor_model"` + ProcessorModel *int64 `json:"processor_model,omitempty"` Type ChangeAdvancedFeaturesType `json:"type"` // VideoDevice Do not provide or set to null to keep existing video device. @@ -885,7 +1673,7 @@ type ChangeAdvancedFeatures struct { // | virtio | Virtio VGA (800x600) | // | virtio-wide | Virtio VGA (1600x900) | // - VideoDevice *VideoDevice `json:"video_device"` + VideoDevice *VideoDevice `json:"video_device,omitempty"` } // ChangeAdvancedFeaturesType defines model for ChangeAdvancedFeatures.Type. @@ -904,13 +1692,13 @@ type ChangeAdvancedFirewallRulesType string // ChangeBackupSchedule Change the Backup Schedule of a Server type ChangeBackupSchedule struct { // BackupDayOfMonth Do not provide a value to keep the current setting. - BackupDayOfMonth *int32 `json:"backup_day_of_month"` + BackupDayOfMonth *int32 `json:"backup_day_of_month,omitempty"` // BackupDayOfWeek Sunday is 0, Monday is 1 etc. Do not provide a value to keep the current setting. - BackupDayOfWeek *int32 `json:"backup_day_of_week"` + BackupDayOfWeek *int32 `json:"backup_day_of_week,omitempty"` // BackupHourOfDay Do not provide a value to keep the current setting. - BackupHourOfDay *int32 `json:"backup_hour_of_day"` + BackupHourOfDay *int32 `json:"backup_hour_of_day,omitempty"` Type ChangeBackupScheduleType `json:"type"` } @@ -920,10 +1708,10 @@ type ChangeBackupScheduleType string // ChangeImage defines model for ChangeImage. type ChangeImage struct { // Image The slug or ID of the selected image. What type of image is permitted here varies based on the server action. - Image *string `json:"image"` + Image *string `json:"image,omitempty"` // Options Additional options for the server configuration after the image has been changed. - Options *ImageOptions `json:"options"` + Options *ImageOptions `json:"options,omitempty"` } // ChangeIpv6 Enable or Disable IPv6 for a Server @@ -977,7 +1765,7 @@ type ChangeNetwork struct { Type ChangeNetworkType `json:"type"` // VpcId If this is null the server will be moved into the default public network for the server's region. - VpcId *int64 `json:"vpc_id"` + VpcId *int64 `json:"vpc_id,omitempty"` } // ChangeNetworkType defines model for ChangeNetwork.Type. @@ -986,7 +1774,7 @@ type ChangeNetworkType string // ChangeOffsiteBackupLocation Change the Offsite Backup Location of a Server type ChangeOffsiteBackupLocation struct { // OffsiteBackupLocation Do not provide or set to null to use the internal offsite backup location, otherwise this must be a valid Amazon S3 bucket address. If this is provided Amazon will charge your S3 account at their standard rate for every backup stored. - OffsiteBackupLocation *string `json:"offsite_backup_location"` + OffsiteBackupLocation *string `json:"offsite_backup_location,omitempty"` Type ChangeOffsiteBackupLocationType `json:"type"` } @@ -996,7 +1784,7 @@ type ChangeOffsiteBackupLocationType string // ChangePartner Add, Update or Remove a Partner Server for a Server type ChangePartner struct { // PartnerServerId Leave this null to remove the server partnership. The partner server must be in the same region as the target server. - PartnerServerId *int64 `json:"partner_server_id"` + PartnerServerId *int64 `json:"partner_server_id,omitempty"` Type ChangePartnerType `json:"type"` } @@ -1029,7 +1817,7 @@ type ChangeReverseName struct { Ipv4Address string `json:"ipv4_address"` // ReverseName Leave this null to clear the custom reverse name. - ReverseName *string `json:"reverse_name"` + ReverseName *string `json:"reverse_name,omitempty"` Type ChangeReverseNameType `json:"type"` } @@ -1049,7 +1837,7 @@ type ChangeSeparatePrivateNetworkInterfaceType string // ChangeSizeOptionsRequest defines model for ChangeSizeOptionsRequest. type ChangeSizeOptionsRequest struct { // DailyBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - DailyBackups *int32 `json:"daily_backups"` + DailyBackups *int32 `json:"daily_backups,omitempty"` // Disk The total storage in GB for this server. // If specified this is the absolute value, not just the additional storage above what is included in the size. @@ -1059,13 +1847,13 @@ type ChangeSizeOptionsRequest struct { // - must be a multiple of 5 // - > 60GB must be a multiple of 10 // - > 200GB must be a multiple of 100 - Disk *int32 `json:"disk"` + Disk *int32 `json:"disk,omitempty"` // Ipv4Addresses The total count of IPv4 addresses for this server. If specified this is the absolute value, not just the additional IPv4 addresses above what is included in the size. Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. Must not exceed the size.ipv4_addresses_max value. - Ipv4Addresses *int32 `json:"ipv4_addresses"` + Ipv4Addresses *int32 `json:"ipv4_addresses,omitempty"` // Ipv4AddressesToRemove If you are reducing the number of IPv4 addresses you must specify which addresses to remove. If you specify more IPv4 addresses to remove than the number of IPv4 addresses being removed the extra IPv4 addresses will be re-provisioned with new addresses. - Ipv4AddressesToRemove *[]string `json:"ipv4_addresses_to_remove"` + Ipv4AddressesToRemove *[]string `json:"ipv4_addresses_to_remove,omitempty"` // Memory The total memory in MB for this server. // If specified this is the absolute value, not just the additional memory above what is included in the size. @@ -1076,27 +1864,27 @@ type ChangeSizeOptionsRequest struct { // - > 2048MB must be a multiple of 1024 // - > 16384MB must be a multiple of 2048 // - > 24576MB must be a multiple of 4096 - Memory *int32 `json:"memory"` + Memory *int32 `json:"memory,omitempty"` // MonthlyBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - MonthlyBackups *int32 `json:"monthly_backups"` + MonthlyBackups *int32 `json:"monthly_backups,omitempty"` // OffsiteBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - OffsiteBackups *bool `json:"offsite_backups"` + OffsiteBackups *bool `json:"offsite_backups,omitempty"` // Transfer The total transfer per month in TB for this server. // If specified this is the absolute value, not just the additional transfer above what is included in the size. // Leave null to accept the default for the size if this is a new server or a resize to a different base size, or to keep the current value if this a resize with the same base size but different options. // - // Valid values (when converted to GB by multiplying the value provided by 1024): + // Valid values (when converted to GB by multiplying the value provided by 1000): // - must be a multiple of 5GB // - > 30GB must be a multiple of 10 // - > 200GB must be a multiple of 100 // - > 2000GB must be a multiple of 1000 - Transfer *float64 `json:"transfer"` + Transfer *float64 `json:"transfer,omitempty"` // WeeklyBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - WeeklyBackups *int32 `json:"weekly_backups"` + WeeklyBackups *int32 `json:"weekly_backups,omitempty"` } // ChangeSourceAndDestinationCheck Enable or Disable Network Source and Destination Checks for a Server in a VPC @@ -1153,7 +1941,7 @@ type CloneUsingBackup struct { ImageId int64 `json:"image_id"` // Name The new hostname for the target server. If this is not supplied the target server's existing hostname will be used. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // TargetServerId The target server ID. This server's current disks will be wiped and replaced with the selected backup image. TargetServerId int64 `json:"target_server_id"` @@ -1189,19 +1977,19 @@ type ConsoleResponse struct { // CreateLoadBalancerRequest defines model for CreateLoadBalancerRequest. type CreateLoadBalancerRequest struct { // ForwardingRules The rules that control which traffic the load balancer will forward to servers in the pool. Leave null to accept a default "HTTP" only forwarding rule. - ForwardingRules *[]ForwardingRuleRequest `json:"forwarding_rules" tfsdk:"forwarding_rules"` + ForwardingRules *[]ForwardingRuleRequest `json:"forwarding_rules,omitempty" tfsdk:"forwarding_rules"` // HealthCheck The rules that determine which servers are considered 'healthy' and in the server pool for the load balancer. Leave this null to accept appropriate defaults based on the forwarding_rules. - HealthCheck *HealthCheckRequest `json:"health_check"` + HealthCheck *HealthCheckRequest `json:"health_check,omitempty"` // Name The hostname of the load balancer. Name string `json:"name"` // Region Leave null to create an anycast load balancer. - Region *string `json:"region"` + Region *string `json:"region,omitempty"` // ServerIds A list of server IDs to assign to this load balancer. - ServerIds *[]int64 `json:"server_ids"` + ServerIds *[]int64 `json:"server_ids,omitempty"` } // CreateLoadBalancerResponse defines model for CreateLoadBalancerResponse. @@ -1213,28 +2001,28 @@ type CreateLoadBalancerResponse struct { // CreateServerRequest defines model for CreateServerRequest. type CreateServerRequest struct { // Backups If true this will enable two daily backups for the server. Options.daily_backups will override this value if provided. Setting this to false has no effect. - Backups *bool `json:"backups"` + Backups *bool `json:"backups,omitempty"` // Image The slug or id of the selected operating system. Image string `json:"image"` // Ipv6 If true this will enable IPv6 for this server. - Ipv6 *bool `json:"ipv6"` + Ipv6 *bool `json:"ipv6,omitempty"` // Licenses The desired set of licenses. - Licenses *[]License `json:"licenses"` + Licenses *[]License `json:"licenses,omitempty"` // Name The hostname of your server, such as vps01.yourcompany.com. If not provided, the server will be created with a random name. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // Options This may be left null to accept all of the defaults for the selected size. - Options *SizeOptionsRequest `json:"options"` + Options *SizeOptionsRequest `json:"options,omitempty"` // Password If this is provided the default remote user account's password will be set to this value. If this is null a random password will be generated and emailed to the account email address. - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // PortBlocking Port blocking of outgoing connections for email, SSH and Remote Desktop (TCP ports 22, 25, and 3389) is enabled by default for all new servers. If this is false port blocking will be disabled. Disabling port blocking is only available to reviewed accounts. - PortBlocking *bool `json:"port_blocking"` + PortBlocking *bool `json:"port_blocking,omitempty"` // Region The slug of the selected region. Region string `json:"region"` @@ -1243,16 +2031,16 @@ type CreateServerRequest struct { Size string `json:"size"` // SshKeys This may be either the SSH keys Ids or fingerprints. If this is null or not provided any SSH keys that have been marked as default will be deployed (if the operating system supports SSH keys). Submit an empty array to disable deployment of default keys. - SshKeys *[]int `json:"ssh_keys"` + SshKeys *[]int `json:"ssh_keys,omitempty"` // UserData If provided this will be used to initialise the new server. This must be left null if the Image does not support UserData, see DistributionInfo.Features for more information. - UserData *string `json:"user_data"` + UserData *string `json:"user_data,omitempty"` // VpcId Leave null to use default (public) network for the selected region. - VpcId *int64 `json:"vpc_id"` + VpcId *int64 `json:"vpc_id,omitempty"` // VpcIpv4Address If provided this will be the Ipv4 address for the server's private VPC network adapter. If this is null an unused Ipv4 address will be assigned. This field is only valid when VpcId is provided. - VpcIpv4Address *string `json:"vpc_ipv4_address"` + VpcIpv4Address *string `json:"vpc_ipv4_address,omitempty"` } // CreateServerResponse defines model for CreateServerResponse. @@ -1264,13 +2052,13 @@ type CreateServerResponse struct { // CreateVpcRequest defines model for CreateVpcRequest. type CreateVpcRequest struct { // IpRange A private address range that you select during creation, such as the default value of 10.240.0.0/16. Because the virtual network is dedicated to your use, you may use whatever IP address range you like. - IpRange *string `json:"ip_range"` + IpRange *string `json:"ip_range,omitempty"` // Name A name to help identify this VPC. Name string `json:"name"` // RouteEntries The route entries that control how network traffic is directed through the VPC environment. - RouteEntries *[]RouteEntryRequest `json:"route_entries"` + RouteEntries *[]RouteEntryRequest `json:"route_entries,omitempty"` } // CurrentServerAlertsResponse defines model for CurrentServerAlertsResponse. @@ -1316,7 +2104,7 @@ type DataUsageResponse struct { // DataUsagesResponse defines model for DataUsagesResponse. type DataUsagesResponse struct { DataUsages []DataUsage `json:"data_usages"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -1359,7 +2147,7 @@ type DisableSelinuxType string // Disk defines model for Disk. type Disk struct { // Description A description of this disk. - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Id The ID of this disk. Id int64 `json:"id"` @@ -1399,25 +2187,25 @@ type DistributionInfo struct { PasswordRecovery PasswordRecoveryType `json:"password_recovery" tfsdk:"password_recovery"` // RemoteAccessUser User name to use when connecting via remote access (RDP or SSH). - RemoteAccessUser *string `json:"remote_access_user" tfsdk:"remote_access_user"` + RemoteAccessUser *string `json:"remote_access_user,omitempty" tfsdk:"remote_access_user"` } // DistributionSurcharges defines model for DistributionSurcharges. type DistributionSurcharges struct { // SurchargeBaseCost The additional cost for using this operating system as the base image for a size. - SurchargeBaseCost *float64 `json:"surcharge_base_cost" tfsdk:"surcharge_base_cost"` + SurchargeBaseCost *float64 `json:"surcharge_base_cost,omitempty" tfsdk:"surcharge_base_cost"` // SurchargeMinVcpu The minimum vcpu count for surcharge calculations. - SurchargeMinVcpu *int32 `json:"surcharge_min_vcpu" tfsdk:"surcharge_min_vcpu"` + SurchargeMinVcpu *int32 `json:"surcharge_min_vcpu,omitempty" tfsdk:"surcharge_min_vcpu"` // SurchargePerMemoryMaxMegabytes The maximum memory in MB that counts towards the surcharge_per_memory_mb. Any memory above this cap does not attract the surcharge. - SurchargePerMemoryMaxMegabytes *int32 `json:"surcharge_per_memory_max_megabytes" tfsdk:"surcharge_per_memory_max_megabytes"` + SurchargePerMemoryMaxMegabytes *int32 `json:"surcharge_per_memory_max_megabytes,omitempty" tfsdk:"surcharge_per_memory_max_megabytes"` // SurchargePerMemoryMegabyte The additional cost per MB for using this operating system as the base image for a size. - SurchargePerMemoryMegabyte *float64 `json:"surcharge_per_memory_megabyte" tfsdk:"surcharge_per_memory_megabyte"` + SurchargePerMemoryMegabyte *float64 `json:"surcharge_per_memory_megabyte,omitempty" tfsdk:"surcharge_per_memory_megabyte"` // SurchargePerVcpu The additional cost per vcpu for using this operating system as the base image for a size. - SurchargePerVcpu *float64 `json:"surcharge_per_vcpu" tfsdk:"surcharge_per_vcpu"` + SurchargePerVcpu *float64 `json:"surcharge_per_vcpu,omitempty" tfsdk:"surcharge_per_vcpu"` } // Domain defines model for Domain. @@ -1432,7 +2220,7 @@ type Domain struct { Name string `json:"name"` // Ttl The time to live for records in this domain in seconds. If the DNS records for this domain are not managed locally this will be what the TTL would be if the authority was delegated to us. - Ttl *int32 `json:"ttl"` + Ttl *int32 `json:"ttl,omitempty"` // ZoneFile The zone file for the selected domain. If the DNS records for this domain are not managed locally this is what the zone file would be if the authority was delegated to us. The serial is will always be 0 rather than the correct value. ZoneFile string `json:"zone_file"` @@ -1441,10 +2229,10 @@ type Domain struct { // DomainRecord defines model for DomainRecord. type DomainRecord struct { // Data Variable data depending on record type. - Data *string `json:"data"` + Data *string `json:"data,omitempty"` // Flags An unsigned integer between 0-255 that is only relevant for CAA records. - Flags *int32 `json:"flags"` + Flags *int32 `json:"flags,omitempty"` // Id The ID of this domain record. Id int64 `json:"id"` @@ -1453,13 +2241,13 @@ type DomainRecord struct { Name string `json:"name"` // Port A port value that is only relevant for SRV records. - Port *int32 `json:"port"` + Port *int32 `json:"port,omitempty"` // Priority A priority value that is only relevant for SRV and MX records. - Priority *int32 `json:"priority"` + Priority *int32 `json:"priority,omitempty"` // Tag A parameter tag that is only relevant for CAA records. - Tag *string `json:"tag"` + Tag *string `json:"tag,omitempty"` // Ttl This value is the time to live for the record in seconds. Ttl int32 `json:"ttl"` @@ -1481,7 +2269,7 @@ type DomainRecord struct { Type DomainRecordType `json:"type"` // Weight The weight value that is only relevant for SRV records. - Weight *int32 `json:"weight"` + Weight *int32 `json:"weight,omitempty"` } // DomainRecordRequest defines model for DomainRecordRequest. @@ -1490,22 +2278,22 @@ type DomainRecordRequest struct { Data string `json:"data"` // Flags An unsigned integer between 0-255 that is only relevant for CAA records. - Flags *int32 `json:"flags"` + Flags *int32 `json:"flags,omitempty"` // Name The subdomain for this record. Use @ for records on the domain itself, and * to create a wildcard record. Name string `json:"name"` // Port A port value that is only relevant for SRV records. - Port *int32 `json:"port"` + Port *int32 `json:"port,omitempty"` // Priority A priority value that is only relevant for SRV and MX records. - Priority *int32 `json:"priority"` + Priority *int32 `json:"priority,omitempty"` // Tag A parameter tag that is only relevant for CAA records. - Tag *string `json:"tag"` + Tag *string `json:"tag,omitempty"` // Ttl This value is the time to live for the record, in seconds. The default and only supported value is 3600. Leave null to accept this default. - Ttl *int32 `json:"ttl"` + Ttl *int32 `json:"ttl,omitempty"` // Type The type of the DNS record. // @@ -1524,7 +2312,7 @@ type DomainRecordRequest struct { Type DomainRecordType `json:"type"` // Weight The weight value that is only relevant for SRV records. - Weight *int32 `json:"weight"` + Weight *int32 `json:"weight,omitempty"` } // DomainRecordResponse defines model for DomainRecordResponse. @@ -1549,7 +2337,7 @@ type DomainRecordType string // DomainRecordsResponse defines model for DomainRecordsResponse. type DomainRecordsResponse struct { DomainRecords []DomainRecord `json:"domain_records"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -1564,7 +2352,7 @@ type DomainRefreshRequest struct { // DomainRequest defines model for DomainRequest. type DomainRequest struct { // IpAddress An optional IPv4 address that will be used to create an A record for the root domain. - IpAddress *string `json:"ip_address"` + IpAddress *string `json:"ip_address,omitempty"` // Name The domain name to add to the DNS management system. Name string `json:"name"` @@ -1578,7 +2366,7 @@ type DomainResponse struct { // DomainsResponse defines model for DomainsResponse. type DomainsResponse struct { Domains []Domain `json:"domains"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -1651,7 +2439,7 @@ type HealthCheckProtocol = string // HealthCheckRequest defines model for HealthCheckRequest. type HealthCheckRequest struct { // Path Leave null to accept the default '/' path. - Path *string `json:"path"` + Path *string `json:"path,omitempty"` // Protocol Leave null to accept the default HTTP protocol. // @@ -1661,7 +2449,7 @@ type HealthCheckRequest struct { // | https | The health check will be performed via HTTPS. | // | both | The health check will be performed via both HTTP and HTTPS. Failing a health check on one protocol will remove the server from the pool of servers only for that protocol. | // - Protocol *HealthCheckProtocol `json:"protocol"` + Protocol *HealthCheckProtocol `json:"protocol,omitempty"` } // Host defines model for Host. @@ -1670,37 +2458,37 @@ type Host struct { DisplayName string `json:"display_name"` // StatusPage This is the URL of the status page of the host. This will normally only be set if the host is under maintenance. - StatusPage *string `json:"status_page"` + StatusPage *string `json:"status_page,omitempty"` // UptimeMs The current uptime in milliseconds of this host. - UptimeMs *int64 `json:"uptime_ms"` + UptimeMs *int64 `json:"uptime_ms,omitempty"` } // Image defines model for Image. type Image struct { // BackupInfo If this image is a backup, this object will provide further information. - BackupInfo *BackupInfo `json:"backup_info" tfsdk:"backup_info"` + BackupInfo *BackupInfo `json:"backup_info,omitempty" tfsdk:"backup_info"` // CreatedAt If this is a backup image this is the date and time in ISO8601 format when the image was created. - CreatedAt *time.Time `json:"created_at" tfsdk:"created_at"` + CreatedAt *time.Time `json:"created_at,omitempty" tfsdk:"created_at"` // Description A description that may provide further details or warnings about the image. - Description *string `json:"description" tfsdk:"description"` + Description *string `json:"description,omitempty" tfsdk:"description"` // Distribution If this is an operating system image, this is the name of the distribution. If this is a backup image, this is the name of the distribution the server is using. - Distribution *string `json:"distribution" tfsdk:"distribution"` + Distribution *string `json:"distribution,omitempty" tfsdk:"distribution"` // DistributionInfo This object may provide further information about the distribution. DistributionInfo DistributionInfo `json:"distribution_info" tfsdk:"distribution_info"` // DistributionSurcharges If this is not null the use of this image may incur surcharges above the base cost of the server. All costs are in AU$. - DistributionSurcharges *DistributionSurcharges `json:"distribution_surcharges" tfsdk:"distribution_surcharges"` + DistributionSurcharges *DistributionSurcharges `json:"distribution_surcharges,omitempty" tfsdk:"distribution_surcharges"` // ErrorMessage If the image creation failed this may provide further information. - ErrorMessage *string `json:"error_message" tfsdk:"error_message"` + ErrorMessage *string `json:"error_message,omitempty" tfsdk:"error_message"` // FullName If this is an operating system image, this is the name and version of the distribution. If this is a backup image, this is the server hostname and label of the backup if it exists, otherwise it is the server hostname and UTC timestamp of the creation of the image. - FullName *string `json:"full_name" tfsdk:"full_name"` + FullName *string `json:"full_name,omitempty" tfsdk:"full_name"` // Id The ID of this image. Id int64 `json:"id" tfsdk:"id"` @@ -1709,7 +2497,7 @@ type Image struct { MinDiskSize int32 `json:"min_disk_size" tfsdk:"min_disk_size"` // MinMemoryMegabytes This is minimum memory in MB necessary to support this operating system (or the base operating system for a backup image). - MinMemoryMegabytes *int32 `json:"min_memory_megabytes" tfsdk:"min_memory_megabytes"` + MinMemoryMegabytes *int32 `json:"min_memory_megabytes,omitempty" tfsdk:"min_memory_megabytes"` // Name If this is an operating system image, this is the name of the operating system version. If this is a backup image, this is the label of the backup if it exists, otherwise it is the UTC timestamp of the creation of the image. Name string `json:"name" tfsdk:"name"` @@ -1724,7 +2512,7 @@ type Image struct { SizeGigabytes float64 `json:"size_gigabytes" tfsdk:"size_gigabytes"` // Slug If this is an operating system image this is a slug which may be used as an alternative to the ID as a reference. - Slug *string `json:"slug" tfsdk:"slug"` + Slug *string `json:"slug,omitempty" tfsdk:"slug"` Status ImageStatus `json:"status" tfsdk:"status"` Type ImageType `json:"type" tfsdk:"type"` } @@ -1761,18 +2549,18 @@ type ImageDownloadResponse struct { // ImageOptions defines model for ImageOptions. type ImageOptions struct { // Name The hostname for the server. Leave null to accept the auto-generated permalink. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // Password If this is provided the default remote user account's password will be set to this value. If this is null a random password will be generated and emailed to the account email address. - Password *string `json:"password"` + Password *string `json:"password,omitempty"` // SshKeys This may be either the existing SSH Keys IDs or fingerprints. // If this is null or not provided any SSH keys that have been marked as default will be deployed (if the operating system supports SSH Keys). // Submit an empty array to disable deployment of default keys. - SshKeys *[]int `json:"ssh_keys"` + SshKeys *[]int `json:"ssh_keys,omitempty"` // UserData If provided this will be used to initialise the new server. This must be left null if the Image does not support UserData, see DistributionInfo.Features for more information. - UserData *string `json:"user_data"` + UserData *string `json:"user_data,omitempty"` } // ImageResponse defines model for ImageResponse. @@ -1800,7 +2588,7 @@ type ImageType string // ImagesResponse defines model for ImagesResponse. type ImagesResponse struct { Images []Image `json:"images"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -1821,7 +2609,7 @@ type Invoice struct { DateOverdue time.Time `json:"date_overdue"` // InvoiceDownloadUrl The download URL for the rendered version of the invoice. - InvoiceDownloadUrl *string `json:"invoice_download_url"` + InvoiceDownloadUrl *string `json:"invoice_download_url,omitempty"` // InvoiceId The ID of the invoice. InvoiceId int64 `json:"invoice_id"` @@ -1836,10 +2624,10 @@ type Invoice struct { Paid bool `json:"paid"` // PaymentFailureCount If this is included it indicates the number of failed attempts at processing payment for this invoice that have occurred. - PaymentFailureCount *int32 `json:"payment_failure_count"` + PaymentFailureCount *int32 `json:"payment_failure_count,omitempty"` // Reference The reference for this invoice. If this invoice is for a single service this may identify the service, otherwise it will be the account reference. - Reference *string `json:"reference"` + Reference *string `json:"reference,omitempty"` // Refunded If this is true the payment for this invoice has been refunded. Refunded bool `json:"refunded"` @@ -1872,7 +2660,7 @@ type InvoiceResponse struct { // InvoicesResponse defines model for InvoicesResponse. type InvoicesResponse struct { Invoices []Invoice `json:"invoices"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -1892,16 +2680,16 @@ type Kernel struct { Id int64 `json:"id"` // Name This name of this kernel. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // Version The version (if any) of this kernel. - Version *string `json:"version"` + Version *string `json:"version,omitempty"` } // KernelsResponse defines model for KernelsResponse. type KernelsResponse struct { Kernels []Kernel `json:"kernels"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -1933,7 +2721,7 @@ type LicensedSoftware struct { // LicensedSoftwaresResponse defines model for LicensedSoftwaresResponse. type LicensedSoftwaresResponse struct { LicensedSoftware []LicensedSoftware `json:"licensed_software"` - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -1966,7 +2754,7 @@ type LoadBalancer struct { Name string `json:"name"` // Region The region the load balancer is located in. If this value is null the load balancer is an 'AnyCast' load balancer. - Region *Region `json:"region"` + Region *Region `json:"region,omitempty"` // ServerIds The server IDs of the servers that are currently in the load balancer pool (regardless of their current 'health'). ServerIds []int64 `json:"server_ids"` @@ -1994,7 +2782,7 @@ type LoadBalancerAvailabilityOption struct { PriceMonthly float64 `json:"price_monthly"` // Regions The slugs of regions where this load balancer option is available. If this is an Anycast load balancer option this will be null. - Regions *[]string `json:"regions"` + Regions *[]string `json:"regions,omitempty"` } // LoadBalancerAvailabilityResponse defines model for LoadBalancerAvailabilityResponse. @@ -2024,7 +2812,7 @@ type LoadBalancerStatus string // LoadBalancersResponse defines model for LoadBalancersResponse. type LoadBalancersResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` LoadBalancers []LoadBalancer `json:"load_balancers"` // Meta Contains metadata about the response, currently this includes the total number of items. @@ -2045,19 +2833,19 @@ type Meta struct { // Network defines model for Network. type Network struct { // Gateway The gateway for this network. - Gateway *string `json:"gateway"` + Gateway *string `json:"gateway,omitempty"` // IpAddress The IP address for this network. IpAddress string `json:"ip_address"` // NatTarget If this is not null this property is the private IP address which receives packets from this network. - NatTarget *string `json:"nat_target"` + NatTarget *string `json:"nat_target,omitempty"` // Netmask The netmask for this network. - Netmask *Network_Netmask `json:"netmask"` + Netmask *Network_Netmask `json:"netmask,omitempty"` // ReverseName The reverse name (if any) for this network. - ReverseName *string `json:"reverse_name"` + ReverseName *string `json:"reverse_name,omitempty"` Type NetworkType `json:"type"` } @@ -2082,7 +2870,7 @@ type NetworkType string // Networks defines model for Networks. type Networks struct { // Ipv6ReverseNameservers Any configured IPv6 reverse nameservers for this server. Please see our documentation for how this interacts with IPv6 nameserver settings at the account level. - Ipv6ReverseNameservers *[]string `json:"ipv6_reverse_nameservers"` + Ipv6ReverseNameservers *[]string `json:"ipv6_reverse_nameservers,omitempty"` // PortBlocking Whether the default port blocking is enabled for this server. PortBlocking bool `json:"port_blocking"` @@ -2091,10 +2879,10 @@ type Networks struct { RecentDdos bool `json:"recent_ddos"` // SeparatePrivateNetworkInterface Whether a separate private network interface is provided for the server's VPC traffic. - SeparatePrivateNetworkInterface *bool `json:"separate_private_network_interface"` + SeparatePrivateNetworkInterface *bool `json:"separate_private_network_interface,omitempty"` // SourceAndDestinationCheck If enabled, this server is only able to send and receive data packets directly addressed to an IP address assigned to this server. - SourceAndDestinationCheck *bool `json:"source_and_destination_check"` + SourceAndDestinationCheck *bool `json:"source_and_destination_check,omitempty"` // V4 A list of the IPv4 networks for this server. V4 []Network `json:"v4"` @@ -2120,10 +2908,10 @@ type OffsiteBackupSettings struct { // ManageOffsiteCopies This only has effect if a custom offsite location is being used: the internal offsite backup location always manages copies. // If this is true old offsite backups will be removed once the replacement upload is complete. // If this is false backups must be removed from the Amazon S3 bucket manually. Amazon will charge your S3 account at their standard rate for every backup stored. - ManageOffsiteCopies *bool `json:"manage_offsite_copies"` + ManageOffsiteCopies *bool `json:"manage_offsite_copies,omitempty"` // OffsiteBackupLocation If a custom backup location is used, this is the provided location. - OffsiteBackupLocation *string `json:"offsite_backup_location"` + OffsiteBackupLocation *string `json:"offsite_backup_location,omitempty"` // UseCustomBackupLocation If this is true a custom backup location will be used. If false our internally managed offsite backup location be used. UseCustomBackupLocation bool `json:"use_custom_backup_location"` @@ -2132,16 +2920,16 @@ type OffsiteBackupSettings struct { // Pages Provides links to first, last, next and previous pages if more than a single page of results exists. type Pages struct { // First A link to the first page of items if this is not the first page. - First *string `json:"first"` + First *string `json:"first,omitempty"` // Last A link to the last page of items if this is not the last page. - Last *string `json:"last"` + Last *string `json:"last,omitempty"` // Next A link to the next page of items if this is not the last page. - Next *string `json:"next"` + Next *string `json:"next,omitempty"` // Prev A link to the previous page of items if this is not the first page. - Prev *string `json:"prev"` + Prev *string `json:"prev,omitempty"` } // PasswordRecoveryType @@ -2158,13 +2946,13 @@ type PasswordReset struct { // Password If this is provided the specified or default remote user's account password will be set to this value. // Only valid if the server supports password change actions (check server.password_change_supported via the servers endpoint). // If omitted and the server supports password change actions a random password will be generated and emailed to the account email address. - Password *string `json:"password"` + Password *string `json:"password,omitempty"` Type PasswordResetType `json:"type"` // Username The username of the user to change the password. // Only valid if the server supports password change actions (check server.password_change_supported via the servers endpoint). // If omitted and the server supports password change actions this will default to the username of the remote user that was configured when the server was created (normally 'root'). - Username *string `json:"username"` + Username *string `json:"username,omitempty"` } // PasswordResetType defines model for PasswordReset.Type. @@ -2173,10 +2961,10 @@ type PasswordResetType string // PatchVpcRequest defines model for PatchVpcRequest. type PatchVpcRequest struct { // Name >A name to help identify this VPC. Submit null to leave unaltered. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // RouteEntries Submit null to leave unaltered, submit an empty list to clear all route entries. It is not possible to PATCH individual route entries, to alter a route entry submit the entire list of route entries you wish to save. - RouteEntries *[]RouteEntryRequest `json:"route_entries"` + RouteEntries *[]RouteEntryRequest `json:"route_entries,omitempty"` } // PaymentMethod @@ -2249,7 +3037,7 @@ type ProceedRequest struct { // ProcessorModel defines model for ProcessorModel. type ProcessorModel struct { // Description A description of this processor model. - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Id The ID of this processor model. Id int64 `json:"id"` @@ -2269,10 +3057,10 @@ type RebootType string // Rebuild Rebuild an Existing Server type Rebuild struct { // Image The Operating System ID or slug or Backup image ID to use as a base for the rebuild. - Image *string `json:"image"` + Image *string `json:"image,omitempty"` // Options Additional options. Leaving this entirely null or any of the properties included null will use the defaults from the existing server. - Options *ImageOptions `json:"options"` + Options *ImageOptions `json:"options,omitempty"` Type RebuildType `json:"type"` } @@ -2302,7 +3090,7 @@ type Region struct { // RegionsResponse defines model for RegionsResponse. type RegionsResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2322,19 +3110,19 @@ type RenameType string // Resize Update the Size and Related Options for a Server type Resize struct { // ChangeImage This may be left null to keep the current base image for the server. If this is provided the server disks will be destroyed and the server will be rebuilt from the selected image. - ChangeImage *ChangeImage `json:"change_image"` + ChangeImage *ChangeImage `json:"change_image,omitempty"` // ChangeLicenses This may be left null to keep the current licenses for the server. If this is provided any licenses that are not included will be removed. Any licences that are invalid will be removed regardless, see the documentation for `servers/{server_id}/software` for more information. - ChangeLicenses *ChangeLicenses `json:"change_licenses"` + ChangeLicenses *ChangeLicenses `json:"change_licenses,omitempty"` // Options If this is null and the server has no selected size options the defaults for the size will be used. If this is null and the server has currently selected size options those will be preserved. If this is provided any option fields that are not included will be removed from the existing server. - Options *ChangeSizeOptionsRequest `json:"options"` + Options *ChangeSizeOptionsRequest `json:"options,omitempty"` // PreActionBackup Specify this to create a backup before any actions are taken, or leave null to skip. - PreActionBackup *TakeBackup `json:"pre_action_backup"` + PreActionBackup *TakeBackup `json:"pre_action_backup,omitempty"` // Size The slug of the selected size. Do not provide to keep the current size. - Size *string `json:"size"` + Size *string `json:"size,omitempty"` Type ResizeType `json:"type"` } @@ -2388,7 +3176,7 @@ type RestoreType string // ReverseNameServersResponse defines model for ReverseNameServersResponse. type ReverseNameServersResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2404,7 +3192,7 @@ type ReverseNameserversRequest struct { // RouteEntry defines model for RouteEntry. type RouteEntry struct { // Description An optional description for the route. - Description *string `json:"description"` + Description *string `json:"description,omitempty"` // Destination The destination address for this route entry. This may be in CIDR format. Destination string `json:"destination"` @@ -2416,7 +3204,7 @@ type RouteEntry struct { // RouteEntryRequest defines model for RouteEntryRequest. type RouteEntryRequest struct { // Description An optional description for the route. - Description *string `json:"description" tfsdk:"description"` + Description *string `json:"description,omitempty" tfsdk:"description"` // Destination The destination address for this route entry. This may be in CIDR format. Destination string `json:"destination" tfsdk:"destination"` @@ -2478,12 +3266,12 @@ type SampleSet struct { // SampleSetResponse defines model for SampleSetResponse. type SampleSetResponse struct { - SampleSet *SampleSet `json:"sample_set"` + SampleSet *SampleSet `json:"sample_set,omitempty"` } // SampleSetsResponse defines model for SampleSetsResponse. type SampleSetsResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2523,7 +3311,7 @@ type Server struct { AdvancedFeatures AdvancedServerFeatures `json:"advanced_features"` // AttachedBackup An object that provides details of any backup image currently attached to the server.. - AttachedBackup *AttachedBackup `json:"attached_backup"` + AttachedBackup *AttachedBackup `json:"attached_backup,omitempty"` // BackupIds A list of the currently existing backup image IDs for this server (if any). BackupIds []int64 `json:"backup_ids"` @@ -2532,7 +3320,7 @@ type Server struct { BackupSettings BackupSettings `json:"backup_settings"` // CancelledAt If the server has been cancelled, this is the date and time in ISO8601 format of that cancellation. - CancelledAt *time.Time `json:"cancelled_at"` + CancelledAt *time.Time `json:"cancelled_at,omitempty"` // CreatedAt The date and time in ISO8601 format of this server's initial creation. CreatedAt time.Time `json:"created_at"` @@ -2559,7 +3347,7 @@ type Server struct { Image Image `json:"image"` // Kernel The currently selected kernel for the server. - Kernel *Kernel `json:"kernel"` + Kernel *Kernel `json:"kernel,omitempty"` // Memory The memory in MB of this server. Memory int32 `json:"memory"` @@ -2571,22 +3359,22 @@ type Server struct { Networks Networks `json:"networks"` // NextBackupWindow The details of the next scheduled backup, if any. - NextBackupWindow *BackupWindow `json:"next_backup_window"` + NextBackupWindow *BackupWindow `json:"next_backup_window,omitempty"` // PartnerId The server ID of the partner of this server, if one has been assigned. - PartnerId *int64 `json:"partner_id"` + PartnerId *int64 `json:"partner_id,omitempty"` // PasswordChangeSupported If this is true the password_reset server action can be called to change a user's password. If this is false the password_reset server action will merely clear the root/administrator password allowing the password to be changed via the web console. PasswordChangeSupported bool `json:"password_change_supported"` // Permalink A randomly generated two-word identifier assigned to servers in regions that support this feature. - Permalink *string `json:"permalink"` + Permalink *string `json:"permalink,omitempty"` // Region The region this server is allocated to. Region Region `json:"region"` // SelectedSizeOptions An object that details the selected options for the current size. - SelectedSizeOptions *SelectedSizeOptions `json:"selected_size_options"` + SelectedSizeOptions *SelectedSizeOptions `json:"selected_size_options,omitempty"` // Size The currently selected size for this server. Size Size `json:"size"` @@ -2599,7 +3387,7 @@ type Server struct { Vcpus int32 `json:"vcpus"` // VpcId The VPC ID that this server is allocated to. If this value is null the server is in the default (public) network for the region. - VpcId *int64 `json:"vpc_id"` + VpcId *int64 `json:"vpc_id,omitempty"` } // ServerAction defines model for ServerAction. @@ -2630,7 +3418,7 @@ type ServerStatus string // ServersResponse defines model for ServersResponse. type ServersResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2651,10 +3439,10 @@ type Size struct { Available bool `json:"available" tfsdk:"available"` // CpuDescription A description of the CPU provided in this size. - CpuDescription *string `json:"cpu_description" tfsdk:"cpu_description"` + CpuDescription *string `json:"cpu_description,omitempty" tfsdk:"cpu_description"` // Description A description of this size. - Description *string `json:"description" tfsdk:"description"` + Description *string `json:"description,omitempty" tfsdk:"description"` // Disk The included storage for this size in GB. Disk int32 `json:"disk" tfsdk:"disk"` @@ -2680,7 +3468,7 @@ type Size struct { Regions []string `json:"regions" tfsdk:"regions"` // RegionsOutOfStock A list of region slugs where the size is normally available but is currently not available due to lack of stock. - RegionsOutOfStock *[]string `json:"regions_out_of_stock" tfsdk:"regions_out_of_stock"` + RegionsOutOfStock *[]string `json:"regions_out_of_stock,omitempty" tfsdk:"regions_out_of_stock"` // SizeType The type of this size, generally used to differentiate sizes optimized for different usages. SizeType SizeType `json:"size_type" tfsdk:"size_type"` @@ -2689,7 +3477,7 @@ type Size struct { Slug string `json:"slug" tfsdk:"slug"` // StorageDescription A description of the storage provided in this size. - StorageDescription *string `json:"storage_description" tfsdk:"storage_description"` + StorageDescription *string `json:"storage_description,omitempty" tfsdk:"storage_description"` // Transfer The included data transfer for this size in TB. Transfer float64 `json:"transfer" tfsdk:"transfer"` @@ -2743,12 +3531,12 @@ type SizeOptions struct { OffsiteBackupsCostPerGigabyte float64 `json:"offsite_backups_cost_per_gigabyte" tfsdk:"offsite_backups_cost_per_gigabyte"` // RestrictedDiskValues If this is null the normal valid values in the documentation for SizeOptionsRequest are used, otherwise only these values (in GB) are permitted. - RestrictedDiskValues *[]int32 `json:"restricted_disk_values" tfsdk:"restricted_disk_values"` + RestrictedDiskValues *[]int32 `json:"restricted_disk_values,omitempty" tfsdk:"restricted_disk_values"` // TransferCostPerAdditionalGigabyte The additional cost per GB per month for additional included transfer. TransferCostPerAdditionalGigabyte float64 `json:"transfer_cost_per_additional_gigabyte" tfsdk:"transfer_cost_per_additional_gigabyte"` - // TransferMax The maximum transfer in TB permitted for this size. + // TransferMax The maximum transfer in TB permitted for this size. If this is the same as `transfer` no additional transfer is supported. TransferMax float64 `json:"transfer_max" tfsdk:"transfer_max"` // WeeklyBackups The number of weekly backups included in the base size cost. @@ -2758,7 +3546,7 @@ type SizeOptions struct { // SizeOptionsRequest defines model for SizeOptionsRequest. type SizeOptionsRequest struct { // DailyBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - DailyBackups *int32 `json:"daily_backups"` + DailyBackups *int32 `json:"daily_backups,omitempty"` // Disk The total storage in GB for this server. // If specified this is the absolute value, not just the additional storage above what is included in the size. @@ -2768,10 +3556,10 @@ type SizeOptionsRequest struct { // - must be a multiple of 5 // - > 60GB must be a multiple of 10 // - > 200GB must be a multiple of 100 - Disk *int32 `json:"disk"` + Disk *int32 `json:"disk,omitempty"` // Ipv4Addresses The total count of IPv4 addresses for this server. If specified this is the absolute value, not just the additional IPv4 addresses above what is included in the size. Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. Must not exceed the size.ipv4_addresses_max value. - Ipv4Addresses *int32 `json:"ipv4_addresses"` + Ipv4Addresses *int32 `json:"ipv4_addresses,omitempty"` // Memory The total memory in MB for this server. // If specified this is the absolute value, not just the additional memory above what is included in the size. @@ -2782,33 +3570,33 @@ type SizeOptionsRequest struct { // - > 2048MB must be a multiple of 1024 // - > 16384MB must be a multiple of 2048 // - > 24576MB must be a multiple of 4096 - Memory *int32 `json:"memory"` + Memory *int32 `json:"memory,omitempty"` // MonthlyBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - MonthlyBackups *int32 `json:"monthly_backups"` + MonthlyBackups *int32 `json:"monthly_backups,omitempty"` // OffsiteBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - OffsiteBackups *bool `json:"offsite_backups"` + OffsiteBackups *bool `json:"offsite_backups,omitempty"` // Transfer The total transfer per month in TB for this server. // If specified this is the absolute value, not just the additional transfer above what is included in the size. // Leave null to accept the default for the size if this is a new server or a resize to a different base size, or to keep the current value if this a resize with the same base size but different options. // - // Valid values (when converted to GB by multiplying the value provided by 1024): + // Valid values (when converted to GB by multiplying the value provided by 1000): // - must be a multiple of 5GB // - > 30GB must be a multiple of 10 // - > 200GB must be a multiple of 100 // - > 2000GB must be a multiple of 1000 - Transfer *float64 `json:"transfer"` + Transfer *float64 `json:"transfer,omitempty"` // WeeklyBackups Leave null to accept the default for the size if this is a new server or to keep the current value if this is a resize of an existing server. - WeeklyBackups *int32 `json:"weekly_backups"` + WeeklyBackups *int32 `json:"weekly_backups,omitempty"` } // SizeType defines model for SizeType. type SizeType struct { // Description The description of this size type, generally used to indicate the intended use case for sizes of this type. - Description *string `json:"description" tfsdk:"description"` + Description *string `json:"description,omitempty" tfsdk:"description"` // Name The name of this size type. Name string `json:"name" tfsdk:"name"` @@ -2819,7 +3607,7 @@ type SizeType struct { // SizesResponse defines model for SizesResponse. type SizesResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2828,7 +3616,7 @@ type SizesResponse struct { // SnapshotsResponse defines model for SnapshotsResponse. type SnapshotsResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2847,7 +3635,7 @@ type Software struct { Enabled bool `json:"enabled"` // Group Software in the same group may not be licensed together. - Group *string `json:"group"` + Group *string `json:"group,omitempty"` // Id The ID of this software. Id int64 `json:"id"` @@ -2875,7 +3663,7 @@ type SoftwareResponse struct { // SoftwaresResponse defines model for SoftwaresResponse. type SoftwaresResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2894,7 +3682,7 @@ type SshKey struct { Id int64 `json:"id"` // Name The name of this SSH key. This is used only to aid in identification. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // PublicKey The public key of this SSH key. PublicKey string `json:"public_key"` @@ -2903,7 +3691,7 @@ type SshKey struct { // SshKeyRequest defines model for SshKeyRequest. type SshKeyRequest struct { // Default Optional: If true this will be added to all new server installations (if we support SSH Key injection for the server's operating system). - Default *bool `json:"default"` + Default *bool `json:"default,omitempty"` // Name A name to help you identify the key. Name string `json:"name"` @@ -2919,7 +3707,7 @@ type SshKeyResponse struct { // SshKeysResponse defines model for SshKeysResponse. type SshKeysResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` @@ -2929,7 +3717,7 @@ type SshKeysResponse struct { // TakeBackup Take a Backup of a Server type TakeBackup struct { // BackupIdToReplace If replacement_strategy is 'specified' this property must be set to an existing backup. - BackupIdToReplace *int64 `json:"backup_id_to_replace"` + BackupIdToReplace *int64 `json:"backup_id_to_replace,omitempty"` // BackupType If replacement_strategy is anything other than 'specified', this must be provided. // @@ -2940,10 +3728,10 @@ type TakeBackup struct { // | monthly | A backup which is scheduled to be taken each month. | // | temporary | A backup which is created on demand and only retained for a maximum of seven days. | // - BackupType *BackupSlot `json:"backup_type"` + BackupType *BackupSlot `json:"backup_type,omitempty"` // Label An optional label to identify the backup. - Label *string `json:"label"` + Label *string `json:"label,omitempty"` // ReplacementStrategy The strategy for selecting which backup to replace (if any). // @@ -2964,7 +3752,7 @@ type TakeBackupType string // TaxCode defines model for TaxCode. type TaxCode struct { // FixedPercent If this is set then this tax is added to all applicable transactions. This is a percentage value where 100 = 100%. For example: if the type is 'scalar' and the value of this is '10' then 10% of the value of all transactions will be added as tax. - FixedPercent *float64 `json:"fixed_percent"` + FixedPercent *float64 `json:"fixed_percent,omitempty"` // Name The name of this tax code. Name string `json:"name"` @@ -2991,16 +3779,16 @@ type ThresholdAlert struct { AlertType ThresholdAlertType `json:"alert_type"` // CurrentValue The last measured value for this alert type over the threshold alert period. Refer to the documentation for each threshold alert type for what this value measures in the context of the alert type. If there is no measured value in the threshold alert period this will be null. - CurrentValue *int32 `json:"current_value"` + CurrentValue *int32 `json:"current_value,omitempty"` // Enabled If a threshold alert is not enabled it will not generate warnings for the user. Enabled bool `json:"enabled"` // LastCleared The date and time (if any) in ISO8601 format of the last time this alert was cleared. An alert may not be raised again until a minimum duration has passed since it was last cleared. - LastCleared *time.Time `json:"last_cleared"` + LastCleared *time.Time `json:"last_cleared,omitempty"` // LastRaised The date and time (if any) in ISO8601 format of the last time this alert was raised. An alert may not be raised again until it has been cleared. - LastRaised *time.Time `json:"last_raised"` + LastRaised *time.Time `json:"last_raised,omitempty"` // Value The threshold value of the alert. Refer to the documentation for each threshold alert type for what this value measures in the context of the alert type. Value int32 `json:"value"` @@ -3011,10 +3799,10 @@ type ThresholdAlertRequest struct { AlertType ThresholdAlertType `json:"alert_type"` // Enabled Do not provide or leave null to keep existing status. - Enabled *bool `json:"enabled"` + Enabled *bool `json:"enabled,omitempty"` // Value Do not provide or leave null to keep existing value. - Value *int32 `json:"value"` + Value *int32 `json:"value,omitempty"` } // ThresholdAlertType @@ -3050,25 +3838,25 @@ type UnpaidFailedInvoicesResponse struct { // UpdateDomainRecordRequest Any values not provided will be retained. Provide empty strings to clear existing string values, nulls to retain the existing values. type UpdateDomainRecordRequest struct { // Data A general data field that has different functions depending on the record type. - Data *string `json:"data"` + Data *string `json:"data,omitempty"` // Flags An unsigned integer between 0-255 that is only relevant for CAA records. - Flags *int32 `json:"flags"` + Flags *int32 `json:"flags,omitempty"` // Name The subdomain for this record. Use @ for records on the domain itself, and * to create a wildcard record. - Name *string `json:"name"` + Name *string `json:"name,omitempty"` // Port A port value that is only relevant for SRV records. - Port *int32 `json:"port"` + Port *int32 `json:"port,omitempty"` // Priority A priority value that is only relevant for SRV and MX records. - Priority *int32 `json:"priority"` + Priority *int32 `json:"priority,omitempty"` // Tag A parameter tag that is only relevant for CAA records. - Tag *string `json:"tag"` + Tag *string `json:"tag,omitempty"` // Ttl This value is the time to live for the record, in seconds. - Ttl *int32 `json:"ttl"` + Ttl *int32 `json:"ttl,omitempty"` // Type The type of the DNS record. // @@ -3084,30 +3872,30 @@ type UpdateDomainRecordRequest struct { // | SRV | Specify a server by hostname and port to handle a service or services. | // | TXT | Define a string of text that is associated with a hostname. | // - Type *DomainRecordType `json:"type"` + Type *DomainRecordType `json:"type,omitempty"` // Weight The weight value that is only relevant for SRV records. - Weight *int32 `json:"weight"` + Weight *int32 `json:"weight,omitempty"` } // UpdateLoadBalancerRequest defines model for UpdateLoadBalancerRequest. type UpdateLoadBalancerRequest struct { // ForwardingRules The rules that control which traffic the load balancer will forward to servers in the pool. Leave null to accept a default "HTTP" only forwarding rule. - ForwardingRules *[]ForwardingRuleRequest `json:"forwarding_rules"` + ForwardingRules *[]ForwardingRuleRequest `json:"forwarding_rules,omitempty"` // HealthCheck The rules that determine which servers are considered 'healthy' and in the server pool for the load balancer. Leave this null to accept appropriate defaults based on the forwarding_rules. - HealthCheck *HealthCheckRequest `json:"health_check"` + HealthCheck *HealthCheckRequest `json:"health_check,omitempty"` // Name The hostname of the load balancer. Name string `json:"name"` // ServerIds A list of server IDs to assign to this load balancer. - ServerIds *[]int64 `json:"server_ids"` + ServerIds *[]int64 `json:"server_ids,omitempty"` } // UpdateLoadBalancerResponse defines model for UpdateLoadBalancerResponse. type UpdateLoadBalancerResponse struct { - Links *ActionsLinks `json:"links"` + Links *ActionsLinks `json:"links,omitempty"` LoadBalancer LoadBalancer `json:"load_balancer"` } @@ -3115,7 +3903,7 @@ type UpdateLoadBalancerResponse struct { type UpdateSshKeyRequest struct { // Default Do not provide or leave null to leave the default status of the key unchanged. // Optional: If true this will be added to all new server installations (if we support SSH Key injection for the server's operating system). - Default *bool `json:"default"` + Default *bool `json:"default,omitempty"` // Name A name to help you identify the key. Name string `json:"name"` @@ -3127,13 +3915,13 @@ type UpdateVpcRequest struct { Name string `json:"name"` // RouteEntries The route entries that control how network traffic is directed through the VPC environment. - RouteEntries *[]RouteEntryRequest `json:"route_entries"` + RouteEntries *[]RouteEntryRequest `json:"route_entries,omitempty"` } // UploadImageRequest defines model for UploadImageRequest. type UploadImageRequest struct { // BackupIdToReplace If replacement_strategy is 'specified' this property must be set to an existing backup. - BackupIdToReplace *int64 `json:"backup_id_to_replace"` + BackupIdToReplace *int64 `json:"backup_id_to_replace,omitempty"` // BackupType If replacement_strategy is anything other than 'specified', this must be provided. // @@ -3144,10 +3932,10 @@ type UploadImageRequest struct { // | monthly | A backup which is scheduled to be taken each month. | // | temporary | A backup which is created on demand and only retained for a maximum of seven days. | // - BackupType *BackupSlot `json:"backup_type"` + BackupType *BackupSlot `json:"backup_type,omitempty"` // Label An optional label to identify the backup. - Label *string `json:"label"` + Label *string `json:"label,omitempty"` // ReplacementStrategy The strategy for selecting which backup to replace (if any). // @@ -3175,7 +3963,7 @@ type UptimeType string // UserData defines model for UserData. type UserData struct { // UserData The UserData that was last used to initialise the server. - UserData *string `json:"user_data"` + UserData *string `json:"user_data,omitempty"` } // UserInteractionRequired defines model for UserInteractionRequired. @@ -3230,7 +4018,7 @@ type Vpc struct { // VpcMember defines model for VpcMember. type VpcMember struct { // CreatedAt The date and time in ISO8601 format of this resource's initial creation. - CreatedAt *time.Time `json:"created_at"` + CreatedAt *time.Time `json:"created_at,omitempty"` // Name The name of this VPC member. Name string `json:"name"` @@ -3242,7 +4030,7 @@ type VpcMember struct { // VpcMembersResponse defines model for VpcMembersResponse. type VpcMembersResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` Members []VpcMember `json:"members"` // Meta Contains metadata about the response, currently this includes the total number of items. @@ -3256,7 +4044,7 @@ type VpcResponse struct { // VpcsResponse defines model for VpcsResponse. type VpcsResponse struct { - Links *Links `json:"links"` + Links *Links `json:"links,omitempty"` // Meta Contains metadata about the response, currently this includes the total number of items. Meta Meta `json:"meta"` diff --git a/internal/data_sources/sizes_data_source_gen.go b/internal/data_sources/sizes_data_source_gen.go index e3ceaac..960b76a 100644 --- a/internal/data_sources/sizes_data_source_gen.go +++ b/internal/data_sources/sizes_data_source_gen.go @@ -165,8 +165,8 @@ func SizesDataSourceSchema(ctx context.Context) schema.Schema { }, "transfer_max": schema.Float64Attribute{ Computed: true, - Description: "The maximum transfer in TB permitted for this size.", - MarkdownDescription: "The maximum transfer in TB permitted for this size.", + Description: "The maximum transfer in TB permitted for this size. If this is the same as `transfer` no additional transfer is supported.", + MarkdownDescription: "The maximum transfer in TB permitted for this size. If this is the same as `transfer` no additional transfer is supported.", }, "weekly_backups": schema.Int64Attribute{ Computed: true, diff --git a/openapi.json b/openapi.json index db20e4c..c8e29f5 100644 --- a/openapi.json +++ b/openapi.json @@ -8,7 +8,7 @@ "url": "https://support.binarylane.com.au/support/home", "email": "support@binarylane.com.au" }, - "version": "0.34.0", + "version": "0.34.4", "x-logo": { "url": "https://www.binarylane.com.au/res/images/binarylane/logo.png", "backgroundColor": "#000000", @@ -353,7 +353,8 @@ "type": "integer", "description": "The target server id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "responses": { @@ -1376,7 +1377,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "load-balancer list" } ], "responses": { @@ -1414,7 +1416,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "load-balancer list" } ], "requestBody": { @@ -1464,7 +1467,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "load-balancer list" } ], "responses": { @@ -1616,7 +1620,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "load-balancer list" } ], "requestBody": { @@ -1659,7 +1664,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "load-balancer list" } ], "requestBody": { @@ -1683,7 +1689,7 @@ "x-codeSamples": [ { "lang": "Curl", - "source": "curl -X DELETE \"https://api.binarylane.com.au/v2/load_balancers/${load_balancer_id}/servers\" \\\n-H \"Authorization: Bearer ${APITOKEN}\"" + "source": "curl -X DELETE \"https://api.binarylane.com.au/v2/load_balancers/${load_balancer_id}/servers\" \\\n-H \"Authorization: Bearer ${APITOKEN}\" \\\n-H \"Content-Type: application/json\" -d \"${PAYLOAD}\"" } ], "x-cli-command": "load-balancer server delete" @@ -1704,7 +1710,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "load-balancer list" } ], "requestBody": { @@ -1747,7 +1754,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "load-balancer list" } ], "requestBody": { @@ -1771,7 +1779,7 @@ "x-codeSamples": [ { "lang": "Curl", - "source": "curl -X DELETE \"https://api.binarylane.com.au/v2/load_balancers/${load_balancer_id}/forwarding_rules\" \\\n-H \"Authorization: Bearer ${APITOKEN}\"" + "source": "curl -X DELETE \"https://api.binarylane.com.au/v2/load_balancers/${load_balancer_id}/forwarding_rules\" \\\n-H \"Authorization: Bearer ${APITOKEN}\" \\\n-H \"Content-Type: application/json\" -d \"${PAYLOAD}\"" } ], "x-cli-command": "load-balancer rule delete" @@ -1915,6 +1923,9 @@ } } } + }, + "204": { + "description": "No Content" } }, "x-codeSamples": [ @@ -1943,7 +1954,8 @@ "type": "integer", "description": "The target server id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "data_interval", @@ -1995,7 +2007,8 @@ "type": "integer", "description": "The target server id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "data_interval", @@ -2090,7 +2103,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "page", @@ -2154,7 +2168,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -2383,7 +2398,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "responses": { @@ -2420,7 +2436,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "reason", @@ -2563,7 +2580,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "action_id", @@ -2612,7 +2630,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "responses": { @@ -2651,7 +2670,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "responses": { @@ -2690,7 +2710,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "page", @@ -2753,7 +2774,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -2806,7 +2828,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "page", @@ -2872,7 +2895,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "page", @@ -2938,7 +2962,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "responses": { @@ -3004,7 +3029,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" }, { "name": "page", @@ -3069,7 +3095,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "responses": { @@ -3108,7 +3135,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "responses": { @@ -3388,7 +3416,8 @@ "type": "integer", "description": "The target vpc id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "vpc list" } ], "responses": { @@ -3427,7 +3456,8 @@ "type": "integer", "description": "The target vpc id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "vpc list" } ], "requestBody": { @@ -3480,7 +3510,8 @@ "type": "integer", "description": "The target vpc id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "vpc list" } ], "requestBody": { @@ -3531,7 +3562,8 @@ "type": "integer", "description": "The target vpc id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "vpc list" } ], "responses": { @@ -3658,7 +3690,8 @@ "type": "integer", "description": "The target vpc id.", "format": "int64" - } + }, + "x-cli-entity-lookup": "vpc list" }, { "name": "resource_type", @@ -3736,7 +3769,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -3788,7 +3822,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -3840,7 +3875,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -3892,7 +3928,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -3944,7 +3981,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -3996,7 +4034,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4048,7 +4087,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4100,7 +4140,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4152,7 +4193,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4204,7 +4246,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4256,7 +4299,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4308,7 +4352,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4360,7 +4405,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4412,7 +4458,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4464,7 +4511,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4516,7 +4564,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4568,7 +4617,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4620,7 +4670,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4672,7 +4723,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4724,7 +4776,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4776,7 +4829,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4828,7 +4882,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4880,7 +4935,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4932,7 +4988,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -4984,7 +5041,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5036,7 +5094,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5088,7 +5147,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5140,7 +5200,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5192,7 +5253,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5234,7 +5296,7 @@ "ServerActions" ], "summary": "Create an Additional Disk for a Server", - "description": "This is used to add an additional disk in unallocated storage space. \nThis does not alter the total disk space available to your server: to add additional disk space for your server use the 'Resize' action. \n \n", + "description": "This is used to add an additional disk in unallocated storage space. \nThis does not alter the total disk space available to your server: to add additional disk space for your server use the 'Resize' action. \n**This action may require the server to be rebooted.** \n \n", "parameters": [ { "name": "server_id", @@ -5244,7 +5306,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5296,7 +5359,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5338,7 +5402,7 @@ "ServerActions" ], "summary": "Delete an Additional Disk for a Server", - "description": "This is used to delete a disk added using the 'AddDisk' action. \n**NB: This is a destructive operation and no further confirmation will be requested.** \n \n", + "description": "This is used to delete a disk added using the 'AddDisk' action. \n**NB: This is a destructive operation and no further confirmation will be requested.** \n**This action may require the server to be rebooted.** \n \n", "parameters": [ { "name": "server_id", @@ -5348,7 +5412,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5400,7 +5465,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5452,7 +5518,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5504,7 +5571,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5556,7 +5624,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5608,7 +5677,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5660,7 +5730,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5712,7 +5783,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5764,7 +5836,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5816,7 +5889,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -5868,7 +5942,8 @@ "schema": { "type": "integer", "format": "int64" - } + }, + "x-cli-entity-lookup": "server list" } ], "requestBody": { @@ -7297,7 +7372,7 @@ }, "transfer": { "type": "number", - "description": "The total transfer per month in TB for this server.\nIf specified this is the absolute value, not just the additional transfer above what is included in the size.\nLeave null to accept the default for the size if this is a new server or a resize to a different base size, or to keep the current value if this a resize with the same base size but different options.\n \nValid values (when converted to GB by multiplying the value provided by 1024):\n- must be a multiple of 5GB\n- > 30GB must be a multiple of 10\n- > 200GB must be a multiple of 100\n- > 2000GB must be a multiple of 1000", + "description": "The total transfer per month in TB for this server.\nIf specified this is the absolute value, not just the additional transfer above what is included in the size.\nLeave null to accept the default for the size if this is a new server or a resize to a different base size, or to keep the current value if this a resize with the same base size but different options.\n \nValid values (when converted to GB by multiplying the value provided by 1000):\n- must be a multiple of 5GB\n- > 30GB must be a multiple of 10\n- > 200GB must be a multiple of 100\n- > 2000GB must be a multiple of 1000", "format": "double", "nullable": true }, @@ -9313,7 +9388,8 @@ }, "description": "The server IDs of the servers that are currently in the load balancer pool (regardless of their current 'health')." } - } + }, + "x-cli-entity-ref": "name" }, "LoadBalancerAvailabilityOption": { "required": [ @@ -9431,7 +9507,8 @@ "$ref": "#/components/schemas/LoadBalancer" } } - } + }, + "x-cli-entity-list": "load_balancers" }, "LocalNameserversResponse": { "required": [ @@ -10692,7 +10769,8 @@ ], "description": "The currently enabled advanced features, machine type and processor flags." } - } + }, + "x-cli-entity-ref": "name" }, "ServerAction": { "required": [ @@ -10957,7 +11035,8 @@ "$ref": "#/components/schemas/Server" } } - } + }, + "x-cli-entity-list": "servers" }, "Shutdown": { "required": [ @@ -11222,7 +11301,7 @@ }, "transfer_max": { "type": "number", - "description": "The maximum transfer in TB permitted for this size.", + "description": "The maximum transfer in TB permitted for this size. If this is the same as `transfer` no additional transfer is supported.", "format": "double", "x-oapi-codegen-extra-tags": { "tfsdk": "transfer_max" @@ -11368,7 +11447,7 @@ }, "transfer": { "type": "number", - "description": "The total transfer per month in TB for this server.\nIf specified this is the absolute value, not just the additional transfer above what is included in the size.\nLeave null to accept the default for the size if this is a new server or a resize to a different base size, or to keep the current value if this a resize with the same base size but different options.\n \nValid values (when converted to GB by multiplying the value provided by 1024):\n- must be a multiple of 5GB\n- > 30GB must be a multiple of 10\n- > 200GB must be a multiple of 100\n- > 2000GB must be a multiple of 1000", + "description": "The total transfer per month in TB for this server.\nIf specified this is the absolute value, not just the additional transfer above what is included in the size.\nLeave null to accept the default for the size if this is a new server or a resize to a different base size, or to keep the current value if this a resize with the same base size but different options.\n \nValid values (when converted to GB by multiplying the value provided by 1000):\n- must be a multiple of 5GB\n- > 30GB must be a multiple of 10\n- > 200GB must be a multiple of 100\n- > 2000GB must be a multiple of 1000", "format": "double", "nullable": true } @@ -12253,7 +12332,8 @@ }, "description": "The route entries that control how network traffic is directed through the VPC environment." } - } + }, + "x-cli-entity-ref": "name" }, "VpcMember": { "required": [ @@ -12361,7 +12441,8 @@ "$ref": "#/components/schemas/Vpc" } } - } + }, + "x-cli-entity-list": "vpcs" } }, "securitySchemes": { diff --git a/provider_code_spec.json b/provider_code_spec.json index 0de305f..c3d8f0a 100644 --- a/provider_code_spec.json +++ b/provider_code_spec.json @@ -573,7 +573,7 @@ "name": "transfer_max", "float64": { "computed_optional_required": "computed", - "description": "The maximum transfer in TB permitted for this size." + "description": "The maximum transfer in TB permitted for this size. If this is the same as `transfer` no additional transfer is supported." } }, { diff --git a/scripts/fetch-openapi.sh b/scripts/fetch-openapi.sh index 54893a5..4b55ed6 100755 --- a/scripts/fetch-openapi.sh +++ b/scripts/fetch-openapi.sh @@ -144,3 +144,4 @@ cat <<<$(jq '.components.schemas.SizeType.properties.description += {"x-oapi-cod # Edit description here because it's hard to override nested schema properties cat <<<$(jq '.components.schemas.ForwardingRule.properties.entry_protocol.description = "The protocol that traffic must match for the load balancer to forward it. Valid values are \"http\" and \"https\"."' $OPENAPI_FILE) >$OPENAPI_FILE +cat <<<$(jq '.components.schemas.SizeOptions.properties.transfer_max.description = "The maximum transfer in TB permitted for this size. If this is the same as `transfer` no additional transfer is supported."' $OPENAPI_FILE) >$OPENAPI_FILE