CreateUnionTaskRequest.py 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. from aliyunsdkcore.request import RpcRequest
  20. from aliyunsdkunimkt.endpoint import endpoint_data
  21. class CreateUnionTaskRequest(RpcRequest):
  22. def __init__(self):
  23. RpcRequest.__init__(self, 'UniMkt', '2018-12-12', 'CreateUnionTask','uniMkt')
  24. self.set_method('POST')
  25. if hasattr(self, "endpoint_map"):
  26. setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
  27. if hasattr(self, "endpoint_regional"):
  28. setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
  29. def get_TaskType(self):
  30. return self.get_query_params().get('TaskType')
  31. def set_TaskType(self,TaskType):
  32. self.add_query_param('TaskType',TaskType)
  33. def get_TaskBizType(self):
  34. return self.get_query_params().get('TaskBizType')
  35. def set_TaskBizType(self,TaskBizType):
  36. self.add_query_param('TaskBizType',TaskBizType)
  37. def get_ClientToken(self):
  38. return self.get_query_params().get('ClientToken')
  39. def set_ClientToken(self,ClientToken):
  40. self.add_query_param('ClientToken',ClientToken)
  41. def get_BrandUserId(self):
  42. return self.get_query_params().get('BrandUserId')
  43. def set_BrandUserId(self,BrandUserId):
  44. self.add_query_param('BrandUserId',BrandUserId)
  45. def get_ContentId(self):
  46. return self.get_query_params().get('ContentId')
  47. def set_ContentId(self,ContentId):
  48. self.add_query_param('ContentId',ContentId)
  49. def get_Channel(self):
  50. return self.get_query_params().get('Channel')
  51. def set_Channel(self,Channel):
  52. self.add_query_param('Channel',Channel)
  53. def get_EndTime(self):
  54. return self.get_query_params().get('EndTime')
  55. def set_EndTime(self,EndTime):
  56. self.add_query_param('EndTime',EndTime)
  57. def get_BrandUserNick(self):
  58. return self.get_query_params().get('BrandUserNick')
  59. def set_BrandUserNick(self,BrandUserNick):
  60. self.add_query_param('BrandUserNick',BrandUserNick)
  61. def get_StartTime(self):
  62. return self.get_query_params().get('StartTime')
  63. def set_StartTime(self,StartTime):
  64. self.add_query_param('StartTime',StartTime)
  65. def get_ProxyUserId(self):
  66. return self.get_query_params().get('ProxyUserId')
  67. def set_ProxyUserId(self,ProxyUserId):
  68. self.add_query_param('ProxyUserId',ProxyUserId)
  69. def get_TaskRuleType(self):
  70. return self.get_query_params().get('TaskRuleType')
  71. def set_TaskRuleType(self,TaskRuleType):
  72. self.add_query_param('TaskRuleType',TaskRuleType)
  73. def get_Quota(self):
  74. return self.get_query_params().get('Quota')
  75. def set_Quota(self,Quota):
  76. self.add_query_param('Quota',Quota)
  77. def get_IndustryLabelBagId(self):
  78. return self.get_query_params().get('IndustryLabelBagId')
  79. def set_IndustryLabelBagId(self,IndustryLabelBagId):
  80. self.add_query_param('IndustryLabelBagId',IndustryLabelBagId)
  81. def get_Name(self):
  82. return self.get_query_params().get('Name')
  83. def set_Name(self,Name):
  84. self.add_query_param('Name',Name)
  85. def get_QuotaDay(self):
  86. return self.get_query_params().get('QuotaDay')
  87. def set_QuotaDay(self,QuotaDay):
  88. self.add_query_param('QuotaDay',QuotaDay)
  89. def get_ChannelId(self):
  90. return self.get_query_params().get('ChannelId')
  91. def set_ChannelId(self,ChannelId):
  92. self.add_query_param('ChannelId',ChannelId)