How to use the meraki.models.per_client_bandwidth_limits_model.PerClientBandwidthLimitsModel.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 / rule_11_model.py View on Github external
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
        definitions = None
        if dictionary.get('definitions') != None:
            definitions = list()
            for structure in dictionary.get('definitions'):
                definitions.append(meraki.models.definition_model.DefinitionModel.from_dictionary(structure))
        per_client_bandwidth_limits = meraki.models.per_client_bandwidth_limits_model.PerClientBandwidthLimitsModel.from_dictionary(dictionary.get('perClientBandwidthLimits')) if dictionary.get('perClientBandwidthLimits') else None
        dscp_tag_value = dictionary.get('dscpTagValue')
        priority = dictionary.get('priority')

        # Return an object of this model
        return cls(definitions,
                   per_client_bandwidth_limits,
                   dscp_tag_value,
                   priority)

github meraki / meraki-python-sdk / meraki / models / rule10_model.py View on Github external
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
        definitions = None
        if dictionary.get('definitions') != None:
            definitions = list()
            for structure in dictionary.get('definitions'):
                definitions.append(meraki.models.definition_model.DefinitionModel.from_dictionary(structure))
        per_client_bandwidth_limits = meraki.models.per_client_bandwidth_limits_model.PerClientBandwidthLimitsModel.from_dictionary(dictionary.get('perClientBandwidthLimits')) if dictionary.get('perClientBandwidthLimits') else None
        dscp_tag_value = dictionary.get('dscpTagValue')
        priority = dictionary.get('priority')

        # Return an object of this model
        return cls(definitions,
                   per_client_bandwidth_limits,
                   dscp_tag_value,
                   priority)

github meraki / meraki-python-sdk / meraki / models / rule9_model.py View on Github external
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
        definitions = None
        if dictionary.get('definitions') != None:
            definitions = list()
            for structure in dictionary.get('definitions'):
                definitions.append(meraki.models.definition_model.DefinitionModel.from_dictionary(structure))
        per_client_bandwidth_limits = meraki.models.per_client_bandwidth_limits_model.PerClientBandwidthLimitsModel.from_dictionary(dictionary.get('perClientBandwidthLimits')) if dictionary.get('perClientBandwidthLimits') else None
        dscp_tag_value = dictionary.get('dscpTagValue')
        pcp_tag_value = dictionary.get('pcpTagValue')

        # Return an object of this model
        return cls(definitions,
                   per_client_bandwidth_limits,
                   dscp_tag_value,
                   pcp_tag_value)