Skip to content

Commit

Permalink
Generated 2017-11-10 for Ens.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 27, 2024
1 parent d091632 commit 403a16b
Show file tree
Hide file tree
Showing 14 changed files with 458 additions and 10 deletions.
3 changes: 3 additions & 0 deletions aliyun-python-sdk-ens/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-ens/aliyunsdkens/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '3.0.18'
__version__ = '3.0.19'
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 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))
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand Down
Original file line number Diff line number Diff line change
@@ -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)
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 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)
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 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))
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 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))
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 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)
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
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)
Original file line number Diff line number Diff line change
Expand Up @@ -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')

Expand All @@ -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)
Loading

0 comments on commit 403a16b

Please sign in to comment.