Skip to content

Commit

Permalink
Generated 2021-11-11 for qianzhou.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 22, 2024
1 parent 58ca08e commit ed28964
Show file tree
Hide file tree
Showing 22 changed files with 612 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-qianzhou/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2024-11-22 Version: 1.0.0
- Generated 2021-11-11 for `qianzhou`.

13 changes: 13 additions & 0 deletions aliyun-python-sdk-qianzhou/LICENSE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 1 addition & 0 deletions aliyun-python-sdk-qianzhou/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include LICENSE README.rst ChangeLog.txt
15 changes: 15 additions & 0 deletions aliyun-python-sdk-qianzhou/README.rst
Original file line number Diff line number Diff line change
@@ -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 <http://develop.aliyun.com/sdk/python>`_
1 change: 1 addition & 0 deletions aliyun-python-sdk-qianzhou/aliyunsdkqianzhou/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__version__ = '1.0.0'
Empty file.
Original file line number Diff line number Diff line change
@@ -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))
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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')

Original file line number Diff line number Diff line change
@@ -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)
Original file line number Diff line number Diff line change
@@ -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)
Loading

0 comments on commit ed28964

Please sign in to comment.