Skip to content

Commit

Permalink
-sdk release.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Dec 13, 2023
1 parent bff3219 commit 0983e01
Show file tree
Hide file tree
Showing 12 changed files with 279 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-ddosdiversion/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
2023-12-13 Version: 1.0.0
-sdk release.

13 changes: 13 additions & 0 deletions aliyun-python-sdk-ddosdiversion/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-ddosdiversion/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-ddosdiversion/README.rst
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>`_
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,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)
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)
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.
5 changes: 5 additions & 0 deletions aliyun-python-sdk-ddosdiversion/setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[metadata]
license_file = LICENSE

[bdist_wheel]
universal = 1
78 changes: 78 additions & 0 deletions aliyun-python-sdk-ddosdiversion/setup.py
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",
)

)

0 comments on commit 0983e01

Please sign in to comment.