antchain-bot 1.11.6__py3-none-any.whl → 1.11.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {antchain_bot-1.11.6.dist-info → antchain_bot-1.11.10.dist-info}/METADATA +1 -1
- antchain_bot-1.11.10.dist-info/RECORD +8 -0
- antchain_sdk_bot/__init__.py +1 -1
- antchain_sdk_bot/client.py +346 -10
- antchain_sdk_bot/models.py +1074 -39
- antchain_bot-1.11.6.dist-info/RECORD +0 -8
- {antchain_bot-1.11.6.dist-info → antchain_bot-1.11.10.dist-info}/LICENSE +0 -0
- {antchain_bot-1.11.6.dist-info → antchain_bot-1.11.10.dist-info}/WHEEL +0 -0
- {antchain_bot-1.11.6.dist-info → antchain_bot-1.11.10.dist-info}/top_level.txt +0 -0
antchain_sdk_bot/models.py
CHANGED
|
@@ -2072,6 +2072,82 @@ class TenantBindInfoReq(TeaModel):
|
|
|
2072
2072
|
return self
|
|
2073
2073
|
|
|
2074
2074
|
|
|
2075
|
+
class IotbasicDeviceModelFixedAttributeFailInfo(TeaModel):
|
|
2076
|
+
def __init__(
|
|
2077
|
+
self,
|
|
2078
|
+
attribute_name: str = None,
|
|
2079
|
+
attribute_value: str = None,
|
|
2080
|
+
data_type: str = None,
|
|
2081
|
+
data_range_min: int = None,
|
|
2082
|
+
data_range_max: int = None,
|
|
2083
|
+
error_code: str = None,
|
|
2084
|
+
error_message: str = None,
|
|
2085
|
+
):
|
|
2086
|
+
# 属性说明
|
|
2087
|
+
self.attribute_name = attribute_name
|
|
2088
|
+
# 属性名称
|
|
2089
|
+
self.attribute_value = attribute_value
|
|
2090
|
+
# 数据值类型 字符串:string 数字:long
|
|
2091
|
+
self.data_type = data_type
|
|
2092
|
+
# dataType为string时,表示数据长度最小值 dataType为long时,表示数据范围最小值
|
|
2093
|
+
self.data_range_min = data_range_min
|
|
2094
|
+
# dataType为string时,表示数据长度最大值 dataType为long时,表示数据范围最大值
|
|
2095
|
+
self.data_range_max = data_range_max
|
|
2096
|
+
# 失败code
|
|
2097
|
+
self.error_code = error_code
|
|
2098
|
+
# 失败消息
|
|
2099
|
+
self.error_message = error_message
|
|
2100
|
+
|
|
2101
|
+
def validate(self):
|
|
2102
|
+
self.validate_required(self.attribute_name, 'attribute_name')
|
|
2103
|
+
self.validate_required(self.attribute_value, 'attribute_value')
|
|
2104
|
+
self.validate_required(self.data_type, 'data_type')
|
|
2105
|
+
self.validate_required(self.data_range_min, 'data_range_min')
|
|
2106
|
+
self.validate_required(self.data_range_max, 'data_range_max')
|
|
2107
|
+
self.validate_required(self.error_code, 'error_code')
|
|
2108
|
+
self.validate_required(self.error_message, 'error_message')
|
|
2109
|
+
|
|
2110
|
+
def to_map(self):
|
|
2111
|
+
_map = super().to_map()
|
|
2112
|
+
if _map is not None:
|
|
2113
|
+
return _map
|
|
2114
|
+
|
|
2115
|
+
result = dict()
|
|
2116
|
+
if self.attribute_name is not None:
|
|
2117
|
+
result['attribute_name'] = self.attribute_name
|
|
2118
|
+
if self.attribute_value is not None:
|
|
2119
|
+
result['attribute_value'] = self.attribute_value
|
|
2120
|
+
if self.data_type is not None:
|
|
2121
|
+
result['data_type'] = self.data_type
|
|
2122
|
+
if self.data_range_min is not None:
|
|
2123
|
+
result['data_range_min'] = self.data_range_min
|
|
2124
|
+
if self.data_range_max is not None:
|
|
2125
|
+
result['data_range_max'] = self.data_range_max
|
|
2126
|
+
if self.error_code is not None:
|
|
2127
|
+
result['error_code'] = self.error_code
|
|
2128
|
+
if self.error_message is not None:
|
|
2129
|
+
result['error_message'] = self.error_message
|
|
2130
|
+
return result
|
|
2131
|
+
|
|
2132
|
+
def from_map(self, m: dict = None):
|
|
2133
|
+
m = m or dict()
|
|
2134
|
+
if m.get('attribute_name') is not None:
|
|
2135
|
+
self.attribute_name = m.get('attribute_name')
|
|
2136
|
+
if m.get('attribute_value') is not None:
|
|
2137
|
+
self.attribute_value = m.get('attribute_value')
|
|
2138
|
+
if m.get('data_type') is not None:
|
|
2139
|
+
self.data_type = m.get('data_type')
|
|
2140
|
+
if m.get('data_range_min') is not None:
|
|
2141
|
+
self.data_range_min = m.get('data_range_min')
|
|
2142
|
+
if m.get('data_range_max') is not None:
|
|
2143
|
+
self.data_range_max = m.get('data_range_max')
|
|
2144
|
+
if m.get('error_code') is not None:
|
|
2145
|
+
self.error_code = m.get('error_code')
|
|
2146
|
+
if m.get('error_message') is not None:
|
|
2147
|
+
self.error_message = m.get('error_message')
|
|
2148
|
+
return self
|
|
2149
|
+
|
|
2150
|
+
|
|
2075
2151
|
class RelatedEntity(TeaModel):
|
|
2076
2152
|
def __init__(
|
|
2077
2153
|
self,
|
|
@@ -3099,6 +3175,8 @@ class CategoryInfo(TeaModel):
|
|
|
3099
3175
|
category_name: str = None,
|
|
3100
3176
|
category_code: str = None,
|
|
3101
3177
|
remark: str = None,
|
|
3178
|
+
industry: str = None,
|
|
3179
|
+
scene: str = None,
|
|
3102
3180
|
):
|
|
3103
3181
|
# 品类名称
|
|
3104
3182
|
self.category_name = category_name
|
|
@@ -3106,10 +3184,16 @@ class CategoryInfo(TeaModel):
|
|
|
3106
3184
|
self.category_code = category_code
|
|
3107
3185
|
# 描述内容
|
|
3108
3186
|
self.remark = remark
|
|
3187
|
+
# 行业
|
|
3188
|
+
self.industry = industry
|
|
3189
|
+
# 场景
|
|
3190
|
+
self.scene = scene
|
|
3109
3191
|
|
|
3110
3192
|
def validate(self):
|
|
3111
3193
|
self.validate_required(self.category_name, 'category_name')
|
|
3112
3194
|
self.validate_required(self.category_code, 'category_code')
|
|
3195
|
+
self.validate_required(self.industry, 'industry')
|
|
3196
|
+
self.validate_required(self.scene, 'scene')
|
|
3113
3197
|
|
|
3114
3198
|
def to_map(self):
|
|
3115
3199
|
_map = super().to_map()
|
|
@@ -3123,6 +3207,10 @@ class CategoryInfo(TeaModel):
|
|
|
3123
3207
|
result['category_code'] = self.category_code
|
|
3124
3208
|
if self.remark is not None:
|
|
3125
3209
|
result['remark'] = self.remark
|
|
3210
|
+
if self.industry is not None:
|
|
3211
|
+
result['industry'] = self.industry
|
|
3212
|
+
if self.scene is not None:
|
|
3213
|
+
result['scene'] = self.scene
|
|
3126
3214
|
return result
|
|
3127
3215
|
|
|
3128
3216
|
def from_map(self, m: dict = None):
|
|
@@ -3133,6 +3221,10 @@ class CategoryInfo(TeaModel):
|
|
|
3133
3221
|
self.category_code = m.get('category_code')
|
|
3134
3222
|
if m.get('remark') is not None:
|
|
3135
3223
|
self.remark = m.get('remark')
|
|
3224
|
+
if m.get('industry') is not None:
|
|
3225
|
+
self.industry = m.get('industry')
|
|
3226
|
+
if m.get('scene') is not None:
|
|
3227
|
+
self.scene = m.get('scene')
|
|
3136
3228
|
return self
|
|
3137
3229
|
|
|
3138
3230
|
|
|
@@ -4659,6 +4751,106 @@ class DistributeDataPackage(TeaModel):
|
|
|
4659
4751
|
return self
|
|
4660
4752
|
|
|
4661
4753
|
|
|
4754
|
+
class IotbasicCategoryIndustrySceneInfo(TeaModel):
|
|
4755
|
+
def __init__(
|
|
4756
|
+
self,
|
|
4757
|
+
industry: str = None,
|
|
4758
|
+
scene: str = None,
|
|
4759
|
+
):
|
|
4760
|
+
# 行业
|
|
4761
|
+
self.industry = industry
|
|
4762
|
+
# 场景
|
|
4763
|
+
self.scene = scene
|
|
4764
|
+
|
|
4765
|
+
def validate(self):
|
|
4766
|
+
self.validate_required(self.industry, 'industry')
|
|
4767
|
+
self.validate_required(self.scene, 'scene')
|
|
4768
|
+
|
|
4769
|
+
def to_map(self):
|
|
4770
|
+
_map = super().to_map()
|
|
4771
|
+
if _map is not None:
|
|
4772
|
+
return _map
|
|
4773
|
+
|
|
4774
|
+
result = dict()
|
|
4775
|
+
if self.industry is not None:
|
|
4776
|
+
result['industry'] = self.industry
|
|
4777
|
+
if self.scene is not None:
|
|
4778
|
+
result['scene'] = self.scene
|
|
4779
|
+
return result
|
|
4780
|
+
|
|
4781
|
+
def from_map(self, m: dict = None):
|
|
4782
|
+
m = m or dict()
|
|
4783
|
+
if m.get('industry') is not None:
|
|
4784
|
+
self.industry = m.get('industry')
|
|
4785
|
+
if m.get('scene') is not None:
|
|
4786
|
+
self.scene = m.get('scene')
|
|
4787
|
+
return self
|
|
4788
|
+
|
|
4789
|
+
|
|
4790
|
+
class IotbasicDeviceModelFixedAttributeInfo(TeaModel):
|
|
4791
|
+
def __init__(
|
|
4792
|
+
self,
|
|
4793
|
+
attribute_name: str = None,
|
|
4794
|
+
attribute_value: str = None,
|
|
4795
|
+
data_type: str = None,
|
|
4796
|
+
data_range_min: int = None,
|
|
4797
|
+
data_range_max: int = None,
|
|
4798
|
+
):
|
|
4799
|
+
# 属性说明
|
|
4800
|
+
self.attribute_name = attribute_name
|
|
4801
|
+
# 属性名称
|
|
4802
|
+
self.attribute_value = attribute_value
|
|
4803
|
+
# 数据值类型
|
|
4804
|
+
# 字符串:string
|
|
4805
|
+
# 数字:long
|
|
4806
|
+
self.data_type = data_type
|
|
4807
|
+
# dataType为string时,表示数据长度最小值
|
|
4808
|
+
# dataType为long时,表示数据范围最小值
|
|
4809
|
+
self.data_range_min = data_range_min
|
|
4810
|
+
# dataType为string时,表示数据长度最大值
|
|
4811
|
+
# dataType为long时,表示数据范围最大值
|
|
4812
|
+
self.data_range_max = data_range_max
|
|
4813
|
+
|
|
4814
|
+
def validate(self):
|
|
4815
|
+
self.validate_required(self.attribute_name, 'attribute_name')
|
|
4816
|
+
self.validate_required(self.attribute_value, 'attribute_value')
|
|
4817
|
+
self.validate_required(self.data_type, 'data_type')
|
|
4818
|
+
self.validate_required(self.data_range_min, 'data_range_min')
|
|
4819
|
+
self.validate_required(self.data_range_max, 'data_range_max')
|
|
4820
|
+
|
|
4821
|
+
def to_map(self):
|
|
4822
|
+
_map = super().to_map()
|
|
4823
|
+
if _map is not None:
|
|
4824
|
+
return _map
|
|
4825
|
+
|
|
4826
|
+
result = dict()
|
|
4827
|
+
if self.attribute_name is not None:
|
|
4828
|
+
result['attribute_name'] = self.attribute_name
|
|
4829
|
+
if self.attribute_value is not None:
|
|
4830
|
+
result['attribute_value'] = self.attribute_value
|
|
4831
|
+
if self.data_type is not None:
|
|
4832
|
+
result['data_type'] = self.data_type
|
|
4833
|
+
if self.data_range_min is not None:
|
|
4834
|
+
result['data_range_min'] = self.data_range_min
|
|
4835
|
+
if self.data_range_max is not None:
|
|
4836
|
+
result['data_range_max'] = self.data_range_max
|
|
4837
|
+
return result
|
|
4838
|
+
|
|
4839
|
+
def from_map(self, m: dict = None):
|
|
4840
|
+
m = m or dict()
|
|
4841
|
+
if m.get('attribute_name') is not None:
|
|
4842
|
+
self.attribute_name = m.get('attribute_name')
|
|
4843
|
+
if m.get('attribute_value') is not None:
|
|
4844
|
+
self.attribute_value = m.get('attribute_value')
|
|
4845
|
+
if m.get('data_type') is not None:
|
|
4846
|
+
self.data_type = m.get('data_type')
|
|
4847
|
+
if m.get('data_range_min') is not None:
|
|
4848
|
+
self.data_range_min = m.get('data_range_min')
|
|
4849
|
+
if m.get('data_range_max') is not None:
|
|
4850
|
+
self.data_range_max = m.get('data_range_max')
|
|
4851
|
+
return self
|
|
4852
|
+
|
|
4853
|
+
|
|
4662
4854
|
class XrTicketPoolFailList(TeaModel):
|
|
4663
4855
|
def __init__(
|
|
4664
4856
|
self,
|
|
@@ -6286,6 +6478,57 @@ class BaiGoodsComparisonReqData(TeaModel):
|
|
|
6286
6478
|
return self
|
|
6287
6479
|
|
|
6288
6480
|
|
|
6481
|
+
class IotbasicDeviceModelAttributeFailInfo(TeaModel):
|
|
6482
|
+
def __init__(
|
|
6483
|
+
self,
|
|
6484
|
+
model_value: str = None,
|
|
6485
|
+
specs_list: List[str] = None,
|
|
6486
|
+
error_code: str = None,
|
|
6487
|
+
error_message: str = None,
|
|
6488
|
+
):
|
|
6489
|
+
# 型号
|
|
6490
|
+
self.model_value = model_value
|
|
6491
|
+
# 规格列表 为空表示使用标准规格
|
|
6492
|
+
self.specs_list = specs_list
|
|
6493
|
+
# 失败code
|
|
6494
|
+
self.error_code = error_code
|
|
6495
|
+
# 失败消息
|
|
6496
|
+
self.error_message = error_message
|
|
6497
|
+
|
|
6498
|
+
def validate(self):
|
|
6499
|
+
self.validate_required(self.model_value, 'model_value')
|
|
6500
|
+
self.validate_required(self.error_code, 'error_code')
|
|
6501
|
+
self.validate_required(self.error_message, 'error_message')
|
|
6502
|
+
|
|
6503
|
+
def to_map(self):
|
|
6504
|
+
_map = super().to_map()
|
|
6505
|
+
if _map is not None:
|
|
6506
|
+
return _map
|
|
6507
|
+
|
|
6508
|
+
result = dict()
|
|
6509
|
+
if self.model_value is not None:
|
|
6510
|
+
result['model_value'] = self.model_value
|
|
6511
|
+
if self.specs_list is not None:
|
|
6512
|
+
result['specs_list'] = self.specs_list
|
|
6513
|
+
if self.error_code is not None:
|
|
6514
|
+
result['error_code'] = self.error_code
|
|
6515
|
+
if self.error_message is not None:
|
|
6516
|
+
result['error_message'] = self.error_message
|
|
6517
|
+
return result
|
|
6518
|
+
|
|
6519
|
+
def from_map(self, m: dict = None):
|
|
6520
|
+
m = m or dict()
|
|
6521
|
+
if m.get('model_value') is not None:
|
|
6522
|
+
self.model_value = m.get('model_value')
|
|
6523
|
+
if m.get('specs_list') is not None:
|
|
6524
|
+
self.specs_list = m.get('specs_list')
|
|
6525
|
+
if m.get('error_code') is not None:
|
|
6526
|
+
self.error_code = m.get('error_code')
|
|
6527
|
+
if m.get('error_message') is not None:
|
|
6528
|
+
self.error_message = m.get('error_message')
|
|
6529
|
+
return self
|
|
6530
|
+
|
|
6531
|
+
|
|
6289
6532
|
class SendCollectorResult(TeaModel):
|
|
6290
6533
|
def __init__(
|
|
6291
6534
|
self,
|
|
@@ -7653,6 +7896,42 @@ class IotBasicDeviceRegisterResult(TeaModel):
|
|
|
7653
7896
|
return self
|
|
7654
7897
|
|
|
7655
7898
|
|
|
7899
|
+
class IotbasicDeviceModelAttributeInfo(TeaModel):
|
|
7900
|
+
def __init__(
|
|
7901
|
+
self,
|
|
7902
|
+
model_value: str = None,
|
|
7903
|
+
specs_list: List[str] = None,
|
|
7904
|
+
):
|
|
7905
|
+
# 型号
|
|
7906
|
+
self.model_value = model_value
|
|
7907
|
+
# 规格列表
|
|
7908
|
+
# 为空表示使用标准规格
|
|
7909
|
+
self.specs_list = specs_list
|
|
7910
|
+
|
|
7911
|
+
def validate(self):
|
|
7912
|
+
self.validate_required(self.model_value, 'model_value')
|
|
7913
|
+
|
|
7914
|
+
def to_map(self):
|
|
7915
|
+
_map = super().to_map()
|
|
7916
|
+
if _map is not None:
|
|
7917
|
+
return _map
|
|
7918
|
+
|
|
7919
|
+
result = dict()
|
|
7920
|
+
if self.model_value is not None:
|
|
7921
|
+
result['model_value'] = self.model_value
|
|
7922
|
+
if self.specs_list is not None:
|
|
7923
|
+
result['specs_list'] = self.specs_list
|
|
7924
|
+
return result
|
|
7925
|
+
|
|
7926
|
+
def from_map(self, m: dict = None):
|
|
7927
|
+
m = m or dict()
|
|
7928
|
+
if m.get('model_value') is not None:
|
|
7929
|
+
self.model_value = m.get('model_value')
|
|
7930
|
+
if m.get('specs_list') is not None:
|
|
7931
|
+
self.specs_list = m.get('specs_list')
|
|
7932
|
+
return self
|
|
7933
|
+
|
|
7934
|
+
|
|
7656
7935
|
class ThingsDidBaseRegisterRequest(TeaModel):
|
|
7657
7936
|
def __init__(
|
|
7658
7937
|
self,
|
|
@@ -20359,32 +20638,30 @@ class RegisterDevicecorpCustomerRequest(TeaModel):
|
|
|
20359
20638
|
self,
|
|
20360
20639
|
auth_token: str = None,
|
|
20361
20640
|
product_instance_id: str = None,
|
|
20362
|
-
|
|
20363
|
-
|
|
20364
|
-
|
|
20365
|
-
|
|
20366
|
-
|
|
20641
|
+
project_code: str = None,
|
|
20642
|
+
company_name: str = None,
|
|
20643
|
+
company_brand_name: str = None,
|
|
20644
|
+
contacts: str = None,
|
|
20645
|
+
contact_number: str = None,
|
|
20367
20646
|
):
|
|
20368
20647
|
# OAuth模式下的授权token
|
|
20369
20648
|
self.auth_token = auth_token
|
|
20370
20649
|
self.product_instance_id = product_instance_id
|
|
20371
|
-
#
|
|
20372
|
-
self.
|
|
20373
|
-
# 品类code
|
|
20374
|
-
self.category_code = category_code
|
|
20650
|
+
# 项目code
|
|
20651
|
+
self.project_code = project_code
|
|
20375
20652
|
# 企业名称
|
|
20376
|
-
self.
|
|
20377
|
-
#
|
|
20378
|
-
self.
|
|
20379
|
-
#
|
|
20380
|
-
self.
|
|
20653
|
+
self.company_name = company_name
|
|
20654
|
+
# 企业品牌名称
|
|
20655
|
+
self.company_brand_name = company_brand_name
|
|
20656
|
+
# 主联系人
|
|
20657
|
+
self.contacts = contacts
|
|
20658
|
+
# 主联系方式
|
|
20659
|
+
self.contact_number = contact_number
|
|
20381
20660
|
|
|
20382
20661
|
def validate(self):
|
|
20383
|
-
self.validate_required(self.
|
|
20384
|
-
self.validate_required(self.
|
|
20385
|
-
self.validate_required(self.
|
|
20386
|
-
self.validate_required(self.corp_name, 'corp_name')
|
|
20387
|
-
self.validate_required(self.corp_value, 'corp_value')
|
|
20662
|
+
self.validate_required(self.project_code, 'project_code')
|
|
20663
|
+
self.validate_required(self.company_name, 'company_name')
|
|
20664
|
+
self.validate_required(self.company_brand_name, 'company_brand_name')
|
|
20388
20665
|
|
|
20389
20666
|
def to_map(self):
|
|
20390
20667
|
_map = super().to_map()
|
|
@@ -20396,16 +20673,16 @@ class RegisterDevicecorpCustomerRequest(TeaModel):
|
|
|
20396
20673
|
result['auth_token'] = self.auth_token
|
|
20397
20674
|
if self.product_instance_id is not None:
|
|
20398
20675
|
result['product_instance_id'] = self.product_instance_id
|
|
20399
|
-
if self.
|
|
20400
|
-
result['
|
|
20401
|
-
if self.
|
|
20402
|
-
result['
|
|
20403
|
-
if self.
|
|
20404
|
-
result['
|
|
20405
|
-
if self.
|
|
20406
|
-
result['
|
|
20407
|
-
if self.
|
|
20408
|
-
result['
|
|
20676
|
+
if self.project_code is not None:
|
|
20677
|
+
result['project_code'] = self.project_code
|
|
20678
|
+
if self.company_name is not None:
|
|
20679
|
+
result['company_name'] = self.company_name
|
|
20680
|
+
if self.company_brand_name is not None:
|
|
20681
|
+
result['company_brand_name'] = self.company_brand_name
|
|
20682
|
+
if self.contacts is not None:
|
|
20683
|
+
result['contacts'] = self.contacts
|
|
20684
|
+
if self.contact_number is not None:
|
|
20685
|
+
result['contact_number'] = self.contact_number
|
|
20409
20686
|
return result
|
|
20410
20687
|
|
|
20411
20688
|
def from_map(self, m: dict = None):
|
|
@@ -20414,16 +20691,16 @@ class RegisterDevicecorpCustomerRequest(TeaModel):
|
|
|
20414
20691
|
self.auth_token = m.get('auth_token')
|
|
20415
20692
|
if m.get('product_instance_id') is not None:
|
|
20416
20693
|
self.product_instance_id = m.get('product_instance_id')
|
|
20417
|
-
if m.get('
|
|
20418
|
-
self.
|
|
20419
|
-
if m.get('
|
|
20420
|
-
self.
|
|
20421
|
-
if m.get('
|
|
20422
|
-
self.
|
|
20423
|
-
if m.get('
|
|
20424
|
-
self.
|
|
20425
|
-
if m.get('
|
|
20426
|
-
self.
|
|
20694
|
+
if m.get('project_code') is not None:
|
|
20695
|
+
self.project_code = m.get('project_code')
|
|
20696
|
+
if m.get('company_name') is not None:
|
|
20697
|
+
self.company_name = m.get('company_name')
|
|
20698
|
+
if m.get('company_brand_name') is not None:
|
|
20699
|
+
self.company_brand_name = m.get('company_brand_name')
|
|
20700
|
+
if m.get('contacts') is not None:
|
|
20701
|
+
self.contacts = m.get('contacts')
|
|
20702
|
+
if m.get('contact_number') is not None:
|
|
20703
|
+
self.contact_number = m.get('contact_number')
|
|
20427
20704
|
return self
|
|
20428
20705
|
|
|
20429
20706
|
|
|
@@ -22953,6 +23230,636 @@ class NotifyDigitalkeyWithholdResponse(TeaModel):
|
|
|
22953
23230
|
return self
|
|
22954
23231
|
|
|
22955
23232
|
|
|
23233
|
+
class QueryCategoryIndustryscenelistRequest(TeaModel):
|
|
23234
|
+
def __init__(
|
|
23235
|
+
self,
|
|
23236
|
+
auth_token: str = None,
|
|
23237
|
+
product_instance_id: str = None,
|
|
23238
|
+
category_type: str = None,
|
|
23239
|
+
):
|
|
23240
|
+
# OAuth模式下的授权token
|
|
23241
|
+
self.auth_token = auth_token
|
|
23242
|
+
self.product_instance_id = product_instance_id
|
|
23243
|
+
# 品类类型
|
|
23244
|
+
# 标准品类:standard
|
|
23245
|
+
# 自定义品类:custom
|
|
23246
|
+
self.category_type = category_type
|
|
23247
|
+
|
|
23248
|
+
def validate(self):
|
|
23249
|
+
self.validate_required(self.category_type, 'category_type')
|
|
23250
|
+
|
|
23251
|
+
def to_map(self):
|
|
23252
|
+
_map = super().to_map()
|
|
23253
|
+
if _map is not None:
|
|
23254
|
+
return _map
|
|
23255
|
+
|
|
23256
|
+
result = dict()
|
|
23257
|
+
if self.auth_token is not None:
|
|
23258
|
+
result['auth_token'] = self.auth_token
|
|
23259
|
+
if self.product_instance_id is not None:
|
|
23260
|
+
result['product_instance_id'] = self.product_instance_id
|
|
23261
|
+
if self.category_type is not None:
|
|
23262
|
+
result['category_type'] = self.category_type
|
|
23263
|
+
return result
|
|
23264
|
+
|
|
23265
|
+
def from_map(self, m: dict = None):
|
|
23266
|
+
m = m or dict()
|
|
23267
|
+
if m.get('auth_token') is not None:
|
|
23268
|
+
self.auth_token = m.get('auth_token')
|
|
23269
|
+
if m.get('product_instance_id') is not None:
|
|
23270
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
23271
|
+
if m.get('category_type') is not None:
|
|
23272
|
+
self.category_type = m.get('category_type')
|
|
23273
|
+
return self
|
|
23274
|
+
|
|
23275
|
+
|
|
23276
|
+
class QueryCategoryIndustryscenelistResponse(TeaModel):
|
|
23277
|
+
def __init__(
|
|
23278
|
+
self,
|
|
23279
|
+
req_msg_id: str = None,
|
|
23280
|
+
result_code: str = None,
|
|
23281
|
+
result_msg: str = None,
|
|
23282
|
+
success: bool = None,
|
|
23283
|
+
data: List[IotbasicCategoryIndustrySceneInfo] = None,
|
|
23284
|
+
):
|
|
23285
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
23286
|
+
self.req_msg_id = req_msg_id
|
|
23287
|
+
# 结果码,一般OK表示调用成功
|
|
23288
|
+
self.result_code = result_code
|
|
23289
|
+
# 异常信息的文本描述
|
|
23290
|
+
self.result_msg = result_msg
|
|
23291
|
+
# 接口调用结果
|
|
23292
|
+
self.success = success
|
|
23293
|
+
# 行业场景列表
|
|
23294
|
+
self.data = data
|
|
23295
|
+
|
|
23296
|
+
def validate(self):
|
|
23297
|
+
if self.data:
|
|
23298
|
+
for k in self.data:
|
|
23299
|
+
if k:
|
|
23300
|
+
k.validate()
|
|
23301
|
+
|
|
23302
|
+
def to_map(self):
|
|
23303
|
+
_map = super().to_map()
|
|
23304
|
+
if _map is not None:
|
|
23305
|
+
return _map
|
|
23306
|
+
|
|
23307
|
+
result = dict()
|
|
23308
|
+
if self.req_msg_id is not None:
|
|
23309
|
+
result['req_msg_id'] = self.req_msg_id
|
|
23310
|
+
if self.result_code is not None:
|
|
23311
|
+
result['result_code'] = self.result_code
|
|
23312
|
+
if self.result_msg is not None:
|
|
23313
|
+
result['result_msg'] = self.result_msg
|
|
23314
|
+
if self.success is not None:
|
|
23315
|
+
result['success'] = self.success
|
|
23316
|
+
result['data'] = []
|
|
23317
|
+
if self.data is not None:
|
|
23318
|
+
for k in self.data:
|
|
23319
|
+
result['data'].append(k.to_map() if k else None)
|
|
23320
|
+
return result
|
|
23321
|
+
|
|
23322
|
+
def from_map(self, m: dict = None):
|
|
23323
|
+
m = m or dict()
|
|
23324
|
+
if m.get('req_msg_id') is not None:
|
|
23325
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
23326
|
+
if m.get('result_code') is not None:
|
|
23327
|
+
self.result_code = m.get('result_code')
|
|
23328
|
+
if m.get('result_msg') is not None:
|
|
23329
|
+
self.result_msg = m.get('result_msg')
|
|
23330
|
+
if m.get('success') is not None:
|
|
23331
|
+
self.success = m.get('success')
|
|
23332
|
+
self.data = []
|
|
23333
|
+
if m.get('data') is not None:
|
|
23334
|
+
for k in m.get('data'):
|
|
23335
|
+
temp_model = IotbasicCategoryIndustrySceneInfo()
|
|
23336
|
+
self.data.append(temp_model.from_map(k))
|
|
23337
|
+
return self
|
|
23338
|
+
|
|
23339
|
+
|
|
23340
|
+
class CreateCategoryCustomRequest(TeaModel):
|
|
23341
|
+
def __init__(
|
|
23342
|
+
self,
|
|
23343
|
+
auth_token: str = None,
|
|
23344
|
+
product_instance_id: str = None,
|
|
23345
|
+
industry: str = None,
|
|
23346
|
+
scene: str = None,
|
|
23347
|
+
category_name: str = None,
|
|
23348
|
+
category_code: str = None,
|
|
23349
|
+
remark: str = None,
|
|
23350
|
+
):
|
|
23351
|
+
# OAuth模式下的授权token
|
|
23352
|
+
self.auth_token = auth_token
|
|
23353
|
+
self.product_instance_id = product_instance_id
|
|
23354
|
+
# 行业
|
|
23355
|
+
self.industry = industry
|
|
23356
|
+
# 场景
|
|
23357
|
+
self.scene = scene
|
|
23358
|
+
# 品类名称
|
|
23359
|
+
self.category_name = category_name
|
|
23360
|
+
# 品类标识符
|
|
23361
|
+
self.category_code = category_code
|
|
23362
|
+
# 描述内容
|
|
23363
|
+
self.remark = remark
|
|
23364
|
+
|
|
23365
|
+
def validate(self):
|
|
23366
|
+
self.validate_required(self.industry, 'industry')
|
|
23367
|
+
self.validate_required(self.scene, 'scene')
|
|
23368
|
+
self.validate_required(self.category_name, 'category_name')
|
|
23369
|
+
self.validate_required(self.category_code, 'category_code')
|
|
23370
|
+
|
|
23371
|
+
def to_map(self):
|
|
23372
|
+
_map = super().to_map()
|
|
23373
|
+
if _map is not None:
|
|
23374
|
+
return _map
|
|
23375
|
+
|
|
23376
|
+
result = dict()
|
|
23377
|
+
if self.auth_token is not None:
|
|
23378
|
+
result['auth_token'] = self.auth_token
|
|
23379
|
+
if self.product_instance_id is not None:
|
|
23380
|
+
result['product_instance_id'] = self.product_instance_id
|
|
23381
|
+
if self.industry is not None:
|
|
23382
|
+
result['industry'] = self.industry
|
|
23383
|
+
if self.scene is not None:
|
|
23384
|
+
result['scene'] = self.scene
|
|
23385
|
+
if self.category_name is not None:
|
|
23386
|
+
result['category_name'] = self.category_name
|
|
23387
|
+
if self.category_code is not None:
|
|
23388
|
+
result['category_code'] = self.category_code
|
|
23389
|
+
if self.remark is not None:
|
|
23390
|
+
result['remark'] = self.remark
|
|
23391
|
+
return result
|
|
23392
|
+
|
|
23393
|
+
def from_map(self, m: dict = None):
|
|
23394
|
+
m = m or dict()
|
|
23395
|
+
if m.get('auth_token') is not None:
|
|
23396
|
+
self.auth_token = m.get('auth_token')
|
|
23397
|
+
if m.get('product_instance_id') is not None:
|
|
23398
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
23399
|
+
if m.get('industry') is not None:
|
|
23400
|
+
self.industry = m.get('industry')
|
|
23401
|
+
if m.get('scene') is not None:
|
|
23402
|
+
self.scene = m.get('scene')
|
|
23403
|
+
if m.get('category_name') is not None:
|
|
23404
|
+
self.category_name = m.get('category_name')
|
|
23405
|
+
if m.get('category_code') is not None:
|
|
23406
|
+
self.category_code = m.get('category_code')
|
|
23407
|
+
if m.get('remark') is not None:
|
|
23408
|
+
self.remark = m.get('remark')
|
|
23409
|
+
return self
|
|
23410
|
+
|
|
23411
|
+
|
|
23412
|
+
class CreateCategoryCustomResponse(TeaModel):
|
|
23413
|
+
def __init__(
|
|
23414
|
+
self,
|
|
23415
|
+
req_msg_id: str = None,
|
|
23416
|
+
result_code: str = None,
|
|
23417
|
+
result_msg: str = None,
|
|
23418
|
+
success: bool = None,
|
|
23419
|
+
):
|
|
23420
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
23421
|
+
self.req_msg_id = req_msg_id
|
|
23422
|
+
# 结果码,一般OK表示调用成功
|
|
23423
|
+
self.result_code = result_code
|
|
23424
|
+
# 异常信息的文本描述
|
|
23425
|
+
self.result_msg = result_msg
|
|
23426
|
+
# 接口调用结果
|
|
23427
|
+
self.success = success
|
|
23428
|
+
|
|
23429
|
+
def validate(self):
|
|
23430
|
+
pass
|
|
23431
|
+
|
|
23432
|
+
def to_map(self):
|
|
23433
|
+
_map = super().to_map()
|
|
23434
|
+
if _map is not None:
|
|
23435
|
+
return _map
|
|
23436
|
+
|
|
23437
|
+
result = dict()
|
|
23438
|
+
if self.req_msg_id is not None:
|
|
23439
|
+
result['req_msg_id'] = self.req_msg_id
|
|
23440
|
+
if self.result_code is not None:
|
|
23441
|
+
result['result_code'] = self.result_code
|
|
23442
|
+
if self.result_msg is not None:
|
|
23443
|
+
result['result_msg'] = self.result_msg
|
|
23444
|
+
if self.success is not None:
|
|
23445
|
+
result['success'] = self.success
|
|
23446
|
+
return result
|
|
23447
|
+
|
|
23448
|
+
def from_map(self, m: dict = None):
|
|
23449
|
+
m = m or dict()
|
|
23450
|
+
if m.get('req_msg_id') is not None:
|
|
23451
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
23452
|
+
if m.get('result_code') is not None:
|
|
23453
|
+
self.result_code = m.get('result_code')
|
|
23454
|
+
if m.get('result_msg') is not None:
|
|
23455
|
+
self.result_msg = m.get('result_msg')
|
|
23456
|
+
if m.get('success') is not None:
|
|
23457
|
+
self.success = m.get('success')
|
|
23458
|
+
return self
|
|
23459
|
+
|
|
23460
|
+
|
|
23461
|
+
class CreateDeviceModelRequest(TeaModel):
|
|
23462
|
+
def __init__(
|
|
23463
|
+
self,
|
|
23464
|
+
auth_token: str = None,
|
|
23465
|
+
product_instance_id: str = None,
|
|
23466
|
+
category_type: str = None,
|
|
23467
|
+
category_code: str = None,
|
|
23468
|
+
attribute_info_list: List[IotbasicDeviceModelAttributeInfo] = None,
|
|
23469
|
+
fixed_attribute_info_list: List[IotbasicDeviceModelFixedAttributeInfo] = None,
|
|
23470
|
+
):
|
|
23471
|
+
# OAuth模式下的授权token
|
|
23472
|
+
self.auth_token = auth_token
|
|
23473
|
+
self.product_instance_id = product_instance_id
|
|
23474
|
+
# 品类类型
|
|
23475
|
+
# 标准品类:standard
|
|
23476
|
+
# 自定义品类:custom
|
|
23477
|
+
self.category_type = category_type
|
|
23478
|
+
# 品类编码
|
|
23479
|
+
self.category_code = category_code
|
|
23480
|
+
# 属性列表,与固定属性列表不能同时为空
|
|
23481
|
+
self.attribute_info_list = attribute_info_list
|
|
23482
|
+
# 固定属性列表,与属性列表不能同时为空
|
|
23483
|
+
self.fixed_attribute_info_list = fixed_attribute_info_list
|
|
23484
|
+
|
|
23485
|
+
def validate(self):
|
|
23486
|
+
self.validate_required(self.category_type, 'category_type')
|
|
23487
|
+
self.validate_required(self.category_code, 'category_code')
|
|
23488
|
+
if self.attribute_info_list:
|
|
23489
|
+
for k in self.attribute_info_list:
|
|
23490
|
+
if k:
|
|
23491
|
+
k.validate()
|
|
23492
|
+
if self.fixed_attribute_info_list:
|
|
23493
|
+
for k in self.fixed_attribute_info_list:
|
|
23494
|
+
if k:
|
|
23495
|
+
k.validate()
|
|
23496
|
+
|
|
23497
|
+
def to_map(self):
|
|
23498
|
+
_map = super().to_map()
|
|
23499
|
+
if _map is not None:
|
|
23500
|
+
return _map
|
|
23501
|
+
|
|
23502
|
+
result = dict()
|
|
23503
|
+
if self.auth_token is not None:
|
|
23504
|
+
result['auth_token'] = self.auth_token
|
|
23505
|
+
if self.product_instance_id is not None:
|
|
23506
|
+
result['product_instance_id'] = self.product_instance_id
|
|
23507
|
+
if self.category_type is not None:
|
|
23508
|
+
result['category_type'] = self.category_type
|
|
23509
|
+
if self.category_code is not None:
|
|
23510
|
+
result['category_code'] = self.category_code
|
|
23511
|
+
result['attribute_info_list'] = []
|
|
23512
|
+
if self.attribute_info_list is not None:
|
|
23513
|
+
for k in self.attribute_info_list:
|
|
23514
|
+
result['attribute_info_list'].append(k.to_map() if k else None)
|
|
23515
|
+
result['fixed_attribute_info_list'] = []
|
|
23516
|
+
if self.fixed_attribute_info_list is not None:
|
|
23517
|
+
for k in self.fixed_attribute_info_list:
|
|
23518
|
+
result['fixed_attribute_info_list'].append(k.to_map() if k else None)
|
|
23519
|
+
return result
|
|
23520
|
+
|
|
23521
|
+
def from_map(self, m: dict = None):
|
|
23522
|
+
m = m or dict()
|
|
23523
|
+
if m.get('auth_token') is not None:
|
|
23524
|
+
self.auth_token = m.get('auth_token')
|
|
23525
|
+
if m.get('product_instance_id') is not None:
|
|
23526
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
23527
|
+
if m.get('category_type') is not None:
|
|
23528
|
+
self.category_type = m.get('category_type')
|
|
23529
|
+
if m.get('category_code') is not None:
|
|
23530
|
+
self.category_code = m.get('category_code')
|
|
23531
|
+
self.attribute_info_list = []
|
|
23532
|
+
if m.get('attribute_info_list') is not None:
|
|
23533
|
+
for k in m.get('attribute_info_list'):
|
|
23534
|
+
temp_model = IotbasicDeviceModelAttributeInfo()
|
|
23535
|
+
self.attribute_info_list.append(temp_model.from_map(k))
|
|
23536
|
+
self.fixed_attribute_info_list = []
|
|
23537
|
+
if m.get('fixed_attribute_info_list') is not None:
|
|
23538
|
+
for k in m.get('fixed_attribute_info_list'):
|
|
23539
|
+
temp_model = IotbasicDeviceModelFixedAttributeInfo()
|
|
23540
|
+
self.fixed_attribute_info_list.append(temp_model.from_map(k))
|
|
23541
|
+
return self
|
|
23542
|
+
|
|
23543
|
+
|
|
23544
|
+
class CreateDeviceModelResponse(TeaModel):
|
|
23545
|
+
def __init__(
|
|
23546
|
+
self,
|
|
23547
|
+
req_msg_id: str = None,
|
|
23548
|
+
result_code: str = None,
|
|
23549
|
+
result_msg: str = None,
|
|
23550
|
+
success: bool = None,
|
|
23551
|
+
attribute_fail_list: List[IotbasicDeviceModelAttributeFailInfo] = None,
|
|
23552
|
+
fixed_attribute_fail_list: List[IotbasicDeviceModelFixedAttributeFailInfo] = None,
|
|
23553
|
+
):
|
|
23554
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
23555
|
+
self.req_msg_id = req_msg_id
|
|
23556
|
+
# 结果码,一般OK表示调用成功
|
|
23557
|
+
self.result_code = result_code
|
|
23558
|
+
# 异常信息的文本描述
|
|
23559
|
+
self.result_msg = result_msg
|
|
23560
|
+
# 接口调用结果
|
|
23561
|
+
self.success = success
|
|
23562
|
+
# 属性失败列表
|
|
23563
|
+
self.attribute_fail_list = attribute_fail_list
|
|
23564
|
+
# 固定属性失败列表
|
|
23565
|
+
self.fixed_attribute_fail_list = fixed_attribute_fail_list
|
|
23566
|
+
|
|
23567
|
+
def validate(self):
|
|
23568
|
+
if self.attribute_fail_list:
|
|
23569
|
+
for k in self.attribute_fail_list:
|
|
23570
|
+
if k:
|
|
23571
|
+
k.validate()
|
|
23572
|
+
if self.fixed_attribute_fail_list:
|
|
23573
|
+
for k in self.fixed_attribute_fail_list:
|
|
23574
|
+
if k:
|
|
23575
|
+
k.validate()
|
|
23576
|
+
|
|
23577
|
+
def to_map(self):
|
|
23578
|
+
_map = super().to_map()
|
|
23579
|
+
if _map is not None:
|
|
23580
|
+
return _map
|
|
23581
|
+
|
|
23582
|
+
result = dict()
|
|
23583
|
+
if self.req_msg_id is not None:
|
|
23584
|
+
result['req_msg_id'] = self.req_msg_id
|
|
23585
|
+
if self.result_code is not None:
|
|
23586
|
+
result['result_code'] = self.result_code
|
|
23587
|
+
if self.result_msg is not None:
|
|
23588
|
+
result['result_msg'] = self.result_msg
|
|
23589
|
+
if self.success is not None:
|
|
23590
|
+
result['success'] = self.success
|
|
23591
|
+
result['attribute_fail_list'] = []
|
|
23592
|
+
if self.attribute_fail_list is not None:
|
|
23593
|
+
for k in self.attribute_fail_list:
|
|
23594
|
+
result['attribute_fail_list'].append(k.to_map() if k else None)
|
|
23595
|
+
result['fixed_attribute_fail_list'] = []
|
|
23596
|
+
if self.fixed_attribute_fail_list is not None:
|
|
23597
|
+
for k in self.fixed_attribute_fail_list:
|
|
23598
|
+
result['fixed_attribute_fail_list'].append(k.to_map() if k else None)
|
|
23599
|
+
return result
|
|
23600
|
+
|
|
23601
|
+
def from_map(self, m: dict = None):
|
|
23602
|
+
m = m or dict()
|
|
23603
|
+
if m.get('req_msg_id') is not None:
|
|
23604
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
23605
|
+
if m.get('result_code') is not None:
|
|
23606
|
+
self.result_code = m.get('result_code')
|
|
23607
|
+
if m.get('result_msg') is not None:
|
|
23608
|
+
self.result_msg = m.get('result_msg')
|
|
23609
|
+
if m.get('success') is not None:
|
|
23610
|
+
self.success = m.get('success')
|
|
23611
|
+
self.attribute_fail_list = []
|
|
23612
|
+
if m.get('attribute_fail_list') is not None:
|
|
23613
|
+
for k in m.get('attribute_fail_list'):
|
|
23614
|
+
temp_model = IotbasicDeviceModelAttributeFailInfo()
|
|
23615
|
+
self.attribute_fail_list.append(temp_model.from_map(k))
|
|
23616
|
+
self.fixed_attribute_fail_list = []
|
|
23617
|
+
if m.get('fixed_attribute_fail_list') is not None:
|
|
23618
|
+
for k in m.get('fixed_attribute_fail_list'):
|
|
23619
|
+
temp_model = IotbasicDeviceModelFixedAttributeFailInfo()
|
|
23620
|
+
self.fixed_attribute_fail_list.append(temp_model.from_map(k))
|
|
23621
|
+
return self
|
|
23622
|
+
|
|
23623
|
+
|
|
23624
|
+
class CreateIotbasicProductRequest(TeaModel):
|
|
23625
|
+
def __init__(
|
|
23626
|
+
self,
|
|
23627
|
+
auth_token: str = None,
|
|
23628
|
+
product_instance_id: str = None,
|
|
23629
|
+
product_name: str = None,
|
|
23630
|
+
category_type: str = None,
|
|
23631
|
+
category_code: str = None,
|
|
23632
|
+
net_type: str = None,
|
|
23633
|
+
node_type: int = None,
|
|
23634
|
+
auth_type: str = None,
|
|
23635
|
+
description: str = None,
|
|
23636
|
+
):
|
|
23637
|
+
# OAuth模式下的授权token
|
|
23638
|
+
self.auth_token = auth_token
|
|
23639
|
+
self.product_instance_id = product_instance_id
|
|
23640
|
+
# 产品名称
|
|
23641
|
+
self.product_name = product_name
|
|
23642
|
+
# 品类类型
|
|
23643
|
+
# 标准品类:standard
|
|
23644
|
+
# 自定义品类:custom
|
|
23645
|
+
self.category_type = category_type
|
|
23646
|
+
# 品类编码
|
|
23647
|
+
self.category_code = category_code
|
|
23648
|
+
# 连网方式
|
|
23649
|
+
# WIFI: Wi-Fi
|
|
23650
|
+
# CELLULAR:蜂窝网ETHERNET:以太网OTHER:其他
|
|
23651
|
+
self.net_type = net_type
|
|
23652
|
+
# 设备种类
|
|
23653
|
+
# 0:直连网络设备
|
|
23654
|
+
# 1:网关设备
|
|
23655
|
+
self.node_type = node_type
|
|
23656
|
+
# 安全SDK接入模式
|
|
23657
|
+
# NO_SEC:不进行安全认证
|
|
23658
|
+
# PRODUCTION_PRESET:产线预置
|
|
23659
|
+
# AIR_DISTRIBUTION:空中发行
|
|
23660
|
+
self.auth_type = auth_type
|
|
23661
|
+
# 产品描述
|
|
23662
|
+
# 长度不超过100个字符
|
|
23663
|
+
self.description = description
|
|
23664
|
+
|
|
23665
|
+
def validate(self):
|
|
23666
|
+
self.validate_required(self.product_name, 'product_name')
|
|
23667
|
+
self.validate_required(self.category_type, 'category_type')
|
|
23668
|
+
self.validate_required(self.category_code, 'category_code')
|
|
23669
|
+
self.validate_required(self.net_type, 'net_type')
|
|
23670
|
+
self.validate_required(self.node_type, 'node_type')
|
|
23671
|
+
self.validate_required(self.auth_type, 'auth_type')
|
|
23672
|
+
|
|
23673
|
+
def to_map(self):
|
|
23674
|
+
_map = super().to_map()
|
|
23675
|
+
if _map is not None:
|
|
23676
|
+
return _map
|
|
23677
|
+
|
|
23678
|
+
result = dict()
|
|
23679
|
+
if self.auth_token is not None:
|
|
23680
|
+
result['auth_token'] = self.auth_token
|
|
23681
|
+
if self.product_instance_id is not None:
|
|
23682
|
+
result['product_instance_id'] = self.product_instance_id
|
|
23683
|
+
if self.product_name is not None:
|
|
23684
|
+
result['product_name'] = self.product_name
|
|
23685
|
+
if self.category_type is not None:
|
|
23686
|
+
result['category_type'] = self.category_type
|
|
23687
|
+
if self.category_code is not None:
|
|
23688
|
+
result['category_code'] = self.category_code
|
|
23689
|
+
if self.net_type is not None:
|
|
23690
|
+
result['net_type'] = self.net_type
|
|
23691
|
+
if self.node_type is not None:
|
|
23692
|
+
result['node_type'] = self.node_type
|
|
23693
|
+
if self.auth_type is not None:
|
|
23694
|
+
result['auth_type'] = self.auth_type
|
|
23695
|
+
if self.description is not None:
|
|
23696
|
+
result['description'] = self.description
|
|
23697
|
+
return result
|
|
23698
|
+
|
|
23699
|
+
def from_map(self, m: dict = None):
|
|
23700
|
+
m = m or dict()
|
|
23701
|
+
if m.get('auth_token') is not None:
|
|
23702
|
+
self.auth_token = m.get('auth_token')
|
|
23703
|
+
if m.get('product_instance_id') is not None:
|
|
23704
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
23705
|
+
if m.get('product_name') is not None:
|
|
23706
|
+
self.product_name = m.get('product_name')
|
|
23707
|
+
if m.get('category_type') is not None:
|
|
23708
|
+
self.category_type = m.get('category_type')
|
|
23709
|
+
if m.get('category_code') is not None:
|
|
23710
|
+
self.category_code = m.get('category_code')
|
|
23711
|
+
if m.get('net_type') is not None:
|
|
23712
|
+
self.net_type = m.get('net_type')
|
|
23713
|
+
if m.get('node_type') is not None:
|
|
23714
|
+
self.node_type = m.get('node_type')
|
|
23715
|
+
if m.get('auth_type') is not None:
|
|
23716
|
+
self.auth_type = m.get('auth_type')
|
|
23717
|
+
if m.get('description') is not None:
|
|
23718
|
+
self.description = m.get('description')
|
|
23719
|
+
return self
|
|
23720
|
+
|
|
23721
|
+
|
|
23722
|
+
class CreateIotbasicProductResponse(TeaModel):
|
|
23723
|
+
def __init__(
|
|
23724
|
+
self,
|
|
23725
|
+
req_msg_id: str = None,
|
|
23726
|
+
result_code: str = None,
|
|
23727
|
+
result_msg: str = None,
|
|
23728
|
+
success: bool = None,
|
|
23729
|
+
):
|
|
23730
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
23731
|
+
self.req_msg_id = req_msg_id
|
|
23732
|
+
# 结果码,一般OK表示调用成功
|
|
23733
|
+
self.result_code = result_code
|
|
23734
|
+
# 异常信息的文本描述
|
|
23735
|
+
self.result_msg = result_msg
|
|
23736
|
+
# 接口调用结果
|
|
23737
|
+
self.success = success
|
|
23738
|
+
|
|
23739
|
+
def validate(self):
|
|
23740
|
+
pass
|
|
23741
|
+
|
|
23742
|
+
def to_map(self):
|
|
23743
|
+
_map = super().to_map()
|
|
23744
|
+
if _map is not None:
|
|
23745
|
+
return _map
|
|
23746
|
+
|
|
23747
|
+
result = dict()
|
|
23748
|
+
if self.req_msg_id is not None:
|
|
23749
|
+
result['req_msg_id'] = self.req_msg_id
|
|
23750
|
+
if self.result_code is not None:
|
|
23751
|
+
result['result_code'] = self.result_code
|
|
23752
|
+
if self.result_msg is not None:
|
|
23753
|
+
result['result_msg'] = self.result_msg
|
|
23754
|
+
if self.success is not None:
|
|
23755
|
+
result['success'] = self.success
|
|
23756
|
+
return result
|
|
23757
|
+
|
|
23758
|
+
def from_map(self, m: dict = None):
|
|
23759
|
+
m = m or dict()
|
|
23760
|
+
if m.get('req_msg_id') is not None:
|
|
23761
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
23762
|
+
if m.get('result_code') is not None:
|
|
23763
|
+
self.result_code = m.get('result_code')
|
|
23764
|
+
if m.get('result_msg') is not None:
|
|
23765
|
+
self.result_msg = m.get('result_msg')
|
|
23766
|
+
if m.get('success') is not None:
|
|
23767
|
+
self.success = m.get('success')
|
|
23768
|
+
return self
|
|
23769
|
+
|
|
23770
|
+
|
|
23771
|
+
class QueryDigitalkeyWithholdpayRequest(TeaModel):
|
|
23772
|
+
def __init__(
|
|
23773
|
+
self,
|
|
23774
|
+
auth_token: str = None,
|
|
23775
|
+
product_instance_id: str = None,
|
|
23776
|
+
out_trade_no: str = None,
|
|
23777
|
+
):
|
|
23778
|
+
# OAuth模式下的授权token
|
|
23779
|
+
self.auth_token = auth_token
|
|
23780
|
+
self.product_instance_id = product_instance_id
|
|
23781
|
+
# 20150320010101001
|
|
23782
|
+
self.out_trade_no = out_trade_no
|
|
23783
|
+
|
|
23784
|
+
def validate(self):
|
|
23785
|
+
self.validate_required(self.out_trade_no, 'out_trade_no')
|
|
23786
|
+
|
|
23787
|
+
def to_map(self):
|
|
23788
|
+
_map = super().to_map()
|
|
23789
|
+
if _map is not None:
|
|
23790
|
+
return _map
|
|
23791
|
+
|
|
23792
|
+
result = dict()
|
|
23793
|
+
if self.auth_token is not None:
|
|
23794
|
+
result['auth_token'] = self.auth_token
|
|
23795
|
+
if self.product_instance_id is not None:
|
|
23796
|
+
result['product_instance_id'] = self.product_instance_id
|
|
23797
|
+
if self.out_trade_no is not None:
|
|
23798
|
+
result['out_trade_no'] = self.out_trade_no
|
|
23799
|
+
return result
|
|
23800
|
+
|
|
23801
|
+
def from_map(self, m: dict = None):
|
|
23802
|
+
m = m or dict()
|
|
23803
|
+
if m.get('auth_token') is not None:
|
|
23804
|
+
self.auth_token = m.get('auth_token')
|
|
23805
|
+
if m.get('product_instance_id') is not None:
|
|
23806
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
23807
|
+
if m.get('out_trade_no') is not None:
|
|
23808
|
+
self.out_trade_no = m.get('out_trade_no')
|
|
23809
|
+
return self
|
|
23810
|
+
|
|
23811
|
+
|
|
23812
|
+
class QueryDigitalkeyWithholdpayResponse(TeaModel):
|
|
23813
|
+
def __init__(
|
|
23814
|
+
self,
|
|
23815
|
+
req_msg_id: str = None,
|
|
23816
|
+
result_code: str = None,
|
|
23817
|
+
result_msg: str = None,
|
|
23818
|
+
antdigital_withhold_response: AntdigitalWithHoldResponse = None,
|
|
23819
|
+
):
|
|
23820
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
23821
|
+
self.req_msg_id = req_msg_id
|
|
23822
|
+
# 结果码,一般OK表示调用成功
|
|
23823
|
+
self.result_code = result_code
|
|
23824
|
+
# 异常信息的文本描述
|
|
23825
|
+
self.result_msg = result_msg
|
|
23826
|
+
# 返回对象
|
|
23827
|
+
self.antdigital_withhold_response = antdigital_withhold_response
|
|
23828
|
+
|
|
23829
|
+
def validate(self):
|
|
23830
|
+
if self.antdigital_withhold_response:
|
|
23831
|
+
self.antdigital_withhold_response.validate()
|
|
23832
|
+
|
|
23833
|
+
def to_map(self):
|
|
23834
|
+
_map = super().to_map()
|
|
23835
|
+
if _map is not None:
|
|
23836
|
+
return _map
|
|
23837
|
+
|
|
23838
|
+
result = dict()
|
|
23839
|
+
if self.req_msg_id is not None:
|
|
23840
|
+
result['req_msg_id'] = self.req_msg_id
|
|
23841
|
+
if self.result_code is not None:
|
|
23842
|
+
result['result_code'] = self.result_code
|
|
23843
|
+
if self.result_msg is not None:
|
|
23844
|
+
result['result_msg'] = self.result_msg
|
|
23845
|
+
if self.antdigital_withhold_response is not None:
|
|
23846
|
+
result['antdigital_withhold_response'] = self.antdigital_withhold_response.to_map()
|
|
23847
|
+
return result
|
|
23848
|
+
|
|
23849
|
+
def from_map(self, m: dict = None):
|
|
23850
|
+
m = m or dict()
|
|
23851
|
+
if m.get('req_msg_id') is not None:
|
|
23852
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
23853
|
+
if m.get('result_code') is not None:
|
|
23854
|
+
self.result_code = m.get('result_code')
|
|
23855
|
+
if m.get('result_msg') is not None:
|
|
23856
|
+
self.result_msg = m.get('result_msg')
|
|
23857
|
+
if m.get('antdigital_withhold_response') is not None:
|
|
23858
|
+
temp_model = AntdigitalWithHoldResponse()
|
|
23859
|
+
self.antdigital_withhold_response = temp_model.from_map(m['antdigital_withhold_response'])
|
|
23860
|
+
return self
|
|
23861
|
+
|
|
23862
|
+
|
|
22956
23863
|
class QueryIotplatformPurchaseorderRequest(TeaModel):
|
|
22957
23864
|
def __init__(
|
|
22958
23865
|
self,
|
|
@@ -36808,6 +37715,134 @@ class CallbackThingServicebyeventResponse(TeaModel):
|
|
|
36808
37715
|
return self
|
|
36809
37716
|
|
|
36810
37717
|
|
|
37718
|
+
class ImportTechintegrationSkugrantwhitelistRequest(TeaModel):
|
|
37719
|
+
def __init__(
|
|
37720
|
+
self,
|
|
37721
|
+
auth_token: str = None,
|
|
37722
|
+
product_instance_id: str = None,
|
|
37723
|
+
sku_model: str = None,
|
|
37724
|
+
scheme_type: str = None,
|
|
37725
|
+
scene: str = None,
|
|
37726
|
+
sn_list: List[str] = None,
|
|
37727
|
+
):
|
|
37728
|
+
# OAuth模式下的授权token
|
|
37729
|
+
self.auth_token = auth_token
|
|
37730
|
+
self.product_instance_id = product_instance_id
|
|
37731
|
+
# 产品型号
|
|
37732
|
+
self.sku_model = sku_model
|
|
37733
|
+
# 产品形态,取值范围:RTOS、TEE、Android
|
|
37734
|
+
self.scheme_type = scheme_type
|
|
37735
|
+
# 场景码
|
|
37736
|
+
self.scene = scene
|
|
37737
|
+
# SN列表,单次最多100条
|
|
37738
|
+
self.sn_list = sn_list
|
|
37739
|
+
|
|
37740
|
+
def validate(self):
|
|
37741
|
+
self.validate_required(self.sku_model, 'sku_model')
|
|
37742
|
+
self.validate_required(self.scheme_type, 'scheme_type')
|
|
37743
|
+
self.validate_required(self.scene, 'scene')
|
|
37744
|
+
self.validate_required(self.sn_list, 'sn_list')
|
|
37745
|
+
|
|
37746
|
+
def to_map(self):
|
|
37747
|
+
_map = super().to_map()
|
|
37748
|
+
if _map is not None:
|
|
37749
|
+
return _map
|
|
37750
|
+
|
|
37751
|
+
result = dict()
|
|
37752
|
+
if self.auth_token is not None:
|
|
37753
|
+
result['auth_token'] = self.auth_token
|
|
37754
|
+
if self.product_instance_id is not None:
|
|
37755
|
+
result['product_instance_id'] = self.product_instance_id
|
|
37756
|
+
if self.sku_model is not None:
|
|
37757
|
+
result['sku_model'] = self.sku_model
|
|
37758
|
+
if self.scheme_type is not None:
|
|
37759
|
+
result['scheme_type'] = self.scheme_type
|
|
37760
|
+
if self.scene is not None:
|
|
37761
|
+
result['scene'] = self.scene
|
|
37762
|
+
if self.sn_list is not None:
|
|
37763
|
+
result['sn_list'] = self.sn_list
|
|
37764
|
+
return result
|
|
37765
|
+
|
|
37766
|
+
def from_map(self, m: dict = None):
|
|
37767
|
+
m = m or dict()
|
|
37768
|
+
if m.get('auth_token') is not None:
|
|
37769
|
+
self.auth_token = m.get('auth_token')
|
|
37770
|
+
if m.get('product_instance_id') is not None:
|
|
37771
|
+
self.product_instance_id = m.get('product_instance_id')
|
|
37772
|
+
if m.get('sku_model') is not None:
|
|
37773
|
+
self.sku_model = m.get('sku_model')
|
|
37774
|
+
if m.get('scheme_type') is not None:
|
|
37775
|
+
self.scheme_type = m.get('scheme_type')
|
|
37776
|
+
if m.get('scene') is not None:
|
|
37777
|
+
self.scene = m.get('scene')
|
|
37778
|
+
if m.get('sn_list') is not None:
|
|
37779
|
+
self.sn_list = m.get('sn_list')
|
|
37780
|
+
return self
|
|
37781
|
+
|
|
37782
|
+
|
|
37783
|
+
class ImportTechintegrationSkugrantwhitelistResponse(TeaModel):
|
|
37784
|
+
def __init__(
|
|
37785
|
+
self,
|
|
37786
|
+
req_msg_id: str = None,
|
|
37787
|
+
result_code: str = None,
|
|
37788
|
+
result_msg: str = None,
|
|
37789
|
+
success_sn_list: List[str] = None,
|
|
37790
|
+
existed_sn_list: List[str] = None,
|
|
37791
|
+
invalid_sn_list: List[str] = None,
|
|
37792
|
+
):
|
|
37793
|
+
# 请求唯一ID,用于链路跟踪和问题排查
|
|
37794
|
+
self.req_msg_id = req_msg_id
|
|
37795
|
+
# 结果码,一般OK表示调用成功
|
|
37796
|
+
self.result_code = result_code
|
|
37797
|
+
# 异常信息的文本描述
|
|
37798
|
+
self.result_msg = result_msg
|
|
37799
|
+
# 成功导入的sn列表
|
|
37800
|
+
self.success_sn_list = success_sn_list
|
|
37801
|
+
# 已经存在的sn列表(不会导入)
|
|
37802
|
+
self.existed_sn_list = existed_sn_list
|
|
37803
|
+
# 不合法的sn列表(不会导入)
|
|
37804
|
+
self.invalid_sn_list = invalid_sn_list
|
|
37805
|
+
|
|
37806
|
+
def validate(self):
|
|
37807
|
+
pass
|
|
37808
|
+
|
|
37809
|
+
def to_map(self):
|
|
37810
|
+
_map = super().to_map()
|
|
37811
|
+
if _map is not None:
|
|
37812
|
+
return _map
|
|
37813
|
+
|
|
37814
|
+
result = dict()
|
|
37815
|
+
if self.req_msg_id is not None:
|
|
37816
|
+
result['req_msg_id'] = self.req_msg_id
|
|
37817
|
+
if self.result_code is not None:
|
|
37818
|
+
result['result_code'] = self.result_code
|
|
37819
|
+
if self.result_msg is not None:
|
|
37820
|
+
result['result_msg'] = self.result_msg
|
|
37821
|
+
if self.success_sn_list is not None:
|
|
37822
|
+
result['success_sn_list'] = self.success_sn_list
|
|
37823
|
+
if self.existed_sn_list is not None:
|
|
37824
|
+
result['existed_sn_list'] = self.existed_sn_list
|
|
37825
|
+
if self.invalid_sn_list is not None:
|
|
37826
|
+
result['invalid_sn_list'] = self.invalid_sn_list
|
|
37827
|
+
return result
|
|
37828
|
+
|
|
37829
|
+
def from_map(self, m: dict = None):
|
|
37830
|
+
m = m or dict()
|
|
37831
|
+
if m.get('req_msg_id') is not None:
|
|
37832
|
+
self.req_msg_id = m.get('req_msg_id')
|
|
37833
|
+
if m.get('result_code') is not None:
|
|
37834
|
+
self.result_code = m.get('result_code')
|
|
37835
|
+
if m.get('result_msg') is not None:
|
|
37836
|
+
self.result_msg = m.get('result_msg')
|
|
37837
|
+
if m.get('success_sn_list') is not None:
|
|
37838
|
+
self.success_sn_list = m.get('success_sn_list')
|
|
37839
|
+
if m.get('existed_sn_list') is not None:
|
|
37840
|
+
self.existed_sn_list = m.get('existed_sn_list')
|
|
37841
|
+
if m.get('invalid_sn_list') is not None:
|
|
37842
|
+
self.invalid_sn_list = m.get('invalid_sn_list')
|
|
37843
|
+
return self
|
|
37844
|
+
|
|
37845
|
+
|
|
36811
37846
|
class ExecThingsdidOneapiRequest(TeaModel):
|
|
36812
37847
|
def __init__(
|
|
36813
37848
|
self,
|