How to use the meraki.models.vendor_config_model.VendorConfigModel.from_dictionary function in meraki

To help you get started, we’ve selected a few meraki 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 meraki / meraki-python-sdk / meraki / models / add_network_sm_profile_clarity_model.py View on Github external
obtained from the deserialization of the server's response. The keys
            MUST match property names in the API description.

        Returns:
            object: An instance of this structure class.

        """
        if dictionary is None:
            return None

        # Extract variables from the dictionary
        vendor_config = None
        if dictionary.get('VendorConfig') != None:
            vendor_config = list()
            for structure in dictionary.get('VendorConfig'):
                vendor_config.append(meraki.models.vendor_config_model.VendorConfigModel.from_dictionary(structure))
        plugin_bundle_id = dictionary.get('PluginBundleID')
        filter_browsers = dictionary.get('FilterBrowsers')
        filter_sockets = dictionary.get('FilterSockets')

        # Return an object of this model
        return cls(vendor_config,
                   plugin_bundle_id,
                   filter_browsers,
                   filter_sockets)
github meraki / meraki-python-sdk / meraki / models / create_network_sm_profile_clarity_model.py View on Github external
Returns:
            object: An instance of this structure class.

        """
        if dictionary is None:
            return None

        # Extract variables from the dictionary
        name = dictionary.get('name')
        scope = dictionary.get('scope')
        vendor_config = None
        if dictionary.get('VendorConfig') != None:
            vendor_config = list()
            for structure in dictionary.get('VendorConfig'):
                vendor_config.append(meraki.models.vendor_config_model.VendorConfigModel.from_dictionary(structure))
        plugin_bundle_id = dictionary.get('PluginBundleID')
        filter_browsers = dictionary.get('FilterBrowsers')
        filter_sockets = dictionary.get('FilterSockets')

        # Return an object of this model
        return cls(name,
                   scope,
                   vendor_config,
                   plugin_bundle_id,
                   filter_browsers,
                   filter_sockets)

github meraki / meraki-python-sdk / meraki / models / update_network_sm_profile_clarity_model.py View on Github external
"""
        if dictionary is None:
            return None

        # Extract variables from the dictionary
        name = dictionary.get('name')
        scope = dictionary.get('scope')
        plugin_bundle_id = dictionary.get('PluginBundleID')
        filter_browsers = dictionary.get('FilterBrowsers')
        filter_sockets = dictionary.get('FilterSockets')
        vendor_config = None
        if dictionary.get('VendorConfig') != None:
            vendor_config = list()
            for structure in dictionary.get('VendorConfig'):
                vendor_config.append(meraki.models.vendor_config_model.VendorConfigModel.from_dictionary(structure))

        # Return an object of this model
        return cls(name,
                   scope,
                   plugin_bundle_id,
                   filter_browsers,
                   filter_sockets,
                   vendor_config)