Class: MicrosoftGraph::Models::WindowsDefenderAdvancedThreatProtectionConfiguration

Inherits:
DeviceConfiguration show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/windows_defender_advanced_threat_protection_configuration.rb

Overview

Windows Defender AdvancedThreatProtection Configuration.

Class Method Summary collapse

Instance Method Summary collapse

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

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a windows_defender_advanced_threat_protection_configuration

Raises:

  • (StandardError)


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_sharingObject

Gets the allowSampleSharing property value. Windows Defender AdvancedThreatProtection ‘Allow Sample Sharing’ Rule

Returns:

  • a boolean



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

Parameters:

  • value

    Value to set for the allowSampleSharing property.

Returns:

  • a void



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_reportingObject

Gets the enableExpeditedTelemetryReporting property value. Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the enableExpeditedTelemetryReporting property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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