Class: JSS::VPPAccount
- Defined in:
- lib/jss/api_object/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 JSS::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 ⇒ JSS::Site
included
from Sitable
The JSS::Site instance for this object's site.
-
#unset_site ⇒ void
included
from Sitable
Set the site to nothing.
-
#update ⇒ Boolean
included
from Updatable
Save changes to the JSS.
Constructor Details
#initialize(args = {}) ⇒ VPPAccount
See JSS::APIObject#initialize
98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/jss/api_object/vpp_account.rb', line 98 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 : Time.parse(@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.
64 65 66 |
# File 'lib/jss/api_object/vpp_account.rb', line 64 def account_name @account_name end |
#apple_id ⇒ String
Returns The AppleID associated with the acct.
77 78 79 |
# File 'lib/jss/api_object/vpp_account.rb', line 77 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.
91 92 93 |
# File 'lib/jss/api_object/vpp_account.rb', line 91 def auto_register_managed_users @auto_register_managed_users end |
#contact ⇒ String
Returns The full name of the local contact person for the acct.
57 58 59 |
# File 'lib/jss/api_object/vpp_account.rb', line 57 def contact @contact end |
#country ⇒ String
Returns The Country Code associated with the acct.
74 75 76 |
# File 'lib/jss/api_object/vpp_account.rb', line 74 def country @country end |
#expiration_date ⇒ Time (readonly)
Returns The expiration date of the Acct/Token.
67 68 69 |
# File 'lib/jss/api_object/vpp_account.rb', line 67 def expiration_date @expiration_date end |
#location_name ⇒ String (readonly) Also known as: location
Returns The location associated with the Acct/Token.
70 71 72 |
# File 'lib/jss/api_object/vpp_account.rb', line 70 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.
86 87 88 |
# File 'lib/jss/api_object/vpp_account.rb', line 86 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.
81 82 83 |
# File 'lib/jss/api_object/vpp_account.rb', line 81 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 '***************'.
61 62 63 |
# File 'lib/jss/api_object/vpp_account.rb', line 61 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 ⇒ JSS::Site Originally defined in module Sitable
The JSS::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
#update ⇒ Boolean Originally defined in module Updatable
Save changes to the JSS