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 Oct 25, 2024
1 parent 9590d3e commit 1080773
Show file tree
Hide file tree
Showing 32 changed files with 832 additions and 30 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-10-25 Version: 3.0.18
- Generated 2017-11-10 for `Ens`.

2024-08-23 Version: 3.0.17
- Generated 2017-11-10 for `Ens`.

Expand Down
2 changes: 1 addition & 1 deletion aliyun-python-sdk-ens/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy

This module works on Python versions:

2.6.5 and greater
3.7 and greater

**Documentation:**

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.17'
__version__ = '3.0.18'
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 AssociateHaVipRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'AssociateHaVip','ens')
self.set_method('POST')

def get_InstanceType(self): # String
return self.get_query_params().get('InstanceType')

def set_InstanceType(self, InstanceType): # String
self.add_query_param('InstanceType', InstanceType)
def get_HaVipId(self): # String
return self.get_query_params().get('HaVipId')

def set_HaVipId(self, HaVipId): # String
self.add_query_param('HaVipId', HaVipId)
def get_InstanceId(self): # String
return self.get_query_params().get('InstanceId')

def set_InstanceId(self, InstanceId): # String
self.add_query_param('InstanceId', InstanceId)
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# 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 AttachNetworkInterfaceRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'AttachNetworkInterface','ens')
self.set_method('POST')

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_NetworkInterfaceId(self): # String
return self.get_query_params().get('NetworkInterfaceId')

def set_NetworkInterfaceId(self, NetworkInterfaceId): # String
self.add_query_param('NetworkInterfaceId', NetworkInterfaceId)
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@

from aliyunsdkcore.request import RpcRequest

class DescribeApplicationResourceSummaryRequest(RpcRequest):
class CreateClusterRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeApplicationResourceSummary','ens')
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'CreateCluster','ens')
self.set_method('POST')

def get_Level(self): # String
return self.get_query_params().get('Level')
def get_ClusterVersion(self): # String
return self.get_query_params().get('ClusterVersion')

def set_Level(self, Level): # String
self.add_query_param('Level', Level)
def get_ResourceType(self): # String
return self.get_query_params().get('ResourceType')
def set_ClusterVersion(self, ClusterVersion): # String
self.add_query_param('ClusterVersion', ClusterVersion)
def get_Name(self): # String
return self.get_query_params().get('Name')

def set_ResourceType(self, ResourceType): # String
self.add_query_param('ResourceType', ResourceType)
def set_Name(self, Name): # String
self.add_query_param('Name', Name)
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def get_EnsRegionId(self): # String

def set_EnsRegionId(self, EnsRegionId): # String
self.add_query_param('EnsRegionId', EnsRegionId)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
def get_Size(self): # String
return self.get_query_params().get('Size')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def get_EnsRegionId(self): # String

def set_EnsRegionId(self, EnsRegionId): # String
self.add_query_param('EnsRegionId', EnsRegionId)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
def get_InternetChargeType(self): # String
return self.get_query_params().get('InternetChargeType')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def get_InstanceType(self): # String

def set_InstanceType(self, InstanceType): # String
self.add_query_param('InstanceType', InstanceType)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
def get_VSwitchId(self): # String
return self.get_query_params().get('VSwitchId')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ def get_NetworkName(self): # String

def set_NetworkName(self, NetworkName): # String
self.add_query_param('NetworkName', NetworkName)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
def get_CidrBlock(self): # String
return self.get_query_params().get('CidrBlock')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ def get_NatGatewayId(self): # String

def set_NatGatewayId(self, NatGatewayId): # String
self.add_query_param('NatGatewayId', NatGatewayId)
def get_IdleTimeout(self): # Integer
return self.get_query_params().get('IdleTimeout')

def set_IdleTimeout(self, IdleTimeout): # Integer
self.add_query_param('IdleTimeout', IdleTimeout)
def get_SnatEntryName(self): # String
return self.get_query_params().get('SnatEntryName')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@ def get_EnsRegionId(self): # String

def set_EnsRegionId(self, EnsRegionId): # String
self.add_query_param('EnsRegionId', EnsRegionId)
def get_Tags(self): # RepeatList
return self.get_query_params().get('Tag')

def set_Tags(self, Tag): # RepeatList
for depth1 in range(len(Tag)):
if Tag[depth1].get('Value') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
if Tag[depth1].get('Key') is not None:
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
def get_VSwitchName(self): # String
return self.get_query_params().get('VSwitchName')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
# under the License.

from aliyunsdkcore.request import RpcRequest
import json

class DescribeCloudDiskTypesRequest(RpcRequest):

Expand All @@ -30,3 +31,8 @@ def get_EnsRegionId(self): # String

def set_EnsRegionId(self, EnsRegionId): # String
self.add_query_param('EnsRegionId', EnsRegionId)
def get_EnsRegionIds(self): # Array
return self.get_query_params().get('EnsRegionIds')

def set_EnsRegionIds(self, EnsRegionIds): # Array
self.add_query_param("EnsRegionIds", json.dumps(EnsRegionIds))
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# 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 DescribeClusterKubeConfigRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeClusterKubeConfig','ens')
self.set_method('POST')

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,32 @@
# 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 DescribeClusterRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeCluster','ens')
self.set_method('POST')

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,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 RpcRequest

class DescribeDiskIopsListRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'DescribeDiskIopsList','ens')
self.set_protocol_type('https')
self.set_method('GET')

def get_StartTime(self): # String
return self.get_query_params().get('StartTime')

def set_StartTime(self, StartTime): # String
self.add_query_param('StartTime', StartTime)
def get_DiskId(self): # String
return self.get_query_params().get('DiskId')

def set_DiskId(self, DiskId): # String
self.add_query_param('DiskId', DiskId)
def get_EndTime(self): # String
return self.get_query_params().get('EndTime')

def set_EndTime(self, EndTime): # String
self.add_query_param('EndTime', EndTime)
Loading

0 comments on commit 1080773

Please sign in to comment.