model

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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"`
}

场地条件

func (Condition) String

func (o Condition) String() string

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

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

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

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 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

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

type ListSupportedRegionsResponse

type ListSupportedRegionsResponse struct {

	// 区域列表
	Regions *[]RegionDetail `json:"regions,omitempty"`

	PageInfo       *PageInfo `json:"page_info,omitempty"`
	HttpStatusCode int       `json:"-"`
}

Response Object

func (ListSupportedRegionsResponse) 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"`
}

分页信息

func (PageInfo) String

func (o PageInfo) 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 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 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 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

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

Jump to

Keyboard shortcuts

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