-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
279 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
2023-12-13 Version: 1.0.0 | ||
-sdk release. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include LICENSE README.rst ChangeLog.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
============================================================= | ||
aliyun-python-sdk-ddosdiversion | ||
============================================================= | ||
|
||
.. This is the ddosdiversion 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: | ||
|
||
2.6.5 and greater | ||
|
||
**Documentation:** | ||
|
||
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_ |
1 change: 1 addition & 0 deletions
1
aliyun-python-sdk-ddosdiversion/aliyunsdkddosdiversion/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
__version__ = '1.0.0' |
Empty file.
54 changes: 54 additions & 0 deletions
54
...thon-sdk-ddosdiversion/aliyunsdkddosdiversion/request/v20230701/ConfigNetStatusRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 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 RpcRequest | ||
|
||
class ConfigNetStatusRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'DdosDiversion', '2023-07-01', 'ConfigNetStatus') | ||
self.set_method('POST') | ||
|
||
def get_Regions(self): # Array | ||
return self.get_query_params().get('Regions') | ||
|
||
def set_Regions(self, Regions): # Array | ||
for index1, value1 in enumerate(Regions): | ||
self.add_query_param('Regions.' + str(index1 + 1), value1) | ||
def get_SubNets(self): # Array | ||
return self.get_query_params().get('SubNets') | ||
|
||
def set_SubNets(self, SubNets): # Array | ||
for index1, value1 in enumerate(SubNets): | ||
self.add_query_param('SubNets.' + str(index1 + 1), value1) | ||
def get_Net(self): # String | ||
return self.get_query_params().get('Net') | ||
|
||
def set_Net(self, Net): # String | ||
self.add_query_param('Net', Net) | ||
def get_SaleId(self): # String | ||
return self.get_query_params().get('SaleId') | ||
|
||
def set_SaleId(self, SaleId): # String | ||
self.add_query_param('SaleId', SaleId) | ||
def get_Status(self): # String | ||
return self.get_query_params().get('Status') | ||
|
||
def set_Status(self, Status): # String | ||
self.add_query_param('Status', Status) |
52 changes: 52 additions & 0 deletions
52
...-python-sdk-ddosdiversion/aliyunsdkddosdiversion/request/v20230701/ListInstanceRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# 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 RpcRequest | ||
|
||
class ListInstanceRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'DdosDiversion', '2023-07-01', 'ListInstance') | ||
self.set_method('POST') | ||
|
||
def get_Num(self): # Long | ||
return self.get_query_params().get('Num') | ||
|
||
def set_Num(self, Num): # Long | ||
self.add_query_param('Num', Num) | ||
def get_SaleId(self): # String | ||
return self.get_query_params().get('SaleId') | ||
|
||
def set_SaleId(self, SaleId): # String | ||
self.add_query_param('SaleId', SaleId) | ||
def get_Name(self): # String | ||
return self.get_query_params().get('Name') | ||
|
||
def set_Name(self, Name): # String | ||
self.add_query_param('Name', Name) | ||
def get_Page(self): # Long | ||
return self.get_query_params().get('Page') | ||
|
||
def set_Page(self, Page): # Long | ||
self.add_query_param('Page', Page) | ||
def get_Status(self): # String | ||
return self.get_query_params().get('Status') | ||
|
||
def set_Status(self, Status): # String | ||
self.add_query_param('Status', Status) |
57 changes: 57 additions & 0 deletions
57
...-python-sdk-ddosdiversion/aliyunsdkddosdiversion/request/v20230701/QueryNetListRequest.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# 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 RpcRequest | ||
|
||
class QueryNetListRequest(RpcRequest): | ||
|
||
def __init__(self): | ||
RpcRequest.__init__(self, 'DdosDiversion', '2023-07-01', 'QueryNetList') | ||
self.set_method('POST') | ||
|
||
def get_Num(self): # Long | ||
return self.get_query_params().get('Num') | ||
|
||
def set_Num(self, Num): # Long | ||
self.add_query_param('Num', Num) | ||
def get_MainNet(self): # String | ||
return self.get_query_params().get('MainNet') | ||
|
||
def set_MainNet(self, MainNet): # String | ||
self.add_query_param('MainNet', MainNet) | ||
def get_Mode(self): # String | ||
return self.get_query_params().get('Mode') | ||
|
||
def set_Mode(self, Mode): # String | ||
self.add_query_param('Mode', Mode) | ||
def get_Net(self): # String | ||
return self.get_query_params().get('Net') | ||
|
||
def set_Net(self, Net): # String | ||
self.add_query_param('Net', Net) | ||
def get_SaleId(self): # String | ||
return self.get_query_params().get('SaleId') | ||
|
||
def set_SaleId(self, SaleId): # String | ||
self.add_query_param('SaleId', SaleId) | ||
def get_Page(self): # Long | ||
return self.get_query_params().get('Page') | ||
|
||
def set_Page(self, Page): # Long | ||
self.add_query_param('Page', Page) |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[metadata] | ||
license_file = LICENSE | ||
|
||
[bdist_wheel] | ||
universal = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ddosdiversion. | ||
Created on 7/3/2015 | ||
@author: alex | ||
""" | ||
|
||
PACKAGE = "aliyunsdkddosdiversion" | ||
NAME = "aliyun-python-sdk-ddosdiversion" | ||
DESCRIPTION = "The ddosdiversion module of Aliyun Python sdk." | ||
AUTHOR = "Aliyun" | ||
AUTHOR_EMAIL = "[email protected]" | ||
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","ddosdiversion"], | ||
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 :: 2.6", | ||
"Programming Language :: Python :: 2.7", | ||
"Programming Language :: Python :: 3", | ||
"Programming Language :: Python :: 3.3", | ||
"Programming Language :: Python :: 3.4", | ||
"Programming Language :: Python :: 3.5", | ||
"Programming Language :: Python :: 3.6", | ||
"Topic :: Software Development", | ||
) | ||
|
||
) |