host

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2022 License: ISC 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 host API

func (*Client) CreateHost

func (a *Client) CreateHost(params *CreateHostParams, opts ...ClientOption) (*CreateHostOK, error)

CreateHost create host API

func (*Client) GetHosts

func (a *Client) GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)

GetHosts get hosts API

func (*Client) GetHostsConnection

func (a *Client) GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, error)

GetHostsConnection get hosts connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (a *Client) TriggerDiskBlink(params *TriggerDiskBlinkParams, opts ...ClientOption) (*TriggerDiskBlinkOK, error)

TriggerDiskBlink trigger disk blink API

func (*Client) UpdateHost

func (a *Client) UpdateHost(params *UpdateHostParams, opts ...ClientOption) (*UpdateHostOK, error)

UpdateHost update host API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateHost(params *CreateHostParams, opts ...ClientOption) (*CreateHostOK, error)

	GetHosts(params *GetHostsParams, opts ...ClientOption) (*GetHostsOK, error)

	GetHostsConnection(params *GetHostsConnectionParams, opts ...ClientOption) (*GetHostsConnectionOK, error)

	TriggerDiskBlink(params *TriggerDiskBlinkParams, opts ...ClientOption) (*TriggerDiskBlinkOK, error)

	UpdateHost(params *UpdateHostParams, opts ...ClientOption) (*UpdateHostOK, 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 host API client.

type CreateHostBadRequest

type CreateHostBadRequest struct {
	Payload *models.ErrorBody
}
CreateHostBadRequest describes a response with status code 400, with default header values.

Bad request

func NewCreateHostBadRequest

func NewCreateHostBadRequest() *CreateHostBadRequest

NewCreateHostBadRequest creates a CreateHostBadRequest with default headers values

func (*CreateHostBadRequest) Error

func (o *CreateHostBadRequest) Error() string

func (*CreateHostBadRequest) GetPayload

func (o *CreateHostBadRequest) GetPayload() *models.ErrorBody

type CreateHostInternalServerError added in v1.10.0

type CreateHostInternalServerError struct {
	Payload *models.ErrorBody
}
CreateHostInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateHostInternalServerError added in v1.10.0

func NewCreateHostInternalServerError() *CreateHostInternalServerError

NewCreateHostInternalServerError creates a CreateHostInternalServerError with default headers values

func (*CreateHostInternalServerError) Error added in v1.10.0

func (*CreateHostInternalServerError) GetPayload added in v1.10.0

type CreateHostNotFound added in v1.10.0

type CreateHostNotFound struct {
	Payload *models.ErrorBody
}
CreateHostNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateHostNotFound added in v1.10.0

func NewCreateHostNotFound() *CreateHostNotFound

NewCreateHostNotFound creates a CreateHostNotFound with default headers values

func (*CreateHostNotFound) Error added in v1.10.0

func (o *CreateHostNotFound) Error() string

func (*CreateHostNotFound) GetPayload added in v1.10.0

func (o *CreateHostNotFound) GetPayload() *models.ErrorBody

type CreateHostOK

type CreateHostOK struct {
	Payload []*models.WithTaskBatchHosts
}
CreateHostOK describes a response with status code 200, with default header values.

Ok

func NewCreateHostOK

func NewCreateHostOK() *CreateHostOK

NewCreateHostOK creates a CreateHostOK with default headers values

func (*CreateHostOK) Error

func (o *CreateHostOK) Error() string

func (*CreateHostOK) GetPayload

func (o *CreateHostOK) GetPayload() []*models.WithTaskBatchHosts

type CreateHostParams

type CreateHostParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.HostCreationParams

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

CreateHostParams contains all the parameters to send to the API endpoint

for the create host operation.

Typically these are written to a http.Request.

func NewCreateHostParams

func NewCreateHostParams() *CreateHostParams

NewCreateHostParams creates a new CreateHostParams 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 NewCreateHostParamsWithContext

func NewCreateHostParamsWithContext(ctx context.Context) *CreateHostParams

NewCreateHostParamsWithContext creates a new CreateHostParams object with the ability to set a context for a request.

func NewCreateHostParamsWithHTTPClient

func NewCreateHostParamsWithHTTPClient(client *http.Client) *CreateHostParams

NewCreateHostParamsWithHTTPClient creates a new CreateHostParams object with the ability to set a custom HTTPClient for a request.

func NewCreateHostParamsWithTimeout

func NewCreateHostParamsWithTimeout(timeout time.Duration) *CreateHostParams

NewCreateHostParamsWithTimeout creates a new CreateHostParams object with the ability to set a timeout on a request.

func (*CreateHostParams) SetContentLanguage

func (o *CreateHostParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the create host params

func (*CreateHostParams) SetContext

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

SetContext adds the context to the create host params

func (*CreateHostParams) SetDefaults

func (o *CreateHostParams) SetDefaults()

SetDefaults hydrates default values in the create host params (not the query body).

All values with no default are reset to their zero value.

func (*CreateHostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create host params

func (*CreateHostParams) SetRequestBody

func (o *CreateHostParams) SetRequestBody(requestBody []*models.HostCreationParams)

SetRequestBody adds the requestBody to the create host params

func (*CreateHostParams) SetTimeout

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

SetTimeout adds the timeout to the create host params

func (*CreateHostParams) WithContentLanguage

func (o *CreateHostParams) WithContentLanguage(contentLanguage *string) *CreateHostParams

WithContentLanguage adds the contentLanguage to the create host params

func (*CreateHostParams) WithContext

func (o *CreateHostParams) WithContext(ctx context.Context) *CreateHostParams

WithContext adds the context to the create host params

func (*CreateHostParams) WithDefaults

func (o *CreateHostParams) WithDefaults() *CreateHostParams

WithDefaults hydrates default values in the create host params (not the query body).

All values with no default are reset to their zero value.

func (*CreateHostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create host params

func (*CreateHostParams) WithRequestBody

func (o *CreateHostParams) WithRequestBody(requestBody []*models.HostCreationParams) *CreateHostParams

WithRequestBody adds the requestBody to the create host params

func (*CreateHostParams) WithTimeout

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

WithTimeout adds the timeout to the create host params

func (*CreateHostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateHostReader

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

CreateHostReader is a Reader for the CreateHost structure.

func (*CreateHostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHostsBadRequest

type GetHostsBadRequest struct {
	Payload *models.ErrorBody
}
GetHostsBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetHostsBadRequest

func NewGetHostsBadRequest() *GetHostsBadRequest

NewGetHostsBadRequest creates a GetHostsBadRequest with default headers values

func (*GetHostsBadRequest) Error

func (o *GetHostsBadRequest) Error() string

func (*GetHostsBadRequest) GetPayload

func (o *GetHostsBadRequest) GetPayload() *models.ErrorBody

type GetHostsConnectionBadRequest

type GetHostsConnectionBadRequest struct {
	Payload *models.ErrorBody
}
GetHostsConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetHostsConnectionBadRequest

func NewGetHostsConnectionBadRequest() *GetHostsConnectionBadRequest

NewGetHostsConnectionBadRequest creates a GetHostsConnectionBadRequest with default headers values

func (*GetHostsConnectionBadRequest) Error

func (*GetHostsConnectionBadRequest) GetPayload

type GetHostsConnectionInternalServerError added in v1.10.0

type GetHostsConnectionInternalServerError struct {
	Payload *models.ErrorBody
}
GetHostsConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetHostsConnectionInternalServerError added in v1.10.0

func NewGetHostsConnectionInternalServerError() *GetHostsConnectionInternalServerError

NewGetHostsConnectionInternalServerError creates a GetHostsConnectionInternalServerError with default headers values

func (*GetHostsConnectionInternalServerError) Error added in v1.10.0

func (*GetHostsConnectionInternalServerError) GetPayload added in v1.10.0

type GetHostsConnectionNotFound added in v1.10.0

type GetHostsConnectionNotFound struct {
	Payload *models.ErrorBody
}
GetHostsConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetHostsConnectionNotFound added in v1.10.0

func NewGetHostsConnectionNotFound() *GetHostsConnectionNotFound

NewGetHostsConnectionNotFound creates a GetHostsConnectionNotFound with default headers values

func (*GetHostsConnectionNotFound) Error added in v1.10.0

func (*GetHostsConnectionNotFound) GetPayload added in v1.10.0

func (o *GetHostsConnectionNotFound) GetPayload() *models.ErrorBody

type GetHostsConnectionOK

type GetHostsConnectionOK struct {
	Payload *models.HostConnection
}
GetHostsConnectionOK describes a response with status code 200, with default header values.

Ok

func NewGetHostsConnectionOK

func NewGetHostsConnectionOK() *GetHostsConnectionOK

NewGetHostsConnectionOK creates a GetHostsConnectionOK with default headers values

func (*GetHostsConnectionOK) Error

func (o *GetHostsConnectionOK) Error() string

func (*GetHostsConnectionOK) GetPayload

func (o *GetHostsConnectionOK) GetPayload() *models.HostConnection

type GetHostsConnectionParams

type GetHostsConnectionParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetHostsConnectionRequestBody

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

GetHostsConnectionParams contains all the parameters to send to the API endpoint

for the get hosts connection operation.

Typically these are written to a http.Request.

func NewGetHostsConnectionParams

func NewGetHostsConnectionParams() *GetHostsConnectionParams

NewGetHostsConnectionParams creates a new GetHostsConnectionParams 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 NewGetHostsConnectionParamsWithContext

func NewGetHostsConnectionParamsWithContext(ctx context.Context) *GetHostsConnectionParams

NewGetHostsConnectionParamsWithContext creates a new GetHostsConnectionParams object with the ability to set a context for a request.

func NewGetHostsConnectionParamsWithHTTPClient

func NewGetHostsConnectionParamsWithHTTPClient(client *http.Client) *GetHostsConnectionParams

NewGetHostsConnectionParamsWithHTTPClient creates a new GetHostsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetHostsConnectionParamsWithTimeout

func NewGetHostsConnectionParamsWithTimeout(timeout time.Duration) *GetHostsConnectionParams

NewGetHostsConnectionParamsWithTimeout creates a new GetHostsConnectionParams object with the ability to set a timeout on a request.

func (*GetHostsConnectionParams) SetContentLanguage

func (o *GetHostsConnectionParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get hosts connection params

func (*GetHostsConnectionParams) SetContext

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

SetContext adds the context to the get hosts connection params

func (*GetHostsConnectionParams) SetDefaults

func (o *GetHostsConnectionParams) SetDefaults()

SetDefaults hydrates default values in the get hosts connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetHostsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get hosts connection params

func (*GetHostsConnectionParams) SetRequestBody

func (o *GetHostsConnectionParams) SetRequestBody(requestBody *models.GetHostsConnectionRequestBody)

SetRequestBody adds the requestBody to the get hosts connection params

func (*GetHostsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get hosts connection params

func (*GetHostsConnectionParams) WithContentLanguage

func (o *GetHostsConnectionParams) WithContentLanguage(contentLanguage *string) *GetHostsConnectionParams

WithContentLanguage adds the contentLanguage to the get hosts connection params

func (*GetHostsConnectionParams) WithContext

WithContext adds the context to the get hosts connection params

func (*GetHostsConnectionParams) WithDefaults

WithDefaults hydrates default values in the get hosts connection params (not the query body).

All values with no default are reset to their zero value.

func (*GetHostsConnectionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get hosts connection params

func (*GetHostsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get hosts connection params

func (*GetHostsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get hosts connection params

func (*GetHostsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetHostsConnectionReader

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

GetHostsConnectionReader is a Reader for the GetHostsConnection structure.

func (*GetHostsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetHostsInternalServerError added in v1.10.0

type GetHostsInternalServerError struct {
	Payload *models.ErrorBody
}
GetHostsInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetHostsInternalServerError added in v1.10.0

func NewGetHostsInternalServerError() *GetHostsInternalServerError

NewGetHostsInternalServerError creates a GetHostsInternalServerError with default headers values

func (*GetHostsInternalServerError) Error added in v1.10.0

func (*GetHostsInternalServerError) GetPayload added in v1.10.0

func (o *GetHostsInternalServerError) GetPayload() *models.ErrorBody

type GetHostsNotFound added in v1.10.0

type GetHostsNotFound struct {
	Payload *models.ErrorBody
}
GetHostsNotFound describes a response with status code 404, with default header values.

Not found

func NewGetHostsNotFound added in v1.10.0

func NewGetHostsNotFound() *GetHostsNotFound

NewGetHostsNotFound creates a GetHostsNotFound with default headers values

func (*GetHostsNotFound) Error added in v1.10.0

func (o *GetHostsNotFound) Error() string

func (*GetHostsNotFound) GetPayload added in v1.10.0

func (o *GetHostsNotFound) GetPayload() *models.ErrorBody

type GetHostsOK

type GetHostsOK struct {
	Payload []*models.Host
}
GetHostsOK describes a response with status code 200, with default header values.

Ok

func NewGetHostsOK

func NewGetHostsOK() *GetHostsOK

NewGetHostsOK creates a GetHostsOK with default headers values

func (*GetHostsOK) Error

func (o *GetHostsOK) Error() string

func (*GetHostsOK) GetPayload

func (o *GetHostsOK) GetPayload() []*models.Host

type GetHostsParams

type GetHostsParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.GetHostsRequestBody

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

GetHostsParams contains all the parameters to send to the API endpoint

for the get hosts operation.

Typically these are written to a http.Request.

func NewGetHostsParams

func NewGetHostsParams() *GetHostsParams

NewGetHostsParams creates a new GetHostsParams 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 NewGetHostsParamsWithContext

func NewGetHostsParamsWithContext(ctx context.Context) *GetHostsParams

NewGetHostsParamsWithContext creates a new GetHostsParams object with the ability to set a context for a request.

func NewGetHostsParamsWithHTTPClient

func NewGetHostsParamsWithHTTPClient(client *http.Client) *GetHostsParams

NewGetHostsParamsWithHTTPClient creates a new GetHostsParams object with the ability to set a custom HTTPClient for a request.

func NewGetHostsParamsWithTimeout

func NewGetHostsParamsWithTimeout(timeout time.Duration) *GetHostsParams

NewGetHostsParamsWithTimeout creates a new GetHostsParams object with the ability to set a timeout on a request.

func (*GetHostsParams) SetContentLanguage

func (o *GetHostsParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the get hosts params

func (*GetHostsParams) SetContext

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

SetContext adds the context to the get hosts params

func (*GetHostsParams) SetDefaults

func (o *GetHostsParams) SetDefaults()

SetDefaults hydrates default values in the get hosts params (not the query body).

All values with no default are reset to their zero value.

func (*GetHostsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get hosts params

func (*GetHostsParams) SetRequestBody

func (o *GetHostsParams) SetRequestBody(requestBody *models.GetHostsRequestBody)

SetRequestBody adds the requestBody to the get hosts params

func (*GetHostsParams) SetTimeout

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

SetTimeout adds the timeout to the get hosts params

func (*GetHostsParams) WithContentLanguage

func (o *GetHostsParams) WithContentLanguage(contentLanguage *string) *GetHostsParams

WithContentLanguage adds the contentLanguage to the get hosts params

func (*GetHostsParams) WithContext

func (o *GetHostsParams) WithContext(ctx context.Context) *GetHostsParams

WithContext adds the context to the get hosts params

func (*GetHostsParams) WithDefaults

func (o *GetHostsParams) WithDefaults() *GetHostsParams

WithDefaults hydrates default values in the get hosts params (not the query body).

All values with no default are reset to their zero value.

func (*GetHostsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get hosts params

func (*GetHostsParams) WithRequestBody

func (o *GetHostsParams) WithRequestBody(requestBody *models.GetHostsRequestBody) *GetHostsParams

WithRequestBody adds the requestBody to the get hosts params

func (*GetHostsParams) WithTimeout

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

WithTimeout adds the timeout to the get hosts params

func (*GetHostsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetHostsReader

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

GetHostsReader is a Reader for the GetHosts structure.

func (*GetHostsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TriggerDiskBlinkBadRequest

type TriggerDiskBlinkBadRequest struct {
	Payload *models.ErrorBody
}
TriggerDiskBlinkBadRequest describes a response with status code 400, with default header values.

Bad request

func NewTriggerDiskBlinkBadRequest

func NewTriggerDiskBlinkBadRequest() *TriggerDiskBlinkBadRequest

NewTriggerDiskBlinkBadRequest creates a TriggerDiskBlinkBadRequest with default headers values

func (*TriggerDiskBlinkBadRequest) Error

func (*TriggerDiskBlinkBadRequest) GetPayload

func (o *TriggerDiskBlinkBadRequest) GetPayload() *models.ErrorBody

type TriggerDiskBlinkInternalServerError added in v1.10.0

type TriggerDiskBlinkInternalServerError struct {
	Payload *models.ErrorBody
}
TriggerDiskBlinkInternalServerError describes a response with status code 500, with default header values.

Server error

func NewTriggerDiskBlinkInternalServerError added in v1.10.0

func NewTriggerDiskBlinkInternalServerError() *TriggerDiskBlinkInternalServerError

NewTriggerDiskBlinkInternalServerError creates a TriggerDiskBlinkInternalServerError with default headers values

func (*TriggerDiskBlinkInternalServerError) Error added in v1.10.0

func (*TriggerDiskBlinkInternalServerError) GetPayload added in v1.10.0

type TriggerDiskBlinkNotFound added in v1.10.0

type TriggerDiskBlinkNotFound struct {
	Payload *models.ErrorBody
}
TriggerDiskBlinkNotFound describes a response with status code 404, with default header values.

Not found

func NewTriggerDiskBlinkNotFound added in v1.10.0

func NewTriggerDiskBlinkNotFound() *TriggerDiskBlinkNotFound

NewTriggerDiskBlinkNotFound creates a TriggerDiskBlinkNotFound with default headers values

func (*TriggerDiskBlinkNotFound) Error added in v1.10.0

func (o *TriggerDiskBlinkNotFound) Error() string

func (*TriggerDiskBlinkNotFound) GetPayload added in v1.10.0

func (o *TriggerDiskBlinkNotFound) GetPayload() *models.ErrorBody

type TriggerDiskBlinkOK

type TriggerDiskBlinkOK struct {
	Payload []*models.WithTaskHost
}
TriggerDiskBlinkOK describes a response with status code 200, with default header values.

Ok

func NewTriggerDiskBlinkOK

func NewTriggerDiskBlinkOK() *TriggerDiskBlinkOK

NewTriggerDiskBlinkOK creates a TriggerDiskBlinkOK with default headers values

func (*TriggerDiskBlinkOK) Error

func (o *TriggerDiskBlinkOK) Error() string

func (*TriggerDiskBlinkOK) GetPayload

func (o *TriggerDiskBlinkOK) GetPayload() []*models.WithTaskHost

type TriggerDiskBlinkParams

type TriggerDiskBlinkParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody []*models.TriggerDiskBlinkParams

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

TriggerDiskBlinkParams contains all the parameters to send to the API endpoint

for the trigger disk blink operation.

Typically these are written to a http.Request.

func NewTriggerDiskBlinkParams

func NewTriggerDiskBlinkParams() *TriggerDiskBlinkParams

NewTriggerDiskBlinkParams creates a new TriggerDiskBlinkParams 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 NewTriggerDiskBlinkParamsWithContext

func NewTriggerDiskBlinkParamsWithContext(ctx context.Context) *TriggerDiskBlinkParams

NewTriggerDiskBlinkParamsWithContext creates a new TriggerDiskBlinkParams object with the ability to set a context for a request.

func NewTriggerDiskBlinkParamsWithHTTPClient

func NewTriggerDiskBlinkParamsWithHTTPClient(client *http.Client) *TriggerDiskBlinkParams

NewTriggerDiskBlinkParamsWithHTTPClient creates a new TriggerDiskBlinkParams object with the ability to set a custom HTTPClient for a request.

func NewTriggerDiskBlinkParamsWithTimeout

func NewTriggerDiskBlinkParamsWithTimeout(timeout time.Duration) *TriggerDiskBlinkParams

NewTriggerDiskBlinkParamsWithTimeout creates a new TriggerDiskBlinkParams object with the ability to set a timeout on a request.

func (*TriggerDiskBlinkParams) SetContentLanguage

func (o *TriggerDiskBlinkParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the trigger disk blink params

func (*TriggerDiskBlinkParams) SetContext

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

SetContext adds the context to the trigger disk blink params

func (*TriggerDiskBlinkParams) SetDefaults

func (o *TriggerDiskBlinkParams) SetDefaults()

SetDefaults hydrates default values in the trigger disk blink params (not the query body).

All values with no default are reset to their zero value.

func (*TriggerDiskBlinkParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the trigger disk blink params

func (*TriggerDiskBlinkParams) SetRequestBody

func (o *TriggerDiskBlinkParams) SetRequestBody(requestBody []*models.TriggerDiskBlinkParams)

SetRequestBody adds the requestBody to the trigger disk blink params

func (*TriggerDiskBlinkParams) SetTimeout

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

SetTimeout adds the timeout to the trigger disk blink params

func (*TriggerDiskBlinkParams) WithContentLanguage

func (o *TriggerDiskBlinkParams) WithContentLanguage(contentLanguage *string) *TriggerDiskBlinkParams

WithContentLanguage adds the contentLanguage to the trigger disk blink params

func (*TriggerDiskBlinkParams) WithContext

WithContext adds the context to the trigger disk blink params

func (*TriggerDiskBlinkParams) WithDefaults

WithDefaults hydrates default values in the trigger disk blink params (not the query body).

All values with no default are reset to their zero value.

func (*TriggerDiskBlinkParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the trigger disk blink params

func (*TriggerDiskBlinkParams) WithRequestBody

func (o *TriggerDiskBlinkParams) WithRequestBody(requestBody []*models.TriggerDiskBlinkParams) *TriggerDiskBlinkParams

WithRequestBody adds the requestBody to the trigger disk blink params

func (*TriggerDiskBlinkParams) WithTimeout

WithTimeout adds the timeout to the trigger disk blink params

func (*TriggerDiskBlinkParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TriggerDiskBlinkReader

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

TriggerDiskBlinkReader is a Reader for the TriggerDiskBlink structure.

func (*TriggerDiskBlinkReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateHostBadRequest

type UpdateHostBadRequest struct {
	Payload *models.ErrorBody
}
UpdateHostBadRequest describes a response with status code 400, with default header values.

Bad request

func NewUpdateHostBadRequest

func NewUpdateHostBadRequest() *UpdateHostBadRequest

NewUpdateHostBadRequest creates a UpdateHostBadRequest with default headers values

func (*UpdateHostBadRequest) Error

func (o *UpdateHostBadRequest) Error() string

func (*UpdateHostBadRequest) GetPayload

func (o *UpdateHostBadRequest) GetPayload() *models.ErrorBody

type UpdateHostInternalServerError added in v1.10.0

type UpdateHostInternalServerError struct {
	Payload *models.ErrorBody
}
UpdateHostInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateHostInternalServerError added in v1.10.0

func NewUpdateHostInternalServerError() *UpdateHostInternalServerError

NewUpdateHostInternalServerError creates a UpdateHostInternalServerError with default headers values

func (*UpdateHostInternalServerError) Error added in v1.10.0

func (*UpdateHostInternalServerError) GetPayload added in v1.10.0

type UpdateHostNotFound added in v1.10.0

type UpdateHostNotFound struct {
	Payload *models.ErrorBody
}
UpdateHostNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateHostNotFound added in v1.10.0

func NewUpdateHostNotFound() *UpdateHostNotFound

NewUpdateHostNotFound creates a UpdateHostNotFound with default headers values

func (*UpdateHostNotFound) Error added in v1.10.0

func (o *UpdateHostNotFound) Error() string

func (*UpdateHostNotFound) GetPayload added in v1.10.0

func (o *UpdateHostNotFound) GetPayload() *models.ErrorBody

type UpdateHostOK

type UpdateHostOK struct {
	Payload []*models.WithTaskHost
}
UpdateHostOK describes a response with status code 200, with default header values.

Ok

func NewUpdateHostOK

func NewUpdateHostOK() *UpdateHostOK

NewUpdateHostOK creates a UpdateHostOK with default headers values

func (*UpdateHostOK) Error

func (o *UpdateHostOK) Error() string

func (*UpdateHostOK) GetPayload

func (o *UpdateHostOK) GetPayload() []*models.WithTaskHost

type UpdateHostParams

type UpdateHostParams struct {

	// ContentLanguage.
	//
	// Default: "en-US"
	ContentLanguage *string

	// RequestBody.
	RequestBody *models.HostUpdationParams

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

UpdateHostParams contains all the parameters to send to the API endpoint

for the update host operation.

Typically these are written to a http.Request.

func NewUpdateHostParams

func NewUpdateHostParams() *UpdateHostParams

NewUpdateHostParams creates a new UpdateHostParams 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 NewUpdateHostParamsWithContext

func NewUpdateHostParamsWithContext(ctx context.Context) *UpdateHostParams

NewUpdateHostParamsWithContext creates a new UpdateHostParams object with the ability to set a context for a request.

func NewUpdateHostParamsWithHTTPClient

func NewUpdateHostParamsWithHTTPClient(client *http.Client) *UpdateHostParams

NewUpdateHostParamsWithHTTPClient creates a new UpdateHostParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateHostParamsWithTimeout

func NewUpdateHostParamsWithTimeout(timeout time.Duration) *UpdateHostParams

NewUpdateHostParamsWithTimeout creates a new UpdateHostParams object with the ability to set a timeout on a request.

func (*UpdateHostParams) SetContentLanguage

func (o *UpdateHostParams) SetContentLanguage(contentLanguage *string)

SetContentLanguage adds the contentLanguage to the update host params

func (*UpdateHostParams) SetContext

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

SetContext adds the context to the update host params

func (*UpdateHostParams) SetDefaults

func (o *UpdateHostParams) SetDefaults()

SetDefaults hydrates default values in the update host params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateHostParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update host params

func (*UpdateHostParams) SetRequestBody

func (o *UpdateHostParams) SetRequestBody(requestBody *models.HostUpdationParams)

SetRequestBody adds the requestBody to the update host params

func (*UpdateHostParams) SetTimeout

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

SetTimeout adds the timeout to the update host params

func (*UpdateHostParams) WithContentLanguage

func (o *UpdateHostParams) WithContentLanguage(contentLanguage *string) *UpdateHostParams

WithContentLanguage adds the contentLanguage to the update host params

func (*UpdateHostParams) WithContext

func (o *UpdateHostParams) WithContext(ctx context.Context) *UpdateHostParams

WithContext adds the context to the update host params

func (*UpdateHostParams) WithDefaults

func (o *UpdateHostParams) WithDefaults() *UpdateHostParams

WithDefaults hydrates default values in the update host params (not the query body).

All values with no default are reset to their zero value.

func (*UpdateHostParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update host params

func (*UpdateHostParams) WithRequestBody

func (o *UpdateHostParams) WithRequestBody(requestBody *models.HostUpdationParams) *UpdateHostParams

WithRequestBody adds the requestBody to the update host params

func (*UpdateHostParams) WithTimeout

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

WithTimeout adds the timeout to the update host params

func (*UpdateHostParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateHostReader

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

UpdateHostReader is a Reader for the UpdateHost structure.

func (*UpdateHostReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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