catalogs

package
v0.0.0-...-c0d51b7 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 11 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 catalogs API

func (*Client) GetV1CatalogsCatalogIDRefresh

func (a *Client) GetV1CatalogsCatalogIDRefresh(params *GetV1CatalogsCatalogIDRefreshParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1CatalogsCatalogIDRefreshOK, error)

GetV1CatalogsCatalogIDRefresh refreshes a catalog

Schedules an async task to re-import catalog info and update catalog data accordingly.

func (*Client) PostV1CatalogsCatalogIDIngest

PostV1CatalogsCatalogIDIngest accepts catalog data in the configured format

Accepts catalog data in the configured format and asyncronously processes the data to incorporate changes into service catalog.

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 {
	GetV1CatalogsCatalogIDRefresh(params *GetV1CatalogsCatalogIDRefreshParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetV1CatalogsCatalogIDRefreshOK, error)

	PostV1CatalogsCatalogIDIngest(params *PostV1CatalogsCatalogIDIngestParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostV1CatalogsCatalogIDIngestCreated, 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 catalogs API client.

type GetV1CatalogsCatalogIDRefreshOK

type GetV1CatalogsCatalogIDRefreshOK struct {
}

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

Schedules an async task to re-import catalog info and update catalog data accordingly.

func NewGetV1CatalogsCatalogIDRefreshOK

func NewGetV1CatalogsCatalogIDRefreshOK() *GetV1CatalogsCatalogIDRefreshOK

NewGetV1CatalogsCatalogIDRefreshOK creates a GetV1CatalogsCatalogIDRefreshOK with default headers values

func (*GetV1CatalogsCatalogIDRefreshOK) Error

func (*GetV1CatalogsCatalogIDRefreshOK) IsClientError

func (o *GetV1CatalogsCatalogIDRefreshOK) IsClientError() bool

IsClientError returns true when this get v1 catalogs catalog Id refresh o k response has a 4xx status code

func (*GetV1CatalogsCatalogIDRefreshOK) IsCode

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

IsCode returns true when this get v1 catalogs catalog Id refresh o k response a status code equal to that given

func (*GetV1CatalogsCatalogIDRefreshOK) IsRedirect

func (o *GetV1CatalogsCatalogIDRefreshOK) IsRedirect() bool

IsRedirect returns true when this get v1 catalogs catalog Id refresh o k response has a 3xx status code

func (*GetV1CatalogsCatalogIDRefreshOK) IsServerError

func (o *GetV1CatalogsCatalogIDRefreshOK) IsServerError() bool

IsServerError returns true when this get v1 catalogs catalog Id refresh o k response has a 5xx status code

func (*GetV1CatalogsCatalogIDRefreshOK) IsSuccess

func (o *GetV1CatalogsCatalogIDRefreshOK) IsSuccess() bool

IsSuccess returns true when this get v1 catalogs catalog Id refresh o k response has a 2xx status code

func (*GetV1CatalogsCatalogIDRefreshOK) String

type GetV1CatalogsCatalogIDRefreshParams

type GetV1CatalogsCatalogIDRefreshParams struct {

	// CatalogID.
	//
	// Format: int32
	CatalogID int32

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

GetV1CatalogsCatalogIDRefreshParams contains all the parameters to send to the API endpoint

for the get v1 catalogs catalog Id refresh operation.

Typically these are written to a http.Request.

func NewGetV1CatalogsCatalogIDRefreshParams

func NewGetV1CatalogsCatalogIDRefreshParams() *GetV1CatalogsCatalogIDRefreshParams

NewGetV1CatalogsCatalogIDRefreshParams creates a new GetV1CatalogsCatalogIDRefreshParams 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 NewGetV1CatalogsCatalogIDRefreshParamsWithContext

func NewGetV1CatalogsCatalogIDRefreshParamsWithContext(ctx context.Context) *GetV1CatalogsCatalogIDRefreshParams

NewGetV1CatalogsCatalogIDRefreshParamsWithContext creates a new GetV1CatalogsCatalogIDRefreshParams object with the ability to set a context for a request.

func NewGetV1CatalogsCatalogIDRefreshParamsWithHTTPClient

func NewGetV1CatalogsCatalogIDRefreshParamsWithHTTPClient(client *http.Client) *GetV1CatalogsCatalogIDRefreshParams

NewGetV1CatalogsCatalogIDRefreshParamsWithHTTPClient creates a new GetV1CatalogsCatalogIDRefreshParams object with the ability to set a custom HTTPClient for a request.

func NewGetV1CatalogsCatalogIDRefreshParamsWithTimeout

func NewGetV1CatalogsCatalogIDRefreshParamsWithTimeout(timeout time.Duration) *GetV1CatalogsCatalogIDRefreshParams

NewGetV1CatalogsCatalogIDRefreshParamsWithTimeout creates a new GetV1CatalogsCatalogIDRefreshParams object with the ability to set a timeout on a request.

func (*GetV1CatalogsCatalogIDRefreshParams) SetCatalogID

func (o *GetV1CatalogsCatalogIDRefreshParams) SetCatalogID(catalogID int32)

SetCatalogID adds the catalogId to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) SetContext

SetContext adds the context to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) SetDefaults

func (o *GetV1CatalogsCatalogIDRefreshParams) SetDefaults()

SetDefaults hydrates default values in the get v1 catalogs catalog Id refresh params (not the query body).

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

func (*GetV1CatalogsCatalogIDRefreshParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) SetTimeout

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

SetTimeout adds the timeout to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) WithCatalogID

WithCatalogID adds the catalogID to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) WithContext

WithContext adds the context to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) WithDefaults

WithDefaults hydrates default values in the get v1 catalogs catalog Id refresh params (not the query body).

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

func (*GetV1CatalogsCatalogIDRefreshParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) WithTimeout

WithTimeout adds the timeout to the get v1 catalogs catalog Id refresh params

func (*GetV1CatalogsCatalogIDRefreshParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetV1CatalogsCatalogIDRefreshReader

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

GetV1CatalogsCatalogIDRefreshReader is a Reader for the GetV1CatalogsCatalogIDRefresh structure.

func (*GetV1CatalogsCatalogIDRefreshReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PostV1CatalogsCatalogIDIngestCreated

type PostV1CatalogsCatalogIDIngestCreated struct {
	Payload *models.ImportsImportEntity
}

PostV1CatalogsCatalogIDIngestCreated describes a response with status code 201, with default header values.

Accepts catalog data in the configured format and asyncronously processes the data to incorporate changes into service catalog.

func NewPostV1CatalogsCatalogIDIngestCreated

func NewPostV1CatalogsCatalogIDIngestCreated() *PostV1CatalogsCatalogIDIngestCreated

NewPostV1CatalogsCatalogIDIngestCreated creates a PostV1CatalogsCatalogIDIngestCreated with default headers values

func (*PostV1CatalogsCatalogIDIngestCreated) Error

func (*PostV1CatalogsCatalogIDIngestCreated) GetPayload

func (*PostV1CatalogsCatalogIDIngestCreated) IsClientError

func (o *PostV1CatalogsCatalogIDIngestCreated) IsClientError() bool

IsClientError returns true when this post v1 catalogs catalog Id ingest created response has a 4xx status code

func (*PostV1CatalogsCatalogIDIngestCreated) IsCode

IsCode returns true when this post v1 catalogs catalog Id ingest created response a status code equal to that given

func (*PostV1CatalogsCatalogIDIngestCreated) IsRedirect

IsRedirect returns true when this post v1 catalogs catalog Id ingest created response has a 3xx status code

func (*PostV1CatalogsCatalogIDIngestCreated) IsServerError

func (o *PostV1CatalogsCatalogIDIngestCreated) IsServerError() bool

IsServerError returns true when this post v1 catalogs catalog Id ingest created response has a 5xx status code

func (*PostV1CatalogsCatalogIDIngestCreated) IsSuccess

IsSuccess returns true when this post v1 catalogs catalog Id ingest created response has a 2xx status code

func (*PostV1CatalogsCatalogIDIngestCreated) String

type PostV1CatalogsCatalogIDIngestParams

type PostV1CatalogsCatalogIDIngestParams struct {

	// CatalogID.
	CatalogID string

	// PostV1CatalogsCatalogIDIngest.
	PostV1CatalogsCatalogIDIngest *models.PostV1CatalogsCatalogIDIngest

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

PostV1CatalogsCatalogIDIngestParams contains all the parameters to send to the API endpoint

for the post v1 catalogs catalog Id ingest operation.

Typically these are written to a http.Request.

func NewPostV1CatalogsCatalogIDIngestParams

func NewPostV1CatalogsCatalogIDIngestParams() *PostV1CatalogsCatalogIDIngestParams

NewPostV1CatalogsCatalogIDIngestParams creates a new PostV1CatalogsCatalogIDIngestParams 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 NewPostV1CatalogsCatalogIDIngestParamsWithContext

func NewPostV1CatalogsCatalogIDIngestParamsWithContext(ctx context.Context) *PostV1CatalogsCatalogIDIngestParams

NewPostV1CatalogsCatalogIDIngestParamsWithContext creates a new PostV1CatalogsCatalogIDIngestParams object with the ability to set a context for a request.

func NewPostV1CatalogsCatalogIDIngestParamsWithHTTPClient

func NewPostV1CatalogsCatalogIDIngestParamsWithHTTPClient(client *http.Client) *PostV1CatalogsCatalogIDIngestParams

NewPostV1CatalogsCatalogIDIngestParamsWithHTTPClient creates a new PostV1CatalogsCatalogIDIngestParams object with the ability to set a custom HTTPClient for a request.

func NewPostV1CatalogsCatalogIDIngestParamsWithTimeout

func NewPostV1CatalogsCatalogIDIngestParamsWithTimeout(timeout time.Duration) *PostV1CatalogsCatalogIDIngestParams

NewPostV1CatalogsCatalogIDIngestParamsWithTimeout creates a new PostV1CatalogsCatalogIDIngestParams object with the ability to set a timeout on a request.

func (*PostV1CatalogsCatalogIDIngestParams) SetCatalogID

func (o *PostV1CatalogsCatalogIDIngestParams) SetCatalogID(catalogID string)

SetCatalogID adds the catalogId to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) SetContext

SetContext adds the context to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) SetDefaults

func (o *PostV1CatalogsCatalogIDIngestParams) SetDefaults()

SetDefaults hydrates default values in the post v1 catalogs catalog Id ingest params (not the query body).

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

func (*PostV1CatalogsCatalogIDIngestParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) SetPostV1CatalogsCatalogIDIngest

func (o *PostV1CatalogsCatalogIDIngestParams) SetPostV1CatalogsCatalogIDIngest(postV1CatalogsCatalogIDIngest *models.PostV1CatalogsCatalogIDIngest)

SetPostV1CatalogsCatalogIDIngest adds the postV1CatalogsCatalogIdIngest to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) SetTimeout

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

SetTimeout adds the timeout to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) WithCatalogID

WithCatalogID adds the catalogID to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) WithContext

WithContext adds the context to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) WithDefaults

WithDefaults hydrates default values in the post v1 catalogs catalog Id ingest params (not the query body).

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

func (*PostV1CatalogsCatalogIDIngestParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) WithPostV1CatalogsCatalogIDIngest

func (o *PostV1CatalogsCatalogIDIngestParams) WithPostV1CatalogsCatalogIDIngest(postV1CatalogsCatalogIDIngest *models.PostV1CatalogsCatalogIDIngest) *PostV1CatalogsCatalogIDIngestParams

WithPostV1CatalogsCatalogIDIngest adds the postV1CatalogsCatalogIDIngest to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) WithTimeout

WithTimeout adds the timeout to the post v1 catalogs catalog Id ingest params

func (*PostV1CatalogsCatalogIDIngestParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PostV1CatalogsCatalogIDIngestReader

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

PostV1CatalogsCatalogIDIngestReader is a Reader for the PostV1CatalogsCatalogIDIngest structure.

func (*PostV1CatalogsCatalogIDIngestReader) ReadResponse

func (o *PostV1CatalogsCatalogIDIngestReader) 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