dns

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

README

Go API client for dns

DNS API Specification

Overview

The IONOS Cloud SDK for GO provides you with access to the IONOS Cloud API. The client library supports both simple and complex requests. It is designed for developers who are building applications in GO . The SDK for GO wraps the IONOS Cloud API. All API operations are performed over SSL and authenticated using your IONOS Cloud portal credentials. The API can be accessed within an instance running in IONOS Cloud or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.

Installing

Use go get to retrieve the SDK to add it to your GOPATH workspace, or project's Go module dependencies.
go get github.com/ionos-cloud/sdk-go-bundle/products/dns.git

To update the SDK use go get -u to retrieve the latest version of the SDK.

go get -u github.com/ionos-cloud/sdk-go-bundle/products/dns.git
Go Modules

If you are using Go modules, your go get will default to the latest tagged release version of the SDK. To get a specific release version of the SDK use @ in your go get command.

To get the latest SDK repository, use @latest.

go get github.com/ionos-cloud/sdk-go-bundle/products/dns@latest

Environment Variables

Environment Variable Description
IONOS_USERNAME Specify the username used to login, to authenticate against the IONOS Cloud API
IONOS_PASSWORD Specify the password used to login, to authenticate against the IONOS Cloud API
IONOS_TOKEN Specify the token used to login, if a token is being used instead of username and password
IONOS_API_URL Specify the API URL. It will overwrite the API endpoint default value api.ionos.com. Note: the host URL does not contain the /cloudapi/v6 path, so it should not be included in the IONOS_API_URL environment variable
IONOS_LOG_LEVEL Specify the Log Level used to log messages. Possible values: Off, Debug, Trace
IONOS_PINNED_CERT Specify the SHA-256 public fingerprint here, enables certificate pinning

⚠️ Note: To overwrite the api endpoint - api.ionos.com, the environment variable $IONOS_API_URL can be set, and used with NewConfigurationFromEnv() function.

Examples

Examples for creating resources using the Go SDK can be found here

Authentication

Basic Authentication
  • Type: HTTP basic authentication

Example

import (
	"context"
	"fmt"
	"github.com/ionos-cloud/sdk-go-bundle/shared"
	dns "github.com/ionos-cloud/sdk-go-bundle/products/dns"
	"log"
)

func basicAuthExample() error {
	cfg := shared.NewConfiguration("username_here", "pwd_here", "", "")
	cfg.LogLevel = Trace
	apiClient := dns.NewAPIClient(cfg)
	return nil
}
Token Authentication

There are 2 ways to generate your token:

Generate token using sdk for auth:
    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        dns "github.com/ionos-cloud/sdk-go-bundle/products/dns"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_USERNAME and IONOS_PASSWORD as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        jwt, _, err := auth.TokensApi.TokensGenerate(context.Background()).Execute()
        if err != nil {
            return fmt.Errorf("error occurred while generating token (%w)", err)
        }
        if !jwt.HasToken() {
            return fmt.Errorf("could not generate token")
        }
        cfg := shared.NewConfiguration("", "", *jwt.GetToken(), "")
        cfg.LogLevel = Trace
        apiClient := dns.NewAPIClient(cfg)
        return nil
    }
Generate token using ionosctl:

Install ionosctl as explained here Run commands to login and generate your token.

    ionosctl login
    ionosctl token generate
    export IONOS_TOKEN="insert_here_token_saved_from_generate_command"

Save the generated token and use it to authenticate:

    import (
        "context"
        "fmt"
        "github.com/ionos-cloud/sdk-go-bundle/products/auth"
         dns "github.com/ionos-cloud/sdk-go-bundle/products/dns"
        "log"
    )

    func TokenAuthExample() error {
        //note: to use NewConfigurationFromEnv(), you need to previously set IONOS_TOKEN as env variables
        authClient := auth.NewAPIClient(authApi.NewConfigurationFromEnv())
        cfg.LogLevel = Trace
        apiClient := dns.NewAPIClient(cfg)
        return nil
    }

Certificate pinning:

You can enable certificate pinning if you want to bypass the normal certificate checking procedure, by doing the following:

Set env variable IONOS_PINNED_CERT=<insert_sha256_public_fingerprint_here>

You can get the sha256 fingerprint most easily from the browser by inspecting the certificate.

Depth

Many of the List or Get operations will accept an optional depth argument. Setting this to a value between 0 and 5 affects the amount of data that is returned. The details returned vary depending on the resource being queried, but it generally follows this pattern. By default, the SDK sets the depth argument to the maximum value.

Depth Description
0 Only direct properties are included. Children are not included.
1 Direct properties and children's references are returned.
2 Direct properties and children's properties are returned.
3 Direct properties, children's properties, and descendants' references are returned.
4 Direct properties, children's properties, and descendants' properties are returned.
5 Returns all available properties.
Changing the base URL

Base URL for the HTTP operation can be changed by using the following function:

requestProperties.SetURL("https://api.ionos.com/cloudapi/v6")

Debugging

You can inject any logger that implements Printf as a logger instead of using the default sdk logger. There are log levels that you can set: Off, Debug and Trace. Off - does not show any logs Debug - regular logs, no sensitive information 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.

package main

    import (
        dns "github.com/ionos-cloud/sdk-go-bundle/products/dns"
        "github.com/ionos-cloud/sdk-go-bundle/shared"
        "github.com/sirupsen/logrus"
    )

func main() {
    // create your configuration. replace username, password, token and url with correct values, or use NewConfigurationFromEnv()
    // if you have set your env variables as explained above
    cfg := shared.NewConfiguration("username", "password", "token", "hostUrl")
    // enable request and response logging. this is the most verbose loglevel
    shared.SdkLogLevel = Trace
    // inject your own logger that implements Printf
    shared.SdkLogger = logrus.New()
    // create you api client with the configuration
    apiClient := dns.NewAPIClient(cfg)
}

Documentation for API Endpoints

All URIs are relative to https://dns.de-fra.ionos.com

API Endpoints table
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

All URIs are relative to https://dns.de-fra.ionos.com

API models list

[Back to API list] [Back to Model list]

Documentation

Index

Constants

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

	Version = "products/dns/v0.1.0"
)

Variables

This section is empty.

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.

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 *shared.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() *shared.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 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

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 (ApiZonesPostRequest) ZoneCreate

func (r ApiZonesPostRequest) ZoneCreate(zoneCreate ZoneCreate) ApiZonesPostRequest

type ApiZonesPutRequest

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

func (ApiZonesPutRequest) Execute

func (ApiZonesPutRequest) ZoneEnsure

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

type ApiZonesRecordsPutRequest

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

func (ApiZonesRecordsPutRequest) Execute

func (ApiZonesRecordsPutRequest) RecordEnsure

type Error

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

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

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

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

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

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

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

func (o *Error) HasHttpStatus() bool

HasHttpStatus returns a boolean if a field has been set.

func (*Error) HasMessages

func (o *Error) HasMessages() bool

HasMessages returns a boolean if a field has been set.

func (Error) MarshalJSON

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

func (*Error) SetHttpStatus

func (o *Error) SetHttpStatus(v int32)

SetHttpStatus sets field value

func (*Error) SetMessages

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

SetMessages sets field value

type ErrorMessages

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

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

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

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

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

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

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

func (o *ErrorMessages) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*ErrorMessages) HasMessage

func (o *ErrorMessages) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ErrorMessages) MarshalJSON

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

func (*ErrorMessages) SetErrorCode

func (o *ErrorMessages) SetErrorCode(v string)

SetErrorCode sets field value

func (*ErrorMessages) SetMessage

func (o *ErrorMessages) SetMessage(v string)

SetMessage sets field value

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

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

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

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

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

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

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

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

func (o *Links) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*Links) HasPrev

func (o *Links) HasPrev() bool

HasPrev returns a boolean if a field has been set.

func (*Links) HasSelf

func (o *Links) HasSelf() bool

HasSelf returns a boolean if a field has been set.

func (Links) MarshalJSON

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

func (*Links) SetNext

func (o *Links) SetNext(v string)

SetNext sets field value

func (*Links) SetPrev

func (o *Links) SetPrev(v string)

SetPrev sets field value

func (*Links) SetSelf

func (o *Links) SetSelf(v string)

SetSelf sets field value

type Metadata

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

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

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

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

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

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

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

func (o *Metadata) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*Metadata) HasLastModifiedDate

func (o *Metadata) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (Metadata) MarshalJSON

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

func (*Metadata) SetCreatedDate

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

SetCreatedDate sets field value

func (*Metadata) SetLastModifiedDate

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

SetLastModifiedDate sets field value

type MetadataWithStateFqdnZoneId

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

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

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

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

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

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

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

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

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

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

func (*MetadataWithStateFqdnZoneId) GetStateOk

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

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

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

func (o *MetadataWithStateFqdnZoneId) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasFqdn

func (o *MetadataWithStateFqdnZoneId) HasFqdn() bool

HasFqdn returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasLastModifiedDate

func (o *MetadataWithStateFqdnZoneId) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasState

func (o *MetadataWithStateFqdnZoneId) HasState() bool

HasState returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneId) HasZoneId

func (o *MetadataWithStateFqdnZoneId) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (MetadataWithStateFqdnZoneId) MarshalJSON

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

func (*MetadataWithStateFqdnZoneId) SetCreatedDate

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

SetCreatedDate sets field value

func (*MetadataWithStateFqdnZoneId) SetFqdn

func (o *MetadataWithStateFqdnZoneId) SetFqdn(v string)

SetFqdn sets field value

func (*MetadataWithStateFqdnZoneId) SetLastModifiedDate

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

SetLastModifiedDate sets field value

func (*MetadataWithStateFqdnZoneId) SetState

SetState sets field value

func (*MetadataWithStateFqdnZoneId) SetZoneId

func (o *MetadataWithStateFqdnZoneId) SetZoneId(v string)

SetZoneId sets field value

type MetadataWithStateFqdnZoneIdAllOf

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

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

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

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

func (*MetadataWithStateFqdnZoneIdAllOf) GetFqdnOk

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

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

func (*MetadataWithStateFqdnZoneIdAllOf) GetStateOk

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

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

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

HasFqdn returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneIdAllOf) HasState

func (o *MetadataWithStateFqdnZoneIdAllOf) HasState() bool

HasState returns a boolean if a field has been set.

func (*MetadataWithStateFqdnZoneIdAllOf) HasZoneId

func (o *MetadataWithStateFqdnZoneIdAllOf) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (MetadataWithStateFqdnZoneIdAllOf) MarshalJSON

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

func (*MetadataWithStateFqdnZoneIdAllOf) SetFqdn

SetFqdn sets field value

func (*MetadataWithStateFqdnZoneIdAllOf) SetState

SetState sets field value

func (*MetadataWithStateFqdnZoneIdAllOf) SetZoneId

func (o *MetadataWithStateFqdnZoneIdAllOf) SetZoneId(v string)

SetZoneId sets field value

type MetadataWithStateNameservers

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

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

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

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

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

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

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

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

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

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

func (*MetadataWithStateNameservers) GetStateOk

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

func (o *MetadataWithStateNameservers) HasCreatedDate() bool

HasCreatedDate returns a boolean if a field has been set.

func (*MetadataWithStateNameservers) HasLastModifiedDate

func (o *MetadataWithStateNameservers) HasLastModifiedDate() bool

HasLastModifiedDate returns a boolean if a field has been set.

func (*MetadataWithStateNameservers) HasNameservers

func (o *MetadataWithStateNameservers) HasNameservers() bool

HasNameservers returns a boolean if a field has been set.

func (*MetadataWithStateNameservers) HasState

func (o *MetadataWithStateNameservers) HasState() bool

HasState returns a boolean if a field has been set.

func (MetadataWithStateNameservers) MarshalJSON

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

func (*MetadataWithStateNameservers) SetCreatedDate

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

SetCreatedDate sets field value

func (*MetadataWithStateNameservers) SetLastModifiedDate

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

SetLastModifiedDate sets field value

func (*MetadataWithStateNameservers) SetNameservers

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

SetNameservers sets field value

func (*MetadataWithStateNameservers) SetState

SetState sets field value

type MetadataWithStateNameserversAllOf

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

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

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

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

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

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

func (*MetadataWithStateNameserversAllOf) GetStateOk

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

func (o *MetadataWithStateNameserversAllOf) HasNameservers() bool

HasNameservers returns a boolean if a field has been set.

func (*MetadataWithStateNameserversAllOf) HasState

HasState returns a boolean if a field has been set.

func (MetadataWithStateNameserversAllOf) MarshalJSON

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

func (*MetadataWithStateNameserversAllOf) SetNameservers

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

SetNameservers sets field value

func (*MetadataWithStateNameserversAllOf) SetState

SetState sets field value

type NullableError

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

func NewNullableError

func NewNullableError(val *Error) *NullableError

func (NullableError) Get

func (v NullableError) Get() *Error

func (NullableError) IsSet

func (v NullableError) IsSet() bool

func (NullableError) MarshalJSON

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

func (*NullableError) Set

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

func (*NullableError) UnmarshalJSON

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

func (*NullableError) Unset

func (v *NullableError) Unset()

type NullableErrorMessages

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

func NewNullableErrorMessages

func NewNullableErrorMessages(val *ErrorMessages) *NullableErrorMessages

func (NullableErrorMessages) Get

func (NullableErrorMessages) IsSet

func (v NullableErrorMessages) IsSet() bool

func (NullableErrorMessages) MarshalJSON

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

func (*NullableErrorMessages) Set

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

func (*NullableErrorMessages) UnmarshalJSON

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

func (*NullableErrorMessages) Unset

func (v *NullableErrorMessages) Unset()
type NullableLinks struct {
	// contains filtered or unexported fields
}
func NewNullableLinks(val *Links) *NullableLinks

func (NullableLinks) Get

func (v NullableLinks) Get() *Links

func (NullableLinks) IsSet

func (v NullableLinks) IsSet() bool

func (NullableLinks) MarshalJSON

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

func (*NullableLinks) Set

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

func (*NullableLinks) UnmarshalJSON

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

func (*NullableLinks) Unset

func (v *NullableLinks) Unset()

type NullableMetadata

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

func NewNullableMetadata

func NewNullableMetadata(val *Metadata) *NullableMetadata

func (NullableMetadata) Get

func (v NullableMetadata) Get() *Metadata

func (NullableMetadata) IsSet

func (v NullableMetadata) IsSet() bool

func (NullableMetadata) MarshalJSON

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

func (*NullableMetadata) Set

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

func (*NullableMetadata) UnmarshalJSON

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

func (*NullableMetadata) Unset

func (v *NullableMetadata) Unset()

type NullableMetadataWithStateFqdnZoneId

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

func (NullableMetadataWithStateFqdnZoneId) Get

func (NullableMetadataWithStateFqdnZoneId) IsSet

func (NullableMetadataWithStateFqdnZoneId) MarshalJSON

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

func (*NullableMetadataWithStateFqdnZoneId) Set

func (*NullableMetadataWithStateFqdnZoneId) UnmarshalJSON

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

func (*NullableMetadataWithStateFqdnZoneId) Unset

type NullableMetadataWithStateFqdnZoneIdAllOf

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

func (NullableMetadataWithStateFqdnZoneIdAllOf) Get

func (NullableMetadataWithStateFqdnZoneIdAllOf) IsSet

func (NullableMetadataWithStateFqdnZoneIdAllOf) MarshalJSON

func (*NullableMetadataWithStateFqdnZoneIdAllOf) Set

func (*NullableMetadataWithStateFqdnZoneIdAllOf) UnmarshalJSON

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

func (*NullableMetadataWithStateFqdnZoneIdAllOf) Unset

type NullableMetadataWithStateNameservers

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

func (NullableMetadataWithStateNameservers) Get

func (NullableMetadataWithStateNameservers) IsSet

func (NullableMetadataWithStateNameservers) MarshalJSON

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

func (*NullableMetadataWithStateNameservers) Set

func (*NullableMetadataWithStateNameservers) UnmarshalJSON

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

func (*NullableMetadataWithStateNameservers) Unset

type NullableMetadataWithStateNameserversAllOf

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

func (NullableMetadataWithStateNameserversAllOf) Get

func (NullableMetadataWithStateNameserversAllOf) IsSet

func (NullableMetadataWithStateNameserversAllOf) MarshalJSON

func (*NullableMetadataWithStateNameserversAllOf) Set

func (*NullableMetadataWithStateNameserversAllOf) UnmarshalJSON

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

func (*NullableMetadataWithStateNameserversAllOf) Unset

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

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 NullableRecordCreate

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

func NewNullableRecordCreate

func NewNullableRecordCreate(val *RecordCreate) *NullableRecordCreate

func (NullableRecordCreate) Get

func (NullableRecordCreate) IsSet

func (v NullableRecordCreate) IsSet() bool

func (NullableRecordCreate) MarshalJSON

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

func (*NullableRecordCreate) Set

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

func (*NullableRecordCreate) UnmarshalJSON

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

func (*NullableRecordCreate) Unset

func (v *NullableRecordCreate) Unset()

type NullableRecordEnsure

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

func NewNullableRecordEnsure

func NewNullableRecordEnsure(val *RecordEnsure) *NullableRecordEnsure

func (NullableRecordEnsure) Get

func (NullableRecordEnsure) IsSet

func (v NullableRecordEnsure) IsSet() bool

func (NullableRecordEnsure) MarshalJSON

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

func (*NullableRecordEnsure) Set

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

func (*NullableRecordEnsure) UnmarshalJSON

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

func (*NullableRecordEnsure) Unset

func (v *NullableRecordEnsure) Unset()

type NullableRecordRead

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

func NewNullableRecordRead

func NewNullableRecordRead(val *RecordRead) *NullableRecordRead

func (NullableRecordRead) Get

func (v NullableRecordRead) Get() *RecordRead

func (NullableRecordRead) IsSet

func (v NullableRecordRead) IsSet() bool

func (NullableRecordRead) MarshalJSON

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

func (*NullableRecordRead) Set

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

func (*NullableRecordRead) UnmarshalJSON

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

func (*NullableRecordRead) Unset

func (v *NullableRecordRead) Unset()

type NullableRecordReadList

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

func NewNullableRecordReadList

func NewNullableRecordReadList(val *RecordReadList) *NullableRecordReadList

func (NullableRecordReadList) Get

func (NullableRecordReadList) IsSet

func (v NullableRecordReadList) IsSet() bool

func (NullableRecordReadList) MarshalJSON

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

func (*NullableRecordReadList) Set

func (*NullableRecordReadList) UnmarshalJSON

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

func (*NullableRecordReadList) Unset

func (v *NullableRecordReadList) 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 NullableZoneCreate

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

func NewNullableZoneCreate

func NewNullableZoneCreate(val *ZoneCreate) *NullableZoneCreate

func (NullableZoneCreate) Get

func (v NullableZoneCreate) Get() *ZoneCreate

func (NullableZoneCreate) IsSet

func (v NullableZoneCreate) IsSet() bool

func (NullableZoneCreate) MarshalJSON

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

func (*NullableZoneCreate) Set

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

func (*NullableZoneCreate) UnmarshalJSON

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

func (*NullableZoneCreate) Unset

func (v *NullableZoneCreate) Unset()

type NullableZoneEnsure

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

func NewNullableZoneEnsure

func NewNullableZoneEnsure(val *ZoneEnsure) *NullableZoneEnsure

func (NullableZoneEnsure) Get

func (v NullableZoneEnsure) Get() *ZoneEnsure

func (NullableZoneEnsure) IsSet

func (v NullableZoneEnsure) IsSet() bool

func (NullableZoneEnsure) MarshalJSON

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

func (*NullableZoneEnsure) Set

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

func (*NullableZoneEnsure) UnmarshalJSON

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

func (*NullableZoneEnsure) Unset

func (v *NullableZoneEnsure) Unset()

type NullableZoneRead

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

func NewNullableZoneRead

func NewNullableZoneRead(val *ZoneRead) *NullableZoneRead

func (NullableZoneRead) Get

func (v NullableZoneRead) Get() *ZoneRead

func (NullableZoneRead) IsSet

func (v NullableZoneRead) IsSet() bool

func (NullableZoneRead) MarshalJSON

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

func (*NullableZoneRead) Set

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

func (*NullableZoneRead) UnmarshalJSON

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

func (*NullableZoneRead) Unset

func (v *NullableZoneRead) Unset()

type NullableZoneReadList

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

func NewNullableZoneReadList

func NewNullableZoneReadList(val *ZoneReadList) *NullableZoneReadList

func (NullableZoneReadList) Get

func (NullableZoneReadList) IsSet

func (v NullableZoneReadList) IsSet() bool

func (NullableZoneReadList) MarshalJSON

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

func (*NullableZoneReadList) Set

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

func (*NullableZoneReadList) UnmarshalJSON

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

func (*NullableZoneReadList) Unset

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 (
	PROVISIONINGSTATE_PROVISIONING ProvisioningState = "PROVISIONING"
	PROVISIONINGSTATE_DESTROYING   ProvisioningState = "DESTROYING"
	PROVISIONINGSTATE_AVAILABLE    ProvisioningState = "AVAILABLE"
	PROVISIONINGSTATE_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

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

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

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 the value is explicit nil, the zero value for string will be returned

func (*Record) GetContentOk

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

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

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

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

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

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

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

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

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

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

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

func (o *Record) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*Record) HasEnabled

func (o *Record) HasEnabled() bool

HasEnabled 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) HasPriority

func (o *Record) HasPriority() bool

HasPriority 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 sets field value

func (*Record) SetEnabled

func (o *Record) SetEnabled(v bool)

SetEnabled sets field value

func (*Record) SetName

func (o *Record) SetName(v string)

SetName sets field value

func (*Record) SetPriority

func (o *Record) SetPriority(v int32)

SetPriority sets field value

func (*Record) SetTtl

func (o *Record) SetTtl(v int32)

SetTtl sets field value

func (*Record) SetType

func (o *Record) SetType(v string)

SetType sets field value

type RecordCreate

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

RecordCreate struct for RecordCreate

func NewRecordCreate

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

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

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

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

func (o *RecordCreate) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (RecordCreate) MarshalJSON

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

func (*RecordCreate) SetProperties

func (o *RecordCreate) SetProperties(v Record)

SetProperties sets field value

type RecordEnsure

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

RecordEnsure struct for RecordEnsure

func NewRecordEnsure

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

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

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

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

func (o *RecordEnsure) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (RecordEnsure) MarshalJSON

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

func (*RecordEnsure) SetProperties

func (o *RecordEnsure) SetProperties(v Record)

SetProperties sets field value

type RecordRead

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

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

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

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

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

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

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

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

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

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

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

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

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

func (o *RecordRead) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*RecordRead) HasId

func (o *RecordRead) HasId() bool

HasId returns a boolean if a field has been set.

func (*RecordRead) HasMetadata

func (o *RecordRead) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*RecordRead) HasProperties

func (o *RecordRead) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*RecordRead) HasType

func (o *RecordRead) HasType() bool

HasType returns a boolean if a field has been set.

func (RecordRead) MarshalJSON

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

func (*RecordRead) SetHref

func (o *RecordRead) SetHref(v string)

SetHref sets field value

func (*RecordRead) SetId

func (o *RecordRead) SetId(v string)

SetId sets field value

func (*RecordRead) SetMetadata

func (o *RecordRead) SetMetadata(v MetadataWithStateFqdnZoneId)

SetMetadata sets field value

func (*RecordRead) SetProperties

func (o *RecordRead) SetProperties(v Record)

SetProperties sets field value

func (*RecordRead) SetType

func (o *RecordRead) SetType(v string)

SetType sets field value

type RecordReadList

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (o *RecordReadList) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*RecordReadList) HasId

func (o *RecordReadList) HasId() bool

HasId returns a boolean if a field has been set.

func (*RecordReadList) HasItems

func (o *RecordReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*RecordReadList) HasLimit

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

func (o *RecordReadList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*RecordReadList) HasType

func (o *RecordReadList) HasType() bool

HasType returns a boolean if a field has been set.

func (RecordReadList) MarshalJSON

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

func (*RecordReadList) SetHref

func (o *RecordReadList) SetHref(v string)

SetHref sets field value

func (*RecordReadList) SetId

func (o *RecordReadList) SetId(v string)

SetId sets field value

func (*RecordReadList) SetItems

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

SetItems sets field value

func (*RecordReadList) SetLimit

func (o *RecordReadList) SetLimit(v float32)

SetLimit sets field value

func (o *RecordReadList) SetLinks(v Links)

SetLinks sets field value

func (*RecordReadList) SetOffset

func (o *RecordReadList) SetOffset(v float32)

SetOffset sets field value

func (*RecordReadList) SetType

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) (*shared.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, *shared.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

* 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

* Execute executes the request * @return RecordRead

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

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

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

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

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

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

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

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

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

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

func (o *Zone) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Zone) HasEnabled

func (o *Zone) HasEnabled() bool

HasEnabled returns a boolean if a field has been set.

func (*Zone) HasZoneName

func (o *Zone) HasZoneName() bool

HasZoneName returns a boolean if a field has been set.

func (Zone) MarshalJSON

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

func (*Zone) SetDescription

func (o *Zone) SetDescription(v string)

SetDescription sets field value

func (*Zone) SetEnabled

func (o *Zone) SetEnabled(v bool)

SetEnabled sets field value

func (*Zone) SetZoneName

func (o *Zone) SetZoneName(v string)

SetZoneName sets field value

type ZoneCreate

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

ZoneCreate struct for ZoneCreate

func NewZoneCreate

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

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

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

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

func (o *ZoneCreate) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (ZoneCreate) MarshalJSON

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

func (*ZoneCreate) SetProperties

func (o *ZoneCreate) SetProperties(v Zone)

SetProperties sets field value

type ZoneEnsure

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

ZoneEnsure struct for ZoneEnsure

func NewZoneEnsure

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

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

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

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

func (o *ZoneEnsure) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (ZoneEnsure) MarshalJSON

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

func (*ZoneEnsure) SetProperties

func (o *ZoneEnsure) SetProperties(v Zone)

SetProperties sets field value

type ZoneRead

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

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

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

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

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

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

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

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

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

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

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

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

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

func (o *ZoneRead) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*ZoneRead) HasId

func (o *ZoneRead) HasId() bool

HasId returns a boolean if a field has been set.

func (*ZoneRead) HasMetadata

func (o *ZoneRead) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*ZoneRead) HasProperties

func (o *ZoneRead) HasProperties() bool

HasProperties returns a boolean if a field has been set.

func (*ZoneRead) HasType

func (o *ZoneRead) HasType() bool

HasType returns a boolean if a field has been set.

func (ZoneRead) MarshalJSON

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

func (*ZoneRead) SetHref

func (o *ZoneRead) SetHref(v string)

SetHref sets field value

func (*ZoneRead) SetId

func (o *ZoneRead) SetId(v string)

SetId sets field value

func (*ZoneRead) SetMetadata

func (o *ZoneRead) SetMetadata(v MetadataWithStateNameservers)

SetMetadata sets field value

func (*ZoneRead) SetProperties

func (o *ZoneRead) SetProperties(v Zone)

SetProperties sets field value

func (*ZoneRead) SetType

func (o *ZoneRead) SetType(v string)

SetType sets field value

type ZoneReadList

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

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

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

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

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

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

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

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

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

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

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

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

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

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

func (o *ZoneReadList) HasHref() bool

HasHref returns a boolean if a field has been set.

func (*ZoneReadList) HasItems

func (o *ZoneReadList) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*ZoneReadList) HasLimit

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

func (o *ZoneReadList) HasOffset() bool

HasOffset returns a boolean if a field has been set.

func (*ZoneReadList) HasType

func (o *ZoneReadList) HasType() bool

HasType returns a boolean if a field has been set.

func (ZoneReadList) MarshalJSON

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

func (*ZoneReadList) SetHref

func (o *ZoneReadList) SetHref(v string)

SetHref sets field value

func (*ZoneReadList) SetItems

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

SetItems sets field value

func (*ZoneReadList) SetLimit

func (o *ZoneReadList) SetLimit(v float32)

SetLimit sets field value

func (o *ZoneReadList) SetLinks(v Links)

SetLinks sets field value

func (*ZoneReadList) SetOffset

func (o *ZoneReadList) SetOffset(v float32)

SetOffset sets field value

func (*ZoneReadList) SetType

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) (*shared.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, *shared.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

* 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

* Execute executes the request * @return ZoneRead

Jump to

Keyboard shortcuts

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