Class: MicrosoftGraph::Models::SharePointIdentitySet
- Inherits:
-
IdentitySet
- Object
- IdentitySet
- MicrosoftGraph::Models::SharePointIdentitySet
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/share_point_identity_set.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.
-
#initialize ⇒ Object
constructor
Instantiates a new sharePointIdentitySet and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#site_group ⇒ Object
Gets the siteGroup property value.
-
#site_group=(value) ⇒ Object
Sets the siteGroup property value.
-
#site_user ⇒ Object
Gets the siteUser property value.
-
#site_user=(value) ⇒ Object
Sets the siteUser property value.
Methods inherited from IdentitySet
#additional_data, #additional_data=, #application, #application=, #device, #device=, #odata_type, #odata_type=, #user, #user=
Constructor Details
#initialize ⇒ Object
Instantiates a new sharePointIdentitySet and sets the default values.
22 23 24 25 |
# File 'lib/models/share_point_identity_set.rb', line 22 def initialize() super @odata_type = "#microsoft.graph.sharePointIdentitySet" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
31 32 33 34 |
# File 'lib/models/share_point_identity_set.rb', line 31 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SharePointIdentitySet.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
39 40 41 42 43 44 45 |
# File 'lib/models/share_point_identity_set.rb', line 39 def get_field_deserializers() return super.merge({ "group" => lambda {|n| @group = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Identity.create_from_discriminator_value(pn) }) }, "siteGroup" => lambda {|n| @site_group = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharePointIdentity.create_from_discriminator_value(pn) }) }, "siteUser" => lambda {|n| @site_user = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharePointIdentity.create_from_discriminator_value(pn) }) }, }) end |
#group ⇒ Object
Gets the group property value. The group associated with this action. Optional.
50 51 52 |
# File 'lib/models/share_point_identity_set.rb', line 50 def group return @group end |
#group=(value) ⇒ Object
Sets the group property value. The group associated with this action. Optional.
58 59 60 |
# File 'lib/models/share_point_identity_set.rb', line 58 def group=(value) @group = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
66 67 68 69 70 71 72 |
# File 'lib/models/share_point_identity_set.rb', line 66 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("group", @group) writer.write_object_value("siteGroup", @site_group) writer.write_object_value("siteUser", @site_user) end |
#site_group ⇒ Object
Gets the siteGroup property value. The SharePoint group associated with this action. Optional.
77 78 79 |
# File 'lib/models/share_point_identity_set.rb', line 77 def site_group return @site_group end |
#site_group=(value) ⇒ Object
Sets the siteGroup property value. The SharePoint group associated with this action. Optional.
85 86 87 |
# File 'lib/models/share_point_identity_set.rb', line 85 def site_group=(value) @site_group = value end |
#site_user ⇒ Object
Gets the siteUser property value. The SharePoint user associated with this action. Optional.
92 93 94 |
# File 'lib/models/share_point_identity_set.rb', line 92 def site_user return @site_user end |
#site_user=(value) ⇒ Object
Sets the siteUser property value. The SharePoint user associated with this action. Optional.
100 101 102 |
# File 'lib/models/share_point_identity_set.rb', line 100 def site_user=(value) @site_user = value end |