Class: MicrosoftGraph::Models::AttachmentSession
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/attachment_session.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
-
#content ⇒ Object
Gets the content property value.
-
#content=(value) ⇒ Object
Sets the content property value.
-
#expiration_date_time ⇒ Object
Gets the expirationDateTime property value.
-
#expiration_date_time=(value) ⇒ Object
Sets the expirationDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new attachmentSession and sets the default values.
-
#next_expected_ranges ⇒ Object
Gets the nextExpectedRanges property value.
-
#next_expected_ranges=(value) ⇒ Object
Sets the nextExpectedRanges property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new attachmentSession and sets the default values.
23 24 25 |
# File 'lib/models/attachment_session.rb', line 23 def initialize() super 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/attachment_session.rb', line 46 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AttachmentSession.new end |
Instance Method Details
#content ⇒ Object
Gets the content property value. The content streams that are uploaded.
30 31 32 |
# File 'lib/models/attachment_session.rb', line 30 def content return @content end |
#content=(value) ⇒ Object
Sets the content property value. The content streams that are uploaded.
38 39 40 |
# File 'lib/models/attachment_session.rb', line 38 def content=(value) @content = value end |
#expiration_date_time ⇒ Object
Gets the expirationDateTime property value. The date and time in UTC when the upload session will expire. The complete file must be uploaded before this expiration time is reached.
54 55 56 |
# File 'lib/models/attachment_session.rb', line 54 def expiration_date_time return @expiration_date_time end |
#expiration_date_time=(value) ⇒ Object
Sets the expirationDateTime property value. The date and time in UTC when the upload session will expire. The complete file must be uploaded before this expiration time is reached.
62 63 64 |
# File 'lib/models/attachment_session.rb', line 62 def expiration_date_time=(value) @expiration_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
69 70 71 72 73 74 75 |
# File 'lib/models/attachment_session.rb', line 69 def get_field_deserializers() return super.merge({ "content" => lambda {|n| @content = n.get_object_value(lambda {|pn| Base64url.create_from_discriminator_value(pn) }) }, "expirationDateTime" => lambda {|n| @expiration_date_time = n.get_date_time_value() }, "nextExpectedRanges" => lambda {|n| @next_expected_ranges = n.get_collection_of_primitive_values(String) }, }) end |
#next_expected_ranges ⇒ Object
Gets the nextExpectedRanges property value. Indicates a single value start that represents the location in the file where the next upload should begin.
80 81 82 |
# File 'lib/models/attachment_session.rb', line 80 def next_expected_ranges return @next_expected_ranges end |
#next_expected_ranges=(value) ⇒ Object
Sets the nextExpectedRanges property value. Indicates a single value start that represents the location in the file where the next upload should begin.
88 89 90 |
# File 'lib/models/attachment_session.rb', line 88 def next_expected_ranges=(value) @next_expected_ranges = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
96 97 98 99 100 101 102 |
# File 'lib/models/attachment_session.rb', line 96 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("content", @content) writer.write_date_time_value("expirationDateTime", @expiration_date_time) writer.write_collection_of_primitive_values("nextExpectedRanges", @next_expected_ranges) end |