gopinto

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

README

Go API client for gopinto

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: v1
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import sw "./gopinto"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
RecordApi DnsApiRecordsDelete Delete /dns/api/Records Deletes records which match the specified criterias
RecordApi DnsApiRecordsGet Get /dns/api/Records Retrieves the DNS zone's resource records
RecordApi DnsApiRecordsPost Post /dns/api/Records Creates a new DNS resource record
ZoneApi DnsApiZonesDelete Delete /dns/api/Zones Deletes a DNS zone from the passed provider
ZoneApi DnsApiZonesGet Get /dns/api/Zones Retrieves the DNS zones assigned to the account
ZoneApi DnsApiZonesPost Post /dns/api/Zones Creates a new DNS zone
ZoneApi DnsApiZonesZoneGet Get /dns/api/Zones/{zone} Loads the specified DNS zone

Documentation For Models

Documentation For Authorization

oidc
  • Type: OAuth
  • Flow: accessCode
  • Authorization URL: https://localhost:9100/connect/authorize
  • Scopes:
  • fava_business_api: Fava - Business - API
  • fava_credentials_api: Fava - Credentials - API
  • fava_openapi_gateway: Fava - OpenApiGateway - API
  • pinto_citadel: Pinto - Citadel - Certificates - API
  • pinto_nexus: Pinto - Nexus - DNS - API

Example

auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING")
r, err := client.Service.Operation(auth, args)

Or via OAuth2 module to automatically refresh tokens and perform user authentication.

import "golang.org/x/oauth2"

/* Perform OAuth2 round trip request and obtain a token */

tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token)
auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	RecordApi RecordApi

	ZoneApi ZoneApi
	// contains filtered or unexported fields
}

APIClient manages communication with the Fava - OpenApi Gateway - DNS API vv1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AccessOptions added in v0.4.0

type AccessOptions struct {
	Provider      *string `json:"provider,omitempty"`
	Environment   *string `json:"environment,omitempty"`
	CredentialsId *string `json:"credentials_id,omitempty"`
}

AccessOptions struct for AccessOptions

func NewAccessOptions added in v0.4.0

func NewAccessOptions() *AccessOptions

NewAccessOptions instantiates a new AccessOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAccessOptionsWithDefaults added in v0.4.0

func NewAccessOptionsWithDefaults() *AccessOptions

NewAccessOptionsWithDefaults instantiates a new AccessOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AccessOptions) GetCredentialsId added in v0.4.0

func (o *AccessOptions) GetCredentialsId() string

GetCredentialsId returns the CredentialsId field value if set, zero value otherwise.

func (*AccessOptions) GetCredentialsIdOk added in v0.4.0

func (o *AccessOptions) GetCredentialsIdOk() (*string, bool)

GetCredentialsIdOk returns a tuple with the CredentialsId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccessOptions) GetEnvironment added in v0.4.0

func (o *AccessOptions) GetEnvironment() string

GetEnvironment returns the Environment field value if set, zero value otherwise.

func (*AccessOptions) GetEnvironmentOk added in v0.4.0

func (o *AccessOptions) GetEnvironmentOk() (*string, bool)

GetEnvironmentOk returns a tuple with the Environment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccessOptions) GetProvider added in v0.4.0

func (o *AccessOptions) GetProvider() string

GetProvider returns the Provider field value if set, zero value otherwise.

func (*AccessOptions) GetProviderOk added in v0.4.0

func (o *AccessOptions) GetProviderOk() (*string, bool)

GetProviderOk returns a tuple with the Provider field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AccessOptions) HasCredentialsId added in v0.4.0

func (o *AccessOptions) HasCredentialsId() bool

HasCredentialsId returns a boolean if a field has been set.

func (*AccessOptions) HasEnvironment added in v0.4.0

func (o *AccessOptions) HasEnvironment() bool

HasEnvironment returns a boolean if a field has been set.

func (*AccessOptions) HasProvider added in v0.4.0

func (o *AccessOptions) HasProvider() bool

HasProvider returns a boolean if a field has been set.

func (AccessOptions) MarshalJSON added in v0.4.0

func (o AccessOptions) MarshalJSON() ([]byte, error)

func (*AccessOptions) SetCredentialsId added in v0.4.0

func (o *AccessOptions) SetCredentialsId(v string)

SetCredentialsId gets a reference to the given string and assigns it to the CredentialsId field.

func (*AccessOptions) SetEnvironment added in v0.4.0

func (o *AccessOptions) SetEnvironment(v string)

SetEnvironment gets a reference to the given string and assigns it to the Environment field.

func (*AccessOptions) SetProvider added in v0.4.0

func (o *AccessOptions) SetProvider(v string)

SetProvider gets a reference to the given string and assigns it to the Provider field.

type ApiDnsApiRecordsDeleteRequest added in v0.4.0

type ApiDnsApiRecordsDeleteRequest struct {
	ApiService RecordApi
	// contains filtered or unexported fields
}

func (ApiDnsApiRecordsDeleteRequest) Execute added in v0.4.0

func (ApiDnsApiRecordsDeleteRequest) Name added in v0.4.0

func (ApiDnsApiRecordsDeleteRequest) RecordType added in v0.4.0

func (ApiDnsApiRecordsDeleteRequest) XApiOptions added in v0.4.0

func (ApiDnsApiRecordsDeleteRequest) Zone added in v0.4.0

type ApiDnsApiRecordsGetRequest added in v0.4.0

type ApiDnsApiRecordsGetRequest struct {
	ApiService RecordApi
	// contains filtered or unexported fields
}

func (ApiDnsApiRecordsGetRequest) Execute added in v0.4.0

func (ApiDnsApiRecordsGetRequest) Name added in v0.4.0

func (ApiDnsApiRecordsGetRequest) RecordType added in v0.4.0

func (ApiDnsApiRecordsGetRequest) XApiOptions added in v0.4.0

func (ApiDnsApiRecordsGetRequest) Zone added in v0.4.0

type ApiDnsApiRecordsPostRequest added in v0.4.0

type ApiDnsApiRecordsPostRequest struct {
	ApiService RecordApi
	// contains filtered or unexported fields
}

func (ApiDnsApiRecordsPostRequest) CreateRecordRequestModel added in v0.4.0

func (r ApiDnsApiRecordsPostRequest) CreateRecordRequestModel(createRecordRequestModel CreateRecordRequestModel) ApiDnsApiRecordsPostRequest

func (ApiDnsApiRecordsPostRequest) Execute added in v0.4.0

func (ApiDnsApiRecordsPostRequest) XApiOptions added in v0.4.0

type ApiDnsApiZonesDeleteRequest added in v0.4.0

type ApiDnsApiZonesDeleteRequest struct {
	ApiService ZoneApi
	// contains filtered or unexported fields
}

func (ApiDnsApiZonesDeleteRequest) Execute added in v0.4.0

func (ApiDnsApiZonesDeleteRequest) Name added in v0.4.0

func (ApiDnsApiZonesDeleteRequest) XApiOptions added in v0.4.0

type ApiDnsApiZonesGetRequest added in v0.4.0

type ApiDnsApiZonesGetRequest struct {
	ApiService ZoneApi
	// contains filtered or unexported fields
}

func (ApiDnsApiZonesGetRequest) Execute added in v0.4.0

func (ApiDnsApiZonesGetRequest) XApiOptions added in v0.4.0

func (r ApiDnsApiZonesGetRequest) XApiOptions(xApiOptions string) ApiDnsApiZonesGetRequest

type ApiDnsApiZonesPostRequest added in v0.4.0

type ApiDnsApiZonesPostRequest struct {
	ApiService ZoneApi
	// contains filtered or unexported fields
}

func (ApiDnsApiZonesPostRequest) CreateZoneRequestModel added in v0.4.0

func (r ApiDnsApiZonesPostRequest) CreateZoneRequestModel(createZoneRequestModel CreateZoneRequestModel) ApiDnsApiZonesPostRequest

func (ApiDnsApiZonesPostRequest) Execute added in v0.4.0

func (ApiDnsApiZonesPostRequest) XApiOptions added in v0.4.0

func (r ApiDnsApiZonesPostRequest) XApiOptions(xApiOptions string) ApiDnsApiZonesPostRequest

type ApiDnsApiZonesZoneGetRequest added in v0.4.0

type ApiDnsApiZonesZoneGetRequest struct {
	ApiService ZoneApi
	// contains filtered or unexported fields
}

func (ApiDnsApiZonesZoneGetRequest) Execute added in v0.4.0

func (ApiDnsApiZonesZoneGetRequest) XApiOptions added in v0.4.0

type ApiOptions added in v0.4.0

type ApiOptions struct {
	AccessOptions *AccessOptions     `json:"access_options,omitempty"`
	Meta          *map[string]string `json:"meta,omitempty"`
}

ApiOptions struct for ApiOptions

func NewApiOptions added in v0.4.0

func NewApiOptions() *ApiOptions

NewApiOptions instantiates a new ApiOptions object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewApiOptionsWithDefaults added in v0.4.0

func NewApiOptionsWithDefaults() *ApiOptions

NewApiOptionsWithDefaults instantiates a new ApiOptions object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ApiOptions) GetAccessOptions added in v0.4.0

func (o *ApiOptions) GetAccessOptions() AccessOptions

GetAccessOptions returns the AccessOptions field value if set, zero value otherwise.

func (*ApiOptions) GetAccessOptionsOk added in v0.4.0

func (o *ApiOptions) GetAccessOptionsOk() (*AccessOptions, bool)

GetAccessOptionsOk returns a tuple with the AccessOptions field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiOptions) GetMeta added in v0.4.0

func (o *ApiOptions) GetMeta() map[string]string

GetMeta returns the Meta field value if set, zero value otherwise.

func (*ApiOptions) GetMetaOk added in v0.4.0

func (o *ApiOptions) GetMetaOk() (*map[string]string, bool)

GetMetaOk returns a tuple with the Meta field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ApiOptions) HasAccessOptions added in v0.4.0

func (o *ApiOptions) HasAccessOptions() bool

HasAccessOptions returns a boolean if a field has been set.

func (*ApiOptions) HasMeta added in v0.4.0

func (o *ApiOptions) HasMeta() bool

HasMeta returns a boolean if a field has been set.

func (ApiOptions) MarshalJSON added in v0.4.0

func (o ApiOptions) MarshalJSON() ([]byte, error)

func (*ApiOptions) SetAccessOptions added in v0.4.0

func (o *ApiOptions) SetAccessOptions(v AccessOptions)

SetAccessOptions gets a reference to the given AccessOptions and assigns it to the AccessOptions field.

func (*ApiOptions) SetMeta added in v0.4.0

func (o *ApiOptions) SetMeta(v map[string]string)

SetMeta gets a reference to the given map[string]string and assigns it to the Meta field.

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CreateRecordRequestModel

type CreateRecordRequestModel struct {
	// Name of the DNS zone to create a record for.
	Zone string `json:"zone"`
	// Name of the DNS record to create.
	Name  string       `json:"name"`
	Class *RecordClass `json:"class,omitempty"`
	Type  RecordType   `json:"type"`
	// The data of the record to create,
	Data string `json:"data"`
	// The time to live of the record to create.
	Ttl *int32 `json:"ttl,omitempty"`
}

CreateRecordRequestModel struct for CreateRecordRequestModel

func NewCreateRecordRequestModel

func NewCreateRecordRequestModel(zone string, name string, type_ RecordType, data string) *CreateRecordRequestModel

NewCreateRecordRequestModel instantiates a new CreateRecordRequestModel object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateRecordRequestModelWithDefaults

func NewCreateRecordRequestModelWithDefaults() *CreateRecordRequestModel

NewCreateRecordRequestModelWithDefaults instantiates a new CreateRecordRequestModel object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateRecordRequestModel) GetClass

func (o *CreateRecordRequestModel) GetClass() RecordClass

GetClass returns the Class field value if set, zero value otherwise.

func (*CreateRecordRequestModel) GetClassOk

func (o *CreateRecordRequestModel) GetClassOk() (*RecordClass, bool)

GetClassOk returns a tuple with the Class field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateRecordRequestModel) GetData

func (o *CreateRecordRequestModel) GetData() string

GetData returns the Data field value

func (*CreateRecordRequestModel) GetDataOk

func (o *CreateRecordRequestModel) GetDataOk() (*string, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*CreateRecordRequestModel) GetName

func (o *CreateRecordRequestModel) GetName() string

GetName returns the Name field value

func (*CreateRecordRequestModel) GetNameOk

func (o *CreateRecordRequestModel) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*CreateRecordRequestModel) GetTtl

func (o *CreateRecordRequestModel) GetTtl() int32

GetTtl returns the Ttl field value if set, zero value otherwise.

func (*CreateRecordRequestModel) GetTtlOk

func (o *CreateRecordRequestModel) GetTtlOk() (*int32, bool)

GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateRecordRequestModel) GetType

func (o *CreateRecordRequestModel) GetType() RecordType

GetType returns the Type field value

func (*CreateRecordRequestModel) GetTypeOk

func (o *CreateRecordRequestModel) GetTypeOk() (*RecordType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*CreateRecordRequestModel) GetZone

func (o *CreateRecordRequestModel) GetZone() string

GetZone returns the Zone field value

func (*CreateRecordRequestModel) GetZoneOk

func (o *CreateRecordRequestModel) GetZoneOk() (*string, bool)

GetZoneOk returns a tuple with the Zone field value and a boolean to check if the value has been set.

func (*CreateRecordRequestModel) HasClass

func (o *CreateRecordRequestModel) HasClass() bool

HasClass returns a boolean if a field has been set.

func (*CreateRecordRequestModel) HasTtl

func (o *CreateRecordRequestModel) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (CreateRecordRequestModel) MarshalJSON

func (o CreateRecordRequestModel) MarshalJSON() ([]byte, error)

func (*CreateRecordRequestModel) SetClass

func (o *CreateRecordRequestModel) SetClass(v RecordClass)

SetClass gets a reference to the given RecordClass and assigns it to the Class field.

func (*CreateRecordRequestModel) SetData

func (o *CreateRecordRequestModel) SetData(v string)

SetData sets field value

func (*CreateRecordRequestModel) SetName

func (o *CreateRecordRequestModel) SetName(v string)

SetName sets field value

func (*CreateRecordRequestModel) SetTtl

func (o *CreateRecordRequestModel) SetTtl(v int32)

SetTtl gets a reference to the given int32 and assigns it to the Ttl field.

func (*CreateRecordRequestModel) SetType

func (o *CreateRecordRequestModel) SetType(v RecordType)

SetType sets field value

func (*CreateRecordRequestModel) SetZone

func (o *CreateRecordRequestModel) SetZone(v string)

SetZone sets field value

type CreateZoneRequestModel

type CreateZoneRequestModel struct {
	// Name of the DNS zone to create.
	Name string `json:"name"`
}

CreateZoneRequestModel struct for CreateZoneRequestModel

func NewCreateZoneRequestModel

func NewCreateZoneRequestModel(name string) *CreateZoneRequestModel

NewCreateZoneRequestModel instantiates a new CreateZoneRequestModel object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateZoneRequestModelWithDefaults

func NewCreateZoneRequestModelWithDefaults() *CreateZoneRequestModel

NewCreateZoneRequestModelWithDefaults instantiates a new CreateZoneRequestModel object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateZoneRequestModel) GetName

func (o *CreateZoneRequestModel) GetName() string

GetName returns the Name field value

func (*CreateZoneRequestModel) GetNameOk

func (o *CreateZoneRequestModel) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (CreateZoneRequestModel) MarshalJSON

func (o CreateZoneRequestModel) MarshalJSON() ([]byte, error)

func (*CreateZoneRequestModel) SetName

func (o *CreateZoneRequestModel) SetName(v string)

SetName sets field value

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type NullableAccessOptions added in v0.4.0

type NullableAccessOptions struct {
	// contains filtered or unexported fields
}

func NewNullableAccessOptions added in v0.4.0

func NewNullableAccessOptions(val *AccessOptions) *NullableAccessOptions

func (NullableAccessOptions) Get added in v0.4.0

func (NullableAccessOptions) IsSet added in v0.4.0

func (v NullableAccessOptions) IsSet() bool

func (NullableAccessOptions) MarshalJSON added in v0.4.0

func (v NullableAccessOptions) MarshalJSON() ([]byte, error)

func (*NullableAccessOptions) Set added in v0.4.0

func (v *NullableAccessOptions) Set(val *AccessOptions)

func (*NullableAccessOptions) UnmarshalJSON added in v0.4.0

func (v *NullableAccessOptions) UnmarshalJSON(src []byte) error

func (*NullableAccessOptions) Unset added in v0.4.0

func (v *NullableAccessOptions) Unset()

type NullableApiOptions added in v0.4.0

type NullableApiOptions struct {
	// contains filtered or unexported fields
}

func NewNullableApiOptions added in v0.4.0

func NewNullableApiOptions(val *ApiOptions) *NullableApiOptions

func (NullableApiOptions) Get added in v0.4.0

func (v NullableApiOptions) Get() *ApiOptions

func (NullableApiOptions) IsSet added in v0.4.0

func (v NullableApiOptions) IsSet() bool

func (NullableApiOptions) MarshalJSON added in v0.4.0

func (v NullableApiOptions) MarshalJSON() ([]byte, error)

func (*NullableApiOptions) Set added in v0.4.0

func (v *NullableApiOptions) Set(val *ApiOptions)

func (*NullableApiOptions) UnmarshalJSON added in v0.4.0

func (v *NullableApiOptions) UnmarshalJSON(src []byte) error

func (*NullableApiOptions) Unset added in v0.4.0

func (v *NullableApiOptions) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCreateRecordRequestModel

type NullableCreateRecordRequestModel struct {
	// contains filtered or unexported fields
}

func (NullableCreateRecordRequestModel) Get

func (NullableCreateRecordRequestModel) IsSet

func (NullableCreateRecordRequestModel) MarshalJSON

func (v NullableCreateRecordRequestModel) MarshalJSON() ([]byte, error)

func (*NullableCreateRecordRequestModel) Set

func (*NullableCreateRecordRequestModel) UnmarshalJSON

func (v *NullableCreateRecordRequestModel) UnmarshalJSON(src []byte) error

func (*NullableCreateRecordRequestModel) Unset

type NullableCreateZoneRequestModel

type NullableCreateZoneRequestModel struct {
	// contains filtered or unexported fields
}

func (NullableCreateZoneRequestModel) Get

func (NullableCreateZoneRequestModel) IsSet

func (NullableCreateZoneRequestModel) MarshalJSON

func (v NullableCreateZoneRequestModel) MarshalJSON() ([]byte, error)

func (*NullableCreateZoneRequestModel) Set

func (*NullableCreateZoneRequestModel) UnmarshalJSON

func (v *NullableCreateZoneRequestModel) UnmarshalJSON(src []byte) error

func (*NullableCreateZoneRequestModel) Unset

func (v *NullableCreateZoneRequestModel) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableRecord

type NullableRecord struct {
	// contains filtered or unexported fields
}

func NewNullableRecord

func NewNullableRecord(val *Record) *NullableRecord

func (NullableRecord) Get

func (v NullableRecord) Get() *Record

func (NullableRecord) IsSet

func (v NullableRecord) IsSet() bool

func (NullableRecord) MarshalJSON

func (v NullableRecord) MarshalJSON() ([]byte, error)

func (*NullableRecord) Set

func (v *NullableRecord) Set(val *Record)

func (*NullableRecord) UnmarshalJSON

func (v *NullableRecord) UnmarshalJSON(src []byte) error

func (*NullableRecord) Unset

func (v *NullableRecord) Unset()

type NullableRecordClass

type NullableRecordClass struct {
	// contains filtered or unexported fields
}

func NewNullableRecordClass

func NewNullableRecordClass(val *RecordClass) *NullableRecordClass

func (NullableRecordClass) Get

func (NullableRecordClass) IsSet

func (v NullableRecordClass) IsSet() bool

func (NullableRecordClass) MarshalJSON

func (v NullableRecordClass) MarshalJSON() ([]byte, error)

func (*NullableRecordClass) Set

func (v *NullableRecordClass) Set(val *RecordClass)

func (*NullableRecordClass) UnmarshalJSON

func (v *NullableRecordClass) UnmarshalJSON(src []byte) error

func (*NullableRecordClass) Unset

func (v *NullableRecordClass) Unset()

type NullableRecordType

type NullableRecordType struct {
	// contains filtered or unexported fields
}

func NewNullableRecordType

func NewNullableRecordType(val *RecordType) *NullableRecordType

func (NullableRecordType) Get

func (v NullableRecordType) Get() *RecordType

func (NullableRecordType) IsSet

func (v NullableRecordType) IsSet() bool

func (NullableRecordType) MarshalJSON

func (v NullableRecordType) MarshalJSON() ([]byte, error)

func (*NullableRecordType) Set

func (v *NullableRecordType) Set(val *RecordType)

func (*NullableRecordType) UnmarshalJSON

func (v *NullableRecordType) UnmarshalJSON(src []byte) error

func (*NullableRecordType) Unset

func (v *NullableRecordType) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableZone

type NullableZone struct {
	// contains filtered or unexported fields
}

func NewNullableZone

func NewNullableZone(val *Zone) *NullableZone

func (NullableZone) Get

func (v NullableZone) Get() *Zone

func (NullableZone) IsSet

func (v NullableZone) IsSet() bool

func (NullableZone) MarshalJSON

func (v NullableZone) MarshalJSON() ([]byte, error)

func (*NullableZone) Set

func (v *NullableZone) Set(val *Zone)

func (*NullableZone) UnmarshalJSON

func (v *NullableZone) UnmarshalJSON(src []byte) error

func (*NullableZone) Unset

func (v *NullableZone) Unset()

type Record

type Record struct {
	Name  string      `json:"name"`
	Type  RecordType  `json:"type"`
	Class RecordClass `json:"class"`
	Ttl   *int32      `json:"ttl,omitempty"`
	Data  string      `json:"data"`
}

Record struct for Record

func NewRecord

func NewRecord(name string, type_ RecordType, class RecordClass, data string) *Record

NewRecord instantiates a new Record object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRecordWithDefaults

func NewRecordWithDefaults() *Record

NewRecordWithDefaults instantiates a new Record object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Record) GetClass

func (o *Record) GetClass() RecordClass

GetClass returns the Class field value

func (*Record) GetClassOk

func (o *Record) GetClassOk() (*RecordClass, bool)

GetClassOk returns a tuple with the Class field value and a boolean to check if the value has been set.

func (*Record) GetData

func (o *Record) GetData() string

GetData returns the Data field value

func (*Record) GetDataOk

func (o *Record) GetDataOk() (*string, bool)

GetDataOk returns a tuple with the Data field value and a boolean to check if the value has been set.

func (*Record) GetName

func (o *Record) GetName() string

GetName returns the Name field value

func (*Record) GetNameOk

func (o *Record) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Record) GetTtl

func (o *Record) GetTtl() int32

GetTtl returns the Ttl field value if set, zero value otherwise.

func (*Record) GetTtlOk

func (o *Record) GetTtlOk() (*int32, bool)

GetTtlOk returns a tuple with the Ttl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Record) GetType

func (o *Record) GetType() RecordType

GetType returns the Type field value

func (*Record) GetTypeOk

func (o *Record) GetTypeOk() (*RecordType, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Record) HasTtl

func (o *Record) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (Record) MarshalJSON

func (o Record) MarshalJSON() ([]byte, error)

func (*Record) SetClass

func (o *Record) SetClass(v RecordClass)

SetClass sets field value

func (*Record) SetData

func (o *Record) SetData(v string)

SetData sets field value

func (*Record) SetName

func (o *Record) SetName(v string)

SetName sets field value

func (*Record) SetTtl

func (o *Record) SetTtl(v int32)

SetTtl gets a reference to the given int32 and assigns it to the Ttl field.

func (*Record) SetType

func (o *Record) SetType(v RecordType)

SetType sets field value

type RecordApi added in v0.4.0

type RecordApi interface {

	/*
	 * DnsApiRecordsDelete Deletes records which match the specified criterias
	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ApiDnsApiRecordsDeleteRequest
	 */
	DnsApiRecordsDelete(ctx _context.Context) ApiDnsApiRecordsDeleteRequest

	/*
	 * DnsApiRecordsDeleteExecute executes the request
	 */
	DnsApiRecordsDeleteExecute(r ApiDnsApiRecordsDeleteRequest) (*_nethttp.Response, error)

	/*
	 * DnsApiRecordsGet Retrieves the DNS zone's resource records
	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ApiDnsApiRecordsGetRequest
	 */
	DnsApiRecordsGet(ctx _context.Context) ApiDnsApiRecordsGetRequest

	/*
	 * DnsApiRecordsGetExecute executes the request
	 * @return []Record
	 */
	DnsApiRecordsGetExecute(r ApiDnsApiRecordsGetRequest) ([]Record, *_nethttp.Response, error)

	/*
	 * DnsApiRecordsPost Creates a new DNS resource record
	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ApiDnsApiRecordsPostRequest
	 */
	DnsApiRecordsPost(ctx _context.Context) ApiDnsApiRecordsPostRequest

	/*
	 * DnsApiRecordsPostExecute executes the request
	 * @return Record
	 */
	DnsApiRecordsPostExecute(r ApiDnsApiRecordsPostRequest) (Record, *_nethttp.Response, error)
}

type RecordApiService added in v0.4.0

type RecordApiService service

RecordApiService RecordApi service

func (*RecordApiService) DnsApiRecordsDelete added in v0.4.0

func (a *RecordApiService) DnsApiRecordsDelete(ctx _context.Context) ApiDnsApiRecordsDeleteRequest

* DnsApiRecordsDelete Deletes records which match the specified criterias * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsDeleteRequest

func (*RecordApiService) DnsApiRecordsDeleteExecute added in v0.4.0

func (a *RecordApiService) DnsApiRecordsDeleteExecute(r ApiDnsApiRecordsDeleteRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*RecordApiService) DnsApiRecordsGet added in v0.4.0

* DnsApiRecordsGet Retrieves the DNS zone's resource records * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsGetRequest

func (*RecordApiService) DnsApiRecordsGetExecute added in v0.4.0

func (a *RecordApiService) DnsApiRecordsGetExecute(r ApiDnsApiRecordsGetRequest) ([]Record, *_nethttp.Response, error)

* Execute executes the request * @return []Record

func (*RecordApiService) DnsApiRecordsPost added in v0.4.0

* DnsApiRecordsPost Creates a new DNS resource record * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiRecordsPostRequest

func (*RecordApiService) DnsApiRecordsPostExecute added in v0.4.0

func (a *RecordApiService) DnsApiRecordsPostExecute(r ApiDnsApiRecordsPostRequest) (Record, *_nethttp.Response, error)

* Execute executes the request * @return Record

type RecordClass

type RecordClass string

RecordClass Resource record classes as defined in <see href=\"https://tools.ietf.org/html/rfc1035#section-3.2.4\">rfc1035</see>

const (
	RECORDCLASS_IN RecordClass = "IN"
	RECORDCLASS_CS RecordClass = "CS"
	RECORDCLASS_CH RecordClass = "CH"
	RECORDCLASS_HS RecordClass = "HS"
)

List of RecordClass

func NewRecordClassFromValue

func NewRecordClassFromValue(v string) (*RecordClass, error)

NewRecordClassFromValue returns a pointer to a valid RecordClass for the value passed as argument, or an error if the value passed is not allowed by the enum

func (RecordClass) IsValid

func (v RecordClass) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (RecordClass) Ptr

func (v RecordClass) Ptr() *RecordClass

Ptr returns reference to RecordClass value

func (*RecordClass) UnmarshalJSON

func (v *RecordClass) UnmarshalJSON(src []byte) error

type RecordType

type RecordType string

RecordType Resource record types as defined in <see href=\"https://tools.ietf.org/html/rfc1035#section-3.2.2\">rfc1035</see>

const (
	RECORDTYPE_A     RecordType = "A"
	RECORDTYPE_NS    RecordType = "NS"
	RECORDTYPE_CNAME RecordType = "CNAME"
	RECORDTYPE_SOA   RecordType = "SOA"
	RECORDTYPE_PTR   RecordType = "PTR"
	RECORDTYPE_MX    RecordType = "MX"
	RECORDTYPE_TXT   RecordType = "TXT"
	RECORDTYPE_SRV   RecordType = "SRV"
	RECORDTYPE_AAAA  RecordType = "AAAA"
	RECORDTYPE_SPF   RecordType = "SPF"
)

List of RecordType

func NewRecordTypeFromValue

func NewRecordTypeFromValue(v string) (*RecordType, error)

NewRecordTypeFromValue returns a pointer to a valid RecordType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (RecordType) IsValid

func (v RecordType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (RecordType) Ptr

func (v RecordType) Ptr() *RecordType

Ptr returns reference to RecordType value

func (*RecordType) UnmarshalJSON

func (v *RecordType) UnmarshalJSON(src []byte) error

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type Zone

type Zone struct {
	Name string `json:"name"`
}

Zone struct for Zone

func NewZone

func NewZone(name string) *Zone

NewZone instantiates a new Zone object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewZoneWithDefaults

func NewZoneWithDefaults() *Zone

NewZoneWithDefaults instantiates a new Zone object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Zone) GetName

func (o *Zone) GetName() string

GetName returns the Name field value

func (*Zone) GetNameOk

func (o *Zone) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (Zone) MarshalJSON

func (o Zone) MarshalJSON() ([]byte, error)

func (*Zone) SetName

func (o *Zone) SetName(v string)

SetName sets field value

type ZoneApi added in v0.4.0

type ZoneApi interface {

	/*
	 * DnsApiZonesDelete Deletes a DNS zone from the passed provider
	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ApiDnsApiZonesDeleteRequest
	 */
	DnsApiZonesDelete(ctx _context.Context) ApiDnsApiZonesDeleteRequest

	/*
	 * DnsApiZonesDeleteExecute executes the request
	 */
	DnsApiZonesDeleteExecute(r ApiDnsApiZonesDeleteRequest) (*_nethttp.Response, error)

	/*
	 * DnsApiZonesGet Retrieves the DNS zones assigned to the account
	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ApiDnsApiZonesGetRequest
	 */
	DnsApiZonesGet(ctx _context.Context) ApiDnsApiZonesGetRequest

	/*
	 * DnsApiZonesGetExecute executes the request
	 * @return []Zone
	 */
	DnsApiZonesGetExecute(r ApiDnsApiZonesGetRequest) ([]Zone, *_nethttp.Response, error)

	/*
	 * DnsApiZonesPost Creates a new DNS zone
	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @return ApiDnsApiZonesPostRequest
	 */
	DnsApiZonesPost(ctx _context.Context) ApiDnsApiZonesPostRequest

	/*
	 * DnsApiZonesPostExecute executes the request
	 * @return Zone
	 */
	DnsApiZonesPostExecute(r ApiDnsApiZonesPostRequest) (Zone, *_nethttp.Response, error)

	/*
	 * DnsApiZonesZoneGet Loads the specified DNS zone
	 * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
	 * @param zone The name of the zone to query.
	 * @return ApiDnsApiZonesZoneGetRequest
	 */
	DnsApiZonesZoneGet(ctx _context.Context, zone string) ApiDnsApiZonesZoneGetRequest

	/*
	 * DnsApiZonesZoneGetExecute executes the request
	 * @return Zone
	 */
	DnsApiZonesZoneGetExecute(r ApiDnsApiZonesZoneGetRequest) (Zone, *_nethttp.Response, error)
}

type ZoneApiService added in v0.4.0

type ZoneApiService service

ZoneApiService ZoneApi service

func (*ZoneApiService) DnsApiZonesDelete added in v0.4.0

func (a *ZoneApiService) DnsApiZonesDelete(ctx _context.Context) ApiDnsApiZonesDeleteRequest

* DnsApiZonesDelete Deletes a DNS zone from the passed provider * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesDeleteRequest

func (*ZoneApiService) DnsApiZonesDeleteExecute added in v0.4.0

func (a *ZoneApiService) DnsApiZonesDeleteExecute(r ApiDnsApiZonesDeleteRequest) (*_nethttp.Response, error)

* Execute executes the request

func (*ZoneApiService) DnsApiZonesGet added in v0.4.0

* DnsApiZonesGet Retrieves the DNS zones assigned to the account * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesGetRequest

func (*ZoneApiService) DnsApiZonesGetExecute added in v0.4.0

func (a *ZoneApiService) DnsApiZonesGetExecute(r ApiDnsApiZonesGetRequest) ([]Zone, *_nethttp.Response, error)

* Execute executes the request * @return []Zone

func (*ZoneApiService) DnsApiZonesPost added in v0.4.0

func (a *ZoneApiService) DnsApiZonesPost(ctx _context.Context) ApiDnsApiZonesPostRequest

* DnsApiZonesPost Creates a new DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiDnsApiZonesPostRequest

func (*ZoneApiService) DnsApiZonesPostExecute added in v0.4.0

func (a *ZoneApiService) DnsApiZonesPostExecute(r ApiDnsApiZonesPostRequest) (Zone, *_nethttp.Response, error)

* Execute executes the request * @return Zone

func (*ZoneApiService) DnsApiZonesZoneGet added in v0.4.0

func (a *ZoneApiService) DnsApiZonesZoneGet(ctx _context.Context, zone string) ApiDnsApiZonesZoneGetRequest

* DnsApiZonesZoneGet Loads the specified DNS zone * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zone The name of the zone to query. * @return ApiDnsApiZonesZoneGetRequest

func (*ZoneApiService) DnsApiZonesZoneGetExecute added in v0.4.0

func (a *ZoneApiService) DnsApiZonesZoneGetExecute(r ApiDnsApiZonesZoneGetRequest) (Zone, *_nethttp.Response, error)

* Execute executes the request * @return Zone

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL