Documentation ¶
Index ¶
- type Client
- func (a *Client) GetResourcesLimits(params *GetResourcesLimitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourcesLimitsOK, *GetResourcesLimitsUnauthorized, ...)deprecated
- func (a *Client) GetResourcesLimitsShort(params *GetResourcesLimitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourcesLimitsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetResourcesLimitsForbidden
- type GetResourcesLimitsInternalServerError
- type GetResourcesLimitsOK
- type GetResourcesLimitsParams
- func NewGetResourcesLimitsParams() *GetResourcesLimitsParams
- func NewGetResourcesLimitsParamsWithContext(ctx context.Context) *GetResourcesLimitsParams
- func NewGetResourcesLimitsParamsWithHTTPClient(client *http.Client) *GetResourcesLimitsParams
- func NewGetResourcesLimitsParamsWithTimeout(timeout time.Duration) *GetResourcesLimitsParams
- func (o *GetResourcesLimitsParams) SetAuthInfoWriter(authInfoWriter runtime.ClientAuthInfoWriter)
- func (o *GetResourcesLimitsParams) SetContext(ctx context.Context)
- func (o *GetResourcesLimitsParams) SetFlightId(flightId string)
- func (o *GetResourcesLimitsParams) SetHTTPClient(client *http.Client)
- func (o *GetResourcesLimitsParams) SetHTTPClientTransport(roundTripper http.RoundTripper)
- func (o *GetResourcesLimitsParams) SetNamespace(namespace string)
- func (o *GetResourcesLimitsParams) SetTimeout(timeout time.Duration)
- func (o *GetResourcesLimitsParams) WithContext(ctx context.Context) *GetResourcesLimitsParams
- func (o *GetResourcesLimitsParams) WithHTTPClient(client *http.Client) *GetResourcesLimitsParams
- func (o *GetResourcesLimitsParams) WithNamespace(namespace string) *GetResourcesLimitsParams
- func (o *GetResourcesLimitsParams) WithTimeout(timeout time.Duration) *GetResourcesLimitsParams
- func (o *GetResourcesLimitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetResourcesLimitsPaymentRequired
- type GetResourcesLimitsReader
- type GetResourcesLimitsUnauthorized
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
func (a *Client) GetResourcesLimits(params *GetResourcesLimitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourcesLimitsOK, *GetResourcesLimitsUnauthorized, *GetResourcesLimitsPaymentRequired, *GetResourcesLimitsForbidden, *GetResourcesLimitsInternalServerError, error)
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 ¶
type ClientService interface { GetResourcesLimits(params *GetResourcesLimitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourcesLimitsOK, *GetResourcesLimitsUnauthorized, *GetResourcesLimitsPaymentRequired, *GetResourcesLimitsForbidden, *GetResourcesLimitsInternalServerError, error) GetResourcesLimitsShort(params *GetResourcesLimitsParams, authInfo runtime.ClientAuthInfoWriter) (*GetResourcesLimitsOK, 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 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 (o *GetResourcesLimitsForbidden) Error() string
func (*GetResourcesLimitsForbidden) GetPayload ¶
func (o *GetResourcesLimitsForbidden) GetPayload() *csmclientmodels.ResponseErrorResponse
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 (o *GetResourcesLimitsInternalServerError) Error() string
func (*GetResourcesLimitsInternalServerError) GetPayload ¶
func (o *GetResourcesLimitsInternalServerError) GetPayload() *csmclientmodels.ResponseErrorResponse
func (*GetResourcesLimitsInternalServerError) ToJSONString ¶
func (o *GetResourcesLimitsInternalServerError) ToJSONString() string
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 (o *GetResourcesLimitsOK) GetPayload() *csmclientmodels.ApimodelCSMAppLimitsResponse
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 ¶
func (o *GetResourcesLimitsParams) WithContext(ctx context.Context) *GetResourcesLimitsParams
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 ¶
func (o *GetResourcesLimitsParams) WithTimeout(timeout time.Duration) *GetResourcesLimitsParams
WithTimeout adds the timeout to the get resources limits params
func (*GetResourcesLimitsParams) WriteToRequest ¶
func (o *GetResourcesLimitsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 (o *GetResourcesLimitsPaymentRequired) Error() string
func (*GetResourcesLimitsPaymentRequired) GetPayload ¶
func (o *GetResourcesLimitsPaymentRequired) GetPayload() *csmclientmodels.ResponseErrorResponse
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 {
}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 (o *GetResourcesLimitsUnauthorized) Error() string
func (*GetResourcesLimitsUnauthorized) GetPayload ¶
func (o *GetResourcesLimitsUnauthorized) GetPayload() *csmclientmodels.ResponseErrorResponse
func (*GetResourcesLimitsUnauthorized) ToJSONString ¶
func (o *GetResourcesLimitsUnauthorized) ToJSONString() string