Class: MicrosoftGraph::Models::ItemReference
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ItemReference
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/item_reference.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
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#drive_id ⇒ Object
Gets the driveId property value.
-
#drive_id=(value) ⇒ Object
Sets the driveId property value.
-
#drive_type ⇒ Object
Gets the driveType property value.
-
#drive_type=(value) ⇒ Object
Sets the driveType property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#id ⇒ Object
Gets the id property value.
-
#id=(value) ⇒ Object
Sets the id property value.
-
#initialize ⇒ Object
constructor
Instantiates a new itemReference and sets the default values.
-
#name ⇒ Object
Gets the name property value.
-
#name=(value) ⇒ Object
Sets the name property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#path ⇒ Object
Gets the path property value.
-
#path=(value) ⇒ Object
Sets the path property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#share_id ⇒ Object
Gets the shareId property value.
-
#share_id=(value) ⇒ Object
Sets the shareId property value.
-
#sharepoint_ids ⇒ Object
Gets the sharepointIds property value.
-
#sharepoint_ids=(value) ⇒ Object
Sets the sharepointIds property value.
-
#site_id ⇒ Object
Gets the siteId property value.
-
#site_id=(value) ⇒ Object
Sets the siteId property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new itemReference and sets the default values.
58 59 60 |
# File 'lib/models/item_reference.rb', line 58 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
66 67 68 69 |
# File 'lib/models/item_reference.rb', line 66 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ItemReference.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
43 44 45 |
# File 'lib/models/item_reference.rb', line 43 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.
51 52 53 |
# File 'lib/models/item_reference.rb', line 51 def additional_data=(value) @additional_data = value end |
#drive_id ⇒ Object
Gets the driveId property value. Unique identifier of the drive instance that contains the driveItem. Only returned if the item is located in a [drive][]. Read-only.
74 75 76 |
# File 'lib/models/item_reference.rb', line 74 def drive_id return @drive_id end |
#drive_id=(value) ⇒ Object
Sets the driveId property value. Unique identifier of the drive instance that contains the driveItem. Only returned if the item is located in a [drive][]. Read-only.
82 83 84 |
# File 'lib/models/item_reference.rb', line 82 def drive_id=(value) @drive_id = value end |
#drive_type ⇒ Object
Gets the driveType property value. Identifies the type of drive. Only returned if the item is located in a [drive][]. See [drive][] resource for values.
89 90 91 |
# File 'lib/models/item_reference.rb', line 89 def drive_type return @drive_type end |
#drive_type=(value) ⇒ Object
Sets the driveType property value. Identifies the type of drive. Only returned if the item is located in a [drive][]. See [drive][] resource for values.
97 98 99 |
# File 'lib/models/item_reference.rb', line 97 def drive_type=(value) @drive_type = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/models/item_reference.rb', line 104 def get_field_deserializers() return { "driveId" => lambda {|n| @drive_id = n.get_string_value() }, "driveType" => lambda {|n| @drive_type = n.get_string_value() }, "id" => lambda {|n| @id = n.get_string_value() }, "name" => lambda {|n| @name = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "path" => lambda {|n| @path = n.get_string_value() }, "shareId" => lambda {|n| @share_id = n.get_string_value() }, "sharepointIds" => lambda {|n| @sharepoint_ids = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SharepointIds.create_from_discriminator_value(pn) }) }, "siteId" => lambda {|n| @site_id = n.get_string_value() }, } end |
#id ⇒ Object
Gets the id property value. Unique identifier of the driveItem in the drive or a listItem in a list. Read-only.
121 122 123 |
# File 'lib/models/item_reference.rb', line 121 def id return @id end |
#id=(value) ⇒ Object
Sets the id property value. Unique identifier of the driveItem in the drive or a listItem in a list. Read-only.
129 130 131 |
# File 'lib/models/item_reference.rb', line 129 def id=(value) @id = value end |
#name ⇒ Object
Gets the name property value. The name of the item being referenced. Read-only.
136 137 138 |
# File 'lib/models/item_reference.rb', line 136 def name return @name end |
#name=(value) ⇒ Object
Sets the name property value. The name of the item being referenced. Read-only.
144 145 146 |
# File 'lib/models/item_reference.rb', line 144 def name=(value) @name = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
151 152 153 |
# File 'lib/models/item_reference.rb', line 151 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
159 160 161 |
# File 'lib/models/item_reference.rb', line 159 def odata_type=(value) @odata_type = value end |
#path ⇒ Object
Gets the path property value. Path that can be used to navigate to the item. Read-only.
166 167 168 |
# File 'lib/models/item_reference.rb', line 166 def path return @path end |
#path=(value) ⇒ Object
Sets the path property value. Path that can be used to navigate to the item. Read-only.
174 175 176 |
# File 'lib/models/item_reference.rb', line 174 def path=(value) @path = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
182 183 184 185 186 187 188 189 190 191 192 193 194 |
# File 'lib/models/item_reference.rb', line 182 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("driveId", @drive_id) writer.write_string_value("driveType", @drive_type) writer.write_string_value("id", @id) writer.write_string_value("name", @name) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("path", @path) writer.write_string_value("shareId", @share_id) writer.write_object_value("sharepointIds", @sharepoint_ids) writer.write_string_value("siteId", @site_id) writer.write_additional_data(@additional_data) end |
#share_id ⇒ Object
Gets the shareId property value. A unique identifier for a shared resource that can be accessed via the [Shares][] API.
199 200 201 |
# File 'lib/models/item_reference.rb', line 199 def share_id return @share_id end |
#share_id=(value) ⇒ Object
Sets the shareId property value. A unique identifier for a shared resource that can be accessed via the [Shares][] API.
207 208 209 |
# File 'lib/models/item_reference.rb', line 207 def share_id=(value) @share_id = value end |
#sharepoint_ids ⇒ Object
Gets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
214 215 216 |
# File 'lib/models/item_reference.rb', line 214 def sharepoint_ids return @sharepoint_ids end |
#sharepoint_ids=(value) ⇒ Object
Sets the sharepointIds property value. Returns identifiers useful for SharePoint REST compatibility. Read-only.
222 223 224 |
# File 'lib/models/item_reference.rb', line 222 def sharepoint_ids=(value) @sharepoint_ids = value end |
#site_id ⇒ Object
Gets the siteId property value. For OneDrive for Business and SharePoint, this property represents the ID of the site that contains the parent document library of the driveItem resource or the parent list of the listItem resource. The value is the same as the id property of that [site][] resource. It is an opaque string that consists of three identifiers of the site. For OneDrive, this property is not populated.
229 230 231 |
# File 'lib/models/item_reference.rb', line 229 def site_id return @site_id end |
#site_id=(value) ⇒ Object
Sets the siteId property value. For OneDrive for Business and SharePoint, this property represents the ID of the site that contains the parent document library of the driveItem resource or the parent list of the listItem resource. The value is the same as the id property of that [site][] resource. It is an opaque string that consists of three identifiers of the site. For OneDrive, this property is not populated.
237 238 239 |
# File 'lib/models/item_reference.rb', line 237 def site_id=(value) @site_id = value end |