models

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttributeResponse

type AttributeResponse struct {

	// attribute name
	AttributeName string `json:"attributeName,omitempty"`

	// attribute values
	AttributeValues []float64 `json:"attributeValues"`
}

AttributeResponse AttributeResponse AttributeResponse holds attribute values swagger:model AttributeResponse

func (*AttributeResponse) MarshalBinary

func (m *AttributeResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*AttributeResponse) UnmarshalBinary

func (m *AttributeResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*AttributeResponse) Validate

func (m *AttributeResponse) Validate(formats strfmt.Registry) error

Validate validates this attribute response

type ClusterRecommendationAccuracy

type ClusterRecommendationAccuracy struct {

	// Number of recommended cpus
	RecCPU float64 `json:"cpu,omitempty"`

	// Amount of master instance type prices in the recommended cluster
	RecMasterPrice float64 `json:"masterPrice,omitempty"`

	// The summarised amount of memory in the recommended cluster
	RecMem float64 `json:"memory,omitempty"`

	// Number of recommended nodes
	RecNodes int64 `json:"nodes,omitempty"`

	// Number of regular instance type in the recommended cluster
	RecRegularNodes int64 `json:"regularNodes,omitempty"`

	// Amount of regular instance type prices in the recommended cluster
	RecRegularPrice float64 `json:"regularPrice,omitempty"`

	// Number of spot instance type in the recommended cluster
	RecSpotNodes int64 `json:"spotNodes,omitempty"`

	// Amount of spot instance type prices in the recommended cluster
	RecSpotPrice float64 `json:"spotPrice,omitempty"`

	// Total price in the recommended cluster
	RecTotalPrice float64 `json:"totalPrice,omitempty"`

	// Amount of worker instance type prices in the recommended cluster
	RecWorkerPrice float64 `json:"workerPrice,omitempty"`

	// Availability zone in the recommendation
	RecZone string `json:"zone,omitempty"`
}

ClusterRecommendationAccuracy ClusterRecommendationAccuracy encapsulates recommendation accuracy swagger:model ClusterRecommendationAccuracy

func (*ClusterRecommendationAccuracy) MarshalBinary

func (m *ClusterRecommendationAccuracy) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterRecommendationAccuracy) UnmarshalBinary

func (m *ClusterRecommendationAccuracy) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterRecommendationAccuracy) Validate

func (m *ClusterRecommendationAccuracy) Validate(formats strfmt.Registry) error

Validate validates this cluster recommendation accuracy

type ClusterRecommendationReq

type ClusterRecommendationReq struct {

	// Are burst instances allowed in recommendation
	AllowBurst bool `json:"allowBurst,omitempty"`

	// AllowOlderGen allow older generations of virtual machines (applies for EC2 only)
	AllowOlderGen bool `json:"allowOlderGen,omitempty"`

	// Category specifies the virtual machine category
	Category []string `json:"category"`

	// Maximum number of nodes in the recommended cluster
	MaxNodes int64 `json:"maxNodes,omitempty"`

	// Minimum number of nodes in the recommended cluster
	MinNodes int64 `json:"minNodes,omitempty"`

	// NetworkPerf specifies the network performance category
	NetworkPerf []string `json:"networkPerf"`

	// Percentage of regular (on-demand) nodes in the recommended cluster
	OnDemandPct int64 `json:"onDemandPct,omitempty"`

	// If true, recommended instance types will have a similar size
	SameSize bool `json:"sameSize,omitempty"`

	// Total number of CPUs requested for the cluster
	SumCPU float64 `json:"sumCpu,omitempty"`

	// Total number of GPUs requested for the cluster
	SumGpu int64 `json:"sumGpu,omitempty"`

	// Total memory requested for the cluster (GB)
	SumMem float64 `json:"sumMem,omitempty"`
}

ClusterRecommendationReq ClusterRecommendationReq encapsulates the recommendation input data swagger:model ClusterRecommendationReq

func (*ClusterRecommendationReq) MarshalBinary

func (m *ClusterRecommendationReq) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterRecommendationReq) UnmarshalBinary

func (m *ClusterRecommendationReq) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterRecommendationReq) Validate

func (m *ClusterRecommendationReq) Validate(formats strfmt.Registry) error

Validate validates this cluster recommendation req

type ClusterRecommendationResp

type ClusterRecommendationResp struct {

	// Recommended node pools
	NodePools []*NodePool `json:"nodePools"`

	// The cloud provider
	Provider string `json:"provider,omitempty"`

	// Service's region
	Region string `json:"region,omitempty"`

	// Provider's service
	Service string `json:"service,omitempty"`

	// Availability zone in the recommendation - a multi-zone recommendation means that all node pools should expand to all zones
	Zone string `json:"zone,omitempty"`

	// accuracy
	Accuracy *ClusterRecommendationAccuracy `json:"accuracy,omitempty"`
}

ClusterRecommendationResp ClusterRecommendationResp encapsulates recommendation result data swagger:model ClusterRecommendationResp

func (*ClusterRecommendationResp) MarshalBinary

func (m *ClusterRecommendationResp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterRecommendationResp) UnmarshalBinary

func (m *ClusterRecommendationResp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterRecommendationResp) Validate

func (m *ClusterRecommendationResp) Validate(formats strfmt.Registry) error

Validate validates this cluster recommendation resp

type ClusterRecommender

type ClusterRecommender interface{}

ClusterRecommender ClusterRecommender is the main entry point for cluster recommendation swagger:model ClusterRecommender

type ClusterScaleoutRecommendationReq

type ClusterScaleoutRecommendationReq struct {

	// Description of the current cluster layout
	// in:body
	ActualLayout []*NodePoolDesc `json:"actualLayout"`

	// Total desired number of CPUs in the cluster after the scale out
	DesiredCPU float64 `json:"desiredCpu,omitempty"`

	// Total desired number of GPUs in the cluster after the scale out
	DesiredGpu int64 `json:"desiredGpu,omitempty"`

	// Total desired memory (GB) in the cluster after the scale out
	DesiredMem float64 `json:"desiredMem,omitempty"`

	// Excludes is a blacklist - a slice with vm types to be excluded from the recommendation
	Excludes []string `json:"excludes"`

	// Percentage of regular (on-demand) nodes among the scale out nodes
	OnDemandPct int64 `json:"onDemandPct,omitempty"`

	// Availability zone to be included in the recommendation
	Zone string `json:"zone,omitempty"`
}

ClusterScaleoutRecommendationReq ClusterScaleoutRecommendationReq encapsulates the recommendation input data swagger:model ClusterScaleoutRecommendationReq

func (*ClusterScaleoutRecommendationReq) MarshalBinary

func (m *ClusterScaleoutRecommendationReq) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ClusterScaleoutRecommendationReq) UnmarshalBinary

func (m *ClusterScaleoutRecommendationReq) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ClusterScaleoutRecommendationReq) Validate

Validate validates this cluster scaleout recommendation req

type Continent

type Continent struct {

	// name
	Name string `json:"name,omitempty"`

	// regions
	Regions []*Region `json:"regions"`
}

Continent Continent Continent holds continent and regions of a cloud provider swagger:model Continent

func (*Continent) MarshalBinary

func (m *Continent) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Continent) UnmarshalBinary

func (m *Continent) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Continent) Validate

func (m *Continent) Validate(formats strfmt.Registry) error

Validate validates this continent

type ContinentsDataResponse

type ContinentsDataResponse []*Continent

ContinentsDataResponse ContinentsDataResponse ContinentsDataResponse holds the list of available continents and regions of a cloud provider swagger:model ContinentsDataResponse

func (ContinentsDataResponse) Validate

func (m ContinentsDataResponse) Validate(formats strfmt.Registry) error

Validate validates this continents data response

type ContinentsResponse

type ContinentsResponse []string

ContinentsResponse ContinentsResponse ContinentsResponse holds the list of available continents swagger:model ContinentsResponse

func (ContinentsResponse) Validate

func (m ContinentsResponse) Validate(formats strfmt.Registry) error

Validate validates this continents response

type GetAttributeValuesPathParams

type GetAttributeValuesPathParams struct {

	// in:path
	Attribute string `json:"attribute,omitempty"`

	// in:path
	Provider string `json:"provider,omitempty"`

	// in:path
	Region string `json:"region,omitempty"`

	// in:path
	Service string `json:"service,omitempty"`
}

GetAttributeValuesPathParams GetAttributeValuesPathParams GetAttributeValuesPathParams is a placeholder for the get attribute values route's path parameters swagger:model GetAttributeValuesPathParams

func (*GetAttributeValuesPathParams) MarshalBinary

func (m *GetAttributeValuesPathParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetAttributeValuesPathParams) UnmarshalBinary

func (m *GetAttributeValuesPathParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetAttributeValuesPathParams) Validate

func (m *GetAttributeValuesPathParams) Validate(formats strfmt.Registry) error

Validate validates this get attribute values path params

type GetImagesQueryParams

type GetImagesQueryParams struct {

	// in:query
	Gpu string `json:"gpu,omitempty"`

	// in:query
	Version string `json:"version,omitempty"`
}

GetImagesQueryParams GetImagesQueryParams GetImagesQueryParams is a placeholder for the get images query parameters swagger:model GetImagesQueryParams

func (*GetImagesQueryParams) MarshalBinary

func (m *GetImagesQueryParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetImagesQueryParams) UnmarshalBinary

func (m *GetImagesQueryParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetImagesQueryParams) Validate

func (m *GetImagesQueryParams) Validate(formats strfmt.Registry) error

Validate validates this get images query params

type GetProviderPathParams

type GetProviderPathParams struct {

	// in:path
	Provider string `json:"provider,omitempty"`
}

GetProviderPathParams GetProviderPathParams GetProviderPathParams is a placeholder for the providers related route path parameters swagger:model GetProviderPathParams

func (*GetProviderPathParams) MarshalBinary

func (m *GetProviderPathParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetProviderPathParams) UnmarshalBinary

func (m *GetProviderPathParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetProviderPathParams) Validate

func (m *GetProviderPathParams) Validate(formats strfmt.Registry) error

Validate validates this get provider path params

type GetRegionPathParams

type GetRegionPathParams struct {

	// in:path
	Provider string `json:"provider,omitempty"`

	// in:path
	Region string `json:"region,omitempty"`

	// in:path
	Service string `json:"service,omitempty"`
}

GetRegionPathParams GetRegionPathParams GetRegionPathParams is a placeholder for the regions related route path parameters swagger:model GetRegionPathParams

func (*GetRegionPathParams) MarshalBinary

func (m *GetRegionPathParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetRegionPathParams) UnmarshalBinary

func (m *GetRegionPathParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetRegionPathParams) Validate

func (m *GetRegionPathParams) Validate(formats strfmt.Registry) error

Validate validates this get region path params

type GetRegionResp

type GetRegionResp struct {

	// Id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// zones
	Zones []string `json:"zones"`
}

GetRegionResp GetRegionResp GetRegionResp holds the detailed description of a specific region of a cloud provider swagger:model GetRegionResp

func (*GetRegionResp) MarshalBinary

func (m *GetRegionResp) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetRegionResp) UnmarshalBinary

func (m *GetRegionResp) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetRegionResp) Validate

func (m *GetRegionResp) Validate(formats strfmt.Registry) error

Validate validates this get region resp

type GetServicesPathParams

type GetServicesPathParams struct {

	// in:path
	Provider string `json:"provider,omitempty"`

	// in:path
	Service string `json:"service,omitempty"`
}

GetServicesPathParams GetServicesPathParams GetServicesPathParams is a placeholder for the services related route path parameters swagger:model GetServicesPathParams

func (*GetServicesPathParams) MarshalBinary

func (m *GetServicesPathParams) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetServicesPathParams) UnmarshalBinary

func (m *GetServicesPathParams) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetServicesPathParams) Validate

func (m *GetServicesPathParams) Validate(formats strfmt.Registry) error

Validate validates this get services path params

type Image

type Image struct {

	// gpu available
	GpuAvailable bool `json:"gpu,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

Image Image Image represents an image swagger:model Image

func (*Image) MarshalBinary

func (m *Image) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Image) UnmarshalBinary

func (m *Image) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Image) Validate

func (m *Image) Validate(formats strfmt.Registry) error

Validate validates this image

type ImagesResponse

type ImagesResponse struct {

	// images
	Images []*Image `json:"images"`
}

ImagesResponse ImagesResponse ImagesResponse holds the list of available images swagger:model ImagesResponse

func (*ImagesResponse) MarshalBinary

func (m *ImagesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImagesResponse) UnmarshalBinary

func (m *ImagesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImagesResponse) Validate

func (m *ImagesResponse) Validate(formats strfmt.Registry) error

Validate validates this images response

type LocationVersion

type LocationVersion struct {

	// default
	Default string `json:"default,omitempty"`

	// location
	Location string `json:"location,omitempty"`

	// versions
	Versions []string `json:"versions"`
}

LocationVersion LocationVersion LocationVersion struct for displaying version information per location swagger:model LocationVersion

func (*LocationVersion) MarshalBinary

func (m *LocationVersion) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*LocationVersion) UnmarshalBinary

func (m *LocationVersion) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*LocationVersion) Validate

func (m *LocationVersion) Validate(formats strfmt.Registry) error

Validate validates this location version

type MultiClusterRecommendationReq

type MultiClusterRecommendationReq struct {

	// Are burst instances allowed in recommendation
	AllowBurst bool `json:"allowBurst,omitempty"`

	// AllowOlderGen allow older generations of virtual machines (applies for EC2 only)
	AllowOlderGen bool `json:"allowOlderGen,omitempty"`

	// Category specifies the virtual machine category
	Category []string `json:"category"`

	// continents
	Continents []string `json:"continents"`

	// Excludes is a blacklist - a slice with vm types to be excluded from the recommendation
	Excludes map[string]map[string][]string `json:"excludes,omitempty"`

	// Includes is a whitelist - a slice with vm types to be contained in the recommendation
	Includes map[string]map[string][]string `json:"includes,omitempty"`

	// Maximum number of nodes in the recommended cluster
	MaxNodes int64 `json:"maxNodes,omitempty"`

	// Minimum number of nodes in the recommended cluster
	MinNodes int64 `json:"minNodes,omitempty"`

	// NetworkPerf specifies the network performance category
	NetworkPerf []string `json:"networkPerf"`

	// Percentage of regular (on-demand) nodes in the recommended cluster
	OnDemandPct int64 `json:"onDemandPct,omitempty"`

	// providers
	Providers []*Provider `json:"providers"`

	// Maximum number of response per service
	RespPerService int64 `json:"respPerService,omitempty"`

	// If true, recommended instance types will have a similar size
	SameSize bool `json:"sameSize,omitempty"`

	// Total number of CPUs requested for the cluster
	SumCPU float64 `json:"sumCpu,omitempty"`

	// Total number of GPUs requested for the cluster
	SumGpu int64 `json:"sumGpu,omitempty"`

	// Total memory requested for the cluster (GB)
	SumMem float64 `json:"sumMem,omitempty"`
}

MultiClusterRecommendationReq MultiClusterRecommendationReq encapsulates the recommendation input data swagger:model MultiClusterRecommendationReq

func (*MultiClusterRecommendationReq) MarshalBinary

func (m *MultiClusterRecommendationReq) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MultiClusterRecommendationReq) UnmarshalBinary

func (m *MultiClusterRecommendationReq) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MultiClusterRecommendationReq) Validate

func (m *MultiClusterRecommendationReq) Validate(formats strfmt.Registry) error

Validate validates this multi cluster recommendation req

type NodePool

type NodePool struct {

	// Role in the cluster, eg. master or worker
	Role string `json:"role,omitempty"`

	// Recommended number of nodes in the node pool
	SumNodes int64 `json:"sumNodes,omitempty"`

	// Specifies if the recommended node pool consists of regular or spot/preemptible instance types
	VMClass string `json:"vmClass,omitempty"`

	// vm
	VM *VirtualMachine `json:"vm,omitempty"`
}

NodePool NodePool represents a set of instances with a specific vm type swagger:model NodePool

func (*NodePool) MarshalBinary

func (m *NodePool) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodePool) UnmarshalBinary

func (m *NodePool) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodePool) Validate

func (m *NodePool) Validate(formats strfmt.Registry) error

Validate validates this node pool

type NodePoolDesc

type NodePoolDesc struct {

	// Instance type of VMs in the node pool
	InstanceType string `json:"instanceType,omitempty"`

	// Number of VMs in the node pool
	SumNodes int64 `json:"sumNodes,omitempty"`

	// Signals that the node pool consists of regular or spot/preemptible instance types
	VMClass string `json:"vmClass,omitempty"`
}

NodePoolDesc node pool desc swagger:model NodePoolDesc

func (*NodePoolDesc) MarshalBinary

func (m *NodePoolDesc) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*NodePoolDesc) UnmarshalBinary

func (m *NodePoolDesc) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*NodePoolDesc) Validate

func (m *NodePoolDesc) Validate(formats strfmt.Registry) error

Validate validates this node pool desc

type NodePoolRecommender

type NodePoolRecommender interface{}

NodePoolRecommender node pool recommender swagger:model NodePoolRecommender

type ProductDetails

type ProductDetails struct {

	// attributes
	Attributes map[string]string `json:"attributes,omitempty"`

	// Burst this is derived for now
	Burst bool `json:"burst,omitempty"`

	// category
	Category string `json:"category,omitempty"`

	// cpus
	Cpus float64 `json:"cpusPerVm,omitempty"`

	// CurrentGen signals whether the instance type generation is the current one. Only applies for amazon
	CurrentGen bool `json:"currentGen,omitempty"`

	// gpus
	Gpus float64 `json:"gpusPerVm,omitempty"`

	// mem
	Mem float64 `json:"memPerVm,omitempty"`

	// ntw perf
	NtwPerf string `json:"ntwPerf,omitempty"`

	// ntw perf cat
	NtwPerfCat string `json:"ntwPerfCategory,omitempty"`

	// on demand price
	OnDemandPrice float64 `json:"onDemandPrice,omitempty"`

	// spot price
	SpotPrice []*ZonePrice `json:"spotPrice"`

	// type
	Type string `json:"type,omitempty"`

	// zones
	Zones []string `json:"zones"`
}

ProductDetails ProductDetails ProductDetails extended view of the virtual machine details swagger:model ProductDetails

func (*ProductDetails) MarshalBinary

func (m *ProductDetails) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProductDetails) UnmarshalBinary

func (m *ProductDetails) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProductDetails) Validate

func (m *ProductDetails) Validate(formats strfmt.Registry) error

Validate validates this product details

type ProductDetailsResponse

type ProductDetailsResponse struct {

	// Products represents a slice of products for a given provider (VMs with attributes and process)
	Products []*ProductDetails `json:"products"`

	// ScrapingTime represents scraping time for a given provider in milliseconds
	ScrapingTime string `json:"scrapingTime,omitempty"`
}

ProductDetailsResponse ProductDetailsResponse ProductDetailsResponse Api object to be mapped to product info response swagger:model ProductDetailsResponse

func (*ProductDetailsResponse) MarshalBinary

func (m *ProductDetailsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProductDetailsResponse) UnmarshalBinary

func (m *ProductDetailsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProductDetailsResponse) Validate

func (m *ProductDetailsResponse) Validate(formats strfmt.Registry) error

Validate validates this product details response

type Provider

type Provider struct {

	// provider
	Provider string `json:"provider,omitempty"`

	// services
	Services []*Service `json:"services"`
}

Provider Provider Provider represents a cloud provider swagger:model Provider

func (*Provider) MarshalBinary

func (m *Provider) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Provider) UnmarshalBinary

func (m *Provider) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Provider) Validate

func (m *Provider) Validate(formats strfmt.Registry) error

Validate validates this provider

type ProviderResponse

type ProviderResponse struct {

	// provider
	Provider *Provider `json:"provider,omitempty"`
}

ProviderResponse ProviderResponse ProviderResponse is the response used for the requested provider swagger:model ProviderResponse

func (*ProviderResponse) MarshalBinary

func (m *ProviderResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProviderResponse) UnmarshalBinary

func (m *ProviderResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProviderResponse) Validate

func (m *ProviderResponse) Validate(formats strfmt.Registry) error

Validate validates this provider response

type ProvidersResponse

type ProvidersResponse struct {

	// providers
	Providers []*Provider `json:"providers"`
}

ProvidersResponse ProvidersResponse ProvidersResponse is the response used for the supported providers swagger:model ProvidersResponse

func (*ProvidersResponse) MarshalBinary

func (m *ProvidersResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ProvidersResponse) UnmarshalBinary

func (m *ProvidersResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ProvidersResponse) Validate

func (m *ProvidersResponse) Validate(formats strfmt.Registry) error

Validate validates this providers response

type Region

type Region struct {

	// Id
	ID string `json:"id,omitempty"`

	// name
	Name string `json:"name,omitempty"`
}

Region Region Region hold the id and name of a cloud provider region swagger:model Region

func (*Region) MarshalBinary

func (m *Region) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Region) UnmarshalBinary

func (m *Region) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Region) Validate

func (m *Region) Validate(formats strfmt.Registry) error

Validate validates this region

type RegionsResponse

type RegionsResponse []*Region

RegionsResponse RegionsResponse RegionsResponse holds the list of available regions of a cloud provider swagger:model RegionsResponse

func (RegionsResponse) Validate

func (m RegionsResponse) Validate(formats strfmt.Registry) error

Validate validates this regions response

type Service

type Service struct {

	// is static
	IsStatic bool `json:"isStatic,omitempty"`

	// service
	Service string `json:"service,omitempty"`
}

Service Service Service represents a service supported by a given provider.

it's intended to implement the ServiceDescriber interface swagger:model Service

func (*Service) MarshalBinary

func (m *Service) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Service) UnmarshalBinary

func (m *Service) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Service) Validate

func (m *Service) Validate(formats strfmt.Registry) error

Validate validates this service

type ServiceResponse

type ServiceResponse struct {

	// service
	Service *Service `json:"service,omitempty"`
}

ServiceResponse ServiceResponse ServiceResponse holds the list of available services swagger:model ServiceResponse

func (*ServiceResponse) MarshalBinary

func (m *ServiceResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServiceResponse) UnmarshalBinary

func (m *ServiceResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServiceResponse) Validate

func (m *ServiceResponse) Validate(formats strfmt.Registry) error

Validate validates this service response

type ServicesResponse

type ServicesResponse struct {

	// services
	Services []*Service `json:"services"`
}

ServicesResponse ServicesResponse ServicesResponse holds the list of available services swagger:model ServicesResponse

func (*ServicesResponse) MarshalBinary

func (m *ServicesResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ServicesResponse) UnmarshalBinary

func (m *ServicesResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ServicesResponse) Validate

func (m *ServicesResponse) Validate(formats strfmt.Registry) error

Validate validates this services response

type SingleClusterRecommendationReq

type SingleClusterRecommendationReq struct {

	// Are burst instances allowed in recommendation
	AllowBurst bool `json:"allowBurst,omitempty"`

	// AllowOlderGen allow older generations of virtual machines (applies for EC2 only)
	AllowOlderGen bool `json:"allowOlderGen,omitempty"`

	// Category specifies the virtual machine category
	Category []string `json:"category"`

	// Excludes is a blacklist - a slice with vm types to be excluded from the recommendation
	Excludes []string `json:"excludes"`

	// Includes is a whitelist - a slice with vm types to be contained in the recommendation
	Includes []string `json:"includes"`

	// Maximum number of nodes in the recommended cluster
	MaxNodes int64 `json:"maxNodes,omitempty"`

	// Minimum number of nodes in the recommended cluster
	MinNodes int64 `json:"minNodes,omitempty"`

	// NetworkPerf specifies the network performance category
	NetworkPerf []string `json:"networkPerf"`

	// Percentage of regular (on-demand) nodes in the recommended cluster
	OnDemandPct int64 `json:"onDemandPct,omitempty"`

	// If true, recommended instance types will have a similar size
	SameSize bool `json:"sameSize,omitempty"`

	// Total number of CPUs requested for the cluster
	SumCPU float64 `json:"sumCpu,omitempty"`

	// Total number of GPUs requested for the cluster
	SumGpu int64 `json:"sumGpu,omitempty"`

	// Total memory requested for the cluster (GB)
	SumMem float64 `json:"sumMem,omitempty"`

	// Availability zone that the cluster should expand to
	Zone string `json:"zone,omitempty"`
}

SingleClusterRecommendationReq SingleClusterRecommendationReq encapsulates the recommendation input data swagger:model SingleClusterRecommendationReq

func (*SingleClusterRecommendationReq) MarshalBinary

func (m *SingleClusterRecommendationReq) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SingleClusterRecommendationReq) UnmarshalBinary

func (m *SingleClusterRecommendationReq) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SingleClusterRecommendationReq) Validate

func (m *SingleClusterRecommendationReq) Validate(formats strfmt.Registry) error

Validate validates this single cluster recommendation req

type VMRecommender

type VMRecommender interface{}

VMRecommender Vm recommender swagger:model VmRecommender

type Version

type Version struct {

	// default
	Default bool `json:"default,omitempty"`

	// version
	Version string `json:"version,omitempty"`
}

Version Version version swagger:model Version

func (*Version) MarshalBinary

func (m *Version) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

func (m *Version) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Version) Validate

func (m *Version) Validate(formats strfmt.Registry) error

Validate validates this version

type VersionsResponse

type VersionsResponse struct {

	// versions
	Versions []*LocationVersion `json:"versions"`
}

VersionsResponse VersionsResponse VersionsResponse holds the list of available versions swagger:model VersionsResponse

func (*VersionsResponse) MarshalBinary

func (m *VersionsResponse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VersionsResponse) UnmarshalBinary

func (m *VersionsResponse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VersionsResponse) Validate

func (m *VersionsResponse) Validate(formats strfmt.Registry) error

Validate validates this versions response

type VirtualMachine

type VirtualMachine struct {

	// Average price of the instance (differs from on demand price in case of spot or preemptible instances)
	AvgPrice float64 `json:"avgPrice,omitempty"`

	// Burst signals a burst type instance
	Burst bool `json:"burst,omitempty"`

	// Instance type category
	Category string `json:"category,omitempty"`

	// Number of CPUs in the instance type
	Cpus float64 `json:"cpusPerVm,omitempty"`

	// CurrentGen the vm is of current generation
	CurrentGen bool `json:"currentGen,omitempty"`

	// Number of GPUs in the instance type
	Gpus float64 `json:"gpusPerVm,omitempty"`

	// Available memory in the instance type (GB)
	Mem float64 `json:"memPerVm,omitempty"`

	// NetworkPerf holds the network performance
	NetworkPerf string `json:"networkPerf,omitempty"`

	// NetworkPerfCat holds the network performance category
	NetworkPerfCat string `json:"networkPerfCategory,omitempty"`

	// Regular price of the instance type
	OnDemandPrice float64 `json:"onDemandPrice,omitempty"`

	// Instance type
	Type string `json:"type,omitempty"`

	// Zones
	Zones []string `json:"zones"`
}

VirtualMachine VirtualMachine describes an instance type swagger:model VirtualMachine

func (*VirtualMachine) MarshalBinary

func (m *VirtualMachine) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*VirtualMachine) UnmarshalBinary

func (m *VirtualMachine) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*VirtualMachine) Validate

func (m *VirtualMachine) Validate(formats strfmt.Registry) error

Validate validates this virtual machine

type ZonePrice

type ZonePrice struct {

	// price
	Price float64 `json:"price,omitempty"`

	// zone
	Zone string `json:"zone,omitempty"`
}

ZonePrice ZonePrice ZonePrice struct for displaying price information per zone swagger:model ZonePrice

func (*ZonePrice) MarshalBinary

func (m *ZonePrice) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ZonePrice) UnmarshalBinary

func (m *ZonePrice) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ZonePrice) Validate

func (m *ZonePrice) Validate(formats strfmt.Registry) error

Validate validates this zone price

Jump to

Keyboard shortcuts

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