recommend

package
v0.0.0-...-5a001f1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for recommend API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new recommend API client.

func (*Client) RecommendCluster

func (a *Client) RecommendCluster(params *RecommendClusterParams) (*RecommendClusterOK, error)

RecommendCluster provides a recommended set of node pools on a given provider in a specific region

func (*Client) RecommendClusterScaleOut

func (a *Client) RecommendClusterScaleOut(params *RecommendClusterScaleOutParams) (*RecommendClusterScaleOutOK, error)

RecommendClusterScaleOut provides a recommendation for a scale out based on a current cluster layout on a given provider in a specific region

func (*Client) RecommendMultiCluster

func (a *Client) RecommendMultiCluster(params *RecommendMultiClusterParams) (*RecommendMultiClusterOK, error)

RecommendMultiCluster provides a recommended set of node pools on a given provider in a specific region

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type RecommendClusterOK

type RecommendClusterOK struct {
	Payload *models.ClusterRecommendationResp
}

RecommendClusterOK handles this case with default header values.

RecommendationResponse

func NewRecommendClusterOK

func NewRecommendClusterOK() *RecommendClusterOK

NewRecommendClusterOK creates a RecommendClusterOK with default headers values

func (*RecommendClusterOK) Error

func (o *RecommendClusterOK) Error() string

type RecommendClusterParams

type RecommendClusterParams struct {

	/*AllowBurst
	  Are burst instances allowed in recommendation

	*/
	AllowBurst *bool
	/*AllowOlderGen
	  AllowOlderGen allow older generations of virtual machines (applies for EC2 only)

	*/
	AllowOlderGen *bool
	/*Category
	  Category specifies the virtual machine category

	*/
	Category []string
	/*Excludes
	  Excludes is a blacklist - a slice with vm types to be excluded from the recommendation

	*/
	Excludes []string
	/*Includes
	  Includes is a whitelist - a slice with vm types to be contained in the recommendation

	*/
	Includes []string
	/*MaxNodes
	  Maximum number of nodes in the recommended cluster

	*/
	MaxNodes *int64
	/*MinNodes
	  Minimum number of nodes in the recommended cluster

	*/
	MinNodes *int64
	/*NetworkPerf
	  NetworkPerf specifies the network performance category

	*/
	NetworkPerf []string
	/*OnDemandPct
	  Percentage of regular (on-demand) nodes in the recommended cluster

	*/
	OnDemandPct *int64
	/*Provider*/
	Provider string
	/*Region*/
	Region string
	/*SameSize
	  If true, recommended instance types will have a similar size

	*/
	SameSize *bool
	/*Service*/
	Service string
	/*SumCPU
	  Total number of CPUs requested for the cluster

	*/
	SumCPU *float64
	/*SumGpu
	  Total number of GPUs requested for the cluster

	*/
	SumGpu *int64
	/*SumMem
	  Total memory requested for the cluster (GB)

	*/
	SumMem *float64
	/*Zone
	  Availability zone that the cluster should expand to

	*/
	Zone *string

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

RecommendClusterParams contains all the parameters to send to the API endpoint for the recommend cluster operation typically these are written to a http.Request

func NewRecommendClusterParams

func NewRecommendClusterParams() *RecommendClusterParams

NewRecommendClusterParams creates a new RecommendClusterParams object with the default values initialized.

func NewRecommendClusterParamsWithContext

func NewRecommendClusterParamsWithContext(ctx context.Context) *RecommendClusterParams

NewRecommendClusterParamsWithContext creates a new RecommendClusterParams object with the default values initialized, and the ability to set a context for a request

func NewRecommendClusterParamsWithHTTPClient

func NewRecommendClusterParamsWithHTTPClient(client *http.Client) *RecommendClusterParams

NewRecommendClusterParamsWithHTTPClient creates a new RecommendClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRecommendClusterParamsWithTimeout

func NewRecommendClusterParamsWithTimeout(timeout time.Duration) *RecommendClusterParams

NewRecommendClusterParamsWithTimeout creates a new RecommendClusterParams object with the default values initialized, and the ability to set a timeout on a request

func (*RecommendClusterParams) SetAllowBurst

func (o *RecommendClusterParams) SetAllowBurst(allowBurst *bool)

SetAllowBurst adds the allowBurst to the recommend cluster params

func (*RecommendClusterParams) SetAllowOlderGen

func (o *RecommendClusterParams) SetAllowOlderGen(allowOlderGen *bool)

SetAllowOlderGen adds the allowOlderGen to the recommend cluster params

func (*RecommendClusterParams) SetCategory

func (o *RecommendClusterParams) SetCategory(category []string)

SetCategory adds the category to the recommend cluster params

func (*RecommendClusterParams) SetContext

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

SetContext adds the context to the recommend cluster params

func (*RecommendClusterParams) SetExcludes

func (o *RecommendClusterParams) SetExcludes(excludes []string)

SetExcludes adds the excludes to the recommend cluster params

func (*RecommendClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the recommend cluster params

func (*RecommendClusterParams) SetIncludes

func (o *RecommendClusterParams) SetIncludes(includes []string)

SetIncludes adds the includes to the recommend cluster params

func (*RecommendClusterParams) SetMaxNodes

func (o *RecommendClusterParams) SetMaxNodes(maxNodes *int64)

SetMaxNodes adds the maxNodes to the recommend cluster params

func (*RecommendClusterParams) SetMinNodes

func (o *RecommendClusterParams) SetMinNodes(minNodes *int64)

SetMinNodes adds the minNodes to the recommend cluster params

func (*RecommendClusterParams) SetNetworkPerf

func (o *RecommendClusterParams) SetNetworkPerf(networkPerf []string)

SetNetworkPerf adds the networkPerf to the recommend cluster params

func (*RecommendClusterParams) SetOnDemandPct

func (o *RecommendClusterParams) SetOnDemandPct(onDemandPct *int64)

SetOnDemandPct adds the onDemandPct to the recommend cluster params

func (*RecommendClusterParams) SetProvider

func (o *RecommendClusterParams) SetProvider(provider string)

SetProvider adds the provider to the recommend cluster params

func (*RecommendClusterParams) SetRegion

func (o *RecommendClusterParams) SetRegion(region string)

SetRegion adds the region to the recommend cluster params

func (*RecommendClusterParams) SetSameSize

func (o *RecommendClusterParams) SetSameSize(sameSize *bool)

SetSameSize adds the sameSize to the recommend cluster params

func (*RecommendClusterParams) SetService

func (o *RecommendClusterParams) SetService(service string)

SetService adds the service to the recommend cluster params

func (*RecommendClusterParams) SetSumCPU

func (o *RecommendClusterParams) SetSumCPU(sumCPU *float64)

SetSumCPU adds the sumCpu to the recommend cluster params

func (*RecommendClusterParams) SetSumGpu

func (o *RecommendClusterParams) SetSumGpu(sumGpu *int64)

SetSumGpu adds the sumGpu to the recommend cluster params

func (*RecommendClusterParams) SetSumMem

func (o *RecommendClusterParams) SetSumMem(sumMem *float64)

SetSumMem adds the sumMem to the recommend cluster params

func (*RecommendClusterParams) SetTimeout

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

SetTimeout adds the timeout to the recommend cluster params

func (*RecommendClusterParams) SetZone

func (o *RecommendClusterParams) SetZone(zone *string)

SetZone adds the zone to the recommend cluster params

func (*RecommendClusterParams) WithAllowBurst

func (o *RecommendClusterParams) WithAllowBurst(allowBurst *bool) *RecommendClusterParams

WithAllowBurst adds the allowBurst to the recommend cluster params

func (*RecommendClusterParams) WithAllowOlderGen

func (o *RecommendClusterParams) WithAllowOlderGen(allowOlderGen *bool) *RecommendClusterParams

WithAllowOlderGen adds the allowOlderGen to the recommend cluster params

func (*RecommendClusterParams) WithCategory

func (o *RecommendClusterParams) WithCategory(category []string) *RecommendClusterParams

WithCategory adds the category to the recommend cluster params

func (*RecommendClusterParams) WithContext

WithContext adds the context to the recommend cluster params

func (*RecommendClusterParams) WithExcludes

func (o *RecommendClusterParams) WithExcludes(excludes []string) *RecommendClusterParams

WithExcludes adds the excludes to the recommend cluster params

func (*RecommendClusterParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the recommend cluster params

func (*RecommendClusterParams) WithIncludes

func (o *RecommendClusterParams) WithIncludes(includes []string) *RecommendClusterParams

WithIncludes adds the includes to the recommend cluster params

func (*RecommendClusterParams) WithMaxNodes

func (o *RecommendClusterParams) WithMaxNodes(maxNodes *int64) *RecommendClusterParams

WithMaxNodes adds the maxNodes to the recommend cluster params

func (*RecommendClusterParams) WithMinNodes

func (o *RecommendClusterParams) WithMinNodes(minNodes *int64) *RecommendClusterParams

WithMinNodes adds the minNodes to the recommend cluster params

func (*RecommendClusterParams) WithNetworkPerf

func (o *RecommendClusterParams) WithNetworkPerf(networkPerf []string) *RecommendClusterParams

WithNetworkPerf adds the networkPerf to the recommend cluster params

func (*RecommendClusterParams) WithOnDemandPct

func (o *RecommendClusterParams) WithOnDemandPct(onDemandPct *int64) *RecommendClusterParams

WithOnDemandPct adds the onDemandPct to the recommend cluster params

func (*RecommendClusterParams) WithProvider

func (o *RecommendClusterParams) WithProvider(provider string) *RecommendClusterParams

WithProvider adds the provider to the recommend cluster params

func (*RecommendClusterParams) WithRegion

func (o *RecommendClusterParams) WithRegion(region string) *RecommendClusterParams

WithRegion adds the region to the recommend cluster params

func (*RecommendClusterParams) WithSameSize

func (o *RecommendClusterParams) WithSameSize(sameSize *bool) *RecommendClusterParams

WithSameSize adds the sameSize to the recommend cluster params

func (*RecommendClusterParams) WithService

func (o *RecommendClusterParams) WithService(service string) *RecommendClusterParams

WithService adds the service to the recommend cluster params

func (*RecommendClusterParams) WithSumCPU

func (o *RecommendClusterParams) WithSumCPU(sumCPU *float64) *RecommendClusterParams

WithSumCPU adds the sumCPU to the recommend cluster params

func (*RecommendClusterParams) WithSumGpu

func (o *RecommendClusterParams) WithSumGpu(sumGpu *int64) *RecommendClusterParams

WithSumGpu adds the sumGpu to the recommend cluster params

func (*RecommendClusterParams) WithSumMem

func (o *RecommendClusterParams) WithSumMem(sumMem *float64) *RecommendClusterParams

WithSumMem adds the sumMem to the recommend cluster params

func (*RecommendClusterParams) WithTimeout

WithTimeout adds the timeout to the recommend cluster params

func (*RecommendClusterParams) WithZone

WithZone adds the zone to the recommend cluster params

func (*RecommendClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RecommendClusterReader

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

RecommendClusterReader is a Reader for the RecommendCluster structure.

func (*RecommendClusterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RecommendClusterScaleOutOK

type RecommendClusterScaleOutOK struct {
	Payload *models.ClusterRecommendationResp
}

RecommendClusterScaleOutOK handles this case with default header values.

RecommendationResponse

func NewRecommendClusterScaleOutOK

func NewRecommendClusterScaleOutOK() *RecommendClusterScaleOutOK

NewRecommendClusterScaleOutOK creates a RecommendClusterScaleOutOK with default headers values

func (*RecommendClusterScaleOutOK) Error

type RecommendClusterScaleOutParams

type RecommendClusterScaleOutParams struct {

	/*ActualLayout
	  Description of the current cluster layout

	*/
	ActualLayout []*models.NodePoolDesc
	/*DesiredCPU
	  Total desired number of CPUs in the cluster after the scale out

	*/
	DesiredCPU *float64
	/*DesiredGpu
	  Total desired number of GPUs in the cluster after the scale out

	*/
	DesiredGpu *int64
	/*DesiredMem
	  Total desired memory (GB) in the cluster after the scale out

	*/
	DesiredMem *float64
	/*Excludes
	  Excludes is a blacklist - a slice with vm types to be excluded from the recommendation

	*/
	Excludes []string
	/*OnDemandPct
	  Percentage of regular (on-demand) nodes among the scale out nodes

	*/
	OnDemandPct *int64
	/*Provider*/
	Provider string
	/*Region*/
	Region string
	/*Service*/
	Service string
	/*Zone
	  Availability zone to be included in the recommendation

	*/
	Zone *string

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

RecommendClusterScaleOutParams contains all the parameters to send to the API endpoint for the recommend cluster scale out operation typically these are written to a http.Request

func NewRecommendClusterScaleOutParams

func NewRecommendClusterScaleOutParams() *RecommendClusterScaleOutParams

NewRecommendClusterScaleOutParams creates a new RecommendClusterScaleOutParams object with the default values initialized.

func NewRecommendClusterScaleOutParamsWithContext

func NewRecommendClusterScaleOutParamsWithContext(ctx context.Context) *RecommendClusterScaleOutParams

NewRecommendClusterScaleOutParamsWithContext creates a new RecommendClusterScaleOutParams object with the default values initialized, and the ability to set a context for a request

func NewRecommendClusterScaleOutParamsWithHTTPClient

func NewRecommendClusterScaleOutParamsWithHTTPClient(client *http.Client) *RecommendClusterScaleOutParams

NewRecommendClusterScaleOutParamsWithHTTPClient creates a new RecommendClusterScaleOutParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRecommendClusterScaleOutParamsWithTimeout

func NewRecommendClusterScaleOutParamsWithTimeout(timeout time.Duration) *RecommendClusterScaleOutParams

NewRecommendClusterScaleOutParamsWithTimeout creates a new RecommendClusterScaleOutParams object with the default values initialized, and the ability to set a timeout on a request

func (*RecommendClusterScaleOutParams) SetActualLayout

func (o *RecommendClusterScaleOutParams) SetActualLayout(actualLayout []*models.NodePoolDesc)

SetActualLayout adds the actualLayout to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetContext

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

SetContext adds the context to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetDesiredCPU

func (o *RecommendClusterScaleOutParams) SetDesiredCPU(desiredCPU *float64)

SetDesiredCPU adds the desiredCpu to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetDesiredGpu

func (o *RecommendClusterScaleOutParams) SetDesiredGpu(desiredGpu *int64)

SetDesiredGpu adds the desiredGpu to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetDesiredMem

func (o *RecommendClusterScaleOutParams) SetDesiredMem(desiredMem *float64)

SetDesiredMem adds the desiredMem to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetExcludes

func (o *RecommendClusterScaleOutParams) SetExcludes(excludes []string)

SetExcludes adds the excludes to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetOnDemandPct

func (o *RecommendClusterScaleOutParams) SetOnDemandPct(onDemandPct *int64)

SetOnDemandPct adds the onDemandPct to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetProvider

func (o *RecommendClusterScaleOutParams) SetProvider(provider string)

SetProvider adds the provider to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetRegion

func (o *RecommendClusterScaleOutParams) SetRegion(region string)

SetRegion adds the region to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetService

func (o *RecommendClusterScaleOutParams) SetService(service string)

SetService adds the service to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetTimeout

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

SetTimeout adds the timeout to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) SetZone

func (o *RecommendClusterScaleOutParams) SetZone(zone *string)

SetZone adds the zone to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithActualLayout

WithActualLayout adds the actualLayout to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithContext

WithContext adds the context to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithDesiredCPU

WithDesiredCPU adds the desiredCPU to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithDesiredGpu

WithDesiredGpu adds the desiredGpu to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithDesiredMem

WithDesiredMem adds the desiredMem to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithExcludes

WithExcludes adds the excludes to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithOnDemandPct

func (o *RecommendClusterScaleOutParams) WithOnDemandPct(onDemandPct *int64) *RecommendClusterScaleOutParams

WithOnDemandPct adds the onDemandPct to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithProvider

WithProvider adds the provider to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithRegion

WithRegion adds the region to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithService

WithService adds the service to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithTimeout

WithTimeout adds the timeout to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WithZone

WithZone adds the zone to the recommend cluster scale out params

func (*RecommendClusterScaleOutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RecommendClusterScaleOutReader

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

RecommendClusterScaleOutReader is a Reader for the RecommendClusterScaleOut structure.

func (*RecommendClusterScaleOutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RecommendMultiClusterOK

type RecommendMultiClusterOK struct {
	Payload *models.ClusterRecommendationResp
}

RecommendMultiClusterOK handles this case with default header values.

RecommendationResponse

func NewRecommendMultiClusterOK

func NewRecommendMultiClusterOK() *RecommendMultiClusterOK

NewRecommendMultiClusterOK creates a RecommendMultiClusterOK with default headers values

func (*RecommendMultiClusterOK) Error

func (o *RecommendMultiClusterOK) Error() string

type RecommendMultiClusterParams

type RecommendMultiClusterParams struct {

	/*Provider*/
	Provider *string
	/*Services*/
	Services []string

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

RecommendMultiClusterParams contains all the parameters to send to the API endpoint for the recommend multi cluster operation typically these are written to a http.Request

func NewRecommendMultiClusterParams

func NewRecommendMultiClusterParams() *RecommendMultiClusterParams

NewRecommendMultiClusterParams creates a new RecommendMultiClusterParams object with the default values initialized.

func NewRecommendMultiClusterParamsWithContext

func NewRecommendMultiClusterParamsWithContext(ctx context.Context) *RecommendMultiClusterParams

NewRecommendMultiClusterParamsWithContext creates a new RecommendMultiClusterParams object with the default values initialized, and the ability to set a context for a request

func NewRecommendMultiClusterParamsWithHTTPClient

func NewRecommendMultiClusterParamsWithHTTPClient(client *http.Client) *RecommendMultiClusterParams

NewRecommendMultiClusterParamsWithHTTPClient creates a new RecommendMultiClusterParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewRecommendMultiClusterParamsWithTimeout

func NewRecommendMultiClusterParamsWithTimeout(timeout time.Duration) *RecommendMultiClusterParams

NewRecommendMultiClusterParamsWithTimeout creates a new RecommendMultiClusterParams object with the default values initialized, and the ability to set a timeout on a request

func (*RecommendMultiClusterParams) SetContext

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

SetContext adds the context to the recommend multi cluster params

func (*RecommendMultiClusterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the recommend multi cluster params

func (*RecommendMultiClusterParams) SetProvider

func (o *RecommendMultiClusterParams) SetProvider(provider *string)

SetProvider adds the provider to the recommend multi cluster params

func (*RecommendMultiClusterParams) SetServices

func (o *RecommendMultiClusterParams) SetServices(services []string)

SetServices adds the services to the recommend multi cluster params

func (*RecommendMultiClusterParams) SetTimeout

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

SetTimeout adds the timeout to the recommend multi cluster params

func (*RecommendMultiClusterParams) WithContext

WithContext adds the context to the recommend multi cluster params

func (*RecommendMultiClusterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the recommend multi cluster params

func (*RecommendMultiClusterParams) WithProvider

WithProvider adds the provider to the recommend multi cluster params

func (*RecommendMultiClusterParams) WithServices

func (o *RecommendMultiClusterParams) WithServices(services []string) *RecommendMultiClusterParams

WithServices adds the services to the recommend multi cluster params

func (*RecommendMultiClusterParams) WithTimeout

WithTimeout adds the timeout to the recommend multi cluster params

func (*RecommendMultiClusterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RecommendMultiClusterReader

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

RecommendMultiClusterReader is a Reader for the RecommendMultiCluster structure.

func (*RecommendMultiClusterReader) ReadResponse

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