How to use the meraki.models 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 / update_network_group_policy_model.py View on Github external
Args:
            dictionary (dictionary): A dictionary representation of the object as
            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
        name = dictionary.get('name')
        scheduling = meraki.models.scheduling_model.SchedulingModel.from_dictionary(dictionary.get('scheduling')) if dictionary.get('scheduling') else None
        bandwidth = meraki.models.bandwidth_model.BandwidthModel.from_dictionary(dictionary.get('bandwidth')) if dictionary.get('bandwidth') else None
        firewall_and_traffic_shaping = meraki.models.firewall_and_traffic_shaping_model.FirewallAndTrafficShapingModel.from_dictionary(dictionary.get('firewallAndTrafficShaping')) if dictionary.get('firewallAndTrafficShaping') else None
        content_filtering = meraki.models.content_filtering_model.ContentFilteringModel.from_dictionary(dictionary.get('contentFiltering')) if dictionary.get('contentFiltering') else None
        splash_auth_settings = dictionary.get('splashAuthSettings')
        vlan_tagging = meraki.models.vlan_tagging_model.VlanTaggingModel.from_dictionary(dictionary.get('vlanTagging')) if dictionary.get('vlanTagging') else None
        bonjour_forwarding = meraki.models.bonjour_forwarding_model.BonjourForwardingModel.from_dictionary(dictionary.get('bonjourForwarding')) if dictionary.get('bonjourForwarding') else None

        # Return an object of this model
        return cls(name,
                   scheduling,
                   bandwidth,
                   firewall_and_traffic_shaping,
                   content_filtering,
                   splash_auth_settings,
                   vlan_tagging,
                   bonjour_forwarding)
github meraki / meraki-python-sdk / meraki / models / update_network_device_management_interface_settings_model.py View on Github external
Args:
            dictionary (dictionary): A dictionary representation of the object as
            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
        wan_1 = meraki.models.wan_1_model.Wan1Model.from_dictionary(dictionary.get('wan1')) if dictionary.get('wan1') else None
        wan_2 = meraki.models.wan_2_model.Wan2Model.from_dictionary(dictionary.get('wan2')) if dictionary.get('wan2') else None

        # Return an object of this model
        return cls(wan_1,
                   wan_2)
github meraki / meraki-python-sdk / meraki / models / update_network_vlan_model.py View on Github external
name = dictionary.get('name')
        subnet = dictionary.get('subnet')
        appliance_ip = dictionary.get('applianceIp')
        vpn_nat_subnet = dictionary.get('vpnNatSubnet')
        dhcp_handling = dictionary.get('dhcpHandling')
        dhcp_relay_server_ips = dictionary.get('dhcpRelayServerIps')
        dhcp_lease_time = dictionary.get('dhcpLeaseTime')
        dhcp_boot_options_enabled = dictionary.get('dhcpBootOptionsEnabled')
        dhcp_boot_next_server = dictionary.get('dhcpBootNextServer')
        dhcp_boot_filename = dictionary.get('dhcpBootFilename')
        fixed_ip_assignments = dictionary.get('fixedIpAssignments')
        reserved_ip_ranges = None
        if dictionary.get('reservedIpRanges') != None:
            reserved_ip_ranges = list()
            for structure in dictionary.get('reservedIpRanges'):
                reserved_ip_ranges.append(meraki.models.reserved_ip_range_model.ReservedIpRangeModel.from_dictionary(structure))
        dns_nameservers = dictionary.get('dnsNameservers')
        dhcp_options = None
        if dictionary.get('dhcpOptions') != None:
            dhcp_options = list()
            for structure in dictionary.get('dhcpOptions'):
                dhcp_options.append(meraki.models.dhcp_option_model.DhcpOptionModel.from_dictionary(structure))

        # Return an object of this model
        return cls(name,
                   subnet,
                   appliance_ip,
                   vpn_nat_subnet,
                   dhcp_handling,
                   dhcp_relay_server_ips,
                   dhcp_lease_time,
                   dhcp_boot_options_enabled,
github meraki / meraki-python-sdk / meraki / models / update_network_site_to_site_vpn_model.py View on Github external
"""
        if dictionary is None:
            return None

        # Extract variables from the dictionary
        mode = dictionary.get('mode')
        hubs = None
        if dictionary.get('hubs') != None:
            hubs = list()
            for structure in dictionary.get('hubs'):
                hubs.append(meraki.models.hub_model.HubModel.from_dictionary(structure))
        subnets = None
        if dictionary.get('subnets') != None:
            subnets = list()
            for structure in dictionary.get('subnets'):
                subnets.append(meraki.models.subnet_model.SubnetModel.from_dictionary(structure))

        # Return an object of this model
        return cls(mode,
                   hubs,
                   subnets)

github meraki / meraki-python-sdk / meraki / models / update_network_one_to_many_nat_rules_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
        rules = None
        if dictionary.get('rules') != None:
            rules = list()
            for structure in dictionary.get('rules'):
                rules.append(meraki.models.rule_5_model.Rule5Model.from_dictionary(structure))

        # Return an object of this model
        return cls(rules)
github meraki / meraki-python-sdk / meraki / models / update_network_switch_settings_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
        vlan = dictionary.get('vlan')
        use_combined_power = dictionary.get('useCombinedPower')
        power_exceptions = None
        if dictionary.get('powerExceptions') != None:
            power_exceptions = list()
            for structure in dictionary.get('powerExceptions'):
                power_exceptions.append(meraki.models.power_exception_model.PowerExceptionModel.from_dictionary(structure))

        # Return an object of this model
        return cls(vlan,
                   use_combined_power,
                   power_exceptions)

github meraki / meraki-python-sdk / meraki / models / update_network_ssid_l3_firewall_rules_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
        rules = None
        if dictionary.get('rules') != None:
            rules = list()
            for structure in dictionary.get('rules'):
                rules.append(meraki.models.rule8_model.Rule8Model.from_dictionary(structure))
        allow_lan_access = dictionary.get('allowLanAccess')

        # Return an object of this model
        return cls(rules,
                   allow_lan_access)
github meraki / meraki-python-sdk / meraki / models / create_organization_admin_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
        email = dictionary.get('email')
        name = dictionary.get('name')
        org_access = dictionary.get('orgAccess')
        tags = None
        if dictionary.get('tags') != None:
            tags = list()
            for structure in dictionary.get('tags'):
                tags.append(meraki.models.tag_model.TagModel.from_dictionary(structure))
        networks = None
        if dictionary.get('networks') != None:
            networks = list()
            for structure in dictionary.get('networks'):
                networks.append(meraki.models.network_model.NetworkModel.from_dictionary(structure))

        # Return an object of this model
        return cls(email,
                   name,
                   org_access,
                   tags,
                   networks)

github meraki / meraki-python-sdk / meraki / models / update_network_wireless_rf_profile_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
        name = dictionary.get('name')
        client_balancing_enabled = dictionary.get('clientBalancingEnabled')
        min_bitrate_type = dictionary.get('minBitrateType')
        band_selection_type = dictionary.get('bandSelectionType')
        ap_band_settings = meraki.models.ap_band_settings_1_model.ApBandSettings1Model.from_dictionary(dictionary.get('apBandSettings')) if dictionary.get('apBandSettings') else None
        two_four_ghz_settings = meraki.models.two_four_ghz_settings_1_model.TwoFourGhzSettings1Model.from_dictionary(dictionary.get('twoFourGhzSettings')) if dictionary.get('twoFourGhzSettings') else None
        five_ghz_settings = meraki.models.five_ghz_settings_1_model.FiveGhzSettings1Model.from_dictionary(dictionary.get('fiveGhzSettings')) if dictionary.get('fiveGhzSettings') else None

        # Return an object of this model
        return cls(name,
                   client_balancing_enabled,
                   min_bitrate_type,
                   band_selection_type,
                   ap_band_settings,
                   two_four_ghz_settings,
                   five_ghz_settings)