Documentation ¶
Index ¶
- type Client
- func (a *Client) GetExportFileDownloadLinks(params *GetExportFileDownloadLinksParams, opts ...ClientOption) (*GetExportFileDownloadLinksOK, error)
- func (a *Client) ParseOvf(params *ParseOvfParams, opts ...ClientOption) (*ParseOvfOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UploadElfFile(params *UploadElfFileParams, opts ...ClientOption) (*UploadElfFileOK, error)
- type ClientOption
- type ClientService
- type GetExportFileDownloadLinksBadRequest
- type GetExportFileDownloadLinksInternalServerError
- type GetExportFileDownloadLinksNotFound
- type GetExportFileDownloadLinksOK
- type GetExportFileDownloadLinksParams
- func NewGetExportFileDownloadLinksParams() *GetExportFileDownloadLinksParams
- func NewGetExportFileDownloadLinksParamsWithContext(ctx context.Context) *GetExportFileDownloadLinksParams
- func NewGetExportFileDownloadLinksParamsWithHTTPClient(client *http.Client) *GetExportFileDownloadLinksParams
- func NewGetExportFileDownloadLinksParamsWithTimeout(timeout time.Duration) *GetExportFileDownloadLinksParams
- func (o *GetExportFileDownloadLinksParams) SetContentLanguage(contentLanguage *string)
- func (o *GetExportFileDownloadLinksParams) SetContext(ctx context.Context)
- func (o *GetExportFileDownloadLinksParams) SetDefaults()
- func (o *GetExportFileDownloadLinksParams) SetHTTPClient(client *http.Client)
- func (o *GetExportFileDownloadLinksParams) SetRequestBody(requestBody *models.GetExportFileDownloadLinksParams)
- func (o *GetExportFileDownloadLinksParams) SetTimeout(timeout time.Duration)
- func (o *GetExportFileDownloadLinksParams) WithContentLanguage(contentLanguage *string) *GetExportFileDownloadLinksParams
- func (o *GetExportFileDownloadLinksParams) WithContext(ctx context.Context) *GetExportFileDownloadLinksParams
- func (o *GetExportFileDownloadLinksParams) WithDefaults() *GetExportFileDownloadLinksParams
- func (o *GetExportFileDownloadLinksParams) WithHTTPClient(client *http.Client) *GetExportFileDownloadLinksParams
- func (o *GetExportFileDownloadLinksParams) WithRequestBody(requestBody *models.GetExportFileDownloadLinksParams) *GetExportFileDownloadLinksParams
- func (o *GetExportFileDownloadLinksParams) WithTimeout(timeout time.Duration) *GetExportFileDownloadLinksParams
- func (o *GetExportFileDownloadLinksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetExportFileDownloadLinksReader
- type ParseOvfBadRequest
- type ParseOvfInternalServerError
- type ParseOvfNotFound
- type ParseOvfOK
- type ParseOvfParams
- func (o *ParseOvfParams) SetClusterID(clusterID string)
- func (o *ParseOvfParams) SetContentLanguage(contentLanguage *string)
- func (o *ParseOvfParams) SetContext(ctx context.Context)
- func (o *ParseOvfParams) SetDefaults()
- func (o *ParseOvfParams) SetFile(file runtime.NamedReadCloser)
- func (o *ParseOvfParams) SetHTTPClient(client *http.Client)
- func (o *ParseOvfParams) SetTimeout(timeout time.Duration)
- func (o *ParseOvfParams) WithClusterID(clusterID string) *ParseOvfParams
- func (o *ParseOvfParams) WithContentLanguage(contentLanguage *string) *ParseOvfParams
- func (o *ParseOvfParams) WithContext(ctx context.Context) *ParseOvfParams
- func (o *ParseOvfParams) WithDefaults() *ParseOvfParams
- func (o *ParseOvfParams) WithFile(file runtime.NamedReadCloser) *ParseOvfParams
- func (o *ParseOvfParams) WithHTTPClient(client *http.Client) *ParseOvfParams
- func (o *ParseOvfParams) WithTimeout(timeout time.Duration) *ParseOvfParams
- func (o *ParseOvfParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ParseOvfReader
- type UploadElfFileBadRequest
- type UploadElfFileInternalServerError
- type UploadElfFileNotFound
- type UploadElfFileOK
- type UploadElfFileParams
- func (o *UploadElfFileParams) SetClusterID(clusterID *string)
- func (o *UploadElfFileParams) SetContentLanguage(contentLanguage *string)
- func (o *UploadElfFileParams) SetContext(ctx context.Context)
- func (o *UploadElfFileParams) SetDefaults()
- func (o *UploadElfFileParams) SetFile(file runtime.NamedReadCloser)
- func (o *UploadElfFileParams) SetHTTPClient(client *http.Client)
- func (o *UploadElfFileParams) SetName(name *string)
- func (o *UploadElfFileParams) SetSize(size *string)
- func (o *UploadElfFileParams) SetSizeUnit(sizeUnit *string)
- func (o *UploadElfFileParams) SetTimeout(timeout time.Duration)
- func (o *UploadElfFileParams) SetUploadTaskID(uploadTaskID *string)
- func (o *UploadElfFileParams) WithClusterID(clusterID *string) *UploadElfFileParams
- func (o *UploadElfFileParams) WithContentLanguage(contentLanguage *string) *UploadElfFileParams
- func (o *UploadElfFileParams) WithContext(ctx context.Context) *UploadElfFileParams
- func (o *UploadElfFileParams) WithDefaults() *UploadElfFileParams
- func (o *UploadElfFileParams) WithFile(file runtime.NamedReadCloser) *UploadElfFileParams
- func (o *UploadElfFileParams) WithHTTPClient(client *http.Client) *UploadElfFileParams
- func (o *UploadElfFileParams) WithName(name *string) *UploadElfFileParams
- func (o *UploadElfFileParams) WithSize(size *string) *UploadElfFileParams
- func (o *UploadElfFileParams) WithSizeUnit(sizeUnit *string) *UploadElfFileParams
- func (o *UploadElfFileParams) WithTimeout(timeout time.Duration) *UploadElfFileParams
- func (o *UploadElfFileParams) WithUploadTaskID(uploadTaskID *string) *UploadElfFileParams
- func (o *UploadElfFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UploadElfFileReader
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 ovf API
func (*Client) GetExportFileDownloadLinks ¶
func (a *Client) GetExportFileDownloadLinks(params *GetExportFileDownloadLinksParams, opts ...ClientOption) (*GetExportFileDownloadLinksOK, error)
GetExportFileDownloadLinks get export file download links API
func (*Client) ParseOvf ¶
func (a *Client) ParseOvf(params *ParseOvfParams, opts ...ClientOption) (*ParseOvfOK, error)
ParseOvf parse ovf API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UploadElfFile ¶
func (a *Client) UploadElfFile(params *UploadElfFileParams, opts ...ClientOption) (*UploadElfFileOK, error)
UploadElfFile upload elf file API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetExportFileDownloadLinks(params *GetExportFileDownloadLinksParams, opts ...ClientOption) (*GetExportFileDownloadLinksOK, error) ParseOvf(params *ParseOvfParams, opts ...ClientOption) (*ParseOvfOK, error) UploadElfFile(params *UploadElfFileParams, opts ...ClientOption) (*UploadElfFileOK, 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 ovf API client.
type GetExportFileDownloadLinksBadRequest ¶
type GetExportFileDownloadLinksBadRequest struct { XTowerRequestID string Payload *models.ErrorBody }
GetExportFileDownloadLinksBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetExportFileDownloadLinksBadRequest ¶
func NewGetExportFileDownloadLinksBadRequest() *GetExportFileDownloadLinksBadRequest
NewGetExportFileDownloadLinksBadRequest creates a GetExportFileDownloadLinksBadRequest with default headers values
func (*GetExportFileDownloadLinksBadRequest) Error ¶
func (o *GetExportFileDownloadLinksBadRequest) Error() string
func (*GetExportFileDownloadLinksBadRequest) GetPayload ¶
func (o *GetExportFileDownloadLinksBadRequest) GetPayload() *models.ErrorBody
type GetExportFileDownloadLinksInternalServerError ¶
type GetExportFileDownloadLinksInternalServerError struct { XTowerRequestID string Payload *models.ErrorBody }
GetExportFileDownloadLinksInternalServerError describes a response with status code 500, with default header values.
Server error
func NewGetExportFileDownloadLinksInternalServerError ¶
func NewGetExportFileDownloadLinksInternalServerError() *GetExportFileDownloadLinksInternalServerError
NewGetExportFileDownloadLinksInternalServerError creates a GetExportFileDownloadLinksInternalServerError with default headers values
func (*GetExportFileDownloadLinksInternalServerError) Error ¶
func (o *GetExportFileDownloadLinksInternalServerError) Error() string
func (*GetExportFileDownloadLinksInternalServerError) GetPayload ¶
func (o *GetExportFileDownloadLinksInternalServerError) GetPayload() *models.ErrorBody
type GetExportFileDownloadLinksNotFound ¶
GetExportFileDownloadLinksNotFound describes a response with status code 404, with default header values.
Not found
func NewGetExportFileDownloadLinksNotFound ¶
func NewGetExportFileDownloadLinksNotFound() *GetExportFileDownloadLinksNotFound
NewGetExportFileDownloadLinksNotFound creates a GetExportFileDownloadLinksNotFound with default headers values
func (*GetExportFileDownloadLinksNotFound) Error ¶
func (o *GetExportFileDownloadLinksNotFound) Error() string
func (*GetExportFileDownloadLinksNotFound) GetPayload ¶
func (o *GetExportFileDownloadLinksNotFound) GetPayload() *models.ErrorBody
type GetExportFileDownloadLinksOK ¶
type GetExportFileDownloadLinksOK struct { XTowerRequestID string Payload []*models.ExportFileDownloadLinks }
GetExportFileDownloadLinksOK describes a response with status code 200, with default header values.
GetExportFileDownloadLinksOK get export file download links o k
func NewGetExportFileDownloadLinksOK ¶
func NewGetExportFileDownloadLinksOK() *GetExportFileDownloadLinksOK
NewGetExportFileDownloadLinksOK creates a GetExportFileDownloadLinksOK with default headers values
func (*GetExportFileDownloadLinksOK) Error ¶
func (o *GetExportFileDownloadLinksOK) Error() string
func (*GetExportFileDownloadLinksOK) GetPayload ¶
func (o *GetExportFileDownloadLinksOK) GetPayload() []*models.ExportFileDownloadLinks
type GetExportFileDownloadLinksParams ¶
type GetExportFileDownloadLinksParams struct { // ContentLanguage. // // Default: "en-US" ContentLanguage *string // RequestBody. RequestBody *models.GetExportFileDownloadLinksParams Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetExportFileDownloadLinksParams contains all the parameters to send to the API endpoint
for the get export file download links operation. Typically these are written to a http.Request.
func NewGetExportFileDownloadLinksParams ¶
func NewGetExportFileDownloadLinksParams() *GetExportFileDownloadLinksParams
NewGetExportFileDownloadLinksParams creates a new GetExportFileDownloadLinksParams 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 NewGetExportFileDownloadLinksParamsWithContext ¶
func NewGetExportFileDownloadLinksParamsWithContext(ctx context.Context) *GetExportFileDownloadLinksParams
NewGetExportFileDownloadLinksParamsWithContext creates a new GetExportFileDownloadLinksParams object with the ability to set a context for a request.
func NewGetExportFileDownloadLinksParamsWithHTTPClient ¶
func NewGetExportFileDownloadLinksParamsWithHTTPClient(client *http.Client) *GetExportFileDownloadLinksParams
NewGetExportFileDownloadLinksParamsWithHTTPClient creates a new GetExportFileDownloadLinksParams object with the ability to set a custom HTTPClient for a request.
func NewGetExportFileDownloadLinksParamsWithTimeout ¶
func NewGetExportFileDownloadLinksParamsWithTimeout(timeout time.Duration) *GetExportFileDownloadLinksParams
NewGetExportFileDownloadLinksParamsWithTimeout creates a new GetExportFileDownloadLinksParams object with the ability to set a timeout on a request.
func (*GetExportFileDownloadLinksParams) SetContentLanguage ¶
func (o *GetExportFileDownloadLinksParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the get export file download links params
func (*GetExportFileDownloadLinksParams) SetContext ¶
func (o *GetExportFileDownloadLinksParams) SetContext(ctx context.Context)
SetContext adds the context to the get export file download links params
func (*GetExportFileDownloadLinksParams) SetDefaults ¶
func (o *GetExportFileDownloadLinksParams) SetDefaults()
SetDefaults hydrates default values in the get export file download links params (not the query body).
All values with no default are reset to their zero value.
func (*GetExportFileDownloadLinksParams) SetHTTPClient ¶
func (o *GetExportFileDownloadLinksParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get export file download links params
func (*GetExportFileDownloadLinksParams) SetRequestBody ¶
func (o *GetExportFileDownloadLinksParams) SetRequestBody(requestBody *models.GetExportFileDownloadLinksParams)
SetRequestBody adds the requestBody to the get export file download links params
func (*GetExportFileDownloadLinksParams) SetTimeout ¶
func (o *GetExportFileDownloadLinksParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get export file download links params
func (*GetExportFileDownloadLinksParams) WithContentLanguage ¶
func (o *GetExportFileDownloadLinksParams) WithContentLanguage(contentLanguage *string) *GetExportFileDownloadLinksParams
WithContentLanguage adds the contentLanguage to the get export file download links params
func (*GetExportFileDownloadLinksParams) WithContext ¶
func (o *GetExportFileDownloadLinksParams) WithContext(ctx context.Context) *GetExportFileDownloadLinksParams
WithContext adds the context to the get export file download links params
func (*GetExportFileDownloadLinksParams) WithDefaults ¶
func (o *GetExportFileDownloadLinksParams) WithDefaults() *GetExportFileDownloadLinksParams
WithDefaults hydrates default values in the get export file download links params (not the query body).
All values with no default are reset to their zero value.
func (*GetExportFileDownloadLinksParams) WithHTTPClient ¶
func (o *GetExportFileDownloadLinksParams) WithHTTPClient(client *http.Client) *GetExportFileDownloadLinksParams
WithHTTPClient adds the HTTPClient to the get export file download links params
func (*GetExportFileDownloadLinksParams) WithRequestBody ¶
func (o *GetExportFileDownloadLinksParams) WithRequestBody(requestBody *models.GetExportFileDownloadLinksParams) *GetExportFileDownloadLinksParams
WithRequestBody adds the requestBody to the get export file download links params
func (*GetExportFileDownloadLinksParams) WithTimeout ¶
func (o *GetExportFileDownloadLinksParams) WithTimeout(timeout time.Duration) *GetExportFileDownloadLinksParams
WithTimeout adds the timeout to the get export file download links params
func (*GetExportFileDownloadLinksParams) WriteToRequest ¶
func (o *GetExportFileDownloadLinksParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetExportFileDownloadLinksReader ¶
type GetExportFileDownloadLinksReader struct {
// contains filtered or unexported fields
}
GetExportFileDownloadLinksReader is a Reader for the GetExportFileDownloadLinks structure.
func (*GetExportFileDownloadLinksReader) ReadResponse ¶
func (o *GetExportFileDownloadLinksReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ParseOvfBadRequest ¶
ParseOvfBadRequest describes a response with status code 400, with default header values.
Bad request
func NewParseOvfBadRequest ¶
func NewParseOvfBadRequest() *ParseOvfBadRequest
NewParseOvfBadRequest creates a ParseOvfBadRequest with default headers values
func (*ParseOvfBadRequest) Error ¶
func (o *ParseOvfBadRequest) Error() string
func (*ParseOvfBadRequest) GetPayload ¶
func (o *ParseOvfBadRequest) GetPayload() *models.ErrorBody
type ParseOvfInternalServerError ¶
ParseOvfInternalServerError describes a response with status code 500, with default header values.
Server error
func NewParseOvfInternalServerError ¶
func NewParseOvfInternalServerError() *ParseOvfInternalServerError
NewParseOvfInternalServerError creates a ParseOvfInternalServerError with default headers values
func (*ParseOvfInternalServerError) Error ¶
func (o *ParseOvfInternalServerError) Error() string
func (*ParseOvfInternalServerError) GetPayload ¶
func (o *ParseOvfInternalServerError) GetPayload() *models.ErrorBody
type ParseOvfNotFound ¶
ParseOvfNotFound describes a response with status code 404, with default header values.
Not found
func NewParseOvfNotFound ¶
func NewParseOvfNotFound() *ParseOvfNotFound
NewParseOvfNotFound creates a ParseOvfNotFound with default headers values
func (*ParseOvfNotFound) Error ¶
func (o *ParseOvfNotFound) Error() string
func (*ParseOvfNotFound) GetPayload ¶
func (o *ParseOvfNotFound) GetPayload() *models.ErrorBody
type ParseOvfOK ¶
ParseOvfOK describes a response with status code 200, with default header values.
ParseOvfOK parse ovf o k
func NewParseOvfOK ¶
func NewParseOvfOK() *ParseOvfOK
NewParseOvfOK creates a ParseOvfOK with default headers values
func (*ParseOvfOK) Error ¶
func (o *ParseOvfOK) Error() string
func (*ParseOvfOK) GetPayload ¶
func (o *ParseOvfOK) GetPayload() *models.ParsedOVF
type ParseOvfParams ¶
type ParseOvfParams struct { // ClusterID. ClusterID string // ContentLanguage. // // Default: "en-US" ContentLanguage *string // File. File runtime.NamedReadCloser Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ParseOvfParams contains all the parameters to send to the API endpoint
for the parse ovf operation. Typically these are written to a http.Request.
func NewParseOvfParams ¶
func NewParseOvfParams() *ParseOvfParams
NewParseOvfParams creates a new ParseOvfParams 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 NewParseOvfParamsWithContext ¶
func NewParseOvfParamsWithContext(ctx context.Context) *ParseOvfParams
NewParseOvfParamsWithContext creates a new ParseOvfParams object with the ability to set a context for a request.
func NewParseOvfParamsWithHTTPClient ¶
func NewParseOvfParamsWithHTTPClient(client *http.Client) *ParseOvfParams
NewParseOvfParamsWithHTTPClient creates a new ParseOvfParams object with the ability to set a custom HTTPClient for a request.
func NewParseOvfParamsWithTimeout ¶
func NewParseOvfParamsWithTimeout(timeout time.Duration) *ParseOvfParams
NewParseOvfParamsWithTimeout creates a new ParseOvfParams object with the ability to set a timeout on a request.
func (*ParseOvfParams) SetClusterID ¶
func (o *ParseOvfParams) SetClusterID(clusterID string)
SetClusterID adds the clusterId to the parse ovf params
func (*ParseOvfParams) SetContentLanguage ¶
func (o *ParseOvfParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the parse ovf params
func (*ParseOvfParams) SetContext ¶
func (o *ParseOvfParams) SetContext(ctx context.Context)
SetContext adds the context to the parse ovf params
func (*ParseOvfParams) SetDefaults ¶
func (o *ParseOvfParams) SetDefaults()
SetDefaults hydrates default values in the parse ovf params (not the query body).
All values with no default are reset to their zero value.
func (*ParseOvfParams) SetFile ¶
func (o *ParseOvfParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the parse ovf params
func (*ParseOvfParams) SetHTTPClient ¶
func (o *ParseOvfParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the parse ovf params
func (*ParseOvfParams) SetTimeout ¶
func (o *ParseOvfParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the parse ovf params
func (*ParseOvfParams) WithClusterID ¶
func (o *ParseOvfParams) WithClusterID(clusterID string) *ParseOvfParams
WithClusterID adds the clusterID to the parse ovf params
func (*ParseOvfParams) WithContentLanguage ¶
func (o *ParseOvfParams) WithContentLanguage(contentLanguage *string) *ParseOvfParams
WithContentLanguage adds the contentLanguage to the parse ovf params
func (*ParseOvfParams) WithContext ¶
func (o *ParseOvfParams) WithContext(ctx context.Context) *ParseOvfParams
WithContext adds the context to the parse ovf params
func (*ParseOvfParams) WithDefaults ¶
func (o *ParseOvfParams) WithDefaults() *ParseOvfParams
WithDefaults hydrates default values in the parse ovf params (not the query body).
All values with no default are reset to their zero value.
func (*ParseOvfParams) WithFile ¶
func (o *ParseOvfParams) WithFile(file runtime.NamedReadCloser) *ParseOvfParams
WithFile adds the file to the parse ovf params
func (*ParseOvfParams) WithHTTPClient ¶
func (o *ParseOvfParams) WithHTTPClient(client *http.Client) *ParseOvfParams
WithHTTPClient adds the HTTPClient to the parse ovf params
func (*ParseOvfParams) WithTimeout ¶
func (o *ParseOvfParams) WithTimeout(timeout time.Duration) *ParseOvfParams
WithTimeout adds the timeout to the parse ovf params
func (*ParseOvfParams) WriteToRequest ¶
func (o *ParseOvfParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ParseOvfReader ¶
type ParseOvfReader struct {
// contains filtered or unexported fields
}
ParseOvfReader is a Reader for the ParseOvf structure.
func (*ParseOvfReader) ReadResponse ¶
func (o *ParseOvfReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UploadElfFileBadRequest ¶
UploadElfFileBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUploadElfFileBadRequest ¶
func NewUploadElfFileBadRequest() *UploadElfFileBadRequest
NewUploadElfFileBadRequest creates a UploadElfFileBadRequest with default headers values
func (*UploadElfFileBadRequest) Error ¶
func (o *UploadElfFileBadRequest) Error() string
func (*UploadElfFileBadRequest) GetPayload ¶
func (o *UploadElfFileBadRequest) GetPayload() *models.ErrorBody
type UploadElfFileInternalServerError ¶
UploadElfFileInternalServerError describes a response with status code 500, with default header values.
Server error
func NewUploadElfFileInternalServerError ¶
func NewUploadElfFileInternalServerError() *UploadElfFileInternalServerError
NewUploadElfFileInternalServerError creates a UploadElfFileInternalServerError with default headers values
func (*UploadElfFileInternalServerError) Error ¶
func (o *UploadElfFileInternalServerError) Error() string
func (*UploadElfFileInternalServerError) GetPayload ¶
func (o *UploadElfFileInternalServerError) GetPayload() *models.ErrorBody
type UploadElfFileNotFound ¶
UploadElfFileNotFound describes a response with status code 404, with default header values.
Not found
func NewUploadElfFileNotFound ¶
func NewUploadElfFileNotFound() *UploadElfFileNotFound
NewUploadElfFileNotFound creates a UploadElfFileNotFound with default headers values
func (*UploadElfFileNotFound) Error ¶
func (o *UploadElfFileNotFound) Error() string
func (*UploadElfFileNotFound) GetPayload ¶
func (o *UploadElfFileNotFound) GetPayload() *models.ErrorBody
type UploadElfFileOK ¶
type UploadElfFileOK struct { XTowerRequestID string Payload *models.UploadTask }
UploadElfFileOK describes a response with status code 200, with default header values.
UploadElfFileOK upload elf file o k
func NewUploadElfFileOK ¶
func NewUploadElfFileOK() *UploadElfFileOK
NewUploadElfFileOK creates a UploadElfFileOK with default headers values
func (*UploadElfFileOK) Error ¶
func (o *UploadElfFileOK) Error() string
func (*UploadElfFileOK) GetPayload ¶
func (o *UploadElfFileOK) GetPayload() *models.UploadTask
type UploadElfFileParams ¶
type UploadElfFileParams struct { // ClusterID. ClusterID *string // ContentLanguage. // // Default: "en-US" ContentLanguage *string // File. File runtime.NamedReadCloser // Name. Name *string // Size. Size *string // SizeUnit. SizeUnit *string // UploadTaskID. UploadTaskID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UploadElfFileParams contains all the parameters to send to the API endpoint
for the upload elf file operation. Typically these are written to a http.Request.
func NewUploadElfFileParams ¶
func NewUploadElfFileParams() *UploadElfFileParams
NewUploadElfFileParams creates a new UploadElfFileParams 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 NewUploadElfFileParamsWithContext ¶
func NewUploadElfFileParamsWithContext(ctx context.Context) *UploadElfFileParams
NewUploadElfFileParamsWithContext creates a new UploadElfFileParams object with the ability to set a context for a request.
func NewUploadElfFileParamsWithHTTPClient ¶
func NewUploadElfFileParamsWithHTTPClient(client *http.Client) *UploadElfFileParams
NewUploadElfFileParamsWithHTTPClient creates a new UploadElfFileParams object with the ability to set a custom HTTPClient for a request.
func NewUploadElfFileParamsWithTimeout ¶
func NewUploadElfFileParamsWithTimeout(timeout time.Duration) *UploadElfFileParams
NewUploadElfFileParamsWithTimeout creates a new UploadElfFileParams object with the ability to set a timeout on a request.
func (*UploadElfFileParams) SetClusterID ¶
func (o *UploadElfFileParams) SetClusterID(clusterID *string)
SetClusterID adds the clusterId to the upload elf file params
func (*UploadElfFileParams) SetContentLanguage ¶
func (o *UploadElfFileParams) SetContentLanguage(contentLanguage *string)
SetContentLanguage adds the contentLanguage to the upload elf file params
func (*UploadElfFileParams) SetContext ¶
func (o *UploadElfFileParams) SetContext(ctx context.Context)
SetContext adds the context to the upload elf file params
func (*UploadElfFileParams) SetDefaults ¶
func (o *UploadElfFileParams) SetDefaults()
SetDefaults hydrates default values in the upload elf file params (not the query body).
All values with no default are reset to their zero value.
func (*UploadElfFileParams) SetFile ¶
func (o *UploadElfFileParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the upload elf file params
func (*UploadElfFileParams) SetHTTPClient ¶
func (o *UploadElfFileParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the upload elf file params
func (*UploadElfFileParams) SetName ¶
func (o *UploadElfFileParams) SetName(name *string)
SetName adds the name to the upload elf file params
func (*UploadElfFileParams) SetSize ¶
func (o *UploadElfFileParams) SetSize(size *string)
SetSize adds the size to the upload elf file params
func (*UploadElfFileParams) SetSizeUnit ¶
func (o *UploadElfFileParams) SetSizeUnit(sizeUnit *string)
SetSizeUnit adds the sizeUnit to the upload elf file params
func (*UploadElfFileParams) SetTimeout ¶
func (o *UploadElfFileParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the upload elf file params
func (*UploadElfFileParams) SetUploadTaskID ¶
func (o *UploadElfFileParams) SetUploadTaskID(uploadTaskID *string)
SetUploadTaskID adds the uploadTaskId to the upload elf file params
func (*UploadElfFileParams) WithClusterID ¶
func (o *UploadElfFileParams) WithClusterID(clusterID *string) *UploadElfFileParams
WithClusterID adds the clusterID to the upload elf file params
func (*UploadElfFileParams) WithContentLanguage ¶
func (o *UploadElfFileParams) WithContentLanguage(contentLanguage *string) *UploadElfFileParams
WithContentLanguage adds the contentLanguage to the upload elf file params
func (*UploadElfFileParams) WithContext ¶
func (o *UploadElfFileParams) WithContext(ctx context.Context) *UploadElfFileParams
WithContext adds the context to the upload elf file params
func (*UploadElfFileParams) WithDefaults ¶
func (o *UploadElfFileParams) WithDefaults() *UploadElfFileParams
WithDefaults hydrates default values in the upload elf file params (not the query body).
All values with no default are reset to their zero value.
func (*UploadElfFileParams) WithFile ¶
func (o *UploadElfFileParams) WithFile(file runtime.NamedReadCloser) *UploadElfFileParams
WithFile adds the file to the upload elf file params
func (*UploadElfFileParams) WithHTTPClient ¶
func (o *UploadElfFileParams) WithHTTPClient(client *http.Client) *UploadElfFileParams
WithHTTPClient adds the HTTPClient to the upload elf file params
func (*UploadElfFileParams) WithName ¶
func (o *UploadElfFileParams) WithName(name *string) *UploadElfFileParams
WithName adds the name to the upload elf file params
func (*UploadElfFileParams) WithSize ¶
func (o *UploadElfFileParams) WithSize(size *string) *UploadElfFileParams
WithSize adds the size to the upload elf file params
func (*UploadElfFileParams) WithSizeUnit ¶
func (o *UploadElfFileParams) WithSizeUnit(sizeUnit *string) *UploadElfFileParams
WithSizeUnit adds the sizeUnit to the upload elf file params
func (*UploadElfFileParams) WithTimeout ¶
func (o *UploadElfFileParams) WithTimeout(timeout time.Duration) *UploadElfFileParams
WithTimeout adds the timeout to the upload elf file params
func (*UploadElfFileParams) WithUploadTaskID ¶
func (o *UploadElfFileParams) WithUploadTaskID(uploadTaskID *string) *UploadElfFileParams
WithUploadTaskID adds the uploadTaskID to the upload elf file params
func (*UploadElfFileParams) WriteToRequest ¶
func (o *UploadElfFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UploadElfFileReader ¶
type UploadElfFileReader struct {
// contains filtered or unexported fields
}
UploadElfFileReader is a Reader for the UploadElfFile structure.
func (*UploadElfFileReader) ReadResponse ¶
func (o *UploadElfFileReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.