Class: MicrosoftGraph::Models::ParticipantInfo

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/participant_info.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new participantInfo and sets the default values.



52
53
54
# File 'lib/models/participant_info.rb', line 52

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:

  • parse_node

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

Returns:

  • a participant_info

Raises:

  • (StandardError)


75
76
77
78
# File 'lib/models/participant_info.rb', line 75

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return ParticipantInfo.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



37
38
39
# File 'lib/models/participant_info.rb', line 37

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

    Value to set for the additionalData property.

Returns:

  • a void



45
46
47
# File 'lib/models/participant_info.rb', line 45

def additional_data=(value)
    @additional_data = value
end

#country_codeObject

Gets the countryCode property value. The ISO 3166-1 Alpha-2 country code of the participant’s best estimated physical location at the start of the call. Read-only.

Returns:

  • a string



59
60
61
# File 'lib/models/participant_info.rb', line 59

def country_code
    return @country_code
end

#country_code=(value) ⇒ Object

Sets the countryCode property value. The ISO 3166-1 Alpha-2 country code of the participant’s best estimated physical location at the start of the call. Read-only.

Parameters:

  • value

    Value to set for the countryCode property.

Returns:

  • a void



67
68
69
# File 'lib/models/participant_info.rb', line 67

def country_code=(value)
    @country_code = value
end

#endpoint_typeObject

Gets the endpointType property value. The type of endpoint the participant is using. Possible values are: default, skypeForBusiness, or skypeForBusinessVoipPhone. Read-only.

Returns:

  • a endpoint_type



83
84
85
# File 'lib/models/participant_info.rb', line 83

def endpoint_type
    return @endpoint_type
end

#endpoint_type=(value) ⇒ Object

Sets the endpointType property value. The type of endpoint the participant is using. Possible values are: default, skypeForBusiness, or skypeForBusinessVoipPhone. Read-only.

Parameters:

  • value

    Value to set for the endpointType property.

Returns:

  • a void



91
92
93
# File 'lib/models/participant_info.rb', line 91

def endpoint_type=(value)
    @endpoint_type = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



98
99
100
101
102
103
104
105
106
107
108
# File 'lib/models/participant_info.rb', line 98

def get_field_deserializers()
    return {
        "countryCode" => lambda {|n| @country_code = n.get_string_value() },
        "endpointType" => lambda {|n| @endpoint_type = n.get_enum_value(MicrosoftGraph::Models::EndpointType) },
        "identity" => lambda {|n| @identity = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "languageId" => lambda {|n| @language_id = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "participantId" => lambda {|n| @participant_id = n.get_string_value() },
        "region" => lambda {|n| @region = n.get_string_value() },
    }
end

#identityObject

Gets the identity property value. The identity property

Returns:

  • a identity_set



113
114
115
# File 'lib/models/participant_info.rb', line 113

def identity
    return @identity
end

#identity=(value) ⇒ Object

Sets the identity property value. The identity property

Parameters:

  • value

    Value to set for the identity property.

Returns:

  • a void



121
122
123
# File 'lib/models/participant_info.rb', line 121

def identity=(value)
    @identity = value
end

#language_idObject

Gets the languageId property value. The language culture string. Read-only.

Returns:

  • a string



128
129
130
# File 'lib/models/participant_info.rb', line 128

def language_id
    return @language_id
end

#language_id=(value) ⇒ Object

Sets the languageId property value. The language culture string. Read-only.

Parameters:

  • value

    Value to set for the languageId property.

Returns:

  • a void



136
137
138
# File 'lib/models/participant_info.rb', line 136

def language_id=(value)
    @language_id = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



143
144
145
# File 'lib/models/participant_info.rb', line 143

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



151
152
153
# File 'lib/models/participant_info.rb', line 151

def odata_type=(value)
    @odata_type = value
end

#participant_idObject

Gets the participantId property value. The participant ID of the participant. Read-only.

Returns:

  • a string



158
159
160
# File 'lib/models/participant_info.rb', line 158

def participant_id
    return @participant_id
end

#participant_id=(value) ⇒ Object

Sets the participantId property value. The participant ID of the participant. Read-only.

Parameters:

  • value

    Value to set for the participantId property.

Returns:

  • a void



166
167
168
# File 'lib/models/participant_info.rb', line 166

def participant_id=(value)
    @participant_id = value
end

#regionObject

Gets the region property value. The home region of the participant. This can be a country, a continent, or a larger geographic region. This does not change based on the participant’s current physical location. Read-only.

Returns:

  • a string



173
174
175
# File 'lib/models/participant_info.rb', line 173

def region
    return @region
end

#region=(value) ⇒ Object

Sets the region property value. The home region of the participant. This can be a country, a continent, or a larger geographic region. This does not change based on the participant’s current physical location. Read-only.

Parameters:

  • value

    Value to set for the region property.

Returns:

  • a void



181
182
183
# File 'lib/models/participant_info.rb', line 181

def region=(value)
    @region = value
end

#serialize(writer) ⇒ Object

Serializes information the current object

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


189
190
191
192
193
194
195
196
197
198
199
# File 'lib/models/participant_info.rb', line 189

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("countryCode", @country_code)
    writer.write_enum_value("endpointType", @endpoint_type)
    writer.write_object_value("identity", @identity)
    writer.write_string_value("languageId", @language_id)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("participantId", @participant_id)
    writer.write_string_value("region", @region)
    writer.write_additional_data(@additional_data)
end