|
| 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 aliyunsdkr_kvstore.endpoint import endpoint_data |
| 22 | + |
| 23 | +class CreateTairKVCacheVNodeRequest(RpcRequest): |
| 24 | + |
| 25 | + def __init__(self): |
| 26 | + RpcRequest.__init__(self, 'R-kvstore', '2015-01-01', 'CreateTairKVCacheVNode','redisa') |
| 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_CouponNo(self): # String |
| 46 | + return self.get_query_params().get('CouponNo') |
| 47 | + |
| 48 | + def set_CouponNo(self, CouponNo): # String |
| 49 | + self.add_query_param('CouponNo', CouponNo) |
| 50 | + def get_AutoUseCoupon(self): # Boolean |
| 51 | + return self.get_query_params().get('AutoUseCoupon') |
| 52 | + |
| 53 | + def set_AutoUseCoupon(self, AutoUseCoupon): # Boolean |
| 54 | + self.add_query_param('AutoUseCoupon', AutoUseCoupon) |
| 55 | + def get_InstanceClass(self): # String |
| 56 | + return self.get_query_params().get('InstanceClass') |
| 57 | + |
| 58 | + def set_InstanceClass(self, InstanceClass): # String |
| 59 | + self.add_query_param('InstanceClass', InstanceClass) |
| 60 | + def get_ResourceGroupId(self): # String |
| 61 | + return self.get_query_params().get('ResourceGroupId') |
| 62 | + |
| 63 | + def set_ResourceGroupId(self, ResourceGroupId): # String |
| 64 | + self.add_query_param('ResourceGroupId', ResourceGroupId) |
| 65 | + def get_SecurityToken(self): # String |
| 66 | + return self.get_query_params().get('SecurityToken') |
| 67 | + |
| 68 | + def set_SecurityToken(self, SecurityToken): # String |
| 69 | + self.add_query_param('SecurityToken', SecurityToken) |
| 70 | + def get_Tags(self): # RepeatList |
| 71 | + return self.get_query_params().get('Tag') |
| 72 | + |
| 73 | + def set_Tags(self, Tag): # RepeatList |
| 74 | + for depth1 in range(len(Tag)): |
| 75 | + if Tag[depth1].get('Value') is not None: |
| 76 | + self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value')) |
| 77 | + if Tag[depth1].get('Key') is not None: |
| 78 | + self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key')) |
| 79 | + def get_BusinessInfo(self): # String |
| 80 | + return self.get_query_params().get('BusinessInfo') |
| 81 | + |
| 82 | + def set_BusinessInfo(self, BusinessInfo): # String |
| 83 | + self.add_query_param('BusinessInfo', BusinessInfo) |
| 84 | + def get_AutoRenewPeriod(self): # String |
| 85 | + return self.get_query_params().get('AutoRenewPeriod') |
| 86 | + |
| 87 | + def set_AutoRenewPeriod(self, AutoRenewPeriod): # String |
| 88 | + self.add_query_param('AutoRenewPeriod', AutoRenewPeriod) |
| 89 | + def get_Period(self): # Integer |
| 90 | + return self.get_query_params().get('Period') |
| 91 | + |
| 92 | + def set_Period(self, Period): # Integer |
| 93 | + self.add_query_param('Period', Period) |
| 94 | + def get_AutoPay(self): # Boolean |
| 95 | + return self.get_query_params().get('AutoPay') |
| 96 | + |
| 97 | + def set_AutoPay(self, AutoPay): # Boolean |
| 98 | + self.add_query_param('AutoPay', AutoPay) |
| 99 | + def get_DryRun(self): # Boolean |
| 100 | + return self.get_query_params().get('DryRun') |
| 101 | + |
| 102 | + def set_DryRun(self, DryRun): # Boolean |
| 103 | + self.add_query_param('DryRun', DryRun) |
| 104 | + def get_ResourceOwnerAccount(self): # String |
| 105 | + return self.get_query_params().get('ResourceOwnerAccount') |
| 106 | + |
| 107 | + def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String |
| 108 | + self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount) |
| 109 | + def get_OwnerAccount(self): # String |
| 110 | + return self.get_query_params().get('OwnerAccount') |
| 111 | + |
| 112 | + def set_OwnerAccount(self, OwnerAccount): # String |
| 113 | + self.add_query_param('OwnerAccount', OwnerAccount) |
| 114 | + def get_OwnerId(self): # Long |
| 115 | + return self.get_query_params().get('OwnerId') |
| 116 | + |
| 117 | + def set_OwnerId(self, OwnerId): # Long |
| 118 | + self.add_query_param('OwnerId', OwnerId) |
| 119 | + def get_VSwitchId(self): # String |
| 120 | + return self.get_query_params().get('VSwitchId') |
| 121 | + |
| 122 | + def set_VSwitchId(self, VSwitchId): # String |
| 123 | + self.add_query_param('VSwitchId', VSwitchId) |
| 124 | + def get_InstanceName(self): # String |
| 125 | + return self.get_query_params().get('InstanceName') |
| 126 | + |
| 127 | + def set_InstanceName(self, InstanceName): # String |
| 128 | + self.add_query_param('InstanceName', InstanceName) |
| 129 | + def get_VkName(self): # String |
| 130 | + return self.get_query_params().get('VkName') |
| 131 | + |
| 132 | + def set_VkName(self, VkName): # String |
| 133 | + self.add_query_param('VkName', VkName) |
| 134 | + def get_AutoRenew(self): # Boolean |
| 135 | + return self.get_query_params().get('AutoRenew') |
| 136 | + |
| 137 | + def set_AutoRenew(self, AutoRenew): # Boolean |
| 138 | + self.add_query_param('AutoRenew', AutoRenew) |
| 139 | + def get_ComputeUnitNum(self): # Integer |
| 140 | + return self.get_query_params().get('ComputeUnitNum') |
| 141 | + |
| 142 | + def set_ComputeUnitNum(self, ComputeUnitNum): # Integer |
| 143 | + self.add_query_param('ComputeUnitNum', ComputeUnitNum) |
| 144 | + def get_ZoneId(self): # String |
| 145 | + return self.get_query_params().get('ZoneId') |
| 146 | + |
| 147 | + def set_ZoneId(self, ZoneId): # String |
| 148 | + self.add_query_param('ZoneId', ZoneId) |
| 149 | + def get_ChargeType(self): # String |
| 150 | + return self.get_query_params().get('ChargeType') |
| 151 | + |
| 152 | + def set_ChargeType(self, ChargeType): # String |
| 153 | + self.add_query_param('ChargeType', ChargeType) |
0 commit comments