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 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChargeMode ¶ added in v0.1.36
type ChargeMode struct {
// contains filtered or unexported fields
}
计费模式。 - prepaid:包年/包月
func (ChargeMode) MarshalJSON ¶ added in v0.1.36
func (c ChargeMode) MarshalJSON() ([]byte, error)
func (*ChargeMode) UnmarshalJSON ¶ added in v0.1.36
func (c *ChargeMode) UnmarshalJSON(b []byte) error
func (ChargeMode) Value ¶ added in v0.1.36
func (c ChargeMode) Value() string
type ChargeModeEnum ¶ added in v0.1.36
type ChargeModeEnum struct {
PREPAID ChargeMode
}
func GetChargeModeEnum ¶ added in v0.1.36
func GetChargeModeEnum() ChargeModeEnum
type ComputeSpec ¶ added in v0.1.36
type ComputeSpec struct { // 算力规格类型,如C6 FlavorType string `json:"flavor_type"` // 计算单元设备数 Count int32 `json:"count"` }
func (ComputeSpec) String ¶ added in v0.1.36
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"` }
场地条件
type ConditionInstallation ¶ added in v0.1.11
type ConditionInstallation struct {
// contains filtered or unexported fields
}
func (ConditionInstallation) MarshalJSON ¶ added in v0.1.11
func (c ConditionInstallation) MarshalJSON() ([]byte, error)
func (*ConditionInstallation) UnmarshalJSON ¶ added in v0.1.11
func (c *ConditionInstallation) UnmarshalJSON(b []byte) error
func (ConditionInstallation) Value ¶ added in v0.1.11
func (c ConditionInstallation) Value() string
type ConditionInstallationEnum ¶ added in v0.1.11
type ConditionInstallationEnum struct { UNCLEAR ConditionInstallation UNSUPPORT ConditionInstallation SUPPORT ConditionInstallation }
func GetConditionInstallationEnum ¶ added in v0.1.11
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"`
}
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:"-"` }
Response Object
func (CreateEdgeSiteResponse) String ¶
func (o CreateEdgeSiteResponse) String() string
type CreateLocation ¶
type CreateLocation struct { // 场地名称(已废弃),该参数不会再持久化存储,新建站点也不会再返回该字段 Name *string `json:"name,omitempty"` // 场地所在省/自治区/直辖市 Province string `json:"province"` // 场地所在市/区 City string `json:"city"` // 场地所在区/县 District string `json:"district"` // 场地所在国家 Country *CreateLocationCountry `json:"country,omitempty"` Condition *Condition `json:"condition"` // 场地描述,最大支持长度为255个字节,不允许包含<> Description *string `json:"description,omitempty"` }
场地信息
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 ¶ added in v0.0.90
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"` }
Request Object
func (DeleteEdgeSiteRequest) String ¶
func (o DeleteEdgeSiteRequest) String() string
type DeleteEdgeSiteResponse ¶
type DeleteEdgeSiteResponse struct {
HttpStatusCode int `json:"-"`
}
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"` }
边缘小站详情
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"` }
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 ¶ added in v0.0.90
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:"-"` }
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"` }
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:"-"` }
Response Object
func (ListEdgeSitesResponse) String ¶
func (o ListEdgeSitesResponse) String() string
type ListQuotasRequest ¶
type ListQuotasRequest struct { }
Request Object
func (ListQuotasRequest) String ¶
func (o ListQuotasRequest) String() string
type ListQuotasResponse ¶
type ListQuotasResponse struct { Quotas *QuotaResources `json:"quotas,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListQuotasResponse) String ¶
func (o ListQuotasResponse) String() string
type ListRacksRequest ¶ added in v0.1.36
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"` }
Request Object
func (ListRacksRequest) String ¶ added in v0.1.36
func (o ListRacksRequest) String() string
type ListRacksResponse ¶ added in v0.1.36
type ListRacksResponse struct { // 机柜列表 Racks *[]Rack `json:"racks,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListRacksResponse) String ¶ added in v0.1.36
func (o ListRacksResponse) String() string
type ListStoragePoolsRequest ¶ added in v0.1.36
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"` }
Request Object
func (ListStoragePoolsRequest) String ¶ added in v0.1.36
func (o ListStoragePoolsRequest) String() string
type ListStoragePoolsResponse ¶ added in v0.1.36
type ListStoragePoolsResponse struct { // 存储池列表 StoragePools *[]StoragePool `json:"storage_pools,omitempty"` PageInfo *PageInfo `json:"page_info,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ListStoragePoolsResponse) String ¶ added in v0.1.36
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"` }
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 ¶ added in v0.0.90
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:"-"` }
Response Object
func (ListSupportedRegionsResponse) String ¶
func (o ListSupportedRegionsResponse) String() string
type LocationDetail ¶
type LocationDetail struct { // 场地名称(已废弃),传入该参数不会再生效,新建站点也不会再返回该字段 Name *string `json:"name,omitempty"` // 场地描述 Description *string `json:"description,omitempty"` // 场地所在国家 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"` }
场地详情
func (LocationDetail) String ¶
func (o LocationDetail) String() string
type MarketOptions ¶ added in v0.1.36
type MarketOptions struct { ChargeMode *ChargeMode `json:"charge_mode,omitempty"` PrepaidOptions *PrepaidOptions `json:"prepaid_options,omitempty"` }
计费信息
func (MarketOptions) String ¶ added in v0.1.36
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"` }
维度信息
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"` }
分页信息
type PayMode ¶ added in v0.1.36
type PayMode struct {
// contains filtered or unexported fields
}
包周期付款类型 - FULL: 全预付 - HALF:半预付
func (PayMode) MarshalJSON ¶ added in v0.1.36
func (*PayMode) UnmarshalJSON ¶ added in v0.1.36
type PayModeEnum ¶ added in v0.1.36
func GetPayModeEnum ¶ added in v0.1.36
func GetPayModeEnum() PayModeEnum
type PrepaidOptions ¶ added in v0.1.36
type PrepaidOptions struct { // 订单ID OrderId *string `json:"order_id,omitempty"` // 产品ID ProductId *string `json:"product_id,omitempty"` PayMode *PayMode `json:"pay_mode,omitempty"` }
包年/包月计费信息
func (PrepaidOptions) String ¶ added in v0.1.36
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"` }
资源配额详情
func (QuotaDetail) String ¶
func (o QuotaDetail) String() string
type QuotaResources ¶
type QuotaResources struct { // 资源配额列表 Resources *[]QuotaDetail `json:"resources,omitempty"` }
资源配额详情列表
func (QuotaResources) String ¶
func (o QuotaResources) String() string
type Rack ¶ added in v0.1.36
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"` }
机柜
type RackInfo ¶ added in v0.1.36
type RackInfo struct { // 机柜功率,单位:w Power *int32 `json:"power,omitempty"` // 机柜尺寸,如100\\*200\\*200,单位:cm Size *string `json:"size,omitempty"` // 是否有机柜锁。 HasLock *bool `json:"has_lock,omitempty"` }
机柜信息
type RackStatus ¶ added in v0.1.36
type RackStatus struct {
// contains filtered or unexported fields
}
机柜状态。 - CREATING:创建中 - AVAILABLE:可用 - EXPANDING:扩容中 - PENDING_PAYMENT: 待支付
func (RackStatus) MarshalJSON ¶ added in v0.1.36
func (c RackStatus) MarshalJSON() ([]byte, error)
func (*RackStatus) UnmarshalJSON ¶ added in v0.1.36
func (c *RackStatus) UnmarshalJSON(b []byte) error
func (RackStatus) Value ¶ added in v0.1.36
func (c RackStatus) Value() string
type RackStatusEnum ¶ added in v0.1.36
type RackStatusEnum struct { CREATING RackStatus AVAILABLE RackStatus EXPANDING RackStatus PENDING_PAYMENT RackStatus }
func GetRackStatusEnum ¶ added in v0.1.36
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"` }
Request Object
func (ShowEdgeSiteRequest) String ¶
func (o ShowEdgeSiteRequest) String() string
type ShowEdgeSiteResponse ¶
type ShowEdgeSiteResponse struct { EdgeSite *EdgeSiteDetail `json:"edge_site,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowEdgeSiteResponse) String ¶
func (o ShowEdgeSiteResponse) String() string
type ShowRackRequest ¶ added in v0.1.36
type ShowRackRequest struct { // 机柜ID Id string `json:"id"` }
Request Object
func (ShowRackRequest) String ¶ added in v0.1.36
func (o ShowRackRequest) String() string
type ShowRackResponse ¶ added in v0.1.36
Response Object
func (ShowRackResponse) String ¶ added in v0.1.36
func (o ShowRackResponse) String() string
type ShowStoragePoolRequest ¶ added in v0.1.36
type ShowStoragePoolRequest struct { // 存储池ID Id string `json:"id"` }
Request Object
func (ShowStoragePoolRequest) String ¶ added in v0.1.36
func (o ShowStoragePoolRequest) String() string
type ShowStoragePoolResponse ¶ added in v0.1.36
type ShowStoragePoolResponse struct { StoragePool *StoragePool `json:"storage_pool,omitempty"` HttpStatusCode int `json:"-"` }
Response Object
func (ShowStoragePoolResponse) String ¶ added in v0.1.36
func (o ShowStoragePoolResponse) String() string
type SiteStatus ¶ added in v0.1.11
type SiteStatus struct {
// contains filtered or unexported fields
}
站点状态: - initial:待部署 - deploying:部署中 - available:可用 - unavailable:不可用
func (SiteStatus) MarshalJSON ¶ added in v0.1.11
func (c SiteStatus) MarshalJSON() ([]byte, error)
func (*SiteStatus) UnmarshalJSON ¶ added in v0.1.11
func (c *SiteStatus) UnmarshalJSON(b []byte) error
func (SiteStatus) Value ¶ added in v0.1.11
func (c SiteStatus) Value() string
type SiteStatusEnum ¶ added in v0.1.11
type SiteStatusEnum struct { INITIAL SiteStatus DEPLOYING SiteStatus AVAILABLE SiteStatus UNAVAILABLE SiteStatus }
func GetSiteStatusEnum ¶ added in v0.1.11
func GetSiteStatusEnum() SiteStatusEnum
type StoragePool ¶ added in v0.1.36
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"` }
存储池
func (StoragePool) String ¶ added in v0.1.36
func (o StoragePool) String() string
type StoragePoolStatus ¶ added in v0.1.36
type StoragePoolStatus struct {
// contains filtered or unexported fields
}
机柜状态。 - CREATING:创建中 - AVAILABLE:可用 - EXPANDING:扩容中 - PENDING_PAYMENT:待支付
func (StoragePoolStatus) MarshalJSON ¶ added in v0.1.36
func (c StoragePoolStatus) MarshalJSON() ([]byte, error)
func (*StoragePoolStatus) UnmarshalJSON ¶ added in v0.1.36
func (c *StoragePoolStatus) UnmarshalJSON(b []byte) error
func (StoragePoolStatus) Value ¶ added in v0.1.36
func (c StoragePoolStatus) Value() string
type StoragePoolStatusEnum ¶ added in v0.1.36
type StoragePoolStatusEnum struct { CREATING StoragePoolStatus AVAILABLE StoragePoolStatus EXPANDING StoragePoolStatus PENDING_PAYMENT StoragePoolStatus }
func GetStoragePoolStatusEnum ¶ added in v0.1.36
func GetStoragePoolStatusEnum() StoragePoolStatusEnum
type StorageType ¶ added in v0.1.36
type StorageType struct {
// contains filtered or unexported fields
}
存储类型。 - SAS:高IO - SSD:超高IO
func (StorageType) MarshalJSON ¶ added in v0.1.36
func (c StorageType) MarshalJSON() ([]byte, error)
func (*StorageType) UnmarshalJSON ¶ added in v0.1.36
func (c *StorageType) UnmarshalJSON(b []byte) error
func (StorageType) Value ¶ added in v0.1.36
func (c StorageType) Value() string
type StorageTypeEnum ¶ added in v0.1.36
type StorageTypeEnum struct { SAS StorageType SSD StorageType VS_SMALL_CAP StorageType VS_MEDIUM_CAP StorageType VS_LARGE_CAP StorageType }
func GetStorageTypeEnum ¶ added in v0.1.36
func GetStorageTypeEnum() StorageTypeEnum
type StorageUnit ¶ added in v0.1.36
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"` }
存储单元
func (StorageUnit) String ¶ added in v0.1.36
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"` }
场地条件
func (UpdateCondition) String ¶
func (o UpdateCondition) String() string
type UpdateConditionInstallation ¶ added in v0.1.11
type UpdateConditionInstallation struct {
// contains filtered or unexported fields
}
func (UpdateConditionInstallation) MarshalJSON ¶ added in v0.1.11
func (c UpdateConditionInstallation) MarshalJSON() ([]byte, error)
func (*UpdateConditionInstallation) UnmarshalJSON ¶ added in v0.1.11
func (c *UpdateConditionInstallation) UnmarshalJSON(b []byte) error
func (UpdateConditionInstallation) Value ¶ added in v0.1.11
func (c UpdateConditionInstallation) Value() string
type UpdateConditionInstallationEnum ¶ added in v0.1.11
type UpdateConditionInstallationEnum struct { UNCLEAR UpdateConditionInstallation UNSUPPORT UpdateConditionInstallation SUPPORT UpdateConditionInstallation }
func GetUpdateConditionInstallationEnum ¶ added in v0.1.11
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"` }
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:"-"` }
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"` }
场地信息
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 ¶ added in v0.0.90
func (c UpdateLocationCountry) Value() string
type UpdateLocationCountryEnum ¶
type UpdateLocationCountryEnum struct {
CN UpdateLocationCountry
}
func GetUpdateLocationCountryEnum ¶
func GetUpdateLocationCountryEnum() UpdateLocationCountryEnum
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_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