代码拉取完成,页面将自动刷新
// Copyright (c) 2017-2025 Tencent. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20201106
import (
tcerr "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/errors"
tchttp "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/http"
"github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common/json"
)
// Predefined struct for user
type DescribeProductsRequestParams struct {
// 返回数量,默认为 20,最大值为 100。
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量,默认为 0。
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}
type DescribeProductsRequest struct {
*tchttp.BaseRequest
// 返回数量,默认为 20,最大值为 100。
Limit *int64 `json:"Limit,omitnil,omitempty" name:"Limit"`
// 偏移量,默认为 0。
Offset *int64 `json:"Offset,omitnil,omitempty" name:"Offset"`
}
func (r *DescribeProductsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *DescribeProductsRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Limit")
delete(f, "Offset")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeProductsRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeProductsResponseParams struct {
// 产品详细信息列表。
Products []*RegionProduct `json:"Products,omitnil,omitempty" name:"Products"`
// 产品总数量。
TotalCount *int64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeProductsResponse struct {
*tchttp.BaseResponse
Response *DescribeProductsResponseParams `json:"Response"`
}
func (r *DescribeProductsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *DescribeProductsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeRegionsRequestParams struct {
// 待查询产品的名称,例如cvm,具体取值请查询DescribeProducts接口
Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}
type DescribeRegionsRequest struct {
*tchttp.BaseRequest
// 待查询产品的名称,例如cvm,具体取值请查询DescribeProducts接口
Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}
func (r *DescribeRegionsRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *DescribeRegionsRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Product")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeRegionsRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeRegionsResponseParams struct {
// 地域数量
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 地域列表信息
RegionSet []*RegionInfo `json:"RegionSet,omitnil,omitempty" name:"RegionSet"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeRegionsResponse struct {
*tchttp.BaseResponse
Response *DescribeRegionsResponseParams `json:"Response"`
}
func (r *DescribeRegionsResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *DescribeRegionsResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeZonesRequestParams struct {
// 待查询产品的名称,例如cvm,具体取值请查询DescribeProducts接口
Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}
type DescribeZonesRequest struct {
*tchttp.BaseRequest
// 待查询产品的名称,例如cvm,具体取值请查询DescribeProducts接口
Product *string `json:"Product,omitnil,omitempty" name:"Product"`
}
func (r *DescribeZonesRequest) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *DescribeZonesRequest) FromJsonString(s string) error {
f := make(map[string]interface{})
if err := json.Unmarshal([]byte(s), &f); err != nil {
return err
}
delete(f, "Product")
if len(f) > 0 {
return tcerr.NewTencentCloudSDKError("ClientError.BuildRequestError", "DescribeZonesRequest has unknown keys!", "")
}
return json.Unmarshal([]byte(s), &r)
}
// Predefined struct for user
type DescribeZonesResponseParams struct {
// 可用区数量。
TotalCount *uint64 `json:"TotalCount,omitnil,omitempty" name:"TotalCount"`
// 可用区列表信息。
ZoneSet []*ZoneInfo `json:"ZoneSet,omitnil,omitempty" name:"ZoneSet"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}
type DescribeZonesResponse struct {
*tchttp.BaseResponse
Response *DescribeZonesResponseParams `json:"Response"`
}
func (r *DescribeZonesResponse) ToJsonString() string {
b, _ := json.Marshal(r)
return string(b)
}
// FromJsonString It is highly **NOT** recommended to use this function
// because it has no param check, nor strict type check
func (r *DescribeZonesResponse) FromJsonString(s string) error {
return json.Unmarshal([]byte(s), &r)
}
type RegionInfo struct {
// 地域名称,例如,ap-guangzhou
Region *string `json:"Region,omitnil,omitempty" name:"Region"`
// 地域描述,例如,华南地区(广州)
RegionName *string `json:"RegionName,omitnil,omitempty" name:"RegionName"`
// 地域是否可用状态
RegionState *string `json:"RegionState,omitnil,omitempty" name:"RegionState"`
// 控制台类型,api调用时默认null
// 注意:此字段可能返回 null,表示取不到有效值。
RegionTypeMC *int64 `json:"RegionTypeMC,omitnil,omitempty" name:"RegionTypeMC"`
// 不同语言的地区
// 注意:此字段可能返回 null,表示取不到有效值。
LocationMC *string `json:"LocationMC,omitnil,omitempty" name:"LocationMC"`
// 控制台展示的地域描述
// 注意:此字段可能返回 null,表示取不到有效值。
RegionNameMC *string `json:"RegionNameMC,omitnil,omitempty" name:"RegionNameMC"`
// 控制台展示的RegionId
// 注意:此字段可能返回 null,表示取不到有效值。
RegionIdMC *string `json:"RegionIdMC,omitnil,omitempty" name:"RegionIdMC"`
}
type RegionProduct struct {
// 产品名称,如cvm
Name *string `json:"Name,omitnil,omitempty" name:"Name"`
}
type ZoneInfo struct {
// 可用区名称,例如,ap-guangzhou-3
// 全网可用区名称如下:
// <li> ap-chongqing-1 </li>
// <li> ap-seoul-1 </li>
// <li> ap-seoul-2 </li>
// <li> ap-chengdu-1 </li>
// <li> ap-chengdu-2 </li>
// <li> ap-hongkong-1 </li>
// <li> ap-hongkong-2 </li>
// <li> ap-shenzhen-fsi-1 </li>
// <li> ap-shenzhen-fsi-2 </li>
// <li> ap-shenzhen-fsi-3 </li>
// <li> ap-guangzhou-1(售罄)</li>
// <li> ap-guangzhou-2(售罄)</li>
// <li> ap-guangzhou-3 </li>
// <li> ap-guangzhou-4 </li>
// <li> ap-guangzhou-6 </li>
// <li> ap-tokyo-1 </li>
// <li> ap-singapore-1 </li>
// <li> ap-singapore-2 </li>
// <li> ap-shanghai-fsi-1 </li>
// <li> ap-shanghai-fsi-2 </li>
// <li> ap-shanghai-fsi-3 </li>
// <li> ap-bangkok-1 </li>
// <li> ap-shanghai-1(售罄) </li>
// <li> ap-shanghai-2 </li>
// <li> ap-shanghai-3 </li>
// <li> ap-shanghai-4 </li>
// <li> ap-shanghai-5 </li>
// <li> ap-mumbai-1 </li>
// <li> ap-mumbai-2 </li>
// <li> eu-moscow-1 </li>
// <li> ap-beijing-1 </li>
// <li> ap-beijing-2 </li>
// <li> ap-beijing-3 </li>
// <li> ap-beijing-4 </li>
// <li> ap-beijing-5 </li>
// <li> na-siliconvalley-1 </li>
// <li> na-siliconvalley-2 </li>
// <li> eu-frankfurt-1 </li>
// <li> na-toronto-1 </li>
// <li> na-ashburn-1 </li>
// <li> na-ashburn-2 </li>
// <li> ap-nanjing-1 </li>
// <li> ap-nanjing-2 </li>
Zone *string `json:"Zone,omitnil,omitempty" name:"Zone"`
// 可用区描述,例如,广州三区
ZoneName *string `json:"ZoneName,omitnil,omitempty" name:"ZoneName"`
// 可用区ID
ZoneId *string `json:"ZoneId,omitnil,omitempty" name:"ZoneId"`
// 可用区状态,包含AVAILABLE和UNAVAILABLE。AVAILABLE代表可用,UNAVAILABLE代表不可用。
ZoneState *string `json:"ZoneState,omitnil,omitempty" name:"ZoneState"`
// 父级zone
// 注意:此字段可能返回 null,表示取不到有效值。
ParentZone *string `json:"ParentZone,omitnil,omitempty" name:"ParentZone"`
// 父级可用区ID
// 注意:此字段可能返回 null,表示取不到有效值。
ParentZoneId *string `json:"ParentZoneId,omitnil,omitempty" name:"ParentZoneId"`
// 父级可用区描述
// 注意:此字段可能返回 null,表示取不到有效值。
ParentZoneName *string `json:"ParentZoneName,omitnil,omitempty" name:"ParentZoneName"`
// zone类型
// 注意:此字段可能返回 null,表示取不到有效值。
ZoneType *string `json:"ZoneType,omitnil,omitempty" name:"ZoneType"`
// 控制台类型
// 注意:此字段可能返回 null,表示取不到有效值。
MachineRoomTypeMC *string `json:"MachineRoomTypeMC,omitnil,omitempty" name:"MachineRoomTypeMC"`
// 和ZoneId一样,适用于控制台调用
// 注意:此字段可能返回 null,表示取不到有效值。
ZoneIdMC *string `json:"ZoneIdMC,omitnil,omitempty" name:"ZoneIdMC"`
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。