Documentation
¶
Overview ¶
* Zenlayer.com Inc. * Copyright (c) 2014-2022 All Rights Reserved.
* Zenlayer.com Inc. * Copyright (c) 2014-2024 All Rights Reserved.
Index ¶
- Constants
- type BandwidthClusterAreaInfo
- type BandwidthClusterInfo
- type BandwidthClusterResource
- type BandwidthClusterTrafficData
- type BandwidthClusterUsageData
- type BandwidthClusterUsageDetail
- type CityInfo
- type Client
- func (c *Client) CreateBandwidthCluster(request *CreateBandwidthClusterRequest) (response *CreateBandwidthClusterResponse, err error)
- func (c *Client) DeleteBandwidthClusters(request *DeleteBandwidthClustersRequest) (response *DeleteBandwidthClustersResponse, err error)
- func (c *Client) DescribeBandwidthClusterAreas(request *DescribeBandwidthClusterAreasRequest) (response *DescribeBandwidthClusterAreasResponse, err error)
- func (c *Client) DescribeBandwidthClusterResources(request *DescribeBandwidthClusterResourcesRequest) (response *DescribeBandwidthClusterResourcesResponse, err error)
- func (c *Client) DescribeBandwidthClusterTraffic(request *DescribeBandwidthClusterTrafficRequest) (response *DescribeBandwidthClusterTrafficResponse, err error)
- func (c *Client) DescribeBandwidthClusterUsage(request *DescribeBandwidthClusterUsageRequest) (response *DescribeBandwidthClusterUsageResponse, err error)
- func (c *Client) DescribeBandwidthClusters(request *DescribeBandwidthClustersRequest) (response *DescribeBandwidthClustersResponse, err error)
- func (c *Client) InquiryBandwidthClusterPrice(request *InquiryBandwidthClusterPriceRequest) (response *InquiryBandwidthClusterPriceResponse, err error)
- func (c *Client) MigrateBandwidthClusterResources(request *MigrateBandwidthClusterResourcesRequest) (response *MigrateBandwidthClusterResourcesResponse, err error)
- func (c *Client) ModifyBandwidthClusterAttribute(request *ModifyBandwidthClusterAttributeRequest) (response *ModifyBandwidthClusterAttributeResponse, err error)
- func (c *Client) UpdateBandwidthClusterCommitBandwidth(request *UpdateBandwidthClusterCommitBandwidthRequest) (response *UpdateBandwidthClusterCommitBandwidthResponse, err error)
- type CreateBandwidthClusterRequest
- type CreateBandwidthClusterResponse
- type CreateBandwidthClusterResponseParams
- type DeleteBandwidthClustersRequest
- type DeleteBandwidthClustersResponse
- type DescribeBandwidthClusterAreasRequest
- type DescribeBandwidthClusterAreasResponse
- type DescribeBandwidthClusterAreasResponseParams
- type DescribeBandwidthClusterResourcesRequest
- type DescribeBandwidthClusterResourcesResponse
- type DescribeBandwidthClusterResourcesResponseParams
- type DescribeBandwidthClusterTrafficRequest
- type DescribeBandwidthClusterTrafficResponse
- type DescribeBandwidthClusterTrafficResponseParams
- type DescribeBandwidthClusterUsageRequest
- type DescribeBandwidthClusterUsageResponse
- type DescribeBandwidthClusterUsageResponseParams
- type DescribeBandwidthClustersRequest
- type DescribeBandwidthClustersResponse
- type DescribeBandwidthClustersResponseParams
- type InquiryBandwidthClusterPriceRequest
- type InquiryBandwidthClusterPriceResponse
- type InquiryBandwidthClusterPriceResponseParams
- type MigrateBandwidthClusterResourcesRequest
- type MigrateBandwidthClusterResourcesResponse
- type ModifyBandwidthClusterAttributeRequest
- type ModifyBandwidthClusterAttributeResponse
- type PriceItem
- type StepPrice
- type UpdateBandwidthClusterCommitBandwidthRequest
- type UpdateBandwidthClusterCommitBandwidthResponse
Constants ¶
const ( APIVersion = "2024-03-26" SERVICE = "traffic" )
const ( // Bandwidth cluster does not exist. INVALID_CLUSTER_NOT_FOUND = "Invalid.cluster.Not.Found" // The start time should be earlier than the end time. INVALID_START_TIME_MUST_BEFORE_END_TIME = "Invalid.Start.Time.Must.Before.End.Time" // Invalid date range. The date range should be within 24 hours. INVALID_TIME_RANGE = "Invalid.Time.Range" // Only the data transfer within 30 days are supported to query. TIME_OUT_OF_RANGE = "Time.Out.Of.Range" // Invalid time format. INVALID_TIME_FORMAT = "Invalid.Time.Format" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BandwidthClusterAreaInfo ¶ added in v0.1.21
type BandwidthClusterAreaInfo struct {
// AreaCode 带宽包区域代码。
AreaCode *string `json:"areaCode,omitempty"`
// AreaName 带宽包区域名称。
AreaName *string `json:"areaName,omitempty"`
// NetworkTypes 该地区支持的IP网络类型。
NetworkTypes []string `json:"networkTypes,omitempty"`
// Products 该地区支持的产品线。
Products []string `json:"products,omitempty"`
}
BandwidthClusterAreaInfo 描述带宽包的区域信息。
type BandwidthClusterInfo ¶
type BandwidthClusterInfo struct {
// BandwidthClusterId 共享带宽包唯一ID。
BandwidthClusterId *string `json:"bandwidthClusterId,omitempty"`
// BandwidthClusterName 共享带宽包显示名称。
BandwidthClusterName *string `json:"bandwidthClusterName,omitempty"`
// Deprecated: NetworkType 已废弃,请不要使用。
// NetworkType IP 网络类型。
// 请使用`ipNetworkType`。
NetworkType *string `json:"networkType,omitempty"`
// NetworkLineType 网络线路类型。
NetworkLineType *string `json:"networkLineType,omitempty"`
// Product 产品范围。
Product *string `json:"product,omitempty"`
// AreaCode 区域代号。
AreaCode *string `json:"areaCode,omitempty"`
// InternetChargeType 带宽计费方式。
InternetChargeType *string `json:"internetChargeType,omitempty"`
// CommitBandwidthMbps 保底带宽。
// 单位:Mbps。
CommitBandwidthMbps *int `json:"commitBandwidthMbps,omitempty"`
// Location 所属区域。
Location *string `json:"location,omitempty"`
// CreateTime 创建时间。
// 格式为:YYYY-MM-ddTHH:mm:ssZ。
CreateTime *string `json:"createTime,omitempty"`
// ResourceNumber 带宽包内的资源数量。
ResourceNumber *int `json:"resourceNumber,omitempty"`
// Cities 城市信息。
Cities []*CityInfo `json:"cities,omitempty"`
}
BandwidthClusterInfo 共享带宽包的基本信息。
type BandwidthClusterResource ¶ added in v0.1.27
type BandwidthClusterResource struct {
// ResourceId 资源ID。
ResourceId *string `json:"resourceId,omitempty"`
// ResourceType 资源类型。
ResourceType *string `json:"resourceType,omitempty"`
}
BandwidthClusterResource 描述带宽包里的资源信息。
type BandwidthClusterTrafficData ¶
type BandwidthClusterTrafficData struct {
// InternetRX 入口带宽。
// 单位:bps。
InternetRX *int64 `json:"internetRX,omitempty"`
// InternetTX 出口带宽。
// 单位:bps。
InternetTX *int64 `json:"internetTX,omitempty"`
// Time 数据时间。
// 格式为:YYYY-MM-ddTHH:mm:ssZ。
Time *string `json:"time,omitempty"`
}
BandwidthClusterTrafficData 共享带宽包带宽数据点。
type BandwidthClusterUsageData ¶ added in v0.2.19
type BandwidthClusterUsageData struct {
// Time 时间。
// 95计费时间为月(格式yyyy-MM)。
// 日峰值计费时间为日(格式yyyy-MM-dd)。
Time *string `json:"time,omitempty"`
// Value 带宽值。
// 单位:Mbps。
Value *float64 `json:"value,omitempty"`
// Details 带宽详情列表。
Details []*BandwidthClusterUsageDetail `json:"details,omitempty"`
}
BandwidthClusterUsageData 带宽用量数据。
type BandwidthClusterUsageDetail ¶ added in v0.2.19
type BandwidthClusterUsageDetail struct {
// CityName 城市名称。
CityName *string `json:"cityName,omitempty"`
// CityCode 城市代码。
CityCode *string `json:"cityCode,omitempty"`
// Product 产品来源。
Product *string `json:"product,omitempty"`
// Value 带宽值。
// 单位:Mbps。
Value *float64 `json:"value,omitempty"`
}
BandwidthClusterUsageDetail 带宽用量详情数据。
type CityInfo ¶ added in v0.1.19
type CityInfo struct {
// CityName 城市名称。
CityName *string `json:"cityName,omitempty"`
// CityCode 城市三字码代号。
CityCode *string `json:"cityCode,omitempty"`
}
CityInfo 描述城市的基本信息。
type Client ¶
func NewClientWithSecretKey ¶
func (*Client) CreateBandwidthCluster ¶ added in v0.1.21
func (c *Client) CreateBandwidthCluster(request *CreateBandwidthClusterRequest) (response *CreateBandwidthClusterResponse, err error)
CreateBandwidthCluster 创建一个共享带宽包。
func (*Client) DeleteBandwidthClusters ¶ added in v0.1.21
func (c *Client) DeleteBandwidthClusters(request *DeleteBandwidthClustersRequest) (response *DeleteBandwidthClustersResponse, err error)
DeleteBandwidthClusters 删除一个或多个共享带宽包。
func (*Client) DescribeBandwidthClusterAreas ¶ added in v0.1.21
func (c *Client) DescribeBandwidthClusterAreas(request *DescribeBandwidthClusterAreasRequest) (response *DescribeBandwidthClusterAreasResponse, err error)
DescribeBandwidthClusterAreas 查询共享带宽包的地区信息。
func (*Client) DescribeBandwidthClusterResources ¶ added in v0.1.27
func (c *Client) DescribeBandwidthClusterResources(request *DescribeBandwidthClusterResourcesRequest) (response *DescribeBandwidthClusterResourcesResponse, err error)
DescribeBandwidthClusterResources 查询一个共享带宽包里的资源。
func (*Client) DescribeBandwidthClusterTraffic ¶
func (c *Client) DescribeBandwidthClusterTraffic(request *DescribeBandwidthClusterTrafficRequest) (response *DescribeBandwidthClusterTrafficResponse, err error)
DescribeBandwidthClusterTraffic 查询带宽组指定时间段内的流量信息。
func (*Client) DescribeBandwidthClusterUsage ¶ added in v0.2.19
func (c *Client) DescribeBandwidthClusterUsage(request *DescribeBandwidthClusterUsageRequest) (response *DescribeBandwidthClusterUsageResponse, err error)
DescribeBandwidthClusterUsage 查询共享带宽包的用量信息。
func (*Client) DescribeBandwidthClusters ¶
func (c *Client) DescribeBandwidthClusters(request *DescribeBandwidthClustersRequest) (response *DescribeBandwidthClustersResponse, err error)
DescribeBandwidthClusters 查询一个或多个共享带宽包的信息。用户可以根据共享带宽包ID、名称或者城市名称等条件来查询共享带宽包的详细信息。
func (*Client) InquiryBandwidthClusterPrice ¶ added in v0.1.21
func (c *Client) InquiryBandwidthClusterPrice(request *InquiryBandwidthClusterPriceRequest) (response *InquiryBandwidthClusterPriceResponse, err error)
InquiryBandwidthClusterPrice 查询共享带宽包价格。
func (*Client) MigrateBandwidthClusterResources ¶ added in v0.1.27
func (c *Client) MigrateBandwidthClusterResources(request *MigrateBandwidthClusterResourcesRequest) (response *MigrateBandwidthClusterResourcesResponse, err error)
MigrateBandwidthClusterResources 共享带宽包之间的资源迁移。
func (*Client) ModifyBandwidthClusterAttribute ¶ added in v0.2.2
func (c *Client) ModifyBandwidthClusterAttribute(request *ModifyBandwidthClusterAttributeRequest) (response *ModifyBandwidthClusterAttributeResponse, err error)
ModifyBandwidthClusterAttribute 修改共享带宽包的属性。目前只支持名称的修改。
func (*Client) UpdateBandwidthClusterCommitBandwidth ¶ added in v0.1.21
func (c *Client) UpdateBandwidthClusterCommitBandwidth(request *UpdateBandwidthClusterCommitBandwidthRequest) (response *UpdateBandwidthClusterCommitBandwidthResponse, err error)
UpdateBandwidthClusterCommitBandwidth 修改带宽包的保底带宽。
type CreateBandwidthClusterRequest ¶ added in v0.1.21
type CreateBandwidthClusterRequest struct {
*common.BaseRequest
// AreaCode 共享带宽包所属地域。
// 具体地域信息可以查询[DescribeBandwidthClusterAreas](../bandwidth-cluster/describebandwidthclusterareas.md)中的`areaCode`获取。
AreaCode *string `json:"areaCode,omitempty"`
// CommitBandwidthMbps 保底带宽值。
// 单位: Mbps。
CommitBandwidthMbps *int `json:"commitBandwidthMbps,omitempty"`
// NetworkLineType IP网络类型。
// 城市共享带宽包该字段必填。
NetworkLineType *string `json:"networkLineType,omitempty"`
// Deprecated: NetworkType 已废弃,请不要使用。
// NetworkType IP网络类型。
// 请使用`networkLineType`代替。
NetworkType *string `json:"networkType,omitempty"`
// InternetChargeType 带宽计费方式。
// 默认为月95计费,如果需要日峰值计费,请联系Support开通相关权限。
InternetChargeType *string `json:"internetChargeType,omitempty"`
// Name 带宽包显示名称。
// 如果未指定,默认会使用地域名称命名。
Name *string `json:"name,omitempty"`
// Product 城市带宽包所属的产品线范围。
Product *string `json:"product,omitempty"`
}
CreateBandwidthClusterRequest
func NewCreateBandwidthClusterRequest ¶ added in v0.1.21
func NewCreateBandwidthClusterRequest() (request *CreateBandwidthClusterRequest)
type CreateBandwidthClusterResponse ¶ added in v0.1.21
type CreateBandwidthClusterResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *CreateBandwidthClusterResponseParams `json:"response,omitempty"`
}
func NewCreateBandwidthClusterResponse ¶ added in v0.1.21
func NewCreateBandwidthClusterResponse() (response *CreateBandwidthClusterResponse)
type CreateBandwidthClusterResponseParams ¶ added in v0.1.21
type CreateBandwidthClusterResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// OrderNumber 订单编号。
OrderNumber *string `json:"orderNumber,omitempty"`
// BandwidthClusterId 创建的共享带宽包ID。
BandwidthClusterId *string `json:"bandwidthClusterId,omitempty"`
}
CreateBandwidthClusterResponseParams
type DeleteBandwidthClustersRequest ¶ added in v0.1.21
type DeleteBandwidthClustersRequest struct {
*common.BaseRequest
// BandwidthClusterIds 共享带宽包ID列表。
// 最多一次可传20个。
BandwidthClusterIds []string `json:"bandwidthClusterIds,omitempty"`
}
func NewDeleteBandwidthClustersRequest ¶ added in v0.1.21
func NewDeleteBandwidthClustersRequest() (request *DeleteBandwidthClustersRequest)
type DeleteBandwidthClustersResponse ¶ added in v0.1.21
type DeleteBandwidthClustersResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewDeleteBandwidthClustersResponse ¶ added in v0.1.21
func NewDeleteBandwidthClustersResponse() (response *DeleteBandwidthClustersResponse)
type DescribeBandwidthClusterAreasRequest ¶ added in v0.1.21
type DescribeBandwidthClusterAreasRequest struct {
*common.BaseRequest
}
func NewDescribeBandwidthClusterAreasRequest ¶ added in v0.1.21
func NewDescribeBandwidthClusterAreasRequest() (request *DescribeBandwidthClusterAreasRequest)
type DescribeBandwidthClusterAreasResponse ¶ added in v0.1.21
type DescribeBandwidthClusterAreasResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeBandwidthClusterAreasResponseParams `json:"response,omitempty"`
}
func NewDescribeBandwidthClusterAreasResponse ¶ added in v0.1.21
func NewDescribeBandwidthClusterAreasResponse() (response *DescribeBandwidthClusterAreasResponse)
type DescribeBandwidthClusterAreasResponseParams ¶ added in v0.1.21
type DescribeBandwidthClusterAreasResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// Areas 可开通共享流量包区域列表。
Areas []*BandwidthClusterAreaInfo `json:"areas,omitempty"`
}
DescribeBandwidthClusterAreasResponseParams
type DescribeBandwidthClusterResourcesRequest ¶ added in v0.1.27
type DescribeBandwidthClusterResourcesRequest struct {
*common.BaseRequest
// BandwidthClusterId 共享带宽包ID。
BandwidthClusterId *string `json:"bandwidthClusterId,omitempty"`
}
func NewDescribeBandwidthClusterResourcesRequest ¶ added in v0.1.27
func NewDescribeBandwidthClusterResourcesRequest() (request *DescribeBandwidthClusterResourcesRequest)
type DescribeBandwidthClusterResourcesResponse ¶ added in v0.1.27
type DescribeBandwidthClusterResourcesResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeBandwidthClusterResourcesResponseParams `json:"response,omitempty"`
}
func NewDescribeBandwidthClusterResourcesResponse ¶ added in v0.1.27
func NewDescribeBandwidthClusterResourcesResponse() (response *DescribeBandwidthClusterResourcesResponse)
type DescribeBandwidthClusterResourcesResponseParams ¶ added in v0.1.27
type DescribeBandwidthClusterResourcesResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// Resources 共享带宽包里的资源信息。
Resources []*BandwidthClusterResource `json:"resources,omitempty"`
// TotalCount 共享带宽包里的资源数量。
TotalCount *int `json:"totalCount,omitempty"`
}
type DescribeBandwidthClusterTrafficRequest ¶
type DescribeBandwidthClusterTrafficRequest struct {
*common.BaseRequest
// BandwidthClusterId 共享带宽包ID。
BandwidthClusterId *string `json:"bandwidthClusterId,omitempty"`
// StartTime 查询开始时间。
// 按照ISO8601标准表示,并且使用UTC时间。
// 格式为:YYYY-MM-ddTHH:mm:ssZ。
StartTime *string `json:"startTime,omitempty"`
// EndTime 查询结束时间。
// 按照ISO8601标准表示,并且使用UTC时间。
// 格式为:YYYY-MM-ddTHH:mm:ssZ。
EndTime *string `json:"endTime,omitempty"`
// City 按城市进行过滤,如LAX。
// 该值可以是城市英文名也可以是城市码。
// 指定该值,将会只返回该城市的带宽流量数据。
// 当前带宽组的城市码和城市名称可以在[DescribeBandwidthClusters](../bandwidth-cluster/describebandwidthclusters.md)中的cities字段中查看。
City *string `json:"city,omitempty"`
}
func NewDescribeBandwidthClusterTrafficRequest ¶
func NewDescribeBandwidthClusterTrafficRequest() (request *DescribeBandwidthClusterTrafficRequest)
type DescribeBandwidthClusterTrafficResponse ¶
type DescribeBandwidthClusterTrafficResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeBandwidthClusterTrafficResponseParams `json:"response,omitempty"`
}
func NewDescribeBandwidthClusterTrafficResponse ¶
func NewDescribeBandwidthClusterTrafficResponse() (response *DescribeBandwidthClusterTrafficResponse)
type DescribeBandwidthClusterTrafficResponseParams ¶ added in v0.1.21
type DescribeBandwidthClusterTrafficResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// DataList 带宽数据列表。
DataList []*BandwidthClusterTrafficData `json:"dataList,omitempty"`
// In95 入口带宽95值。
In95 *int64 `json:"in95,omitempty"`
// In95Time 入口带宽95值时间。
// 格式为:YYYY-MM-ddTHH:mm:ssZ。
In95Time *string `json:"in95Time,omitempty"`
// InAvg 入口带宽平均值。
InAvg *int64 `json:"inAvg,omitempty"`
// InMax 入口带宽最大值。
InMax *int64 `json:"inMax,omitempty"`
// InMin 入口带宽最小值。
InMin *int64 `json:"inMin,omitempty"`
// InTotal 入口带宽总流量。
InTotal *int64 `json:"inTotal,omitempty"`
// Out95 出口带宽95值。
Out95 *int64 `json:"out95,omitempty"`
// Out95Time 出口带宽95值时间。
// 格式为:YYYY-MM-ddTHH:mm:ssZ。
Out95Time *string `json:"out95Time,omitempty"`
// OutAvg 出口带宽平均值。
OutAvg *int64 `json:"outAvg,omitempty"`
// OutMax 出口带宽最大值。
OutMax *int64 `json:"outMax,omitempty"`
// OutMin 出口带宽最小值。
OutMin *int64 `json:"outMin,omitempty"`
// OutTotal 出口带宽总流量。
OutTotal *int64 `json:"outTotal,omitempty"`
// MaxBandwidth95ValueMbps 最大带宽95值。
// 单位:Mbps。
MaxBandwidth95ValueMbps *float64 `json:"maxBandwidth95ValueMbps,omitempty"`
// TotalUnit 总流量单位。
// 例如:B。
TotalUnit *string `json:"totalUnit,omitempty"`
// Unit 带宽值单位。
// 例如:bps。
Unit *string `json:"unit,omitempty"`
}
type DescribeBandwidthClusterUsageRequest ¶ added in v0.2.19
type DescribeBandwidthClusterUsageRequest struct {
*common.BaseRequest
// BandwidthClusterId 共享带宽包ID。
BandwidthClusterId *string `json:"bandwidthClusterId,omitempty"`
// PageSize 返回的分页大小。
// 默认为20。
PageSize *int `json:"pageSize,omitempty"`
// PageNum 返回的分页数。
// 默认为1。
PageNum *int `json:"pageNum,omitempty"`
}
func NewDescribeBandwidthClusterUsageRequest ¶ added in v0.2.19
func NewDescribeBandwidthClusterUsageRequest() (request *DescribeBandwidthClusterUsageRequest)
type DescribeBandwidthClusterUsageResponse ¶ added in v0.2.19
type DescribeBandwidthClusterUsageResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeBandwidthClusterUsageResponseParams `json:"response,omitempty"`
}
func NewDescribeBandwidthClusterUsageResponse ¶ added in v0.2.19
func NewDescribeBandwidthClusterUsageResponse() (response *DescribeBandwidthClusterUsageResponse)
type DescribeBandwidthClusterUsageResponseParams ¶ added in v0.2.19
type DescribeBandwidthClusterUsageResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// TotalCount 符合条件的数据总数。
TotalCount *int `json:"totalCount,omitempty"`
// DataSet 带宽用量数据集。
DataSet []*BandwidthClusterUsageData `json:"dataSet,omitempty"`
}
type DescribeBandwidthClustersRequest ¶
type DescribeBandwidthClustersRequest struct {
*common.BaseRequest
// BandwidthClusterIds 共享带宽包ID。
// 最多支持100个ID查询。
BandwidthClusterIds []string `json:"bandwidthClusterIds,omitempty"`
// BandwidthClusterName 共享带宽包显示名称。
// 支持模糊匹配。
BandwidthClusterName *string `json:"bandwidthClusterName,omitempty"`
// CityName 共享带宽包所包含的城市名称。
CityName *string `json:"cityName,omitempty"`
// PageNum 返回的分页大小。
// 默认为20,最大为1000。
PageNum *int `json:"pageNum,omitempty"`
// PageSize 返回的分页数。
PageSize *int `json:"pageSize,omitempty"`
}
DescribeBandwidthClustersRequest
func NewDescribeBandwidthClustersRequest ¶
func NewDescribeBandwidthClustersRequest() (request *DescribeBandwidthClustersRequest)
type DescribeBandwidthClustersResponse ¶
type DescribeBandwidthClustersResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *DescribeBandwidthClustersResponseParams `json:"response,omitempty"`
}
func NewDescribeBandwidthClustersResponse ¶
func NewDescribeBandwidthClustersResponse() (response *DescribeBandwidthClustersResponse)
type DescribeBandwidthClustersResponseParams ¶
type DescribeBandwidthClustersResponseParams struct {
RequestId *string `json:"requestId,omitempty"`
// TotalCount 符合条件的数据总数。
TotalCount *int `json:"totalCount,omitempty"`
// DataSet 共享带宽包结果集。
DataSet []*BandwidthClusterInfo `json:"dataSet,omitempty"`
}
DescribeBandwidthClustersResponseParams
type InquiryBandwidthClusterPriceRequest ¶ added in v0.1.21
type InquiryBandwidthClusterPriceRequest struct {
*common.BaseRequest
// AreaCode 共享带宽包所属地域。
// 具体地域信息可以查询[DescribeBandwidthClusterAreas](../bandwidth-cluster/describebandwidthclusterareas.md)中的`areaCode`获取。
AreaCode *string `json:"areaCode,omitempty"`
// CommitBandwidthMbps 保底带宽值。
// 单位: Mbps。
CommitBandwidthMbps *int `json:"commitBandwidthMbps,omitempty"`
// NetworkType IP 网络类型。
NetworkType *string `json:"networkType,omitempty"`
// InternetChargeType 带宽计费方式。
// 默认为月95计费,如果需要日峰值计费,请联系Support开通相关权限。
InternetChargeType *string `json:"internetChargeType,omitempty"`
// Product 城市带宽包所属的产品线范围。
Product *string `json:"product,omitempty"`
}
InquiryBandwidthClusterPriceRequest
func NewInquiryBandwidthClusterPriceRequest ¶ added in v0.1.21
func NewInquiryBandwidthClusterPriceRequest() (request *InquiryBandwidthClusterPriceRequest)
type InquiryBandwidthClusterPriceResponse ¶ added in v0.1.21
type InquiryBandwidthClusterPriceResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response *InquiryBandwidthClusterPriceResponseParams `json:"response,omitempty"`
}
func NewInquiryBandwidthClusterPriceResponse ¶ added in v0.1.21
func NewInquiryBandwidthClusterPriceResponse() (response *InquiryBandwidthClusterPriceResponse)
type InquiryBandwidthClusterPriceResponseParams ¶ added in v0.1.21
type MigrateBandwidthClusterResourcesRequest ¶ added in v0.1.27
type MigrateBandwidthClusterResourcesRequest struct {
*common.BaseRequest
// TargetBandwidthClusterId 要迁移的目标共享带宽包的ID。
TargetBandwidthClusterId *string `json:"targetBandwidthClusterId,omitempty"`
// ResourceIdList 要迁移的资源的ID列表。
// 该资源必须属于其他共享带宽包且资源所处的原共享带宽包的`IP网络类型`以及`区域`需要和目标带宽包一致。
ResourceIdList []string `json:"resourceIdList,omitempty"`
}
MigrateBandwidthClusterResourcesRequest
func NewMigrateBandwidthClusterResourcesRequest ¶ added in v0.1.27
func NewMigrateBandwidthClusterResourcesRequest() (request *MigrateBandwidthClusterResourcesRequest)
type MigrateBandwidthClusterResourcesResponse ¶ added in v0.1.27
type MigrateBandwidthClusterResourcesResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewMigrateBandwidthClusterResourcesResponse ¶ added in v0.1.27
func NewMigrateBandwidthClusterResourcesResponse() (response *MigrateBandwidthClusterResourcesResponse)
type ModifyBandwidthClusterAttributeRequest ¶ added in v0.2.2
type ModifyBandwidthClusterAttributeRequest struct {
*common.BaseRequest
// BandwidthClusterId 共享带宽包ID。
BandwidthClusterId *string `json:"bandwidthClusterId,omitempty"`
// Name 要许改的共享带宽包显示名称。
// 最长不超过255个字符。
Name *string `json:"name,omitempty"`
}
ModifyBandwidthClusterAttributeRequest
func NewModifyBandwidthClusterAttributeRequest ¶ added in v0.2.2
func NewModifyBandwidthClusterAttributeRequest() (request *ModifyBandwidthClusterAttributeRequest)
type ModifyBandwidthClusterAttributeResponse ¶ added in v0.2.2
type ModifyBandwidthClusterAttributeResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewModifyBandwidthClusterAttributeResponse ¶ added in v0.2.2
func NewModifyBandwidthClusterAttributeResponse() (response *ModifyBandwidthClusterAttributeResponse)
type PriceItem ¶ added in v0.1.21
type PriceItem struct {
// Discount 折扣大小。
// 如80.0代表8折。
Discount *float64 `json:"discount,omitempty"`
// DiscountPrice 后付费的单元折后价格。
// 后付费模式使用,如果价格为阶梯价格,该项为null。
DiscountPrice *float64 `json:"discountPrice,omitempty"`
// OriginalPrice 预付费的原价。
// 预付费模式使用,后付费该值为 null。
OriginalPrice *float64 `json:"originalPrice,omitempty"`
// UnitPrice 后付费的单元原始价格。
// 后付费模式使用,如果价格为阶梯价格,该项为null。
UnitPrice *float64 `json:"unitPrice,omitempty"`
// DiscountUnitPrice 后付费的单元折后价格。
// 后付费模式使用,如果价格为阶梯价格,该项为null。
DiscountUnitPrice *float64 `json:"discountUnitPrice,omitempty"`
// ChargeUnit 后付费计价单元。
// 后付费模式使用,可取值范围:
// HOUR: 表示计价单元是按每小时来计算。
// DAY: 表示计价单元是按天来计算。
// MONTH: 表示计价单元是按月来计算,95计费则是这种。
ChargeUnit *string `json:"chargeUnit,omitempty"`
// StepPrices 后付费阶梯价格。
// 后付费模式使用,如果非阶梯价格,该项为null。
StepPrices []*StepPrice `json:"stepPrices,omitempty"`
// AmountUnit 用量单位。
// 比如Mbps, LCU等。
// 如果为null, 代表取不到值。
AmountUnit *string `json:"amountUnit,omitempty"`
// ExcessUnitPrice 超量原始价格。
ExcessUnitPrice *float64 `json:"excessUnitPrice,omitempty"`
// ExcessDiscountUnitPrice 超量折扣后价格。
ExcessDiscountUnitPrice *float64 `json:"excessDiscountUnitPrice,omitempty"`
// ExcessAmountUnit 超量用量单位。
// 如果为null, 代表取不到值。
ExcessAmountUnit *string `json:"excessAmountUnit,omitempty"`
// Category 价格所属类别。
Category *string `json:"category,omitempty"`
}
PriceItem 描述价格的信息。
type StepPrice ¶ added in v0.1.21
type StepPrice struct {
// StepStart 阶梯的起始值。
StepStart *float64 `json:"stepStart,omitempty"`
// StepEnd 阶梯的到达值。
// 为null代表最后一级阶梯。
StepEnd *float64 `json:"stepEnd,omitempty"`
// UnitPrice 阶梯单价。
UnitPrice *float64 `json:"unitPrice,omitempty"`
// DiscountUnitPrice 阶梯折后价。
DiscountUnitPrice *float64 `json:"discountUnitPrice,omitempty"`
}
StepPrice 描述阶梯价格的信息。
type UpdateBandwidthClusterCommitBandwidthRequest ¶ added in v0.1.21
type UpdateBandwidthClusterCommitBandwidthRequest struct {
*common.BaseRequest
// BandwidthClusterId 共享带宽包ID。
BandwidthClusterId *string `json:"bandwidthClusterId,omitempty"`
// CommitBandwidthMbps 保底带宽。
CommitBandwidthMbps *int `json:"commitBandwidthMbps,omitempty"`
}
func NewUpdateBandwidthClusterCommitBandwidthRequest ¶ added in v0.1.21
func NewUpdateBandwidthClusterCommitBandwidthRequest() (request *UpdateBandwidthClusterCommitBandwidthRequest)
type UpdateBandwidthClusterCommitBandwidthResponse ¶ added in v0.1.21
type UpdateBandwidthClusterCommitBandwidthResponse struct {
*common.BaseResponse
RequestId *string `json:"requestId,omitempty"`
Response struct {
RequestId string `json:"requestId,omitempty"`
} `json:"response,omitempty"`
}
func NewUpdateBandwidthClusterCommitBandwidthResponse ¶ added in v0.1.21
func NewUpdateBandwidthClusterCommitBandwidthResponse() (response *UpdateBandwidthClusterCommitBandwidthResponse)