Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateNameserver(params *CreateNameserverParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateNameserverCreated, *CreateNameserverAccepted, error)
- func (a *Client) DeleteNameserver(params *DeleteNameserverParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteNameserverAccepted, *DeleteNameserverNoContent, error)
- func (a *Client) GetNameserver(params *GetNameserverParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetNameserverOK, error)
- func (a *Client) GetNameservers(params *GetNameserversParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetNameserversOK, error)
- func (a *Client) ReplaceNameserver(params *ReplaceNameserverParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReplaceNameserverOK, *ReplaceNameserverAccepted, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateNameserverAccepted
- func (o *CreateNameserverAccepted) Code() int
- func (o *CreateNameserverAccepted) Error() string
- func (o *CreateNameserverAccepted) GetPayload() *models.Nameserver
- func (o *CreateNameserverAccepted) IsClientError() bool
- func (o *CreateNameserverAccepted) IsCode(code int) bool
- func (o *CreateNameserverAccepted) IsRedirect() bool
- func (o *CreateNameserverAccepted) IsServerError() bool
- func (o *CreateNameserverAccepted) IsSuccess() bool
- func (o *CreateNameserverAccepted) String() string
- type CreateNameserverBadRequest
- func (o *CreateNameserverBadRequest) Code() int
- func (o *CreateNameserverBadRequest) Error() string
- func (o *CreateNameserverBadRequest) GetPayload() *models.Error
- func (o *CreateNameserverBadRequest) IsClientError() bool
- func (o *CreateNameserverBadRequest) IsCode(code int) bool
- func (o *CreateNameserverBadRequest) IsRedirect() bool
- func (o *CreateNameserverBadRequest) IsServerError() bool
- func (o *CreateNameserverBadRequest) IsSuccess() bool
- func (o *CreateNameserverBadRequest) String() string
- type CreateNameserverConflict
- func (o *CreateNameserverConflict) Code() int
- func (o *CreateNameserverConflict) Error() string
- func (o *CreateNameserverConflict) GetPayload() *models.Error
- func (o *CreateNameserverConflict) IsClientError() bool
- func (o *CreateNameserverConflict) IsCode(code int) bool
- func (o *CreateNameserverConflict) IsRedirect() bool
- func (o *CreateNameserverConflict) IsServerError() bool
- func (o *CreateNameserverConflict) IsSuccess() bool
- func (o *CreateNameserverConflict) String() string
- type CreateNameserverCreated
- func (o *CreateNameserverCreated) Code() int
- func (o *CreateNameserverCreated) Error() string
- func (o *CreateNameserverCreated) GetPayload() *models.Nameserver
- func (o *CreateNameserverCreated) IsClientError() bool
- func (o *CreateNameserverCreated) IsCode(code int) bool
- func (o *CreateNameserverCreated) IsRedirect() bool
- func (o *CreateNameserverCreated) IsServerError() bool
- func (o *CreateNameserverCreated) IsSuccess() bool
- func (o *CreateNameserverCreated) String() string
- type CreateNameserverDefault
- func (o *CreateNameserverDefault) Code() int
- func (o *CreateNameserverDefault) Error() string
- func (o *CreateNameserverDefault) GetPayload() *models.Error
- func (o *CreateNameserverDefault) IsClientError() bool
- func (o *CreateNameserverDefault) IsCode(code int) bool
- func (o *CreateNameserverDefault) IsRedirect() bool
- func (o *CreateNameserverDefault) IsServerError() bool
- func (o *CreateNameserverDefault) IsSuccess() bool
- func (o *CreateNameserverDefault) String() string
- type CreateNameserverParams
- func NewCreateNameserverParams() *CreateNameserverParams
- func NewCreateNameserverParamsWithContext(ctx context.Context) *CreateNameserverParams
- func NewCreateNameserverParamsWithHTTPClient(client *http.Client) *CreateNameserverParams
- func NewCreateNameserverParamsWithTimeout(timeout time.Duration) *CreateNameserverParams
- func (o *CreateNameserverParams) SetContext(ctx context.Context)
- func (o *CreateNameserverParams) SetData(data *models.Nameserver)
- func (o *CreateNameserverParams) SetDefaults()
- func (o *CreateNameserverParams) SetForceReload(forceReload *bool)
- func (o *CreateNameserverParams) SetHTTPClient(client *http.Client)
- func (o *CreateNameserverParams) SetResolver(resolver string)
- func (o *CreateNameserverParams) SetTimeout(timeout time.Duration)
- func (o *CreateNameserverParams) SetTransactionID(transactionID *string)
- func (o *CreateNameserverParams) SetVersion(version *int64)
- func (o *CreateNameserverParams) WithContext(ctx context.Context) *CreateNameserverParams
- func (o *CreateNameserverParams) WithData(data *models.Nameserver) *CreateNameserverParams
- func (o *CreateNameserverParams) WithDefaults() *CreateNameserverParams
- func (o *CreateNameserverParams) WithForceReload(forceReload *bool) *CreateNameserverParams
- func (o *CreateNameserverParams) WithHTTPClient(client *http.Client) *CreateNameserverParams
- func (o *CreateNameserverParams) WithResolver(resolver string) *CreateNameserverParams
- func (o *CreateNameserverParams) WithTimeout(timeout time.Duration) *CreateNameserverParams
- func (o *CreateNameserverParams) WithTransactionID(transactionID *string) *CreateNameserverParams
- func (o *CreateNameserverParams) WithVersion(version *int64) *CreateNameserverParams
- func (o *CreateNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateNameserverReader
- type DeleteNameserverAccepted
- func (o *DeleteNameserverAccepted) Code() int
- func (o *DeleteNameserverAccepted) Error() string
- func (o *DeleteNameserverAccepted) IsClientError() bool
- func (o *DeleteNameserverAccepted) IsCode(code int) bool
- func (o *DeleteNameserverAccepted) IsRedirect() bool
- func (o *DeleteNameserverAccepted) IsServerError() bool
- func (o *DeleteNameserverAccepted) IsSuccess() bool
- func (o *DeleteNameserverAccepted) String() string
- type DeleteNameserverDefault
- func (o *DeleteNameserverDefault) Code() int
- func (o *DeleteNameserverDefault) Error() string
- func (o *DeleteNameserverDefault) GetPayload() *models.Error
- func (o *DeleteNameserverDefault) IsClientError() bool
- func (o *DeleteNameserverDefault) IsCode(code int) bool
- func (o *DeleteNameserverDefault) IsRedirect() bool
- func (o *DeleteNameserverDefault) IsServerError() bool
- func (o *DeleteNameserverDefault) IsSuccess() bool
- func (o *DeleteNameserverDefault) String() string
- type DeleteNameserverNoContent
- func (o *DeleteNameserverNoContent) Code() int
- func (o *DeleteNameserverNoContent) Error() string
- func (o *DeleteNameserverNoContent) IsClientError() bool
- func (o *DeleteNameserverNoContent) IsCode(code int) bool
- func (o *DeleteNameserverNoContent) IsRedirect() bool
- func (o *DeleteNameserverNoContent) IsServerError() bool
- func (o *DeleteNameserverNoContent) IsSuccess() bool
- func (o *DeleteNameserverNoContent) String() string
- type DeleteNameserverNotFound
- func (o *DeleteNameserverNotFound) Code() int
- func (o *DeleteNameserverNotFound) Error() string
- func (o *DeleteNameserverNotFound) GetPayload() *models.Error
- func (o *DeleteNameserverNotFound) IsClientError() bool
- func (o *DeleteNameserverNotFound) IsCode(code int) bool
- func (o *DeleteNameserverNotFound) IsRedirect() bool
- func (o *DeleteNameserverNotFound) IsServerError() bool
- func (o *DeleteNameserverNotFound) IsSuccess() bool
- func (o *DeleteNameserverNotFound) String() string
- type DeleteNameserverParams
- func NewDeleteNameserverParams() *DeleteNameserverParams
- func NewDeleteNameserverParamsWithContext(ctx context.Context) *DeleteNameserverParams
- func NewDeleteNameserverParamsWithHTTPClient(client *http.Client) *DeleteNameserverParams
- func NewDeleteNameserverParamsWithTimeout(timeout time.Duration) *DeleteNameserverParams
- func (o *DeleteNameserverParams) SetContext(ctx context.Context)
- func (o *DeleteNameserverParams) SetDefaults()
- func (o *DeleteNameserverParams) SetForceReload(forceReload *bool)
- func (o *DeleteNameserverParams) SetHTTPClient(client *http.Client)
- func (o *DeleteNameserverParams) SetName(name string)
- func (o *DeleteNameserverParams) SetResolver(resolver string)
- func (o *DeleteNameserverParams) SetTimeout(timeout time.Duration)
- func (o *DeleteNameserverParams) SetTransactionID(transactionID *string)
- func (o *DeleteNameserverParams) SetVersion(version *int64)
- func (o *DeleteNameserverParams) WithContext(ctx context.Context) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithDefaults() *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithForceReload(forceReload *bool) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithHTTPClient(client *http.Client) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithName(name string) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithResolver(resolver string) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithTimeout(timeout time.Duration) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithTransactionID(transactionID *string) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WithVersion(version *int64) *DeleteNameserverParams
- func (o *DeleteNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteNameserverReader
- type GetNameserverDefault
- func (o *GetNameserverDefault) Code() int
- func (o *GetNameserverDefault) Error() string
- func (o *GetNameserverDefault) GetPayload() *models.Error
- func (o *GetNameserverDefault) IsClientError() bool
- func (o *GetNameserverDefault) IsCode(code int) bool
- func (o *GetNameserverDefault) IsRedirect() bool
- func (o *GetNameserverDefault) IsServerError() bool
- func (o *GetNameserverDefault) IsSuccess() bool
- func (o *GetNameserverDefault) String() string
- type GetNameserverNotFound
- func (o *GetNameserverNotFound) Code() int
- func (o *GetNameserverNotFound) Error() string
- func (o *GetNameserverNotFound) GetPayload() *models.Error
- func (o *GetNameserverNotFound) IsClientError() bool
- func (o *GetNameserverNotFound) IsCode(code int) bool
- func (o *GetNameserverNotFound) IsRedirect() bool
- func (o *GetNameserverNotFound) IsServerError() bool
- func (o *GetNameserverNotFound) IsSuccess() bool
- func (o *GetNameserverNotFound) String() string
- type GetNameserverOK
- func (o *GetNameserverOK) Code() int
- func (o *GetNameserverOK) Error() string
- func (o *GetNameserverOK) GetPayload() *GetNameserverOKBody
- func (o *GetNameserverOK) IsClientError() bool
- func (o *GetNameserverOK) IsCode(code int) bool
- func (o *GetNameserverOK) IsRedirect() bool
- func (o *GetNameserverOK) IsServerError() bool
- func (o *GetNameserverOK) IsSuccess() bool
- func (o *GetNameserverOK) String() string
- type GetNameserverOKBody
- type GetNameserverParams
- func (o *GetNameserverParams) SetContext(ctx context.Context)
- func (o *GetNameserverParams) SetDefaults()
- func (o *GetNameserverParams) SetHTTPClient(client *http.Client)
- func (o *GetNameserverParams) SetName(name string)
- func (o *GetNameserverParams) SetResolver(resolver string)
- func (o *GetNameserverParams) SetTimeout(timeout time.Duration)
- func (o *GetNameserverParams) SetTransactionID(transactionID *string)
- func (o *GetNameserverParams) WithContext(ctx context.Context) *GetNameserverParams
- func (o *GetNameserverParams) WithDefaults() *GetNameserverParams
- func (o *GetNameserverParams) WithHTTPClient(client *http.Client) *GetNameserverParams
- func (o *GetNameserverParams) WithName(name string) *GetNameserverParams
- func (o *GetNameserverParams) WithResolver(resolver string) *GetNameserverParams
- func (o *GetNameserverParams) WithTimeout(timeout time.Duration) *GetNameserverParams
- func (o *GetNameserverParams) WithTransactionID(transactionID *string) *GetNameserverParams
- func (o *GetNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNameserverReader
- type GetNameserversDefault
- func (o *GetNameserversDefault) Code() int
- func (o *GetNameserversDefault) Error() string
- func (o *GetNameserversDefault) GetPayload() *models.Error
- func (o *GetNameserversDefault) IsClientError() bool
- func (o *GetNameserversDefault) IsCode(code int) bool
- func (o *GetNameserversDefault) IsRedirect() bool
- func (o *GetNameserversDefault) IsServerError() bool
- func (o *GetNameserversDefault) IsSuccess() bool
- func (o *GetNameserversDefault) String() string
- type GetNameserversOK
- func (o *GetNameserversOK) Code() int
- func (o *GetNameserversOK) Error() string
- func (o *GetNameserversOK) GetPayload() *GetNameserversOKBody
- func (o *GetNameserversOK) IsClientError() bool
- func (o *GetNameserversOK) IsCode(code int) bool
- func (o *GetNameserversOK) IsRedirect() bool
- func (o *GetNameserversOK) IsServerError() bool
- func (o *GetNameserversOK) IsSuccess() bool
- func (o *GetNameserversOK) String() string
- type GetNameserversOKBody
- type GetNameserversParams
- func NewGetNameserversParams() *GetNameserversParams
- func NewGetNameserversParamsWithContext(ctx context.Context) *GetNameserversParams
- func NewGetNameserversParamsWithHTTPClient(client *http.Client) *GetNameserversParams
- func NewGetNameserversParamsWithTimeout(timeout time.Duration) *GetNameserversParams
- func (o *GetNameserversParams) SetContext(ctx context.Context)
- func (o *GetNameserversParams) SetDefaults()
- func (o *GetNameserversParams) SetHTTPClient(client *http.Client)
- func (o *GetNameserversParams) SetResolver(resolver string)
- func (o *GetNameserversParams) SetTimeout(timeout time.Duration)
- func (o *GetNameserversParams) SetTransactionID(transactionID *string)
- func (o *GetNameserversParams) WithContext(ctx context.Context) *GetNameserversParams
- func (o *GetNameserversParams) WithDefaults() *GetNameserversParams
- func (o *GetNameserversParams) WithHTTPClient(client *http.Client) *GetNameserversParams
- func (o *GetNameserversParams) WithResolver(resolver string) *GetNameserversParams
- func (o *GetNameserversParams) WithTimeout(timeout time.Duration) *GetNameserversParams
- func (o *GetNameserversParams) WithTransactionID(transactionID *string) *GetNameserversParams
- func (o *GetNameserversParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetNameserversReader
- type ReplaceNameserverAccepted
- func (o *ReplaceNameserverAccepted) Code() int
- func (o *ReplaceNameserverAccepted) Error() string
- func (o *ReplaceNameserverAccepted) GetPayload() *models.Nameserver
- func (o *ReplaceNameserverAccepted) IsClientError() bool
- func (o *ReplaceNameserverAccepted) IsCode(code int) bool
- func (o *ReplaceNameserverAccepted) IsRedirect() bool
- func (o *ReplaceNameserverAccepted) IsServerError() bool
- func (o *ReplaceNameserverAccepted) IsSuccess() bool
- func (o *ReplaceNameserverAccepted) String() string
- type ReplaceNameserverBadRequest
- func (o *ReplaceNameserverBadRequest) Code() int
- func (o *ReplaceNameserverBadRequest) Error() string
- func (o *ReplaceNameserverBadRequest) GetPayload() *models.Error
- func (o *ReplaceNameserverBadRequest) IsClientError() bool
- func (o *ReplaceNameserverBadRequest) IsCode(code int) bool
- func (o *ReplaceNameserverBadRequest) IsRedirect() bool
- func (o *ReplaceNameserverBadRequest) IsServerError() bool
- func (o *ReplaceNameserverBadRequest) IsSuccess() bool
- func (o *ReplaceNameserverBadRequest) String() string
- type ReplaceNameserverDefault
- func (o *ReplaceNameserverDefault) Code() int
- func (o *ReplaceNameserverDefault) Error() string
- func (o *ReplaceNameserverDefault) GetPayload() *models.Error
- func (o *ReplaceNameserverDefault) IsClientError() bool
- func (o *ReplaceNameserverDefault) IsCode(code int) bool
- func (o *ReplaceNameserverDefault) IsRedirect() bool
- func (o *ReplaceNameserverDefault) IsServerError() bool
- func (o *ReplaceNameserverDefault) IsSuccess() bool
- func (o *ReplaceNameserverDefault) String() string
- type ReplaceNameserverNotFound
- func (o *ReplaceNameserverNotFound) Code() int
- func (o *ReplaceNameserverNotFound) Error() string
- func (o *ReplaceNameserverNotFound) GetPayload() *models.Error
- func (o *ReplaceNameserverNotFound) IsClientError() bool
- func (o *ReplaceNameserverNotFound) IsCode(code int) bool
- func (o *ReplaceNameserverNotFound) IsRedirect() bool
- func (o *ReplaceNameserverNotFound) IsServerError() bool
- func (o *ReplaceNameserverNotFound) IsSuccess() bool
- func (o *ReplaceNameserverNotFound) String() string
- type ReplaceNameserverOK
- func (o *ReplaceNameserverOK) Code() int
- func (o *ReplaceNameserverOK) Error() string
- func (o *ReplaceNameserverOK) GetPayload() *models.Nameserver
- func (o *ReplaceNameserverOK) IsClientError() bool
- func (o *ReplaceNameserverOK) IsCode(code int) bool
- func (o *ReplaceNameserverOK) IsRedirect() bool
- func (o *ReplaceNameserverOK) IsServerError() bool
- func (o *ReplaceNameserverOK) IsSuccess() bool
- func (o *ReplaceNameserverOK) String() string
- type ReplaceNameserverParams
- func NewReplaceNameserverParams() *ReplaceNameserverParams
- func NewReplaceNameserverParamsWithContext(ctx context.Context) *ReplaceNameserverParams
- func NewReplaceNameserverParamsWithHTTPClient(client *http.Client) *ReplaceNameserverParams
- func NewReplaceNameserverParamsWithTimeout(timeout time.Duration) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) SetContext(ctx context.Context)
- func (o *ReplaceNameserverParams) SetData(data *models.Nameserver)
- func (o *ReplaceNameserverParams) SetDefaults()
- func (o *ReplaceNameserverParams) SetForceReload(forceReload *bool)
- func (o *ReplaceNameserverParams) SetHTTPClient(client *http.Client)
- func (o *ReplaceNameserverParams) SetName(name string)
- func (o *ReplaceNameserverParams) SetResolver(resolver string)
- func (o *ReplaceNameserverParams) SetTimeout(timeout time.Duration)
- func (o *ReplaceNameserverParams) SetTransactionID(transactionID *string)
- func (o *ReplaceNameserverParams) SetVersion(version *int64)
- func (o *ReplaceNameserverParams) WithContext(ctx context.Context) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithData(data *models.Nameserver) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithDefaults() *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithForceReload(forceReload *bool) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithHTTPClient(client *http.Client) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithName(name string) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithResolver(resolver string) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithTimeout(timeout time.Duration) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithTransactionID(transactionID *string) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WithVersion(version *int64) *ReplaceNameserverParams
- func (o *ReplaceNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReplaceNameserverReader
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 ¶
func (a *Client) CreateNameserver(params *CreateNameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNameserverCreated, *CreateNameserverAccepted, error)
CreateNameserver adds a nameserver
Adds a new nameserver to the resolvers section.
func (*Client) DeleteNameserver ¶
func (a *Client) DeleteNameserver(params *DeleteNameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNameserverAccepted, *DeleteNameserverNoContent, error)
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, opts ...ClientOption) (*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, opts ...ClientOption) (*GetNameserversOK, error)
GetNameservers returns an array of nameservers
Returns an array of all configured nameservers.
func (*Client) ReplaceNameserver ¶
func (a *Client) ReplaceNameserver(params *ReplaceNameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceNameserverOK, *ReplaceNameserverAccepted, error)
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 ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateNameserver(params *CreateNameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateNameserverCreated, *CreateNameserverAccepted, error) DeleteNameserver(params *DeleteNameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteNameserverAccepted, *DeleteNameserverNoContent, error) GetNameserver(params *GetNameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNameserverOK, error) GetNameservers(params *GetNameserversParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetNameserversOK, error) ReplaceNameserver(params *ReplaceNameserverParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReplaceNameserverOK, *ReplaceNameserverAccepted, 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 nameserver API client.
type CreateNameserverAccepted ¶
type CreateNameserverAccepted struct { /* ID of the requested reload */ ReloadID string Payload *models.Nameserver }
CreateNameserverAccepted describes a response with status code 202, 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) Code ¶ added in v1.1.5
func (o *CreateNameserverAccepted) Code() int
Code gets the status code for the create nameserver accepted response
func (*CreateNameserverAccepted) Error ¶
func (o *CreateNameserverAccepted) Error() string
func (*CreateNameserverAccepted) GetPayload ¶
func (o *CreateNameserverAccepted) GetPayload() *models.Nameserver
func (*CreateNameserverAccepted) IsClientError ¶ added in v1.1.0
func (o *CreateNameserverAccepted) IsClientError() bool
IsClientError returns true when this create nameserver accepted response has a 4xx status code
func (*CreateNameserverAccepted) IsCode ¶ added in v1.1.0
func (o *CreateNameserverAccepted) IsCode(code int) bool
IsCode returns true when this create nameserver accepted response a status code equal to that given
func (*CreateNameserverAccepted) IsRedirect ¶ added in v1.1.0
func (o *CreateNameserverAccepted) IsRedirect() bool
IsRedirect returns true when this create nameserver accepted response has a 3xx status code
func (*CreateNameserverAccepted) IsServerError ¶ added in v1.1.0
func (o *CreateNameserverAccepted) IsServerError() bool
IsServerError returns true when this create nameserver accepted response has a 5xx status code
func (*CreateNameserverAccepted) IsSuccess ¶ added in v1.1.0
func (o *CreateNameserverAccepted) IsSuccess() bool
IsSuccess returns true when this create nameserver accepted response has a 2xx status code
func (*CreateNameserverAccepted) String ¶ added in v1.1.0
func (o *CreateNameserverAccepted) String() string
type CreateNameserverBadRequest ¶
type CreateNameserverBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateNameserverBadRequest describes a response with status code 400, with default header values.
Bad request
func NewCreateNameserverBadRequest ¶
func NewCreateNameserverBadRequest() *CreateNameserverBadRequest
NewCreateNameserverBadRequest creates a CreateNameserverBadRequest with default headers values
func (*CreateNameserverBadRequest) Code ¶ added in v1.1.5
func (o *CreateNameserverBadRequest) Code() int
Code gets the status code for the create nameserver bad request response
func (*CreateNameserverBadRequest) Error ¶
func (o *CreateNameserverBadRequest) Error() string
func (*CreateNameserverBadRequest) GetPayload ¶
func (o *CreateNameserverBadRequest) GetPayload() *models.Error
func (*CreateNameserverBadRequest) IsClientError ¶ added in v1.1.0
func (o *CreateNameserverBadRequest) IsClientError() bool
IsClientError returns true when this create nameserver bad request response has a 4xx status code
func (*CreateNameserverBadRequest) IsCode ¶ added in v1.1.0
func (o *CreateNameserverBadRequest) IsCode(code int) bool
IsCode returns true when this create nameserver bad request response a status code equal to that given
func (*CreateNameserverBadRequest) IsRedirect ¶ added in v1.1.0
func (o *CreateNameserverBadRequest) IsRedirect() bool
IsRedirect returns true when this create nameserver bad request response has a 3xx status code
func (*CreateNameserverBadRequest) IsServerError ¶ added in v1.1.0
func (o *CreateNameserverBadRequest) IsServerError() bool
IsServerError returns true when this create nameserver bad request response has a 5xx status code
func (*CreateNameserverBadRequest) IsSuccess ¶ added in v1.1.0
func (o *CreateNameserverBadRequest) IsSuccess() bool
IsSuccess returns true when this create nameserver bad request response has a 2xx status code
func (*CreateNameserverBadRequest) String ¶ added in v1.1.0
func (o *CreateNameserverBadRequest) String() string
type CreateNameserverConflict ¶
type CreateNameserverConflict struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
CreateNameserverConflict describes a response with status code 409, with default header values.
The specified resource already exists
func NewCreateNameserverConflict ¶
func NewCreateNameserverConflict() *CreateNameserverConflict
NewCreateNameserverConflict creates a CreateNameserverConflict with default headers values
func (*CreateNameserverConflict) Code ¶ added in v1.1.5
func (o *CreateNameserverConflict) Code() int
Code gets the status code for the create nameserver conflict response
func (*CreateNameserverConflict) Error ¶
func (o *CreateNameserverConflict) Error() string
func (*CreateNameserverConflict) GetPayload ¶
func (o *CreateNameserverConflict) GetPayload() *models.Error
func (*CreateNameserverConflict) IsClientError ¶ added in v1.1.0
func (o *CreateNameserverConflict) IsClientError() bool
IsClientError returns true when this create nameserver conflict response has a 4xx status code
func (*CreateNameserverConflict) IsCode ¶ added in v1.1.0
func (o *CreateNameserverConflict) IsCode(code int) bool
IsCode returns true when this create nameserver conflict response a status code equal to that given
func (*CreateNameserverConflict) IsRedirect ¶ added in v1.1.0
func (o *CreateNameserverConflict) IsRedirect() bool
IsRedirect returns true when this create nameserver conflict response has a 3xx status code
func (*CreateNameserverConflict) IsServerError ¶ added in v1.1.0
func (o *CreateNameserverConflict) IsServerError() bool
IsServerError returns true when this create nameserver conflict response has a 5xx status code
func (*CreateNameserverConflict) IsSuccess ¶ added in v1.1.0
func (o *CreateNameserverConflict) IsSuccess() bool
IsSuccess returns true when this create nameserver conflict response has a 2xx status code
func (*CreateNameserverConflict) String ¶ added in v1.1.0
func (o *CreateNameserverConflict) String() string
type CreateNameserverCreated ¶
type CreateNameserverCreated struct {
Payload *models.Nameserver
}
CreateNameserverCreated describes a response with status code 201, with default header values.
Nameserver created
func NewCreateNameserverCreated ¶
func NewCreateNameserverCreated() *CreateNameserverCreated
NewCreateNameserverCreated creates a CreateNameserverCreated with default headers values
func (*CreateNameserverCreated) Code ¶ added in v1.1.5
func (o *CreateNameserverCreated) Code() int
Code gets the status code for the create nameserver created response
func (*CreateNameserverCreated) Error ¶
func (o *CreateNameserverCreated) Error() string
func (*CreateNameserverCreated) GetPayload ¶
func (o *CreateNameserverCreated) GetPayload() *models.Nameserver
func (*CreateNameserverCreated) IsClientError ¶ added in v1.1.0
func (o *CreateNameserverCreated) IsClientError() bool
IsClientError returns true when this create nameserver created response has a 4xx status code
func (*CreateNameserverCreated) IsCode ¶ added in v1.1.0
func (o *CreateNameserverCreated) IsCode(code int) bool
IsCode returns true when this create nameserver created response a status code equal to that given
func (*CreateNameserverCreated) IsRedirect ¶ added in v1.1.0
func (o *CreateNameserverCreated) IsRedirect() bool
IsRedirect returns true when this create nameserver created response has a 3xx status code
func (*CreateNameserverCreated) IsServerError ¶ added in v1.1.0
func (o *CreateNameserverCreated) IsServerError() bool
IsServerError returns true when this create nameserver created response has a 5xx status code
func (*CreateNameserverCreated) IsSuccess ¶ added in v1.1.0
func (o *CreateNameserverCreated) IsSuccess() bool
IsSuccess returns true when this create nameserver created response has a 2xx status code
func (*CreateNameserverCreated) String ¶ added in v1.1.0
func (o *CreateNameserverCreated) String() string
type CreateNameserverDefault ¶
type CreateNameserverDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
CreateNameserverDefault describes a response with status code -1, 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
func (*CreateNameserverDefault) IsClientError ¶ added in v1.1.0
func (o *CreateNameserverDefault) IsClientError() bool
IsClientError returns true when this create nameserver default response has a 4xx status code
func (*CreateNameserverDefault) IsCode ¶ added in v1.1.0
func (o *CreateNameserverDefault) IsCode(code int) bool
IsCode returns true when this create nameserver default response a status code equal to that given
func (*CreateNameserverDefault) IsRedirect ¶ added in v1.1.0
func (o *CreateNameserverDefault) IsRedirect() bool
IsRedirect returns true when this create nameserver default response has a 3xx status code
func (*CreateNameserverDefault) IsServerError ¶ added in v1.1.0
func (o *CreateNameserverDefault) IsServerError() bool
IsServerError returns true when this create nameserver default response has a 5xx status code
func (*CreateNameserverDefault) IsSuccess ¶ added in v1.1.0
func (o *CreateNameserverDefault) IsSuccess() bool
IsSuccess returns true when this create nameserver default response has a 2xx status code
func (*CreateNameserverDefault) String ¶ added in v1.1.0
func (o *CreateNameserverDefault) String() string
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 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 NewCreateNameserverParamsWithContext ¶
func NewCreateNameserverParamsWithContext(ctx context.Context) *CreateNameserverParams
NewCreateNameserverParamsWithContext creates a new CreateNameserverParams object with 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 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 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) SetDefaults ¶
func (o *CreateNameserverParams) SetDefaults()
SetDefaults hydrates default values in the create nameserver params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *CreateNameserverParams) WithContext(ctx context.Context) *CreateNameserverParams
WithContext adds the context to the create nameserver params
func (*CreateNameserverParams) WithData ¶
func (o *CreateNameserverParams) WithData(data *models.Nameserver) *CreateNameserverParams
WithData adds the data to the create nameserver params
func (*CreateNameserverParams) WithDefaults ¶
func (o *CreateNameserverParams) WithDefaults() *CreateNameserverParams
WithDefaults hydrates default values in the create nameserver params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *CreateNameserverParams) WithTimeout(timeout time.Duration) *CreateNameserverParams
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 ¶
func (o *CreateNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 describes a response with status code 202, 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) Code ¶ added in v1.1.5
func (o *DeleteNameserverAccepted) Code() int
Code gets the status code for the delete nameserver accepted response
func (*DeleteNameserverAccepted) Error ¶
func (o *DeleteNameserverAccepted) Error() string
func (*DeleteNameserverAccepted) IsClientError ¶ added in v1.1.0
func (o *DeleteNameserverAccepted) IsClientError() bool
IsClientError returns true when this delete nameserver accepted response has a 4xx status code
func (*DeleteNameserverAccepted) IsCode ¶ added in v1.1.0
func (o *DeleteNameserverAccepted) IsCode(code int) bool
IsCode returns true when this delete nameserver accepted response a status code equal to that given
func (*DeleteNameserverAccepted) IsRedirect ¶ added in v1.1.0
func (o *DeleteNameserverAccepted) IsRedirect() bool
IsRedirect returns true when this delete nameserver accepted response has a 3xx status code
func (*DeleteNameserverAccepted) IsServerError ¶ added in v1.1.0
func (o *DeleteNameserverAccepted) IsServerError() bool
IsServerError returns true when this delete nameserver accepted response has a 5xx status code
func (*DeleteNameserverAccepted) IsSuccess ¶ added in v1.1.0
func (o *DeleteNameserverAccepted) IsSuccess() bool
IsSuccess returns true when this delete nameserver accepted response has a 2xx status code
func (*DeleteNameserverAccepted) String ¶ added in v1.1.0
func (o *DeleteNameserverAccepted) String() string
type DeleteNameserverDefault ¶
type DeleteNameserverDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
DeleteNameserverDefault describes a response with status code -1, 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
func (*DeleteNameserverDefault) IsClientError ¶ added in v1.1.0
func (o *DeleteNameserverDefault) IsClientError() bool
IsClientError returns true when this delete nameserver default response has a 4xx status code
func (*DeleteNameserverDefault) IsCode ¶ added in v1.1.0
func (o *DeleteNameserverDefault) IsCode(code int) bool
IsCode returns true when this delete nameserver default response a status code equal to that given
func (*DeleteNameserverDefault) IsRedirect ¶ added in v1.1.0
func (o *DeleteNameserverDefault) IsRedirect() bool
IsRedirect returns true when this delete nameserver default response has a 3xx status code
func (*DeleteNameserverDefault) IsServerError ¶ added in v1.1.0
func (o *DeleteNameserverDefault) IsServerError() bool
IsServerError returns true when this delete nameserver default response has a 5xx status code
func (*DeleteNameserverDefault) IsSuccess ¶ added in v1.1.0
func (o *DeleteNameserverDefault) IsSuccess() bool
IsSuccess returns true when this delete nameserver default response has a 2xx status code
func (*DeleteNameserverDefault) String ¶ added in v1.1.0
func (o *DeleteNameserverDefault) String() string
type DeleteNameserverNoContent ¶
type DeleteNameserverNoContent struct { }
DeleteNameserverNoContent describes a response with status code 204, with default header values.
Nameserver deleted
func NewDeleteNameserverNoContent ¶
func NewDeleteNameserverNoContent() *DeleteNameserverNoContent
NewDeleteNameserverNoContent creates a DeleteNameserverNoContent with default headers values
func (*DeleteNameserverNoContent) Code ¶ added in v1.1.5
func (o *DeleteNameserverNoContent) Code() int
Code gets the status code for the delete nameserver no content response
func (*DeleteNameserverNoContent) Error ¶
func (o *DeleteNameserverNoContent) Error() string
func (*DeleteNameserverNoContent) IsClientError ¶ added in v1.1.0
func (o *DeleteNameserverNoContent) IsClientError() bool
IsClientError returns true when this delete nameserver no content response has a 4xx status code
func (*DeleteNameserverNoContent) IsCode ¶ added in v1.1.0
func (o *DeleteNameserverNoContent) IsCode(code int) bool
IsCode returns true when this delete nameserver no content response a status code equal to that given
func (*DeleteNameserverNoContent) IsRedirect ¶ added in v1.1.0
func (o *DeleteNameserverNoContent) IsRedirect() bool
IsRedirect returns true when this delete nameserver no content response has a 3xx status code
func (*DeleteNameserverNoContent) IsServerError ¶ added in v1.1.0
func (o *DeleteNameserverNoContent) IsServerError() bool
IsServerError returns true when this delete nameserver no content response has a 5xx status code
func (*DeleteNameserverNoContent) IsSuccess ¶ added in v1.1.0
func (o *DeleteNameserverNoContent) IsSuccess() bool
IsSuccess returns true when this delete nameserver no content response has a 2xx status code
func (*DeleteNameserverNoContent) String ¶ added in v1.1.0
func (o *DeleteNameserverNoContent) String() string
type DeleteNameserverNotFound ¶
type DeleteNameserverNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
DeleteNameserverNotFound describes a response with status code 404, 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) Code ¶ added in v1.1.5
func (o *DeleteNameserverNotFound) Code() int
Code gets the status code for the delete nameserver not found response
func (*DeleteNameserverNotFound) Error ¶
func (o *DeleteNameserverNotFound) Error() string
func (*DeleteNameserverNotFound) GetPayload ¶
func (o *DeleteNameserverNotFound) GetPayload() *models.Error
func (*DeleteNameserverNotFound) IsClientError ¶ added in v1.1.0
func (o *DeleteNameserverNotFound) IsClientError() bool
IsClientError returns true when this delete nameserver not found response has a 4xx status code
func (*DeleteNameserverNotFound) IsCode ¶ added in v1.1.0
func (o *DeleteNameserverNotFound) IsCode(code int) bool
IsCode returns true when this delete nameserver not found response a status code equal to that given
func (*DeleteNameserverNotFound) IsRedirect ¶ added in v1.1.0
func (o *DeleteNameserverNotFound) IsRedirect() bool
IsRedirect returns true when this delete nameserver not found response has a 3xx status code
func (*DeleteNameserverNotFound) IsServerError ¶ added in v1.1.0
func (o *DeleteNameserverNotFound) IsServerError() bool
IsServerError returns true when this delete nameserver not found response has a 5xx status code
func (*DeleteNameserverNotFound) IsSuccess ¶ added in v1.1.0
func (o *DeleteNameserverNotFound) IsSuccess() bool
IsSuccess returns true when this delete nameserver not found response has a 2xx status code
func (*DeleteNameserverNotFound) String ¶ added in v1.1.0
func (o *DeleteNameserverNotFound) String() string
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 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 NewDeleteNameserverParamsWithContext ¶
func NewDeleteNameserverParamsWithContext(ctx context.Context) *DeleteNameserverParams
NewDeleteNameserverParamsWithContext creates a new DeleteNameserverParams object with 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 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 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) SetDefaults ¶
func (o *DeleteNameserverParams) SetDefaults()
SetDefaults hydrates default values in the delete nameserver params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *DeleteNameserverParams) WithContext(ctx context.Context) *DeleteNameserverParams
WithContext adds the context to the delete nameserver params
func (*DeleteNameserverParams) WithDefaults ¶
func (o *DeleteNameserverParams) WithDefaults() *DeleteNameserverParams
WithDefaults hydrates default values in the delete nameserver params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *DeleteNameserverParams) WithName(name string) *DeleteNameserverParams
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 ¶
func (o *DeleteNameserverParams) WithTimeout(timeout time.Duration) *DeleteNameserverParams
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 ¶
func (o *DeleteNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 string Payload *models.Error // contains filtered or unexported fields }
GetNameserverDefault describes a response with status code -1, 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
func (*GetNameserverDefault) IsClientError ¶ added in v1.1.0
func (o *GetNameserverDefault) IsClientError() bool
IsClientError returns true when this get nameserver default response has a 4xx status code
func (*GetNameserverDefault) IsCode ¶ added in v1.1.0
func (o *GetNameserverDefault) IsCode(code int) bool
IsCode returns true when this get nameserver default response a status code equal to that given
func (*GetNameserverDefault) IsRedirect ¶ added in v1.1.0
func (o *GetNameserverDefault) IsRedirect() bool
IsRedirect returns true when this get nameserver default response has a 3xx status code
func (*GetNameserverDefault) IsServerError ¶ added in v1.1.0
func (o *GetNameserverDefault) IsServerError() bool
IsServerError returns true when this get nameserver default response has a 5xx status code
func (*GetNameserverDefault) IsSuccess ¶ added in v1.1.0
func (o *GetNameserverDefault) IsSuccess() bool
IsSuccess returns true when this get nameserver default response has a 2xx status code
func (*GetNameserverDefault) String ¶ added in v1.1.0
func (o *GetNameserverDefault) String() string
type GetNameserverNotFound ¶
type GetNameserverNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
GetNameserverNotFound describes a response with status code 404, 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) Code ¶ added in v1.1.5
func (o *GetNameserverNotFound) Code() int
Code gets the status code for the get nameserver not found response
func (*GetNameserverNotFound) Error ¶
func (o *GetNameserverNotFound) Error() string
func (*GetNameserverNotFound) GetPayload ¶
func (o *GetNameserverNotFound) GetPayload() *models.Error
func (*GetNameserverNotFound) IsClientError ¶ added in v1.1.0
func (o *GetNameserverNotFound) IsClientError() bool
IsClientError returns true when this get nameserver not found response has a 4xx status code
func (*GetNameserverNotFound) IsCode ¶ added in v1.1.0
func (o *GetNameserverNotFound) IsCode(code int) bool
IsCode returns true when this get nameserver not found response a status code equal to that given
func (*GetNameserverNotFound) IsRedirect ¶ added in v1.1.0
func (o *GetNameserverNotFound) IsRedirect() bool
IsRedirect returns true when this get nameserver not found response has a 3xx status code
func (*GetNameserverNotFound) IsServerError ¶ added in v1.1.0
func (o *GetNameserverNotFound) IsServerError() bool
IsServerError returns true when this get nameserver not found response has a 5xx status code
func (*GetNameserverNotFound) IsSuccess ¶ added in v1.1.0
func (o *GetNameserverNotFound) IsSuccess() bool
IsSuccess returns true when this get nameserver not found response has a 2xx status code
func (*GetNameserverNotFound) String ¶ added in v1.1.0
func (o *GetNameserverNotFound) String() string
type GetNameserverOK ¶
type GetNameserverOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetNameserverOKBody }
GetNameserverOK describes a response with status code 200, with default header values.
Successful operation
func NewGetNameserverOK ¶
func NewGetNameserverOK() *GetNameserverOK
NewGetNameserverOK creates a GetNameserverOK with default headers values
func (*GetNameserverOK) Code ¶ added in v1.1.5
func (o *GetNameserverOK) Code() int
Code gets the status code for the get nameserver o k response
func (*GetNameserverOK) Error ¶
func (o *GetNameserverOK) Error() string
func (*GetNameserverOK) GetPayload ¶
func (o *GetNameserverOK) GetPayload() *GetNameserverOKBody
func (*GetNameserverOK) IsClientError ¶ added in v1.1.0
func (o *GetNameserverOK) IsClientError() bool
IsClientError returns true when this get nameserver o k response has a 4xx status code
func (*GetNameserverOK) IsCode ¶ added in v1.1.0
func (o *GetNameserverOK) IsCode(code int) bool
IsCode returns true when this get nameserver o k response a status code equal to that given
func (*GetNameserverOK) IsRedirect ¶ added in v1.1.0
func (o *GetNameserverOK) IsRedirect() bool
IsRedirect returns true when this get nameserver o k response has a 3xx status code
func (*GetNameserverOK) IsServerError ¶ added in v1.1.0
func (o *GetNameserverOK) IsServerError() bool
IsServerError returns true when this get nameserver o k response has a 5xx status code
func (*GetNameserverOK) IsSuccess ¶ added in v1.1.0
func (o *GetNameserverOK) IsSuccess() bool
IsSuccess returns true when this get nameserver o k response has a 2xx status code
func (*GetNameserverOK) String ¶ added in v1.1.0
func (o *GetNameserverOK) String() string
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) ContextValidate ¶
ContextValidate validate this get nameserver o k body based on the context it is used
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
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 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 NewGetNameserverParamsWithContext ¶
func NewGetNameserverParamsWithContext(ctx context.Context) *GetNameserverParams
NewGetNameserverParamsWithContext creates a new GetNameserverParams object with 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 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 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) SetDefaults ¶
func (o *GetNameserverParams) SetDefaults()
SetDefaults hydrates default values in the get nameserver params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *GetNameserverParams) WithContext(ctx context.Context) *GetNameserverParams
WithContext adds the context to the get nameserver params
func (*GetNameserverParams) WithDefaults ¶
func (o *GetNameserverParams) WithDefaults() *GetNameserverParams
WithDefaults hydrates default values in the get nameserver params (not the query body).
All values with no default are reset to their zero value.
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 string Payload *models.Error // contains filtered or unexported fields }
GetNameserversDefault describes a response with status code -1, 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
func (*GetNameserversDefault) IsClientError ¶ added in v1.1.0
func (o *GetNameserversDefault) IsClientError() bool
IsClientError returns true when this get nameservers default response has a 4xx status code
func (*GetNameserversDefault) IsCode ¶ added in v1.1.0
func (o *GetNameserversDefault) IsCode(code int) bool
IsCode returns true when this get nameservers default response a status code equal to that given
func (*GetNameserversDefault) IsRedirect ¶ added in v1.1.0
func (o *GetNameserversDefault) IsRedirect() bool
IsRedirect returns true when this get nameservers default response has a 3xx status code
func (*GetNameserversDefault) IsServerError ¶ added in v1.1.0
func (o *GetNameserversDefault) IsServerError() bool
IsServerError returns true when this get nameservers default response has a 5xx status code
func (*GetNameserversDefault) IsSuccess ¶ added in v1.1.0
func (o *GetNameserversDefault) IsSuccess() bool
IsSuccess returns true when this get nameservers default response has a 2xx status code
func (*GetNameserversDefault) String ¶ added in v1.1.0
func (o *GetNameserversDefault) String() string
type GetNameserversOK ¶
type GetNameserversOK struct { /* Configuration file version */ ConfigurationVersion string Payload *GetNameserversOKBody }
GetNameserversOK describes a response with status code 200, with default header values.
Successful operation
func NewGetNameserversOK ¶
func NewGetNameserversOK() *GetNameserversOK
NewGetNameserversOK creates a GetNameserversOK with default headers values
func (*GetNameserversOK) Code ¶ added in v1.1.5
func (o *GetNameserversOK) Code() int
Code gets the status code for the get nameservers o k response
func (*GetNameserversOK) Error ¶
func (o *GetNameserversOK) Error() string
func (*GetNameserversOK) GetPayload ¶
func (o *GetNameserversOK) GetPayload() *GetNameserversOKBody
func (*GetNameserversOK) IsClientError ¶ added in v1.1.0
func (o *GetNameserversOK) IsClientError() bool
IsClientError returns true when this get nameservers o k response has a 4xx status code
func (*GetNameserversOK) IsCode ¶ added in v1.1.0
func (o *GetNameserversOK) IsCode(code int) bool
IsCode returns true when this get nameservers o k response a status code equal to that given
func (*GetNameserversOK) IsRedirect ¶ added in v1.1.0
func (o *GetNameserversOK) IsRedirect() bool
IsRedirect returns true when this get nameservers o k response has a 3xx status code
func (*GetNameserversOK) IsServerError ¶ added in v1.1.0
func (o *GetNameserversOK) IsServerError() bool
IsServerError returns true when this get nameservers o k response has a 5xx status code
func (*GetNameserversOK) IsSuccess ¶ added in v1.1.0
func (o *GetNameserversOK) IsSuccess() bool
IsSuccess returns true when this get nameservers o k response has a 2xx status code
func (*GetNameserversOK) String ¶ added in v1.1.0
func (o *GetNameserversOK) String() string
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) ContextValidate ¶
ContextValidate validate this get nameservers o k body based on the context it is used
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
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 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 NewGetNameserversParamsWithContext ¶
func NewGetNameserversParamsWithContext(ctx context.Context) *GetNameserversParams
NewGetNameserversParamsWithContext creates a new GetNameserversParams object with 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 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 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) SetDefaults ¶
func (o *GetNameserversParams) SetDefaults()
SetDefaults hydrates default values in the get nameservers params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *GetNameserversParams) WithContext(ctx context.Context) *GetNameserversParams
WithContext adds the context to the get nameservers params
func (*GetNameserversParams) WithDefaults ¶
func (o *GetNameserversParams) WithDefaults() *GetNameserversParams
WithDefaults hydrates default values in the get nameservers params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 202, 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) Code ¶ added in v1.1.5
func (o *ReplaceNameserverAccepted) Code() int
Code gets the status code for the replace nameserver accepted response
func (*ReplaceNameserverAccepted) Error ¶
func (o *ReplaceNameserverAccepted) Error() string
func (*ReplaceNameserverAccepted) GetPayload ¶
func (o *ReplaceNameserverAccepted) GetPayload() *models.Nameserver
func (*ReplaceNameserverAccepted) IsClientError ¶ added in v1.1.0
func (o *ReplaceNameserverAccepted) IsClientError() bool
IsClientError returns true when this replace nameserver accepted response has a 4xx status code
func (*ReplaceNameserverAccepted) IsCode ¶ added in v1.1.0
func (o *ReplaceNameserverAccepted) IsCode(code int) bool
IsCode returns true when this replace nameserver accepted response a status code equal to that given
func (*ReplaceNameserverAccepted) IsRedirect ¶ added in v1.1.0
func (o *ReplaceNameserverAccepted) IsRedirect() bool
IsRedirect returns true when this replace nameserver accepted response has a 3xx status code
func (*ReplaceNameserverAccepted) IsServerError ¶ added in v1.1.0
func (o *ReplaceNameserverAccepted) IsServerError() bool
IsServerError returns true when this replace nameserver accepted response has a 5xx status code
func (*ReplaceNameserverAccepted) IsSuccess ¶ added in v1.1.0
func (o *ReplaceNameserverAccepted) IsSuccess() bool
IsSuccess returns true when this replace nameserver accepted response has a 2xx status code
func (*ReplaceNameserverAccepted) String ¶ added in v1.1.0
func (o *ReplaceNameserverAccepted) String() string
type ReplaceNameserverBadRequest ¶
type ReplaceNameserverBadRequest struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceNameserverBadRequest describes a response with status code 400, with default header values.
Bad request
func NewReplaceNameserverBadRequest ¶
func NewReplaceNameserverBadRequest() *ReplaceNameserverBadRequest
NewReplaceNameserverBadRequest creates a ReplaceNameserverBadRequest with default headers values
func (*ReplaceNameserverBadRequest) Code ¶ added in v1.1.5
func (o *ReplaceNameserverBadRequest) Code() int
Code gets the status code for the replace nameserver bad request response
func (*ReplaceNameserverBadRequest) Error ¶
func (o *ReplaceNameserverBadRequest) Error() string
func (*ReplaceNameserverBadRequest) GetPayload ¶
func (o *ReplaceNameserverBadRequest) GetPayload() *models.Error
func (*ReplaceNameserverBadRequest) IsClientError ¶ added in v1.1.0
func (o *ReplaceNameserverBadRequest) IsClientError() bool
IsClientError returns true when this replace nameserver bad request response has a 4xx status code
func (*ReplaceNameserverBadRequest) IsCode ¶ added in v1.1.0
func (o *ReplaceNameserverBadRequest) IsCode(code int) bool
IsCode returns true when this replace nameserver bad request response a status code equal to that given
func (*ReplaceNameserverBadRequest) IsRedirect ¶ added in v1.1.0
func (o *ReplaceNameserverBadRequest) IsRedirect() bool
IsRedirect returns true when this replace nameserver bad request response has a 3xx status code
func (*ReplaceNameserverBadRequest) IsServerError ¶ added in v1.1.0
func (o *ReplaceNameserverBadRequest) IsServerError() bool
IsServerError returns true when this replace nameserver bad request response has a 5xx status code
func (*ReplaceNameserverBadRequest) IsSuccess ¶ added in v1.1.0
func (o *ReplaceNameserverBadRequest) IsSuccess() bool
IsSuccess returns true when this replace nameserver bad request response has a 2xx status code
func (*ReplaceNameserverBadRequest) String ¶ added in v1.1.0
func (o *ReplaceNameserverBadRequest) String() string
type ReplaceNameserverDefault ¶
type ReplaceNameserverDefault struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error // contains filtered or unexported fields }
ReplaceNameserverDefault describes a response with status code -1, 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
func (*ReplaceNameserverDefault) IsClientError ¶ added in v1.1.0
func (o *ReplaceNameserverDefault) IsClientError() bool
IsClientError returns true when this replace nameserver default response has a 4xx status code
func (*ReplaceNameserverDefault) IsCode ¶ added in v1.1.0
func (o *ReplaceNameserverDefault) IsCode(code int) bool
IsCode returns true when this replace nameserver default response a status code equal to that given
func (*ReplaceNameserverDefault) IsRedirect ¶ added in v1.1.0
func (o *ReplaceNameserverDefault) IsRedirect() bool
IsRedirect returns true when this replace nameserver default response has a 3xx status code
func (*ReplaceNameserverDefault) IsServerError ¶ added in v1.1.0
func (o *ReplaceNameserverDefault) IsServerError() bool
IsServerError returns true when this replace nameserver default response has a 5xx status code
func (*ReplaceNameserverDefault) IsSuccess ¶ added in v1.1.0
func (o *ReplaceNameserverDefault) IsSuccess() bool
IsSuccess returns true when this replace nameserver default response has a 2xx status code
func (*ReplaceNameserverDefault) String ¶ added in v1.1.0
func (o *ReplaceNameserverDefault) String() string
type ReplaceNameserverNotFound ¶
type ReplaceNameserverNotFound struct { /* Configuration file version */ ConfigurationVersion string Payload *models.Error }
ReplaceNameserverNotFound describes a response with status code 404, 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) Code ¶ added in v1.1.5
func (o *ReplaceNameserverNotFound) Code() int
Code gets the status code for the replace nameserver not found response
func (*ReplaceNameserverNotFound) Error ¶
func (o *ReplaceNameserverNotFound) Error() string
func (*ReplaceNameserverNotFound) GetPayload ¶
func (o *ReplaceNameserverNotFound) GetPayload() *models.Error
func (*ReplaceNameserverNotFound) IsClientError ¶ added in v1.1.0
func (o *ReplaceNameserverNotFound) IsClientError() bool
IsClientError returns true when this replace nameserver not found response has a 4xx status code
func (*ReplaceNameserverNotFound) IsCode ¶ added in v1.1.0
func (o *ReplaceNameserverNotFound) IsCode(code int) bool
IsCode returns true when this replace nameserver not found response a status code equal to that given
func (*ReplaceNameserverNotFound) IsRedirect ¶ added in v1.1.0
func (o *ReplaceNameserverNotFound) IsRedirect() bool
IsRedirect returns true when this replace nameserver not found response has a 3xx status code
func (*ReplaceNameserverNotFound) IsServerError ¶ added in v1.1.0
func (o *ReplaceNameserverNotFound) IsServerError() bool
IsServerError returns true when this replace nameserver not found response has a 5xx status code
func (*ReplaceNameserverNotFound) IsSuccess ¶ added in v1.1.0
func (o *ReplaceNameserverNotFound) IsSuccess() bool
IsSuccess returns true when this replace nameserver not found response has a 2xx status code
func (*ReplaceNameserverNotFound) String ¶ added in v1.1.0
func (o *ReplaceNameserverNotFound) String() string
type ReplaceNameserverOK ¶
type ReplaceNameserverOK struct {
Payload *models.Nameserver
}
ReplaceNameserverOK describes a response with status code 200, with default header values.
Nameserver replaced
func NewReplaceNameserverOK ¶
func NewReplaceNameserverOK() *ReplaceNameserverOK
NewReplaceNameserverOK creates a ReplaceNameserverOK with default headers values
func (*ReplaceNameserverOK) Code ¶ added in v1.1.5
func (o *ReplaceNameserverOK) Code() int
Code gets the status code for the replace nameserver o k response
func (*ReplaceNameserverOK) Error ¶
func (o *ReplaceNameserverOK) Error() string
func (*ReplaceNameserverOK) GetPayload ¶
func (o *ReplaceNameserverOK) GetPayload() *models.Nameserver
func (*ReplaceNameserverOK) IsClientError ¶ added in v1.1.0
func (o *ReplaceNameserverOK) IsClientError() bool
IsClientError returns true when this replace nameserver o k response has a 4xx status code
func (*ReplaceNameserverOK) IsCode ¶ added in v1.1.0
func (o *ReplaceNameserverOK) IsCode(code int) bool
IsCode returns true when this replace nameserver o k response a status code equal to that given
func (*ReplaceNameserverOK) IsRedirect ¶ added in v1.1.0
func (o *ReplaceNameserverOK) IsRedirect() bool
IsRedirect returns true when this replace nameserver o k response has a 3xx status code
func (*ReplaceNameserverOK) IsServerError ¶ added in v1.1.0
func (o *ReplaceNameserverOK) IsServerError() bool
IsServerError returns true when this replace nameserver o k response has a 5xx status code
func (*ReplaceNameserverOK) IsSuccess ¶ added in v1.1.0
func (o *ReplaceNameserverOK) IsSuccess() bool
IsSuccess returns true when this replace nameserver o k response has a 2xx status code
func (*ReplaceNameserverOK) String ¶ added in v1.1.0
func (o *ReplaceNameserverOK) String() string
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 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 NewReplaceNameserverParamsWithContext ¶
func NewReplaceNameserverParamsWithContext(ctx context.Context) *ReplaceNameserverParams
NewReplaceNameserverParamsWithContext creates a new ReplaceNameserverParams object with 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 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 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) SetDefaults ¶
func (o *ReplaceNameserverParams) SetDefaults()
SetDefaults hydrates default values in the replace nameserver params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *ReplaceNameserverParams) WithContext(ctx context.Context) *ReplaceNameserverParams
WithContext adds the context to the replace nameserver params
func (*ReplaceNameserverParams) WithData ¶
func (o *ReplaceNameserverParams) WithData(data *models.Nameserver) *ReplaceNameserverParams
WithData adds the data to the replace nameserver params
func (*ReplaceNameserverParams) WithDefaults ¶
func (o *ReplaceNameserverParams) WithDefaults() *ReplaceNameserverParams
WithDefaults hydrates default values in the replace nameserver params (not the query body).
All values with no default are reset to their zero value.
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 ¶
func (o *ReplaceNameserverParams) WithName(name string) *ReplaceNameserverParams
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 ¶
func (o *ReplaceNameserverParams) WithTimeout(timeout time.Duration) *ReplaceNameserverParams
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 ¶
func (o *ReplaceNameserverParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.
Source Files ¶
- create_nameserver_parameters.go
- create_nameserver_responses.go
- delete_nameserver_parameters.go
- delete_nameserver_responses.go
- get_nameserver_parameters.go
- get_nameserver_responses.go
- get_nameservers_parameters.go
- get_nameservers_responses.go
- nameserver_client.go
- replace_nameserver_parameters.go
- replace_nameserver_responses.go