Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailableZone ¶
type AvailableZone struct {
ID string `json:"id"`
Code string `json:"code"`
Name string `json:"name"`
// Port number of the AZ.
Port string `json:"port"`
// An indicator of whether there are available Redis 3.0 resources in the AZ.
// true: There are available resources in the AZ.
// false: There are no available resources in the AZ.
ResourceAvailability string `json:"resource_availability"`
// An indicator of whether there are available Redis 4.0 and 5.0 resources in the AZ.
ResourceAvailabilityDcs2 string `json:"resource_availability_dcs2"`
}
type AvailableZonesResponse ¶
type AvailableZonesResponse struct {
RegionID string `json:"regionId"`
AvailableZones []AvailableZone `json:"available_zones"`
}
func ListAvailableZones ¶
func ListAvailableZones(client *golangsdk.ServiceClient) (*AvailableZonesResponse, error)
type Detail ¶
type Detail struct {
// Specification (total memory) of the DCS instance.
Capacity float32 `json:"capacity"`
// Maximum bandwidth supported by the specification.
MaxBandwidth int `json:"max_bandwidth"`
// Maximum number of clients supported by the specification,
// which is usually equal to the maximum number of connections.
MaxClients int `json:"max_clients"`
// Maximum number of connections supported by the specification.
MaxConnections int `json:"max_connections"`
// Maximum inbound bandwidth supported by the specification,
// which is usually equal to the maximum bandwidth.
MaxInBandwidth int `json:"max_in_bandwidth"`
// Maximum available memory.
MaxMemory float32 `json:"max_memory"`
// Number of tenant IP addresses corresponding to the specifications.
TenantIpCount int `json:"tenant_ip_count"`
// Number of shards supported by the specifications.
ShardingNum int `json:"sharding_num"`
// Number of proxies supported by Proxy Cluster instances of the specified specifications.
// If the instance is not a Proxy Cluster instance, the value of this parameter is 0.
ProxyNum int `json:"proxy_num"`
// Number of DBs of the specifications.
DbNumber int `json:"db_number"`
}
type MaintainWindow ¶
type MaintainWindow struct {
// Start time of the maintenance time window.
ID int `json:"seq"`
// Start time of the maintenance time window.
Begin string `json:"begin"`
// End time of the maintenance time window.
End string `json:"end"`
// An indicator of whether the maintenance time window is set to the default time segment.
Default bool `json:"default"`
}
func ListMaintenanceWindows ¶
func ListMaintenanceWindows(client *golangsdk.ServiceClient) ([]MaintainWindow, error)
type Product ¶
type Product struct {
// Product ID used to differentiate DCS specifications.
ProductID string `json:"product_id"`
// DCS instance specification code.
SpecCode string `json:"spec_code"`
// DCS instance type. Options:
// single: single-node
// ha: master/standby
// cluster: Redis Cluster
// proxy: Proxy Cluster
// ha_rw_split: read/write splitting
CacheMode string `json:"cache_mode"`
// Edition of DCS for Redis.
ProductType string `json:"product_type"`
// CPU architecture.
CpuType string `json:"cpu_type"`
// Storage type.
StorageType string `json:"storage_type"`
// Details of the specifications.
Details Detail `json:"details"`
// Cache engine.
Engine string `json:"engine"`
// Cache engine version.
EngineVersions string `json:"engine_versions"`
// DCS specifications. The value subjects to the returned specifications.
SpecDetails string `json:"spec_details"`
// Detailed DCS specifications, including the maximum number of connections and maximum memory size.
SpecDetails2 string `json:"spec_details2"`
// Billing mode. Value: Hourly.
ChargingType string `json:"charging_type"`
// Price of the DCS service to which you can subscribe. (This parameter has been abandoned.)
Price float64 `json:"price"`
// Currency.
Currency string `json:"currency"`
// Product type.
// Options: instance and obs_space.
ProdType string `json:"prod_type"`
// Cloud service type code.
CloudServiceTypeCode string `json:"cloud_service_type_code"`
// Cloud resource type code.
CloudResourceTypeCode string `json:"cloud_resource_type_code"`
// AZs with available resources.
Flavors []Flavor `json:"flavors"`
// Billing item.
BillingFactor string `json:"billing_factor"`
}
func GetProducts ¶
type ResourceUser ¶
type Resources ¶
type Resources struct {
// Resource unit.
// When type is set to instance, no value is returned.
// When type is set to ram, GB is returned.
Unit string `json:"unit"`
// Indicates the minimum limit of instance quota when type is set to instance.
// Indicates the minimum limit of memory quota when type is set to ram.
Min int32 `json:"min"`
// Indicates the maximum limit of instance quota when type is set to instance.
// Indicates the maximum limit of memory quota when type is set to ram.
Max int32 `json:"max"`
// Maximum number of instances that can be created and maximum allowed total memory.
Quota int32 `json:"quota"`
// Number of created instances and used memory.
Used int32 `json:"used"`
// Values:
// instances: indicates the instance quota.
// ram: indicates the memory quota.
Type string `json:"type"`
}
type ShowQuotaOfTenantResponse ¶
type ShowQuotaOfTenantResponse struct {
// List of quotas.
Resources []Resources `json:"resources"`
// Information about a resource tenant
ResourceUser ResourceUser `json:"resource_user"`
}
func ShowTenantQuota ¶
func ShowTenantQuota(client *golangsdk.ServiceClient) (*ShowQuotaOfTenantResponse, error)
Click to show internal directories.
Click to hide internal directories.