internal_capacity_management

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2026 License: Apache-2.0 Imports: 12 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 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

type InternalV1CapacityManagementPutBadRequest struct {
	Payload *models.Error
}

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

Code gets the status code for the internal v1 capacity management put bad request response

func (*InternalV1CapacityManagementPutBadRequest) Error

func (*InternalV1CapacityManagementPutBadRequest) GetPayload

func (*InternalV1CapacityManagementPutBadRequest) IsClientError

IsClientError returns true when this internal v1 capacity management put bad request response has a 4xx status code

func (*InternalV1CapacityManagementPutBadRequest) IsCode

IsCode returns true when this internal v1 capacity management put bad request response a status code equal to that given

func (*InternalV1CapacityManagementPutBadRequest) IsRedirect

IsRedirect returns true when this internal v1 capacity management put bad request response has a 3xx status code

func (*InternalV1CapacityManagementPutBadRequest) IsServerError

IsServerError returns true when this internal v1 capacity management put bad request response has a 5xx status code

func (*InternalV1CapacityManagementPutBadRequest) IsSuccess

IsSuccess returns true when this internal v1 capacity management put bad request response has a 2xx status code

func (*InternalV1CapacityManagementPutBadRequest) String

type InternalV1CapacityManagementPutForbidden

type InternalV1CapacityManagementPutForbidden struct {
	Payload *models.Error
}

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

Code gets the status code for the internal v1 capacity management put forbidden response

func (*InternalV1CapacityManagementPutForbidden) Error

func (*InternalV1CapacityManagementPutForbidden) GetPayload

func (*InternalV1CapacityManagementPutForbidden) IsClientError

IsClientError returns true when this internal v1 capacity management put forbidden response has a 4xx status code

func (*InternalV1CapacityManagementPutForbidden) IsCode

IsCode returns true when this internal v1 capacity management put forbidden response a status code equal to that given

func (*InternalV1CapacityManagementPutForbidden) IsRedirect

IsRedirect returns true when this internal v1 capacity management put forbidden response has a 3xx status code

func (*InternalV1CapacityManagementPutForbidden) IsServerError

IsServerError returns true when this internal v1 capacity management put forbidden response has a 5xx status code

func (*InternalV1CapacityManagementPutForbidden) IsSuccess

IsSuccess returns true when this internal v1 capacity management put forbidden response has a 2xx status code

func (*InternalV1CapacityManagementPutForbidden) String

type InternalV1CapacityManagementPutInternalServerError

type InternalV1CapacityManagementPutInternalServerError struct {
	Payload *models.Error
}

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

Code gets the status code for the internal v1 capacity management put internal server error response

func (*InternalV1CapacityManagementPutInternalServerError) Error

func (*InternalV1CapacityManagementPutInternalServerError) GetPayload

func (*InternalV1CapacityManagementPutInternalServerError) IsClientError

IsClientError returns true when this internal v1 capacity management put internal server error response has a 4xx status code

func (*InternalV1CapacityManagementPutInternalServerError) IsCode

IsCode returns true when this internal v1 capacity management put internal server error response a status code equal to that given

func (*InternalV1CapacityManagementPutInternalServerError) IsRedirect

IsRedirect returns true when this internal v1 capacity management put internal server error response has a 3xx status code

func (*InternalV1CapacityManagementPutInternalServerError) IsServerError

IsServerError returns true when this internal v1 capacity management put internal server error response has a 5xx status code

func (*InternalV1CapacityManagementPutInternalServerError) IsSuccess

IsSuccess returns true when this internal v1 capacity management put internal server error response has a 2xx status code

func (*InternalV1CapacityManagementPutInternalServerError) 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

Code gets the status code for the internal v1 capacity management put o k response

func (*InternalV1CapacityManagementPutOK) Error

func (*InternalV1CapacityManagementPutOK) GetPayload

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

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

SetBody adds the body to the internal v1 capacity management put params

func (*InternalV1CapacityManagementPutParams) SetContext

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

WithBody adds the body to the internal v1 capacity management put params

func (*InternalV1CapacityManagementPutParams) WithContext

WithContext adds the context to the internal v1 capacity management put params

func (*InternalV1CapacityManagementPutParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the internal v1 capacity management put params

func (*InternalV1CapacityManagementPutParams) WithTimeout

WithTimeout adds the timeout to the internal v1 capacity management put params

func (*InternalV1CapacityManagementPutParams) WriteToRequest

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 {
	Payload *models.Error
}

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

Code gets the status code for the internal v1 capacity management put unauthorized response

func (*InternalV1CapacityManagementPutUnauthorized) Error

func (*InternalV1CapacityManagementPutUnauthorized) GetPayload

func (*InternalV1CapacityManagementPutUnauthorized) IsClientError

IsClientError returns true when this internal v1 capacity management put unauthorized response has a 4xx status code

func (*InternalV1CapacityManagementPutUnauthorized) IsCode

IsCode returns true when this internal v1 capacity management put unauthorized response a status code equal to that given

func (*InternalV1CapacityManagementPutUnauthorized) IsRedirect

IsRedirect returns true when this internal v1 capacity management put unauthorized response has a 3xx status code

func (*InternalV1CapacityManagementPutUnauthorized) IsServerError

IsServerError returns true when this internal v1 capacity management put unauthorized response has a 5xx status code

func (*InternalV1CapacityManagementPutUnauthorized) IsSuccess

IsSuccess returns true when this internal v1 capacity management put unauthorized response has a 2xx status code

func (*InternalV1CapacityManagementPutUnauthorized) String

Jump to

Keyboard shortcuts

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