nameserver

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2021 License: Apache-2.0 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 nameserver API

func (*Client) CreateNameserver

CreateNameserver adds a nameserver

Adds a new nameserver to the resolvers section.

func (*Client) DeleteNameserver

DeleteNameserver deletes a nameserver

Deletes a nameserver from the resolvers section by it's name.

func (*Client) GetNameserver

func (a *Client) GetNameserver(params *GetNameserverParams, authInfo runtime.ClientAuthInfoWriter) (*GetNameserverOK, error)

GetNameserver returns a nameserver

Returns one nameserver configuration by it's name.

func (*Client) GetNameservers

func (a *Client) GetNameservers(params *GetNameserversParams, authInfo runtime.ClientAuthInfoWriter) (*GetNameserversOK, error)

GetNameservers returns an array of nameservers

Returns an array of all configured nameservers.

func (*Client) ReplaceNameserver

ReplaceNameserver replaces a nameserver

Replaces a nameserver configuration by it's name.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

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

New creates a new nameserver API client.

type CreateNameserverAccepted

type CreateNameserverAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.Nameserver
}

CreateNameserverAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewCreateNameserverAccepted

func NewCreateNameserverAccepted() *CreateNameserverAccepted

NewCreateNameserverAccepted creates a CreateNameserverAccepted with default headers values

func (*CreateNameserverAccepted) Error

func (o *CreateNameserverAccepted) Error() string

func (*CreateNameserverAccepted) GetPayload

func (o *CreateNameserverAccepted) GetPayload() *models.Nameserver

type CreateNameserverBadRequest

type CreateNameserverBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateNameserverBadRequest handles this case with default header values.

Bad request

func NewCreateNameserverBadRequest

func NewCreateNameserverBadRequest() *CreateNameserverBadRequest

NewCreateNameserverBadRequest creates a CreateNameserverBadRequest with default headers values

func (*CreateNameserverBadRequest) Error

func (*CreateNameserverBadRequest) GetPayload

func (o *CreateNameserverBadRequest) GetPayload() *models.Error

type CreateNameserverConflict

type CreateNameserverConflict struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

CreateNameserverConflict handles this case with default header values.

The specified resource already exists

func NewCreateNameserverConflict

func NewCreateNameserverConflict() *CreateNameserverConflict

NewCreateNameserverConflict creates a CreateNameserverConflict with default headers values

func (*CreateNameserverConflict) Error

func (o *CreateNameserverConflict) Error() string

func (*CreateNameserverConflict) GetPayload

func (o *CreateNameserverConflict) GetPayload() *models.Error

type CreateNameserverCreated

type CreateNameserverCreated struct {
	Payload *models.Nameserver
}

CreateNameserverCreated handles this case with default header values.

Nameserver created

func NewCreateNameserverCreated

func NewCreateNameserverCreated() *CreateNameserverCreated

NewCreateNameserverCreated creates a CreateNameserverCreated with default headers values

func (*CreateNameserverCreated) Error

func (o *CreateNameserverCreated) Error() string

func (*CreateNameserverCreated) GetPayload

func (o *CreateNameserverCreated) GetPayload() *models.Nameserver

type CreateNameserverDefault

type CreateNameserverDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

CreateNameserverDefault handles this case with default header values.

General Error

func NewCreateNameserverDefault

func NewCreateNameserverDefault(code int) *CreateNameserverDefault

NewCreateNameserverDefault creates a CreateNameserverDefault with default headers values

func (*CreateNameserverDefault) Code

func (o *CreateNameserverDefault) Code() int

Code gets the status code for the create nameserver default response

func (*CreateNameserverDefault) Error

func (o *CreateNameserverDefault) Error() string

func (*CreateNameserverDefault) GetPayload

func (o *CreateNameserverDefault) GetPayload() *models.Error

type CreateNameserverParams

type CreateNameserverParams struct {

	/*Data*/
	Data *models.Nameserver
	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*Resolver
	  Parent resolver name

	*/
	Resolver string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

CreateNameserverParams contains all the parameters to send to the API endpoint for the create nameserver operation typically these are written to a http.Request

func NewCreateNameserverParams

func NewCreateNameserverParams() *CreateNameserverParams

NewCreateNameserverParams creates a new CreateNameserverParams object with the default values initialized.

func NewCreateNameserverParamsWithContext

func NewCreateNameserverParamsWithContext(ctx context.Context) *CreateNameserverParams

NewCreateNameserverParamsWithContext creates a new CreateNameserverParams object with the default values initialized, and the ability to set a context for a request

func NewCreateNameserverParamsWithHTTPClient

func NewCreateNameserverParamsWithHTTPClient(client *http.Client) *CreateNameserverParams

NewCreateNameserverParamsWithHTTPClient creates a new CreateNameserverParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateNameserverParamsWithTimeout

func NewCreateNameserverParamsWithTimeout(timeout time.Duration) *CreateNameserverParams

NewCreateNameserverParamsWithTimeout creates a new CreateNameserverParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateNameserverParams) SetContext

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

SetContext adds the context to the create nameserver params

func (*CreateNameserverParams) SetData

func (o *CreateNameserverParams) SetData(data *models.Nameserver)

SetData adds the data to the create nameserver params

func (*CreateNameserverParams) SetForceReload

func (o *CreateNameserverParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the create nameserver params

func (*CreateNameserverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create nameserver params

func (*CreateNameserverParams) SetResolver

func (o *CreateNameserverParams) SetResolver(resolver string)

SetResolver adds the resolver to the create nameserver params

func (*CreateNameserverParams) SetTimeout

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

SetTimeout adds the timeout to the create nameserver params

func (*CreateNameserverParams) SetTransactionID

func (o *CreateNameserverParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the create nameserver params

func (*CreateNameserverParams) SetVersion

func (o *CreateNameserverParams) SetVersion(version *int64)

SetVersion adds the version to the create nameserver params

func (*CreateNameserverParams) WithContext

WithContext adds the context to the create nameserver params

func (*CreateNameserverParams) WithData

WithData adds the data to the create nameserver params

func (*CreateNameserverParams) WithForceReload

func (o *CreateNameserverParams) WithForceReload(forceReload *bool) *CreateNameserverParams

WithForceReload adds the forceReload to the create nameserver params

func (*CreateNameserverParams) WithHTTPClient

func (o *CreateNameserverParams) WithHTTPClient(client *http.Client) *CreateNameserverParams

WithHTTPClient adds the HTTPClient to the create nameserver params

func (*CreateNameserverParams) WithResolver

func (o *CreateNameserverParams) WithResolver(resolver string) *CreateNameserverParams

WithResolver adds the resolver to the create nameserver params

func (*CreateNameserverParams) WithTimeout

WithTimeout adds the timeout to the create nameserver params

func (*CreateNameserverParams) WithTransactionID

func (o *CreateNameserverParams) WithTransactionID(transactionID *string) *CreateNameserverParams

WithTransactionID adds the transactionID to the create nameserver params

func (*CreateNameserverParams) WithVersion

func (o *CreateNameserverParams) WithVersion(version *int64) *CreateNameserverParams

WithVersion adds the version to the create nameserver params

func (*CreateNameserverParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateNameserverReader

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

CreateNameserverReader is a Reader for the CreateNameserver structure.

func (*CreateNameserverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteNameserverAccepted

type DeleteNameserverAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string
}

DeleteNameserverAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewDeleteNameserverAccepted

func NewDeleteNameserverAccepted() *DeleteNameserverAccepted

NewDeleteNameserverAccepted creates a DeleteNameserverAccepted with default headers values

func (*DeleteNameserverAccepted) Error

func (o *DeleteNameserverAccepted) Error() string

type DeleteNameserverDefault

type DeleteNameserverDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

DeleteNameserverDefault handles this case with default header values.

General Error

func NewDeleteNameserverDefault

func NewDeleteNameserverDefault(code int) *DeleteNameserverDefault

NewDeleteNameserverDefault creates a DeleteNameserverDefault with default headers values

func (*DeleteNameserverDefault) Code

func (o *DeleteNameserverDefault) Code() int

Code gets the status code for the delete nameserver default response

func (*DeleteNameserverDefault) Error

func (o *DeleteNameserverDefault) Error() string

func (*DeleteNameserverDefault) GetPayload

func (o *DeleteNameserverDefault) GetPayload() *models.Error

type DeleteNameserverNoContent

type DeleteNameserverNoContent struct {
}

DeleteNameserverNoContent handles this case with default header values.

Nameserver deleted

func NewDeleteNameserverNoContent

func NewDeleteNameserverNoContent() *DeleteNameserverNoContent

NewDeleteNameserverNoContent creates a DeleteNameserverNoContent with default headers values

func (*DeleteNameserverNoContent) Error

func (o *DeleteNameserverNoContent) Error() string

type DeleteNameserverNotFound

type DeleteNameserverNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

DeleteNameserverNotFound handles this case with default header values.

The specified resource was not found

func NewDeleteNameserverNotFound

func NewDeleteNameserverNotFound() *DeleteNameserverNotFound

NewDeleteNameserverNotFound creates a DeleteNameserverNotFound with default headers values

func (*DeleteNameserverNotFound) Error

func (o *DeleteNameserverNotFound) Error() string

func (*DeleteNameserverNotFound) GetPayload

func (o *DeleteNameserverNotFound) GetPayload() *models.Error

type DeleteNameserverParams

type DeleteNameserverParams struct {

	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*Name
	  Nameserver name

	*/
	Name string
	/*Resolver
	  Parent resolver name

	*/
	Resolver string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

DeleteNameserverParams contains all the parameters to send to the API endpoint for the delete nameserver operation typically these are written to a http.Request

func NewDeleteNameserverParams

func NewDeleteNameserverParams() *DeleteNameserverParams

NewDeleteNameserverParams creates a new DeleteNameserverParams object with the default values initialized.

func NewDeleteNameserverParamsWithContext

func NewDeleteNameserverParamsWithContext(ctx context.Context) *DeleteNameserverParams

NewDeleteNameserverParamsWithContext creates a new DeleteNameserverParams object with the default values initialized, and the ability to set a context for a request

func NewDeleteNameserverParamsWithHTTPClient

func NewDeleteNameserverParamsWithHTTPClient(client *http.Client) *DeleteNameserverParams

NewDeleteNameserverParamsWithHTTPClient creates a new DeleteNameserverParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDeleteNameserverParamsWithTimeout

func NewDeleteNameserverParamsWithTimeout(timeout time.Duration) *DeleteNameserverParams

NewDeleteNameserverParamsWithTimeout creates a new DeleteNameserverParams object with the default values initialized, and the ability to set a timeout on a request

func (*DeleteNameserverParams) SetContext

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

SetContext adds the context to the delete nameserver params

func (*DeleteNameserverParams) SetForceReload

func (o *DeleteNameserverParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the delete nameserver params

func (*DeleteNameserverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete nameserver params

func (*DeleteNameserverParams) SetName

func (o *DeleteNameserverParams) SetName(name string)

SetName adds the name to the delete nameserver params

func (*DeleteNameserverParams) SetResolver

func (o *DeleteNameserverParams) SetResolver(resolver string)

SetResolver adds the resolver to the delete nameserver params

func (*DeleteNameserverParams) SetTimeout

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

SetTimeout adds the timeout to the delete nameserver params

func (*DeleteNameserverParams) SetTransactionID

func (o *DeleteNameserverParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the delete nameserver params

func (*DeleteNameserverParams) SetVersion

func (o *DeleteNameserverParams) SetVersion(version *int64)

SetVersion adds the version to the delete nameserver params

func (*DeleteNameserverParams) WithContext

WithContext adds the context to the delete nameserver params

func (*DeleteNameserverParams) WithForceReload

func (o *DeleteNameserverParams) WithForceReload(forceReload *bool) *DeleteNameserverParams

WithForceReload adds the forceReload to the delete nameserver params

func (*DeleteNameserverParams) WithHTTPClient

func (o *DeleteNameserverParams) WithHTTPClient(client *http.Client) *DeleteNameserverParams

WithHTTPClient adds the HTTPClient to the delete nameserver params

func (*DeleteNameserverParams) WithName

WithName adds the name to the delete nameserver params

func (*DeleteNameserverParams) WithResolver

func (o *DeleteNameserverParams) WithResolver(resolver string) *DeleteNameserverParams

WithResolver adds the resolver to the delete nameserver params

func (*DeleteNameserverParams) WithTimeout

WithTimeout adds the timeout to the delete nameserver params

func (*DeleteNameserverParams) WithTransactionID

func (o *DeleteNameserverParams) WithTransactionID(transactionID *string) *DeleteNameserverParams

WithTransactionID adds the transactionID to the delete nameserver params

func (*DeleteNameserverParams) WithVersion

func (o *DeleteNameserverParams) WithVersion(version *int64) *DeleteNameserverParams

WithVersion adds the version to the delete nameserver params

func (*DeleteNameserverParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteNameserverReader

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

DeleteNameserverReader is a Reader for the DeleteNameserver structure.

func (*DeleteNameserverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNameserverDefault

type GetNameserverDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetNameserverDefault handles this case with default header values.

General Error

func NewGetNameserverDefault

func NewGetNameserverDefault(code int) *GetNameserverDefault

NewGetNameserverDefault creates a GetNameserverDefault with default headers values

func (*GetNameserverDefault) Code

func (o *GetNameserverDefault) Code() int

Code gets the status code for the get nameserver default response

func (*GetNameserverDefault) Error

func (o *GetNameserverDefault) Error() string

func (*GetNameserverDefault) GetPayload

func (o *GetNameserverDefault) GetPayload() *models.Error

type GetNameserverNotFound

type GetNameserverNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

GetNameserverNotFound handles this case with default header values.

The specified resource was not found

func NewGetNameserverNotFound

func NewGetNameserverNotFound() *GetNameserverNotFound

NewGetNameserverNotFound creates a GetNameserverNotFound with default headers values

func (*GetNameserverNotFound) Error

func (o *GetNameserverNotFound) Error() string

func (*GetNameserverNotFound) GetPayload

func (o *GetNameserverNotFound) GetPayload() *models.Error

type GetNameserverOK

type GetNameserverOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetNameserverOKBody
}

GetNameserverOK handles this case with default header values.

Successful operation

func NewGetNameserverOK

func NewGetNameserverOK() *GetNameserverOK

NewGetNameserverOK creates a GetNameserverOK with default headers values

func (*GetNameserverOK) Error

func (o *GetNameserverOK) Error() string

func (*GetNameserverOK) GetPayload

func (o *GetNameserverOK) GetPayload() *GetNameserverOKBody

type GetNameserverOKBody

type GetNameserverOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	Data *models.Nameserver `json:"data,omitempty"`
}

GetNameserverOKBody get nameserver o k body swagger:model GetNameserverOKBody

func (*GetNameserverOKBody) MarshalBinary

func (o *GetNameserverOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetNameserverOKBody) UnmarshalBinary

func (o *GetNameserverOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetNameserverOKBody) Validate

func (o *GetNameserverOKBody) Validate(formats strfmt.Registry) error

Validate validates this get nameserver o k body

type GetNameserverParams

type GetNameserverParams struct {

	/*Name
	  Nameserver name

	*/
	Name string
	/*Resolver
	  Parent resolver name

	*/
	Resolver string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

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

GetNameserverParams contains all the parameters to send to the API endpoint for the get nameserver operation typically these are written to a http.Request

func NewGetNameserverParams

func NewGetNameserverParams() *GetNameserverParams

NewGetNameserverParams creates a new GetNameserverParams object with the default values initialized.

func NewGetNameserverParamsWithContext

func NewGetNameserverParamsWithContext(ctx context.Context) *GetNameserverParams

NewGetNameserverParamsWithContext creates a new GetNameserverParams object with the default values initialized, and the ability to set a context for a request

func NewGetNameserverParamsWithHTTPClient

func NewGetNameserverParamsWithHTTPClient(client *http.Client) *GetNameserverParams

NewGetNameserverParamsWithHTTPClient creates a new GetNameserverParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetNameserverParamsWithTimeout

func NewGetNameserverParamsWithTimeout(timeout time.Duration) *GetNameserverParams

NewGetNameserverParamsWithTimeout creates a new GetNameserverParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetNameserverParams) SetContext

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

SetContext adds the context to the get nameserver params

func (*GetNameserverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get nameserver params

func (*GetNameserverParams) SetName

func (o *GetNameserverParams) SetName(name string)

SetName adds the name to the get nameserver params

func (*GetNameserverParams) SetResolver

func (o *GetNameserverParams) SetResolver(resolver string)

SetResolver adds the resolver to the get nameserver params

func (*GetNameserverParams) SetTimeout

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

SetTimeout adds the timeout to the get nameserver params

func (*GetNameserverParams) SetTransactionID

func (o *GetNameserverParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get nameserver params

func (*GetNameserverParams) WithContext

WithContext adds the context to the get nameserver params

func (*GetNameserverParams) WithHTTPClient

func (o *GetNameserverParams) WithHTTPClient(client *http.Client) *GetNameserverParams

WithHTTPClient adds the HTTPClient to the get nameserver params

func (*GetNameserverParams) WithName

func (o *GetNameserverParams) WithName(name string) *GetNameserverParams

WithName adds the name to the get nameserver params

func (*GetNameserverParams) WithResolver

func (o *GetNameserverParams) WithResolver(resolver string) *GetNameserverParams

WithResolver adds the resolver to the get nameserver params

func (*GetNameserverParams) WithTimeout

func (o *GetNameserverParams) WithTimeout(timeout time.Duration) *GetNameserverParams

WithTimeout adds the timeout to the get nameserver params

func (*GetNameserverParams) WithTransactionID

func (o *GetNameserverParams) WithTransactionID(transactionID *string) *GetNameserverParams

WithTransactionID adds the transactionID to the get nameserver params

func (*GetNameserverParams) WriteToRequest

func (o *GetNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNameserverReader

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

GetNameserverReader is a Reader for the GetNameserver structure.

func (*GetNameserverReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetNameserversDefault

type GetNameserversDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

GetNameserversDefault handles this case with default header values.

General Error

func NewGetNameserversDefault

func NewGetNameserversDefault(code int) *GetNameserversDefault

NewGetNameserversDefault creates a GetNameserversDefault with default headers values

func (*GetNameserversDefault) Code

func (o *GetNameserversDefault) Code() int

Code gets the status code for the get nameservers default response

func (*GetNameserversDefault) Error

func (o *GetNameserversDefault) Error() string

func (*GetNameserversDefault) GetPayload

func (o *GetNameserversDefault) GetPayload() *models.Error

type GetNameserversOK

type GetNameserversOK struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *GetNameserversOKBody
}

GetNameserversOK handles this case with default header values.

Successful operation

func NewGetNameserversOK

func NewGetNameserversOK() *GetNameserversOK

NewGetNameserversOK creates a GetNameserversOK with default headers values

func (*GetNameserversOK) Error

func (o *GetNameserversOK) Error() string

func (*GetNameserversOK) GetPayload

func (o *GetNameserversOK) GetPayload() *GetNameserversOKBody

type GetNameserversOKBody

type GetNameserversOKBody struct {

	// version
	Version int64 `json:"_version,omitempty"`

	// data
	// Required: true
	Data models.Nameservers `json:"data"`
}

GetNameserversOKBody get nameservers o k body swagger:model GetNameserversOKBody

func (*GetNameserversOKBody) MarshalBinary

func (o *GetNameserversOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetNameserversOKBody) UnmarshalBinary

func (o *GetNameserversOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetNameserversOKBody) Validate

func (o *GetNameserversOKBody) Validate(formats strfmt.Registry) error

Validate validates this get nameservers o k body

type GetNameserversParams

type GetNameserversParams struct {

	/*Resolver
	  Parent resolver name

	*/
	Resolver string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string

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

GetNameserversParams contains all the parameters to send to the API endpoint for the get nameservers operation typically these are written to a http.Request

func NewGetNameserversParams

func NewGetNameserversParams() *GetNameserversParams

NewGetNameserversParams creates a new GetNameserversParams object with the default values initialized.

func NewGetNameserversParamsWithContext

func NewGetNameserversParamsWithContext(ctx context.Context) *GetNameserversParams

NewGetNameserversParamsWithContext creates a new GetNameserversParams object with the default values initialized, and the ability to set a context for a request

func NewGetNameserversParamsWithHTTPClient

func NewGetNameserversParamsWithHTTPClient(client *http.Client) *GetNameserversParams

NewGetNameserversParamsWithHTTPClient creates a new GetNameserversParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetNameserversParamsWithTimeout

func NewGetNameserversParamsWithTimeout(timeout time.Duration) *GetNameserversParams

NewGetNameserversParamsWithTimeout creates a new GetNameserversParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetNameserversParams) SetContext

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

SetContext adds the context to the get nameservers params

func (*GetNameserversParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get nameservers params

func (*GetNameserversParams) SetResolver

func (o *GetNameserversParams) SetResolver(resolver string)

SetResolver adds the resolver to the get nameservers params

func (*GetNameserversParams) SetTimeout

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

SetTimeout adds the timeout to the get nameservers params

func (*GetNameserversParams) SetTransactionID

func (o *GetNameserversParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the get nameservers params

func (*GetNameserversParams) WithContext

WithContext adds the context to the get nameservers params

func (*GetNameserversParams) WithHTTPClient

func (o *GetNameserversParams) WithHTTPClient(client *http.Client) *GetNameserversParams

WithHTTPClient adds the HTTPClient to the get nameservers params

func (*GetNameserversParams) WithResolver

func (o *GetNameserversParams) WithResolver(resolver string) *GetNameserversParams

WithResolver adds the resolver to the get nameservers params

func (*GetNameserversParams) WithTimeout

func (o *GetNameserversParams) WithTimeout(timeout time.Duration) *GetNameserversParams

WithTimeout adds the timeout to the get nameservers params

func (*GetNameserversParams) WithTransactionID

func (o *GetNameserversParams) WithTransactionID(transactionID *string) *GetNameserversParams

WithTransactionID adds the transactionID to the get nameservers params

func (*GetNameserversParams) WriteToRequest

func (o *GetNameserversParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetNameserversReader

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

GetNameserversReader is a Reader for the GetNameservers structure.

func (*GetNameserversReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ReplaceNameserverAccepted

type ReplaceNameserverAccepted struct {
	/*ID of the requested reload
	 */
	ReloadID string

	Payload *models.Nameserver
}

ReplaceNameserverAccepted handles this case with default header values.

Configuration change accepted and reload requested

func NewReplaceNameserverAccepted

func NewReplaceNameserverAccepted() *ReplaceNameserverAccepted

NewReplaceNameserverAccepted creates a ReplaceNameserverAccepted with default headers values

func (*ReplaceNameserverAccepted) Error

func (o *ReplaceNameserverAccepted) Error() string

func (*ReplaceNameserverAccepted) GetPayload

func (o *ReplaceNameserverAccepted) GetPayload() *models.Nameserver

type ReplaceNameserverBadRequest

type ReplaceNameserverBadRequest struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceNameserverBadRequest handles this case with default header values.

Bad request

func NewReplaceNameserverBadRequest

func NewReplaceNameserverBadRequest() *ReplaceNameserverBadRequest

NewReplaceNameserverBadRequest creates a ReplaceNameserverBadRequest with default headers values

func (*ReplaceNameserverBadRequest) Error

func (*ReplaceNameserverBadRequest) GetPayload

func (o *ReplaceNameserverBadRequest) GetPayload() *models.Error

type ReplaceNameserverDefault

type ReplaceNameserverDefault struct {

	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
	// contains filtered or unexported fields
}

ReplaceNameserverDefault handles this case with default header values.

General Error

func NewReplaceNameserverDefault

func NewReplaceNameserverDefault(code int) *ReplaceNameserverDefault

NewReplaceNameserverDefault creates a ReplaceNameserverDefault with default headers values

func (*ReplaceNameserverDefault) Code

func (o *ReplaceNameserverDefault) Code() int

Code gets the status code for the replace nameserver default response

func (*ReplaceNameserverDefault) Error

func (o *ReplaceNameserverDefault) Error() string

func (*ReplaceNameserverDefault) GetPayload

func (o *ReplaceNameserverDefault) GetPayload() *models.Error

type ReplaceNameserverNotFound

type ReplaceNameserverNotFound struct {
	/*Configuration file version
	 */
	ConfigurationVersion int64

	Payload *models.Error
}

ReplaceNameserverNotFound handles this case with default header values.

The specified resource was not found

func NewReplaceNameserverNotFound

func NewReplaceNameserverNotFound() *ReplaceNameserverNotFound

NewReplaceNameserverNotFound creates a ReplaceNameserverNotFound with default headers values

func (*ReplaceNameserverNotFound) Error

func (o *ReplaceNameserverNotFound) Error() string

func (*ReplaceNameserverNotFound) GetPayload

func (o *ReplaceNameserverNotFound) GetPayload() *models.Error

type ReplaceNameserverOK

type ReplaceNameserverOK struct {
	Payload *models.Nameserver
}

ReplaceNameserverOK handles this case with default header values.

Nameserver replaced

func NewReplaceNameserverOK

func NewReplaceNameserverOK() *ReplaceNameserverOK

NewReplaceNameserverOK creates a ReplaceNameserverOK with default headers values

func (*ReplaceNameserverOK) Error

func (o *ReplaceNameserverOK) Error() string

func (*ReplaceNameserverOK) GetPayload

func (o *ReplaceNameserverOK) GetPayload() *models.Nameserver

type ReplaceNameserverParams

type ReplaceNameserverParams struct {

	/*Data*/
	Data *models.Nameserver
	/*ForceReload
	  If set, do a force reload, do not wait for the configured reload-delay. Cannot be used when transaction is specified, as changes in transaction are not applied directly to configuration.

	*/
	ForceReload *bool
	/*Name
	  Nameserver name

	*/
	Name string
	/*Resolver
	  Parent resolver name

	*/
	Resolver string
	/*TransactionID
	  ID of the transaction where we want to add the operation. Cannot be used when version is specified.

	*/
	TransactionID *string
	/*Version
	  Version used for checking configuration version. Cannot be used when transaction is specified, transaction has it's own version.

	*/
	Version *int64

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

ReplaceNameserverParams contains all the parameters to send to the API endpoint for the replace nameserver operation typically these are written to a http.Request

func NewReplaceNameserverParams

func NewReplaceNameserverParams() *ReplaceNameserverParams

NewReplaceNameserverParams creates a new ReplaceNameserverParams object with the default values initialized.

func NewReplaceNameserverParamsWithContext

func NewReplaceNameserverParamsWithContext(ctx context.Context) *ReplaceNameserverParams

NewReplaceNameserverParamsWithContext creates a new ReplaceNameserverParams object with the default values initialized, and the ability to set a context for a request

func NewReplaceNameserverParamsWithHTTPClient

func NewReplaceNameserverParamsWithHTTPClient(client *http.Client) *ReplaceNameserverParams

NewReplaceNameserverParamsWithHTTPClient creates a new ReplaceNameserverParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewReplaceNameserverParamsWithTimeout

func NewReplaceNameserverParamsWithTimeout(timeout time.Duration) *ReplaceNameserverParams

NewReplaceNameserverParamsWithTimeout creates a new ReplaceNameserverParams object with the default values initialized, and the ability to set a timeout on a request

func (*ReplaceNameserverParams) SetContext

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

SetContext adds the context to the replace nameserver params

func (*ReplaceNameserverParams) SetData

func (o *ReplaceNameserverParams) SetData(data *models.Nameserver)

SetData adds the data to the replace nameserver params

func (*ReplaceNameserverParams) SetForceReload

func (o *ReplaceNameserverParams) SetForceReload(forceReload *bool)

SetForceReload adds the forceReload to the replace nameserver params

func (*ReplaceNameserverParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the replace nameserver params

func (*ReplaceNameserverParams) SetName

func (o *ReplaceNameserverParams) SetName(name string)

SetName adds the name to the replace nameserver params

func (*ReplaceNameserverParams) SetResolver

func (o *ReplaceNameserverParams) SetResolver(resolver string)

SetResolver adds the resolver to the replace nameserver params

func (*ReplaceNameserverParams) SetTimeout

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

SetTimeout adds the timeout to the replace nameserver params

func (*ReplaceNameserverParams) SetTransactionID

func (o *ReplaceNameserverParams) SetTransactionID(transactionID *string)

SetTransactionID adds the transactionId to the replace nameserver params

func (*ReplaceNameserverParams) SetVersion

func (o *ReplaceNameserverParams) SetVersion(version *int64)

SetVersion adds the version to the replace nameserver params

func (*ReplaceNameserverParams) WithContext

WithContext adds the context to the replace nameserver params

func (*ReplaceNameserverParams) WithData

WithData adds the data to the replace nameserver params

func (*ReplaceNameserverParams) WithForceReload

func (o *ReplaceNameserverParams) WithForceReload(forceReload *bool) *ReplaceNameserverParams

WithForceReload adds the forceReload to the replace nameserver params

func (*ReplaceNameserverParams) WithHTTPClient

func (o *ReplaceNameserverParams) WithHTTPClient(client *http.Client) *ReplaceNameserverParams

WithHTTPClient adds the HTTPClient to the replace nameserver params

func (*ReplaceNameserverParams) WithName

WithName adds the name to the replace nameserver params

func (*ReplaceNameserverParams) WithResolver

func (o *ReplaceNameserverParams) WithResolver(resolver string) *ReplaceNameserverParams

WithResolver adds the resolver to the replace nameserver params

func (*ReplaceNameserverParams) WithTimeout

WithTimeout adds the timeout to the replace nameserver params

func (*ReplaceNameserverParams) WithTransactionID

func (o *ReplaceNameserverParams) WithTransactionID(transactionID *string) *ReplaceNameserverParams

WithTransactionID adds the transactionID to the replace nameserver params

func (*ReplaceNameserverParams) WithVersion

func (o *ReplaceNameserverParams) WithVersion(version *int64) *ReplaceNameserverParams

WithVersion adds the version to the replace nameserver params

func (*ReplaceNameserverParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ReplaceNameserverReader

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

ReplaceNameserverReader is a Reader for the ReplaceNameserver structure.

func (*ReplaceNameserverReader) ReadResponse

func (o *ReplaceNameserverReader) 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