Skip to content

Commit ceceb68

Browse files
committed
Add new action of DescribeInstanceDeductAmortizedCostByAmortizationPeriod.
1 parent 0a7e397 commit ceceb68

File tree

7 files changed

+173
-1
lines changed

7 files changed

+173
-1
lines changed

aliyun-python-sdk-bssopenapi/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2023-09-06 Version: 1.7.19
2+
- Add new action of DescribeInstanceDeductAmortizedCostByAmortizationPeriod.
3+
14
2023-05-19 Version: 1.7.18
25
- DescribeInstanceAmortizedCostByAmortizationPeriodDate
36

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.18'
1+
__version__ = '1.7.19'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
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)

aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/QueryCommodityListRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ def get_ProductCode(self): # String
3636

3737
def set_ProductCode(self, ProductCode): # String
3838
self.add_query_param('ProductCode', ProductCode)
39+
def get_Lang(self): # String
40+
return self.get_query_params().get('Lang')
41+
42+
def set_Lang(self, Lang): # String
43+
self.add_query_param('Lang', Lang)

aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/QueryPriceEntityListRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,8 @@ def get_CommodityCode(self): # String
3636

3737
def set_CommodityCode(self, CommodityCode): # String
3838
self.add_query_param('CommodityCode', CommodityCode)
39+
def get_Lang(self): # String
40+
return self.get_query_params().get('Lang')
41+
42+
def set_Lang(self, Lang): # String
43+
self.add_query_param('Lang', Lang)

aliyun-python-sdk-bssopenapi/aliyunsdkbssopenapi/request/v20171214/QuerySkuPriceListRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,8 @@ def get_PageSize(self): # Integer
5757

5858
def set_PageSize(self, PageSize): # Integer
5959
self.add_query_param('PageSize', PageSize)
60+
def get_Lang(self): # String
61+
return self.get_query_params().get('Lang')
62+
63+
def set_Lang(self, Lang): # String
64+
self.add_query_param('Lang', Lang)
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 RenewChangeInstanceRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'BssOpenApi', '2017-12-14', 'RenewChangeInstance','bssopenapi')
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_ProductCode(self): # String
36+
return self.get_query_params().get('ProductCode')
37+
38+
def set_ProductCode(self, ProductCode): # String
39+
self.add_query_param('ProductCode', ProductCode)
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_ProductType(self): # String
46+
return self.get_query_params().get('ProductType')
47+
48+
def set_ProductType(self, ProductType): # String
49+
self.add_query_param('ProductType', ProductType)
50+
def get_InstanceId(self): # String
51+
return self.get_query_params().get('InstanceId')
52+
53+
def set_InstanceId(self, InstanceId): # String
54+
self.add_query_param('InstanceId', InstanceId)
55+
def get_RenewPeriod(self): # Long
56+
return self.get_query_params().get('RenewPeriod')
57+
58+
def set_RenewPeriod(self, RenewPeriod): # Long
59+
self.add_query_param('RenewPeriod', RenewPeriod)
60+
def get_Parameters(self): # RepeatList
61+
return self.get_query_params().get('Parameter')
62+
63+
def set_Parameters(self, Parameter): # RepeatList
64+
for depth1 in range(len(Parameter)):
65+
if Parameter[depth1].get('Code') is not None:
66+
self.add_query_param('Parameter.' + str(depth1 + 1) + '.Code', Parameter[depth1].get('Code'))
67+
if Parameter[depth1].get('Value') is not None:
68+
self.add_query_param('Parameter.' + str(depth1 + 1) + '.Value', Parameter[depth1].get('Value'))

0 commit comments

Comments
 (0)