Documentation ¶
Index ¶
- type ChargeMode
- type ChargeModeEnum
- type ComputeSpec
- type Condition
- type ConditionInstallation
- type ConditionInstallationEnum
- type CreateEdgeSite
- type CreateEdgeSiteRequest
- type CreateEdgeSiteRequestBody
- type CreateEdgeSiteResponse
- type CreateLocation
- type CreateLocationCountry
- type CreateLocationCountryEnum
- type DeleteEdgeSiteRequest
- type DeleteEdgeSiteResponse
- type EdgeSiteDetail
- type ListEdgeSiteMetricsRequest
- type ListEdgeSiteMetricsRequestDim
- type ListEdgeSiteMetricsRequestDimEnum
- type ListEdgeSiteMetricsResponse
- type ListEdgeSitesRequest
- type ListEdgeSitesResponse
- type ListQuotasRequest
- type ListQuotasResponse
- type ListRacksRequest
- type ListRacksResponse
- type ListStoragePoolsRequest
- type ListStoragePoolsResponse
- type ListSupportedRegionsRequest
- type ListSupportedRegionsRequestXLanguage
- type ListSupportedRegionsRequestXLanguageEnum
- type ListSupportedRegionsResponse
- type ListSupportedZonesRequest
- type ListSupportedZonesRequestXLanguage
- type ListSupportedZonesRequestXLanguageEnum
- type ListSupportedZonesResponse
- type LocationDetail
- type MarketOptions
- type MetricDataDetail
- type MetricDataDetailDimension
- type PageInfo
- type PayMode
- type PayModeEnum
- type PrepaidOptions
- type QuotaDetail
- type QuotaResources
- type Rack
- type RackInfo
- type RackStatus
- type RackStatusEnum
- type RegionDetail
- type ShowEdgeSiteRequest
- type ShowEdgeSiteResponse
- type ShowRackRequest
- type ShowRackResponse
- type ShowStoragePoolRequest
- type ShowStoragePoolResponse
- type SiteStatus
- type SiteStatusEnum
- type StoragePool
- type StoragePoolStatus
- type StoragePoolStatusEnum
- type StorageType
- type StorageTypeEnum
- type StorageUnit
- type UpdateCondition
- type UpdateConditionInstallation
- type UpdateConditionInstallationEnum
- type UpdateEdgeSite
- type UpdateEdgeSiteRequest
- type UpdateEdgeSiteRequestBody
- type UpdateEdgeSiteResponse
- type UpdateLocation
- type UpdateLocationCountry
- type UpdateLocationCountryEnum
- type ZoneDetail
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChargeMode ¶
type ChargeMode struct {
// contains filtered or unexported fields
}
ChargeMode 计费模式。 - prepaid:包周期
func (ChargeMode) MarshalJSON ¶
func (c ChargeMode) MarshalJSON() ([]byte, error)
func (*ChargeMode) UnmarshalJSON ¶
func (c *ChargeMode) UnmarshalJSON(b []byte) error
func (ChargeMode) Value ¶
func (c ChargeMode) Value() string
type ChargeModeEnum ¶
type ChargeModeEnum struct {
PREPAID ChargeMode
}
func GetChargeModeEnum ¶
func GetChargeModeEnum() ChargeModeEnum
type ComputeSpec ¶
type ComputeSpec struct { // 算力规格类型,如C6 FlavorType string `json:"flavor_type"` // 计算单元设备数 Count int32 `json:"count"` }
func (ComputeSpec) String ¶
func (o ComputeSpec) String() string
type Condition ¶
type Condition struct { // 机房环境条件 取值范围: - 0:机房条件不属于上述任何一种情况 - 1:机房使用模块化数据中心方案进行建设 - 2:机房已通过国家级或行业级标准化认证 Environment *int32 `json:"environment,omitempty"` // 机柜空间条件 取值范围: - 0:暂无扩容计划,不考虑额外余量 - 1:机柜余量相对充裕,可放置空间超过3柜 - 2:机柜余量相对紧张,可放置空间3柜以内 Space *int32 `json:"space,omitempty"` // 运输条件 取值范围: - 0:运输通道和机房门的高度或宽度不满足要求 - 1:运输通道,货梯,机房门均可满足整机柜滚轮搬运 - 2:运输通道,货梯,机房门不能支持整机柜滚轮搬运,沿途有台阶 Transport *int32 `json:"transport,omitempty"` // 整柜安装评估 取值范围: - UNCLEAR:不清楚是否允许整柜安装,需要评估 - UNSUPPORT:不允许整柜安装,需将设备放入现有机柜 - SUPPORT:可支持整柜安装,并入现有机柜组 Installation *ConditionInstallation `json:"installation,omitempty"` }
Condition 场地条件
type ConditionInstallation ¶
type ConditionInstallation struct {
// contains filtered or unexported fields
}
func (ConditionInstallation) MarshalJSON ¶
func (c ConditionInstallation) MarshalJSON() ([]byte, error)
func (*ConditionInstallation) UnmarshalJSON ¶
func (c *ConditionInstallation) UnmarshalJSON(b []byte) error
func (ConditionInstallation) Value ¶
func (c ConditionInstallation) Value() string
type ConditionInstallationEnum ¶
type ConditionInstallationEnum struct { UNCLEAR ConditionInstallation UNSUPPORT ConditionInstallation SUPPORT ConditionInstallation }
func GetConditionInstallationEnum ¶
func GetConditionInstallationEnum() ConditionInstallationEnum
type CreateEdgeSite ¶
type CreateEdgeSite struct { // 边缘小站名称,最大支持长度为64个字节。只包含中文字符、英文字母(a-z、A-Z)、数字(0-9)、下划线(_)、中划线(-) Name string `json:"name"` // 边缘小站所属区域ID,最大长度为64个字节。只包含英文字母(a-z、A-Z)、数字(0-9)、下划线(_)、中划线(-) RegionId string `json:"region_id"` // 边缘小站描述,最大支持长度为255个字节,不允许包含<> Description *string `json:"description,omitempty"` Location *CreateLocation `json:"location"` }
func (CreateEdgeSite) String ¶
func (o CreateEdgeSite) String() string
type CreateEdgeSiteRequest ¶
type CreateEdgeSiteRequest struct {
Body *CreateEdgeSiteRequestBody `json:"body,omitempty"`
}
CreateEdgeSiteRequest Request Object
func (CreateEdgeSiteRequest) String ¶
func (o CreateEdgeSiteRequest) String() string
type CreateEdgeSiteRequestBody ¶
type CreateEdgeSiteRequestBody struct {
EdgeSite *CreateEdgeSite `json:"edge_site"`
}
func (CreateEdgeSiteRequestBody) String ¶
func (o CreateEdgeSiteRequestBody) String() string
type CreateEdgeSiteResponse ¶
type CreateEdgeSiteResponse struct { EdgeSite *EdgeSiteDetail `json:"edge_site,omitempty"` HttpStatusCode int `json:"-"` }
CreateEdgeSiteResponse Response Object
func (CreateEdgeSiteResponse) String ¶
func (o CreateEdgeSiteResponse) String() string
type CreateLocation ¶
type CreateLocation struct { // 场地名称(已废弃),该参数不会再持久化存储,新建站点也不会再返回该字段 Name *string `json:"name,omitempty"` // 场地所在省/自治区/直辖市 Address *string `json:"address,omitempty"` // 场地所在地区 ZoneCode *string `json:"zone_code,omitempty"` // 场地所在省/自治区/直辖市 Province *string `json:"province,omitempty"` // 场地所在市/区 City *string `json:"city,omitempty"` // 场地所在区/县 District *string `json:"district,omitempty"` // 场地所在国家(逐步下线,使用zone_code替代) Country *CreateLocationCountry `json:"country,omitempty"` Condition *Condition `json:"condition"` // 场地描述,最大支持长度为255个字节,不允许包含<> Description *string `json:"description,omitempty"` }
CreateLocation 场地信息
func (CreateLocation) String ¶
func (o CreateLocation) String() string
type CreateLocationCountry ¶
type CreateLocationCountry struct {
// contains filtered or unexported fields
}
func (CreateLocationCountry) MarshalJSON ¶
func (c CreateLocationCountry) MarshalJSON() ([]byte, error)
func (*CreateLocationCountry) UnmarshalJSON ¶
func (c *CreateLocationCountry) UnmarshalJSON(b []byte) error
func (CreateLocationCountry) Value ¶
func (c CreateLocationCountry) Value() string
type CreateLocationCountryEnum ¶
type CreateLocationCountryEnum struct {
CN CreateLocationCountry
}
func GetCreateLocationCountryEnum ¶
func GetCreateLocationCountryEnum() CreateLocationCountryEnum
type DeleteEdgeSiteRequest ¶
type DeleteEdgeSiteRequest struct { // 边缘小站ID SiteId string `json:"site_id"` }
DeleteEdgeSiteRequest Request Object
func (DeleteEdgeSiteRequest) String ¶
func (o DeleteEdgeSiteRequest) String() string
type DeleteEdgeSiteResponse ¶
type DeleteEdgeSiteResponse struct {
HttpStatusCode int `json:"-"`
}
DeleteEdgeSiteResponse Response Object
func (DeleteEdgeSiteResponse) String ¶
func (o DeleteEdgeSiteResponse) String() string
type EdgeSiteDetail ¶
type EdgeSiteDetail struct { // 边缘小站ID Id *string `json:"id,omitempty"` // 边缘小站所属账号ID DomainId *string `json:"domain_id,omitempty"` // 边缘小站名称 Name *string `json:"name,omitempty"` // 边缘小站描述 Description *string `json:"description,omitempty"` // 边缘小站所属区域ID RegionId *string `json:"region_id,omitempty"` // 边缘小站所属项目ID ProjectId *string `json:"project_id,omitempty"` // 边缘小站的可用区ID AvailabilityZoneId *string `json:"availability_zone_id,omitempty"` // 边缘小站的部署状态 Status *string `json:"status,omitempty"` Location *LocationDetail `json:"location,omitempty"` // 边缘小站创建时间 CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"` // 边缘小站更新时间 UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"` }
EdgeSiteDetail 边缘小站详情
func (EdgeSiteDetail) String ¶
func (o EdgeSiteDetail) String() string
type ListEdgeSiteMetricsRequest ¶
type ListEdgeSiteMetricsRequest struct { // 边缘小站ID SiteId string `json:"site_id"` // 指定维度查询 - site_id: 按站点维度,查询站点下计算、存储资源容量信息 - flavor: 按规格维度,查询站点下各flavor的计算资源使用情况 - storage: 按存储维度,查询站点下各存储资源类型的使用情况 - flavor_capacity: 按规格容量维度,查询站点下各规格可发放数量预测 Dim *ListEdgeSiteMetricsRequestDim `json:"dim,omitempty"` }
ListEdgeSiteMetricsRequest Request Object
func (ListEdgeSiteMetricsRequest) String ¶
func (o ListEdgeSiteMetricsRequest) String() string
type ListEdgeSiteMetricsRequestDim ¶
type ListEdgeSiteMetricsRequestDim struct {
// contains filtered or unexported fields
}
func (ListEdgeSiteMetricsRequestDim) MarshalJSON ¶
func (c ListEdgeSiteMetricsRequestDim) MarshalJSON() ([]byte, error)
func (*ListEdgeSiteMetricsRequestDim) UnmarshalJSON ¶
func (c *ListEdgeSiteMetricsRequestDim) UnmarshalJSON(b []byte) error
func (ListEdgeSiteMetricsRequestDim) Value ¶
func (c ListEdgeSiteMetricsRequestDim) Value() string
type ListEdgeSiteMetricsRequestDimEnum ¶
type ListEdgeSiteMetricsRequestDimEnum struct { SITE_ID ListEdgeSiteMetricsRequestDim FLAVOR ListEdgeSiteMetricsRequestDim STORAGE ListEdgeSiteMetricsRequestDim FLAVOR_CAPACITY ListEdgeSiteMetricsRequestDim }
func GetListEdgeSiteMetricsRequestDimEnum ¶
func GetListEdgeSiteMetricsRequestDimEnum() ListEdgeSiteMetricsRequestDimEnum
type ListEdgeSiteMetricsResponse ¶
type ListEdgeSiteMetricsResponse struct { // 监控数据 MetricData *[]MetricDataDetail `json:"metric_data,omitempty"` HttpStatusCode int `json:"-"` }
ListEdgeSiteMetricsResponse Response Object
func (ListEdgeSiteMetricsResponse) String ¶
func (o ListEdgeSiteMetricsResponse) String() string
type ListEdgeSitesRequest ¶
type ListEdgeSitesRequest struct { // 每页的数量 Limit *int32 `json:"limit,omitempty"` // 分页标识 Marker *string `json:"marker,omitempty"` // 排序字段 SortKey *[]string `json:"sort_key,omitempty"` // 排序方向,取值范围: - desc:降序 - acs:升序 SortDir *[]string `json:"sort_dir,omitempty"` // 根据边缘小站ID查询,支持排序 Id *[]string `json:"id,omitempty"` // 根据边缘小站名称查询(精确),支持排序 Name *[]string `json:"name,omitempty"` // 根据边缘可用区ID查询 AvailabilityZoneId *[]string `json:"availability_zone_id,omitempty"` // 根据边缘小站部署状态查询 Status *[]SiteStatus `json:"status,omitempty"` }
ListEdgeSitesRequest Request Object
func (ListEdgeSitesRequest) String ¶
func (o ListEdgeSitesRequest) String() string
type ListEdgeSitesResponse ¶
type ListEdgeSitesResponse struct { // 边缘小站列表。 EdgeSites *[]EdgeSiteDetail `json:"edge_sites,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
ListEdgeSitesResponse Response Object
func (ListEdgeSitesResponse) String ¶
func (o ListEdgeSitesResponse) String() string
type ListQuotasRequest ¶
type ListQuotasRequest struct { }
ListQuotasRequest Request Object
func (ListQuotasRequest) String ¶
func (o ListQuotasRequest) String() string
type ListQuotasResponse ¶
type ListQuotasResponse struct { Quotas *QuotaResources `json:"quotas,omitempty"` HttpStatusCode int `json:"-"` }
ListQuotasResponse Response Object
func (ListQuotasResponse) String ¶
func (o ListQuotasResponse) String() string
type ListRacksRequest ¶
type ListRacksRequest struct { // 每页的数量 Limit *int32 `json:"limit,omitempty"` // 分页标识 Marker *string `json:"marker,omitempty"` // 排序字段 SortKey *[]string `json:"sort_key,omitempty"` // 排序方向,取值范围: - desc:降序 - acs:升序 SortDir *[]string `json:"sort_dir,omitempty"` // 边缘小站ID EdgeSiteId *string `json:"edge_site_id,omitempty"` }
ListRacksRequest Request Object
func (ListRacksRequest) String ¶
func (o ListRacksRequest) String() string
type ListRacksResponse ¶
type ListRacksResponse struct { // 机柜列表 Racks *[]Rack `json:"racks,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
ListRacksResponse Response Object
func (ListRacksResponse) String ¶
func (o ListRacksResponse) String() string
type ListStoragePoolsRequest ¶
type ListStoragePoolsRequest struct { // 每页的数量 Limit *int32 `json:"limit,omitempty"` // 分页标识 Marker *string `json:"marker,omitempty"` // 排序字段 SortKey *[]string `json:"sort_key,omitempty"` // 排序方向,取值范围: - desc:降序 - acs:升序 SortDir *[]string `json:"sort_dir,omitempty"` // 边缘小站ID EdgeSiteId *string `json:"edge_site_id,omitempty"` }
ListStoragePoolsRequest Request Object
func (ListStoragePoolsRequest) String ¶
func (o ListStoragePoolsRequest) String() string
type ListStoragePoolsResponse ¶
type ListStoragePoolsResponse struct { // 存储池列表 StoragePools *[]StoragePool `json:"storage_pools,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
ListStoragePoolsResponse Response Object
func (ListStoragePoolsResponse) String ¶
func (o ListStoragePoolsResponse) String() string
type ListSupportedRegionsRequest ¶
type ListSupportedRegionsRequest struct { // 选择接口返回信息的语言类型,默认为中文\"zh-cn\" XLanguage *ListSupportedRegionsRequestXLanguage `json:"X-Language,omitempty"` // 每页的数量 Limit *int32 `json:"limit,omitempty"` // 分页标识 Marker *string `json:"marker,omitempty"` // 排序字段 SortKey *[]string `json:"sort_key,omitempty"` // 排序方向,取值范围: - desc:降序 - acs:升序 SortDir *[]string `json:"sort_dir,omitempty"` }
ListSupportedRegionsRequest Request Object
func (ListSupportedRegionsRequest) String ¶
func (o ListSupportedRegionsRequest) String() string
type ListSupportedRegionsRequestXLanguage ¶
type ListSupportedRegionsRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ListSupportedRegionsRequestXLanguage) MarshalJSON ¶
func (c ListSupportedRegionsRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ListSupportedRegionsRequestXLanguage) UnmarshalJSON ¶
func (c *ListSupportedRegionsRequestXLanguage) UnmarshalJSON(b []byte) error
func (ListSupportedRegionsRequestXLanguage) Value ¶
func (c ListSupportedRegionsRequestXLanguage) Value() string
type ListSupportedRegionsRequestXLanguageEnum ¶
type ListSupportedRegionsRequestXLanguageEnum struct { ZH_CN ListSupportedRegionsRequestXLanguage EN_US ListSupportedRegionsRequestXLanguage PT_BR ListSupportedRegionsRequestXLanguage ES_US ListSupportedRegionsRequestXLanguage ES_ES ListSupportedRegionsRequestXLanguage }
func GetListSupportedRegionsRequestXLanguageEnum ¶
func GetListSupportedRegionsRequestXLanguageEnum() ListSupportedRegionsRequestXLanguageEnum
type ListSupportedRegionsResponse ¶
type ListSupportedRegionsResponse struct { // 区域列表 Regions *[]RegionDetail `json:"regions,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
ListSupportedRegionsResponse Response Object
func (ListSupportedRegionsResponse) String ¶
func (o ListSupportedRegionsResponse) String() string
type ListSupportedZonesRequest ¶ added in v0.1.95
type ListSupportedZonesRequest struct { // 选择接口返回信息的语言类型,默认为中文\"zh-cn\" XLanguage *ListSupportedZonesRequestXLanguage `json:"X-Language,omitempty"` // 每页的数量 Limit *int32 `json:"limit,omitempty"` // 分页标识 Marker *string `json:"marker,omitempty"` // 排序字段 SortKey *[]string `json:"sort_key,omitempty"` // 排序方向,取值范围: - desc:降序 - acs:升序 SortDir *[]string `json:"sort_dir,omitempty"` }
ListSupportedZonesRequest Request Object
func (ListSupportedZonesRequest) String ¶ added in v0.1.95
func (o ListSupportedZonesRequest) String() string
type ListSupportedZonesRequestXLanguage ¶ added in v0.1.95
type ListSupportedZonesRequestXLanguage struct {
// contains filtered or unexported fields
}
func (ListSupportedZonesRequestXLanguage) MarshalJSON ¶ added in v0.1.95
func (c ListSupportedZonesRequestXLanguage) MarshalJSON() ([]byte, error)
func (*ListSupportedZonesRequestXLanguage) UnmarshalJSON ¶ added in v0.1.95
func (c *ListSupportedZonesRequestXLanguage) UnmarshalJSON(b []byte) error
func (ListSupportedZonesRequestXLanguage) Value ¶ added in v0.1.95
func (c ListSupportedZonesRequestXLanguage) Value() string
type ListSupportedZonesRequestXLanguageEnum ¶ added in v0.1.95
type ListSupportedZonesRequestXLanguageEnum struct { ZH_CN ListSupportedZonesRequestXLanguage EN_US ListSupportedZonesRequestXLanguage PT_BR ListSupportedZonesRequestXLanguage ES_US ListSupportedZonesRequestXLanguage ES_ES ListSupportedZonesRequestXLanguage }
func GetListSupportedZonesRequestXLanguageEnum ¶ added in v0.1.95
func GetListSupportedZonesRequestXLanguageEnum() ListSupportedZonesRequestXLanguageEnum
type ListSupportedZonesResponse ¶ added in v0.1.95
type ListSupportedZonesResponse struct { // 地区列表 Zones *[]ZoneDetail `json:"zones,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
ListSupportedZonesResponse Response Object
func (ListSupportedZonesResponse) String ¶ added in v0.1.95
func (o ListSupportedZonesResponse) String() string
type LocationDetail ¶
type LocationDetail struct { // 场地名称(已废弃),传入该参数不会再生效,新建站点也不会再返回该字段 Name *string `json:"name,omitempty"` // 场地所在地区 ZoneCode *string `json:"zone_code,omitempty"` // 部署位置 Address *string `json:"address,omitempty"` // 场地描述 Description *string `json:"description,omitempty"` // 场地所在国家(逐步下线,使用zone_code替代) Country *string `json:"country,omitempty"` // 场地所在省/自治区/直辖市 Province *string `json:"province,omitempty"` // 场地所在市/区 City *string `json:"city,omitempty"` // 场地所在区/县 District *string `json:"district,omitempty"` Condition *Condition `json:"condition,omitempty"` }
LocationDetail 场地详情
func (LocationDetail) String ¶
func (o LocationDetail) String() string
type MarketOptions ¶
type MarketOptions struct { ChargeMode *ChargeMode `json:"charge_mode,omitempty"` PrepaidOptions *PrepaidOptions `json:"prepaid_options,omitempty"` }
MarketOptions 计费信息
func (MarketOptions) String ¶
func (o MarketOptions) String() string
type MetricDataDetail ¶
type MetricDataDetail struct { // 监控指标名称,当前包含指标: - cpu_used:该维度vCPU已使用核数,单位:个,支持维度:site_id,flavor - cpu_available_total:用户可使用该维度vCPU总核数,单位:个,支持维度:site_id,flavor - cpu_total:该维度vCPU总核数(包含HA等预留核数),单位:个,支持维度:site_id,flavor - memory_used:该维度内存已使用量,单位:Gb,支持维度:site_id,flavor - memory_available_total:用户可使用该维度内存总量,单位:Gb,支持维度:site_id,flavor - memory_total:该维度内存总量(包含HA等预留内存量),单位:Gb,支持维度:site_id,flavor - capacity_used:该维度块存储资源已使用量,单位:GiB,支持维度:site_id,storage - capacity_available_total:用户可使用该维度块存储资源总容量(用户订购开通的存储容量),单位:GiB,支持维度:site_id,storage - capacity_total:当前已订购的资源场景下该维度块存储资源最大容量(订购资源包含的存储容量可能大于用户已开通容量),单位:GiB,支持维度:site_id,storage - available:该维度对应规格剩余可发放数量,单位:台,支持维度:flavor_capacity Name *string `json:"name,omitempty"` // 监控值 Value *int64 `json:"value,omitempty"` // 记录更新时间 ReadAt *sdktime.SdkTime `json:"read_at,omitempty"` Dimension *MetricDataDetailDimension `json:"dimension,omitempty"` }
func (MetricDataDetail) String ¶
func (o MetricDataDetail) String() string
type MetricDataDetailDimension ¶
type MetricDataDetailDimension struct { // 维度名称 Name *string `json:"name,omitempty"` // 维度值 Value *string `json:"value,omitempty"` }
MetricDataDetailDimension 维度信息
func (MetricDataDetailDimension) String ¶
func (o MetricDataDetailDimension) String() string
type PageInfo ¶
type PageInfo struct { // 下一页标识。 NextMarker *string `json:"next_marker,omitempty"` // 当前页数量。 CurrentCount *int32 `json:"current_count,omitempty"` }
PageInfo 分页信息
type PayMode ¶
type PayMode struct {
// contains filtered or unexported fields
}
PayMode 包周期付款类型 - FULL: 全预付 - HALF:半预付
func (PayMode) MarshalJSON ¶
func (*PayMode) UnmarshalJSON ¶
type PayModeEnum ¶
func GetPayModeEnum ¶
func GetPayModeEnum() PayModeEnum
type PrepaidOptions ¶
type PrepaidOptions struct { // 订单ID OrderId *string `json:"order_id,omitempty"` // 产品ID ProductId *string `json:"product_id,omitempty"` PayMode *PayMode `json:"pay_mode,omitempty"` }
PrepaidOptions 包周期计费信息
func (PrepaidOptions) String ¶
func (o PrepaidOptions) String() string
type QuotaDetail ¶
type QuotaDetail struct { // 资源类型 取值范围: - edge_site:边缘小站 - compute_device:计算设备 Type *string `json:"type,omitempty"` // 资源的总配额 约束:资源的默认配额数可以修改,默认配置:边缘小站(10) Quota *int32 `json:"quota,omitempty"` // 已创建的资源个数 取值范围:0~quota值 Used *int32 `json:"used,omitempty"` }
QuotaDetail 资源配额详情
func (QuotaDetail) String ¶
func (o QuotaDetail) String() string
type QuotaResources ¶
type QuotaResources struct { // 资源配额列表 Resources *[]QuotaDetail `json:"resources,omitempty"` }
QuotaResources 资源配额详情列表
func (QuotaResources) String ¶
func (o QuotaResources) String() string
type Rack ¶
type Rack struct { // 机柜ID Id *string `json:"id,omitempty"` // 机柜名称 Name *string `json:"name,omitempty"` // 边缘小站ID EdgeSiteId *string `json:"edge_site_id,omitempty"` // 机柜目录ID RackCategoryId *string `json:"rack_category_id,omitempty"` // 机柜类型 RackType *string `json:"rack_type,omitempty"` Status *RackStatus `json:"status,omitempty"` // 已分配存储容量 StorageAssignedSize *int32 `json:"storage_assigned_size,omitempty"` // 机柜描述 Description *string `json:"description,omitempty"` // 机柜SN号 RackSnNo *string `json:"rack_sn_no,omitempty"` // 机柜位置号 RackLocationNo *string `json:"rack_location_no,omitempty"` // 创建时间 CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"` // 更新时间 UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"` // 生效时间 EffectedAt *sdktime.SdkTime `json:"effected_at,omitempty"` MarketOptions *MarketOptions `json:"market_options,omitempty"` // 计算单元信息 ComputeUnit *[]ComputeSpec `json:"compute_unit,omitempty"` StorageUnit *StorageUnit `json:"storage_unit,omitempty"` RackInfo *RackInfo `json:"rack_info,omitempty"` }
Rack 机柜
type RackInfo ¶
type RackInfo struct { // 机柜功率,单位:w Power *int32 `json:"power,omitempty"` // 机柜尺寸,如100\\*200\\*200,单位:cm Size *string `json:"size,omitempty"` // 是否有机柜锁。 HasLock *bool `json:"has_lock,omitempty"` }
RackInfo 机柜信息
type RackStatus ¶
type RackStatus struct {
// contains filtered or unexported fields
}
RackStatus 机柜状态。 - CREATING:创建中 - AVAILABLE:可用 - EXPANDING:扩容中 - PENDING_PAYMENT: 待支付
func (RackStatus) MarshalJSON ¶
func (c RackStatus) MarshalJSON() ([]byte, error)
func (*RackStatus) UnmarshalJSON ¶
func (c *RackStatus) UnmarshalJSON(b []byte) error
func (RackStatus) Value ¶
func (c RackStatus) Value() string
type RackStatusEnum ¶
type RackStatusEnum struct { CREATING RackStatus AVAILABLE RackStatus EXPANDING RackStatus PENDING_PAYMENT RackStatus }
func GetRackStatusEnum ¶
func GetRackStatusEnum() RackStatusEnum
type RegionDetail ¶
type RegionDetail struct { // 区域ID RegionId *string `json:"region_id,omitempty"` // 区域名称 DisplayName *string `json:"display_name,omitempty"` }
func (RegionDetail) String ¶
func (o RegionDetail) String() string
type ShowEdgeSiteRequest ¶
type ShowEdgeSiteRequest struct { // 边缘小站ID SiteId string `json:"site_id"` }
ShowEdgeSiteRequest Request Object
func (ShowEdgeSiteRequest) String ¶
func (o ShowEdgeSiteRequest) String() string
type ShowEdgeSiteResponse ¶
type ShowEdgeSiteResponse struct { EdgeSite *EdgeSiteDetail `json:"edge_site,omitempty"` HttpStatusCode int `json:"-"` }
ShowEdgeSiteResponse Response Object
func (ShowEdgeSiteResponse) String ¶
func (o ShowEdgeSiteResponse) String() string
type ShowRackRequest ¶
type ShowRackRequest struct { // 机柜ID Id string `json:"id"` }
ShowRackRequest Request Object
func (ShowRackRequest) String ¶
func (o ShowRackRequest) String() string
type ShowRackResponse ¶
ShowRackResponse Response Object
func (ShowRackResponse) String ¶
func (o ShowRackResponse) String() string
type ShowStoragePoolRequest ¶
type ShowStoragePoolRequest struct { // 存储池ID Id string `json:"id"` }
ShowStoragePoolRequest Request Object
func (ShowStoragePoolRequest) String ¶
func (o ShowStoragePoolRequest) String() string
type ShowStoragePoolResponse ¶
type ShowStoragePoolResponse struct { StoragePool *StoragePool `json:"storage_pool,omitempty"` HttpStatusCode int `json:"-"` }
ShowStoragePoolResponse Response Object
func (ShowStoragePoolResponse) String ¶
func (o ShowStoragePoolResponse) String() string
type SiteStatus ¶
type SiteStatus struct {
// contains filtered or unexported fields
}
SiteStatus 站点状态: - initial:待部署 - deploying:部署中 - available:可用 - unavailable:不可用
func (SiteStatus) MarshalJSON ¶
func (c SiteStatus) MarshalJSON() ([]byte, error)
func (*SiteStatus) UnmarshalJSON ¶
func (c *SiteStatus) UnmarshalJSON(b []byte) error
func (SiteStatus) Value ¶
func (c SiteStatus) Value() string
type SiteStatusEnum ¶
type SiteStatusEnum struct { INITIAL SiteStatus DEPLOYING SiteStatus AVAILABLE SiteStatus UNAVAILABLE SiteStatus }
func GetSiteStatusEnum ¶
func GetSiteStatusEnum() SiteStatusEnum
type StoragePool ¶
type StoragePool struct { // 机柜ID Id *string `json:"id,omitempty"` // 存储池名称 Name *string `json:"name,omitempty"` // 边缘小站ID EdgeSiteId *string `json:"edge_site_id,omitempty"` StorageType *StorageType `json:"storage_type,omitempty"` Status *StoragePoolStatus `json:"status,omitempty"` // 存储池大小。 当前购买的存储容量。 AssignedSize *int32 `json:"assigned_size,omitempty"` // 资源规格编码 ResourceSpecCode *string `json:"resource_spec_code,omitempty"` // 总容量 Capacity *int32 `json:"capacity,omitempty"` MarketOptions *MarketOptions `json:"market_options,omitempty"` // 创建时间 CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"` // 更新时间 UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"` // 生效时间 EffectedAt *sdktime.SdkTime `json:"effected_at,omitempty"` }
StoragePool 存储池
func (StoragePool) String ¶
func (o StoragePool) String() string
type StoragePoolStatus ¶
type StoragePoolStatus struct {
// contains filtered or unexported fields
}
StoragePoolStatus 存储池状态。 - CREATING:创建中 - AVAILABLE:可用 - EXPANDING:扩容中 - PENDING_PAYMENT:待支付
func (StoragePoolStatus) MarshalJSON ¶
func (c StoragePoolStatus) MarshalJSON() ([]byte, error)
func (*StoragePoolStatus) UnmarshalJSON ¶
func (c *StoragePoolStatus) UnmarshalJSON(b []byte) error
func (StoragePoolStatus) Value ¶
func (c StoragePoolStatus) Value() string
type StoragePoolStatusEnum ¶
type StoragePoolStatusEnum struct { CREATING StoragePoolStatus AVAILABLE StoragePoolStatus EXPANDING StoragePoolStatus PENDING_PAYMENT StoragePoolStatus }
func GetStoragePoolStatusEnum ¶
func GetStoragePoolStatusEnum() StoragePoolStatusEnum
type StorageType ¶
type StorageType struct {
// contains filtered or unexported fields
}
StorageType 存储类型。 - SAS:高IO - SSD:超高IO
func (StorageType) MarshalJSON ¶
func (c StorageType) MarshalJSON() ([]byte, error)
func (*StorageType) UnmarshalJSON ¶
func (c *StorageType) UnmarshalJSON(b []byte) error
func (StorageType) Value ¶
func (c StorageType) Value() string
type StorageTypeEnum ¶
type StorageTypeEnum struct { SAS StorageType SSD StorageType VS_SMALL_CAP StorageType VS_MEDIUM_CAP StorageType VS_LARGE_CAP StorageType }
func GetStorageTypeEnum ¶
func GetStorageTypeEnum() StorageTypeEnum
type StorageUnit ¶
type StorageUnit struct { StorageType *StorageType `json:"storage_type"` // 存储池大小,单位:TB。 Capacity int32 `json:"capacity"` // 存储池销售档位 Gears []int32 `json:"gears"` // 规格类型。例如:highio-4T FlavorType string `json:"flavor_type"` // 存储节点台数。 Count int32 `json:"count"` }
StorageUnit 存储单元
func (StorageUnit) String ¶
func (o StorageUnit) String() string
type UpdateCondition ¶
type UpdateCondition struct { // 机房环境条件 取值范围: - 0:机房条件不属于上述任何一种情况 - 1:机房使用模块化数据中心方案进行建设 - 2:机房已通过国家级或行业级标准化认证 Environment *int32 `json:"environment,omitempty"` // 机柜空间条件 - 0:暂无扩容计划,不考虑额外余量 - 1:机柜余量相对充裕,可放置空间超过3柜 - 2:机柜余量相对紧张,可放置空间3柜以内 Space *int32 `json:"space,omitempty"` // 运输条件 取值范围: - 0:运输通道和机房门的高度或宽度不满足要求 - 1:运输通道,货梯,机房门均可满足整机柜滚轮搬运 - 2:运输通道,货梯,机房门不能支持整机柜滚轮搬运,沿途有台阶 Transport *int32 `json:"transport,omitempty"` // 整柜安装评估 取值范围: - UNCLEAR:不清楚是否允许整柜安装,需要评估 - UNSUPPORT:不允许整柜安装,需将设备放入现有机柜 - SUPPORT:可支持整柜安装,并入现有机柜组 Installation *UpdateConditionInstallation `json:"installation,omitempty"` }
UpdateCondition 场地条件
func (UpdateCondition) String ¶
func (o UpdateCondition) String() string
type UpdateConditionInstallation ¶
type UpdateConditionInstallation struct {
// contains filtered or unexported fields
}
func (UpdateConditionInstallation) MarshalJSON ¶
func (c UpdateConditionInstallation) MarshalJSON() ([]byte, error)
func (*UpdateConditionInstallation) UnmarshalJSON ¶
func (c *UpdateConditionInstallation) UnmarshalJSON(b []byte) error
func (UpdateConditionInstallation) Value ¶
func (c UpdateConditionInstallation) Value() string
type UpdateConditionInstallationEnum ¶
type UpdateConditionInstallationEnum struct { UNCLEAR UpdateConditionInstallation UNSUPPORT UpdateConditionInstallation SUPPORT UpdateConditionInstallation }
func GetUpdateConditionInstallationEnum ¶
func GetUpdateConditionInstallationEnum() UpdateConditionInstallationEnum
type UpdateEdgeSite ¶
type UpdateEdgeSite struct { // 边缘小站描述,最大支持长度为255个字节,不允许包含<> Description *string `json:"description,omitempty"` Location *UpdateLocation `json:"location,omitempty"` }
func (UpdateEdgeSite) String ¶
func (o UpdateEdgeSite) String() string
type UpdateEdgeSiteRequest ¶
type UpdateEdgeSiteRequest struct { // 边缘小站ID SiteId string `json:"site_id"` Body *UpdateEdgeSiteRequestBody `json:"body,omitempty"` }
UpdateEdgeSiteRequest Request Object
func (UpdateEdgeSiteRequest) String ¶
func (o UpdateEdgeSiteRequest) String() string
type UpdateEdgeSiteRequestBody ¶
type UpdateEdgeSiteRequestBody struct {
EdgeSite *UpdateEdgeSite `json:"edge_site"`
}
func (UpdateEdgeSiteRequestBody) String ¶
func (o UpdateEdgeSiteRequestBody) String() string
type UpdateEdgeSiteResponse ¶
type UpdateEdgeSiteResponse struct { EdgeSite *EdgeSiteDetail `json:"edge_site,omitempty"` HttpStatusCode int `json:"-"` }
UpdateEdgeSiteResponse Response Object
func (UpdateEdgeSiteResponse) String ¶
func (o UpdateEdgeSiteResponse) String() string
type UpdateLocation ¶
type UpdateLocation struct { // 场地名称(已废弃),传入该参数不会再生效,新建站点也不会再返回该字段 Name *string `json:"name,omitempty"` // 场地所在国家 Country *UpdateLocationCountry `json:"country,omitempty"` // 场地所在省/自治区/直辖市 Province *string `json:"province,omitempty"` // 场地所在市/区 City *string `json:"city,omitempty"` // 场地所在区/县 District *string `json:"district,omitempty"` Condition *UpdateCondition `json:"condition,omitempty"` // 场地描述,最大支持长度为255个字节,不允许包含<> Description *string `json:"description,omitempty"` }
UpdateLocation 场地信息
func (UpdateLocation) String ¶
func (o UpdateLocation) String() string
type UpdateLocationCountry ¶
type UpdateLocationCountry struct {
// contains filtered or unexported fields
}
func (UpdateLocationCountry) MarshalJSON ¶
func (c UpdateLocationCountry) MarshalJSON() ([]byte, error)
func (*UpdateLocationCountry) UnmarshalJSON ¶
func (c *UpdateLocationCountry) UnmarshalJSON(b []byte) error
func (UpdateLocationCountry) Value ¶
func (c UpdateLocationCountry) Value() string
type UpdateLocationCountryEnum ¶
type UpdateLocationCountryEnum struct {
CN UpdateLocationCountry
}
func GetUpdateLocationCountryEnum ¶
func GetUpdateLocationCountryEnum() UpdateLocationCountryEnum
type ZoneDetail ¶ added in v0.1.95
type ZoneDetail struct { // 地区编码,如CN。不区分大小写,统一转为大写处理 Code *string `json:"code,omitempty"` // 地区名称 Name *string `json:"name,omitempty"` }
func (ZoneDetail) String ¶ added in v0.1.95
func (o ZoneDetail) String() string
Source Files ¶
- model_charge_mode.go
- model_compute_spec.go
- model_condition.go
- model_create_edge_site.go
- model_create_edge_site_request.go
- model_create_edge_site_request_body.go
- model_create_edge_site_response.go
- model_create_location.go
- model_delete_edge_site_request.go
- model_delete_edge_site_response.go
- model_edge_site_detail.go
- model_list_edge_site_metrics_request.go
- model_list_edge_site_metrics_response.go
- model_list_edge_sites_request.go
- model_list_edge_sites_response.go
- model_list_quotas_request.go
- model_list_quotas_response.go
- model_list_racks_request.go
- model_list_racks_response.go
- model_list_storage_pools_request.go
- model_list_storage_pools_response.go
- model_list_supported_regions_request.go
- model_list_supported_regions_response.go
- model_list_supported_zones_request.go
- model_list_supported_zones_response.go
- model_location_detail.go
- model_market_options.go
- model_metric_data_detail.go
- model_metric_data_detail_dimension.go
- model_page_info.go
- model_pay_mode.go
- model_prepaid_options.go
- model_quota_detail.go
- model_quota_resources.go
- model_rack.go
- model_rack_info.go
- model_rack_status.go
- model_region_detail.go
- model_show_edge_site_request.go
- model_show_edge_site_response.go
- model_show_rack_request.go
- model_show_rack_response.go
- model_show_storage_pool_request.go
- model_show_storage_pool_response.go
- model_site_status.go
- model_storage_pool.go
- model_storage_pool_status.go
- model_storage_type.go
- model_storage_unit.go
- model_update_condition.go
- model_update_edge_site.go
- model_update_edge_site_request.go
- model_update_edge_site_request_body.go
- model_update_edge_site_response.go
- model_update_location.go
- model_zone_detail.go