ovf

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 ovf API

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 (*GetExportFileDownloadLinksBadRequest) GetPayload

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 (*GetExportFileDownloadLinksInternalServerError) GetPayload

type GetExportFileDownloadLinksNotFound

type GetExportFileDownloadLinksNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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 (*GetExportFileDownloadLinksNotFound) GetPayload

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 (*GetExportFileDownloadLinksOK) GetPayload

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

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

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

WithContext adds the context to the get export file download links params

func (*GetExportFileDownloadLinksParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get export file download links params

func (*GetExportFileDownloadLinksParams) WithRequestBody

WithRequestBody adds the requestBody to the get export file download links params

func (*GetExportFileDownloadLinksParams) WithTimeout

WithTimeout adds the timeout to the get export file download links params

func (*GetExportFileDownloadLinksParams) WriteToRequest

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

type ParseOvfBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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

type ParseOvfInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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 (*ParseOvfInternalServerError) GetPayload

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

type ParseOvfNotFound

type ParseOvfNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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

type ParseOvfOK struct {
	XTowerRequestID string

	Payload *models.ParsedOVF
}
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

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

type UploadElfFileBadRequest struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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

type UploadElfFileInternalServerError struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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 (*UploadElfFileInternalServerError) GetPayload

type UploadElfFileNotFound

type UploadElfFileNotFound struct {
	XTowerRequestID string

	Payload *models.ErrorBody
}
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

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

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.

Jump to

Keyboard shortcuts

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