cost_type

package
v0.0.0-...-b3f093e Latest Latest
Warning

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

Go to latest
Published: Apr 19, 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 cost type API

func (*Client) CostTypeFindList

func (a *Client) CostTypeFindList(params *CostTypeFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CostTypeFindListOK, error)

CostTypeFindList retrieves a list of cost types

Retrieve a list of cost types

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 {
	CostTypeFindList(params *CostTypeFindListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CostTypeFindListOK, 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 cost type API client.

type CostTypeFindListBadRequest

type CostTypeFindListBadRequest struct {
	Payload *models.Response
}

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

Bad Request

func NewCostTypeFindListBadRequest

func NewCostTypeFindListBadRequest() *CostTypeFindListBadRequest

NewCostTypeFindListBadRequest creates a CostTypeFindListBadRequest with default headers values

func (*CostTypeFindListBadRequest) Code

func (o *CostTypeFindListBadRequest) Code() int

Code gets the status code for the cost type find list bad request response

func (*CostTypeFindListBadRequest) Error

func (*CostTypeFindListBadRequest) GetPayload

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

func (*CostTypeFindListBadRequest) IsClientError

func (o *CostTypeFindListBadRequest) IsClientError() bool

IsClientError returns true when this cost type find list bad request response has a 4xx status code

func (*CostTypeFindListBadRequest) IsCode

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

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

func (*CostTypeFindListBadRequest) IsRedirect

func (o *CostTypeFindListBadRequest) IsRedirect() bool

IsRedirect returns true when this cost type find list bad request response has a 3xx status code

func (*CostTypeFindListBadRequest) IsServerError

func (o *CostTypeFindListBadRequest) IsServerError() bool

IsServerError returns true when this cost type find list bad request response has a 5xx status code

func (*CostTypeFindListBadRequest) IsSuccess

func (o *CostTypeFindListBadRequest) IsSuccess() bool

IsSuccess returns true when this cost type find list bad request response has a 2xx status code

func (*CostTypeFindListBadRequest) String

func (o *CostTypeFindListBadRequest) String() string

type CostTypeFindListInternalServerError

type CostTypeFindListInternalServerError struct {
	Payload *models.Response
}

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

Internal Server Error

func NewCostTypeFindListInternalServerError

func NewCostTypeFindListInternalServerError() *CostTypeFindListInternalServerError

NewCostTypeFindListInternalServerError creates a CostTypeFindListInternalServerError with default headers values

func (*CostTypeFindListInternalServerError) Code

Code gets the status code for the cost type find list internal server error response

func (*CostTypeFindListInternalServerError) Error

func (*CostTypeFindListInternalServerError) GetPayload

func (*CostTypeFindListInternalServerError) IsClientError

func (o *CostTypeFindListInternalServerError) IsClientError() bool

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

func (*CostTypeFindListInternalServerError) IsCode

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

func (*CostTypeFindListInternalServerError) IsRedirect

func (o *CostTypeFindListInternalServerError) IsRedirect() bool

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

func (*CostTypeFindListInternalServerError) IsServerError

func (o *CostTypeFindListInternalServerError) IsServerError() bool

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

func (*CostTypeFindListInternalServerError) IsSuccess

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

func (*CostTypeFindListInternalServerError) String

type CostTypeFindListOK

type CostTypeFindListOK struct {
	Payload *models.CostTypeFindResponse
}

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

OK

func NewCostTypeFindListOK

func NewCostTypeFindListOK() *CostTypeFindListOK

NewCostTypeFindListOK creates a CostTypeFindListOK with default headers values

func (*CostTypeFindListOK) Code

func (o *CostTypeFindListOK) Code() int

Code gets the status code for the cost type find list o k response

func (*CostTypeFindListOK) Error

func (o *CostTypeFindListOK) Error() string

func (*CostTypeFindListOK) GetPayload

func (*CostTypeFindListOK) IsClientError

func (o *CostTypeFindListOK) IsClientError() bool

IsClientError returns true when this cost type find list o k response has a 4xx status code

func (*CostTypeFindListOK) IsCode

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

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

func (*CostTypeFindListOK) IsRedirect

func (o *CostTypeFindListOK) IsRedirect() bool

IsRedirect returns true when this cost type find list o k response has a 3xx status code

func (*CostTypeFindListOK) IsServerError

func (o *CostTypeFindListOK) IsServerError() bool

IsServerError returns true when this cost type find list o k response has a 5xx status code

func (*CostTypeFindListOK) IsSuccess

func (o *CostTypeFindListOK) IsSuccess() bool

IsSuccess returns true when this cost type find list o k response has a 2xx status code

func (*CostTypeFindListOK) String

func (o *CostTypeFindListOK) String() string

type CostTypeFindListParams

type CostTypeFindListParams struct {

	/* Application.

	   Application where the object or role exists.
	*/
	Application string

	/* Name.

	   The name of a specific group of cost types
	*/
	Name string

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

CostTypeFindListParams contains all the parameters to send to the API endpoint

for the cost type find list operation.

Typically these are written to a http.Request.

func NewCostTypeFindListParams

func NewCostTypeFindListParams() *CostTypeFindListParams

NewCostTypeFindListParams creates a new CostTypeFindListParams 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 NewCostTypeFindListParamsWithContext

func NewCostTypeFindListParamsWithContext(ctx context.Context) *CostTypeFindListParams

NewCostTypeFindListParamsWithContext creates a new CostTypeFindListParams object with the ability to set a context for a request.

func NewCostTypeFindListParamsWithHTTPClient

func NewCostTypeFindListParamsWithHTTPClient(client *http.Client) *CostTypeFindListParams

NewCostTypeFindListParamsWithHTTPClient creates a new CostTypeFindListParams object with the ability to set a custom HTTPClient for a request.

func NewCostTypeFindListParamsWithTimeout

func NewCostTypeFindListParamsWithTimeout(timeout time.Duration) *CostTypeFindListParams

NewCostTypeFindListParamsWithTimeout creates a new CostTypeFindListParams object with the ability to set a timeout on a request.

func (*CostTypeFindListParams) SetApplication

func (o *CostTypeFindListParams) SetApplication(application string)

SetApplication adds the application to the cost type find list params

func (*CostTypeFindListParams) SetContext

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

SetContext adds the context to the cost type find list params

func (*CostTypeFindListParams) SetDefaults

func (o *CostTypeFindListParams) SetDefaults()

SetDefaults hydrates default values in the cost type find list params (not the query body).

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

func (*CostTypeFindListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cost type find list params

func (*CostTypeFindListParams) SetName

func (o *CostTypeFindListParams) SetName(name string)

SetName adds the name to the cost type find list params

func (*CostTypeFindListParams) SetTimeout

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

SetTimeout adds the timeout to the cost type find list params

func (*CostTypeFindListParams) WithApplication

func (o *CostTypeFindListParams) WithApplication(application string) *CostTypeFindListParams

WithApplication adds the application to the cost type find list params

func (*CostTypeFindListParams) WithContext

WithContext adds the context to the cost type find list params

func (*CostTypeFindListParams) WithDefaults

WithDefaults hydrates default values in the cost type find list params (not the query body).

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

func (*CostTypeFindListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the cost type find list params

func (*CostTypeFindListParams) WithName

WithName adds the name to the cost type find list params

func (*CostTypeFindListParams) WithTimeout

WithTimeout adds the timeout to the cost type find list params

func (*CostTypeFindListParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CostTypeFindListReader

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

CostTypeFindListReader is a Reader for the CostTypeFindList structure.

func (*CostTypeFindListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CostTypeFindListUnauthorized

type CostTypeFindListUnauthorized struct {
	Payload *models.Response
}

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

Access Denied

func NewCostTypeFindListUnauthorized

func NewCostTypeFindListUnauthorized() *CostTypeFindListUnauthorized

NewCostTypeFindListUnauthorized creates a CostTypeFindListUnauthorized with default headers values

func (*CostTypeFindListUnauthorized) Code

Code gets the status code for the cost type find list unauthorized response

func (*CostTypeFindListUnauthorized) Error

func (*CostTypeFindListUnauthorized) GetPayload

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

func (*CostTypeFindListUnauthorized) IsClientError

func (o *CostTypeFindListUnauthorized) IsClientError() bool

IsClientError returns true when this cost type find list unauthorized response has a 4xx status code

func (*CostTypeFindListUnauthorized) IsCode

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

IsCode returns true when this cost type find list unauthorized response a status code equal to that given

func (*CostTypeFindListUnauthorized) IsRedirect

func (o *CostTypeFindListUnauthorized) IsRedirect() bool

IsRedirect returns true when this cost type find list unauthorized response has a 3xx status code

func (*CostTypeFindListUnauthorized) IsServerError

func (o *CostTypeFindListUnauthorized) IsServerError() bool

IsServerError returns true when this cost type find list unauthorized response has a 5xx status code

func (*CostTypeFindListUnauthorized) IsSuccess

func (o *CostTypeFindListUnauthorized) IsSuccess() bool

IsSuccess returns true when this cost type find list unauthorized response has a 2xx status code

func (*CostTypeFindListUnauthorized) String

Jump to

Keyboard shortcuts

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