products

package
v0.0.0-...-63319d1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Details

type Details struct {
	Capacity       float64 `json:"capacity"`
	MaxConnections int     `json:"max_connections"`
	MaxClients     int     `json:"max_clients"`
	MaxBandwidth   int     `json:"max_bandwidth"`
	MaxInBandwidth int     `json:"max_in_bandwidth"`
	IPCount        int     `json:"tenant_ip_count"`
	ShardingNum    int     `json:"sharding_num"`
	ProxyNum       int     `json:"proxy_num"`
	DBNumber       int     `json:"db_number"`
}

type GetResponse

type GetResponse struct {
	Products []Product `json:"products"`
}

GetResponse response

type GetResult

type GetResult struct {
	golangsdk.Result
}

GetResult contains the body of getting detailed

func Get

func Get(client *golangsdk.ServiceClient) (r GetResult)

Get products

func (GetResult) Extract

func (r GetResult) Extract() (*GetResponse, error)

Extract from GetResult

type Product

type Product struct {
	ProductID        string  `json:"product_id"`
	SpecCode         string  `json:"spec_code"`
	CacheMode        string  `json:"cache_mode"`
	Engine           string  `json:"engine"`
	EngineVersion    string  `json:"engine_versions"`
	SpecDetails      string  `json:"spec_details"`
	SpecDetails2     string  `json:"spec_details2"`
	Currency         string  `json:"currency"`
	ChargingType     string  `json:"charging_type"`
	ProductType      string  `json:"product_type"`
	ProdType         string  `json:"prod_type"`
	CPUType          string  `json:"cpu_type"`
	StorageType      string  `json:"storage_type"`
	ServiceTypeCode  string  `json:"cloud_service_type_code"`
	ResourceTypeCode string  `json:"cloud_resource_type_code"`
	ReplicaCount     int     `json:"replica_count"`
	Details          Details `json:"details"`
}

Product for dcs

Jump to

Keyboard shortcuts

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