Class: MicrosoftGraph::Models::SharepointIds

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/sharepoint_ids.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new sharepointIds and sets the default values.



55
56
57
# File 'lib/models/sharepoint_ids.rb', line 55

def initialize()
    @additional_data = Hash.new
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 sharepoint_ids

Raises:

  • (StandardError)


63
64
65
66
# File 'lib/models/sharepoint_ids.rb', line 63

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return SharepointIds.new
end

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



40
41
42
# File 'lib/models/sharepoint_ids.rb', line 40

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



48
49
50
# File 'lib/models/sharepoint_ids.rb', line 48

def additional_data=(value)
    @additional_data = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



71
72
73
74
75
76
77
78
79
80
81
82
# File 'lib/models/sharepoint_ids.rb', line 71

def get_field_deserializers()
    return {
        "listId" => lambda {|n| @list_id = n.get_string_value() },
        "listItemId" => lambda {|n| @list_item_id = n.get_string_value() },
        "listItemUniqueId" => lambda {|n| @list_item_unique_id = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "siteId" => lambda {|n| @site_id = n.get_string_value() },
        "siteUrl" => lambda {|n| @site_url = n.get_string_value() },
        "tenantId" => lambda {|n| @tenant_id = n.get_string_value() },
        "webId" => lambda {|n| @web_id = n.get_string_value() },
    }
end

#list_idObject

Gets the listId property value. The unique identifier (guid) for the item’s list in SharePoint.

Returns:

  • a string



87
88
89
# File 'lib/models/sharepoint_ids.rb', line 87

def list_id
    return @list_id
end

#list_id=(value) ⇒ Object

Sets the listId property value. The unique identifier (guid) for the item’s list in SharePoint.

Parameters:

  • value

    Value to set for the listId property.

Returns:

  • a void



95
96
97
# File 'lib/models/sharepoint_ids.rb', line 95

def list_id=(value)
    @list_id = value
end

#list_item_idObject

Gets the listItemId property value. An integer identifier for the item within the containing list.

Returns:

  • a string



102
103
104
# File 'lib/models/sharepoint_ids.rb', line 102

def list_item_id
    return @list_item_id
end

#list_item_id=(value) ⇒ Object

Sets the listItemId property value. An integer identifier for the item within the containing list.

Parameters:

  • value

    Value to set for the listItemId property.

Returns:

  • a void



110
111
112
# File 'lib/models/sharepoint_ids.rb', line 110

def list_item_id=(value)
    @list_item_id = value
end

#list_item_unique_idObject

Gets the listItemUniqueId property value. The unique identifier (guid) for the item within OneDrive for Business or a SharePoint site.

Returns:

  • a string



117
118
119
# File 'lib/models/sharepoint_ids.rb', line 117

def list_item_unique_id
    return @list_item_unique_id
end

#list_item_unique_id=(value) ⇒ Object

Sets the listItemUniqueId property value. The unique identifier (guid) for the item within OneDrive for Business or a SharePoint site.

Parameters:

  • value

    Value to set for the listItemUniqueId property.

Returns:

  • a void



125
126
127
# File 'lib/models/sharepoint_ids.rb', line 125

def list_item_unique_id=(value)
    @list_item_unique_id = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



132
133
134
# File 'lib/models/sharepoint_ids.rb', line 132

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



140
141
142
# File 'lib/models/sharepoint_ids.rb', line 140

def odata_type=(value)
    @odata_type = 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)


148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/models/sharepoint_ids.rb', line 148

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("listId", @list_id)
    writer.write_string_value("listItemId", @list_item_id)
    writer.write_string_value("listItemUniqueId", @list_item_unique_id)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("siteId", @site_id)
    writer.write_string_value("siteUrl", @site_url)
    writer.write_string_value("tenantId", @tenant_id)
    writer.write_string_value("webId", @web_id)
    writer.write_additional_data(@additional_data)
end

#site_idObject

Gets the siteId property value. The unique identifier (guid) for the item’s site collection (SPSite).

Returns:

  • a string



164
165
166
# File 'lib/models/sharepoint_ids.rb', line 164

def site_id
    return @site_id
end

#site_id=(value) ⇒ Object

Sets the siteId property value. The unique identifier (guid) for the item’s site collection (SPSite).

Parameters:

  • value

    Value to set for the siteId property.

Returns:

  • a void



172
173
174
# File 'lib/models/sharepoint_ids.rb', line 172

def site_id=(value)
    @site_id = value
end

#site_urlObject

Gets the siteUrl property value. The SharePoint URL for the site that contains the item.

Returns:

  • a string



179
180
181
# File 'lib/models/sharepoint_ids.rb', line 179

def site_url
    return @site_url
end

#site_url=(value) ⇒ Object

Sets the siteUrl property value. The SharePoint URL for the site that contains the item.

Parameters:

  • value

    Value to set for the siteUrl property.

Returns:

  • a void



187
188
189
# File 'lib/models/sharepoint_ids.rb', line 187

def site_url=(value)
    @site_url = value
end

#tenant_idObject

Gets the tenantId property value. The unique identifier (guid) for the tenancy.

Returns:

  • a string



194
195
196
# File 'lib/models/sharepoint_ids.rb', line 194

def tenant_id
    return @tenant_id
end

#tenant_id=(value) ⇒ Object

Sets the tenantId property value. The unique identifier (guid) for the tenancy.

Parameters:

  • value

    Value to set for the tenantId property.

Returns:

  • a void



202
203
204
# File 'lib/models/sharepoint_ids.rb', line 202

def tenant_id=(value)
    @tenant_id = value
end

#web_idObject

Gets the webId property value. The unique identifier (guid) for the item’s site (SPWeb).

Returns:

  • a string



209
210
211
# File 'lib/models/sharepoint_ids.rb', line 209

def web_id
    return @web_id
end

#web_id=(value) ⇒ Object

Sets the webId property value. The unique identifier (guid) for the item’s site (SPWeb).

Parameters:

  • value

    Value to set for the webId property.

Returns:

  • a void



217
218
219
# File 'lib/models/sharepoint_ids.rb', line 217

def web_id=(value)
    @web_id = value
end