Class: MicrosoftGraph::Teams::Item::Schedule::Share::SharePostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Teams::Item::Schedule::Share::SharePostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/teams/item/schedule/share/share_post_request_body.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.
-
#end_date_time ⇒ Object
Gets the endDateTime property value.
-
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new sharePostRequestBody and sets the default values.
-
#notify_team ⇒ Object
Gets the notifyTeam property value.
-
#notify_team=(value) ⇒ Object
Sets the notifyTeam property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#start_date_time ⇒ Object
Gets the startDateTime property value.
-
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new sharePostRequestBody and sets the default values.
47 48 49 |
# File 'lib/teams/item/schedule/share/share_post_request_body.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/teams/item/schedule/share/share_post_request_body.rb', line 55 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return SharePostRequestBody.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/teams/item/schedule/share/share_post_request_body.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/teams/item/schedule/share/share_post_request_body.rb', line 40 def additional_data=(value) @additional_data = value end |
#end_date_time ⇒ Object
Gets the endDateTime property value. The endDateTime property
63 64 65 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 63 def end_date_time return @end_date_time end |
#end_date_time=(value) ⇒ Object
Sets the endDateTime property value. The endDateTime property
71 72 73 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 71 def end_date_time=(value) @end_date_time = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
78 79 80 81 82 83 84 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 78 def get_field_deserializers() return { "endDateTime" => lambda {|n| @end_date_time = n.get_date_time_value() }, "notifyTeam" => lambda {|n| @notify_team = n.get_boolean_value() }, "startDateTime" => lambda {|n| @start_date_time = n.get_date_time_value() }, } end |
#notify_team ⇒ Object
Gets the notifyTeam property value. The notifyTeam property
89 90 91 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 89 def notify_team return @notify_team end |
#notify_team=(value) ⇒ Object
Sets the notifyTeam property value. The notifyTeam property
97 98 99 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 97 def notify_team=(value) @notify_team = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
105 106 107 108 109 110 111 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 105 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_date_time_value("endDateTime", @end_date_time) writer.write_boolean_value("notifyTeam", @notify_team) writer.write_date_time_value("startDateTime", @start_date_time) writer.write_additional_data(@additional_data) end |
#start_date_time ⇒ Object
Gets the startDateTime property value. The startDateTime property
116 117 118 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 116 def start_date_time return @start_date_time end |
#start_date_time=(value) ⇒ Object
Sets the startDateTime property value. The startDateTime property
124 125 126 |
# File 'lib/teams/item/schedule/share/share_post_request_body.rb', line 124 def start_date_time=(value) @start_date_time = value end |