|
| 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 SendNotificationForPartnerRequest(RpcRequest): |
| 24 | + |
| 25 | + def __init__(self): |
| 26 | + RpcRequest.__init__(self, 'mseap', '2021-01-18', 'SendNotificationForPartner') |
| 27 | + self.set_protocol_type('https') |
| 28 | + self.set_method('POST') |
| 29 | + |
| 30 | + def get_TrackId(self): # String |
| 31 | + return self.get_query_params().get('TrackId') |
| 32 | + |
| 33 | + def set_TrackId(self, TrackId): # String |
| 34 | + self.add_query_param('TrackId', TrackId) |
| 35 | + def get_SmartSubChannels(self): # Array |
| 36 | + return self.get_query_params().get('SmartSubChannels') |
| 37 | + |
| 38 | + def set_SmartSubChannels(self, SmartSubChannels): # Array |
| 39 | + self.add_query_param("SmartSubChannels", json.dumps(SmartSubChannels)) |
| 40 | + def get_ChannelType(self): # String |
| 41 | + return self.get_query_params().get('ChannelType') |
| 42 | + |
| 43 | + def set_ChannelType(self, ChannelType): # String |
| 44 | + self.add_query_param('ChannelType', ChannelType) |
| 45 | + def get_NotifyType(self): # String |
| 46 | + return self.get_query_params().get('NotifyType') |
| 47 | + |
| 48 | + def set_NotifyType(self, NotifyType): # String |
| 49 | + self.add_query_param('NotifyType', NotifyType) |
| 50 | + def get_NotifycationEventType(self): # String |
| 51 | + return self.get_query_params().get('NotifycationEventType') |
| 52 | + |
| 53 | + def set_NotifycationEventType(self, NotifycationEventType): # String |
| 54 | + self.add_query_param('NotifycationEventType', NotifycationEventType) |
| 55 | + def get_SendTarget(self): # String |
| 56 | + return self.get_query_params().get('SendTarget') |
| 57 | + |
| 58 | + def set_SendTarget(self, SendTarget): # String |
| 59 | + self.add_query_param('SendTarget', SendTarget) |
| 60 | + def get_BizId(self): # String |
| 61 | + return self.get_query_params().get('BizId') |
| 62 | + |
| 63 | + def set_BizId(self, BizId): # String |
| 64 | + self.add_query_param('BizId', BizId) |
| 65 | + def get_ParamMap(self): # Map |
| 66 | + return self.get_query_params().get('ParamMap') |
| 67 | + |
| 68 | + def set_ParamMap(self, ParamMap): # Map |
| 69 | + self.add_query_param("ParamMap", json.dumps(ParamMap)) |
0 commit comments