v20190411

package
v3.0.233+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = "2019-04-11"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthTestTidRequest

type AuthTestTidRequest struct {
	*tchttp.BaseRequest

	// 设备端SDK填入测试TID参数后生成的加密数据串
	Data *string `json:"Data,omitempty" name:"Data"`
}

func NewAuthTestTidRequest

func NewAuthTestTidRequest() (request *AuthTestTidRequest)

func (*AuthTestTidRequest) FromJsonString

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

func (*AuthTestTidRequest) ToJsonString

func (r *AuthTestTidRequest) ToJsonString() string

type AuthTestTidResponse

type AuthTestTidResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 认证结果
		Pass *bool `json:"Pass,omitempty" name:"Pass"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewAuthTestTidResponse

func NewAuthTestTidResponse() (response *AuthTestTidResponse)

func (*AuthTestTidResponse) FromJsonString

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

func (*AuthTestTidResponse) ToJsonString

func (r *AuthTestTidResponse) ToJsonString() string

type BurnTidNotifyRequest

type BurnTidNotifyRequest struct {
	*tchttp.BaseRequest

	// 订单编号
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// TID编号
	Tid *string `json:"Tid,omitempty" name:"Tid"`
}

func NewBurnTidNotifyRequest

func NewBurnTidNotifyRequest() (request *BurnTidNotifyRequest)

func (*BurnTidNotifyRequest) FromJsonString

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

func (*BurnTidNotifyRequest) ToJsonString

func (r *BurnTidNotifyRequest) ToJsonString() string

type BurnTidNotifyResponse

type BurnTidNotifyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 接收回执成功的TID
		Tid *string `json:"Tid,omitempty" name:"Tid"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewBurnTidNotifyResponse

func NewBurnTidNotifyResponse() (response *BurnTidNotifyResponse)

func (*BurnTidNotifyResponse) FromJsonString

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

func (*BurnTidNotifyResponse) ToJsonString

func (r *BurnTidNotifyResponse) ToJsonString() string

type Client

type Client struct {
	common.Client
}

func NewClient

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

func NewClientWithSecretId

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

Deprecated

func (*Client) AuthTestTid

func (c *Client) AuthTestTid(request *AuthTestTidRequest) (response *AuthTestTidResponse, err error)

单向认证测试TID

func (*Client) BurnTidNotify

func (c *Client) BurnTidNotify(request *BurnTidNotifyRequest) (response *BurnTidNotifyResponse, err error)

安全芯片TID烧录回执

func (*Client) DeliverTidNotify

func (c *Client) DeliverTidNotify(request *DeliverTidNotifyRequest) (response *DeliverTidNotifyResponse, err error)

安全芯片为载体的TID空发回执,绑定TID与订单号。

func (*Client) DeliverTids

func (c *Client) DeliverTids(request *DeliverTidsRequest) (response *DeliverTidsResponse, err error)

设备服务商请求空发产品订单的TID信息

func (*Client) DescribeAvailableLibCount

func (c *Client) DescribeAvailableLibCount(request *DescribeAvailableLibCountRequest) (response *DescribeAvailableLibCountResponse, err error)

查询指定订单的可空发的白盒密钥数量

func (*Client) DescribePermission

func (c *Client) DescribePermission(request *DescribePermissionRequest) (response *DescribePermissionResponse, err error)

查询企业用户TID平台控制台权限

func (*Client) DownloadTids

func (c *Client) DownloadTids(request *DownloadTidsRequest) (response *DownloadTidsResponse, err error)

下载芯片订单的TID

func (*Client) UploadDeviceUniqueCode

func (c *Client) UploadDeviceUniqueCode(request *UploadDeviceUniqueCodeRequest) (response *UploadDeviceUniqueCodeResponse, err error)

上传硬件唯一标识码,是软加固设备身份参数。本接口如遇到错误数据,则所有当次上传数据失效。

func (*Client) VerifyChipBurnInfo

func (c *Client) VerifyChipBurnInfo(request *VerifyChipBurnInfoRequest) (response *VerifyChipBurnInfoResponse, err error)

下载控制台验证芯片烧录信息,保证TID与中心信息一致

type DeliverTidNotifyRequest

type DeliverTidNotifyRequest struct {
	*tchttp.BaseRequest

	// 订单编号
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// TID编号
	Tid *string `json:"Tid,omitempty" name:"Tid"`
}

func NewDeliverTidNotifyRequest

func NewDeliverTidNotifyRequest() (request *DeliverTidNotifyRequest)

func (*DeliverTidNotifyRequest) FromJsonString

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

func (*DeliverTidNotifyRequest) ToJsonString

func (r *DeliverTidNotifyRequest) ToJsonString() string

type DeliverTidNotifyResponse

type DeliverTidNotifyResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 剩余空发数量
		RemaindCount *uint64 `json:"RemaindCount,omitempty" name:"RemaindCount"`

		// 已回执的TID编码
		Tid *string `json:"Tid,omitempty" name:"Tid"`

		// 产品公钥
		ProductKey *string `json:"ProductKey,omitempty" name:"ProductKey"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeliverTidNotifyResponse

func NewDeliverTidNotifyResponse() (response *DeliverTidNotifyResponse)

func (*DeliverTidNotifyResponse) FromJsonString

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

func (*DeliverTidNotifyResponse) ToJsonString

func (r *DeliverTidNotifyResponse) ToJsonString() string

type DeliverTidsRequest

type DeliverTidsRequest struct {
	*tchttp.BaseRequest

	// 订单ID
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 数量,1~100
	Quantity *uint64 `json:"Quantity,omitempty" name:"Quantity"`
}

func NewDeliverTidsRequest

func NewDeliverTidsRequest() (request *DeliverTidsRequest)

func (*DeliverTidsRequest) FromJsonString

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

func (*DeliverTidsRequest) ToJsonString

func (r *DeliverTidsRequest) ToJsonString() string

type DeliverTidsResponse

type DeliverTidsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 空发的TID信息
		// 注意:此字段可能返回 null,表示取不到有效值。
		TidSet []*TidKeysInfo `json:"TidSet,omitempty" name:"TidSet" list`

		// 产品公钥
		ProductKey *string `json:"ProductKey,omitempty" name:"ProductKey"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDeliverTidsResponse

func NewDeliverTidsResponse() (response *DeliverTidsResponse)

func (*DeliverTidsResponse) FromJsonString

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

func (*DeliverTidsResponse) ToJsonString

func (r *DeliverTidsResponse) ToJsonString() string

type DescribeAvailableLibCountRequest

type DescribeAvailableLibCountRequest struct {
	*tchttp.BaseRequest

	// 订单编号
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`
}

func NewDescribeAvailableLibCountRequest

func NewDescribeAvailableLibCountRequest() (request *DescribeAvailableLibCountRequest)

func (*DescribeAvailableLibCountRequest) FromJsonString

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

func (*DescribeAvailableLibCountRequest) ToJsonString

func (r *DescribeAvailableLibCountRequest) ToJsonString() string

type DescribeAvailableLibCountResponse

type DescribeAvailableLibCountResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 可空发的白盒密钥数量
		Quantity *uint64 `json:"Quantity,omitempty" name:"Quantity"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribeAvailableLibCountResponse

func NewDescribeAvailableLibCountResponse() (response *DescribeAvailableLibCountResponse)

func (*DescribeAvailableLibCountResponse) FromJsonString

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

func (*DescribeAvailableLibCountResponse) ToJsonString

func (r *DescribeAvailableLibCountResponse) ToJsonString() string

type DescribePermissionRequest

type DescribePermissionRequest struct {
	*tchttp.BaseRequest
}

func NewDescribePermissionRequest

func NewDescribePermissionRequest() (request *DescribePermissionRequest)

func (*DescribePermissionRequest) FromJsonString

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

func (*DescribePermissionRequest) ToJsonString

func (r *DescribePermissionRequest) ToJsonString() string

type DescribePermissionResponse

type DescribePermissionResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 企业用户
		EnterpriseUser *bool `json:"EnterpriseUser,omitempty" name:"EnterpriseUser"`

		// 下载控制台权限
		DownloadPermission *string `json:"DownloadPermission,omitempty" name:"DownloadPermission"`

		// 使用控制台权限
		UsePermission *string `json:"UsePermission,omitempty" name:"UsePermission"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDescribePermissionResponse

func NewDescribePermissionResponse() (response *DescribePermissionResponse)

func (*DescribePermissionResponse) FromJsonString

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

func (*DescribePermissionResponse) ToJsonString

func (r *DescribePermissionResponse) ToJsonString() string

type DownloadTidsRequest

type DownloadTidsRequest struct {
	*tchttp.BaseRequest

	// 订单编号
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`

	// 下载数量:1~10
	Quantity *uint64 `json:"Quantity,omitempty" name:"Quantity"`
}

func NewDownloadTidsRequest

func NewDownloadTidsRequest() (request *DownloadTidsRequest)

func (*DownloadTidsRequest) FromJsonString

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

func (*DownloadTidsRequest) ToJsonString

func (r *DownloadTidsRequest) ToJsonString() string

type DownloadTidsResponse

type DownloadTidsResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 下载的TID信息列表
		// 注意:此字段可能返回 null,表示取不到有效值。
		TidSet []*TidKeysInfo `json:"TidSet,omitempty" name:"TidSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewDownloadTidsResponse

func NewDownloadTidsResponse() (response *DownloadTidsResponse)

func (*DownloadTidsResponse) FromJsonString

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

func (*DownloadTidsResponse) ToJsonString

func (r *DownloadTidsResponse) ToJsonString() string

type TidKeysInfo

type TidKeysInfo struct {

	// TID号码
	Tid *string `json:"Tid,omitempty" name:"Tid"`

	// 公钥
	PublicKey *string `json:"PublicKey,omitempty" name:"PublicKey"`

	// 私钥
	PrivateKey *string `json:"PrivateKey,omitempty" name:"PrivateKey"`

	// 共享密钥
	Psk *string `json:"Psk,omitempty" name:"Psk"`

	// 软加固白盒密钥下载地址
	DownloadUrl *string `json:"DownloadUrl,omitempty" name:"DownloadUrl"`

	// 软加固设备标识码
	DeviceCode *string `json:"DeviceCode,omitempty" name:"DeviceCode"`
}

type UploadDeviceUniqueCodeRequest

type UploadDeviceUniqueCodeRequest struct {
	*tchttp.BaseRequest

	// 硬件唯一标识码
	CodeSet []*string `json:"CodeSet,omitempty" name:"CodeSet" list`

	// 硬件标识码绑定的申请编号
	OrderId *string `json:"OrderId,omitempty" name:"OrderId"`
}

func NewUploadDeviceUniqueCodeRequest

func NewUploadDeviceUniqueCodeRequest() (request *UploadDeviceUniqueCodeRequest)

func (*UploadDeviceUniqueCodeRequest) FromJsonString

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

func (*UploadDeviceUniqueCodeRequest) ToJsonString

func (r *UploadDeviceUniqueCodeRequest) ToJsonString() string

type UploadDeviceUniqueCodeResponse

type UploadDeviceUniqueCodeResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 本次已上传数量
		Count *uint64 `json:"Count,omitempty" name:"Count"`

		// 重复的硬件唯一标识码
		// 注意:此字段可能返回 null,表示取不到有效值。
		ExistedCodeSet []*string `json:"ExistedCodeSet,omitempty" name:"ExistedCodeSet" list`

		// 剩余可上传数量
		LeftQuantity *uint64 `json:"LeftQuantity,omitempty" name:"LeftQuantity"`

		// 错误的硬件唯一标识码
		// 注意:此字段可能返回 null,表示取不到有效值。
		IllegalCodeSet []*string `json:"IllegalCodeSet,omitempty" name:"IllegalCodeSet" list`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewUploadDeviceUniqueCodeResponse

func NewUploadDeviceUniqueCodeResponse() (response *UploadDeviceUniqueCodeResponse)

func (*UploadDeviceUniqueCodeResponse) FromJsonString

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

func (*UploadDeviceUniqueCodeResponse) ToJsonString

func (r *UploadDeviceUniqueCodeResponse) ToJsonString() string

type VerifyChipBurnInfoRequest

type VerifyChipBurnInfoRequest struct {
	*tchttp.BaseRequest

	// 验证数据
	Data *string `json:"Data,omitempty" name:"Data"`
}

func NewVerifyChipBurnInfoRequest

func NewVerifyChipBurnInfoRequest() (request *VerifyChipBurnInfoRequest)

func (*VerifyChipBurnInfoRequest) FromJsonString

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

func (*VerifyChipBurnInfoRequest) ToJsonString

func (r *VerifyChipBurnInfoRequest) ToJsonString() string

type VerifyChipBurnInfoResponse

type VerifyChipBurnInfoResponse struct {
	*tchttp.BaseResponse
	Response *struct {

		// 验证结果
		Pass *bool `json:"Pass,omitempty" name:"Pass"`

		// 已验证次数
		VerifiedTimes *uint64 `json:"VerifiedTimes,omitempty" name:"VerifiedTimes"`

		// 剩余验证次数
		LeftTimes *uint64 `json:"LeftTimes,omitempty" name:"LeftTimes"`

		// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
		RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
	} `json:"Response"`
}

func NewVerifyChipBurnInfoResponse

func NewVerifyChipBurnInfoResponse() (response *VerifyChipBurnInfoResponse)

func (*VerifyChipBurnInfoResponse) FromJsonString

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

func (*VerifyChipBurnInfoResponse) ToJsonString

func (r *VerifyChipBurnInfoResponse) ToJsonString() string

Jump to

Keyboard shortcuts

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