Class: MicrosoftGraph::Models::WindowsDefenderAdvancedThreatProtectionConfiguration
- Inherits:
-
DeviceConfiguration
- Object
- Entity
- DeviceConfiguration
- MicrosoftGraph::Models::WindowsDefenderAdvancedThreatProtectionConfiguration
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/windows_defender_advanced_threat_protection_configuration.rb
Overview
Windows Defender AdvancedThreatProtection Configuration.
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
-
#allow_sample_sharing ⇒ Object
Gets the allowSampleSharing property value.
-
#allow_sample_sharing=(value) ⇒ Object
Sets the allowSampleSharing property value.
-
#enable_expedited_telemetry_reporting ⇒ Object
Gets the enableExpeditedTelemetryReporting property value.
-
#enable_expedited_telemetry_reporting=(value) ⇒ Object
Sets the enableExpeditedTelemetryReporting property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new windowsDefenderAdvancedThreatProtectionConfiguration and sets the default values.
-
#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 windowsDefenderAdvancedThreatProtectionConfiguration and sets the default values.
36 37 38 39 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 36 def initialize() super @odata_type = "#microsoft.graph.windowsDefenderAdvancedThreatProtectionConfiguration" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
45 46 47 48 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 45 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return WindowsDefenderAdvancedThreatProtectionConfiguration.new end |
Instance Method Details
#allow_sample_sharing ⇒ Object
Gets the allowSampleSharing property value. Windows Defender AdvancedThreatProtection ‘Allow Sample Sharing’ Rule
21 22 23 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 21 def allow_sample_sharing return @allow_sample_sharing end |
#allow_sample_sharing=(value) ⇒ Object
Sets the allowSampleSharing property value. Windows Defender AdvancedThreatProtection ‘Allow Sample Sharing’ Rule
29 30 31 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 29 def allow_sample_sharing=(value) @allow_sample_sharing = value end |
#enable_expedited_telemetry_reporting ⇒ Object
Gets the enableExpeditedTelemetryReporting property value. Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency.
53 54 55 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 53 def enable_expedited_telemetry_reporting return @enable_expedited_telemetry_reporting end |
#enable_expedited_telemetry_reporting=(value) ⇒ Object
Sets the enableExpeditedTelemetryReporting property value. Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency.
61 62 63 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 61 def enable_expedited_telemetry_reporting=(value) @enable_expedited_telemetry_reporting = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
68 69 70 71 72 73 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 68 def get_field_deserializers() return super.merge({ "allowSampleSharing" => lambda {|n| @allow_sample_sharing = n.get_boolean_value() }, "enableExpeditedTelemetryReporting" => lambda {|n| @enable_expedited_telemetry_reporting = n.get_boolean_value() }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
79 80 81 82 83 84 |
# File 'lib/models/windows_defender_advanced_threat_protection_configuration.rb', line 79 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("allowSampleSharing", @allow_sample_sharing) writer.write_boolean_value("enableExpeditedTelemetryReporting", @enable_expedited_telemetry_reporting) end |