Class: MicrosoftGraph::Models::DeviceComplianceActionItem

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/device_compliance_action_item.rb

Overview

Scheduled Action Configuration

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new deviceComplianceActionItem and sets the default values.



42
43
44
# File 'lib/models/device_compliance_action_item.rb', line 42

def initialize()
    super
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 device_compliance_action_item

Raises:

  • (StandardError)


50
51
52
53
# File 'lib/models/device_compliance_action_item.rb', line 50

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return DeviceComplianceActionItem.new
end

Instance Method Details

#action_typeObject

Gets the actionType property value. Scheduled Action Type Enum

Returns:

  • a device_compliance_action_type



27
28
29
# File 'lib/models/device_compliance_action_item.rb', line 27

def action_type
    return @action_type
end

#action_type=(value) ⇒ Object

Sets the actionType property value. Scheduled Action Type Enum

Parameters:

  • value

    Value to set for the actionType property.

Returns:

  • a void



35
36
37
# File 'lib/models/device_compliance_action_item.rb', line 35

def action_type=(value)
    @action_type = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



58
59
60
61
62
63
64
65
# File 'lib/models/device_compliance_action_item.rb', line 58

def get_field_deserializers()
    return super.merge({
        "actionType" => lambda {|n| @action_type = n.get_enum_value(MicrosoftGraph::Models::DeviceComplianceActionType) },
        "gracePeriodHours" => lambda {|n| @grace_period_hours = n.get_number_value() },
        "notificationMessageCCList" => lambda {|n| @notification_message_c_c_list = n.get_collection_of_primitive_values(String) },
        "notificationTemplateId" => lambda {|n| @notification_template_id = n.get_string_value() },
    })
end

#grace_period_hoursObject

Gets the gracePeriodHours property value. Number of hours to wait till the action will be enforced. Valid values 0 to 8760

Returns:

  • a integer



70
71
72
# File 'lib/models/device_compliance_action_item.rb', line 70

def grace_period_hours
    return @grace_period_hours
end

#grace_period_hours=(value) ⇒ Object

Sets the gracePeriodHours property value. Number of hours to wait till the action will be enforced. Valid values 0 to 8760

Parameters:

  • value

    Value to set for the gracePeriodHours property.

Returns:

  • a void



78
79
80
# File 'lib/models/device_compliance_action_item.rb', line 78

def grace_period_hours=(value)
    @grace_period_hours = value
end

#notification_message_c_c_listObject

Gets the notificationMessageCCList property value. A list of group IDs to speicify who to CC this notification message to.

Returns:

  • a string



85
86
87
# File 'lib/models/device_compliance_action_item.rb', line 85

def notification_message_c_c_list
    return @notification_message_c_c_list
end

#notification_message_c_c_list=(value) ⇒ Object

Sets the notificationMessageCCList property value. A list of group IDs to speicify who to CC this notification message to.

Parameters:

  • value

    Value to set for the notificationMessageCCList property.

Returns:

  • a void



93
94
95
# File 'lib/models/device_compliance_action_item.rb', line 93

def notification_message_c_c_list=(value)
    @notification_message_c_c_list = value
end

#notification_template_idObject

Gets the notificationTemplateId property value. What notification Message template to use

Returns:

  • a string



100
101
102
# File 'lib/models/device_compliance_action_item.rb', line 100

def notification_template_id
    return @notification_template_id
end

#notification_template_id=(value) ⇒ Object

Sets the notificationTemplateId property value. What notification Message template to use

Parameters:

  • value

    Value to set for the notificationTemplateId property.

Returns:

  • a void



108
109
110
# File 'lib/models/device_compliance_action_item.rb', line 108

def notification_template_id=(value)
    @notification_template_id = 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)


116
117
118
119
120
121
122
123
# File 'lib/models/device_compliance_action_item.rb', line 116

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_enum_value("actionType", @action_type)
    writer.write_number_value("gracePeriodHours", @grace_period_hours)
    writer.write_collection_of_primitive_values("notificationMessageCCList", @notification_message_c_c_list)
    writer.write_string_value("notificationTemplateId", @notification_template_id)
end