models

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CryptokeyKeytypeKsk captures enum value "ksk"
	CryptokeyKeytypeKsk string = "ksk"

	// CryptokeyKeytypeZsk captures enum value "zsk"
	CryptokeyKeytypeZsk string = "zsk"

	// CryptokeyKeytypeCsk captures enum value "csk"
	CryptokeyKeytypeCsk string = "csk"
)
View Source
const (

	// ZoneKindNative captures enum value "Native"
	ZoneKindNative string = "Native"

	// ZoneKindMaster captures enum value "Master"
	ZoneKindMaster string = "Master"

	// ZoneKindSlave captures enum value "Slave"
	ZoneKindSlave string = "Slave"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Autoprimary

type Autoprimary struct {

	// Account name for the autoprimary server
	Account string `json:"account,omitempty"`

	// IP address of the autoprimary server
	IP string `json:"ip,omitempty"`

	// DNS name of the autoprimary server
	Nameserver string `json:"nameserver,omitempty"`
}

Autoprimary Autoprimary server

An autoprimary server that can provision new domains.

swagger:model Autoprimary

func (*Autoprimary) ContextValidate

func (m *Autoprimary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this autoprimary based on context it is used

func (*Autoprimary) MarshalBinary

func (m *Autoprimary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Autoprimary) UnmarshalBinary

func (m *Autoprimary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Autoprimary) Validate

func (m *Autoprimary) Validate(formats strfmt.Registry) error

Validate validates this autoprimary

type CacheFlushResult

type CacheFlushResult struct {

	// Amount of entries flushed
	Count float64 `json:"count,omitempty"`

	// A message about the result like "Flushed cache"
	Result string `json:"result,omitempty"`
}

CacheFlushResult CacheFlushResult

The result of a cache-flush

swagger:model CacheFlushResult

func (*CacheFlushResult) ContextValidate

func (m *CacheFlushResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cache flush result based on context it is used

func (*CacheFlushResult) MarshalBinary

func (m *CacheFlushResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*CacheFlushResult) UnmarshalBinary

func (m *CacheFlushResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*CacheFlushResult) Validate

func (m *CacheFlushResult) Validate(formats strfmt.Registry) error

Validate validates this cache flush result

type Comment

type Comment struct {

	// Name of an account that added the comment
	Account string `json:"account,omitempty"`

	// The actual comment
	Content string `json:"content,omitempty"`

	// Timestamp of the last change to the comment
	ModifiedAt int64 `json:"modified_at,omitempty"`
}

Comment Comment

A comment about an RRSet.

swagger:model Comment

func (*Comment) ContextValidate

func (m *Comment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this comment based on context it is used

func (*Comment) MarshalBinary

func (m *Comment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Comment) UnmarshalBinary

func (m *Comment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Comment) Validate

func (m *Comment) Validate(formats strfmt.Registry) error

Validate validates this comment

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 ConfigSetting

swagger:model ConfigSetting

func (*ConfigSetting) ContextValidate

func (m *ConfigSetting) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this config setting based on context it is used

func (*ConfigSetting) MarshalBinary

func (m *ConfigSetting) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ConfigSetting) UnmarshalBinary

func (m *ConfigSetting) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ConfigSetting) Validate

func (m *ConfigSetting) Validate(formats strfmt.Registry) error

Validate validates this config setting

type Cryptokey

type Cryptokey struct {

	// Whether or not the key is in active use
	Active bool `json:"active,omitempty"`

	// The name of the algorithm of the key, should be a mnemonic
	Algorithm string `json:"algorithm,omitempty"`

	// The size of the key
	Bits int64 `json:"bits,omitempty"`

	// An array of DS records for this key, filtered by CDS publication settings
	Cds []string `json:"cds"`

	// The DNSKEY record for this key
	Dnskey string `json:"dnskey,omitempty"`

	// An array of DS records for this key
	Ds []string `json:"ds"`

	// The internal identifier, read only
	ID int64 `json:"id,omitempty"`

	// keytype
	// Enum: [ksk zsk csk]
	Keytype string `json:"keytype,omitempty"`

	// The private key in ISC format
	Privatekey string `json:"privatekey,omitempty"`

	// Whether or not the DNSKEY record is published in the zone
	Published bool `json:"published,omitempty"`

	// set to "Cryptokey"
	Type string `json:"type,omitempty"`
}

Cryptokey Cryptokey

Describes a DNSSEC cryptographic key

swagger:model Cryptokey

func (*Cryptokey) ContextValidate

func (m *Cryptokey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this cryptokey based on context it is used

func (*Cryptokey) MarshalBinary

func (m *Cryptokey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Cryptokey) UnmarshalBinary

func (m *Cryptokey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Cryptokey) Validate

func (m *Cryptokey) Validate(formats strfmt.Registry) error

Validate validates this cryptokey

type Error

type Error struct {

	// A human readable error message
	// Required: true
	Error *string `json:"error"`

	// Optional array of multiple errors encountered during processing
	Errors []string `json:"errors"`
}

Error Error

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

swagger:model Error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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"`
}

MapStatisticItem MapStatisticItem

swagger:model MapStatisticItem

func (*MapStatisticItem) ContextValidate

func (m *MapStatisticItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this map statistic item based on the context it is used

func (*MapStatisticItem) MarshalBinary

func (m *MapStatisticItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MapStatisticItem) UnmarshalBinary

func (m *MapStatisticItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MapStatisticItem) Validate

func (m *MapStatisticItem) Validate(formats strfmt.Registry) error

Validate validates this map statistic item

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"`
}

Metadata Metadata

Represents zone metadata

swagger:model Metadata

func (*Metadata) ContextValidate

func (m *Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metadata based on context it is used

func (*Metadata) MarshalBinary

func (m *Metadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metadata) UnmarshalBinary

func (m *Metadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metadata) Validate

func (m *Metadata) Validate(formats strfmt.Registry) error

Validate validates this metadata

type RRSet

type RRSet struct {

	// 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.
	// Required: true
	Changetype *string `json:"changetype"`

	// 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"`

	// Name for record set (e.g. “www.powerdns.com.”)
	// Required: true
	Name *string `json:"name"`

	// 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).
	// Required: true
	Records []*Record `json:"records"`

	// DNS TTL of the records, in seconds. MUST NOT be included when changetype is set to “DELETE”.
	// Required: true
	TTL *int64 `json:"ttl"`

	// Type of this record (e.g. “A”, “PTR”, “MX”)
	// Required: true
	Type *string `json:"type"`
}

RRSet RRSet

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

swagger:model RRSet

func (*RRSet) ContextValidate

func (m *RRSet) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this r r set based on the context it is used

func (*RRSet) MarshalBinary

func (m *RRSet) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RRSet) UnmarshalBinary

func (m *RRSet) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RRSet) Validate

func (m *RRSet) Validate(formats strfmt.Registry) error

Validate validates this r r set

type Record

type Record struct {

	// The content of this record
	// Required: true
	Content *string `json:"content"`

	// Whether or not this record is disabled. When unset, the record is not disabled
	Disabled bool `json:"disabled,omitempty"`
}

Record Record

The RREntry object represents a single record.

swagger:model Record

func (*Record) ContextValidate

func (m *Record) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this record based on context it is used

func (*Record) MarshalBinary

func (m *Record) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Record) UnmarshalBinary

func (m *Record) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Record) Validate

func (m *Record) Validate(formats strfmt.Registry) error

Validate validates this record

type RingStatisticItem

type RingStatisticItem struct {

	// Item name
	Name string `json:"name,omitempty"`

	// Ring size
	Size int64 `json:"size,omitempty"`

	// Set to "RingStatisticItem"
	Type string `json:"type,omitempty"`

	// Named values
	Value []*SimpleStatisticItem `json:"value"`
}

RingStatisticItem RingStatisticItem

swagger:model RingStatisticItem

func (*RingStatisticItem) ContextValidate

func (m *RingStatisticItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ring statistic item based on the context it is used

func (*RingStatisticItem) MarshalBinary

func (m *RingStatisticItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RingStatisticItem) UnmarshalBinary

func (m *RingStatisticItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RingStatisticItem) Validate

func (m *RingStatisticItem) Validate(formats strfmt.Registry) error

Validate validates this ring statistic item

type SearchResult

type SearchResult struct {

	// content
	Content string `json:"content,omitempty"`

	// disabled
	Disabled bool `json:"disabled,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// set to one of "record, zone, comment"
	ObjectType string `json:"object_type,omitempty"`

	// ttl
	TTL int64 `json:"ttl,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// zone
	Zone string `json:"zone,omitempty"`

	// zone id
	ZoneID string `json:"zone_id,omitempty"`
}

SearchResult SearchResult

swagger:model SearchResult

func (*SearchResult) ContextValidate

func (m *SearchResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search result based on context it is used

func (*SearchResult) MarshalBinary

func (m *SearchResult) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchResult) UnmarshalBinary

func (m *SearchResult) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchResult) Validate

func (m *SearchResult) Validate(formats strfmt.Registry) error

Validate validates this search result

type SearchResultComment

type SearchResultComment struct {

	// content
	Content string `json:"content,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// set to "comment"
	ObjectType string `json:"object_type,omitempty"`

	// zone
	Zone string `json:"zone,omitempty"`

	// zone id
	ZoneID string `json:"zone_id,omitempty"`
}

SearchResultComment SearchResultComment

swagger:model SearchResultComment

func (*SearchResultComment) ContextValidate

func (m *SearchResultComment) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search result comment based on context it is used

func (*SearchResultComment) MarshalBinary

func (m *SearchResultComment) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchResultComment) UnmarshalBinary

func (m *SearchResultComment) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchResultComment) Validate

func (m *SearchResultComment) Validate(formats strfmt.Registry) error

Validate validates this search result comment

type SearchResultRecord

type SearchResultRecord struct {

	// content
	Content string `json:"content,omitempty"`

	// disabled
	Disabled bool `json:"disabled,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// set to "record"
	ObjectType string `json:"object_type,omitempty"`

	// ttl
	TTL int64 `json:"ttl,omitempty"`

	// type
	Type string `json:"type,omitempty"`

	// zone
	Zone string `json:"zone,omitempty"`

	// zone id
	ZoneID string `json:"zone_id,omitempty"`
}

SearchResultRecord SearchResultRecord

swagger:model SearchResultRecord

func (*SearchResultRecord) ContextValidate

func (m *SearchResultRecord) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search result record based on context it is used

func (*SearchResultRecord) MarshalBinary

func (m *SearchResultRecord) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchResultRecord) UnmarshalBinary

func (m *SearchResultRecord) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchResultRecord) Validate

func (m *SearchResultRecord) Validate(formats strfmt.Registry) error

Validate validates this search result record

type SearchResultZone

type SearchResultZone struct {

	// name
	Name string `json:"name,omitempty"`

	// set to "zone"
	ObjectType string `json:"object_type,omitempty"`

	// zone id
	ZoneID string `json:"zone_id,omitempty"`
}

SearchResultZone SearchResultZone

swagger:model SearchResultZone

func (*SearchResultZone) ContextValidate

func (m *SearchResultZone) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this search result zone based on context it is used

func (*SearchResultZone) MarshalBinary

func (m *SearchResultZone) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SearchResultZone) UnmarshalBinary

func (m *SearchResultZone) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SearchResultZone) Validate

func (m *SearchResultZone) Validate(formats strfmt.Registry) error

Validate validates this search result zone

type SearchResults

type SearchResults []*SearchResult

SearchResults search results

swagger:model SearchResults

func (SearchResults) ContextValidate

func (m SearchResults) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this search results based on the context it is used

func (SearchResults) Validate

func (m SearchResults) Validate(formats strfmt.Registry) error

Validate validates this search results

type Server

type Server struct {

	// The API endpoint for this server’s configuration
	ConfigURL string `json:"config_url,omitempty"`

	// “recursor” for the PowerDNS Recursor and “authoritative” for the Authoritative Server
	DaemonType string `json:"daemon_type,omitempty"`

	// The id of the server, “localhost”
	ID string `json:"id,omitempty"`

	// Set to “Server”
	Type string `json:"type,omitempty"`

	// The API endpoint for this server
	URL string `json:"url,omitempty"`

	// The version of the server software
	Version string `json:"version,omitempty"`

	// The API endpoint for this server’s zones
	ZonesURL string `json:"zones_url,omitempty"`
}

Server Server

swagger:model Server

func (*Server) ContextValidate

func (m *Server) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this server based on context it is used

func (*Server) MarshalBinary

func (m *Server) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Server) UnmarshalBinary

func (m *Server) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Server) Validate

func (m *Server) Validate(formats strfmt.Registry) error

Validate validates this server

type Servers

type Servers []*Server

Servers servers

swagger:model Servers

func (Servers) ContextValidate

func (m Servers) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this servers based on the context it is used

func (Servers) Validate

func (m Servers) Validate(formats strfmt.Registry) error

Validate validates this servers

type SimpleStatisticItem

type SimpleStatisticItem struct {

	// Item name
	Name string `json:"name,omitempty"`

	// Item value
	Value string `json:"value,omitempty"`
}

SimpleStatisticItem SimpleStatisticItem

swagger:model SimpleStatisticItem

func (*SimpleStatisticItem) ContextValidate

func (m *SimpleStatisticItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this simple statistic item based on context it is used

func (*SimpleStatisticItem) MarshalBinary

func (m *SimpleStatisticItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SimpleStatisticItem) UnmarshalBinary

func (m *SimpleStatisticItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SimpleStatisticItem) Validate

func (m *SimpleStatisticItem) Validate(formats strfmt.Registry) error

Validate validates this simple statistic item

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 StatisticItem

swagger:model StatisticItem

func (*StatisticItem) ContextValidate

func (m *StatisticItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this statistic item based on context it is used

func (*StatisticItem) MarshalBinary

func (m *StatisticItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*StatisticItem) UnmarshalBinary

func (m *StatisticItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*StatisticItem) Validate

func (m *StatisticItem) Validate(formats strfmt.Registry) error

Validate validates this statistic item

type TSIGKey

type TSIGKey struct {

	// The algorithm of the TSIG key
	Algorithm string `json:"algorithm,omitempty"`

	// The ID for this key, used in the TSIGkey URL endpoint.
	// Read Only: true
	ID string `json:"id,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"`

	// The name of the key
	Name string `json:"name,omitempty"`

	// Set to "TSIGKey"
	// Read Only: true
	Type string `json:"type,omitempty"`
}

TSIGKey TSIGKey

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

swagger:model TSIGKey

func (*TSIGKey) ContextValidate

func (m *TSIGKey) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this t s i g key based on the context it is used

func (*TSIGKey) MarshalBinary

func (m *TSIGKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TSIGKey) UnmarshalBinary

func (m *TSIGKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TSIGKey) Validate

func (m *TSIGKey) Validate(formats strfmt.Registry) error

Validate validates this t s i g key

type Zone

type Zone struct {

	// MAY be set. Its value is defined by local policy
	Account string `json:"account,omitempty"`

	//  Whether or not the zone will be rectified on data changes via the API
	APIRectify bool `json:"api_rectify,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 SOA serial as seen in query responses. Calculated using the SOA-EDIT metadata, default-soa-edit and default-soa-edit-signed settings
	EditedSerial int64 `json:"edited_serial,omitempty"`

	// 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"`

	// Zone kind, one of “Native”, “Master”, “Slave”
	// Enum: [Native Master Slave]
	Kind string `json:"kind,omitempty"`

	// The id of the TSIG keys used for master operation in this zone
	MasterTsigKeyIds []string `json:"master_tsig_key_ids"`

	//  List of IP addresses configured as a master for this zone (“Slave” type zones only)
	Masters []string `json:"masters"`

	// Name of the zone (e.g. “example.com.”) MUST have a trailing dot
	Name string `json:"name,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"`

	// The SOA serial notifications have been sent out for
	NotifiedSerial int64 `json:"notified_serial,omitempty"`

	// Whether or not the zone uses NSEC3 narrow
	Nsec3narrow bool `json:"nsec3narrow,omitempty"`

	// The NSEC3PARAM record
	Nsec3param string `json:"nsec3param,omitempty"`

	// Whether or not the zone is pre-signed
	Presigned bool `json:"presigned,omitempty"`

	// RRSets in this zone (for zones/{zone_id} endpoint only; omitted during GET on the .../zones list endpoint)
	Rrsets []*RRSet `json:"rrsets"`

	// The SOA serial number
	Serial int64 `json:"serial,omitempty"`

	// The id of the TSIG keys used for slave operation in this zone
	SlaveTsigKeyIds []string `json:"slave_tsig_key_ids"`

	// The SOA-EDIT metadata item
	SoaEdit string `json:"soa_edit,omitempty"`

	// The SOA-EDIT-API metadata item
	SoaEditAPI string `json:"soa_edit_api,omitempty"`

	// Set to “Zone”
	Type string `json:"type,omitempty"`

	// API endpoint for this zone
	URL string `json:"url,omitempty"`

	// MAY contain a BIND-style zone file when creating a zone
	Zone string `json:"zone,omitempty"`
}

Zone Zone

This represents an authoritative DNS Zone.

swagger:model Zone

func (*Zone) ContextValidate

func (m *Zone) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this zone based on the context it is used

func (*Zone) MarshalBinary

func (m *Zone) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Zone) UnmarshalBinary

func (m *Zone) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Zone) Validate

func (m *Zone) Validate(formats strfmt.Registry) error

Validate validates this zone

type Zones

type Zones []*Zone

Zones zones

swagger:model Zones

func (Zones) ContextValidate

func (m Zones) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this zones based on the context it is used

func (Zones) Validate

func (m Zones) Validate(formats strfmt.Registry) error

Validate validates this zones

Jump to

Keyboard shortcuts

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