unregister_machines

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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 (*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

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

WithBody adds the body to the unregister machine params

func (*UnregisterMachineParams) WithContext

WithContext adds the context to the unregister machine params

func (*UnregisterMachineParams) WithDefaults

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

WithTimeout adds the timeout to the unregister machine params

func (*UnregisterMachineParams) WriteToRequest

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 (*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

Jump to

Keyboard shortcuts

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