Documentation
¶
Index ¶
- type Client
- func (a *Client) RecommendCluster(params *RecommendClusterParams) (*RecommendClusterOK, error)
- func (a *Client) RecommendClusterScaleOut(params *RecommendClusterScaleOutParams) (*RecommendClusterScaleOutOK, error)
- func (a *Client) RecommendMultiCluster(params *RecommendMultiClusterParams) (*RecommendMultiClusterOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type RecommendClusterOK
- type RecommendClusterParams
- func NewRecommendClusterParams() *RecommendClusterParams
- func NewRecommendClusterParamsWithContext(ctx context.Context) *RecommendClusterParams
- func NewRecommendClusterParamsWithHTTPClient(client *http.Client) *RecommendClusterParams
- func NewRecommendClusterParamsWithTimeout(timeout time.Duration) *RecommendClusterParams
- func (o *RecommendClusterParams) SetAllowBurst(allowBurst *bool)
- func (o *RecommendClusterParams) SetAllowOlderGen(allowOlderGen *bool)
- func (o *RecommendClusterParams) SetCategory(category []string)
- func (o *RecommendClusterParams) SetContext(ctx context.Context)
- func (o *RecommendClusterParams) SetExcludes(excludes []string)
- func (o *RecommendClusterParams) SetHTTPClient(client *http.Client)
- func (o *RecommendClusterParams) SetIncludes(includes []string)
- func (o *RecommendClusterParams) SetMaxNodes(maxNodes *int64)
- func (o *RecommendClusterParams) SetMinNodes(minNodes *int64)
- func (o *RecommendClusterParams) SetNetworkPerf(networkPerf []string)
- func (o *RecommendClusterParams) SetOnDemandPct(onDemandPct *int64)
- func (o *RecommendClusterParams) SetProvider(provider string)
- func (o *RecommendClusterParams) SetRegion(region string)
- func (o *RecommendClusterParams) SetSameSize(sameSize *bool)
- func (o *RecommendClusterParams) SetService(service string)
- func (o *RecommendClusterParams) SetSumCPU(sumCPU *float64)
- func (o *RecommendClusterParams) SetSumGpu(sumGpu *int64)
- func (o *RecommendClusterParams) SetSumMem(sumMem *float64)
- func (o *RecommendClusterParams) SetTimeout(timeout time.Duration)
- func (o *RecommendClusterParams) SetZone(zone *string)
- func (o *RecommendClusterParams) WithAllowBurst(allowBurst *bool) *RecommendClusterParams
- func (o *RecommendClusterParams) WithAllowOlderGen(allowOlderGen *bool) *RecommendClusterParams
- func (o *RecommendClusterParams) WithCategory(category []string) *RecommendClusterParams
- func (o *RecommendClusterParams) WithContext(ctx context.Context) *RecommendClusterParams
- func (o *RecommendClusterParams) WithExcludes(excludes []string) *RecommendClusterParams
- func (o *RecommendClusterParams) WithHTTPClient(client *http.Client) *RecommendClusterParams
- func (o *RecommendClusterParams) WithIncludes(includes []string) *RecommendClusterParams
- func (o *RecommendClusterParams) WithMaxNodes(maxNodes *int64) *RecommendClusterParams
- func (o *RecommendClusterParams) WithMinNodes(minNodes *int64) *RecommendClusterParams
- func (o *RecommendClusterParams) WithNetworkPerf(networkPerf []string) *RecommendClusterParams
- func (o *RecommendClusterParams) WithOnDemandPct(onDemandPct *int64) *RecommendClusterParams
- func (o *RecommendClusterParams) WithProvider(provider string) *RecommendClusterParams
- func (o *RecommendClusterParams) WithRegion(region string) *RecommendClusterParams
- func (o *RecommendClusterParams) WithSameSize(sameSize *bool) *RecommendClusterParams
- func (o *RecommendClusterParams) WithService(service string) *RecommendClusterParams
- func (o *RecommendClusterParams) WithSumCPU(sumCPU *float64) *RecommendClusterParams
- func (o *RecommendClusterParams) WithSumGpu(sumGpu *int64) *RecommendClusterParams
- func (o *RecommendClusterParams) WithSumMem(sumMem *float64) *RecommendClusterParams
- func (o *RecommendClusterParams) WithTimeout(timeout time.Duration) *RecommendClusterParams
- func (o *RecommendClusterParams) WithZone(zone *string) *RecommendClusterParams
- func (o *RecommendClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RecommendClusterReader
- type RecommendClusterScaleOutOK
- type RecommendClusterScaleOutParams
- func NewRecommendClusterScaleOutParams() *RecommendClusterScaleOutParams
- func NewRecommendClusterScaleOutParamsWithContext(ctx context.Context) *RecommendClusterScaleOutParams
- func NewRecommendClusterScaleOutParamsWithHTTPClient(client *http.Client) *RecommendClusterScaleOutParams
- func NewRecommendClusterScaleOutParamsWithTimeout(timeout time.Duration) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) SetActualLayout(actualLayout []*models.NodePoolDesc)
- func (o *RecommendClusterScaleOutParams) SetContext(ctx context.Context)
- func (o *RecommendClusterScaleOutParams) SetDesiredCPU(desiredCPU *float64)
- func (o *RecommendClusterScaleOutParams) SetDesiredGpu(desiredGpu *int64)
- func (o *RecommendClusterScaleOutParams) SetDesiredMem(desiredMem *float64)
- func (o *RecommendClusterScaleOutParams) SetExcludes(excludes []string)
- func (o *RecommendClusterScaleOutParams) SetHTTPClient(client *http.Client)
- func (o *RecommendClusterScaleOutParams) SetOnDemandPct(onDemandPct *int64)
- func (o *RecommendClusterScaleOutParams) SetProvider(provider string)
- func (o *RecommendClusterScaleOutParams) SetRegion(region string)
- func (o *RecommendClusterScaleOutParams) SetService(service string)
- func (o *RecommendClusterScaleOutParams) SetTimeout(timeout time.Duration)
- func (o *RecommendClusterScaleOutParams) SetZone(zone *string)
- func (o *RecommendClusterScaleOutParams) WithActualLayout(actualLayout []*models.NodePoolDesc) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithContext(ctx context.Context) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithDesiredCPU(desiredCPU *float64) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithDesiredGpu(desiredGpu *int64) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithDesiredMem(desiredMem *float64) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithExcludes(excludes []string) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithHTTPClient(client *http.Client) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithOnDemandPct(onDemandPct *int64) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithProvider(provider string) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithRegion(region string) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithService(service string) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithTimeout(timeout time.Duration) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WithZone(zone *string) *RecommendClusterScaleOutParams
- func (o *RecommendClusterScaleOutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RecommendClusterScaleOutReader
- type RecommendMultiClusterOK
- type RecommendMultiClusterParams
- func NewRecommendMultiClusterParams() *RecommendMultiClusterParams
- func NewRecommendMultiClusterParamsWithContext(ctx context.Context) *RecommendMultiClusterParams
- func NewRecommendMultiClusterParamsWithHTTPClient(client *http.Client) *RecommendMultiClusterParams
- func NewRecommendMultiClusterParamsWithTimeout(timeout time.Duration) *RecommendMultiClusterParams
- func (o *RecommendMultiClusterParams) SetContext(ctx context.Context)
- func (o *RecommendMultiClusterParams) SetHTTPClient(client *http.Client)
- func (o *RecommendMultiClusterParams) SetProvider(provider *string)
- func (o *RecommendMultiClusterParams) SetServices(services []string)
- func (o *RecommendMultiClusterParams) SetTimeout(timeout time.Duration)
- func (o *RecommendMultiClusterParams) WithContext(ctx context.Context) *RecommendMultiClusterParams
- func (o *RecommendMultiClusterParams) WithHTTPClient(client *http.Client) *RecommendMultiClusterParams
- func (o *RecommendMultiClusterParams) WithProvider(provider *string) *RecommendMultiClusterParams
- func (o *RecommendMultiClusterParams) WithServices(services []string) *RecommendMultiClusterParams
- func (o *RecommendMultiClusterParams) WithTimeout(timeout time.Duration) *RecommendMultiClusterParams
- func (o *RecommendMultiClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type RecommendMultiClusterReader
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 ¶
func (o *RecommendClusterParams) WithContext(ctx context.Context) *RecommendClusterParams
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 ¶
func (o *RecommendClusterParams) WithTimeout(timeout time.Duration) *RecommendClusterParams
WithTimeout adds the timeout to the recommend cluster params
func (*RecommendClusterParams) WithZone ¶
func (o *RecommendClusterParams) WithZone(zone *string) *RecommendClusterParams
WithZone adds the zone to the recommend cluster params
func (*RecommendClusterParams) WriteToRequest ¶
func (o *RecommendClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RecommendClusterScaleOutOK) Error() string
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 ¶
func (o *RecommendClusterScaleOutParams) WithActualLayout(actualLayout []*models.NodePoolDesc) *RecommendClusterScaleOutParams
WithActualLayout adds the actualLayout to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithContext ¶
func (o *RecommendClusterScaleOutParams) WithContext(ctx context.Context) *RecommendClusterScaleOutParams
WithContext adds the context to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithDesiredCPU ¶
func (o *RecommendClusterScaleOutParams) WithDesiredCPU(desiredCPU *float64) *RecommendClusterScaleOutParams
WithDesiredCPU adds the desiredCPU to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithDesiredGpu ¶
func (o *RecommendClusterScaleOutParams) WithDesiredGpu(desiredGpu *int64) *RecommendClusterScaleOutParams
WithDesiredGpu adds the desiredGpu to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithDesiredMem ¶
func (o *RecommendClusterScaleOutParams) WithDesiredMem(desiredMem *float64) *RecommendClusterScaleOutParams
WithDesiredMem adds the desiredMem to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithExcludes ¶
func (o *RecommendClusterScaleOutParams) WithExcludes(excludes []string) *RecommendClusterScaleOutParams
WithExcludes adds the excludes to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithHTTPClient ¶
func (o *RecommendClusterScaleOutParams) WithHTTPClient(client *http.Client) *RecommendClusterScaleOutParams
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 ¶
func (o *RecommendClusterScaleOutParams) WithProvider(provider string) *RecommendClusterScaleOutParams
WithProvider adds the provider to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithRegion ¶
func (o *RecommendClusterScaleOutParams) WithRegion(region string) *RecommendClusterScaleOutParams
WithRegion adds the region to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithService ¶
func (o *RecommendClusterScaleOutParams) WithService(service string) *RecommendClusterScaleOutParams
WithService adds the service to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithTimeout ¶
func (o *RecommendClusterScaleOutParams) WithTimeout(timeout time.Duration) *RecommendClusterScaleOutParams
WithTimeout adds the timeout to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WithZone ¶
func (o *RecommendClusterScaleOutParams) WithZone(zone *string) *RecommendClusterScaleOutParams
WithZone adds the zone to the recommend cluster scale out params
func (*RecommendClusterScaleOutParams) WriteToRequest ¶
func (o *RecommendClusterScaleOutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *RecommendMultiClusterParams) WithContext(ctx context.Context) *RecommendMultiClusterParams
WithContext adds the context to the recommend multi cluster params
func (*RecommendMultiClusterParams) WithHTTPClient ¶
func (o *RecommendMultiClusterParams) WithHTTPClient(client *http.Client) *RecommendMultiClusterParams
WithHTTPClient adds the HTTPClient to the recommend multi cluster params
func (*RecommendMultiClusterParams) WithProvider ¶
func (o *RecommendMultiClusterParams) WithProvider(provider *string) *RecommendMultiClusterParams
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 ¶
func (o *RecommendMultiClusterParams) WithTimeout(timeout time.Duration) *RecommendMultiClusterParams
WithTimeout adds the timeout to the recommend multi cluster params
func (*RecommendMultiClusterParams) WriteToRequest ¶
func (o *RecommendMultiClusterParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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.