How to use the dnacentersdk.api.v1_2_10.fabric_wired.FabricWired function in dnacentersdk

To help you get started, we’ve selected a few dnacentersdk examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cisco-en-programmability / dnacentersdk / tests / test_dnacentersdk.py View on Github external
def test_api_object_creation(self, api):
        assert isinstance(api.authentication, Authentication)
        assert isinstance(api.custom_caller, CustomCaller)
        if api.version == '1.2.10':
            assert isinstance(api.clients, Clients_v1_2_10)
            assert isinstance(api.command_runner, CommandRunner_v1_2_10)
            assert isinstance(api.devices, Devices_v1_2_10)
            assert isinstance(api.fabric_wired, FabricWired_v1_2_10)
            assert isinstance(api.file, File_v1_2_10)
            assert isinstance(api.network_discovery, NetworkDiscovery_v1_2_10)
            assert isinstance(api.networks, Networks_v1_2_10)
            assert isinstance(api.non_fabric_wireless, NonFabricWireless_v1_2_10)
            assert isinstance(api.path_trace, PathTrace_v1_2_10)
            assert isinstance(api.pnp, Pnp_v1_2_10)
            assert isinstance(api.swim, Swim_v1_2_10)
            assert isinstance(api.site_profile, SiteProfile_v1_2_10)
            assert isinstance(api.sites, Sites_v1_2_10)
            assert isinstance(api.tag, Tag_v1_2_10)
            assert isinstance(api.task, Task_v1_2_10)
            assert isinstance(api.template_programmer, TemplateProgrammer_v1_2_10)
        if api.version == '1.3.0':
            assert isinstance(api.clients, Clients_v1_3_0)
            assert isinstance(api.command_runner, CommandRunner_v1_3_0)
            assert isinstance(api.devices, Devices_v1_3_0)
github cisco-en-programmability / dnacentersdk / dnacentersdk / api / v1_2_10 / fabric_wired.py View on Github external
def __init__(self, session, object_factory, request_validator):
        """Initialize a new FabricWired
        object with the provided RestSession.

        Args:
            session(RestSession): The RESTful session object to be used for
                API calls to the DNA Center service.

        Raises:
            TypeError: If the parameter types are incorrect.

        """
        check_type(session, RestSession)

        super(FabricWired, self).__init__()

        self._session = session
        self._object_factory = object_factory
        self._request_validator = request_validator
github cisco-en-programmability / dnacentersdk / dnacentersdk / api / __init__.py View on Github external
# API wrappers
        if version == '1.2.10':
            self.clients = \
                Clients_v1_2_10(
                    self._session, object_factory, validator
                )
            self.command_runner = \
                CommandRunner_v1_2_10(
                    self._session, object_factory, validator
                )
            self.devices = \
                Devices_v1_2_10(
                    self._session, object_factory, validator
                )
            self.fabric_wired = \
                FabricWired_v1_2_10(
                    self._session, object_factory, validator
                )
            self.file = \
                File_v1_2_10(
                    self._session, object_factory, validator
                )
            self.network_discovery = \
                NetworkDiscovery_v1_2_10(
                    self._session, object_factory, validator
                )
            self.networks = \
                Networks_v1_2_10(
                    self._session, object_factory, validator
                )
            self.non_fabric_wireless = \
                NonFabricWireless_v1_2_10(