|
| 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