Class: Jamf::DiskEncryptionConfiguration
- Includes:
- Updatable
- Defined in:
- lib/jamf/api/classic/api_objects/disk_encryption_configuration.rb
Overview
Disk Encryption Configuration object inside JSS
More Detailed Description if needed
Constant Summary collapse
- KEY_TYPE =
Note:
Currently “Individual and Institutional” configuration type is unsupported through the API
{ individual: 'Individual', institutional: 'Institutional', individual_and_institutional: 'Individual and Institutional' }.freeze
- ENABLED_USERS_TYPE =
Note:
as of 10.13 Management Account cannot be used due to the lack of a secure token.
{ management: "Management Account", current: "Current or Next User" }.freeze
- RSRC_BASE =
The base for REST resources of this class
'diskencryptionconfigurations'.freeze
- RSRC_LIST_KEY =
the hash key used for the JSON list output of all objects in the JSS
:disk_encryption_configurations
- RSRC_OBJECT_KEY =
The hash key used for the JSON object output It’s also used in various error messages
:disk_encryption_configuration
Instance Attribute Summary collapse
-
#file_vault_enabled_users ⇒ Object
Returns the value of attribute file_vault_enabled_users.
-
#institutional_recovery_key ⇒ Object
readonly
Returns the value of attribute institutional_recovery_key.
-
#key_type ⇒ Object
readonly
Attributes.
-
#need_to_update ⇒ Boolean
included
from Updatable
readonly
Do we have unsaved changes?.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DiskEncryptionConfiguration
constructor
A new instance of DiskEncryptionConfiguration.
-
#name=(newname) ⇒ void
included
from Updatable
Change the name of this item Remember to #update to push changes to the server.
Constructor Details
#initialize(**args) ⇒ DiskEncryptionConfiguration
Returns a new instance of DiskEncryptionConfiguration.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/jamf/api/classic/api_objects/disk_encryption_configuration.rb', line 58 def initialize(**args) super if self.in_jss? @key_type = @init_data[:key_type] @file_vault_enabled_users = @init_data[:file_vault_enabled_users] @institutional_recovery_key = @init_data[:institutional_recovery_key] else raise Jamf::InvalidDataError, "Currently the ability to create a Disk Encryption Configuration is not possible through ruby-jss." end end |
Instance Attribute Details
#file_vault_enabled_users ⇒ Object
Returns the value of attribute file_vault_enabled_users.
51 52 53 |
# File 'lib/jamf/api/classic/api_objects/disk_encryption_configuration.rb', line 51 def file_vault_enabled_users @file_vault_enabled_users end |
#institutional_recovery_key ⇒ Object (readonly)
Returns the value of attribute institutional_recovery_key.
52 53 54 |
# File 'lib/jamf/api/classic/api_objects/disk_encryption_configuration.rb', line 52 def institutional_recovery_key @institutional_recovery_key end |
#key_type ⇒ Object (readonly)
Attributes
50 51 52 |
# File 'lib/jamf/api/classic/api_objects/disk_encryption_configuration.rb', line 50 def key_type @key_type end |
#need_to_update ⇒ Boolean (readonly) Originally defined in module Updatable
Returns do we have unsaved changes?.
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.