resources_limits

package
v0.75.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: MIT Imports: 15 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 resources limits API

func (*Client) GetResourcesLimits deprecated

Deprecated: 2022-08-10 - Use GetResourcesLimitsShort instead.

GetResourcesLimits get extend apps configurable limits e.g. any kind of limits for front end validation use This endpoint return the Extend Apps Configurable Limits for front end to use for initial validation before app creation e.g. Replica Limit will be used to check max replica that can be created for the said environment by default CPU Limit will be used to validate max allowed CPU for the extend app that hasn't been created Memory Limit will be used to validate max allowed Memory for the extend app that hasn't been created MaxAppNotificationSubscription will be used to validate the maximum number of subscriber for an app status notification

func (*Client) GetResourcesLimitsShort

func (a *Client) GetResourcesLimitsShort(params *GetResourcesLimitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourcesLimitsOK, error)

GetResourcesLimitsShort get extend apps configurable limits e.g. any kind of limits for front end validation use This endpoint return the Extend Apps Configurable Limits for front end to use for initial validation before app creation e.g. Replica Limit will be used to check max replica that can be created for the said environment by default CPU Limit will be used to validate max allowed CPU for the extend app that hasn't been created Memory Limit will be used to validate max allowed Memory for the extend app that hasn't been created MaxAppNotificationSubscription will be used to validate the maximum number of subscriber for an app status notification

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new resources limits API client.

type GetResourcesLimitsForbidden

type GetResourcesLimitsForbidden struct {
	Payload *csmclientmodels.ResponseErrorResponse
}

GetResourcesLimitsForbidden handles this case with default header values.

Forbidden

func NewGetResourcesLimitsForbidden

func NewGetResourcesLimitsForbidden() *GetResourcesLimitsForbidden

NewGetResourcesLimitsForbidden creates a GetResourcesLimitsForbidden with default headers values

func (*GetResourcesLimitsForbidden) Error

func (*GetResourcesLimitsForbidden) GetPayload

func (*GetResourcesLimitsForbidden) ToJSONString

func (o *GetResourcesLimitsForbidden) ToJSONString() string

type GetResourcesLimitsInternalServerError

type GetResourcesLimitsInternalServerError struct {
	Payload *csmclientmodels.ResponseErrorResponse
}

GetResourcesLimitsInternalServerError handles this case with default header values.

Internal Server Error

func NewGetResourcesLimitsInternalServerError

func NewGetResourcesLimitsInternalServerError() *GetResourcesLimitsInternalServerError

NewGetResourcesLimitsInternalServerError creates a GetResourcesLimitsInternalServerError with default headers values

func (*GetResourcesLimitsInternalServerError) Error

func (*GetResourcesLimitsInternalServerError) GetPayload

func (*GetResourcesLimitsInternalServerError) ToJSONString

type GetResourcesLimitsOK

type GetResourcesLimitsOK struct {
	Payload *csmclientmodels.ApimodelCSMAppLimitsResponse
}

GetResourcesLimitsOK handles this case with default header values.

func NewGetResourcesLimitsOK

func NewGetResourcesLimitsOK() *GetResourcesLimitsOK

NewGetResourcesLimitsOK creates a GetResourcesLimitsOK with default headers values

func (*GetResourcesLimitsOK) Error

func (o *GetResourcesLimitsOK) Error() string

func (*GetResourcesLimitsOK) GetPayload

func (*GetResourcesLimitsOK) ToJSONString

func (o *GetResourcesLimitsOK) ToJSONString() string

type GetResourcesLimitsParams

type GetResourcesLimitsParams struct {

	/*RetryPolicy*/
	RetryPolicy *utils.Retry
	/*Namespace
	  Game Namespace

	*/
	Namespace string

	AuthInfoWriter runtime.ClientAuthInfoWriter
	Context        context.Context
	HTTPClient     *http.Client

	// XFlightId is an optional parameter from this SDK
	XFlightId *string
	// contains filtered or unexported fields
}

GetResourcesLimitsParams contains all the parameters to send to the API endpoint for the get resources limits operation typically these are written to a http.Request

func NewGetResourcesLimitsParams

func NewGetResourcesLimitsParams() *GetResourcesLimitsParams

NewGetResourcesLimitsParams creates a new GetResourcesLimitsParams object with the default values initialized.

func NewGetResourcesLimitsParamsWithContext

func NewGetResourcesLimitsParamsWithContext(ctx context.Context) *GetResourcesLimitsParams

NewGetResourcesLimitsParamsWithContext creates a new GetResourcesLimitsParams object with the default values initialized, and the ability to set a context for a request

func NewGetResourcesLimitsParamsWithHTTPClient

func NewGetResourcesLimitsParamsWithHTTPClient(client *http.Client) *GetResourcesLimitsParams

NewGetResourcesLimitsParamsWithHTTPClient creates a new GetResourcesLimitsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetResourcesLimitsParamsWithTimeout

func NewGetResourcesLimitsParamsWithTimeout(timeout time.Duration) *GetResourcesLimitsParams

NewGetResourcesLimitsParamsWithTimeout creates a new GetResourcesLimitsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetResourcesLimitsParams) SetAuthInfoWriter

func (o *GetResourcesLimitsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)

SetAuthInfoWriter adds the authInfoWriter to the get resources limits params

func (*GetResourcesLimitsParams) SetContext

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

SetContext adds the context to the get resources limits params

func (*GetResourcesLimitsParams) SetFlightId

func (o *GetResourcesLimitsParams) SetFlightId(flightId string)

SetFlightId adds the flightId as the header value for this specific endpoint

func (*GetResourcesLimitsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get resources limits params

func (*GetResourcesLimitsParams) SetHTTPClientTransport

func (o *GetResourcesLimitsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)

SetHTTPClient adds the HTTPClient Transport to the get resources limits params

func (*GetResourcesLimitsParams) SetNamespace

func (o *GetResourcesLimitsParams) SetNamespace(namespace string)

SetNamespace adds the namespace to the get resources limits params

func (*GetResourcesLimitsParams) SetTimeout

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

SetTimeout adds the timeout to the get resources limits params

func (*GetResourcesLimitsParams) WithContext

WithContext adds the context to the get resources limits params

func (*GetResourcesLimitsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get resources limits params

func (*GetResourcesLimitsParams) WithNamespace

func (o *GetResourcesLimitsParams) WithNamespace(namespace string) *GetResourcesLimitsParams

WithNamespace adds the namespace to the get resources limits params

func (*GetResourcesLimitsParams) WithTimeout

WithTimeout adds the timeout to the get resources limits params

func (*GetResourcesLimitsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetResourcesLimitsPaymentRequired

type GetResourcesLimitsPaymentRequired struct {
	Payload *csmclientmodels.ResponseErrorResponse
}

GetResourcesLimitsPaymentRequired handles this case with default header values.

Payment Required

func NewGetResourcesLimitsPaymentRequired

func NewGetResourcesLimitsPaymentRequired() *GetResourcesLimitsPaymentRequired

NewGetResourcesLimitsPaymentRequired creates a GetResourcesLimitsPaymentRequired with default headers values

func (*GetResourcesLimitsPaymentRequired) Error

func (*GetResourcesLimitsPaymentRequired) GetPayload

func (*GetResourcesLimitsPaymentRequired) ToJSONString

func (o *GetResourcesLimitsPaymentRequired) ToJSONString() string

type GetResourcesLimitsReader

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

GetResourcesLimitsReader is a Reader for the GetResourcesLimits structure.

func (*GetResourcesLimitsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetResourcesLimitsUnauthorized

type GetResourcesLimitsUnauthorized struct {
	Payload *csmclientmodels.ResponseErrorResponse
}

GetResourcesLimitsUnauthorized handles this case with default header values.

Unauthorized

func NewGetResourcesLimitsUnauthorized

func NewGetResourcesLimitsUnauthorized() *GetResourcesLimitsUnauthorized

NewGetResourcesLimitsUnauthorized creates a GetResourcesLimitsUnauthorized with default headers values

func (*GetResourcesLimitsUnauthorized) Error

func (*GetResourcesLimitsUnauthorized) GetPayload

func (*GetResourcesLimitsUnauthorized) ToJSONString

func (o *GetResourcesLimitsUnauthorized) ToJSONString() string

Jump to

Keyboard shortcuts

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