assets

package
v0.0.0-...-f4869d1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 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 assets API

func (*Client) DeleteAsset

func (a *Client) DeleteAsset(params *DeleteAssetParams, opts ...ClientOption) (*DeleteAssetNoContent, error)

DeleteAsset deletes a single asset

func (*Client) GetAssetByID

func (a *Client) GetAssetByID(params *GetAssetByIDParams, opts ...ClientOption) (*GetAssetByIDOK, error)

GetAssetByID gets a single asset

func (*Client) GetAssets

func (a *Client) GetAssets(params *GetAssetsParams, opts ...ClientOption) (*GetAssetsOK, error)

GetAssets lists assets

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeleteAsset(params *DeleteAssetParams, opts ...ClientOption) (*DeleteAssetNoContent, error)

	GetAssetByID(params *GetAssetByIDParams, opts ...ClientOption) (*GetAssetByIDOK, error)

	GetAssets(params *GetAssetsParams, opts ...ClientOption) (*GetAssetsOK, 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 assets API client.

type DeleteAssetForbidden

type DeleteAssetForbidden struct {
}

DeleteAssetForbidden describes a response with status code 403, with default header values.

Insufficient permissions to delete asset

func NewDeleteAssetForbidden

func NewDeleteAssetForbidden() *DeleteAssetForbidden

NewDeleteAssetForbidden creates a DeleteAssetForbidden with default headers values

func (*DeleteAssetForbidden) Code

func (o *DeleteAssetForbidden) Code() int

Code gets the status code for the delete asset forbidden response

func (*DeleteAssetForbidden) Error

func (o *DeleteAssetForbidden) Error() string

func (*DeleteAssetForbidden) IsClientError

func (o *DeleteAssetForbidden) IsClientError() bool

IsClientError returns true when this delete asset forbidden response has a 4xx status code

func (*DeleteAssetForbidden) IsCode

func (o *DeleteAssetForbidden) IsCode(code int) bool

IsCode returns true when this delete asset forbidden response a status code equal to that given

func (*DeleteAssetForbidden) IsRedirect

func (o *DeleteAssetForbidden) IsRedirect() bool

IsRedirect returns true when this delete asset forbidden response has a 3xx status code

func (*DeleteAssetForbidden) IsServerError

func (o *DeleteAssetForbidden) IsServerError() bool

IsServerError returns true when this delete asset forbidden response has a 5xx status code

func (*DeleteAssetForbidden) IsSuccess

func (o *DeleteAssetForbidden) IsSuccess() bool

IsSuccess returns true when this delete asset forbidden response has a 2xx status code

func (*DeleteAssetForbidden) String

func (o *DeleteAssetForbidden) String() string

type DeleteAssetNoContent

type DeleteAssetNoContent struct {
}

DeleteAssetNoContent describes a response with status code 204, with default header values.

Asset was successfully deleted

func NewDeleteAssetNoContent

func NewDeleteAssetNoContent() *DeleteAssetNoContent

NewDeleteAssetNoContent creates a DeleteAssetNoContent with default headers values

func (*DeleteAssetNoContent) Code

func (o *DeleteAssetNoContent) Code() int

Code gets the status code for the delete asset no content response

func (*DeleteAssetNoContent) Error

func (o *DeleteAssetNoContent) Error() string

func (*DeleteAssetNoContent) IsClientError

func (o *DeleteAssetNoContent) IsClientError() bool

IsClientError returns true when this delete asset no content response has a 4xx status code

func (*DeleteAssetNoContent) IsCode

func (o *DeleteAssetNoContent) IsCode(code int) bool

IsCode returns true when this delete asset no content response a status code equal to that given

func (*DeleteAssetNoContent) IsRedirect

func (o *DeleteAssetNoContent) IsRedirect() bool

IsRedirect returns true when this delete asset no content response has a 3xx status code

func (*DeleteAssetNoContent) IsServerError

func (o *DeleteAssetNoContent) IsServerError() bool

IsServerError returns true when this delete asset no content response has a 5xx status code

func (*DeleteAssetNoContent) IsSuccess

func (o *DeleteAssetNoContent) IsSuccess() bool

IsSuccess returns true when this delete asset no content response has a 2xx status code

func (*DeleteAssetNoContent) String

func (o *DeleteAssetNoContent) String() string

type DeleteAssetNotFound

type DeleteAssetNotFound struct {
}

DeleteAssetNotFound describes a response with status code 404, with default header values.

Asset not found

func NewDeleteAssetNotFound

func NewDeleteAssetNotFound() *DeleteAssetNotFound

NewDeleteAssetNotFound creates a DeleteAssetNotFound with default headers values

func (*DeleteAssetNotFound) Code

func (o *DeleteAssetNotFound) Code() int

Code gets the status code for the delete asset not found response

func (*DeleteAssetNotFound) Error

func (o *DeleteAssetNotFound) Error() string

func (*DeleteAssetNotFound) IsClientError

func (o *DeleteAssetNotFound) IsClientError() bool

IsClientError returns true when this delete asset not found response has a 4xx status code

func (*DeleteAssetNotFound) IsCode

func (o *DeleteAssetNotFound) IsCode(code int) bool

IsCode returns true when this delete asset not found response a status code equal to that given

func (*DeleteAssetNotFound) IsRedirect

func (o *DeleteAssetNotFound) IsRedirect() bool

IsRedirect returns true when this delete asset not found response has a 3xx status code

func (*DeleteAssetNotFound) IsServerError

func (o *DeleteAssetNotFound) IsServerError() bool

IsServerError returns true when this delete asset not found response has a 5xx status code

func (*DeleteAssetNotFound) IsSuccess

func (o *DeleteAssetNotFound) IsSuccess() bool

IsSuccess returns true when this delete asset not found response has a 2xx status code

func (*DeleteAssetNotFound) String

func (o *DeleteAssetNotFound) String() string

type DeleteAssetParams

type DeleteAssetParams struct {

	/* ID.

	   Id of the asset to delete
	*/
	ID string

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

DeleteAssetParams contains all the parameters to send to the API endpoint

for the delete asset operation.

Typically these are written to a http.Request.

func NewDeleteAssetParams

func NewDeleteAssetParams() *DeleteAssetParams

NewDeleteAssetParams creates a new DeleteAssetParams 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 NewDeleteAssetParamsWithContext

func NewDeleteAssetParamsWithContext(ctx context.Context) *DeleteAssetParams

NewDeleteAssetParamsWithContext creates a new DeleteAssetParams object with the ability to set a context for a request.

func NewDeleteAssetParamsWithHTTPClient

func NewDeleteAssetParamsWithHTTPClient(client *http.Client) *DeleteAssetParams

NewDeleteAssetParamsWithHTTPClient creates a new DeleteAssetParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteAssetParamsWithTimeout

func NewDeleteAssetParamsWithTimeout(timeout time.Duration) *DeleteAssetParams

NewDeleteAssetParamsWithTimeout creates a new DeleteAssetParams object with the ability to set a timeout on a request.

func (*DeleteAssetParams) SetContext

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

SetContext adds the context to the delete asset params

func (*DeleteAssetParams) SetDefaults

func (o *DeleteAssetParams) SetDefaults()

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

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

func (*DeleteAssetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete asset params

func (*DeleteAssetParams) SetID

func (o *DeleteAssetParams) SetID(id string)

SetID adds the id to the delete asset params

func (*DeleteAssetParams) SetTimeout

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

SetTimeout adds the timeout to the delete asset params

func (*DeleteAssetParams) WithContext

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

WithContext adds the context to the delete asset params

func (*DeleteAssetParams) WithDefaults

func (o *DeleteAssetParams) WithDefaults() *DeleteAssetParams

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

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

func (*DeleteAssetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete asset params

func (*DeleteAssetParams) WithID

WithID adds the id to the delete asset params

func (*DeleteAssetParams) WithTimeout

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

WithTimeout adds the timeout to the delete asset params

func (*DeleteAssetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteAssetReader

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

DeleteAssetReader is a Reader for the DeleteAsset structure.

func (*DeleteAssetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAssetUnprocessableEntity

type DeleteAssetUnprocessableEntity struct {
}

DeleteAssetUnprocessableEntity describes a response with status code 422, with default header values.

Malformed ID

func NewDeleteAssetUnprocessableEntity

func NewDeleteAssetUnprocessableEntity() *DeleteAssetUnprocessableEntity

NewDeleteAssetUnprocessableEntity creates a DeleteAssetUnprocessableEntity with default headers values

func (*DeleteAssetUnprocessableEntity) Code

Code gets the status code for the delete asset unprocessable entity response

func (*DeleteAssetUnprocessableEntity) Error

func (*DeleteAssetUnprocessableEntity) IsClientError

func (o *DeleteAssetUnprocessableEntity) IsClientError() bool

IsClientError returns true when this delete asset unprocessable entity response has a 4xx status code

func (*DeleteAssetUnprocessableEntity) IsCode

func (o *DeleteAssetUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this delete asset unprocessable entity response a status code equal to that given

func (*DeleteAssetUnprocessableEntity) IsRedirect

func (o *DeleteAssetUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this delete asset unprocessable entity response has a 3xx status code

func (*DeleteAssetUnprocessableEntity) IsServerError

func (o *DeleteAssetUnprocessableEntity) IsServerError() bool

IsServerError returns true when this delete asset unprocessable entity response has a 5xx status code

func (*DeleteAssetUnprocessableEntity) IsSuccess

func (o *DeleteAssetUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this delete asset unprocessable entity response has a 2xx status code

func (*DeleteAssetUnprocessableEntity) String

type GetAssetByIDForbidden

type GetAssetByIDForbidden struct {
}

GetAssetByIDForbidden describes a response with status code 403, with default header values.

Insufficient permissions to get asset

func NewGetAssetByIDForbidden

func NewGetAssetByIDForbidden() *GetAssetByIDForbidden

NewGetAssetByIDForbidden creates a GetAssetByIDForbidden with default headers values

func (*GetAssetByIDForbidden) Code

func (o *GetAssetByIDForbidden) Code() int

Code gets the status code for the get asset by Id forbidden response

func (*GetAssetByIDForbidden) Error

func (o *GetAssetByIDForbidden) Error() string

func (*GetAssetByIDForbidden) IsClientError

func (o *GetAssetByIDForbidden) IsClientError() bool

IsClientError returns true when this get asset by Id forbidden response has a 4xx status code

func (*GetAssetByIDForbidden) IsCode

func (o *GetAssetByIDForbidden) IsCode(code int) bool

IsCode returns true when this get asset by Id forbidden response a status code equal to that given

func (*GetAssetByIDForbidden) IsRedirect

func (o *GetAssetByIDForbidden) IsRedirect() bool

IsRedirect returns true when this get asset by Id forbidden response has a 3xx status code

func (*GetAssetByIDForbidden) IsServerError

func (o *GetAssetByIDForbidden) IsServerError() bool

IsServerError returns true when this get asset by Id forbidden response has a 5xx status code

func (*GetAssetByIDForbidden) IsSuccess

func (o *GetAssetByIDForbidden) IsSuccess() bool

IsSuccess returns true when this get asset by Id forbidden response has a 2xx status code

func (*GetAssetByIDForbidden) String

func (o *GetAssetByIDForbidden) String() string

type GetAssetByIDNotFound

type GetAssetByIDNotFound struct {
}

GetAssetByIDNotFound describes a response with status code 404, with default header values.

Asset not found

func NewGetAssetByIDNotFound

func NewGetAssetByIDNotFound() *GetAssetByIDNotFound

NewGetAssetByIDNotFound creates a GetAssetByIDNotFound with default headers values

func (*GetAssetByIDNotFound) Code

func (o *GetAssetByIDNotFound) Code() int

Code gets the status code for the get asset by Id not found response

func (*GetAssetByIDNotFound) Error

func (o *GetAssetByIDNotFound) Error() string

func (*GetAssetByIDNotFound) IsClientError

func (o *GetAssetByIDNotFound) IsClientError() bool

IsClientError returns true when this get asset by Id not found response has a 4xx status code

func (*GetAssetByIDNotFound) IsCode

func (o *GetAssetByIDNotFound) IsCode(code int) bool

IsCode returns true when this get asset by Id not found response a status code equal to that given

func (*GetAssetByIDNotFound) IsRedirect

func (o *GetAssetByIDNotFound) IsRedirect() bool

IsRedirect returns true when this get asset by Id not found response has a 3xx status code

func (*GetAssetByIDNotFound) IsServerError

func (o *GetAssetByIDNotFound) IsServerError() bool

IsServerError returns true when this get asset by Id not found response has a 5xx status code

func (*GetAssetByIDNotFound) IsSuccess

func (o *GetAssetByIDNotFound) IsSuccess() bool

IsSuccess returns true when this get asset by Id not found response has a 2xx status code

func (*GetAssetByIDNotFound) String

func (o *GetAssetByIDNotFound) String() string

type GetAssetByIDOK

type GetAssetByIDOK struct {
	Payload *models.AssetXO
}

GetAssetByIDOK describes a response with status code 200, with default header values.

successful operation

func NewGetAssetByIDOK

func NewGetAssetByIDOK() *GetAssetByIDOK

NewGetAssetByIDOK creates a GetAssetByIDOK with default headers values

func (*GetAssetByIDOK) Code

func (o *GetAssetByIDOK) Code() int

Code gets the status code for the get asset by Id o k response

func (*GetAssetByIDOK) Error

func (o *GetAssetByIDOK) Error() string

func (*GetAssetByIDOK) GetPayload

func (o *GetAssetByIDOK) GetPayload() *models.AssetXO

func (*GetAssetByIDOK) IsClientError

func (o *GetAssetByIDOK) IsClientError() bool

IsClientError returns true when this get asset by Id o k response has a 4xx status code

func (*GetAssetByIDOK) IsCode

func (o *GetAssetByIDOK) IsCode(code int) bool

IsCode returns true when this get asset by Id o k response a status code equal to that given

func (*GetAssetByIDOK) IsRedirect

func (o *GetAssetByIDOK) IsRedirect() bool

IsRedirect returns true when this get asset by Id o k response has a 3xx status code

func (*GetAssetByIDOK) IsServerError

func (o *GetAssetByIDOK) IsServerError() bool

IsServerError returns true when this get asset by Id o k response has a 5xx status code

func (*GetAssetByIDOK) IsSuccess

func (o *GetAssetByIDOK) IsSuccess() bool

IsSuccess returns true when this get asset by Id o k response has a 2xx status code

func (*GetAssetByIDOK) String

func (o *GetAssetByIDOK) String() string

type GetAssetByIDParams

type GetAssetByIDParams struct {

	/* ID.

	   Id of the asset to get
	*/
	ID string

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

GetAssetByIDParams contains all the parameters to send to the API endpoint

for the get asset by Id operation.

Typically these are written to a http.Request.

func NewGetAssetByIDParams

func NewGetAssetByIDParams() *GetAssetByIDParams

NewGetAssetByIDParams creates a new GetAssetByIDParams 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 NewGetAssetByIDParamsWithContext

func NewGetAssetByIDParamsWithContext(ctx context.Context) *GetAssetByIDParams

NewGetAssetByIDParamsWithContext creates a new GetAssetByIDParams object with the ability to set a context for a request.

func NewGetAssetByIDParamsWithHTTPClient

func NewGetAssetByIDParamsWithHTTPClient(client *http.Client) *GetAssetByIDParams

NewGetAssetByIDParamsWithHTTPClient creates a new GetAssetByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAssetByIDParamsWithTimeout

func NewGetAssetByIDParamsWithTimeout(timeout time.Duration) *GetAssetByIDParams

NewGetAssetByIDParamsWithTimeout creates a new GetAssetByIDParams object with the ability to set a timeout on a request.

func (*GetAssetByIDParams) SetContext

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

SetContext adds the context to the get asset by Id params

func (*GetAssetByIDParams) SetDefaults

func (o *GetAssetByIDParams) SetDefaults()

SetDefaults hydrates default values in the get asset by Id params (not the query body).

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

func (*GetAssetByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get asset by Id params

func (*GetAssetByIDParams) SetID

func (o *GetAssetByIDParams) SetID(id string)

SetID adds the id to the get asset by Id params

func (*GetAssetByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get asset by Id params

func (*GetAssetByIDParams) WithContext

WithContext adds the context to the get asset by Id params

func (*GetAssetByIDParams) WithDefaults

func (o *GetAssetByIDParams) WithDefaults() *GetAssetByIDParams

WithDefaults hydrates default values in the get asset by Id params (not the query body).

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

func (*GetAssetByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get asset by Id params

func (*GetAssetByIDParams) WithID

WithID adds the id to the get asset by Id params

func (*GetAssetByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get asset by Id params

func (*GetAssetByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAssetByIDReader

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

GetAssetByIDReader is a Reader for the GetAssetByID structure.

func (*GetAssetByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAssetByIDUnprocessableEntity

type GetAssetByIDUnprocessableEntity struct {
}

GetAssetByIDUnprocessableEntity describes a response with status code 422, with default header values.

Malformed ID

func NewGetAssetByIDUnprocessableEntity

func NewGetAssetByIDUnprocessableEntity() *GetAssetByIDUnprocessableEntity

NewGetAssetByIDUnprocessableEntity creates a GetAssetByIDUnprocessableEntity with default headers values

func (*GetAssetByIDUnprocessableEntity) Code

Code gets the status code for the get asset by Id unprocessable entity response

func (*GetAssetByIDUnprocessableEntity) Error

func (*GetAssetByIDUnprocessableEntity) IsClientError

func (o *GetAssetByIDUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get asset by Id unprocessable entity response has a 4xx status code

func (*GetAssetByIDUnprocessableEntity) IsCode

func (o *GetAssetByIDUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this get asset by Id unprocessable entity response a status code equal to that given

func (*GetAssetByIDUnprocessableEntity) IsRedirect

func (o *GetAssetByIDUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this get asset by Id unprocessable entity response has a 3xx status code

func (*GetAssetByIDUnprocessableEntity) IsServerError

func (o *GetAssetByIDUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get asset by Id unprocessable entity response has a 5xx status code

func (*GetAssetByIDUnprocessableEntity) IsSuccess

func (o *GetAssetByIDUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this get asset by Id unprocessable entity response has a 2xx status code

func (*GetAssetByIDUnprocessableEntity) String

type GetAssetsForbidden

type GetAssetsForbidden struct {
}

GetAssetsForbidden describes a response with status code 403, with default header values.

Insufficient permissions to list assets

func NewGetAssetsForbidden

func NewGetAssetsForbidden() *GetAssetsForbidden

NewGetAssetsForbidden creates a GetAssetsForbidden with default headers values

func (*GetAssetsForbidden) Code

func (o *GetAssetsForbidden) Code() int

Code gets the status code for the get assets forbidden response

func (*GetAssetsForbidden) Error

func (o *GetAssetsForbidden) Error() string

func (*GetAssetsForbidden) IsClientError

func (o *GetAssetsForbidden) IsClientError() bool

IsClientError returns true when this get assets forbidden response has a 4xx status code

func (*GetAssetsForbidden) IsCode

func (o *GetAssetsForbidden) IsCode(code int) bool

IsCode returns true when this get assets forbidden response a status code equal to that given

func (*GetAssetsForbidden) IsRedirect

func (o *GetAssetsForbidden) IsRedirect() bool

IsRedirect returns true when this get assets forbidden response has a 3xx status code

func (*GetAssetsForbidden) IsServerError

func (o *GetAssetsForbidden) IsServerError() bool

IsServerError returns true when this get assets forbidden response has a 5xx status code

func (*GetAssetsForbidden) IsSuccess

func (o *GetAssetsForbidden) IsSuccess() bool

IsSuccess returns true when this get assets forbidden response has a 2xx status code

func (*GetAssetsForbidden) String

func (o *GetAssetsForbidden) String() string

type GetAssetsOK

type GetAssetsOK struct {
	Payload *models.PageAssetXO
}

GetAssetsOK describes a response with status code 200, with default header values.

successful operation

func NewGetAssetsOK

func NewGetAssetsOK() *GetAssetsOK

NewGetAssetsOK creates a GetAssetsOK with default headers values

func (*GetAssetsOK) Code

func (o *GetAssetsOK) Code() int

Code gets the status code for the get assets o k response

func (*GetAssetsOK) Error

func (o *GetAssetsOK) Error() string

func (*GetAssetsOK) GetPayload

func (o *GetAssetsOK) GetPayload() *models.PageAssetXO

func (*GetAssetsOK) IsClientError

func (o *GetAssetsOK) IsClientError() bool

IsClientError returns true when this get assets o k response has a 4xx status code

func (*GetAssetsOK) IsCode

func (o *GetAssetsOK) IsCode(code int) bool

IsCode returns true when this get assets o k response a status code equal to that given

func (*GetAssetsOK) IsRedirect

func (o *GetAssetsOK) IsRedirect() bool

IsRedirect returns true when this get assets o k response has a 3xx status code

func (*GetAssetsOK) IsServerError

func (o *GetAssetsOK) IsServerError() bool

IsServerError returns true when this get assets o k response has a 5xx status code

func (*GetAssetsOK) IsSuccess

func (o *GetAssetsOK) IsSuccess() bool

IsSuccess returns true when this get assets o k response has a 2xx status code

func (*GetAssetsOK) String

func (o *GetAssetsOK) String() string

type GetAssetsParams

type GetAssetsParams struct {

	/* ContinuationToken.

	   A token returned by a prior request. If present, the next page of results are returned
	*/
	ContinuationToken *string

	/* Repository.

	   Repository from which you would like to retrieve assets.
	*/
	Repository string

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

GetAssetsParams contains all the parameters to send to the API endpoint

for the get assets operation.

Typically these are written to a http.Request.

func NewGetAssetsParams

func NewGetAssetsParams() *GetAssetsParams

NewGetAssetsParams creates a new GetAssetsParams 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 NewGetAssetsParamsWithContext

func NewGetAssetsParamsWithContext(ctx context.Context) *GetAssetsParams

NewGetAssetsParamsWithContext creates a new GetAssetsParams object with the ability to set a context for a request.

func NewGetAssetsParamsWithHTTPClient

func NewGetAssetsParamsWithHTTPClient(client *http.Client) *GetAssetsParams

NewGetAssetsParamsWithHTTPClient creates a new GetAssetsParams object with the ability to set a custom HTTPClient for a request.

func NewGetAssetsParamsWithTimeout

func NewGetAssetsParamsWithTimeout(timeout time.Duration) *GetAssetsParams

NewGetAssetsParamsWithTimeout creates a new GetAssetsParams object with the ability to set a timeout on a request.

func (*GetAssetsParams) SetContext

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

SetContext adds the context to the get assets params

func (*GetAssetsParams) SetContinuationToken

func (o *GetAssetsParams) SetContinuationToken(continuationToken *string)

SetContinuationToken adds the continuationToken to the get assets params

func (*GetAssetsParams) SetDefaults

func (o *GetAssetsParams) SetDefaults()

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

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

func (*GetAssetsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get assets params

func (*GetAssetsParams) SetRepository

func (o *GetAssetsParams) SetRepository(repository string)

SetRepository adds the repository to the get assets params

func (*GetAssetsParams) SetTimeout

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

SetTimeout adds the timeout to the get assets params

func (*GetAssetsParams) WithContext

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

WithContext adds the context to the get assets params

func (*GetAssetsParams) WithContinuationToken

func (o *GetAssetsParams) WithContinuationToken(continuationToken *string) *GetAssetsParams

WithContinuationToken adds the continuationToken to the get assets params

func (*GetAssetsParams) WithDefaults

func (o *GetAssetsParams) WithDefaults() *GetAssetsParams

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

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

func (*GetAssetsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get assets params

func (*GetAssetsParams) WithRepository

func (o *GetAssetsParams) WithRepository(repository string) *GetAssetsParams

WithRepository adds the repository to the get assets params

func (*GetAssetsParams) WithTimeout

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

WithTimeout adds the timeout to the get assets params

func (*GetAssetsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAssetsReader

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

GetAssetsReader is a Reader for the GetAssets structure.

func (*GetAssetsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAssetsUnprocessableEntity

type GetAssetsUnprocessableEntity struct {
}

GetAssetsUnprocessableEntity describes a response with status code 422, with default header values.

Parameter 'repository' is required

func NewGetAssetsUnprocessableEntity

func NewGetAssetsUnprocessableEntity() *GetAssetsUnprocessableEntity

NewGetAssetsUnprocessableEntity creates a GetAssetsUnprocessableEntity with default headers values

func (*GetAssetsUnprocessableEntity) Code

Code gets the status code for the get assets unprocessable entity response

func (*GetAssetsUnprocessableEntity) Error

func (*GetAssetsUnprocessableEntity) IsClientError

func (o *GetAssetsUnprocessableEntity) IsClientError() bool

IsClientError returns true when this get assets unprocessable entity response has a 4xx status code

func (*GetAssetsUnprocessableEntity) IsCode

func (o *GetAssetsUnprocessableEntity) IsCode(code int) bool

IsCode returns true when this get assets unprocessable entity response a status code equal to that given

func (*GetAssetsUnprocessableEntity) IsRedirect

func (o *GetAssetsUnprocessableEntity) IsRedirect() bool

IsRedirect returns true when this get assets unprocessable entity response has a 3xx status code

func (*GetAssetsUnprocessableEntity) IsServerError

func (o *GetAssetsUnprocessableEntity) IsServerError() bool

IsServerError returns true when this get assets unprocessable entity response has a 5xx status code

func (*GetAssetsUnprocessableEntity) IsSuccess

func (o *GetAssetsUnprocessableEntity) IsSuccess() bool

IsSuccess returns true when this get assets unprocessable entity response has a 2xx status code

func (*GetAssetsUnprocessableEntity) String

Jump to

Keyboard shortcuts

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