flavors

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataStores added in v0.5.26

type DataStores struct {
	// Indicates the database version ID. Its value is unique.
	Id string `json:"id" `
	// Indicates the database version number. Only the major version number (two digits) is returned.
	// For example, if the version number is MySQL 5.6.X, only 5.6 is returned.
	Name string `json:"name"`
}

func ListDatastores added in v0.5.26

func ListDatastores(client *golangsdk.ServiceClient, databaseName string) ([]DataStores, error)

type DssPoolInfo added in v0.5.26

type DssPoolInfo struct {
	// Indicates the name of the AZ where dsspool is located.
	AzName string `json:"az_name"`
	// Indicates the available capacity of dsspool.
	FreeCapacityGb string `json:"free_capacity_gb"`
	// Indicates the dsspool volume type.
	DsspoolVolumeType string `json:"dsspool_volume_type"`
	// Indicates the dsspool ID.
	DsspoolId string `json:"dsspool_id"`
	// Indicates the dsspool status. Its value can be any of the following:
	// available
	// deploying
	// enlarging
	// frozen
	// sellout
	DsspoolStatus string `json:"dsspool_status"`
}

type Flavor added in v0.5.2

type Flavor struct {
	// Indicates the CPU size. For example, the value 1 indicates 1 vCPU.
	VCPUs string `json:"vcpus"`
	// Indicates the memory size in GB.
	RAM int `json:"ram"`
	// Indicates the specification ID, which is unique.
	Id string `json:"id"`
	// Indicates the resource specification code. Use rds.mysql.m1.xlarge.rr as an example.
	// rds: indicates the RDS product.
	// mysql: indicates the DB engine.
	// m1.xlarge: indicates the high memory performance specifications.
	// rr: indicates the read replica (.ha indicates primary/standby DB instances).
	SpecCode string `json:"spec_code"`
	// Indicates the database version.
	// Example value for MySQL: ["5.6","5.7","8.0"]
	VersionName []string `json:"version_name"`
	// Indicates the DB instance type. Its value can be any of the following:
	// ha: indicates primary/standby DB instances.
	// replica: indicates read replicas.
	// single: indicates single DB instances.
	InstanceMode string `json:"instance_mode"`
	// Indicates the specification status in an AZ. Its value can be any of the following:
	// normal: indicates that the specifications in the AZ are available.
	// unsupported: indicates that the specifications are not supported by the AZ.
	// sellout: indicates that the specifications in the AZ are sold out.
	AzStatus map[string]string `json:"az_status"`
	// Indicates the description of the AZ to which the specifications belong.
	AzDesc map[string]string `json:"az_desc"`
	// Indicates the performance specifications. Its value can be any of the following:
	// normal: general-enhanced
	GroupType string `json:"group_type"`
}

func ListFlavors added in v0.5.26

func ListFlavors(client *golangsdk.ServiceClient, opts ListOpts) ([]Flavor, error)

type ListOpts added in v0.5.2

type ListOpts struct {
	DatabaseName string
	// Specifies the database version.
	VersionName string `q:"version_name"`
	// Specifies the specification code.
	// NOTICE
	// Only DB instances running Microsoft SQL Server 2017 EE support the creation of read replicas.
	// Microsoft SQL Server 2017 EE does not support the creation of single DB instances.
	// The format of the specification code is: {spec code}{instance mode}.
	// spec code can be obtained from Table 8-10.
	// instance mode can be any of the following:
	// For single DB instances, the value is null. Example spe_code: rds.mysql.s1.xlarge
	// For primary/standby DB instances, the value is .ha. Example spe_code: rds.mysql.s1.xlarge.ha
	// For read replicas, the value is .rr. Example spe_code: rds.mysql.s1.xlarge.rr
	SpecCode string `q:"spec_code"`
}

type ListStorageTypesOpts added in v0.5.26

type ListStorageTypesOpts struct {
	// Specifies the DB engine name. Its value can be any of the following and is case-insensitive:
	// MySQL
	// PostgreSQL
	// SQLServer
	DatabaseName string
	// Specifies the database version.
	VersionName string `q:"version_name" required:"true"`
}

type ListStorageTypesResponse added in v0.5.26

type ListStorageTypesResponse struct {
	// Indicates the DB instance specifications information list.
	StorageType []Storage `json:"storage_type,omitempty"`
	// Indicates the dsspool specifications information list.
	DsspoolInfo []DssPoolInfo `json:"dsspool_info,omitempty"`
}

func ListStorageTypes added in v0.5.26

func ListStorageTypes(client *golangsdk.ServiceClient, opts ListStorageTypesOpts) (*ListStorageTypesResponse, error)

type Storage added in v0.5.26

type Storage struct {
	// Indicates the storage type. Its value can be any of the following:
	// COMMON: SATA storage.
	// ULTRAHIGH: SSD storage.
	Name string `json:"name"`
	// Indicates the specification status in an AZ. Its value can be any of the following:
	// normal: indicates that the specifications in the AZ are available.
	// unsupported: indicates that the specifications are not supported by the AZ.
	// sellout: indicates that the specifications in the AZ are sold out.
	AzStatus map[string]string `json:"az_status"`
	// Indicates the performance specifications. Its value can be any of the following:
	// normal: general-enhanced
	// normal2: general-enhanced II
	// armFlavors: Kunpeng general-enhanced
	// highPerformancePrivilegeEdition: Ultra-high I/O (advanced)
	SupportComputeGroupType []string `json:"support_compute_group_type,omitempty"`
}

Jump to

Keyboard shortcuts

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