Build an instance of ConferenceInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.api.v2010.account.conference.ConferenceInstance
        :rtype: twilio.rest.api.v2010.account.conference.ConferenceInstance
965044
def get_instance(self, payload):
        
        return ConferenceInstance(self._version, payload, account_sid=self._solution['account_sid'], )
37076
def get_instance(self, payload):
        
        return FaxMediaInstance(self._version, payload, fax_sid=self._solution['fax_sid'], )
705611
def create_event(data):
        
        event = riemann_client.riemann_pb2.Event()
        event.host = socket.gethostname()
        event.tags.extend(data.pop('tags', []))

        for key, value in data.pop('attributes', {}).items():
            attribute = event.attributes.add()
            attribute.key, attribute.value = key, value

        for name, value in data.items():
            if value is not None:
                setattr(event, name, value)
        return event
1329758
def get_instance(self, payload):
        
        return WorkerInstance(self._version, payload, workspace_sid=self._solution['workspace_sid'], )
1178502
def Conference(self, Id=0):
        
        o = Conference(self, Id)
        if Id <= 0 or not o.Calls:
            raise SkypeError(0, 'Unknown conference')
        return o
168413
def create_payload(self):
        
        data = super(SyncPlan, self).create_payload()
        if isinstance(data.get('sync_date'), datetime):
            data['sync_date'] = data['sync_date'].strftime('%Y-%m-%d %H:%M:%S')
        return data
115165
def get_instance(self, payload):
        
        return EngagementInstance(self._version, payload, flow_sid=self._solution['flow_sid'], )
330250
def fetch(self):
        
        params = values.of({})

        payload = self._version.fetch(
            'GET',
            self._uri,
            params=params,
        )

        return InviteInstance(
            self._version,
            payload,
            service_sid=self._solution['service_sid'],
            channel_sid=self._solution['channel_sid'],
            sid=self._solution['sid'],
        )
1286025
def eventdata(payload):
    

    headerinfo, data = payload.split('\n', 1)
    headers = get_headers(headerinfo)
    return headers, data
1235977
def as_payload_class(cls):
    

    Item.register_child(
        Item.registered_payload,
        cls,
    )

    EventItem.register_child(
        EventItem.registered_payload,
        cls,
    )

    return cls
1088649
def get_instance(self, payload):
        
        return ShortCodeInstance(self._version, payload, service_sid=self._solution['service_sid'], )
1140389
def Join(self, Id):
        
        #self._Alter('JOIN_CONFERENCE', Id)
        reply = self._Owner._DoCommand('SET CALL %s JOIN_CONFERENCE %s' % (self.Id, Id),
            'CALL %s CONF_ID' % self.Id)
        return Conference(self._Owner, reply.split()[-1])
157854
def from_event(cls, event):
        
        return cls(
            uuid=event['uuid'],
            job_type=event['job_type'],
            event_type=event['type'],
            queue=event['queue'],
            hostname=event['hostname'],
            pid=event['pid'],
            name=event['name'],
            workflow_id=event['workflow_id'],
            event_time=event['time'],
            duration=event['duration']
        )
1197987
def get_instance(self, payload):
        
        return KeyInstance(self._version, payload, account_sid=self._solution['account_sid'], )
424556
def create_payload(self):
        
        payload = super(LifecycleEnvironment, self).create_payload()
        if (_get_version(self._server_config) < Version('6.1') and
                'prior_id' in payload):
            payload['prior'] = payload.pop('prior_id')
        return payload
924068
def get_instance(self, payload):
        
        return DocumentInstance(self._version, payload, service_sid=self._solution['service_sid'], )
576564
def publish_event_from_dict(self, event_type, data):
        
        for key, value in self.additional_publish_event_data.items():
            if key in data:
                return {'result': 'error', 'message': 'Key should not be in publish_event data: {}'.format(key)}
            data[key] = value

        self.runtime.publish(self, event_type, data)
        return {'result': 'success'}