From 403a16ba7de2965009390776bdd82d6ea99f74b3 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 27 Nov 2024 12:36:18 +0000 Subject: [PATCH] Generated 2017-11-10 for Ens. --- aliyun-python-sdk-ens/ChangeLog.txt | 3 ++ .../aliyunsdkens/__init__.py | 2 +- .../v20171110/AttachInstanceSDGRequest.py | 39 ++++++++++++++ .../CreateARMServerInstancesRequest.py | 5 ++ .../request/v20171110/CreateHaVipRequest.py | 53 ++++++++++++++++++ .../CreateNetworkInterfaceRequest.py | 48 +++++++++++++++++ .../request/v20171110/DeleteHaVipsRequest.py | 34 ++++++++++++ .../DeleteNetworkInterfacesRequest.py | 33 ++++++++++++ .../DescribeEnsRouteTablesRequest.py | 52 ++++++++++++++++++ .../DescribeInstanceSDGStatusRequest.py | 54 +++++++++++++++++++ .../v20171110/DescribeSnapshotsRequest.py | 28 ++++++---- .../v20171110/DetachInstanceSDGRequest.py | 39 ++++++++++++++ .../v20171110/MountInstanceSDGRequest.py | 39 ++++++++++++++ .../v20171110/UnmountInstanceSDGRequest.py | 39 ++++++++++++++ 14 files changed, 458 insertions(+), 10 deletions(-) create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/AttachInstanceSDGRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateHaVipRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateNetworkInterfaceRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteHaVipsRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteNetworkInterfacesRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeEnsRouteTablesRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeInstanceSDGStatusRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DetachInstanceSDGRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/MountInstanceSDGRequest.py create mode 100644 aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/UnmountInstanceSDGRequest.py diff --git a/aliyun-python-sdk-ens/ChangeLog.txt b/aliyun-python-sdk-ens/ChangeLog.txt index 4809a08ec7..1c17402269 100644 --- a/aliyun-python-sdk-ens/ChangeLog.txt +++ b/aliyun-python-sdk-ens/ChangeLog.txt @@ -1,3 +1,6 @@ +2024-11-27 Version: 3.0.19 +- Generated 2017-11-10 for `Ens`. + 2024-10-25 Version: 3.0.18 - Generated 2017-11-10 for `Ens`. diff --git a/aliyun-python-sdk-ens/aliyunsdkens/__init__.py b/aliyun-python-sdk-ens/aliyunsdkens/__init__.py index 3f31518a50..16f6a7263b 100644 --- a/aliyun-python-sdk-ens/aliyunsdkens/__init__.py +++ b/aliyun-python-sdk-ens/aliyunsdkens/__init__.py @@ -1 +1 @@ -__version__ = '3.0.18' \ No newline at end of file +__version__ = '3.0.19' \ No newline at end of file diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/AttachInstanceSDGRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/AttachInstanceSDGRequest.py new file mode 100644 index 0000000000..8d1dcada67 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/AttachInstanceSDGRequest.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 RpcRequest +import json + +class AttachInstanceSDGRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'AttachInstanceSDG','ens') + self.set_protocol_type('https') + self.set_method('POST') + + def get_SDGId(self): # String + return self.get_query_params().get('SDGId') + + def set_SDGId(self, SDGId): # String + self.add_query_param('SDGId', SDGId) + def get_InstanceIds(self): # Array + return self.get_query_params().get('InstanceIds') + + def set_InstanceIds(self, InstanceIds): # Array + self.add_query_param("InstanceIds", json.dumps(InstanceIds)) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateARMServerInstancesRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateARMServerInstancesRequest.py index 1ef1d9c16e..a4ddd70bf8 100644 --- a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateARMServerInstancesRequest.py +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateARMServerInstancesRequest.py @@ -85,6 +85,11 @@ def get_Amount(self): # Integer def set_Amount(self, Amount): # Integer self.add_query_param('Amount', Amount) + def get_EnvironmentVar(self): # String + return self.get_query_params().get('EnvironmentVar') + + def set_EnvironmentVar(self, EnvironmentVar): # String + self.add_query_param('EnvironmentVar', EnvironmentVar) def get_NameSpace(self): # String return self.get_query_params().get('NameSpace') diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateHaVipRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateHaVipRequest.py new file mode 100644 index 0000000000..b350a7dda9 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateHaVipRequest.py @@ -0,0 +1,53 @@ +# 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 CreateHaVipRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'CreateHaVip','ens') + self.set_protocol_type('https') + self.set_method('POST') + + def get_IpAddress(self): # String + return self.get_query_params().get('IpAddress') + + def set_IpAddress(self, IpAddress): # String + self.add_query_param('IpAddress', IpAddress) + def get_Description(self): # String + return self.get_query_params().get('Description') + + def set_Description(self, Description): # String + self.add_query_param('Description', Description) + def get_Amount(self): # Integer + return self.get_query_params().get('Amount') + + def set_Amount(self, Amount): # Integer + self.add_query_param('Amount', Amount) + def get_VSwitchId(self): # String + return self.get_query_params().get('VSwitchId') + + def set_VSwitchId(self, VSwitchId): # String + self.add_query_param('VSwitchId', VSwitchId) + def get_Name(self): # String + return self.get_query_params().get('Name') + + def set_Name(self, Name): # String + self.add_query_param('Name', Name) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateNetworkInterfaceRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateNetworkInterfaceRequest.py new file mode 100644 index 0000000000..bb6a48698d --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/CreateNetworkInterfaceRequest.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 RpcRequest +import json + +class CreateNetworkInterfaceRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'CreateNetworkInterface','ens') + self.set_method('POST') + + def get_Description(self): # String + return self.get_query_params().get('Description') + + def set_Description(self, Description): # String + self.add_query_param('Description', Description) + def get_SecurityGroupIds(self): # Array + return self.get_query_params().get('SecurityGroupIds') + + def set_SecurityGroupIds(self, SecurityGroupIds): # Array + self.add_query_param("SecurityGroupIds", json.dumps(SecurityGroupIds)) + def get_VSwitchId(self): # String + return self.get_query_params().get('VSwitchId') + + def set_VSwitchId(self, VSwitchId): # String + self.add_query_param('VSwitchId', VSwitchId) + def get_Name(self): # String + return self.get_query_params().get('Name') + + def set_Name(self, Name): # String + self.add_query_param('Name', Name) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteHaVipsRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteHaVipsRequest.py new file mode 100644 index 0000000000..7f1fbcd74c --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteHaVipsRequest.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 RpcRequest +import json + +class DeleteHaVipsRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DeleteHaVips','ens') + self.set_protocol_type('https') + self.set_method('POST') + + def get_HaVipIds(self): # Array + return self.get_query_params().get('HaVipIds') + + def set_HaVipIds(self, HaVipIds): # Array + self.add_query_param("HaVipIds", json.dumps(HaVipIds)) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteNetworkInterfacesRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteNetworkInterfacesRequest.py new file mode 100644 index 0000000000..8564135ef2 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DeleteNetworkInterfacesRequest.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 RpcRequest +import json + +class DeleteNetworkInterfacesRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DeleteNetworkInterfaces','ens') + self.set_method('POST') + + def get_NetworkInterfaceIds(self): # Array + return self.get_query_params().get('NetworkInterfaceIds') + + def set_NetworkInterfaceIds(self, NetworkInterfaceIds): # Array + self.add_query_param("NetworkInterfaceIds", json.dumps(NetworkInterfaceIds)) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeEnsRouteTablesRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeEnsRouteTablesRequest.py new file mode 100644 index 0000000000..330a1ca5c8 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeEnsRouteTablesRequest.py @@ -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 DescribeEnsRouteTablesRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeEnsRouteTables','ens') + self.set_method('POST') + + def get_PageNumber(self): # Integer + return self.get_query_params().get('PageNumber') + + def set_PageNumber(self, PageNumber): # Integer + self.add_query_param('PageNumber', PageNumber) + def get_PageSize(self): # Integer + return self.get_query_params().get('PageSize') + + def set_PageSize(self, PageSize): # Integer + self.add_query_param('PageSize', PageSize) + def get_EnsRegionId(self): # String + return self.get_query_params().get('EnsRegionId') + + def set_EnsRegionId(self, EnsRegionId): # String + self.add_query_param('EnsRegionId', EnsRegionId) + def get_RouteTableId(self): # String + return self.get_query_params().get('RouteTableId') + + def set_RouteTableId(self, RouteTableId): # String + self.add_query_param('RouteTableId', RouteTableId) + def get_NetworkId(self): # String + return self.get_query_params().get('NetworkId') + + def set_NetworkId(self, NetworkId): # String + self.add_query_param('NetworkId', NetworkId) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeInstanceSDGStatusRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeInstanceSDGStatusRequest.py new file mode 100644 index 0000000000..cde76f0292 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeInstanceSDGStatusRequest.py @@ -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 +import json + +class DescribeInstanceSDGStatusRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeInstanceSDGStatus','ens') + self.set_protocol_type('https') + self.set_method('GET') + + def get_PageNumber(self): # Integer + return self.get_query_params().get('PageNumber') + + def set_PageNumber(self, PageNumber): # Integer + self.add_query_param('PageNumber', PageNumber) + def get_PageSize(self): # Integer + return self.get_query_params().get('PageSize') + + def set_PageSize(self, PageSize): # Integer + self.add_query_param('PageSize', PageSize) + def get_SDGIds(self): # Array + return self.get_query_params().get('SDGIds') + + def set_SDGIds(self, SDGIds): # Array + self.add_query_param("SDGIds", json.dumps(SDGIds)) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) + def get_Status(self): # String + return self.get_query_params().get('Status') + + def set_Status(self, Status): # String + self.add_query_param('Status', Status) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeSnapshotsRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeSnapshotsRequest.py index 2f90144b1e..c592688641 100644 --- a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeSnapshotsRequest.py +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DescribeSnapshotsRequest.py @@ -25,21 +25,31 @@ def __init__(self): RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeSnapshots','ens') self.set_method('POST') + def get_EnsRegionId(self): # String + return self.get_query_params().get('EnsRegionId') + + def set_EnsRegionId(self, EnsRegionId): # String + self.add_query_param('EnsRegionId', EnsRegionId) + def get_InstanceId(self): # String + return self.get_query_params().get('InstanceId') + + def set_InstanceId(self, InstanceId): # String + self.add_query_param('InstanceId', InstanceId) def get_SnapshotId(self): # String return self.get_query_params().get('SnapshotId') def set_SnapshotId(self, SnapshotId): # String self.add_query_param('SnapshotId', SnapshotId) + def get_SnapshotName(self): # String + return self.get_query_params().get('SnapshotName') + + def set_SnapshotName(self, SnapshotName): # String + self.add_query_param('SnapshotName', SnapshotName) def get_PageNumber(self): # Integer return self.get_query_params().get('PageNumber') def set_PageNumber(self, PageNumber): # Integer self.add_query_param('PageNumber', PageNumber) - def get_EnsRegionId(self): # String - return self.get_query_params().get('EnsRegionId') - - def set_EnsRegionId(self, EnsRegionId): # String - self.add_query_param('EnsRegionId', EnsRegionId) def get_PageSize(self): # Integer return self.get_query_params().get('PageSize') @@ -50,8 +60,8 @@ def get_DiskId(self): # String def set_DiskId(self, DiskId): # String self.add_query_param('DiskId', DiskId) - def get_InstanceId(self): # String - return self.get_query_params().get('InstanceId') + def get_EnsRegionIds(self): # String + return self.get_query_params().get('EnsRegionIds') - def set_InstanceId(self, InstanceId): # String - self.add_query_param('InstanceId', InstanceId) + def set_EnsRegionIds(self, EnsRegionIds): # String + self.add_query_param('EnsRegionIds', EnsRegionIds) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DetachInstanceSDGRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DetachInstanceSDGRequest.py new file mode 100644 index 0000000000..b97fdac043 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/DetachInstanceSDGRequest.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 RpcRequest +import json + +class DetachInstanceSDGRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DetachInstanceSDG','ens') + self.set_protocol_type('https') + self.set_method('POST') + + def get_SDGId(self): # String + return self.get_query_params().get('SDGId') + + def set_SDGId(self, SDGId): # String + self.add_query_param('SDGId', SDGId) + def get_InstanceIds(self): # Array + return self.get_query_params().get('InstanceIds') + + def set_InstanceIds(self, InstanceIds): # Array + self.add_query_param("InstanceIds", json.dumps(InstanceIds)) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/MountInstanceSDGRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/MountInstanceSDGRequest.py new file mode 100644 index 0000000000..68111c2f30 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/MountInstanceSDGRequest.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 RpcRequest +import json + +class MountInstanceSDGRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'MountInstanceSDG','ens') + self.set_protocol_type('https') + self.set_method('POST') + + def get_SDGId(self): # String + return self.get_query_params().get('SDGId') + + def set_SDGId(self, SDGId): # String + self.add_query_param('SDGId', SDGId) + def get_InstanceIds(self): # Array + return self.get_query_params().get('InstanceIds') + + def set_InstanceIds(self, InstanceIds): # Array + self.add_query_param("InstanceIds", json.dumps(InstanceIds)) diff --git a/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/UnmountInstanceSDGRequest.py b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/UnmountInstanceSDGRequest.py new file mode 100644 index 0000000000..9d421eb183 --- /dev/null +++ b/aliyun-python-sdk-ens/aliyunsdkens/request/v20171110/UnmountInstanceSDGRequest.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 RpcRequest +import json + +class UnmountInstanceSDGRequest(RpcRequest): + + def __init__(self): + RpcRequest.__init__(self, 'Ens', '2017-11-10', 'UnmountInstanceSDG','ens') + self.set_protocol_type('https') + self.set_method('POST') + + def get_SDGId(self): # String + return self.get_query_params().get('SDGId') + + def set_SDGId(self, SDGId): # String + self.add_query_param('SDGId', SDGId) + def get_InstanceIds(self): # Array + return self.get_query_params().get('InstanceIds') + + def set_InstanceIds(self, InstanceIds): # Array + self.add_query_param("InstanceIds", json.dumps(InstanceIds))