Class: MicrosoftGraph::Models::SecurityUnifiedGroupSource
- Inherits:
-
SecurityDataSource
- Object
- Entity
- SecurityDataSource
- MicrosoftGraph::Models::SecurityUnifiedGroupSource
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_unified_group_source.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.
-
#group ⇒ Object
Gets the group property value.
-
#group=(value) ⇒ Object
Sets the group property value.
-
#included_sources ⇒ Object
Gets the includedSources property value.
-
#included_sources=(value) ⇒ Object
Sets the includedSources property value.
-
#initialize ⇒ Object
constructor
Instantiates a new securityUnifiedGroupSource and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from SecurityDataSource
#created_by, #created_by=, #created_date_time, #created_date_time=, #display_name, #display_name=, #hold_status, #hold_status=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new securityUnifiedGroupSource and sets the default values.
19 20 21 22 |
# File 'lib/models/security_unified_group_source.rb', line 19 def initialize() super @odata_type = "#microsoft.graph.security.unifiedGroupSource" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
28 29 30 31 |
# File 'lib/models/security_unified_group_source.rb', line 28 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SecurityUnifiedGroupSource.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
36 37 38 39 40 41 |
# File 'lib/models/security_unified_group_source.rb', line 36 def get_field_deserializers() return super.merge({ "group" => lambda {|n| @group = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Group.create_from_discriminator_value(pn) }) }, "includedSources" => lambda {|n| @included_sources = n.get_enum_value(MicrosoftGraph::Models::SecuritySourceType) }, }) end |
#group ⇒ Object
Gets the group property value. The group property
46 47 48 |
# File 'lib/models/security_unified_group_source.rb', line 46 def group return @group end |
#group=(value) ⇒ Object
Sets the group property value. The group property
54 55 56 |
# File 'lib/models/security_unified_group_source.rb', line 54 def group=(value) @group = value end |
#included_sources ⇒ Object
Gets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site.
61 62 63 |
# File 'lib/models/security_unified_group_source.rb', line 61 def included_sources return @included_sources end |
#included_sources=(value) ⇒ Object
Sets the includedSources property value. Specifies which sources are included in this group. Possible values are: mailbox, site.
69 70 71 |
# File 'lib/models/security_unified_group_source.rb', line 69 def included_sources=(value) @included_sources = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
77 78 79 80 81 82 |
# File 'lib/models/security_unified_group_source.rb', line 77 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("group", @group) writer.write_enum_value("includedSources", @included_sources) end |