v20210119

package
v1.0.930 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CAM签名/鉴权错误。
	AUTHFAILURE = "AuthFailure"

	// 交易流程异常
	FAILEDOPERATION_TRANSACTIONEXCEPTION = "FailedOperation.TransactionException"

	// 内部错误。
	INTERNALERROR = "InternalError"

	// 请求控制器发生错误。
	INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"

	// 设备密钥已存在。
	INTERNALERROR_DUPLICATEDATAKEY = "InternalError.DuplicateDataKey"

	// 设备名已存在。
	INTERNALERROR_DUPLICATEDEVICENAME = "InternalError.DuplicateDeviceName"

	// 文件读写异常。
	INTERNALERROR_FILEIOERROR = "InternalError.FileIOError"

	// 监控数据请求错误。
	INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"

	// 智研流量数据请求错误。
	INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"

	// 预置密钥尚未创建。
	INTERNALERROR_UNDEFINEDENCRYPTEDKEY = "InternalError.UndefinedEncryptedKey"

	// 参数错误。
	INVALIDPARAMETER = "InvalidParameter"

	// 参数取值错误。
	INVALIDPARAMETERVALUE = "InvalidParameterValue"

	// 无法获取到可加速的运营商信息
	INVALIDPARAMETERVALUE_VENDORNOTFOUND = "InvalidParameterValue.VendorNotFound"

	// 超过配额限制。
	LIMITEXCEEDED = "LimitExceeded"

	// 缺少参数错误。
	MISSINGPARAMETER = "MissingParameter"

	// 操作被拒绝。
	OPERATIONDENIED = "OperationDenied"

	// 不建议加速。
	OPERATIONDENIED_ACCELERATIONNOTSUGGEST = "OperationDenied.AccelerationNotSuggest"

	// 中国电信加速token过期。
	OPERATIONDENIED_CTCCTOKENEXPIRED = "OperationDenied.CTCCTokenExpired"

	// 相同加速间隔时间过短。
	OPERATIONDENIED_CREATEQOSEXCEEDLIMIT = "OperationDenied.CreateQosExceedLimit"

	// SN已存在
	OPERATIONDENIED_DUPLICATESN = "OperationDenied.DuplicateSN"

	// 输入SN对应的硬件已经激活
	OPERATIONDENIED_HARDWAREHASACTIVATED = "OperationDenied.HardwareHasActivated"

	// 输入SN对应的硬件不存在。
	OPERATIONDENIED_HARDWARENOTEXIST = "OperationDenied.HardwareNotExist"

	// 非法请求,可能是重放攻击、伪造攻击。
	OPERATIONDENIED_ILLEGALREQUEST = "OperationDenied.IllegalRequest"

	// 余额不足
	OPERATIONDENIED_INSUFFICIENTBALANCE = "OperationDenied.InsufficientBalance"

	// 资源包已经变配或续费
	OPERATIONDENIED_MODIFIEDORRENEWED = "OperationDenied.ModifiedOrRenewed"

	// 无支付权限
	OPERATIONDENIED_NOTALLOWEDTOPAY = "OperationDenied.NotAllowedToPay"

	// 请求运营商加速超时。
	OPERATIONDENIED_REQUESTQOSTIMEOUT = "OperationDenied.RequestQosTimeout"

	// 截断开关已经被开启
	OPERATIONDENIED_TRUNCFLAGON = "OperationDenied.TruncFlagOn"

	// 未实名认证
	OPERATIONDENIED_UNAUTHORIZEDUSER = "OperationDenied.UnauthorizedUser"

	// 该用户加速已取消,不处于加速状态。
	OPERATIONDENIED_USERNONACCELERATED = "OperationDenied.UserNonAccelerated"

	// 该用户不在运营商网络可加速范围内
	OPERATIONDENIED_USEROUTOFCOVERAGE = "OperationDenied.UserOutOfCoverage"

	// 当前账号尚未注册为厂商。
	OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

	// 运营商返回结果错误。
	OPERATIONDENIED_VENDORRETURNERROR = "OperationDenied.VendorReturnError"

	// 运营商服务器临时错误。
	OPERATIONDENIED_VENDORSERVERERROR = "OperationDenied.VendorServerError"

	// 请求的次数超过了频率限制。
	REQUESTLIMITEXCEEDED = "RequestLimitExceeded"

	// 资源被占用。
	RESOURCEINUSE = "ResourceInUse"

	// 资源不存在。
	RESOURCENOTFOUND = "ResourceNotFound"

	// 资源不可用。
	RESOURCEUNAVAILABLE = "ResourceUnavailable"

	// 未授权操作。
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

	// 未验证服务权限
	UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"

	// 直播服务未开通
	UNAUTHORIZEDOPERATION_UNOPENEDLIVESERVICE = "UnauthorizedOperation.UnopenedLiveService"
)
View Source
const APIVersion = "2021-01-19"

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateHardware added in v1.0.805

type ActivateHardware struct {
	// 厂商名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	Vendor *string `json:"Vendor,omitnil,omitempty" name:"Vendor"`

	// 设备SN序列号
	SN *string `json:"SN,omitnil,omitempty" name:"SN"`

	// 设备名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// 备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// 设备密钥
	DataKey *string `json:"DataKey,omitnil,omitempty" name:"DataKey"`

	// 接入环境。0:公有云网关;1:自有网关;2:公有云网关和自有网关。不填默认公有云网关。 具体含义: 公有云网关:即该设备只能接入公有云网关(就近接入) 自有网关:即该设备只能接入已经注册上线的自有网关(就近接入或固定ip接入) 公有云网关和自有网关:即该设备同时可以接入公有云网关和已经注册上线的自有网关(就近接入或固定ip接入)
	AccessScope *int64 `json:"AccessScope,omitnil,omitempty" name:"AccessScope"`

	// 当付费方为租户时,可选择租户license付费方式:
	// 0,月度授权
	// 1,永久授权
	// 若不传则默认为月度授权。
	// 当付费方为厂商时,此参数无效
	//
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicensePayMode *int64 `json:"LicensePayMode,omitnil,omitempty" name:"LicensePayMode"`

	// 设备分组ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// 设备分组名称,预留参数,需要分组时传入GroupId
	// 注意:此字段可能返回 null,表示取不到有效值。
	GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
}

type ActivateHardwareRequest added in v1.0.805

type ActivateHardwareRequest struct {
	*tchttp.BaseRequest

	// 待激活的设备列表
	Hardware []*ActivateHardware `json:"Hardware,omitnil,omitempty" name:"Hardware"`
}

func NewActivateHardwareRequest added in v1.0.805

func NewActivateHardwareRequest() (request *ActivateHardwareRequest)

func (*ActivateHardwareRequest) FromJsonString added in v1.0.805

func (r *ActivateHardwareRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ActivateHardwareRequest) ToJsonString added in v1.0.805

func (r *ActivateHardwareRequest) ToJsonString() string

type ActivateHardwareRequestParams added in v1.0.805

type ActivateHardwareRequestParams struct {
	// 待激活的设备列表
	Hardware []*ActivateHardware `json:"Hardware,omitnil,omitempty" name:"Hardware"`
}

Predefined struct for user

type ActivateHardwareResponse added in v1.0.805

type ActivateHardwareResponse struct {
	*tchttp.BaseResponse
	Response *ActivateHardwareResponseParams `json:"Response"`
}

func NewActivateHardwareResponse added in v1.0.805

func NewActivateHardwareResponse() (response *ActivateHardwareResponse)

func (*ActivateHardwareResponse) FromJsonString added in v1.0.805

func (r *ActivateHardwareResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ActivateHardwareResponse) ToJsonString added in v1.0.805

func (r *ActivateHardwareResponse) ToJsonString() string

type ActivateHardwareResponseParams added in v1.0.805

type ActivateHardwareResponseParams struct {
	// 完成激活的设备信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	HardwareInfo []*ActivateHardware `json:"HardwareInfo,omitnil,omitempty" name:"HardwareInfo"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type AddDeviceRequest added in v1.0.496

type AddDeviceRequest struct {
	*tchttp.BaseRequest

	// 新建设备的名称
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// 新建设备的备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 新建设备的base64密钥字符串,非必选,如果不填写则由系统自动生成
	DataKey *string `json:"DataKey,omitnil,omitempty" name:"DataKey"`

	// 是否设置预置密钥
	Encrypted *bool `json:"Encrypted,omitnil,omitempty" name:"Encrypted"`

	// 接入环境。0:公有云网关;1:自有网关;2:公有云网关和自有网关。不填默认公有云网关。
	// 具体含义:
	// 公有云网关:即该设备只能接入公有云网关(就近接入)
	// 自有网关:即该设备只能接入已经注册上线的自有网关(就近接入或固定ip接入)
	// 公有云网关和自有网关:即该设备同时可以接入公有云网关和已经注册上线的自有网关(就近接入或固定ip接入)
	AccessScope *int64 `json:"AccessScope,omitnil,omitempty" name:"AccessScope"`

	// license付费方式:
	// 0,月度授权
	// 1,永久授权
	// 若不传则默认为月度授权
	LicensePayMode *int64 `json:"LicensePayMode,omitnil,omitempty" name:"LicensePayMode"`

	// 设备分组名称,非必选,预留参数,需要分组时传入GroupId
	GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`

	// 设备分组ID,非必选,如果不填写则默认设备无分组
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`
}

func NewAddDeviceRequest added in v1.0.496

func NewAddDeviceRequest() (request *AddDeviceRequest)

func (*AddDeviceRequest) FromJsonString added in v1.0.496

func (r *AddDeviceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddDeviceRequest) ToJsonString added in v1.0.496

func (r *AddDeviceRequest) ToJsonString() string

type AddDeviceRequestParams added in v1.0.496

type AddDeviceRequestParams struct {
	// 新建设备的名称
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// 新建设备的备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 新建设备的base64密钥字符串,非必选,如果不填写则由系统自动生成
	DataKey *string `json:"DataKey,omitnil,omitempty" name:"DataKey"`

	// 是否设置预置密钥
	Encrypted *bool `json:"Encrypted,omitnil,omitempty" name:"Encrypted"`

	// 接入环境。0:公有云网关;1:自有网关;2:公有云网关和自有网关。不填默认公有云网关。
	// 具体含义:
	// 公有云网关:即该设备只能接入公有云网关(就近接入)
	// 自有网关:即该设备只能接入已经注册上线的自有网关(就近接入或固定ip接入)
	// 公有云网关和自有网关:即该设备同时可以接入公有云网关和已经注册上线的自有网关(就近接入或固定ip接入)
	AccessScope *int64 `json:"AccessScope,omitnil,omitempty" name:"AccessScope"`

	// license付费方式:
	// 0,月度授权
	// 1,永久授权
	// 若不传则默认为月度授权
	LicensePayMode *int64 `json:"LicensePayMode,omitnil,omitempty" name:"LicensePayMode"`

	// 设备分组名称,非必选,预留参数,需要分组时传入GroupId
	GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`

	// 设备分组ID,非必选,如果不填写则默认设备无分组
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`
}

Predefined struct for user

type AddDeviceResponse added in v1.0.496

type AddDeviceResponse struct {
	*tchttp.BaseResponse
	Response *AddDeviceResponseParams `json:"Response"`
}

func NewAddDeviceResponse added in v1.0.496

func NewAddDeviceResponse() (response *AddDeviceResponse)

func (*AddDeviceResponse) FromJsonString added in v1.0.496

func (r *AddDeviceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddDeviceResponse) ToJsonString added in v1.0.496

func (r *AddDeviceResponse) ToJsonString() string

type AddDeviceResponseParams added in v1.0.496

type AddDeviceResponseParams struct {
	// 经过加密算法加密后的base64格式密钥
	DataKey *string `json:"DataKey,omitnil,omitempty" name:"DataKey"`

	// 设备ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 签名字符串
	// 注意:此字段可能返回 null,表示取不到有效值。
	Signature *string `json:"Signature,omitnil,omitempty" name:"Signature"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type AddHardwareRequest added in v1.0.805

type AddHardwareRequest struct {
	*tchttp.BaseRequest

	// 硬件列表
	Hardware []*Hardware `json:"Hardware,omitnil,omitempty" name:"Hardware"`
}

func NewAddHardwareRequest added in v1.0.805

func NewAddHardwareRequest() (request *AddHardwareRequest)

func (*AddHardwareRequest) FromJsonString added in v1.0.805

func (r *AddHardwareRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddHardwareRequest) ToJsonString added in v1.0.805

func (r *AddHardwareRequest) ToJsonString() string

type AddHardwareRequestParams added in v1.0.805

type AddHardwareRequestParams struct {
	// 硬件列表
	Hardware []*Hardware `json:"Hardware,omitnil,omitempty" name:"Hardware"`
}

Predefined struct for user

type AddHardwareResponse added in v1.0.805

type AddHardwareResponse struct {
	*tchttp.BaseResponse
	Response *AddHardwareResponseParams `json:"Response"`
}

func NewAddHardwareResponse added in v1.0.805

func NewAddHardwareResponse() (response *AddHardwareResponse)

func (*AddHardwareResponse) FromJsonString added in v1.0.805

func (r *AddHardwareResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*AddHardwareResponse) ToJsonString added in v1.0.805

func (r *AddHardwareResponse) ToJsonString() string

type AddHardwareResponseParams added in v1.0.805

type AddHardwareResponseParams struct {
	// 硬件设备
	Hardware []*Hardware `json:"Hardware,omitnil,omitempty" name:"Hardware"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Capacity

type Capacity struct {
	// 电信鉴权的Token。要加速的电信手机终端访问 http://qos.189.cn/qos-api/getToken?appid=TencentCloud 页面,获取返回结果中result的值
	CTCCToken *string `json:"CTCCToken,omitnil,omitempty" name:"CTCCToken"`

	// 终端所处在的省份,建议不填写由服务端自动获取,若需填写请填写带有省、市、自治区、特别行政区等后缀的省份中文全称
	Province *string `json:"Province,omitnil,omitempty" name:"Province"`
}

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) ActivateHardware added in v1.0.805

func (c *Client) ActivateHardware(request *ActivateHardwareRequest) (response *ActivateHardwareResponse, err error)

ActivateHardware 激活硬件设备

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_DUPLICATEDEVICENAME = "InternalError.DuplicateDeviceName"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_HARDWAREHASACTIVATED = "OperationDenied.HardwareHasActivated"
OPERATIONDENIED_HARDWARENOTEXIST = "OperationDenied.HardwareNotExist"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) ActivateHardwareWithContext added in v1.0.805

func (c *Client) ActivateHardwareWithContext(ctx context.Context, request *ActivateHardwareRequest) (response *ActivateHardwareResponse, err error)

ActivateHardware 激活硬件设备

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_DUPLICATEDEVICENAME = "InternalError.DuplicateDeviceName"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_HARDWAREHASACTIVATED = "OperationDenied.HardwareHasActivated"
OPERATIONDENIED_HARDWARENOTEXIST = "OperationDenied.HardwareNotExist"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) AddDevice added in v1.0.496

func (c *Client) AddDevice(request *AddDeviceRequest) (response *AddDeviceResponse, err error)

AddDevice 新建设备记录

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_DUPLICATEDATAKEY = "InternalError.DuplicateDataKey"
INTERNALERROR_DUPLICATEDEVICENAME = "InternalError.DuplicateDeviceName"
INTERNALERROR_UNDEFINEDENCRYPTEDKEY = "InternalError.UndefinedEncryptedKey"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) AddDeviceWithContext added in v1.0.496

func (c *Client) AddDeviceWithContext(ctx context.Context, request *AddDeviceRequest) (response *AddDeviceResponse, err error)

AddDevice 新建设备记录

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_DUPLICATEDATAKEY = "InternalError.DuplicateDataKey"
INTERNALERROR_DUPLICATEDEVICENAME = "InternalError.DuplicateDeviceName"
INTERNALERROR_UNDEFINEDENCRYPTEDKEY = "InternalError.UndefinedEncryptedKey"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) AddHardware added in v1.0.805

func (c *Client) AddHardware(request *AddHardwareRequest) (response *AddHardwareResponse, err error)

AddHardware 添加硬件设备,生成未激活的硬件设备,可支持批量添加

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_DUPLICATESN = "OperationDenied.DuplicateSN"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) AddHardwareWithContext added in v1.0.805

func (c *Client) AddHardwareWithContext(ctx context.Context, request *AddHardwareRequest) (response *AddHardwareResponse, err error)

AddHardware 添加硬件设备,生成未激活的硬件设备,可支持批量添加

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_DUPLICATESN = "OperationDenied.DuplicateSN"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) CreateEncryptedKey added in v1.0.540

func (c *Client) CreateEncryptedKey(request *CreateEncryptedKeyRequest) (response *CreateEncryptedKeyResponse, err error)

CreateEncryptedKey 通过此接口设置和更新预置密钥

可能返回的错误码:

INTERNALERROR = "InternalError"

func (*Client) CreateEncryptedKeyWithContext added in v1.0.540

func (c *Client) CreateEncryptedKeyWithContext(ctx context.Context, request *CreateEncryptedKeyRequest) (response *CreateEncryptedKeyResponse, err error)

CreateEncryptedKey 通过此接口设置和更新预置密钥

可能返回的错误码:

INTERNALERROR = "InternalError"

func (*Client) CreateQos

func (c *Client) CreateQos(request *CreateQosRequest) (response *CreateQosResponse, err error)

CreateQos 移动网络发起Qos加速过程

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_VENDORNOTFOUND = "InvalidParameterValue.VendorNotFound"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_ACCELERATIONNOTSUGGEST = "OperationDenied.AccelerationNotSuggest"
OPERATIONDENIED_CTCCTOKENEXPIRED = "OperationDenied.CTCCTokenExpired"
OPERATIONDENIED_CREATEQOSEXCEEDLIMIT = "OperationDenied.CreateQosExceedLimit"
OPERATIONDENIED_REQUESTQOSTIMEOUT = "OperationDenied.RequestQosTimeout"
OPERATIONDENIED_USEROUTOFCOVERAGE = "OperationDenied.UserOutOfCoverage"
OPERATIONDENIED_VENDORRETURNERROR = "OperationDenied.VendorReturnError"
OPERATIONDENIED_VENDORSERVERERROR = "OperationDenied.VendorServerError"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) CreateQosWithContext added in v1.0.324

func (c *Client) CreateQosWithContext(ctx context.Context, request *CreateQosRequest) (response *CreateQosResponse, err error)

CreateQos 移动网络发起Qos加速过程

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
INVALIDPARAMETERVALUE_VENDORNOTFOUND = "InvalidParameterValue.VendorNotFound"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_ACCELERATIONNOTSUGGEST = "OperationDenied.AccelerationNotSuggest"
OPERATIONDENIED_CTCCTOKENEXPIRED = "OperationDenied.CTCCTokenExpired"
OPERATIONDENIED_CREATEQOSEXCEEDLIMIT = "OperationDenied.CreateQosExceedLimit"
OPERATIONDENIED_REQUESTQOSTIMEOUT = "OperationDenied.RequestQosTimeout"
OPERATIONDENIED_USEROUTOFCOVERAGE = "OperationDenied.UserOutOfCoverage"
OPERATIONDENIED_VENDORRETURNERROR = "OperationDenied.VendorReturnError"
OPERATIONDENIED_VENDORSERVERERROR = "OperationDenied.VendorServerError"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) DeleteDevice added in v1.0.496

func (c *Client) DeleteDevice(request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)

DeleteDevice 删除设备信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) DeleteDeviceWithContext added in v1.0.496

func (c *Client) DeleteDeviceWithContext(ctx context.Context, request *DeleteDeviceRequest) (response *DeleteDeviceResponse, err error)

DeleteDevice 删除设备信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) DeleteQos

func (c *Client) DeleteQos(request *DeleteQosRequest) (response *DeleteQosResponse, err error)

DeleteQos 移动网络停止Qos加速过程

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_REQUESTQOSTIMEOUT = "OperationDenied.RequestQosTimeout"
OPERATIONDENIED_USERNONACCELERATED = "OperationDenied.UserNonAccelerated"
OPERATIONDENIED_USEROUTOFCOVERAGE = "OperationDenied.UserOutOfCoverage"
OPERATIONDENIED_VENDORRETURNERROR = "OperationDenied.VendorReturnError"
OPERATIONDENIED_VENDORSERVERERROR = "OperationDenied.VendorServerError"

func (*Client) DeleteQosWithContext added in v1.0.324

func (c *Client) DeleteQosWithContext(ctx context.Context, request *DeleteQosRequest) (response *DeleteQosResponse, err error)

DeleteQos 移动网络停止Qos加速过程

可能返回的错误码:

AUTHFAILURE = "AuthFailure"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
MISSINGPARAMETER = "MissingParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_REQUESTQOSTIMEOUT = "OperationDenied.RequestQosTimeout"
OPERATIONDENIED_USERNONACCELERATED = "OperationDenied.UserNonAccelerated"
OPERATIONDENIED_USEROUTOFCOVERAGE = "OperationDenied.UserOutOfCoverage"
OPERATIONDENIED_VENDORRETURNERROR = "OperationDenied.VendorReturnError"
OPERATIONDENIED_VENDORSERVERERROR = "OperationDenied.VendorServerError"

func (*Client) DescribeQos added in v1.0.261

func (c *Client) DescribeQos(request *DescribeQosRequest) (response *DescribeQosResponse, err error)

DescribeQos 获取Qos加速状态

可能返回的错误码:

INTERNALERROR = "InternalError"
MISSINGPARAMETER = "MissingParameter"

func (*Client) DescribeQosWithContext added in v1.0.324

func (c *Client) DescribeQosWithContext(ctx context.Context, request *DescribeQosRequest) (response *DescribeQosResponse, err error)

DescribeQos 获取Qos加速状态

可能返回的错误码:

INTERNALERROR = "InternalError"
MISSINGPARAMETER = "MissingParameter"

func (*Client) GetDevice added in v1.0.496

func (c *Client) GetDevice(request *GetDeviceRequest) (response *GetDeviceResponse, err error)

GetDevice 通过指定设备的ID查找设备详细信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetDevicePayMode added in v1.0.808

func (c *Client) GetDevicePayMode(request *GetDevicePayModeRequest) (response *GetDevicePayModeResponse, err error)

GetDevicePayMode 获取设备付费模式

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetDevicePayModeWithContext added in v1.0.808

func (c *Client) GetDevicePayModeWithContext(ctx context.Context, request *GetDevicePayModeRequest) (response *GetDevicePayModeResponse, err error)

GetDevicePayMode 获取设备付费模式

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetDeviceWithContext added in v1.0.496

func (c *Client) GetDeviceWithContext(ctx context.Context, request *GetDeviceRequest) (response *GetDeviceResponse, err error)

GetDevice 通过指定设备的ID查找设备详细信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetDevices added in v1.0.496

func (c *Client) GetDevices(request *GetDevicesRequest) (response *GetDevicesResponse, err error)

GetDevices 获取设备信息列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetDevicesWithContext added in v1.0.496

func (c *Client) GetDevicesWithContext(ctx context.Context, request *GetDevicesRequest) (response *GetDevicesResponse, err error)

GetDevices 获取设备信息列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetFlowAlarmInfo added in v1.0.930

func (c *Client) GetFlowAlarmInfo(request *GetFlowAlarmInfoRequest) (response *GetFlowAlarmInfoResponse, err error)

GetFlowAlarmInfo 根据AppId查询用户设置的流量告警信息,包括阈值,回调url和key

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED_ILLEGALREQUEST = "OperationDenied.IllegalRequest"

func (*Client) GetFlowAlarmInfoWithContext added in v1.0.930

func (c *Client) GetFlowAlarmInfoWithContext(ctx context.Context, request *GetFlowAlarmInfoRequest) (response *GetFlowAlarmInfoResponse, err error)

GetFlowAlarmInfo 根据AppId查询用户设置的流量告警信息,包括阈值,回调url和key

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED_ILLEGALREQUEST = "OperationDenied.IllegalRequest"

func (*Client) GetFlowPackages added in v1.0.808

func (c *Client) GetFlowPackages(request *GetFlowPackagesRequest) (response *GetFlowPackagesResponse, err error)

GetFlowPackages 获取流量包列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetFlowPackagesWithContext added in v1.0.808

func (c *Client) GetFlowPackagesWithContext(ctx context.Context, request *GetFlowPackagesRequest) (response *GetFlowPackagesResponse, err error)

GetFlowPackages 获取流量包列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"

func (*Client) GetFlowStatistic added in v1.0.497

func (c *Client) GetFlowStatistic(request *GetFlowStatisticRequest) (response *GetFlowStatisticResponse, err error)

GetFlowStatistic 获取指定设备Id,指定时间点数据流量使用情况

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetFlowStatisticByGroup added in v1.0.930

func (c *Client) GetFlowStatisticByGroup(request *GetFlowStatisticByGroupRequest) (response *GetFlowStatisticByGroupResponse, err error)

GetFlowStatisticByGroup 获取指定分组,指定时间数据流量使用情况

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetFlowStatisticByGroupWithContext added in v1.0.930

func (c *Client) GetFlowStatisticByGroupWithContext(ctx context.Context, request *GetFlowStatisticByGroupRequest) (response *GetFlowStatisticByGroupResponse, err error)

GetFlowStatisticByGroup 获取指定分组,指定时间数据流量使用情况

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetFlowStatisticWithContext added in v1.0.497

func (c *Client) GetFlowStatisticWithContext(ctx context.Context, request *GetFlowStatisticRequest) (response *GetFlowStatisticResponse, err error)

GetFlowStatistic 获取指定设备Id,指定时间点数据流量使用情况

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetHardwareList added in v1.0.805

func (c *Client) GetHardwareList(request *GetHardwareListRequest) (response *GetHardwareListResponse, err error)

GetHardwareList 获取厂商硬件列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) GetHardwareListWithContext added in v1.0.805

func (c *Client) GetHardwareListWithContext(ctx context.Context, request *GetHardwareListRequest) (response *GetHardwareListResponse, err error)

GetHardwareList 获取厂商硬件列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) GetMultiFlowStatistic added in v1.0.602

func (c *Client) GetMultiFlowStatistic(request *GetMultiFlowStatisticRequest) (response *GetMultiFlowStatisticResponse, err error)

GetMultiFlowStatistic 批量获取设备流量统计曲线

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetMultiFlowStatisticWithContext added in v1.0.602

func (c *Client) GetMultiFlowStatisticWithContext(ctx context.Context, request *GetMultiFlowStatisticRequest) (response *GetMultiFlowStatisticResponse, err error)

GetMultiFlowStatistic 批量获取设备流量统计曲线

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetNetMonitor added in v1.0.784

func (c *Client) GetNetMonitor(request *GetNetMonitorRequest) (response *GetNetMonitorResponse, err error)

GetNetMonitor 获取单设备的实时流量统计指标

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetNetMonitorWithContext added in v1.0.784

func (c *Client) GetNetMonitorWithContext(ctx context.Context, request *GetNetMonitorRequest) (response *GetNetMonitorResponse, err error)

GetNetMonitor 获取单设备的实时流量统计指标

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) GetPublicKey added in v1.0.540

func (c *Client) GetPublicKey(request *GetPublicKeyRequest) (response *GetPublicKeyResponse, err error)

GetPublicKey 获取公钥用于验签

可能返回的错误码:

INTERNALERROR = "InternalError"

func (*Client) GetPublicKeyWithContext added in v1.0.540

func (c *Client) GetPublicKeyWithContext(ctx context.Context, request *GetPublicKeyRequest) (response *GetPublicKeyResponse, err error)

GetPublicKey 获取公钥用于验签

可能返回的错误码:

INTERNALERROR = "InternalError"

func (*Client) GetStatisticData added in v1.0.496

func (c *Client) GetStatisticData(request *GetStatisticDataRequest) (response *GetStatisticDataResponse, err error)

GetStatisticData 在用量统计页面下载流量数据

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_FILEIOERROR = "InternalError.FileIOError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) GetStatisticDataWithContext added in v1.0.496

func (c *Client) GetStatisticDataWithContext(ctx context.Context, request *GetStatisticDataRequest) (response *GetStatisticDataResponse, err error)

GetStatisticData 在用量统计页面下载流量数据

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_FILEIOERROR = "InternalError.FileIOError"
INTERNALERROR_MONITORDATAREQUESTERROR = "InternalError.MonitorDataRequestError"
INTERNALERROR_NETWORKINFOREQUESTERROR = "InternalError.NetworkInfoRequestError"
INVALIDPARAMETER = "InvalidParameter"

func (*Client) GetVendorHardware added in v1.0.805

func (c *Client) GetVendorHardware(request *GetVendorHardwareRequest) (response *GetVendorHardwareResponse, err error)

GetVendorHardware 获取厂商硬件设备列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) GetVendorHardwareWithContext added in v1.0.805

func (c *Client) GetVendorHardwareWithContext(ctx context.Context, request *GetVendorHardwareRequest) (response *GetVendorHardwareResponse, err error)

GetVendorHardware 获取厂商硬件设备列表

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) ModifyPackageRenewFlag added in v1.0.808

func (c *Client) ModifyPackageRenewFlag(request *ModifyPackageRenewFlagRequest) (response *ModifyPackageRenewFlagResponse, err error)

ModifyPackageRenewFlag 可开启/关闭流量包自动续费,不影响当前周期正在生效的流量包。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_ILLEGALREQUEST = "OperationDenied.IllegalRequest"
OPERATIONDENIED_MODIFIEDORRENEWED = "OperationDenied.ModifiedOrRenewed"
OPERATIONDENIED_TRUNCFLAGON = "OperationDenied.TruncFlagOn"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) ModifyPackageRenewFlagWithContext added in v1.0.808

func (c *Client) ModifyPackageRenewFlagWithContext(ctx context.Context, request *ModifyPackageRenewFlagRequest) (response *ModifyPackageRenewFlagResponse, err error)

ModifyPackageRenewFlag 可开启/关闭流量包自动续费,不影响当前周期正在生效的流量包。

可能返回的错误码:

INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_ILLEGALREQUEST = "OperationDenied.IllegalRequest"
OPERATIONDENIED_MODIFIEDORRENEWED = "OperationDenied.ModifiedOrRenewed"
OPERATIONDENIED_TRUNCFLAGON = "OperationDenied.TruncFlagOn"
RESOURCENOTFOUND = "ResourceNotFound"
RESOURCEUNAVAILABLE = "ResourceUnavailable"

func (*Client) OrderFlowPackage added in v1.0.808

func (c *Client) OrderFlowPackage(request *OrderFlowPackageRequest) (response *OrderFlowPackageResponse, err error)

OrderFlowPackage 购买预付费流量包

可能返回的错误码:

FAILEDOPERATION_TRANSACTIONEXCEPTION = "FailedOperation.TransactionException"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
LIMITEXCEEDED = "LimitExceeded"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_INSUFFICIENTBALANCE = "OperationDenied.InsufficientBalance"
OPERATIONDENIED_NOTALLOWEDTOPAY = "OperationDenied.NotAllowedToPay"
OPERATIONDENIED_UNAUTHORIZEDUSER = "OperationDenied.UnauthorizedUser"
RESOURCEINUSE = "ResourceInUse"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
UNAUTHORIZEDOPERATION_UNOPENEDLIVESERVICE = "UnauthorizedOperation.UnopenedLiveService"

func (*Client) OrderFlowPackageWithContext added in v1.0.808

func (c *Client) OrderFlowPackageWithContext(ctx context.Context, request *OrderFlowPackageRequest) (response *OrderFlowPackageResponse, err error)

OrderFlowPackage 购买预付费流量包

可能返回的错误码:

FAILEDOPERATION_TRANSACTIONEXCEPTION = "FailedOperation.TransactionException"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
LIMITEXCEEDED = "LimitExceeded"
OPERATIONDENIED = "OperationDenied"
OPERATIONDENIED_INSUFFICIENTBALANCE = "OperationDenied.InsufficientBalance"
OPERATIONDENIED_NOTALLOWEDTOPAY = "OperationDenied.NotAllowedToPay"
OPERATIONDENIED_UNAUTHORIZEDUSER = "OperationDenied.UnauthorizedUser"
RESOURCEINUSE = "ResourceInUse"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
UNAUTHORIZEDOPERATION_NOPERMISSION = "UnauthorizedOperation.NoPermission"
UNAUTHORIZEDOPERATION_UNOPENEDLIVESERVICE = "UnauthorizedOperation.UnopenedLiveService"

func (*Client) UpdateDevice added in v1.0.496

func (c *Client) UpdateDevice(request *UpdateDeviceRequest) (response *UpdateDeviceResponse, err error)

UpdateDevice 更新设备信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_DUPLICATEDEVICENAME = "InternalError.DuplicateDeviceName"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) UpdateDeviceWithContext added in v1.0.496

func (c *Client) UpdateDeviceWithContext(ctx context.Context, request *UpdateDeviceRequest) (response *UpdateDeviceResponse, err error)

UpdateDevice 更新设备信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INTERNALERROR_DUPLICATEDEVICENAME = "InternalError.DuplicateDeviceName"
INVALIDPARAMETERVALUE = "InvalidParameterValue"

func (*Client) UpdateHardware added in v1.0.805

func (c *Client) UpdateHardware(request *UpdateHardwareRequest) (response *UpdateHardwareResponse, err error)

UpdateHardware 更新硬件信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_DUPLICATESN = "OperationDenied.DuplicateSN"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

func (*Client) UpdateHardwareWithContext added in v1.0.805

func (c *Client) UpdateHardwareWithContext(ctx context.Context, request *UpdateHardwareRequest) (response *UpdateHardwareResponse, err error)

UpdateHardware 更新硬件信息

可能返回的错误码:

INTERNALERROR = "InternalError"
INTERNALERROR_CONTROLREQUESTERROR = "InternalError.ControlRequestError"
INVALIDPARAMETERVALUE = "InvalidParameterValue"
OPERATIONDENIED_DUPLICATESN = "OperationDenied.DuplicateSN"
OPERATIONDENIED_VENDORNOTREGISTER = "OperationDenied.VendorNotRegister"

type Context added in v1.0.351

type Context struct {
	// 测速数据
	NetworkData *NetworkData `json:"NetworkData,omitnil,omitempty" name:"NetworkData"`

	// 用户期望最低门限
	ExpectedLowThreshold *ExpectedThreshold `json:"ExpectedLowThreshold,omitnil,omitempty" name:"ExpectedLowThreshold"`

	// 用户期望最高门限
	ExpectedHighThreshold *ExpectedThreshold `json:"ExpectedHighThreshold,omitnil,omitempty" name:"ExpectedHighThreshold"`
}

type CreateEncryptedKeyRequest added in v1.0.540

type CreateEncryptedKeyRequest struct {
	*tchttp.BaseRequest
}

func NewCreateEncryptedKeyRequest added in v1.0.540

func NewCreateEncryptedKeyRequest() (request *CreateEncryptedKeyRequest)

func (*CreateEncryptedKeyRequest) FromJsonString added in v1.0.540

func (r *CreateEncryptedKeyRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateEncryptedKeyRequest) ToJsonString added in v1.0.540

func (r *CreateEncryptedKeyRequest) ToJsonString() string

type CreateEncryptedKeyRequestParams added in v1.0.540

type CreateEncryptedKeyRequestParams struct {
}

Predefined struct for user

type CreateEncryptedKeyResponse added in v1.0.540

type CreateEncryptedKeyResponse struct {
	*tchttp.BaseResponse
	Response *CreateEncryptedKeyResponseParams `json:"Response"`
}

func NewCreateEncryptedKeyResponse added in v1.0.540

func NewCreateEncryptedKeyResponse() (response *CreateEncryptedKeyResponse)

func (*CreateEncryptedKeyResponse) FromJsonString added in v1.0.540

func (r *CreateEncryptedKeyResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateEncryptedKeyResponse) ToJsonString added in v1.0.540

func (r *CreateEncryptedKeyResponse) ToJsonString() string

type CreateEncryptedKeyResponseParams added in v1.0.540

type CreateEncryptedKeyResponseParams struct {
	// 预置密钥
	EncryptedKey *string `json:"EncryptedKey,omitnil,omitempty" name:"EncryptedKey"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateQosRequest

type CreateQosRequest struct {
	*tchttp.BaseRequest

	// 加速业务源地址信息,SrcIpv6和(SrcIpv4+SrcPublicIpv4)二选一,目前Ipv6不可用,全部填写以Ipv4参数为准。
	SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitnil,omitempty" name:"SrcAddressInfo"`

	// 加速业务目标地址信息
	DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitnil,omitempty" name:"DestAddressInfo"`

	// 加速套餐
	// T100K:时延性保障 + 带宽保障上下行保障 100kbps
	// T200K:时延性保障 + 带宽保障上下行保障 200kbps
	// T400K:时延性保障 + 带宽保障上下行保障  400kbps
	// BD1M:带宽型保障 + 下行带宽保障1Mbps
	// BD2M:带宽型保障 + 下行带宽保障2Mbps
	// BD4M:带宽型保障 + 下行带宽保障4Mbps
	// BU1M:带宽型保障 + 上行带宽保障1Mbps
	// BU2M:带宽型保障 + 上行带宽保障2Mbps
	// BU4M:带宽型保障 + 上行带宽保障4Mbps
	QosMenu *string `json:"QosMenu,omitnil,omitempty" name:"QosMenu"`

	// 申请加速的设备信息,包括运营商,操作系统,设备唯一标识等。
	DeviceInfo *DeviceInfo `json:"DeviceInfo,omitnil,omitempty" name:"DeviceInfo"`

	// 期望加速时长(单位分钟),默认值30分钟
	Duration *uint64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// 接口能力扩展,如果是电信用户,必须填充CTCC Token字段
	Capacity *Capacity `json:"Capacity,omitnil,omitempty" name:"Capacity"`

	// 应用模板ID
	TemplateId *string `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`

	// 针对特殊协议进行加速
	// 1. IP (默认值)
	// 2. UDP
	// 3. TCP
	Protocol *uint64 `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// 加速策略关键数据
	Context *Context `json:"Context,omitnil,omitempty" name:"Context"`

	// 签名
	Extern *string `json:"Extern,omitnil,omitempty" name:"Extern"`
}

func NewCreateQosRequest

func NewCreateQosRequest() (request *CreateQosRequest)

func (*CreateQosRequest) FromJsonString

func (r *CreateQosRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateQosRequest) ToJsonString

func (r *CreateQosRequest) ToJsonString() string

type CreateQosRequestParams added in v1.0.426

type CreateQosRequestParams struct {
	// 加速业务源地址信息,SrcIpv6和(SrcIpv4+SrcPublicIpv4)二选一,目前Ipv6不可用,全部填写以Ipv4参数为准。
	SrcAddressInfo *SrcAddressInfo `json:"SrcAddressInfo,omitnil,omitempty" name:"SrcAddressInfo"`

	// 加速业务目标地址信息
	DestAddressInfo *DestAddressInfo `json:"DestAddressInfo,omitnil,omitempty" name:"DestAddressInfo"`

	// 加速套餐
	// T100K:时延性保障 + 带宽保障上下行保障 100kbps
	// T200K:时延性保障 + 带宽保障上下行保障 200kbps
	// T400K:时延性保障 + 带宽保障上下行保障  400kbps
	// BD1M:带宽型保障 + 下行带宽保障1Mbps
	// BD2M:带宽型保障 + 下行带宽保障2Mbps
	// BD4M:带宽型保障 + 下行带宽保障4Mbps
	// BU1M:带宽型保障 + 上行带宽保障1Mbps
	// BU2M:带宽型保障 + 上行带宽保障2Mbps
	// BU4M:带宽型保障 + 上行带宽保障4Mbps
	QosMenu *string `json:"QosMenu,omitnil,omitempty" name:"QosMenu"`

	// 申请加速的设备信息,包括运营商,操作系统,设备唯一标识等。
	DeviceInfo *DeviceInfo `json:"DeviceInfo,omitnil,omitempty" name:"DeviceInfo"`

	// 期望加速时长(单位分钟),默认值30分钟
	Duration *uint64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// 接口能力扩展,如果是电信用户,必须填充CTCC Token字段
	Capacity *Capacity `json:"Capacity,omitnil,omitempty" name:"Capacity"`

	// 应用模板ID
	TemplateId *string `json:"TemplateId,omitnil,omitempty" name:"TemplateId"`

	// 针对特殊协议进行加速
	// 1. IP (默认值)
	// 2. UDP
	// 3. TCP
	Protocol *uint64 `json:"Protocol,omitnil,omitempty" name:"Protocol"`

	// 加速策略关键数据
	Context *Context `json:"Context,omitnil,omitempty" name:"Context"`

	// 签名
	Extern *string `json:"Extern,omitnil,omitempty" name:"Extern"`
}

Predefined struct for user

type CreateQosResponse

type CreateQosResponse struct {
	*tchttp.BaseResponse
	Response *CreateQosResponseParams `json:"Response"`
}

func NewCreateQosResponse

func NewCreateQosResponse() (response *CreateQosResponse)

func (*CreateQosResponse) FromJsonString

func (r *CreateQosResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateQosResponse) ToJsonString

func (r *CreateQosResponse) ToJsonString() string

type CreateQosResponseParams added in v1.0.426

type CreateQosResponseParams struct {
	// 单次加速唯一 Id
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`

	// 当前加速剩余时长(单位秒)
	Duration *uint64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteDeviceRequest added in v1.0.496

type DeleteDeviceRequest struct {
	*tchttp.BaseRequest

	// 删除设备的唯一ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

func NewDeleteDeviceRequest added in v1.0.496

func NewDeleteDeviceRequest() (request *DeleteDeviceRequest)

func (*DeleteDeviceRequest) FromJsonString added in v1.0.496

func (r *DeleteDeviceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDeviceRequest) ToJsonString added in v1.0.496

func (r *DeleteDeviceRequest) ToJsonString() string

type DeleteDeviceRequestParams added in v1.0.496

type DeleteDeviceRequestParams struct {
	// 删除设备的唯一ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

Predefined struct for user

type DeleteDeviceResponse added in v1.0.496

type DeleteDeviceResponse struct {
	*tchttp.BaseResponse
	Response *DeleteDeviceResponseParams `json:"Response"`
}

func NewDeleteDeviceResponse added in v1.0.496

func NewDeleteDeviceResponse() (response *DeleteDeviceResponse)

func (*DeleteDeviceResponse) FromJsonString added in v1.0.496

func (r *DeleteDeviceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDeviceResponse) ToJsonString added in v1.0.496

func (r *DeleteDeviceResponse) ToJsonString() string

type DeleteDeviceResponseParams added in v1.0.496

type DeleteDeviceResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteQosRequest

type DeleteQosRequest struct {
	*tchttp.BaseRequest

	// 单次加速唯一 Id
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`
}

func NewDeleteQosRequest

func NewDeleteQosRequest() (request *DeleteQosRequest)

func (*DeleteQosRequest) FromJsonString

func (r *DeleteQosRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteQosRequest) ToJsonString

func (r *DeleteQosRequest) ToJsonString() string

type DeleteQosRequestParams added in v1.0.426

type DeleteQosRequestParams struct {
	// 单次加速唯一 Id
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`
}

Predefined struct for user

type DeleteQosResponse

type DeleteQosResponse struct {
	*tchttp.BaseResponse
	Response *DeleteQosResponseParams `json:"Response"`
}

func NewDeleteQosResponse

func NewDeleteQosResponse() (response *DeleteQosResponse)

func (*DeleteQosResponse) FromJsonString

func (r *DeleteQosResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteQosResponse) ToJsonString

func (r *DeleteQosResponse) ToJsonString() string

type DeleteQosResponseParams added in v1.0.426

type DeleteQosResponseParams struct {
	// 单次加速唯一 Id
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`

	// 本次加速会话持续时间(单位秒)
	Duration *uint64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeQosRequest added in v1.0.261

type DescribeQosRequest struct {
	*tchttp.BaseRequest

	// 单次加速唯一 Id
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`
}

func NewDescribeQosRequest added in v1.0.261

func NewDescribeQosRequest() (request *DescribeQosRequest)

func (*DescribeQosRequest) FromJsonString added in v1.0.261

func (r *DescribeQosRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeQosRequest) ToJsonString added in v1.0.261

func (r *DescribeQosRequest) ToJsonString() string

type DescribeQosRequestParams added in v1.0.426

type DescribeQosRequestParams struct {
	// 单次加速唯一 Id
	SessionId *string `json:"SessionId,omitnil,omitempty" name:"SessionId"`
}

Predefined struct for user

type DescribeQosResponse added in v1.0.261

type DescribeQosResponse struct {
	*tchttp.BaseResponse
	Response *DescribeQosResponseParams `json:"Response"`
}

func NewDescribeQosResponse added in v1.0.261

func NewDescribeQosResponse() (response *DescribeQosResponse)

func (*DescribeQosResponse) FromJsonString added in v1.0.261

func (r *DescribeQosResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeQosResponse) ToJsonString added in v1.0.261

func (r *DescribeQosResponse) ToJsonString() string

type DescribeQosResponseParams added in v1.0.426

type DescribeQosResponseParams struct {
	// 0:无匹配的加速中会话
	// 1:存在匹配的加速中会话
	Status *uint64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 手机公网出口IP,仅匹配时返回
	// 注意:此字段可能返回 null,表示取不到有效值。
	SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitnil,omitempty" name:"SrcPublicIpv4"`

	// 业务访问目的IP,仅匹配时返回
	// 注意:此字段可能返回 null,表示取不到有效值。
	DestIpv4 []*string `json:"DestIpv4,omitnil,omitempty" name:"DestIpv4"`

	// 当前加速剩余时长(单位秒)有,仅匹配时返回
	// 注意:此字段可能返回 null,表示取不到有效值。
	Duration *uint64 `json:"Duration,omitnil,omitempty" name:"Duration"`

	// 加速套餐类型,仅匹配时返回
	// 注意:此字段可能返回 null,表示取不到有效值。
	QosMenu *string `json:"QosMenu,omitnil,omitempty" name:"QosMenu"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type DestAddressInfo

type DestAddressInfo struct {
	// 加速业务目标 ip 地址数组
	DestIp []*string `json:"DestIp,omitnil,omitempty" name:"DestIp"`
}

type DeviceBaseInfo added in v1.0.496

type DeviceBaseInfo struct {
	// 设备唯一ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// 设备创建的时间,单位:ms
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 设备最后在线时间,单位:ms
	LastTime *string `json:"LastTime,omitnil,omitempty" name:"LastTime"`

	// 设备的备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 接入环境。0:公有云网关;1:自有网关;2:公有云网关和自有网关。默认公有云网关。 具体含义: 公有云网关:即该设备只能接入公有云网关(就近接入) 自有网关:即该设备只能接入已经注册上线的自有网关(就近接入或固定ip接入) 公有云网关和自有网关:即该设备同时可以接入公有云网关和已经注册上线的自有网关(就近接入或固定ip接入)
	AccessScope *int64 `json:"AccessScope,omitnil,omitempty" name:"AccessScope"`

	// license授权有效期 0:月度授权 1:永久授权
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicensePayMode *int64 `json:"LicensePayMode,omitnil,omitempty" name:"LicensePayMode"`

	// 付费方 0:厂商付费 1:客户付费
	// 注意:此字段可能返回 null,表示取不到有效值。
	Payer *int64 `json:"Payer,omitnil,omitempty" name:"Payer"`

	// 设备分组ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// 设备分组名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
}

type DeviceDetails added in v1.0.496

type DeviceDetails struct {
	// 设备基本信息
	DeviceBaseInfo *DeviceBaseInfo `json:"DeviceBaseInfo,omitnil,omitempty" name:"DeviceBaseInfo"`

	// 设备网络信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeviceNetInfo []*DeviceNetInfo `json:"DeviceNetInfo,omitnil,omitempty" name:"DeviceNetInfo"`

	// 聚合服务器地址
	// 注意:此字段可能返回 null,表示取不到有效值。
	GatewaySite *string `json:"GatewaySite,omitnil,omitempty" name:"GatewaySite"`

	// 业务下行速率
	// 注意:此字段可能返回 null,表示取不到有效值。
	BusinessDownRate *float64 `json:"BusinessDownRate,omitnil,omitempty" name:"BusinessDownRate"`

	// 业务上行速率
	// 注意:此字段可能返回 null,表示取不到有效值。
	BusinessUpRate *float64 `json:"BusinessUpRate,omitnil,omitempty" name:"BusinessUpRate"`
}

type DeviceInfo

type DeviceInfo struct {
	// 运营商
	// 1:移动
	// 2:电信
	// 3:联通
	// 4:广电
	// 99:其他
	Vendor *uint64 `json:"Vendor,omitnil,omitempty" name:"Vendor"`

	// 设备操作系统:
	// 1:Android
	// 2: IOS
	// 99:其他
	OS *uint64 `json:"OS,omitnil,omitempty" name:"OS"`

	// 设备唯一标识
	// IOS 填写 IDFV
	// Android 填写 IMEI
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 用户手机号码
	PhoneNum *string `json:"PhoneNum,omitnil,omitempty" name:"PhoneNum"`

	// 无线信息
	// 1:4G
	// 2:5G
	// 3:WIFI
	// 99:其他
	Wireless *uint64 `json:"Wireless,omitnil,omitempty" name:"Wireless"`
}

type DeviceNetInfo added in v1.0.496

type DeviceNetInfo struct {
	// 网络类型:
	// 0:数据
	// 1:Wi-Fi
	// 2:有线
	// 注意:此字段可能返回 null,表示取不到有效值。
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 启用/禁用
	// 注意:此字段可能返回 null,表示取不到有效值。
	DataEnable *bool `json:"DataEnable,omitnil,omitempty" name:"DataEnable"`

	// 上行限速
	// 注意:此字段可能返回 null,表示取不到有效值。
	UploadLimit *string `json:"UploadLimit,omitnil,omitempty" name:"UploadLimit"`

	// 下行限速
	// 注意:此字段可能返回 null,表示取不到有效值。
	DownloadLimit *string `json:"DownloadLimit,omitnil,omitempty" name:"DownloadLimit"`

	// 接收实时速率
	// 注意:此字段可能返回 null,表示取不到有效值。
	DataRx *uint64 `json:"DataRx,omitnil,omitempty" name:"DataRx"`

	// 发送实时速率
	// 注意:此字段可能返回 null,表示取不到有效值。
	DataTx *uint64 `json:"DataTx,omitnil,omitempty" name:"DataTx"`

	// 运营商类型:
	// 1: 中国移动;
	// 2: 中国电信;
	// 3: 中国联通
	// 注意:此字段可能返回 null,表示取不到有效值。
	Vendor *int64 `json:"Vendor,omitnil,omitempty" name:"Vendor"`

	// 连接状态:
	// 0:无连接
	// 1:连接中
	// 2:已连接
	// 注意:此字段可能返回 null,表示取不到有效值。
	State *int64 `json:"State,omitnil,omitempty" name:"State"`

	// 公网IP
	// 注意:此字段可能返回 null,表示取不到有效值。
	PublicIp *string `json:"PublicIp,omitnil,omitempty" name:"PublicIp"`

	// 信号强度/单位:dbm
	// 注意:此字段可能返回 null,表示取不到有效值。
	SignalStrength *int64 `json:"SignalStrength,omitnil,omitempty" name:"SignalStrength"`

	// 数据网络类型:
	// -1 :无效值
	// 2:2G
	// 3:3G
	// 4:4G
	// 5:5G
	// 注意:此字段可能返回 null,表示取不到有效值。
	Rat *int64 `json:"Rat,omitnil,omitempty" name:"Rat"`

	// 网卡名
	// 注意:此字段可能返回 null,表示取不到有效值。
	NetInfoName *string `json:"NetInfoName,omitnil,omitempty" name:"NetInfoName"`

	// 下行实时速率(浮点数类型代替上一版本DataRx的整型)
	// 注意:此字段可能返回 null,表示取不到有效值。
	DownRate *float64 `json:"DownRate,omitnil,omitempty" name:"DownRate"`

	// 上行实时速率(浮点数类型代替上一版本TxRate的整型)
	// 注意:此字段可能返回 null,表示取不到有效值。
	UpRate *float64 `json:"UpRate,omitnil,omitempty" name:"UpRate"`
}

type DevicePayModeInfo added in v1.0.808

type DevicePayModeInfo struct {
	// 设备ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 付费模式。
	// 1:预付费流量包
	// 0:按流量后付费
	PayMode *int64 `json:"PayMode,omitnil,omitempty" name:"PayMode"`

	// 付费模式描述
	PayModeDesc *string `json:"PayModeDesc,omitnil,omitempty" name:"PayModeDesc"`

	// 流量包ID,仅当付费模式为流量包类型时才有。
	// 注意:此字段可能返回 null,表示取不到有效值。
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`
}

type ExpectedThreshold added in v1.0.351

type ExpectedThreshold struct {
	// 期望发起加速的时延阈值
	RTT *float64 `json:"RTT,omitnil,omitempty" name:"RTT"`

	// 期望发起加速的丢包率阈值
	Loss *float64 `json:"Loss,omitnil,omitempty" name:"Loss"`

	// 期望发起加速的抖动阈值
	Jitter *float64 `json:"Jitter,omitnil,omitempty" name:"Jitter"`
}

type FlowDetails added in v1.0.602

type FlowDetails struct {
	// 流量数据点
	// 注意:此字段可能返回 null,表示取不到有效值。
	NetDetails []*NetDetails `json:"NetDetails,omitnil,omitempty" name:"NetDetails"`

	// 设备ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 流量最大值(单位:bytes)
	// 注意:此字段可能返回 null,表示取不到有效值。
	MaxValue *float64 `json:"MaxValue,omitnil,omitempty" name:"MaxValue"`

	// 流量平均值(单位:bytes)
	// 注意:此字段可能返回 null,表示取不到有效值。
	AvgValue *float64 `json:"AvgValue,omitnil,omitempty" name:"AvgValue"`

	// 流量总值(单位:bytes)
	// 注意:此字段可能返回 null,表示取不到有效值。
	TotalValue *float64 `json:"TotalValue,omitnil,omitempty" name:"TotalValue"`
}

type FlowPackageInfo added in v1.0.808

type FlowPackageInfo struct {
	// 流量包的唯一资源ID
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// 流量包所属的用户AppId
	AppId *uint64 `json:"AppId,omitnil,omitempty" name:"AppId"`

	// 流量包规格类型。可取值如下:
	// DEVICE_1_FLOW_20G、DEVICE_2_FLOW_50G、
	// DEVICE_3_FLOW_100G、
	// DEVICE_5_FLOW_500G,分别代表20G、50G、100G、500G档位的流量包。
	// 档位也影响流量包可绑定的设备数量上限:
	// 20G:最多绑定1个设备
	// 50G:最多绑定2个设备
	// 100G:最多绑定3个设备
	// 500G:最多绑定5个设备
	PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`

	// 流量包状态,0:未生效,1:有效期内,2:已过期
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 购买时间,Unix时间戳格式,单位:秒
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *int64 `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 生效时间,Unix时间戳格式,单位:秒
	ActiveTime *int64 `json:"ActiveTime,omitnil,omitempty" name:"ActiveTime"`

	// 过期时间,Unix时间戳格式,单位:秒
	ExpireTime *int64 `json:"ExpireTime,omitnil,omitempty" name:"ExpireTime"`

	// 流量包绑定的设备ID列表
	DeviceList []*string `json:"DeviceList,omitnil,omitempty" name:"DeviceList"`

	// 流量包总容量,单位:MB
	CapacitySize *uint64 `json:"CapacitySize,omitnil,omitempty" name:"CapacitySize"`

	// 流量包余量,单位:MB
	CapacityRemain *uint64 `json:"CapacityRemain,omitnil,omitempty" name:"CapacityRemain"`

	// 自动续费标识。true代表自动续费,false代表不自动续费
	RenewFlag *bool `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`

	// 资源包变更状态,0:未发生变配;1:变配中;2:已变配或已续费
	ModifyStatus *int64 `json:"ModifyStatus,omitnil,omitempty" name:"ModifyStatus"`

	// 流量截断标识。true代表开启流量截断,false代表不开启流量截断
	TruncFlag *bool `json:"TruncFlag,omitnil,omitempty" name:"TruncFlag"`

	// 流量包精确余量,单位:MB
	CapacityRemainPrecise *uint64 `json:"CapacityRemainPrecise,omitnil,omitempty" name:"CapacityRemainPrecise"`
}

type GetDevicePayModeRequest added in v1.0.808

type GetDevicePayModeRequest struct {
	*tchttp.BaseRequest

	// 设备ID列表
	DeviceIdList []*string `json:"DeviceIdList,omitnil,omitempty" name:"DeviceIdList"`
}

func NewGetDevicePayModeRequest added in v1.0.808

func NewGetDevicePayModeRequest() (request *GetDevicePayModeRequest)

func (*GetDevicePayModeRequest) FromJsonString added in v1.0.808

func (r *GetDevicePayModeRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDevicePayModeRequest) ToJsonString added in v1.0.808

func (r *GetDevicePayModeRequest) ToJsonString() string

type GetDevicePayModeRequestParams added in v1.0.808

type GetDevicePayModeRequestParams struct {
	// 设备ID列表
	DeviceIdList []*string `json:"DeviceIdList,omitnil,omitempty" name:"DeviceIdList"`
}

Predefined struct for user

type GetDevicePayModeResponse added in v1.0.808

type GetDevicePayModeResponse struct {
	*tchttp.BaseResponse
	Response *GetDevicePayModeResponseParams `json:"Response"`
}

func NewGetDevicePayModeResponse added in v1.0.808

func NewGetDevicePayModeResponse() (response *GetDevicePayModeResponse)

func (*GetDevicePayModeResponse) FromJsonString added in v1.0.808

func (r *GetDevicePayModeResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDevicePayModeResponse) ToJsonString added in v1.0.808

func (r *GetDevicePayModeResponse) ToJsonString() string

type GetDevicePayModeResponseParams added in v1.0.808

type GetDevicePayModeResponseParams struct {
	// 结果信息
	Result []*DevicePayModeInfo `json:"Result,omitnil,omitempty" name:"Result"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetDeviceRequest added in v1.0.496

type GetDeviceRequest struct {
	*tchttp.BaseRequest

	// 搜索指定设备的id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

func NewGetDeviceRequest added in v1.0.496

func NewGetDeviceRequest() (request *GetDeviceRequest)

func (*GetDeviceRequest) FromJsonString added in v1.0.496

func (r *GetDeviceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceRequest) ToJsonString added in v1.0.496

func (r *GetDeviceRequest) ToJsonString() string

type GetDeviceRequestParams added in v1.0.496

type GetDeviceRequestParams struct {
	// 搜索指定设备的id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`
}

Predefined struct for user

type GetDeviceResponse added in v1.0.496

type GetDeviceResponse struct {
	*tchttp.BaseResponse
	Response *GetDeviceResponseParams `json:"Response"`
}

func NewGetDeviceResponse added in v1.0.496

func NewGetDeviceResponse() (response *GetDeviceResponse)

func (*GetDeviceResponse) FromJsonString added in v1.0.496

func (r *GetDeviceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDeviceResponse) ToJsonString added in v1.0.496

func (r *GetDeviceResponse) ToJsonString() string

type GetDeviceResponseParams added in v1.0.496

type GetDeviceResponseParams struct {
	// 设备详细信息
	DeviceDetails *DeviceDetails `json:"DeviceDetails,omitnil,omitempty" name:"DeviceDetails"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetDevicesRequest added in v1.0.496

type GetDevicesRequest struct {
	*tchttp.BaseRequest

	// 每页显示记录数,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前查看页码,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 搜索设备的关键字(ID或者设备名),为空时匹配所有设备
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// DeviceType
	// 不传:返回所有设备;
	// 1:自有设备;
	// 2:三方设备
	DeviceType *int64 `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
}

func NewGetDevicesRequest added in v1.0.496

func NewGetDevicesRequest() (request *GetDevicesRequest)

func (*GetDevicesRequest) FromJsonString added in v1.0.496

func (r *GetDevicesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDevicesRequest) ToJsonString added in v1.0.496

func (r *GetDevicesRequest) ToJsonString() string

type GetDevicesRequestParams added in v1.0.496

type GetDevicesRequestParams struct {
	// 每页显示记录数,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 当前查看页码,PageSize、PageNumber值均为-1 时,按照1页无限制条数匹配所有设备
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 搜索设备的关键字(ID或者设备名),为空时匹配所有设备
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// DeviceType
	// 不传:返回所有设备;
	// 1:自有设备;
	// 2:三方设备
	DeviceType *int64 `json:"DeviceType,omitnil,omitempty" name:"DeviceType"`
}

Predefined struct for user

type GetDevicesResponse added in v1.0.496

type GetDevicesResponse struct {
	*tchttp.BaseResponse
	Response *GetDevicesResponseParams `json:"Response"`
}

func NewGetDevicesResponse added in v1.0.496

func NewGetDevicesResponse() (response *GetDevicesResponse)

func (*GetDevicesResponse) FromJsonString added in v1.0.496

func (r *GetDevicesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetDevicesResponse) ToJsonString added in v1.0.496

func (r *GetDevicesResponse) ToJsonString() string

type GetDevicesResponseParams added in v1.0.496

type GetDevicesResponseParams struct {
	// 设备信息列表
	DeviceInfos []*DeviceBaseInfo `json:"DeviceInfos,omitnil,omitempty" name:"DeviceInfos"`

	// 设备总记录条数
	Length *int64 `json:"Length,omitnil,omitempty" name:"Length"`

	// 总页数
	TotalPage *int64 `json:"TotalPage,omitnil,omitempty" name:"TotalPage"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFlowAlarmInfoRequest added in v1.0.930

type GetFlowAlarmInfoRequest struct {
	*tchttp.BaseRequest
}

func NewGetFlowAlarmInfoRequest added in v1.0.930

func NewGetFlowAlarmInfoRequest() (request *GetFlowAlarmInfoRequest)

func (*GetFlowAlarmInfoRequest) FromJsonString added in v1.0.930

func (r *GetFlowAlarmInfoRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowAlarmInfoRequest) ToJsonString added in v1.0.930

func (r *GetFlowAlarmInfoRequest) ToJsonString() string

type GetFlowAlarmInfoRequestParams added in v1.0.930

type GetFlowAlarmInfoRequestParams struct {
}

Predefined struct for user

type GetFlowAlarmInfoResponse added in v1.0.930

type GetFlowAlarmInfoResponse struct {
	*tchttp.BaseResponse
	Response *GetFlowAlarmInfoResponseParams `json:"Response"`
}

func NewGetFlowAlarmInfoResponse added in v1.0.930

func NewGetFlowAlarmInfoResponse() (response *GetFlowAlarmInfoResponse)

func (*GetFlowAlarmInfoResponse) FromJsonString added in v1.0.930

func (r *GetFlowAlarmInfoResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowAlarmInfoResponse) ToJsonString added in v1.0.930

func (r *GetFlowAlarmInfoResponse) ToJsonString() string

type GetFlowAlarmInfoResponseParams added in v1.0.930

type GetFlowAlarmInfoResponseParams struct {
	// 流量包的告警阈值
	// 注意:此字段可能返回 null,表示取不到有效值。
	AlarmValue *int64 `json:"AlarmValue,omitnil,omitempty" name:"AlarmValue"`

	// 告警通知回调url
	// 注意:此字段可能返回 null,表示取不到有效值。
	NotifyUrl *string `json:"NotifyUrl,omitnil,omitempty" name:"NotifyUrl"`

	// 告警通知回调key
	// 注意:此字段可能返回 null,表示取不到有效值。
	CallbackKey *string `json:"CallbackKey,omitnil,omitempty" name:"CallbackKey"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFlowPackagesRequest added in v1.0.808

type GetFlowPackagesRequest struct {
	*tchttp.BaseRequest

	// 页码,从1开始
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页个数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 流量包的唯一资源ID
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// 流量包绑定的设备ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 流量包状态,0:未生效,1:有效期内,2:已过期
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}

func NewGetFlowPackagesRequest added in v1.0.808

func NewGetFlowPackagesRequest() (request *GetFlowPackagesRequest)

func (*GetFlowPackagesRequest) FromJsonString added in v1.0.808

func (r *GetFlowPackagesRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowPackagesRequest) ToJsonString added in v1.0.808

func (r *GetFlowPackagesRequest) ToJsonString() string

type GetFlowPackagesRequestParams added in v1.0.808

type GetFlowPackagesRequestParams struct {
	// 页码,从1开始
	PageNumber *uint64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 每页个数
	PageSize *uint64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 流量包的唯一资源ID
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// 流量包绑定的设备ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 流量包状态,0:未生效,1:有效期内,2:已过期
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}

Predefined struct for user

type GetFlowPackagesResponse added in v1.0.808

type GetFlowPackagesResponse struct {
	*tchttp.BaseResponse
	Response *GetFlowPackagesResponseParams `json:"Response"`
}

func NewGetFlowPackagesResponse added in v1.0.808

func NewGetFlowPackagesResponse() (response *GetFlowPackagesResponse)

func (*GetFlowPackagesResponse) FromJsonString added in v1.0.808

func (r *GetFlowPackagesResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowPackagesResponse) ToJsonString added in v1.0.808

func (r *GetFlowPackagesResponse) ToJsonString() string

type GetFlowPackagesResponseParams added in v1.0.808

type GetFlowPackagesResponseParams struct {
	// 流量包列表
	PackageList []*FlowPackageInfo `json:"PackageList,omitnil,omitempty" name:"PackageList"`

	// 总数
	Total *uint64 `json:"Total,omitnil,omitempty" name:"Total"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFlowStatisticByGroupRequest added in v1.0.930

type GetFlowStatisticByGroupRequest struct {
	*tchttp.BaseRequest

	// 分组ID
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// 开始查找时间
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 截止时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 流量种类(1:上行流量,2:下行流量, 3: 上下行总和)
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 时间粒度(1:按小时统计,2:按天统计)
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`
}

func NewGetFlowStatisticByGroupRequest added in v1.0.930

func NewGetFlowStatisticByGroupRequest() (request *GetFlowStatisticByGroupRequest)

func (*GetFlowStatisticByGroupRequest) FromJsonString added in v1.0.930

func (r *GetFlowStatisticByGroupRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowStatisticByGroupRequest) ToJsonString added in v1.0.930

func (r *GetFlowStatisticByGroupRequest) ToJsonString() string

type GetFlowStatisticByGroupRequestParams added in v1.0.930

type GetFlowStatisticByGroupRequestParams struct {
	// 分组ID
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// 开始查找时间
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 截止时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 流量种类(1:上行流量,2:下行流量, 3: 上下行总和)
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 时间粒度(1:按小时统计,2:按天统计)
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`
}

Predefined struct for user

type GetFlowStatisticByGroupResponse added in v1.0.930

type GetFlowStatisticByGroupResponse struct {
	*tchttp.BaseResponse
	Response *GetFlowStatisticByGroupResponseParams `json:"Response"`
}

func NewGetFlowStatisticByGroupResponse added in v1.0.930

func NewGetFlowStatisticByGroupResponse() (response *GetFlowStatisticByGroupResponse)

func (*GetFlowStatisticByGroupResponse) FromJsonString added in v1.0.930

func (r *GetFlowStatisticByGroupResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowStatisticByGroupResponse) ToJsonString added in v1.0.930

func (r *GetFlowStatisticByGroupResponse) ToJsonString() string

type GetFlowStatisticByGroupResponseParams added in v1.0.930

type GetFlowStatisticByGroupResponseParams struct {
	// 流量详细信息
	NetDetails []*NetDetails `json:"NetDetails,omitnil,omitempty" name:"NetDetails"`

	// 查找时间段流量使用最大值(单位:byte)
	MaxValue *float64 `json:"MaxValue,omitnil,omitempty" name:"MaxValue"`

	// 查找时间段流量使用平均值(单位:byte)
	AvgValue *float64 `json:"AvgValue,omitnil,omitempty" name:"AvgValue"`

	// 查找时间段流量使用总量(单位:byte)
	TotalValue *float64 `json:"TotalValue,omitnil,omitempty" name:"TotalValue"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetFlowStatisticRequest added in v1.0.497

type GetFlowStatisticRequest struct {
	*tchttp.BaseRequest

	// 设备ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 开始查找时间
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 截止时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 流量种类(1:上行流量,2:下行流量,3:上下行总和)
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 时间粒度(1:按小时统计,2:按天统计)
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`

	// 设备ID列表,用于查询多设备流量,该字段启用时DeviceId可传"-1"
	DeviceList []*string `json:"DeviceList,omitnil,omitempty" name:"DeviceList"`
}

func NewGetFlowStatisticRequest added in v1.0.497

func NewGetFlowStatisticRequest() (request *GetFlowStatisticRequest)

func (*GetFlowStatisticRequest) FromJsonString added in v1.0.497

func (r *GetFlowStatisticRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowStatisticRequest) ToJsonString added in v1.0.497

func (r *GetFlowStatisticRequest) ToJsonString() string

type GetFlowStatisticRequestParams added in v1.0.497

type GetFlowStatisticRequestParams struct {
	// 设备ID
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 开始查找时间
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 截止时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 流量种类(1:上行流量,2:下行流量,3:上下行总和)
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 时间粒度(1:按小时统计,2:按天统计)
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`

	// 设备ID列表,用于查询多设备流量,该字段启用时DeviceId可传"-1"
	DeviceList []*string `json:"DeviceList,omitnil,omitempty" name:"DeviceList"`
}

Predefined struct for user

type GetFlowStatisticResponse added in v1.0.497

type GetFlowStatisticResponse struct {
	*tchttp.BaseResponse
	Response *GetFlowStatisticResponseParams `json:"Response"`
}

func NewGetFlowStatisticResponse added in v1.0.497

func NewGetFlowStatisticResponse() (response *GetFlowStatisticResponse)

func (*GetFlowStatisticResponse) FromJsonString added in v1.0.497

func (r *GetFlowStatisticResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetFlowStatisticResponse) ToJsonString added in v1.0.497

func (r *GetFlowStatisticResponse) ToJsonString() string

type GetFlowStatisticResponseParams added in v1.0.497

type GetFlowStatisticResponseParams struct {
	// 流量详细信息
	NetDetails []*NetDetails `json:"NetDetails,omitnil,omitempty" name:"NetDetails"`

	// 查找时间段流量使用最大值(单位:byte)
	MaxValue *float64 `json:"MaxValue,omitnil,omitempty" name:"MaxValue"`

	// 查找时间段流量使用平均值(单位:byte)
	AvgValue *float64 `json:"AvgValue,omitnil,omitempty" name:"AvgValue"`

	// 查找时间段流量使用总量(单位:byte)
	TotalValue *float64 `json:"TotalValue,omitnil,omitempty" name:"TotalValue"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetHardwareListRequest added in v1.0.805

type GetHardwareListRequest struct {
	*tchttp.BaseRequest

	// 页码
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 页面设备数量
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`
}

func NewGetHardwareListRequest added in v1.0.805

func NewGetHardwareListRequest() (request *GetHardwareListRequest)

func (*GetHardwareListRequest) FromJsonString added in v1.0.805

func (r *GetHardwareListRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetHardwareListRequest) ToJsonString added in v1.0.805

func (r *GetHardwareListRequest) ToJsonString() string

type GetHardwareListRequestParams added in v1.0.805

type GetHardwareListRequestParams struct {
	// 页码
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 页面设备数量
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`
}

Predefined struct for user

type GetHardwareListResponse added in v1.0.805

type GetHardwareListResponse struct {
	*tchttp.BaseResponse
	Response *GetHardwareListResponseParams `json:"Response"`
}

func NewGetHardwareListResponse added in v1.0.805

func NewGetHardwareListResponse() (response *GetHardwareListResponse)

func (*GetHardwareListResponse) FromJsonString added in v1.0.805

func (r *GetHardwareListResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetHardwareListResponse) ToJsonString added in v1.0.805

func (r *GetHardwareListResponse) ToJsonString() string

type GetHardwareListResponseParams added in v1.0.805

type GetHardwareListResponseParams struct {
	// 硬件信息列表
	HardwareInfos []*HardwareInfo `json:"HardwareInfos,omitnil,omitempty" name:"HardwareInfos"`

	// 硬件总数
	Length *int64 `json:"Length,omitnil,omitempty" name:"Length"`

	// 总页数
	TotalPage *int64 `json:"TotalPage,omitnil,omitempty" name:"TotalPage"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetMultiFlowStatisticRequest added in v1.0.602

type GetMultiFlowStatisticRequest struct {
	*tchttp.BaseRequest

	// 设备id列表,单次最多请求10个设备
	DeviceIds []*string `json:"DeviceIds,omitnil,omitempty" name:"DeviceIds"`

	// 1659514436
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 1659515000
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 统计流量类型(1:上行流量,2:下行流量, 3: 上下行总和)
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 统计时间粒度(1:按小时统计,2:按天统计)
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`
}

func NewGetMultiFlowStatisticRequest added in v1.0.602

func NewGetMultiFlowStatisticRequest() (request *GetMultiFlowStatisticRequest)

func (*GetMultiFlowStatisticRequest) FromJsonString added in v1.0.602

func (r *GetMultiFlowStatisticRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetMultiFlowStatisticRequest) ToJsonString added in v1.0.602

func (r *GetMultiFlowStatisticRequest) ToJsonString() string

type GetMultiFlowStatisticRequestParams added in v1.0.602

type GetMultiFlowStatisticRequestParams struct {
	// 设备id列表,单次最多请求10个设备
	DeviceIds []*string `json:"DeviceIds,omitnil,omitempty" name:"DeviceIds"`

	// 1659514436
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 1659515000
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 统计流量类型(1:上行流量,2:下行流量, 3: 上下行总和)
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 统计时间粒度(1:按小时统计,2:按天统计)
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`
}

Predefined struct for user

type GetMultiFlowStatisticResponse added in v1.0.602

type GetMultiFlowStatisticResponse struct {
	*tchttp.BaseResponse
	Response *GetMultiFlowStatisticResponseParams `json:"Response"`
}

func NewGetMultiFlowStatisticResponse added in v1.0.602

func NewGetMultiFlowStatisticResponse() (response *GetMultiFlowStatisticResponse)

func (*GetMultiFlowStatisticResponse) FromJsonString added in v1.0.602

func (r *GetMultiFlowStatisticResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetMultiFlowStatisticResponse) ToJsonString added in v1.0.602

func (r *GetMultiFlowStatisticResponse) ToJsonString() string

type GetMultiFlowStatisticResponseParams added in v1.0.602

type GetMultiFlowStatisticResponseParams struct {
	// 批量设备流量信息
	FlowDetails []*FlowDetails `json:"FlowDetails,omitnil,omitempty" name:"FlowDetails"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetNetMonitorRequest added in v1.0.784

type GetNetMonitorRequest struct {
	*tchttp.BaseRequest

	// 设备id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 开始时间
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 结束时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 统计指标(上行速率:"TxRate":bit/s,下行速率:"RxRate":bit/s,丢包:"Loss":%,时延:"RTT":ms)
	Metrics *string `json:"Metrics,omitnil,omitempty" name:"Metrics"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`
}

func NewGetNetMonitorRequest added in v1.0.784

func NewGetNetMonitorRequest() (request *GetNetMonitorRequest)

func (*GetNetMonitorRequest) FromJsonString added in v1.0.784

func (r *GetNetMonitorRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetNetMonitorRequest) ToJsonString added in v1.0.784

func (r *GetNetMonitorRequest) ToJsonString() string

type GetNetMonitorRequestParams added in v1.0.784

type GetNetMonitorRequestParams struct {
	// 设备id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 开始时间
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 结束时间
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 统计指标(上行速率:"TxRate":bit/s,下行速率:"RxRate":bit/s,丢包:"Loss":%,时延:"RTT":ms)
	Metrics *string `json:"Metrics,omitnil,omitempty" name:"Metrics"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`
}

Predefined struct for user

type GetNetMonitorResponse added in v1.0.784

type GetNetMonitorResponse struct {
	*tchttp.BaseResponse
	Response *GetNetMonitorResponseParams `json:"Response"`
}

func NewGetNetMonitorResponse added in v1.0.784

func NewGetNetMonitorResponse() (response *GetNetMonitorResponse)

func (*GetNetMonitorResponse) FromJsonString added in v1.0.784

func (r *GetNetMonitorResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetNetMonitorResponse) ToJsonString added in v1.0.784

func (r *GetNetMonitorResponse) ToJsonString() string

type GetNetMonitorResponseParams added in v1.0.784

type GetNetMonitorResponseParams struct {
	// 监控数据
	// 注意:此字段可能返回 null,表示取不到有效值。
	MonitorData []*MonitorData `json:"MonitorData,omitnil,omitempty" name:"MonitorData"`

	// 接入区域。取值范围:['MC','AP','EU','AM']
	// MC=中国大陆
	// AP=亚太
	// EU=欧洲
	// AM=美洲
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetPublicKeyRequest added in v1.0.540

type GetPublicKeyRequest struct {
	*tchttp.BaseRequest
}

func NewGetPublicKeyRequest added in v1.0.540

func NewGetPublicKeyRequest() (request *GetPublicKeyRequest)

func (*GetPublicKeyRequest) FromJsonString added in v1.0.540

func (r *GetPublicKeyRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetPublicKeyRequest) ToJsonString added in v1.0.540

func (r *GetPublicKeyRequest) ToJsonString() string

type GetPublicKeyRequestParams added in v1.0.540

type GetPublicKeyRequestParams struct {
}

Predefined struct for user

type GetPublicKeyResponse added in v1.0.540

type GetPublicKeyResponse struct {
	*tchttp.BaseResponse
	Response *GetPublicKeyResponseParams `json:"Response"`
}

func NewGetPublicKeyResponse added in v1.0.540

func NewGetPublicKeyResponse() (response *GetPublicKeyResponse)

func (*GetPublicKeyResponse) FromJsonString added in v1.0.540

func (r *GetPublicKeyResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetPublicKeyResponse) ToJsonString added in v1.0.540

func (r *GetPublicKeyResponse) ToJsonString() string

type GetPublicKeyResponseParams added in v1.0.540

type GetPublicKeyResponseParams struct {
	// 非对称公钥
	PublicKey *string `json:"PublicKey,omitnil,omitempty" name:"PublicKey"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetStatisticDataRequest added in v1.0.496

type GetStatisticDataRequest struct {
	*tchttp.BaseRequest

	// 设备ID。若不指定设备,可传"-1"
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 统计开始时间,单位:s
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 统计结束时间,单位:s
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 聚合粒度:
	// 1:按小时统计
	// 2:按天统计
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`

	// 设备ID列表,最多10个设备,下载多个设备流量和时使用,此时DeviceId可传"-1"
	DeviceList []*string `json:"DeviceList,omitnil,omitempty" name:"DeviceList"`

	// 设备分组ID,若不指定分组则不传,按分组下载数据时使用
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`
}

func NewGetStatisticDataRequest added in v1.0.496

func NewGetStatisticDataRequest() (request *GetStatisticDataRequest)

func (*GetStatisticDataRequest) FromJsonString added in v1.0.496

func (r *GetStatisticDataRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetStatisticDataRequest) ToJsonString added in v1.0.496

func (r *GetStatisticDataRequest) ToJsonString() string

type GetStatisticDataRequestParams added in v1.0.496

type GetStatisticDataRequestParams struct {
	// 设备ID。若不指定设备,可传"-1"
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 统计开始时间,单位:s
	BeginTime *int64 `json:"BeginTime,omitnil,omitempty" name:"BeginTime"`

	// 统计结束时间,单位:s
	EndTime *int64 `json:"EndTime,omitnil,omitempty" name:"EndTime"`

	// 聚合粒度:
	// 1:按小时统计
	// 2:按天统计
	TimeGranularity *int64 `json:"TimeGranularity,omitnil,omitempty" name:"TimeGranularity"`

	// 接入区域。取值范围:['MC','AP','EU','AM'] MC=中国大陆 AP=亚太 EU=欧洲 AM=美洲。不填代表全量区域。
	AccessRegion *string `json:"AccessRegion,omitnil,omitempty" name:"AccessRegion"`

	// 网关类型。0:公有云网关;1:自有网关。不传默认为0。
	GatewayType *int64 `json:"GatewayType,omitnil,omitempty" name:"GatewayType"`

	// 设备ID列表,最多10个设备,下载多个设备流量和时使用,此时DeviceId可传"-1"
	DeviceList []*string `json:"DeviceList,omitnil,omitempty" name:"DeviceList"`

	// 设备分组ID,若不指定分组则不传,按分组下载数据时使用
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`
}

Predefined struct for user

type GetStatisticDataResponse added in v1.0.496

type GetStatisticDataResponse struct {
	*tchttp.BaseResponse
	Response *GetStatisticDataResponseParams `json:"Response"`
}

func NewGetStatisticDataResponse added in v1.0.496

func NewGetStatisticDataResponse() (response *GetStatisticDataResponse)

func (*GetStatisticDataResponse) FromJsonString added in v1.0.496

func (r *GetStatisticDataResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetStatisticDataResponse) ToJsonString added in v1.0.496

func (r *GetStatisticDataResponse) ToJsonString() string

type GetStatisticDataResponseParams added in v1.0.496

type GetStatisticDataResponseParams struct {
	// 文件地址url
	FilePath *string `json:"FilePath,omitnil,omitempty" name:"FilePath"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type GetVendorHardwareRequest added in v1.0.805

type GetVendorHardwareRequest struct {
	*tchttp.BaseRequest

	// 页码
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 页面数量
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 激活状态,
	// 空:全部;
	// 1:待激活;
	// 2:已激活;
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}

func NewGetVendorHardwareRequest added in v1.0.805

func NewGetVendorHardwareRequest() (request *GetVendorHardwareRequest)

func (*GetVendorHardwareRequest) FromJsonString added in v1.0.805

func (r *GetVendorHardwareRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetVendorHardwareRequest) ToJsonString added in v1.0.805

func (r *GetVendorHardwareRequest) ToJsonString() string

type GetVendorHardwareRequestParams added in v1.0.805

type GetVendorHardwareRequestParams struct {
	// 页码
	PageNumber *int64 `json:"PageNumber,omitnil,omitempty" name:"PageNumber"`

	// 页面数量
	PageSize *int64 `json:"PageSize,omitnil,omitempty" name:"PageSize"`

	// 关键字
	Keyword *string `json:"Keyword,omitnil,omitempty" name:"Keyword"`

	// 激活状态,
	// 空:全部;
	// 1:待激活;
	// 2:已激活;
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`
}

Predefined struct for user

type GetVendorHardwareResponse added in v1.0.805

type GetVendorHardwareResponse struct {
	*tchttp.BaseResponse
	Response *GetVendorHardwareResponseParams `json:"Response"`
}

func NewGetVendorHardwareResponse added in v1.0.805

func NewGetVendorHardwareResponse() (response *GetVendorHardwareResponse)

func (*GetVendorHardwareResponse) FromJsonString added in v1.0.805

func (r *GetVendorHardwareResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*GetVendorHardwareResponse) ToJsonString added in v1.0.805

func (r *GetVendorHardwareResponse) ToJsonString() string

type GetVendorHardwareResponseParams added in v1.0.805

type GetVendorHardwareResponseParams struct {
	// 硬件信息列表
	VendorHardware []*VendorHardware `json:"VendorHardware,omitnil,omitempty" name:"VendorHardware"`

	// 设备总数
	Length *int64 `json:"Length,omitnil,omitempty" name:"Length"`

	// 总页数
	TotalPage *int64 `json:"TotalPage,omitnil,omitempty" name:"TotalPage"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type Hardware added in v1.0.805

type Hardware struct {
	// 硬件序列号
	// 注意:此字段可能返回 null,表示取不到有效值。
	SN *string `json:"SN,omitnil,omitempty" name:"SN"`

	// license计费模式:
	// 1,租户付费
	// 2,厂商月付费
	// 3,厂商永久授权
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicenseChargingMode *int64 `json:"LicenseChargingMode,omitnil,omitempty" name:"LicenseChargingMode"`

	// 设备描述
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// 硬件ID,入参无需传递
	// 注意:此字段可能返回 null,表示取不到有效值。
	HardwareId *string `json:"HardwareId,omitnil,omitempty" name:"HardwareId"`
}

type HardwareInfo added in v1.0.805

type HardwareInfo struct {
	// 设备ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 设备名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// 激活时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	ActiveTime *string `json:"ActiveTime,omitnil,omitempty" name:"ActiveTime"`

	// 最后在线时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	LastOnlineTime *string `json:"LastOnlineTime,omitnil,omitempty" name:"LastOnlineTime"`

	// 备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// 厂商备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	VendorDescription *string `json:"VendorDescription,omitnil,omitempty" name:"VendorDescription"`

	// license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权
	// 注:后续将废弃此参数,新接入请使用LicensePayMode和Payer
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicenseChargingMode *int64 `json:"LicenseChargingMode,omitnil,omitempty" name:"LicenseChargingMode"`

	// 创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 硬件序列号
	// 注意:此字段可能返回 null,表示取不到有效值。
	SN *string `json:"SN,omitnil,omitempty" name:"SN"`

	// license授权有效期
	// 0:月度授权
	// 1:永久授权
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicensePayMode *int64 `json:"LicensePayMode,omitnil,omitempty" name:"LicensePayMode"`

	// 付费方
	// 0:客户付费
	// 1:厂商付费
	// 注意:此字段可能返回 null,表示取不到有效值。
	Payer *int64 `json:"Payer,omitnil,omitempty" name:"Payer"`

	// 设备分组ID
	// 注意:此字段可能返回 null,表示取不到有效值。
	GroupId *string `json:"GroupId,omitnil,omitempty" name:"GroupId"`

	// 设备分组名称
	// 注意:此字段可能返回 null,表示取不到有效值。
	GroupName *string `json:"GroupName,omitnil,omitempty" name:"GroupName"`
}

type ModifyPackageRenewFlagRequest added in v1.0.808

type ModifyPackageRenewFlagRequest struct {
	*tchttp.BaseRequest

	// 流量包的唯一资源ID
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// 自动续费标识。true代表自动续费,false代表不自动续费
	RenewFlag *bool `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}

func NewModifyPackageRenewFlagRequest added in v1.0.808

func NewModifyPackageRenewFlagRequest() (request *ModifyPackageRenewFlagRequest)

func (*ModifyPackageRenewFlagRequest) FromJsonString added in v1.0.808

func (r *ModifyPackageRenewFlagRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyPackageRenewFlagRequest) ToJsonString added in v1.0.808

func (r *ModifyPackageRenewFlagRequest) ToJsonString() string

type ModifyPackageRenewFlagRequestParams added in v1.0.808

type ModifyPackageRenewFlagRequestParams struct {
	// 流量包的唯一资源ID
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// 自动续费标识。true代表自动续费,false代表不自动续费
	RenewFlag *bool `json:"RenewFlag,omitnil,omitempty" name:"RenewFlag"`
}

Predefined struct for user

type ModifyPackageRenewFlagResponse added in v1.0.808

type ModifyPackageRenewFlagResponse struct {
	*tchttp.BaseResponse
	Response *ModifyPackageRenewFlagResponseParams `json:"Response"`
}

func NewModifyPackageRenewFlagResponse added in v1.0.808

func NewModifyPackageRenewFlagResponse() (response *ModifyPackageRenewFlagResponse)

func (*ModifyPackageRenewFlagResponse) FromJsonString added in v1.0.808

func (r *ModifyPackageRenewFlagResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyPackageRenewFlagResponse) ToJsonString added in v1.0.808

func (r *ModifyPackageRenewFlagResponse) ToJsonString() string

type ModifyPackageRenewFlagResponseParams added in v1.0.808

type ModifyPackageRenewFlagResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type MonitorData added in v1.0.784

type MonitorData struct {
	// 时间点:s
	Time *string `json:"Time,omitnil,omitempty" name:"Time"`

	// 业务指标(bps/ms/%)
	// 注意:此字段可能返回 null,表示取不到有效值。
	BusinessMetrics *float64 `json:"BusinessMetrics,omitnil,omitempty" name:"BusinessMetrics"`

	// 网卡状态信息
	// 注意:此字段可能返回 null,表示取不到有效值。
	SlotNetInfo []*SlotNetInfo `json:"SlotNetInfo,omitnil,omitempty" name:"SlotNetInfo"`
}

type NetDetails added in v1.0.497

type NetDetails struct {
	// 流量值(byte)
	Current *float64 `json:"Current,omitnil,omitempty" name:"Current"`

	// 时间点,单位:s
	Time *string `json:"Time,omitnil,omitempty" name:"Time"`
}

type NetworkData added in v1.0.351

type NetworkData struct {
	// 时延数组,最大长度30
	RTT []*float64 `json:"RTT,omitnil,omitempty" name:"RTT"`

	// 丢包率
	Loss *float64 `json:"Loss,omitnil,omitempty" name:"Loss"`

	// 抖动
	Jitter *float64 `json:"Jitter,omitnil,omitempty" name:"Jitter"`

	// 10位秒级时间戳
	Timestamp *int64 `json:"Timestamp,omitnil,omitempty" name:"Timestamp"`
}

type OrderFlowPackageRequest added in v1.0.808

type OrderFlowPackageRequest struct {
	*tchttp.BaseRequest

	// 流量包规格类型。可取值如下:
	// DEVICE_1_FLOW_20G、DEVICE_2_FLOW_50G、
	// DEVICE_3_FLOW_100G、
	// DEVICE_5_FLOW_500G,分别代表20G、50G、100G、500G档位的流量包。
	// 档位也影响流量包可绑定的设备数量上限:
	// 20G:最多绑定1个设备
	// 50G:最多绑定2个设备
	// 100G:最多绑定3个设备
	// 500G:最多绑定5个设备
	PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`

	// 流量包绑定的设备ID列表。捆绑设备个数上限取决于包的规格档位:
	// 20G:最多绑定1个设备
	// 50G:最多绑定2个设备
	// 100G:最多绑定3个设备
	// 500G:最多绑定5个设备
	DeviceList []*string `json:"DeviceList,omitnil,omitempty" name:"DeviceList"`

	// 是否自动续费,该选项和流量截断冲突,只能开启一个
	AutoRenewFlag *bool `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// 区域标识,0:国内,1:国外
	PackageRegion *int64 `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`

	// 是否开启流量截断功能,该选项和自动续费冲突
	FlowTruncFlag *bool `json:"FlowTruncFlag,omitnil,omitempty" name:"FlowTruncFlag"`

	// 是否自动选择代金券,默认false。
	// 有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。
	AutoVoucher *bool `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`

	// 指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。
	// 注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券
	VoucherIds []*string `json:"VoucherIds,omitnil,omitempty" name:"VoucherIds"`
}

func NewOrderFlowPackageRequest added in v1.0.808

func NewOrderFlowPackageRequest() (request *OrderFlowPackageRequest)

func (*OrderFlowPackageRequest) FromJsonString added in v1.0.808

func (r *OrderFlowPackageRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*OrderFlowPackageRequest) ToJsonString added in v1.0.808

func (r *OrderFlowPackageRequest) ToJsonString() string

type OrderFlowPackageRequestParams added in v1.0.808

type OrderFlowPackageRequestParams struct {
	// 流量包规格类型。可取值如下:
	// DEVICE_1_FLOW_20G、DEVICE_2_FLOW_50G、
	// DEVICE_3_FLOW_100G、
	// DEVICE_5_FLOW_500G,分别代表20G、50G、100G、500G档位的流量包。
	// 档位也影响流量包可绑定的设备数量上限:
	// 20G:最多绑定1个设备
	// 50G:最多绑定2个设备
	// 100G:最多绑定3个设备
	// 500G:最多绑定5个设备
	PackageType *string `json:"PackageType,omitnil,omitempty" name:"PackageType"`

	// 流量包绑定的设备ID列表。捆绑设备个数上限取决于包的规格档位:
	// 20G:最多绑定1个设备
	// 50G:最多绑定2个设备
	// 100G:最多绑定3个设备
	// 500G:最多绑定5个设备
	DeviceList []*string `json:"DeviceList,omitnil,omitempty" name:"DeviceList"`

	// 是否自动续费,该选项和流量截断冲突,只能开启一个
	AutoRenewFlag *bool `json:"AutoRenewFlag,omitnil,omitempty" name:"AutoRenewFlag"`

	// 区域标识,0:国内,1:国外
	PackageRegion *int64 `json:"PackageRegion,omitnil,omitempty" name:"PackageRegion"`

	// 是否开启流量截断功能,该选项和自动续费冲突
	FlowTruncFlag *bool `json:"FlowTruncFlag,omitnil,omitempty" name:"FlowTruncFlag"`

	// 是否自动选择代金券,默认false。
	// 有多张券时的选择策略:按照可支付订单全部金额的券,先到期的券,可抵扣金额最大的券,余额最小的券,现金券 这个优先级进行扣券,且最多只抵扣一张券。
	AutoVoucher *bool `json:"AutoVoucher,omitnil,omitempty" name:"AutoVoucher"`

	// 指定代金券ID。自动选择代金券时此参数无效。目前只允许传入一张代金券。
	// 注:若指定的代金券不符合订单抵扣条件,则正常支付,不扣券
	VoucherIds []*string `json:"VoucherIds,omitnil,omitempty" name:"VoucherIds"`
}

Predefined struct for user

type OrderFlowPackageResponse added in v1.0.808

type OrderFlowPackageResponse struct {
	*tchttp.BaseResponse
	Response *OrderFlowPackageResponseParams `json:"Response"`
}

func NewOrderFlowPackageResponse added in v1.0.808

func NewOrderFlowPackageResponse() (response *OrderFlowPackageResponse)

func (*OrderFlowPackageResponse) FromJsonString added in v1.0.808

func (r *OrderFlowPackageResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*OrderFlowPackageResponse) ToJsonString added in v1.0.808

func (r *OrderFlowPackageResponse) ToJsonString() string

type OrderFlowPackageResponseParams added in v1.0.808

type OrderFlowPackageResponseParams struct {
	// 流量包的唯一资源ID
	ResourceId *string `json:"ResourceId,omitnil,omitempty" name:"ResourceId"`

	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type SlotNetInfo added in v1.0.784

type SlotNetInfo struct {
	// 网卡名
	// 注意:此字段可能返回 null,表示取不到有效值。
	NetInfoName *string `json:"NetInfoName,omitnil,omitempty" name:"NetInfoName"`

	// 公网IP
	// 注意:此字段可能返回 null,表示取不到有效值。
	PublicIP *string `json:"PublicIP,omitnil,omitempty" name:"PublicIP"`

	// 指标数据(bps/ms/%)
	// 注意:此字段可能返回 null,表示取不到有效值。
	Current *float64 `json:"Current,omitnil,omitempty" name:"Current"`
}

type SrcAddressInfo

type SrcAddressInfo struct {
	// 用户私网 ipv4 地址
	SrcIpv4 *string `json:"SrcIpv4,omitnil,omitempty" name:"SrcIpv4"`

	// 用户公网 ipv4 地址
	SrcPublicIpv4 *string `json:"SrcPublicIpv4,omitnil,omitempty" name:"SrcPublicIpv4"`

	// 用户 ipv6 地址
	SrcIpv6 *string `json:"SrcIpv6,omitnil,omitempty" name:"SrcIpv6"`
}

type UpdateDeviceRequest added in v1.0.496

type UpdateDeviceRequest struct {
	*tchttp.BaseRequest

	// 设备id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// 设备备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 更新设备网络信息
	UpdateNetInfo []*UpdateNetInfo `json:"UpdateNetInfo,omitnil,omitempty" name:"UpdateNetInfo"`
}

func NewUpdateDeviceRequest added in v1.0.496

func NewUpdateDeviceRequest() (request *UpdateDeviceRequest)

func (*UpdateDeviceRequest) FromJsonString added in v1.0.496

func (r *UpdateDeviceRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateDeviceRequest) ToJsonString added in v1.0.496

func (r *UpdateDeviceRequest) ToJsonString() string

type UpdateDeviceRequestParams added in v1.0.496

type UpdateDeviceRequestParams struct {
	// 设备id
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// 设备名称
	DeviceName *string `json:"DeviceName,omitnil,omitempty" name:"DeviceName"`

	// 设备备注
	Remark *string `json:"Remark,omitnil,omitempty" name:"Remark"`

	// 更新设备网络信息
	UpdateNetInfo []*UpdateNetInfo `json:"UpdateNetInfo,omitnil,omitempty" name:"UpdateNetInfo"`
}

Predefined struct for user

type UpdateDeviceResponse added in v1.0.496

type UpdateDeviceResponse struct {
	*tchttp.BaseResponse
	Response *UpdateDeviceResponseParams `json:"Response"`
}

func NewUpdateDeviceResponse added in v1.0.496

func NewUpdateDeviceResponse() (response *UpdateDeviceResponse)

func (*UpdateDeviceResponse) FromJsonString added in v1.0.496

func (r *UpdateDeviceResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateDeviceResponse) ToJsonString added in v1.0.496

func (r *UpdateDeviceResponse) ToJsonString() string

type UpdateDeviceResponseParams added in v1.0.496

type UpdateDeviceResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateHardwareRequest added in v1.0.805

type UpdateHardwareRequest struct {
	*tchttp.BaseRequest

	// 硬件ID
	HardwareId *string `json:"HardwareId,omitnil,omitempty" name:"HardwareId"`

	// 硬件序列号
	SN *string `json:"SN,omitnil,omitempty" name:"SN"`

	// 设备备注
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

func NewUpdateHardwareRequest added in v1.0.805

func NewUpdateHardwareRequest() (request *UpdateHardwareRequest)

func (*UpdateHardwareRequest) FromJsonString added in v1.0.805

func (r *UpdateHardwareRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateHardwareRequest) ToJsonString added in v1.0.805

func (r *UpdateHardwareRequest) ToJsonString() string

type UpdateHardwareRequestParams added in v1.0.805

type UpdateHardwareRequestParams struct {
	// 硬件ID
	HardwareId *string `json:"HardwareId,omitnil,omitempty" name:"HardwareId"`

	// 硬件序列号
	SN *string `json:"SN,omitnil,omitempty" name:"SN"`

	// 设备备注
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`
}

Predefined struct for user

type UpdateHardwareResponse added in v1.0.805

type UpdateHardwareResponse struct {
	*tchttp.BaseResponse
	Response *UpdateHardwareResponseParams `json:"Response"`
}

func NewUpdateHardwareResponse added in v1.0.805

func NewUpdateHardwareResponse() (response *UpdateHardwareResponse)

func (*UpdateHardwareResponse) FromJsonString added in v1.0.805

func (r *UpdateHardwareResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*UpdateHardwareResponse) ToJsonString added in v1.0.805

func (r *UpdateHardwareResponse) ToJsonString() string

type UpdateHardwareResponseParams added in v1.0.805

type UpdateHardwareResponseParams struct {
	// 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
	RequestId *string `json:"RequestId,omitnil,omitempty" name:"RequestId"`
}

Predefined struct for user

type UpdateNetInfo added in v1.0.496

type UpdateNetInfo struct {
	// 网络类型:
	// 0:数据
	// 1:Wi-Fi
	Type *int64 `json:"Type,omitnil,omitempty" name:"Type"`

	// 启用/禁用
	DataEnable *bool `json:"DataEnable,omitnil,omitempty" name:"DataEnable"`

	// 上行限速:bit
	UploadLimit *uint64 `json:"UploadLimit,omitnil,omitempty" name:"UploadLimit"`

	// 下行限速:bit
	DownloadLimit *uint64 `json:"DownloadLimit,omitnil,omitempty" name:"DownloadLimit"`

	// 网卡名
	NetInfoName *string `json:"NetInfoName,omitnil,omitempty" name:"NetInfoName"`
}

type VendorHardware added in v1.0.805

type VendorHardware struct {
	// 硬件id
	// 注意:此字段可能返回 null,表示取不到有效值。
	HardwareId *string `json:"HardwareId,omitnil,omitempty" name:"HardwareId"`

	// 硬件序列号
	// 注意:此字段可能返回 null,表示取不到有效值。
	SN *string `json:"SN,omitnil,omitempty" name:"SN"`

	// 创建时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	CreateTime *string `json:"CreateTime,omitnil,omitempty" name:"CreateTime"`

	// 激活状态, 空:全部; 1:待激活; 2:已激活
	// 注意:此字段可能返回 null,表示取不到有效值。
	Status *int64 `json:"Status,omitnil,omitempty" name:"Status"`

	// 激活时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	ActiveTime *string `json:"ActiveTime,omitnil,omitempty" name:"ActiveTime"`

	// 厂商备注
	// 注意:此字段可能返回 null,表示取不到有效值。
	Description *string `json:"Description,omitnil,omitempty" name:"Description"`

	// 设备id
	// 注意:此字段可能返回 null,表示取不到有效值。
	DeviceId *string `json:"DeviceId,omitnil,omitempty" name:"DeviceId"`

	// license计费模式: 1,租户月付费 2,厂商月付费 3,license永久授权
	// 注:设备为租户付费且未激活(未选择月付还是永久付费)时,此参数返回1,仅代表租户付费。后续将废弃此参数,新接入请使用LicensePayMode和Payer
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicenseChargingMode *int64 `json:"LicenseChargingMode,omitnil,omitempty" name:"LicenseChargingMode"`

	// 最后在线时间
	// 注意:此字段可能返回 null,表示取不到有效值。
	LastOnlineTime *string `json:"LastOnlineTime,omitnil,omitempty" name:"LastOnlineTime"`

	// license授权有效期
	// 0:月度授权
	// 1:永久授权
	// -1:未知
	// 注意:此字段可能返回 null,表示取不到有效值。
	LicensePayMode *int64 `json:"LicensePayMode,omitnil,omitempty" name:"LicensePayMode"`

	// 付费方
	// 0:客户付费
	// 1:厂商付费
	// 注意:此字段可能返回 null,表示取不到有效值。
	Payer *int64 `json:"Payer,omitnil,omitempty" name:"Payer"`
}

Jump to

Keyboard shortcuts

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