ListRuleAreaRequest.py 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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 ListRuleAreaRequest(RpcRequest):
  22. def __init__(self):
  23. RpcRequest.__init__(self, 'UniMkt', '2018-12-12', 'ListRuleArea','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_AdSlotType(self):
  30. return self.get_query_params().get('AdSlotType')
  31. def set_AdSlotType(self,AdSlotType):
  32. self.add_query_param('AdSlotType',AdSlotType)
  33. def get_RuleName(self):
  34. return self.get_query_params().get('RuleName')
  35. def set_RuleName(self,RuleName):
  36. self.add_query_param('RuleName',RuleName)
  37. def get_UserId(self):
  38. return self.get_query_params().get('UserId')
  39. def set_UserId(self,UserId):
  40. self.add_query_param('UserId',UserId)
  41. def get_OriginSiteUserId(self):
  42. return self.get_query_params().get('OriginSiteUserId')
  43. def set_OriginSiteUserId(self,OriginSiteUserId):
  44. self.add_query_param('OriginSiteUserId',OriginSiteUserId)
  45. def get_PageNumber(self):
  46. return self.get_query_params().get('PageNumber')
  47. def set_PageNumber(self,PageNumber):
  48. self.add_query_param('PageNumber',PageNumber)
  49. def get_AppName(self):
  50. return self.get_query_params().get('AppName')
  51. def set_AppName(self,AppName):
  52. self.add_query_param('AppName',AppName)
  53. def get_TenantId(self):
  54. return self.get_query_params().get('TenantId')
  55. def set_TenantId(self,TenantId):
  56. self.add_query_param('TenantId',TenantId)
  57. def get_AdSlotId(self):
  58. return self.get_query_params().get('AdSlotId')
  59. def set_AdSlotId(self,AdSlotId):
  60. self.add_query_param('AdSlotId',AdSlotId)
  61. def get_PageSize(self):
  62. return self.get_query_params().get('PageSize')
  63. def set_PageSize(self,PageSize):
  64. self.add_query_param('PageSize',PageSize)
  65. def get_EndCreateTime(self):
  66. return self.get_query_params().get('EndCreateTime')
  67. def set_EndCreateTime(self,EndCreateTime):
  68. self.add_query_param('EndCreateTime',EndCreateTime)
  69. def get_Business(self):
  70. return self.get_query_params().get('Business')
  71. def set_Business(self,Business):
  72. self.add_query_param('Business',Business)
  73. def get_RuleType(self):
  74. return self.get_query_params().get('RuleType')
  75. def set_RuleType(self,RuleType):
  76. self.add_query_param('RuleType',RuleType)
  77. def get_MediaId(self):
  78. return self.get_query_params().get('MediaId')
  79. def set_MediaId(self,MediaId):
  80. self.add_query_param('MediaId',MediaId)
  81. def get_MediaStatus(self):
  82. return self.get_query_params().get('MediaStatus')
  83. def set_MediaStatus(self,MediaStatus):
  84. self.add_query_param('MediaStatus',MediaStatus)
  85. def get_Environment(self):
  86. return self.get_query_params().get('Environment')
  87. def set_Environment(self,Environment):
  88. self.add_query_param('Environment',Environment)
  89. def get_StartCreateTime(self):
  90. return self.get_query_params().get('StartCreateTime')
  91. def set_StartCreateTime(self,StartCreateTime):
  92. self.add_query_param('StartCreateTime',StartCreateTime)
  93. def get_UserSite(self):
  94. return self.get_query_params().get('UserSite')
  95. def set_UserSite(self,UserSite):
  96. self.add_query_param('UserSite',UserSite)
  97. def get_RuleId(self):
  98. return self.get_query_params().get('RuleId')
  99. def set_RuleId(self,RuleId):
  100. self.add_query_param('RuleId',RuleId)