def test_data_context_namevalue_name_put(self):
        """Test case for data_context_namevalue_name_put

        
        """
        tapi_common_name_and_value = TapiCommonNameAndValue()
        response = self.client.open(
            '/data/context/name={value-name}/'.format(value_name='value_name_example'),
            method='PUT',
            data=json.dumps(tapi_common_name_and_value),
            content_type='application/yang-data+json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
    def test_data_context_service_interface_pointuuid_namevalue_name_post(self):
        """Test case for data_context_service_interface_pointuuid_namevalue_name_post

        
        """
        tapi_common_name_and_value = TapiCommonNameAndValue()
        response = self.client.open(
            '/data/context/service-interface-point={uuid}/name={value-name}/'.format(uuid='uuid_example', value_name='value_name_example'),
            method='POST',
            data=json.dumps(tapi_common_name_and_value),
            content_type='application/yang-data+json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
Пример #3
0
def data_context_name_post(tapi_common_name_and_value=None):  # noqa: E501
    """data_context_name_post

    creates tapi.common.NameAndValue # noqa: E501

    :param tapi_common_name_and_value: tapi.common.NameAndValue to be added to list
    :type tapi_common_name_and_value: dict | bytes

    :rtype: None
    """
    if connexion.request.is_json:
        tapi_common_name_and_value = TapiCommonNameAndValue.from_dict(
            connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
    def test_data_context_notification_context_notif_subscriptionuuid_name_post(
            self):
        """Test case for data_context_notification_context_notif_subscriptionuuid_name_post

        
        """
        tapi_common_name_and_value = TapiCommonNameAndValue()
        response = self.client.open(
            '/data/context/notification-context/notif-subscription={uuid}/name/'
            .format(uuid='uuid_example'),
            method='POST',
            data=json.dumps(tapi_common_name_and_value),
            content_type='application/yang-data+json')
        self.assert200(response,
                       'Response body is : ' + response.data.decode('utf-8'))
Пример #5
0
def data_context_notification_context_notif_subscriptionuuid_name_post(
        uuid, tapi_common_name_and_value=None):  # noqa: E501
    """data_context_notification_context_notif_subscriptionuuid_name_post

    creates tapi.common.NameAndValue # noqa: E501

    :param uuid: Id of notif-subscription
    :type uuid: str
    :param tapi_common_name_and_value: tapi.common.NameAndValue to be added to list
    :type tapi_common_name_and_value: dict | bytes

    :rtype: None
    """
    if connexion.request.is_json:
        tapi_common_name_and_value = TapiCommonNameAndValue.from_dict(
            connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
Пример #6
0
def data_context_namevalue_name_put(value_name,
                                    tapi_common_name_and_value=None
                                    ):  # noqa: E501
    """data_context_namevalue_name_put

    creates or updates tapi.common.NameAndValue # noqa: E501

    :param value_name: Id of name
    :type value_name: str
    :param tapi_common_name_and_value: tapi.common.NameAndValue to be added or updated
    :type tapi_common_name_and_value: dict | bytes

    :rtype: None
    """
    if connexion.request.is_json:
        tapi_common_name_and_value = TapiCommonNameAndValue.from_dict(
            connexion.request.get_json())  # noqa: E501
    return 'do some magic!'
Пример #7
0
def data_context_service_interface_pointuuid_namevalue_name_post(
        uuid, value_name, tapi_common_name_and_value=None):  # noqa: E501
    """data_context_service_interface_pointuuid_namevalue_name_post

    creates tapi.common.NameAndValue # noqa: E501

    :param uuid: Id of service-interface-point
    :type uuid: str
    :param value_name: Id of name
    :type value_name: str
    :param tapi_common_name_and_value: tapi.common.NameAndValue to be added to list
    :type tapi_common_name_and_value: dict | bytes

    :rtype: None
    """
    if connexion.request.is_json:
        tapi_common_name_and_value = TapiCommonNameAndValue.from_dict(
            connexion.request.get_json())  # noqa: E501
    return 'do some magic!'