Skip to content

Commit 636b3e5

Browse files
committed
Support new AICS OpenApi invoke.
1 parent 62ada84 commit 636b3e5

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

aliyun-python-sdk-brain-industrial/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-28 Version: 1.0.3
2+
- Support new AICS OpenApi invoke.
3+
14
2025-03-21 Version: 1.0.2
25
- AICS OpenApi Invoke
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.2'
1+
__version__ = '1.0.3'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkbrain_industrial.endpoint import endpoint_data
22+
import json
23+
24+
class AicsOpenApiInvokeRequest(RpcRequest):
25+
26+
def __init__(self):
27+
RpcRequest.__init__(self, 'brain-industrial', '2020-09-20', 'AicsOpenApiInvoke','aistudio')
28+
self.set_protocol_type('https')
29+
self.set_method('POST')
30+
31+
if hasattr(self, "endpoint_map"):
32+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
33+
if hasattr(self, "endpoint_regional"):
34+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
35+
36+
def get_Type(self): # String
37+
return self.get_query_params().get('Type')
38+
39+
def set_Type(self, Type): # String
40+
self.add_query_param('Type', Type)
41+
def get_Param(self): # Map
42+
return self.get_body_params().get('Param')
43+
44+
def set_Param(self, Param): # Map
45+
self.add_body_params("Param", json.dumps(Param))
46+
def get_ServiceId(self): # String
47+
return self.get_query_params().get('ServiceId')
48+
49+
def set_ServiceId(self, ServiceId): # String
50+
self.add_query_param('ServiceId', ServiceId)
51+
def get_NodeId(self): # String
52+
return self.get_query_params().get('NodeId')
53+
54+
def set_NodeId(self, NodeId): # String
55+
self.add_query_param('NodeId', NodeId)

0 commit comments

Comments
 (0)