|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# |
| 10 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | +# |
| 12 | +# |
| 13 | +# Unless required by applicable law or agreed to in writing, |
| 14 | +# software distributed under the License is distributed on an |
| 15 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | +# KIND, either express or implied. See the License for the |
| 17 | +# specific language governing permissions and limitations |
| 18 | +# under the License. |
| 19 | + |
| 20 | +from aliyunsdkcore.request import RpcRequest |
| 21 | +from aliyunsdkecs.endpoint import endpoint_data |
| 22 | + |
| 23 | +class CloneDisksRequest(RpcRequest): |
| 24 | + |
| 25 | + def __init__(self): |
| 26 | + RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'CloneDisks','ecs') |
| 27 | + self.set_protocol_type('https') |
| 28 | + self.set_method('POST') |
| 29 | + |
| 30 | + if hasattr(self, "endpoint_map"): |
| 31 | + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) |
| 32 | + if hasattr(self, "endpoint_regional"): |
| 33 | + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) |
| 34 | + |
| 35 | + def get_ResourceOwnerId(self): # Long |
| 36 | + return self.get_query_params().get('ResourceOwnerId') |
| 37 | + |
| 38 | + def set_ResourceOwnerId(self, ResourceOwnerId): # Long |
| 39 | + self.add_query_param('ResourceOwnerId', ResourceOwnerId) |
| 40 | + def get_ClientToken(self): # String |
| 41 | + return self.get_query_params().get('ClientToken') |
| 42 | + |
| 43 | + def set_ClientToken(self, ClientToken): # String |
| 44 | + self.add_query_param('ClientToken', ClientToken) |
| 45 | + def get_DiskName(self): # String |
| 46 | + return self.get_query_params().get('DiskName') |
| 47 | + |
| 48 | + def set_DiskName(self, DiskName): # String |
| 49 | + self.add_query_param('DiskName', DiskName) |
| 50 | + def get_ResourceGroupId(self): # String |
| 51 | + return self.get_query_params().get('ResourceGroupId') |
| 52 | + |
| 53 | + def set_ResourceGroupId(self, ResourceGroupId): # String |
| 54 | + self.add_query_param('ResourceGroupId', ResourceGroupId) |
| 55 | + def get_DiskCategory(self): # String |
| 56 | + return self.get_query_params().get('DiskCategory') |
| 57 | + |
| 58 | + def set_DiskCategory(self, DiskCategory): # String |
| 59 | + self.add_query_param('DiskCategory', DiskCategory) |
| 60 | + def get_MultiAttach(self): # String |
| 61 | + return self.get_query_params().get('MultiAttach') |
| 62 | + |
| 63 | + def set_MultiAttach(self, MultiAttach): # String |
| 64 | + self.add_query_param('MultiAttach', MultiAttach) |
| 65 | + def get_Tags(self): # RepeatList |
| 66 | + return self.get_query_params().get('Tag') |
| 67 | + |
| 68 | + def set_Tags(self, Tag): # RepeatList |
| 69 | + for depth1 in range(len(Tag)): |
| 70 | + if Tag[depth1].get('Value') is not None: |
| 71 | + self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value')) |
| 72 | + if Tag[depth1].get('Key') is not None: |
| 73 | + self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key')) |
| 74 | + def get_Arns(self): # RepeatList |
| 75 | + return self.get_query_params().get('Arn') |
| 76 | + |
| 77 | + def set_Arns(self, Arn): # RepeatList |
| 78 | + for depth1 in range(len(Arn)): |
| 79 | + if Arn[depth1].get('Rolearn') is not None: |
| 80 | + self.add_query_param('Arn.' + str(depth1 + 1) + '.Rolearn', Arn[depth1].get('Rolearn')) |
| 81 | + if Arn[depth1].get('RoleType') is not None: |
| 82 | + self.add_query_param('Arn.' + str(depth1 + 1) + '.RoleType', Arn[depth1].get('RoleType')) |
| 83 | + if Arn[depth1].get('AssumeRoleFor') is not None: |
| 84 | + self.add_query_param('Arn.' + str(depth1 + 1) + '.AssumeRoleFor', Arn[depth1].get('AssumeRoleFor')) |
| 85 | + def get_SourceDiskId(self): # String |
| 86 | + return self.get_query_params().get('SourceDiskId') |
| 87 | + |
| 88 | + def set_SourceDiskId(self, SourceDiskId): # String |
| 89 | + self.add_query_param('SourceDiskId', SourceDiskId) |
| 90 | + def get_DryRun(self): # String |
| 91 | + return self.get_query_params().get('DryRun') |
| 92 | + |
| 93 | + def set_DryRun(self, DryRun): # String |
| 94 | + self.add_query_param('DryRun', DryRun) |
| 95 | + def get_PerformanceLevel(self): # String |
| 96 | + return self.get_query_params().get('PerformanceLevel') |
| 97 | + |
| 98 | + def set_PerformanceLevel(self, PerformanceLevel): # String |
| 99 | + self.add_query_param('PerformanceLevel', PerformanceLevel) |
| 100 | + def get_OwnerId(self): # Long |
| 101 | + return self.get_query_params().get('OwnerId') |
| 102 | + |
| 103 | + def set_OwnerId(self, OwnerId): # Long |
| 104 | + self.add_query_param('OwnerId', OwnerId) |
| 105 | + def get_BurstingEnabled(self): # Boolean |
| 106 | + return self.get_query_params().get('BurstingEnabled') |
| 107 | + |
| 108 | + def set_BurstingEnabled(self, BurstingEnabled): # Boolean |
| 109 | + self.add_query_param('BurstingEnabled', BurstingEnabled) |
| 110 | + def get_ProvisionedIops(self): # Long |
| 111 | + return self.get_query_params().get('ProvisionedIops') |
| 112 | + |
| 113 | + def set_ProvisionedIops(self, ProvisionedIops): # Long |
| 114 | + self.add_query_param('ProvisionedIops', ProvisionedIops) |
| 115 | + def get_Size(self): # Integer |
| 116 | + return self.get_query_params().get('Size') |
| 117 | + |
| 118 | + def set_Size(self, Size): # Integer |
| 119 | + self.add_query_param('Size', Size) |
| 120 | + def get_Encrypted(self): # Boolean |
| 121 | + return self.get_query_params().get('Encrypted') |
| 122 | + |
| 123 | + def set_Encrypted(self, Encrypted): # Boolean |
| 124 | + self.add_query_param('Encrypted', Encrypted) |
| 125 | + def get_KmsKeyId(self): # String |
| 126 | + return self.get_query_params().get('KmsKeyId') |
| 127 | + |
| 128 | + def set_KmsKeyId(self, KmsKeyId): # String |
| 129 | + self.add_query_param('KmsKeyId', KmsKeyId) |
0 commit comments