catalog_sources

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

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 catalog sources API

func (*Client) DeleteUsingDELETE

func (a *Client) DeleteUsingDELETE(params *DeleteUsingDELETEParams, opts ...ClientOption) (*DeleteUsingDELETENoContent, error)

DeleteUsingDELETE deletes catalog source

Deletes the catalog source with the supplied ID.

func (*Client) GetPageUsingGET

func (a *Client) GetPageUsingGET(params *GetPageUsingGETParams, opts ...ClientOption) (*GetPageUsingGETOK, error)

GetPageUsingGET fetches catalog sources

Returns a paginated list of catalog sources.

func (*Client) GetUsingGET

func (a *Client) GetUsingGET(params *GetUsingGETParams, opts ...ClientOption) (*GetUsingGETOK, error)

GetUsingGET fetches a specific catalog source for the given ID

Returns the catalog source with the supplied ID.

func (*Client) PostUsingPOST

func (a *Client) PostUsingPOST(params *PostUsingPOSTParams, opts ...ClientOption) (*PostUsingPOSTOK, *PostUsingPOSTCreated, error)

PostUsingPOST creates a new catalog source or update an existing catalog source

Creates a new catalog source or updates an existing catalog source based on the request body and imports catalog items from it.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption added in v0.2.20

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService added in v0.2.18

type ClientService interface {
	DeleteUsingDELETE(params *DeleteUsingDELETEParams, opts ...ClientOption) (*DeleteUsingDELETENoContent, error)

	GetPageUsingGET(params *GetPageUsingGETParams, opts ...ClientOption) (*GetPageUsingGETOK, error)

	GetUsingGET(params *GetUsingGETParams, opts ...ClientOption) (*GetUsingGETOK, error)

	PostUsingPOST(params *PostUsingPOSTParams, opts ...ClientOption) (*PostUsingPOSTOK, *PostUsingPOSTCreated, 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 catalog sources API client.

type DeleteUsingDELETENoContent

type DeleteUsingDELETENoContent struct {
}
DeleteUsingDELETENoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteUsingDELETENoContent

func NewDeleteUsingDELETENoContent() *DeleteUsingDELETENoContent

NewDeleteUsingDELETENoContent creates a DeleteUsingDELETENoContent with default headers values

func (*DeleteUsingDELETENoContent) Error

type DeleteUsingDELETEParams

type DeleteUsingDELETEParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* SourceID.

	   Catalog source ID

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

DeleteUsingDELETEParams contains all the parameters to send to the API endpoint

for the delete using d e l e t e operation.

Typically these are written to a http.Request.

func NewDeleteUsingDELETEParams

func NewDeleteUsingDELETEParams() *DeleteUsingDELETEParams

NewDeleteUsingDELETEParams creates a new DeleteUsingDELETEParams 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 NewDeleteUsingDELETEParamsWithContext

func NewDeleteUsingDELETEParamsWithContext(ctx context.Context) *DeleteUsingDELETEParams

NewDeleteUsingDELETEParamsWithContext creates a new DeleteUsingDELETEParams object with the ability to set a context for a request.

func NewDeleteUsingDELETEParamsWithHTTPClient

func NewDeleteUsingDELETEParamsWithHTTPClient(client *http.Client) *DeleteUsingDELETEParams

NewDeleteUsingDELETEParamsWithHTTPClient creates a new DeleteUsingDELETEParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteUsingDELETEParamsWithTimeout

func NewDeleteUsingDELETEParamsWithTimeout(timeout time.Duration) *DeleteUsingDELETEParams

NewDeleteUsingDELETEParamsWithTimeout creates a new DeleteUsingDELETEParams object with the ability to set a timeout on a request.

func (*DeleteUsingDELETEParams) SetAPIVersion added in v0.2.9

func (o *DeleteUsingDELETEParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) SetContext

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

SetContext adds the context to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) SetDefaults added in v0.2.20

func (o *DeleteUsingDELETEParams) SetDefaults()

SetDefaults hydrates default values in the delete using d e l e t e params (not the query body).

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

func (*DeleteUsingDELETEParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) SetSourceID

func (o *DeleteUsingDELETEParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) SetTimeout

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

SetTimeout adds the timeout to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) WithAPIVersion added in v0.2.9

func (o *DeleteUsingDELETEParams) WithAPIVersion(aPIVersion *string) *DeleteUsingDELETEParams

WithAPIVersion adds the aPIVersion to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) WithContext

WithContext adds the context to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) WithDefaults added in v0.2.20

WithDefaults hydrates default values in the delete using d e l e t e params (not the query body).

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

func (*DeleteUsingDELETEParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) WithSourceID

func (o *DeleteUsingDELETEParams) WithSourceID(sourceID strfmt.UUID) *DeleteUsingDELETEParams

WithSourceID adds the sourceID to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) WithTimeout

WithTimeout adds the timeout to the delete using d e l e t e params

func (*DeleteUsingDELETEParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteUsingDELETEReader

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

DeleteUsingDELETEReader is a Reader for the DeleteUsingDELETE structure.

func (*DeleteUsingDELETEReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteUsingDELETEUnauthorized

type DeleteUsingDELETEUnauthorized struct {
}
DeleteUsingDELETEUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteUsingDELETEUnauthorized

func NewDeleteUsingDELETEUnauthorized() *DeleteUsingDELETEUnauthorized

NewDeleteUsingDELETEUnauthorized creates a DeleteUsingDELETEUnauthorized with default headers values

func (*DeleteUsingDELETEUnauthorized) Error

type GetPageUsingGETOK

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

OK

func NewGetPageUsingGETOK

func NewGetPageUsingGETOK() *GetPageUsingGETOK

NewGetPageUsingGETOK creates a GetPageUsingGETOK with default headers values

func (*GetPageUsingGETOK) Error

func (o *GetPageUsingGETOK) Error() string

func (*GetPageUsingGETOK) GetPayload

func (o *GetPageUsingGETOK) GetPayload() *models.PageOfCatalogSource

type GetPageUsingGETParams

type GetPageUsingGETParams struct {

	/* DollarOrderby.

	   Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
	*/
	DollarOrderby []string

	/* DollarSkip.

	   Number of records you want to skip

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   Number of records you want

	   Format: int32
	*/
	DollarTop *int32

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* ProjectID.

	   Find sources which contains items that can be requested in the given projectId
	*/
	ProjectID *string

	/* Search.

	   Matches will have this string in their name or description.
	*/
	Search *string

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

GetPageUsingGETParams contains all the parameters to send to the API endpoint

for the get page using g e t operation.

Typically these are written to a http.Request.

func NewGetPageUsingGETParams

func NewGetPageUsingGETParams() *GetPageUsingGETParams

NewGetPageUsingGETParams creates a new GetPageUsingGETParams 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 NewGetPageUsingGETParamsWithContext

func NewGetPageUsingGETParamsWithContext(ctx context.Context) *GetPageUsingGETParams

NewGetPageUsingGETParamsWithContext creates a new GetPageUsingGETParams object with the ability to set a context for a request.

func NewGetPageUsingGETParamsWithHTTPClient

func NewGetPageUsingGETParamsWithHTTPClient(client *http.Client) *GetPageUsingGETParams

NewGetPageUsingGETParamsWithHTTPClient creates a new GetPageUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetPageUsingGETParamsWithTimeout

func NewGetPageUsingGETParamsWithTimeout(timeout time.Duration) *GetPageUsingGETParams

NewGetPageUsingGETParamsWithTimeout creates a new GetPageUsingGETParams object with the ability to set a timeout on a request.

func (*GetPageUsingGETParams) SetAPIVersion added in v0.2.9

func (o *GetPageUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get page using get params

func (*GetPageUsingGETParams) SetContext

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

SetContext adds the context to the get page using get params

func (*GetPageUsingGETParams) SetDefaults added in v0.2.20

func (o *GetPageUsingGETParams) SetDefaults()

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

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

func (*GetPageUsingGETParams) SetDollarOrderby added in v0.2.0

func (o *GetPageUsingGETParams) SetDollarOrderby(dollarOrderby []string)

SetDollarOrderby adds the dollarOrderby to the get page using get params

func (*GetPageUsingGETParams) SetDollarSkip added in v0.2.0

func (o *GetPageUsingGETParams) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the get page using get params

func (*GetPageUsingGETParams) SetDollarTop added in v0.2.0

func (o *GetPageUsingGETParams) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the get page using get params

func (*GetPageUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get page using get params

func (*GetPageUsingGETParams) SetProjectID

func (o *GetPageUsingGETParams) SetProjectID(projectID *string)

SetProjectID adds the projectId to the get page using get params

func (*GetPageUsingGETParams) SetSearch

func (o *GetPageUsingGETParams) SetSearch(search *string)

SetSearch adds the search to the get page using get params

func (*GetPageUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get page using get params

func (*GetPageUsingGETParams) WithAPIVersion added in v0.2.9

func (o *GetPageUsingGETParams) WithAPIVersion(aPIVersion *string) *GetPageUsingGETParams

WithAPIVersion adds the aPIVersion to the get page using get params

func (*GetPageUsingGETParams) WithContext

WithContext adds the context to the get page using get params

func (*GetPageUsingGETParams) WithDefaults added in v0.2.20

func (o *GetPageUsingGETParams) WithDefaults() *GetPageUsingGETParams

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

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

func (*GetPageUsingGETParams) WithDollarOrderby added in v0.2.0

func (o *GetPageUsingGETParams) WithDollarOrderby(dollarOrderby []string) *GetPageUsingGETParams

WithDollarOrderby adds the dollarOrderby to the get page using get params

func (*GetPageUsingGETParams) WithDollarSkip added in v0.2.0

func (o *GetPageUsingGETParams) WithDollarSkip(dollarSkip *int32) *GetPageUsingGETParams

WithDollarSkip adds the dollarSkip to the get page using get params

func (*GetPageUsingGETParams) WithDollarTop added in v0.2.0

func (o *GetPageUsingGETParams) WithDollarTop(dollarTop *int32) *GetPageUsingGETParams

WithDollarTop adds the dollarTop to the get page using get params

func (*GetPageUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get page using get params

func (*GetPageUsingGETParams) WithProjectID

func (o *GetPageUsingGETParams) WithProjectID(projectID *string) *GetPageUsingGETParams

WithProjectID adds the projectID to the get page using get params

func (*GetPageUsingGETParams) WithSearch

func (o *GetPageUsingGETParams) WithSearch(search *string) *GetPageUsingGETParams

WithSearch adds the search to the get page using get params

func (*GetPageUsingGETParams) WithTimeout

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

WithTimeout adds the timeout to the get page using get params

func (*GetPageUsingGETParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPageUsingGETReader

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

GetPageUsingGETReader is a Reader for the GetPageUsingGET structure.

func (*GetPageUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPageUsingGETUnauthorized

type GetPageUsingGETUnauthorized struct {
}
GetPageUsingGETUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetPageUsingGETUnauthorized

func NewGetPageUsingGETUnauthorized() *GetPageUsingGETUnauthorized

NewGetPageUsingGETUnauthorized creates a GetPageUsingGETUnauthorized with default headers values

func (*GetPageUsingGETUnauthorized) Error

type GetUsingGETNotFound

type GetUsingGETNotFound struct {
	Payload *models.Error
}
GetUsingGETNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetUsingGETNotFound

func NewGetUsingGETNotFound() *GetUsingGETNotFound

NewGetUsingGETNotFound creates a GetUsingGETNotFound with default headers values

func (*GetUsingGETNotFound) Error

func (o *GetUsingGETNotFound) Error() string

func (*GetUsingGETNotFound) GetPayload added in v0.2.9

func (o *GetUsingGETNotFound) GetPayload() *models.Error

type GetUsingGETOK

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

OK

func NewGetUsingGETOK

func NewGetUsingGETOK() *GetUsingGETOK

NewGetUsingGETOK creates a GetUsingGETOK with default headers values

func (*GetUsingGETOK) Error

func (o *GetUsingGETOK) Error() string

func (*GetUsingGETOK) GetPayload

func (o *GetUsingGETOK) GetPayload() *models.CatalogSource

type GetUsingGETParams

type GetUsingGETParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* SourceID.

	   Catalog source ID

	   Format: uuid
	*/
	SourceID strfmt.UUID

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

GetUsingGETParams contains all the parameters to send to the API endpoint

for the get using g e t operation.

Typically these are written to a http.Request.

func NewGetUsingGETParams

func NewGetUsingGETParams() *GetUsingGETParams

NewGetUsingGETParams creates a new GetUsingGETParams 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 NewGetUsingGETParamsWithContext

func NewGetUsingGETParamsWithContext(ctx context.Context) *GetUsingGETParams

NewGetUsingGETParamsWithContext creates a new GetUsingGETParams object with the ability to set a context for a request.

func NewGetUsingGETParamsWithHTTPClient

func NewGetUsingGETParamsWithHTTPClient(client *http.Client) *GetUsingGETParams

NewGetUsingGETParamsWithHTTPClient creates a new GetUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewGetUsingGETParamsWithTimeout

func NewGetUsingGETParamsWithTimeout(timeout time.Duration) *GetUsingGETParams

NewGetUsingGETParamsWithTimeout creates a new GetUsingGETParams object with the ability to set a timeout on a request.

func (*GetUsingGETParams) SetAPIVersion added in v0.2.9

func (o *GetUsingGETParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the get using get params

func (*GetUsingGETParams) SetContext

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

SetContext adds the context to the get using get params

func (*GetUsingGETParams) SetDefaults added in v0.2.20

func (o *GetUsingGETParams) SetDefaults()

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

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

func (*GetUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get using get params

func (*GetUsingGETParams) SetSourceID

func (o *GetUsingGETParams) SetSourceID(sourceID strfmt.UUID)

SetSourceID adds the sourceId to the get using get params

func (*GetUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the get using get params

func (*GetUsingGETParams) WithAPIVersion added in v0.2.9

func (o *GetUsingGETParams) WithAPIVersion(aPIVersion *string) *GetUsingGETParams

WithAPIVersion adds the aPIVersion to the get using get params

func (*GetUsingGETParams) WithContext

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

WithContext adds the context to the get using get params

func (*GetUsingGETParams) WithDefaults added in v0.2.20

func (o *GetUsingGETParams) WithDefaults() *GetUsingGETParams

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

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

func (*GetUsingGETParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get using get params

func (*GetUsingGETParams) WithSourceID

func (o *GetUsingGETParams) WithSourceID(sourceID strfmt.UUID) *GetUsingGETParams

WithSourceID adds the sourceID to the get using get params

func (*GetUsingGETParams) WithTimeout

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

WithTimeout adds the timeout to the get using get params

func (*GetUsingGETParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetUsingGETReader

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

GetUsingGETReader is a Reader for the GetUsingGET structure.

func (*GetUsingGETReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetUsingGETUnauthorized

type GetUsingGETUnauthorized struct {
}
GetUsingGETUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetUsingGETUnauthorized

func NewGetUsingGETUnauthorized() *GetUsingGETUnauthorized

NewGetUsingGETUnauthorized creates a GetUsingGETUnauthorized with default headers values

func (*GetUsingGETUnauthorized) Error

func (o *GetUsingGETUnauthorized) Error() string

type PostUsingPOSTBadRequest added in v0.2.0

type PostUsingPOSTBadRequest struct {
	Payload *models.Error
}
PostUsingPOSTBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewPostUsingPOSTBadRequest added in v0.2.0

func NewPostUsingPOSTBadRequest() *PostUsingPOSTBadRequest

NewPostUsingPOSTBadRequest creates a PostUsingPOSTBadRequest with default headers values

func (*PostUsingPOSTBadRequest) Error added in v0.2.0

func (o *PostUsingPOSTBadRequest) Error() string

func (*PostUsingPOSTBadRequest) GetPayload added in v0.2.9

func (o *PostUsingPOSTBadRequest) GetPayload() *models.Error

type PostUsingPOSTCreated

type PostUsingPOSTCreated struct {
	Payload *models.CatalogSource
}
PostUsingPOSTCreated describes a response with status code 201, with default header values.

Created

func NewPostUsingPOSTCreated

func NewPostUsingPOSTCreated() *PostUsingPOSTCreated

NewPostUsingPOSTCreated creates a PostUsingPOSTCreated with default headers values

func (*PostUsingPOSTCreated) Error

func (o *PostUsingPOSTCreated) Error() string

func (*PostUsingPOSTCreated) GetPayload added in v0.2.0

func (o *PostUsingPOSTCreated) GetPayload() *models.CatalogSource

type PostUsingPOSTForbidden

type PostUsingPOSTForbidden struct {
}
PostUsingPOSTForbidden describes a response with status code 403, with default header values.

Forbidden

func NewPostUsingPOSTForbidden

func NewPostUsingPOSTForbidden() *PostUsingPOSTForbidden

NewPostUsingPOSTForbidden creates a PostUsingPOSTForbidden with default headers values

func (*PostUsingPOSTForbidden) Error

func (o *PostUsingPOSTForbidden) Error() string

type PostUsingPOSTNotFound

type PostUsingPOSTNotFound struct {
	Payload *models.Error
}
PostUsingPOSTNotFound describes a response with status code 404, with default header values.

Not Found

func NewPostUsingPOSTNotFound

func NewPostUsingPOSTNotFound() *PostUsingPOSTNotFound

NewPostUsingPOSTNotFound creates a PostUsingPOSTNotFound with default headers values

func (*PostUsingPOSTNotFound) Error

func (o *PostUsingPOSTNotFound) Error() string

func (*PostUsingPOSTNotFound) GetPayload added in v0.2.9

func (o *PostUsingPOSTNotFound) GetPayload() *models.Error

type PostUsingPOSTOK

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

Validation is ok

func NewPostUsingPOSTOK

func NewPostUsingPOSTOK() *PostUsingPOSTOK

NewPostUsingPOSTOK creates a PostUsingPOSTOK with default headers values

func (*PostUsingPOSTOK) Error

func (o *PostUsingPOSTOK) Error() string

func (*PostUsingPOSTOK) GetPayload

func (o *PostUsingPOSTOK) GetPayload() *models.CatalogSource

type PostUsingPOSTParams

type PostUsingPOSTParams struct {

	/* APIVersion.

	   The version of the API in yyyy-MM-dd format (UTC). If you do not specify explicitly an exact version, you will be calling the latest supported API version.
	*/
	APIVersion *string

	/* Source.

	   The catalog source to be created
	*/
	Source *models.CatalogSource

	/* ValidationOnly.

	   If true, the source will not be created. It returns the number of items belonging to the source. The request will still return an error code if the source is invalid.
	*/
	ValidationOnly *bool

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

PostUsingPOSTParams contains all the parameters to send to the API endpoint

for the post using p o s t operation.

Typically these are written to a http.Request.

func NewPostUsingPOSTParams

func NewPostUsingPOSTParams() *PostUsingPOSTParams

NewPostUsingPOSTParams creates a new PostUsingPOSTParams 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 NewPostUsingPOSTParamsWithContext

func NewPostUsingPOSTParamsWithContext(ctx context.Context) *PostUsingPOSTParams

NewPostUsingPOSTParamsWithContext creates a new PostUsingPOSTParams object with the ability to set a context for a request.

func NewPostUsingPOSTParamsWithHTTPClient

func NewPostUsingPOSTParamsWithHTTPClient(client *http.Client) *PostUsingPOSTParams

NewPostUsingPOSTParamsWithHTTPClient creates a new PostUsingPOSTParams object with the ability to set a custom HTTPClient for a request.

func NewPostUsingPOSTParamsWithTimeout

func NewPostUsingPOSTParamsWithTimeout(timeout time.Duration) *PostUsingPOSTParams

NewPostUsingPOSTParamsWithTimeout creates a new PostUsingPOSTParams object with the ability to set a timeout on a request.

func (*PostUsingPOSTParams) SetAPIVersion added in v0.2.9

func (o *PostUsingPOSTParams) SetAPIVersion(aPIVersion *string)

SetAPIVersion adds the apiVersion to the post using p o s t params

func (*PostUsingPOSTParams) SetContext

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

SetContext adds the context to the post using p o s t params

func (*PostUsingPOSTParams) SetDefaults added in v0.2.20

func (o *PostUsingPOSTParams) SetDefaults()

SetDefaults hydrates default values in the post using p o s t params (not the query body).

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

func (*PostUsingPOSTParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post using p o s t params

func (*PostUsingPOSTParams) SetSource

func (o *PostUsingPOSTParams) SetSource(source *models.CatalogSource)

SetSource adds the source to the post using p o s t params

func (*PostUsingPOSTParams) SetTimeout

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

SetTimeout adds the timeout to the post using p o s t params

func (*PostUsingPOSTParams) SetValidationOnly

func (o *PostUsingPOSTParams) SetValidationOnly(validationOnly *bool)

SetValidationOnly adds the validationOnly to the post using p o s t params

func (*PostUsingPOSTParams) WithAPIVersion added in v0.2.9

func (o *PostUsingPOSTParams) WithAPIVersion(aPIVersion *string) *PostUsingPOSTParams

WithAPIVersion adds the aPIVersion to the post using p o s t params

func (*PostUsingPOSTParams) WithContext

WithContext adds the context to the post using p o s t params

func (*PostUsingPOSTParams) WithDefaults added in v0.2.20

func (o *PostUsingPOSTParams) WithDefaults() *PostUsingPOSTParams

WithDefaults hydrates default values in the post using p o s t params (not the query body).

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

func (*PostUsingPOSTParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the post using p o s t params

func (*PostUsingPOSTParams) WithSource

WithSource adds the source to the post using p o s t params

func (*PostUsingPOSTParams) WithTimeout

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

WithTimeout adds the timeout to the post using p o s t params

func (*PostUsingPOSTParams) WithValidationOnly

func (o *PostUsingPOSTParams) WithValidationOnly(validationOnly *bool) *PostUsingPOSTParams

WithValidationOnly adds the validationOnly to the post using p o s t params

func (*PostUsingPOSTParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PostUsingPOSTReader

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

PostUsingPOSTReader is a Reader for the PostUsingPOST structure.

func (*PostUsingPOSTReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostUsingPOSTUnauthorized

type PostUsingPOSTUnauthorized struct {
}
PostUsingPOSTUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPostUsingPOSTUnauthorized

func NewPostUsingPOSTUnauthorized() *PostUsingPOSTUnauthorized

NewPostUsingPOSTUnauthorized creates a PostUsingPOSTUnauthorized with default headers values

func (*PostUsingPOSTUnauthorized) Error

func (o *PostUsingPOSTUnauthorized) Error() string

Jump to

Keyboard shortcuts

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