iscsi_target

package
v2.14.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 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 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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateIscsiTargetBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type CreateIscsiTargetInternalServerError

type CreateIscsiTargetInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateIscsiTargetInternalServerError describes a response with status code 500, with default header values.

Server error

func NewCreateIscsiTargetInternalServerError

func NewCreateIscsiTargetInternalServerError() *CreateIscsiTargetInternalServerError

NewCreateIscsiTargetInternalServerError creates a CreateIscsiTargetInternalServerError with default headers values

func (*CreateIscsiTargetInternalServerError) Error

func (*CreateIscsiTargetInternalServerError) GetPayload

type CreateIscsiTargetNotFound

type CreateIscsiTargetNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
CreateIscsiTargetNotFound describes a response with status code 404, with default header values.

Not found

func NewCreateIscsiTargetNotFound

func NewCreateIscsiTargetNotFound() *CreateIscsiTargetNotFound

NewCreateIscsiTargetNotFound creates a CreateIscsiTargetNotFound with default headers values

func (*CreateIscsiTargetNotFound) Error

func (o *CreateIscsiTargetNotFound) Error() string

func (*CreateIscsiTargetNotFound) GetPayload

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

type CreateIscsiTargetOK

type CreateIscsiTargetOK struct {
	XTowerRequestID string

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

CreateIscsiTargetOK create iscsi target o k

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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteIscsiTargetBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type DeleteIscsiTargetInternalServerError

type DeleteIscsiTargetInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteIscsiTargetInternalServerError describes a response with status code 500, with default header values.

Server error

func NewDeleteIscsiTargetInternalServerError

func NewDeleteIscsiTargetInternalServerError() *DeleteIscsiTargetInternalServerError

NewDeleteIscsiTargetInternalServerError creates a DeleteIscsiTargetInternalServerError with default headers values

func (*DeleteIscsiTargetInternalServerError) Error

func (*DeleteIscsiTargetInternalServerError) GetPayload

type DeleteIscsiTargetNotFound

type DeleteIscsiTargetNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
DeleteIscsiTargetNotFound describes a response with status code 404, with default header values.

Not found

func NewDeleteIscsiTargetNotFound

func NewDeleteIscsiTargetNotFound() *DeleteIscsiTargetNotFound

NewDeleteIscsiTargetNotFound creates a DeleteIscsiTargetNotFound with default headers values

func (*DeleteIscsiTargetNotFound) Error

func (o *DeleteIscsiTargetNotFound) Error() string

func (*DeleteIscsiTargetNotFound) GetPayload

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

type DeleteIscsiTargetOK

type DeleteIscsiTargetOK struct {
	XTowerRequestID string

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

DeleteIscsiTargetOK delete iscsi target o k

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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetIscsiTargetsBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type GetIscsiTargetsConnectionBadRequest

type GetIscsiTargetsConnectionBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetIscsiTargetsConnectionBadRequest describes a response with status code 400, with default header values.

Bad request

func NewGetIscsiTargetsConnectionBadRequest

func NewGetIscsiTargetsConnectionBadRequest() *GetIscsiTargetsConnectionBadRequest

NewGetIscsiTargetsConnectionBadRequest creates a GetIscsiTargetsConnectionBadRequest with default headers values

func (*GetIscsiTargetsConnectionBadRequest) Error

func (*GetIscsiTargetsConnectionBadRequest) GetPayload

type GetIscsiTargetsConnectionInternalServerError

type GetIscsiTargetsConnectionInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetIscsiTargetsConnectionInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetIscsiTargetsConnectionInternalServerError

func NewGetIscsiTargetsConnectionInternalServerError() *GetIscsiTargetsConnectionInternalServerError

NewGetIscsiTargetsConnectionInternalServerError creates a GetIscsiTargetsConnectionInternalServerError with default headers values

func (*GetIscsiTargetsConnectionInternalServerError) Error

func (*GetIscsiTargetsConnectionInternalServerError) GetPayload

type GetIscsiTargetsConnectionNotFound

type GetIscsiTargetsConnectionNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetIscsiTargetsConnectionNotFound describes a response with status code 404, with default header values.

Not found

func NewGetIscsiTargetsConnectionNotFound

func NewGetIscsiTargetsConnectionNotFound() *GetIscsiTargetsConnectionNotFound

NewGetIscsiTargetsConnectionNotFound creates a GetIscsiTargetsConnectionNotFound with default headers values

func (*GetIscsiTargetsConnectionNotFound) Error

func (*GetIscsiTargetsConnectionNotFound) GetPayload

type GetIscsiTargetsConnectionOK

type GetIscsiTargetsConnectionOK struct {
	XTowerRequestID string

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

GetIscsiTargetsConnectionOK get iscsi targets connection o k

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 GetIscsiTargetsInternalServerError

type GetIscsiTargetsInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetIscsiTargetsInternalServerError describes a response with status code 500, with default header values.

Server error

func NewGetIscsiTargetsInternalServerError

func NewGetIscsiTargetsInternalServerError() *GetIscsiTargetsInternalServerError

NewGetIscsiTargetsInternalServerError creates a GetIscsiTargetsInternalServerError with default headers values

func (*GetIscsiTargetsInternalServerError) Error

func (*GetIscsiTargetsInternalServerError) GetPayload

type GetIscsiTargetsNotFound

type GetIscsiTargetsNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
GetIscsiTargetsNotFound describes a response with status code 404, with default header values.

Not found

func NewGetIscsiTargetsNotFound

func NewGetIscsiTargetsNotFound() *GetIscsiTargetsNotFound

NewGetIscsiTargetsNotFound creates a GetIscsiTargetsNotFound with default headers values

func (*GetIscsiTargetsNotFound) Error

func (o *GetIscsiTargetsNotFound) Error() string

func (*GetIscsiTargetsNotFound) GetPayload

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

type GetIscsiTargetsOK

type GetIscsiTargetsOK struct {
	XTowerRequestID string

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

GetIscsiTargetsOK get iscsi targets o k

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 {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateIscsiTargetBadRequest describes a response with status code 400, with default header values.

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() *models.ErrorBody

type UpdateIscsiTargetInternalServerError

type UpdateIscsiTargetInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateIscsiTargetInternalServerError describes a response with status code 500, with default header values.

Server error

func NewUpdateIscsiTargetInternalServerError

func NewUpdateIscsiTargetInternalServerError() *UpdateIscsiTargetInternalServerError

NewUpdateIscsiTargetInternalServerError creates a UpdateIscsiTargetInternalServerError with default headers values

func (*UpdateIscsiTargetInternalServerError) Error

func (*UpdateIscsiTargetInternalServerError) GetPayload

type UpdateIscsiTargetNotFound

type UpdateIscsiTargetNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
UpdateIscsiTargetNotFound describes a response with status code 404, with default header values.

Not found

func NewUpdateIscsiTargetNotFound

func NewUpdateIscsiTargetNotFound() *UpdateIscsiTargetNotFound

NewUpdateIscsiTargetNotFound creates a UpdateIscsiTargetNotFound with default headers values

func (*UpdateIscsiTargetNotFound) Error

func (o *UpdateIscsiTargetNotFound) Error() string

func (*UpdateIscsiTargetNotFound) GetPayload

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

type UpdateIscsiTargetOK

type UpdateIscsiTargetOK struct {
	XTowerRequestID string

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

UpdateIscsiTargetOK update iscsi target o k

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