Class: MicrosoftGraph::Models::RelatedContact
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::RelatedContact
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/related_contact.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
-
#access_consent ⇒ Object
Gets the accessConsent property value.
-
#access_consent=(value) ⇒ Object
Sets the accessConsent property value.
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#email_address ⇒ Object
Gets the emailAddress property value.
-
#email_address=(value) ⇒ Object
Sets the emailAddress property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new relatedContact and sets the default values.
-
#mobile_phone ⇒ Object
Gets the mobilePhone property value.
-
#mobile_phone=(value) ⇒ Object
Sets the mobilePhone property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#relationship ⇒ Object
Gets the relationship property value.
-
#relationship=(value) ⇒ Object
Sets the relationship property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new relatedContact and sets the default values.
64 65 66 |
# File 'lib/models/related_contact.rb', line 64 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
72 73 74 75 |
# File 'lib/models/related_contact.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RelatedContact.new end |
Instance Method Details
#access_consent ⇒ Object
Gets the accessConsent property value. Indicates whether the user has been consented to access student data.
34 35 36 |
# File 'lib/models/related_contact.rb', line 34 def return @access_consent end |
#access_consent=(value) ⇒ Object
Sets the accessConsent property value. Indicates whether the user has been consented to access student data.
42 43 44 |
# File 'lib/models/related_contact.rb', line 42 def (value) @access_consent = value end |
#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.
49 50 51 |
# File 'lib/models/related_contact.rb', line 49 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.
57 58 59 |
# File 'lib/models/related_contact.rb', line 57 def additional_data=(value) @additional_data = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the contact. Required.
80 81 82 |
# File 'lib/models/related_contact.rb', line 80 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the contact. Required.
88 89 90 |
# File 'lib/models/related_contact.rb', line 88 def display_name=(value) @display_name = value end |
#email_address ⇒ Object
Gets the emailAddress property value. Primary email address of the contact. Required.
95 96 97 |
# File 'lib/models/related_contact.rb', line 95 def email_address return @email_address end |
#email_address=(value) ⇒ Object
Sets the emailAddress property value. Primary email address of the contact. Required.
103 104 105 |
# File 'lib/models/related_contact.rb', line 103 def email_address=(value) @email_address = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/models/related_contact.rb', line 110 def get_field_deserializers() return { "accessConsent" => lambda {|n| @access_consent = n.get_boolean_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "emailAddress" => lambda {|n| @email_address = n.get_string_value() }, "mobilePhone" => lambda {|n| @mobile_phone = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "relationship" => lambda {|n| @relationship = n.get_enum_value(MicrosoftGraph::Models::ContactRelationship) }, } end |
#mobile_phone ⇒ Object
Gets the mobilePhone property value. Mobile phone number of the contact.
124 125 126 |
# File 'lib/models/related_contact.rb', line 124 def mobile_phone return @mobile_phone end |
#mobile_phone=(value) ⇒ Object
Sets the mobilePhone property value. Mobile phone number of the contact.
132 133 134 |
# File 'lib/models/related_contact.rb', line 132 def mobile_phone=(value) @mobile_phone = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
139 140 141 |
# File 'lib/models/related_contact.rb', line 139 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
147 148 149 |
# File 'lib/models/related_contact.rb', line 147 def odata_type=(value) @odata_type = value end |
#relationship ⇒ Object
Gets the relationship property value. The relationship property
154 155 156 |
# File 'lib/models/related_contact.rb', line 154 def relationship return @relationship end |
#relationship=(value) ⇒ Object
Sets the relationship property value. The relationship property
162 163 164 |
# File 'lib/models/related_contact.rb', line 162 def relationship=(value) @relationship = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
170 171 172 173 174 175 176 177 178 179 |
# File 'lib/models/related_contact.rb', line 170 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_boolean_value("accessConsent", @access_consent) writer.write_string_value("displayName", @display_name) writer.write_string_value("emailAddress", @email_address) writer.write_string_value("mobilePhone", @mobile_phone) writer.write_string_value("@odata.type", @odata_type) writer.write_enum_value("relationship", @relationship) writer.write_additional_data(@additional_data) end |