昇腾社区首页
中文
注册

__init__(self, request_id: RequestId)

接口功能

初始化Request的实例属性:request_id、request。

接口格式

def __init__(self, request_id: RequestId)

接口参数

参数

参数类型

说明

取值要求

request_id

RequestId

RequestId类。

-

使用样例

from sdk.request_id import RequestId
from sdk.request import Request
requestId = RequestId("Id")
request = Request(requestId)

返回值