Class: Jamf::VPPAccount
- Defined in:
- lib/jamf/api/classic/api_objects/vpp_account.rb
Overview
A VPP account defined in the JSS
Constant Summary collapse
- RSRC_BASE =
The base for REST resources of this class
'vppaccounts'.freeze
- RSRC_LIST_KEY =
the hash key used for the JSON list output of all objects in the JSS
:vpp_accounts- RSRC_OBJECT_KEY =
The hash key used for the JSON object output. It’s also used in various error messages
:vpp_account- SITE_SUBSET =
:top
Instance Attribute Summary collapse
-
#account_name ⇒ String
readonly
The name of the company associated with the Acct/Token.
-
#apple_id ⇒ String
The AppleID associated with the acct.
-
#auto_register_managed_users ⇒ Boolean
Automatically register users that have Managed Apple IDs so they do not receive an invitation and are not prompted to register with volume purchasing.
-
#contact ⇒ String
The full name of the local contact person for the acct.
-
#country ⇒ String
The Country Code associated with the acct.
-
#expiration_date ⇒ Time
readonly
The expiration date of the Acct/Token.
-
#location_name ⇒ String
(also: #location)
readonly
The location associated with the Acct/Token.
-
#need_to_update ⇒ Boolean
included
from Updatable
readonly
Do we have unsaved changes?.
-
#notify_disassociation ⇒ Boolean
Display a notification to users on their mobile devices when a volume purchased app in a user-based volume assignment is no longer assigned to them.
-
#populate_catalog_from_vpp_content ⇒ Boolean
Automatically populate purchased content from Apple School Manager or Apple Business Manager in Jamf Pro.
-
#service_token ⇒ String
readonly
The service token for connecting to the account at Apple.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VPPAccount
constructor
See Jamf::APIObject#initialize.
-
#name=(newname) ⇒ void
included
from Updatable
Change the name of this item Remember to #update to push changes to the server.
-
#site=(new_site) ⇒ void
included
from Sitable
Change the site of this object.
-
#site_assigned? ⇒ Boolean
included
from Sitable
Does this object have a site assigned?.
-
#site_id ⇒ Integer
included
from Sitable
The id of the site for this object.
-
#site_name ⇒ String
(also: #site)
included
from Sitable
The name of the site for this object.
-
#site_object ⇒ Jamf::Site
included
from Sitable
The Jamf::Site instance for this object’s site.
-
#unset_site ⇒ void
included
from Sitable
Set the site to nothing.
Constructor Details
#initialize(**args) ⇒ VPPAccount
See Jamf::APIObject#initialize
80 81 82 83 84 85 86 87 88 89 90 91 92 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 80 def initialize(**args) super @contact = @init_data[:contact] @service_token = @init_data[:service_token] @account_name = @init_data[:account_name] @expiration_date = @init_data[:expiration_date].to_s.empty? ? nil : Jamf.parse_time(@init_data[:expiration_date]) @location_name = @init_data[:location_name] @country = @init_data[:country] @apple_id = @init_data[:apple_id] @populate_catalog_from_vpp_content = @init_data[:populate_catalog_from_vpp_content] @notify_disassociation = @init_data[:notify_disassociation] @auto_register_managed_users = @init_data[:auto_register_managed_users] end |
Instance Attribute Details
#account_name ⇒ String (readonly)
Returns The name of the company associated with the Acct/Token.
46 47 48 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 46 def account_name @account_name end |
#apple_id ⇒ String
Returns The AppleID associated with the acct.
59 60 61 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 59 def apple_id @apple_id end |
#auto_register_managed_users ⇒ Boolean
Returns Automatically register users that have Managed Apple IDs so they do not receive an invitation and are not prompted to register with volume purchasing.
73 74 75 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 73 def auto_register_managed_users @auto_register_managed_users end |
#contact ⇒ String
Returns The full name of the local contact person for the acct.
39 40 41 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 39 def contact @contact end |
#country ⇒ String
Returns The Country Code associated with the acct.
56 57 58 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 56 def country @country end |
#expiration_date ⇒ Time (readonly)
Returns The expiration date of the Acct/Token.
49 50 51 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 49 def expiration_date @expiration_date end |
#location_name ⇒ String (readonly) Also known as: location
Returns The location associated with the Acct/Token.
52 53 54 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 52 def location_name @location_name end |
#need_to_update ⇒ Boolean (readonly) Originally defined in module Updatable
Returns do we have unsaved changes?.
#notify_disassociation ⇒ Boolean
Returns Display a notification to users on their mobile devices when a volume purchased app in a user-based volume assignment is no longer assigned to them.
68 69 70 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 68 def notify_disassociation @notify_disassociation end |
#populate_catalog_from_vpp_content ⇒ Boolean
Returns Automatically populate purchased content from Apple School Manager or Apple Business Manager in Jamf Pro.
63 64 65 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 63 def populate_catalog_from_vpp_content @populate_catalog_from_vpp_content end |
#service_token ⇒ String (readonly)
Returns The service token for connecting to the account at Apple. Currently not visible, appears as ‘***************’.
43 44 45 |
# File 'lib/jamf/api/classic/api_objects/vpp_account.rb', line 43 def service_token @service_token end |
Instance Method Details
#name=(newname) ⇒ void Originally defined in module Updatable
This method returns an undefined value.
Change the name of this item Remember to #update to push changes to the server.
#site=(new_site) ⇒ void Originally defined in module Sitable
This method returns an undefined value.
Change the site of this object. Any of the NON_SITES values will unset the site
#site_assigned? ⇒ Boolean Originally defined in module Sitable
Does this object have a site assigned?
#site_id ⇒ Integer Originally defined in module Sitable
The id of the site for this object.
#site_name ⇒ String Also known as: site Originally defined in module Sitable
The name of the site for this object. For backward compatibility, this is aliased to just ‘site’
#site_object ⇒ Jamf::Site Originally defined in module Sitable
The Jamf::Site instance for this object’s site
#unset_site ⇒ void Originally defined in module Sitable
This method returns an undefined value.
Set the site to nothing