Documentation
¶
Index ¶
- type Client
- type DeleteRecordOK
- type DeleteRecordParams
- func (o *DeleteRecordParams) SetContext(ctx context.Context)
- func (o *DeleteRecordParams) SetDomain(domain string)
- func (o *DeleteRecordParams) SetHTTPClient(client *http.Client)
- func (o *DeleteRecordParams) SetTimeout(timeout time.Duration)
- func (o *DeleteRecordParams) SetType(typeVar string)
- func (o *DeleteRecordParams) WithContext(ctx context.Context) *DeleteRecordParams
- func (o *DeleteRecordParams) WithDomain(domain string) *DeleteRecordParams
- func (o *DeleteRecordParams) WithHTTPClient(client *http.Client) *DeleteRecordParams
- func (o *DeleteRecordParams) WithTimeout(timeout time.Duration) *DeleteRecordParams
- func (o *DeleteRecordParams) WithType(typeVar string) *DeleteRecordParams
- func (o *DeleteRecordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteRecordReader
- type SaveRecordOK
- type SaveRecordParams
- func (o *SaveRecordParams) SetBody(body *models.APIRecord)
- func (o *SaveRecordParams) SetContext(ctx context.Context)
- func (o *SaveRecordParams) SetHTTPClient(client *http.Client)
- func (o *SaveRecordParams) SetTimeout(timeout time.Duration)
- func (o *SaveRecordParams) WithBody(body *models.APIRecord) *SaveRecordParams
- func (o *SaveRecordParams) WithContext(ctx context.Context) *SaveRecordParams
- func (o *SaveRecordParams) WithHTTPClient(client *http.Client) *SaveRecordParams
- func (o *SaveRecordParams) WithTimeout(timeout time.Duration) *SaveRecordParams
- func (o *SaveRecordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SaveRecordReader
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 d dns service API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new d dns service API client.
func (*Client) DeleteRecord ¶
func (a *Client) DeleteRecord(params *DeleteRecordParams) (*DeleteRecordOK, error)
DeleteRecord delete record API
func (*Client) SaveRecord ¶
func (a *Client) SaveRecord(params *SaveRecordParams) (*SaveRecordOK, error)
SaveRecord echos method receives a simple message and returns it the message posted as the id parameter will also be returned
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type DeleteRecordOK ¶
DeleteRecordOK handles this case with default header values.
DeleteRecordOK delete record o k
func NewDeleteRecordOK ¶
func NewDeleteRecordOK() *DeleteRecordOK
NewDeleteRecordOK creates a DeleteRecordOK with default headers values
func (*DeleteRecordOK) Error ¶
func (o *DeleteRecordOK) Error() string
type DeleteRecordParams ¶
type DeleteRecordParams struct { /*Domain*/ Domain string /*Type*/ Type string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteRecordParams contains all the parameters to send to the API endpoint for the delete record operation typically these are written to a http.Request
func NewDeleteRecordParams ¶
func NewDeleteRecordParams() *DeleteRecordParams
NewDeleteRecordParams creates a new DeleteRecordParams object with the default values initialized.
func NewDeleteRecordParamsWithContext ¶
func NewDeleteRecordParamsWithContext(ctx context.Context) *DeleteRecordParams
NewDeleteRecordParamsWithContext creates a new DeleteRecordParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteRecordParamsWithHTTPClient ¶
func NewDeleteRecordParamsWithHTTPClient(client *http.Client) *DeleteRecordParams
NewDeleteRecordParamsWithHTTPClient creates a new DeleteRecordParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteRecordParamsWithTimeout ¶
func NewDeleteRecordParamsWithTimeout(timeout time.Duration) *DeleteRecordParams
NewDeleteRecordParamsWithTimeout creates a new DeleteRecordParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteRecordParams) SetContext ¶
func (o *DeleteRecordParams) SetContext(ctx context.Context)
SetContext adds the context to the delete record params
func (*DeleteRecordParams) SetDomain ¶
func (o *DeleteRecordParams) SetDomain(domain string)
SetDomain adds the domain to the delete record params
func (*DeleteRecordParams) SetHTTPClient ¶
func (o *DeleteRecordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete record params
func (*DeleteRecordParams) SetTimeout ¶
func (o *DeleteRecordParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete record params
func (*DeleteRecordParams) SetType ¶
func (o *DeleteRecordParams) SetType(typeVar string)
SetType adds the type to the delete record params
func (*DeleteRecordParams) WithContext ¶
func (o *DeleteRecordParams) WithContext(ctx context.Context) *DeleteRecordParams
WithContext adds the context to the delete record params
func (*DeleteRecordParams) WithDomain ¶
func (o *DeleteRecordParams) WithDomain(domain string) *DeleteRecordParams
WithDomain adds the domain to the delete record params
func (*DeleteRecordParams) WithHTTPClient ¶
func (o *DeleteRecordParams) WithHTTPClient(client *http.Client) *DeleteRecordParams
WithHTTPClient adds the HTTPClient to the delete record params
func (*DeleteRecordParams) WithTimeout ¶
func (o *DeleteRecordParams) WithTimeout(timeout time.Duration) *DeleteRecordParams
WithTimeout adds the timeout to the delete record params
func (*DeleteRecordParams) WithType ¶
func (o *DeleteRecordParams) WithType(typeVar string) *DeleteRecordParams
WithType adds the typeVar to the delete record params
func (*DeleteRecordParams) WriteToRequest ¶
func (o *DeleteRecordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteRecordReader ¶
type DeleteRecordReader struct {
// contains filtered or unexported fields
}
DeleteRecordReader is a Reader for the DeleteRecord structure.
func (*DeleteRecordReader) ReadResponse ¶
func (o *DeleteRecordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SaveRecordOK ¶
SaveRecordOK handles this case with default header values.
SaveRecordOK save record o k
func NewSaveRecordOK ¶
func NewSaveRecordOK() *SaveRecordOK
NewSaveRecordOK creates a SaveRecordOK with default headers values
func (*SaveRecordOK) Error ¶
func (o *SaveRecordOK) Error() string
type SaveRecordParams ¶
type SaveRecordParams struct { /*Body*/ Body *models.APIRecord Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SaveRecordParams contains all the parameters to send to the API endpoint for the save record operation typically these are written to a http.Request
func NewSaveRecordParams ¶
func NewSaveRecordParams() *SaveRecordParams
NewSaveRecordParams creates a new SaveRecordParams object with the default values initialized.
func NewSaveRecordParamsWithContext ¶
func NewSaveRecordParamsWithContext(ctx context.Context) *SaveRecordParams
NewSaveRecordParamsWithContext creates a new SaveRecordParams object with the default values initialized, and the ability to set a context for a request
func NewSaveRecordParamsWithHTTPClient ¶
func NewSaveRecordParamsWithHTTPClient(client *http.Client) *SaveRecordParams
NewSaveRecordParamsWithHTTPClient creates a new SaveRecordParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSaveRecordParamsWithTimeout ¶
func NewSaveRecordParamsWithTimeout(timeout time.Duration) *SaveRecordParams
NewSaveRecordParamsWithTimeout creates a new SaveRecordParams object with the default values initialized, and the ability to set a timeout on a request
func (*SaveRecordParams) SetBody ¶
func (o *SaveRecordParams) SetBody(body *models.APIRecord)
SetBody adds the body to the save record params
func (*SaveRecordParams) SetContext ¶
func (o *SaveRecordParams) SetContext(ctx context.Context)
SetContext adds the context to the save record params
func (*SaveRecordParams) SetHTTPClient ¶
func (o *SaveRecordParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the save record params
func (*SaveRecordParams) SetTimeout ¶
func (o *SaveRecordParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the save record params
func (*SaveRecordParams) WithBody ¶
func (o *SaveRecordParams) WithBody(body *models.APIRecord) *SaveRecordParams
WithBody adds the body to the save record params
func (*SaveRecordParams) WithContext ¶
func (o *SaveRecordParams) WithContext(ctx context.Context) *SaveRecordParams
WithContext adds the context to the save record params
func (*SaveRecordParams) WithHTTPClient ¶
func (o *SaveRecordParams) WithHTTPClient(client *http.Client) *SaveRecordParams
WithHTTPClient adds the HTTPClient to the save record params
func (*SaveRecordParams) WithTimeout ¶
func (o *SaveRecordParams) WithTimeout(timeout time.Duration) *SaveRecordParams
WithTimeout adds the timeout to the save record params
func (*SaveRecordParams) WriteToRequest ¶
func (o *SaveRecordParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SaveRecordReader ¶
type SaveRecordReader struct {
// contains filtered or unexported fields
}
SaveRecordReader is a Reader for the SaveRecord structure.
func (*SaveRecordReader) ReadResponse ¶
func (o *SaveRecordReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.