|
| 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 aliyunsdkbssopenapi.endpoint import endpoint_data |
| 22 | + |
| 23 | +class DescribeInstanceDeductAmortizedCostByAmortizationPeriodRequest(RpcRequest): |
| 24 | + |
| 25 | + def __init__(self): |
| 26 | + RpcRequest.__init__(self, 'BssOpenApi', '2017-12-14', 'DescribeInstanceDeductAmortizedCostByAmortizationPeriod','bssopenapi') |
| 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_ProductDetail(self): # String |
| 35 | + return self.get_body_params().get('ProductDetail') |
| 36 | + |
| 37 | + def set_ProductDetail(self, ProductDetail): # String |
| 38 | + self.add_body_params('ProductDetail', ProductDetail) |
| 39 | + def get_ProductCode(self): # String |
| 40 | + return self.get_body_params().get('ProductCode') |
| 41 | + |
| 42 | + def set_ProductCode(self, ProductCode): # String |
| 43 | + self.add_body_params('ProductCode', ProductCode) |
| 44 | + def get_BillOwnerIdLists(self): # RepeatList |
| 45 | + return self.get_body_params().get('BillOwnerIdList') |
| 46 | + |
| 47 | + def set_BillOwnerIdLists(self, BillOwnerIdList): # RepeatList |
| 48 | + for depth1 in range(len(BillOwnerIdList)): |
| 49 | + self.add_body_params('BillOwnerIdList.' + str(depth1 + 1), BillOwnerIdList[depth1]) |
| 50 | + def get_SubscriptionType(self): # String |
| 51 | + return self.get_body_params().get('SubscriptionType') |
| 52 | + |
| 53 | + def set_SubscriptionType(self, SubscriptionType): # String |
| 54 | + self.add_body_params('SubscriptionType', SubscriptionType) |
| 55 | + def get_BillingCycle(self): # String |
| 56 | + return self.get_body_params().get('BillingCycle') |
| 57 | + |
| 58 | + def set_BillingCycle(self, BillingCycle): # String |
| 59 | + self.add_body_params('BillingCycle', BillingCycle) |
| 60 | + def get_CostUnitCode(self): # String |
| 61 | + return self.get_body_params().get('CostUnitCode') |
| 62 | + |
| 63 | + def set_CostUnitCode(self, CostUnitCode): # String |
| 64 | + self.add_body_params('CostUnitCode', CostUnitCode) |
| 65 | + def get_NextToken(self): # String |
| 66 | + return self.get_body_params().get('NextToken') |
| 67 | + |
| 68 | + def set_NextToken(self, NextToken): # String |
| 69 | + self.add_body_params('NextToken', NextToken) |
| 70 | + def get_BillUserIdLists(self): # RepeatList |
| 71 | + return self.get_body_params().get('BillUserIdList') |
| 72 | + |
| 73 | + def set_BillUserIdLists(self, BillUserIdList): # RepeatList |
| 74 | + for depth1 in range(len(BillUserIdList)): |
| 75 | + self.add_body_params('BillUserIdList.' + str(depth1 + 1), BillUserIdList[depth1]) |
| 76 | + def get_InstanceIdLists(self): # RepeatList |
| 77 | + return self.get_body_params().get('InstanceIdList') |
| 78 | + |
| 79 | + def set_InstanceIdLists(self, InstanceIdList): # RepeatList |
| 80 | + for depth1 in range(len(InstanceIdList)): |
| 81 | + self.add_body_params('InstanceIdList.' + str(depth1 + 1), InstanceIdList[depth1]) |
| 82 | + def get_MaxResults(self): # Integer |
| 83 | + return self.get_body_params().get('MaxResults') |
| 84 | + |
| 85 | + def set_MaxResults(self, MaxResults): # Integer |
| 86 | + self.add_body_params('MaxResults', MaxResults) |
0 commit comments