common

package module
v0.0.0-...-ffde849 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndpointNameCtecs = "ctecs"
	UrlProdCtecs      = "ctecs-global.ctapi.ctyun.cn"
	UrlTestCtecs      = "ctecs-global.ctapi-test.ctyun.cn:21443"
)

Variables

View Source
var EndpointCtecsProd = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtecs,
	Url:          UrlProdCtecs,
}
View Source
var EndpointCtecsTest = ctyunsdk.Endpoint{
	EndpointName: EndpointNameCtecs,
	Url:          UrlTestCtecs,
}

Functions

This section is empty.

Types

type Apis

type Apis struct {
	RegionListRegionsApi *RegionListRegionsApi
	RegionGetZonesApi    *RegionGetZonesApi
}

Apis api的接口

func NewApis

func NewApis(client *ctyunsdk.CtyunClient) *Apis

NewApis 构建

type RegionGetZonesApi

type RegionGetZonesApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

RegionGetZonesApi 资源池可用区查询 https://www.ctyun.cn/document/10026730/10040590

func NewRegionGetZonesApi

func NewRegionGetZonesApi(client *ctyunsdk.CtyunClient) *RegionGetZonesApi

type RegionGetZonesListResponse

type RegionGetZonesListResponse struct {
	ZoneList []RegionGetZonesResponse // 可用区列表
}

type RegionGetZonesRealResponse

type RegionGetZonesRealResponse struct {
	ZoneList []struct {
		Name          string `json:"name"`          // 可用区名称,其他需要可用区参数的接口需要依赖该名称结果
		AzDisplayName string `json:"azDisplayName"` // 可用区展示名
	} `json:"zoneList"`
}

type RegionGetZonesRequest

type RegionGetZonesRequest struct {
	RegionID string // 资源池ID
}

type RegionGetZonesResponse

type RegionGetZonesResponse struct {
	Name          string // 可用区名称,其他需要可用区参数的接口需要依赖该名称结果
	AzDisplayName string // 可用区展示名
}

type RegionListRegionsApi

type RegionListRegionsApi struct {
	ctyunsdk.CtyunRequestBuilder
	// contains filtered or unexported fields
}

RegionListRegionsApi 资源池列表查询 https://www.ctyun.cn/document/10026730/10040588

func NewRegionListRegionsApi

func NewRegionListRegionsApi(client *ctyunsdk.CtyunClient) *RegionListRegionsApi

func (*RegionListRegionsApi) Do

type RegionListRegionsRealResponse

type RegionListRegionsRealResponse struct {
	RegionList []struct {
		RegionID     string   `json:"regionID"`     // 资源池ID
		RegionParent string   `json:"regionParent"` // 资源池所属省份
		RegionName   string   `json:"regionName"`   // 资源池名称
		RegionType   string   `json:"regionType"`   // 资源池类型
		IsMultiZones bool     `json:"isMultiZones"` // 是否多可用区资源池
		ZoneList     []string `json:"zoneList"`     // 可用区列表
	} `json:"regionList"`
}

type RegionListRegionsResponse

type RegionListRegionsResponse struct {
	RegionId     string   // 资源池ID
	RegionParent string   // 资源池所属省份
	RegionName   string   // 资源池名称
	RegionType   string   // 资源池类型
	IsMultiZones bool     // 是否多可用区资源池
	ZoneList     []string // 可用区列表
}

type RegionListRequest

type RegionListRequest struct {
	RegionName string // 资源池名称
}

type RegionListResponse

type RegionListResponse struct {
	RegionList []RegionListRegionsResponse // 资源池对象
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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