cpu_generator

package
v0.0.0-...-8fe3866 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkCreateCPUGeneratorsBody

type BulkCreateCPUGeneratorsBody struct {

	// List of CPU generators
	// Required: true
	// Min Items: 1
	Items []*models.CPUGenerator `json:"items"`
}

BulkCreateCPUGeneratorsBody BulkCreateCpuGeneratorsRequest // // Parameters for the bulk create operation swagger:model BulkCreateCPUGeneratorsBody

func (*BulkCreateCPUGeneratorsBody) ContextValidate

func (o *BulkCreateCPUGeneratorsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this bulk create CPU generators body based on the context it is used

func (*BulkCreateCPUGeneratorsBody) MarshalBinary

func (o *BulkCreateCPUGeneratorsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkCreateCPUGeneratorsBody) UnmarshalBinary

func (o *BulkCreateCPUGeneratorsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkCreateCPUGeneratorsBody) Validate

func (o *BulkCreateCPUGeneratorsBody) Validate(formats strfmt.Registry) error

Validate validates this bulk create CPU generators body

type BulkCreateCPUGeneratorsOK

type BulkCreateCPUGeneratorsOK struct {
	Payload []*models.CPUGenerator
}
BulkCreateCPUGeneratorsOK describes a response with status code 200, with default header values.

Success

func NewBulkCreateCPUGeneratorsOK

func NewBulkCreateCPUGeneratorsOK() *BulkCreateCPUGeneratorsOK

NewBulkCreateCPUGeneratorsOK creates a BulkCreateCPUGeneratorsOK with default headers values

func (*BulkCreateCPUGeneratorsOK) Error

func (o *BulkCreateCPUGeneratorsOK) Error() string

func (*BulkCreateCPUGeneratorsOK) GetPayload

func (o *BulkCreateCPUGeneratorsOK) GetPayload() []*models.CPUGenerator

type BulkCreateCPUGeneratorsParams

type BulkCreateCPUGeneratorsParams struct {

	/* Create.

	   Bulk creation
	*/
	Create BulkCreateCPUGeneratorsBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BulkCreateCPUGeneratorsParams contains all the parameters to send to the API endpoint

for the bulk create Cpu generators operation.

Typically these are written to a http.Request.

func NewBulkCreateCPUGeneratorsParams

func NewBulkCreateCPUGeneratorsParams() *BulkCreateCPUGeneratorsParams

NewBulkCreateCPUGeneratorsParams creates a new BulkCreateCPUGeneratorsParams 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 NewBulkCreateCPUGeneratorsParamsWithContext

func NewBulkCreateCPUGeneratorsParamsWithContext(ctx context.Context) *BulkCreateCPUGeneratorsParams

NewBulkCreateCPUGeneratorsParamsWithContext creates a new BulkCreateCPUGeneratorsParams object with the ability to set a context for a request.

func NewBulkCreateCPUGeneratorsParamsWithHTTPClient

func NewBulkCreateCPUGeneratorsParamsWithHTTPClient(client *http.Client) *BulkCreateCPUGeneratorsParams

NewBulkCreateCPUGeneratorsParamsWithHTTPClient creates a new BulkCreateCPUGeneratorsParams object with the ability to set a custom HTTPClient for a request.

func NewBulkCreateCPUGeneratorsParamsWithTimeout

func NewBulkCreateCPUGeneratorsParamsWithTimeout(timeout time.Duration) *BulkCreateCPUGeneratorsParams

NewBulkCreateCPUGeneratorsParamsWithTimeout creates a new BulkCreateCPUGeneratorsParams object with the ability to set a timeout on a request.

func (*BulkCreateCPUGeneratorsParams) SetContext

func (o *BulkCreateCPUGeneratorsParams) SetContext(ctx context.Context)

SetContext adds the context to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) SetCreate

SetCreate adds the create to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) SetDefaults

func (o *BulkCreateCPUGeneratorsParams) SetDefaults()

SetDefaults hydrates default values in the bulk create Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkCreateCPUGeneratorsParams) SetHTTPClient

func (o *BulkCreateCPUGeneratorsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) SetTimeout

func (o *BulkCreateCPUGeneratorsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) WithContext

WithContext adds the context to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) WithCreate

WithCreate adds the create to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) WithDefaults

WithDefaults hydrates default values in the bulk create Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkCreateCPUGeneratorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) WithTimeout

WithTimeout adds the timeout to the bulk create Cpu generators params

func (*BulkCreateCPUGeneratorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkCreateCPUGeneratorsReader

type BulkCreateCPUGeneratorsReader struct {
	// contains filtered or unexported fields
}

BulkCreateCPUGeneratorsReader is a Reader for the BulkCreateCPUGenerators structure.

func (*BulkCreateCPUGeneratorsReader) ReadResponse

func (o *BulkCreateCPUGeneratorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type BulkDeleteCPUGeneratorsBody

type BulkDeleteCPUGeneratorsBody struct {

	// List of CPU generator ids
	// Required: true
	// Min Items: 1
	Ids []string `json:"ids"`
}

BulkDeleteCPUGeneratorsBody BulkDeleteCpuGeneratorsRequest // // Parameters for the bulk delete operation swagger:model BulkDeleteCPUGeneratorsBody

func (*BulkDeleteCPUGeneratorsBody) ContextValidate

func (o *BulkDeleteCPUGeneratorsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bulk delete CPU generators body based on context it is used

func (*BulkDeleteCPUGeneratorsBody) MarshalBinary

func (o *BulkDeleteCPUGeneratorsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkDeleteCPUGeneratorsBody) UnmarshalBinary

func (o *BulkDeleteCPUGeneratorsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkDeleteCPUGeneratorsBody) Validate

func (o *BulkDeleteCPUGeneratorsBody) Validate(formats strfmt.Registry) error

Validate validates this bulk delete CPU generators body

type BulkDeleteCPUGeneratorsNoContent

type BulkDeleteCPUGeneratorsNoContent struct {
}
BulkDeleteCPUGeneratorsNoContent describes a response with status code 204, with default header values.

No Content

func NewBulkDeleteCPUGeneratorsNoContent

func NewBulkDeleteCPUGeneratorsNoContent() *BulkDeleteCPUGeneratorsNoContent

NewBulkDeleteCPUGeneratorsNoContent creates a BulkDeleteCPUGeneratorsNoContent with default headers values

func (*BulkDeleteCPUGeneratorsNoContent) Error

type BulkDeleteCPUGeneratorsParams

type BulkDeleteCPUGeneratorsParams struct {

	/* Delete.

	   Bulk delete
	*/
	Delete BulkDeleteCPUGeneratorsBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BulkDeleteCPUGeneratorsParams contains all the parameters to send to the API endpoint

for the bulk delete Cpu generators operation.

Typically these are written to a http.Request.

func NewBulkDeleteCPUGeneratorsParams

func NewBulkDeleteCPUGeneratorsParams() *BulkDeleteCPUGeneratorsParams

NewBulkDeleteCPUGeneratorsParams creates a new BulkDeleteCPUGeneratorsParams 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 NewBulkDeleteCPUGeneratorsParamsWithContext

func NewBulkDeleteCPUGeneratorsParamsWithContext(ctx context.Context) *BulkDeleteCPUGeneratorsParams

NewBulkDeleteCPUGeneratorsParamsWithContext creates a new BulkDeleteCPUGeneratorsParams object with the ability to set a context for a request.

func NewBulkDeleteCPUGeneratorsParamsWithHTTPClient

func NewBulkDeleteCPUGeneratorsParamsWithHTTPClient(client *http.Client) *BulkDeleteCPUGeneratorsParams

NewBulkDeleteCPUGeneratorsParamsWithHTTPClient creates a new BulkDeleteCPUGeneratorsParams object with the ability to set a custom HTTPClient for a request.

func NewBulkDeleteCPUGeneratorsParamsWithTimeout

func NewBulkDeleteCPUGeneratorsParamsWithTimeout(timeout time.Duration) *BulkDeleteCPUGeneratorsParams

NewBulkDeleteCPUGeneratorsParamsWithTimeout creates a new BulkDeleteCPUGeneratorsParams object with the ability to set a timeout on a request.

func (*BulkDeleteCPUGeneratorsParams) SetContext

func (o *BulkDeleteCPUGeneratorsParams) SetContext(ctx context.Context)

SetContext adds the context to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) SetDefaults

func (o *BulkDeleteCPUGeneratorsParams) SetDefaults()

SetDefaults hydrates default values in the bulk delete Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkDeleteCPUGeneratorsParams) SetDelete

SetDelete adds the delete to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) SetHTTPClient

func (o *BulkDeleteCPUGeneratorsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) SetTimeout

func (o *BulkDeleteCPUGeneratorsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) WithContext

WithContext adds the context to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) WithDefaults

WithDefaults hydrates default values in the bulk delete Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkDeleteCPUGeneratorsParams) WithDelete

WithDelete adds the delete to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) WithTimeout

WithTimeout adds the timeout to the bulk delete Cpu generators params

func (*BulkDeleteCPUGeneratorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkDeleteCPUGeneratorsReader

type BulkDeleteCPUGeneratorsReader struct {
	// contains filtered or unexported fields
}

BulkDeleteCPUGeneratorsReader is a Reader for the BulkDeleteCPUGenerators structure.

func (*BulkDeleteCPUGeneratorsReader) ReadResponse

func (o *BulkDeleteCPUGeneratorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type BulkStartCPUGeneratorsOK

type BulkStartCPUGeneratorsOK struct {
	Payload []*models.CPUGeneratorResult
}
BulkStartCPUGeneratorsOK describes a response with status code 200, with default header values.

Success

func NewBulkStartCPUGeneratorsOK

func NewBulkStartCPUGeneratorsOK() *BulkStartCPUGeneratorsOK

NewBulkStartCPUGeneratorsOK creates a BulkStartCPUGeneratorsOK with default headers values

func (*BulkStartCPUGeneratorsOK) Error

func (o *BulkStartCPUGeneratorsOK) Error() string

func (*BulkStartCPUGeneratorsOK) GetPayload

type BulkStartCPUGeneratorsParams

type BulkStartCPUGeneratorsParams struct {

	/* BulkStart.

	   Bulk start
	*/
	BulkStart *models.BulkStartCPUGeneratorsRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BulkStartCPUGeneratorsParams contains all the parameters to send to the API endpoint

for the bulk start Cpu generators operation.

Typically these are written to a http.Request.

func NewBulkStartCPUGeneratorsParams

func NewBulkStartCPUGeneratorsParams() *BulkStartCPUGeneratorsParams

NewBulkStartCPUGeneratorsParams creates a new BulkStartCPUGeneratorsParams 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 NewBulkStartCPUGeneratorsParamsWithContext

func NewBulkStartCPUGeneratorsParamsWithContext(ctx context.Context) *BulkStartCPUGeneratorsParams

NewBulkStartCPUGeneratorsParamsWithContext creates a new BulkStartCPUGeneratorsParams object with the ability to set a context for a request.

func NewBulkStartCPUGeneratorsParamsWithHTTPClient

func NewBulkStartCPUGeneratorsParamsWithHTTPClient(client *http.Client) *BulkStartCPUGeneratorsParams

NewBulkStartCPUGeneratorsParamsWithHTTPClient creates a new BulkStartCPUGeneratorsParams object with the ability to set a custom HTTPClient for a request.

func NewBulkStartCPUGeneratorsParamsWithTimeout

func NewBulkStartCPUGeneratorsParamsWithTimeout(timeout time.Duration) *BulkStartCPUGeneratorsParams

NewBulkStartCPUGeneratorsParamsWithTimeout creates a new BulkStartCPUGeneratorsParams object with the ability to set a timeout on a request.

func (*BulkStartCPUGeneratorsParams) SetBulkStart

SetBulkStart adds the bulkStart to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) SetContext

func (o *BulkStartCPUGeneratorsParams) SetContext(ctx context.Context)

SetContext adds the context to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) SetDefaults

func (o *BulkStartCPUGeneratorsParams) SetDefaults()

SetDefaults hydrates default values in the bulk start Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkStartCPUGeneratorsParams) SetHTTPClient

func (o *BulkStartCPUGeneratorsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) SetTimeout

func (o *BulkStartCPUGeneratorsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) WithBulkStart

WithBulkStart adds the bulkStart to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) WithContext

WithContext adds the context to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) WithDefaults

WithDefaults hydrates default values in the bulk start Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkStartCPUGeneratorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) WithTimeout

WithTimeout adds the timeout to the bulk start Cpu generators params

func (*BulkStartCPUGeneratorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkStartCPUGeneratorsReader

type BulkStartCPUGeneratorsReader struct {
	// contains filtered or unexported fields
}

BulkStartCPUGeneratorsReader is a Reader for the BulkStartCPUGenerators structure.

func (*BulkStartCPUGeneratorsReader) ReadResponse

func (o *BulkStartCPUGeneratorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type BulkStopCPUGeneratorsBody

type BulkStopCPUGeneratorsBody struct {

	// List of CPU generator identifiers
	// Required: true
	// Min Items: 1
	Ids []string `json:"ids"`
}

BulkStopCPUGeneratorsBody BulkStopCpuGeneratorsRequest // // Parameters for the bulk stop operation swagger:model BulkStopCPUGeneratorsBody

func (*BulkStopCPUGeneratorsBody) ContextValidate

func (o *BulkStopCPUGeneratorsBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this bulk stop CPU generators body based on context it is used

func (*BulkStopCPUGeneratorsBody) MarshalBinary

func (o *BulkStopCPUGeneratorsBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*BulkStopCPUGeneratorsBody) UnmarshalBinary

func (o *BulkStopCPUGeneratorsBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*BulkStopCPUGeneratorsBody) Validate

func (o *BulkStopCPUGeneratorsBody) Validate(formats strfmt.Registry) error

Validate validates this bulk stop CPU generators body

type BulkStopCPUGeneratorsNoContent

type BulkStopCPUGeneratorsNoContent struct {
}
BulkStopCPUGeneratorsNoContent describes a response with status code 204, with default header values.

No Content

func NewBulkStopCPUGeneratorsNoContent

func NewBulkStopCPUGeneratorsNoContent() *BulkStopCPUGeneratorsNoContent

NewBulkStopCPUGeneratorsNoContent creates a BulkStopCPUGeneratorsNoContent with default headers values

func (*BulkStopCPUGeneratorsNoContent) Error

type BulkStopCPUGeneratorsParams

type BulkStopCPUGeneratorsParams struct {

	/* BulkStop.

	   Bulk stop
	*/
	BulkStop BulkStopCPUGeneratorsBody

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

BulkStopCPUGeneratorsParams contains all the parameters to send to the API endpoint

for the bulk stop Cpu generators operation.

Typically these are written to a http.Request.

func NewBulkStopCPUGeneratorsParams

func NewBulkStopCPUGeneratorsParams() *BulkStopCPUGeneratorsParams

NewBulkStopCPUGeneratorsParams creates a new BulkStopCPUGeneratorsParams 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 NewBulkStopCPUGeneratorsParamsWithContext

func NewBulkStopCPUGeneratorsParamsWithContext(ctx context.Context) *BulkStopCPUGeneratorsParams

NewBulkStopCPUGeneratorsParamsWithContext creates a new BulkStopCPUGeneratorsParams object with the ability to set a context for a request.

func NewBulkStopCPUGeneratorsParamsWithHTTPClient

func NewBulkStopCPUGeneratorsParamsWithHTTPClient(client *http.Client) *BulkStopCPUGeneratorsParams

NewBulkStopCPUGeneratorsParamsWithHTTPClient creates a new BulkStopCPUGeneratorsParams object with the ability to set a custom HTTPClient for a request.

func NewBulkStopCPUGeneratorsParamsWithTimeout

func NewBulkStopCPUGeneratorsParamsWithTimeout(timeout time.Duration) *BulkStopCPUGeneratorsParams

NewBulkStopCPUGeneratorsParamsWithTimeout creates a new BulkStopCPUGeneratorsParams object with the ability to set a timeout on a request.

func (*BulkStopCPUGeneratorsParams) SetBulkStop

func (o *BulkStopCPUGeneratorsParams) SetBulkStop(bulkStop BulkStopCPUGeneratorsBody)

SetBulkStop adds the bulkStop to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) SetContext

func (o *BulkStopCPUGeneratorsParams) SetContext(ctx context.Context)

SetContext adds the context to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) SetDefaults

func (o *BulkStopCPUGeneratorsParams) SetDefaults()

SetDefaults hydrates default values in the bulk stop Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkStopCPUGeneratorsParams) SetHTTPClient

func (o *BulkStopCPUGeneratorsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) SetTimeout

func (o *BulkStopCPUGeneratorsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) WithBulkStop

WithBulkStop adds the bulkStop to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) WithContext

WithContext adds the context to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) WithDefaults

WithDefaults hydrates default values in the bulk stop Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*BulkStopCPUGeneratorsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) WithTimeout

WithTimeout adds the timeout to the bulk stop Cpu generators params

func (*BulkStopCPUGeneratorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkStopCPUGeneratorsReader

type BulkStopCPUGeneratorsReader struct {
	// contains filtered or unexported fields
}

BulkStopCPUGeneratorsReader is a Reader for the BulkStopCPUGenerators structure.

func (*BulkStopCPUGeneratorsReader) ReadResponse

func (o *BulkStopCPUGeneratorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for cpu generator API

func (*Client) BulkCreateCPUGenerators

func (a *Client) BulkCreateCPUGenerators(params *BulkCreateCPUGeneratorsParams, opts ...ClientOption) (*BulkCreateCPUGeneratorsOK, error)
BulkCreateCPUGenerators bulks create CPU generators

Create multiple CPU generators. Requests are processed in an

all-or-nothing manner, i.e. a single CPU generator creation failure causes all creations for this request to fail.

func (*Client) BulkDeleteCPUGenerators

func (a *Client) BulkDeleteCPUGenerators(params *BulkDeleteCPUGeneratorsParams, opts ...ClientOption) (*BulkDeleteCPUGeneratorsNoContent, error)
BulkDeleteCPUGenerators bulks delete CPU generators

Delete multiple CPU generators in a best-effort manner. Non-existant CPU generators ids

do not cause errors. Idempotent.

func (*Client) BulkStartCPUGenerators

func (a *Client) BulkStartCPUGenerators(params *BulkStartCPUGeneratorsParams, opts ...ClientOption) (*BulkStartCPUGeneratorsOK, error)

BulkStartCPUGenerators tells multiple CPU generators to start

Start multiple CPU generators.

func (*Client) BulkStopCPUGenerators

func (a *Client) BulkStopCPUGenerators(params *BulkStopCPUGeneratorsParams, opts ...ClientOption) (*BulkStopCPUGeneratorsNoContent, error)

BulkStopCPUGenerators bulks stop CPU generators

Best-effort stop multiple CPU generators. Non-existent CPU generator ids do not cause errors. Idempotent.

func (*Client) CreateCPUGenerator

func (a *Client) CreateCPUGenerator(params *CreateCPUGeneratorParams, opts ...ClientOption) (*CreateCPUGeneratorCreated, error)

CreateCPUGenerator creates a CPU generator

Create a new CPU generator

func (*Client) DeleteCPUGenerator

func (a *Client) DeleteCPUGenerator(params *DeleteCPUGeneratorParams, opts ...ClientOption) (*DeleteCPUGeneratorNoContent, error)

DeleteCPUGenerator deletes a CPU generator

Deletes an existing CPU generator. Idempotent.

func (*Client) DeleteCPUGeneratorResult

func (a *Client) DeleteCPUGeneratorResult(params *DeleteCPUGeneratorResultParams, opts ...ClientOption) (*DeleteCPUGeneratorResultNoContent, error)

DeleteCPUGeneratorResult deletes results from a CPU generator idempotent

func (*Client) GetCPUGenerator

func (a *Client) GetCPUGenerator(params *GetCPUGeneratorParams, opts ...ClientOption) (*GetCPUGeneratorOK, error)

GetCPUGenerator gets a CPU generator

Returns a CPU generator, by id.

func (*Client) GetCPUGeneratorResult

func (a *Client) GetCPUGeneratorResult(params *GetCPUGeneratorResultParams, opts ...ClientOption) (*GetCPUGeneratorResultOK, error)

GetCPUGeneratorResult gets a result from a CPU generator

Returns results from a CPU generator by result id.

func (*Client) GetCPUInfo

func (a *Client) GetCPUInfo(params *GetCPUInfoParams, opts ...ClientOption) (*GetCPUInfoOK, error)

GetCPUInfo gets a CPU info

The `cpu-info` endpoint returns CPU system info

func (*Client) ListCPUGeneratorResults

func (a *Client) ListCPUGeneratorResults(params *ListCPUGeneratorResultsParams, opts ...ClientOption) (*ListCPUGeneratorResultsOK, error)

ListCPUGeneratorResults lists CPU generator results

The `cpu-generator-results` endpoint returns all of the results produced by running CPU generators.

func (*Client) ListCPUGenerators

func (a *Client) ListCPUGenerators(params *ListCPUGeneratorsParams, opts ...ClientOption) (*ListCPUGeneratorsOK, error)

ListCPUGenerators lists CPU generators

The `cpu-generators` endpoint returns all of the configured CPU generators.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) StartCPUGenerator

func (a *Client) StartCPUGenerator(params *StartCPUGeneratorParams, opts ...ClientOption) (*StartCPUGeneratorCreated, error)

StartCPUGenerator starts a CPU generator

Start an existing CPU generator.

func (*Client) StopCPUGenerator

func (a *Client) StopCPUGenerator(params *StopCPUGeneratorParams, opts ...ClientOption) (*StopCPUGeneratorNoContent, error)

StopCPUGenerator stops a CPU generator

Stop a running CPU generator. Idempotent.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	BulkCreateCPUGenerators(params *BulkCreateCPUGeneratorsParams, opts ...ClientOption) (*BulkCreateCPUGeneratorsOK, error)

	BulkDeleteCPUGenerators(params *BulkDeleteCPUGeneratorsParams, opts ...ClientOption) (*BulkDeleteCPUGeneratorsNoContent, error)

	BulkStartCPUGenerators(params *BulkStartCPUGeneratorsParams, opts ...ClientOption) (*BulkStartCPUGeneratorsOK, error)

	BulkStopCPUGenerators(params *BulkStopCPUGeneratorsParams, opts ...ClientOption) (*BulkStopCPUGeneratorsNoContent, error)

	CreateCPUGenerator(params *CreateCPUGeneratorParams, opts ...ClientOption) (*CreateCPUGeneratorCreated, error)

	DeleteCPUGenerator(params *DeleteCPUGeneratorParams, opts ...ClientOption) (*DeleteCPUGeneratorNoContent, error)

	DeleteCPUGeneratorResult(params *DeleteCPUGeneratorResultParams, opts ...ClientOption) (*DeleteCPUGeneratorResultNoContent, error)

	GetCPUGenerator(params *GetCPUGeneratorParams, opts ...ClientOption) (*GetCPUGeneratorOK, error)

	GetCPUGeneratorResult(params *GetCPUGeneratorResultParams, opts ...ClientOption) (*GetCPUGeneratorResultOK, error)

	GetCPUInfo(params *GetCPUInfoParams, opts ...ClientOption) (*GetCPUInfoOK, error)

	ListCPUGeneratorResults(params *ListCPUGeneratorResultsParams, opts ...ClientOption) (*ListCPUGeneratorResultsOK, error)

	ListCPUGenerators(params *ListCPUGeneratorsParams, opts ...ClientOption) (*ListCPUGeneratorsOK, error)

	StartCPUGenerator(params *StartCPUGeneratorParams, opts ...ClientOption) (*StartCPUGeneratorCreated, error)

	StopCPUGenerator(params *StopCPUGeneratorParams, opts ...ClientOption) (*StopCPUGeneratorNoContent, 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 cpu generator API client.

type CreateCPUGeneratorCreated

type CreateCPUGeneratorCreated struct {

	/* URI of created CPU generator
	 */
	Location string

	Payload *models.CPUGenerator
}
CreateCPUGeneratorCreated describes a response with status code 201, with default header values.

Created

func NewCreateCPUGeneratorCreated

func NewCreateCPUGeneratorCreated() *CreateCPUGeneratorCreated

NewCreateCPUGeneratorCreated creates a CreateCPUGeneratorCreated with default headers values

func (*CreateCPUGeneratorCreated) Error

func (o *CreateCPUGeneratorCreated) Error() string

func (*CreateCPUGeneratorCreated) GetPayload

type CreateCPUGeneratorParams

type CreateCPUGeneratorParams struct {

	/* Generator.

	   New CPU generator
	*/
	Generator *models.CPUGenerator

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateCPUGeneratorParams contains all the parameters to send to the API endpoint

for the create Cpu generator operation.

Typically these are written to a http.Request.

func NewCreateCPUGeneratorParams

func NewCreateCPUGeneratorParams() *CreateCPUGeneratorParams

NewCreateCPUGeneratorParams creates a new CreateCPUGeneratorParams 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 NewCreateCPUGeneratorParamsWithContext

func NewCreateCPUGeneratorParamsWithContext(ctx context.Context) *CreateCPUGeneratorParams

NewCreateCPUGeneratorParamsWithContext creates a new CreateCPUGeneratorParams object with the ability to set a context for a request.

func NewCreateCPUGeneratorParamsWithHTTPClient

func NewCreateCPUGeneratorParamsWithHTTPClient(client *http.Client) *CreateCPUGeneratorParams

NewCreateCPUGeneratorParamsWithHTTPClient creates a new CreateCPUGeneratorParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCPUGeneratorParamsWithTimeout

func NewCreateCPUGeneratorParamsWithTimeout(timeout time.Duration) *CreateCPUGeneratorParams

NewCreateCPUGeneratorParamsWithTimeout creates a new CreateCPUGeneratorParams object with the ability to set a timeout on a request.

func (*CreateCPUGeneratorParams) SetContext

func (o *CreateCPUGeneratorParams) SetContext(ctx context.Context)

SetContext adds the context to the create Cpu generator params

func (*CreateCPUGeneratorParams) SetDefaults

func (o *CreateCPUGeneratorParams) SetDefaults()

SetDefaults hydrates default values in the create Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*CreateCPUGeneratorParams) SetGenerator

func (o *CreateCPUGeneratorParams) SetGenerator(generator *models.CPUGenerator)

SetGenerator adds the generator to the create Cpu generator params

func (*CreateCPUGeneratorParams) SetHTTPClient

func (o *CreateCPUGeneratorParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create Cpu generator params

func (*CreateCPUGeneratorParams) SetTimeout

func (o *CreateCPUGeneratorParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create Cpu generator params

func (*CreateCPUGeneratorParams) WithContext

WithContext adds the context to the create Cpu generator params

func (*CreateCPUGeneratorParams) WithDefaults

WithDefaults hydrates default values in the create Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*CreateCPUGeneratorParams) WithGenerator

WithGenerator adds the generator to the create Cpu generator params

func (*CreateCPUGeneratorParams) WithHTTPClient

func (o *CreateCPUGeneratorParams) WithHTTPClient(client *http.Client) *CreateCPUGeneratorParams

WithHTTPClient adds the HTTPClient to the create Cpu generator params

func (*CreateCPUGeneratorParams) WithTimeout

WithTimeout adds the timeout to the create Cpu generator params

func (*CreateCPUGeneratorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateCPUGeneratorReader

type CreateCPUGeneratorReader struct {
	// contains filtered or unexported fields
}

CreateCPUGeneratorReader is a Reader for the CreateCPUGenerator structure.

func (*CreateCPUGeneratorReader) ReadResponse

func (o *CreateCPUGeneratorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteCPUGeneratorNoContent

type DeleteCPUGeneratorNoContent struct {
}
DeleteCPUGeneratorNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteCPUGeneratorNoContent

func NewDeleteCPUGeneratorNoContent() *DeleteCPUGeneratorNoContent

NewDeleteCPUGeneratorNoContent creates a DeleteCPUGeneratorNoContent with default headers values

func (*DeleteCPUGeneratorNoContent) Error

type DeleteCPUGeneratorParams

type DeleteCPUGeneratorParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteCPUGeneratorParams contains all the parameters to send to the API endpoint

for the delete Cpu generator operation.

Typically these are written to a http.Request.

func NewDeleteCPUGeneratorParams

func NewDeleteCPUGeneratorParams() *DeleteCPUGeneratorParams

NewDeleteCPUGeneratorParams creates a new DeleteCPUGeneratorParams 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 NewDeleteCPUGeneratorParamsWithContext

func NewDeleteCPUGeneratorParamsWithContext(ctx context.Context) *DeleteCPUGeneratorParams

NewDeleteCPUGeneratorParamsWithContext creates a new DeleteCPUGeneratorParams object with the ability to set a context for a request.

func NewDeleteCPUGeneratorParamsWithHTTPClient

func NewDeleteCPUGeneratorParamsWithHTTPClient(client *http.Client) *DeleteCPUGeneratorParams

NewDeleteCPUGeneratorParamsWithHTTPClient creates a new DeleteCPUGeneratorParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCPUGeneratorParamsWithTimeout

func NewDeleteCPUGeneratorParamsWithTimeout(timeout time.Duration) *DeleteCPUGeneratorParams

NewDeleteCPUGeneratorParamsWithTimeout creates a new DeleteCPUGeneratorParams object with the ability to set a timeout on a request.

func (*DeleteCPUGeneratorParams) SetContext

func (o *DeleteCPUGeneratorParams) SetContext(ctx context.Context)

SetContext adds the context to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) SetDefaults

func (o *DeleteCPUGeneratorParams) SetDefaults()

SetDefaults hydrates default values in the delete Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteCPUGeneratorParams) SetHTTPClient

func (o *DeleteCPUGeneratorParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) SetID

func (o *DeleteCPUGeneratorParams) SetID(id string)

SetID adds the id to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) SetTimeout

func (o *DeleteCPUGeneratorParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) WithContext

WithContext adds the context to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) WithDefaults

WithDefaults hydrates default values in the delete Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteCPUGeneratorParams) WithHTTPClient

func (o *DeleteCPUGeneratorParams) WithHTTPClient(client *http.Client) *DeleteCPUGeneratorParams

WithHTTPClient adds the HTTPClient to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) WithID

WithID adds the id to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) WithTimeout

WithTimeout adds the timeout to the delete Cpu generator params

func (*DeleteCPUGeneratorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCPUGeneratorReader

type DeleteCPUGeneratorReader struct {
	// contains filtered or unexported fields
}

DeleteCPUGeneratorReader is a Reader for the DeleteCPUGenerator structure.

func (*DeleteCPUGeneratorReader) ReadResponse

func (o *DeleteCPUGeneratorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DeleteCPUGeneratorResultNoContent

type DeleteCPUGeneratorResultNoContent struct {
}
DeleteCPUGeneratorResultNoContent describes a response with status code 204, with default header values.

No Content

func NewDeleteCPUGeneratorResultNoContent

func NewDeleteCPUGeneratorResultNoContent() *DeleteCPUGeneratorResultNoContent

NewDeleteCPUGeneratorResultNoContent creates a DeleteCPUGeneratorResultNoContent with default headers values

func (*DeleteCPUGeneratorResultNoContent) Error

type DeleteCPUGeneratorResultParams

type DeleteCPUGeneratorResultParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteCPUGeneratorResultParams contains all the parameters to send to the API endpoint

for the delete Cpu generator result operation.

Typically these are written to a http.Request.

func NewDeleteCPUGeneratorResultParams

func NewDeleteCPUGeneratorResultParams() *DeleteCPUGeneratorResultParams

NewDeleteCPUGeneratorResultParams creates a new DeleteCPUGeneratorResultParams 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 NewDeleteCPUGeneratorResultParamsWithContext

func NewDeleteCPUGeneratorResultParamsWithContext(ctx context.Context) *DeleteCPUGeneratorResultParams

NewDeleteCPUGeneratorResultParamsWithContext creates a new DeleteCPUGeneratorResultParams object with the ability to set a context for a request.

func NewDeleteCPUGeneratorResultParamsWithHTTPClient

func NewDeleteCPUGeneratorResultParamsWithHTTPClient(client *http.Client) *DeleteCPUGeneratorResultParams

NewDeleteCPUGeneratorResultParamsWithHTTPClient creates a new DeleteCPUGeneratorResultParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCPUGeneratorResultParamsWithTimeout

func NewDeleteCPUGeneratorResultParamsWithTimeout(timeout time.Duration) *DeleteCPUGeneratorResultParams

NewDeleteCPUGeneratorResultParamsWithTimeout creates a new DeleteCPUGeneratorResultParams object with the ability to set a timeout on a request.

func (*DeleteCPUGeneratorResultParams) SetContext

func (o *DeleteCPUGeneratorResultParams) SetContext(ctx context.Context)

SetContext adds the context to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) SetDefaults

func (o *DeleteCPUGeneratorResultParams) SetDefaults()

SetDefaults hydrates default values in the delete Cpu generator result params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteCPUGeneratorResultParams) SetHTTPClient

func (o *DeleteCPUGeneratorResultParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) SetID

SetID adds the id to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) SetTimeout

func (o *DeleteCPUGeneratorResultParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) WithContext

WithContext adds the context to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) WithDefaults

WithDefaults hydrates default values in the delete Cpu generator result params (not the query body).

All values with no default are reset to their zero value.

func (*DeleteCPUGeneratorResultParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) WithID

WithID adds the id to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) WithTimeout

WithTimeout adds the timeout to the delete Cpu generator result params

func (*DeleteCPUGeneratorResultParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteCPUGeneratorResultReader

type DeleteCPUGeneratorResultReader struct {
	// contains filtered or unexported fields
}

DeleteCPUGeneratorResultReader is a Reader for the DeleteCPUGeneratorResult structure.

func (*DeleteCPUGeneratorResultReader) ReadResponse

func (o *DeleteCPUGeneratorResultReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCPUGeneratorOK

type GetCPUGeneratorOK struct {
	Payload *models.CPUGenerator
}
GetCPUGeneratorOK describes a response with status code 200, with default header values.

Success

func NewGetCPUGeneratorOK

func NewGetCPUGeneratorOK() *GetCPUGeneratorOK

NewGetCPUGeneratorOK creates a GetCPUGeneratorOK with default headers values

func (*GetCPUGeneratorOK) Error

func (o *GetCPUGeneratorOK) Error() string

func (*GetCPUGeneratorOK) GetPayload

func (o *GetCPUGeneratorOK) GetPayload() *models.CPUGenerator

type GetCPUGeneratorParams

type GetCPUGeneratorParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCPUGeneratorParams contains all the parameters to send to the API endpoint

for the get Cpu generator operation.

Typically these are written to a http.Request.

func NewGetCPUGeneratorParams

func NewGetCPUGeneratorParams() *GetCPUGeneratorParams

NewGetCPUGeneratorParams creates a new GetCPUGeneratorParams 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 NewGetCPUGeneratorParamsWithContext

func NewGetCPUGeneratorParamsWithContext(ctx context.Context) *GetCPUGeneratorParams

NewGetCPUGeneratorParamsWithContext creates a new GetCPUGeneratorParams object with the ability to set a context for a request.

func NewGetCPUGeneratorParamsWithHTTPClient

func NewGetCPUGeneratorParamsWithHTTPClient(client *http.Client) *GetCPUGeneratorParams

NewGetCPUGeneratorParamsWithHTTPClient creates a new GetCPUGeneratorParams object with the ability to set a custom HTTPClient for a request.

func NewGetCPUGeneratorParamsWithTimeout

func NewGetCPUGeneratorParamsWithTimeout(timeout time.Duration) *GetCPUGeneratorParams

NewGetCPUGeneratorParamsWithTimeout creates a new GetCPUGeneratorParams object with the ability to set a timeout on a request.

func (*GetCPUGeneratorParams) SetContext

func (o *GetCPUGeneratorParams) SetContext(ctx context.Context)

SetContext adds the context to the get Cpu generator params

func (*GetCPUGeneratorParams) SetDefaults

func (o *GetCPUGeneratorParams) SetDefaults()

SetDefaults hydrates default values in the get Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*GetCPUGeneratorParams) SetHTTPClient

func (o *GetCPUGeneratorParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get Cpu generator params

func (*GetCPUGeneratorParams) SetID

func (o *GetCPUGeneratorParams) SetID(id string)

SetID adds the id to the get Cpu generator params

func (*GetCPUGeneratorParams) SetTimeout

func (o *GetCPUGeneratorParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get Cpu generator params

func (*GetCPUGeneratorParams) WithContext

WithContext adds the context to the get Cpu generator params

func (*GetCPUGeneratorParams) WithDefaults

func (o *GetCPUGeneratorParams) WithDefaults() *GetCPUGeneratorParams

WithDefaults hydrates default values in the get Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*GetCPUGeneratorParams) WithHTTPClient

func (o *GetCPUGeneratorParams) WithHTTPClient(client *http.Client) *GetCPUGeneratorParams

WithHTTPClient adds the HTTPClient to the get Cpu generator params

func (*GetCPUGeneratorParams) WithID

WithID adds the id to the get Cpu generator params

func (*GetCPUGeneratorParams) WithTimeout

func (o *GetCPUGeneratorParams) WithTimeout(timeout time.Duration) *GetCPUGeneratorParams

WithTimeout adds the timeout to the get Cpu generator params

func (*GetCPUGeneratorParams) WriteToRequest

func (o *GetCPUGeneratorParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCPUGeneratorReader

type GetCPUGeneratorReader struct {
	// contains filtered or unexported fields
}

GetCPUGeneratorReader is a Reader for the GetCPUGenerator structure.

func (*GetCPUGeneratorReader) ReadResponse

func (o *GetCPUGeneratorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCPUGeneratorResultOK

type GetCPUGeneratorResultOK struct {
	Payload *models.CPUGeneratorResult
}
GetCPUGeneratorResultOK describes a response with status code 200, with default header values.

Success

func NewGetCPUGeneratorResultOK

func NewGetCPUGeneratorResultOK() *GetCPUGeneratorResultOK

NewGetCPUGeneratorResultOK creates a GetCPUGeneratorResultOK with default headers values

func (*GetCPUGeneratorResultOK) Error

func (o *GetCPUGeneratorResultOK) Error() string

func (*GetCPUGeneratorResultOK) GetPayload

type GetCPUGeneratorResultParams

type GetCPUGeneratorResultParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCPUGeneratorResultParams contains all the parameters to send to the API endpoint

for the get Cpu generator result operation.

Typically these are written to a http.Request.

func NewGetCPUGeneratorResultParams

func NewGetCPUGeneratorResultParams() *GetCPUGeneratorResultParams

NewGetCPUGeneratorResultParams creates a new GetCPUGeneratorResultParams 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 NewGetCPUGeneratorResultParamsWithContext

func NewGetCPUGeneratorResultParamsWithContext(ctx context.Context) *GetCPUGeneratorResultParams

NewGetCPUGeneratorResultParamsWithContext creates a new GetCPUGeneratorResultParams object with the ability to set a context for a request.

func NewGetCPUGeneratorResultParamsWithHTTPClient

func NewGetCPUGeneratorResultParamsWithHTTPClient(client *http.Client) *GetCPUGeneratorResultParams

NewGetCPUGeneratorResultParamsWithHTTPClient creates a new GetCPUGeneratorResultParams object with the ability to set a custom HTTPClient for a request.

func NewGetCPUGeneratorResultParamsWithTimeout

func NewGetCPUGeneratorResultParamsWithTimeout(timeout time.Duration) *GetCPUGeneratorResultParams

NewGetCPUGeneratorResultParamsWithTimeout creates a new GetCPUGeneratorResultParams object with the ability to set a timeout on a request.

func (*GetCPUGeneratorResultParams) SetContext

func (o *GetCPUGeneratorResultParams) SetContext(ctx context.Context)

SetContext adds the context to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) SetDefaults

func (o *GetCPUGeneratorResultParams) SetDefaults()

SetDefaults hydrates default values in the get Cpu generator result params (not the query body).

All values with no default are reset to their zero value.

func (*GetCPUGeneratorResultParams) SetHTTPClient

func (o *GetCPUGeneratorResultParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) SetID

func (o *GetCPUGeneratorResultParams) SetID(id string)

SetID adds the id to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) SetTimeout

func (o *GetCPUGeneratorResultParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) WithContext

WithContext adds the context to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) WithDefaults

WithDefaults hydrates default values in the get Cpu generator result params (not the query body).

All values with no default are reset to their zero value.

func (*GetCPUGeneratorResultParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) WithID

WithID adds the id to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) WithTimeout

WithTimeout adds the timeout to the get Cpu generator result params

func (*GetCPUGeneratorResultParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCPUGeneratorResultReader

type GetCPUGeneratorResultReader struct {
	// contains filtered or unexported fields
}

GetCPUGeneratorResultReader is a Reader for the GetCPUGeneratorResult structure.

func (*GetCPUGeneratorResultReader) ReadResponse

func (o *GetCPUGeneratorResultReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetCPUInfoOK

type GetCPUInfoOK struct {
	Payload *GetCPUInfoOKBody
}
GetCPUInfoOK describes a response with status code 200, with default header values.

Success

func NewGetCPUInfoOK

func NewGetCPUInfoOK() *GetCPUInfoOK

NewGetCPUInfoOK creates a GetCPUInfoOK with default headers values

func (*GetCPUInfoOK) Error

func (o *GetCPUInfoOK) Error() string

func (*GetCPUInfoOK) GetPayload

func (o *GetCPUInfoOK) GetPayload() *GetCPUInfoOKBody

type GetCPUInfoOKBody

type GetCPUInfoOKBody struct {

	// Processor architecture name
	Architecture string `json:"architecture,omitempty"`

	// Processor cache line size
	CacheLineSize int32 `json:"cache_line_size,omitempty"`

	// Number of cores
	Cores int32 `json:"cores,omitempty"`
}

GetCPUInfoOKBody CpuInfoResult swagger:model GetCPUInfoOKBody

func (*GetCPUInfoOKBody) ContextValidate

func (o *GetCPUInfoOKBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this get CPU info o k body based on context it is used

func (*GetCPUInfoOKBody) MarshalBinary

func (o *GetCPUInfoOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetCPUInfoOKBody) UnmarshalBinary

func (o *GetCPUInfoOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetCPUInfoOKBody) Validate

func (o *GetCPUInfoOKBody) Validate(formats strfmt.Registry) error

Validate validates this get CPU info o k body

type GetCPUInfoParams

type GetCPUInfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetCPUInfoParams contains all the parameters to send to the API endpoint

for the get Cpu info operation.

Typically these are written to a http.Request.

func NewGetCPUInfoParams

func NewGetCPUInfoParams() *GetCPUInfoParams

NewGetCPUInfoParams creates a new GetCPUInfoParams 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 NewGetCPUInfoParamsWithContext

func NewGetCPUInfoParamsWithContext(ctx context.Context) *GetCPUInfoParams

NewGetCPUInfoParamsWithContext creates a new GetCPUInfoParams object with the ability to set a context for a request.

func NewGetCPUInfoParamsWithHTTPClient

func NewGetCPUInfoParamsWithHTTPClient(client *http.Client) *GetCPUInfoParams

NewGetCPUInfoParamsWithHTTPClient creates a new GetCPUInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetCPUInfoParamsWithTimeout

func NewGetCPUInfoParamsWithTimeout(timeout time.Duration) *GetCPUInfoParams

NewGetCPUInfoParamsWithTimeout creates a new GetCPUInfoParams object with the ability to set a timeout on a request.

func (*GetCPUInfoParams) SetContext

func (o *GetCPUInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get Cpu info params

func (*GetCPUInfoParams) SetDefaults

func (o *GetCPUInfoParams) SetDefaults()

SetDefaults hydrates default values in the get Cpu info params (not the query body).

All values with no default are reset to their zero value.

func (*GetCPUInfoParams) SetHTTPClient

func (o *GetCPUInfoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get Cpu info params

func (*GetCPUInfoParams) SetTimeout

func (o *GetCPUInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get Cpu info params

func (*GetCPUInfoParams) WithContext

func (o *GetCPUInfoParams) WithContext(ctx context.Context) *GetCPUInfoParams

WithContext adds the context to the get Cpu info params

func (*GetCPUInfoParams) WithDefaults

func (o *GetCPUInfoParams) WithDefaults() *GetCPUInfoParams

WithDefaults hydrates default values in the get Cpu info params (not the query body).

All values with no default are reset to their zero value.

func (*GetCPUInfoParams) WithHTTPClient

func (o *GetCPUInfoParams) WithHTTPClient(client *http.Client) *GetCPUInfoParams

WithHTTPClient adds the HTTPClient to the get Cpu info params

func (*GetCPUInfoParams) WithTimeout

func (o *GetCPUInfoParams) WithTimeout(timeout time.Duration) *GetCPUInfoParams

WithTimeout adds the timeout to the get Cpu info params

func (*GetCPUInfoParams) WriteToRequest

func (o *GetCPUInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetCPUInfoReader

type GetCPUInfoReader struct {
	// contains filtered or unexported fields
}

GetCPUInfoReader is a Reader for the GetCPUInfo structure.

func (*GetCPUInfoReader) ReadResponse

func (o *GetCPUInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListCPUGeneratorResultsOK

type ListCPUGeneratorResultsOK struct {
	Payload []*models.CPUGeneratorResult
}
ListCPUGeneratorResultsOK describes a response with status code 200, with default header values.

Success

func NewListCPUGeneratorResultsOK

func NewListCPUGeneratorResultsOK() *ListCPUGeneratorResultsOK

NewListCPUGeneratorResultsOK creates a ListCPUGeneratorResultsOK with default headers values

func (*ListCPUGeneratorResultsOK) Error

func (o *ListCPUGeneratorResultsOK) Error() string

func (*ListCPUGeneratorResultsOK) GetPayload

type ListCPUGeneratorResultsParams

type ListCPUGeneratorResultsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListCPUGeneratorResultsParams contains all the parameters to send to the API endpoint

for the list Cpu generator results operation.

Typically these are written to a http.Request.

func NewListCPUGeneratorResultsParams

func NewListCPUGeneratorResultsParams() *ListCPUGeneratorResultsParams

NewListCPUGeneratorResultsParams creates a new ListCPUGeneratorResultsParams 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 NewListCPUGeneratorResultsParamsWithContext

func NewListCPUGeneratorResultsParamsWithContext(ctx context.Context) *ListCPUGeneratorResultsParams

NewListCPUGeneratorResultsParamsWithContext creates a new ListCPUGeneratorResultsParams object with the ability to set a context for a request.

func NewListCPUGeneratorResultsParamsWithHTTPClient

func NewListCPUGeneratorResultsParamsWithHTTPClient(client *http.Client) *ListCPUGeneratorResultsParams

NewListCPUGeneratorResultsParamsWithHTTPClient creates a new ListCPUGeneratorResultsParams object with the ability to set a custom HTTPClient for a request.

func NewListCPUGeneratorResultsParamsWithTimeout

func NewListCPUGeneratorResultsParamsWithTimeout(timeout time.Duration) *ListCPUGeneratorResultsParams

NewListCPUGeneratorResultsParamsWithTimeout creates a new ListCPUGeneratorResultsParams object with the ability to set a timeout on a request.

func (*ListCPUGeneratorResultsParams) SetContext

func (o *ListCPUGeneratorResultsParams) SetContext(ctx context.Context)

SetContext adds the context to the list Cpu generator results params

func (*ListCPUGeneratorResultsParams) SetDefaults

func (o *ListCPUGeneratorResultsParams) SetDefaults()

SetDefaults hydrates default values in the list Cpu generator results params (not the query body).

All values with no default are reset to their zero value.

func (*ListCPUGeneratorResultsParams) SetHTTPClient

func (o *ListCPUGeneratorResultsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list Cpu generator results params

func (*ListCPUGeneratorResultsParams) SetTimeout

func (o *ListCPUGeneratorResultsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list Cpu generator results params

func (*ListCPUGeneratorResultsParams) WithContext

WithContext adds the context to the list Cpu generator results params

func (*ListCPUGeneratorResultsParams) WithDefaults

WithDefaults hydrates default values in the list Cpu generator results params (not the query body).

All values with no default are reset to their zero value.

func (*ListCPUGeneratorResultsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list Cpu generator results params

func (*ListCPUGeneratorResultsParams) WithTimeout

WithTimeout adds the timeout to the list Cpu generator results params

func (*ListCPUGeneratorResultsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListCPUGeneratorResultsReader

type ListCPUGeneratorResultsReader struct {
	// contains filtered or unexported fields
}

ListCPUGeneratorResultsReader is a Reader for the ListCPUGeneratorResults structure.

func (*ListCPUGeneratorResultsReader) ReadResponse

func (o *ListCPUGeneratorResultsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ListCPUGeneratorsOK

type ListCPUGeneratorsOK struct {
	Payload []*models.CPUGenerator
}
ListCPUGeneratorsOK describes a response with status code 200, with default header values.

Success

func NewListCPUGeneratorsOK

func NewListCPUGeneratorsOK() *ListCPUGeneratorsOK

NewListCPUGeneratorsOK creates a ListCPUGeneratorsOK with default headers values

func (*ListCPUGeneratorsOK) Error

func (o *ListCPUGeneratorsOK) Error() string

func (*ListCPUGeneratorsOK) GetPayload

func (o *ListCPUGeneratorsOK) GetPayload() []*models.CPUGenerator

type ListCPUGeneratorsParams

type ListCPUGeneratorsParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListCPUGeneratorsParams contains all the parameters to send to the API endpoint

for the list Cpu generators operation.

Typically these are written to a http.Request.

func NewListCPUGeneratorsParams

func NewListCPUGeneratorsParams() *ListCPUGeneratorsParams

NewListCPUGeneratorsParams creates a new ListCPUGeneratorsParams 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 NewListCPUGeneratorsParamsWithContext

func NewListCPUGeneratorsParamsWithContext(ctx context.Context) *ListCPUGeneratorsParams

NewListCPUGeneratorsParamsWithContext creates a new ListCPUGeneratorsParams object with the ability to set a context for a request.

func NewListCPUGeneratorsParamsWithHTTPClient

func NewListCPUGeneratorsParamsWithHTTPClient(client *http.Client) *ListCPUGeneratorsParams

NewListCPUGeneratorsParamsWithHTTPClient creates a new ListCPUGeneratorsParams object with the ability to set a custom HTTPClient for a request.

func NewListCPUGeneratorsParamsWithTimeout

func NewListCPUGeneratorsParamsWithTimeout(timeout time.Duration) *ListCPUGeneratorsParams

NewListCPUGeneratorsParamsWithTimeout creates a new ListCPUGeneratorsParams object with the ability to set a timeout on a request.

func (*ListCPUGeneratorsParams) SetContext

func (o *ListCPUGeneratorsParams) SetContext(ctx context.Context)

SetContext adds the context to the list Cpu generators params

func (*ListCPUGeneratorsParams) SetDefaults

func (o *ListCPUGeneratorsParams) SetDefaults()

SetDefaults hydrates default values in the list Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*ListCPUGeneratorsParams) SetHTTPClient

func (o *ListCPUGeneratorsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the list Cpu generators params

func (*ListCPUGeneratorsParams) SetTimeout

func (o *ListCPUGeneratorsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the list Cpu generators params

func (*ListCPUGeneratorsParams) WithContext

WithContext adds the context to the list Cpu generators params

func (*ListCPUGeneratorsParams) WithDefaults

WithDefaults hydrates default values in the list Cpu generators params (not the query body).

All values with no default are reset to their zero value.

func (*ListCPUGeneratorsParams) WithHTTPClient

func (o *ListCPUGeneratorsParams) WithHTTPClient(client *http.Client) *ListCPUGeneratorsParams

WithHTTPClient adds the HTTPClient to the list Cpu generators params

func (*ListCPUGeneratorsParams) WithTimeout

WithTimeout adds the timeout to the list Cpu generators params

func (*ListCPUGeneratorsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListCPUGeneratorsReader

type ListCPUGeneratorsReader struct {
	// contains filtered or unexported fields
}

ListCPUGeneratorsReader is a Reader for the ListCPUGenerators structure.

func (*ListCPUGeneratorsReader) ReadResponse

func (o *ListCPUGeneratorsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type StartCPUGeneratorCreated

type StartCPUGeneratorCreated struct {

	/* URI of created CPU generator result
	 */
	Location string

	Payload *models.CPUGeneratorResult
}
StartCPUGeneratorCreated describes a response with status code 201, with default header values.

Created

func NewStartCPUGeneratorCreated

func NewStartCPUGeneratorCreated() *StartCPUGeneratorCreated

NewStartCPUGeneratorCreated creates a StartCPUGeneratorCreated with default headers values

func (*StartCPUGeneratorCreated) Error

func (o *StartCPUGeneratorCreated) Error() string

func (*StartCPUGeneratorCreated) GetPayload

type StartCPUGeneratorParams

type StartCPUGeneratorParams struct {

	/* DynamicResults.

	   Dynamic results configuration
	*/
	DynamicResults *models.DynamicResultsConfig

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StartCPUGeneratorParams contains all the parameters to send to the API endpoint

for the start Cpu generator operation.

Typically these are written to a http.Request.

func NewStartCPUGeneratorParams

func NewStartCPUGeneratorParams() *StartCPUGeneratorParams

NewStartCPUGeneratorParams creates a new StartCPUGeneratorParams 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 NewStartCPUGeneratorParamsWithContext

func NewStartCPUGeneratorParamsWithContext(ctx context.Context) *StartCPUGeneratorParams

NewStartCPUGeneratorParamsWithContext creates a new StartCPUGeneratorParams object with the ability to set a context for a request.

func NewStartCPUGeneratorParamsWithHTTPClient

func NewStartCPUGeneratorParamsWithHTTPClient(client *http.Client) *StartCPUGeneratorParams

NewStartCPUGeneratorParamsWithHTTPClient creates a new StartCPUGeneratorParams object with the ability to set a custom HTTPClient for a request.

func NewStartCPUGeneratorParamsWithTimeout

func NewStartCPUGeneratorParamsWithTimeout(timeout time.Duration) *StartCPUGeneratorParams

NewStartCPUGeneratorParamsWithTimeout creates a new StartCPUGeneratorParams object with the ability to set a timeout on a request.

func (*StartCPUGeneratorParams) SetContext

func (o *StartCPUGeneratorParams) SetContext(ctx context.Context)

SetContext adds the context to the start Cpu generator params

func (*StartCPUGeneratorParams) SetDefaults

func (o *StartCPUGeneratorParams) SetDefaults()

SetDefaults hydrates default values in the start Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*StartCPUGeneratorParams) SetDynamicResults

func (o *StartCPUGeneratorParams) SetDynamicResults(dynamicResults *models.DynamicResultsConfig)

SetDynamicResults adds the dynamicResults to the start Cpu generator params

func (*StartCPUGeneratorParams) SetHTTPClient

func (o *StartCPUGeneratorParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the start Cpu generator params

func (*StartCPUGeneratorParams) SetID

func (o *StartCPUGeneratorParams) SetID(id string)

SetID adds the id to the start Cpu generator params

func (*StartCPUGeneratorParams) SetTimeout

func (o *StartCPUGeneratorParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the start Cpu generator params

func (*StartCPUGeneratorParams) WithContext

WithContext adds the context to the start Cpu generator params

func (*StartCPUGeneratorParams) WithDefaults

WithDefaults hydrates default values in the start Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*StartCPUGeneratorParams) WithDynamicResults

func (o *StartCPUGeneratorParams) WithDynamicResults(dynamicResults *models.DynamicResultsConfig) *StartCPUGeneratorParams

WithDynamicResults adds the dynamicResults to the start Cpu generator params

func (*StartCPUGeneratorParams) WithHTTPClient

func (o *StartCPUGeneratorParams) WithHTTPClient(client *http.Client) *StartCPUGeneratorParams

WithHTTPClient adds the HTTPClient to the start Cpu generator params

func (*StartCPUGeneratorParams) WithID

WithID adds the id to the start Cpu generator params

func (*StartCPUGeneratorParams) WithTimeout

WithTimeout adds the timeout to the start Cpu generator params

func (*StartCPUGeneratorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StartCPUGeneratorReader

type StartCPUGeneratorReader struct {
	// contains filtered or unexported fields
}

StartCPUGeneratorReader is a Reader for the StartCPUGenerator structure.

func (*StartCPUGeneratorReader) ReadResponse

func (o *StartCPUGeneratorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type StopCPUGeneratorNoContent

type StopCPUGeneratorNoContent struct {
}
StopCPUGeneratorNoContent describes a response with status code 204, with default header values.

No Content

func NewStopCPUGeneratorNoContent

func NewStopCPUGeneratorNoContent() *StopCPUGeneratorNoContent

NewStopCPUGeneratorNoContent creates a StopCPUGeneratorNoContent with default headers values

func (*StopCPUGeneratorNoContent) Error

func (o *StopCPUGeneratorNoContent) Error() string

type StopCPUGeneratorParams

type StopCPUGeneratorParams struct {

	/* ID.

	   Unique resource identifier

	   Format: string
	*/
	ID string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StopCPUGeneratorParams contains all the parameters to send to the API endpoint

for the stop Cpu generator operation.

Typically these are written to a http.Request.

func NewStopCPUGeneratorParams

func NewStopCPUGeneratorParams() *StopCPUGeneratorParams

NewStopCPUGeneratorParams creates a new StopCPUGeneratorParams 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 NewStopCPUGeneratorParamsWithContext

func NewStopCPUGeneratorParamsWithContext(ctx context.Context) *StopCPUGeneratorParams

NewStopCPUGeneratorParamsWithContext creates a new StopCPUGeneratorParams object with the ability to set a context for a request.

func NewStopCPUGeneratorParamsWithHTTPClient

func NewStopCPUGeneratorParamsWithHTTPClient(client *http.Client) *StopCPUGeneratorParams

NewStopCPUGeneratorParamsWithHTTPClient creates a new StopCPUGeneratorParams object with the ability to set a custom HTTPClient for a request.

func NewStopCPUGeneratorParamsWithTimeout

func NewStopCPUGeneratorParamsWithTimeout(timeout time.Duration) *StopCPUGeneratorParams

NewStopCPUGeneratorParamsWithTimeout creates a new StopCPUGeneratorParams object with the ability to set a timeout on a request.

func (*StopCPUGeneratorParams) SetContext

func (o *StopCPUGeneratorParams) SetContext(ctx context.Context)

SetContext adds the context to the stop Cpu generator params

func (*StopCPUGeneratorParams) SetDefaults

func (o *StopCPUGeneratorParams) SetDefaults()

SetDefaults hydrates default values in the stop Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*StopCPUGeneratorParams) SetHTTPClient

func (o *StopCPUGeneratorParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the stop Cpu generator params

func (*StopCPUGeneratorParams) SetID

func (o *StopCPUGeneratorParams) SetID(id string)

SetID adds the id to the stop Cpu generator params

func (*StopCPUGeneratorParams) SetTimeout

func (o *StopCPUGeneratorParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the stop Cpu generator params

func (*StopCPUGeneratorParams) WithContext

WithContext adds the context to the stop Cpu generator params

func (*StopCPUGeneratorParams) WithDefaults

WithDefaults hydrates default values in the stop Cpu generator params (not the query body).

All values with no default are reset to their zero value.

func (*StopCPUGeneratorParams) WithHTTPClient

func (o *StopCPUGeneratorParams) WithHTTPClient(client *http.Client) *StopCPUGeneratorParams

WithHTTPClient adds the HTTPClient to the stop Cpu generator params

func (*StopCPUGeneratorParams) WithID

WithID adds the id to the stop Cpu generator params

func (*StopCPUGeneratorParams) WithTimeout

WithTimeout adds the timeout to the stop Cpu generator params

func (*StopCPUGeneratorParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type StopCPUGeneratorReader

type StopCPUGeneratorReader struct {
	// contains filtered or unexported fields
}

StopCPUGeneratorReader is a Reader for the StopCPUGenerator structure.

func (*StopCPUGeneratorReader) ReadResponse

func (o *StopCPUGeneratorReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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