|
| 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 aliyunsdksmc.endpoint import endpoint_data |
| 22 | + |
| 23 | +class CreateCrossZoneMigrationJobRequest(RpcRequest): |
| 24 | + |
| 25 | + def __init__(self): |
| 26 | + RpcRequest.__init__(self, 'smc', '2019-06-01', 'CreateCrossZoneMigrationJob','smc') |
| 27 | + self.set_method('POST') |
| 28 | + |
| 29 | + if hasattr(self, "endpoint_map"): |
| 30 | + setattr(self, "endpoint_map", endpoint_data.getEndpointMap()) |
| 31 | + if hasattr(self, "endpoint_regional"): |
| 32 | + setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional()) |
| 33 | + |
| 34 | + def get_ClientToken(self): # String |
| 35 | + return self.get_query_params().get('ClientToken') |
| 36 | + |
| 37 | + def set_ClientToken(self, ClientToken): # String |
| 38 | + self.add_query_param('ClientToken', ClientToken) |
| 39 | + def get_TargetInstanceType(self): # String |
| 40 | + return self.get_query_params().get('TargetInstanceType') |
| 41 | + |
| 42 | + def set_TargetInstanceType(self, TargetInstanceType): # String |
| 43 | + self.add_query_param('TargetInstanceType', TargetInstanceType) |
| 44 | + def get_ResourceGroupId(self): # String |
| 45 | + return self.get_query_params().get('ResourceGroupId') |
| 46 | + |
| 47 | + def set_ResourceGroupId(self, ResourceGroupId): # String |
| 48 | + self.add_query_param('ResourceGroupId', ResourceGroupId) |
| 49 | + def get_TargetZoneId(self): # String |
| 50 | + return self.get_query_params().get('TargetZoneId') |
| 51 | + |
| 52 | + def set_TargetZoneId(self, TargetZoneId): # String |
| 53 | + self.add_query_param('TargetZoneId', TargetZoneId) |
| 54 | + def get_AutoPay(self): # Boolean |
| 55 | + return self.get_query_params().get('AutoPay') |
| 56 | + |
| 57 | + def set_AutoPay(self, AutoPay): # Boolean |
| 58 | + self.add_query_param('AutoPay', AutoPay) |
| 59 | + def get_ResourceOwnerAccount(self): # String |
| 60 | + return self.get_query_params().get('ResourceOwnerAccount') |
| 61 | + |
| 62 | + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String |
| 63 | + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) |
| 64 | + def get_TargetVSwitchId(self): # String |
| 65 | + return self.get_query_params().get('TargetVSwitchId') |
| 66 | + |
| 67 | + def set_TargetVSwitchId(self, TargetVSwitchId): # String |
| 68 | + self.add_query_param('TargetVSwitchId', TargetVSwitchId) |
| 69 | + def get_OwnerId(self): # Long |
| 70 | + return self.get_query_params().get('OwnerId') |
| 71 | + |
| 72 | + def set_OwnerId(self, OwnerId): # Long |
| 73 | + self.add_query_param('OwnerId', OwnerId) |
| 74 | + def get_Disks(self): # RepeatList |
| 75 | + return self.get_query_params().get('Disk') |
| 76 | + |
| 77 | + def set_Disks(self, Disk): # RepeatList |
| 78 | + for depth1 in range(len(Disk)): |
| 79 | + if Disk[depth1].get('PerformanceLevel') is not None: |
| 80 | + self.add_query_param('Disk.' + str(depth1 + 1) + '.PerformanceLevel', Disk[depth1].get('PerformanceLevel')) |
| 81 | + if Disk[depth1].get('DiskId') is not None: |
| 82 | + self.add_query_param('Disk.' + str(depth1 + 1) + '.DiskId', Disk[depth1].get('DiskId')) |
| 83 | + if Disk[depth1].get('Category') is not None: |
| 84 | + self.add_query_param('Disk.' + str(depth1 + 1) + '.Category', Disk[depth1].get('Category')) |
| 85 | + def get_InstanceId(self): # String |
| 86 | + return self.get_query_params().get('InstanceId') |
| 87 | + |
| 88 | + def set_InstanceId(self, InstanceId): # String |
| 89 | + self.add_query_param('InstanceId', InstanceId) |
0 commit comments