Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateEntity(params *CreateEntityParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateEntityOK, *CreateEntityCreated, error)
- func (a *Client) GetEntity(params *GetEntityParams, opts ...ClientOption) (*GetEntityOK, error)
- func (a *Client) ListEntities(params *ListEntitiesParams, opts ...ClientOption) (*ListEntitiesOK, error)
- func (a *Client) ListEntityCollections(params *ListEntityCollectionsParams, opts ...ClientOption) (*ListEntityCollectionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type CreateEntityBadRequest
- type CreateEntityCreated
- type CreateEntityForbidden
- type CreateEntityInternalServerError
- type CreateEntityOK
- type CreateEntityParams
- func (o *CreateEntityParams) SetContext(ctx context.Context)
- func (o *CreateEntityParams) SetDefaults()
- func (o *CreateEntityParams) SetEntity(entity *models.Entity)
- func (o *CreateEntityParams) SetHTTPClient(client *http.Client)
- func (o *CreateEntityParams) SetTimeout(timeout time.Duration)
- func (o *CreateEntityParams) WithContext(ctx context.Context) *CreateEntityParams
- func (o *CreateEntityParams) WithDefaults() *CreateEntityParams
- func (o *CreateEntityParams) WithEntity(entity *models.Entity) *CreateEntityParams
- func (o *CreateEntityParams) WithHTTPClient(client *http.Client) *CreateEntityParams
- func (o *CreateEntityParams) WithTimeout(timeout time.Duration) *CreateEntityParams
- func (o *CreateEntityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateEntityReader
- type CreateEntityUnauthorized
- type GetEntityForbidden
- type GetEntityInternalServerError
- type GetEntityNotFound
- type GetEntityOK
- type GetEntityParams
- func (o *GetEntityParams) SetContext(ctx context.Context)
- func (o *GetEntityParams) SetDefaults()
- func (o *GetEntityParams) SetHTTPClient(client *http.Client)
- func (o *GetEntityParams) SetRef(ref string)
- func (o *GetEntityParams) SetTimeout(timeout time.Duration)
- func (o *GetEntityParams) WithContext(ctx context.Context) *GetEntityParams
- func (o *GetEntityParams) WithDefaults() *GetEntityParams
- func (o *GetEntityParams) WithHTTPClient(client *http.Client) *GetEntityParams
- func (o *GetEntityParams) WithRef(ref string) *GetEntityParams
- func (o *GetEntityParams) WithTimeout(timeout time.Duration) *GetEntityParams
- func (o *GetEntityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEntityReader
- type GetEntityUnauthorized
- type ListEntitiesInternalServerError
- type ListEntitiesOK
- type ListEntitiesParams
- func (o *ListEntitiesParams) SetContext(ctx context.Context)
- func (o *ListEntitiesParams) SetDefaults()
- func (o *ListEntitiesParams) SetHTTPClient(client *http.Client)
- func (o *ListEntitiesParams) SetTimeout(timeout time.Duration)
- func (o *ListEntitiesParams) WithContext(ctx context.Context) *ListEntitiesParams
- func (o *ListEntitiesParams) WithDefaults() *ListEntitiesParams
- func (o *ListEntitiesParams) WithHTTPClient(client *http.Client) *ListEntitiesParams
- func (o *ListEntitiesParams) WithTimeout(timeout time.Duration) *ListEntitiesParams
- func (o *ListEntitiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListEntitiesReader
- type ListEntityCollectionsForbidden
- type ListEntityCollectionsInternalServerError
- type ListEntityCollectionsNotFound
- type ListEntityCollectionsOK
- type ListEntityCollectionsParams
- func NewListEntityCollectionsParams() *ListEntityCollectionsParams
- func NewListEntityCollectionsParamsWithContext(ctx context.Context) *ListEntityCollectionsParams
- func NewListEntityCollectionsParamsWithHTTPClient(client *http.Client) *ListEntityCollectionsParams
- func NewListEntityCollectionsParamsWithTimeout(timeout time.Duration) *ListEntityCollectionsParams
- func (o *ListEntityCollectionsParams) SetContext(ctx context.Context)
- func (o *ListEntityCollectionsParams) SetDefaults()
- func (o *ListEntityCollectionsParams) SetHTTPClient(client *http.Client)
- func (o *ListEntityCollectionsParams) SetRef(ref string)
- func (o *ListEntityCollectionsParams) SetTimeout(timeout time.Duration)
- func (o *ListEntityCollectionsParams) WithContext(ctx context.Context) *ListEntityCollectionsParams
- func (o *ListEntityCollectionsParams) WithDefaults() *ListEntityCollectionsParams
- func (o *ListEntityCollectionsParams) WithHTTPClient(client *http.Client) *ListEntityCollectionsParams
- func (o *ListEntityCollectionsParams) WithRef(ref string) *ListEntityCollectionsParams
- func (o *ListEntityCollectionsParams) WithTimeout(timeout time.Duration) *ListEntityCollectionsParams
- func (o *ListEntityCollectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListEntityCollectionsReader
- type ListEntityCollectionsUnauthorized
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 entity API
func (*Client) CreateEntity ¶
func (a *Client) CreateEntity(params *CreateEntityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEntityOK, *CreateEntityCreated, error)
CreateEntity creates project entity
Create a new library project (entity)
func (*Client) GetEntity ¶
func (a *Client) GetEntity(params *GetEntityParams, opts ...ClientOption) (*GetEntityOK, error)
GetEntity gets project entity
Get detail about a project (entity) in the library
func (*Client) ListEntities ¶
func (a *Client) ListEntities(params *ListEntitiesParams, opts ...ClientOption) (*ListEntitiesOK, error)
ListEntities lists projects entities
List projects (entities) available to the user
func (*Client) ListEntityCollections ¶
func (a *Client) ListEntityCollections(params *ListEntityCollectionsParams, opts ...ClientOption) (*ListEntityCollectionsOK, error)
ListEntityCollections lists collections that belong to the specified project entity
List collections that belong to the specified project (entity)
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 {
CreateEntity(params *CreateEntityParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateEntityOK, *CreateEntityCreated, error)
GetEntity(params *GetEntityParams, opts ...ClientOption) (*GetEntityOK, error)
ListEntities(params *ListEntitiesParams, opts ...ClientOption) (*ListEntitiesOK, error)
ListEntityCollections(params *ListEntityCollectionsParams, opts ...ClientOption) (*ListEntityCollectionsOK, 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 entity API client.
type CreateEntityBadRequest ¶
type CreateEntityBadRequest struct {
Payload *models.Json400error
}
CreateEntityBadRequest describes a response with status code 400, with default header values.
Project (entity) provided was not valid
func NewCreateEntityBadRequest ¶
func NewCreateEntityBadRequest() *CreateEntityBadRequest
NewCreateEntityBadRequest creates a CreateEntityBadRequest with default headers values
func (*CreateEntityBadRequest) Error ¶
func (o *CreateEntityBadRequest) Error() string
func (*CreateEntityBadRequest) GetPayload ¶
func (o *CreateEntityBadRequest) GetPayload() *models.Json400error
type CreateEntityCreated ¶
type CreateEntityCreated struct {
Payload *models.EntityResponse
}
CreateEntityCreated describes a response with status code 201, with default header values.
Return new project (entity)
func NewCreateEntityCreated ¶
func NewCreateEntityCreated() *CreateEntityCreated
NewCreateEntityCreated creates a CreateEntityCreated with default headers values
func (*CreateEntityCreated) Error ¶
func (o *CreateEntityCreated) Error() string
func (*CreateEntityCreated) GetPayload ¶
func (o *CreateEntityCreated) GetPayload() *models.EntityResponse
type CreateEntityForbidden ¶
type CreateEntityForbidden struct {
Payload *models.Json403error
}
CreateEntityForbidden describes a response with status code 403, with default header values.
Not authorized to create this project (entity)
func NewCreateEntityForbidden ¶
func NewCreateEntityForbidden() *CreateEntityForbidden
NewCreateEntityForbidden creates a CreateEntityForbidden with default headers values
func (*CreateEntityForbidden) Error ¶
func (o *CreateEntityForbidden) Error() string
func (*CreateEntityForbidden) GetPayload ¶
func (o *CreateEntityForbidden) GetPayload() *models.Json403error
type CreateEntityInternalServerError ¶
type CreateEntityInternalServerError struct {
Payload *models.Json500error
}
CreateEntityInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewCreateEntityInternalServerError ¶
func NewCreateEntityInternalServerError() *CreateEntityInternalServerError
NewCreateEntityInternalServerError creates a CreateEntityInternalServerError with default headers values
func (*CreateEntityInternalServerError) Error ¶
func (o *CreateEntityInternalServerError) Error() string
func (*CreateEntityInternalServerError) GetPayload ¶
func (o *CreateEntityInternalServerError) GetPayload() *models.Json500error
type CreateEntityOK ¶
type CreateEntityOK struct {
Payload *models.EntityResponse
}
CreateEntityOK describes a response with status code 200, with default header values.
Return new project (entity)
func NewCreateEntityOK ¶
func NewCreateEntityOK() *CreateEntityOK
NewCreateEntityOK creates a CreateEntityOK with default headers values
func (*CreateEntityOK) Error ¶
func (o *CreateEntityOK) Error() string
func (*CreateEntityOK) GetPayload ¶
func (o *CreateEntityOK) GetPayload() *models.EntityResponse
type CreateEntityParams ¶
type CreateEntityParams struct {
/* Entity.
Project (entity) to be created
*/
Entity *models.Entity
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CreateEntityParams contains all the parameters to send to the API endpoint
for the create entity operation. Typically these are written to a http.Request.
func NewCreateEntityParams ¶
func NewCreateEntityParams() *CreateEntityParams
NewCreateEntityParams creates a new CreateEntityParams 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 NewCreateEntityParamsWithContext ¶
func NewCreateEntityParamsWithContext(ctx context.Context) *CreateEntityParams
NewCreateEntityParamsWithContext creates a new CreateEntityParams object with the ability to set a context for a request.
func NewCreateEntityParamsWithHTTPClient ¶
func NewCreateEntityParamsWithHTTPClient(client *http.Client) *CreateEntityParams
NewCreateEntityParamsWithHTTPClient creates a new CreateEntityParams object with the ability to set a custom HTTPClient for a request.
func NewCreateEntityParamsWithTimeout ¶
func NewCreateEntityParamsWithTimeout(timeout time.Duration) *CreateEntityParams
NewCreateEntityParamsWithTimeout creates a new CreateEntityParams object with the ability to set a timeout on a request.
func (*CreateEntityParams) SetContext ¶
func (o *CreateEntityParams) SetContext(ctx context.Context)
SetContext adds the context to the create entity params
func (*CreateEntityParams) SetDefaults ¶
func (o *CreateEntityParams) SetDefaults()
SetDefaults hydrates default values in the create entity params (not the query body).
All values with no default are reset to their zero value.
func (*CreateEntityParams) SetEntity ¶
func (o *CreateEntityParams) SetEntity(entity *models.Entity)
SetEntity adds the entity to the create entity params
func (*CreateEntityParams) SetHTTPClient ¶
func (o *CreateEntityParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create entity params
func (*CreateEntityParams) SetTimeout ¶
func (o *CreateEntityParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create entity params
func (*CreateEntityParams) WithContext ¶
func (o *CreateEntityParams) WithContext(ctx context.Context) *CreateEntityParams
WithContext adds the context to the create entity params
func (*CreateEntityParams) WithDefaults ¶
func (o *CreateEntityParams) WithDefaults() *CreateEntityParams
WithDefaults hydrates default values in the create entity params (not the query body).
All values with no default are reset to their zero value.
func (*CreateEntityParams) WithEntity ¶
func (o *CreateEntityParams) WithEntity(entity *models.Entity) *CreateEntityParams
WithEntity adds the entity to the create entity params
func (*CreateEntityParams) WithHTTPClient ¶
func (o *CreateEntityParams) WithHTTPClient(client *http.Client) *CreateEntityParams
WithHTTPClient adds the HTTPClient to the create entity params
func (*CreateEntityParams) WithTimeout ¶
func (o *CreateEntityParams) WithTimeout(timeout time.Duration) *CreateEntityParams
WithTimeout adds the timeout to the create entity params
func (*CreateEntityParams) WriteToRequest ¶
func (o *CreateEntityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateEntityReader ¶
type CreateEntityReader struct {
// contains filtered or unexported fields
}
CreateEntityReader is a Reader for the CreateEntity structure.
func (*CreateEntityReader) ReadResponse ¶
func (o *CreateEntityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateEntityUnauthorized ¶
type CreateEntityUnauthorized struct {
}
CreateEntityUnauthorized describes a response with status code 401, with default header values.
Not authorized to create this project (entity)
func NewCreateEntityUnauthorized ¶
func NewCreateEntityUnauthorized() *CreateEntityUnauthorized
NewCreateEntityUnauthorized creates a CreateEntityUnauthorized with default headers values
func (*CreateEntityUnauthorized) Error ¶
func (o *CreateEntityUnauthorized) Error() string
func (*CreateEntityUnauthorized) GetPayload ¶
func (o *CreateEntityUnauthorized) GetPayload() *models.Json401error
type GetEntityForbidden ¶
type GetEntityForbidden struct {
Payload *models.Json403error
}
GetEntityForbidden describes a response with status code 403, with default header values.
Not authorized to create this project (entity)
func NewGetEntityForbidden ¶
func NewGetEntityForbidden() *GetEntityForbidden
NewGetEntityForbidden creates a GetEntityForbidden with default headers values
func (*GetEntityForbidden) Error ¶
func (o *GetEntityForbidden) Error() string
func (*GetEntityForbidden) GetPayload ¶
func (o *GetEntityForbidden) GetPayload() *models.Json403error
type GetEntityInternalServerError ¶
type GetEntityInternalServerError struct {
Payload *models.Json500error
}
GetEntityInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewGetEntityInternalServerError ¶
func NewGetEntityInternalServerError() *GetEntityInternalServerError
NewGetEntityInternalServerError creates a GetEntityInternalServerError with default headers values
func (*GetEntityInternalServerError) Error ¶
func (o *GetEntityInternalServerError) Error() string
func (*GetEntityInternalServerError) GetPayload ¶
func (o *GetEntityInternalServerError) GetPayload() *models.Json500error
type GetEntityNotFound ¶
type GetEntityNotFound struct {
Payload *models.Json404error
}
GetEntityNotFound describes a response with status code 404, with default header values.
Project (entity) requested was not found
func NewGetEntityNotFound ¶
func NewGetEntityNotFound() *GetEntityNotFound
NewGetEntityNotFound creates a GetEntityNotFound with default headers values
func (*GetEntityNotFound) Error ¶
func (o *GetEntityNotFound) Error() string
func (*GetEntityNotFound) GetPayload ¶
func (o *GetEntityNotFound) GetPayload() *models.Json404error
type GetEntityOK ¶
type GetEntityOK struct {
Payload *models.EntityResponse
}
GetEntityOK describes a response with status code 200, with default header values.
Success
func NewGetEntityOK ¶
func NewGetEntityOK() *GetEntityOK
NewGetEntityOK creates a GetEntityOK with default headers values
func (*GetEntityOK) Error ¶
func (o *GetEntityOK) Error() string
func (*GetEntityOK) GetPayload ¶
func (o *GetEntityOK) GetPayload() *models.EntityResponse
type GetEntityParams ¶
type GetEntityParams struct {
/* Ref.
ID of a project (entity)
*/
Ref string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetEntityParams contains all the parameters to send to the API endpoint
for the get entity operation. Typically these are written to a http.Request.
func NewGetEntityParams ¶
func NewGetEntityParams() *GetEntityParams
NewGetEntityParams creates a new GetEntityParams 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 NewGetEntityParamsWithContext ¶
func NewGetEntityParamsWithContext(ctx context.Context) *GetEntityParams
NewGetEntityParamsWithContext creates a new GetEntityParams object with the ability to set a context for a request.
func NewGetEntityParamsWithHTTPClient ¶
func NewGetEntityParamsWithHTTPClient(client *http.Client) *GetEntityParams
NewGetEntityParamsWithHTTPClient creates a new GetEntityParams object with the ability to set a custom HTTPClient for a request.
func NewGetEntityParamsWithTimeout ¶
func NewGetEntityParamsWithTimeout(timeout time.Duration) *GetEntityParams
NewGetEntityParamsWithTimeout creates a new GetEntityParams object with the ability to set a timeout on a request.
func (*GetEntityParams) SetContext ¶
func (o *GetEntityParams) SetContext(ctx context.Context)
SetContext adds the context to the get entity params
func (*GetEntityParams) SetDefaults ¶
func (o *GetEntityParams) SetDefaults()
SetDefaults hydrates default values in the get entity params (not the query body).
All values with no default are reset to their zero value.
func (*GetEntityParams) SetHTTPClient ¶
func (o *GetEntityParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get entity params
func (*GetEntityParams) SetRef ¶
func (o *GetEntityParams) SetRef(ref string)
SetRef adds the ref to the get entity params
func (*GetEntityParams) SetTimeout ¶
func (o *GetEntityParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get entity params
func (*GetEntityParams) WithContext ¶
func (o *GetEntityParams) WithContext(ctx context.Context) *GetEntityParams
WithContext adds the context to the get entity params
func (*GetEntityParams) WithDefaults ¶
func (o *GetEntityParams) WithDefaults() *GetEntityParams
WithDefaults hydrates default values in the get entity params (not the query body).
All values with no default are reset to their zero value.
func (*GetEntityParams) WithHTTPClient ¶
func (o *GetEntityParams) WithHTTPClient(client *http.Client) *GetEntityParams
WithHTTPClient adds the HTTPClient to the get entity params
func (*GetEntityParams) WithRef ¶
func (o *GetEntityParams) WithRef(ref string) *GetEntityParams
WithRef adds the ref to the get entity params
func (*GetEntityParams) WithTimeout ¶
func (o *GetEntityParams) WithTimeout(timeout time.Duration) *GetEntityParams
WithTimeout adds the timeout to the get entity params
func (*GetEntityParams) WriteToRequest ¶
func (o *GetEntityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetEntityReader ¶
type GetEntityReader struct {
// contains filtered or unexported fields
}
GetEntityReader is a Reader for the GetEntity structure.
func (*GetEntityReader) ReadResponse ¶
func (o *GetEntityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetEntityUnauthorized ¶
type GetEntityUnauthorized struct {
}
GetEntityUnauthorized describes a response with status code 401, with default header values.
Not authorized to access this project (entity)
func NewGetEntityUnauthorized ¶
func NewGetEntityUnauthorized() *GetEntityUnauthorized
NewGetEntityUnauthorized creates a GetEntityUnauthorized with default headers values
func (*GetEntityUnauthorized) Error ¶
func (o *GetEntityUnauthorized) Error() string
func (*GetEntityUnauthorized) GetPayload ¶
func (o *GetEntityUnauthorized) GetPayload() *models.Json401error
type ListEntitiesInternalServerError ¶
type ListEntitiesInternalServerError struct {
Payload *models.Json500error
}
ListEntitiesInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewListEntitiesInternalServerError ¶
func NewListEntitiesInternalServerError() *ListEntitiesInternalServerError
NewListEntitiesInternalServerError creates a ListEntitiesInternalServerError with default headers values
func (*ListEntitiesInternalServerError) Error ¶
func (o *ListEntitiesInternalServerError) Error() string
func (*ListEntitiesInternalServerError) GetPayload ¶
func (o *ListEntitiesInternalServerError) GetPayload() *models.Json500error
type ListEntitiesOK ¶
type ListEntitiesOK struct {
Payload *models.EntityListResponse
}
ListEntitiesOK describes a response with status code 200, with default header values.
Success
func NewListEntitiesOK ¶
func NewListEntitiesOK() *ListEntitiesOK
NewListEntitiesOK creates a ListEntitiesOK with default headers values
func (*ListEntitiesOK) Error ¶
func (o *ListEntitiesOK) Error() string
func (*ListEntitiesOK) GetPayload ¶
func (o *ListEntitiesOK) GetPayload() *models.EntityListResponse
type ListEntitiesParams ¶
type ListEntitiesParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListEntitiesParams contains all the parameters to send to the API endpoint
for the list entities operation. Typically these are written to a http.Request.
func NewListEntitiesParams ¶
func NewListEntitiesParams() *ListEntitiesParams
NewListEntitiesParams creates a new ListEntitiesParams 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 NewListEntitiesParamsWithContext ¶
func NewListEntitiesParamsWithContext(ctx context.Context) *ListEntitiesParams
NewListEntitiesParamsWithContext creates a new ListEntitiesParams object with the ability to set a context for a request.
func NewListEntitiesParamsWithHTTPClient ¶
func NewListEntitiesParamsWithHTTPClient(client *http.Client) *ListEntitiesParams
NewListEntitiesParamsWithHTTPClient creates a new ListEntitiesParams object with the ability to set a custom HTTPClient for a request.
func NewListEntitiesParamsWithTimeout ¶
func NewListEntitiesParamsWithTimeout(timeout time.Duration) *ListEntitiesParams
NewListEntitiesParamsWithTimeout creates a new ListEntitiesParams object with the ability to set a timeout on a request.
func (*ListEntitiesParams) SetContext ¶
func (o *ListEntitiesParams) SetContext(ctx context.Context)
SetContext adds the context to the list entities params
func (*ListEntitiesParams) SetDefaults ¶
func (o *ListEntitiesParams) SetDefaults()
SetDefaults hydrates default values in the list entities params (not the query body).
All values with no default are reset to their zero value.
func (*ListEntitiesParams) SetHTTPClient ¶
func (o *ListEntitiesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list entities params
func (*ListEntitiesParams) SetTimeout ¶
func (o *ListEntitiesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list entities params
func (*ListEntitiesParams) WithContext ¶
func (o *ListEntitiesParams) WithContext(ctx context.Context) *ListEntitiesParams
WithContext adds the context to the list entities params
func (*ListEntitiesParams) WithDefaults ¶
func (o *ListEntitiesParams) WithDefaults() *ListEntitiesParams
WithDefaults hydrates default values in the list entities params (not the query body).
All values with no default are reset to their zero value.
func (*ListEntitiesParams) WithHTTPClient ¶
func (o *ListEntitiesParams) WithHTTPClient(client *http.Client) *ListEntitiesParams
WithHTTPClient adds the HTTPClient to the list entities params
func (*ListEntitiesParams) WithTimeout ¶
func (o *ListEntitiesParams) WithTimeout(timeout time.Duration) *ListEntitiesParams
WithTimeout adds the timeout to the list entities params
func (*ListEntitiesParams) WriteToRequest ¶
func (o *ListEntitiesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListEntitiesReader ¶
type ListEntitiesReader struct {
// contains filtered or unexported fields
}
ListEntitiesReader is a Reader for the ListEntities structure.
func (*ListEntitiesReader) ReadResponse ¶
func (o *ListEntitiesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListEntityCollectionsForbidden ¶
type ListEntityCollectionsForbidden struct {
Payload *models.Json403error
}
ListEntityCollectionsForbidden describes a response with status code 403, with default header values.
Not authorized to access this project (entity)
func NewListEntityCollectionsForbidden ¶
func NewListEntityCollectionsForbidden() *ListEntityCollectionsForbidden
NewListEntityCollectionsForbidden creates a ListEntityCollectionsForbidden with default headers values
func (*ListEntityCollectionsForbidden) Error ¶
func (o *ListEntityCollectionsForbidden) Error() string
func (*ListEntityCollectionsForbidden) GetPayload ¶
func (o *ListEntityCollectionsForbidden) GetPayload() *models.Json403error
type ListEntityCollectionsInternalServerError ¶
type ListEntityCollectionsInternalServerError struct {
Payload *models.Json500error
}
ListEntityCollectionsInternalServerError describes a response with status code 500, with default header values.
Server internal error
func NewListEntityCollectionsInternalServerError ¶
func NewListEntityCollectionsInternalServerError() *ListEntityCollectionsInternalServerError
NewListEntityCollectionsInternalServerError creates a ListEntityCollectionsInternalServerError with default headers values
func (*ListEntityCollectionsInternalServerError) Error ¶
func (o *ListEntityCollectionsInternalServerError) Error() string
func (*ListEntityCollectionsInternalServerError) GetPayload ¶
func (o *ListEntityCollectionsInternalServerError) GetPayload() *models.Json500error
type ListEntityCollectionsNotFound ¶
type ListEntityCollectionsNotFound struct {
Payload *models.Json404error
}
ListEntityCollectionsNotFound describes a response with status code 404, with default header values.
Project (entity) not found
func NewListEntityCollectionsNotFound ¶
func NewListEntityCollectionsNotFound() *ListEntityCollectionsNotFound
NewListEntityCollectionsNotFound creates a ListEntityCollectionsNotFound with default headers values
func (*ListEntityCollectionsNotFound) Error ¶
func (o *ListEntityCollectionsNotFound) Error() string
func (*ListEntityCollectionsNotFound) GetPayload ¶
func (o *ListEntityCollectionsNotFound) GetPayload() *models.Json404error
type ListEntityCollectionsOK ¶
type ListEntityCollectionsOK struct {
Payload *models.CollectionListResponse
}
ListEntityCollectionsOK describes a response with status code 200, with default header values.
Success
func NewListEntityCollectionsOK ¶
func NewListEntityCollectionsOK() *ListEntityCollectionsOK
NewListEntityCollectionsOK creates a ListEntityCollectionsOK with default headers values
func (*ListEntityCollectionsOK) Error ¶
func (o *ListEntityCollectionsOK) Error() string
func (*ListEntityCollectionsOK) GetPayload ¶
func (o *ListEntityCollectionsOK) GetPayload() *models.CollectionListResponse
type ListEntityCollectionsParams ¶
type ListEntityCollectionsParams struct {
/* Ref.
ID of a project (entity)
*/
Ref string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListEntityCollectionsParams contains all the parameters to send to the API endpoint
for the list entity collections operation. Typically these are written to a http.Request.
func NewListEntityCollectionsParams ¶
func NewListEntityCollectionsParams() *ListEntityCollectionsParams
NewListEntityCollectionsParams creates a new ListEntityCollectionsParams 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 NewListEntityCollectionsParamsWithContext ¶
func NewListEntityCollectionsParamsWithContext(ctx context.Context) *ListEntityCollectionsParams
NewListEntityCollectionsParamsWithContext creates a new ListEntityCollectionsParams object with the ability to set a context for a request.
func NewListEntityCollectionsParamsWithHTTPClient ¶
func NewListEntityCollectionsParamsWithHTTPClient(client *http.Client) *ListEntityCollectionsParams
NewListEntityCollectionsParamsWithHTTPClient creates a new ListEntityCollectionsParams object with the ability to set a custom HTTPClient for a request.
func NewListEntityCollectionsParamsWithTimeout ¶
func NewListEntityCollectionsParamsWithTimeout(timeout time.Duration) *ListEntityCollectionsParams
NewListEntityCollectionsParamsWithTimeout creates a new ListEntityCollectionsParams object with the ability to set a timeout on a request.
func (*ListEntityCollectionsParams) SetContext ¶
func (o *ListEntityCollectionsParams) SetContext(ctx context.Context)
SetContext adds the context to the list entity collections params
func (*ListEntityCollectionsParams) SetDefaults ¶
func (o *ListEntityCollectionsParams) SetDefaults()
SetDefaults hydrates default values in the list entity collections params (not the query body).
All values with no default are reset to their zero value.
func (*ListEntityCollectionsParams) SetHTTPClient ¶
func (o *ListEntityCollectionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list entity collections params
func (*ListEntityCollectionsParams) SetRef ¶
func (o *ListEntityCollectionsParams) SetRef(ref string)
SetRef adds the ref to the list entity collections params
func (*ListEntityCollectionsParams) SetTimeout ¶
func (o *ListEntityCollectionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list entity collections params
func (*ListEntityCollectionsParams) WithContext ¶
func (o *ListEntityCollectionsParams) WithContext(ctx context.Context) *ListEntityCollectionsParams
WithContext adds the context to the list entity collections params
func (*ListEntityCollectionsParams) WithDefaults ¶
func (o *ListEntityCollectionsParams) WithDefaults() *ListEntityCollectionsParams
WithDefaults hydrates default values in the list entity collections params (not the query body).
All values with no default are reset to their zero value.
func (*ListEntityCollectionsParams) WithHTTPClient ¶
func (o *ListEntityCollectionsParams) WithHTTPClient(client *http.Client) *ListEntityCollectionsParams
WithHTTPClient adds the HTTPClient to the list entity collections params
func (*ListEntityCollectionsParams) WithRef ¶
func (o *ListEntityCollectionsParams) WithRef(ref string) *ListEntityCollectionsParams
WithRef adds the ref to the list entity collections params
func (*ListEntityCollectionsParams) WithTimeout ¶
func (o *ListEntityCollectionsParams) WithTimeout(timeout time.Duration) *ListEntityCollectionsParams
WithTimeout adds the timeout to the list entity collections params
func (*ListEntityCollectionsParams) WriteToRequest ¶
func (o *ListEntityCollectionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListEntityCollectionsReader ¶
type ListEntityCollectionsReader struct {
// contains filtered or unexported fields
}
ListEntityCollectionsReader is a Reader for the ListEntityCollections structure.
func (*ListEntityCollectionsReader) ReadResponse ¶
func (o *ListEntityCollectionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListEntityCollectionsUnauthorized ¶
type ListEntityCollectionsUnauthorized struct {
}
ListEntityCollectionsUnauthorized describes a response with status code 401, with default header values.
Not authorized to access this project (entity)
func NewListEntityCollectionsUnauthorized ¶
func NewListEntityCollectionsUnauthorized() *ListEntityCollectionsUnauthorized
NewListEntityCollectionsUnauthorized creates a ListEntityCollectionsUnauthorized with default headers values
func (*ListEntityCollectionsUnauthorized) Error ¶
func (o *ListEntityCollectionsUnauthorized) Error() string
func (*ListEntityCollectionsUnauthorized) GetPayload ¶
func (o *ListEntityCollectionsUnauthorized) GetPayload() *models.Json401error