Skip to content

Commit fced33a

Browse files
committed
Publish Api:GetNisNetworkRanking
1 parent 6ae8b1b commit fced33a

File tree

4 files changed

+168
-1
lines changed

4 files changed

+168
-1
lines changed

aliyun-python-sdk-nis/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-07-04 Version: 1.0.2
2+
- Publish Api:GetNisNetworkRanking
3+
- Publish Api:GetNisNetworkMetrics
4+
15
2024-04-10 Version: 1.0.1
26
- Optimize GetInternetTuple API.
37
- Optimize CreateNetworkPath API.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '1.0.1'
1+
__version__ = '1.0.2'
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
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+
import json
22+
23+
class GetNisNetworkMetricsRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'nis', '2021-12-16', 'GetNisNetworkMetrics','networkana')
27+
self.set_method('POST')
28+
29+
def get_UseCrossAccount(self): # Boolean
30+
return self.get_query_params().get('UseCrossAccount')
31+
32+
def set_UseCrossAccount(self, UseCrossAccount): # Boolean
33+
self.add_query_param('UseCrossAccount', UseCrossAccount)
34+
def get_ScanBy(self): # String
35+
return self.get_query_params().get('ScanBy')
36+
37+
def set_ScanBy(self, ScanBy): # String
38+
self.add_query_param('ScanBy', ScanBy)
39+
def get_MetricName(self): # String
40+
return self.get_query_params().get('MetricName')
41+
42+
def set_MetricName(self, MetricName): # String
43+
self.add_query_param('MetricName', MetricName)
44+
def get_EndTime(self): # Long
45+
return self.get_query_params().get('EndTime')
46+
47+
def set_EndTime(self, EndTime): # Long
48+
self.add_query_param('EndTime', EndTime)
49+
def get_BeginTime(self): # Long
50+
return self.get_query_params().get('BeginTime')
51+
52+
def set_BeginTime(self, BeginTime): # Long
53+
self.add_query_param('BeginTime', BeginTime)
54+
def get_ResourceType(self): # String
55+
return self.get_query_params().get('ResourceType')
56+
57+
def set_ResourceType(self, ResourceType): # String
58+
self.add_query_param('ResourceType', ResourceType)
59+
def get_RegionNo(self): # String
60+
return self.get_query_params().get('RegionNo')
61+
62+
def set_RegionNo(self, RegionNo): # String
63+
self.add_query_param('RegionNo', RegionNo)
64+
def get_AccountIdss(self): # RepeatList
65+
return self.get_query_params().get('AccountIds')
66+
67+
def set_AccountIdss(self, AccountIds): # RepeatList
68+
for depth1 in range(len(AccountIds)):
69+
self.add_query_param('AccountIds.' + str(depth1 + 1), AccountIds[depth1])
70+
def get_Dimensions(self): # Array
71+
return self.get_query_params().get('Dimensions')
72+
73+
def set_Dimensions(self, Dimensions): # Array
74+
self.add_query_param("Dimensions", json.dumps(Dimensions))
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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+
import json
22+
23+
class GetNisNetworkRankingRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'nis', '2021-12-16', 'GetNisNetworkRanking','networkana')
27+
self.set_method('POST')
28+
29+
def get_UseCrossAccount(self): # Boolean
30+
return self.get_query_params().get('UseCrossAccount')
31+
32+
def set_UseCrossAccount(self, UseCrossAccount): # Boolean
33+
self.add_query_param('UseCrossAccount', UseCrossAccount)
34+
def get_TopN(self): # Integer
35+
return self.get_query_params().get('TopN')
36+
37+
def set_TopN(self, TopN): # Integer
38+
self.add_query_param('TopN', TopN)
39+
def get_Direction(self): # String
40+
return self.get_query_params().get('Direction')
41+
42+
def set_Direction(self, Direction): # String
43+
self.add_query_param('Direction', Direction)
44+
def get_OrderBy(self): # String
45+
return self.get_query_params().get('OrderBy')
46+
47+
def set_OrderBy(self, OrderBy): # String
48+
self.add_query_param('OrderBy', OrderBy)
49+
def get_EndTime(self): # Long
50+
return self.get_query_params().get('EndTime')
51+
52+
def set_EndTime(self, EndTime): # Long
53+
self.add_query_param('EndTime', EndTime)
54+
def get_BeginTime(self): # Long
55+
return self.get_query_params().get('BeginTime')
56+
57+
def set_BeginTime(self, BeginTime): # Long
58+
self.add_query_param('BeginTime', BeginTime)
59+
def get_GroupBy(self): # String
60+
return self.get_query_params().get('GroupBy')
61+
62+
def set_GroupBy(self, GroupBy): # String
63+
self.add_query_param('GroupBy', GroupBy)
64+
def get_Sort(self): # String
65+
return self.get_query_params().get('Sort')
66+
67+
def set_Sort(self, Sort): # String
68+
self.add_query_param('Sort', Sort)
69+
def get_ResourceType(self): # String
70+
return self.get_query_params().get('ResourceType')
71+
72+
def set_ResourceType(self, ResourceType): # String
73+
self.add_query_param('ResourceType', ResourceType)
74+
def get_RegionNo(self): # String
75+
return self.get_query_params().get('RegionNo')
76+
77+
def set_RegionNo(self, RegionNo): # String
78+
self.add_query_param('RegionNo', RegionNo)
79+
def get_Filter(self): # Array
80+
return self.get_query_params().get('Filter')
81+
82+
def set_Filter(self, Filter): # Array
83+
self.add_query_param("Filter", json.dumps(Filter))
84+
def get_AccountIdss(self): # RepeatList
85+
return self.get_query_params().get('AccountIds')
86+
87+
def set_AccountIdss(self, AccountIds): # RepeatList
88+
for depth1 in range(len(AccountIds)):
89+
self.add_query_param('AccountIds.' + str(depth1 + 1), AccountIds[depth1])

0 commit comments

Comments
 (0)