projects

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 9 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 projects API

func (*Client) CountOfEntitiesInProjectUsingGET

func (a *Client) CountOfEntitiesInProjectUsingGET(params *CountOfEntitiesInProjectUsingGETParams, opts ...ClientOption) (*CountOfEntitiesInProjectUsingGETOK, error)

CountOfEntitiesInProjectUsingGET retrieves the count of entities per project

Get all entities for a project by providing a project id

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 {
	CountOfEntitiesInProjectUsingGET(params *CountOfEntitiesInProjectUsingGETParams, opts ...ClientOption) (*CountOfEntitiesInProjectUsingGETOK, 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 projects API client.

type CountOfEntitiesInProjectUsingGETForbidden added in v0.5.0

type CountOfEntitiesInProjectUsingGETForbidden struct {
}

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

Forbidden, the user lacks permissions

func NewCountOfEntitiesInProjectUsingGETForbidden added in v0.5.0

func NewCountOfEntitiesInProjectUsingGETForbidden() *CountOfEntitiesInProjectUsingGETForbidden

NewCountOfEntitiesInProjectUsingGETForbidden creates a CountOfEntitiesInProjectUsingGETForbidden with default headers values

func (*CountOfEntitiesInProjectUsingGETForbidden) Error added in v0.5.0

func (*CountOfEntitiesInProjectUsingGETForbidden) IsClientError added in v0.5.0

IsClientError returns true when this count of entities in project using g e t forbidden response has a 4xx status code

func (*CountOfEntitiesInProjectUsingGETForbidden) IsCode added in v0.5.0

IsCode returns true when this count of entities in project using g e t forbidden response a status code equal to that given

func (*CountOfEntitiesInProjectUsingGETForbidden) IsRedirect added in v0.5.0

IsRedirect returns true when this count of entities in project using g e t forbidden response has a 3xx status code

func (*CountOfEntitiesInProjectUsingGETForbidden) IsServerError added in v0.5.0

IsServerError returns true when this count of entities in project using g e t forbidden response has a 5xx status code

func (*CountOfEntitiesInProjectUsingGETForbidden) IsSuccess added in v0.5.0

IsSuccess returns true when this count of entities in project using g e t forbidden response has a 2xx status code

func (*CountOfEntitiesInProjectUsingGETForbidden) String added in v0.5.0

type CountOfEntitiesInProjectUsingGETOK

type CountOfEntitiesInProjectUsingGETOK struct {
	Payload map[string]string
}

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

OK

func NewCountOfEntitiesInProjectUsingGETOK

func NewCountOfEntitiesInProjectUsingGETOK() *CountOfEntitiesInProjectUsingGETOK

NewCountOfEntitiesInProjectUsingGETOK creates a CountOfEntitiesInProjectUsingGETOK with default headers values

func (*CountOfEntitiesInProjectUsingGETOK) Error

func (*CountOfEntitiesInProjectUsingGETOK) GetPayload

func (o *CountOfEntitiesInProjectUsingGETOK) GetPayload() map[string]string

func (*CountOfEntitiesInProjectUsingGETOK) IsClientError added in v0.5.0

func (o *CountOfEntitiesInProjectUsingGETOK) IsClientError() bool

IsClientError returns true when this count of entities in project using g e t o k response has a 4xx status code

func (*CountOfEntitiesInProjectUsingGETOK) IsCode added in v0.5.0

IsCode returns true when this count of entities in project using g e t o k response a status code equal to that given

func (*CountOfEntitiesInProjectUsingGETOK) IsRedirect added in v0.5.0

func (o *CountOfEntitiesInProjectUsingGETOK) IsRedirect() bool

IsRedirect returns true when this count of entities in project using g e t o k response has a 3xx status code

func (*CountOfEntitiesInProjectUsingGETOK) IsServerError added in v0.5.0

func (o *CountOfEntitiesInProjectUsingGETOK) IsServerError() bool

IsServerError returns true when this count of entities in project using g e t o k response has a 5xx status code

func (*CountOfEntitiesInProjectUsingGETOK) IsSuccess added in v0.5.0

IsSuccess returns true when this count of entities in project using g e t o k response has a 2xx status code

func (*CountOfEntitiesInProjectUsingGETOK) String added in v0.5.0

type CountOfEntitiesInProjectUsingGETParams

type CountOfEntitiesInProjectUsingGETParams struct {

	/* ProjectID.

	   projectId
	*/
	ProjectID string

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

CountOfEntitiesInProjectUsingGETParams contains all the parameters to send to the API endpoint

for the count of entities in project using g e t operation.

Typically these are written to a http.Request.

func NewCountOfEntitiesInProjectUsingGETParams

func NewCountOfEntitiesInProjectUsingGETParams() *CountOfEntitiesInProjectUsingGETParams

NewCountOfEntitiesInProjectUsingGETParams creates a new CountOfEntitiesInProjectUsingGETParams 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 NewCountOfEntitiesInProjectUsingGETParamsWithContext

func NewCountOfEntitiesInProjectUsingGETParamsWithContext(ctx context.Context) *CountOfEntitiesInProjectUsingGETParams

NewCountOfEntitiesInProjectUsingGETParamsWithContext creates a new CountOfEntitiesInProjectUsingGETParams object with the ability to set a context for a request.

func NewCountOfEntitiesInProjectUsingGETParamsWithHTTPClient

func NewCountOfEntitiesInProjectUsingGETParamsWithHTTPClient(client *http.Client) *CountOfEntitiesInProjectUsingGETParams

NewCountOfEntitiesInProjectUsingGETParamsWithHTTPClient creates a new CountOfEntitiesInProjectUsingGETParams object with the ability to set a custom HTTPClient for a request.

func NewCountOfEntitiesInProjectUsingGETParamsWithTimeout

func NewCountOfEntitiesInProjectUsingGETParamsWithTimeout(timeout time.Duration) *CountOfEntitiesInProjectUsingGETParams

NewCountOfEntitiesInProjectUsingGETParamsWithTimeout creates a new CountOfEntitiesInProjectUsingGETParams object with the ability to set a timeout on a request.

func (*CountOfEntitiesInProjectUsingGETParams) SetContext

SetContext adds the context to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) SetDefaults

func (o *CountOfEntitiesInProjectUsingGETParams) SetDefaults()

SetDefaults hydrates default values in the count of entities in project using get params (not the query body).

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

func (*CountOfEntitiesInProjectUsingGETParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) SetProjectID

func (o *CountOfEntitiesInProjectUsingGETParams) SetProjectID(projectID string)

SetProjectID adds the projectId to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) SetTimeout

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

SetTimeout adds the timeout to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) WithContext

WithContext adds the context to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) WithDefaults

WithDefaults hydrates default values in the count of entities in project using get params (not the query body).

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

func (*CountOfEntitiesInProjectUsingGETParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) WithProjectID

WithProjectID adds the projectID to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) WithTimeout

WithTimeout adds the timeout to the count of entities in project using get params

func (*CountOfEntitiesInProjectUsingGETParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CountOfEntitiesInProjectUsingGETReader

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

CountOfEntitiesInProjectUsingGETReader is a Reader for the CountOfEntitiesInProjectUsingGET structure.

func (*CountOfEntitiesInProjectUsingGETReader) ReadResponse

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