Class: MicrosoftGraph::Models::UnifiedRoleManagementPolicyNotificationRule
- Inherits:
-
UnifiedRoleManagementPolicyRule
- Object
- Entity
- UnifiedRoleManagementPolicyRule
- MicrosoftGraph::Models::UnifiedRoleManagementPolicyNotificationRule
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/unified_role_management_policy_notification_rule.rb
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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new unifiedRoleManagementPolicyNotificationRule and sets the default values.
-
#is_default_recipients_enabled ⇒ Object
Gets the isDefaultRecipientsEnabled property value.
-
#is_default_recipients_enabled=(value) ⇒ Object
Sets the isDefaultRecipientsEnabled property value.
-
#notification_level ⇒ Object
Gets the notificationLevel property value.
-
#notification_level=(value) ⇒ Object
Sets the notificationLevel property value.
-
#notification_recipients ⇒ Object
Gets the notificationRecipients property value.
-
#notification_recipients=(value) ⇒ Object
Sets the notificationRecipients property value.
-
#notification_type ⇒ Object
Gets the notificationType property value.
-
#notification_type=(value) ⇒ Object
Sets the notificationType property value.
-
#recipient_type ⇒ Object
Gets the recipientType property value.
-
#recipient_type=(value) ⇒ Object
Sets the recipientType property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from UnifiedRoleManagementPolicyRule
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new unifiedRoleManagementPolicyNotificationRule and sets the default values.
28 29 30 31 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 28 def initialize() super @odata_type = "#microsoft.graph.unifiedRoleManagementPolicyNotificationRule" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
37 38 39 40 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 37 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return UnifiedRoleManagementPolicyNotificationRule.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
45 46 47 48 49 50 51 52 53 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 45 def get_field_deserializers() return super.merge({ "isDefaultRecipientsEnabled" => lambda {|n| @is_default_recipients_enabled = n.get_boolean_value() }, "notificationLevel" => lambda {|n| @notification_level = n.get_string_value() }, "notificationRecipients" => lambda {|n| @notification_recipients = n.get_collection_of_primitive_values(String) }, "notificationType" => lambda {|n| @notification_type = n.get_string_value() }, "recipientType" => lambda {|n| @recipient_type = n.get_string_value() }, }) end |
#is_default_recipients_enabled ⇒ Object
Gets the isDefaultRecipientsEnabled property value. Indicates whether a default recipient will receive the notification email.
58 59 60 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 58 def is_default_recipients_enabled return @is_default_recipients_enabled end |
#is_default_recipients_enabled=(value) ⇒ Object
Sets the isDefaultRecipientsEnabled property value. Indicates whether a default recipient will receive the notification email.
66 67 68 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 66 def is_default_recipients_enabled=(value) @is_default_recipients_enabled = value end |
#notification_level ⇒ Object
Gets the notificationLevel property value. The level of notification. The possible values are None, Critical, All.
73 74 75 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 73 def notification_level return @notification_level end |
#notification_level=(value) ⇒ Object
Sets the notificationLevel property value. The level of notification. The possible values are None, Critical, All.
81 82 83 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 81 def notification_level=(value) @notification_level = value end |
#notification_recipients ⇒ Object
Gets the notificationRecipients property value. The list of recipients of the email notifications.
88 89 90 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 88 def notification_recipients return @notification_recipients end |
#notification_recipients=(value) ⇒ Object
Sets the notificationRecipients property value. The list of recipients of the email notifications.
96 97 98 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 96 def notification_recipients=(value) @notification_recipients = value end |
#notification_type ⇒ Object
Gets the notificationType property value. The type of notification. Only Email is supported.
103 104 105 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 103 def notification_type return @notification_type end |
#notification_type=(value) ⇒ Object
Sets the notificationType property value. The type of notification. Only Email is supported.
111 112 113 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 111 def notification_type=(value) @notification_type = value end |
#recipient_type ⇒ Object
Gets the recipientType property value. The type of recipient of the notification. The possible values are Requestor, Approver, Admin.
118 119 120 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 118 def recipient_type return @recipient_type end |
#recipient_type=(value) ⇒ Object
Sets the recipientType property value. The type of recipient of the notification. The possible values are Requestor, Approver, Admin.
126 127 128 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 126 def recipient_type=(value) @recipient_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
134 135 136 137 138 139 140 141 142 |
# File 'lib/models/unified_role_management_policy_notification_rule.rb', line 134 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_boolean_value("isDefaultRecipientsEnabled", @is_default_recipients_enabled) writer.write_string_value("notificationLevel", @notification_level) writer.write_collection_of_primitive_values("notificationRecipients", @notification_recipients) writer.write_string_value("notificationType", @notification_type) writer.write_string_value("recipientType", @recipient_type) end |