Class: MicrosoftGraph::Models::DeviceComplianceActionItem
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/device_compliance_action_item.rb
Overview
Scheduled Action 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
-
#action_type ⇒ Object
Gets the actionType property value.
-
#action_type=(value) ⇒ Object
Sets the actionType property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#grace_period_hours ⇒ Object
Gets the gracePeriodHours property value.
-
#grace_period_hours=(value) ⇒ Object
Sets the gracePeriodHours property value.
-
#initialize ⇒ Object
constructor
Instantiates a new deviceComplianceActionItem and sets the default values.
-
#notification_message_c_c_list ⇒ Object
Gets the notificationMessageCCList property value.
-
#notification_message_c_c_list=(value) ⇒ Object
Sets the notificationMessageCCList property value.
-
#notification_template_id ⇒ Object
Gets the notificationTemplateId property value.
-
#notification_template_id=(value) ⇒ Object
Sets the notificationTemplateId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_type ⇒ Object
Gets the actionType property value. Scheduled Action Type Enum
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
35 36 37 |
# File 'lib/models/device_compliance_action_item.rb', line 35 def action_type=(value) @action_type = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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| = n.get_collection_of_primitive_values(String) }, "notificationTemplateId" => lambda {|n| @notification_template_id = n.get_string_value() }, }) end |
#grace_period_hours ⇒ Object
Gets the gracePeriodHours property value. Number of hours to wait till the action will be enforced. Valid values 0 to 8760
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
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_list ⇒ Object
Gets the notificationMessageCCList property value. A list of group IDs to speicify who to CC this notification message to.
85 86 87 |
# File 'lib/models/device_compliance_action_item.rb', line 85 def return 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.
93 94 95 |
# File 'lib/models/device_compliance_action_item.rb', line 93 def (value) = value end |
#notification_template_id ⇒ Object
Gets the notificationTemplateId property value. What notification Message template to use
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
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
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", ) writer.write_string_value("notificationTemplateId", @notification_template_id) end |