示例#1
0
    def get(self):
        '''
        if props and props.is_a? Array then
            @props = props
        end
        '''

        if self.props is not None and type(self.props) is dict:
            self.props = self.props.keys()
        '''
        if filter and filter.is_a? Hash then
            @filter = filter
        end
        '''
        '''             
        fixCustomerKey = False
        if filter and filter.is_a? Hash then
            @filter = filter
            if @filter.has_key?("Property") && @filter["Property"] == "CustomerKey" then
                @filter["Property"]  = "DataExtension.CustomerKey"
                fixCustomerKey = true 
            end 
        end
        '''

        obj = ET_Get(self.auth_stub, self.obj, self.props, self.search_filter)
        self.last_request_id = obj.request_id
        ''' 
        if fixCustomerKey then
            @filter["Property"] = "CustomerKey"
        end 
        '''

        return obj
示例#2
0
    def get(self):
        self.getName()
        '''
        if props and props.is_a? Array then
            @props = props
        end
        '''

        if self.props is not None and type(self.props) is dict:
            self.props = self.props.keys()
        '''
        if filter and filter.is_a? Hash then
            @filter = filter
        end
        '''

        obj = ET_Get(self.auth_stub,
                     "DataExtensionObject[{0}]".format(self.Name), self.props,
                     self.search_filter)
        self.last_request_id = obj.request_id

        return obj