Class: MicrosoftGraph::Models::Shared
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::Shared
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/shared.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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new shared and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#owner ⇒ Object
Gets the owner property value.
-
#owner=(value) ⇒ Object
Sets the owner property value.
-
#scope ⇒ Object
Gets the scope property value.
-
#scope=(value) ⇒ Object
Sets the scope property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#shared_by ⇒ Object
Gets the sharedBy property value.
-
#shared_by=(value) ⇒ Object
Sets the sharedBy property value.
-
#shared_date_time ⇒ Object
Gets the sharedDateTime property value.
-
#shared_date_time=(value) ⇒ Object
Sets the sharedDateTime property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new shared and sets the default values.
47 48 49 |
# File 'lib/models/shared.rb', line 47 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
55 56 57 58 |
# File 'lib/models/shared.rb', line 55 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return Shared.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.
32 33 34 |
# File 'lib/models/shared.rb', line 32 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.
40 41 42 |
# File 'lib/models/shared.rb', line 40 def additional_data=(value) @additional_data = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
63 64 65 66 67 68 69 70 71 |
# File 'lib/models/shared.rb', line 63 def get_field_deserializers() return { "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "owner" => lambda {|n| @owner = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "scope" => lambda {|n| @scope = n.get_string_value() }, "sharedBy" => lambda {|n| @shared_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "sharedDateTime" => lambda {|n| @shared_date_time = n.get_date_time_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
76 77 78 |
# File 'lib/models/shared.rb', line 76 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
84 85 86 |
# File 'lib/models/shared.rb', line 84 def odata_type=(value) @odata_type = value end |
#owner ⇒ Object
Gets the owner property value. The identity of the owner of the shared item. Read-only.
91 92 93 |
# File 'lib/models/shared.rb', line 91 def owner return @owner end |
#owner=(value) ⇒ Object
Sets the owner property value. The identity of the owner of the shared item. Read-only.
99 100 101 |
# File 'lib/models/shared.rb', line 99 def owner=(value) @owner = value end |
#scope ⇒ Object
Gets the scope property value. Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only.
106 107 108 |
# File 'lib/models/shared.rb', line 106 def scope return @scope end |
#scope=(value) ⇒ Object
Sets the scope property value. Indicates the scope of how the item is shared: anonymous, organization, or users. Read-only.
114 115 116 |
# File 'lib/models/shared.rb', line 114 def scope=(value) @scope = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
122 123 124 125 126 127 128 129 130 |
# File 'lib/models/shared.rb', line 122 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("owner", @owner) writer.write_string_value("scope", @scope) writer.write_object_value("sharedBy", @shared_by) writer.write_date_time_value("sharedDateTime", @shared_date_time) writer.write_additional_data(@additional_data) end |
#shared_by ⇒ Object
Gets the sharedBy property value. The identity of the user who shared the item. Read-only.
135 136 137 |
# File 'lib/models/shared.rb', line 135 def shared_by return @shared_by end |
#shared_by=(value) ⇒ Object
Sets the sharedBy property value. The identity of the user who shared the item. Read-only.
143 144 145 |
# File 'lib/models/shared.rb', line 143 def shared_by=(value) @shared_by = value end |
#shared_date_time ⇒ Object
Gets the sharedDateTime property value. The UTC date and time when the item was shared. Read-only.
150 151 152 |
# File 'lib/models/shared.rb', line 150 def shared_date_time return @shared_date_time end |
#shared_date_time=(value) ⇒ Object
Sets the sharedDateTime property value. The UTC date and time when the item was shared. Read-only.
158 159 160 |
# File 'lib/models/shared.rb', line 158 def shared_date_time=(value) @shared_date_time = value end |