Documentation ¶
Index ¶
- type Condition
- 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 ListSupportedRegionsRequest
- type ListSupportedRegionsRequestXLanguage
- type ListSupportedRegionsRequestXLanguageEnum
- type ListSupportedRegionsResponse
- type LocationDetail
- type MetricDataDetail
- type MetricDataDetailDimension
- type PageInfo
- type QuotaDetail
- type QuotaResources
- type RegionDetail
- type ShowEdgeSiteRequest
- type ShowEdgeSiteResponse
- type UpdateCondition
- 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 Condition ¶
type Condition struct { // 机房环境条件 取值范围: - 0:需做详细评估 - 1:机房内已部署华为FusionModule - 2:机房等级满足T3或同等级国家标准 Environment *int32 `json:"environment,omitempty"` // 机柜空间条件 取值范围: - 0:除首柜外,同机房无预留空间 - 1:除首柜外,同机房预留3柜以上空间 - 2:除首柜外,同机房预留1-3柜空间 Space *int32 `json:"space,omitempty"` // 运输条件 取值范围: - 0:运输通道和机房门的高度或宽度不满足要求 - 1:运输通道,货梯,机房门均可满足整机柜滚轮搬运 - 2:运输通道,货梯,机房门不能支持整机柜滚轮搬运,沿途有台阶 Transport *int32 `json:"transport,omitempty"` }
场地条件
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 { // 场地名称,最大支持长度为64个字节。只包含中文字符、英文字母(a-z、A-Z)、数字(0-9)、下划线(_)、中划线(-) Name string `json:"name"` // 场地所在省/自治区/直辖市 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 *[]string `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 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 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 QuotaDetail ¶
type QuotaDetail struct { // 资源类型 取值范围: - edge_site:边缘小站 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 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 UpdateCondition ¶
type UpdateCondition struct { // 机房环境条件 取值范围: - 0:需做详细评估 - 1:机房内已部署华为FusionModule - 2:机房等级满足T3或同等级国家标准 Environment *int32 `json:"environment,omitempty"` // 机柜空间条件 - 0:除首柜外,同机房无预留空间 - 1:除首柜外,同机房预留3柜以上空间 - 2:除首柜外,同机房预留1-3柜空间 Space *int32 `json:"space,omitempty"` // 运输条件 取值范围: - 0:运输通道和机房门的高度或宽度不满足要求 - 1:运输通道,货梯,机房门均可满足整机柜滚轮搬运 - 2:运输通道,货梯,机房门不能支持整机柜滚轮搬运,沿途有台阶 Transport *int32 `json:"transport,omitempty"` }
场地条件
func (UpdateCondition) String ¶
func (o UpdateCondition) String() string
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 { // 场地名称,0-64位。只包含中文字符、英文字母(a-z、A-Z)、数字(0-9)、下划线(_)、中划线(-)。 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_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_supported_regions_request.go
- model_list_supported_regions_response.go
- model_location_detail.go
- model_metric_data_detail.go
- model_metric_data_detail_dimension.go
- model_page_info.go
- model_quota_detail.go
- model_quota_resources.go
- model_region_detail.go
- model_show_edge_site_request.go
- model_show_edge_site_response.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
Click to show internal directories.
Click to hide internal directories.