dns

package module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MPL-2.0 Imports: 22 Imported by: 1

README

Go API client for dns

Working with the API

Every endpoint uses the X-API-Key header for authorization, to obtain the key please see the Official Documentation.

Please note that any zone or record updates might conflict with active services. In such cases, the DNS records belonging to the conflicting services will be deactivated.

Support

Support questions may be posted in English: API Beta Support.

Please note that in the Beta phase we offer support in the business Hours Mo-Fri 9:00-17:00 EET.

Release notes
  • Version 1.0.0 Exposed CRUD operations for customer zone.
  • Version 1.0.1 Added response body for UPDATE and CREATE record operations.

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 dns "github.com/ionos-developer/dns-sdk-go"

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(), dns.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(), dns.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 identified 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(), dns.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), dns.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://api.hosting.ionos.com/dns

Class Method HTTP request Description
DynamicDNSApi ActivateDynDns Post /v1/dyndns
DynamicDNSApi DeleteDynDns Delete /v1/dyndns/{bulkId}
DynamicDNSApi DisableDynDns Delete /v1/dyndns
DynamicDNSApi UpdateDynDns Put /v1/dyndns/{bulkId}
RecordsApi CreateRecords Post /v1/zones/{zoneId}/records
RecordsApi DeleteRecord Delete /v1/zones/{zoneId}/records/{recordId}
RecordsApi GetRecord Get /v1/zones/{zoneId}/records/{recordId}
RecordsApi NormalizeRecord Post /v1/records/normalizer
RecordsApi UpdateRecord Put /v1/zones/{zoneId}/records/{recordId}
ZonesApi GetZone Get /v1/zones/{zoneId}
ZonesApi GetZones Get /v1/zones
ZonesApi PatchZone Patch /v1/zones/{zoneId}
ZonesApi UpdateZone Put /v1/zones/{zoneId}

Documentation For Models

Documentation For Authorization

ApiKeyAuth
  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: X-API-Key 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

Documentation

Index

Constants

This section is empty.

Variables

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

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

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

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

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

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

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

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

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)
View Source
var AllowedRecordTypesEnumValues = []RecordTypes{
	"A",
	"AAAA",
	"CNAME",
	"MX",
	"NS",
	"SOA",
	"SRV",
	"TXT",
	"CAA",
}

All allowed values of RecordTypes enum

View Source
var AllowedZoneTypesEnumValues = []ZoneTypes{
	"NATIVE",
	"SLAVE",
}

All allowed values of ZoneTypes enum

Functions

func CacheExpires

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

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

func PtrBool

func PtrBool(v bool) *bool

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

func PtrFloat32

func PtrFloat32(v float32) *float32

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

func PtrFloat64

func PtrFloat64(v float64) *float64

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

func PtrInt

func PtrInt(v int) *int

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

func PtrInt32

func PtrInt32(v int32) *int32

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

func PtrInt64

func PtrInt64(v int64) *int64

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

func PtrString

func PtrString(v string) *string

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

func PtrTime

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

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

Types

type APIClient

type APIClient struct {
	DynamicDNSApi *DynamicDNSApiService

	RecordsApi *RecordsApiService

	ZonesApi *ZonesApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the DNS API API v1.0.1 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

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

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

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

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

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

type APIResponse

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

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type ApiActivateDynDnsRequest

type ApiActivateDynDnsRequest struct {
	ApiService *DynamicDNSApiService
	// contains filtered or unexported fields
}

func (ApiActivateDynDnsRequest) DynDnsRequest

func (r ApiActivateDynDnsRequest) DynDnsRequest(dynDnsRequest DynDnsRequest) ApiActivateDynDnsRequest

Dynamic Dns configuration.

func (ApiActivateDynDnsRequest) Execute

type ApiCreateRecordsRequest

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

func (ApiCreateRecordsRequest) Execute

func (ApiCreateRecordsRequest) Record

type ApiDeleteDynDnsRequest

type ApiDeleteDynDnsRequest struct {
	ApiService *DynamicDNSApiService
	// contains filtered or unexported fields
}

func (ApiDeleteDynDnsRequest) Execute

func (r ApiDeleteDynDnsRequest) Execute() (*http.Response, error)

type ApiDeleteRecordRequest

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

func (ApiDeleteRecordRequest) Execute

func (r ApiDeleteRecordRequest) Execute() (*http.Response, error)

type ApiDisableDynDnsRequest

type ApiDisableDynDnsRequest struct {
	ApiService *DynamicDNSApiService
	// contains filtered or unexported fields
}

func (ApiDisableDynDnsRequest) Execute

func (r ApiDisableDynDnsRequest) Execute() (*http.Response, error)

type ApiGetRecordRequest

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

func (ApiGetRecordRequest) Execute

type ApiGetZoneRequest

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

func (ApiGetZoneRequest) Execute

func (r ApiGetZoneRequest) Execute() (*CustomerZone, *http.Response, error)

func (ApiGetZoneRequest) RecordName

func (r ApiGetZoneRequest) RecordName(recordName string) ApiGetZoneRequest

The record names that should be included (same as name field of Record)

func (ApiGetZoneRequest) RecordType

func (r ApiGetZoneRequest) RecordType(recordType string) ApiGetZoneRequest

A comma-separated list of record types that should be included

func (ApiGetZoneRequest) Suffix

func (r ApiGetZoneRequest) Suffix(suffix string) ApiGetZoneRequest

The FQDN used to filter all the record names that end with it.

type ApiGetZonesRequest

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

func (ApiGetZonesRequest) Execute

func (r ApiGetZonesRequest) Execute() ([]Zone, *http.Response, error)

type ApiNormalizeRecordRequest

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

func (ApiNormalizeRecordRequest) Execute

func (ApiNormalizeRecordRequest) Record

type ApiPatchZoneRequest

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

func (ApiPatchZoneRequest) Execute

func (r ApiPatchZoneRequest) Execute() (*http.Response, error)

func (ApiPatchZoneRequest) Record

func (r ApiPatchZoneRequest) Record(record []Record) ApiPatchZoneRequest

records

type ApiUpdateDynDnsRequest

type ApiUpdateDynDnsRequest struct {
	ApiService *DynamicDNSApiService
	// contains filtered or unexported fields
}

func (ApiUpdateDynDnsRequest) DynDnsRequest

func (r ApiUpdateDynDnsRequest) DynDnsRequest(dynDnsRequest DynDnsRequest) ApiUpdateDynDnsRequest

Dynamic Dns configuration.

func (ApiUpdateDynDnsRequest) Execute

func (r ApiUpdateDynDnsRequest) Execute() (*http.Response, error)

type ApiUpdateRecordRequest

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

func (ApiUpdateRecordRequest) Execute

func (ApiUpdateRecordRequest) RecordUpdate

func (r ApiUpdateRecordRequest) RecordUpdate(recordUpdate RecordUpdate) ApiUpdateRecordRequest

type ApiUpdateZoneRequest

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

func (ApiUpdateZoneRequest) Execute

func (r ApiUpdateZoneRequest) Execute() (*http.Response, error)

func (ApiUpdateZoneRequest) Record

records

type BasicAuth

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

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

type Configuration

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

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

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

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

func (*Configuration) ServerURL

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

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

ServerURLWithContext returns a new server URL given an endpoint

type CustomerZone

type CustomerZone struct {
	// The zone id.
	Id *string `json:"id,omitempty"`
	// The zone name
	Name    *string          `json:"name,omitempty"`
	Type    *ZoneTypes       `json:"type,omitempty"`
	Records []RecordResponse `json:"records,omitempty"`
}

CustomerZone struct for CustomerZone

func NewCustomerZone

func NewCustomerZone() *CustomerZone

NewCustomerZone instantiates a new CustomerZone 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 NewCustomerZoneWithDefaults

func NewCustomerZoneWithDefaults() *CustomerZone

NewCustomerZoneWithDefaults instantiates a new CustomerZone 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 (*CustomerZone) GetId

func (o *CustomerZone) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*CustomerZone) GetIdOk

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

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

func (*CustomerZone) GetName

func (o *CustomerZone) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*CustomerZone) GetNameOk

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

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

func (*CustomerZone) GetRecords

func (o *CustomerZone) GetRecords() []RecordResponse

GetRecords returns the Records field value if set, zero value otherwise.

func (*CustomerZone) GetRecordsOk

func (o *CustomerZone) GetRecordsOk() ([]RecordResponse, bool)

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

func (*CustomerZone) GetType

func (o *CustomerZone) GetType() ZoneTypes

GetType returns the Type field value if set, zero value otherwise.

func (*CustomerZone) GetTypeOk

func (o *CustomerZone) GetTypeOk() (*ZoneTypes, bool)

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

func (*CustomerZone) HasId

func (o *CustomerZone) HasId() bool

HasId returns a boolean if a field has been set.

func (*CustomerZone) HasName

func (o *CustomerZone) HasName() bool

HasName returns a boolean if a field has been set.

func (*CustomerZone) HasRecords

func (o *CustomerZone) HasRecords() bool

HasRecords returns a boolean if a field has been set.

func (*CustomerZone) HasType

func (o *CustomerZone) HasType() bool

HasType returns a boolean if a field has been set.

func (CustomerZone) MarshalJSON

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

func (*CustomerZone) SetId

func (o *CustomerZone) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*CustomerZone) SetName

func (o *CustomerZone) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*CustomerZone) SetRecords

func (o *CustomerZone) SetRecords(v []RecordResponse)

SetRecords gets a reference to the given []RecordResponse and assigns it to the Records field.

func (*CustomerZone) SetType

func (o *CustomerZone) SetType(v ZoneTypes)

SetType gets a reference to the given ZoneTypes and assigns it to the Type field.

type DynDnsRequest

type DynDnsRequest struct {
	Domains []string `json:"domains"`
	// Dynamic Dns description.
	Description *string `json:"description,omitempty"`
}

DynDnsRequest struct for DynDnsRequest

func NewDynDnsRequest

func NewDynDnsRequest(domains []string) *DynDnsRequest

NewDynDnsRequest instantiates a new DynDnsRequest 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 NewDynDnsRequestWithDefaults

func NewDynDnsRequestWithDefaults() *DynDnsRequest

NewDynDnsRequestWithDefaults instantiates a new DynDnsRequest 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 (*DynDnsRequest) GetDescription

func (o *DynDnsRequest) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*DynDnsRequest) GetDescriptionOk

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

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

func (*DynDnsRequest) GetDomains

func (o *DynDnsRequest) GetDomains() []string

GetDomains returns the Domains field value

func (*DynDnsRequest) GetDomainsOk

func (o *DynDnsRequest) GetDomainsOk() ([]string, bool)

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

func (*DynDnsRequest) HasDescription

func (o *DynDnsRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (DynDnsRequest) MarshalJSON

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

func (*DynDnsRequest) SetDescription

func (o *DynDnsRequest) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*DynDnsRequest) SetDomains

func (o *DynDnsRequest) SetDomains(v []string)

SetDomains sets field value

type DynamicDNSApiService

type DynamicDNSApiService service

DynamicDNSApiService DynamicDNSApi service

func (*DynamicDNSApiService) ActivateDynDns

ActivateDynDns Method for ActivateDynDns

Activate Dynamic Dns for a bundle of (sub)domains. The url from response will be used to update the ips of the (sub)domains. The following quota applies: 2 requests per minute per IP address.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiActivateDynDnsRequest

func (*DynamicDNSApiService) ActivateDynDnsExecute

func (a *DynamicDNSApiService) ActivateDynDnsExecute(r ApiActivateDynDnsRequest) (*DynamicDns, *http.Response, error)

Execute executes the request

@return DynamicDns

func (*DynamicDNSApiService) DeleteDynDns

func (a *DynamicDNSApiService) DeleteDynDns(ctx context.Context, bulkId string) ApiDeleteDynDnsRequest

DeleteDynDns Method for DeleteDynDns

Disable Dynamic Dns for bulk id. The following quota applies: 2 requests per minute per IP address.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param bulkId Dynamic Dns configuration identifier.
@return ApiDeleteDynDnsRequest

func (*DynamicDNSApiService) DeleteDynDnsExecute

func (a *DynamicDNSApiService) DeleteDynDnsExecute(r ApiDeleteDynDnsRequest) (*http.Response, error)

Execute executes the request

func (*DynamicDNSApiService) DisableDynDns

DisableDynDns Method for DisableDynDns

Disable Dynamic Dns. The following quota applies: 2 requests per minute per IP address.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiDisableDynDnsRequest

func (*DynamicDNSApiService) DisableDynDnsExecute

func (a *DynamicDNSApiService) DisableDynDnsExecute(r ApiDisableDynDnsRequest) (*http.Response, error)

Execute executes the request

func (*DynamicDNSApiService) UpdateDynDns

func (a *DynamicDNSApiService) UpdateDynDns(ctx context.Context, bulkId string) ApiUpdateDynDnsRequest

UpdateDynDns Method for UpdateDynDns

Update Dynamic Dns for bulk id. The following quota applies: 2 requests per minute per IP address.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param bulkId Dynamic Dns configuration identifier.
@return ApiUpdateDynDnsRequest

func (*DynamicDNSApiService) UpdateDynDnsExecute

func (a *DynamicDNSApiService) UpdateDynDnsExecute(r ApiUpdateDynDnsRequest) (*http.Response, error)

Execute executes the request

type DynamicDns

type DynamicDns struct {
	// DynDns configuration identifier.
	BulkId *string `json:"bulkId,omitempty"`
	// Use the url with GET to update the ips of (sub)domains. Query parameters: ipv4, ipv6.
	UpdateUrl *string  `json:"updateUrl,omitempty"`
	Domains   []string `json:"domains,omitempty"`
	// Dynamic Dns description.
	Description *string `json:"description,omitempty"`
}

DynamicDns struct for DynamicDns

func NewDynamicDns

func NewDynamicDns() *DynamicDns

NewDynamicDns instantiates a new DynamicDns 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 NewDynamicDnsWithDefaults

func NewDynamicDnsWithDefaults() *DynamicDns

NewDynamicDnsWithDefaults instantiates a new DynamicDns 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 (*DynamicDns) GetBulkId

func (o *DynamicDns) GetBulkId() string

GetBulkId returns the BulkId field value if set, zero value otherwise.

func (*DynamicDns) GetBulkIdOk

func (o *DynamicDns) GetBulkIdOk() (*string, bool)

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

func (*DynamicDns) GetDescription

func (o *DynamicDns) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*DynamicDns) GetDescriptionOk

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

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

func (*DynamicDns) GetDomains

func (o *DynamicDns) GetDomains() []string

GetDomains returns the Domains field value if set, zero value otherwise.

func (*DynamicDns) GetDomainsOk

func (o *DynamicDns) GetDomainsOk() ([]string, bool)

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

func (*DynamicDns) GetUpdateUrl

func (o *DynamicDns) GetUpdateUrl() string

GetUpdateUrl returns the UpdateUrl field value if set, zero value otherwise.

func (*DynamicDns) GetUpdateUrlOk

func (o *DynamicDns) GetUpdateUrlOk() (*string, bool)

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

func (*DynamicDns) HasBulkId

func (o *DynamicDns) HasBulkId() bool

HasBulkId returns a boolean if a field has been set.

func (*DynamicDns) HasDescription

func (o *DynamicDns) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*DynamicDns) HasDomains

func (o *DynamicDns) HasDomains() bool

HasDomains returns a boolean if a field has been set.

func (*DynamicDns) HasUpdateUrl

func (o *DynamicDns) HasUpdateUrl() bool

HasUpdateUrl returns a boolean if a field has been set.

func (DynamicDns) MarshalJSON

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

func (*DynamicDns) SetBulkId

func (o *DynamicDns) SetBulkId(v string)

SetBulkId gets a reference to the given string and assigns it to the BulkId field.

func (*DynamicDns) SetDescription

func (o *DynamicDns) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*DynamicDns) SetDomains

func (o *DynamicDns) SetDomains(v []string)

SetDomains gets a reference to the given []string and assigns it to the Domains field.

func (*DynamicDns) SetUpdateUrl

func (o *DynamicDns) SetUpdateUrl(v string)

SetUpdateUrl gets a reference to the given string and assigns it to the UpdateUrl field.

type GenericOpenAPIError

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

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

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

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

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type ModelError

type ModelError struct {
	// The error code.
	Code *string `json:"code,omitempty"`
	// The error message.
	Message *string `json:"message,omitempty"`
}

ModelError struct for ModelError

func NewModelError

func NewModelError() *ModelError

NewModelError instantiates a new ModelError 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 NewModelErrorWithDefaults

func NewModelErrorWithDefaults() *ModelError

NewModelErrorWithDefaults instantiates a new ModelError 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 (*ModelError) GetCode

func (o *ModelError) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*ModelError) GetCodeOk

func (o *ModelError) GetCodeOk() (*string, bool)

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

func (*ModelError) GetMessage

func (o *ModelError) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ModelError) GetMessageOk

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

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

func (*ModelError) HasCode

func (o *ModelError) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*ModelError) HasMessage

func (o *ModelError) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ModelError) MarshalJSON

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

func (*ModelError) SetCode

func (o *ModelError) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*ModelError) SetMessage

func (o *ModelError) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

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 NullableCustomerZone

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

func NewNullableCustomerZone

func NewNullableCustomerZone(val *CustomerZone) *NullableCustomerZone

func (NullableCustomerZone) Get

func (NullableCustomerZone) IsSet

func (v NullableCustomerZone) IsSet() bool

func (NullableCustomerZone) MarshalJSON

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

func (*NullableCustomerZone) Set

func (v *NullableCustomerZone) Set(val *CustomerZone)

func (*NullableCustomerZone) UnmarshalJSON

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

func (*NullableCustomerZone) Unset

func (v *NullableCustomerZone) Unset()

type NullableDynDnsRequest

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

func NewNullableDynDnsRequest

func NewNullableDynDnsRequest(val *DynDnsRequest) *NullableDynDnsRequest

func (NullableDynDnsRequest) Get

func (NullableDynDnsRequest) IsSet

func (v NullableDynDnsRequest) IsSet() bool

func (NullableDynDnsRequest) MarshalJSON

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

func (*NullableDynDnsRequest) Set

func (v *NullableDynDnsRequest) Set(val *DynDnsRequest)

func (*NullableDynDnsRequest) UnmarshalJSON

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

func (*NullableDynDnsRequest) Unset

func (v *NullableDynDnsRequest) Unset()

type NullableDynamicDns

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

func NewNullableDynamicDns

func NewNullableDynamicDns(val *DynamicDns) *NullableDynamicDns

func (NullableDynamicDns) Get

func (v NullableDynamicDns) Get() *DynamicDns

func (NullableDynamicDns) IsSet

func (v NullableDynamicDns) IsSet() bool

func (NullableDynamicDns) MarshalJSON

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

func (*NullableDynamicDns) Set

func (v *NullableDynamicDns) Set(val *DynamicDns)

func (*NullableDynamicDns) UnmarshalJSON

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

func (*NullableDynamicDns) Unset

func (v *NullableDynamicDns) 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 NullableModelError

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

func NewNullableModelError

func NewNullableModelError(val *ModelError) *NullableModelError

func (NullableModelError) Get

func (v NullableModelError) Get() *ModelError

func (NullableModelError) IsSet

func (v NullableModelError) IsSet() bool

func (NullableModelError) MarshalJSON

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

func (*NullableModelError) Set

func (v *NullableModelError) Set(val *ModelError)

func (*NullableModelError) UnmarshalJSON

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

func (*NullableModelError) Unset

func (v *NullableModelError) Unset()

type NullableRecord

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

func NewNullableRecord

func NewNullableRecord(val *Record) *NullableRecord

func (NullableRecord) Get

func (v NullableRecord) Get() *Record

func (NullableRecord) IsSet

func (v NullableRecord) IsSet() bool

func (NullableRecord) MarshalJSON

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

func (*NullableRecord) Set

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

func (*NullableRecord) UnmarshalJSON

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

func (*NullableRecord) Unset

func (v *NullableRecord) Unset()

type NullableRecordResponse

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

func NewNullableRecordResponse

func NewNullableRecordResponse(val *RecordResponse) *NullableRecordResponse

func (NullableRecordResponse) Get

func (NullableRecordResponse) IsSet

func (v NullableRecordResponse) IsSet() bool

func (NullableRecordResponse) MarshalJSON

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

func (*NullableRecordResponse) Set

func (*NullableRecordResponse) UnmarshalJSON

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

func (*NullableRecordResponse) Unset

func (v *NullableRecordResponse) Unset()

type NullableRecordTypes

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

func NewNullableRecordTypes

func NewNullableRecordTypes(val *RecordTypes) *NullableRecordTypes

func (NullableRecordTypes) Get

func (NullableRecordTypes) IsSet

func (v NullableRecordTypes) IsSet() bool

func (NullableRecordTypes) MarshalJSON

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

func (*NullableRecordTypes) Set

func (v *NullableRecordTypes) Set(val *RecordTypes)

func (*NullableRecordTypes) UnmarshalJSON

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

func (*NullableRecordTypes) Unset

func (v *NullableRecordTypes) Unset()

type NullableRecordUpdate

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

func NewNullableRecordUpdate

func NewNullableRecordUpdate(val *RecordUpdate) *NullableRecordUpdate

func (NullableRecordUpdate) Get

func (NullableRecordUpdate) IsSet

func (v NullableRecordUpdate) IsSet() bool

func (NullableRecordUpdate) MarshalJSON

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

func (*NullableRecordUpdate) Set

func (v *NullableRecordUpdate) Set(val *RecordUpdate)

func (*NullableRecordUpdate) UnmarshalJSON

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

func (*NullableRecordUpdate) Unset

func (v *NullableRecordUpdate) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

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

func (*NullableString) UnmarshalJSON

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

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

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

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

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

func (*NullableTime) UnmarshalJSON

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

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableZone

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

func NewNullableZone

func NewNullableZone(val *Zone) *NullableZone

func (NullableZone) Get

func (v NullableZone) Get() *Zone

func (NullableZone) IsSet

func (v NullableZone) IsSet() bool

func (NullableZone) MarshalJSON

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

func (*NullableZone) Set

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

func (*NullableZone) UnmarshalJSON

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

func (*NullableZone) Unset

func (v *NullableZone) Unset()

type NullableZoneTypes

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

func NewNullableZoneTypes

func NewNullableZoneTypes(val *ZoneTypes) *NullableZoneTypes

func (NullableZoneTypes) Get

func (v NullableZoneTypes) Get() *ZoneTypes

func (NullableZoneTypes) IsSet

func (v NullableZoneTypes) IsSet() bool

func (NullableZoneTypes) MarshalJSON

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

func (*NullableZoneTypes) Set

func (v *NullableZoneTypes) Set(val *ZoneTypes)

func (*NullableZoneTypes) UnmarshalJSON

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

func (*NullableZoneTypes) Unset

func (v *NullableZoneTypes) Unset()

type Record

type Record struct {
	Name    *string      `json:"name,omitempty"`
	Type    *RecordTypes `json:"type,omitempty"`
	Content *string      `json:"content,omitempty"`
	// Time to live for the record, recommended 3600.
	Ttl  *int32 `json:"ttl,omitempty"`
	Prio *int32 `json:"prio,omitempty"`
	// When is true, the record is not visible for lookup.
	Disabled *bool `json:"disabled,omitempty"`
}

Record struct for Record

func NewRecord

func NewRecord() *Record

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

func NewRecordWithDefaults

func NewRecordWithDefaults() *Record

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

func (*Record) GetContent

func (o *Record) GetContent() string

GetContent returns the Content field value if set, zero value otherwise.

func (*Record) GetContentOk

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

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

func (*Record) GetDisabled

func (o *Record) GetDisabled() bool

GetDisabled returns the Disabled field value if set, zero value otherwise.

func (*Record) GetDisabledOk

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

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

func (*Record) GetName

func (o *Record) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Record) GetNameOk

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

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

func (*Record) GetPrio

func (o *Record) GetPrio() int32

GetPrio returns the Prio field value if set, zero value otherwise.

func (*Record) GetPrioOk

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

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

func (*Record) GetTtl

func (o *Record) GetTtl() int32

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

func (*Record) GetTtlOk

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

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

func (*Record) GetType

func (o *Record) GetType() RecordTypes

GetType returns the Type field value if set, zero value otherwise.

func (*Record) GetTypeOk

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

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

func (*Record) HasContent

func (o *Record) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*Record) HasDisabled

func (o *Record) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*Record) HasName

func (o *Record) HasName() bool

HasName returns a boolean if a field has been set.

func (*Record) HasPrio

func (o *Record) HasPrio() bool

HasPrio returns a boolean if a field has been set.

func (*Record) HasTtl

func (o *Record) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (*Record) HasType

func (o *Record) HasType() bool

HasType returns a boolean if a field has been set.

func (Record) MarshalJSON

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

func (*Record) SetContent

func (o *Record) SetContent(v string)

SetContent gets a reference to the given string and assigns it to the Content field.

func (*Record) SetDisabled

func (o *Record) SetDisabled(v bool)

SetDisabled gets a reference to the given bool and assigns it to the Disabled field.

func (*Record) SetName

func (o *Record) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Record) SetPrio

func (o *Record) SetPrio(v int32)

SetPrio gets a reference to the given int32 and assigns it to the Prio field.

func (*Record) SetTtl

func (o *Record) SetTtl(v int32)

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

func (*Record) SetType

func (o *Record) SetType(v RecordTypes)

SetType gets a reference to the given RecordTypes and assigns it to the Type field.

type RecordResponse

type RecordResponse struct {
	Id   *string `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
	// Root zone name.
	RootName *string      `json:"rootName,omitempty"`
	Type     *RecordTypes `json:"type,omitempty"`
	Content  *string      `json:"content,omitempty"`
	// The date of the last change formatted as yyyy-MM-dd'T'HH:mm:ss.SSS'Z'
	ChangeDate *string `json:"changeDate,omitempty"`
	// Time to live for the record, recommended 3600.
	Ttl  *int32 `json:"ttl,omitempty"`
	Prio *int32 `json:"prio,omitempty"`
	// When is true, the record is not visible for lookup.
	Disabled *bool `json:"disabled,omitempty"`
}

RecordResponse struct for RecordResponse

func NewRecordResponse

func NewRecordResponse() *RecordResponse

NewRecordResponse instantiates a new RecordResponse 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 NewRecordResponseWithDefaults

func NewRecordResponseWithDefaults() *RecordResponse

NewRecordResponseWithDefaults instantiates a new RecordResponse 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 (*RecordResponse) GetChangeDate

func (o *RecordResponse) GetChangeDate() string

GetChangeDate returns the ChangeDate field value if set, zero value otherwise.

func (*RecordResponse) GetChangeDateOk

func (o *RecordResponse) GetChangeDateOk() (*string, bool)

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

func (*RecordResponse) GetContent

func (o *RecordResponse) GetContent() string

GetContent returns the Content field value if set, zero value otherwise.

func (*RecordResponse) GetContentOk

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

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

func (*RecordResponse) GetDisabled

func (o *RecordResponse) GetDisabled() bool

GetDisabled returns the Disabled field value if set, zero value otherwise.

func (*RecordResponse) GetDisabledOk

func (o *RecordResponse) GetDisabledOk() (*bool, bool)

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

func (*RecordResponse) GetId

func (o *RecordResponse) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*RecordResponse) GetIdOk

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

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

func (*RecordResponse) GetName

func (o *RecordResponse) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*RecordResponse) GetNameOk

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

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

func (*RecordResponse) GetPrio

func (o *RecordResponse) GetPrio() int32

GetPrio returns the Prio field value if set, zero value otherwise.

func (*RecordResponse) GetPrioOk

func (o *RecordResponse) GetPrioOk() (*int32, bool)

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

func (*RecordResponse) GetRootName

func (o *RecordResponse) GetRootName() string

GetRootName returns the RootName field value if set, zero value otherwise.

func (*RecordResponse) GetRootNameOk

func (o *RecordResponse) GetRootNameOk() (*string, bool)

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

func (*RecordResponse) GetTtl

func (o *RecordResponse) GetTtl() int32

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

func (*RecordResponse) GetTtlOk

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

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

func (*RecordResponse) GetType

func (o *RecordResponse) GetType() RecordTypes

GetType returns the Type field value if set, zero value otherwise.

func (*RecordResponse) GetTypeOk

func (o *RecordResponse) GetTypeOk() (*RecordTypes, bool)

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

func (*RecordResponse) HasChangeDate

func (o *RecordResponse) HasChangeDate() bool

HasChangeDate returns a boolean if a field has been set.

func (*RecordResponse) HasContent

func (o *RecordResponse) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*RecordResponse) HasDisabled

func (o *RecordResponse) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*RecordResponse) HasId

func (o *RecordResponse) HasId() bool

HasId returns a boolean if a field has been set.

func (*RecordResponse) HasName

func (o *RecordResponse) HasName() bool

HasName returns a boolean if a field has been set.

func (*RecordResponse) HasPrio

func (o *RecordResponse) HasPrio() bool

HasPrio returns a boolean if a field has been set.

func (*RecordResponse) HasRootName

func (o *RecordResponse) HasRootName() bool

HasRootName returns a boolean if a field has been set.

func (*RecordResponse) HasTtl

func (o *RecordResponse) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (*RecordResponse) HasType

func (o *RecordResponse) HasType() bool

HasType returns a boolean if a field has been set.

func (RecordResponse) MarshalJSON

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

func (*RecordResponse) SetChangeDate

func (o *RecordResponse) SetChangeDate(v string)

SetChangeDate gets a reference to the given string and assigns it to the ChangeDate field.

func (*RecordResponse) SetContent

func (o *RecordResponse) SetContent(v string)

SetContent gets a reference to the given string and assigns it to the Content field.

func (*RecordResponse) SetDisabled

func (o *RecordResponse) SetDisabled(v bool)

SetDisabled gets a reference to the given bool and assigns it to the Disabled field.

func (*RecordResponse) SetId

func (o *RecordResponse) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*RecordResponse) SetName

func (o *RecordResponse) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*RecordResponse) SetPrio

func (o *RecordResponse) SetPrio(v int32)

SetPrio gets a reference to the given int32 and assigns it to the Prio field.

func (*RecordResponse) SetRootName

func (o *RecordResponse) SetRootName(v string)

SetRootName gets a reference to the given string and assigns it to the RootName field.

func (*RecordResponse) SetTtl

func (o *RecordResponse) SetTtl(v int32)

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

func (*RecordResponse) SetType

func (o *RecordResponse) SetType(v RecordTypes)

SetType gets a reference to the given RecordTypes and assigns it to the Type field.

type RecordTypes

type RecordTypes string

RecordTypes Holds supported dns record types.

const (
	A     RecordTypes = "A"
	AAAA  RecordTypes = "AAAA"
	CNAME RecordTypes = "CNAME"
	MX    RecordTypes = "MX"
	NS    RecordTypes = "NS"
	SOA   RecordTypes = "SOA"
	SRV   RecordTypes = "SRV"
	TXT   RecordTypes = "TXT"
	CAA   RecordTypes = "CAA"
)

List of recordTypes

func NewRecordTypesFromValue

func NewRecordTypesFromValue(v string) (*RecordTypes, error)

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

func (RecordTypes) IsValid

func (v RecordTypes) IsValid() bool

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

func (RecordTypes) Ptr

func (v RecordTypes) Ptr() *RecordTypes

Ptr returns reference to recordTypes value

func (*RecordTypes) UnmarshalJSON

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

type RecordUpdate

type RecordUpdate struct {
	// When is true, the record is not visible for lookup.
	Disabled *bool   `json:"disabled,omitempty"`
	Content  *string `json:"content,omitempty"`
	// Time to live for the record, recommended 3600.
	Ttl  *int32 `json:"ttl,omitempty"`
	Prio *int32 `json:"prio,omitempty"`
}

RecordUpdate struct for RecordUpdate

func NewRecordUpdate

func NewRecordUpdate() *RecordUpdate

NewRecordUpdate instantiates a new RecordUpdate 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 NewRecordUpdateWithDefaults

func NewRecordUpdateWithDefaults() *RecordUpdate

NewRecordUpdateWithDefaults instantiates a new RecordUpdate 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 (*RecordUpdate) GetContent

func (o *RecordUpdate) GetContent() string

GetContent returns the Content field value if set, zero value otherwise.

func (*RecordUpdate) GetContentOk

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

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

func (*RecordUpdate) GetDisabled

func (o *RecordUpdate) GetDisabled() bool

GetDisabled returns the Disabled field value if set, zero value otherwise.

func (*RecordUpdate) GetDisabledOk

func (o *RecordUpdate) GetDisabledOk() (*bool, bool)

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

func (*RecordUpdate) GetPrio

func (o *RecordUpdate) GetPrio() int32

GetPrio returns the Prio field value if set, zero value otherwise.

func (*RecordUpdate) GetPrioOk

func (o *RecordUpdate) GetPrioOk() (*int32, bool)

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

func (*RecordUpdate) GetTtl

func (o *RecordUpdate) GetTtl() int32

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

func (*RecordUpdate) GetTtlOk

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

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

func (*RecordUpdate) HasContent

func (o *RecordUpdate) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*RecordUpdate) HasDisabled

func (o *RecordUpdate) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*RecordUpdate) HasPrio

func (o *RecordUpdate) HasPrio() bool

HasPrio returns a boolean if a field has been set.

func (*RecordUpdate) HasTtl

func (o *RecordUpdate) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (RecordUpdate) MarshalJSON

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

func (*RecordUpdate) SetContent

func (o *RecordUpdate) SetContent(v string)

SetContent gets a reference to the given string and assigns it to the Content field.

func (*RecordUpdate) SetDisabled

func (o *RecordUpdate) SetDisabled(v bool)

SetDisabled gets a reference to the given bool and assigns it to the Disabled field.

func (*RecordUpdate) SetPrio

func (o *RecordUpdate) SetPrio(v int32)

SetPrio gets a reference to the given int32 and assigns it to the Prio field.

func (*RecordUpdate) SetTtl

func (o *RecordUpdate) SetTtl(v int32)

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

type RecordsApiService

type RecordsApiService service

RecordsApiService RecordsApi service

func (*RecordsApiService) CreateRecords

func (a *RecordsApiService) CreateRecords(ctx context.Context, zoneId string) ApiCreateRecordsRequest

CreateRecords Method for CreateRecords

Creates records for a customer zone.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param zoneId The id of the customer zone.
@return ApiCreateRecordsRequest

func (*RecordsApiService) CreateRecordsExecute

func (a *RecordsApiService) CreateRecordsExecute(r ApiCreateRecordsRequest) ([]RecordResponse, *http.Response, error)

Execute executes the request

@return []RecordResponse

func (*RecordsApiService) DeleteRecord

func (a *RecordsApiService) DeleteRecord(ctx context.Context, zoneId string, recordId string) ApiDeleteRecordRequest

DeleteRecord Method for DeleteRecord

Delete a record from the customer zone.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param zoneId The id of the customer zone.
@param recordId The id of the record.
@return ApiDeleteRecordRequest

func (*RecordsApiService) DeleteRecordExecute

func (a *RecordsApiService) DeleteRecordExecute(r ApiDeleteRecordRequest) (*http.Response, error)

Execute executes the request

func (*RecordsApiService) GetRecord

func (a *RecordsApiService) GetRecord(ctx context.Context, zoneId string, recordId string) ApiGetRecordRequest

GetRecord Method for GetRecord

Returns the record from the customer zone with the mentioned id.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param zoneId The id of the customer zone.
@param recordId The id of the record.
@return ApiGetRecordRequest

func (*RecordsApiService) GetRecordExecute

Execute executes the request

@return RecordResponse

func (*RecordsApiService) NormalizeRecord

NormalizeRecord Method for NormalizeRecord

Returns the normalized record.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiNormalizeRecordRequest

func (*RecordsApiService) NormalizeRecordExecute

func (a *RecordsApiService) NormalizeRecordExecute(r ApiNormalizeRecordRequest) (*Record, *http.Response, error)

Execute executes the request

@return Record

func (*RecordsApiService) UpdateRecord

func (a *RecordsApiService) UpdateRecord(ctx context.Context, zoneId string, recordId string) ApiUpdateRecordRequest

UpdateRecord Method for UpdateRecord

Update a record from the customer zone.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param zoneId The id of the customer zone.
@param recordId The id of the record.
@return ApiUpdateRecordRequest

func (*RecordsApiService) UpdateRecordExecute

Execute executes the request

@return RecordResponse

type ServerConfiguration

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

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

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

URL formats template on a index using given variables

type ServerVariable

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

ServerVariable stores the information about a server variable

type Zone

type Zone struct {
	// The zone name.
	Name *string `json:"name,omitempty"`
	// The zone id.
	Id   *string    `json:"id,omitempty"`
	Type *ZoneTypes `json:"type,omitempty"`
}

Zone struct for Zone

func NewZone

func NewZone() *Zone

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

func NewZoneWithDefaults

func NewZoneWithDefaults() *Zone

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

func (*Zone) GetId

func (o *Zone) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Zone) GetIdOk

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

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

func (*Zone) GetName

func (o *Zone) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*Zone) GetNameOk

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

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

func (*Zone) GetType

func (o *Zone) GetType() ZoneTypes

GetType returns the Type field value if set, zero value otherwise.

func (*Zone) GetTypeOk

func (o *Zone) GetTypeOk() (*ZoneTypes, bool)

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

func (*Zone) HasId

func (o *Zone) HasId() bool

HasId returns a boolean if a field has been set.

func (*Zone) HasName

func (o *Zone) HasName() bool

HasName returns a boolean if a field has been set.

func (*Zone) HasType

func (o *Zone) HasType() bool

HasType returns a boolean if a field has been set.

func (Zone) MarshalJSON

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

func (*Zone) SetId

func (o *Zone) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Zone) SetName

func (o *Zone) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (*Zone) SetType

func (o *Zone) SetType(v ZoneTypes)

SetType gets a reference to the given ZoneTypes and assigns it to the Type field.

type ZoneTypes

type ZoneTypes string

ZoneTypes Represents the possible zone types.

const (
	NATIVE ZoneTypes = "NATIVE"
	SLAVE  ZoneTypes = "SLAVE"
)

List of zoneTypes

func NewZoneTypesFromValue

func NewZoneTypesFromValue(v string) (*ZoneTypes, error)

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

func (ZoneTypes) IsValid

func (v ZoneTypes) IsValid() bool

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

func (ZoneTypes) Ptr

func (v ZoneTypes) Ptr() *ZoneTypes

Ptr returns reference to zoneTypes value

func (*ZoneTypes) UnmarshalJSON

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

type ZonesApiService

type ZonesApiService service

ZonesApiService ZonesApi service

func (*ZonesApiService) GetZone

func (a *ZonesApiService) GetZone(ctx context.Context, zoneId string) ApiGetZoneRequest

GetZone Method for GetZone

Returns a customer zone.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param zoneId The id of the customer zone.
@return ApiGetZoneRequest

func (*ZonesApiService) GetZoneExecute

func (a *ZonesApiService) GetZoneExecute(r ApiGetZoneRequest) (*CustomerZone, *http.Response, error)

Execute executes the request

@return CustomerZone

func (*ZonesApiService) GetZones

GetZones Method for GetZones

Returns list of customer zones.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetZonesRequest

func (*ZonesApiService) GetZonesExecute

func (a *ZonesApiService) GetZonesExecute(r ApiGetZonesRequest) ([]Zone, *http.Response, error)

Execute executes the request

@return []Zone

func (*ZonesApiService) PatchZone

func (a *ZonesApiService) PatchZone(ctx context.Context, zoneId string) ApiPatchZoneRequest

PatchZone Method for PatchZone

Replaces all records of the same name and type with the ones provided.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param zoneId The id of the customer zone.
@return ApiPatchZoneRequest

func (*ZonesApiService) PatchZoneExecute

func (a *ZonesApiService) PatchZoneExecute(r ApiPatchZoneRequest) (*http.Response, error)

Execute executes the request

func (*ZonesApiService) UpdateZone

func (a *ZonesApiService) UpdateZone(ctx context.Context, zoneId string) ApiUpdateZoneRequest

UpdateZone Method for UpdateZone

Replaces all records in the zone with the ones provided

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param zoneId The id of the customer zone.
@return ApiUpdateZoneRequest

func (*ZonesApiService) UpdateZoneExecute

func (a *ZonesApiService) UpdateZoneExecute(r ApiUpdateZoneRequest) (*http.Response, error)

Execute executes the request

Jump to

Keyboard shortcuts

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