openapi

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: MIT Imports: 21 Imported by: 0

README

Go API client for openapi

THIS WAS GENERATED FROM THE DEFINITION AT THIS COMMIT CONVERTED TO OPENAPI V3

docker run --rm -v "${PWD}:/local" openapitools/openapi-generator-cli generate -i openapi.yaml -g go -o /local

It should be correct.

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

Overview

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

  • API version: 0.0.15
  • Package version: 1.0.0
  • Generator version: 7.12.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

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

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

import openapi "github.com/argonaut0/pdns-client-go"

To use a proxy, set the environment variable HTTP_PROXY:

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

Configuration of Server URL

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

Select Server Configuration

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

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

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

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

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

URLs Configuration per Operation

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

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

Documentation for API Endpoints

All URIs are relative to /api/v1

Class Method HTTP request Description
AutoprimaryAPI CreateAutoprimary Post /servers/{server_id}/autoprimaries Add an autoprimary
AutoprimaryAPI DeleteAutoprimary Delete /servers/{server_id}/autoprimaries/{ip}/{nameserver} Delete the autoprimary entry
AutoprimaryAPI GetAutoprimaries Get /servers/{server_id}/autoprimaries Get a list of autoprimaries
ConfigAPI GetConfig Get /servers/{server_id}/config Returns all ConfigSettings for a single server
ConfigAPI GetConfigSetting Get /servers/{server_id}/config/{config_setting_name} Returns a specific ConfigSetting for a single server
DefaultAPI CallError Get /error Will always generate an error
SearchAPI SearchData Get /servers/{server_id}/search-data Search the data inside PowerDNS
ServersAPI CacheFlushByName Put /servers/{server_id}/cache/flush Flush a cache-entry by name
ServersAPI ListServer Get /servers/{server_id} List a server
ServersAPI ListServers Get /servers List all servers
StatsAPI GetStats Get /servers/{server_id}/statistics Query statistics.
TsigkeyAPI CreateTSIGKey Post /servers/{server_id}/tsigkeys Add a TSIG key
TsigkeyAPI DeleteTSIGKey Delete /servers/{server_id}/tsigkeys/{tsigkey_id} Delete the TSIGKey with tsigkey_id
TsigkeyAPI GetTSIGKey Get /servers/{server_id}/tsigkeys/{tsigkey_id} Get a specific TSIGKeys on the server, including the actual key
TsigkeyAPI ListTSIGKeys Get /servers/{server_id}/tsigkeys Get all TSIGKeys on the server, except the actual key
TsigkeyAPI PutTSIGKey Put /servers/{server_id}/tsigkeys/{tsigkey_id}
ZonecryptokeyAPI CreateCryptokey Post /servers/{server_id}/zones/{zone_id}/cryptokeys Creates a Cryptokey
ZonecryptokeyAPI DeleteCryptokey Delete /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id} This method deletes a key specified by cryptokey_id.
ZonecryptokeyAPI GetCryptokey Get /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id} Returns all data about the CryptoKey, including the privatekey.
ZonecryptokeyAPI ListCryptokeys Get /servers/{server_id}/zones/{zone_id}/cryptokeys Get all CryptoKeys for a zone, except the privatekey
ZonecryptokeyAPI ModifyCryptokey Put /servers/{server_id}/zones/{zone_id}/cryptokeys/{cryptokey_id} This method (de)activates a key from zone_name specified by cryptokey_id
ZonemetadataAPI CreateMetadata Post /servers/{server_id}/zones/{zone_id}/metadata Creates a set of metadata entries
ZonemetadataAPI DeleteMetadata Delete /servers/{server_id}/zones/{zone_id}/metadata/{metadata_kind} Delete all items of a single kind of domain metadata.
ZonemetadataAPI GetMetadata Get /servers/{server_id}/zones/{zone_id}/metadata/{metadata_kind} Get the content of a single kind of domain metadata as a Metadata object.
ZonemetadataAPI ListMetadata Get /servers/{server_id}/zones/{zone_id}/metadata Get all the Metadata associated with the zone.
ZonemetadataAPI ModifyMetadata Put /servers/{server_id}/zones/{zone_id}/metadata/{metadata_kind} Replace the content of a single kind of domain metadata.
ZonesAPI AxfrExportZone Get /servers/{server_id}/zones/{zone_id}/export Returns the zone in AXFR format.
ZonesAPI AxfrRetrieveZone Put /servers/{server_id}/zones/{zone_id}/axfr-retrieve Retrieve slave zone from its master.
ZonesAPI CreateZone Post /servers/{server_id}/zones Creates a new domain, returns the Zone on creation.
ZonesAPI DeleteZone Delete /servers/{server_id}/zones/{zone_id} Deletes this zone, all attached metadata and rrsets.
ZonesAPI ListZone Get /servers/{server_id}/zones/{zone_id} zone managed by a server
ZonesAPI ListZones Get /servers/{server_id}/zones List all Zones in a server
ZonesAPI NotifyZone Put /servers/{server_id}/zones/{zone_id}/notify Send a DNS NOTIFY to all slaves.
ZonesAPI PatchZone Patch /servers/{server_id}/zones/{zone_id} Creates/modifies/deletes RRsets present in the payload and their comments. Returns 204 No Content on success.
ZonesAPI PutZone Put /servers/{server_id}/zones/{zone_id} Modifies basic zone data.
ZonesAPI RectifyZone Put /servers/{server_id}/zones/{zone_id}/rectify Rectify the zone data.

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

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

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

Example

auth := context.WithValue(
		context.Background(),
		openapi.ContextAPIKeys,
		map[string]openapi.APIKey{
			"APIKeyHeader": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

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

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

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

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

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

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

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

Functions

func CacheExpires

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

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

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

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

func PtrFloat32

func PtrFloat32(v float32) *float32

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

func PtrFloat64

func PtrFloat64(v float64) *float64

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

func PtrInt

func PtrInt(v int) *int

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

func PtrInt32

func PtrInt32(v int32) *int32

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

func PtrInt64

func PtrInt64(v int64) *int64

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

func PtrString

func PtrString(v string) *string

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

func PtrTime

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

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

Types

type APIClient

type APIClient struct {
	AutoprimaryAPI *AutoprimaryAPIService

	ConfigAPI *ConfigAPIService

	DefaultAPI *DefaultAPIService

	SearchAPI *SearchAPIService

	ServersAPI *ServersAPIService

	StatsAPI *StatsAPIService

	TsigkeyAPI *TsigkeyAPIService

	ZonecryptokeyAPI *ZonecryptokeyAPIService

	ZonemetadataAPI *ZonemetadataAPIService

	ZonesAPI *ZonesAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the PowerDNS Authoritative HTTP API API v0.0.15 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

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

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

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

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

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

type APIResponse

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

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

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

type ApiAxfrExportZoneRequest

type ApiAxfrExportZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiAxfrExportZoneRequest) Execute

type ApiAxfrRetrieveZoneRequest

type ApiAxfrRetrieveZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiAxfrRetrieveZoneRequest) Execute

type ApiCacheFlushByNameRequest

type ApiCacheFlushByNameRequest struct {
	ApiService *ServersAPIService
	// contains filtered or unexported fields
}

func (ApiCacheFlushByNameRequest) Domain

The domain name to flush from the cache

func (ApiCacheFlushByNameRequest) Execute

type ApiCallErrorRequest

type ApiCallErrorRequest struct {
	ApiService *DefaultAPIService
	// contains filtered or unexported fields
}

func (ApiCallErrorRequest) Execute

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

type ApiCreateAutoprimaryRequest

type ApiCreateAutoprimaryRequest struct {
	ApiService *AutoprimaryAPIService
	// contains filtered or unexported fields
}

func (ApiCreateAutoprimaryRequest) Autoprimary

autoprimary entry to add

func (ApiCreateAutoprimaryRequest) Execute

type ApiCreateCryptokeyRequest

type ApiCreateCryptokeyRequest struct {
	ApiService *ZonecryptokeyAPIService
	// contains filtered or unexported fields
}

func (ApiCreateCryptokeyRequest) Cryptokey

Add a Cryptokey

func (ApiCreateCryptokeyRequest) Execute

type ApiCreateMetadataRequest

type ApiCreateMetadataRequest struct {
	ApiService *ZonemetadataAPIService
	// contains filtered or unexported fields
}

func (ApiCreateMetadataRequest) Execute

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

func (ApiCreateMetadataRequest) Metadata

Metadata object with list of values to create

type ApiCreateTSIGKeyRequest

type ApiCreateTSIGKeyRequest struct {
	ApiService *TsigkeyAPIService
	// contains filtered or unexported fields
}

func (ApiCreateTSIGKeyRequest) Execute

func (ApiCreateTSIGKeyRequest) Tsigkey

The TSIGKey to add

type ApiCreateZoneRequest

type ApiCreateZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiCreateZoneRequest) Execute

func (r ApiCreateZoneRequest) Execute() (*Zone, *http.Response, error)

func (ApiCreateZoneRequest) Rrsets

“true” (default) or “false”, whether to include the “rrsets” in the response Zone object.

func (ApiCreateZoneRequest) ZoneStruct

func (r ApiCreateZoneRequest) ZoneStruct(zoneStruct Zone) ApiCreateZoneRequest

The zone struct to patch with

type ApiDeleteAutoprimaryRequest

type ApiDeleteAutoprimaryRequest struct {
	ApiService *AutoprimaryAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteAutoprimaryRequest) Execute

type ApiDeleteCryptokeyRequest

type ApiDeleteCryptokeyRequest struct {
	ApiService *ZonecryptokeyAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteCryptokeyRequest) Execute

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

type ApiDeleteMetadataRequest

type ApiDeleteMetadataRequest struct {
	ApiService *ZonemetadataAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteMetadataRequest) Execute

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

type ApiDeleteTSIGKeyRequest

type ApiDeleteTSIGKeyRequest struct {
	ApiService *TsigkeyAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteTSIGKeyRequest) Execute

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

type ApiDeleteZoneRequest

type ApiDeleteZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiDeleteZoneRequest) Execute

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

type ApiGetAutoprimariesRequest

type ApiGetAutoprimariesRequest struct {
	ApiService *AutoprimaryAPIService
	// contains filtered or unexported fields
}

func (ApiGetAutoprimariesRequest) Execute

type ApiGetConfigRequest

type ApiGetConfigRequest struct {
	ApiService *ConfigAPIService
	// contains filtered or unexported fields
}

func (ApiGetConfigRequest) Execute

type ApiGetConfigSettingRequest

type ApiGetConfigSettingRequest struct {
	ApiService *ConfigAPIService
	// contains filtered or unexported fields
}

func (ApiGetConfigSettingRequest) Execute

type ApiGetCryptokeyRequest

type ApiGetCryptokeyRequest struct {
	ApiService *ZonecryptokeyAPIService
	// contains filtered or unexported fields
}

func (ApiGetCryptokeyRequest) Execute

type ApiGetMetadataRequest

type ApiGetMetadataRequest struct {
	ApiService *ZonemetadataAPIService
	// contains filtered or unexported fields
}

func (ApiGetMetadataRequest) Execute

func (r ApiGetMetadataRequest) Execute() (*Metadata, *http.Response, error)

type ApiGetStatsRequest

type ApiGetStatsRequest struct {
	ApiService *StatsAPIService
	// contains filtered or unexported fields
}

func (ApiGetStatsRequest) Execute

func (ApiGetStatsRequest) Includerings

func (r ApiGetStatsRequest) Includerings(includerings bool) ApiGetStatsRequest

“true” (default) or “false”, whether to include the Ring items, which can contain thousands of log messages or queried domains. Setting this to ”false” may make the response a lot smaller.

func (ApiGetStatsRequest) Statistic

func (r ApiGetStatsRequest) Statistic(statistic string) ApiGetStatsRequest

When set to the name of a specific statistic, only this value is returned. If no statistic with that name exists, the response has a 422 status and an error message.

type ApiGetTSIGKeyRequest

type ApiGetTSIGKeyRequest struct {
	ApiService *TsigkeyAPIService
	// contains filtered or unexported fields
}

func (ApiGetTSIGKeyRequest) Execute

func (r ApiGetTSIGKeyRequest) Execute() (*TSIGKey, *http.Response, error)

type ApiListCryptokeysRequest

type ApiListCryptokeysRequest struct {
	ApiService *ZonecryptokeyAPIService
	// contains filtered or unexported fields
}

func (ApiListCryptokeysRequest) Execute

type ApiListMetadataRequest

type ApiListMetadataRequest struct {
	ApiService *ZonemetadataAPIService
	// contains filtered or unexported fields
}

func (ApiListMetadataRequest) Execute

func (r ApiListMetadataRequest) Execute() ([]Metadata, *http.Response, error)

type ApiListServerRequest

type ApiListServerRequest struct {
	ApiService *ServersAPIService
	// contains filtered or unexported fields
}

func (ApiListServerRequest) Execute

func (r ApiListServerRequest) Execute() (*Server, *http.Response, error)

type ApiListServersRequest

type ApiListServersRequest struct {
	ApiService *ServersAPIService
	// contains filtered or unexported fields
}

func (ApiListServersRequest) Execute

func (r ApiListServersRequest) Execute() ([]Server, *http.Response, error)

type ApiListTSIGKeysRequest

type ApiListTSIGKeysRequest struct {
	ApiService *TsigkeyAPIService
	// contains filtered or unexported fields
}

func (ApiListTSIGKeysRequest) Execute

func (r ApiListTSIGKeysRequest) Execute() ([]TSIGKey, *http.Response, error)

type ApiListZoneRequest

type ApiListZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiListZoneRequest) Execute

func (r ApiListZoneRequest) Execute() (*Zone, *http.Response, error)

func (ApiListZoneRequest) RrsetName

func (r ApiListZoneRequest) RrsetName(rrsetName string) ApiListZoneRequest

Limit output to RRsets for this name.

func (ApiListZoneRequest) RrsetType

func (r ApiListZoneRequest) RrsetType(rrsetType string) ApiListZoneRequest

Limit output to the RRset of this type. Can only be used together with rrset_name.

func (ApiListZoneRequest) Rrsets

func (r ApiListZoneRequest) Rrsets(rrsets bool) ApiListZoneRequest

“true” (default) or “false”, whether to include the “rrsets” in the response Zone object.

type ApiListZonesRequest

type ApiListZonesRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiListZonesRequest) Dnssec

func (r ApiListZonesRequest) Dnssec(dnssec bool) ApiListZonesRequest

“true” (default) or “false”, whether to include the “dnssec” and ”edited_serial” fields in the Zone objects. Setting this to ”false” will make the query a lot faster.

func (ApiListZonesRequest) Execute

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

func (ApiListZonesRequest) Zone

When set to the name of a zone, only this zone is returned. If no zone with that name exists, the response is an empty array. This can e.g. be used to check if a zone exists in the database without having to guess/encode the zone's id or to check if a zone exists.

type ApiModifyCryptokeyRequest

type ApiModifyCryptokeyRequest struct {
	ApiService *ZonecryptokeyAPIService
	// contains filtered or unexported fields
}

func (ApiModifyCryptokeyRequest) Cryptokey

the Cryptokey

func (ApiModifyCryptokeyRequest) Execute

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

type ApiModifyMetadataRequest

type ApiModifyMetadataRequest struct {
	ApiService *ZonemetadataAPIService
	// contains filtered or unexported fields
}

func (ApiModifyMetadataRequest) Execute

func (ApiModifyMetadataRequest) Metadata

metadata to add/create

type ApiNotifyZoneRequest

type ApiNotifyZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiNotifyZoneRequest) Execute

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

type ApiPatchZoneRequest

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

func (ApiPatchZoneRequest) Execute

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

func (ApiPatchZoneRequest) ZoneStruct

func (r ApiPatchZoneRequest) ZoneStruct(zoneStruct Zone) ApiPatchZoneRequest

The zone struct to patch with

type ApiPutTSIGKeyRequest

type ApiPutTSIGKeyRequest struct {
	ApiService *TsigkeyAPIService
	// contains filtered or unexported fields
}

func (ApiPutTSIGKeyRequest) Execute

func (r ApiPutTSIGKeyRequest) Execute() (*TSIGKey, *http.Response, error)

func (ApiPutTSIGKeyRequest) Tsigkey

A (possibly stripped down) TSIGKey object with the new values

type ApiPutZoneRequest

type ApiPutZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiPutZoneRequest) Execute

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

func (ApiPutZoneRequest) ZoneStruct

func (r ApiPutZoneRequest) ZoneStruct(zoneStruct Zone) ApiPutZoneRequest

The zone struct to patch with

type ApiRectifyZoneRequest

type ApiRectifyZoneRequest struct {
	ApiService *ZonesAPIService
	// contains filtered or unexported fields
}

func (ApiRectifyZoneRequest) Execute

func (r ApiRectifyZoneRequest) Execute() (string, *http.Response, error)

type ApiSearchDataRequest

type ApiSearchDataRequest struct {
	ApiService *SearchAPIService
	// contains filtered or unexported fields
}

func (ApiSearchDataRequest) Execute

func (ApiSearchDataRequest) Max

Maximum number of entries to return

func (ApiSearchDataRequest) ObjectType

func (r ApiSearchDataRequest) ObjectType(objectType string) ApiSearchDataRequest

Type of data to search for, one of “all”, “zone”, “record”, “comment”

func (ApiSearchDataRequest) Q

The string to search for

type Autoprimary

type Autoprimary struct {
	// IP address of the autoprimary server
	Ip *string `json:"ip,omitempty"`
	// DNS name of the autoprimary server
	Nameserver *string `json:"nameserver,omitempty"`
	// Account name for the autoprimary server
	Account *string `json:"account,omitempty"`
}

Autoprimary An autoprimary server that can provision new domains.

func NewAutoprimary

func NewAutoprimary() *Autoprimary

NewAutoprimary instantiates a new Autoprimary 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 NewAutoprimaryWithDefaults

func NewAutoprimaryWithDefaults() *Autoprimary

NewAutoprimaryWithDefaults instantiates a new Autoprimary 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 (*Autoprimary) GetAccount

func (o *Autoprimary) GetAccount() string

GetAccount returns the Account field value if set, zero value otherwise.

func (*Autoprimary) GetAccountOk

func (o *Autoprimary) GetAccountOk() (*string, bool)

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

func (*Autoprimary) GetIp

func (o *Autoprimary) GetIp() string

GetIp returns the Ip field value if set, zero value otherwise.

func (*Autoprimary) GetIpOk

func (o *Autoprimary) GetIpOk() (*string, bool)

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

func (*Autoprimary) GetNameserver

func (o *Autoprimary) GetNameserver() string

GetNameserver returns the Nameserver field value if set, zero value otherwise.

func (*Autoprimary) GetNameserverOk

func (o *Autoprimary) GetNameserverOk() (*string, bool)

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

func (*Autoprimary) HasAccount

func (o *Autoprimary) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*Autoprimary) HasIp

func (o *Autoprimary) HasIp() bool

HasIp returns a boolean if a field has been set.

func (*Autoprimary) HasNameserver

func (o *Autoprimary) HasNameserver() bool

HasNameserver returns a boolean if a field has been set.

func (Autoprimary) MarshalJSON

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

func (*Autoprimary) SetAccount

func (o *Autoprimary) SetAccount(v string)

SetAccount gets a reference to the given string and assigns it to the Account field.

func (*Autoprimary) SetIp

func (o *Autoprimary) SetIp(v string)

SetIp gets a reference to the given string and assigns it to the Ip field.

func (*Autoprimary) SetNameserver

func (o *Autoprimary) SetNameserver(v string)

SetNameserver gets a reference to the given string and assigns it to the Nameserver field.

func (Autoprimary) ToMap

func (o Autoprimary) ToMap() (map[string]interface{}, error)

type AutoprimaryAPIService

type AutoprimaryAPIService service

AutoprimaryAPIService AutoprimaryAPI service

func (*AutoprimaryAPIService) CreateAutoprimary

func (a *AutoprimaryAPIService) CreateAutoprimary(ctx context.Context, serverId string) ApiCreateAutoprimaryRequest

CreateAutoprimary Add an autoprimary

This methods add a new autoprimary server.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to manage the list of autoprimaries on
@return ApiCreateAutoprimaryRequest

func (*AutoprimaryAPIService) CreateAutoprimaryExecute

func (a *AutoprimaryAPIService) CreateAutoprimaryExecute(r ApiCreateAutoprimaryRequest) (*http.Response, error)

Execute executes the request

func (*AutoprimaryAPIService) DeleteAutoprimary

func (a *AutoprimaryAPIService) DeleteAutoprimary(ctx context.Context, serverId string, ip string, nameserver string) ApiDeleteAutoprimaryRequest

DeleteAutoprimary Delete the autoprimary entry

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to delete the autoprimary from
@param ip IP address of autoprimary
@param nameserver DNS name of the autoprimary
@return ApiDeleteAutoprimaryRequest

func (*AutoprimaryAPIService) DeleteAutoprimaryExecute

func (a *AutoprimaryAPIService) DeleteAutoprimaryExecute(r ApiDeleteAutoprimaryRequest) (*http.Response, error)

Execute executes the request

func (*AutoprimaryAPIService) GetAutoprimaries

func (a *AutoprimaryAPIService) GetAutoprimaries(ctx context.Context, serverId string) ApiGetAutoprimariesRequest

GetAutoprimaries Get a list of autoprimaries

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to manage the list of autoprimaries on
@return ApiGetAutoprimariesRequest

func (*AutoprimaryAPIService) GetAutoprimariesExecute

func (a *AutoprimaryAPIService) GetAutoprimariesExecute(r ApiGetAutoprimariesRequest) (*Autoprimary, *http.Response, error)

Execute executes the request

@return Autoprimary

type BasicAuth

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

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

type CacheFlushResult

type CacheFlushResult struct {
	// Amount of entries flushed
	Count *float32 `json:"count,omitempty"`
	// A message about the result like \"Flushed cache\"
	Result *string `json:"result,omitempty"`
}

CacheFlushResult The result of a cache-flush

func NewCacheFlushResult

func NewCacheFlushResult() *CacheFlushResult

NewCacheFlushResult instantiates a new CacheFlushResult 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 NewCacheFlushResultWithDefaults

func NewCacheFlushResultWithDefaults() *CacheFlushResult

NewCacheFlushResultWithDefaults instantiates a new CacheFlushResult 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 (*CacheFlushResult) GetCount

func (o *CacheFlushResult) GetCount() float32

GetCount returns the Count field value if set, zero value otherwise.

func (*CacheFlushResult) GetCountOk

func (o *CacheFlushResult) GetCountOk() (*float32, bool)

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

func (*CacheFlushResult) GetResult

func (o *CacheFlushResult) GetResult() string

GetResult returns the Result field value if set, zero value otherwise.

func (*CacheFlushResult) GetResultOk

func (o *CacheFlushResult) GetResultOk() (*string, bool)

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

func (*CacheFlushResult) HasCount

func (o *CacheFlushResult) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*CacheFlushResult) HasResult

func (o *CacheFlushResult) HasResult() bool

HasResult returns a boolean if a field has been set.

func (CacheFlushResult) MarshalJSON

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

func (*CacheFlushResult) SetCount

func (o *CacheFlushResult) SetCount(v float32)

SetCount gets a reference to the given float32 and assigns it to the Count field.

func (*CacheFlushResult) SetResult

func (o *CacheFlushResult) SetResult(v string)

SetResult gets a reference to the given string and assigns it to the Result field.

func (CacheFlushResult) ToMap

func (o CacheFlushResult) ToMap() (map[string]interface{}, error)

type Comment

type Comment struct {
	// The actual comment
	Content *string `json:"content,omitempty"`
	// Name of an account that added the comment
	Account *string `json:"account,omitempty"`
	// Timestamp of the last change to the comment
	ModifiedAt *int32 `json:"modified_at,omitempty"`
}

Comment A comment about an RRSet.

func NewComment

func NewComment() *Comment

NewComment instantiates a new Comment 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 NewCommentWithDefaults

func NewCommentWithDefaults() *Comment

NewCommentWithDefaults instantiates a new Comment 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 (*Comment) GetAccount

func (o *Comment) GetAccount() string

GetAccount returns the Account field value if set, zero value otherwise.

func (*Comment) GetAccountOk

func (o *Comment) GetAccountOk() (*string, bool)

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

func (*Comment) GetContent

func (o *Comment) GetContent() string

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

func (*Comment) GetContentOk

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

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

func (*Comment) GetModifiedAt

func (o *Comment) GetModifiedAt() int32

GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise.

func (*Comment) GetModifiedAtOk

func (o *Comment) GetModifiedAtOk() (*int32, bool)

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

func (*Comment) HasAccount

func (o *Comment) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*Comment) HasContent

func (o *Comment) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*Comment) HasModifiedAt

func (o *Comment) HasModifiedAt() bool

HasModifiedAt returns a boolean if a field has been set.

func (Comment) MarshalJSON

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

func (*Comment) SetAccount

func (o *Comment) SetAccount(v string)

SetAccount gets a reference to the given string and assigns it to the Account field.

func (*Comment) SetContent

func (o *Comment) SetContent(v string)

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

func (*Comment) SetModifiedAt

func (o *Comment) SetModifiedAt(v int32)

SetModifiedAt gets a reference to the given int32 and assigns it to the ModifiedAt field.

func (Comment) ToMap

func (o Comment) ToMap() (map[string]interface{}, error)

type ConfigAPIService

type ConfigAPIService service

ConfigAPIService ConfigAPI service

func (*ConfigAPIService) GetConfig

func (a *ConfigAPIService) GetConfig(ctx context.Context, serverId string) ApiGetConfigRequest

GetConfig Returns all ConfigSettings for a single server

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@return ApiGetConfigRequest

func (*ConfigAPIService) GetConfigExecute

func (a *ConfigAPIService) GetConfigExecute(r ApiGetConfigRequest) ([]ConfigSetting, *http.Response, error)

Execute executes the request

@return []ConfigSetting

func (*ConfigAPIService) GetConfigSetting

func (a *ConfigAPIService) GetConfigSetting(ctx context.Context, serverId string, configSettingName string) ApiGetConfigSettingRequest

GetConfigSetting Returns a specific ConfigSetting for a single server

NOT IMPLEMENTED

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param configSettingName The name of the setting to retrieve
@return ApiGetConfigSettingRequest

func (*ConfigAPIService) GetConfigSettingExecute

func (a *ConfigAPIService) GetConfigSettingExecute(r ApiGetConfigSettingRequest) (*ConfigSetting, *http.Response, error)

Execute executes the request

@return ConfigSetting

type ConfigSetting

type ConfigSetting struct {
	// set to \"ConfigSetting\"
	Name *string `json:"name,omitempty"`
	// The name of this setting (e.g. ‘webserver-port’)
	Type *string `json:"type,omitempty"`
	// The value of setting name
	Value *string `json:"value,omitempty"`
}

ConfigSetting struct for ConfigSetting

func NewConfigSetting

func NewConfigSetting() *ConfigSetting

NewConfigSetting instantiates a new ConfigSetting 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 NewConfigSettingWithDefaults

func NewConfigSettingWithDefaults() *ConfigSetting

NewConfigSettingWithDefaults instantiates a new ConfigSetting 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 (*ConfigSetting) GetName

func (o *ConfigSetting) GetName() string

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

func (*ConfigSetting) GetNameOk

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

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

func (*ConfigSetting) GetType

func (o *ConfigSetting) GetType() string

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

func (*ConfigSetting) GetTypeOk

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

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

func (*ConfigSetting) GetValue

func (o *ConfigSetting) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*ConfigSetting) GetValueOk

func (o *ConfigSetting) GetValueOk() (*string, bool)

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

func (*ConfigSetting) HasName

func (o *ConfigSetting) HasName() bool

HasName returns a boolean if a field has been set.

func (*ConfigSetting) HasType

func (o *ConfigSetting) HasType() bool

HasType returns a boolean if a field has been set.

func (*ConfigSetting) HasValue

func (o *ConfigSetting) HasValue() bool

HasValue returns a boolean if a field has been set.

func (ConfigSetting) MarshalJSON

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

func (*ConfigSetting) SetName

func (o *ConfigSetting) SetName(v string)

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

func (*ConfigSetting) SetType

func (o *ConfigSetting) SetType(v string)

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

func (*ConfigSetting) SetValue

func (o *ConfigSetting) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (ConfigSetting) ToMap

func (o ConfigSetting) ToMap() (map[string]interface{}, error)

type Configuration

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

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

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

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

func (*Configuration) ServerURL

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

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

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

ServerURLWithContext returns a new server URL given an endpoint

type Cryptokey

type Cryptokey struct {
	// set to \"Cryptokey\"
	Type *string `json:"type,omitempty"`
	// The internal identifier, read only
	Id      *int32  `json:"id,omitempty"`
	Keytype *string `json:"keytype,omitempty"`
	// Whether or not the key is in active use
	Active *bool `json:"active,omitempty"`
	// Whether or not the DNSKEY record is published in the zone
	Published *bool `json:"published,omitempty"`
	// The DNSKEY record for this key
	Dnskey *string `json:"dnskey,omitempty"`
	// An array of DS records for this key
	Ds []string `json:"ds,omitempty"`
	// An array of DS records for this key, filtered by CDS publication settings
	Cds []string `json:"cds,omitempty"`
	// The private key in ISC format
	Privatekey *string `json:"privatekey,omitempty"`
	// The name of the algorithm of the key, should be a mnemonic
	Algorithm *string `json:"algorithm,omitempty"`
	// The size of the key
	Bits *int32 `json:"bits,omitempty"`
}

Cryptokey Describes a DNSSEC cryptographic key

func NewCryptokey

func NewCryptokey() *Cryptokey

NewCryptokey instantiates a new Cryptokey 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 NewCryptokeyWithDefaults

func NewCryptokeyWithDefaults() *Cryptokey

NewCryptokeyWithDefaults instantiates a new Cryptokey 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 (*Cryptokey) GetActive

func (o *Cryptokey) GetActive() bool

GetActive returns the Active field value if set, zero value otherwise.

func (*Cryptokey) GetActiveOk

func (o *Cryptokey) GetActiveOk() (*bool, bool)

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

func (*Cryptokey) GetAlgorithm

func (o *Cryptokey) GetAlgorithm() string

GetAlgorithm returns the Algorithm field value if set, zero value otherwise.

func (*Cryptokey) GetAlgorithmOk

func (o *Cryptokey) GetAlgorithmOk() (*string, bool)

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

func (*Cryptokey) GetBits

func (o *Cryptokey) GetBits() int32

GetBits returns the Bits field value if set, zero value otherwise.

func (*Cryptokey) GetBitsOk

func (o *Cryptokey) GetBitsOk() (*int32, bool)

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

func (*Cryptokey) GetCds

func (o *Cryptokey) GetCds() []string

GetCds returns the Cds field value if set, zero value otherwise.

func (*Cryptokey) GetCdsOk

func (o *Cryptokey) GetCdsOk() ([]string, bool)

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

func (*Cryptokey) GetDnskey

func (o *Cryptokey) GetDnskey() string

GetDnskey returns the Dnskey field value if set, zero value otherwise.

func (*Cryptokey) GetDnskeyOk

func (o *Cryptokey) GetDnskeyOk() (*string, bool)

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

func (*Cryptokey) GetDs

func (o *Cryptokey) GetDs() []string

GetDs returns the Ds field value if set, zero value otherwise.

func (*Cryptokey) GetDsOk

func (o *Cryptokey) GetDsOk() ([]string, bool)

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

func (*Cryptokey) GetId

func (o *Cryptokey) GetId() int32

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

func (*Cryptokey) GetIdOk

func (o *Cryptokey) GetIdOk() (*int32, bool)

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

func (*Cryptokey) GetKeytype

func (o *Cryptokey) GetKeytype() string

GetKeytype returns the Keytype field value if set, zero value otherwise.

func (*Cryptokey) GetKeytypeOk

func (o *Cryptokey) GetKeytypeOk() (*string, bool)

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

func (*Cryptokey) GetPrivatekey

func (o *Cryptokey) GetPrivatekey() string

GetPrivatekey returns the Privatekey field value if set, zero value otherwise.

func (*Cryptokey) GetPrivatekeyOk

func (o *Cryptokey) GetPrivatekeyOk() (*string, bool)

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

func (*Cryptokey) GetPublished

func (o *Cryptokey) GetPublished() bool

GetPublished returns the Published field value if set, zero value otherwise.

func (*Cryptokey) GetPublishedOk

func (o *Cryptokey) GetPublishedOk() (*bool, bool)

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

func (*Cryptokey) GetType

func (o *Cryptokey) GetType() string

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

func (*Cryptokey) GetTypeOk

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

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

func (*Cryptokey) HasActive

func (o *Cryptokey) HasActive() bool

HasActive returns a boolean if a field has been set.

func (*Cryptokey) HasAlgorithm

func (o *Cryptokey) HasAlgorithm() bool

HasAlgorithm returns a boolean if a field has been set.

func (*Cryptokey) HasBits

func (o *Cryptokey) HasBits() bool

HasBits returns a boolean if a field has been set.

func (*Cryptokey) HasCds

func (o *Cryptokey) HasCds() bool

HasCds returns a boolean if a field has been set.

func (*Cryptokey) HasDnskey

func (o *Cryptokey) HasDnskey() bool

HasDnskey returns a boolean if a field has been set.

func (*Cryptokey) HasDs

func (o *Cryptokey) HasDs() bool

HasDs returns a boolean if a field has been set.

func (*Cryptokey) HasId

func (o *Cryptokey) HasId() bool

HasId returns a boolean if a field has been set.

func (*Cryptokey) HasKeytype

func (o *Cryptokey) HasKeytype() bool

HasKeytype returns a boolean if a field has been set.

func (*Cryptokey) HasPrivatekey

func (o *Cryptokey) HasPrivatekey() bool

HasPrivatekey returns a boolean if a field has been set.

func (*Cryptokey) HasPublished

func (o *Cryptokey) HasPublished() bool

HasPublished returns a boolean if a field has been set.

func (*Cryptokey) HasType

func (o *Cryptokey) HasType() bool

HasType returns a boolean if a field has been set.

func (Cryptokey) MarshalJSON

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

func (*Cryptokey) SetActive

func (o *Cryptokey) SetActive(v bool)

SetActive gets a reference to the given bool and assigns it to the Active field.

func (*Cryptokey) SetAlgorithm

func (o *Cryptokey) SetAlgorithm(v string)

SetAlgorithm gets a reference to the given string and assigns it to the Algorithm field.

func (*Cryptokey) SetBits

func (o *Cryptokey) SetBits(v int32)

SetBits gets a reference to the given int32 and assigns it to the Bits field.

func (*Cryptokey) SetCds

func (o *Cryptokey) SetCds(v []string)

SetCds gets a reference to the given []string and assigns it to the Cds field.

func (*Cryptokey) SetDnskey

func (o *Cryptokey) SetDnskey(v string)

SetDnskey gets a reference to the given string and assigns it to the Dnskey field.

func (*Cryptokey) SetDs

func (o *Cryptokey) SetDs(v []string)

SetDs gets a reference to the given []string and assigns it to the Ds field.

func (*Cryptokey) SetId

func (o *Cryptokey) SetId(v int32)

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

func (*Cryptokey) SetKeytype

func (o *Cryptokey) SetKeytype(v string)

SetKeytype gets a reference to the given string and assigns it to the Keytype field.

func (*Cryptokey) SetPrivatekey

func (o *Cryptokey) SetPrivatekey(v string)

SetPrivatekey gets a reference to the given string and assigns it to the Privatekey field.

func (*Cryptokey) SetPublished

func (o *Cryptokey) SetPublished(v bool)

SetPublished gets a reference to the given bool and assigns it to the Published field.

func (*Cryptokey) SetType

func (o *Cryptokey) SetType(v string)

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

func (Cryptokey) ToMap

func (o Cryptokey) ToMap() (map[string]interface{}, error)

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) CallError

CallError Will always generate an error

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

func (*DefaultAPIService) CallErrorExecute

func (a *DefaultAPIService) CallErrorExecute(r ApiCallErrorRequest) (*http.Response, error)

Execute executes the request

type Error

type Error struct {
	// A human readable error message
	Error string `json:"error"`
	// Optional array of multiple errors encountered during processing
	Errors []string `json:"errors,omitempty"`
}

Error Returned when the server encounters an error, either in client input or internally

func NewError

func NewError(error_ string) *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) GetError

func (o *Error) GetError() string

GetError returns the Error field value

func (*Error) GetErrorOk

func (o *Error) GetErrorOk() (*string, bool)

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

func (*Error) GetErrors

func (o *Error) GetErrors() []string

GetErrors returns the Errors field value if set, zero value otherwise.

func (*Error) GetErrorsOk

func (o *Error) GetErrorsOk() ([]string, bool)

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

func (*Error) HasErrors

func (o *Error) HasErrors() bool

HasErrors returns a boolean if a field has been set.

func (Error) MarshalJSON

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

func (*Error) SetError

func (o *Error) SetError(v string)

SetError sets field value

func (*Error) SetErrors

func (o *Error) SetErrors(v []string)

SetErrors gets a reference to the given []string and assigns it to the Errors field.

func (Error) ToMap

func (o Error) ToMap() (map[string]interface{}, error)

func (*Error) UnmarshalJSON

func (o *Error) UnmarshalJSON(data []byte) (err error)

type GenericOpenAPIError

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

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

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

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

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type GetStats200ResponseInner

type GetStats200ResponseInner struct {
	MapStatisticItem  *MapStatisticItem
	RingStatisticItem *RingStatisticItem
	StatisticItem     *StatisticItem
}

GetStats200ResponseInner - struct for GetStats200ResponseInner

func MapStatisticItemAsGetStats200ResponseInner

func MapStatisticItemAsGetStats200ResponseInner(v *MapStatisticItem) GetStats200ResponseInner

MapStatisticItemAsGetStats200ResponseInner is a convenience function that returns MapStatisticItem wrapped in GetStats200ResponseInner

func RingStatisticItemAsGetStats200ResponseInner

func RingStatisticItemAsGetStats200ResponseInner(v *RingStatisticItem) GetStats200ResponseInner

RingStatisticItemAsGetStats200ResponseInner is a convenience function that returns RingStatisticItem wrapped in GetStats200ResponseInner

func StatisticItemAsGetStats200ResponseInner

func StatisticItemAsGetStats200ResponseInner(v *StatisticItem) GetStats200ResponseInner

StatisticItemAsGetStats200ResponseInner is a convenience function that returns StatisticItem wrapped in GetStats200ResponseInner

func (*GetStats200ResponseInner) GetActualInstance

func (obj *GetStats200ResponseInner) GetActualInstance() interface{}

Get the actual instance

func (GetStats200ResponseInner) MarshalJSON

func (src GetStats200ResponseInner) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*GetStats200ResponseInner) UnmarshalJSON

func (dst *GetStats200ResponseInner) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

type MapStatisticItem

type MapStatisticItem struct {
	// Item name
	Name *string `json:"name,omitempty"`
	// Set to \"MapStatisticItem\"
	Type *string `json:"type,omitempty"`
	// Named values
	Value []SimpleStatisticItem `json:"value,omitempty"`
}

MapStatisticItem struct for MapStatisticItem

func NewMapStatisticItem

func NewMapStatisticItem() *MapStatisticItem

NewMapStatisticItem instantiates a new MapStatisticItem 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 NewMapStatisticItemWithDefaults

func NewMapStatisticItemWithDefaults() *MapStatisticItem

NewMapStatisticItemWithDefaults instantiates a new MapStatisticItem 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 (*MapStatisticItem) GetName

func (o *MapStatisticItem) GetName() string

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

func (*MapStatisticItem) GetNameOk

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

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

func (*MapStatisticItem) GetType

func (o *MapStatisticItem) GetType() string

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

func (*MapStatisticItem) GetTypeOk

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

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

func (*MapStatisticItem) GetValue

func (o *MapStatisticItem) GetValue() []SimpleStatisticItem

GetValue returns the Value field value if set, zero value otherwise.

func (*MapStatisticItem) GetValueOk

func (o *MapStatisticItem) GetValueOk() ([]SimpleStatisticItem, bool)

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

func (*MapStatisticItem) HasName

func (o *MapStatisticItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*MapStatisticItem) HasType

func (o *MapStatisticItem) HasType() bool

HasType returns a boolean if a field has been set.

func (*MapStatisticItem) HasValue

func (o *MapStatisticItem) HasValue() bool

HasValue returns a boolean if a field has been set.

func (MapStatisticItem) MarshalJSON

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

func (*MapStatisticItem) SetName

func (o *MapStatisticItem) SetName(v string)

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

func (*MapStatisticItem) SetType

func (o *MapStatisticItem) SetType(v string)

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

func (*MapStatisticItem) SetValue

func (o *MapStatisticItem) SetValue(v []SimpleStatisticItem)

SetValue gets a reference to the given []SimpleStatisticItem and assigns it to the Value field.

func (MapStatisticItem) ToMap

func (o MapStatisticItem) ToMap() (map[string]interface{}, error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type Metadata

type Metadata struct {
	// Name of the metadata
	Kind *string `json:"kind,omitempty"`
	// Array with all values for this metadata kind.
	Metadata []string `json:"metadata,omitempty"`
}

Metadata Represents zone metadata

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

func (o *Metadata) GetKind() string

GetKind returns the Kind field value if set, zero value otherwise.

func (*Metadata) GetKindOk

func (o *Metadata) GetKindOk() (*string, bool)

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

func (*Metadata) GetMetadata

func (o *Metadata) GetMetadata() []string

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*Metadata) GetMetadataOk

func (o *Metadata) GetMetadataOk() ([]string, bool)

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

func (*Metadata) HasKind

func (o *Metadata) HasKind() bool

HasKind returns a boolean if a field has been set.

func (*Metadata) HasMetadata

func (o *Metadata) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (Metadata) MarshalJSON

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

func (*Metadata) SetKind

func (o *Metadata) SetKind(v string)

SetKind gets a reference to the given string and assigns it to the Kind field.

func (*Metadata) SetMetadata

func (o *Metadata) SetMetadata(v []string)

SetMetadata gets a reference to the given []string and assigns it to the Metadata field.

func (Metadata) ToMap

func (o Metadata) ToMap() (map[string]interface{}, error)

type NullableAutoprimary

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

func NewNullableAutoprimary

func NewNullableAutoprimary(val *Autoprimary) *NullableAutoprimary

func (NullableAutoprimary) Get

func (NullableAutoprimary) IsSet

func (v NullableAutoprimary) IsSet() bool

func (NullableAutoprimary) MarshalJSON

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

func (*NullableAutoprimary) Set

func (v *NullableAutoprimary) Set(val *Autoprimary)

func (*NullableAutoprimary) UnmarshalJSON

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

func (*NullableAutoprimary) Unset

func (v *NullableAutoprimary) Unset()

type NullableBool

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

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

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

func (*NullableBool) Set

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

func (*NullableBool) UnmarshalJSON

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

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCacheFlushResult

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

func NewNullableCacheFlushResult

func NewNullableCacheFlushResult(val *CacheFlushResult) *NullableCacheFlushResult

func (NullableCacheFlushResult) Get

func (NullableCacheFlushResult) IsSet

func (v NullableCacheFlushResult) IsSet() bool

func (NullableCacheFlushResult) MarshalJSON

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

func (*NullableCacheFlushResult) Set

func (*NullableCacheFlushResult) UnmarshalJSON

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

func (*NullableCacheFlushResult) Unset

func (v *NullableCacheFlushResult) Unset()

type NullableComment

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

func NewNullableComment

func NewNullableComment(val *Comment) *NullableComment

func (NullableComment) Get

func (v NullableComment) Get() *Comment

func (NullableComment) IsSet

func (v NullableComment) IsSet() bool

func (NullableComment) MarshalJSON

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

func (*NullableComment) Set

func (v *NullableComment) Set(val *Comment)

func (*NullableComment) UnmarshalJSON

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

func (*NullableComment) Unset

func (v *NullableComment) Unset()

type NullableConfigSetting

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

func NewNullableConfigSetting

func NewNullableConfigSetting(val *ConfigSetting) *NullableConfigSetting

func (NullableConfigSetting) Get

func (NullableConfigSetting) IsSet

func (v NullableConfigSetting) IsSet() bool

func (NullableConfigSetting) MarshalJSON

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

func (*NullableConfigSetting) Set

func (v *NullableConfigSetting) Set(val *ConfigSetting)

func (*NullableConfigSetting) UnmarshalJSON

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

func (*NullableConfigSetting) Unset

func (v *NullableConfigSetting) Unset()

type NullableCryptokey

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

func NewNullableCryptokey

func NewNullableCryptokey(val *Cryptokey) *NullableCryptokey

func (NullableCryptokey) Get

func (v NullableCryptokey) Get() *Cryptokey

func (NullableCryptokey) IsSet

func (v NullableCryptokey) IsSet() bool

func (NullableCryptokey) MarshalJSON

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

func (*NullableCryptokey) Set

func (v *NullableCryptokey) Set(val *Cryptokey)

func (*NullableCryptokey) UnmarshalJSON

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

func (*NullableCryptokey) Unset

func (v *NullableCryptokey) Unset()

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 NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

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

func (*NullableFloat32) Set

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

func (*NullableFloat32) UnmarshalJSON

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

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

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

func (*NullableFloat64) Set

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

func (*NullableFloat64) UnmarshalJSON

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

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGetStats200ResponseInner

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

func (NullableGetStats200ResponseInner) Get

func (NullableGetStats200ResponseInner) IsSet

func (NullableGetStats200ResponseInner) MarshalJSON

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

func (*NullableGetStats200ResponseInner) Set

func (*NullableGetStats200ResponseInner) UnmarshalJSON

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

func (*NullableGetStats200ResponseInner) Unset

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

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

func (*NullableInt) UnmarshalJSON

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

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

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

func (*NullableInt32) UnmarshalJSON

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

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

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

func (*NullableInt64) UnmarshalJSON

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

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableMapStatisticItem

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

func NewNullableMapStatisticItem

func NewNullableMapStatisticItem(val *MapStatisticItem) *NullableMapStatisticItem

func (NullableMapStatisticItem) Get

func (NullableMapStatisticItem) IsSet

func (v NullableMapStatisticItem) IsSet() bool

func (NullableMapStatisticItem) MarshalJSON

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

func (*NullableMapStatisticItem) Set

func (*NullableMapStatisticItem) UnmarshalJSON

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

func (*NullableMapStatisticItem) Unset

func (v *NullableMapStatisticItem) 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 NullableRRSet

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

func NewNullableRRSet

func NewNullableRRSet(val *RRSet) *NullableRRSet

func (NullableRRSet) Get

func (v NullableRRSet) Get() *RRSet

func (NullableRRSet) IsSet

func (v NullableRRSet) IsSet() bool

func (NullableRRSet) MarshalJSON

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

func (*NullableRRSet) Set

func (v *NullableRRSet) Set(val *RRSet)

func (*NullableRRSet) UnmarshalJSON

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

func (*NullableRRSet) Unset

func (v *NullableRRSet) 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 NullableRingStatisticItem

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

func NewNullableRingStatisticItem

func NewNullableRingStatisticItem(val *RingStatisticItem) *NullableRingStatisticItem

func (NullableRingStatisticItem) Get

func (NullableRingStatisticItem) IsSet

func (v NullableRingStatisticItem) IsSet() bool

func (NullableRingStatisticItem) MarshalJSON

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

func (*NullableRingStatisticItem) Set

func (*NullableRingStatisticItem) UnmarshalJSON

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

func (*NullableRingStatisticItem) Unset

func (v *NullableRingStatisticItem) Unset()

type NullableSearchResult

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

func NewNullableSearchResult

func NewNullableSearchResult(val *SearchResult) *NullableSearchResult

func (NullableSearchResult) Get

func (NullableSearchResult) IsSet

func (v NullableSearchResult) IsSet() bool

func (NullableSearchResult) MarshalJSON

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

func (*NullableSearchResult) Set

func (v *NullableSearchResult) Set(val *SearchResult)

func (*NullableSearchResult) UnmarshalJSON

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

func (*NullableSearchResult) Unset

func (v *NullableSearchResult) Unset()

type NullableSearchResultComment

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

func NewNullableSearchResultComment

func NewNullableSearchResultComment(val *SearchResultComment) *NullableSearchResultComment

func (NullableSearchResultComment) Get

func (NullableSearchResultComment) IsSet

func (NullableSearchResultComment) MarshalJSON

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

func (*NullableSearchResultComment) Set

func (*NullableSearchResultComment) UnmarshalJSON

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

func (*NullableSearchResultComment) Unset

func (v *NullableSearchResultComment) Unset()

type NullableSearchResultRecord

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

func NewNullableSearchResultRecord

func NewNullableSearchResultRecord(val *SearchResultRecord) *NullableSearchResultRecord

func (NullableSearchResultRecord) Get

func (NullableSearchResultRecord) IsSet

func (v NullableSearchResultRecord) IsSet() bool

func (NullableSearchResultRecord) MarshalJSON

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

func (*NullableSearchResultRecord) Set

func (*NullableSearchResultRecord) UnmarshalJSON

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

func (*NullableSearchResultRecord) Unset

func (v *NullableSearchResultRecord) Unset()

type NullableSearchResultZone

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

func NewNullableSearchResultZone

func NewNullableSearchResultZone(val *SearchResultZone) *NullableSearchResultZone

func (NullableSearchResultZone) Get

func (NullableSearchResultZone) IsSet

func (v NullableSearchResultZone) IsSet() bool

func (NullableSearchResultZone) MarshalJSON

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

func (*NullableSearchResultZone) Set

func (*NullableSearchResultZone) UnmarshalJSON

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

func (*NullableSearchResultZone) Unset

func (v *NullableSearchResultZone) Unset()

type NullableServer

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

func NewNullableServer

func NewNullableServer(val *Server) *NullableServer

func (NullableServer) Get

func (v NullableServer) Get() *Server

func (NullableServer) IsSet

func (v NullableServer) IsSet() bool

func (NullableServer) MarshalJSON

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

func (*NullableServer) Set

func (v *NullableServer) Set(val *Server)

func (*NullableServer) UnmarshalJSON

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

func (*NullableServer) Unset

func (v *NullableServer) Unset()

type NullableSimpleStatisticItem

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

func NewNullableSimpleStatisticItem

func NewNullableSimpleStatisticItem(val *SimpleStatisticItem) *NullableSimpleStatisticItem

func (NullableSimpleStatisticItem) Get

func (NullableSimpleStatisticItem) IsSet

func (NullableSimpleStatisticItem) MarshalJSON

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

func (*NullableSimpleStatisticItem) Set

func (*NullableSimpleStatisticItem) UnmarshalJSON

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

func (*NullableSimpleStatisticItem) Unset

func (v *NullableSimpleStatisticItem) Unset()

type NullableStatisticItem

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

func NewNullableStatisticItem

func NewNullableStatisticItem(val *StatisticItem) *NullableStatisticItem

func (NullableStatisticItem) Get

func (NullableStatisticItem) IsSet

func (v NullableStatisticItem) IsSet() bool

func (NullableStatisticItem) MarshalJSON

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

func (*NullableStatisticItem) Set

func (v *NullableStatisticItem) Set(val *StatisticItem)

func (*NullableStatisticItem) UnmarshalJSON

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

func (*NullableStatisticItem) Unset

func (v *NullableStatisticItem) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

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

func (*NullableString) UnmarshalJSON

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

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTSIGKey

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

func NewNullableTSIGKey

func NewNullableTSIGKey(val *TSIGKey) *NullableTSIGKey

func (NullableTSIGKey) Get

func (v NullableTSIGKey) Get() *TSIGKey

func (NullableTSIGKey) IsSet

func (v NullableTSIGKey) IsSet() bool

func (NullableTSIGKey) MarshalJSON

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

func (*NullableTSIGKey) Set

func (v *NullableTSIGKey) Set(val *TSIGKey)

func (*NullableTSIGKey) UnmarshalJSON

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

func (*NullableTSIGKey) Unset

func (v *NullableTSIGKey) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

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

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

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

func (*NullableTime) UnmarshalJSON

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

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableZone

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

func NewNullableZone

func NewNullableZone(val *Zone) *NullableZone

func (NullableZone) Get

func (v NullableZone) Get() *Zone

func (NullableZone) IsSet

func (v NullableZone) IsSet() bool

func (NullableZone) MarshalJSON

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

func (*NullableZone) Set

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

func (*NullableZone) UnmarshalJSON

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

func (*NullableZone) Unset

func (v *NullableZone) Unset()

type RRSet

type RRSet struct {
	// Name for record set (e.g. “www.powerdns.com.”)
	Name string `json:"name"`
	// Type of this record (e.g. “A”, “PTR”, “MX”)
	Type string `json:"type"`
	// DNS TTL of the records, in seconds. MUST NOT be included when changetype is set to “DELETE”.
	Ttl int32 `json:"ttl"`
	// MUST be added when updating the RRSet. Must be REPLACE or DELETE. With DELETE, all existing RRs matching name and type will be deleted, including all comments. With REPLACE: when records is present, all existing RRs matching name and type will be deleted, and then new records given in records will be created. If no records are left, any existing comments will be deleted as well. When comments is present, all existing comments for the RRs matching name and type will be deleted, and then new comments given in comments will be created.
	Changetype string `json:"changetype"`
	// All records in this RRSet. When updating Records, this is the list of new records (replacing the old ones). Must be empty when changetype is set to DELETE. An empty list results in deletion of all records (and comments).
	Records []Record `json:"records"`
	// List of Comment. Must be empty when changetype is set to DELETE. An empty list results in deletion of all comments. modified_at is optional and defaults to the current server time.
	Comments []Comment `json:"comments,omitempty"`
}

RRSet This represents a Resource Record Set (all records with the same name and type).

func NewRRSet

func NewRRSet(name string, type_ string, ttl int32, changetype string, records []Record) *RRSet

NewRRSet instantiates a new RRSet 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 NewRRSetWithDefaults

func NewRRSetWithDefaults() *RRSet

NewRRSetWithDefaults instantiates a new RRSet 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 (*RRSet) GetChangetype

func (o *RRSet) GetChangetype() string

GetChangetype returns the Changetype field value

func (*RRSet) GetChangetypeOk

func (o *RRSet) GetChangetypeOk() (*string, bool)

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

func (*RRSet) GetComments

func (o *RRSet) GetComments() []Comment

GetComments returns the Comments field value if set, zero value otherwise.

func (*RRSet) GetCommentsOk

func (o *RRSet) GetCommentsOk() ([]Comment, bool)

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

func (*RRSet) GetName

func (o *RRSet) GetName() string

GetName returns the Name field value

func (*RRSet) GetNameOk

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

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

func (*RRSet) GetRecords

func (o *RRSet) GetRecords() []Record

GetRecords returns the Records field value

func (*RRSet) GetRecordsOk

func (o *RRSet) GetRecordsOk() ([]Record, bool)

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

func (*RRSet) GetTtl

func (o *RRSet) GetTtl() int32

GetTtl returns the Ttl field value

func (*RRSet) GetTtlOk

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

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

func (*RRSet) GetType

func (o *RRSet) GetType() string

GetType returns the Type field value

func (*RRSet) GetTypeOk

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

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

func (*RRSet) HasComments

func (o *RRSet) HasComments() bool

HasComments returns a boolean if a field has been set.

func (RRSet) MarshalJSON

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

func (*RRSet) SetChangetype

func (o *RRSet) SetChangetype(v string)

SetChangetype sets field value

func (*RRSet) SetComments

func (o *RRSet) SetComments(v []Comment)

SetComments gets a reference to the given []Comment and assigns it to the Comments field.

func (*RRSet) SetName

func (o *RRSet) SetName(v string)

SetName sets field value

func (*RRSet) SetRecords

func (o *RRSet) SetRecords(v []Record)

SetRecords sets field value

func (*RRSet) SetTtl

func (o *RRSet) SetTtl(v int32)

SetTtl sets field value

func (*RRSet) SetType

func (o *RRSet) SetType(v string)

SetType sets field value

func (RRSet) ToMap

func (o RRSet) ToMap() (map[string]interface{}, error)

func (*RRSet) UnmarshalJSON

func (o *RRSet) UnmarshalJSON(data []byte) (err error)

type Record

type Record struct {
	// The content of this record
	Content string `json:"content"`
	// Whether or not this record is disabled. When unset, the record is not disabled
	Disabled *bool `json:"disabled,omitempty"`
}

Record The RREntry object represents a single record.

func NewRecord

func NewRecord(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

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.

func (*Record) GetDisabled

func (o *Record) GetDisabled() bool

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

func (*Record) GetDisabledOk

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

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

func (*Record) HasDisabled

func (o *Record) HasDisabled() bool

HasDisabled 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) SetDisabled

func (o *Record) SetDisabled(v bool)

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

func (Record) ToMap

func (o Record) ToMap() (map[string]interface{}, error)

func (*Record) UnmarshalJSON

func (o *Record) UnmarshalJSON(data []byte) (err error)

type RingStatisticItem

type RingStatisticItem struct {
	// Item name
	Name *string `json:"name,omitempty"`
	// Set to \"RingStatisticItem\"
	Type *string `json:"type,omitempty"`
	// Ring size
	Size *int32 `json:"size,omitempty"`
	// Named values
	Value []SimpleStatisticItem `json:"value,omitempty"`
}

RingStatisticItem struct for RingStatisticItem

func NewRingStatisticItem

func NewRingStatisticItem() *RingStatisticItem

NewRingStatisticItem instantiates a new RingStatisticItem 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 NewRingStatisticItemWithDefaults

func NewRingStatisticItemWithDefaults() *RingStatisticItem

NewRingStatisticItemWithDefaults instantiates a new RingStatisticItem 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 (*RingStatisticItem) GetName

func (o *RingStatisticItem) GetName() string

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

func (*RingStatisticItem) GetNameOk

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

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

func (*RingStatisticItem) GetSize

func (o *RingStatisticItem) GetSize() int32

GetSize returns the Size field value if set, zero value otherwise.

func (*RingStatisticItem) GetSizeOk

func (o *RingStatisticItem) GetSizeOk() (*int32, bool)

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

func (*RingStatisticItem) GetType

func (o *RingStatisticItem) GetType() string

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

func (*RingStatisticItem) GetTypeOk

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

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

func (*RingStatisticItem) GetValue

func (o *RingStatisticItem) GetValue() []SimpleStatisticItem

GetValue returns the Value field value if set, zero value otherwise.

func (*RingStatisticItem) GetValueOk

func (o *RingStatisticItem) GetValueOk() ([]SimpleStatisticItem, bool)

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

func (*RingStatisticItem) HasName

func (o *RingStatisticItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*RingStatisticItem) HasSize

func (o *RingStatisticItem) HasSize() bool

HasSize returns a boolean if a field has been set.

func (*RingStatisticItem) HasType

func (o *RingStatisticItem) HasType() bool

HasType returns a boolean if a field has been set.

func (*RingStatisticItem) HasValue

func (o *RingStatisticItem) HasValue() bool

HasValue returns a boolean if a field has been set.

func (RingStatisticItem) MarshalJSON

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

func (*RingStatisticItem) SetName

func (o *RingStatisticItem) SetName(v string)

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

func (*RingStatisticItem) SetSize

func (o *RingStatisticItem) SetSize(v int32)

SetSize gets a reference to the given int32 and assigns it to the Size field.

func (*RingStatisticItem) SetType

func (o *RingStatisticItem) SetType(v string)

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

func (*RingStatisticItem) SetValue

func (o *RingStatisticItem) SetValue(v []SimpleStatisticItem)

SetValue gets a reference to the given []SimpleStatisticItem and assigns it to the Value field.

func (RingStatisticItem) ToMap

func (o RingStatisticItem) ToMap() (map[string]interface{}, error)

type SearchAPIService

type SearchAPIService service

SearchAPIService SearchAPI service

func (*SearchAPIService) SearchData

func (a *SearchAPIService) SearchData(ctx context.Context, serverId string) ApiSearchDataRequest

SearchData Search the data inside PowerDNS

Search the data inside PowerDNS for search_term and return at most max_results. This includes zones, records and comments. The * character can be used in search_term as a wildcard character and the ? character can be used as a wildcard for a single character.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@return ApiSearchDataRequest

func (*SearchAPIService) SearchDataExecute

func (a *SearchAPIService) SearchDataExecute(r ApiSearchDataRequest) ([]SearchResult, *http.Response, error)

Execute executes the request

@return []SearchResult

type SearchResult

type SearchResult struct {
	Content  *string `json:"content,omitempty"`
	Disabled *bool   `json:"disabled,omitempty"`
	Name     *string `json:"name,omitempty"`
	// set to one of \"record, zone, comment\"
	ObjectType *string `json:"object_type,omitempty"`
	ZoneId     *string `json:"zone_id,omitempty"`
	Zone       *string `json:"zone,omitempty"`
	Type       *string `json:"type,omitempty"`
	Ttl        *int32  `json:"ttl,omitempty"`
}

SearchResult struct for SearchResult

func NewSearchResult

func NewSearchResult() *SearchResult

NewSearchResult instantiates a new SearchResult 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 NewSearchResultWithDefaults

func NewSearchResultWithDefaults() *SearchResult

NewSearchResultWithDefaults instantiates a new SearchResult 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 (*SearchResult) GetContent

func (o *SearchResult) GetContent() string

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

func (*SearchResult) GetContentOk

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

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

func (*SearchResult) GetDisabled

func (o *SearchResult) GetDisabled() bool

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

func (*SearchResult) GetDisabledOk

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

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

func (*SearchResult) GetName

func (o *SearchResult) GetName() string

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

func (*SearchResult) GetNameOk

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

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

func (*SearchResult) GetObjectType

func (o *SearchResult) GetObjectType() string

GetObjectType returns the ObjectType field value if set, zero value otherwise.

func (*SearchResult) GetObjectTypeOk

func (o *SearchResult) GetObjectTypeOk() (*string, bool)

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

func (*SearchResult) GetTtl

func (o *SearchResult) GetTtl() int32

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

func (*SearchResult) GetTtlOk

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

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

func (*SearchResult) GetType

func (o *SearchResult) GetType() string

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

func (*SearchResult) GetTypeOk

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

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

func (*SearchResult) GetZone

func (o *SearchResult) GetZone() string

GetZone returns the Zone field value if set, zero value otherwise.

func (*SearchResult) GetZoneId

func (o *SearchResult) GetZoneId() string

GetZoneId returns the ZoneId field value if set, zero value otherwise.

func (*SearchResult) GetZoneIdOk

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

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

func (*SearchResult) GetZoneOk

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

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

func (*SearchResult) HasContent

func (o *SearchResult) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*SearchResult) HasDisabled

func (o *SearchResult) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*SearchResult) HasName

func (o *SearchResult) HasName() bool

HasName returns a boolean if a field has been set.

func (*SearchResult) HasObjectType

func (o *SearchResult) HasObjectType() bool

HasObjectType returns a boolean if a field has been set.

func (*SearchResult) HasTtl

func (o *SearchResult) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (*SearchResult) HasType

func (o *SearchResult) HasType() bool

HasType returns a boolean if a field has been set.

func (*SearchResult) HasZone

func (o *SearchResult) HasZone() bool

HasZone returns a boolean if a field has been set.

func (*SearchResult) HasZoneId

func (o *SearchResult) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (SearchResult) MarshalJSON

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

func (*SearchResult) SetContent

func (o *SearchResult) SetContent(v string)

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

func (*SearchResult) SetDisabled

func (o *SearchResult) SetDisabled(v bool)

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

func (*SearchResult) SetName

func (o *SearchResult) SetName(v string)

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

func (*SearchResult) SetObjectType

func (o *SearchResult) SetObjectType(v string)

SetObjectType gets a reference to the given string and assigns it to the ObjectType field.

func (*SearchResult) SetTtl

func (o *SearchResult) SetTtl(v int32)

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

func (*SearchResult) SetType

func (o *SearchResult) SetType(v string)

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

func (*SearchResult) SetZone

func (o *SearchResult) SetZone(v string)

SetZone gets a reference to the given string and assigns it to the Zone field.

func (*SearchResult) SetZoneId

func (o *SearchResult) SetZoneId(v string)

SetZoneId gets a reference to the given string and assigns it to the ZoneId field.

func (SearchResult) ToMap

func (o SearchResult) ToMap() (map[string]interface{}, error)

type SearchResultComment

type SearchResultComment struct {
	Content *string `json:"content,omitempty"`
	Name    *string `json:"name,omitempty"`
	// set to \"comment\"
	ObjectType *string `json:"object_type,omitempty"`
	ZoneId     *string `json:"zone_id,omitempty"`
	Zone       *string `json:"zone,omitempty"`
}

SearchResultComment struct for SearchResultComment

func NewSearchResultComment

func NewSearchResultComment() *SearchResultComment

NewSearchResultComment instantiates a new SearchResultComment 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 NewSearchResultCommentWithDefaults

func NewSearchResultCommentWithDefaults() *SearchResultComment

NewSearchResultCommentWithDefaults instantiates a new SearchResultComment 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 (*SearchResultComment) GetContent

func (o *SearchResultComment) GetContent() string

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

func (*SearchResultComment) GetContentOk

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

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

func (*SearchResultComment) GetName

func (o *SearchResultComment) GetName() string

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

func (*SearchResultComment) GetNameOk

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

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

func (*SearchResultComment) GetObjectType

func (o *SearchResultComment) GetObjectType() string

GetObjectType returns the ObjectType field value if set, zero value otherwise.

func (*SearchResultComment) GetObjectTypeOk

func (o *SearchResultComment) GetObjectTypeOk() (*string, bool)

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

func (*SearchResultComment) GetZone

func (o *SearchResultComment) GetZone() string

GetZone returns the Zone field value if set, zero value otherwise.

func (*SearchResultComment) GetZoneId

func (o *SearchResultComment) GetZoneId() string

GetZoneId returns the ZoneId field value if set, zero value otherwise.

func (*SearchResultComment) GetZoneIdOk

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

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

func (*SearchResultComment) GetZoneOk

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

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

func (*SearchResultComment) HasContent

func (o *SearchResultComment) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*SearchResultComment) HasName

func (o *SearchResultComment) HasName() bool

HasName returns a boolean if a field has been set.

func (*SearchResultComment) HasObjectType

func (o *SearchResultComment) HasObjectType() bool

HasObjectType returns a boolean if a field has been set.

func (*SearchResultComment) HasZone

func (o *SearchResultComment) HasZone() bool

HasZone returns a boolean if a field has been set.

func (*SearchResultComment) HasZoneId

func (o *SearchResultComment) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (SearchResultComment) MarshalJSON

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

func (*SearchResultComment) SetContent

func (o *SearchResultComment) SetContent(v string)

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

func (*SearchResultComment) SetName

func (o *SearchResultComment) SetName(v string)

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

func (*SearchResultComment) SetObjectType

func (o *SearchResultComment) SetObjectType(v string)

SetObjectType gets a reference to the given string and assigns it to the ObjectType field.

func (*SearchResultComment) SetZone

func (o *SearchResultComment) SetZone(v string)

SetZone gets a reference to the given string and assigns it to the Zone field.

func (*SearchResultComment) SetZoneId

func (o *SearchResultComment) SetZoneId(v string)

SetZoneId gets a reference to the given string and assigns it to the ZoneId field.

func (SearchResultComment) ToMap

func (o SearchResultComment) ToMap() (map[string]interface{}, error)

type SearchResultRecord

type SearchResultRecord struct {
	Content  *string `json:"content,omitempty"`
	Disabled *bool   `json:"disabled,omitempty"`
	Name     *string `json:"name,omitempty"`
	// set to \"record\"
	ObjectType *string `json:"object_type,omitempty"`
	ZoneId     *string `json:"zone_id,omitempty"`
	Zone       *string `json:"zone,omitempty"`
	Type       *string `json:"type,omitempty"`
	Ttl        *int32  `json:"ttl,omitempty"`
}

SearchResultRecord struct for SearchResultRecord

func NewSearchResultRecord

func NewSearchResultRecord() *SearchResultRecord

NewSearchResultRecord instantiates a new SearchResultRecord 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 NewSearchResultRecordWithDefaults

func NewSearchResultRecordWithDefaults() *SearchResultRecord

NewSearchResultRecordWithDefaults instantiates a new SearchResultRecord 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 (*SearchResultRecord) GetContent

func (o *SearchResultRecord) GetContent() string

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

func (*SearchResultRecord) GetContentOk

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

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

func (*SearchResultRecord) GetDisabled

func (o *SearchResultRecord) GetDisabled() bool

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

func (*SearchResultRecord) GetDisabledOk

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

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

func (*SearchResultRecord) GetName

func (o *SearchResultRecord) GetName() string

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

func (*SearchResultRecord) GetNameOk

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

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

func (*SearchResultRecord) GetObjectType

func (o *SearchResultRecord) GetObjectType() string

GetObjectType returns the ObjectType field value if set, zero value otherwise.

func (*SearchResultRecord) GetObjectTypeOk

func (o *SearchResultRecord) GetObjectTypeOk() (*string, bool)

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

func (*SearchResultRecord) GetTtl

func (o *SearchResultRecord) GetTtl() int32

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

func (*SearchResultRecord) GetTtlOk

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

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

func (*SearchResultRecord) GetType

func (o *SearchResultRecord) GetType() string

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

func (*SearchResultRecord) GetTypeOk

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

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

func (*SearchResultRecord) GetZone

func (o *SearchResultRecord) GetZone() string

GetZone returns the Zone field value if set, zero value otherwise.

func (*SearchResultRecord) GetZoneId

func (o *SearchResultRecord) GetZoneId() string

GetZoneId returns the ZoneId field value if set, zero value otherwise.

func (*SearchResultRecord) GetZoneIdOk

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

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

func (*SearchResultRecord) GetZoneOk

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

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

func (*SearchResultRecord) HasContent

func (o *SearchResultRecord) HasContent() bool

HasContent returns a boolean if a field has been set.

func (*SearchResultRecord) HasDisabled

func (o *SearchResultRecord) HasDisabled() bool

HasDisabled returns a boolean if a field has been set.

func (*SearchResultRecord) HasName

func (o *SearchResultRecord) HasName() bool

HasName returns a boolean if a field has been set.

func (*SearchResultRecord) HasObjectType

func (o *SearchResultRecord) HasObjectType() bool

HasObjectType returns a boolean if a field has been set.

func (*SearchResultRecord) HasTtl

func (o *SearchResultRecord) HasTtl() bool

HasTtl returns a boolean if a field has been set.

func (*SearchResultRecord) HasType

func (o *SearchResultRecord) HasType() bool

HasType returns a boolean if a field has been set.

func (*SearchResultRecord) HasZone

func (o *SearchResultRecord) HasZone() bool

HasZone returns a boolean if a field has been set.

func (*SearchResultRecord) HasZoneId

func (o *SearchResultRecord) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (SearchResultRecord) MarshalJSON

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

func (*SearchResultRecord) SetContent

func (o *SearchResultRecord) SetContent(v string)

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

func (*SearchResultRecord) SetDisabled

func (o *SearchResultRecord) SetDisabled(v bool)

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

func (*SearchResultRecord) SetName

func (o *SearchResultRecord) SetName(v string)

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

func (*SearchResultRecord) SetObjectType

func (o *SearchResultRecord) SetObjectType(v string)

SetObjectType gets a reference to the given string and assigns it to the ObjectType field.

func (*SearchResultRecord) SetTtl

func (o *SearchResultRecord) SetTtl(v int32)

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

func (*SearchResultRecord) SetType

func (o *SearchResultRecord) SetType(v string)

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

func (*SearchResultRecord) SetZone

func (o *SearchResultRecord) SetZone(v string)

SetZone gets a reference to the given string and assigns it to the Zone field.

func (*SearchResultRecord) SetZoneId

func (o *SearchResultRecord) SetZoneId(v string)

SetZoneId gets a reference to the given string and assigns it to the ZoneId field.

func (SearchResultRecord) ToMap

func (o SearchResultRecord) ToMap() (map[string]interface{}, error)

type SearchResultZone

type SearchResultZone struct {
	Name *string `json:"name,omitempty"`
	// set to \"zone\"
	ObjectType *string `json:"object_type,omitempty"`
	ZoneId     *string `json:"zone_id,omitempty"`
}

SearchResultZone struct for SearchResultZone

func NewSearchResultZone

func NewSearchResultZone() *SearchResultZone

NewSearchResultZone instantiates a new SearchResultZone 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 NewSearchResultZoneWithDefaults

func NewSearchResultZoneWithDefaults() *SearchResultZone

NewSearchResultZoneWithDefaults instantiates a new SearchResultZone 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 (*SearchResultZone) GetName

func (o *SearchResultZone) GetName() string

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

func (*SearchResultZone) GetNameOk

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

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

func (*SearchResultZone) GetObjectType

func (o *SearchResultZone) GetObjectType() string

GetObjectType returns the ObjectType field value if set, zero value otherwise.

func (*SearchResultZone) GetObjectTypeOk

func (o *SearchResultZone) GetObjectTypeOk() (*string, bool)

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

func (*SearchResultZone) GetZoneId

func (o *SearchResultZone) GetZoneId() string

GetZoneId returns the ZoneId field value if set, zero value otherwise.

func (*SearchResultZone) GetZoneIdOk

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

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

func (*SearchResultZone) HasName

func (o *SearchResultZone) HasName() bool

HasName returns a boolean if a field has been set.

func (*SearchResultZone) HasObjectType

func (o *SearchResultZone) HasObjectType() bool

HasObjectType returns a boolean if a field has been set.

func (*SearchResultZone) HasZoneId

func (o *SearchResultZone) HasZoneId() bool

HasZoneId returns a boolean if a field has been set.

func (SearchResultZone) MarshalJSON

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

func (*SearchResultZone) SetName

func (o *SearchResultZone) SetName(v string)

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

func (*SearchResultZone) SetObjectType

func (o *SearchResultZone) SetObjectType(v string)

SetObjectType gets a reference to the given string and assigns it to the ObjectType field.

func (*SearchResultZone) SetZoneId

func (o *SearchResultZone) SetZoneId(v string)

SetZoneId gets a reference to the given string and assigns it to the ZoneId field.

func (SearchResultZone) ToMap

func (o SearchResultZone) ToMap() (map[string]interface{}, error)

type Server

type Server struct {
	// Set to “Server”
	Type *string `json:"type,omitempty"`
	// The id of the server, “localhost”
	Id *string `json:"id,omitempty"`
	// “recursor” for the PowerDNS Recursor and “authoritative” for the Authoritative Server
	DaemonType *string `json:"daemon_type,omitempty"`
	// The version of the server software
	Version *string `json:"version,omitempty"`
	// The API endpoint for this server
	Url *string `json:"url,omitempty"`
	// The API endpoint for this server’s configuration
	ConfigUrl *string `json:"config_url,omitempty"`
	// The API endpoint for this server’s zones
	ZonesUrl *string `json:"zones_url,omitempty"`
}

Server struct for Server

func NewServer

func NewServer() *Server

NewServer instantiates a new Server 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 NewServerWithDefaults

func NewServerWithDefaults() *Server

NewServerWithDefaults instantiates a new Server 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 (*Server) GetConfigUrl

func (o *Server) GetConfigUrl() string

GetConfigUrl returns the ConfigUrl field value if set, zero value otherwise.

func (*Server) GetConfigUrlOk

func (o *Server) GetConfigUrlOk() (*string, bool)

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

func (*Server) GetDaemonType

func (o *Server) GetDaemonType() string

GetDaemonType returns the DaemonType field value if set, zero value otherwise.

func (*Server) GetDaemonTypeOk

func (o *Server) GetDaemonTypeOk() (*string, bool)

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

func (*Server) GetId

func (o *Server) GetId() string

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

func (*Server) GetIdOk

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

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

func (*Server) GetType

func (o *Server) GetType() string

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

func (*Server) GetTypeOk

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

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

func (*Server) GetUrl

func (o *Server) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (*Server) GetUrlOk

func (o *Server) GetUrlOk() (*string, bool)

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

func (*Server) GetVersion

func (o *Server) GetVersion() string

GetVersion returns the Version field value if set, zero value otherwise.

func (*Server) GetVersionOk

func (o *Server) GetVersionOk() (*string, bool)

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

func (*Server) GetZonesUrl

func (o *Server) GetZonesUrl() string

GetZonesUrl returns the ZonesUrl field value if set, zero value otherwise.

func (*Server) GetZonesUrlOk

func (o *Server) GetZonesUrlOk() (*string, bool)

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

func (*Server) HasConfigUrl

func (o *Server) HasConfigUrl() bool

HasConfigUrl returns a boolean if a field has been set.

func (*Server) HasDaemonType

func (o *Server) HasDaemonType() bool

HasDaemonType returns a boolean if a field has been set.

func (*Server) HasId

func (o *Server) HasId() bool

HasId returns a boolean if a field has been set.

func (*Server) HasType

func (o *Server) HasType() bool

HasType returns a boolean if a field has been set.

func (*Server) HasUrl

func (o *Server) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (*Server) HasVersion

func (o *Server) HasVersion() bool

HasVersion returns a boolean if a field has been set.

func (*Server) HasZonesUrl

func (o *Server) HasZonesUrl() bool

HasZonesUrl returns a boolean if a field has been set.

func (Server) MarshalJSON

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

func (*Server) SetConfigUrl

func (o *Server) SetConfigUrl(v string)

SetConfigUrl gets a reference to the given string and assigns it to the ConfigUrl field.

func (*Server) SetDaemonType

func (o *Server) SetDaemonType(v string)

SetDaemonType gets a reference to the given string and assigns it to the DaemonType field.

func (*Server) SetId

func (o *Server) SetId(v string)

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

func (*Server) SetType

func (o *Server) SetType(v string)

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

func (*Server) SetUrl

func (o *Server) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

func (*Server) SetVersion

func (o *Server) SetVersion(v string)

SetVersion gets a reference to the given string and assigns it to the Version field.

func (*Server) SetZonesUrl

func (o *Server) SetZonesUrl(v string)

SetZonesUrl gets a reference to the given string and assigns it to the ZonesUrl field.

func (Server) ToMap

func (o Server) ToMap() (map[string]interface{}, error)

type ServerConfiguration

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

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

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

URL formats template on a index using given variables

type ServerVariable

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

ServerVariable stores the information about a server variable

type ServersAPIService

type ServersAPIService service

ServersAPIService ServersAPI service

func (*ServersAPIService) CacheFlushByName

func (a *ServersAPIService) CacheFlushByName(ctx context.Context, serverId string) ApiCacheFlushByNameRequest

CacheFlushByName Flush a cache-entry by name

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@return ApiCacheFlushByNameRequest

func (*ServersAPIService) CacheFlushByNameExecute

Execute executes the request

@return CacheFlushResult

func (*ServersAPIService) ListServer

func (a *ServersAPIService) ListServer(ctx context.Context, serverId string) ApiListServerRequest

ListServer List a server

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@return ApiListServerRequest

func (*ServersAPIService) ListServerExecute

func (a *ServersAPIService) ListServerExecute(r ApiListServerRequest) (*Server, *http.Response, error)

Execute executes the request

@return Server

func (*ServersAPIService) ListServers

ListServers List all servers

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

func (*ServersAPIService) ListServersExecute

func (a *ServersAPIService) ListServersExecute(r ApiListServersRequest) ([]Server, *http.Response, error)

Execute executes the request

@return []Server

type SimpleStatisticItem

type SimpleStatisticItem struct {
	// Item name
	Name *string `json:"name,omitempty"`
	// Item value
	Value *string `json:"value,omitempty"`
}

SimpleStatisticItem struct for SimpleStatisticItem

func NewSimpleStatisticItem

func NewSimpleStatisticItem() *SimpleStatisticItem

NewSimpleStatisticItem instantiates a new SimpleStatisticItem 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 NewSimpleStatisticItemWithDefaults

func NewSimpleStatisticItemWithDefaults() *SimpleStatisticItem

NewSimpleStatisticItemWithDefaults instantiates a new SimpleStatisticItem 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 (*SimpleStatisticItem) GetName

func (o *SimpleStatisticItem) GetName() string

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

func (*SimpleStatisticItem) GetNameOk

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

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

func (*SimpleStatisticItem) GetValue

func (o *SimpleStatisticItem) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*SimpleStatisticItem) GetValueOk

func (o *SimpleStatisticItem) GetValueOk() (*string, bool)

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

func (*SimpleStatisticItem) HasName

func (o *SimpleStatisticItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*SimpleStatisticItem) HasValue

func (o *SimpleStatisticItem) HasValue() bool

HasValue returns a boolean if a field has been set.

func (SimpleStatisticItem) MarshalJSON

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

func (*SimpleStatisticItem) SetName

func (o *SimpleStatisticItem) SetName(v string)

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

func (*SimpleStatisticItem) SetValue

func (o *SimpleStatisticItem) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (SimpleStatisticItem) ToMap

func (o SimpleStatisticItem) ToMap() (map[string]interface{}, error)

type StatisticItem

type StatisticItem struct {
	// Item name
	Name *string `json:"name,omitempty"`
	// set to \"StatisticItem\"
	Type *string `json:"type,omitempty"`
	// Item value
	Value *string `json:"value,omitempty"`
}

StatisticItem struct for StatisticItem

func NewStatisticItem

func NewStatisticItem() *StatisticItem

NewStatisticItem instantiates a new StatisticItem 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 NewStatisticItemWithDefaults

func NewStatisticItemWithDefaults() *StatisticItem

NewStatisticItemWithDefaults instantiates a new StatisticItem 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 (*StatisticItem) GetName

func (o *StatisticItem) GetName() string

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

func (*StatisticItem) GetNameOk

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

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

func (*StatisticItem) GetType

func (o *StatisticItem) GetType() string

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

func (*StatisticItem) GetTypeOk

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

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

func (*StatisticItem) GetValue

func (o *StatisticItem) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*StatisticItem) GetValueOk

func (o *StatisticItem) GetValueOk() (*string, bool)

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

func (*StatisticItem) HasName

func (o *StatisticItem) HasName() bool

HasName returns a boolean if a field has been set.

func (*StatisticItem) HasType

func (o *StatisticItem) HasType() bool

HasType returns a boolean if a field has been set.

func (*StatisticItem) HasValue

func (o *StatisticItem) HasValue() bool

HasValue returns a boolean if a field has been set.

func (StatisticItem) MarshalJSON

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

func (*StatisticItem) SetName

func (o *StatisticItem) SetName(v string)

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

func (*StatisticItem) SetType

func (o *StatisticItem) SetType(v string)

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

func (*StatisticItem) SetValue

func (o *StatisticItem) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (StatisticItem) ToMap

func (o StatisticItem) ToMap() (map[string]interface{}, error)

type StatsAPIService

type StatsAPIService service

StatsAPIService StatsAPI service

func (*StatsAPIService) GetStats

func (a *StatsAPIService) GetStats(ctx context.Context, serverId string) ApiGetStatsRequest

GetStats Query statistics.

Query PowerDNS internal statistics.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@return ApiGetStatsRequest

func (*StatsAPIService) GetStatsExecute

Execute executes the request

@return []GetStats200ResponseInner

type TSIGKey

type TSIGKey struct {
	// The name of the key
	Name *string `json:"name,omitempty"`
	// The ID for this key, used in the TSIGkey URL endpoint.
	Id *string `json:"id,omitempty"`
	// The algorithm of the TSIG key
	Algorithm *string `json:"algorithm,omitempty"`
	// The Base64 encoded secret key, empty when listing keys. MAY be empty when POSTing to have the server generate the key material
	Key *string `json:"key,omitempty"`
	// Set to \"TSIGKey\"
	Type *string `json:"type,omitempty"`
}

TSIGKey A TSIG key that can be used to authenticate NOTIFY, AXFR, and DNSUPDATE queries.

func NewTSIGKey

func NewTSIGKey() *TSIGKey

NewTSIGKey instantiates a new TSIGKey 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 NewTSIGKeyWithDefaults

func NewTSIGKeyWithDefaults() *TSIGKey

NewTSIGKeyWithDefaults instantiates a new TSIGKey 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 (*TSIGKey) GetAlgorithm

func (o *TSIGKey) GetAlgorithm() string

GetAlgorithm returns the Algorithm field value if set, zero value otherwise.

func (*TSIGKey) GetAlgorithmOk

func (o *TSIGKey) GetAlgorithmOk() (*string, bool)

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

func (*TSIGKey) GetId

func (o *TSIGKey) GetId() string

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

func (*TSIGKey) GetIdOk

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

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

func (*TSIGKey) GetKey

func (o *TSIGKey) GetKey() string

GetKey returns the Key field value if set, zero value otherwise.

func (*TSIGKey) GetKeyOk

func (o *TSIGKey) GetKeyOk() (*string, bool)

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

func (*TSIGKey) GetName

func (o *TSIGKey) GetName() string

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

func (*TSIGKey) GetNameOk

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

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

func (*TSIGKey) GetType

func (o *TSIGKey) GetType() string

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

func (*TSIGKey) GetTypeOk

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

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

func (*TSIGKey) HasAlgorithm

func (o *TSIGKey) HasAlgorithm() bool

HasAlgorithm returns a boolean if a field has been set.

func (*TSIGKey) HasId

func (o *TSIGKey) HasId() bool

HasId returns a boolean if a field has been set.

func (*TSIGKey) HasKey

func (o *TSIGKey) HasKey() bool

HasKey returns a boolean if a field has been set.

func (*TSIGKey) HasName

func (o *TSIGKey) HasName() bool

HasName returns a boolean if a field has been set.

func (*TSIGKey) HasType

func (o *TSIGKey) HasType() bool

HasType returns a boolean if a field has been set.

func (TSIGKey) MarshalJSON

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

func (*TSIGKey) SetAlgorithm

func (o *TSIGKey) SetAlgorithm(v string)

SetAlgorithm gets a reference to the given string and assigns it to the Algorithm field.

func (*TSIGKey) SetId

func (o *TSIGKey) SetId(v string)

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

func (*TSIGKey) SetKey

func (o *TSIGKey) SetKey(v string)

SetKey gets a reference to the given string and assigns it to the Key field.

func (*TSIGKey) SetName

func (o *TSIGKey) SetName(v string)

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

func (*TSIGKey) SetType

func (o *TSIGKey) SetType(v string)

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

func (TSIGKey) ToMap

func (o TSIGKey) ToMap() (map[string]interface{}, error)

type TsigkeyAPIService

type TsigkeyAPIService service

TsigkeyAPIService TsigkeyAPI service

func (*TsigkeyAPIService) CreateTSIGKey

func (a *TsigkeyAPIService) CreateTSIGKey(ctx context.Context, serverId string) ApiCreateTSIGKeyRequest

CreateTSIGKey Add a TSIG key

This methods add a new TSIGKey. The actual key can be generated by the server or be provided by the client

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

func (*TsigkeyAPIService) CreateTSIGKeyExecute

func (a *TsigkeyAPIService) CreateTSIGKeyExecute(r ApiCreateTSIGKeyRequest) (*TSIGKey, *http.Response, error)

Execute executes the request

@return TSIGKey

func (*TsigkeyAPIService) DeleteTSIGKey

func (a *TsigkeyAPIService) DeleteTSIGKey(ctx context.Context, serverId string, tsigkeyId string) ApiDeleteTSIGKeyRequest

DeleteTSIGKey Delete the TSIGKey with tsigkey_id

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve the key from
@param tsigkeyId The id of the TSIGkey. Should match the \"id\" field in the TSIGKey object
@return ApiDeleteTSIGKeyRequest

func (*TsigkeyAPIService) DeleteTSIGKeyExecute

func (a *TsigkeyAPIService) DeleteTSIGKeyExecute(r ApiDeleteTSIGKeyRequest) (*http.Response, error)

Execute executes the request

func (*TsigkeyAPIService) GetTSIGKey

func (a *TsigkeyAPIService) GetTSIGKey(ctx context.Context, serverId string, tsigkeyId string) ApiGetTSIGKeyRequest

GetTSIGKey Get a specific TSIGKeys on the server, including the actual key

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve the key from
@param tsigkeyId The id of the TSIGkey. Should match the \"id\" field in the TSIGKey object
@return ApiGetTSIGKeyRequest

func (*TsigkeyAPIService) GetTSIGKeyExecute

func (a *TsigkeyAPIService) GetTSIGKeyExecute(r ApiGetTSIGKeyRequest) (*TSIGKey, *http.Response, error)

Execute executes the request

@return TSIGKey

func (*TsigkeyAPIService) ListTSIGKeys

func (a *TsigkeyAPIService) ListTSIGKeys(ctx context.Context, serverId string) ApiListTSIGKeysRequest

ListTSIGKeys Get all TSIGKeys on the server, except the actual key

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

func (*TsigkeyAPIService) ListTSIGKeysExecute

func (a *TsigkeyAPIService) ListTSIGKeysExecute(r ApiListTSIGKeysRequest) ([]TSIGKey, *http.Response, error)

Execute executes the request

@return []TSIGKey

func (*TsigkeyAPIService) PutTSIGKey

func (a *TsigkeyAPIService) PutTSIGKey(ctx context.Context, serverId string, tsigkeyId string) ApiPutTSIGKeyRequest

PutTSIGKey Method for PutTSIGKey

The TSIGKey at tsigkey_id can be changed in multiple ways:

  • Changing the Name, this will remove the key with tsigkey_id after adding.
  • Changing the Algorithm
  • Changing the Key

Only the relevant fields have to be provided in the request body.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve the key from
@param tsigkeyId The id of the TSIGkey. Should match the \"id\" field in the TSIGKey object
@return ApiPutTSIGKeyRequest

func (*TsigkeyAPIService) PutTSIGKeyExecute

func (a *TsigkeyAPIService) PutTSIGKeyExecute(r ApiPutTSIGKeyRequest) (*TSIGKey, *http.Response, error)

Execute executes the request

@return TSIGKey

type Zone

type Zone struct {
	// Opaque zone id (string), assigned by the server, should not be interpreted by the application. Guaranteed to be safe for embedding in URLs.
	Id *string `json:"id,omitempty"`
	// Name of the zone (e.g. “example.com.”) MUST have a trailing dot
	Name *string `json:"name,omitempty"`
	// Set to “Zone”
	Type *string `json:"type,omitempty"`
	// API endpoint for this zone
	Url *string `json:"url,omitempty"`
	// Zone kind, one of “Native”, “Master”, “Slave”, “Producer”, “Consumer”
	Kind *string `json:"kind,omitempty"`
	// RRSets in this zone (for zones/{zone_id} endpoint only; omitted during GET on the .../zones list endpoint)
	Rrsets []RRSet `json:"rrsets,omitempty"`
	// The SOA serial number
	Serial *int32 `json:"serial,omitempty"`
	// The SOA serial notifications have been sent out for
	NotifiedSerial *int32 `json:"notified_serial,omitempty"`
	// The SOA serial as seen in query responses. Calculated using the SOA-EDIT metadata, default-soa-edit and default-soa-edit-signed settings
	EditedSerial *int32 `json:"edited_serial,omitempty"`
	//  List of IP addresses configured as a master for this zone (“Slave” type zones only)
	Masters []string `json:"masters,omitempty"`
	// Whether or not this zone is DNSSEC signed (inferred from presigned being true XOR presence of at least one cryptokey with active being true)
	Dnssec *bool `json:"dnssec,omitempty"`
	// The NSEC3PARAM record
	Nsec3param *string `json:"nsec3param,omitempty"`
	// Whether or not the zone uses NSEC3 narrow
	Nsec3narrow *bool `json:"nsec3narrow,omitempty"`
	// Whether or not the zone is pre-signed
	Presigned *bool `json:"presigned,omitempty"`
	// The SOA-EDIT metadata item
	SoaEdit *string `json:"soa_edit,omitempty"`
	// The SOA-EDIT-API metadata item
	SoaEditApi *string `json:"soa_edit_api,omitempty"`
	// Whether or not the zone will be rectified on data changes via the API
	ApiRectify *bool `json:"api_rectify,omitempty"`
	// MAY contain a BIND-style zone file when creating a zone
	Zone *string `json:"zone,omitempty"`
	// The catalog this zone is a member of
	Catalog *string `json:"catalog,omitempty"`
	// MAY be set. Its value is defined by local policy
	Account *string `json:"account,omitempty"`
	// MAY be sent in client bodies during creation, and MUST NOT be sent by the server. Simple list of strings of nameserver names, including the trailing dot. Not required for slave zones.
	Nameservers []string `json:"nameservers,omitempty"`
	// The id of the TSIG keys used for master operation in this zone
	MasterTsigKeyIds []string `json:"master_tsig_key_ids,omitempty"`
	// The id of the TSIG keys used for slave operation in this zone
	SlaveTsigKeyIds []string `json:"slave_tsig_key_ids,omitempty"`
}

Zone This represents an authoritative DNS Zone.

func NewZone

func NewZone() *Zone

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

func NewZoneWithDefaults

func NewZoneWithDefaults() *Zone

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

func (*Zone) GetAccount

func (o *Zone) GetAccount() string

GetAccount returns the Account field value if set, zero value otherwise.

func (*Zone) GetAccountOk

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

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

func (*Zone) GetApiRectify

func (o *Zone) GetApiRectify() bool

GetApiRectify returns the ApiRectify field value if set, zero value otherwise.

func (*Zone) GetApiRectifyOk

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

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

func (*Zone) GetCatalog

func (o *Zone) GetCatalog() string

GetCatalog returns the Catalog field value if set, zero value otherwise.

func (*Zone) GetCatalogOk

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

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

func (*Zone) GetDnssec

func (o *Zone) GetDnssec() bool

GetDnssec returns the Dnssec field value if set, zero value otherwise.

func (*Zone) GetDnssecOk

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

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

func (*Zone) GetEditedSerial

func (o *Zone) GetEditedSerial() int32

GetEditedSerial returns the EditedSerial field value if set, zero value otherwise.

func (*Zone) GetEditedSerialOk

func (o *Zone) GetEditedSerialOk() (*int32, bool)

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

func (*Zone) GetId

func (o *Zone) GetId() string

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

func (*Zone) GetIdOk

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

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

func (*Zone) GetKind

func (o *Zone) GetKind() string

GetKind returns the Kind field value if set, zero value otherwise.

func (*Zone) GetKindOk

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

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

func (*Zone) GetMasterTsigKeyIds

func (o *Zone) GetMasterTsigKeyIds() []string

GetMasterTsigKeyIds returns the MasterTsigKeyIds field value if set, zero value otherwise.

func (*Zone) GetMasterTsigKeyIdsOk

func (o *Zone) GetMasterTsigKeyIdsOk() ([]string, bool)

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

func (*Zone) GetMasters

func (o *Zone) GetMasters() []string

GetMasters returns the Masters field value if set, zero value otherwise.

func (*Zone) GetMastersOk

func (o *Zone) GetMastersOk() ([]string, bool)

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

func (*Zone) GetName

func (o *Zone) GetName() string

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

func (*Zone) GetNameOk

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

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

func (*Zone) GetNameservers

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

GetNameservers returns the Nameservers field value if set, zero value otherwise.

func (*Zone) GetNameserversOk

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

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

func (*Zone) GetNotifiedSerial

func (o *Zone) GetNotifiedSerial() int32

GetNotifiedSerial returns the NotifiedSerial field value if set, zero value otherwise.

func (*Zone) GetNotifiedSerialOk

func (o *Zone) GetNotifiedSerialOk() (*int32, bool)

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

func (*Zone) GetNsec3narrow

func (o *Zone) GetNsec3narrow() bool

GetNsec3narrow returns the Nsec3narrow field value if set, zero value otherwise.

func (*Zone) GetNsec3narrowOk

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

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

func (*Zone) GetNsec3param

func (o *Zone) GetNsec3param() string

GetNsec3param returns the Nsec3param field value if set, zero value otherwise.

func (*Zone) GetNsec3paramOk

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

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

func (*Zone) GetPresigned

func (o *Zone) GetPresigned() bool

GetPresigned returns the Presigned field value if set, zero value otherwise.

func (*Zone) GetPresignedOk

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

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

func (*Zone) GetRrsets

func (o *Zone) GetRrsets() []RRSet

GetRrsets returns the Rrsets field value if set, zero value otherwise.

func (*Zone) GetRrsetsOk

func (o *Zone) GetRrsetsOk() ([]RRSet, bool)

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

func (*Zone) GetSerial

func (o *Zone) GetSerial() int32

GetSerial returns the Serial field value if set, zero value otherwise.

func (*Zone) GetSerialOk

func (o *Zone) GetSerialOk() (*int32, bool)

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

func (*Zone) GetSlaveTsigKeyIds

func (o *Zone) GetSlaveTsigKeyIds() []string

GetSlaveTsigKeyIds returns the SlaveTsigKeyIds field value if set, zero value otherwise.

func (*Zone) GetSlaveTsigKeyIdsOk

func (o *Zone) GetSlaveTsigKeyIdsOk() ([]string, bool)

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

func (*Zone) GetSoaEdit

func (o *Zone) GetSoaEdit() string

GetSoaEdit returns the SoaEdit field value if set, zero value otherwise.

func (*Zone) GetSoaEditApi

func (o *Zone) GetSoaEditApi() string

GetSoaEditApi returns the SoaEditApi field value if set, zero value otherwise.

func (*Zone) GetSoaEditApiOk

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

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

func (*Zone) GetSoaEditOk

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

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

func (*Zone) GetType

func (o *Zone) GetType() string

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

func (*Zone) GetTypeOk

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

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

func (*Zone) GetUrl

func (o *Zone) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (*Zone) GetUrlOk

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

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

func (*Zone) GetZone

func (o *Zone) GetZone() string

GetZone returns the Zone field value if set, zero value otherwise.

func (*Zone) GetZoneOk

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

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

func (*Zone) HasAccount

func (o *Zone) HasAccount() bool

HasAccount returns a boolean if a field has been set.

func (*Zone) HasApiRectify

func (o *Zone) HasApiRectify() bool

HasApiRectify returns a boolean if a field has been set.

func (*Zone) HasCatalog

func (o *Zone) HasCatalog() bool

HasCatalog returns a boolean if a field has been set.

func (*Zone) HasDnssec

func (o *Zone) HasDnssec() bool

HasDnssec returns a boolean if a field has been set.

func (*Zone) HasEditedSerial

func (o *Zone) HasEditedSerial() bool

HasEditedSerial returns a boolean if a field has been set.

func (*Zone) HasId

func (o *Zone) HasId() bool

HasId returns a boolean if a field has been set.

func (*Zone) HasKind

func (o *Zone) HasKind() bool

HasKind returns a boolean if a field has been set.

func (*Zone) HasMasterTsigKeyIds

func (o *Zone) HasMasterTsigKeyIds() bool

HasMasterTsigKeyIds returns a boolean if a field has been set.

func (*Zone) HasMasters

func (o *Zone) HasMasters() bool

HasMasters returns a boolean if a field has been set.

func (*Zone) HasName

func (o *Zone) HasName() bool

HasName returns a boolean if a field has been set.

func (*Zone) HasNameservers

func (o *Zone) HasNameservers() bool

HasNameservers returns a boolean if a field has been set.

func (*Zone) HasNotifiedSerial

func (o *Zone) HasNotifiedSerial() bool

HasNotifiedSerial returns a boolean if a field has been set.

func (*Zone) HasNsec3narrow

func (o *Zone) HasNsec3narrow() bool

HasNsec3narrow returns a boolean if a field has been set.

func (*Zone) HasNsec3param

func (o *Zone) HasNsec3param() bool

HasNsec3param returns a boolean if a field has been set.

func (*Zone) HasPresigned

func (o *Zone) HasPresigned() bool

HasPresigned returns a boolean if a field has been set.

func (*Zone) HasRrsets

func (o *Zone) HasRrsets() bool

HasRrsets returns a boolean if a field has been set.

func (*Zone) HasSerial

func (o *Zone) HasSerial() bool

HasSerial returns a boolean if a field has been set.

func (*Zone) HasSlaveTsigKeyIds

func (o *Zone) HasSlaveTsigKeyIds() bool

HasSlaveTsigKeyIds returns a boolean if a field has been set.

func (*Zone) HasSoaEdit

func (o *Zone) HasSoaEdit() bool

HasSoaEdit returns a boolean if a field has been set.

func (*Zone) HasSoaEditApi

func (o *Zone) HasSoaEditApi() bool

HasSoaEditApi returns a boolean if a field has been set.

func (*Zone) HasType

func (o *Zone) HasType() bool

HasType returns a boolean if a field has been set.

func (*Zone) HasUrl

func (o *Zone) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (*Zone) HasZone

func (o *Zone) HasZone() bool

HasZone returns a boolean if a field has been set.

func (Zone) MarshalJSON

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

func (*Zone) SetAccount

func (o *Zone) SetAccount(v string)

SetAccount gets a reference to the given string and assigns it to the Account field.

func (*Zone) SetApiRectify

func (o *Zone) SetApiRectify(v bool)

SetApiRectify gets a reference to the given bool and assigns it to the ApiRectify field.

func (*Zone) SetCatalog

func (o *Zone) SetCatalog(v string)

SetCatalog gets a reference to the given string and assigns it to the Catalog field.

func (*Zone) SetDnssec

func (o *Zone) SetDnssec(v bool)

SetDnssec gets a reference to the given bool and assigns it to the Dnssec field.

func (*Zone) SetEditedSerial

func (o *Zone) SetEditedSerial(v int32)

SetEditedSerial gets a reference to the given int32 and assigns it to the EditedSerial field.

func (*Zone) SetId

func (o *Zone) SetId(v string)

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

func (*Zone) SetKind

func (o *Zone) SetKind(v string)

SetKind gets a reference to the given string and assigns it to the Kind field.

func (*Zone) SetMasterTsigKeyIds

func (o *Zone) SetMasterTsigKeyIds(v []string)

SetMasterTsigKeyIds gets a reference to the given []string and assigns it to the MasterTsigKeyIds field.

func (*Zone) SetMasters

func (o *Zone) SetMasters(v []string)

SetMasters gets a reference to the given []string and assigns it to the Masters field.

func (*Zone) SetName

func (o *Zone) SetName(v string)

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

func (*Zone) SetNameservers

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

SetNameservers gets a reference to the given []string and assigns it to the Nameservers field.

func (*Zone) SetNotifiedSerial

func (o *Zone) SetNotifiedSerial(v int32)

SetNotifiedSerial gets a reference to the given int32 and assigns it to the NotifiedSerial field.

func (*Zone) SetNsec3narrow

func (o *Zone) SetNsec3narrow(v bool)

SetNsec3narrow gets a reference to the given bool and assigns it to the Nsec3narrow field.

func (*Zone) SetNsec3param

func (o *Zone) SetNsec3param(v string)

SetNsec3param gets a reference to the given string and assigns it to the Nsec3param field.

func (*Zone) SetPresigned

func (o *Zone) SetPresigned(v bool)

SetPresigned gets a reference to the given bool and assigns it to the Presigned field.

func (*Zone) SetRrsets

func (o *Zone) SetRrsets(v []RRSet)

SetRrsets gets a reference to the given []RRSet and assigns it to the Rrsets field.

func (*Zone) SetSerial

func (o *Zone) SetSerial(v int32)

SetSerial gets a reference to the given int32 and assigns it to the Serial field.

func (*Zone) SetSlaveTsigKeyIds

func (o *Zone) SetSlaveTsigKeyIds(v []string)

SetSlaveTsigKeyIds gets a reference to the given []string and assigns it to the SlaveTsigKeyIds field.

func (*Zone) SetSoaEdit

func (o *Zone) SetSoaEdit(v string)

SetSoaEdit gets a reference to the given string and assigns it to the SoaEdit field.

func (*Zone) SetSoaEditApi

func (o *Zone) SetSoaEditApi(v string)

SetSoaEditApi gets a reference to the given string and assigns it to the SoaEditApi field.

func (*Zone) SetType

func (o *Zone) SetType(v string)

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

func (*Zone) SetUrl

func (o *Zone) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

func (*Zone) SetZone

func (o *Zone) SetZone(v string)

SetZone gets a reference to the given string and assigns it to the Zone field.

func (Zone) ToMap

func (o Zone) ToMap() (map[string]interface{}, error)

type ZonecryptokeyAPIService

type ZonecryptokeyAPIService service

ZonecryptokeyAPIService ZonecryptokeyAPI service

func (*ZonecryptokeyAPIService) CreateCryptokey

func (a *ZonecryptokeyAPIService) CreateCryptokey(ctx context.Context, serverId string, zoneId string) ApiCreateCryptokeyRequest

CreateCryptokey Creates a Cryptokey

This method adds a new key to a zone. The key can either be generated or imported by supplying the content parameter. if content, bits and algo are null, a key will be generated based on the default-ksk-algorithm and default-ksk-size settings for a KSK and the default-zsk-algorithm and default-zsk-size options for a ZSK.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId
@return ApiCreateCryptokeyRequest

func (*ZonecryptokeyAPIService) CreateCryptokeyExecute

Execute executes the request

@return Cryptokey

func (*ZonecryptokeyAPIService) DeleteCryptokey

func (a *ZonecryptokeyAPIService) DeleteCryptokey(ctx context.Context, serverId string, zoneId string, cryptokeyId string) ApiDeleteCryptokeyRequest

DeleteCryptokey This method deletes a key specified by cryptokey_id.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId The id of the zone to retrieve
@param cryptokeyId The id value of the Cryptokey
@return ApiDeleteCryptokeyRequest

func (*ZonecryptokeyAPIService) DeleteCryptokeyExecute

func (a *ZonecryptokeyAPIService) DeleteCryptokeyExecute(r ApiDeleteCryptokeyRequest) (*http.Response, error)

Execute executes the request

func (*ZonecryptokeyAPIService) GetCryptokey

func (a *ZonecryptokeyAPIService) GetCryptokey(ctx context.Context, serverId string, zoneId string, cryptokeyId string) ApiGetCryptokeyRequest

GetCryptokey Returns all data about the CryptoKey, including the privatekey.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId The id of the zone to retrieve
@param cryptokeyId The id value of the CryptoKey
@return ApiGetCryptokeyRequest

func (*ZonecryptokeyAPIService) GetCryptokeyExecute

Execute executes the request

@return Cryptokey

func (*ZonecryptokeyAPIService) ListCryptokeys

func (a *ZonecryptokeyAPIService) ListCryptokeys(ctx context.Context, serverId string, zoneId string) ApiListCryptokeysRequest

ListCryptokeys Get all CryptoKeys for a zone, except the privatekey

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

func (*ZonecryptokeyAPIService) ListCryptokeysExecute

func (a *ZonecryptokeyAPIService) ListCryptokeysExecute(r ApiListCryptokeysRequest) ([]Cryptokey, *http.Response, error)

Execute executes the request

@return []Cryptokey

func (*ZonecryptokeyAPIService) ModifyCryptokey

func (a *ZonecryptokeyAPIService) ModifyCryptokey(ctx context.Context, serverId string, zoneId string, cryptokeyId string) ApiModifyCryptokeyRequest

ModifyCryptokey This method (de)activates a key from zone_name specified by cryptokey_id

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId
@param cryptokeyId Cryptokey to manipulate
@return ApiModifyCryptokeyRequest

func (*ZonecryptokeyAPIService) ModifyCryptokeyExecute

func (a *ZonecryptokeyAPIService) ModifyCryptokeyExecute(r ApiModifyCryptokeyRequest) (*http.Response, error)

Execute executes the request

type ZonemetadataAPIService

type ZonemetadataAPIService service

ZonemetadataAPIService ZonemetadataAPI service

func (*ZonemetadataAPIService) CreateMetadata

func (a *ZonemetadataAPIService) CreateMetadata(ctx context.Context, serverId string, zoneId string) ApiCreateMetadataRequest

CreateMetadata Creates a set of metadata entries

Creates a set of metadata entries of given kind for the zone. Existing metadata entries for the zone with the same kind are not overwritten.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId
@return ApiCreateMetadataRequest

func (*ZonemetadataAPIService) CreateMetadataExecute

func (a *ZonemetadataAPIService) CreateMetadataExecute(r ApiCreateMetadataRequest) (*http.Response, error)

Execute executes the request

func (*ZonemetadataAPIService) DeleteMetadata

func (a *ZonemetadataAPIService) DeleteMetadata(ctx context.Context, serverId string, zoneId string, metadataKind string) ApiDeleteMetadataRequest

DeleteMetadata Delete all items of a single kind of domain metadata.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId The id of the zone to retrieve
@param metadataKind The kind of metadata
@return ApiDeleteMetadataRequest

func (*ZonemetadataAPIService) DeleteMetadataExecute

func (a *ZonemetadataAPIService) DeleteMetadataExecute(r ApiDeleteMetadataRequest) (*http.Response, error)

Execute executes the request

func (*ZonemetadataAPIService) GetMetadata

func (a *ZonemetadataAPIService) GetMetadata(ctx context.Context, serverId string, zoneId string, metadataKind string) ApiGetMetadataRequest

GetMetadata Get the content of a single kind of domain metadata as a Metadata object.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId The id of the zone to retrieve
@param metadataKind The kind of metadata
@return ApiGetMetadataRequest

func (*ZonemetadataAPIService) GetMetadataExecute

Execute executes the request

@return Metadata

func (*ZonemetadataAPIService) ListMetadata

func (a *ZonemetadataAPIService) ListMetadata(ctx context.Context, serverId string, zoneId string) ApiListMetadataRequest

ListMetadata Get all the Metadata associated with the zone.

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

func (*ZonemetadataAPIService) ListMetadataExecute

func (a *ZonemetadataAPIService) ListMetadataExecute(r ApiListMetadataRequest) ([]Metadata, *http.Response, error)

Execute executes the request

@return []Metadata

func (*ZonemetadataAPIService) ModifyMetadata

func (a *ZonemetadataAPIService) ModifyMetadata(ctx context.Context, serverId string, zoneId string, metadataKind string) ApiModifyMetadataRequest

ModifyMetadata Replace the content of a single kind of domain metadata.

Creates a set of metadata entries of given kind for the zone. Existing metadata entries for the zone with the same kind are removed.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId
@param metadataKind The kind of metadata
@return ApiModifyMetadataRequest

func (*ZonemetadataAPIService) ModifyMetadataExecute

func (a *ZonemetadataAPIService) ModifyMetadataExecute(r ApiModifyMetadataRequest) (*Metadata, *http.Response, error)

Execute executes the request

@return Metadata

type ZonesAPIService

type ZonesAPIService service

ZonesAPIService ZonesAPI service

func (*ZonesAPIService) AxfrExportZone

func (a *ZonesAPIService) AxfrExportZone(ctx context.Context, serverId string, zoneId string) ApiAxfrExportZoneRequest

AxfrExportZone Returns the zone in AXFR format.

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

func (*ZonesAPIService) AxfrExportZoneExecute

func (a *ZonesAPIService) AxfrExportZoneExecute(r ApiAxfrExportZoneRequest) (string, *http.Response, error)

Execute executes the request

@return string

func (*ZonesAPIService) AxfrRetrieveZone

func (a *ZonesAPIService) AxfrRetrieveZone(ctx context.Context, serverId string, zoneId string) ApiAxfrRetrieveZoneRequest

AxfrRetrieveZone Retrieve slave zone from its master.

Fails when zone kind is not Slave, or slave is disabled in the configuration. Clients MUST NOT send a body.

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

func (*ZonesAPIService) AxfrRetrieveZoneExecute

func (a *ZonesAPIService) AxfrRetrieveZoneExecute(r ApiAxfrRetrieveZoneRequest) (*http.Response, error)

Execute executes the request

func (*ZonesAPIService) CreateZone

func (a *ZonesAPIService) CreateZone(ctx context.Context, serverId string) ApiCreateZoneRequest

CreateZone Creates a new domain, returns the Zone on creation.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@return ApiCreateZoneRequest

func (*ZonesAPIService) CreateZoneExecute

func (a *ZonesAPIService) CreateZoneExecute(r ApiCreateZoneRequest) (*Zone, *http.Response, error)

Execute executes the request

@return Zone

func (*ZonesAPIService) DeleteZone

func (a *ZonesAPIService) DeleteZone(ctx context.Context, serverId string, zoneId string) ApiDeleteZoneRequest

DeleteZone Deletes this zone, all attached metadata and rrsets.

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

func (*ZonesAPIService) DeleteZoneExecute

func (a *ZonesAPIService) DeleteZoneExecute(r ApiDeleteZoneRequest) (*http.Response, error)

Execute executes the request

func (*ZonesAPIService) ListZone

func (a *ZonesAPIService) ListZone(ctx context.Context, serverId string, zoneId string) ApiListZoneRequest

ListZone zone managed by a server

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

func (*ZonesAPIService) ListZoneExecute

func (a *ZonesAPIService) ListZoneExecute(r ApiListZoneRequest) (*Zone, *http.Response, error)

Execute executes the request

@return Zone

func (*ZonesAPIService) ListZones

func (a *ZonesAPIService) ListZones(ctx context.Context, serverId string) ApiListZonesRequest

ListZones List all Zones in a server

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@return ApiListZonesRequest

func (*ZonesAPIService) ListZonesExecute

func (a *ZonesAPIService) ListZonesExecute(r ApiListZonesRequest) ([]Zone, *http.Response, error)

Execute executes the request

@return []Zone

func (*ZonesAPIService) NotifyZone

func (a *ZonesAPIService) NotifyZone(ctx context.Context, serverId string, zoneId string) ApiNotifyZoneRequest

NotifyZone Send a DNS NOTIFY to all slaves.

Fails when zone kind is not Master or Slave, or master and slave are disabled in the configuration. Only works for Slave if renotify is on. Clients MUST NOT send a body.

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

func (*ZonesAPIService) NotifyZoneExecute

func (a *ZonesAPIService) NotifyZoneExecute(r ApiNotifyZoneRequest) (*http.Response, error)

Execute executes the request

func (*ZonesAPIService) PatchZone

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

PatchZone Creates/modifies/deletes RRsets present in the payload and their comments. Returns 204 No Content on success.

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

func (*ZonesAPIService) PatchZoneExecute

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

Execute executes the request

func (*ZonesAPIService) PutZone

func (a *ZonesAPIService) PutZone(ctx context.Context, serverId string, zoneId string) ApiPutZoneRequest

PutZone Modifies basic zone data.

The only fields in the zone structure which can be modified are: kind, masters, catalog, account, soa_edit, soa_edit_api, api_rectify, dnssec, and nsec3param. All other fields are ignored.

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param serverId The id of the server to retrieve
@param zoneId
@return ApiPutZoneRequest

func (*ZonesAPIService) PutZoneExecute

func (a *ZonesAPIService) PutZoneExecute(r ApiPutZoneRequest) (*http.Response, error)

Execute executes the request

func (*ZonesAPIService) RectifyZone

func (a *ZonesAPIService) RectifyZone(ctx context.Context, serverId string, zoneId string) ApiRectifyZoneRequest

RectifyZone Rectify the zone data.

This does not take into account the API-RECTIFY metadata. Fails on slave zones and zones that do not have DNSSEC.

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

func (*ZonesAPIService) RectifyZoneExecute

func (a *ZonesAPIService) RectifyZoneExecute(r ApiRectifyZoneRequest) (string, *http.Response, error)

Execute executes the request

@return string

Jump to

Keyboard shortcuts

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