昇腾社区首页
中文
注册

__init__(self, str_id: str)

接口功能

初始化RequestId的实例属性:type、id。

接口格式

def __init__(self, str_id: str)

接口参数

参数

参数类型

说明

取值要求

str_id

string

request的id。

-

使用样例

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

返回值