Skip to content

Commit 2f6a54c

Browse files
committed
Add Create Savingplan Instance API.
1 parent 30f3108 commit 2f6a54c

File tree

89 files changed

+1817
-2143
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1817
-2143
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+
2021-11-23 Version: 2.0.3
2+
- Add Create Savingplan Instance API.
3+
14
2021-08-10 Version: 1.7.7
25
- Supported DescribeSavingsPlansUsageTotal.
36
- Supported DescribeSavingsPlansUsageDetail.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.7.7'
1+
__version__ = '2.0.3'

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

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,55 +24,47 @@ class AddAccountRelationRequest(RpcRequest):
2424

2525
def __init__(self):
2626
RpcRequest.__init__(self, 'BssOpenApi', '2017-12-14', 'AddAccountRelation')
27-
self.set_method('POST')
27+
self.set_method('POST')
28+
2829
if hasattr(self, "endpoint_map"):
2930
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
3031
if hasattr(self, "endpoint_regional"):
3132
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3233

33-
34-
def get_ChildNick(self):
34+
def get_ChildNick(self): # String
3535
return self.get_query_params().get('ChildNick')
3636

37-
def set_ChildNick(self,ChildNick):
38-
self.add_query_param('ChildNick',ChildNick)
39-
40-
def get_RelationType(self):
37+
def set_ChildNick(self, ChildNick): # String
38+
self.add_query_param('ChildNick', ChildNick)
39+
def get_RelationType(self): # String
4140
return self.get_query_params().get('RelationType')
4241

43-
def set_RelationType(self,RelationType):
44-
self.add_query_param('RelationType',RelationType)
45-
46-
def get_ParentUserId(self):
42+
def set_RelationType(self, RelationType): # String
43+
self.add_query_param('RelationType', RelationType)
44+
def get_ParentUserId(self): # Long
4745
return self.get_query_params().get('ParentUserId')
4846

49-
def set_ParentUserId(self,ParentUserId):
50-
self.add_query_param('ParentUserId',ParentUserId)
51-
52-
def get_ChildUserId(self):
47+
def set_ParentUserId(self, ParentUserId): # Long
48+
self.add_query_param('ParentUserId', ParentUserId)
49+
def get_ChildUserId(self): # Long
5350
return self.get_query_params().get('ChildUserId')
5451

55-
def set_ChildUserId(self,ChildUserId):
56-
self.add_query_param('ChildUserId',ChildUserId)
57-
58-
def get_RequestId(self):
52+
def set_ChildUserId(self, ChildUserId): # Long
53+
self.add_query_param('ChildUserId', ChildUserId)
54+
def get_RequestId(self): # String
5955
return self.get_query_params().get('RequestId')
6056

61-
def set_RequestId(self,RequestId):
62-
self.add_query_param('RequestId',RequestId)
63-
64-
def get_PermissionCodess(self):
57+
def set_RequestId(self, RequestId): # String
58+
self.add_query_param('RequestId', RequestId)
59+
def get_PermissionCodess(self): # RepeatList
6560
return self.get_query_params().get('PermissionCodes')
6661

67-
def set_PermissionCodess(self, PermissionCodess):
68-
for depth1 in range(len(PermissionCodess)):
69-
if PermissionCodess[depth1] is not None:
70-
self.add_query_param('PermissionCodes.' + str(depth1 + 1) , PermissionCodess[depth1])
71-
72-
def get_RoleCodess(self):
62+
def set_PermissionCodess(self, PermissionCodes): # RepeatList
63+
for depth1 in range(len(PermissionCodes)):
64+
self.add_query_param('PermissionCodes.' + str(depth1 + 1), PermissionCodes[depth1])
65+
def get_RoleCodess(self): # RepeatList
7366
return self.get_query_params().get('RoleCodes')
7467

75-
def set_RoleCodess(self, RoleCodess):
76-
for depth1 in range(len(RoleCodess)):
77-
if RoleCodess[depth1] is not None:
78-
self.add_query_param('RoleCodes.' + str(depth1 + 1) , RoleCodess[depth1])
68+
def set_RoleCodess(self, RoleCodes): # RepeatList
69+
for depth1 in range(len(RoleCodes)):
70+
self.add_query_param('RoleCodes.' + str(depth1 + 1), RoleCodes[depth1])

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

Lines changed: 25 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -24,47 +24,43 @@ class AllocateCostUnitResourceRequest(RpcRequest):
2424

2525
def __init__(self):
2626
RpcRequest.__init__(self, 'BssOpenApi', '2017-12-14', 'AllocateCostUnitResource')
27-
self.set_method('POST')
27+
self.set_method('POST')
28+
2829
if hasattr(self, "endpoint_map"):
2930
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
3031
if hasattr(self, "endpoint_regional"):
3132
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3233

33-
34-
def get_ResourceInstanceLists(self):
34+
def get_ResourceInstanceLists(self): # RepeatList
3535
return self.get_query_params().get('ResourceInstanceList')
3636

37-
def set_ResourceInstanceLists(self, ResourceInstanceLists):
38-
for depth1 in range(len(ResourceInstanceLists)):
39-
if ResourceInstanceLists[depth1].get('ResourceId') is not None:
40-
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.ResourceId', ResourceInstanceLists[depth1].get('ResourceId'))
41-
if ResourceInstanceLists[depth1].get('CommodityCode') is not None:
42-
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.CommodityCode', ResourceInstanceLists[depth1].get('CommodityCode'))
43-
if ResourceInstanceLists[depth1].get('ApportionCode') is not None:
44-
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.ApportionCode', ResourceInstanceLists[depth1].get('ApportionCode'))
45-
if ResourceInstanceLists[depth1].get('ResourceUserId') is not None:
46-
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.ResourceUserId', ResourceInstanceLists[depth1].get('ResourceUserId'))
47-
48-
def get_FromUnitId(self):
37+
def set_ResourceInstanceLists(self, ResourceInstanceList): # RepeatList
38+
for depth1 in range(len(ResourceInstanceList)):
39+
if ResourceInstanceList[depth1].get('ResourceId') is not None:
40+
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.ResourceId', ResourceInstanceList[depth1].get('ResourceId'))
41+
if ResourceInstanceList[depth1].get('CommodityCode') is not None:
42+
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.CommodityCode', ResourceInstanceList[depth1].get('CommodityCode'))
43+
if ResourceInstanceList[depth1].get('ApportionCode') is not None:
44+
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.ApportionCode', ResourceInstanceList[depth1].get('ApportionCode'))
45+
if ResourceInstanceList[depth1].get('ResourceUserId') is not None:
46+
self.add_query_param('ResourceInstanceList.' + str(depth1 + 1) + '.ResourceUserId', ResourceInstanceList[depth1].get('ResourceUserId'))
47+
def get_FromUnitId(self): # Long
4948
return self.get_query_params().get('FromUnitId')
5049

51-
def set_FromUnitId(self,FromUnitId):
52-
self.add_query_param('FromUnitId',FromUnitId)
53-
54-
def get_ToUnitId(self):
50+
def set_FromUnitId(self, FromUnitId): # Long
51+
self.add_query_param('FromUnitId', FromUnitId)
52+
def get_ToUnitId(self): # Long
5553
return self.get_query_params().get('ToUnitId')
5654

57-
def set_ToUnitId(self,ToUnitId):
58-
self.add_query_param('ToUnitId',ToUnitId)
59-
60-
def get_FromUnitUserId(self):
55+
def set_ToUnitId(self, ToUnitId): # Long
56+
self.add_query_param('ToUnitId', ToUnitId)
57+
def get_FromUnitUserId(self): # Long
6158
return self.get_query_params().get('FromUnitUserId')
6259

63-
def set_FromUnitUserId(self,FromUnitUserId):
64-
self.add_query_param('FromUnitUserId',FromUnitUserId)
65-
66-
def get_ToUnitUserId(self):
60+
def set_FromUnitUserId(self, FromUnitUserId): # Long
61+
self.add_query_param('FromUnitUserId', FromUnitUserId)
62+
def get_ToUnitUserId(self): # Long
6763
return self.get_query_params().get('ToUnitUserId')
6864

69-
def set_ToUnitUserId(self,ToUnitUserId):
70-
self.add_query_param('ToUnitUserId',ToUnitUserId)
65+
def set_ToUnitUserId(self, ToUnitUserId): # Long
66+
self.add_query_param('ToUnitUserId', ToUnitUserId)

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

Lines changed: 33 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -24,71 +24,61 @@ class ApplyInvoiceRequest(RpcRequest):
2424

2525
def __init__(self):
2626
RpcRequest.__init__(self, 'BssOpenApi', '2017-12-14', 'ApplyInvoice')
27-
self.set_method('POST')
27+
self.set_method('POST')
28+
2829
if hasattr(self, "endpoint_map"):
2930
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
3031
if hasattr(self, "endpoint_regional"):
3132
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3233

33-
34-
def get_InvoicingType(self):
34+
def get_InvoicingType(self): # Integer
3535
return self.get_query_params().get('InvoicingType')
3636

37-
def set_InvoicingType(self,InvoicingType):
38-
self.add_query_param('InvoicingType',InvoicingType)
39-
40-
def get_ProcessWay(self):
37+
def set_InvoicingType(self, InvoicingType): # Integer
38+
self.add_query_param('InvoicingType', InvoicingType)
39+
def get_ProcessWay(self): # Integer
4140
return self.get_query_params().get('ProcessWay')
4241

43-
def set_ProcessWay(self,ProcessWay):
44-
self.add_query_param('ProcessWay',ProcessWay)
45-
46-
def get_OwnerId(self):
42+
def set_ProcessWay(self, ProcessWay): # Integer
43+
self.add_query_param('ProcessWay', ProcessWay)
44+
def get_OwnerId(self): # Long
4745
return self.get_query_params().get('OwnerId')
4846

49-
def set_OwnerId(self,OwnerId):
50-
self.add_query_param('OwnerId',OwnerId)
51-
52-
def get_InvoiceAmount(self):
47+
def set_OwnerId(self, OwnerId): # Long
48+
self.add_query_param('OwnerId', OwnerId)
49+
def get_InvoiceAmount(self): # Long
5350
return self.get_query_params().get('InvoiceAmount')
5451

55-
def set_InvoiceAmount(self,InvoiceAmount):
56-
self.add_query_param('InvoiceAmount',InvoiceAmount)
57-
58-
def get_AddressId(self):
52+
def set_InvoiceAmount(self, InvoiceAmount): # Long
53+
self.add_query_param('InvoiceAmount', InvoiceAmount)
54+
def get_AddressId(self): # Long
5955
return self.get_query_params().get('AddressId')
6056

61-
def set_AddressId(self,AddressId):
62-
self.add_query_param('AddressId',AddressId)
63-
64-
def get_ApplyUserNick(self):
57+
def set_AddressId(self, AddressId): # Long
58+
self.add_query_param('AddressId', AddressId)
59+
def get_ApplyUserNick(self): # String
6560
return self.get_query_params().get('ApplyUserNick')
6661

67-
def set_ApplyUserNick(self,ApplyUserNick):
68-
self.add_query_param('ApplyUserNick',ApplyUserNick)
69-
70-
def get_InvoiceByAmount(self):
62+
def set_ApplyUserNick(self, ApplyUserNick): # String
63+
self.add_query_param('ApplyUserNick', ApplyUserNick)
64+
def get_InvoiceByAmount(self): # Boolean
7165
return self.get_query_params().get('InvoiceByAmount')
7266

73-
def set_InvoiceByAmount(self,InvoiceByAmount):
74-
self.add_query_param('InvoiceByAmount',InvoiceByAmount)
75-
76-
def get_CustomerId(self):
67+
def set_InvoiceByAmount(self, InvoiceByAmount): # Boolean
68+
self.add_query_param('InvoiceByAmount', InvoiceByAmount)
69+
def get_CustomerId(self): # Long
7770
return self.get_query_params().get('CustomerId')
7871

79-
def set_CustomerId(self,CustomerId):
80-
self.add_query_param('CustomerId',CustomerId)
81-
82-
def get_SelectedIdss(self):
72+
def set_CustomerId(self, CustomerId): # Long
73+
self.add_query_param('CustomerId', CustomerId)
74+
def get_SelectedIdss(self): # RepeatList
8375
return self.get_query_params().get('SelectedIds')
8476

85-
def set_SelectedIdss(self, SelectedIdss):
86-
for depth1 in range(len(SelectedIdss)):
87-
if SelectedIdss[depth1] is not None:
88-
self.add_query_param('SelectedIds.' + str(depth1 + 1) , SelectedIdss[depth1])
89-
90-
def get_UserRemark(self):
77+
def set_SelectedIdss(self, SelectedIds): # RepeatList
78+
for depth1 in range(len(SelectedIds)):
79+
self.add_query_param('SelectedIds.' + str(depth1 + 1), SelectedIds[depth1])
80+
def get_UserRemark(self): # String
9181
return self.get_query_params().get('UserRemark')
9282

93-
def set_UserRemark(self,UserRemark):
94-
self.add_query_param('UserRemark',UserRemark)
83+
def set_UserRemark(self, UserRemark): # String
84+
self.add_query_param('UserRemark', UserRemark)

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

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,20 @@ class CancelOrderRequest(RpcRequest):
2424

2525
def __init__(self):
2626
RpcRequest.__init__(self, 'BssOpenApi', '2017-12-14', 'CancelOrder')
27-
self.set_method('POST')
27+
self.set_method('POST')
28+
2829
if hasattr(self, "endpoint_map"):
2930
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
3031
if hasattr(self, "endpoint_regional"):
3132
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3233

33-
34-
def get_OrderId(self):
34+
def get_OrderId(self): # String
3535
return self.get_query_params().get('OrderId')
3636

37-
def set_OrderId(self,OrderId):
38-
self.add_query_param('OrderId',OrderId)
39-
40-
def get_OwnerId(self):
37+
def set_OrderId(self, OrderId): # String
38+
self.add_query_param('OrderId', OrderId)
39+
def get_OwnerId(self): # Long
4140
return self.get_query_params().get('OwnerId')
4241

43-
def set_OwnerId(self,OwnerId):
44-
self.add_query_param('OwnerId',OwnerId)
42+
def set_OwnerId(self, OwnerId): # Long
43+
self.add_query_param('OwnerId', OwnerId)

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

Lines changed: 26 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,57 +24,50 @@ class ChangeResellerConsumeAmountRequest(RpcRequest):
2424

2525
def __init__(self):
2626
RpcRequest.__init__(self, 'BssOpenApi', '2017-12-14', 'ChangeResellerConsumeAmount')
27-
self.set_method('POST')
27+
self.set_method('POST')
28+
2829
if hasattr(self, "endpoint_map"):
2930
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
3031
if hasattr(self, "endpoint_regional"):
3132
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
3233

33-
34-
def get_Amount(self):
34+
def get_Amount(self): # String
3535
return self.get_query_params().get('Amount')
3636

37-
def set_Amount(self,Amount):
38-
self.add_query_param('Amount',Amount)
39-
40-
def get_OutBizId(self):
37+
def set_Amount(self, Amount): # String
38+
self.add_query_param('Amount', Amount)
39+
def get_OutBizId(self): # String
4140
return self.get_query_params().get('OutBizId')
4241

43-
def set_OutBizId(self,OutBizId):
44-
self.add_query_param('OutBizId',OutBizId)
45-
46-
def get_Source(self):
42+
def set_OutBizId(self, OutBizId): # String
43+
self.add_query_param('OutBizId', OutBizId)
44+
def get_Source(self): # String
4745
return self.get_query_params().get('Source')
4846

49-
def set_Source(self,Source):
50-
self.add_query_param('Source',Source)
51-
52-
def get_OwnerId(self):
47+
def set_Source(self, Source): # String
48+
self.add_query_param('Source', Source)
49+
def get_OwnerId(self): # Long
5350
return self.get_query_params().get('OwnerId')
5451

55-
def set_OwnerId(self,OwnerId):
56-
self.add_query_param('OwnerId',OwnerId)
57-
58-
def get_BusinessType(self):
52+
def set_OwnerId(self, OwnerId): # Long
53+
self.add_query_param('OwnerId', OwnerId)
54+
def get_BusinessType(self): # String
5955
return self.get_query_params().get('BusinessType')
6056

61-
def set_BusinessType(self,BusinessType):
62-
self.add_query_param('BusinessType',BusinessType)
63-
64-
def get_AdjustType(self):
57+
def set_BusinessType(self, BusinessType): # String
58+
self.add_query_param('BusinessType', BusinessType)
59+
def get_AdjustType(self): # String
6560
return self.get_query_params().get('AdjustType')
6661

67-
def set_AdjustType(self,AdjustType):
68-
self.add_query_param('AdjustType',AdjustType)
69-
70-
def get_ExtendMap(self):
62+
def set_AdjustType(self, AdjustType): # String
63+
self.add_query_param('AdjustType', AdjustType)
64+
def get_ExtendMap(self): # String
7165
return self.get_query_params().get('ExtendMap')
7266

73-
def set_ExtendMap(self,ExtendMap):
74-
self.add_query_param('ExtendMap',ExtendMap)
75-
76-
def get_Currency(self):
67+
def set_ExtendMap(self, ExtendMap): # String
68+
self.add_query_param('ExtendMap', ExtendMap)
69+
def get_Currency(self): # String
7770
return self.get_query_params().get('Currency')
7871

79-
def set_Currency(self,Currency):
80-
self.add_query_param('Currency',Currency)
72+
def set_Currency(self, Currency): # String
73+
self.add_query_param('Currency', Currency)

0 commit comments

Comments
 (0)