Documentation ¶
Index ¶
- type API
- type Client
- type GetQuotaForbidden
- func (o *GetQuotaForbidden) Code() int
- func (o *GetQuotaForbidden) Error() string
- func (o *GetQuotaForbidden) GetPayload() *models.Errors
- func (o *GetQuotaForbidden) IsClientError() bool
- func (o *GetQuotaForbidden) IsCode(code int) bool
- func (o *GetQuotaForbidden) IsRedirect() bool
- func (o *GetQuotaForbidden) IsServerError() bool
- func (o *GetQuotaForbidden) IsSuccess() bool
- func (o *GetQuotaForbidden) String() string
- type GetQuotaInternalServerError
- func (o *GetQuotaInternalServerError) Code() int
- func (o *GetQuotaInternalServerError) Error() string
- func (o *GetQuotaInternalServerError) GetPayload() *models.Errors
- func (o *GetQuotaInternalServerError) IsClientError() bool
- func (o *GetQuotaInternalServerError) IsCode(code int) bool
- func (o *GetQuotaInternalServerError) IsRedirect() bool
- func (o *GetQuotaInternalServerError) IsServerError() bool
- func (o *GetQuotaInternalServerError) IsSuccess() bool
- func (o *GetQuotaInternalServerError) String() string
- type GetQuotaNotFound
- func (o *GetQuotaNotFound) Code() int
- func (o *GetQuotaNotFound) Error() string
- func (o *GetQuotaNotFound) GetPayload() *models.Errors
- func (o *GetQuotaNotFound) IsClientError() bool
- func (o *GetQuotaNotFound) IsCode(code int) bool
- func (o *GetQuotaNotFound) IsRedirect() bool
- func (o *GetQuotaNotFound) IsServerError() bool
- func (o *GetQuotaNotFound) IsSuccess() bool
- func (o *GetQuotaNotFound) String() string
- type GetQuotaOK
- func (o *GetQuotaOK) Code() int
- func (o *GetQuotaOK) Error() string
- func (o *GetQuotaOK) GetPayload() *models.Quota
- func (o *GetQuotaOK) IsClientError() bool
- func (o *GetQuotaOK) IsCode(code int) bool
- func (o *GetQuotaOK) IsRedirect() bool
- func (o *GetQuotaOK) IsServerError() bool
- func (o *GetQuotaOK) IsSuccess() bool
- func (o *GetQuotaOK) String() string
- type GetQuotaParams
- func (o *GetQuotaParams) SetContext(ctx context.Context)
- func (o *GetQuotaParams) SetDefaults()
- func (o *GetQuotaParams) SetHTTPClient(client *http.Client)
- func (o *GetQuotaParams) SetID(id int64)
- func (o *GetQuotaParams) SetTimeout(timeout time.Duration)
- func (o *GetQuotaParams) SetXRequestID(xRequestID *string)
- func (o *GetQuotaParams) WithContext(ctx context.Context) *GetQuotaParams
- func (o *GetQuotaParams) WithDefaults() *GetQuotaParams
- func (o *GetQuotaParams) WithHTTPClient(client *http.Client) *GetQuotaParams
- func (o *GetQuotaParams) WithID(id int64) *GetQuotaParams
- func (o *GetQuotaParams) WithTimeout(timeout time.Duration) *GetQuotaParams
- func (o *GetQuotaParams) WithXRequestID(xRequestID *string) *GetQuotaParams
- func (o *GetQuotaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetQuotaReader
- type GetQuotaUnauthorized
- func (o *GetQuotaUnauthorized) Code() int
- func (o *GetQuotaUnauthorized) Error() string
- func (o *GetQuotaUnauthorized) GetPayload() *models.Errors
- func (o *GetQuotaUnauthorized) IsClientError() bool
- func (o *GetQuotaUnauthorized) IsCode(code int) bool
- func (o *GetQuotaUnauthorized) IsRedirect() bool
- func (o *GetQuotaUnauthorized) IsServerError() bool
- func (o *GetQuotaUnauthorized) IsSuccess() bool
- func (o *GetQuotaUnauthorized) String() string
- type ListQuotasForbidden
- func (o *ListQuotasForbidden) Code() int
- func (o *ListQuotasForbidden) Error() string
- func (o *ListQuotasForbidden) GetPayload() *models.Errors
- func (o *ListQuotasForbidden) IsClientError() bool
- func (o *ListQuotasForbidden) IsCode(code int) bool
- func (o *ListQuotasForbidden) IsRedirect() bool
- func (o *ListQuotasForbidden) IsServerError() bool
- func (o *ListQuotasForbidden) IsSuccess() bool
- func (o *ListQuotasForbidden) String() string
- type ListQuotasInternalServerError
- func (o *ListQuotasInternalServerError) Code() int
- func (o *ListQuotasInternalServerError) Error() string
- func (o *ListQuotasInternalServerError) GetPayload() *models.Errors
- func (o *ListQuotasInternalServerError) IsClientError() bool
- func (o *ListQuotasInternalServerError) IsCode(code int) bool
- func (o *ListQuotasInternalServerError) IsRedirect() bool
- func (o *ListQuotasInternalServerError) IsServerError() bool
- func (o *ListQuotasInternalServerError) IsSuccess() bool
- func (o *ListQuotasInternalServerError) String() string
- type ListQuotasOK
- func (o *ListQuotasOK) Code() int
- func (o *ListQuotasOK) Error() string
- func (o *ListQuotasOK) GetPayload() []*models.Quota
- func (o *ListQuotasOK) IsClientError() bool
- func (o *ListQuotasOK) IsCode(code int) bool
- func (o *ListQuotasOK) IsRedirect() bool
- func (o *ListQuotasOK) IsServerError() bool
- func (o *ListQuotasOK) IsSuccess() bool
- func (o *ListQuotasOK) String() string
- type ListQuotasParams
- func (o *ListQuotasParams) SetContext(ctx context.Context)
- func (o *ListQuotasParams) SetDefaults()
- func (o *ListQuotasParams) SetHTTPClient(client *http.Client)
- func (o *ListQuotasParams) SetPage(page *int64)
- func (o *ListQuotasParams) SetPageSize(pageSize *int64)
- func (o *ListQuotasParams) SetReference(reference *string)
- func (o *ListQuotasParams) SetReferenceID(referenceID *string)
- func (o *ListQuotasParams) SetSort(sort *string)
- func (o *ListQuotasParams) SetTimeout(timeout time.Duration)
- func (o *ListQuotasParams) SetXRequestID(xRequestID *string)
- func (o *ListQuotasParams) WithContext(ctx context.Context) *ListQuotasParams
- func (o *ListQuotasParams) WithDefaults() *ListQuotasParams
- func (o *ListQuotasParams) WithHTTPClient(client *http.Client) *ListQuotasParams
- func (o *ListQuotasParams) WithPage(page *int64) *ListQuotasParams
- func (o *ListQuotasParams) WithPageSize(pageSize *int64) *ListQuotasParams
- func (o *ListQuotasParams) WithReference(reference *string) *ListQuotasParams
- func (o *ListQuotasParams) WithReferenceID(referenceID *string) *ListQuotasParams
- func (o *ListQuotasParams) WithSort(sort *string) *ListQuotasParams
- func (o *ListQuotasParams) WithTimeout(timeout time.Duration) *ListQuotasParams
- func (o *ListQuotasParams) WithXRequestID(xRequestID *string) *ListQuotasParams
- func (o *ListQuotasParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListQuotasReader
- type ListQuotasUnauthorized
- func (o *ListQuotasUnauthorized) Code() int
- func (o *ListQuotasUnauthorized) Error() string
- func (o *ListQuotasUnauthorized) GetPayload() *models.Errors
- func (o *ListQuotasUnauthorized) IsClientError() bool
- func (o *ListQuotasUnauthorized) IsCode(code int) bool
- func (o *ListQuotasUnauthorized) IsRedirect() bool
- func (o *ListQuotasUnauthorized) IsServerError() bool
- func (o *ListQuotasUnauthorized) IsSuccess() bool
- func (o *ListQuotasUnauthorized) String() string
- type UpdateQuotaBadRequest
- func (o *UpdateQuotaBadRequest) Code() int
- func (o *UpdateQuotaBadRequest) Error() string
- func (o *UpdateQuotaBadRequest) GetPayload() *models.Errors
- func (o *UpdateQuotaBadRequest) IsClientError() bool
- func (o *UpdateQuotaBadRequest) IsCode(code int) bool
- func (o *UpdateQuotaBadRequest) IsRedirect() bool
- func (o *UpdateQuotaBadRequest) IsServerError() bool
- func (o *UpdateQuotaBadRequest) IsSuccess() bool
- func (o *UpdateQuotaBadRequest) String() string
- type UpdateQuotaForbidden
- func (o *UpdateQuotaForbidden) Code() int
- func (o *UpdateQuotaForbidden) Error() string
- func (o *UpdateQuotaForbidden) GetPayload() *models.Errors
- func (o *UpdateQuotaForbidden) IsClientError() bool
- func (o *UpdateQuotaForbidden) IsCode(code int) bool
- func (o *UpdateQuotaForbidden) IsRedirect() bool
- func (o *UpdateQuotaForbidden) IsServerError() bool
- func (o *UpdateQuotaForbidden) IsSuccess() bool
- func (o *UpdateQuotaForbidden) String() string
- type UpdateQuotaInternalServerError
- func (o *UpdateQuotaInternalServerError) Code() int
- func (o *UpdateQuotaInternalServerError) Error() string
- func (o *UpdateQuotaInternalServerError) GetPayload() *models.Errors
- func (o *UpdateQuotaInternalServerError) IsClientError() bool
- func (o *UpdateQuotaInternalServerError) IsCode(code int) bool
- func (o *UpdateQuotaInternalServerError) IsRedirect() bool
- func (o *UpdateQuotaInternalServerError) IsServerError() bool
- func (o *UpdateQuotaInternalServerError) IsSuccess() bool
- func (o *UpdateQuotaInternalServerError) String() string
- type UpdateQuotaNotFound
- func (o *UpdateQuotaNotFound) Code() int
- func (o *UpdateQuotaNotFound) Error() string
- func (o *UpdateQuotaNotFound) GetPayload() *models.Errors
- func (o *UpdateQuotaNotFound) IsClientError() bool
- func (o *UpdateQuotaNotFound) IsCode(code int) bool
- func (o *UpdateQuotaNotFound) IsRedirect() bool
- func (o *UpdateQuotaNotFound) IsServerError() bool
- func (o *UpdateQuotaNotFound) IsSuccess() bool
- func (o *UpdateQuotaNotFound) String() string
- type UpdateQuotaOK
- func (o *UpdateQuotaOK) Code() int
- func (o *UpdateQuotaOK) Error() string
- func (o *UpdateQuotaOK) IsClientError() bool
- func (o *UpdateQuotaOK) IsCode(code int) bool
- func (o *UpdateQuotaOK) IsRedirect() bool
- func (o *UpdateQuotaOK) IsServerError() bool
- func (o *UpdateQuotaOK) IsSuccess() bool
- func (o *UpdateQuotaOK) String() string
- type UpdateQuotaParams
- func (o *UpdateQuotaParams) SetContext(ctx context.Context)
- func (o *UpdateQuotaParams) SetDefaults()
- func (o *UpdateQuotaParams) SetHTTPClient(client *http.Client)
- func (o *UpdateQuotaParams) SetHard(hard *models.QuotaUpdateReq)
- func (o *UpdateQuotaParams) SetID(id int64)
- func (o *UpdateQuotaParams) SetTimeout(timeout time.Duration)
- func (o *UpdateQuotaParams) SetXRequestID(xRequestID *string)
- func (o *UpdateQuotaParams) WithContext(ctx context.Context) *UpdateQuotaParams
- func (o *UpdateQuotaParams) WithDefaults() *UpdateQuotaParams
- func (o *UpdateQuotaParams) WithHTTPClient(client *http.Client) *UpdateQuotaParams
- func (o *UpdateQuotaParams) WithHard(hard *models.QuotaUpdateReq) *UpdateQuotaParams
- func (o *UpdateQuotaParams) WithID(id int64) *UpdateQuotaParams
- func (o *UpdateQuotaParams) WithTimeout(timeout time.Duration) *UpdateQuotaParams
- func (o *UpdateQuotaParams) WithXRequestID(xRequestID *string) *UpdateQuotaParams
- func (o *UpdateQuotaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateQuotaReader
- type UpdateQuotaUnauthorized
- func (o *UpdateQuotaUnauthorized) Code() int
- func (o *UpdateQuotaUnauthorized) Error() string
- func (o *UpdateQuotaUnauthorized) GetPayload() *models.Errors
- func (o *UpdateQuotaUnauthorized) IsClientError() bool
- func (o *UpdateQuotaUnauthorized) IsCode(code int) bool
- func (o *UpdateQuotaUnauthorized) IsRedirect() bool
- func (o *UpdateQuotaUnauthorized) IsServerError() bool
- func (o *UpdateQuotaUnauthorized) IsSuccess() bool
- func (o *UpdateQuotaUnauthorized) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* GetQuota gets the specified quota Get the specified quota*/ GetQuota(ctx context.Context, params *GetQuotaParams) (*GetQuotaOK, error) /* ListQuotas lists quotas List quotas*/ ListQuotas(ctx context.Context, params *ListQuotasParams) (*ListQuotasOK, error) /* UpdateQuota updates the specified quota Update hard limits of the specified quota*/ UpdateQuota(ctx context.Context, params *UpdateQuotaParams) (*UpdateQuotaOK, error) }
API is the interface of the quota client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for quota API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new quota API client.
func (*Client) GetQuota ¶
func (a *Client) GetQuota(ctx context.Context, params *GetQuotaParams) (*GetQuotaOK, error)
GetQuota gets the specified quota
Get the specified quota
func (*Client) ListQuotas ¶
func (a *Client) ListQuotas(ctx context.Context, params *ListQuotasParams) (*ListQuotasOK, error)
ListQuotas lists quotas
List quotas
func (*Client) UpdateQuota ¶
func (a *Client) UpdateQuota(ctx context.Context, params *UpdateQuotaParams) (*UpdateQuotaOK, error)
UpdateQuota updates the specified quota
Update hard limits of the specified quota
type GetQuotaForbidden ¶
type GetQuotaForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetQuotaForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetQuotaForbidden ¶
func NewGetQuotaForbidden() *GetQuotaForbidden
NewGetQuotaForbidden creates a GetQuotaForbidden with default headers values
func (*GetQuotaForbidden) Code ¶
func (o *GetQuotaForbidden) Code() int
Code gets the status code for the get quota forbidden response
func (*GetQuotaForbidden) Error ¶
func (o *GetQuotaForbidden) Error() string
func (*GetQuotaForbidden) GetPayload ¶
func (o *GetQuotaForbidden) GetPayload() *models.Errors
func (*GetQuotaForbidden) IsClientError ¶
func (o *GetQuotaForbidden) IsClientError() bool
IsClientError returns true when this get quota forbidden response has a 4xx status code
func (*GetQuotaForbidden) IsCode ¶
func (o *GetQuotaForbidden) IsCode(code int) bool
IsCode returns true when this get quota forbidden response a status code equal to that given
func (*GetQuotaForbidden) IsRedirect ¶
func (o *GetQuotaForbidden) IsRedirect() bool
IsRedirect returns true when this get quota forbidden response has a 3xx status code
func (*GetQuotaForbidden) IsServerError ¶
func (o *GetQuotaForbidden) IsServerError() bool
IsServerError returns true when this get quota forbidden response has a 5xx status code
func (*GetQuotaForbidden) IsSuccess ¶
func (o *GetQuotaForbidden) IsSuccess() bool
IsSuccess returns true when this get quota forbidden response has a 2xx status code
func (*GetQuotaForbidden) String ¶
func (o *GetQuotaForbidden) String() string
type GetQuotaInternalServerError ¶
type GetQuotaInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetQuotaInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewGetQuotaInternalServerError ¶
func NewGetQuotaInternalServerError() *GetQuotaInternalServerError
NewGetQuotaInternalServerError creates a GetQuotaInternalServerError with default headers values
func (*GetQuotaInternalServerError) Code ¶
func (o *GetQuotaInternalServerError) Code() int
Code gets the status code for the get quota internal server error response
func (*GetQuotaInternalServerError) Error ¶
func (o *GetQuotaInternalServerError) Error() string
func (*GetQuotaInternalServerError) GetPayload ¶
func (o *GetQuotaInternalServerError) GetPayload() *models.Errors
func (*GetQuotaInternalServerError) IsClientError ¶
func (o *GetQuotaInternalServerError) IsClientError() bool
IsClientError returns true when this get quota internal server error response has a 4xx status code
func (*GetQuotaInternalServerError) IsCode ¶
func (o *GetQuotaInternalServerError) IsCode(code int) bool
IsCode returns true when this get quota internal server error response a status code equal to that given
func (*GetQuotaInternalServerError) IsRedirect ¶
func (o *GetQuotaInternalServerError) IsRedirect() bool
IsRedirect returns true when this get quota internal server error response has a 3xx status code
func (*GetQuotaInternalServerError) IsServerError ¶
func (o *GetQuotaInternalServerError) IsServerError() bool
IsServerError returns true when this get quota internal server error response has a 5xx status code
func (*GetQuotaInternalServerError) IsSuccess ¶
func (o *GetQuotaInternalServerError) IsSuccess() bool
IsSuccess returns true when this get quota internal server error response has a 2xx status code
func (*GetQuotaInternalServerError) String ¶
func (o *GetQuotaInternalServerError) String() string
type GetQuotaNotFound ¶
type GetQuotaNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
GetQuotaNotFound describes a response with status code 404, with default header values.
Not found
func NewGetQuotaNotFound ¶
func NewGetQuotaNotFound() *GetQuotaNotFound
NewGetQuotaNotFound creates a GetQuotaNotFound with default headers values
func (*GetQuotaNotFound) Code ¶
func (o *GetQuotaNotFound) Code() int
Code gets the status code for the get quota not found response
func (*GetQuotaNotFound) Error ¶
func (o *GetQuotaNotFound) Error() string
func (*GetQuotaNotFound) GetPayload ¶
func (o *GetQuotaNotFound) GetPayload() *models.Errors
func (*GetQuotaNotFound) IsClientError ¶
func (o *GetQuotaNotFound) IsClientError() bool
IsClientError returns true when this get quota not found response has a 4xx status code
func (*GetQuotaNotFound) IsCode ¶
func (o *GetQuotaNotFound) IsCode(code int) bool
IsCode returns true when this get quota not found response a status code equal to that given
func (*GetQuotaNotFound) IsRedirect ¶
func (o *GetQuotaNotFound) IsRedirect() bool
IsRedirect returns true when this get quota not found response has a 3xx status code
func (*GetQuotaNotFound) IsServerError ¶
func (o *GetQuotaNotFound) IsServerError() bool
IsServerError returns true when this get quota not found response has a 5xx status code
func (*GetQuotaNotFound) IsSuccess ¶
func (o *GetQuotaNotFound) IsSuccess() bool
IsSuccess returns true when this get quota not found response has a 2xx status code
func (*GetQuotaNotFound) String ¶
func (o *GetQuotaNotFound) String() string
type GetQuotaOK ¶
GetQuotaOK describes a response with status code 200, with default header values.
Successfully retrieved the quota.
func NewGetQuotaOK ¶
func NewGetQuotaOK() *GetQuotaOK
NewGetQuotaOK creates a GetQuotaOK with default headers values
func (*GetQuotaOK) Code ¶
func (o *GetQuotaOK) Code() int
Code gets the status code for the get quota o k response
func (*GetQuotaOK) Error ¶
func (o *GetQuotaOK) Error() string
func (*GetQuotaOK) GetPayload ¶
func (o *GetQuotaOK) GetPayload() *models.Quota
func (*GetQuotaOK) IsClientError ¶
func (o *GetQuotaOK) IsClientError() bool
IsClientError returns true when this get quota o k response has a 4xx status code
func (*GetQuotaOK) IsCode ¶
func (o *GetQuotaOK) IsCode(code int) bool
IsCode returns true when this get quota o k response a status code equal to that given
func (*GetQuotaOK) IsRedirect ¶
func (o *GetQuotaOK) IsRedirect() bool
IsRedirect returns true when this get quota o k response has a 3xx status code
func (*GetQuotaOK) IsServerError ¶
func (o *GetQuotaOK) IsServerError() bool
IsServerError returns true when this get quota o k response has a 5xx status code
func (*GetQuotaOK) IsSuccess ¶
func (o *GetQuotaOK) IsSuccess() bool
IsSuccess returns true when this get quota o k response has a 2xx status code
func (*GetQuotaOK) String ¶
func (o *GetQuotaOK) String() string
type GetQuotaParams ¶
type GetQuotaParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string `js:"xRequestID"` /* ID. Quota ID */ ID int64 `js:"id"` Context context.Context `js:"context"` HTTPClient *http.Client `js:"httpClient"` // contains filtered or unexported fields }
GetQuotaParams contains all the parameters to send to the API endpoint
for the get quota operation. Typically these are written to a http.Request.
func NewGetQuotaParams ¶
func NewGetQuotaParams() *GetQuotaParams
NewGetQuotaParams creates a new GetQuotaParams 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 NewGetQuotaParamsWithContext ¶
func NewGetQuotaParamsWithContext(ctx context.Context) *GetQuotaParams
NewGetQuotaParamsWithContext creates a new GetQuotaParams object with the ability to set a context for a request.
func NewGetQuotaParamsWithHTTPClient ¶
func NewGetQuotaParamsWithHTTPClient(client *http.Client) *GetQuotaParams
NewGetQuotaParamsWithHTTPClient creates a new GetQuotaParams object with the ability to set a custom HTTPClient for a request.
func NewGetQuotaParamsWithTimeout ¶
func NewGetQuotaParamsWithTimeout(timeout time.Duration) *GetQuotaParams
NewGetQuotaParamsWithTimeout creates a new GetQuotaParams object with the ability to set a timeout on a request.
func (*GetQuotaParams) SetContext ¶
func (o *GetQuotaParams) SetContext(ctx context.Context)
SetContext adds the context to the get quota params
func (*GetQuotaParams) SetDefaults ¶
func (o *GetQuotaParams) SetDefaults()
SetDefaults hydrates default values in the get quota params (not the query body).
All values with no default are reset to their zero value.
func (*GetQuotaParams) SetHTTPClient ¶
func (o *GetQuotaParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get quota params
func (*GetQuotaParams) SetID ¶
func (o *GetQuotaParams) SetID(id int64)
SetID adds the id to the get quota params
func (*GetQuotaParams) SetTimeout ¶
func (o *GetQuotaParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get quota params
func (*GetQuotaParams) SetXRequestID ¶
func (o *GetQuotaParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the get quota params
func (*GetQuotaParams) WithContext ¶
func (o *GetQuotaParams) WithContext(ctx context.Context) *GetQuotaParams
WithContext adds the context to the get quota params
func (*GetQuotaParams) WithDefaults ¶
func (o *GetQuotaParams) WithDefaults() *GetQuotaParams
WithDefaults hydrates default values in the get quota params (not the query body).
All values with no default are reset to their zero value.
func (*GetQuotaParams) WithHTTPClient ¶
func (o *GetQuotaParams) WithHTTPClient(client *http.Client) *GetQuotaParams
WithHTTPClient adds the HTTPClient to the get quota params
func (*GetQuotaParams) WithID ¶
func (o *GetQuotaParams) WithID(id int64) *GetQuotaParams
WithID adds the id to the get quota params
func (*GetQuotaParams) WithTimeout ¶
func (o *GetQuotaParams) WithTimeout(timeout time.Duration) *GetQuotaParams
WithTimeout adds the timeout to the get quota params
func (*GetQuotaParams) WithXRequestID ¶
func (o *GetQuotaParams) WithXRequestID(xRequestID *string) *GetQuotaParams
WithXRequestID adds the xRequestID to the get quota params
func (*GetQuotaParams) WriteToRequest ¶
func (o *GetQuotaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetQuotaReader ¶
type GetQuotaReader struct {
// contains filtered or unexported fields
}
GetQuotaReader is a Reader for the GetQuota structure.
func (*GetQuotaReader) ReadResponse ¶
func (o *GetQuotaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetQuotaUnauthorized ¶
type GetQuotaUnauthorized struct { string }XRequestID
GetQuotaUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetQuotaUnauthorized ¶
func NewGetQuotaUnauthorized() *GetQuotaUnauthorized
NewGetQuotaUnauthorized creates a GetQuotaUnauthorized with default headers values
func (*GetQuotaUnauthorized) Code ¶
func (o *GetQuotaUnauthorized) Code() int
Code gets the status code for the get quota unauthorized response
func (*GetQuotaUnauthorized) Error ¶
func (o *GetQuotaUnauthorized) Error() string
func (*GetQuotaUnauthorized) GetPayload ¶
func (o *GetQuotaUnauthorized) GetPayload() *models.Errors
func (*GetQuotaUnauthorized) IsClientError ¶
func (o *GetQuotaUnauthorized) IsClientError() bool
IsClientError returns true when this get quota unauthorized response has a 4xx status code
func (*GetQuotaUnauthorized) IsCode ¶
func (o *GetQuotaUnauthorized) IsCode(code int) bool
IsCode returns true when this get quota unauthorized response a status code equal to that given
func (*GetQuotaUnauthorized) IsRedirect ¶
func (o *GetQuotaUnauthorized) IsRedirect() bool
IsRedirect returns true when this get quota unauthorized response has a 3xx status code
func (*GetQuotaUnauthorized) IsServerError ¶
func (o *GetQuotaUnauthorized) IsServerError() bool
IsServerError returns true when this get quota unauthorized response has a 5xx status code
func (*GetQuotaUnauthorized) IsSuccess ¶
func (o *GetQuotaUnauthorized) IsSuccess() bool
IsSuccess returns true when this get quota unauthorized response has a 2xx status code
func (*GetQuotaUnauthorized) String ¶
func (o *GetQuotaUnauthorized) String() string
type ListQuotasForbidden ¶
type ListQuotasForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListQuotasForbidden describes a response with status code 403, with default header values.
Forbidden
func NewListQuotasForbidden ¶
func NewListQuotasForbidden() *ListQuotasForbidden
NewListQuotasForbidden creates a ListQuotasForbidden with default headers values
func (*ListQuotasForbidden) Code ¶
func (o *ListQuotasForbidden) Code() int
Code gets the status code for the list quotas forbidden response
func (*ListQuotasForbidden) Error ¶
func (o *ListQuotasForbidden) Error() string
func (*ListQuotasForbidden) GetPayload ¶
func (o *ListQuotasForbidden) GetPayload() *models.Errors
func (*ListQuotasForbidden) IsClientError ¶
func (o *ListQuotasForbidden) IsClientError() bool
IsClientError returns true when this list quotas forbidden response has a 4xx status code
func (*ListQuotasForbidden) IsCode ¶
func (o *ListQuotasForbidden) IsCode(code int) bool
IsCode returns true when this list quotas forbidden response a status code equal to that given
func (*ListQuotasForbidden) IsRedirect ¶
func (o *ListQuotasForbidden) IsRedirect() bool
IsRedirect returns true when this list quotas forbidden response has a 3xx status code
func (*ListQuotasForbidden) IsServerError ¶
func (o *ListQuotasForbidden) IsServerError() bool
IsServerError returns true when this list quotas forbidden response has a 5xx status code
func (*ListQuotasForbidden) IsSuccess ¶
func (o *ListQuotasForbidden) IsSuccess() bool
IsSuccess returns true when this list quotas forbidden response has a 2xx status code
func (*ListQuotasForbidden) String ¶
func (o *ListQuotasForbidden) String() string
type ListQuotasInternalServerError ¶
type ListQuotasInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
ListQuotasInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewListQuotasInternalServerError ¶
func NewListQuotasInternalServerError() *ListQuotasInternalServerError
NewListQuotasInternalServerError creates a ListQuotasInternalServerError with default headers values
func (*ListQuotasInternalServerError) Code ¶
func (o *ListQuotasInternalServerError) Code() int
Code gets the status code for the list quotas internal server error response
func (*ListQuotasInternalServerError) Error ¶
func (o *ListQuotasInternalServerError) Error() string
func (*ListQuotasInternalServerError) GetPayload ¶
func (o *ListQuotasInternalServerError) GetPayload() *models.Errors
func (*ListQuotasInternalServerError) IsClientError ¶
func (o *ListQuotasInternalServerError) IsClientError() bool
IsClientError returns true when this list quotas internal server error response has a 4xx status code
func (*ListQuotasInternalServerError) IsCode ¶
func (o *ListQuotasInternalServerError) IsCode(code int) bool
IsCode returns true when this list quotas internal server error response a status code equal to that given
func (*ListQuotasInternalServerError) IsRedirect ¶
func (o *ListQuotasInternalServerError) IsRedirect() bool
IsRedirect returns true when this list quotas internal server error response has a 3xx status code
func (*ListQuotasInternalServerError) IsServerError ¶
func (o *ListQuotasInternalServerError) IsServerError() bool
IsServerError returns true when this list quotas internal server error response has a 5xx status code
func (*ListQuotasInternalServerError) IsSuccess ¶
func (o *ListQuotasInternalServerError) IsSuccess() bool
IsSuccess returns true when this list quotas internal server error response has a 2xx status code
func (*ListQuotasInternalServerError) String ¶
func (o *ListQuotasInternalServerError) String() string
type ListQuotasOK ¶
type ListQuotasOK struct { /* Link refers to the previous page and next page */ Link string /* The total count of access logs */ XTotalCount int64 Payload []*models.Quota }
ListQuotasOK describes a response with status code 200, with default header values.
Successfully retrieved the quotas.
func NewListQuotasOK ¶
func NewListQuotasOK() *ListQuotasOK
NewListQuotasOK creates a ListQuotasOK with default headers values
func (*ListQuotasOK) Code ¶
func (o *ListQuotasOK) Code() int
Code gets the status code for the list quotas o k response
func (*ListQuotasOK) Error ¶
func (o *ListQuotasOK) Error() string
func (*ListQuotasOK) GetPayload ¶
func (o *ListQuotasOK) GetPayload() []*models.Quota
func (*ListQuotasOK) IsClientError ¶
func (o *ListQuotasOK) IsClientError() bool
IsClientError returns true when this list quotas o k response has a 4xx status code
func (*ListQuotasOK) IsCode ¶
func (o *ListQuotasOK) IsCode(code int) bool
IsCode returns true when this list quotas o k response a status code equal to that given
func (*ListQuotasOK) IsRedirect ¶
func (o *ListQuotasOK) IsRedirect() bool
IsRedirect returns true when this list quotas o k response has a 3xx status code
func (*ListQuotasOK) IsServerError ¶
func (o *ListQuotasOK) IsServerError() bool
IsServerError returns true when this list quotas o k response has a 5xx status code
func (*ListQuotasOK) IsSuccess ¶
func (o *ListQuotasOK) IsSuccess() bool
IsSuccess returns true when this list quotas o k response has a 2xx status code
func (*ListQuotasOK) String ¶
func (o *ListQuotasOK) String() string
type ListQuotasParams ¶
type ListQuotasParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string `js:"xRequestID"` /* Page. The page number Format: int64 Default: 1 */ Page *int64 `js:"page"` /* PageSize. The size of per page Format: int64 Default: 10 */ PageSize *int64 `js:"pageSize"` /* Reference. The reference type of quota. */ Reference *string `js:"reference"` /* ReferenceID. The reference id of quota. */ ReferenceID *string `js:"referenceID"` /* Sort. Sort method, valid values include: 'hard.resource_name', '-hard.resource_name', 'used.resource_name', '-used.resource_name'. Here '-' stands for descending order, resource_name should be the real resource name of the quota. */ Sort *string `js:"sort"` Context context.Context `js:"context"` HTTPClient *http.Client `js:"httpClient"` // contains filtered or unexported fields }
ListQuotasParams contains all the parameters to send to the API endpoint
for the list quotas operation. Typically these are written to a http.Request.
func NewListQuotasParams ¶
func NewListQuotasParams() *ListQuotasParams
NewListQuotasParams creates a new ListQuotasParams 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 NewListQuotasParamsWithContext ¶
func NewListQuotasParamsWithContext(ctx context.Context) *ListQuotasParams
NewListQuotasParamsWithContext creates a new ListQuotasParams object with the ability to set a context for a request.
func NewListQuotasParamsWithHTTPClient ¶
func NewListQuotasParamsWithHTTPClient(client *http.Client) *ListQuotasParams
NewListQuotasParamsWithHTTPClient creates a new ListQuotasParams object with the ability to set a custom HTTPClient for a request.
func NewListQuotasParamsWithTimeout ¶
func NewListQuotasParamsWithTimeout(timeout time.Duration) *ListQuotasParams
NewListQuotasParamsWithTimeout creates a new ListQuotasParams object with the ability to set a timeout on a request.
func (*ListQuotasParams) SetContext ¶
func (o *ListQuotasParams) SetContext(ctx context.Context)
SetContext adds the context to the list quotas params
func (*ListQuotasParams) SetDefaults ¶
func (o *ListQuotasParams) SetDefaults()
SetDefaults hydrates default values in the list quotas params (not the query body).
All values with no default are reset to their zero value.
func (*ListQuotasParams) SetHTTPClient ¶
func (o *ListQuotasParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list quotas params
func (*ListQuotasParams) SetPage ¶
func (o *ListQuotasParams) SetPage(page *int64)
SetPage adds the page to the list quotas params
func (*ListQuotasParams) SetPageSize ¶
func (o *ListQuotasParams) SetPageSize(pageSize *int64)
SetPageSize adds the pageSize to the list quotas params
func (*ListQuotasParams) SetReference ¶
func (o *ListQuotasParams) SetReference(reference *string)
SetReference adds the reference to the list quotas params
func (*ListQuotasParams) SetReferenceID ¶
func (o *ListQuotasParams) SetReferenceID(referenceID *string)
SetReferenceID adds the referenceId to the list quotas params
func (*ListQuotasParams) SetSort ¶
func (o *ListQuotasParams) SetSort(sort *string)
SetSort adds the sort to the list quotas params
func (*ListQuotasParams) SetTimeout ¶
func (o *ListQuotasParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list quotas params
func (*ListQuotasParams) SetXRequestID ¶
func (o *ListQuotasParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the list quotas params
func (*ListQuotasParams) WithContext ¶
func (o *ListQuotasParams) WithContext(ctx context.Context) *ListQuotasParams
WithContext adds the context to the list quotas params
func (*ListQuotasParams) WithDefaults ¶
func (o *ListQuotasParams) WithDefaults() *ListQuotasParams
WithDefaults hydrates default values in the list quotas params (not the query body).
All values with no default are reset to their zero value.
func (*ListQuotasParams) WithHTTPClient ¶
func (o *ListQuotasParams) WithHTTPClient(client *http.Client) *ListQuotasParams
WithHTTPClient adds the HTTPClient to the list quotas params
func (*ListQuotasParams) WithPage ¶
func (o *ListQuotasParams) WithPage(page *int64) *ListQuotasParams
WithPage adds the page to the list quotas params
func (*ListQuotasParams) WithPageSize ¶
func (o *ListQuotasParams) WithPageSize(pageSize *int64) *ListQuotasParams
WithPageSize adds the pageSize to the list quotas params
func (*ListQuotasParams) WithReference ¶
func (o *ListQuotasParams) WithReference(reference *string) *ListQuotasParams
WithReference adds the reference to the list quotas params
func (*ListQuotasParams) WithReferenceID ¶
func (o *ListQuotasParams) WithReferenceID(referenceID *string) *ListQuotasParams
WithReferenceID adds the referenceID to the list quotas params
func (*ListQuotasParams) WithSort ¶
func (o *ListQuotasParams) WithSort(sort *string) *ListQuotasParams
WithSort adds the sort to the list quotas params
func (*ListQuotasParams) WithTimeout ¶
func (o *ListQuotasParams) WithTimeout(timeout time.Duration) *ListQuotasParams
WithTimeout adds the timeout to the list quotas params
func (*ListQuotasParams) WithXRequestID ¶
func (o *ListQuotasParams) WithXRequestID(xRequestID *string) *ListQuotasParams
WithXRequestID adds the xRequestID to the list quotas params
func (*ListQuotasParams) WriteToRequest ¶
func (o *ListQuotasParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListQuotasReader ¶
type ListQuotasReader struct {
// contains filtered or unexported fields
}
ListQuotasReader is a Reader for the ListQuotas structure.
func (*ListQuotasReader) ReadResponse ¶
func (o *ListQuotasReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListQuotasUnauthorized ¶
type ListQuotasUnauthorized struct { string }XRequestID
ListQuotasUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListQuotasUnauthorized ¶
func NewListQuotasUnauthorized() *ListQuotasUnauthorized
NewListQuotasUnauthorized creates a ListQuotasUnauthorized with default headers values
func (*ListQuotasUnauthorized) Code ¶
func (o *ListQuotasUnauthorized) Code() int
Code gets the status code for the list quotas unauthorized response
func (*ListQuotasUnauthorized) Error ¶
func (o *ListQuotasUnauthorized) Error() string
func (*ListQuotasUnauthorized) GetPayload ¶
func (o *ListQuotasUnauthorized) GetPayload() *models.Errors
func (*ListQuotasUnauthorized) IsClientError ¶
func (o *ListQuotasUnauthorized) IsClientError() bool
IsClientError returns true when this list quotas unauthorized response has a 4xx status code
func (*ListQuotasUnauthorized) IsCode ¶
func (o *ListQuotasUnauthorized) IsCode(code int) bool
IsCode returns true when this list quotas unauthorized response a status code equal to that given
func (*ListQuotasUnauthorized) IsRedirect ¶
func (o *ListQuotasUnauthorized) IsRedirect() bool
IsRedirect returns true when this list quotas unauthorized response has a 3xx status code
func (*ListQuotasUnauthorized) IsServerError ¶
func (o *ListQuotasUnauthorized) IsServerError() bool
IsServerError returns true when this list quotas unauthorized response has a 5xx status code
func (*ListQuotasUnauthorized) IsSuccess ¶
func (o *ListQuotasUnauthorized) IsSuccess() bool
IsSuccess returns true when this list quotas unauthorized response has a 2xx status code
func (*ListQuotasUnauthorized) String ¶
func (o *ListQuotasUnauthorized) String() string
type UpdateQuotaBadRequest ¶
type UpdateQuotaBadRequest struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateQuotaBadRequest describes a response with status code 400, with default header values.
Bad request
func NewUpdateQuotaBadRequest ¶
func NewUpdateQuotaBadRequest() *UpdateQuotaBadRequest
NewUpdateQuotaBadRequest creates a UpdateQuotaBadRequest with default headers values
func (*UpdateQuotaBadRequest) Code ¶
func (o *UpdateQuotaBadRequest) Code() int
Code gets the status code for the update quota bad request response
func (*UpdateQuotaBadRequest) Error ¶
func (o *UpdateQuotaBadRequest) Error() string
func (*UpdateQuotaBadRequest) GetPayload ¶
func (o *UpdateQuotaBadRequest) GetPayload() *models.Errors
func (*UpdateQuotaBadRequest) IsClientError ¶
func (o *UpdateQuotaBadRequest) IsClientError() bool
IsClientError returns true when this update quota bad request response has a 4xx status code
func (*UpdateQuotaBadRequest) IsCode ¶
func (o *UpdateQuotaBadRequest) IsCode(code int) bool
IsCode returns true when this update quota bad request response a status code equal to that given
func (*UpdateQuotaBadRequest) IsRedirect ¶
func (o *UpdateQuotaBadRequest) IsRedirect() bool
IsRedirect returns true when this update quota bad request response has a 3xx status code
func (*UpdateQuotaBadRequest) IsServerError ¶
func (o *UpdateQuotaBadRequest) IsServerError() bool
IsServerError returns true when this update quota bad request response has a 5xx status code
func (*UpdateQuotaBadRequest) IsSuccess ¶
func (o *UpdateQuotaBadRequest) IsSuccess() bool
IsSuccess returns true when this update quota bad request response has a 2xx status code
func (*UpdateQuotaBadRequest) String ¶
func (o *UpdateQuotaBadRequest) String() string
type UpdateQuotaForbidden ¶
type UpdateQuotaForbidden struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateQuotaForbidden describes a response with status code 403, with default header values.
Forbidden
func NewUpdateQuotaForbidden ¶
func NewUpdateQuotaForbidden() *UpdateQuotaForbidden
NewUpdateQuotaForbidden creates a UpdateQuotaForbidden with default headers values
func (*UpdateQuotaForbidden) Code ¶
func (o *UpdateQuotaForbidden) Code() int
Code gets the status code for the update quota forbidden response
func (*UpdateQuotaForbidden) Error ¶
func (o *UpdateQuotaForbidden) Error() string
func (*UpdateQuotaForbidden) GetPayload ¶
func (o *UpdateQuotaForbidden) GetPayload() *models.Errors
func (*UpdateQuotaForbidden) IsClientError ¶
func (o *UpdateQuotaForbidden) IsClientError() bool
IsClientError returns true when this update quota forbidden response has a 4xx status code
func (*UpdateQuotaForbidden) IsCode ¶
func (o *UpdateQuotaForbidden) IsCode(code int) bool
IsCode returns true when this update quota forbidden response a status code equal to that given
func (*UpdateQuotaForbidden) IsRedirect ¶
func (o *UpdateQuotaForbidden) IsRedirect() bool
IsRedirect returns true when this update quota forbidden response has a 3xx status code
func (*UpdateQuotaForbidden) IsServerError ¶
func (o *UpdateQuotaForbidden) IsServerError() bool
IsServerError returns true when this update quota forbidden response has a 5xx status code
func (*UpdateQuotaForbidden) IsSuccess ¶
func (o *UpdateQuotaForbidden) IsSuccess() bool
IsSuccess returns true when this update quota forbidden response has a 2xx status code
func (*UpdateQuotaForbidden) String ¶
func (o *UpdateQuotaForbidden) String() string
type UpdateQuotaInternalServerError ¶
type UpdateQuotaInternalServerError struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateQuotaInternalServerError describes a response with status code 500, with default header values.
Internal server error
func NewUpdateQuotaInternalServerError ¶
func NewUpdateQuotaInternalServerError() *UpdateQuotaInternalServerError
NewUpdateQuotaInternalServerError creates a UpdateQuotaInternalServerError with default headers values
func (*UpdateQuotaInternalServerError) Code ¶
func (o *UpdateQuotaInternalServerError) Code() int
Code gets the status code for the update quota internal server error response
func (*UpdateQuotaInternalServerError) Error ¶
func (o *UpdateQuotaInternalServerError) Error() string
func (*UpdateQuotaInternalServerError) GetPayload ¶
func (o *UpdateQuotaInternalServerError) GetPayload() *models.Errors
func (*UpdateQuotaInternalServerError) IsClientError ¶
func (o *UpdateQuotaInternalServerError) IsClientError() bool
IsClientError returns true when this update quota internal server error response has a 4xx status code
func (*UpdateQuotaInternalServerError) IsCode ¶
func (o *UpdateQuotaInternalServerError) IsCode(code int) bool
IsCode returns true when this update quota internal server error response a status code equal to that given
func (*UpdateQuotaInternalServerError) IsRedirect ¶
func (o *UpdateQuotaInternalServerError) IsRedirect() bool
IsRedirect returns true when this update quota internal server error response has a 3xx status code
func (*UpdateQuotaInternalServerError) IsServerError ¶
func (o *UpdateQuotaInternalServerError) IsServerError() bool
IsServerError returns true when this update quota internal server error response has a 5xx status code
func (*UpdateQuotaInternalServerError) IsSuccess ¶
func (o *UpdateQuotaInternalServerError) IsSuccess() bool
IsSuccess returns true when this update quota internal server error response has a 2xx status code
func (*UpdateQuotaInternalServerError) String ¶
func (o *UpdateQuotaInternalServerError) String() string
type UpdateQuotaNotFound ¶
type UpdateQuotaNotFound struct { /* The ID of the corresponding request for the response */ XRequestID string Payload *models.Errors }
UpdateQuotaNotFound describes a response with status code 404, with default header values.
Not found
func NewUpdateQuotaNotFound ¶
func NewUpdateQuotaNotFound() *UpdateQuotaNotFound
NewUpdateQuotaNotFound creates a UpdateQuotaNotFound with default headers values
func (*UpdateQuotaNotFound) Code ¶
func (o *UpdateQuotaNotFound) Code() int
Code gets the status code for the update quota not found response
func (*UpdateQuotaNotFound) Error ¶
func (o *UpdateQuotaNotFound) Error() string
func (*UpdateQuotaNotFound) GetPayload ¶
func (o *UpdateQuotaNotFound) GetPayload() *models.Errors
func (*UpdateQuotaNotFound) IsClientError ¶
func (o *UpdateQuotaNotFound) IsClientError() bool
IsClientError returns true when this update quota not found response has a 4xx status code
func (*UpdateQuotaNotFound) IsCode ¶
func (o *UpdateQuotaNotFound) IsCode(code int) bool
IsCode returns true when this update quota not found response a status code equal to that given
func (*UpdateQuotaNotFound) IsRedirect ¶
func (o *UpdateQuotaNotFound) IsRedirect() bool
IsRedirect returns true when this update quota not found response has a 3xx status code
func (*UpdateQuotaNotFound) IsServerError ¶
func (o *UpdateQuotaNotFound) IsServerError() bool
IsServerError returns true when this update quota not found response has a 5xx status code
func (*UpdateQuotaNotFound) IsSuccess ¶
func (o *UpdateQuotaNotFound) IsSuccess() bool
IsSuccess returns true when this update quota not found response has a 2xx status code
func (*UpdateQuotaNotFound) String ¶
func (o *UpdateQuotaNotFound) String() string
type UpdateQuotaOK ¶
type UpdateQuotaOK struct { /* The ID of the corresponding request for the response */ XRequestID string }
UpdateQuotaOK describes a response with status code 200, with default header values.
Success
func NewUpdateQuotaOK ¶
func NewUpdateQuotaOK() *UpdateQuotaOK
NewUpdateQuotaOK creates a UpdateQuotaOK with default headers values
func (*UpdateQuotaOK) Code ¶
func (o *UpdateQuotaOK) Code() int
Code gets the status code for the update quota o k response
func (*UpdateQuotaOK) Error ¶
func (o *UpdateQuotaOK) Error() string
func (*UpdateQuotaOK) IsClientError ¶
func (o *UpdateQuotaOK) IsClientError() bool
IsClientError returns true when this update quota o k response has a 4xx status code
func (*UpdateQuotaOK) IsCode ¶
func (o *UpdateQuotaOK) IsCode(code int) bool
IsCode returns true when this update quota o k response a status code equal to that given
func (*UpdateQuotaOK) IsRedirect ¶
func (o *UpdateQuotaOK) IsRedirect() bool
IsRedirect returns true when this update quota o k response has a 3xx status code
func (*UpdateQuotaOK) IsServerError ¶
func (o *UpdateQuotaOK) IsServerError() bool
IsServerError returns true when this update quota o k response has a 5xx status code
func (*UpdateQuotaOK) IsSuccess ¶
func (o *UpdateQuotaOK) IsSuccess() bool
IsSuccess returns true when this update quota o k response has a 2xx status code
func (*UpdateQuotaOK) String ¶
func (o *UpdateQuotaOK) String() string
type UpdateQuotaParams ¶
type UpdateQuotaParams struct { /* XRequestID. An unique ID for the request */ XRequestID *string `js:"xRequestID"` /* Hard. The new hard limits for the quota */ Hard *models.QuotaUpdateReq `js:"hard"` /* ID. Quota ID */ ID int64 `js:"id"` Context context.Context `js:"context"` HTTPClient *http.Client `js:"httpClient"` // contains filtered or unexported fields }
UpdateQuotaParams contains all the parameters to send to the API endpoint
for the update quota operation. Typically these are written to a http.Request.
func NewUpdateQuotaParams ¶
func NewUpdateQuotaParams() *UpdateQuotaParams
NewUpdateQuotaParams creates a new UpdateQuotaParams 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 NewUpdateQuotaParamsWithContext ¶
func NewUpdateQuotaParamsWithContext(ctx context.Context) *UpdateQuotaParams
NewUpdateQuotaParamsWithContext creates a new UpdateQuotaParams object with the ability to set a context for a request.
func NewUpdateQuotaParamsWithHTTPClient ¶
func NewUpdateQuotaParamsWithHTTPClient(client *http.Client) *UpdateQuotaParams
NewUpdateQuotaParamsWithHTTPClient creates a new UpdateQuotaParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateQuotaParamsWithTimeout ¶
func NewUpdateQuotaParamsWithTimeout(timeout time.Duration) *UpdateQuotaParams
NewUpdateQuotaParamsWithTimeout creates a new UpdateQuotaParams object with the ability to set a timeout on a request.
func (*UpdateQuotaParams) SetContext ¶
func (o *UpdateQuotaParams) SetContext(ctx context.Context)
SetContext adds the context to the update quota params
func (*UpdateQuotaParams) SetDefaults ¶
func (o *UpdateQuotaParams) SetDefaults()
SetDefaults hydrates default values in the update quota params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateQuotaParams) SetHTTPClient ¶
func (o *UpdateQuotaParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update quota params
func (*UpdateQuotaParams) SetHard ¶
func (o *UpdateQuotaParams) SetHard(hard *models.QuotaUpdateReq)
SetHard adds the hard to the update quota params
func (*UpdateQuotaParams) SetID ¶
func (o *UpdateQuotaParams) SetID(id int64)
SetID adds the id to the update quota params
func (*UpdateQuotaParams) SetTimeout ¶
func (o *UpdateQuotaParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update quota params
func (*UpdateQuotaParams) SetXRequestID ¶
func (o *UpdateQuotaParams) SetXRequestID(xRequestID *string)
SetXRequestID adds the xRequestId to the update quota params
func (*UpdateQuotaParams) WithContext ¶
func (o *UpdateQuotaParams) WithContext(ctx context.Context) *UpdateQuotaParams
WithContext adds the context to the update quota params
func (*UpdateQuotaParams) WithDefaults ¶
func (o *UpdateQuotaParams) WithDefaults() *UpdateQuotaParams
WithDefaults hydrates default values in the update quota params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateQuotaParams) WithHTTPClient ¶
func (o *UpdateQuotaParams) WithHTTPClient(client *http.Client) *UpdateQuotaParams
WithHTTPClient adds the HTTPClient to the update quota params
func (*UpdateQuotaParams) WithHard ¶
func (o *UpdateQuotaParams) WithHard(hard *models.QuotaUpdateReq) *UpdateQuotaParams
WithHard adds the hard to the update quota params
func (*UpdateQuotaParams) WithID ¶
func (o *UpdateQuotaParams) WithID(id int64) *UpdateQuotaParams
WithID adds the id to the update quota params
func (*UpdateQuotaParams) WithTimeout ¶
func (o *UpdateQuotaParams) WithTimeout(timeout time.Duration) *UpdateQuotaParams
WithTimeout adds the timeout to the update quota params
func (*UpdateQuotaParams) WithXRequestID ¶
func (o *UpdateQuotaParams) WithXRequestID(xRequestID *string) *UpdateQuotaParams
WithXRequestID adds the xRequestID to the update quota params
func (*UpdateQuotaParams) WriteToRequest ¶
func (o *UpdateQuotaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateQuotaReader ¶
type UpdateQuotaReader struct {
// contains filtered or unexported fields
}
UpdateQuotaReader is a Reader for the UpdateQuota structure.
func (*UpdateQuotaReader) ReadResponse ¶
func (o *UpdateQuotaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateQuotaUnauthorized ¶
type UpdateQuotaUnauthorized struct { string }XRequestID
UpdateQuotaUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdateQuotaUnauthorized ¶
func NewUpdateQuotaUnauthorized() *UpdateQuotaUnauthorized
NewUpdateQuotaUnauthorized creates a UpdateQuotaUnauthorized with default headers values
func (*UpdateQuotaUnauthorized) Code ¶
func (o *UpdateQuotaUnauthorized) Code() int
Code gets the status code for the update quota unauthorized response
func (*UpdateQuotaUnauthorized) Error ¶
func (o *UpdateQuotaUnauthorized) Error() string
func (*UpdateQuotaUnauthorized) GetPayload ¶
func (o *UpdateQuotaUnauthorized) GetPayload() *models.Errors
func (*UpdateQuotaUnauthorized) IsClientError ¶
func (o *UpdateQuotaUnauthorized) IsClientError() bool
IsClientError returns true when this update quota unauthorized response has a 4xx status code
func (*UpdateQuotaUnauthorized) IsCode ¶
func (o *UpdateQuotaUnauthorized) IsCode(code int) bool
IsCode returns true when this update quota unauthorized response a status code equal to that given
func (*UpdateQuotaUnauthorized) IsRedirect ¶
func (o *UpdateQuotaUnauthorized) IsRedirect() bool
IsRedirect returns true when this update quota unauthorized response has a 3xx status code
func (*UpdateQuotaUnauthorized) IsServerError ¶
func (o *UpdateQuotaUnauthorized) IsServerError() bool
IsServerError returns true when this update quota unauthorized response has a 5xx status code
func (*UpdateQuotaUnauthorized) IsSuccess ¶
func (o *UpdateQuotaUnauthorized) IsSuccess() bool
IsSuccess returns true when this update quota unauthorized response has a 2xx status code
func (*UpdateQuotaUnauthorized) String ¶
func (o *UpdateQuotaUnauthorized) String() string