Class: MicrosoftGraph::Models::GroupLifecyclePolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/group_lifecycle_policy.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
-
#alternate_notification_emails ⇒ Object
Gets the alternateNotificationEmails property value.
-
#alternate_notification_emails=(value) ⇒ Object
Sets the alternateNotificationEmails property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#group_lifetime_in_days ⇒ Object
Gets the groupLifetimeInDays property value.
-
#group_lifetime_in_days=(value) ⇒ Object
Sets the groupLifetimeInDays property value.
-
#initialize ⇒ Object
constructor
Instantiates a new groupLifecyclePolicy and sets the default values.
-
#managed_group_types ⇒ Object
Gets the managedGroupTypes property value.
-
#managed_group_types=(value) ⇒ Object
Sets the managedGroupTypes 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 groupLifecyclePolicy and sets the default values.
37 38 39 |
# File 'lib/models/group_lifecycle_policy.rb', line 37 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
45 46 47 48 |
# File 'lib/models/group_lifecycle_policy.rb', line 45 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return GroupLifecyclePolicy.new end |
Instance Method Details
#alternate_notification_emails ⇒ Object
Gets the alternateNotificationEmails property value. List of email address to send notifications for groups without owners. Multiple email address can be defined by separating email address with a semicolon.
22 23 24 |
# File 'lib/models/group_lifecycle_policy.rb', line 22 def alternate_notification_emails return @alternate_notification_emails end |
#alternate_notification_emails=(value) ⇒ Object
Sets the alternateNotificationEmails property value. List of email address to send notifications for groups without owners. Multiple email address can be defined by separating email address with a semicolon.
30 31 32 |
# File 'lib/models/group_lifecycle_policy.rb', line 30 def alternate_notification_emails=(value) @alternate_notification_emails = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
53 54 55 56 57 58 59 |
# File 'lib/models/group_lifecycle_policy.rb', line 53 def get_field_deserializers() return super.merge({ "alternateNotificationEmails" => lambda {|n| @alternate_notification_emails = n.get_string_value() }, "groupLifetimeInDays" => lambda {|n| @group_lifetime_in_days = n.get_number_value() }, "managedGroupTypes" => lambda {|n| @managed_group_types = n.get_string_value() }, }) end |
#group_lifetime_in_days ⇒ Object
Gets the groupLifetimeInDays property value. Number of days before a group expires and needs to be renewed. Once renewed, the group expiration is extended by the number of days defined.
64 65 66 |
# File 'lib/models/group_lifecycle_policy.rb', line 64 def group_lifetime_in_days return @group_lifetime_in_days end |
#group_lifetime_in_days=(value) ⇒ Object
Sets the groupLifetimeInDays property value. Number of days before a group expires and needs to be renewed. Once renewed, the group expiration is extended by the number of days defined.
72 73 74 |
# File 'lib/models/group_lifecycle_policy.rb', line 72 def group_lifetime_in_days=(value) @group_lifetime_in_days = value end |
#managed_group_types ⇒ Object
Gets the managedGroupTypes property value. The group type for which the expiration policy applies. Possible values are All, Selected or None.
79 80 81 |
# File 'lib/models/group_lifecycle_policy.rb', line 79 def managed_group_types return @managed_group_types end |
#managed_group_types=(value) ⇒ Object
Sets the managedGroupTypes property value. The group type for which the expiration policy applies. Possible values are All, Selected or None.
87 88 89 |
# File 'lib/models/group_lifecycle_policy.rb', line 87 def managed_group_types=(value) @managed_group_types = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
95 96 97 98 99 100 101 |
# File 'lib/models/group_lifecycle_policy.rb', line 95 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("alternateNotificationEmails", @alternate_notification_emails) writer.write_number_value("groupLifetimeInDays", @group_lifetime_in_days) writer.write_string_value("managedGroupTypes", @managed_group_types) end |