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

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

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

        create_condition = {
            u"type": "REQUEST",
            u"comment": "",
            u"name": "condition",
            u"version": service_version,
            u"service_id": service_id,
            u"statement": request_dict['statement'],
            u"priority": request_dict['priority']
        }

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

        self.fastly_cache[service_id][
            'condition_list'].append(create_condition)
        return create_condition
def create_condition ( self , url_data , service_id , service_version ) : request_dict = { k : v [ 0 ] for k , v in url_data } create_condition = { u"type" : "REQUEST" , u"comment" : "" , u"name" : "condition" , u"version" : service_version , u"service_id" : service_id , u"statement" : request_dict [ 'statement' ] , u"priority" : request_dict [ 'priority' ] } if 'condition_list' not in self . fastly_cache [ service_id ] : self . fastly_cache [ service_id ] [ 'condition_list' ] = [ ] self . fastly_cache [ service_id ] [ 'condition_list' ] . append ( create_condition ) return create_condition