Skip to content

Commit

Permalink
Support AIC Instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed Nov 27, 2023
1 parent 6598447 commit b161026
Show file tree
Hide file tree
Showing 29 changed files with 856 additions and 40 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 @@
2023-11-27 Version: 3.0.14
- Support AIC Instance.

2023-07-20 Version: 3.0.13
- Support clouddisk API.

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.13'
__version__ = '3.0.14'
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 CopySDGRequest(RpcRequest):

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

def get_DestinationRegionIds(self): # Array
return self.get_query_params().get('DestinationRegionIds')

def set_DestinationRegionIds(self, DestinationRegionIds): # Array
self.add_query_param("DestinationRegionIds", json.dumps(DestinationRegionIds))
def get_SDGId(self): # String
return self.get_query_params().get('SDGId')

def set_SDGId(self, SDGId): # String
self.add_query_param('SDGId', SDGId)
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 CopySnapshotRequest(RpcRequest):

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

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_DestinationRegionIds(self): # Array
return self.get_query_params().get('DestinationRegionIds')

def set_DestinationRegionIds(self, DestinationRegionIds): # Array
self.add_query_param("DestinationRegionIds", json.dumps(DestinationRegionIds))
def get_DestinationSnapshotName(self): # String
return self.get_query_params().get('DestinationSnapshotName')

def set_DestinationSnapshotName(self, DestinationSnapshotName): # String
self.add_query_param('DestinationSnapshotName', DestinationSnapshotName)
def get_DestinationSnapshotDescription(self): # String
return self.get_query_params().get('DestinationSnapshotDescription')

def set_DestinationSnapshotDescription(self, DestinationSnapshotDescription): # String
self.add_query_param('DestinationSnapshotDescription', DestinationSnapshotDescription)
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ def get_ServerType(self): # String

def set_ServerType(self, ServerType): # String
self.add_query_param('ServerType', ServerType)
def get_AutoUseCoupon(self): # Boolean
return self.get_query_params().get('AutoUseCoupon')

def set_AutoUseCoupon(self, AutoUseCoupon): # Boolean
self.add_query_param('AutoUseCoupon', AutoUseCoupon)
def get_InstanceType(self): # String
return self.get_query_params().get('InstanceType')

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,43 @@ def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'CreateDisk','ens')
self.set_method('POST')

def get_SnapshotId(self): # String
return self.get_query_params().get('SnapshotId')
def get_DiskName(self): # String
return self.get_query_params().get('DiskName')

def set_SnapshotId(self, SnapshotId): # String
self.add_query_param('SnapshotId', SnapshotId)
def set_DiskName(self, DiskName): # String
self.add_query_param('DiskName', DiskName)
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_Size(self): # String
return self.get_query_params().get('Size')

def set_Size(self, Size): # String
self.add_query_param('Size', Size)
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_InstanceChargeType(self): # String
return self.get_query_params().get('InstanceChargeType')

def set_InstanceChargeType(self, InstanceChargeType): # String
self.add_query_param('InstanceChargeType', InstanceChargeType)
def get_Size(self): # String
return self.get_query_params().get('Size')
def get_Encrypted(self): # Boolean
return self.get_query_params().get('Encrypted')

def set_Size(self, Size): # String
self.add_query_param('Size', Size)
def set_Encrypted(self, Encrypted): # Boolean
self.add_query_param('Encrypted', Encrypted)
def get_Category(self): # String
return self.get_query_params().get('Category')

def set_Category(self, Category): # String
self.add_query_param('Category', Category)
def get_KMSKeyId(self): # String
return self.get_query_params().get('KMSKeyId')

def set_KMSKeyId(self, KMSKeyId): # String
self.add_query_param('KMSKeyId', KMSKeyId)
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,6 @@ def get_EnsRegionId(self): # String

def set_EnsRegionId(self, EnsRegionId): # String
self.add_query_param('EnsRegionId', EnsRegionId)
def get_InstanceChargeType(self): # String
return self.get_query_params().get('InstanceChargeType')

def set_InstanceChargeType(self, InstanceChargeType): # String
self.add_query_param('InstanceChargeType', InstanceChargeType)
def get_Bandwidth(self): # Long
return self.get_query_params().get('Bandwidth')

def set_Bandwidth(self, Bandwidth): # Long
self.add_query_param('Bandwidth', Bandwidth)
def get_InternetChargeType(self): # String
return self.get_query_params().get('InternetChargeType')

Expand All @@ -55,3 +45,18 @@ def get_Name(self): # String

def set_Name(self, Name): # String
self.add_query_param('Name', Name)
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_InstanceChargeType(self): # String
return self.get_query_params().get('InstanceChargeType')

def set_InstanceChargeType(self, InstanceChargeType): # String
self.add_query_param('InstanceChargeType', InstanceChargeType)
def get_Bandwidth(self): # Long
return self.get_query_params().get('Bandwidth')

def set_Bandwidth(self, Bandwidth): # Long
self.add_query_param('Bandwidth', Bandwidth)
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# 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 CreateSnapshotRequest(RpcRequest):

def __init__(self):
RpcRequest.__init__(self, 'Ens', '2017-11-10', 'CreateSnapshot','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_SnapshotName(self): # String
return self.get_query_params().get('SnapshotName')

def set_SnapshotName(self, SnapshotName): # String
self.add_query_param('SnapshotName', SnapshotName)
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_DiskId(self): # String
return self.get_query_params().get('DiskId')

def set_DiskId(self, DiskId): # String
self.add_query_param('DiskId', DiskId)
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 DeleteBucketLifecycleRequest(RpcRequest):

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

def get_BucketName(self): # String
return self.get_query_params().get('BucketName')

def set_BucketName(self, BucketName): # String
self.add_query_param('BucketName', BucketName)
def get_RuleId(self): # String
return self.get_query_params().get('RuleId')

def set_RuleId(self, RuleId): # String
self.add_query_param('RuleId', RuleId)
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 DeleteBucketRequest(RpcRequest):

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

def get_BucketName(self): # String
return self.get_query_params().get('BucketName')

def set_BucketName(self, BucketName): # String
self.add_query_param('BucketName', BucketName)
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 DeleteObjectRequest(RpcRequest):

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

def get_BucketName(self): # String
return self.get_query_params().get('BucketName')

def set_BucketName(self, BucketName): # String
self.add_query_param('BucketName', BucketName)
def get_ObjectKey(self): # String
return self.get_query_params().get('ObjectKey')

def set_ObjectKey(self, ObjectKey): # String
self.add_query_param('ObjectKey', ObjectKey)
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 DeleteSnapshotRequest(RpcRequest):

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

def get_SnapshotId(self): # String
return self.get_query_params().get('SnapshotId')

def set_SnapshotId(self, SnapshotId): # String
self.add_query_param('SnapshotId', SnapshotId)
Loading

0 comments on commit b161026

Please sign in to comment.