ionoscloud

package module
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 27 Imported by: 4

README

Go API client for ionoscloud

DNS API Specification

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.

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 "./ionoscloud"

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 https://dns.de-fra.ionos.com

Class Method HTTP request Description
RecordsApi RecordsGet Get /records Retrieve all records
RecordsApi ZonesRecordsDelete Delete /zones/{zoneId}/records/{recordId} Delete a record
RecordsApi ZonesRecordsFindById Get /zones/{zoneId}/records/{recordId} Retrieve a record
RecordsApi ZonesRecordsGet Get /zones/{zoneId}/records Retrieve records
RecordsApi ZonesRecordsPost Post /zones/{zoneId}/records Create a record
RecordsApi ZonesRecordsPut Put /zones/{zoneId}/records/{recordId} Ensure a record
ZonesApi ZonesDelete Delete /zones/{zoneId} Delete a zone
ZonesApi ZonesFindById Get /zones/{zoneId} Retrieve a zone
ZonesApi ZonesGet Get /zones Retrieve zones
ZonesApi ZonesPost Post /zones Create a zone
ZonesApi ZonesPut Put /zones/{zoneId} Ensure a zone

Documentation For Models

Documentation For Authorization

tokenAuth
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: Authorization and passed in as the auth context for each request.

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

support@cloud.ionos.com

Documentation

Index

Constants

View Source
const (
	RequestStatusQueued  = "QUEUED"
	RequestStatusRunning = "RUNNING"
	RequestStatusFailed  = "FAILED"
	RequestStatusDone    = "DONE"

	Version = "v1.1.1"
)
View Source
const (
	IonosUsernameEnvVar   = "IONOS_USERNAME"
	IonosPasswordEnvVar   = "IONOS_PASSWORD"
	IonosTokenEnvVar      = "IONOS_TOKEN"
	IonosApiUrlEnvVar     = "IONOS_API_URL"
	IonosPinnedCertEnvVar = "IONOS_PINNED_CERT"
	IonosLogLevelEnvVar   = "IONOS_LOG_LEVEL"
	DefaultIonosServerUrl = "https://dns.de-fra.ionos.com"
	DefaultIonosBasePath  = ""
)

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")
)
View Source
var LogLevelMap = map[string]LogLevel{
	"off":   Off,
	"debug": Debug,
	"trace": Trace,
}

Functions

func AddPinnedCert

func AddPinnedCert(transport *http.Transport, pkFingerprint string)

AddPinnedCert - enables pinning of the sha256 public fingerprint to the http client's transport

func CacheExpires

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

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

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool - returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 - returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 - returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt - returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 - returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 - returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString - returns a pointer to given string value.

func PtrTime

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

PtrTime - returns a pointer to given Time value.

func SliceToValueDefault

func SliceToValueDefault[T any](ptrSlice *[]T) []T

func ToBool

func ToBool(ptr *bool) bool

ToBool - returns the value of the bool pointer passed in

func ToBoolDefault

func ToBoolDefault(ptr *bool) bool

ToBoolDefault - returns the value of the bool pointer passed in, or false if the pointer is nil

func ToBoolSlice

func ToBoolSlice(ptrSlice *[]bool) []bool

ToBoolSlice - returns a bool slice of the pointer passed in

func ToByte

func ToByte(ptr *byte) byte

ToByte - returns the value of the byte pointer passed in

func ToByteDefault

func ToByteDefault(ptr *byte) byte

ToByteDefault - returns the value of the byte pointer passed in, or 0 if the pointer is nil

func ToByteSlice

func ToByteSlice(ptrSlice *[]byte) []byte

ToByteSlice - returns a byte slice of the pointer passed in

func ToFloat32

func ToFloat32(ptr *float32) float32

ToFloat32 - returns the value of the float32 pointer passed in

func ToFloat32Default

func ToFloat32Default(ptr *float32) float32

ToFloat32Default - returns the value of the float32 pointer passed in, or 0 if the pointer is nil

func ToFloat32Slice

func ToFloat32Slice(ptrSlice *[]float32) []float32

ToFloat32Slice - returns a float32 slice of the pointer passed in

func ToFloat64

func ToFloat64(ptr *float64) float64

ToFloat64 - returns the value of the float64 pointer passed in

func ToFloat64Default

func ToFloat64Default(ptr *float64) float64

ToFloat64Default - returns the value of the float64 pointer passed in, or 0 if the pointer is nil

func ToFloat64Slice

func ToFloat64Slice(ptrSlice *[]float64) []float64

ToFloat64Slice - returns a float64 slice of the pointer passed in

func ToInt

func ToInt(ptr *int) int

ToInt - returns the value of the int pointer passed in

func ToInt16

func ToInt16(ptr *int16) int16

ToInt16 - returns the value of the int16 pointer passed in

func ToInt16Default

func ToInt16Default(ptr *int16) int16

ToInt16Default - returns the value of the int16 pointer passed in, or 0 if the pointer is nil

func ToInt16Slice

func ToInt16Slice(ptrSlice *[]int16) []int16

ToInt16Slice - returns a int16 slice of the pointer passed in

func ToInt32

func ToInt32(ptr *int32) int32

ToInt32 - returns the value of the int32 pointer passed in

func ToInt32Default

func ToInt32Default(ptr *int32) int32

ToInt32Default - returns the value of the int32 pointer passed in, or 0 if the pointer is nil

func ToInt32Slice

func ToInt32Slice(ptrSlice *[]int32) []int32

ToInt32Slice - returns a int32 slice of the pointer passed in

func ToInt64

func ToInt64(ptr *int64) int64

ToInt64 - returns the value of the int64 pointer passed in

func ToInt64Default

func ToInt64Default(ptr *int64) int64

ToInt64Default - returns the value of the int64 pointer passed in, or 0 if the pointer is nil

func ToInt64Slice

func ToInt64Slice(ptrSlice *[]int64) []int64

ToInt64Slice - returns a int64 slice of the pointer passed in

func ToInt8

func ToInt8(ptr *int8) int8

ToInt8 - returns the value of the int8 pointer passed in

func ToInt8Default

func ToInt8Default(ptr *int8) int8

ToInt8Default - returns the value of the int8 pointer passed in, or 0 if the pointer is nil

func ToInt8Slice

func ToInt8Slice(ptrSlice *[]int8) []int8

ToInt8Slice - returns a int8 slice of the pointer passed in

func ToIntDefault

func ToIntDefault(ptr *int) int

ToIntDefault - returns the value of the int pointer passed in, or 0 if the pointer is nil

func ToIntSlice

func ToIntSlice(ptrSlice *[]int) []int

ToIntSlice - returns a int slice of the pointer passed in

func ToPtr

func ToPtr[T any](v T) *T

ToPtr - returns a pointer to the given value.

func ToString

func ToString(ptr *string) string

ToString - returns the value of the string pointer passed in

func ToStringDefault

func ToStringDefault(ptr *string) string

ToStringDefault - returns the value of the string pointer passed in, or "" if the pointer is nil

func ToStringSlice

func ToStringSlice(ptrSlice *[]string) []string

ToStringSlice - returns a string slice of the pointer passed in

func ToTime

func ToTime(ptr *time.Time) time.Time

ToTime - returns the value of the Time pointer passed in

func ToTimeDefault

func ToTimeDefault(ptr *time.Time) time.Time

ToTimeDefault - returns the value of the Time pointer passed in, or 0001-01-01 00:00:00 +0000 UTC if the pointer is nil

func ToTimeSlice

func ToTimeSlice(ptrSlice *[]time.Time) []time.Time

ToTimeSlice - returns a Time slice of the pointer passed in

func ToUint

func ToUint(ptr *uint) uint

ToUint - returns the value of the uint pointer passed in

func ToUint16

func ToUint16(ptr *uint16) uint16

ToUint16 - returns the value of the uint16 pointer passed in

func ToUint16Default

func ToUint16Default(ptr *uint16) uint16

ToUint16Default - returns the value of the uint16 pointer passed in, or 0 if the pointer is nil

func ToUint16Slice

func ToUint16Slice(ptrSlice *[]uint16) []uint16

ToUint16Slice - returns a uint16 slice of the pointer passed in

func ToUint32

func ToUint32(ptr *uint32) uint32

ToUint32 - returns the value of the uint32 pointer passed in

func ToUint32Default

func ToUint32Default(ptr *uint32) uint32

ToUint32Default - returns the value of the uint32 pointer passed in, or 0 if the pointer is nil

func ToUint32Slice

func ToUint32Slice(ptrSlice *[]uint32) []uint32

ToUint32Slice - returns a uint32 slice of the pointer passed in

func ToUint64

func ToUint64(ptr *uint64) uint64

ToUint64 - returns the value of the uint64 pointer passed in

func ToUint64Default

func ToUint64Default(ptr *uint64) uint64

ToUint64Default - returns the value of the uint64 pointer passed in, or 0 if the pointer is nil

func ToUint64Slice

func ToUint64Slice(ptrSlice *[]uint64) []uint64

ToUint64Slice - returns a uint63 slice of the pointer passed in

func ToUint8

func ToUint8(ptr *uint8) uint8

ToUint8 -returns the value of the uint8 pointer passed in

func ToUint8Default

func ToUint8Default(ptr *uint8) uint8

ToUint8Default - returns the value of the uint8 pointer passed in, or 0 if the pointer is nil

func ToUint8Slice

func ToUint8Slice(ptrSlice *[]uint8) []uint8

ToUint8Slice - returns a uint8 slice of the pointer passed in

func ToUintDefault

func ToUintDefault(ptr *uint) uint

ToUintDefault - returns the value of the uint pointer passed in, or 0 if the pointer is nil

func ToUintSlice

func ToUintSlice(ptrSlice *[]uint) []uint

ToUintSlice - returns a uint slice of the pointer passed in

func ToValue

func ToValue[T any](ptr *T) T

ToValue - returns the value of the pointer passed in

func ToValueDefault

func ToValueDefault[T any](ptr *T) T

ToValueDefault - returns the value of the pointer passed in, or the default type value if the pointer is nil

Types

type APIClient

type APIClient struct {
	RecordsApi *RecordsApiService

	ZonesApi *ZonesApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the IONOS Cloud - DNS API API v1.2.0 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"`
	// RequestTime is the time duration from the moment the APIClient sends
	// the HTTP request to the moment it receives an HTTP response.
	RequestTime time.Duration `json:"duration,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.

func (*APIResponse) HttpNotFound

func (resp *APIResponse) HttpNotFound() bool

HttpNotFound - returns true if a 404 status code was returned returns false for nil APIResponse values

func (*APIResponse) LogInfo

func (resp *APIResponse) LogInfo()

LogInfo - logs APIResponse values like RequestTime, Operation and StatusCode does not print anything for nil APIResponse values

type ApiRecordsGetRequest

type ApiRecordsGetRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiRecordsGetRequest) Execute

func (ApiRecordsGetRequest) FilterName

func (r ApiRecordsGetRequest) FilterName(filterName string) ApiRecordsGetRequest

func (ApiRecordsGetRequest) FilterState

func (r ApiRecordsGetRequest) FilterState(filterState ProvisioningState) ApiRecordsGetRequest

func (ApiRecordsGetRequest) FilterZoneId

func (r ApiRecordsGetRequest) FilterZoneId(filterZoneId string) ApiRecordsGetRequest

func (ApiRecordsGetRequest) Limit

func (ApiRecordsGetRequest) Offset

type ApiZonesDeleteRequest

type ApiZonesDeleteRequest struct {
	ApiService *ZonesApiService
	// contains filtered or unexported fields
}

func (ApiZonesDeleteRequest) Execute

func (r ApiZonesDeleteRequest) Execute() (*APIResponse, error)

type ApiZonesFindByIdRequest

type ApiZonesFindByIdRequest struct {
	ApiService *ZonesApiService
	// contains filtered or unexported fields
}

func (ApiZonesFindByIdRequest) Execute

type ApiZonesGetRequest

type ApiZonesGetRequest struct {
	ApiService *ZonesApiService
	// contains filtered or unexported fields
}

func (ApiZonesGetRequest) Execute

func (ApiZonesGetRequest) FilterState

func (r ApiZonesGetRequest) FilterState(filterState ProvisioningState) ApiZonesGetRequest

func (ApiZonesGetRequest) FilterZoneName

func (r ApiZonesGetRequest) FilterZoneName(filterZoneName string) ApiZonesGetRequest

func (ApiZonesGetRequest) Limit

func (ApiZonesGetRequest) Offset

func (r ApiZonesGetRequest) Offset(offset int32) ApiZonesGetRequest

type ApiZonesPostRequest

type ApiZonesPostRequest struct {
	ApiService *ZonesApiService
	// contains filtered or unexported fields
}

func (ApiZonesPostRequest) Execute

func (r ApiZonesPostRequest) Execute() (ZoneRead, *APIResponse, error)

func (ApiZonesPostRequest) ZoneCreate added in v1.1.0

func (r ApiZonesPostRequest) ZoneCreate(zoneCreate ZoneCreate) ApiZonesPostRequest

type ApiZonesPutRequest

type ApiZonesPutRequest struct {
	ApiService *ZonesApiService
	// contains filtered or unexported fields
}

func (ApiZonesPutRequest) Execute

func (r ApiZonesPutRequest) Execute() (ZoneRead, *APIResponse, error)

func (ApiZonesPutRequest) ZoneEnsure added in v1.1.0

func (r ApiZonesPutRequest) ZoneEnsure(zoneEnsure ZoneEnsure) ApiZonesPutRequest

type ApiZonesRecordsDeleteRequest

type ApiZonesRecordsDeleteRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiZonesRecordsDeleteRequest) Execute

type ApiZonesRecordsFindByIdRequest

type ApiZonesRecordsFindByIdRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiZonesRecordsFindByIdRequest) Execute

type ApiZonesRecordsGetRequest

type ApiZonesRecordsGetRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiZonesRecordsGetRequest) Execute

type ApiZonesRecordsPostRequest

type ApiZonesRecordsPostRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiZonesRecordsPostRequest) Execute

func (ApiZonesRecordsPostRequest) RecordCreate added in v1.1.0

type ApiZonesRecordsPutRequest

type ApiZonesRecordsPutRequest struct {
	ApiService *RecordsApiService
	// contains filtered or unexported fields
}

func (ApiZonesRecordsPutRequest) Execute

func (ApiZonesRecordsPutRequest) RecordEnsure added in v1.1.0

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"`
	DefaultQueryParams url.Values        `json:"defaultQueryParams,omitempty"`
	UserAgent          string            `json:"userAgent,omitempty"`
	Debug              bool              `json:"debug,omitempty"`
	Servers            ServerConfigurations
	OperationServers   map[string]ServerConfigurations
	HTTPClient         *http.Client
	LogLevel           LogLevel
	Logger             Logger
	Username           string        `json:"username,omitempty"`
	Password           string        `json:"password,omitempty"`
	Token              string        `json:"token,omitempty"`
	MaxRetries         int           `json:"maxRetries,omitempty"`
	WaitTime           time.Duration `json:"waitTime,omitempty"`
	MaxWaitTime        time.Duration `json:"maxWaitTime,omitempty"`
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration(username, password, token, hostUrl string) *Configuration

NewConfiguration returns a new Configuration object

func NewConfigurationFromEnv

func NewConfigurationFromEnv() *Configuration

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) AddDefaultQueryParam

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

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 Error added in v1.1.0

type Error struct {
	// HTTP status code of the operation as specified by [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-6).
	HttpStatus *int32           `json:"httpStatus,omitempty"`
	Messages   *[]ErrorMessages `json:"messages,omitempty"`
}

Error struct for Error

func NewError added in v1.1.0

func NewError() *Error

NewError instantiates a new Error 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 NewErrorWithDefaults added in v1.1.0

func NewErrorWithDefaults() *Error

NewErrorWithDefaults instantiates a new Error 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 (*Error) GetHttpStatus added in v1.1.0

func (o *Error) GetHttpStatus() *int32

GetHttpStatus returns the HttpStatus field value If the value is explicit nil, the zero value for int32 will be returned

func (*Error) GetHttpStatusOk added in v1.1.0

func (o *Error) GetHttpStatusOk() (*int32, bool)

GetHttpStatusOk returns a tuple with the HttpStatus field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Error) GetMessages added in v1.1.0

func (o *Error) GetMessages() *[]ErrorMessages

GetMessages returns the Messages field value If the value is explicit nil, the zero value for []ErrorMessages will be returned

func (*Error) GetMessagesOk added in v1.1.0

func (o *Error) GetMessagesOk() (*[]ErrorMessages, bool)

GetMessagesOk returns a tuple with the Messages field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Error) HasHttpStatus added in v1.1.0

func (o *Error) HasHttpStatus() bool

HasHttpStatus returns a boolean if a field has been set.

func (*Error) HasMessages added in v1.1.0

func (o *Error) HasMessages() bool

HasMessages returns a boolean if a field has been set.

func (Error) MarshalJSON added in v1.1.0

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

func (*Error) SetHttpStatus added in v1.1.0

func (o *Error) SetHttpStatus(v int32)

SetHttpStatus sets field value

func (*Error) SetMessages added in v1.1.0

func (o *Error) SetMessages(v []ErrorMessages)

SetMessages sets field value

type ErrorMessages added in v1.1.0

type ErrorMessages struct {
	// Internal error code.
	ErrorCode *string `json:"errorCode,omitempty"`
	// Human readable explanation of the issue.
	Message *string `json:"message,omitempty"`
}

ErrorMessages struct for ErrorMessages

func NewErrorMessages added in v1.1.0

func NewErrorMessages() *ErrorMessages

NewErrorMessages instantiates a new ErrorMessages 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 NewErrorMessagesWithDefaults added in v1.1.0

func NewErrorMessagesWithDefaults() *ErrorMessages

NewErrorMessagesWithDefaults instantiates a new ErrorMessages 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 (*ErrorMessages) GetErrorCode added in v1.1.0

func (o *ErrorMessages) GetErrorCode() *string

GetErrorCode returns the ErrorCode field value If the value is explicit nil, the zero value for string will be returned

func (*ErrorMessages) GetErrorCodeOk added in v1.1.0

func (o *ErrorMessages) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ErrorMessages) GetMessage added in v1.1.0

func (o *ErrorMessages) GetMessage() *string

GetMessage returns the Message field value If the value is explicit nil, the zero value for string will be returned

func (*ErrorMessages) GetMessageOk added in v1.1.0

func (o *ErrorMessages) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ErrorMessages) HasErrorCode added in v1.1.0

func (o *ErrorMessages) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*ErrorMessages) HasMessage added in v1.1.0

func (o *ErrorMessages) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ErrorMessages) MarshalJSON added in v1.1.0

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

func (*ErrorMessages) SetErrorCode added in v1.1.0

func (o *ErrorMessages) SetErrorCode(v string)

SetErrorCode sets field value

func (*ErrorMessages) SetMessage added in v1.1.0

func (o *ErrorMessages) SetMessage(v string)

SetMessage 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 NewGenericOpenAPIError

func NewGenericOpenAPIError(message string, body []byte, model interface{}, statusCode int) *GenericOpenAPIError

NewGenericOpenAPIError - constructor for GenericOpenAPIError

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

func (*GenericOpenAPIError) SetBody

func (e *GenericOpenAPIError) SetBody(body []byte)

SetBody sets the raw body of the error

func (*GenericOpenAPIError) SetError

func (e *GenericOpenAPIError) SetError(error string)

SetError sets the error string

func (*GenericOpenAPIError) SetModel

func (e *GenericOpenAPIError) SetModel(model interface{})

SetModel sets the model of the error

func (*GenericOpenAPIError) SetStatusCode

func (e *GenericOpenAPIError) SetStatusCode(statusCode int)

SetStatusCode sets the status code of the error

func (GenericOpenAPIError) StatusCode

func (e GenericOpenAPIError) StatusCode() int

StatusCode returns the status code of the error

type IonosTime

type IonosTime struct {
	time.Time
}

func (*IonosTime) UnmarshalJSON

func (t *IonosTime) UnmarshalJSON(data []byte) error
type Links struct {
	// URL (with offset and limit parameters) of the previous page; only present if offset is greater than 0.
	Prev *string `json:"prev,omitempty"`
	// URL (with offset and limit parameters) of the current page.
	Self *string `json:"self,omitempty"`
	// URL (with offset and limit parameters) of the next page; only present if offset + limit is less than the total number of elements.
	Next *string `json:"next,omitempty"`
}

Links URLs to navigate the different pages. As of now we always only return a single page.

func NewLinks() *Links

NewLinks instantiates a new Links 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 NewLinksWithDefaults added in v1.1.0

func NewLinksWithDefaults() *Links

NewLinksWithDefaults instantiates a new Links 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 (*Links) GetNext added in v1.1.0

func (o *Links) GetNext() *string

GetNext returns the Next field value If the value is explicit nil, the zero value for string will be returned

func (*Links) GetNextOk added in v1.1.0

func (o *Links) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Links) GetPrev added in v1.1.0

func (o *Links) GetPrev() *string

GetPrev returns the Prev field value If the value is explicit nil, the zero value for string will be returned

func (*Links) GetPrevOk added in v1.1.0

func (o *Links) GetPrevOk() (*string, bool)

GetPrevOk returns a tuple with the Prev field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Links) GetSelf added in v1.1.0

func (o *Links) GetSelf() *string

GetSelf returns the Self field value If the value is explicit nil, the zero value for string will be returned

func (*Links) GetSelfOk added in v1.1.0

func (o *Links) GetSelfOk() (*string, bool)

GetSelfOk returns a tuple with the Self field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Links) HasNext added in v1.1.0

func (o *Links) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*Links) HasPrev added in v1.1.0

func (o *Links) HasPrev() bool

HasPrev returns a boolean if a field has been set.

func (*Links) HasSelf added in v1.1.0

func (o *Links) HasSelf() bool

HasSelf returns a boolean if a field has been set.

func (Links) MarshalJSON added in v1.1.0

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

func (*Links) SetNext added in v1.1.0

func (o *Links) SetNext(v string)

SetNext sets field value

func (*Links) SetPrev added in v1.1.0

func (o *Links) SetPrev(v string)

SetPrev sets field value

func (*Links) SetSelf added in v1.1.0

func (o *Links) SetSelf(v string)

SetSelf sets field value

type LogLevel

type LogLevel uint
const (
	Off LogLevel = 0x100 * iota
	Debug
	// Trace We recommend you only set this field for debugging purposes.
	// Disable it in your production environments because it can log sensitive data.
	// It logs the full request and response without encryption, even for an HTTPS call.
	// Verbose request and response logging can also significantly impact your application's performance.
	Trace
)

func (*LogLevel) Get

func (l *LogLevel) Get() LogLevel

func (*LogLevel) Satisfies

func (l *LogLevel) Satisfies(v LogLevel) bool

Satisfies returns true if this LogLevel is at least high enough for v

type Logger

type Logger interface {
	Printf(format string, args ...interface{})
}

func NewDefaultLogger

func NewDefaultLogger() Logger

type Metadata added in v1.1.0

type Metadata struct {
	// The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	CreatedDate *IonosTime `json:"createdDate,omitempty"`
}

Metadata Metadata of the resource.

func NewMetadata added in v1.1.0

func NewMetadata() *Metadata

NewMetadata instantiates a new Metadata 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 NewMetadataWithDefaults added in v1.1.0

func NewMetadataWithDefaults() *Metadata

NewMetadataWithDefaults instantiates a new Metadata 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 (*Metadata) GetCreatedDate added in v1.1.0

func (o *Metadata) GetCreatedDate() *time.Time

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Metadata) GetCreatedDateOk added in v1.1.0

func (o *Metadata) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) GetLastModifiedDate added in v1.1.0

func (o *Metadata) GetLastModifiedDate() *time.Time

GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*Metadata) GetLastModifiedDateOk added in v1.1.0

func (o *Metadata) GetLastModifiedDateOk() (*time.Time, bool)

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Metadata) HasCreatedDate added in v1.1.0

func (o *Metadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedDate added in v1.1.0

func (o *Metadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (Metadata) MarshalJSON added in v1.1.0

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

func (*Metadata) SetCreatedDate added in v1.1.0

func (o *Metadata) SetCreatedDate(v time.Time)

SetCreatedDate sets field value

func (*Metadata) SetLastModifiedDate added in v1.1.0

func (o *Metadata) SetLastModifiedDate(v time.Time)

SetLastModifiedDate sets field value

type MetadataWithStateFqdnZoneId added in v1.1.0

type MetadataWithStateFqdnZoneId struct {
	// The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	CreatedDate *IonosTime         `json:"createdDate,omitempty"`
	State       *ProvisioningState `json:"state"`
	// A fully qualified domain name. FQDN consists of two parts - the hostname and the domain name.
	Fqdn *string `json:"fqdn"`
	// The ID (UUID) of the DNS zone of which record belongs to.
	ZoneId *string `json:"zoneId"`
}

MetadataWithStateFqdnZoneId struct for MetadataWithStateFqdnZoneId

func NewMetadataWithStateFqdnZoneId added in v1.1.0

func NewMetadataWithStateFqdnZoneId(state ProvisioningState, fqdn string, zoneId string) *MetadataWithStateFqdnZoneId

NewMetadataWithStateFqdnZoneId instantiates a new MetadataWithStateFqdnZoneId 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 NewMetadataWithStateFqdnZoneIdWithDefaults added in v1.1.0

func NewMetadataWithStateFqdnZoneIdWithDefaults() *MetadataWithStateFqdnZoneId

NewMetadataWithStateFqdnZoneIdWithDefaults instantiates a new MetadataWithStateFqdnZoneId 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 (*MetadataWithStateFqdnZoneId) GetCreatedDate added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetCreatedDate() *time.Time

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*MetadataWithStateFqdnZoneId) GetCreatedDateOk added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneId) GetFqdn added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetFqdn() *string

GetFqdn returns the Fqdn field value If the value is explicit nil, the zero value for string will be returned

func (*MetadataWithStateFqdnZoneId) GetFqdnOk added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetFqdnOk() (*string, bool)

GetFqdnOk returns a tuple with the Fqdn field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneId) GetLastModifiedDate added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetLastModifiedDate() *time.Time

GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*MetadataWithStateFqdnZoneId) GetLastModifiedDateOk added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetLastModifiedDateOk() (*time.Time, bool)

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneId) GetState added in v1.1.0

GetState returns the State field value If the value is explicit nil, the zero value for ProvisioningState will be returned

func (*MetadataWithStateFqdnZoneId) GetStateOk added in v1.1.0

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneId) GetZoneId added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetZoneId() *string

GetZoneId returns the ZoneId field value If the value is explicit nil, the zero value for string will be returned

func (*MetadataWithStateFqdnZoneId) GetZoneIdOk added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) GetZoneIdOk() (*string, bool)

GetZoneIdOk returns a tuple with the ZoneId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneId) HasCreatedDate added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasFqdn added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) HasFqdn() bool

HasFqdn returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasLastModifiedDate added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasState added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) HasState() bool

HasState returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasZoneId added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (MetadataWithStateFqdnZoneId) MarshalJSON added in v1.1.0

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

func (*MetadataWithStateFqdnZoneId) SetCreatedDate added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) SetCreatedDate(v time.Time)

SetCreatedDate sets field value

func (*MetadataWithStateFqdnZoneId) SetFqdn added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) SetFqdn(v string)

SetFqdn sets field value

func (*MetadataWithStateFqdnZoneId) SetLastModifiedDate added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) SetLastModifiedDate(v time.Time)

SetLastModifiedDate sets field value

func (*MetadataWithStateFqdnZoneId) SetState added in v1.1.0

SetState sets field value

func (*MetadataWithStateFqdnZoneId) SetZoneId added in v1.1.0

func (o *MetadataWithStateFqdnZoneId) SetZoneId(v string)

SetZoneId sets field value

type MetadataWithStateFqdnZoneIdAllOf added in v1.1.0

type MetadataWithStateFqdnZoneIdAllOf struct {
	State *ProvisioningState `json:"state"`
	// A fully qualified domain name. FQDN consists of two parts - the hostname and the domain name.
	Fqdn *string `json:"fqdn"`
	// The ID (UUID) of the DNS zone of which record belongs to.
	ZoneId *string `json:"zoneId"`
}

MetadataWithStateFqdnZoneIdAllOf struct for MetadataWithStateFqdnZoneIdAllOf

func NewMetadataWithStateFqdnZoneIdAllOf added in v1.1.0

func NewMetadataWithStateFqdnZoneIdAllOf(state ProvisioningState, fqdn string, zoneId string) *MetadataWithStateFqdnZoneIdAllOf

NewMetadataWithStateFqdnZoneIdAllOf instantiates a new MetadataWithStateFqdnZoneIdAllOf 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 NewMetadataWithStateFqdnZoneIdAllOfWithDefaults added in v1.1.0

func NewMetadataWithStateFqdnZoneIdAllOfWithDefaults() *MetadataWithStateFqdnZoneIdAllOf

NewMetadataWithStateFqdnZoneIdAllOfWithDefaults instantiates a new MetadataWithStateFqdnZoneIdAllOf 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 (*MetadataWithStateFqdnZoneIdAllOf) GetFqdn added in v1.1.0

GetFqdn returns the Fqdn field value If the value is explicit nil, the zero value for string will be returned

func (*MetadataWithStateFqdnZoneIdAllOf) GetFqdnOk added in v1.1.0

func (o *MetadataWithStateFqdnZoneIdAllOf) GetFqdnOk() (*string, bool)

GetFqdnOk returns a tuple with the Fqdn field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneIdAllOf) GetState added in v1.1.0

GetState returns the State field value If the value is explicit nil, the zero value for ProvisioningState will be returned

func (*MetadataWithStateFqdnZoneIdAllOf) GetStateOk added in v1.1.0

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneIdAllOf) GetZoneId added in v1.1.0

func (o *MetadataWithStateFqdnZoneIdAllOf) GetZoneId() *string

GetZoneId returns the ZoneId field value If the value is explicit nil, the zero value for string will be returned

func (*MetadataWithStateFqdnZoneIdAllOf) GetZoneIdOk added in v1.1.0

func (o *MetadataWithStateFqdnZoneIdAllOf) GetZoneIdOk() (*string, bool)

GetZoneIdOk returns a tuple with the ZoneId field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateFqdnZoneIdAllOf) HasFqdn added in v1.1.0

HasFqdn returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneIdAllOf) HasState added in v1.1.0

func (o *MetadataWithStateFqdnZoneIdAllOf) HasState() bool

HasState returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneIdAllOf) HasZoneId added in v1.1.0

func (o *MetadataWithStateFqdnZoneIdAllOf) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (MetadataWithStateFqdnZoneIdAllOf) MarshalJSON added in v1.1.0

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

func (*MetadataWithStateFqdnZoneIdAllOf) SetFqdn added in v1.1.0

SetFqdn sets field value

func (*MetadataWithStateFqdnZoneIdAllOf) SetState added in v1.1.0

SetState sets field value

func (*MetadataWithStateFqdnZoneIdAllOf) SetZoneId added in v1.1.0

func (o *MetadataWithStateFqdnZoneIdAllOf) SetZoneId(v string)

SetZoneId sets field value

type MetadataWithStateNameservers added in v1.1.0

type MetadataWithStateNameservers struct {
	// The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	LastModifiedDate *IonosTime `json:"lastModifiedDate,omitempty"`
	// The date of creation of the zone formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
	CreatedDate *IonosTime         `json:"createdDate,omitempty"`
	State       *ProvisioningState `json:"state"`
	// The list of nameservers associated to the zone
	Nameservers *[]string `json:"nameservers"`
}

MetadataWithStateNameservers struct for MetadataWithStateNameservers

func NewMetadataWithStateNameservers added in v1.1.0

func NewMetadataWithStateNameservers(state ProvisioningState, nameservers []string) *MetadataWithStateNameservers

NewMetadataWithStateNameservers instantiates a new MetadataWithStateNameservers 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 NewMetadataWithStateNameserversWithDefaults added in v1.1.0

func NewMetadataWithStateNameserversWithDefaults() *MetadataWithStateNameservers

NewMetadataWithStateNameserversWithDefaults instantiates a new MetadataWithStateNameservers 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 (*MetadataWithStateNameservers) GetCreatedDate added in v1.1.0

func (o *MetadataWithStateNameservers) GetCreatedDate() *time.Time

GetCreatedDate returns the CreatedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*MetadataWithStateNameservers) GetCreatedDateOk added in v1.1.0

func (o *MetadataWithStateNameservers) GetCreatedDateOk() (*time.Time, bool)

GetCreatedDateOk returns a tuple with the CreatedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateNameservers) GetLastModifiedDate added in v1.1.0

func (o *MetadataWithStateNameservers) GetLastModifiedDate() *time.Time

GetLastModifiedDate returns the LastModifiedDate field value If the value is explicit nil, the zero value for time.Time will be returned

func (*MetadataWithStateNameservers) GetLastModifiedDateOk added in v1.1.0

func (o *MetadataWithStateNameservers) GetLastModifiedDateOk() (*time.Time, bool)

GetLastModifiedDateOk returns a tuple with the LastModifiedDate field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateNameservers) GetNameservers added in v1.1.0

func (o *MetadataWithStateNameservers) GetNameservers() *[]string

GetNameservers returns the Nameservers field value If the value is explicit nil, the zero value for []string will be returned

func (*MetadataWithStateNameservers) GetNameserversOk added in v1.1.0

func (o *MetadataWithStateNameservers) GetNameserversOk() (*[]string, bool)

GetNameserversOk returns a tuple with the Nameservers field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateNameservers) GetState added in v1.1.0

GetState returns the State field value If the value is explicit nil, the zero value for ProvisioningState will be returned

func (*MetadataWithStateNameservers) GetStateOk added in v1.1.0

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateNameservers) HasCreatedDate added in v1.1.0

func (o *MetadataWithStateNameservers) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*MetadataWithStateNameservers) HasLastModifiedDate added in v1.1.0

func (o *MetadataWithStateNameservers) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*MetadataWithStateNameservers) HasNameservers added in v1.1.0

func (o *MetadataWithStateNameservers) HasNameservers() bool

HasNameservers returns a boolean if a field has been set.

func (*MetadataWithStateNameservers) HasState added in v1.1.0

func (o *MetadataWithStateNameservers) HasState() bool

HasState returns a boolean if a field has been set.

func (MetadataWithStateNameservers) MarshalJSON added in v1.1.0

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

func (*MetadataWithStateNameservers) SetCreatedDate added in v1.1.0

func (o *MetadataWithStateNameservers) SetCreatedDate(v time.Time)

SetCreatedDate sets field value

func (*MetadataWithStateNameservers) SetLastModifiedDate added in v1.1.0

func (o *MetadataWithStateNameservers) SetLastModifiedDate(v time.Time)

SetLastModifiedDate sets field value

func (*MetadataWithStateNameservers) SetNameservers added in v1.1.0

func (o *MetadataWithStateNameservers) SetNameservers(v []string)

SetNameservers sets field value

func (*MetadataWithStateNameservers) SetState added in v1.1.0

SetState sets field value

type MetadataWithStateNameserversAllOf added in v1.1.0

type MetadataWithStateNameserversAllOf struct {
	State *ProvisioningState `json:"state"`
	// The list of nameservers associated to the zone
	Nameservers *[]string `json:"nameservers"`
}

MetadataWithStateNameserversAllOf struct for MetadataWithStateNameserversAllOf

func NewMetadataWithStateNameserversAllOf added in v1.1.0

func NewMetadataWithStateNameserversAllOf(state ProvisioningState, nameservers []string) *MetadataWithStateNameserversAllOf

NewMetadataWithStateNameserversAllOf instantiates a new MetadataWithStateNameserversAllOf 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 NewMetadataWithStateNameserversAllOfWithDefaults added in v1.1.0

func NewMetadataWithStateNameserversAllOfWithDefaults() *MetadataWithStateNameserversAllOf

NewMetadataWithStateNameserversAllOfWithDefaults instantiates a new MetadataWithStateNameserversAllOf 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 (*MetadataWithStateNameserversAllOf) GetNameservers added in v1.1.0

func (o *MetadataWithStateNameserversAllOf) GetNameservers() *[]string

GetNameservers returns the Nameservers field value If the value is explicit nil, the zero value for []string will be returned

func (*MetadataWithStateNameserversAllOf) GetNameserversOk added in v1.1.0

func (o *MetadataWithStateNameserversAllOf) GetNameserversOk() (*[]string, bool)

GetNameserversOk returns a tuple with the Nameservers field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateNameserversAllOf) GetState added in v1.1.0

GetState returns the State field value If the value is explicit nil, the zero value for ProvisioningState will be returned

func (*MetadataWithStateNameserversAllOf) GetStateOk added in v1.1.0

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*MetadataWithStateNameserversAllOf) HasNameservers added in v1.1.0

func (o *MetadataWithStateNameserversAllOf) HasNameservers() bool

HasNameservers returns a boolean if a field has been set.

func (*MetadataWithStateNameserversAllOf) HasState added in v1.1.0

HasState returns a boolean if a field has been set.

func (MetadataWithStateNameserversAllOf) MarshalJSON added in v1.1.0

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

func (*MetadataWithStateNameserversAllOf) SetNameservers added in v1.1.0

func (o *MetadataWithStateNameserversAllOf) SetNameservers(v []string)

SetNameservers sets field value

func (*MetadataWithStateNameserversAllOf) SetState added in v1.1.0

SetState sets field value

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 NullableError added in v1.1.0

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

func NewNullableError added in v1.1.0

func NewNullableError(val *Error) *NullableError

func (NullableError) Get added in v1.1.0

func (v NullableError) Get() *Error

func (NullableError) IsSet added in v1.1.0

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON added in v1.1.0

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

func (*NullableError) Set added in v1.1.0

func (v *NullableError) Set(val *Error)

func (*NullableError) UnmarshalJSON added in v1.1.0

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

func (*NullableError) Unset added in v1.1.0

func (v *NullableError) Unset()

type NullableErrorMessages added in v1.1.0

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

func NewNullableErrorMessages added in v1.1.0

func NewNullableErrorMessages(val *ErrorMessages) *NullableErrorMessages

func (NullableErrorMessages) Get added in v1.1.0

func (NullableErrorMessages) IsSet added in v1.1.0

func (v NullableErrorMessages) IsSet() bool

func (NullableErrorMessages) MarshalJSON added in v1.1.0

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

func (*NullableErrorMessages) Set added in v1.1.0

func (v *NullableErrorMessages) Set(val *ErrorMessages)

func (*NullableErrorMessages) UnmarshalJSON added in v1.1.0

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

func (*NullableErrorMessages) Unset added in v1.1.0

func (v *NullableErrorMessages) 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 NullableLinks struct {
	// contains filtered or unexported fields
}
func NewNullableLinks(val *Links) *NullableLinks

func (NullableLinks) Get added in v1.1.0

func (v NullableLinks) Get() *Links

func (NullableLinks) IsSet added in v1.1.0

func (v NullableLinks) IsSet() bool

func (NullableLinks) MarshalJSON added in v1.1.0

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

func (*NullableLinks) Set added in v1.1.0

func (v *NullableLinks) Set(val *Links)

func (*NullableLinks) UnmarshalJSON added in v1.1.0

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

func (*NullableLinks) Unset added in v1.1.0

func (v *NullableLinks) Unset()

type NullableMetadata added in v1.1.0

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

func NewNullableMetadata added in v1.1.0

func NewNullableMetadata(val *Metadata) *NullableMetadata

func (NullableMetadata) Get added in v1.1.0

func (v NullableMetadata) Get() *Metadata

func (NullableMetadata) IsSet added in v1.1.0

func (v NullableMetadata) IsSet() bool

func (NullableMetadata) MarshalJSON added in v1.1.0

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

func (*NullableMetadata) Set added in v1.1.0

func (v *NullableMetadata) Set(val *Metadata)

func (*NullableMetadata) UnmarshalJSON added in v1.1.0

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

func (*NullableMetadata) Unset added in v1.1.0

func (v *NullableMetadata) Unset()

type NullableMetadataWithStateFqdnZoneId added in v1.1.0

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

func NewNullableMetadataWithStateFqdnZoneId added in v1.1.0

func NewNullableMetadataWithStateFqdnZoneId(val *MetadataWithStateFqdnZoneId) *NullableMetadataWithStateFqdnZoneId

func (NullableMetadataWithStateFqdnZoneId) Get added in v1.1.0

func (NullableMetadataWithStateFqdnZoneId) IsSet added in v1.1.0

func (NullableMetadataWithStateFqdnZoneId) MarshalJSON added in v1.1.0

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

func (*NullableMetadataWithStateFqdnZoneId) Set added in v1.1.0

func (*NullableMetadataWithStateFqdnZoneId) UnmarshalJSON added in v1.1.0

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

func (*NullableMetadataWithStateFqdnZoneId) Unset added in v1.1.0

type NullableMetadataWithStateFqdnZoneIdAllOf added in v1.1.0

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

func NewNullableMetadataWithStateFqdnZoneIdAllOf added in v1.1.0

func NewNullableMetadataWithStateFqdnZoneIdAllOf(val *MetadataWithStateFqdnZoneIdAllOf) *NullableMetadataWithStateFqdnZoneIdAllOf

func (NullableMetadataWithStateFqdnZoneIdAllOf) Get added in v1.1.0

func (NullableMetadataWithStateFqdnZoneIdAllOf) IsSet added in v1.1.0

func (NullableMetadataWithStateFqdnZoneIdAllOf) MarshalJSON added in v1.1.0

func (*NullableMetadataWithStateFqdnZoneIdAllOf) Set added in v1.1.0

func (*NullableMetadataWithStateFqdnZoneIdAllOf) UnmarshalJSON added in v1.1.0

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

func (*NullableMetadataWithStateFqdnZoneIdAllOf) Unset added in v1.1.0

type NullableMetadataWithStateNameservers added in v1.1.0

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

func NewNullableMetadataWithStateNameservers added in v1.1.0

func NewNullableMetadataWithStateNameservers(val *MetadataWithStateNameservers) *NullableMetadataWithStateNameservers

func (NullableMetadataWithStateNameservers) Get added in v1.1.0

func (NullableMetadataWithStateNameservers) IsSet added in v1.1.0

func (NullableMetadataWithStateNameservers) MarshalJSON added in v1.1.0

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

func (*NullableMetadataWithStateNameservers) Set added in v1.1.0

func (*NullableMetadataWithStateNameservers) UnmarshalJSON added in v1.1.0

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

func (*NullableMetadataWithStateNameservers) Unset added in v1.1.0

type NullableMetadataWithStateNameserversAllOf added in v1.1.0

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

func NewNullableMetadataWithStateNameserversAllOf added in v1.1.0

func NewNullableMetadataWithStateNameserversAllOf(val *MetadataWithStateNameserversAllOf) *NullableMetadataWithStateNameserversAllOf

func (NullableMetadataWithStateNameserversAllOf) Get added in v1.1.0

func (NullableMetadataWithStateNameserversAllOf) IsSet added in v1.1.0

func (NullableMetadataWithStateNameserversAllOf) MarshalJSON added in v1.1.0

func (*NullableMetadataWithStateNameserversAllOf) Set added in v1.1.0

func (*NullableMetadataWithStateNameserversAllOf) UnmarshalJSON added in v1.1.0

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

func (*NullableMetadataWithStateNameserversAllOf) Unset added in v1.1.0

type NullableProvisioningState

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

func NewNullableProvisioningState

func NewNullableProvisioningState(val *ProvisioningState) *NullableProvisioningState

func (NullableProvisioningState) Get

func (NullableProvisioningState) IsSet

func (v NullableProvisioningState) IsSet() bool

func (NullableProvisioningState) MarshalJSON

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

func (*NullableProvisioningState) Set

func (*NullableProvisioningState) UnmarshalJSON

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

func (*NullableProvisioningState) Unset

func (v *NullableProvisioningState) Unset()

type NullableRecord added in v1.1.0

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

func NewNullableRecord added in v1.1.0

func NewNullableRecord(val *Record) *NullableRecord

func (NullableRecord) Get added in v1.1.0

func (v NullableRecord) Get() *Record

func (NullableRecord) IsSet added in v1.1.0

func (v NullableRecord) IsSet() bool

func (NullableRecord) MarshalJSON added in v1.1.0

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

func (*NullableRecord) Set added in v1.1.0

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

func (*NullableRecord) UnmarshalJSON added in v1.1.0

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

func (*NullableRecord) Unset added in v1.1.0

func (v *NullableRecord) Unset()

type NullableRecordCreate added in v1.1.0

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

func NewNullableRecordCreate added in v1.1.0

func NewNullableRecordCreate(val *RecordCreate) *NullableRecordCreate

func (NullableRecordCreate) Get added in v1.1.0

func (NullableRecordCreate) IsSet added in v1.1.0

func (v NullableRecordCreate) IsSet() bool

func (NullableRecordCreate) MarshalJSON added in v1.1.0

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

func (*NullableRecordCreate) Set added in v1.1.0

func (v *NullableRecordCreate) Set(val *RecordCreate)

func (*NullableRecordCreate) UnmarshalJSON added in v1.1.0

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

func (*NullableRecordCreate) Unset added in v1.1.0

func (v *NullableRecordCreate) Unset()

type NullableRecordEnsure added in v1.1.0

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

func NewNullableRecordEnsure added in v1.1.0

func NewNullableRecordEnsure(val *RecordEnsure) *NullableRecordEnsure

func (NullableRecordEnsure) Get added in v1.1.0

func (NullableRecordEnsure) IsSet added in v1.1.0

func (v NullableRecordEnsure) IsSet() bool

func (NullableRecordEnsure) MarshalJSON added in v1.1.0

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

func (*NullableRecordEnsure) Set added in v1.1.0

func (v *NullableRecordEnsure) Set(val *RecordEnsure)

func (*NullableRecordEnsure) UnmarshalJSON added in v1.1.0

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

func (*NullableRecordEnsure) Unset added in v1.1.0

func (v *NullableRecordEnsure) Unset()

type NullableRecordRead added in v1.1.0

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

func NewNullableRecordRead added in v1.1.0

func NewNullableRecordRead(val *RecordRead) *NullableRecordRead

func (NullableRecordRead) Get added in v1.1.0

func (v NullableRecordRead) Get() *RecordRead

func (NullableRecordRead) IsSet added in v1.1.0

func (v NullableRecordRead) IsSet() bool

func (NullableRecordRead) MarshalJSON added in v1.1.0

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

func (*NullableRecordRead) Set added in v1.1.0

func (v *NullableRecordRead) Set(val *RecordRead)

func (*NullableRecordRead) UnmarshalJSON added in v1.1.0

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

func (*NullableRecordRead) Unset added in v1.1.0

func (v *NullableRecordRead) Unset()

type NullableRecordReadList added in v1.1.0

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

func NewNullableRecordReadList added in v1.1.0

func NewNullableRecordReadList(val *RecordReadList) *NullableRecordReadList

func (NullableRecordReadList) Get added in v1.1.0

func (NullableRecordReadList) IsSet added in v1.1.0

func (v NullableRecordReadList) IsSet() bool

func (NullableRecordReadList) MarshalJSON added in v1.1.0

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

func (*NullableRecordReadList) Set added in v1.1.0

func (*NullableRecordReadList) UnmarshalJSON added in v1.1.0

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

func (*NullableRecordReadList) Unset added in v1.1.0

func (v *NullableRecordReadList) 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 added in v1.1.0

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

func NewNullableZone added in v1.1.0

func NewNullableZone(val *Zone) *NullableZone

func (NullableZone) Get added in v1.1.0

func (v NullableZone) Get() *Zone

func (NullableZone) IsSet added in v1.1.0

func (v NullableZone) IsSet() bool

func (NullableZone) MarshalJSON added in v1.1.0

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

func (*NullableZone) Set added in v1.1.0

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

func (*NullableZone) UnmarshalJSON added in v1.1.0

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

func (*NullableZone) Unset added in v1.1.0

func (v *NullableZone) Unset()

type NullableZoneCreate added in v1.1.0

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

func NewNullableZoneCreate added in v1.1.0

func NewNullableZoneCreate(val *ZoneCreate) *NullableZoneCreate

func (NullableZoneCreate) Get added in v1.1.0

func (v NullableZoneCreate) Get() *ZoneCreate

func (NullableZoneCreate) IsSet added in v1.1.0

func (v NullableZoneCreate) IsSet() bool

func (NullableZoneCreate) MarshalJSON added in v1.1.0

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

func (*NullableZoneCreate) Set added in v1.1.0

func (v *NullableZoneCreate) Set(val *ZoneCreate)

func (*NullableZoneCreate) UnmarshalJSON added in v1.1.0

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

func (*NullableZoneCreate) Unset added in v1.1.0

func (v *NullableZoneCreate) Unset()

type NullableZoneEnsure added in v1.1.0

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

func NewNullableZoneEnsure added in v1.1.0

func NewNullableZoneEnsure(val *ZoneEnsure) *NullableZoneEnsure

func (NullableZoneEnsure) Get added in v1.1.0

func (v NullableZoneEnsure) Get() *ZoneEnsure

func (NullableZoneEnsure) IsSet added in v1.1.0

func (v NullableZoneEnsure) IsSet() bool

func (NullableZoneEnsure) MarshalJSON added in v1.1.0

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

func (*NullableZoneEnsure) Set added in v1.1.0

func (v *NullableZoneEnsure) Set(val *ZoneEnsure)

func (*NullableZoneEnsure) UnmarshalJSON added in v1.1.0

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

func (*NullableZoneEnsure) Unset added in v1.1.0

func (v *NullableZoneEnsure) Unset()

type NullableZoneRead added in v1.1.0

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

func NewNullableZoneRead added in v1.1.0

func NewNullableZoneRead(val *ZoneRead) *NullableZoneRead

func (NullableZoneRead) Get added in v1.1.0

func (v NullableZoneRead) Get() *ZoneRead

func (NullableZoneRead) IsSet added in v1.1.0

func (v NullableZoneRead) IsSet() bool

func (NullableZoneRead) MarshalJSON added in v1.1.0

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

func (*NullableZoneRead) Set added in v1.1.0

func (v *NullableZoneRead) Set(val *ZoneRead)

func (*NullableZoneRead) UnmarshalJSON added in v1.1.0

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

func (*NullableZoneRead) Unset added in v1.1.0

func (v *NullableZoneRead) Unset()

type NullableZoneReadList added in v1.1.0

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

func NewNullableZoneReadList added in v1.1.0

func NewNullableZoneReadList(val *ZoneReadList) *NullableZoneReadList

func (NullableZoneReadList) Get added in v1.1.0

func (NullableZoneReadList) IsSet added in v1.1.0

func (v NullableZoneReadList) IsSet() bool

func (NullableZoneReadList) MarshalJSON added in v1.1.0

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

func (*NullableZoneReadList) Set added in v1.1.0

func (v *NullableZoneReadList) Set(val *ZoneReadList)

func (*NullableZoneReadList) UnmarshalJSON added in v1.1.0

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

func (*NullableZoneReadList) Unset added in v1.1.0

func (v *NullableZoneReadList) Unset()

type ProvisioningState

type ProvisioningState string

ProvisioningState The list of possible provisioning states in which DNS resource could be at the specific time. * AVAILABLE - resource exists and is healthy. * PROVISIONING - resource is being created or updated. * DESTROYING - delete command was issued, the resource is being deleted. * FAILED - creation of the resource failed.

const (
	PROVISIONING ProvisioningState = "PROVISIONING"
	DESTROYING   ProvisioningState = "DESTROYING"
	AVAILABLE    ProvisioningState = "AVAILABLE"
	FAILED       ProvisioningState = "FAILED"
)

List of ProvisioningState

func (ProvisioningState) Ptr

Ptr returns reference to ProvisioningState value

func (*ProvisioningState) UnmarshalJSON

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

type Record added in v1.1.0

type Record struct {
	Name *string `json:"name"`
	// Holds supported DNS resource record types. In the DNS context a record is a DNS resource record.
	Type    *string `json:"type"`
	Content *string `json:"content"`
	// Time to live for the record, recommended 3600.
	Ttl *int32 `json:"ttl,omitempty"`
	// Priority value is between 0 and 65535. Priority is mandatory for MX, SRV and URI record types and ignored for all other types.
	Priority *int32 `json:"priority,omitempty"`
	// When true - the record is visible for lookup.
	Enabled *bool `json:"enabled,omitempty"`
}

Record struct for Record

func NewRecord added in v1.1.0

func NewRecord(name string, type_ string, content 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 added in v1.1.0

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) GetContent added in v1.1.0

func (o *Record) GetContent() *string

GetContent returns the Content field value If the value is explicit nil, the zero value for string will be returned

func (*Record) GetContentOk added in v1.1.0

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

GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Record) GetEnabled added in v1.1.0

func (o *Record) GetEnabled() *bool

GetEnabled returns the Enabled field value If the value is explicit nil, the zero value for bool will be returned

func (*Record) GetEnabledOk added in v1.1.0

func (o *Record) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Record) GetName added in v1.1.0

func (o *Record) GetName() *string

GetName returns the Name field value If the value is explicit nil, the zero value for string will be returned

func (*Record) GetNameOk added in v1.1.0

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. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Record) GetPriority added in v1.1.0

func (o *Record) GetPriority() *int32

GetPriority returns the Priority field value If the value is explicit nil, the zero value for int32 will be returned

func (*Record) GetPriorityOk added in v1.1.0

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

GetPriorityOk returns a tuple with the Priority field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Record) GetTtl added in v1.1.0

func (o *Record) GetTtl() *int32

GetTtl returns the Ttl field value If the value is explicit nil, the zero value for int32 will be returned

func (*Record) GetTtlOk added in v1.1.0

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

GetTtlOk returns a tuple with the Ttl field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Record) GetType added in v1.1.0

func (o *Record) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*Record) GetTypeOk added in v1.1.0

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

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Record) HasContent added in v1.1.0

func (o *Record) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*Record) HasEnabled added in v1.1.0

func (o *Record) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*Record) HasName added in v1.1.0

func (o *Record) HasName() bool

HasName returns a boolean if a field has been set.

func (*Record) HasPriority added in v1.1.0

func (o *Record) HasPriority() bool

HasPriority returns a boolean if a field has been set.

func (*Record) HasTtl added in v1.1.0

func (o *Record) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (*Record) HasType added in v1.1.0

func (o *Record) HasType() bool

HasType returns a boolean if a field has been set.

func (Record) MarshalJSON added in v1.1.0

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

func (*Record) SetContent added in v1.1.0

func (o *Record) SetContent(v string)

SetContent sets field value

func (*Record) SetEnabled added in v1.1.0

func (o *Record) SetEnabled(v bool)

SetEnabled sets field value

func (*Record) SetName added in v1.1.0

func (o *Record) SetName(v string)

SetName sets field value

func (*Record) SetPriority added in v1.1.0

func (o *Record) SetPriority(v int32)

SetPriority sets field value

func (*Record) SetTtl added in v1.1.0

func (o *Record) SetTtl(v int32)

SetTtl sets field value

func (*Record) SetType added in v1.1.0

func (o *Record) SetType(v string)

SetType sets field value

type RecordCreate added in v1.1.0

type RecordCreate struct {
	Properties *Record `json:"properties"`
}

RecordCreate struct for RecordCreate

func NewRecordCreate added in v1.1.0

func NewRecordCreate(properties Record) *RecordCreate

NewRecordCreate instantiates a new RecordCreate 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 NewRecordCreateWithDefaults added in v1.1.0

func NewRecordCreateWithDefaults() *RecordCreate

NewRecordCreateWithDefaults instantiates a new RecordCreate 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 (*RecordCreate) GetProperties added in v1.1.0

func (o *RecordCreate) GetProperties() *Record

GetProperties returns the Properties field value If the value is explicit nil, the zero value for Record will be returned

func (*RecordCreate) GetPropertiesOk added in v1.1.0

func (o *RecordCreate) GetPropertiesOk() (*Record, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordCreate) HasProperties added in v1.1.0

func (o *RecordCreate) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (RecordCreate) MarshalJSON added in v1.1.0

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

func (*RecordCreate) SetProperties added in v1.1.0

func (o *RecordCreate) SetProperties(v Record)

SetProperties sets field value

type RecordEnsure added in v1.1.0

type RecordEnsure struct {
	Properties *Record `json:"properties"`
}

RecordEnsure struct for RecordEnsure

func NewRecordEnsure added in v1.1.0

func NewRecordEnsure(properties Record) *RecordEnsure

NewRecordEnsure instantiates a new RecordEnsure 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 NewRecordEnsureWithDefaults added in v1.1.0

func NewRecordEnsureWithDefaults() *RecordEnsure

NewRecordEnsureWithDefaults instantiates a new RecordEnsure 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 (*RecordEnsure) GetProperties added in v1.1.0

func (o *RecordEnsure) GetProperties() *Record

GetProperties returns the Properties field value If the value is explicit nil, the zero value for Record will be returned

func (*RecordEnsure) GetPropertiesOk added in v1.1.0

func (o *RecordEnsure) GetPropertiesOk() (*Record, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordEnsure) HasProperties added in v1.1.0

func (o *RecordEnsure) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (RecordEnsure) MarshalJSON added in v1.1.0

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

func (*RecordEnsure) SetProperties added in v1.1.0

func (o *RecordEnsure) SetProperties(v Record)

SetProperties sets field value

type RecordRead added in v1.1.0

type RecordRead struct {
	// The record ID (UUID).
	Id         *string                      `json:"id"`
	Type       *string                      `json:"type"`
	Href       *string                      `json:"href"`
	Metadata   *MetadataWithStateFqdnZoneId `json:"metadata"`
	Properties *Record                      `json:"properties"`
}

RecordRead struct for RecordRead

func NewRecordRead added in v1.1.0

func NewRecordRead(id string, type_ string, href string, metadata MetadataWithStateFqdnZoneId, properties Record) *RecordRead

NewRecordRead instantiates a new RecordRead 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 NewRecordReadWithDefaults added in v1.1.0

func NewRecordReadWithDefaults() *RecordRead

NewRecordReadWithDefaults instantiates a new RecordRead 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 (*RecordRead) GetHref added in v1.1.0

func (o *RecordRead) GetHref() *string

GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned

func (*RecordRead) GetHrefOk added in v1.1.0

func (o *RecordRead) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordRead) GetId added in v1.1.0

func (o *RecordRead) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*RecordRead) GetIdOk added in v1.1.0

func (o *RecordRead) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordRead) GetMetadata added in v1.1.0

func (o *RecordRead) GetMetadata() *MetadataWithStateFqdnZoneId

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for MetadataWithStateFqdnZoneId will be returned

func (*RecordRead) GetMetadataOk added in v1.1.0

func (o *RecordRead) GetMetadataOk() (*MetadataWithStateFqdnZoneId, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordRead) GetProperties added in v1.1.0

func (o *RecordRead) GetProperties() *Record

GetProperties returns the Properties field value If the value is explicit nil, the zero value for Record will be returned

func (*RecordRead) GetPropertiesOk added in v1.1.0

func (o *RecordRead) GetPropertiesOk() (*Record, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordRead) GetType added in v1.1.0

func (o *RecordRead) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*RecordRead) GetTypeOk added in v1.1.0

func (o *RecordRead) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordRead) HasHref added in v1.1.0

func (o *RecordRead) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*RecordRead) HasId added in v1.1.0

func (o *RecordRead) HasId() bool

HasId returns a boolean if a field has been set.

func (*RecordRead) HasMetadata added in v1.1.0

func (o *RecordRead) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*RecordRead) HasProperties added in v1.1.0

func (o *RecordRead) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*RecordRead) HasType added in v1.1.0

func (o *RecordRead) HasType() bool

HasType returns a boolean if a field has been set.

func (RecordRead) MarshalJSON added in v1.1.0

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

func (*RecordRead) SetHref added in v1.1.0

func (o *RecordRead) SetHref(v string)

SetHref sets field value

func (*RecordRead) SetId added in v1.1.0

func (o *RecordRead) SetId(v string)

SetId sets field value

func (*RecordRead) SetMetadata added in v1.1.0

func (o *RecordRead) SetMetadata(v MetadataWithStateFqdnZoneId)

SetMetadata sets field value

func (*RecordRead) SetProperties added in v1.1.0

func (o *RecordRead) SetProperties(v Record)

SetProperties sets field value

func (*RecordRead) SetType added in v1.1.0

func (o *RecordRead) SetType(v string)

SetType sets field value

type RecordReadList added in v1.1.0

type RecordReadList struct {
	// The resource's unique identifier.
	Id    *string       `json:"id"`
	Type  *string       `json:"type"`
	Href  *string       `json:"href"`
	Items *[]RecordRead `json:"items"`
	// Pagination offset.
	Offset *float32 `json:"offset"`
	// Pagination limit.
	Limit *float32 `json:"limit"`
	Links *Links   `json:"_links"`
}

RecordReadList struct for RecordReadList

func NewRecordReadList added in v1.1.0

func NewRecordReadList(id string, type_ string, href string, items []RecordRead, offset float32, limit float32, links Links) *RecordReadList

NewRecordReadList instantiates a new RecordReadList 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 NewRecordReadListWithDefaults added in v1.1.0

func NewRecordReadListWithDefaults() *RecordReadList

NewRecordReadListWithDefaults instantiates a new RecordReadList 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 (*RecordReadList) GetHref added in v1.1.0

func (o *RecordReadList) GetHref() *string

GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned

func (*RecordReadList) GetHrefOk added in v1.1.0

func (o *RecordReadList) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordReadList) GetId added in v1.1.0

func (o *RecordReadList) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*RecordReadList) GetIdOk added in v1.1.0

func (o *RecordReadList) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordReadList) GetItems added in v1.1.0

func (o *RecordReadList) GetItems() *[]RecordRead

GetItems returns the Items field value If the value is explicit nil, the zero value for []RecordRead will be returned

func (*RecordReadList) GetItemsOk added in v1.1.0

func (o *RecordReadList) GetItemsOk() (*[]RecordRead, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordReadList) GetLimit added in v1.1.0

func (o *RecordReadList) GetLimit() *float32

GetLimit returns the Limit field value If the value is explicit nil, the zero value for float32 will be returned

func (*RecordReadList) GetLimitOk added in v1.1.0

func (o *RecordReadList) GetLimitOk() (*float32, bool)

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *RecordReadList) GetLinks() *Links

GetLinks returns the Links field value If the value is explicit nil, the zero value for Links will be returned

func (*RecordReadList) GetLinksOk added in v1.1.0

func (o *RecordReadList) GetLinksOk() (*Links, bool)

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordReadList) GetOffset added in v1.1.0

func (o *RecordReadList) GetOffset() *float32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for float32 will be returned

func (*RecordReadList) GetOffsetOk added in v1.1.0

func (o *RecordReadList) GetOffsetOk() (*float32, bool)

GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordReadList) GetType added in v1.1.0

func (o *RecordReadList) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*RecordReadList) GetTypeOk added in v1.1.0

func (o *RecordReadList) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*RecordReadList) HasHref added in v1.1.0

func (o *RecordReadList) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*RecordReadList) HasId added in v1.1.0

func (o *RecordReadList) HasId() bool

HasId returns a boolean if a field has been set.

func (*RecordReadList) HasItems added in v1.1.0

func (o *RecordReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*RecordReadList) HasLimit added in v1.1.0

func (o *RecordReadList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *RecordReadList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*RecordReadList) HasOffset added in v1.1.0

func (o *RecordReadList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*RecordReadList) HasType added in v1.1.0

func (o *RecordReadList) HasType() bool

HasType returns a boolean if a field has been set.

func (RecordReadList) MarshalJSON added in v1.1.0

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

func (*RecordReadList) SetHref added in v1.1.0

func (o *RecordReadList) SetHref(v string)

SetHref sets field value

func (*RecordReadList) SetId added in v1.1.0

func (o *RecordReadList) SetId(v string)

SetId sets field value

func (*RecordReadList) SetItems added in v1.1.0

func (o *RecordReadList) SetItems(v []RecordRead)

SetItems sets field value

func (*RecordReadList) SetLimit added in v1.1.0

func (o *RecordReadList) SetLimit(v float32)

SetLimit sets field value

func (o *RecordReadList) SetLinks(v Links)

SetLinks sets field value

func (*RecordReadList) SetOffset added in v1.1.0

func (o *RecordReadList) SetOffset(v float32)

SetOffset sets field value

func (*RecordReadList) SetType added in v1.1.0

func (o *RecordReadList) SetType(v string)

SetType sets field value

type RecordsApiService

type RecordsApiService service

RecordsApiService RecordsApi service

func (*RecordsApiService) RecordsGet

* RecordsGet Retrieve all records * Returns the list of all records for all customer DNS zones with the possibility to filter them. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiRecordsGetRequest

func (*RecordsApiService) RecordsGetExecute

* Execute executes the request * @return RecordReadList

func (*RecordsApiService) ZonesRecordsDelete

func (a *RecordsApiService) ZonesRecordsDelete(ctx _context.Context, zoneId string, recordId string) ApiZonesRecordsDeleteRequest

* ZonesRecordsDelete Delete a record * Deletes a specified record from the DNS zone. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @param recordId The ID (UUID) of the record. * @return ApiZonesRecordsDeleteRequest

func (*RecordsApiService) ZonesRecordsDeleteExecute

func (a *RecordsApiService) ZonesRecordsDeleteExecute(r ApiZonesRecordsDeleteRequest) (*APIResponse, error)

* Execute executes the request

func (*RecordsApiService) ZonesRecordsFindById

func (a *RecordsApiService) ZonesRecordsFindById(ctx _context.Context, zoneId string, recordId string) ApiZonesRecordsFindByIdRequest

* ZonesRecordsFindById Retrieve a record * Returns the record with the specified record ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @param recordId The ID (UUID) of the record. * @return ApiZonesRecordsFindByIdRequest

func (*RecordsApiService) ZonesRecordsFindByIdExecute

func (a *RecordsApiService) ZonesRecordsFindByIdExecute(r ApiZonesRecordsFindByIdRequest) (RecordRead, *APIResponse, error)

* Execute executes the request * @return RecordRead

func (*RecordsApiService) ZonesRecordsGet

func (a *RecordsApiService) ZonesRecordsGet(ctx _context.Context, zoneId string) ApiZonesRecordsGetRequest

* ZonesRecordsGet Retrieve records * Returns the list of records for the specific DNS zone. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @return ApiZonesRecordsGetRequest

func (*RecordsApiService) ZonesRecordsGetExecute

* Execute executes the request * @return RecordReadList

func (*RecordsApiService) ZonesRecordsPost

func (a *RecordsApiService) ZonesRecordsPost(ctx _context.Context, zoneId string) ApiZonesRecordsPostRequest

* ZonesRecordsPost Create a record * Creates a new record for the DNS zone. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @return ApiZonesRecordsPostRequest

func (*RecordsApiService) ZonesRecordsPostExecute

func (a *RecordsApiService) ZonesRecordsPostExecute(r ApiZonesRecordsPostRequest) (RecordRead, *APIResponse, error)

* Execute executes the request * @return RecordRead

func (*RecordsApiService) ZonesRecordsPut

func (a *RecordsApiService) ZonesRecordsPut(ctx _context.Context, zoneId string, recordId string) ApiZonesRecordsPutRequest

* ZonesRecordsPut Ensure a record * Ensures that a DNS record with the provided ID is created or modified. In order to successfully update record - all JSON parameters must be passed. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @param recordId The ID (UUID) of the DNS record. * @return ApiZonesRecordsPutRequest

func (*RecordsApiService) ZonesRecordsPutExecute

func (a *RecordsApiService) ZonesRecordsPutExecute(r ApiZonesRecordsPutRequest) (RecordRead, *APIResponse, error)

* Execute executes the request * @return RecordRead

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 TLSDial

type TLSDial func(ctx context.Context, network, addr string) (net.Conn, error)

TLSDial can be assigned to a http.Transport's DialTLS field.

type Zone added in v1.1.0

type Zone struct {
	// The zone name
	ZoneName *string `json:"zoneName"`
	// The hosted zone is used for...
	Description *string `json:"description,omitempty"`
	// Users can activate and deactivate zones.
	Enabled *bool `json:"enabled,omitempty"`
}

Zone struct for Zone

func NewZone added in v1.1.0

func NewZone(zoneName 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 added in v1.1.0

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) GetDescription added in v1.1.0

func (o *Zone) GetDescription() *string

GetDescription returns the Description field value If the value is explicit nil, the zero value for string will be returned

func (*Zone) GetDescriptionOk added in v1.1.0

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

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Zone) GetEnabled added in v1.1.0

func (o *Zone) GetEnabled() *bool

GetEnabled returns the Enabled field value If the value is explicit nil, the zero value for bool will be returned

func (*Zone) GetEnabledOk added in v1.1.0

func (o *Zone) GetEnabledOk() (*bool, bool)

GetEnabledOk returns a tuple with the Enabled field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Zone) GetZoneName added in v1.1.0

func (o *Zone) GetZoneName() *string

GetZoneName returns the ZoneName field value If the value is explicit nil, the zero value for string will be returned

func (*Zone) GetZoneNameOk added in v1.1.0

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

GetZoneNameOk returns a tuple with the ZoneName field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*Zone) HasDescription added in v1.1.0

func (o *Zone) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Zone) HasEnabled added in v1.1.0

func (o *Zone) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*Zone) HasZoneName added in v1.1.0

func (o *Zone) HasZoneName() bool

HasZoneName returns a boolean if a field has been set.

func (Zone) MarshalJSON added in v1.1.0

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

func (*Zone) SetDescription added in v1.1.0

func (o *Zone) SetDescription(v string)

SetDescription sets field value

func (*Zone) SetEnabled added in v1.1.0

func (o *Zone) SetEnabled(v bool)

SetEnabled sets field value

func (*Zone) SetZoneName added in v1.1.0

func (o *Zone) SetZoneName(v string)

SetZoneName sets field value

type ZoneCreate added in v1.1.0

type ZoneCreate struct {
	Properties *Zone `json:"properties"`
}

ZoneCreate struct for ZoneCreate

func NewZoneCreate added in v1.1.0

func NewZoneCreate(properties Zone) *ZoneCreate

NewZoneCreate instantiates a new ZoneCreate 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 NewZoneCreateWithDefaults added in v1.1.0

func NewZoneCreateWithDefaults() *ZoneCreate

NewZoneCreateWithDefaults instantiates a new ZoneCreate 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 (*ZoneCreate) GetProperties added in v1.1.0

func (o *ZoneCreate) GetProperties() *Zone

GetProperties returns the Properties field value If the value is explicit nil, the zero value for Zone will be returned

func (*ZoneCreate) GetPropertiesOk added in v1.1.0

func (o *ZoneCreate) GetPropertiesOk() (*Zone, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneCreate) HasProperties added in v1.1.0

func (o *ZoneCreate) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (ZoneCreate) MarshalJSON added in v1.1.0

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

func (*ZoneCreate) SetProperties added in v1.1.0

func (o *ZoneCreate) SetProperties(v Zone)

SetProperties sets field value

type ZoneEnsure added in v1.1.0

type ZoneEnsure struct {
	Properties *Zone `json:"properties"`
}

ZoneEnsure struct for ZoneEnsure

func NewZoneEnsure added in v1.1.0

func NewZoneEnsure(properties Zone) *ZoneEnsure

NewZoneEnsure instantiates a new ZoneEnsure 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 NewZoneEnsureWithDefaults added in v1.1.0

func NewZoneEnsureWithDefaults() *ZoneEnsure

NewZoneEnsureWithDefaults instantiates a new ZoneEnsure 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 (*ZoneEnsure) GetProperties added in v1.1.0

func (o *ZoneEnsure) GetProperties() *Zone

GetProperties returns the Properties field value If the value is explicit nil, the zero value for Zone will be returned

func (*ZoneEnsure) GetPropertiesOk added in v1.1.0

func (o *ZoneEnsure) GetPropertiesOk() (*Zone, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneEnsure) HasProperties added in v1.1.0

func (o *ZoneEnsure) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (ZoneEnsure) MarshalJSON added in v1.1.0

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

func (*ZoneEnsure) SetProperties added in v1.1.0

func (o *ZoneEnsure) SetProperties(v Zone)

SetProperties sets field value

type ZoneRead added in v1.1.0

type ZoneRead struct {
	// The zone ID (UUID).
	Id         *string                       `json:"id"`
	Type       *string                       `json:"type"`
	Href       *string                       `json:"href"`
	Metadata   *MetadataWithStateNameservers `json:"metadata"`
	Properties *Zone                         `json:"properties"`
}

ZoneRead struct for ZoneRead

func NewZoneRead added in v1.1.0

func NewZoneRead(id string, type_ string, href string, metadata MetadataWithStateNameservers, properties Zone) *ZoneRead

NewZoneRead instantiates a new ZoneRead 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 NewZoneReadWithDefaults added in v1.1.0

func NewZoneReadWithDefaults() *ZoneRead

NewZoneReadWithDefaults instantiates a new ZoneRead 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 (*ZoneRead) GetHref added in v1.1.0

func (o *ZoneRead) GetHref() *string

GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned

func (*ZoneRead) GetHrefOk added in v1.1.0

func (o *ZoneRead) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneRead) GetId added in v1.1.0

func (o *ZoneRead) GetId() *string

GetId returns the Id field value If the value is explicit nil, the zero value for string will be returned

func (*ZoneRead) GetIdOk added in v1.1.0

func (o *ZoneRead) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneRead) GetMetadata added in v1.1.0

func (o *ZoneRead) GetMetadata() *MetadataWithStateNameservers

GetMetadata returns the Metadata field value If the value is explicit nil, the zero value for MetadataWithStateNameservers will be returned

func (*ZoneRead) GetMetadataOk added in v1.1.0

func (o *ZoneRead) GetMetadataOk() (*MetadataWithStateNameservers, bool)

GetMetadataOk returns a tuple with the Metadata field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneRead) GetProperties added in v1.1.0

func (o *ZoneRead) GetProperties() *Zone

GetProperties returns the Properties field value If the value is explicit nil, the zero value for Zone will be returned

func (*ZoneRead) GetPropertiesOk added in v1.1.0

func (o *ZoneRead) GetPropertiesOk() (*Zone, bool)

GetPropertiesOk returns a tuple with the Properties field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneRead) GetType added in v1.1.0

func (o *ZoneRead) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*ZoneRead) GetTypeOk added in v1.1.0

func (o *ZoneRead) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneRead) HasHref added in v1.1.0

func (o *ZoneRead) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*ZoneRead) HasId added in v1.1.0

func (o *ZoneRead) HasId() bool

HasId returns a boolean if a field has been set.

func (*ZoneRead) HasMetadata added in v1.1.0

func (o *ZoneRead) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*ZoneRead) HasProperties added in v1.1.0

func (o *ZoneRead) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*ZoneRead) HasType added in v1.1.0

func (o *ZoneRead) HasType() bool

HasType returns a boolean if a field has been set.

func (ZoneRead) MarshalJSON added in v1.1.0

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

func (*ZoneRead) SetHref added in v1.1.0

func (o *ZoneRead) SetHref(v string)

SetHref sets field value

func (*ZoneRead) SetId added in v1.1.0

func (o *ZoneRead) SetId(v string)

SetId sets field value

func (*ZoneRead) SetMetadata added in v1.1.0

func (o *ZoneRead) SetMetadata(v MetadataWithStateNameservers)

SetMetadata sets field value

func (*ZoneRead) SetProperties added in v1.1.0

func (o *ZoneRead) SetProperties(v Zone)

SetProperties sets field value

func (*ZoneRead) SetType added in v1.1.0

func (o *ZoneRead) SetType(v string)

SetType sets field value

type ZoneReadList added in v1.1.0

type ZoneReadList struct {
	Type  *string     `json:"type"`
	Href  *string     `json:"href"`
	Items *[]ZoneRead `json:"items"`
	// Pagination offset.
	Offset *float32 `json:"offset"`
	// Pagination limit.
	Limit *float32 `json:"limit"`
	Links *Links   `json:"_links"`
}

ZoneReadList struct for ZoneReadList

func NewZoneReadList added in v1.1.0

func NewZoneReadList(type_ string, href string, items []ZoneRead, offset float32, limit float32, links Links) *ZoneReadList

NewZoneReadList instantiates a new ZoneReadList 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 NewZoneReadListWithDefaults added in v1.1.0

func NewZoneReadListWithDefaults() *ZoneReadList

NewZoneReadListWithDefaults instantiates a new ZoneReadList 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 (*ZoneReadList) GetHref added in v1.1.0

func (o *ZoneReadList) GetHref() *string

GetHref returns the Href field value If the value is explicit nil, the zero value for string will be returned

func (*ZoneReadList) GetHrefOk added in v1.1.0

func (o *ZoneReadList) GetHrefOk() (*string, bool)

GetHrefOk returns a tuple with the Href field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneReadList) GetItems added in v1.1.0

func (o *ZoneReadList) GetItems() *[]ZoneRead

GetItems returns the Items field value If the value is explicit nil, the zero value for []ZoneRead will be returned

func (*ZoneReadList) GetItemsOk added in v1.1.0

func (o *ZoneReadList) GetItemsOk() (*[]ZoneRead, bool)

GetItemsOk returns a tuple with the Items field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneReadList) GetLimit added in v1.1.0

func (o *ZoneReadList) GetLimit() *float32

GetLimit returns the Limit field value If the value is explicit nil, the zero value for float32 will be returned

func (*ZoneReadList) GetLimitOk added in v1.1.0

func (o *ZoneReadList) GetLimitOk() (*float32, bool)

GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (o *ZoneReadList) GetLinks() *Links

GetLinks returns the Links field value If the value is explicit nil, the zero value for Links will be returned

func (*ZoneReadList) GetLinksOk added in v1.1.0

func (o *ZoneReadList) GetLinksOk() (*Links, bool)

GetLinksOk returns a tuple with the Links field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneReadList) GetOffset added in v1.1.0

func (o *ZoneReadList) GetOffset() *float32

GetOffset returns the Offset field value If the value is explicit nil, the zero value for float32 will be returned

func (*ZoneReadList) GetOffsetOk added in v1.1.0

func (o *ZoneReadList) GetOffsetOk() (*float32, bool)

GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneReadList) GetType added in v1.1.0

func (o *ZoneReadList) GetType() *string

GetType returns the Type field value If the value is explicit nil, the zero value for string will be returned

func (*ZoneReadList) GetTypeOk added in v1.1.0

func (o *ZoneReadList) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*ZoneReadList) HasHref added in v1.1.0

func (o *ZoneReadList) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*ZoneReadList) HasItems added in v1.1.0

func (o *ZoneReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*ZoneReadList) HasLimit added in v1.1.0

func (o *ZoneReadList) HasLimit() bool

HasLimit returns a boolean if a field has been set.

func (o *ZoneReadList) HasLinks() bool

HasLinks returns a boolean if a field has been set.

func (*ZoneReadList) HasOffset added in v1.1.0

func (o *ZoneReadList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*ZoneReadList) HasType added in v1.1.0

func (o *ZoneReadList) HasType() bool

HasType returns a boolean if a field has been set.

func (ZoneReadList) MarshalJSON added in v1.1.0

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

func (*ZoneReadList) SetHref added in v1.1.0

func (o *ZoneReadList) SetHref(v string)

SetHref sets field value

func (*ZoneReadList) SetItems added in v1.1.0

func (o *ZoneReadList) SetItems(v []ZoneRead)

SetItems sets field value

func (*ZoneReadList) SetLimit added in v1.1.0

func (o *ZoneReadList) SetLimit(v float32)

SetLimit sets field value

func (o *ZoneReadList) SetLinks(v Links)

SetLinks sets field value

func (*ZoneReadList) SetOffset added in v1.1.0

func (o *ZoneReadList) SetOffset(v float32)

SetOffset sets field value

func (*ZoneReadList) SetType added in v1.1.0

func (o *ZoneReadList) SetType(v string)

SetType sets field value

type ZonesApiService

type ZonesApiService service

ZonesApiService ZonesApi service

func (*ZonesApiService) ZonesDelete

func (a *ZonesApiService) ZonesDelete(ctx _context.Context, zoneId string) ApiZonesDeleteRequest

* ZonesDelete Delete a zone * Deletes the specified zone and all of the records it contains. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @return ApiZonesDeleteRequest

func (*ZonesApiService) ZonesDeleteExecute

func (a *ZonesApiService) ZonesDeleteExecute(r ApiZonesDeleteRequest) (*APIResponse, error)

* Execute executes the request

func (*ZonesApiService) ZonesFindById

func (a *ZonesApiService) ZonesFindById(ctx _context.Context, zoneId string) ApiZonesFindByIdRequest

* ZonesFindById Retrieve a zone * Returns a DNS zone by ID. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @return ApiZonesFindByIdRequest

func (*ZonesApiService) ZonesFindByIdExecute

func (a *ZonesApiService) ZonesFindByIdExecute(r ApiZonesFindByIdRequest) (ZoneRead, *APIResponse, error)

* Execute executes the request * @return ZoneRead

func (*ZonesApiService) ZonesGet

* ZonesGet Retrieve zones * Returns a list of the DNS zones for the customer. Default limit is the first 100 items. Use pagination query parameters for listing more items (up to 1000). * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiZonesGetRequest

func (*ZonesApiService) ZonesGetExecute

* Execute executes the request * @return ZoneReadList

func (*ZonesApiService) ZonesPost

* ZonesPost Create a zone * Creates a new zone with default NS and SOA records. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @return ApiZonesPostRequest

func (*ZonesApiService) ZonesPostExecute

func (a *ZonesApiService) ZonesPostExecute(r ApiZonesPostRequest) (ZoneRead, *APIResponse, error)

* Execute executes the request * @return ZoneRead

func (*ZonesApiService) ZonesPut

func (a *ZonesApiService) ZonesPut(ctx _context.Context, zoneId string) ApiZonesPutRequest

* ZonesPut Ensure a zone * Ensures that a zone with the provided ID is created or modified. In order to successfully update zone - all JSON parameters must be passed. * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). * @param zoneId The ID (UUID) of the DNS zone. * @return ApiZonesPutRequest

func (*ZonesApiService) ZonesPutExecute

func (a *ZonesApiService) ZonesPutExecute(r ApiZonesPutRequest) (ZoneRead, *APIResponse, error)

* Execute executes the request * @return ZoneRead

Jump to

Keyboard shortcuts

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