dns_service

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for dns service API

func (*Client) DNSServiceCreateNameserver

func (a *Client) DNSServiceCreateNameserver(params *DNSServiceCreateNameserverParams, opts ...ClientOption) (*DNSServiceCreateNameserverOK, error)

DNSServiceCreateNameserver creates the nameserer

func (*Client) DNSServiceDeleteNameserver

func (a *Client) DNSServiceDeleteNameserver(params *DNSServiceDeleteNameserverParams, opts ...ClientOption) (*DNSServiceDeleteNameserverOK, error)

DNSServiceDeleteNameserver deletes the nameserver

func (*Client) DNSServiceGetNameserverAt

func (a *Client) DNSServiceGetNameserverAt(params *DNSServiceGetNameserverAtParams, opts ...ClientOption) (*DNSServiceGetNameserverAtOK, error)

DNSServiceGetNameserverAt gets nameserver by index

func (*Client) DNSServiceGetNameserverList

func (a *Client) DNSServiceGetNameserverList(params *DNSServiceGetNameserverListParams, opts ...ClientOption) (*DNSServiceGetNameserverListOK, error)

DNSServiceGetNameserverList gets all used nameservers

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption may be used to customize the behavior of Client methods.

type ClientService

type ClientService interface {
	DNSServiceCreateNameserver(params *DNSServiceCreateNameserverParams, opts ...ClientOption) (*DNSServiceCreateNameserverOK, error)

	DNSServiceDeleteNameserver(params *DNSServiceDeleteNameserverParams, opts ...ClientOption) (*DNSServiceDeleteNameserverOK, error)

	DNSServiceGetNameserverAt(params *DNSServiceGetNameserverAtParams, opts ...ClientOption) (*DNSServiceGetNameserverAtOK, error)

	DNSServiceGetNameserverList(params *DNSServiceGetNameserverListParams, opts ...ClientOption) (*DNSServiceGetNameserverListOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new dns service API client.

func NewClientWithBasicAuth

func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService

New creates a new dns service API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.

func NewClientWithBearerToken

func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService

New creates a new dns service API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.

type DNSServiceCreateNameserverDefault

type DNSServiceCreateNameserverDefault struct {
	Payload *swagger.RPCStatus
	// contains filtered or unexported fields
}

DNSServiceCreateNameserverDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDNSServiceCreateNameserverDefault

func NewDNSServiceCreateNameserverDefault(code int) *DNSServiceCreateNameserverDefault

NewDNSServiceCreateNameserverDefault creates a DNSServiceCreateNameserverDefault with default headers values

func (*DNSServiceCreateNameserverDefault) Code

Code gets the status code for the Dns service create nameserver default response

func (*DNSServiceCreateNameserverDefault) Error

func (*DNSServiceCreateNameserverDefault) GetPayload

func (*DNSServiceCreateNameserverDefault) IsClientError

func (o *DNSServiceCreateNameserverDefault) IsClientError() bool

IsClientError returns true when this Dns service create nameserver default response has a 4xx status code

func (*DNSServiceCreateNameserverDefault) IsCode

func (o *DNSServiceCreateNameserverDefault) IsCode(code int) bool

IsCode returns true when this Dns service create nameserver default response a status code equal to that given

func (*DNSServiceCreateNameserverDefault) IsRedirect

func (o *DNSServiceCreateNameserverDefault) IsRedirect() bool

IsRedirect returns true when this Dns service create nameserver default response has a 3xx status code

func (*DNSServiceCreateNameserverDefault) IsServerError

func (o *DNSServiceCreateNameserverDefault) IsServerError() bool

IsServerError returns true when this Dns service create nameserver default response has a 5xx status code

func (*DNSServiceCreateNameserverDefault) IsSuccess

func (o *DNSServiceCreateNameserverDefault) IsSuccess() bool

IsSuccess returns true when this Dns service create nameserver default response has a 2xx status code

func (*DNSServiceCreateNameserverDefault) String

type DNSServiceCreateNameserverOK

type DNSServiceCreateNameserverOK struct {
	Payload *swagger.V1NameserverResponse
}

DNSServiceCreateNameserverOK describes a response with status code 200, with default header values.

A successful response.

func NewDNSServiceCreateNameserverOK

func NewDNSServiceCreateNameserverOK() *DNSServiceCreateNameserverOK

NewDNSServiceCreateNameserverOK creates a DNSServiceCreateNameserverOK with default headers values

func (*DNSServiceCreateNameserverOK) Code

Code gets the status code for the dns service create nameserver o k response

func (*DNSServiceCreateNameserverOK) Error

func (*DNSServiceCreateNameserverOK) GetPayload

func (*DNSServiceCreateNameserverOK) IsClientError

func (o *DNSServiceCreateNameserverOK) IsClientError() bool

IsClientError returns true when this dns service create nameserver o k response has a 4xx status code

func (*DNSServiceCreateNameserverOK) IsCode

func (o *DNSServiceCreateNameserverOK) IsCode(code int) bool

IsCode returns true when this dns service create nameserver o k response a status code equal to that given

func (*DNSServiceCreateNameserverOK) IsRedirect

func (o *DNSServiceCreateNameserverOK) IsRedirect() bool

IsRedirect returns true when this dns service create nameserver o k response has a 3xx status code

func (*DNSServiceCreateNameserverOK) IsServerError

func (o *DNSServiceCreateNameserverOK) IsServerError() bool

IsServerError returns true when this dns service create nameserver o k response has a 5xx status code

func (*DNSServiceCreateNameserverOK) IsSuccess

func (o *DNSServiceCreateNameserverOK) IsSuccess() bool

IsSuccess returns true when this dns service create nameserver o k response has a 2xx status code

func (*DNSServiceCreateNameserverOK) String

type DNSServiceCreateNameserverParams

type DNSServiceCreateNameserverParams struct {

	/* Address.

	   Internet address of the name server, either IPv4 or IPv6.
	*/
	Address string

	/* Checksum.

	     The last received checksum from GetNameserverList().
	Required if Index field is set.

	     Format: int64
	*/
	Checksum *int64

	/* Index.

	     Index of the nameserver (can be received from GetNameserverList()).
	If set, inserts nameserver at specified index.
	Otherwise, puts nameserver after the last one.

	     Format: int32
	*/
	Index *int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DNSServiceCreateNameserverParams contains all the parameters to send to the API endpoint

for the Dns service create nameserver operation.

Typically these are written to a http.Request.

func NewDNSServiceCreateNameserverParams

func NewDNSServiceCreateNameserverParams() *DNSServiceCreateNameserverParams

NewDNSServiceCreateNameserverParams creates a new DNSServiceCreateNameserverParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDNSServiceCreateNameserverParamsWithContext

func NewDNSServiceCreateNameserverParamsWithContext(ctx context.Context) *DNSServiceCreateNameserverParams

NewDNSServiceCreateNameserverParamsWithContext creates a new DNSServiceCreateNameserverParams object with the ability to set a context for a request.

func NewDNSServiceCreateNameserverParamsWithHTTPClient

func NewDNSServiceCreateNameserverParamsWithHTTPClient(client *http.Client) *DNSServiceCreateNameserverParams

NewDNSServiceCreateNameserverParamsWithHTTPClient creates a new DNSServiceCreateNameserverParams object with the ability to set a custom HTTPClient for a request.

func NewDNSServiceCreateNameserverParamsWithTimeout

func NewDNSServiceCreateNameserverParamsWithTimeout(timeout time.Duration) *DNSServiceCreateNameserverParams

NewDNSServiceCreateNameserverParamsWithTimeout creates a new DNSServiceCreateNameserverParams object with the ability to set a timeout on a request.

func (*DNSServiceCreateNameserverParams) SetAddress added in v0.0.10

func (o *DNSServiceCreateNameserverParams) SetAddress(address string)

SetAddress adds the address to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) SetChecksum added in v0.0.10

func (o *DNSServiceCreateNameserverParams) SetChecksum(checksum *int64)

SetChecksum adds the checksum to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) SetContext

SetContext adds the context to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) SetDefaults

func (o *DNSServiceCreateNameserverParams) SetDefaults()

SetDefaults hydrates default values in the Dns service create nameserver params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceCreateNameserverParams) SetHTTPClient

func (o *DNSServiceCreateNameserverParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) SetIndex added in v0.0.10

func (o *DNSServiceCreateNameserverParams) SetIndex(index *int32)

SetIndex adds the index to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) SetTimeout

func (o *DNSServiceCreateNameserverParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) WithAddress added in v0.0.10

WithAddress adds the address to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) WithChecksum added in v0.0.10

WithChecksum adds the checksum to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) WithContext

WithContext adds the context to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) WithDefaults

WithDefaults hydrates default values in the Dns service create nameserver params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceCreateNameserverParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) WithIndex added in v0.0.10

WithIndex adds the index to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) WithTimeout

WithTimeout adds the timeout to the Dns service create nameserver params

func (*DNSServiceCreateNameserverParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DNSServiceCreateNameserverReader

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

DNSServiceCreateNameserverReader is a Reader for the DNSServiceCreateNameserver structure.

func (*DNSServiceCreateNameserverReader) ReadResponse

func (o *DNSServiceCreateNameserverReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DNSServiceDeleteNameserverDefault

type DNSServiceDeleteNameserverDefault struct {
	Payload *swagger.RPCStatus
	// contains filtered or unexported fields
}

DNSServiceDeleteNameserverDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDNSServiceDeleteNameserverDefault

func NewDNSServiceDeleteNameserverDefault(code int) *DNSServiceDeleteNameserverDefault

NewDNSServiceDeleteNameserverDefault creates a DNSServiceDeleteNameserverDefault with default headers values

func (*DNSServiceDeleteNameserverDefault) Code

Code gets the status code for the Dns service delete nameserver default response

func (*DNSServiceDeleteNameserverDefault) Error

func (*DNSServiceDeleteNameserverDefault) GetPayload

func (*DNSServiceDeleteNameserverDefault) IsClientError

func (o *DNSServiceDeleteNameserverDefault) IsClientError() bool

IsClientError returns true when this Dns service delete nameserver default response has a 4xx status code

func (*DNSServiceDeleteNameserverDefault) IsCode

func (o *DNSServiceDeleteNameserverDefault) IsCode(code int) bool

IsCode returns true when this Dns service delete nameserver default response a status code equal to that given

func (*DNSServiceDeleteNameserverDefault) IsRedirect

func (o *DNSServiceDeleteNameserverDefault) IsRedirect() bool

IsRedirect returns true when this Dns service delete nameserver default response has a 3xx status code

func (*DNSServiceDeleteNameserverDefault) IsServerError

func (o *DNSServiceDeleteNameserverDefault) IsServerError() bool

IsServerError returns true when this Dns service delete nameserver default response has a 5xx status code

func (*DNSServiceDeleteNameserverDefault) IsSuccess

func (o *DNSServiceDeleteNameserverDefault) IsSuccess() bool

IsSuccess returns true when this Dns service delete nameserver default response has a 2xx status code

func (*DNSServiceDeleteNameserverDefault) String

type DNSServiceDeleteNameserverOK

type DNSServiceDeleteNameserverOK struct {
	Payload *swagger.V1NameserverResponse
}

DNSServiceDeleteNameserverOK describes a response with status code 200, with default header values.

A successful response.

func NewDNSServiceDeleteNameserverOK

func NewDNSServiceDeleteNameserverOK() *DNSServiceDeleteNameserverOK

NewDNSServiceDeleteNameserverOK creates a DNSServiceDeleteNameserverOK with default headers values

func (*DNSServiceDeleteNameserverOK) Code

Code gets the status code for the dns service delete nameserver o k response

func (*DNSServiceDeleteNameserverOK) Error

func (*DNSServiceDeleteNameserverOK) GetPayload

func (*DNSServiceDeleteNameserverOK) IsClientError

func (o *DNSServiceDeleteNameserverOK) IsClientError() bool

IsClientError returns true when this dns service delete nameserver o k response has a 4xx status code

func (*DNSServiceDeleteNameserverOK) IsCode

func (o *DNSServiceDeleteNameserverOK) IsCode(code int) bool

IsCode returns true when this dns service delete nameserver o k response a status code equal to that given

func (*DNSServiceDeleteNameserverOK) IsRedirect

func (o *DNSServiceDeleteNameserverOK) IsRedirect() bool

IsRedirect returns true when this dns service delete nameserver o k response has a 3xx status code

func (*DNSServiceDeleteNameserverOK) IsServerError

func (o *DNSServiceDeleteNameserverOK) IsServerError() bool

IsServerError returns true when this dns service delete nameserver o k response has a 5xx status code

func (*DNSServiceDeleteNameserverOK) IsSuccess

func (o *DNSServiceDeleteNameserverOK) IsSuccess() bool

IsSuccess returns true when this dns service delete nameserver o k response has a 2xx status code

func (*DNSServiceDeleteNameserverOK) String

type DNSServiceDeleteNameserverParams

type DNSServiceDeleteNameserverParams struct {

	/* Checksum.

	   The last received checksum from GetNameserverList().

	   Format: int64
	*/
	Checksum *int64

	/* Index.

	   Index of the nameserver to delete (can be received from GetNameserverList()).

	   Format: int32
	*/
	Index int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DNSServiceDeleteNameserverParams contains all the parameters to send to the API endpoint

for the Dns service delete nameserver operation.

Typically these are written to a http.Request.

func NewDNSServiceDeleteNameserverParams

func NewDNSServiceDeleteNameserverParams() *DNSServiceDeleteNameserverParams

NewDNSServiceDeleteNameserverParams creates a new DNSServiceDeleteNameserverParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDNSServiceDeleteNameserverParamsWithContext

func NewDNSServiceDeleteNameserverParamsWithContext(ctx context.Context) *DNSServiceDeleteNameserverParams

NewDNSServiceDeleteNameserverParamsWithContext creates a new DNSServiceDeleteNameserverParams object with the ability to set a context for a request.

func NewDNSServiceDeleteNameserverParamsWithHTTPClient

func NewDNSServiceDeleteNameserverParamsWithHTTPClient(client *http.Client) *DNSServiceDeleteNameserverParams

NewDNSServiceDeleteNameserverParamsWithHTTPClient creates a new DNSServiceDeleteNameserverParams object with the ability to set a custom HTTPClient for a request.

func NewDNSServiceDeleteNameserverParamsWithTimeout

func NewDNSServiceDeleteNameserverParamsWithTimeout(timeout time.Duration) *DNSServiceDeleteNameserverParams

NewDNSServiceDeleteNameserverParamsWithTimeout creates a new DNSServiceDeleteNameserverParams object with the ability to set a timeout on a request.

func (*DNSServiceDeleteNameserverParams) SetChecksum

func (o *DNSServiceDeleteNameserverParams) SetChecksum(checksum *int64)

SetChecksum adds the checksum to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) SetContext

SetContext adds the context to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) SetDefaults

func (o *DNSServiceDeleteNameserverParams) SetDefaults()

SetDefaults hydrates default values in the Dns service delete nameserver params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceDeleteNameserverParams) SetHTTPClient

func (o *DNSServiceDeleteNameserverParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) SetIndex

func (o *DNSServiceDeleteNameserverParams) SetIndex(index int32)

SetIndex adds the index to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) SetTimeout

func (o *DNSServiceDeleteNameserverParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) WithChecksum

WithChecksum adds the checksum to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) WithContext

WithContext adds the context to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) WithDefaults

WithDefaults hydrates default values in the Dns service delete nameserver params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceDeleteNameserverParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) WithIndex

WithIndex adds the index to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) WithTimeout

WithTimeout adds the timeout to the Dns service delete nameserver params

func (*DNSServiceDeleteNameserverParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DNSServiceDeleteNameserverReader

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

DNSServiceDeleteNameserverReader is a Reader for the DNSServiceDeleteNameserver structure.

func (*DNSServiceDeleteNameserverReader) ReadResponse

func (o *DNSServiceDeleteNameserverReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DNSServiceGetNameserverAtDefault

type DNSServiceGetNameserverAtDefault struct {
	Payload *swagger.RPCStatus
	// contains filtered or unexported fields
}

DNSServiceGetNameserverAtDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDNSServiceGetNameserverAtDefault

func NewDNSServiceGetNameserverAtDefault(code int) *DNSServiceGetNameserverAtDefault

NewDNSServiceGetNameserverAtDefault creates a DNSServiceGetNameserverAtDefault with default headers values

func (*DNSServiceGetNameserverAtDefault) Code

Code gets the status code for the Dns service get nameserver at default response

func (*DNSServiceGetNameserverAtDefault) Error

func (*DNSServiceGetNameserverAtDefault) GetPayload

func (*DNSServiceGetNameserverAtDefault) IsClientError

func (o *DNSServiceGetNameserverAtDefault) IsClientError() bool

IsClientError returns true when this Dns service get nameserver at default response has a 4xx status code

func (*DNSServiceGetNameserverAtDefault) IsCode

func (o *DNSServiceGetNameserverAtDefault) IsCode(code int) bool

IsCode returns true when this Dns service get nameserver at default response a status code equal to that given

func (*DNSServiceGetNameserverAtDefault) IsRedirect

func (o *DNSServiceGetNameserverAtDefault) IsRedirect() bool

IsRedirect returns true when this Dns service get nameserver at default response has a 3xx status code

func (*DNSServiceGetNameserverAtDefault) IsServerError

func (o *DNSServiceGetNameserverAtDefault) IsServerError() bool

IsServerError returns true when this Dns service get nameserver at default response has a 5xx status code

func (*DNSServiceGetNameserverAtDefault) IsSuccess

func (o *DNSServiceGetNameserverAtDefault) IsSuccess() bool

IsSuccess returns true when this Dns service get nameserver at default response has a 2xx status code

func (*DNSServiceGetNameserverAtDefault) String

type DNSServiceGetNameserverAtOK

type DNSServiceGetNameserverAtOK struct {
	Payload *swagger.V1NameserverResponse
}

DNSServiceGetNameserverAtOK describes a response with status code 200, with default header values.

A successful response.

func NewDNSServiceGetNameserverAtOK

func NewDNSServiceGetNameserverAtOK() *DNSServiceGetNameserverAtOK

NewDNSServiceGetNameserverAtOK creates a DNSServiceGetNameserverAtOK with default headers values

func (*DNSServiceGetNameserverAtOK) Code

func (o *DNSServiceGetNameserverAtOK) Code() int

Code gets the status code for the dns service get nameserver at o k response

func (*DNSServiceGetNameserverAtOK) Error

func (*DNSServiceGetNameserverAtOK) GetPayload

func (*DNSServiceGetNameserverAtOK) IsClientError

func (o *DNSServiceGetNameserverAtOK) IsClientError() bool

IsClientError returns true when this dns service get nameserver at o k response has a 4xx status code

func (*DNSServiceGetNameserverAtOK) IsCode

func (o *DNSServiceGetNameserverAtOK) IsCode(code int) bool

IsCode returns true when this dns service get nameserver at o k response a status code equal to that given

func (*DNSServiceGetNameserverAtOK) IsRedirect

func (o *DNSServiceGetNameserverAtOK) IsRedirect() bool

IsRedirect returns true when this dns service get nameserver at o k response has a 3xx status code

func (*DNSServiceGetNameserverAtOK) IsServerError

func (o *DNSServiceGetNameserverAtOK) IsServerError() bool

IsServerError returns true when this dns service get nameserver at o k response has a 5xx status code

func (*DNSServiceGetNameserverAtOK) IsSuccess

func (o *DNSServiceGetNameserverAtOK) IsSuccess() bool

IsSuccess returns true when this dns service get nameserver at o k response has a 2xx status code

func (*DNSServiceGetNameserverAtOK) String

func (o *DNSServiceGetNameserverAtOK) String() string

type DNSServiceGetNameserverAtParams

type DNSServiceGetNameserverAtParams struct {

	/* Index.

	   Index of the nameserver (can be received from GetNameserverList()).

	   Format: int32
	*/
	Index int32

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DNSServiceGetNameserverAtParams contains all the parameters to send to the API endpoint

for the Dns service get nameserver at operation.

Typically these are written to a http.Request.

func NewDNSServiceGetNameserverAtParams

func NewDNSServiceGetNameserverAtParams() *DNSServiceGetNameserverAtParams

NewDNSServiceGetNameserverAtParams creates a new DNSServiceGetNameserverAtParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDNSServiceGetNameserverAtParamsWithContext

func NewDNSServiceGetNameserverAtParamsWithContext(ctx context.Context) *DNSServiceGetNameserverAtParams

NewDNSServiceGetNameserverAtParamsWithContext creates a new DNSServiceGetNameserverAtParams object with the ability to set a context for a request.

func NewDNSServiceGetNameserverAtParamsWithHTTPClient

func NewDNSServiceGetNameserverAtParamsWithHTTPClient(client *http.Client) *DNSServiceGetNameserverAtParams

NewDNSServiceGetNameserverAtParamsWithHTTPClient creates a new DNSServiceGetNameserverAtParams object with the ability to set a custom HTTPClient for a request.

func NewDNSServiceGetNameserverAtParamsWithTimeout

func NewDNSServiceGetNameserverAtParamsWithTimeout(timeout time.Duration) *DNSServiceGetNameserverAtParams

NewDNSServiceGetNameserverAtParamsWithTimeout creates a new DNSServiceGetNameserverAtParams object with the ability to set a timeout on a request.

func (*DNSServiceGetNameserverAtParams) SetContext

func (o *DNSServiceGetNameserverAtParams) SetContext(ctx context.Context)

SetContext adds the context to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) SetDefaults

func (o *DNSServiceGetNameserverAtParams) SetDefaults()

SetDefaults hydrates default values in the Dns service get nameserver at params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceGetNameserverAtParams) SetHTTPClient

func (o *DNSServiceGetNameserverAtParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) SetIndex

func (o *DNSServiceGetNameserverAtParams) SetIndex(index int32)

SetIndex adds the index to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) SetTimeout

func (o *DNSServiceGetNameserverAtParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) WithContext

WithContext adds the context to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) WithDefaults

WithDefaults hydrates default values in the Dns service get nameserver at params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceGetNameserverAtParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) WithIndex

WithIndex adds the index to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) WithTimeout

WithTimeout adds the timeout to the Dns service get nameserver at params

func (*DNSServiceGetNameserverAtParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DNSServiceGetNameserverAtReader

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

DNSServiceGetNameserverAtReader is a Reader for the DNSServiceGetNameserverAt structure.

func (*DNSServiceGetNameserverAtReader) ReadResponse

func (o *DNSServiceGetNameserverAtReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DNSServiceGetNameserverListDefault

type DNSServiceGetNameserverListDefault struct {
	Payload *swagger.RPCStatus
	// contains filtered or unexported fields
}

DNSServiceGetNameserverListDefault describes a response with status code -1, with default header values.

An unexpected error response.

func NewDNSServiceGetNameserverListDefault

func NewDNSServiceGetNameserverListDefault(code int) *DNSServiceGetNameserverListDefault

NewDNSServiceGetNameserverListDefault creates a DNSServiceGetNameserverListDefault with default headers values

func (*DNSServiceGetNameserverListDefault) Code

Code gets the status code for the Dns service get nameserver list default response

func (*DNSServiceGetNameserverListDefault) Error

func (*DNSServiceGetNameserverListDefault) GetPayload

func (*DNSServiceGetNameserverListDefault) IsClientError

func (o *DNSServiceGetNameserverListDefault) IsClientError() bool

IsClientError returns true when this Dns service get nameserver list default response has a 4xx status code

func (*DNSServiceGetNameserverListDefault) IsCode

IsCode returns true when this Dns service get nameserver list default response a status code equal to that given

func (*DNSServiceGetNameserverListDefault) IsRedirect

func (o *DNSServiceGetNameserverListDefault) IsRedirect() bool

IsRedirect returns true when this Dns service get nameserver list default response has a 3xx status code

func (*DNSServiceGetNameserverListDefault) IsServerError

func (o *DNSServiceGetNameserverListDefault) IsServerError() bool

IsServerError returns true when this Dns service get nameserver list default response has a 5xx status code

func (*DNSServiceGetNameserverListDefault) IsSuccess

IsSuccess returns true when this Dns service get nameserver list default response has a 2xx status code

func (*DNSServiceGetNameserverListDefault) String

type DNSServiceGetNameserverListOK

type DNSServiceGetNameserverListOK struct {
	Payload *swagger.V1NameserverList
}

DNSServiceGetNameserverListOK describes a response with status code 200, with default header values.

A successful response.

func NewDNSServiceGetNameserverListOK

func NewDNSServiceGetNameserverListOK() *DNSServiceGetNameserverListOK

NewDNSServiceGetNameserverListOK creates a DNSServiceGetNameserverListOK with default headers values

func (*DNSServiceGetNameserverListOK) Code

Code gets the status code for the dns service get nameserver list o k response

func (*DNSServiceGetNameserverListOK) Error

func (*DNSServiceGetNameserverListOK) GetPayload

func (*DNSServiceGetNameserverListOK) IsClientError

func (o *DNSServiceGetNameserverListOK) IsClientError() bool

IsClientError returns true when this dns service get nameserver list o k response has a 4xx status code

func (*DNSServiceGetNameserverListOK) IsCode

func (o *DNSServiceGetNameserverListOK) IsCode(code int) bool

IsCode returns true when this dns service get nameserver list o k response a status code equal to that given

func (*DNSServiceGetNameserverListOK) IsRedirect

func (o *DNSServiceGetNameserverListOK) IsRedirect() bool

IsRedirect returns true when this dns service get nameserver list o k response has a 3xx status code

func (*DNSServiceGetNameserverListOK) IsServerError

func (o *DNSServiceGetNameserverListOK) IsServerError() bool

IsServerError returns true when this dns service get nameserver list o k response has a 5xx status code

func (*DNSServiceGetNameserverListOK) IsSuccess

func (o *DNSServiceGetNameserverListOK) IsSuccess() bool

IsSuccess returns true when this dns service get nameserver list o k response has a 2xx status code

func (*DNSServiceGetNameserverListOK) String

type DNSServiceGetNameserverListParams

type DNSServiceGetNameserverListParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DNSServiceGetNameserverListParams contains all the parameters to send to the API endpoint

for the Dns service get nameserver list operation.

Typically these are written to a http.Request.

func NewDNSServiceGetNameserverListParams

func NewDNSServiceGetNameserverListParams() *DNSServiceGetNameserverListParams

NewDNSServiceGetNameserverListParams creates a new DNSServiceGetNameserverListParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewDNSServiceGetNameserverListParamsWithContext

func NewDNSServiceGetNameserverListParamsWithContext(ctx context.Context) *DNSServiceGetNameserverListParams

NewDNSServiceGetNameserverListParamsWithContext creates a new DNSServiceGetNameserverListParams object with the ability to set a context for a request.

func NewDNSServiceGetNameserverListParamsWithHTTPClient

func NewDNSServiceGetNameserverListParamsWithHTTPClient(client *http.Client) *DNSServiceGetNameserverListParams

NewDNSServiceGetNameserverListParamsWithHTTPClient creates a new DNSServiceGetNameserverListParams object with the ability to set a custom HTTPClient for a request.

func NewDNSServiceGetNameserverListParamsWithTimeout

func NewDNSServiceGetNameserverListParamsWithTimeout(timeout time.Duration) *DNSServiceGetNameserverListParams

NewDNSServiceGetNameserverListParamsWithTimeout creates a new DNSServiceGetNameserverListParams object with the ability to set a timeout on a request.

func (*DNSServiceGetNameserverListParams) SetContext

SetContext adds the context to the Dns service get nameserver list params

func (*DNSServiceGetNameserverListParams) SetDefaults

func (o *DNSServiceGetNameserverListParams) SetDefaults()

SetDefaults hydrates default values in the Dns service get nameserver list params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceGetNameserverListParams) SetHTTPClient

func (o *DNSServiceGetNameserverListParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the Dns service get nameserver list params

func (*DNSServiceGetNameserverListParams) SetTimeout

func (o *DNSServiceGetNameserverListParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the Dns service get nameserver list params

func (*DNSServiceGetNameserverListParams) WithContext

WithContext adds the context to the Dns service get nameserver list params

func (*DNSServiceGetNameserverListParams) WithDefaults

WithDefaults hydrates default values in the Dns service get nameserver list params (not the query body).

All values with no default are reset to their zero value.

func (*DNSServiceGetNameserverListParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the Dns service get nameserver list params

func (*DNSServiceGetNameserverListParams) WithTimeout

WithTimeout adds the timeout to the Dns service get nameserver list params

func (*DNSServiceGetNameserverListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DNSServiceGetNameserverListReader

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

DNSServiceGetNameserverListReader is a Reader for the DNSServiceGetNameserverList structure.

func (*DNSServiceGetNameserverListReader) ReadResponse

func (o *DNSServiceGetNameserverListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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