Documentation
¶
Index ¶
- type Client
- func (a *Client) DeleteScaleSet(params *DeleteScaleSetParams, authInfo runtime.ClientAuthInfoWriter, ...) error
- func (a *Client) GetScaleSet(params *GetScaleSetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetScaleSetOK, error)
- func (a *Client) ListScalesets(params *ListScalesetsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListScalesetsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateScaleSet(params *UpdateScaleSetParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateScaleSetOK, error)
- type ClientOption
- type ClientService
- type DeleteScaleSetDefault
- func (o *DeleteScaleSetDefault) Code() int
- func (o *DeleteScaleSetDefault) Error() string
- func (o *DeleteScaleSetDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *DeleteScaleSetDefault) IsClientError() bool
- func (o *DeleteScaleSetDefault) IsCode(code int) bool
- func (o *DeleteScaleSetDefault) IsRedirect() bool
- func (o *DeleteScaleSetDefault) IsServerError() bool
- func (o *DeleteScaleSetDefault) IsSuccess() bool
- func (o *DeleteScaleSetDefault) String() string
- type DeleteScaleSetParams
- func NewDeleteScaleSetParams() *DeleteScaleSetParams
- func NewDeleteScaleSetParamsWithContext(ctx context.Context) *DeleteScaleSetParams
- func NewDeleteScaleSetParamsWithHTTPClient(client *http.Client) *DeleteScaleSetParams
- func NewDeleteScaleSetParamsWithTimeout(timeout time.Duration) *DeleteScaleSetParams
- func (o *DeleteScaleSetParams) SetContext(ctx context.Context)
- func (o *DeleteScaleSetParams) SetDefaults()
- func (o *DeleteScaleSetParams) SetHTTPClient(client *http.Client)
- func (o *DeleteScaleSetParams) SetScalesetID(scalesetID string)
- func (o *DeleteScaleSetParams) SetTimeout(timeout time.Duration)
- func (o *DeleteScaleSetParams) WithContext(ctx context.Context) *DeleteScaleSetParams
- func (o *DeleteScaleSetParams) WithDefaults() *DeleteScaleSetParams
- func (o *DeleteScaleSetParams) WithHTTPClient(client *http.Client) *DeleteScaleSetParams
- func (o *DeleteScaleSetParams) WithScalesetID(scalesetID string) *DeleteScaleSetParams
- func (o *DeleteScaleSetParams) WithTimeout(timeout time.Duration) *DeleteScaleSetParams
- func (o *DeleteScaleSetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteScaleSetReader
- type GetScaleSetDefault
- func (o *GetScaleSetDefault) Code() int
- func (o *GetScaleSetDefault) Error() string
- func (o *GetScaleSetDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *GetScaleSetDefault) IsClientError() bool
- func (o *GetScaleSetDefault) IsCode(code int) bool
- func (o *GetScaleSetDefault) IsRedirect() bool
- func (o *GetScaleSetDefault) IsServerError() bool
- func (o *GetScaleSetDefault) IsSuccess() bool
- func (o *GetScaleSetDefault) String() string
- type GetScaleSetOK
- func (o *GetScaleSetOK) Code() int
- func (o *GetScaleSetOK) Error() string
- func (o *GetScaleSetOK) GetPayload() garm_params.ScaleSet
- func (o *GetScaleSetOK) IsClientError() bool
- func (o *GetScaleSetOK) IsCode(code int) bool
- func (o *GetScaleSetOK) IsRedirect() bool
- func (o *GetScaleSetOK) IsServerError() bool
- func (o *GetScaleSetOK) IsSuccess() bool
- func (o *GetScaleSetOK) String() string
- type GetScaleSetParams
- func (o *GetScaleSetParams) SetContext(ctx context.Context)
- func (o *GetScaleSetParams) SetDefaults()
- func (o *GetScaleSetParams) SetHTTPClient(client *http.Client)
- func (o *GetScaleSetParams) SetScalesetID(scalesetID string)
- func (o *GetScaleSetParams) SetTimeout(timeout time.Duration)
- func (o *GetScaleSetParams) WithContext(ctx context.Context) *GetScaleSetParams
- func (o *GetScaleSetParams) WithDefaults() *GetScaleSetParams
- func (o *GetScaleSetParams) WithHTTPClient(client *http.Client) *GetScaleSetParams
- func (o *GetScaleSetParams) WithScalesetID(scalesetID string) *GetScaleSetParams
- func (o *GetScaleSetParams) WithTimeout(timeout time.Duration) *GetScaleSetParams
- func (o *GetScaleSetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetScaleSetReader
- type ListScalesetsDefault
- func (o *ListScalesetsDefault) Code() int
- func (o *ListScalesetsDefault) Error() string
- func (o *ListScalesetsDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *ListScalesetsDefault) IsClientError() bool
- func (o *ListScalesetsDefault) IsCode(code int) bool
- func (o *ListScalesetsDefault) IsRedirect() bool
- func (o *ListScalesetsDefault) IsServerError() bool
- func (o *ListScalesetsDefault) IsSuccess() bool
- func (o *ListScalesetsDefault) String() string
- type ListScalesetsOK
- func (o *ListScalesetsOK) Code() int
- func (o *ListScalesetsOK) Error() string
- func (o *ListScalesetsOK) GetPayload() garm_params.ScaleSets
- func (o *ListScalesetsOK) IsClientError() bool
- func (o *ListScalesetsOK) IsCode(code int) bool
- func (o *ListScalesetsOK) IsRedirect() bool
- func (o *ListScalesetsOK) IsServerError() bool
- func (o *ListScalesetsOK) IsSuccess() bool
- func (o *ListScalesetsOK) String() string
- type ListScalesetsParams
- func (o *ListScalesetsParams) SetContext(ctx context.Context)
- func (o *ListScalesetsParams) SetDefaults()
- func (o *ListScalesetsParams) SetHTTPClient(client *http.Client)
- func (o *ListScalesetsParams) SetTimeout(timeout time.Duration)
- func (o *ListScalesetsParams) WithContext(ctx context.Context) *ListScalesetsParams
- func (o *ListScalesetsParams) WithDefaults() *ListScalesetsParams
- func (o *ListScalesetsParams) WithHTTPClient(client *http.Client) *ListScalesetsParams
- func (o *ListScalesetsParams) WithTimeout(timeout time.Duration) *ListScalesetsParams
- func (o *ListScalesetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListScalesetsReader
- type UpdateScaleSetDefault
- func (o *UpdateScaleSetDefault) Code() int
- func (o *UpdateScaleSetDefault) Error() string
- func (o *UpdateScaleSetDefault) GetPayload() apiserver_params.APIErrorResponse
- func (o *UpdateScaleSetDefault) IsClientError() bool
- func (o *UpdateScaleSetDefault) IsCode(code int) bool
- func (o *UpdateScaleSetDefault) IsRedirect() bool
- func (o *UpdateScaleSetDefault) IsServerError() bool
- func (o *UpdateScaleSetDefault) IsSuccess() bool
- func (o *UpdateScaleSetDefault) String() string
- type UpdateScaleSetOK
- func (o *UpdateScaleSetOK) Code() int
- func (o *UpdateScaleSetOK) Error() string
- func (o *UpdateScaleSetOK) GetPayload() garm_params.ScaleSet
- func (o *UpdateScaleSetOK) IsClientError() bool
- func (o *UpdateScaleSetOK) IsCode(code int) bool
- func (o *UpdateScaleSetOK) IsRedirect() bool
- func (o *UpdateScaleSetOK) IsServerError() bool
- func (o *UpdateScaleSetOK) IsSuccess() bool
- func (o *UpdateScaleSetOK) String() string
- type UpdateScaleSetParams
- func NewUpdateScaleSetParams() *UpdateScaleSetParams
- func NewUpdateScaleSetParamsWithContext(ctx context.Context) *UpdateScaleSetParams
- func NewUpdateScaleSetParamsWithHTTPClient(client *http.Client) *UpdateScaleSetParams
- func NewUpdateScaleSetParamsWithTimeout(timeout time.Duration) *UpdateScaleSetParams
- func (o *UpdateScaleSetParams) SetBody(body garm_params.UpdateScaleSetParams)
- func (o *UpdateScaleSetParams) SetContext(ctx context.Context)
- func (o *UpdateScaleSetParams) SetDefaults()
- func (o *UpdateScaleSetParams) SetHTTPClient(client *http.Client)
- func (o *UpdateScaleSetParams) SetScalesetID(scalesetID string)
- func (o *UpdateScaleSetParams) SetTimeout(timeout time.Duration)
- func (o *UpdateScaleSetParams) WithBody(body garm_params.UpdateScaleSetParams) *UpdateScaleSetParams
- func (o *UpdateScaleSetParams) WithContext(ctx context.Context) *UpdateScaleSetParams
- func (o *UpdateScaleSetParams) WithDefaults() *UpdateScaleSetParams
- func (o *UpdateScaleSetParams) WithHTTPClient(client *http.Client) *UpdateScaleSetParams
- func (o *UpdateScaleSetParams) WithScalesetID(scalesetID string) *UpdateScaleSetParams
- func (o *UpdateScaleSetParams) WithTimeout(timeout time.Duration) *UpdateScaleSetParams
- func (o *UpdateScaleSetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateScaleSetReader
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 scalesets API
func (*Client) DeleteScaleSet ¶
func (a *Client) DeleteScaleSet(params *DeleteScaleSetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
DeleteScaleSet deletes scale set by ID
func (*Client) GetScaleSet ¶
func (a *Client) GetScaleSet(params *GetScaleSetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetScaleSetOK, error)
GetScaleSet gets scale set by ID
func (*Client) ListScalesets ¶
func (a *Client) ListScalesets(params *ListScalesetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListScalesetsOK, error)
ListScalesets lists all scalesets
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateScaleSet ¶
func (a *Client) UpdateScaleSet(params *UpdateScaleSetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateScaleSetOK, error)
UpdateScaleSet updates scale set by ID
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
DeleteScaleSet(params *DeleteScaleSetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) error
GetScaleSet(params *GetScaleSetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetScaleSetOK, error)
ListScalesets(params *ListScalesetsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListScalesetsOK, error)
UpdateScaleSet(params *UpdateScaleSetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateScaleSetOK, 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 scalesets API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new scalesets 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 scalesets 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 DeleteScaleSetDefault ¶
type DeleteScaleSetDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
DeleteScaleSetDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewDeleteScaleSetDefault ¶
func NewDeleteScaleSetDefault(code int) *DeleteScaleSetDefault
NewDeleteScaleSetDefault creates a DeleteScaleSetDefault with default headers values
func (*DeleteScaleSetDefault) Code ¶
func (o *DeleteScaleSetDefault) Code() int
Code gets the status code for the delete scale set default response
func (*DeleteScaleSetDefault) Error ¶
func (o *DeleteScaleSetDefault) Error() string
func (*DeleteScaleSetDefault) GetPayload ¶
func (o *DeleteScaleSetDefault) GetPayload() apiserver_params.APIErrorResponse
func (*DeleteScaleSetDefault) IsClientError ¶
func (o *DeleteScaleSetDefault) IsClientError() bool
IsClientError returns true when this delete scale set default response has a 4xx status code
func (*DeleteScaleSetDefault) IsCode ¶
func (o *DeleteScaleSetDefault) IsCode(code int) bool
IsCode returns true when this delete scale set default response a status code equal to that given
func (*DeleteScaleSetDefault) IsRedirect ¶
func (o *DeleteScaleSetDefault) IsRedirect() bool
IsRedirect returns true when this delete scale set default response has a 3xx status code
func (*DeleteScaleSetDefault) IsServerError ¶
func (o *DeleteScaleSetDefault) IsServerError() bool
IsServerError returns true when this delete scale set default response has a 5xx status code
func (*DeleteScaleSetDefault) IsSuccess ¶
func (o *DeleteScaleSetDefault) IsSuccess() bool
IsSuccess returns true when this delete scale set default response has a 2xx status code
func (*DeleteScaleSetDefault) String ¶
func (o *DeleteScaleSetDefault) String() string
type DeleteScaleSetParams ¶
type DeleteScaleSetParams struct {
/* ScalesetID.
ID of the scale set to delete.
*/
ScalesetID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DeleteScaleSetParams contains all the parameters to send to the API endpoint
for the delete scale set operation. Typically these are written to a http.Request.
func NewDeleteScaleSetParams ¶
func NewDeleteScaleSetParams() *DeleteScaleSetParams
NewDeleteScaleSetParams creates a new DeleteScaleSetParams 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 NewDeleteScaleSetParamsWithContext ¶
func NewDeleteScaleSetParamsWithContext(ctx context.Context) *DeleteScaleSetParams
NewDeleteScaleSetParamsWithContext creates a new DeleteScaleSetParams object with the ability to set a context for a request.
func NewDeleteScaleSetParamsWithHTTPClient ¶
func NewDeleteScaleSetParamsWithHTTPClient(client *http.Client) *DeleteScaleSetParams
NewDeleteScaleSetParamsWithHTTPClient creates a new DeleteScaleSetParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteScaleSetParamsWithTimeout ¶
func NewDeleteScaleSetParamsWithTimeout(timeout time.Duration) *DeleteScaleSetParams
NewDeleteScaleSetParamsWithTimeout creates a new DeleteScaleSetParams object with the ability to set a timeout on a request.
func (*DeleteScaleSetParams) SetContext ¶
func (o *DeleteScaleSetParams) SetContext(ctx context.Context)
SetContext adds the context to the delete scale set params
func (*DeleteScaleSetParams) SetDefaults ¶
func (o *DeleteScaleSetParams) SetDefaults()
SetDefaults hydrates default values in the delete scale set params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteScaleSetParams) SetHTTPClient ¶
func (o *DeleteScaleSetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete scale set params
func (*DeleteScaleSetParams) SetScalesetID ¶
func (o *DeleteScaleSetParams) SetScalesetID(scalesetID string)
SetScalesetID adds the scalesetId to the delete scale set params
func (*DeleteScaleSetParams) SetTimeout ¶
func (o *DeleteScaleSetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete scale set params
func (*DeleteScaleSetParams) WithContext ¶
func (o *DeleteScaleSetParams) WithContext(ctx context.Context) *DeleteScaleSetParams
WithContext adds the context to the delete scale set params
func (*DeleteScaleSetParams) WithDefaults ¶
func (o *DeleteScaleSetParams) WithDefaults() *DeleteScaleSetParams
WithDefaults hydrates default values in the delete scale set params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteScaleSetParams) WithHTTPClient ¶
func (o *DeleteScaleSetParams) WithHTTPClient(client *http.Client) *DeleteScaleSetParams
WithHTTPClient adds the HTTPClient to the delete scale set params
func (*DeleteScaleSetParams) WithScalesetID ¶
func (o *DeleteScaleSetParams) WithScalesetID(scalesetID string) *DeleteScaleSetParams
WithScalesetID adds the scalesetID to the delete scale set params
func (*DeleteScaleSetParams) WithTimeout ¶
func (o *DeleteScaleSetParams) WithTimeout(timeout time.Duration) *DeleteScaleSetParams
WithTimeout adds the timeout to the delete scale set params
func (*DeleteScaleSetParams) WriteToRequest ¶
func (o *DeleteScaleSetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteScaleSetReader ¶
type DeleteScaleSetReader struct {
// contains filtered or unexported fields
}
DeleteScaleSetReader is a Reader for the DeleteScaleSet structure.
func (*DeleteScaleSetReader) ReadResponse ¶
func (o *DeleteScaleSetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetScaleSetDefault ¶
type GetScaleSetDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
GetScaleSetDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewGetScaleSetDefault ¶
func NewGetScaleSetDefault(code int) *GetScaleSetDefault
NewGetScaleSetDefault creates a GetScaleSetDefault with default headers values
func (*GetScaleSetDefault) Code ¶
func (o *GetScaleSetDefault) Code() int
Code gets the status code for the get scale set default response
func (*GetScaleSetDefault) Error ¶
func (o *GetScaleSetDefault) Error() string
func (*GetScaleSetDefault) GetPayload ¶
func (o *GetScaleSetDefault) GetPayload() apiserver_params.APIErrorResponse
func (*GetScaleSetDefault) IsClientError ¶
func (o *GetScaleSetDefault) IsClientError() bool
IsClientError returns true when this get scale set default response has a 4xx status code
func (*GetScaleSetDefault) IsCode ¶
func (o *GetScaleSetDefault) IsCode(code int) bool
IsCode returns true when this get scale set default response a status code equal to that given
func (*GetScaleSetDefault) IsRedirect ¶
func (o *GetScaleSetDefault) IsRedirect() bool
IsRedirect returns true when this get scale set default response has a 3xx status code
func (*GetScaleSetDefault) IsServerError ¶
func (o *GetScaleSetDefault) IsServerError() bool
IsServerError returns true when this get scale set default response has a 5xx status code
func (*GetScaleSetDefault) IsSuccess ¶
func (o *GetScaleSetDefault) IsSuccess() bool
IsSuccess returns true when this get scale set default response has a 2xx status code
func (*GetScaleSetDefault) String ¶
func (o *GetScaleSetDefault) String() string
type GetScaleSetOK ¶
type GetScaleSetOK struct {
Payload garm_params.ScaleSet
}
GetScaleSetOK describes a response with status code 200, with default header values.
ScaleSet
func NewGetScaleSetOK ¶
func NewGetScaleSetOK() *GetScaleSetOK
NewGetScaleSetOK creates a GetScaleSetOK with default headers values
func (*GetScaleSetOK) Code ¶
func (o *GetScaleSetOK) Code() int
Code gets the status code for the get scale set o k response
func (*GetScaleSetOK) Error ¶
func (o *GetScaleSetOK) Error() string
func (*GetScaleSetOK) GetPayload ¶
func (o *GetScaleSetOK) GetPayload() garm_params.ScaleSet
func (*GetScaleSetOK) IsClientError ¶
func (o *GetScaleSetOK) IsClientError() bool
IsClientError returns true when this get scale set o k response has a 4xx status code
func (*GetScaleSetOK) IsCode ¶
func (o *GetScaleSetOK) IsCode(code int) bool
IsCode returns true when this get scale set o k response a status code equal to that given
func (*GetScaleSetOK) IsRedirect ¶
func (o *GetScaleSetOK) IsRedirect() bool
IsRedirect returns true when this get scale set o k response has a 3xx status code
func (*GetScaleSetOK) IsServerError ¶
func (o *GetScaleSetOK) IsServerError() bool
IsServerError returns true when this get scale set o k response has a 5xx status code
func (*GetScaleSetOK) IsSuccess ¶
func (o *GetScaleSetOK) IsSuccess() bool
IsSuccess returns true when this get scale set o k response has a 2xx status code
func (*GetScaleSetOK) String ¶
func (o *GetScaleSetOK) String() string
type GetScaleSetParams ¶
type GetScaleSetParams struct {
/* ScalesetID.
ID of the scale set to fetch.
*/
ScalesetID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetScaleSetParams contains all the parameters to send to the API endpoint
for the get scale set operation. Typically these are written to a http.Request.
func NewGetScaleSetParams ¶
func NewGetScaleSetParams() *GetScaleSetParams
NewGetScaleSetParams creates a new GetScaleSetParams 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 NewGetScaleSetParamsWithContext ¶
func NewGetScaleSetParamsWithContext(ctx context.Context) *GetScaleSetParams
NewGetScaleSetParamsWithContext creates a new GetScaleSetParams object with the ability to set a context for a request.
func NewGetScaleSetParamsWithHTTPClient ¶
func NewGetScaleSetParamsWithHTTPClient(client *http.Client) *GetScaleSetParams
NewGetScaleSetParamsWithHTTPClient creates a new GetScaleSetParams object with the ability to set a custom HTTPClient for a request.
func NewGetScaleSetParamsWithTimeout ¶
func NewGetScaleSetParamsWithTimeout(timeout time.Duration) *GetScaleSetParams
NewGetScaleSetParamsWithTimeout creates a new GetScaleSetParams object with the ability to set a timeout on a request.
func (*GetScaleSetParams) SetContext ¶
func (o *GetScaleSetParams) SetContext(ctx context.Context)
SetContext adds the context to the get scale set params
func (*GetScaleSetParams) SetDefaults ¶
func (o *GetScaleSetParams) SetDefaults()
SetDefaults hydrates default values in the get scale set params (not the query body).
All values with no default are reset to their zero value.
func (*GetScaleSetParams) SetHTTPClient ¶
func (o *GetScaleSetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get scale set params
func (*GetScaleSetParams) SetScalesetID ¶
func (o *GetScaleSetParams) SetScalesetID(scalesetID string)
SetScalesetID adds the scalesetId to the get scale set params
func (*GetScaleSetParams) SetTimeout ¶
func (o *GetScaleSetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get scale set params
func (*GetScaleSetParams) WithContext ¶
func (o *GetScaleSetParams) WithContext(ctx context.Context) *GetScaleSetParams
WithContext adds the context to the get scale set params
func (*GetScaleSetParams) WithDefaults ¶
func (o *GetScaleSetParams) WithDefaults() *GetScaleSetParams
WithDefaults hydrates default values in the get scale set params (not the query body).
All values with no default are reset to their zero value.
func (*GetScaleSetParams) WithHTTPClient ¶
func (o *GetScaleSetParams) WithHTTPClient(client *http.Client) *GetScaleSetParams
WithHTTPClient adds the HTTPClient to the get scale set params
func (*GetScaleSetParams) WithScalesetID ¶
func (o *GetScaleSetParams) WithScalesetID(scalesetID string) *GetScaleSetParams
WithScalesetID adds the scalesetID to the get scale set params
func (*GetScaleSetParams) WithTimeout ¶
func (o *GetScaleSetParams) WithTimeout(timeout time.Duration) *GetScaleSetParams
WithTimeout adds the timeout to the get scale set params
func (*GetScaleSetParams) WriteToRequest ¶
func (o *GetScaleSetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetScaleSetReader ¶
type GetScaleSetReader struct {
// contains filtered or unexported fields
}
GetScaleSetReader is a Reader for the GetScaleSet structure.
func (*GetScaleSetReader) ReadResponse ¶
func (o *GetScaleSetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListScalesetsDefault ¶
type ListScalesetsDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
ListScalesetsDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewListScalesetsDefault ¶
func NewListScalesetsDefault(code int) *ListScalesetsDefault
NewListScalesetsDefault creates a ListScalesetsDefault with default headers values
func (*ListScalesetsDefault) Code ¶
func (o *ListScalesetsDefault) Code() int
Code gets the status code for the list scalesets default response
func (*ListScalesetsDefault) Error ¶
func (o *ListScalesetsDefault) Error() string
func (*ListScalesetsDefault) GetPayload ¶
func (o *ListScalesetsDefault) GetPayload() apiserver_params.APIErrorResponse
func (*ListScalesetsDefault) IsClientError ¶
func (o *ListScalesetsDefault) IsClientError() bool
IsClientError returns true when this list scalesets default response has a 4xx status code
func (*ListScalesetsDefault) IsCode ¶
func (o *ListScalesetsDefault) IsCode(code int) bool
IsCode returns true when this list scalesets default response a status code equal to that given
func (*ListScalesetsDefault) IsRedirect ¶
func (o *ListScalesetsDefault) IsRedirect() bool
IsRedirect returns true when this list scalesets default response has a 3xx status code
func (*ListScalesetsDefault) IsServerError ¶
func (o *ListScalesetsDefault) IsServerError() bool
IsServerError returns true when this list scalesets default response has a 5xx status code
func (*ListScalesetsDefault) IsSuccess ¶
func (o *ListScalesetsDefault) IsSuccess() bool
IsSuccess returns true when this list scalesets default response has a 2xx status code
func (*ListScalesetsDefault) String ¶
func (o *ListScalesetsDefault) String() string
type ListScalesetsOK ¶
type ListScalesetsOK struct {
Payload garm_params.ScaleSets
}
ListScalesetsOK describes a response with status code 200, with default header values.
ScaleSets
func NewListScalesetsOK ¶
func NewListScalesetsOK() *ListScalesetsOK
NewListScalesetsOK creates a ListScalesetsOK with default headers values
func (*ListScalesetsOK) Code ¶
func (o *ListScalesetsOK) Code() int
Code gets the status code for the list scalesets o k response
func (*ListScalesetsOK) Error ¶
func (o *ListScalesetsOK) Error() string
func (*ListScalesetsOK) GetPayload ¶
func (o *ListScalesetsOK) GetPayload() garm_params.ScaleSets
func (*ListScalesetsOK) IsClientError ¶
func (o *ListScalesetsOK) IsClientError() bool
IsClientError returns true when this list scalesets o k response has a 4xx status code
func (*ListScalesetsOK) IsCode ¶
func (o *ListScalesetsOK) IsCode(code int) bool
IsCode returns true when this list scalesets o k response a status code equal to that given
func (*ListScalesetsOK) IsRedirect ¶
func (o *ListScalesetsOK) IsRedirect() bool
IsRedirect returns true when this list scalesets o k response has a 3xx status code
func (*ListScalesetsOK) IsServerError ¶
func (o *ListScalesetsOK) IsServerError() bool
IsServerError returns true when this list scalesets o k response has a 5xx status code
func (*ListScalesetsOK) IsSuccess ¶
func (o *ListScalesetsOK) IsSuccess() bool
IsSuccess returns true when this list scalesets o k response has a 2xx status code
func (*ListScalesetsOK) String ¶
func (o *ListScalesetsOK) String() string
type ListScalesetsParams ¶
type ListScalesetsParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListScalesetsParams contains all the parameters to send to the API endpoint
for the list scalesets operation. Typically these are written to a http.Request.
func NewListScalesetsParams ¶
func NewListScalesetsParams() *ListScalesetsParams
NewListScalesetsParams creates a new ListScalesetsParams 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 NewListScalesetsParamsWithContext ¶
func NewListScalesetsParamsWithContext(ctx context.Context) *ListScalesetsParams
NewListScalesetsParamsWithContext creates a new ListScalesetsParams object with the ability to set a context for a request.
func NewListScalesetsParamsWithHTTPClient ¶
func NewListScalesetsParamsWithHTTPClient(client *http.Client) *ListScalesetsParams
NewListScalesetsParamsWithHTTPClient creates a new ListScalesetsParams object with the ability to set a custom HTTPClient for a request.
func NewListScalesetsParamsWithTimeout ¶
func NewListScalesetsParamsWithTimeout(timeout time.Duration) *ListScalesetsParams
NewListScalesetsParamsWithTimeout creates a new ListScalesetsParams object with the ability to set a timeout on a request.
func (*ListScalesetsParams) SetContext ¶
func (o *ListScalesetsParams) SetContext(ctx context.Context)
SetContext adds the context to the list scalesets params
func (*ListScalesetsParams) SetDefaults ¶
func (o *ListScalesetsParams) SetDefaults()
SetDefaults hydrates default values in the list scalesets params (not the query body).
All values with no default are reset to their zero value.
func (*ListScalesetsParams) SetHTTPClient ¶
func (o *ListScalesetsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list scalesets params
func (*ListScalesetsParams) SetTimeout ¶
func (o *ListScalesetsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list scalesets params
func (*ListScalesetsParams) WithContext ¶
func (o *ListScalesetsParams) WithContext(ctx context.Context) *ListScalesetsParams
WithContext adds the context to the list scalesets params
func (*ListScalesetsParams) WithDefaults ¶
func (o *ListScalesetsParams) WithDefaults() *ListScalesetsParams
WithDefaults hydrates default values in the list scalesets params (not the query body).
All values with no default are reset to their zero value.
func (*ListScalesetsParams) WithHTTPClient ¶
func (o *ListScalesetsParams) WithHTTPClient(client *http.Client) *ListScalesetsParams
WithHTTPClient adds the HTTPClient to the list scalesets params
func (*ListScalesetsParams) WithTimeout ¶
func (o *ListScalesetsParams) WithTimeout(timeout time.Duration) *ListScalesetsParams
WithTimeout adds the timeout to the list scalesets params
func (*ListScalesetsParams) WriteToRequest ¶
func (o *ListScalesetsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListScalesetsReader ¶
type ListScalesetsReader struct {
// contains filtered or unexported fields
}
ListScalesetsReader is a Reader for the ListScalesets structure.
func (*ListScalesetsReader) ReadResponse ¶
func (o *ListScalesetsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateScaleSetDefault ¶
type UpdateScaleSetDefault struct {
Payload apiserver_params.APIErrorResponse
// contains filtered or unexported fields
}
UpdateScaleSetDefault describes a response with status code -1, with default header values.
APIErrorResponse
func NewUpdateScaleSetDefault ¶
func NewUpdateScaleSetDefault(code int) *UpdateScaleSetDefault
NewUpdateScaleSetDefault creates a UpdateScaleSetDefault with default headers values
func (*UpdateScaleSetDefault) Code ¶
func (o *UpdateScaleSetDefault) Code() int
Code gets the status code for the update scale set default response
func (*UpdateScaleSetDefault) Error ¶
func (o *UpdateScaleSetDefault) Error() string
func (*UpdateScaleSetDefault) GetPayload ¶
func (o *UpdateScaleSetDefault) GetPayload() apiserver_params.APIErrorResponse
func (*UpdateScaleSetDefault) IsClientError ¶
func (o *UpdateScaleSetDefault) IsClientError() bool
IsClientError returns true when this update scale set default response has a 4xx status code
func (*UpdateScaleSetDefault) IsCode ¶
func (o *UpdateScaleSetDefault) IsCode(code int) bool
IsCode returns true when this update scale set default response a status code equal to that given
func (*UpdateScaleSetDefault) IsRedirect ¶
func (o *UpdateScaleSetDefault) IsRedirect() bool
IsRedirect returns true when this update scale set default response has a 3xx status code
func (*UpdateScaleSetDefault) IsServerError ¶
func (o *UpdateScaleSetDefault) IsServerError() bool
IsServerError returns true when this update scale set default response has a 5xx status code
func (*UpdateScaleSetDefault) IsSuccess ¶
func (o *UpdateScaleSetDefault) IsSuccess() bool
IsSuccess returns true when this update scale set default response has a 2xx status code
func (*UpdateScaleSetDefault) String ¶
func (o *UpdateScaleSetDefault) String() string
type UpdateScaleSetOK ¶
type UpdateScaleSetOK struct {
Payload garm_params.ScaleSet
}
UpdateScaleSetOK describes a response with status code 200, with default header values.
ScaleSet
func NewUpdateScaleSetOK ¶
func NewUpdateScaleSetOK() *UpdateScaleSetOK
NewUpdateScaleSetOK creates a UpdateScaleSetOK with default headers values
func (*UpdateScaleSetOK) Code ¶
func (o *UpdateScaleSetOK) Code() int
Code gets the status code for the update scale set o k response
func (*UpdateScaleSetOK) Error ¶
func (o *UpdateScaleSetOK) Error() string
func (*UpdateScaleSetOK) GetPayload ¶
func (o *UpdateScaleSetOK) GetPayload() garm_params.ScaleSet
func (*UpdateScaleSetOK) IsClientError ¶
func (o *UpdateScaleSetOK) IsClientError() bool
IsClientError returns true when this update scale set o k response has a 4xx status code
func (*UpdateScaleSetOK) IsCode ¶
func (o *UpdateScaleSetOK) IsCode(code int) bool
IsCode returns true when this update scale set o k response a status code equal to that given
func (*UpdateScaleSetOK) IsRedirect ¶
func (o *UpdateScaleSetOK) IsRedirect() bool
IsRedirect returns true when this update scale set o k response has a 3xx status code
func (*UpdateScaleSetOK) IsServerError ¶
func (o *UpdateScaleSetOK) IsServerError() bool
IsServerError returns true when this update scale set o k response has a 5xx status code
func (*UpdateScaleSetOK) IsSuccess ¶
func (o *UpdateScaleSetOK) IsSuccess() bool
IsSuccess returns true when this update scale set o k response has a 2xx status code
func (*UpdateScaleSetOK) String ¶
func (o *UpdateScaleSetOK) String() string
type UpdateScaleSetParams ¶
type UpdateScaleSetParams struct {
/* Body.
Parameters to update the scale set with.
*/
Body garm_params.UpdateScaleSetParams
/* ScalesetID.
ID of the scale set to update.
*/
ScalesetID string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
UpdateScaleSetParams contains all the parameters to send to the API endpoint
for the update scale set operation. Typically these are written to a http.Request.
func NewUpdateScaleSetParams ¶
func NewUpdateScaleSetParams() *UpdateScaleSetParams
NewUpdateScaleSetParams creates a new UpdateScaleSetParams 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 NewUpdateScaleSetParamsWithContext ¶
func NewUpdateScaleSetParamsWithContext(ctx context.Context) *UpdateScaleSetParams
NewUpdateScaleSetParamsWithContext creates a new UpdateScaleSetParams object with the ability to set a context for a request.
func NewUpdateScaleSetParamsWithHTTPClient ¶
func NewUpdateScaleSetParamsWithHTTPClient(client *http.Client) *UpdateScaleSetParams
NewUpdateScaleSetParamsWithHTTPClient creates a new UpdateScaleSetParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateScaleSetParamsWithTimeout ¶
func NewUpdateScaleSetParamsWithTimeout(timeout time.Duration) *UpdateScaleSetParams
NewUpdateScaleSetParamsWithTimeout creates a new UpdateScaleSetParams object with the ability to set a timeout on a request.
func (*UpdateScaleSetParams) SetBody ¶
func (o *UpdateScaleSetParams) SetBody(body garm_params.UpdateScaleSetParams)
SetBody adds the body to the update scale set params
func (*UpdateScaleSetParams) SetContext ¶
func (o *UpdateScaleSetParams) SetContext(ctx context.Context)
SetContext adds the context to the update scale set params
func (*UpdateScaleSetParams) SetDefaults ¶
func (o *UpdateScaleSetParams) SetDefaults()
SetDefaults hydrates default values in the update scale set params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateScaleSetParams) SetHTTPClient ¶
func (o *UpdateScaleSetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update scale set params
func (*UpdateScaleSetParams) SetScalesetID ¶
func (o *UpdateScaleSetParams) SetScalesetID(scalesetID string)
SetScalesetID adds the scalesetId to the update scale set params
func (*UpdateScaleSetParams) SetTimeout ¶
func (o *UpdateScaleSetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update scale set params
func (*UpdateScaleSetParams) WithBody ¶
func (o *UpdateScaleSetParams) WithBody(body garm_params.UpdateScaleSetParams) *UpdateScaleSetParams
WithBody adds the body to the update scale set params
func (*UpdateScaleSetParams) WithContext ¶
func (o *UpdateScaleSetParams) WithContext(ctx context.Context) *UpdateScaleSetParams
WithContext adds the context to the update scale set params
func (*UpdateScaleSetParams) WithDefaults ¶
func (o *UpdateScaleSetParams) WithDefaults() *UpdateScaleSetParams
WithDefaults hydrates default values in the update scale set params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateScaleSetParams) WithHTTPClient ¶
func (o *UpdateScaleSetParams) WithHTTPClient(client *http.Client) *UpdateScaleSetParams
WithHTTPClient adds the HTTPClient to the update scale set params
func (*UpdateScaleSetParams) WithScalesetID ¶
func (o *UpdateScaleSetParams) WithScalesetID(scalesetID string) *UpdateScaleSetParams
WithScalesetID adds the scalesetID to the update scale set params
func (*UpdateScaleSetParams) WithTimeout ¶
func (o *UpdateScaleSetParams) WithTimeout(timeout time.Duration) *UpdateScaleSetParams
WithTimeout adds the timeout to the update scale set params
func (*UpdateScaleSetParams) WriteToRequest ¶
func (o *UpdateScaleSetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateScaleSetReader ¶
type UpdateScaleSetReader struct {
// contains filtered or unexported fields
}
UpdateScaleSetReader is a Reader for the UpdateScaleSet structure.
func (*UpdateScaleSetReader) ReadResponse ¶
func (o *UpdateScaleSetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.