Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type UnregisterMachineOK
- func (o *UnregisterMachineOK) Error() string
- func (o *UnregisterMachineOK) GetPayload() *models.UnregisterMachineResponse
- func (o *UnregisterMachineOK) IsClientError() bool
- func (o *UnregisterMachineOK) IsCode(code int) bool
- func (o *UnregisterMachineOK) IsRedirect() bool
- func (o *UnregisterMachineOK) IsServerError() bool
- func (o *UnregisterMachineOK) IsSuccess() bool
- func (o *UnregisterMachineOK) String() string
- type UnregisterMachineParams
- func NewUnregisterMachineParams() *UnregisterMachineParams
- func NewUnregisterMachineParamsWithContext(ctx context.Context) *UnregisterMachineParams
- func NewUnregisterMachineParamsWithHTTPClient(client *http.Client) *UnregisterMachineParams
- func NewUnregisterMachineParamsWithTimeout(timeout time.Duration) *UnregisterMachineParams
- func (o *UnregisterMachineParams) SetBody(body *models.UnregisterMachineRequest)
- func (o *UnregisterMachineParams) SetContext(ctx context.Context)
- func (o *UnregisterMachineParams) SetDefaults()
- func (o *UnregisterMachineParams) SetHTTPClient(client *http.Client)
- func (o *UnregisterMachineParams) SetTimeout(timeout time.Duration)
- func (o *UnregisterMachineParams) WithBody(body *models.UnregisterMachineRequest) *UnregisterMachineParams
- func (o *UnregisterMachineParams) WithContext(ctx context.Context) *UnregisterMachineParams
- func (o *UnregisterMachineParams) WithDefaults() *UnregisterMachineParams
- func (o *UnregisterMachineParams) WithHTTPClient(client *http.Client) *UnregisterMachineParams
- func (o *UnregisterMachineParams) WithTimeout(timeout time.Duration) *UnregisterMachineParams
- func (o *UnregisterMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnregisterMachineReader
- type UnregisterMachineUnauthorized
- func (o *UnregisterMachineUnauthorized) Error() string
- func (o *UnregisterMachineUnauthorized) IsClientError() bool
- func (o *UnregisterMachineUnauthorized) IsCode(code int) bool
- func (o *UnregisterMachineUnauthorized) IsRedirect() bool
- func (o *UnregisterMachineUnauthorized) IsServerError() bool
- func (o *UnregisterMachineUnauthorized) IsSuccess() bool
- func (o *UnregisterMachineUnauthorized) String() string
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 unregister machines API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UnregisterMachine ¶
func (a *Client) UnregisterMachine(params *UnregisterMachineParams, opts ...ClientOption) (*UnregisterMachineOK, error)
UnregisterMachine unregisters a previously onboarded machine
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { UnregisterMachine(params *UnregisterMachineParams, opts ...ClientOption) (*UnregisterMachineOK, 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 unregister machines API client.
type UnregisterMachineOK ¶
type UnregisterMachineOK struct {
Payload *models.UnregisterMachineResponse
}
UnregisterMachineOK describes a response with status code 200, with default header values.
Success
func NewUnregisterMachineOK ¶
func NewUnregisterMachineOK() *UnregisterMachineOK
NewUnregisterMachineOK creates a UnregisterMachineOK with default headers values
func (*UnregisterMachineOK) Error ¶
func (o *UnregisterMachineOK) Error() string
func (*UnregisterMachineOK) GetPayload ¶
func (o *UnregisterMachineOK) GetPayload() *models.UnregisterMachineResponse
func (*UnregisterMachineOK) IsClientError ¶
func (o *UnregisterMachineOK) IsClientError() bool
IsClientError returns true when this unregister machine o k response has a 4xx status code
func (*UnregisterMachineOK) IsCode ¶
func (o *UnregisterMachineOK) IsCode(code int) bool
IsCode returns true when this unregister machine o k response a status code equal to that given
func (*UnregisterMachineOK) IsRedirect ¶
func (o *UnregisterMachineOK) IsRedirect() bool
IsRedirect returns true when this unregister machine o k response has a 3xx status code
func (*UnregisterMachineOK) IsServerError ¶
func (o *UnregisterMachineOK) IsServerError() bool
IsServerError returns true when this unregister machine o k response has a 5xx status code
func (*UnregisterMachineOK) IsSuccess ¶
func (o *UnregisterMachineOK) IsSuccess() bool
IsSuccess returns true when this unregister machine o k response has a 2xx status code
func (*UnregisterMachineOK) String ¶
func (o *UnregisterMachineOK) String() string
type UnregisterMachineParams ¶
type UnregisterMachineParams struct { // Body. Body *models.UnregisterMachineRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UnregisterMachineParams contains all the parameters to send to the API endpoint
for the unregister machine operation. Typically these are written to a http.Request.
func NewUnregisterMachineParams ¶
func NewUnregisterMachineParams() *UnregisterMachineParams
NewUnregisterMachineParams creates a new UnregisterMachineParams 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 NewUnregisterMachineParamsWithContext ¶
func NewUnregisterMachineParamsWithContext(ctx context.Context) *UnregisterMachineParams
NewUnregisterMachineParamsWithContext creates a new UnregisterMachineParams object with the ability to set a context for a request.
func NewUnregisterMachineParamsWithHTTPClient ¶
func NewUnregisterMachineParamsWithHTTPClient(client *http.Client) *UnregisterMachineParams
NewUnregisterMachineParamsWithHTTPClient creates a new UnregisterMachineParams object with the ability to set a custom HTTPClient for a request.
func NewUnregisterMachineParamsWithTimeout ¶
func NewUnregisterMachineParamsWithTimeout(timeout time.Duration) *UnregisterMachineParams
NewUnregisterMachineParamsWithTimeout creates a new UnregisterMachineParams object with the ability to set a timeout on a request.
func (*UnregisterMachineParams) SetBody ¶
func (o *UnregisterMachineParams) SetBody(body *models.UnregisterMachineRequest)
SetBody adds the body to the unregister machine params
func (*UnregisterMachineParams) SetContext ¶
func (o *UnregisterMachineParams) SetContext(ctx context.Context)
SetContext adds the context to the unregister machine params
func (*UnregisterMachineParams) SetDefaults ¶
func (o *UnregisterMachineParams) SetDefaults()
SetDefaults hydrates default values in the unregister machine params (not the query body).
All values with no default are reset to their zero value.
func (*UnregisterMachineParams) SetHTTPClient ¶
func (o *UnregisterMachineParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the unregister machine params
func (*UnregisterMachineParams) SetTimeout ¶
func (o *UnregisterMachineParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the unregister machine params
func (*UnregisterMachineParams) WithBody ¶
func (o *UnregisterMachineParams) WithBody(body *models.UnregisterMachineRequest) *UnregisterMachineParams
WithBody adds the body to the unregister machine params
func (*UnregisterMachineParams) WithContext ¶
func (o *UnregisterMachineParams) WithContext(ctx context.Context) *UnregisterMachineParams
WithContext adds the context to the unregister machine params
func (*UnregisterMachineParams) WithDefaults ¶
func (o *UnregisterMachineParams) WithDefaults() *UnregisterMachineParams
WithDefaults hydrates default values in the unregister machine params (not the query body).
All values with no default are reset to their zero value.
func (*UnregisterMachineParams) WithHTTPClient ¶
func (o *UnregisterMachineParams) WithHTTPClient(client *http.Client) *UnregisterMachineParams
WithHTTPClient adds the HTTPClient to the unregister machine params
func (*UnregisterMachineParams) WithTimeout ¶
func (o *UnregisterMachineParams) WithTimeout(timeout time.Duration) *UnregisterMachineParams
WithTimeout adds the timeout to the unregister machine params
func (*UnregisterMachineParams) WriteToRequest ¶
func (o *UnregisterMachineParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UnregisterMachineReader ¶
type UnregisterMachineReader struct {
// contains filtered or unexported fields
}
UnregisterMachineReader is a Reader for the UnregisterMachine structure.
func (*UnregisterMachineReader) ReadResponse ¶
func (o *UnregisterMachineReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UnregisterMachineUnauthorized ¶
type UnregisterMachineUnauthorized struct { }
UnregisterMachineUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUnregisterMachineUnauthorized ¶
func NewUnregisterMachineUnauthorized() *UnregisterMachineUnauthorized
NewUnregisterMachineUnauthorized creates a UnregisterMachineUnauthorized with default headers values
func (*UnregisterMachineUnauthorized) Error ¶
func (o *UnregisterMachineUnauthorized) Error() string
func (*UnregisterMachineUnauthorized) IsClientError ¶
func (o *UnregisterMachineUnauthorized) IsClientError() bool
IsClientError returns true when this unregister machine unauthorized response has a 4xx status code
func (*UnregisterMachineUnauthorized) IsCode ¶
func (o *UnregisterMachineUnauthorized) IsCode(code int) bool
IsCode returns true when this unregister machine unauthorized response a status code equal to that given
func (*UnregisterMachineUnauthorized) IsRedirect ¶
func (o *UnregisterMachineUnauthorized) IsRedirect() bool
IsRedirect returns true when this unregister machine unauthorized response has a 3xx status code
func (*UnregisterMachineUnauthorized) IsServerError ¶
func (o *UnregisterMachineUnauthorized) IsServerError() bool
IsServerError returns true when this unregister machine unauthorized response has a 5xx status code
func (*UnregisterMachineUnauthorized) IsSuccess ¶
func (o *UnregisterMachineUnauthorized) IsSuccess() bool
IsSuccess returns true when this unregister machine unauthorized response has a 2xx status code
func (*UnregisterMachineUnauthorized) String ¶
func (o *UnregisterMachineUnauthorized) String() string