Class: MicrosoftGraph::Me::JoinedTeams::Item::Schedule::Share::SharePostRequestBody

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/me/joined_teams/item/schedule/share/share_post_request_body.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new sharePostRequestBody and sets the default values.



49
50
51
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 49

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

Parameters:

  • The parse node to use to read the discriminator value and create the object

Returns:

  • a share_post_request_body

Raises:



57
58
59
60
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 57

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_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



34
35
36
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 34

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.

Parameters:

  • Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#end_date_timeObject

Gets the endDateTime property value. The endDateTime property

Returns:

  • a date_time



65
66
67
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 65

def end_date_time
    return @end_date_time
end

#end_date_time=(value) ⇒ Object

Sets the endDateTime property value. The endDateTime property

Parameters:

  • Value to set for the endDateTime property.

Returns:

  • a void



73
74
75
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 73

def end_date_time=(value)
    @end_date_time = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



80
81
82
83
84
85
86
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 80

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_teamObject

Gets the notifyTeam property value. The notifyTeam property

Returns:

  • a boolean



91
92
93
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 91

def notify_team
    return @notify_team
end

#notify_team=(value) ⇒ Object

Sets the notifyTeam property value. The notifyTeam property

Parameters:

  • Value to set for the notifyTeam property.

Returns:

  • a void



99
100
101
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 99

def notify_team=(value)
    @notify_team = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • Serialization writer to use to serialize this model

Returns:

  • a void

Raises:



107
108
109
110
111
112
113
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 107

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_timeObject

Gets the startDateTime property value. The startDateTime property

Returns:

  • a date_time



118
119
120
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 118

def start_date_time
    return @start_date_time
end

#start_date_time=(value) ⇒ Object

Sets the startDateTime property value. The startDateTime property

Parameters:

  • Value to set for the startDateTime property.

Returns:

  • a void



126
127
128
# File 'lib/me/joined_teams/item/schedule/share/share_post_request_body.rb', line 126

def start_date_time=(value)
    @start_date_time = value
end