iscsi_target

package
v0.0.0-...-67cd95e Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT 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 iscsi target API

func (*Client) CreateIscsiTarget

func (a *Client) CreateIscsiTarget(params *CreateIscsiTargetParams, opts ...ClientOption) (*CreateIscsiTargetOK, error)

CreateIscsiTarget create iscsi target API

func (*Client) DeleteIscsiTarget

func (a *Client) DeleteIscsiTarget(params *DeleteIscsiTargetParams, opts ...ClientOption) (*DeleteIscsiTargetOK, error)

DeleteIscsiTarget delete iscsi target API

func (*Client) GetIscsiTargets

func (a *Client) GetIscsiTargets(params *GetIscsiTargetsParams, opts ...ClientOption) (*GetIscsiTargetsOK, error)

GetIscsiTargets get iscsi targets API

func (*Client) GetIscsiTargetsConnection

func (a *Client) GetIscsiTargetsConnection(params *GetIscsiTargetsConnectionParams, opts ...ClientOption) (*GetIscsiTargetsConnectionOK, error)

GetIscsiTargetsConnection get iscsi targets connection API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateIscsiTarget

func (a *Client) UpdateIscsiTarget(params *UpdateIscsiTargetParams, opts ...ClientOption) (*UpdateIscsiTargetOK, error)

UpdateIscsiTarget update iscsi target API

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateIscsiTarget(params *CreateIscsiTargetParams, opts ...ClientOption) (*CreateIscsiTargetOK, error)

	DeleteIscsiTarget(params *DeleteIscsiTargetParams, opts ...ClientOption) (*DeleteIscsiTargetOK, error)

	GetIscsiTargets(params *GetIscsiTargetsParams, opts ...ClientOption) (*GetIscsiTargetsOK, error)

	GetIscsiTargetsConnection(params *GetIscsiTargetsConnectionParams, opts ...ClientOption) (*GetIscsiTargetsConnectionOK, error)

	UpdateIscsiTarget(params *UpdateIscsiTargetParams, opts ...ClientOption) (*UpdateIscsiTargetOK, 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 iscsi target API client.

type CreateIscsiTargetBadRequest

type CreateIscsiTargetBadRequest struct {
	Payload string
}
CreateIscsiTargetBadRequest describes a response with status code 400, with default header values.

CreateIscsiTargetBadRequest create iscsi target bad request

func NewCreateIscsiTargetBadRequest

func NewCreateIscsiTargetBadRequest() *CreateIscsiTargetBadRequest

NewCreateIscsiTargetBadRequest creates a CreateIscsiTargetBadRequest with default headers values

func (*CreateIscsiTargetBadRequest) Error

func (*CreateIscsiTargetBadRequest) GetPayload

func (o *CreateIscsiTargetBadRequest) GetPayload() string

type CreateIscsiTargetOK

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

Ok

func NewCreateIscsiTargetOK

func NewCreateIscsiTargetOK() *CreateIscsiTargetOK

NewCreateIscsiTargetOK creates a CreateIscsiTargetOK with default headers values

func (*CreateIscsiTargetOK) Error

func (o *CreateIscsiTargetOK) Error() string

func (*CreateIscsiTargetOK) GetPayload

func (o *CreateIscsiTargetOK) GetPayload() []*models.WithTaskIscsiTarget

type CreateIscsiTargetParams

type CreateIscsiTargetParams struct {

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

	// RequestBody.
	RequestBody []models.IscsiTargetCreationParams

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

CreateIscsiTargetParams contains all the parameters to send to the API endpoint

for the create iscsi target operation.

Typically these are written to a http.Request.

func NewCreateIscsiTargetParams

func NewCreateIscsiTargetParams() *CreateIscsiTargetParams

NewCreateIscsiTargetParams creates a new CreateIscsiTargetParams 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 NewCreateIscsiTargetParamsWithContext

func NewCreateIscsiTargetParamsWithContext(ctx context.Context) *CreateIscsiTargetParams

NewCreateIscsiTargetParamsWithContext creates a new CreateIscsiTargetParams object with the ability to set a context for a request.

func NewCreateIscsiTargetParamsWithHTTPClient

func NewCreateIscsiTargetParamsWithHTTPClient(client *http.Client) *CreateIscsiTargetParams

NewCreateIscsiTargetParamsWithHTTPClient creates a new CreateIscsiTargetParams object with the ability to set a custom HTTPClient for a request.

func NewCreateIscsiTargetParamsWithTimeout

func NewCreateIscsiTargetParamsWithTimeout(timeout time.Duration) *CreateIscsiTargetParams

NewCreateIscsiTargetParamsWithTimeout creates a new CreateIscsiTargetParams object with the ability to set a timeout on a request.

func (*CreateIscsiTargetParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the create iscsi target params

func (*CreateIscsiTargetParams) SetContext

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

SetContext adds the context to the create iscsi target params

func (*CreateIscsiTargetParams) SetDefaults

func (o *CreateIscsiTargetParams) SetDefaults()

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

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

func (*CreateIscsiTargetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create iscsi target params

func (*CreateIscsiTargetParams) SetRequestBody

func (o *CreateIscsiTargetParams) SetRequestBody(requestBody []models.IscsiTargetCreationParams)

SetRequestBody adds the requestBody to the create iscsi target params

func (*CreateIscsiTargetParams) SetTimeout

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

SetTimeout adds the timeout to the create iscsi target params

func (*CreateIscsiTargetParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the create iscsi target params

func (*CreateIscsiTargetParams) WithContext

WithContext adds the context to the create iscsi target params

func (*CreateIscsiTargetParams) WithDefaults

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

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

func (*CreateIscsiTargetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create iscsi target params

func (*CreateIscsiTargetParams) WithRequestBody

WithRequestBody adds the requestBody to the create iscsi target params

func (*CreateIscsiTargetParams) WithTimeout

WithTimeout adds the timeout to the create iscsi target params

func (*CreateIscsiTargetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateIscsiTargetReader

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

CreateIscsiTargetReader is a Reader for the CreateIscsiTarget structure.

func (*CreateIscsiTargetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteIscsiTargetBadRequest

type DeleteIscsiTargetBadRequest struct {
	Payload string
}
DeleteIscsiTargetBadRequest describes a response with status code 400, with default header values.

DeleteIscsiTargetBadRequest delete iscsi target bad request

func NewDeleteIscsiTargetBadRequest

func NewDeleteIscsiTargetBadRequest() *DeleteIscsiTargetBadRequest

NewDeleteIscsiTargetBadRequest creates a DeleteIscsiTargetBadRequest with default headers values

func (*DeleteIscsiTargetBadRequest) Error

func (*DeleteIscsiTargetBadRequest) GetPayload

func (o *DeleteIscsiTargetBadRequest) GetPayload() string

type DeleteIscsiTargetOK

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

Ok

func NewDeleteIscsiTargetOK

func NewDeleteIscsiTargetOK() *DeleteIscsiTargetOK

NewDeleteIscsiTargetOK creates a DeleteIscsiTargetOK with default headers values

func (*DeleteIscsiTargetOK) Error

func (o *DeleteIscsiTargetOK) Error() string

func (*DeleteIscsiTargetOK) GetPayload

type DeleteIscsiTargetParams

type DeleteIscsiTargetParams struct {

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

	// RequestBody.
	RequestBody *models.IscsiTargetDeletionParams

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

DeleteIscsiTargetParams contains all the parameters to send to the API endpoint

for the delete iscsi target operation.

Typically these are written to a http.Request.

func NewDeleteIscsiTargetParams

func NewDeleteIscsiTargetParams() *DeleteIscsiTargetParams

NewDeleteIscsiTargetParams creates a new DeleteIscsiTargetParams 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 NewDeleteIscsiTargetParamsWithContext

func NewDeleteIscsiTargetParamsWithContext(ctx context.Context) *DeleteIscsiTargetParams

NewDeleteIscsiTargetParamsWithContext creates a new DeleteIscsiTargetParams object with the ability to set a context for a request.

func NewDeleteIscsiTargetParamsWithHTTPClient

func NewDeleteIscsiTargetParamsWithHTTPClient(client *http.Client) *DeleteIscsiTargetParams

NewDeleteIscsiTargetParamsWithHTTPClient creates a new DeleteIscsiTargetParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteIscsiTargetParamsWithTimeout

func NewDeleteIscsiTargetParamsWithTimeout(timeout time.Duration) *DeleteIscsiTargetParams

NewDeleteIscsiTargetParamsWithTimeout creates a new DeleteIscsiTargetParams object with the ability to set a timeout on a request.

func (*DeleteIscsiTargetParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the delete iscsi target params

func (*DeleteIscsiTargetParams) SetContext

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

SetContext adds the context to the delete iscsi target params

func (*DeleteIscsiTargetParams) SetDefaults

func (o *DeleteIscsiTargetParams) SetDefaults()

SetDefaults hydrates default values in the delete iscsi target params (not the query body).

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

func (*DeleteIscsiTargetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete iscsi target params

func (*DeleteIscsiTargetParams) SetRequestBody

func (o *DeleteIscsiTargetParams) SetRequestBody(requestBody *models.IscsiTargetDeletionParams)

SetRequestBody adds the requestBody to the delete iscsi target params

func (*DeleteIscsiTargetParams) SetTimeout

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

SetTimeout adds the timeout to the delete iscsi target params

func (*DeleteIscsiTargetParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the delete iscsi target params

func (*DeleteIscsiTargetParams) WithContext

WithContext adds the context to the delete iscsi target params

func (*DeleteIscsiTargetParams) WithDefaults

WithDefaults hydrates default values in the delete iscsi target params (not the query body).

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

func (*DeleteIscsiTargetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete iscsi target params

func (*DeleteIscsiTargetParams) WithRequestBody

WithRequestBody adds the requestBody to the delete iscsi target params

func (*DeleteIscsiTargetParams) WithTimeout

WithTimeout adds the timeout to the delete iscsi target params

func (*DeleteIscsiTargetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteIscsiTargetReader

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

DeleteIscsiTargetReader is a Reader for the DeleteIscsiTarget structure.

func (*DeleteIscsiTargetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetIscsiTargetsBadRequest

type GetIscsiTargetsBadRequest struct {
	Payload string
}
GetIscsiTargetsBadRequest describes a response with status code 400, with default header values.

GetIscsiTargetsBadRequest get iscsi targets bad request

func NewGetIscsiTargetsBadRequest

func NewGetIscsiTargetsBadRequest() *GetIscsiTargetsBadRequest

NewGetIscsiTargetsBadRequest creates a GetIscsiTargetsBadRequest with default headers values

func (*GetIscsiTargetsBadRequest) Error

func (o *GetIscsiTargetsBadRequest) Error() string

func (*GetIscsiTargetsBadRequest) GetPayload

func (o *GetIscsiTargetsBadRequest) GetPayload() string

type GetIscsiTargetsConnectionBadRequest

type GetIscsiTargetsConnectionBadRequest struct {
	Payload string
}
GetIscsiTargetsConnectionBadRequest describes a response with status code 400, with default header values.

GetIscsiTargetsConnectionBadRequest get iscsi targets connection bad request

func NewGetIscsiTargetsConnectionBadRequest

func NewGetIscsiTargetsConnectionBadRequest() *GetIscsiTargetsConnectionBadRequest

NewGetIscsiTargetsConnectionBadRequest creates a GetIscsiTargetsConnectionBadRequest with default headers values

func (*GetIscsiTargetsConnectionBadRequest) Error

func (*GetIscsiTargetsConnectionBadRequest) GetPayload

type GetIscsiTargetsConnectionOK

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

Ok

func NewGetIscsiTargetsConnectionOK

func NewGetIscsiTargetsConnectionOK() *GetIscsiTargetsConnectionOK

NewGetIscsiTargetsConnectionOK creates a GetIscsiTargetsConnectionOK with default headers values

func (*GetIscsiTargetsConnectionOK) Error

func (*GetIscsiTargetsConnectionOK) GetPayload

type GetIscsiTargetsConnectionParams

type GetIscsiTargetsConnectionParams struct {

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

	// RequestBody.
	RequestBody *models.GetIscsiTargetsConnectionRequestBody

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

GetIscsiTargetsConnectionParams contains all the parameters to send to the API endpoint

for the get iscsi targets connection operation.

Typically these are written to a http.Request.

func NewGetIscsiTargetsConnectionParams

func NewGetIscsiTargetsConnectionParams() *GetIscsiTargetsConnectionParams

NewGetIscsiTargetsConnectionParams creates a new GetIscsiTargetsConnectionParams 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 NewGetIscsiTargetsConnectionParamsWithContext

func NewGetIscsiTargetsConnectionParamsWithContext(ctx context.Context) *GetIscsiTargetsConnectionParams

NewGetIscsiTargetsConnectionParamsWithContext creates a new GetIscsiTargetsConnectionParams object with the ability to set a context for a request.

func NewGetIscsiTargetsConnectionParamsWithHTTPClient

func NewGetIscsiTargetsConnectionParamsWithHTTPClient(client *http.Client) *GetIscsiTargetsConnectionParams

NewGetIscsiTargetsConnectionParamsWithHTTPClient creates a new GetIscsiTargetsConnectionParams object with the ability to set a custom HTTPClient for a request.

func NewGetIscsiTargetsConnectionParamsWithTimeout

func NewGetIscsiTargetsConnectionParamsWithTimeout(timeout time.Duration) *GetIscsiTargetsConnectionParams

NewGetIscsiTargetsConnectionParamsWithTimeout creates a new GetIscsiTargetsConnectionParams object with the ability to set a timeout on a request.

func (*GetIscsiTargetsConnectionParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) SetContext

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

SetContext adds the context to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) SetDefaults

func (o *GetIscsiTargetsConnectionParams) SetDefaults()

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

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

func (*GetIscsiTargetsConnectionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) SetRequestBody

SetRequestBody adds the requestBody to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) SetTimeout

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

SetTimeout adds the timeout to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) WithContext

WithContext adds the context to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) WithDefaults

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

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

func (*GetIscsiTargetsConnectionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) WithRequestBody

WithRequestBody adds the requestBody to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) WithTimeout

WithTimeout adds the timeout to the get iscsi targets connection params

func (*GetIscsiTargetsConnectionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetIscsiTargetsConnectionReader

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

GetIscsiTargetsConnectionReader is a Reader for the GetIscsiTargetsConnection structure.

func (*GetIscsiTargetsConnectionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetIscsiTargetsOK

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

Ok

func NewGetIscsiTargetsOK

func NewGetIscsiTargetsOK() *GetIscsiTargetsOK

NewGetIscsiTargetsOK creates a GetIscsiTargetsOK with default headers values

func (*GetIscsiTargetsOK) Error

func (o *GetIscsiTargetsOK) Error() string

func (*GetIscsiTargetsOK) GetPayload

func (o *GetIscsiTargetsOK) GetPayload() []*models.IscsiTarget

type GetIscsiTargetsParams

type GetIscsiTargetsParams struct {

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

	// RequestBody.
	RequestBody *models.GetIscsiTargetsRequestBody

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

GetIscsiTargetsParams contains all the parameters to send to the API endpoint

for the get iscsi targets operation.

Typically these are written to a http.Request.

func NewGetIscsiTargetsParams

func NewGetIscsiTargetsParams() *GetIscsiTargetsParams

NewGetIscsiTargetsParams creates a new GetIscsiTargetsParams 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 NewGetIscsiTargetsParamsWithContext

func NewGetIscsiTargetsParamsWithContext(ctx context.Context) *GetIscsiTargetsParams

NewGetIscsiTargetsParamsWithContext creates a new GetIscsiTargetsParams object with the ability to set a context for a request.

func NewGetIscsiTargetsParamsWithHTTPClient

func NewGetIscsiTargetsParamsWithHTTPClient(client *http.Client) *GetIscsiTargetsParams

NewGetIscsiTargetsParamsWithHTTPClient creates a new GetIscsiTargetsParams object with the ability to set a custom HTTPClient for a request.

func NewGetIscsiTargetsParamsWithTimeout

func NewGetIscsiTargetsParamsWithTimeout(timeout time.Duration) *GetIscsiTargetsParams

NewGetIscsiTargetsParamsWithTimeout creates a new GetIscsiTargetsParams object with the ability to set a timeout on a request.

func (*GetIscsiTargetsParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the get iscsi targets params

func (*GetIscsiTargetsParams) SetContext

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

SetContext adds the context to the get iscsi targets params

func (*GetIscsiTargetsParams) SetDefaults

func (o *GetIscsiTargetsParams) SetDefaults()

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

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

func (*GetIscsiTargetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get iscsi targets params

func (*GetIscsiTargetsParams) SetRequestBody

func (o *GetIscsiTargetsParams) SetRequestBody(requestBody *models.GetIscsiTargetsRequestBody)

SetRequestBody adds the requestBody to the get iscsi targets params

func (*GetIscsiTargetsParams) SetTimeout

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

SetTimeout adds the timeout to the get iscsi targets params

func (*GetIscsiTargetsParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the get iscsi targets params

func (*GetIscsiTargetsParams) WithContext

WithContext adds the context to the get iscsi targets params

func (*GetIscsiTargetsParams) WithDefaults

func (o *GetIscsiTargetsParams) WithDefaults() *GetIscsiTargetsParams

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

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

func (*GetIscsiTargetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get iscsi targets params

func (*GetIscsiTargetsParams) WithRequestBody

WithRequestBody adds the requestBody to the get iscsi targets params

func (*GetIscsiTargetsParams) WithTimeout

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

WithTimeout adds the timeout to the get iscsi targets params

func (*GetIscsiTargetsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetIscsiTargetsReader

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

GetIscsiTargetsReader is a Reader for the GetIscsiTargets structure.

func (*GetIscsiTargetsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateIscsiTargetBadRequest

type UpdateIscsiTargetBadRequest struct {
	Payload string
}
UpdateIscsiTargetBadRequest describes a response with status code 400, with default header values.

UpdateIscsiTargetBadRequest update iscsi target bad request

func NewUpdateIscsiTargetBadRequest

func NewUpdateIscsiTargetBadRequest() *UpdateIscsiTargetBadRequest

NewUpdateIscsiTargetBadRequest creates a UpdateIscsiTargetBadRequest with default headers values

func (*UpdateIscsiTargetBadRequest) Error

func (*UpdateIscsiTargetBadRequest) GetPayload

func (o *UpdateIscsiTargetBadRequest) GetPayload() string

type UpdateIscsiTargetOK

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

Ok

func NewUpdateIscsiTargetOK

func NewUpdateIscsiTargetOK() *UpdateIscsiTargetOK

NewUpdateIscsiTargetOK creates a UpdateIscsiTargetOK with default headers values

func (*UpdateIscsiTargetOK) Error

func (o *UpdateIscsiTargetOK) Error() string

func (*UpdateIscsiTargetOK) GetPayload

func (o *UpdateIscsiTargetOK) GetPayload() []*models.WithTaskIscsiTarget

type UpdateIscsiTargetParams

type UpdateIscsiTargetParams struct {

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

	// RequestBody.
	RequestBody *models.IscsiTargetUpdationParams

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

UpdateIscsiTargetParams contains all the parameters to send to the API endpoint

for the update iscsi target operation.

Typically these are written to a http.Request.

func NewUpdateIscsiTargetParams

func NewUpdateIscsiTargetParams() *UpdateIscsiTargetParams

NewUpdateIscsiTargetParams creates a new UpdateIscsiTargetParams 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 NewUpdateIscsiTargetParamsWithContext

func NewUpdateIscsiTargetParamsWithContext(ctx context.Context) *UpdateIscsiTargetParams

NewUpdateIscsiTargetParamsWithContext creates a new UpdateIscsiTargetParams object with the ability to set a context for a request.

func NewUpdateIscsiTargetParamsWithHTTPClient

func NewUpdateIscsiTargetParamsWithHTTPClient(client *http.Client) *UpdateIscsiTargetParams

NewUpdateIscsiTargetParamsWithHTTPClient creates a new UpdateIscsiTargetParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateIscsiTargetParamsWithTimeout

func NewUpdateIscsiTargetParamsWithTimeout(timeout time.Duration) *UpdateIscsiTargetParams

NewUpdateIscsiTargetParamsWithTimeout creates a new UpdateIscsiTargetParams object with the ability to set a timeout on a request.

func (*UpdateIscsiTargetParams) SetContentLanguage

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

SetContentLanguage adds the contentLanguage to the update iscsi target params

func (*UpdateIscsiTargetParams) SetContext

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

SetContext adds the context to the update iscsi target params

func (*UpdateIscsiTargetParams) SetDefaults

func (o *UpdateIscsiTargetParams) SetDefaults()

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

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

func (*UpdateIscsiTargetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update iscsi target params

func (*UpdateIscsiTargetParams) SetRequestBody

func (o *UpdateIscsiTargetParams) SetRequestBody(requestBody *models.IscsiTargetUpdationParams)

SetRequestBody adds the requestBody to the update iscsi target params

func (*UpdateIscsiTargetParams) SetTimeout

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

SetTimeout adds the timeout to the update iscsi target params

func (*UpdateIscsiTargetParams) WithContentLanguage

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

WithContentLanguage adds the contentLanguage to the update iscsi target params

func (*UpdateIscsiTargetParams) WithContext

WithContext adds the context to the update iscsi target params

func (*UpdateIscsiTargetParams) WithDefaults

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

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

func (*UpdateIscsiTargetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update iscsi target params

func (*UpdateIscsiTargetParams) WithRequestBody

WithRequestBody adds the requestBody to the update iscsi target params

func (*UpdateIscsiTargetParams) WithTimeout

WithTimeout adds the timeout to the update iscsi target params

func (*UpdateIscsiTargetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateIscsiTargetReader

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

UpdateIscsiTargetReader is a Reader for the UpdateIscsiTarget structure.

func (*UpdateIscsiTargetReader) ReadResponse

func (o *UpdateIscsiTargetReader) 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