123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- # Licensed to the Apache Software Foundation (ASF) under one
- # or more contributor license agreements. See the NOTICE file
- # distributed with this work for additional information
- # regarding copyright ownership. The ASF licenses this file
- # to you under the Apache License, Version 2.0 (the
- # "License"); you may not use this file except in compliance
- # with the License. You may obtain a copy of the License at
- #
- #
- # http://www.apache.org/licenses/LICENSE-2.0
- #
- #
- # Unless required by applicable law or agreed to in writing,
- # software distributed under the License is distributed on an
- # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- # KIND, either express or implied. See the License for the
- # specific language governing permissions and limitations
- # under the License.
- from aliyunsdkcore.request import RpcRequest
- from aliyunsdkunimkt.endpoint import endpoint_data
- class RegistDeviceRequest(RpcRequest):
- def __init__(self):
- RpcRequest.__init__(self, 'UniMkt', '2018-12-12', 'RegistDevice','uniMkt')
- self.set_protocol_type('https')
- self.set_method('POST')
- if hasattr(self, "endpoint_map"):
- setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
- if hasattr(self, "endpoint_regional"):
- setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
- def get_FirstScene(self):
- return self.get_body_params().get('FirstScene')
- def set_FirstScene(self,FirstScene):
- self.add_body_params('FirstScene', FirstScene)
- def get_DetailAddr(self):
- return self.get_body_params().get('DetailAddr')
- def set_DetailAddr(self,DetailAddr):
- self.add_body_params('DetailAddr', DetailAddr)
- def get_City(self):
- return self.get_body_params().get('City')
- def set_City(self,City):
- self.add_body_params('City', City)
- def get_DeviceType(self):
- return self.get_body_params().get('DeviceType')
- def set_DeviceType(self,DeviceType):
- self.add_body_params('DeviceType', DeviceType)
- def get_LocationName(self):
- return self.get_body_params().get('LocationName')
- def set_LocationName(self,LocationName):
- self.add_body_params('LocationName', LocationName)
- def get_Province(self):
- return self.get_body_params().get('Province')
- def set_Province(self,Province):
- self.add_body_params('Province', Province)
- def get_District(self):
- return self.get_body_params().get('District')
- def set_District(self,District):
- self.add_body_params('District', District)
- def get_DeviceName(self):
- return self.get_body_params().get('DeviceName')
- def set_DeviceName(self,DeviceName):
- self.add_body_params('DeviceName', DeviceName)
- def get_DeviceModelNumber(self):
- return self.get_body_params().get('DeviceModelNumber')
- def set_DeviceModelNumber(self,DeviceModelNumber):
- self.add_body_params('DeviceModelNumber', DeviceModelNumber)
- def get_SecondScene(self):
- return self.get_body_params().get('SecondScene')
- def set_SecondScene(self,SecondScene):
- self.add_body_params('SecondScene', SecondScene)
- def get_Floor(self):
- return self.get_body_params().get('Floor')
- def set_Floor(self,Floor):
- self.add_body_params('Floor', Floor)
- def get_ChannelId(self):
- return self.get_body_params().get('ChannelId')
- def set_ChannelId(self,ChannelId):
- self.add_body_params('ChannelId', ChannelId)
- def get_OuterCode(self):
- return self.get_body_params().get('OuterCode')
- def set_OuterCode(self,OuterCode):
- self.add_body_params('OuterCode', OuterCode)
|