Class: MicrosoftGraph::Models::MacOSCompliancePolicy
- Inherits:
-
DeviceCompliancePolicy
- Object
- Entity
- DeviceCompliancePolicy
- MicrosoftGraph::Models::MacOSCompliancePolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/mac_o_s_compliance_policy.rb
Overview
This class contains compliance settings for Mac OS.
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
-
#device_threat_protection_enabled ⇒ Object
Gets the deviceThreatProtectionEnabled property value.
-
#device_threat_protection_enabled=(value) ⇒ Object
Sets the deviceThreatProtectionEnabled property value.
-
#device_threat_protection_required_security_level ⇒ Object
Gets the deviceThreatProtectionRequiredSecurityLevel property value.
-
#device_threat_protection_required_security_level=(value) ⇒ Object
Sets the deviceThreatProtectionRequiredSecurityLevel property value.
-
#firewall_block_all_incoming ⇒ Object
Gets the firewallBlockAllIncoming property value.
-
#firewall_block_all_incoming=(value) ⇒ Object
Sets the firewallBlockAllIncoming property value.
-
#firewall_enable_stealth_mode ⇒ Object
Gets the firewallEnableStealthMode property value.
-
#firewall_enable_stealth_mode=(value) ⇒ Object
Sets the firewallEnableStealthMode property value.
-
#firewall_enabled ⇒ Object
Gets the firewallEnabled property value.
-
#firewall_enabled=(value) ⇒ Object
Sets the firewallEnabled property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new macOSCompliancePolicy and sets the default values.
-
#os_maximum_version ⇒ Object
Gets the osMaximumVersion property value.
-
#os_maximum_version=(value) ⇒ Object
Sets the osMaximumVersion property value.
-
#os_minimum_version ⇒ Object
Gets the osMinimumVersion property value.
-
#os_minimum_version=(value) ⇒ Object
Sets the osMinimumVersion property value.
-
#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_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.
-
#storage_require_encryption ⇒ Object
Gets the storageRequireEncryption property value.
-
#storage_require_encryption=(value) ⇒ Object
Sets the storageRequireEncryption property value.
-
#system_integrity_protection_enabled ⇒ Object
Gets the systemIntegrityProtectionEnabled property value.
-
#system_integrity_protection_enabled=(value) ⇒ Object
Sets the systemIntegrityProtectionEnabled property value.
Methods inherited from DeviceCompliancePolicy
#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=, #scheduled_actions_for_rule, #scheduled_actions_for_rule=, #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 macOSCompliancePolicy and sets the default values.
66 67 68 69 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 66 def initialize() super @odata_type = "#microsoft.graph.macOSCompliancePolicy" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
75 76 77 78 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 75 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return MacOSCompliancePolicy.new end |
Instance Method Details
#device_threat_protection_enabled ⇒ Object
Gets the deviceThreatProtectionEnabled property value. Require that devices have enabled device threat protection.
83 84 85 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 83 def device_threat_protection_enabled return @device_threat_protection_enabled end |
#device_threat_protection_enabled=(value) ⇒ Object
Sets the deviceThreatProtectionEnabled property value. Require that devices have enabled device threat protection.
91 92 93 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 91 def device_threat_protection_enabled=(value) @device_threat_protection_enabled = value end |
#device_threat_protection_required_security_level ⇒ Object
Gets the deviceThreatProtectionRequiredSecurityLevel property value. Device threat protection levels for the Device Threat Protection API.
98 99 100 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 98 def device_threat_protection_required_security_level return @device_threat_protection_required_security_level end |
#device_threat_protection_required_security_level=(value) ⇒ Object
Sets the deviceThreatProtectionRequiredSecurityLevel property value. Device threat protection levels for the Device Threat Protection API.
106 107 108 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 106 def device_threat_protection_required_security_level=(value) @device_threat_protection_required_security_level = value end |
#firewall_block_all_incoming ⇒ Object
Gets the firewallBlockAllIncoming property value. Corresponds to the ‘Block all incoming connections’ option.
113 114 115 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 113 def firewall_block_all_incoming return @firewall_block_all_incoming end |
#firewall_block_all_incoming=(value) ⇒ Object
Sets the firewallBlockAllIncoming property value. Corresponds to the ‘Block all incoming connections’ option.
121 122 123 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 121 def firewall_block_all_incoming=(value) @firewall_block_all_incoming = value end |
#firewall_enable_stealth_mode ⇒ Object
Gets the firewallEnableStealthMode property value. Corresponds to ‘Enable stealth mode.’
128 129 130 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 128 def firewall_enable_stealth_mode return @firewall_enable_stealth_mode end |
#firewall_enable_stealth_mode=(value) ⇒ Object
Sets the firewallEnableStealthMode property value. Corresponds to ‘Enable stealth mode.’
136 137 138 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 136 def firewall_enable_stealth_mode=(value) @firewall_enable_stealth_mode = value end |
#firewall_enabled ⇒ Object
Gets the firewallEnabled property value. Whether the firewall should be enabled or not.
143 144 145 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 143 def firewall_enabled return @firewall_enabled end |
#firewall_enabled=(value) ⇒ Object
Sets the firewallEnabled property value. Whether the firewall should be enabled or not.
151 152 153 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 151 def firewall_enabled=(value) @firewall_enabled = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 158 def get_field_deserializers() return super.merge({ "deviceThreatProtectionEnabled" => lambda {|n| @device_threat_protection_enabled = n.get_boolean_value() }, "deviceThreatProtectionRequiredSecurityLevel" => lambda {|n| @device_threat_protection_required_security_level = n.get_enum_value(MicrosoftGraph::Models::DeviceThreatProtectionLevel) }, "firewallBlockAllIncoming" => lambda {|n| @firewall_block_all_incoming = n.get_boolean_value() }, "firewallEnableStealthMode" => lambda {|n| @firewall_enable_stealth_mode = n.get_boolean_value() }, "firewallEnabled" => lambda {|n| @firewall_enabled = n.get_boolean_value() }, "osMaximumVersion" => lambda {|n| @os_maximum_version = n.get_string_value() }, "osMinimumVersion" => lambda {|n| @os_minimum_version = n.get_string_value() }, "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() }, "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) }, "storageRequireEncryption" => lambda {|n| @storage_require_encryption = n.get_boolean_value() }, "systemIntegrityProtectionEnabled" => lambda {|n| @system_integrity_protection_enabled = n.get_boolean_value() }, }) end |
#os_maximum_version ⇒ Object
Gets the osMaximumVersion property value. Maximum MacOS version.
183 184 185 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 183 def os_maximum_version return @os_maximum_version end |
#os_maximum_version=(value) ⇒ Object
Sets the osMaximumVersion property value. Maximum MacOS version.
191 192 193 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 191 def os_maximum_version=(value) @os_maximum_version = value end |
#os_minimum_version ⇒ Object
Gets the osMinimumVersion property value. Minimum MacOS version.
198 199 200 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 198 def os_minimum_version return @os_minimum_version end |
#os_minimum_version=(value) ⇒ Object
Sets the osMinimumVersion property value. Minimum MacOS version.
206 207 208 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 206 def os_minimum_version=(value) @os_minimum_version = value end |
#password_block_simple ⇒ Object
Gets the passwordBlockSimple property value. Indicates whether or not to block simple passwords.
213 214 215 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 213 def password_block_simple return @password_block_simple end |
#password_block_simple=(value) ⇒ Object
Sets the passwordBlockSimple property value. Indicates whether or not to block simple passwords.
221 222 223 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 221 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. Valid values 1 to 65535
228 229 230 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 228 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. Valid values 1 to 65535
236 237 238 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 236 def password_expiration_days=(value) @password_expiration_days = value end |
#password_minimum_character_set_count ⇒ Object
Gets the passwordMinimumCharacterSetCount property value. The number of character sets required in the password.
243 244 245 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 243 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. The number of character sets required in the password.
251 252 253 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 251 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 password. Valid values 4 to 14
258 259 260 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 258 def password_minimum_length return @password_minimum_length end |
#password_minimum_length=(value) ⇒ Object
Sets the passwordMinimumLength property value. Minimum length of password. Valid values 4 to 14
266 267 268 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 266 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 before a password is required.
273 274 275 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 273 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 before a password is required.
281 282 283 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 281 def password_minutes_of_inactivity_before_lock=(value) @password_minutes_of_inactivity_before_lock = value end |
#password_previous_password_block_count ⇒ Object
Gets the passwordPreviousPasswordBlockCount property value. Number of previous passwords to block. Valid values 1 to 24
288 289 290 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 288 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. Valid values 1 to 24
296 297 298 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 296 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.
303 304 305 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 303 def password_required return @password_required end |
#password_required=(value) ⇒ Object
Sets the passwordRequired property value. Whether or not to require a password.
311 312 313 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 311 def password_required=(value) @password_required = value end |
#password_required_type ⇒ Object
Gets the passwordRequiredType property value. Possible values of required passwords.
318 319 320 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 318 def password_required_type return @password_required_type end |
#password_required_type=(value) ⇒ Object
Sets the passwordRequiredType property value. Possible values of required passwords.
326 327 328 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 326 def password_required_type=(value) @password_required_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 334 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("deviceThreatProtectionEnabled", @device_threat_protection_enabled) writer.write_enum_value("deviceThreatProtectionRequiredSecurityLevel", @device_threat_protection_required_security_level) writer.write_boolean_value("firewallBlockAllIncoming", @firewall_block_all_incoming) writer.write_boolean_value("firewallEnableStealthMode", @firewall_enable_stealth_mode) writer.write_boolean_value("firewallEnabled", @firewall_enabled) writer.write_string_value("osMaximumVersion", @os_maximum_version) writer.write_string_value("osMinimumVersion", @os_minimum_version) 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("passwordPreviousPasswordBlockCount", @password_previous_password_block_count) writer.write_boolean_value("passwordRequired", @password_required) writer.write_enum_value("passwordRequiredType", @password_required_type) writer.write_boolean_value("storageRequireEncryption", @storage_require_encryption) writer.write_boolean_value("systemIntegrityProtectionEnabled", @system_integrity_protection_enabled) end |
#storage_require_encryption ⇒ Object
Gets the storageRequireEncryption property value. Require encryption on Mac OS devices.
359 360 361 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 359 def storage_require_encryption return @storage_require_encryption end |
#storage_require_encryption=(value) ⇒ Object
Sets the storageRequireEncryption property value. Require encryption on Mac OS devices.
367 368 369 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 367 def storage_require_encryption=(value) @storage_require_encryption = value end |
#system_integrity_protection_enabled ⇒ Object
Gets the systemIntegrityProtectionEnabled property value. Require that devices have enabled system integrity protection.
374 375 376 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 374 def system_integrity_protection_enabled return @system_integrity_protection_enabled end |
#system_integrity_protection_enabled=(value) ⇒ Object
Sets the systemIntegrityProtectionEnabled property value. Require that devices have enabled system integrity protection.
382 383 384 |
# File 'lib/models/mac_o_s_compliance_policy.rb', line 382 def system_integrity_protection_enabled=(value) @system_integrity_protection_enabled = value end |