component

package
v0.0.0-...-64a628e Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 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 component API

func (*Client) ComponentAdd

func (a *Client) ComponentAdd(params *ComponentAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ComponentAddOK, error)

ComponentAdd this interface takes in a component record and adds that to alfabet

This interface takes in a Component record and adds that to Alfabet.

func (*Client) ComponentDelete

func (a *Client) ComponentDelete(params *ComponentDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ComponentDeleteOK, error)

ComponentDelete deletes a component within alfabet based on the ID that is passed in

Deletes a component within Alfabet based on the ID that is passed in.

func (*Client) ComponentFind

func (a *Client) ComponentFind(params *ComponentFindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ComponentFindOK, error)

ComponentFind retrieves a component

Retrieve a component record based on the id parameter that is passed in.

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 {
	ComponentAdd(params *ComponentAddParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ComponentAddOK, error)

	ComponentDelete(params *ComponentDeleteParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ComponentDeleteOK, error)

	ComponentFind(params *ComponentFindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ComponentFindOK, 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 component API client.

type ComponentAddBadRequest

type ComponentAddBadRequest struct {
	Payload *models.Response
}

ComponentAddBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewComponentAddBadRequest

func NewComponentAddBadRequest() *ComponentAddBadRequest

NewComponentAddBadRequest creates a ComponentAddBadRequest with default headers values

func (*ComponentAddBadRequest) Code

func (o *ComponentAddBadRequest) Code() int

Code gets the status code for the component add bad request response

func (*ComponentAddBadRequest) Error

func (o *ComponentAddBadRequest) Error() string

func (*ComponentAddBadRequest) GetPayload

func (o *ComponentAddBadRequest) GetPayload() *models.Response

func (*ComponentAddBadRequest) IsClientError

func (o *ComponentAddBadRequest) IsClientError() bool

IsClientError returns true when this component add bad request response has a 4xx status code

func (*ComponentAddBadRequest) IsCode

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

IsCode returns true when this component add bad request response a status code equal to that given

func (*ComponentAddBadRequest) IsRedirect

func (o *ComponentAddBadRequest) IsRedirect() bool

IsRedirect returns true when this component add bad request response has a 3xx status code

func (*ComponentAddBadRequest) IsServerError

func (o *ComponentAddBadRequest) IsServerError() bool

IsServerError returns true when this component add bad request response has a 5xx status code

func (*ComponentAddBadRequest) IsSuccess

func (o *ComponentAddBadRequest) IsSuccess() bool

IsSuccess returns true when this component add bad request response has a 2xx status code

func (*ComponentAddBadRequest) String

func (o *ComponentAddBadRequest) String() string

type ComponentAddInternalServerError

type ComponentAddInternalServerError struct {
	Payload *models.Response
}

ComponentAddInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewComponentAddInternalServerError

func NewComponentAddInternalServerError() *ComponentAddInternalServerError

NewComponentAddInternalServerError creates a ComponentAddInternalServerError with default headers values

func (*ComponentAddInternalServerError) Code

Code gets the status code for the component add internal server error response

func (*ComponentAddInternalServerError) Error

func (*ComponentAddInternalServerError) GetPayload

func (*ComponentAddInternalServerError) IsClientError

func (o *ComponentAddInternalServerError) IsClientError() bool

IsClientError returns true when this component add internal server error response has a 4xx status code

func (*ComponentAddInternalServerError) IsCode

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

IsCode returns true when this component add internal server error response a status code equal to that given

func (*ComponentAddInternalServerError) IsRedirect

func (o *ComponentAddInternalServerError) IsRedirect() bool

IsRedirect returns true when this component add internal server error response has a 3xx status code

func (*ComponentAddInternalServerError) IsServerError

func (o *ComponentAddInternalServerError) IsServerError() bool

IsServerError returns true when this component add internal server error response has a 5xx status code

func (*ComponentAddInternalServerError) IsSuccess

func (o *ComponentAddInternalServerError) IsSuccess() bool

IsSuccess returns true when this component add internal server error response has a 2xx status code

func (*ComponentAddInternalServerError) String

type ComponentAddOK

type ComponentAddOK struct {
	Payload *models.ComponentAddResponse
}

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

OK

func NewComponentAddOK

func NewComponentAddOK() *ComponentAddOK

NewComponentAddOK creates a ComponentAddOK with default headers values

func (*ComponentAddOK) Code

func (o *ComponentAddOK) Code() int

Code gets the status code for the component add o k response

func (*ComponentAddOK) Error

func (o *ComponentAddOK) Error() string

func (*ComponentAddOK) GetPayload

func (o *ComponentAddOK) GetPayload() *models.ComponentAddResponse

func (*ComponentAddOK) IsClientError

func (o *ComponentAddOK) IsClientError() bool

IsClientError returns true when this component add o k response has a 4xx status code

func (*ComponentAddOK) IsCode

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

IsCode returns true when this component add o k response a status code equal to that given

func (*ComponentAddOK) IsRedirect

func (o *ComponentAddOK) IsRedirect() bool

IsRedirect returns true when this component add o k response has a 3xx status code

func (*ComponentAddOK) IsServerError

func (o *ComponentAddOK) IsServerError() bool

IsServerError returns true when this component add o k response has a 5xx status code

func (*ComponentAddOK) IsSuccess

func (o *ComponentAddOK) IsSuccess() bool

IsSuccess returns true when this component add o k response has a 2xx status code

func (*ComponentAddOK) String

func (o *ComponentAddOK) String() string

type ComponentAddParams

type ComponentAddParams struct {

	/* Body.

	   Component record to be added to Alfabet.
	*/
	Body *models.ComponentAddRequest

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

ComponentAddParams contains all the parameters to send to the API endpoint

for the component add operation.

Typically these are written to a http.Request.

func NewComponentAddParams

func NewComponentAddParams() *ComponentAddParams

NewComponentAddParams creates a new ComponentAddParams 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 NewComponentAddParamsWithContext

func NewComponentAddParamsWithContext(ctx context.Context) *ComponentAddParams

NewComponentAddParamsWithContext creates a new ComponentAddParams object with the ability to set a context for a request.

func NewComponentAddParamsWithHTTPClient

func NewComponentAddParamsWithHTTPClient(client *http.Client) *ComponentAddParams

NewComponentAddParamsWithHTTPClient creates a new ComponentAddParams object with the ability to set a custom HTTPClient for a request.

func NewComponentAddParamsWithTimeout

func NewComponentAddParamsWithTimeout(timeout time.Duration) *ComponentAddParams

NewComponentAddParamsWithTimeout creates a new ComponentAddParams object with the ability to set a timeout on a request.

func (*ComponentAddParams) SetBody

func (o *ComponentAddParams) SetBody(body *models.ComponentAddRequest)

SetBody adds the body to the component add params

func (*ComponentAddParams) SetContext

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

SetContext adds the context to the component add params

func (*ComponentAddParams) SetDefaults

func (o *ComponentAddParams) SetDefaults()

SetDefaults hydrates default values in the component add params (not the query body).

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

func (*ComponentAddParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the component add params

func (*ComponentAddParams) SetTimeout

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

SetTimeout adds the timeout to the component add params

func (*ComponentAddParams) WithBody

WithBody adds the body to the component add params

func (*ComponentAddParams) WithContext

WithContext adds the context to the component add params

func (*ComponentAddParams) WithDefaults

func (o *ComponentAddParams) WithDefaults() *ComponentAddParams

WithDefaults hydrates default values in the component add params (not the query body).

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

func (*ComponentAddParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the component add params

func (*ComponentAddParams) WithTimeout

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

WithTimeout adds the timeout to the component add params

func (*ComponentAddParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ComponentAddReader

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

ComponentAddReader is a Reader for the ComponentAdd structure.

func (*ComponentAddReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ComponentAddUnauthorized

type ComponentAddUnauthorized struct {
	Payload *models.Response
}

ComponentAddUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewComponentAddUnauthorized

func NewComponentAddUnauthorized() *ComponentAddUnauthorized

NewComponentAddUnauthorized creates a ComponentAddUnauthorized with default headers values

func (*ComponentAddUnauthorized) Code

func (o *ComponentAddUnauthorized) Code() int

Code gets the status code for the component add unauthorized response

func (*ComponentAddUnauthorized) Error

func (o *ComponentAddUnauthorized) Error() string

func (*ComponentAddUnauthorized) GetPayload

func (o *ComponentAddUnauthorized) GetPayload() *models.Response

func (*ComponentAddUnauthorized) IsClientError

func (o *ComponentAddUnauthorized) IsClientError() bool

IsClientError returns true when this component add unauthorized response has a 4xx status code

func (*ComponentAddUnauthorized) IsCode

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

IsCode returns true when this component add unauthorized response a status code equal to that given

func (*ComponentAddUnauthorized) IsRedirect

func (o *ComponentAddUnauthorized) IsRedirect() bool

IsRedirect returns true when this component add unauthorized response has a 3xx status code

func (*ComponentAddUnauthorized) IsServerError

func (o *ComponentAddUnauthorized) IsServerError() bool

IsServerError returns true when this component add unauthorized response has a 5xx status code

func (*ComponentAddUnauthorized) IsSuccess

func (o *ComponentAddUnauthorized) IsSuccess() bool

IsSuccess returns true when this component add unauthorized response has a 2xx status code

func (*ComponentAddUnauthorized) String

func (o *ComponentAddUnauthorized) String() string

type ComponentDeleteBadRequest

type ComponentDeleteBadRequest struct {
	Payload *models.Response
}

ComponentDeleteBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewComponentDeleteBadRequest

func NewComponentDeleteBadRequest() *ComponentDeleteBadRequest

NewComponentDeleteBadRequest creates a ComponentDeleteBadRequest with default headers values

func (*ComponentDeleteBadRequest) Code

func (o *ComponentDeleteBadRequest) Code() int

Code gets the status code for the component delete bad request response

func (*ComponentDeleteBadRequest) Error

func (o *ComponentDeleteBadRequest) Error() string

func (*ComponentDeleteBadRequest) GetPayload

func (o *ComponentDeleteBadRequest) GetPayload() *models.Response

func (*ComponentDeleteBadRequest) IsClientError

func (o *ComponentDeleteBadRequest) IsClientError() bool

IsClientError returns true when this component delete bad request response has a 4xx status code

func (*ComponentDeleteBadRequest) IsCode

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

IsCode returns true when this component delete bad request response a status code equal to that given

func (*ComponentDeleteBadRequest) IsRedirect

func (o *ComponentDeleteBadRequest) IsRedirect() bool

IsRedirect returns true when this component delete bad request response has a 3xx status code

func (*ComponentDeleteBadRequest) IsServerError

func (o *ComponentDeleteBadRequest) IsServerError() bool

IsServerError returns true when this component delete bad request response has a 5xx status code

func (*ComponentDeleteBadRequest) IsSuccess

func (o *ComponentDeleteBadRequest) IsSuccess() bool

IsSuccess returns true when this component delete bad request response has a 2xx status code

func (*ComponentDeleteBadRequest) String

func (o *ComponentDeleteBadRequest) String() string

type ComponentDeleteInternalServerError

type ComponentDeleteInternalServerError struct {
	Payload *models.Response
}

ComponentDeleteInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewComponentDeleteInternalServerError

func NewComponentDeleteInternalServerError() *ComponentDeleteInternalServerError

NewComponentDeleteInternalServerError creates a ComponentDeleteInternalServerError with default headers values

func (*ComponentDeleteInternalServerError) Code

Code gets the status code for the component delete internal server error response

func (*ComponentDeleteInternalServerError) Error

func (*ComponentDeleteInternalServerError) GetPayload

func (*ComponentDeleteInternalServerError) IsClientError

func (o *ComponentDeleteInternalServerError) IsClientError() bool

IsClientError returns true when this component delete internal server error response has a 4xx status code

func (*ComponentDeleteInternalServerError) IsCode

IsCode returns true when this component delete internal server error response a status code equal to that given

func (*ComponentDeleteInternalServerError) IsRedirect

func (o *ComponentDeleteInternalServerError) IsRedirect() bool

IsRedirect returns true when this component delete internal server error response has a 3xx status code

func (*ComponentDeleteInternalServerError) IsServerError

func (o *ComponentDeleteInternalServerError) IsServerError() bool

IsServerError returns true when this component delete internal server error response has a 5xx status code

func (*ComponentDeleteInternalServerError) IsSuccess

IsSuccess returns true when this component delete internal server error response has a 2xx status code

func (*ComponentDeleteInternalServerError) String

type ComponentDeleteNotFound

type ComponentDeleteNotFound struct {
	Payload *models.Response
}

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

Not Found

func NewComponentDeleteNotFound

func NewComponentDeleteNotFound() *ComponentDeleteNotFound

NewComponentDeleteNotFound creates a ComponentDeleteNotFound with default headers values

func (*ComponentDeleteNotFound) Code

func (o *ComponentDeleteNotFound) Code() int

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

func (*ComponentDeleteNotFound) Error

func (o *ComponentDeleteNotFound) Error() string

func (*ComponentDeleteNotFound) GetPayload

func (o *ComponentDeleteNotFound) GetPayload() *models.Response

func (*ComponentDeleteNotFound) IsClientError

func (o *ComponentDeleteNotFound) IsClientError() bool

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

func (*ComponentDeleteNotFound) IsCode

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

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

func (*ComponentDeleteNotFound) IsRedirect

func (o *ComponentDeleteNotFound) IsRedirect() bool

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

func (*ComponentDeleteNotFound) IsServerError

func (o *ComponentDeleteNotFound) IsServerError() bool

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

func (*ComponentDeleteNotFound) IsSuccess

func (o *ComponentDeleteNotFound) IsSuccess() bool

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

func (*ComponentDeleteNotFound) String

func (o *ComponentDeleteNotFound) String() string

type ComponentDeleteOK

type ComponentDeleteOK struct {
	Payload *models.Response
}

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

OK

func NewComponentDeleteOK

func NewComponentDeleteOK() *ComponentDeleteOK

NewComponentDeleteOK creates a ComponentDeleteOK with default headers values

func (*ComponentDeleteOK) Code

func (o *ComponentDeleteOK) Code() int

Code gets the status code for the component delete o k response

func (*ComponentDeleteOK) Error

func (o *ComponentDeleteOK) Error() string

func (*ComponentDeleteOK) GetPayload

func (o *ComponentDeleteOK) GetPayload() *models.Response

func (*ComponentDeleteOK) IsClientError

func (o *ComponentDeleteOK) IsClientError() bool

IsClientError returns true when this component delete o k response has a 4xx status code

func (*ComponentDeleteOK) IsCode

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

IsCode returns true when this component delete o k response a status code equal to that given

func (*ComponentDeleteOK) IsRedirect

func (o *ComponentDeleteOK) IsRedirect() bool

IsRedirect returns true when this component delete o k response has a 3xx status code

func (*ComponentDeleteOK) IsServerError

func (o *ComponentDeleteOK) IsServerError() bool

IsServerError returns true when this component delete o k response has a 5xx status code

func (*ComponentDeleteOK) IsSuccess

func (o *ComponentDeleteOK) IsSuccess() bool

IsSuccess returns true when this component delete o k response has a 2xx status code

func (*ComponentDeleteOK) String

func (o *ComponentDeleteOK) String() string

type ComponentDeleteParams

type ComponentDeleteParams struct {

	/* ComponentID.

	   ID of the component to deleted.
	*/
	ComponentID string

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

ComponentDeleteParams contains all the parameters to send to the API endpoint

for the component delete operation.

Typically these are written to a http.Request.

func NewComponentDeleteParams

func NewComponentDeleteParams() *ComponentDeleteParams

NewComponentDeleteParams creates a new ComponentDeleteParams 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 NewComponentDeleteParamsWithContext

func NewComponentDeleteParamsWithContext(ctx context.Context) *ComponentDeleteParams

NewComponentDeleteParamsWithContext creates a new ComponentDeleteParams object with the ability to set a context for a request.

func NewComponentDeleteParamsWithHTTPClient

func NewComponentDeleteParamsWithHTTPClient(client *http.Client) *ComponentDeleteParams

NewComponentDeleteParamsWithHTTPClient creates a new ComponentDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewComponentDeleteParamsWithTimeout

func NewComponentDeleteParamsWithTimeout(timeout time.Duration) *ComponentDeleteParams

NewComponentDeleteParamsWithTimeout creates a new ComponentDeleteParams object with the ability to set a timeout on a request.

func (*ComponentDeleteParams) SetComponentID

func (o *ComponentDeleteParams) SetComponentID(componentID string)

SetComponentID adds the componentId to the component delete params

func (*ComponentDeleteParams) SetContext

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

SetContext adds the context to the component delete params

func (*ComponentDeleteParams) SetDefaults

func (o *ComponentDeleteParams) SetDefaults()

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

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

func (*ComponentDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the component delete params

func (*ComponentDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the component delete params

func (*ComponentDeleteParams) WithComponentID

func (o *ComponentDeleteParams) WithComponentID(componentID string) *ComponentDeleteParams

WithComponentID adds the componentID to the component delete params

func (*ComponentDeleteParams) WithContext

WithContext adds the context to the component delete params

func (*ComponentDeleteParams) WithDefaults

func (o *ComponentDeleteParams) WithDefaults() *ComponentDeleteParams

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

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

func (*ComponentDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the component delete params

func (*ComponentDeleteParams) WithTimeout

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

WithTimeout adds the timeout to the component delete params

func (*ComponentDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ComponentDeleteReader

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

ComponentDeleteReader is a Reader for the ComponentDelete structure.

func (*ComponentDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ComponentDeleteUnauthorized

type ComponentDeleteUnauthorized struct {
	Payload *models.Response
}

ComponentDeleteUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewComponentDeleteUnauthorized

func NewComponentDeleteUnauthorized() *ComponentDeleteUnauthorized

NewComponentDeleteUnauthorized creates a ComponentDeleteUnauthorized with default headers values

func (*ComponentDeleteUnauthorized) Code

func (o *ComponentDeleteUnauthorized) Code() int

Code gets the status code for the component delete unauthorized response

func (*ComponentDeleteUnauthorized) Error

func (*ComponentDeleteUnauthorized) GetPayload

func (o *ComponentDeleteUnauthorized) GetPayload() *models.Response

func (*ComponentDeleteUnauthorized) IsClientError

func (o *ComponentDeleteUnauthorized) IsClientError() bool

IsClientError returns true when this component delete unauthorized response has a 4xx status code

func (*ComponentDeleteUnauthorized) IsCode

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

IsCode returns true when this component delete unauthorized response a status code equal to that given

func (*ComponentDeleteUnauthorized) IsRedirect

func (o *ComponentDeleteUnauthorized) IsRedirect() bool

IsRedirect returns true when this component delete unauthorized response has a 3xx status code

func (*ComponentDeleteUnauthorized) IsServerError

func (o *ComponentDeleteUnauthorized) IsServerError() bool

IsServerError returns true when this component delete unauthorized response has a 5xx status code

func (*ComponentDeleteUnauthorized) IsSuccess

func (o *ComponentDeleteUnauthorized) IsSuccess() bool

IsSuccess returns true when this component delete unauthorized response has a 2xx status code

func (*ComponentDeleteUnauthorized) String

func (o *ComponentDeleteUnauthorized) String() string

type ComponentFindBadRequest

type ComponentFindBadRequest struct {
	Payload *models.Response
}

ComponentFindBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewComponentFindBadRequest

func NewComponentFindBadRequest() *ComponentFindBadRequest

NewComponentFindBadRequest creates a ComponentFindBadRequest with default headers values

func (*ComponentFindBadRequest) Code

func (o *ComponentFindBadRequest) Code() int

Code gets the status code for the component find bad request response

func (*ComponentFindBadRequest) Error

func (o *ComponentFindBadRequest) Error() string

func (*ComponentFindBadRequest) GetPayload

func (o *ComponentFindBadRequest) GetPayload() *models.Response

func (*ComponentFindBadRequest) IsClientError

func (o *ComponentFindBadRequest) IsClientError() bool

IsClientError returns true when this component find bad request response has a 4xx status code

func (*ComponentFindBadRequest) IsCode

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

IsCode returns true when this component find bad request response a status code equal to that given

func (*ComponentFindBadRequest) IsRedirect

func (o *ComponentFindBadRequest) IsRedirect() bool

IsRedirect returns true when this component find bad request response has a 3xx status code

func (*ComponentFindBadRequest) IsServerError

func (o *ComponentFindBadRequest) IsServerError() bool

IsServerError returns true when this component find bad request response has a 5xx status code

func (*ComponentFindBadRequest) IsSuccess

func (o *ComponentFindBadRequest) IsSuccess() bool

IsSuccess returns true when this component find bad request response has a 2xx status code

func (*ComponentFindBadRequest) String

func (o *ComponentFindBadRequest) String() string

type ComponentFindInternalServerError

type ComponentFindInternalServerError struct {
	Payload *models.Response
}

ComponentFindInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewComponentFindInternalServerError

func NewComponentFindInternalServerError() *ComponentFindInternalServerError

NewComponentFindInternalServerError creates a ComponentFindInternalServerError with default headers values

func (*ComponentFindInternalServerError) Code

Code gets the status code for the component find internal server error response

func (*ComponentFindInternalServerError) Error

func (*ComponentFindInternalServerError) GetPayload

func (*ComponentFindInternalServerError) IsClientError

func (o *ComponentFindInternalServerError) IsClientError() bool

IsClientError returns true when this component find internal server error response has a 4xx status code

func (*ComponentFindInternalServerError) IsCode

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

IsCode returns true when this component find internal server error response a status code equal to that given

func (*ComponentFindInternalServerError) IsRedirect

func (o *ComponentFindInternalServerError) IsRedirect() bool

IsRedirect returns true when this component find internal server error response has a 3xx status code

func (*ComponentFindInternalServerError) IsServerError

func (o *ComponentFindInternalServerError) IsServerError() bool

IsServerError returns true when this component find internal server error response has a 5xx status code

func (*ComponentFindInternalServerError) IsSuccess

func (o *ComponentFindInternalServerError) IsSuccess() bool

IsSuccess returns true when this component find internal server error response has a 2xx status code

func (*ComponentFindInternalServerError) String

type ComponentFindOK

type ComponentFindOK struct {
	Payload *models.ComponentFindResponse
}

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

OK

func NewComponentFindOK

func NewComponentFindOK() *ComponentFindOK

NewComponentFindOK creates a ComponentFindOK with default headers values

func (*ComponentFindOK) Code

func (o *ComponentFindOK) Code() int

Code gets the status code for the component find o k response

func (*ComponentFindOK) Error

func (o *ComponentFindOK) Error() string

func (*ComponentFindOK) GetPayload

func (o *ComponentFindOK) GetPayload() *models.ComponentFindResponse

func (*ComponentFindOK) IsClientError

func (o *ComponentFindOK) IsClientError() bool

IsClientError returns true when this component find o k response has a 4xx status code

func (*ComponentFindOK) IsCode

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

IsCode returns true when this component find o k response a status code equal to that given

func (*ComponentFindOK) IsRedirect

func (o *ComponentFindOK) IsRedirect() bool

IsRedirect returns true when this component find o k response has a 3xx status code

func (*ComponentFindOK) IsServerError

func (o *ComponentFindOK) IsServerError() bool

IsServerError returns true when this component find o k response has a 5xx status code

func (*ComponentFindOK) IsSuccess

func (o *ComponentFindOK) IsSuccess() bool

IsSuccess returns true when this component find o k response has a 2xx status code

func (*ComponentFindOK) String

func (o *ComponentFindOK) String() string

type ComponentFindParams

type ComponentFindParams struct {

	/* ComponentID.

	   ID of the component to retrieve.
	*/
	ComponentID string

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

ComponentFindParams contains all the parameters to send to the API endpoint

for the component find operation.

Typically these are written to a http.Request.

func NewComponentFindParams

func NewComponentFindParams() *ComponentFindParams

NewComponentFindParams creates a new ComponentFindParams 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 NewComponentFindParamsWithContext

func NewComponentFindParamsWithContext(ctx context.Context) *ComponentFindParams

NewComponentFindParamsWithContext creates a new ComponentFindParams object with the ability to set a context for a request.

func NewComponentFindParamsWithHTTPClient

func NewComponentFindParamsWithHTTPClient(client *http.Client) *ComponentFindParams

NewComponentFindParamsWithHTTPClient creates a new ComponentFindParams object with the ability to set a custom HTTPClient for a request.

func NewComponentFindParamsWithTimeout

func NewComponentFindParamsWithTimeout(timeout time.Duration) *ComponentFindParams

NewComponentFindParamsWithTimeout creates a new ComponentFindParams object with the ability to set a timeout on a request.

func (*ComponentFindParams) SetComponentID

func (o *ComponentFindParams) SetComponentID(componentID string)

SetComponentID adds the componentId to the component find params

func (*ComponentFindParams) SetContext

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

SetContext adds the context to the component find params

func (*ComponentFindParams) SetDefaults

func (o *ComponentFindParams) SetDefaults()

SetDefaults hydrates default values in the component find params (not the query body).

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

func (*ComponentFindParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the component find params

func (*ComponentFindParams) SetTimeout

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

SetTimeout adds the timeout to the component find params

func (*ComponentFindParams) WithComponentID

func (o *ComponentFindParams) WithComponentID(componentID string) *ComponentFindParams

WithComponentID adds the componentID to the component find params

func (*ComponentFindParams) WithContext

WithContext adds the context to the component find params

func (*ComponentFindParams) WithDefaults

func (o *ComponentFindParams) WithDefaults() *ComponentFindParams

WithDefaults hydrates default values in the component find params (not the query body).

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

func (*ComponentFindParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the component find params

func (*ComponentFindParams) WithTimeout

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

WithTimeout adds the timeout to the component find params

func (*ComponentFindParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ComponentFindReader

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

ComponentFindReader is a Reader for the ComponentFind structure.

func (*ComponentFindReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ComponentFindUnauthorized

type ComponentFindUnauthorized struct {
	Payload *models.Response
}

ComponentFindUnauthorized describes a response with status code 401, with default header values.

Access Denied

func NewComponentFindUnauthorized

func NewComponentFindUnauthorized() *ComponentFindUnauthorized

NewComponentFindUnauthorized creates a ComponentFindUnauthorized with default headers values

func (*ComponentFindUnauthorized) Code

func (o *ComponentFindUnauthorized) Code() int

Code gets the status code for the component find unauthorized response

func (*ComponentFindUnauthorized) Error

func (o *ComponentFindUnauthorized) Error() string

func (*ComponentFindUnauthorized) GetPayload

func (o *ComponentFindUnauthorized) GetPayload() *models.Response

func (*ComponentFindUnauthorized) IsClientError

func (o *ComponentFindUnauthorized) IsClientError() bool

IsClientError returns true when this component find unauthorized response has a 4xx status code

func (*ComponentFindUnauthorized) IsCode

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

IsCode returns true when this component find unauthorized response a status code equal to that given

func (*ComponentFindUnauthorized) IsRedirect

func (o *ComponentFindUnauthorized) IsRedirect() bool

IsRedirect returns true when this component find unauthorized response has a 3xx status code

func (*ComponentFindUnauthorized) IsServerError

func (o *ComponentFindUnauthorized) IsServerError() bool

IsServerError returns true when this component find unauthorized response has a 5xx status code

func (*ComponentFindUnauthorized) IsSuccess

func (o *ComponentFindUnauthorized) IsSuccess() bool

IsSuccess returns true when this component find unauthorized response has a 2xx status code

func (*ComponentFindUnauthorized) String

func (o *ComponentFindUnauthorized) String() string

Jump to

Keyboard shortcuts

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