lib/jss/api_object/vppable.rb
def all_vpp_device_assignable
        data = {}
        all_ids.each do |id|
          obj = fetch id: id
          next unless obj.vpp_device_based?

          data[obj.name] = {
            total: obj.vpp_licenses_total,
            used: obj.vpp_licenses_used,
            remaining: obj.vpp_licenses_remaining
          }
        end
        data
      end
# The names and assignment data for all class members that have
# VPP licenses that can be assigned by device.
# The assignment data is a hash of three keys pointing to integers:
#   {
#     total: int,
#     used: int,
#     remaining: int
#   }
#
# WARNING: This must instantiate all objects, so is slow
#
# @return [Hash{String=>Hash}] The names and assignment data
The names and assignment data for all class members that have
VPP licenses that can be assigned by device.
The assignment data is a hash of three keys pointing to integers:
{
total: int,
used: int,
remaining: int
}

This must instantiate all objects, so is slow
The names and assignment data for all class members that have VPP licenses that can be assigned by device . The assignment data is a hash of three keys pointing to integers : { total : int used : int remaining : int } This must instantiate all objects so is slow
def all_vpp_device_assignable
        data = {}
        all_ids.each do |id|
          obj = fetch id: id
          next unless obj.vpp_device_based?
          data[obj.name] = {
            total: obj.vpp_licenses_total,
            used: obj.vpp_licenses_used,
            remaining: obj.vpp_licenses_remaining
          }
        end
        data
      end
def all_vpp_device_assignable data = { } all_ids . each do | id | obj = fetch id : id next unless obj . vpp_device_based? data [ obj . name ] = { total : obj . vpp_licenses_total , used : obj . vpp_licenses_used , remaining : obj . vpp_licenses_remaining } end data end
The names and assignment data for all class members that have
VPP licenses that can be assigned by device.
The names and assignment data for all class members that have VPP licenses that can be assigned by device .
The names and assignment data
The names and assignment data
Hash{String=>Hash}