Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type InternalV1CapacityManagementPutBadRequest
- func (o *InternalV1CapacityManagementPutBadRequest) Code() int
- func (o *InternalV1CapacityManagementPutBadRequest) Error() string
- func (o *InternalV1CapacityManagementPutBadRequest) GetPayload() *models.Error
- func (o *InternalV1CapacityManagementPutBadRequest) IsClientError() bool
- func (o *InternalV1CapacityManagementPutBadRequest) IsCode(code int) bool
- func (o *InternalV1CapacityManagementPutBadRequest) IsRedirect() bool
- func (o *InternalV1CapacityManagementPutBadRequest) IsServerError() bool
- func (o *InternalV1CapacityManagementPutBadRequest) IsSuccess() bool
- func (o *InternalV1CapacityManagementPutBadRequest) String() string
- type InternalV1CapacityManagementPutForbidden
- func (o *InternalV1CapacityManagementPutForbidden) Code() int
- func (o *InternalV1CapacityManagementPutForbidden) Error() string
- func (o *InternalV1CapacityManagementPutForbidden) GetPayload() *models.Error
- func (o *InternalV1CapacityManagementPutForbidden) IsClientError() bool
- func (o *InternalV1CapacityManagementPutForbidden) IsCode(code int) bool
- func (o *InternalV1CapacityManagementPutForbidden) IsRedirect() bool
- func (o *InternalV1CapacityManagementPutForbidden) IsServerError() bool
- func (o *InternalV1CapacityManagementPutForbidden) IsSuccess() bool
- func (o *InternalV1CapacityManagementPutForbidden) String() string
- type InternalV1CapacityManagementPutInternalServerError
- func (o *InternalV1CapacityManagementPutInternalServerError) Code() int
- func (o *InternalV1CapacityManagementPutInternalServerError) Error() string
- func (o *InternalV1CapacityManagementPutInternalServerError) GetPayload() *models.Error
- func (o *InternalV1CapacityManagementPutInternalServerError) IsClientError() bool
- func (o *InternalV1CapacityManagementPutInternalServerError) IsCode(code int) bool
- func (o *InternalV1CapacityManagementPutInternalServerError) IsRedirect() bool
- func (o *InternalV1CapacityManagementPutInternalServerError) IsServerError() bool
- func (o *InternalV1CapacityManagementPutInternalServerError) IsSuccess() bool
- func (o *InternalV1CapacityManagementPutInternalServerError) String() string
- type InternalV1CapacityManagementPutOK
- func (o *InternalV1CapacityManagementPutOK) Code() int
- func (o *InternalV1CapacityManagementPutOK) Error() string
- func (o *InternalV1CapacityManagementPutOK) GetPayload() *models.InternalCapacityManagementResponse
- func (o *InternalV1CapacityManagementPutOK) IsClientError() bool
- func (o *InternalV1CapacityManagementPutOK) IsCode(code int) bool
- func (o *InternalV1CapacityManagementPutOK) IsRedirect() bool
- func (o *InternalV1CapacityManagementPutOK) IsServerError() bool
- func (o *InternalV1CapacityManagementPutOK) IsSuccess() bool
- func (o *InternalV1CapacityManagementPutOK) String() string
- type InternalV1CapacityManagementPutParams
- func NewInternalV1CapacityManagementPutParams() *InternalV1CapacityManagementPutParams
- func NewInternalV1CapacityManagementPutParamsWithContext(ctx context.Context) *InternalV1CapacityManagementPutParams
- func NewInternalV1CapacityManagementPutParamsWithHTTPClient(client *http.Client) *InternalV1CapacityManagementPutParams
- func NewInternalV1CapacityManagementPutParamsWithTimeout(timeout time.Duration) *InternalV1CapacityManagementPutParams
- func (o *InternalV1CapacityManagementPutParams) SetBody(body *models.InternalCapacityManagementRequest)
- func (o *InternalV1CapacityManagementPutParams) SetContext(ctx context.Context)
- func (o *InternalV1CapacityManagementPutParams) SetDefaults()
- func (o *InternalV1CapacityManagementPutParams) SetHTTPClient(client *http.Client)
- func (o *InternalV1CapacityManagementPutParams) SetTimeout(timeout time.Duration)
- func (o *InternalV1CapacityManagementPutParams) WithBody(body *models.InternalCapacityManagementRequest) *InternalV1CapacityManagementPutParams
- func (o *InternalV1CapacityManagementPutParams) WithContext(ctx context.Context) *InternalV1CapacityManagementPutParams
- func (o *InternalV1CapacityManagementPutParams) WithDefaults() *InternalV1CapacityManagementPutParams
- func (o *InternalV1CapacityManagementPutParams) WithHTTPClient(client *http.Client) *InternalV1CapacityManagementPutParams
- func (o *InternalV1CapacityManagementPutParams) WithTimeout(timeout time.Duration) *InternalV1CapacityManagementPutParams
- func (o *InternalV1CapacityManagementPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InternalV1CapacityManagementPutReader
- type InternalV1CapacityManagementPutUnauthorized
- func (o *InternalV1CapacityManagementPutUnauthorized) Code() int
- func (o *InternalV1CapacityManagementPutUnauthorized) Error() string
- func (o *InternalV1CapacityManagementPutUnauthorized) GetPayload() *models.Error
- func (o *InternalV1CapacityManagementPutUnauthorized) IsClientError() bool
- func (o *InternalV1CapacityManagementPutUnauthorized) IsCode(code int) bool
- func (o *InternalV1CapacityManagementPutUnauthorized) IsRedirect() bool
- func (o *InternalV1CapacityManagementPutUnauthorized) IsServerError() bool
- func (o *InternalV1CapacityManagementPutUnauthorized) IsSuccess() bool
- func (o *InternalV1CapacityManagementPutUnauthorized) String() string
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 internal capacity management API
func (*Client) InternalV1CapacityManagementPut ¶
func (a *Client) InternalV1CapacityManagementPut(params *InternalV1CapacityManagementPutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InternalV1CapacityManagementPutOK, error)
InternalV1CapacityManagementPut enables or disable capacity on a system type
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
InternalV1CapacityManagementPut(params *InternalV1CapacityManagementPutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*InternalV1CapacityManagementPutOK, 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 internal capacity management API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new internal capacity management API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new internal capacity management API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type InternalV1CapacityManagementPutBadRequest ¶
InternalV1CapacityManagementPutBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewInternalV1CapacityManagementPutBadRequest ¶
func NewInternalV1CapacityManagementPutBadRequest() *InternalV1CapacityManagementPutBadRequest
NewInternalV1CapacityManagementPutBadRequest creates a InternalV1CapacityManagementPutBadRequest with default headers values
func (*InternalV1CapacityManagementPutBadRequest) Code ¶
func (o *InternalV1CapacityManagementPutBadRequest) Code() int
Code gets the status code for the internal v1 capacity management put bad request response
func (*InternalV1CapacityManagementPutBadRequest) Error ¶
func (o *InternalV1CapacityManagementPutBadRequest) Error() string
func (*InternalV1CapacityManagementPutBadRequest) GetPayload ¶
func (o *InternalV1CapacityManagementPutBadRequest) GetPayload() *models.Error
func (*InternalV1CapacityManagementPutBadRequest) IsClientError ¶
func (o *InternalV1CapacityManagementPutBadRequest) IsClientError() bool
IsClientError returns true when this internal v1 capacity management put bad request response has a 4xx status code
func (*InternalV1CapacityManagementPutBadRequest) IsCode ¶
func (o *InternalV1CapacityManagementPutBadRequest) IsCode(code int) bool
IsCode returns true when this internal v1 capacity management put bad request response a status code equal to that given
func (*InternalV1CapacityManagementPutBadRequest) IsRedirect ¶
func (o *InternalV1CapacityManagementPutBadRequest) IsRedirect() bool
IsRedirect returns true when this internal v1 capacity management put bad request response has a 3xx status code
func (*InternalV1CapacityManagementPutBadRequest) IsServerError ¶
func (o *InternalV1CapacityManagementPutBadRequest) IsServerError() bool
IsServerError returns true when this internal v1 capacity management put bad request response has a 5xx status code
func (*InternalV1CapacityManagementPutBadRequest) IsSuccess ¶
func (o *InternalV1CapacityManagementPutBadRequest) IsSuccess() bool
IsSuccess returns true when this internal v1 capacity management put bad request response has a 2xx status code
func (*InternalV1CapacityManagementPutBadRequest) String ¶
func (o *InternalV1CapacityManagementPutBadRequest) String() string
type InternalV1CapacityManagementPutForbidden ¶
InternalV1CapacityManagementPutForbidden describes a response with status code 403, with default header values.
Forbidden
func NewInternalV1CapacityManagementPutForbidden ¶
func NewInternalV1CapacityManagementPutForbidden() *InternalV1CapacityManagementPutForbidden
NewInternalV1CapacityManagementPutForbidden creates a InternalV1CapacityManagementPutForbidden with default headers values
func (*InternalV1CapacityManagementPutForbidden) Code ¶
func (o *InternalV1CapacityManagementPutForbidden) Code() int
Code gets the status code for the internal v1 capacity management put forbidden response
func (*InternalV1CapacityManagementPutForbidden) Error ¶
func (o *InternalV1CapacityManagementPutForbidden) Error() string
func (*InternalV1CapacityManagementPutForbidden) GetPayload ¶
func (o *InternalV1CapacityManagementPutForbidden) GetPayload() *models.Error
func (*InternalV1CapacityManagementPutForbidden) IsClientError ¶
func (o *InternalV1CapacityManagementPutForbidden) IsClientError() bool
IsClientError returns true when this internal v1 capacity management put forbidden response has a 4xx status code
func (*InternalV1CapacityManagementPutForbidden) IsCode ¶
func (o *InternalV1CapacityManagementPutForbidden) IsCode(code int) bool
IsCode returns true when this internal v1 capacity management put forbidden response a status code equal to that given
func (*InternalV1CapacityManagementPutForbidden) IsRedirect ¶
func (o *InternalV1CapacityManagementPutForbidden) IsRedirect() bool
IsRedirect returns true when this internal v1 capacity management put forbidden response has a 3xx status code
func (*InternalV1CapacityManagementPutForbidden) IsServerError ¶
func (o *InternalV1CapacityManagementPutForbidden) IsServerError() bool
IsServerError returns true when this internal v1 capacity management put forbidden response has a 5xx status code
func (*InternalV1CapacityManagementPutForbidden) IsSuccess ¶
func (o *InternalV1CapacityManagementPutForbidden) IsSuccess() bool
IsSuccess returns true when this internal v1 capacity management put forbidden response has a 2xx status code
func (*InternalV1CapacityManagementPutForbidden) String ¶
func (o *InternalV1CapacityManagementPutForbidden) String() string
type InternalV1CapacityManagementPutInternalServerError ¶
InternalV1CapacityManagementPutInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewInternalV1CapacityManagementPutInternalServerError ¶
func NewInternalV1CapacityManagementPutInternalServerError() *InternalV1CapacityManagementPutInternalServerError
NewInternalV1CapacityManagementPutInternalServerError creates a InternalV1CapacityManagementPutInternalServerError with default headers values
func (*InternalV1CapacityManagementPutInternalServerError) Code ¶
func (o *InternalV1CapacityManagementPutInternalServerError) Code() int
Code gets the status code for the internal v1 capacity management put internal server error response
func (*InternalV1CapacityManagementPutInternalServerError) Error ¶
func (o *InternalV1CapacityManagementPutInternalServerError) Error() string
func (*InternalV1CapacityManagementPutInternalServerError) GetPayload ¶
func (o *InternalV1CapacityManagementPutInternalServerError) GetPayload() *models.Error
func (*InternalV1CapacityManagementPutInternalServerError) IsClientError ¶
func (o *InternalV1CapacityManagementPutInternalServerError) IsClientError() bool
IsClientError returns true when this internal v1 capacity management put internal server error response has a 4xx status code
func (*InternalV1CapacityManagementPutInternalServerError) IsCode ¶
func (o *InternalV1CapacityManagementPutInternalServerError) IsCode(code int) bool
IsCode returns true when this internal v1 capacity management put internal server error response a status code equal to that given
func (*InternalV1CapacityManagementPutInternalServerError) IsRedirect ¶
func (o *InternalV1CapacityManagementPutInternalServerError) IsRedirect() bool
IsRedirect returns true when this internal v1 capacity management put internal server error response has a 3xx status code
func (*InternalV1CapacityManagementPutInternalServerError) IsServerError ¶
func (o *InternalV1CapacityManagementPutInternalServerError) IsServerError() bool
IsServerError returns true when this internal v1 capacity management put internal server error response has a 5xx status code
func (*InternalV1CapacityManagementPutInternalServerError) IsSuccess ¶
func (o *InternalV1CapacityManagementPutInternalServerError) IsSuccess() bool
IsSuccess returns true when this internal v1 capacity management put internal server error response has a 2xx status code
func (*InternalV1CapacityManagementPutInternalServerError) String ¶
func (o *InternalV1CapacityManagementPutInternalServerError) String() string
type InternalV1CapacityManagementPutOK ¶
type InternalV1CapacityManagementPutOK struct {
Payload *models.InternalCapacityManagementResponse
}
InternalV1CapacityManagementPutOK describes a response with status code 200, with default header values.
OK
func NewInternalV1CapacityManagementPutOK ¶
func NewInternalV1CapacityManagementPutOK() *InternalV1CapacityManagementPutOK
NewInternalV1CapacityManagementPutOK creates a InternalV1CapacityManagementPutOK with default headers values
func (*InternalV1CapacityManagementPutOK) Code ¶
func (o *InternalV1CapacityManagementPutOK) Code() int
Code gets the status code for the internal v1 capacity management put o k response
func (*InternalV1CapacityManagementPutOK) Error ¶
func (o *InternalV1CapacityManagementPutOK) Error() string
func (*InternalV1CapacityManagementPutOK) GetPayload ¶
func (o *InternalV1CapacityManagementPutOK) GetPayload() *models.InternalCapacityManagementResponse
func (*InternalV1CapacityManagementPutOK) IsClientError ¶
func (o *InternalV1CapacityManagementPutOK) IsClientError() bool
IsClientError returns true when this internal v1 capacity management put o k response has a 4xx status code
func (*InternalV1CapacityManagementPutOK) IsCode ¶
func (o *InternalV1CapacityManagementPutOK) IsCode(code int) bool
IsCode returns true when this internal v1 capacity management put o k response a status code equal to that given
func (*InternalV1CapacityManagementPutOK) IsRedirect ¶
func (o *InternalV1CapacityManagementPutOK) IsRedirect() bool
IsRedirect returns true when this internal v1 capacity management put o k response has a 3xx status code
func (*InternalV1CapacityManagementPutOK) IsServerError ¶
func (o *InternalV1CapacityManagementPutOK) IsServerError() bool
IsServerError returns true when this internal v1 capacity management put o k response has a 5xx status code
func (*InternalV1CapacityManagementPutOK) IsSuccess ¶
func (o *InternalV1CapacityManagementPutOK) IsSuccess() bool
IsSuccess returns true when this internal v1 capacity management put o k response has a 2xx status code
func (*InternalV1CapacityManagementPutOK) String ¶
func (o *InternalV1CapacityManagementPutOK) String() string
type InternalV1CapacityManagementPutParams ¶
type InternalV1CapacityManagementPutParams struct {
/* Body.
Parameters for enabling and disabling capacity
*/
Body *models.InternalCapacityManagementRequest
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
InternalV1CapacityManagementPutParams contains all the parameters to send to the API endpoint
for the internal v1 capacity management put operation. Typically these are written to a http.Request.
func NewInternalV1CapacityManagementPutParams ¶
func NewInternalV1CapacityManagementPutParams() *InternalV1CapacityManagementPutParams
NewInternalV1CapacityManagementPutParams creates a new InternalV1CapacityManagementPutParams 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 NewInternalV1CapacityManagementPutParamsWithContext ¶
func NewInternalV1CapacityManagementPutParamsWithContext(ctx context.Context) *InternalV1CapacityManagementPutParams
NewInternalV1CapacityManagementPutParamsWithContext creates a new InternalV1CapacityManagementPutParams object with the ability to set a context for a request.
func NewInternalV1CapacityManagementPutParamsWithHTTPClient ¶
func NewInternalV1CapacityManagementPutParamsWithHTTPClient(client *http.Client) *InternalV1CapacityManagementPutParams
NewInternalV1CapacityManagementPutParamsWithHTTPClient creates a new InternalV1CapacityManagementPutParams object with the ability to set a custom HTTPClient for a request.
func NewInternalV1CapacityManagementPutParamsWithTimeout ¶
func NewInternalV1CapacityManagementPutParamsWithTimeout(timeout time.Duration) *InternalV1CapacityManagementPutParams
NewInternalV1CapacityManagementPutParamsWithTimeout creates a new InternalV1CapacityManagementPutParams object with the ability to set a timeout on a request.
func (*InternalV1CapacityManagementPutParams) SetBody ¶
func (o *InternalV1CapacityManagementPutParams) SetBody(body *models.InternalCapacityManagementRequest)
SetBody adds the body to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) SetContext ¶
func (o *InternalV1CapacityManagementPutParams) SetContext(ctx context.Context)
SetContext adds the context to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) SetDefaults ¶
func (o *InternalV1CapacityManagementPutParams) SetDefaults()
SetDefaults hydrates default values in the internal v1 capacity management put params (not the query body).
All values with no default are reset to their zero value.
func (*InternalV1CapacityManagementPutParams) SetHTTPClient ¶
func (o *InternalV1CapacityManagementPutParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) SetTimeout ¶
func (o *InternalV1CapacityManagementPutParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) WithBody ¶
func (o *InternalV1CapacityManagementPutParams) WithBody(body *models.InternalCapacityManagementRequest) *InternalV1CapacityManagementPutParams
WithBody adds the body to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) WithContext ¶
func (o *InternalV1CapacityManagementPutParams) WithContext(ctx context.Context) *InternalV1CapacityManagementPutParams
WithContext adds the context to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) WithDefaults ¶
func (o *InternalV1CapacityManagementPutParams) WithDefaults() *InternalV1CapacityManagementPutParams
WithDefaults hydrates default values in the internal v1 capacity management put params (not the query body).
All values with no default are reset to their zero value.
func (*InternalV1CapacityManagementPutParams) WithHTTPClient ¶
func (o *InternalV1CapacityManagementPutParams) WithHTTPClient(client *http.Client) *InternalV1CapacityManagementPutParams
WithHTTPClient adds the HTTPClient to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) WithTimeout ¶
func (o *InternalV1CapacityManagementPutParams) WithTimeout(timeout time.Duration) *InternalV1CapacityManagementPutParams
WithTimeout adds the timeout to the internal v1 capacity management put params
func (*InternalV1CapacityManagementPutParams) WriteToRequest ¶
func (o *InternalV1CapacityManagementPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InternalV1CapacityManagementPutReader ¶
type InternalV1CapacityManagementPutReader struct {
// contains filtered or unexported fields
}
InternalV1CapacityManagementPutReader is a Reader for the InternalV1CapacityManagementPut structure.
func (*InternalV1CapacityManagementPutReader) ReadResponse ¶
func (o *InternalV1CapacityManagementPutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type InternalV1CapacityManagementPutUnauthorized ¶
type InternalV1CapacityManagementPutUnauthorized struct {
}
InternalV1CapacityManagementPutUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewInternalV1CapacityManagementPutUnauthorized ¶
func NewInternalV1CapacityManagementPutUnauthorized() *InternalV1CapacityManagementPutUnauthorized
NewInternalV1CapacityManagementPutUnauthorized creates a InternalV1CapacityManagementPutUnauthorized with default headers values
func (*InternalV1CapacityManagementPutUnauthorized) Code ¶
func (o *InternalV1CapacityManagementPutUnauthorized) Code() int
Code gets the status code for the internal v1 capacity management put unauthorized response
func (*InternalV1CapacityManagementPutUnauthorized) Error ¶
func (o *InternalV1CapacityManagementPutUnauthorized) Error() string
func (*InternalV1CapacityManagementPutUnauthorized) GetPayload ¶
func (o *InternalV1CapacityManagementPutUnauthorized) GetPayload() *models.Error
func (*InternalV1CapacityManagementPutUnauthorized) IsClientError ¶
func (o *InternalV1CapacityManagementPutUnauthorized) IsClientError() bool
IsClientError returns true when this internal v1 capacity management put unauthorized response has a 4xx status code
func (*InternalV1CapacityManagementPutUnauthorized) IsCode ¶
func (o *InternalV1CapacityManagementPutUnauthorized) IsCode(code int) bool
IsCode returns true when this internal v1 capacity management put unauthorized response a status code equal to that given
func (*InternalV1CapacityManagementPutUnauthorized) IsRedirect ¶
func (o *InternalV1CapacityManagementPutUnauthorized) IsRedirect() bool
IsRedirect returns true when this internal v1 capacity management put unauthorized response has a 3xx status code
func (*InternalV1CapacityManagementPutUnauthorized) IsServerError ¶
func (o *InternalV1CapacityManagementPutUnauthorized) IsServerError() bool
IsServerError returns true when this internal v1 capacity management put unauthorized response has a 5xx status code
func (*InternalV1CapacityManagementPutUnauthorized) IsSuccess ¶
func (o *InternalV1CapacityManagementPutUnauthorized) IsSuccess() bool
IsSuccess returns true when this internal v1 capacity management put unauthorized response has a 2xx status code
func (*InternalV1CapacityManagementPutUnauthorized) String ¶
func (o *InternalV1CapacityManagementPutUnauthorized) String() string