(self, url_data, service_id, service_version)
return create_domain
Returns POST create_domain with response json.

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

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

        create_domain = {
            'comment': '',
            'service_id': service_id,
            'version': service_version,
            'name': domain_name}

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

        self.fastly_cache[service_id]['domain_list'].append(
            [create_domain, 'None', 'False'])
        return create_domain
def create_domain ( self , url_data , service_id , service_version ) : request_dict = { k : v [ 0 ] for k , v in url_data } domain_name = request_dict [ 'name' ] create_domain = { 'comment' : '' , 'service_id' : service_id , 'version' : service_version , 'name' : domain_name } if 'domain_list' not in self . fastly_cache [ service_id ] : self . fastly_cache [ service_id ] [ 'domain_list' ] = [ ] self . fastly_cache [ service_id ] [ 'domain_list' ] . append ( [ create_domain , 'None' , 'False' ] ) return create_domain