Class: MicrosoftGraph::Models::SharedDriveItem
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/shared_drive_item.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
-
#drive_item ⇒ Object
Gets the driveItem property value.
-
#drive_item=(value) ⇒ Object
Sets the driveItem property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new sharedDriveItem and sets the default values.
-
#items ⇒ Object
Gets the items property value.
-
#items=(value) ⇒ Object
Sets the items property value.
-
#list ⇒ Object
Gets the list property value.
-
#list=(value) ⇒ Object
Sets the list property value.
-
#list_item ⇒ Object
Gets the listItem property value.
-
#list_item=(value) ⇒ Object
Sets the listItem property value.
-
#owner ⇒ Object
Gets the owner property value.
-
#owner=(value) ⇒ Object
Sets the owner property value.
-
#permission ⇒ Object
Gets the permission property value.
-
#permission=(value) ⇒ Object
Sets the permission property value.
-
#root ⇒ Object
Gets the root property value.
-
#root=(value) ⇒ Object
Sets the root property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#site ⇒ Object
Gets the site property value.
-
#site=(value) ⇒ Object
Sets the site property value.
Methods inherited from BaseItem
#created_by, #created_by=, #created_by_user, #created_by_user=, #created_date_time, #created_date_time=, #description, #description=, #e_tag, #e_tag=, #last_modified_by, #last_modified_by=, #last_modified_by_user, #last_modified_by_user=, #last_modified_date_time, #last_modified_date_time=, #name, #name=, #parent_reference, #parent_reference=, #web_url, #web_url=
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new sharedDriveItem and sets the default values.
37 38 39 40 |
# File 'lib/models/shared_drive_item.rb', line 37 def initialize() super @odata_type = "#microsoft.graph.sharedDriveItem" end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
46 47 48 49 |
# File 'lib/models/shared_drive_item.rb', line 46 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SharedDriveItem.new end |
Instance Method Details
#drive_item ⇒ Object
Gets the driveItem property value. Used to access the underlying driveItem
54 55 56 |
# File 'lib/models/shared_drive_item.rb', line 54 def drive_item return @drive_item end |
#drive_item=(value) ⇒ Object
Sets the driveItem property value. Used to access the underlying driveItem
62 63 64 |
# File 'lib/models/shared_drive_item.rb', line 62 def drive_item=(value) @drive_item = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/models/shared_drive_item.rb', line 69 def get_field_deserializers() return super.merge({ "driveItem" => lambda {|n| @drive_item = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, "items" => lambda {|n| @items = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, "list" => lambda {|n| @list = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::List.create_from_discriminator_value(pn) }) }, "listItem" => lambda {|n| @list_item = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ListItem.create_from_discriminator_value(pn) }) }, "owner" => lambda {|n| @owner = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "permission" => lambda {|n| @permission = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Permission.create_from_discriminator_value(pn) }) }, "root" => lambda {|n| @root = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::DriveItem.create_from_discriminator_value(pn) }) }, "site" => lambda {|n| @site = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::Site.create_from_discriminator_value(pn) }) }, }) end |
#items ⇒ Object
Gets the items property value. All driveItems contained in the sharing root. This collection cannot be enumerated.
85 86 87 |
# File 'lib/models/shared_drive_item.rb', line 85 def items return @items end |
#items=(value) ⇒ Object
Sets the items property value. All driveItems contained in the sharing root. This collection cannot be enumerated.
93 94 95 |
# File 'lib/models/shared_drive_item.rb', line 93 def items=(value) @items = value end |
#list ⇒ Object
Gets the list property value. Used to access the underlying list
100 101 102 |
# File 'lib/models/shared_drive_item.rb', line 100 def list return @list end |
#list=(value) ⇒ Object
Sets the list property value. Used to access the underlying list
108 109 110 |
# File 'lib/models/shared_drive_item.rb', line 108 def list=(value) @list = value end |
#list_item ⇒ Object
Gets the listItem property value. Used to access the underlying listItem
115 116 117 |
# File 'lib/models/shared_drive_item.rb', line 115 def list_item return @list_item end |
#list_item=(value) ⇒ Object
Sets the listItem property value. Used to access the underlying listItem
123 124 125 |
# File 'lib/models/shared_drive_item.rb', line 123 def list_item=(value) @list_item = value end |
#owner ⇒ Object
Gets the owner property value. Information about the owner of the shared item being referenced.
130 131 132 |
# File 'lib/models/shared_drive_item.rb', line 130 def owner return @owner end |
#owner=(value) ⇒ Object
Sets the owner property value. Information about the owner of the shared item being referenced.
138 139 140 |
# File 'lib/models/shared_drive_item.rb', line 138 def owner=(value) @owner = value end |
#permission ⇒ Object
Gets the permission property value. Used to access the permission representing the underlying sharing link
145 146 147 |
# File 'lib/models/shared_drive_item.rb', line 145 def return @permission end |
#permission=(value) ⇒ Object
Sets the permission property value. Used to access the permission representing the underlying sharing link
153 154 155 |
# File 'lib/models/shared_drive_item.rb', line 153 def (value) @permission = value end |
#root ⇒ Object
Gets the root property value. Used to access the underlying driveItem. Deprecated – use driveItem instead.
160 161 162 |
# File 'lib/models/shared_drive_item.rb', line 160 def root return @root end |
#root=(value) ⇒ Object
Sets the root property value. Used to access the underlying driveItem. Deprecated – use driveItem instead.
168 169 170 |
# File 'lib/models/shared_drive_item.rb', line 168 def root=(value) @root = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
176 177 178 179 180 181 182 183 184 185 186 187 |
# File 'lib/models/shared_drive_item.rb', line 176 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("driveItem", @drive_item) writer.write_collection_of_object_values("items", @items) writer.write_object_value("list", @list) writer.write_object_value("listItem", @list_item) writer.write_object_value("owner", @owner) writer.write_object_value("permission", @permission) writer.write_object_value("root", @root) writer.write_object_value("site", @site) end |
#site ⇒ Object
Gets the site property value. Used to access the underlying site
192 193 194 |
# File 'lib/models/shared_drive_item.rb', line 192 def site return @site end |
#site=(value) ⇒ Object
Sets the site property value. Used to access the underlying site
200 201 202 |
# File 'lib/models/shared_drive_item.rb', line 200 def site=(value) @site = value end |