(self, url_data, service_id, service_version)
return create_backend
Returns create_backend response json.

        :return: a JSON-serializable dictionary matching the format of the JSON
                 response for fastly_client.create_backend()
                 ("/service/<service_id>/version/<service_version>/backend")
                 request.
Returns create_backend response json.
Returns create_backend response json .
def create_backend(self, url_data, service_id, service_version):
        """
        Returns create_backend response json.

        :return: a JSON-serializable dictionary matching the format of the JSON
                 response for fastly_client.create_backend()
                 ("/service/<service_id>/version/<service_version>/backend")
                 request.
        """
        request_dict = {k: v[0] for k, v in url_data}

        create_backend = {
            u'comment': '',
            u'shield': None,
            u'weight': 100,
            u'ssl_client_key': None,
            u'first_byte_timeout': 15000,
            u'auto_loadbalance': False,
            u'use_ssl': request_dict['use_ssl'],
            u'port': request_dict['port'],
            u'ssl_hostname': None,
            u'hostname': request_dict['name'],
            u'error_threshold': 0,
            u'max_conn': 20,
            u'version': service_version,
            u'ipv4': None,
            u'ipv6': None,
            u'client_cert': None,
            u'ssl_ca_cert': None,
            u'request_condition': '',
            u'healthcheck': None,
            u'address': request_dict['address'],
            u'ssl_client_cert': None,
            u'name': request_dict['name'],
            u'connect_timeout': 1000,
            u'between_bytes_timeout': 10000,
            u'service_id': service_id}

        if 'origin_list' not in self.fastly_cache[service_id]:
            self.fastly_cache[service_id]['origin_list'] = []

        self.fastly_cache[service_id]['origin_list'].append(create_backend)
        return create_backend
def create_backend ( self , url_data , service_id , service_version ) : request_dict = { k : v [ 0 ] for k , v in url_data } create_backend = { u'comment' : '' , u'shield' : None , u'weight' : 100 , u'ssl_client_key' : None , u'first_byte_timeout' : 15000 , u'auto_loadbalance' : False , u'use_ssl' : request_dict [ 'use_ssl' ] , u'port' : request_dict [ 'port' ] , u'ssl_hostname' : None , u'hostname' : request_dict [ 'name' ] , u'error_threshold' : 0 , u'max_conn' : 20 , u'version' : service_version , u'ipv4' : None , u'ipv6' : None , u'client_cert' : None , u'ssl_ca_cert' : None , u'request_condition' : '' , u'healthcheck' : None , u'address' : request_dict [ 'address' ] , u'ssl_client_cert' : None , u'name' : request_dict [ 'name' ] , u'connect_timeout' : 1000 , u'between_bytes_timeout' : 10000 , u'service_id' : service_id } if 'origin_list' not in self . fastly_cache [ service_id ] : self . fastly_cache [ service_id ] [ 'origin_list' ] = [ ] self . fastly_cache [ service_id ] [ 'origin_list' ] . append ( create_backend ) return create_backend