Class: MicrosoftGraph::Models::SharePointIdentitySet

Inherits:
IdentitySet
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/share_point_identity_set.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from IdentitySet

#additional_data, #additional_data=, #application, #application=, #device, #device=, #odata_type, #odata_type=, #user, #user=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a share_point_identity_set

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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

#groupObject

Gets the group property value. The group associated with this action. Optional.

Returns:

  • a identity



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.

Parameters:

  • value

    Value to set for the group property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_groupObject

Gets the siteGroup property value. The SharePoint group associated with this action. Optional.

Returns:

  • a share_point_identity



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.

Parameters:

  • value

    Value to set for the siteGroup property.

Returns:

  • a void



85
86
87
# File 'lib/models/share_point_identity_set.rb', line 85

def site_group=(value)
    @site_group = value
end

#site_userObject

Gets the siteUser property value. The SharePoint user associated with this action. Optional.

Returns:

  • a share_point_identity



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.

Parameters:

  • value

    Value to set for the siteUser property.

Returns:

  • a void



100
101
102
# File 'lib/models/share_point_identity_set.rb', line 100

def site_user=(value)
    @site_user = value
end