diff --git a/aliyun-python-sdk-qianzhou/ChangeLog.txt b/aliyun-python-sdk-qianzhou/ChangeLog.txt new file mode 100644 index 000000000..d25e1f4c6 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/ChangeLog.txt @@ -0,0 +1,3 @@ +2024-11-22 Version: 1.0.0 +- Generated 2021-11-11 for `qianzhou`. + diff --git a/aliyun-python-sdk-qianzhou/LICENSE b/aliyun-python-sdk-qianzhou/LICENSE new file mode 100644 index 000000000..85815c802 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/LICENSE @@ -0,0 +1,13 @@ +Copyright 1999-present Alibaba Group Holding Ltd. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file diff --git a/aliyun-python-sdk-qianzhou/MANIFEST.in b/aliyun-python-sdk-qianzhou/MANIFEST.in new file mode 100644 index 000000000..03d3d04ba --- /dev/null +++ b/aliyun-python-sdk-qianzhou/MANIFEST.in @@ -0,0 +1 @@ +include LICENSE README.rst ChangeLog.txt \ No newline at end of file diff --git a/aliyun-python-sdk-qianzhou/README.rst b/aliyun-python-sdk-qianzhou/README.rst new file mode 100644 index 000000000..a6feb3f45 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/README.rst @@ -0,0 +1,15 @@ +============================================================= +aliyun-python-sdk-qianzhou +============================================================= + +.. This is the qianzhou module of Aliyun Python SDK. + +Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services. + +This module works on Python versions: + +3.7 and greater + +**Documentation:** + +Please visit `http://develop.aliyun.com/sdk/python `_ diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/__init__.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/__init__.py new file mode 100644 index 000000000..75977e6f4 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/__init__.py @@ -0,0 +1 @@ +__version__ = '1.0.0' \ No newline at end of file diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/__init__.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/AICreateSessionMessageRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/AICreateSessionMessageRequest.py new file mode 100644 index 000000000..5d074b17b --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/AICreateSessionMessageRequest.py @@ -0,0 +1,39 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest +import json + +class AICreateSessionMessageRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'AICreateSessionMessage') + self.set_uri_pattern('/popapi/AICreateSessionMessage') + self.set_method('POST') + + def get_employee_id(self): # String + return self.get_query_params().get('employee_id') + + def set_employee_id(self, employee_id): # String + self.add_query_param('employee_id', employee_id) + def get_body(self): # Struct + return self.get_body_params().get('body') + + def set_body(self, body): # Struct + self.add_body_params("body", json.dumps(body)) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/CreateDiagnosisRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/CreateDiagnosisRequest.py new file mode 100644 index 000000000..f9d0934b5 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/CreateDiagnosisRequest.py @@ -0,0 +1,43 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class CreateDiagnosisRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'CreateDiagnosis') + self.set_uri_pattern('/popapi/createDiagnosis') + self.set_method('POST') + + def get_diagnosisType(self): # String + return self.get_query_params().get('diagnosisType') + + def set_diagnosisType(self, diagnosisType): # String + self.add_query_param('diagnosisType', diagnosisType) + def get_clusterID(self): # String + return self.get_query_params().get('clusterID') + + def set_clusterID(self, clusterID): # String + self.add_query_param('clusterID', clusterID) + def get_body(self): # String + return self.get_body_params().get('body') + + def set_body(self, body): # String + self.add_body_params('body', body) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetClusterRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetClusterRequest.py new file mode 100644 index 000000000..3bb43b150 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetClusterRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class GetClusterRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'GetCluster') + self.set_uri_pattern('/popapi/getCluster') + self.set_method('GET') + + def get_clusterID(self): # String + return self.get_query_params().get('clusterID') + + def set_clusterID(self, clusterID): # String + self.add_query_param('clusterID', clusterID) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetClusterWarningRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetClusterWarningRequest.py new file mode 100644 index 000000000..06d1b9ddf --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetClusterWarningRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class GetClusterWarningRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'GetClusterWarning') + self.set_uri_pattern('/popapi/getKeyClusterWarningList') + self.set_method('GET') + + def get_clusterID(self): # String + return self.get_query_params().get('clusterID') + + def set_clusterID(self, clusterID): # String + self.add_query_param('clusterID', clusterID) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetDiagnosisResultRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetDiagnosisResultRequest.py new file mode 100644 index 000000000..436ad6237 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetDiagnosisResultRequest.py @@ -0,0 +1,38 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class GetDiagnosisResultRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'GetDiagnosisResult') + self.set_uri_pattern('/popapi/GetDiagnosisResult') + self.set_method('GET') + + def get_diagnosisId(self): # String + return self.get_query_params().get('diagnosisId') + + def set_diagnosisId(self, diagnosisId): # String + self.add_query_param('diagnosisId', diagnosisId) + def get_ownerUid(self): # String + return self.get_query_params().get('ownerUid') + + def set_ownerUid(self, ownerUid): # String + self.add_query_param('ownerUid', ownerUid) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetUserClusterWarningRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetUserClusterWarningRequest.py new file mode 100644 index 000000000..59f6c33ed --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetUserClusterWarningRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class GetUserClusterWarningRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'GetUserClusterWarning') + self.set_uri_pattern('/popapi/listUserKeyClusters') + self.set_method('GET') + + def get_userID(self): # String + return self.get_query_params().get('userID') + + def set_userID(self, userID): # String + self.add_query_param('userID', userID) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetWebshellTokenRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetWebshellTokenRequest.py new file mode 100644 index 000000000..3ceefeab0 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/GetWebshellTokenRequest.py @@ -0,0 +1,28 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class GetWebshellTokenRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'GetWebshellToken') + self.set_uri_pattern('/popapi/getChorusToken') + self.set_method('GET') + diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/HelloRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/HelloRequest.py new file mode 100644 index 000000000..48fe24c48 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/HelloRequest.py @@ -0,0 +1,34 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class HelloRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'Hello') + self.set_protocol_type('https') + self.set_uri_pattern('/popapi/hello') + self.set_method('GET') + + def get_user(self): # String + return self.get_query_params().get('user') + + def set_user(self, user): # String + self.add_query_param('user', user) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListClusterDeprecatedAPIRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListClusterDeprecatedAPIRequest.py new file mode 100644 index 000000000..e934fcdc9 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListClusterDeprecatedAPIRequest.py @@ -0,0 +1,48 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class ListClusterDeprecatedAPIRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'ListClusterDeprecatedAPI') + self.set_uri_pattern('/popapi/listDeprecatedK8sAPI') + self.set_method('POST') + + def get_cluster_id(self): # String + return self.get_query_params().get('cluster_id') + + def set_cluster_id(self, cluster_id): # String + self.add_query_param('cluster_id', cluster_id) + def get_page_no(self): # Integer + return self.get_query_params().get('page_no') + + def set_page_no(self, page_no): # Integer + self.add_query_param('page_no', page_no) + def get_target_version(self): # String + return self.get_query_params().get('target_version') + + def set_target_version(self, target_version): # String + self.add_query_param('target_version', target_version) + def get_page_size(self): # Integer + return self.get_query_params().get('page_size') + + def set_page_size(self, page_size): # Integer + self.add_query_param('page_size', page_size) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListClusterImagesRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListClusterImagesRequest.py new file mode 100644 index 000000000..14c3fda4d --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListClusterImagesRequest.py @@ -0,0 +1,58 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class ListClusterImagesRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'ListClusterImages') + self.set_uri_pattern('/popapi/listClusterPodImages') + self.set_method('POST') + + def get_image_name(self): # String + return self.get_query_params().get('image_name') + + def set_image_name(self, image_name): # String + self.add_query_param('image_name', image_name) + def get_uid(self): # String + return self.get_query_params().get('uid') + + def set_uid(self, uid): # String + self.add_query_param('uid', uid) + def get_cluster_id(self): # String + return self.get_query_params().get('cluster_id') + + def set_cluster_id(self, cluster_id): # String + self.add_query_param('cluster_id', cluster_id) + def get_image_hash(self): # String + return self.get_query_params().get('image_hash') + + def set_image_hash(self, image_hash): # String + self.add_query_param('image_hash', image_hash) + def get_page_no(self): # Integer + return self.get_query_params().get('page_no') + + def set_page_no(self, page_no): # Integer + self.add_query_param('page_no', page_no) + def get_page_size(self): # Integer + return self.get_query_params().get('page_size') + + def set_page_size(self, page_size): # Integer + self.add_query_param('page_size', page_size) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListUserClustersRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListUserClustersRequest.py new file mode 100644 index 000000000..41ff789e7 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/ListUserClustersRequest.py @@ -0,0 +1,43 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class ListUserClustersRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'ListUserClusters') + self.set_uri_pattern('/popapi/listUserClusters') + self.set_method('GET') + + def get_current(self): # String + return self.get_query_params().get('current') + + def set_current(self, current): # String + self.add_query_param('current', current) + def get_pageSize(self): # String + return self.get_query_params().get('pageSize') + + def set_pageSize(self, pageSize): # String + self.add_query_param('pageSize', pageSize) + def get_userID(self): # String + return self.get_query_params().get('userID') + + def set_userID(self, userID): # String + self.add_query_param('userID', userID) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/QueryByInstanceInfoRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/QueryByInstanceInfoRequest.py new file mode 100644 index 000000000..b0e9d2f0c --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/QueryByInstanceInfoRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class QueryByInstanceInfoRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'QueryByInstanceInfo') + self.set_uri_pattern('/popapi/queryByInstanceInfo') + self.set_method('POST') + + def get_body(self): # String + return self.get_body_params().get('body') + + def set_body(self, body): # String + self.add_body_params('body', body) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/QueryNodeInfoRequest.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/QueryNodeInfoRequest.py new file mode 100644 index 000000000..22d303b83 --- /dev/null +++ b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/QueryNodeInfoRequest.py @@ -0,0 +1,33 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +from aliyunsdkcore.request import RoaRequest + +class QueryNodeInfoRequest(RoaRequest): + + def __init__(self): + RoaRequest.__init__(self, 'qianzhou', '2021-11-11', 'QueryNodeInfo') + self.set_uri_pattern('/popapi/queryByInstanceId') + self.set_method('GET') + + def get_instanceId(self): # String + return self.get_query_params().get('instanceId') + + def set_instanceId(self, instanceId): # String + self.add_query_param('instanceId', instanceId) diff --git a/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/__init__.py b/aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/request/v20211111/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/aliyun-python-sdk-qianzhou/setup.cfg b/aliyun-python-sdk-qianzhou/setup.cfg new file mode 100644 index 000000000..f091bdf4a --- /dev/null +++ b/aliyun-python-sdk-qianzhou/setup.cfg @@ -0,0 +1,5 @@ +[metadata] +license_file = LICENSE + +[bdist_wheel] +universal = 1 diff --git a/aliyun-python-sdk-qianzhou/setup.py b/aliyun-python-sdk-qianzhou/setup.py new file mode 100644 index 000000000..5b4be96ae --- /dev/null +++ b/aliyun-python-sdk-qianzhou/setup.py @@ -0,0 +1,78 @@ +#!/usr/bin/python +''' + Licensed to the Apache Software Foundation (ASF) under one + or more contributor license agreements. See the NOTICE file + distributed with this work for additional information + regarding copyright ownership. The ASF licenses this file + to you under the Apache License, Version 2.0 (the + "License"); you may not use this file except in compliance + with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, + software distributed under the License is distributed on an + "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + KIND, either express or implied. See the License for the + specific language governing permissions and limitations + under the License. +''' + +from setuptools import setup, find_packages +import os +import sys + +""" +setup module for qianzhou. + +Created on 7/3/2015 + +@author: alex +""" + +PACKAGE = "aliyunsdkqianzhou" +NAME = "aliyun-python-sdk-qianzhou" +DESCRIPTION = "The qianzhou module of Aliyun Python sdk." +AUTHOR = "Aliyun" +AUTHOR_EMAIL = "aliyun-developers-efficiency@list.alibaba-inc.com" +URL = "http://develop.aliyun.com/sdk/python" + +TOPDIR = os.path.dirname(__file__) or "." +VERSION = __import__(PACKAGE).__version__ + +desc_file = open("README.rst") +try: + LONG_DESCRIPTION = desc_file.read() +finally: + desc_file.close() + +setup( + name=NAME, + version=VERSION, + description=DESCRIPTION, + long_description=LONG_DESCRIPTION, + author=AUTHOR, + author_email=AUTHOR_EMAIL, + license="Apache", + url=URL, + keywords=["aliyun","sdk","qianzhou"], + packages=find_packages(exclude=["tests*"]), + include_package_data=True, + platforms="any", + install_requires=["aliyun-python-sdk-core>=2.11.5",], + classifiers=( + "Development Status :: 4 - Beta", + "Intended Audience :: Developers", + "License :: OSI Approved :: Apache Software License", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Topic :: Software Development", + ) + +) \ No newline at end of file