Class: MicrosoftGraph::Models::MacOSGeneralDeviceConfiguration
- Inherits:
-
DeviceConfiguration
- Object
- Entity
- DeviceConfiguration
- MicrosoftGraph::Models::MacOSGeneralDeviceConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mac_o_s_general_device_configuration.rb
Overview
This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSGeneralDeviceConfiguration resource.
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#compliant_app_list_type ⇒ Object
Gets the compliantAppListType property value.
-
#compliant_app_list_type=(value) ⇒ Object
Sets the compliantAppListType property value.
-
#compliant_apps_list ⇒ Object
Gets the compliantAppsList property value.
-
#compliant_apps_list=(value) ⇒ Object
Sets the compliantAppsList property value.
-
#email_in_domain_suffixes ⇒ Object
Gets the emailInDomainSuffixes property value.
-
#email_in_domain_suffixes=(value) ⇒ Object
Sets the emailInDomainSuffixes property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new macOSGeneralDeviceConfiguration and sets the default values.
-
#password_block_simple ⇒ Object
Gets the passwordBlockSimple property value.
-
#password_block_simple=(value) ⇒ Object
Sets the passwordBlockSimple property value.
-
#password_expiration_days ⇒ Object
Gets the passwordExpirationDays property value.
-
#password_expiration_days=(value) ⇒ Object
Sets the passwordExpirationDays property value.
-
#password_minimum_character_set_count ⇒ Object
Gets the passwordMinimumCharacterSetCount property value.
-
#password_minimum_character_set_count=(value) ⇒ Object
Sets the passwordMinimumCharacterSetCount property value.
-
#password_minimum_length ⇒ Object
Gets the passwordMinimumLength property value.
-
#password_minimum_length=(value) ⇒ Object
Sets the passwordMinimumLength property value.
-
#password_minutes_of_inactivity_before_lock ⇒ Object
Gets the passwordMinutesOfInactivityBeforeLock property value.
-
#password_minutes_of_inactivity_before_lock=(value) ⇒ Object
Sets the passwordMinutesOfInactivityBeforeLock property value.
-
#password_minutes_of_inactivity_before_screen_timeout ⇒ Object
Gets the passwordMinutesOfInactivityBeforeScreenTimeout property value.
-
#password_minutes_of_inactivity_before_screen_timeout=(value) ⇒ Object
Sets the passwordMinutesOfInactivityBeforeScreenTimeout property value.
-
#password_previous_password_block_count ⇒ Object
Gets the passwordPreviousPasswordBlockCount property value.
-
#password_previous_password_block_count=(value) ⇒ Object
Sets the passwordPreviousPasswordBlockCount property value.
-
#password_required ⇒ Object
Gets the passwordRequired property value.
-
#password_required=(value) ⇒ Object
Sets the passwordRequired property value.
-
#password_required_type ⇒ Object
Gets the passwordRequiredType property value.
-
#password_required_type=(value) ⇒ Object
Sets the passwordRequiredType property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from DeviceConfiguration
#assignments, #assignments=, #created_date_time, #created_date_time=, #description, #description=, #device_setting_state_summaries, #device_setting_state_summaries=, #device_status_overview, #device_status_overview=, #device_statuses, #device_statuses=, #display_name, #display_name=, #last_modified_date_time, #last_modified_date_time=, #user_status_overview, #user_status_overview=, #user_statuses, #user_statuses=, #version, #version=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new macOSGeneralDeviceConfiguration and sets the default values.
81 82 83 84 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 81 def initialize() super @odata_type = "#microsoft.graph.macOSGeneralDeviceConfiguration" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
90 91 92 93 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 90 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MacOSGeneralDeviceConfiguration.new end |
Instance Method Details
#compliant_app_list_type ⇒ Object
Gets the compliantAppListType property value. Possible values of the compliance app list.
51 52 53 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 51 def compliant_app_list_type return @compliant_app_list_type end |
#compliant_app_list_type=(value) ⇒ Object
Sets the compliantAppListType property value. Possible values of the compliance app list.
59 60 61 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 59 def compliant_app_list_type=(value) @compliant_app_list_type = value end |
#compliant_apps_list ⇒ Object
Gets the compliantAppsList property value. List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
66 67 68 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 66 def compliant_apps_list return @compliant_apps_list end |
#compliant_apps_list=(value) ⇒ Object
Sets the compliantAppsList property value. List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
74 75 76 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 74 def compliant_apps_list=(value) @compliant_apps_list = value end |
#email_in_domain_suffixes ⇒ Object
Gets the emailInDomainSuffixes property value. An email address lacking a suffix that matches any of these strings will be considered out-of-domain.
98 99 100 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 98 def email_in_domain_suffixes return @email_in_domain_suffixes end |
#email_in_domain_suffixes=(value) ⇒ Object
Sets the emailInDomainSuffixes property value. An email address lacking a suffix that matches any of these strings will be considered out-of-domain.
106 107 108 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 106 def email_in_domain_suffixes=(value) @email_in_domain_suffixes = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 113 def get_field_deserializers() return super.merge({ "compliantAppListType" => lambda {|n| @compliant_app_list_type = n.get_enum_value(MicrosoftGraph::Models::AppListType) }, "compliantAppsList" => lambda {|n| @compliant_apps_list = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AppListItem.create_from_discriminator_value(pn) }) }, "emailInDomainSuffixes" => lambda {|n| @email_in_domain_suffixes = n.get_collection_of_primitive_values(String) }, "passwordBlockSimple" => lambda {|n| @password_block_simple = n.get_boolean_value() }, "passwordExpirationDays" => lambda {|n| @password_expiration_days = n.get_number_value() }, "passwordMinimumCharacterSetCount" => lambda {|n| @password_minimum_character_set_count = n.get_number_value() }, "passwordMinimumLength" => lambda {|n| @password_minimum_length = n.get_number_value() }, "passwordMinutesOfInactivityBeforeLock" => lambda {|n| @password_minutes_of_inactivity_before_lock = n.get_number_value() }, "passwordMinutesOfInactivityBeforeScreenTimeout" => lambda {|n| @password_minutes_of_inactivity_before_screen_timeout = n.get_number_value() }, "passwordPreviousPasswordBlockCount" => lambda {|n| @password_previous_password_block_count = n.get_number_value() }, "passwordRequired" => lambda {|n| @password_required = n.get_boolean_value() }, "passwordRequiredType" => lambda {|n| @password_required_type = n.get_enum_value(MicrosoftGraph::Models::RequiredPasswordType) }, }) end |
#password_block_simple ⇒ Object
Gets the passwordBlockSimple property value. Block simple passwords.
133 134 135 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 133 def password_block_simple return @password_block_simple end |
#password_block_simple=(value) ⇒ Object
Sets the passwordBlockSimple property value. Block simple passwords.
141 142 143 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 141 def password_block_simple=(value) @password_block_simple = value end |
#password_expiration_days ⇒ Object
Gets the passwordExpirationDays property value. Number of days before the password expires.
148 149 150 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 148 def password_expiration_days return @password_expiration_days end |
#password_expiration_days=(value) ⇒ Object
Sets the passwordExpirationDays property value. Number of days before the password expires.
156 157 158 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 156 def password_expiration_days=(value) @password_expiration_days = value end |
#password_minimum_character_set_count ⇒ Object
Gets the passwordMinimumCharacterSetCount property value. Number of character sets a password must contain. Valid values 0 to 4
163 164 165 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 163 def password_minimum_character_set_count return @password_minimum_character_set_count end |
#password_minimum_character_set_count=(value) ⇒ Object
Sets the passwordMinimumCharacterSetCount property value. Number of character sets a password must contain. Valid values 0 to 4
171 172 173 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 171 def password_minimum_character_set_count=(value) @password_minimum_character_set_count = value end |
#password_minimum_length ⇒ Object
Gets the passwordMinimumLength property value. Minimum length of passwords.
178 179 180 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 178 def password_minimum_length return @password_minimum_length end |
#password_minimum_length=(value) ⇒ Object
Sets the passwordMinimumLength property value. Minimum length of passwords.
186 187 188 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 186 def password_minimum_length=(value) @password_minimum_length = value end |
#password_minutes_of_inactivity_before_lock ⇒ Object
Gets the passwordMinutesOfInactivityBeforeLock property value. Minutes of inactivity required before a password is required.
193 194 195 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 193 def password_minutes_of_inactivity_before_lock return @password_minutes_of_inactivity_before_lock end |
#password_minutes_of_inactivity_before_lock=(value) ⇒ Object
Sets the passwordMinutesOfInactivityBeforeLock property value. Minutes of inactivity required before a password is required.
201 202 203 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 201 def password_minutes_of_inactivity_before_lock=(value) @password_minutes_of_inactivity_before_lock = value end |
#password_minutes_of_inactivity_before_screen_timeout ⇒ Object
Gets the passwordMinutesOfInactivityBeforeScreenTimeout property value. Minutes of inactivity required before the screen times out.
208 209 210 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 208 def password_minutes_of_inactivity_before_screen_timeout return @password_minutes_of_inactivity_before_screen_timeout end |
#password_minutes_of_inactivity_before_screen_timeout=(value) ⇒ Object
Sets the passwordMinutesOfInactivityBeforeScreenTimeout property value. Minutes of inactivity required before the screen times out.
216 217 218 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 216 def password_minutes_of_inactivity_before_screen_timeout=(value) @password_minutes_of_inactivity_before_screen_timeout = value end |
#password_previous_password_block_count ⇒ Object
Gets the passwordPreviousPasswordBlockCount property value. Number of previous passwords to block.
223 224 225 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 223 def password_previous_password_block_count return @password_previous_password_block_count end |
#password_previous_password_block_count=(value) ⇒ Object
Sets the passwordPreviousPasswordBlockCount property value. Number of previous passwords to block.
231 232 233 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 231 def password_previous_password_block_count=(value) @password_previous_password_block_count = value end |
#password_required ⇒ Object
Gets the passwordRequired property value. Whether or not to require a password.
238 239 240 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 238 def password_required return @password_required end |
#password_required=(value) ⇒ Object
Sets the passwordRequired property value. Whether or not to require a password.
246 247 248 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 246 def password_required=(value) @password_required = value end |
#password_required_type ⇒ Object
Gets the passwordRequiredType property value. Possible values of required passwords.
253 254 255 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 253 def password_required_type return @password_required_type end |
#password_required_type=(value) ⇒ Object
Sets the passwordRequiredType property value. Possible values of required passwords.
261 262 263 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 261 def password_required_type=(value) @password_required_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 |
# File 'lib/models/mac_o_s_general_device_configuration.rb', line 269 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("compliantAppListType", @compliant_app_list_type) writer.write_collection_of_object_values("compliantAppsList", @compliant_apps_list) writer.write_collection_of_primitive_values("emailInDomainSuffixes", @email_in_domain_suffixes) writer.write_boolean_value("passwordBlockSimple", @password_block_simple) writer.write_number_value("passwordExpirationDays", @password_expiration_days) writer.write_number_value("passwordMinimumCharacterSetCount", @password_minimum_character_set_count) writer.write_number_value("passwordMinimumLength", @password_minimum_length) writer.write_number_value("passwordMinutesOfInactivityBeforeLock", @password_minutes_of_inactivity_before_lock) writer.write_number_value("passwordMinutesOfInactivityBeforeScreenTimeout", @password_minutes_of_inactivity_before_screen_timeout) writer.write_number_value("passwordPreviousPasswordBlockCount", @password_previous_password_block_count) writer.write_boolean_value("passwordRequired", @password_required) writer.write_enum_value("passwordRequiredType", @password_required_type) end |