dns

package module
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 22 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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 NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func ParameterValueToString

func ParameterValueToString(obj interface{}, key string) string

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 {
	// contains filtered or unexported fields
}

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

func NewAPIClient

func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)

NewAPIClient creates a new API client. Optionally receives configuration options

func (*APIClient) CreateRecordSet

func (a *APIClient) CreateRecordSet(ctx context.Context, projectId string, zoneId string) ApiCreateRecordSetRequest

CreateRecordSet Post record set

Post record set

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@return ApiCreateRecordSetRequest

func (*APIClient) CreateRecordSetExecute

func (a *APIClient) CreateRecordSetExecute(ctx context.Context, projectId string, zoneId string) (*RecordSetResponse, error)

func (*APIClient) CreateZone

func (a *APIClient) CreateZone(ctx context.Context, projectId string) ApiCreateZoneRequest

CreateZone Post create a new zone

Post zone create a new zone

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

func (*APIClient) CreateZoneExecute

func (a *APIClient) CreateZoneExecute(ctx context.Context, projectId string) (*ZoneResponse, error)

func (*APIClient) DeleteRecordSet

func (a *APIClient) DeleteRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiDeleteRecordSetRequest

DeleteRecordSet Delete a record set

Delete a record set

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@param rrSetId record set id
@return ApiDeleteRecordSetRequest

func (*APIClient) DeleteRecordSetExecute

func (a *APIClient) DeleteRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error)

func (*APIClient) DeleteZone

func (a *APIClient) DeleteZone(ctx context.Context, projectId string, zoneId string) ApiDeleteZoneRequest

DeleteZone Delete a zone

Delete a zone

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@return ApiDeleteZoneRequest

func (*APIClient) DeleteZoneExecute

func (a *APIClient) DeleteZoneExecute(ctx context.Context, projectId string, zoneId string) (*Message, error)

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *config.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

func (*APIClient) GetRecordSet

func (a *APIClient) GetRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiGetRecordSetRequest

GetRecordSet Get a single rrset

Get rrset

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@param rrSetId record set id
@return ApiGetRecordSetRequest

func (*APIClient) GetRecordSetExecute

func (a *APIClient) GetRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*RecordSetResponse, error)

func (*APIClient) GetZone

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

GetZone Get a single zone

Get zone

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

func (*APIClient) GetZoneExecute

func (a *APIClient) GetZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error)

func (*APIClient) ListRecordSets

func (a *APIClient) ListRecordSets(ctx context.Context, projectId string, zoneId string) ApiListRecordSetsRequest

ListRecordSets All get selected RRSets

All RRSet

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@return ApiListRecordSetsRequest

func (*APIClient) ListRecordSetsExecute

func (a *APIClient) ListRecordSetsExecute(ctx context.Context, projectId string, zoneId string) (*ListRecordSetsResponse, error)

func (*APIClient) ListZones

func (a *APIClient) ListZones(ctx context.Context, projectId string) ApiListZonesRequest

ListZones All get selected zones

All zone

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

func (*APIClient) ListZonesExecute

func (a *APIClient) ListZonesExecute(ctx context.Context, projectId string) (*ListZonesResponse, error)

func (*APIClient) PartialUpdateRecord

func (a *APIClient) PartialUpdateRecord(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordRequest

PartialUpdateRecord PatchRecords updates a record in a rrset

PatchRecords rrset updates a record in a rrset

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@param rrSetId record set id
@return ApiPartialUpdateRecordRequest

func (*APIClient) PartialUpdateRecordExecute

func (a *APIClient) PartialUpdateRecordExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error)

func (*APIClient) PartialUpdateRecordSet

func (a *APIClient) PartialUpdateRecordSet(ctx context.Context, projectId string, zoneId string, rrSetId string) ApiPartialUpdateRecordSetRequest

PartialUpdateRecordSet Patch updates a record set

Patch record set

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@param rrSetId record set id
@return ApiPartialUpdateRecordSetRequest

func (*APIClient) PartialUpdateRecordSetExecute

func (a *APIClient) PartialUpdateRecordSetExecute(ctx context.Context, projectId string, zoneId string, rrSetId string) (*Message, error)

func (*APIClient) PartialUpdateZone

func (a *APIClient) PartialUpdateZone(ctx context.Context, projectId string, zoneId string) ApiPartialUpdateZoneRequest

PartialUpdateZone Patch update an existing zone

Patch update an existing zone

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param projectId project id
@param zoneId zone id
@return ApiPartialUpdateZoneRequest

func (*APIClient) PartialUpdateZoneExecute

func (a *APIClient) PartialUpdateZoneExecute(ctx context.Context, projectId string, zoneId string) (*ZoneResponse, error)

type ApiCreateRecordSetRequest

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

func (ApiCreateRecordSetRequest) CreateRecordSetPayload

func (r ApiCreateRecordSetRequest) CreateRecordSetPayload(createRecordSetPayload CreateRecordSetPayload) ApiCreateRecordSetRequest

func (ApiCreateRecordSetRequest) Execute

type ApiCreateZoneRequest

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

func (ApiCreateZoneRequest) CreateZonePayload

func (r ApiCreateZoneRequest) CreateZonePayload(createZonePayload CreateZonePayload) ApiCreateZoneRequest

func (ApiCreateZoneRequest) Execute

func (r ApiCreateZoneRequest) Execute() (*ZoneResponse, error)

type ApiDeleteRecordSetRequest

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

func (ApiDeleteRecordSetRequest) Execute

func (r ApiDeleteRecordSetRequest) Execute() (*Message, error)

type ApiDeleteZoneRequest

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

func (ApiDeleteZoneRequest) Execute

func (r ApiDeleteZoneRequest) Execute() (*Message, error)

type ApiGetRecordSetRequest

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

func (ApiGetRecordSetRequest) Execute

type ApiGetZoneRequest

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

func (ApiGetZoneRequest) Execute

func (r ApiGetZoneRequest) Execute() (*ZoneResponse, error)

type ApiListRecordSetsRequest

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

func (ApiListRecordSetsRequest) ActiveEq

func (ApiListRecordSetsRequest) CreationFinishedGt

func (r ApiListRecordSetsRequest) CreationFinishedGt(creationFinishedGt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) CreationFinishedGte

func (r ApiListRecordSetsRequest) CreationFinishedGte(creationFinishedGte string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) CreationFinishedLt

func (r ApiListRecordSetsRequest) CreationFinishedLt(creationFinishedLt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) CreationFinishedLte

func (r ApiListRecordSetsRequest) CreationFinishedLte(creationFinishedLte string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) CreationStartedGt

func (r ApiListRecordSetsRequest) CreationStartedGt(creationStartedGt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) CreationStartedGte

func (r ApiListRecordSetsRequest) CreationStartedGte(creationStartedGte string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) CreationStartedLt

func (r ApiListRecordSetsRequest) CreationStartedLt(creationStartedLt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) CreationStartedLte

func (r ApiListRecordSetsRequest) CreationStartedLte(creationStartedLte string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) Execute

func (ApiListRecordSetsRequest) NameEq

func (ApiListRecordSetsRequest) NameLike

func (ApiListRecordSetsRequest) OrderByCreationFinished

func (r ApiListRecordSetsRequest) OrderByCreationFinished(orderByCreationFinished string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) OrderByCreationStarted

func (r ApiListRecordSetsRequest) OrderByCreationStarted(orderByCreationStarted string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) OrderByName

func (r ApiListRecordSetsRequest) OrderByName(orderByName string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) OrderByRecordCount

func (r ApiListRecordSetsRequest) OrderByRecordCount(orderByRecordCount string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) OrderByState

func (r ApiListRecordSetsRequest) OrderByState(orderByState string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) OrderByType

func (r ApiListRecordSetsRequest) OrderByType(orderByType string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) OrderByUpdateFinished

func (r ApiListRecordSetsRequest) OrderByUpdateFinished(orderByUpdateFinished string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) OrderByUpdateStarted

func (r ApiListRecordSetsRequest) OrderByUpdateStarted(orderByUpdateStarted string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) Page

func (ApiListRecordSetsRequest) PageSize

func (ApiListRecordSetsRequest) StateEq

func (ApiListRecordSetsRequest) StateNeq

func (ApiListRecordSetsRequest) TypeEq

func (ApiListRecordSetsRequest) UpdateFinishedGt

func (r ApiListRecordSetsRequest) UpdateFinishedGt(updateFinishedGt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) UpdateFinishedGte

func (r ApiListRecordSetsRequest) UpdateFinishedGte(updateFinishedGte string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) UpdateFinishedLt

func (r ApiListRecordSetsRequest) UpdateFinishedLt(updateFinishedLt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) UpdateFinishedLte

func (r ApiListRecordSetsRequest) UpdateFinishedLte(updateFinishedLte string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) UpdateStartedGt

func (r ApiListRecordSetsRequest) UpdateStartedGt(updateStartedGt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) UpdateStartedGte

func (r ApiListRecordSetsRequest) UpdateStartedGte(updateStartedGte string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) UpdateStartedLt

func (r ApiListRecordSetsRequest) UpdateStartedLt(updateStartedLt string) ApiListRecordSetsRequest

func (ApiListRecordSetsRequest) UpdateStartedLte

func (r ApiListRecordSetsRequest) UpdateStartedLte(updateStartedLte string) ApiListRecordSetsRequest

type ApiListZonesRequest

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

func (ApiListZonesRequest) ActiveEq

func (r ApiListZonesRequest) ActiveEq(activeEq bool) ApiListZonesRequest

func (ApiListZonesRequest) CreationFinishedGt

func (r ApiListZonesRequest) CreationFinishedGt(creationFinishedGt string) ApiListZonesRequest

func (ApiListZonesRequest) CreationFinishedGte

func (r ApiListZonesRequest) CreationFinishedGte(creationFinishedGte string) ApiListZonesRequest

func (ApiListZonesRequest) CreationFinishedLt

func (r ApiListZonesRequest) CreationFinishedLt(creationFinishedLt string) ApiListZonesRequest

func (ApiListZonesRequest) CreationFinishedLte

func (r ApiListZonesRequest) CreationFinishedLte(creationFinishedLte string) ApiListZonesRequest

func (ApiListZonesRequest) CreationStartedGt

func (r ApiListZonesRequest) CreationStartedGt(creationStartedGt string) ApiListZonesRequest

func (ApiListZonesRequest) CreationStartedGte

func (r ApiListZonesRequest) CreationStartedGte(creationStartedGte string) ApiListZonesRequest

func (ApiListZonesRequest) CreationStartedLt

func (r ApiListZonesRequest) CreationStartedLt(creationStartedLt string) ApiListZonesRequest

func (ApiListZonesRequest) CreationStartedLte

func (r ApiListZonesRequest) CreationStartedLte(creationStartedLte string) ApiListZonesRequest

func (ApiListZonesRequest) DescriptionEq

func (r ApiListZonesRequest) DescriptionEq(descriptionEq string) ApiListZonesRequest

func (ApiListZonesRequest) DescriptionLike

func (r ApiListZonesRequest) DescriptionLike(descriptionLike string) ApiListZonesRequest

func (ApiListZonesRequest) DescriptionNeq

func (r ApiListZonesRequest) DescriptionNeq(descriptionNeq string) ApiListZonesRequest

func (ApiListZonesRequest) DnsNameEq

func (r ApiListZonesRequest) DnsNameEq(dnsNameEq string) ApiListZonesRequest

func (ApiListZonesRequest) DnsNameLike

func (r ApiListZonesRequest) DnsNameLike(dnsNameLike string) ApiListZonesRequest

func (ApiListZonesRequest) Execute

func (ApiListZonesRequest) IsReverseZoneEq

func (r ApiListZonesRequest) IsReverseZoneEq(isReverseZoneEq bool) ApiListZonesRequest

func (ApiListZonesRequest) LabelKeyEq

func (r ApiListZonesRequest) LabelKeyEq(labelKeyEq []string) ApiListZonesRequest

func (ApiListZonesRequest) LabelValueEq

func (r ApiListZonesRequest) LabelValueEq(labelValueEq []string) ApiListZonesRequest

func (ApiListZonesRequest) NameEq

func (ApiListZonesRequest) NameLike

func (r ApiListZonesRequest) NameLike(nameLike string) ApiListZonesRequest

func (ApiListZonesRequest) NameNeq

func (r ApiListZonesRequest) NameNeq(nameNeq string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByCreationFinished

func (r ApiListZonesRequest) OrderByCreationFinished(orderByCreationFinished string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByCreationStarted

func (r ApiListZonesRequest) OrderByCreationStarted(orderByCreationStarted string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByDescription

func (r ApiListZonesRequest) OrderByDescription(orderByDescription string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByDnsName

func (r ApiListZonesRequest) OrderByDnsName(orderByDnsName string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByName

func (r ApiListZonesRequest) OrderByName(orderByName string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByRecordCount

func (r ApiListZonesRequest) OrderByRecordCount(orderByRecordCount string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByType

func (r ApiListZonesRequest) OrderByType(orderByType string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByUpdateFinished

func (r ApiListZonesRequest) OrderByUpdateFinished(orderByUpdateFinished string) ApiListZonesRequest

func (ApiListZonesRequest) OrderByUpdateStarted

func (r ApiListZonesRequest) OrderByUpdateStarted(orderByUpdateStarted string) ApiListZonesRequest

func (ApiListZonesRequest) Page

func (ApiListZonesRequest) PageSize

func (r ApiListZonesRequest) PageSize(pageSize int32) ApiListZonesRequest

func (ApiListZonesRequest) PrimaryNameServerEq

func (r ApiListZonesRequest) PrimaryNameServerEq(primaryNameServerEq string) ApiListZonesRequest

func (ApiListZonesRequest) PrimaryNameServerLike

func (r ApiListZonesRequest) PrimaryNameServerLike(primaryNameServerLike string) ApiListZonesRequest

func (ApiListZonesRequest) StateEq

func (r ApiListZonesRequest) StateEq(stateEq string) ApiListZonesRequest

func (ApiListZonesRequest) StateNeq

func (r ApiListZonesRequest) StateNeq(stateNeq string) ApiListZonesRequest

func (ApiListZonesRequest) TypeEq

func (ApiListZonesRequest) UpdateFinishedGt

func (r ApiListZonesRequest) UpdateFinishedGt(updateFinishedGt string) ApiListZonesRequest

func (ApiListZonesRequest) UpdateFinishedGte

func (r ApiListZonesRequest) UpdateFinishedGte(updateFinishedGte string) ApiListZonesRequest

func (ApiListZonesRequest) UpdateFinishedLt

func (r ApiListZonesRequest) UpdateFinishedLt(updateFinishedLt string) ApiListZonesRequest

func (ApiListZonesRequest) UpdateFinishedLte

func (r ApiListZonesRequest) UpdateFinishedLte(updateFinishedLte string) ApiListZonesRequest

func (ApiListZonesRequest) UpdateStartedGt

func (r ApiListZonesRequest) UpdateStartedGt(updateStartedGt string) ApiListZonesRequest

func (ApiListZonesRequest) UpdateStartedGte

func (r ApiListZonesRequest) UpdateStartedGte(updateStartedGte string) ApiListZonesRequest

func (ApiListZonesRequest) UpdateStartedLt

func (r ApiListZonesRequest) UpdateStartedLt(updateStartedLt string) ApiListZonesRequest

func (ApiListZonesRequest) UpdateStartedLte

func (r ApiListZonesRequest) UpdateStartedLte(updateStartedLte string) ApiListZonesRequest

type ApiPartialUpdateRecordRequest

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

func (ApiPartialUpdateRecordRequest) Execute

func (ApiPartialUpdateRecordRequest) PartialUpdateRecordPayload

func (r ApiPartialUpdateRecordRequest) PartialUpdateRecordPayload(partialUpdateRecordPayload PartialUpdateRecordPayload) ApiPartialUpdateRecordRequest

type ApiPartialUpdateRecordSetRequest

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

func (ApiPartialUpdateRecordSetRequest) Execute

func (ApiPartialUpdateRecordSetRequest) PartialUpdateRecordSetPayload

func (r ApiPartialUpdateRecordSetRequest) PartialUpdateRecordSetPayload(partialUpdateRecordSetPayload PartialUpdateRecordSetPayload) ApiPartialUpdateRecordSetRequest

type ApiPartialUpdateZoneRequest

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

func (ApiPartialUpdateZoneRequest) Execute

func (ApiPartialUpdateZoneRequest) PartialUpdateZonePayload

func (r ApiPartialUpdateZoneRequest) PartialUpdateZonePayload(partialUpdateZonePayload PartialUpdateZonePayload) ApiPartialUpdateZoneRequest

type CreateRecordSetPayload

type CreateRecordSetPayload struct {
	// user comment
	Comment *string `json:"comment,omitempty"`
	// name of the record which should be a valid domain according to rfc1035 Section 2.3.4
	// REQUIRED
	Name *string `json:"name"`
	// records
	// REQUIRED
	Records *[]RecordPayload `json:"records"`
	// time to live. If nothing provided we will set the zone ttl.
	Ttl *int64 `json:"ttl,omitempty"`
	// record set type
	// REQUIRED
	Type *string `json:"type"`
}

type CreateZonePayload

type CreateZonePayload struct {
	// access control list
	Acl *string `json:"acl,omitempty"`
	// contact e-mail for the zone
	ContactEmail *string `json:"contactEmail,omitempty"`
	// default time to live
	DefaultTTL *int64 `json:"defaultTTL,omitempty"`
	// description of the zone
	Description *string `json:"description,omitempty"`
	// zone name
	// REQUIRED
	DnsName *string `json:"dnsName"`
	// expire time
	ExpireTime *int64 `json:"expireTime,omitempty"`
	// if the zone is a reverse zone or not
	IsReverseZone *bool `json:"isReverseZone,omitempty"`
	// user given name
	// REQUIRED
	Name *string `json:"name"`
	// negative caching
	NegativeCache *int64 `json:"negativeCache,omitempty"`
	// primary name server for secondary zone
	Primaries *[]string `json:"primaries,omitempty"`
	// refresh time
	RefreshTime *int64 `json:"refreshTime,omitempty"`
	// retry time
	RetryTime *int64 `json:"retryTime,omitempty"`
	// zone type
	Type *string `json:"type,omitempty"`
}

type DefaultApiService

type DefaultApiService service

DefaultApiService DefaultApi service

type Label

type Label struct {
	// REQUIRED
	Key *string `json:"key"`
	// REQUIRED
	Value *string `json:"value"`
}

type ListRecordSetsResponse

type ListRecordSetsResponse struct {
	// REQUIRED
	ItemsPerPage *int64  `json:"itemsPerPage"`
	Message      *string `json:"message,omitempty"`
	// REQUIRED
	RrSets *[]RecordSet `json:"rrSets"`
	// REQUIRED
	TotalItems *int64 `json:"totalItems"`
	// REQUIRED
	TotalPages *int64 `json:"totalPages"`
}

type ListZonesResponse

type ListZonesResponse struct {
	// REQUIRED
	ItemsPerPage *int64  `json:"itemsPerPage"`
	Message      *string `json:"message,omitempty"`
	// REQUIRED
	TotalItems *int64 `json:"totalItems"`
	// REQUIRED
	TotalPages *int64 `json:"totalPages"`
	// REQUIRED
	Zones *[]Zone `json:"zones"`
}

type MappedNullable

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

type Message

type Message struct {
	Message *string `json:"message,omitempty"`
}

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 NullableFloat32

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

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

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

func (*NullableFloat32) Set

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

func (*NullableFloat32) UnmarshalJSON

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

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

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

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

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

func (*NullableFloat64) Set

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

func (*NullableFloat64) UnmarshalJSON

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

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

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

func (*NullableInt) UnmarshalJSON

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

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

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

func (*NullableInt32) UnmarshalJSON

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

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

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

func (*NullableInt64) UnmarshalJSON

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

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableString

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

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

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

func (*NullableString) Set

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

func (*NullableString) UnmarshalJSON

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

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

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

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

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

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

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

func (*NullableTime) Set

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

func (*NullableTime) UnmarshalJSON

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

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type PartialUpdateRecordPayload

type PartialUpdateRecordPayload struct {
	// REQUIRED
	Action *string `json:"action"`
	// records
	// REQUIRED
	Records *[]RecordPayload `json:"records"`
}

type PartialUpdateRecordSetPayload

type PartialUpdateRecordSetPayload struct {
	// user comment
	Comment *string `json:"comment,omitempty"`
	// rfc1035 Section 2.3.4
	Name *string `json:"name,omitempty"`
	// records
	Records *[]RecordPayload `json:"records,omitempty"`
	// time to live
	Ttl *int64 `json:"ttl,omitempty"`
}

type PartialUpdateZonePayload

type PartialUpdateZonePayload struct {
	// access control list
	Acl *string `json:"acl,omitempty"`
	// contact e-mail for the zone
	ContactEmail *string `json:"contactEmail,omitempty"`
	// default time to live
	DefaultTTL *int64 `json:"defaultTTL,omitempty"`
	// description of the zone
	Description *string `json:"description,omitempty"`
	// expire time
	ExpireTime *int64 `json:"expireTime,omitempty"`
	// user given name
	Name *string `json:"name,omitempty"`
	// negative caching
	NegativeCache *int64 `json:"negativeCache,omitempty"`
	// primary name server for secondary zone
	Primaries *[]string `json:"primaries,omitempty"`
	// refresh time
	RefreshTime *int64 `json:"refreshTime,omitempty"`
	// retry time
	RetryTime *int64 `json:"retryTime,omitempty"`
}

type Record

type Record struct {
	// content of the record
	// REQUIRED
	Content *string `json:"content"`
	// rr set id
	// REQUIRED
	Id *string `json:"id"`
}

type RecordPayload

type RecordPayload struct {
	// content of the record
	// REQUIRED
	Content *string `json:"content"`
}

type RecordSet

type RecordSet struct {
	// if the record set is active or not
	Active *bool `json:"active,omitempty"`
	// comment
	Comment *string `json:"comment,omitempty"`
	// when record set creation finished
	// REQUIRED
	CreationFinished *string `json:"creationFinished"`
	// when record set creation started
	// REQUIRED
	CreationStarted *string `json:"creationStarted"`
	// Error shows error in case create/update/delete failed
	Error *string `json:"error,omitempty"`
	// rr set id
	// REQUIRED
	Id *string `json:"id"`
	// name of the record which should be a valid domain according to rfc1035 Section 2.3.4
	// REQUIRED
	Name *string `json:"name"`
	// records
	// REQUIRED
	Records *[]Record `json:"records"`
	// record set state
	// REQUIRED
	State *string `json:"state"`
	// time to live
	// REQUIRED
	Ttl *int64 `json:"ttl"`
	// record set type
	// REQUIRED
	Type *string `json:"type"`
	// when record set update/deletion finished
	// REQUIRED
	UpdateFinished *string `json:"updateFinished"`
	// when record set update/deletion started
	// REQUIRED
	UpdateStarted *string `json:"updateStarted"`
}

type RecordSetResponse

type RecordSetResponse struct {
	Message *string `json:"message,omitempty"`
	// REQUIRED
	Rrset *RecordSet `json:"rrset"`
}

type Zone

type Zone struct {
	// access control list
	// REQUIRED
	Acl    *string `json:"acl"`
	Active *bool   `json:"active,omitempty"`
	// contact email from soa record
	ContactEmail *string `json:"contactEmail,omitempty"`
	// when zone creation finished
	// REQUIRED
	CreationFinished *string `json:"creationFinished"`
	// when zone creation started
	// REQUIRED
	CreationStarted *string `json:"creationStarted"`
	// default time to live
	// REQUIRED
	DefaultTTL *int64 `json:"defaultTTL"`
	// description of the zone
	Description *string `json:"description,omitempty"`
	// zone name
	// REQUIRED
	DnsName *string `json:"dnsName"`
	// Error shows error in case create/update/delete failed
	Error *string `json:"error,omitempty"`
	// expire time
	// REQUIRED
	ExpireTime *int64 `json:"expireTime"`
	// zone id
	// REQUIRED
	Id *string `json:"id"`
	// if the zone is a reverse zone or not
	IsReverseZone *bool    `json:"isReverseZone,omitempty"`
	Labels        *[]Label `json:"labels,omitempty"`
	// user given name
	// REQUIRED
	Name *string `json:"name"`
	// negative caching
	// REQUIRED
	NegativeCache *int64 `json:"negativeCache"`
	// primary name server for secondary zone
	Primaries *[]string `json:"primaries,omitempty"`
	// primary name server. FQDN
	// REQUIRED
	PrimaryNameServer *string `json:"primaryNameServer"`
	// record count how many records are in the zone
	RecordCount *int64 `json:"recordCount,omitempty"`
	// refresh time
	// REQUIRED
	RefreshTime *int64 `json:"refreshTime"`
	// retry time
	// REQUIRED
	RetryTime *int64 `json:"retryTime"`
	// serial number
	// REQUIRED
	SerialNumber *int64 `json:"serialNumber"`
	// zone state
	// REQUIRED
	State *string `json:"state"`
	// zone type
	// REQUIRED
	Type *string `json:"type"`
	// when zone update/deletion finished
	// REQUIRED
	UpdateFinished *string `json:"updateFinished"`
	// when zone update/deletion started
	// REQUIRED
	UpdateStarted *string `json:"updateStarted"`
	// visibility of the zone
	// REQUIRED
	Visibility *string `json:"visibility"`
}

type ZoneResponse

type ZoneResponse struct {
	Message *string `json:"message,omitempty"`
	// REQUIRED
	Zone *Zone `json:"zone"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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