Class: MicrosoftGraph::Chats::Item::PermissionGrants::ValidateProperties::ValidatePropertiesPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Chats::Item::PermissionGrants::ValidateProperties::ValidatePropertiesPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/chats/item/permission_grants/validate_properties/validate_properties_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.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#entity_type ⇒ Object
Gets the entityType property value.
-
#entity_type=(value) ⇒ Object
Sets the entityType property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new validatePropertiesPostRequestBody and sets the default values.
-
#mail_nickname ⇒ Object
Gets the mailNickname property value.
-
#mail_nickname=(value) ⇒ Object
Sets the mailNickname property value.
-
#on_behalf_of_user_id ⇒ Object
Gets the onBehalfOfUserId property value.
-
#on_behalf_of_user_id=(value) ⇒ Object
Sets the onBehalfOfUserId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new validatePropertiesPostRequestBody and sets the default values.
49 50 51 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_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
57 58 59 60 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_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 ValidatePropertiesPostRequestBody.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.
34 35 36 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_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.
42 43 44 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 42 def additional_data=(value) @additional_data = value end |
#display_name ⇒ Object
Gets the displayName property value. The displayName property
65 66 67 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 65 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The displayName property
73 74 75 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 73 def display_name=(value) @display_name = value end |
#entity_type ⇒ Object
Gets the entityType property value. The entityType property
80 81 82 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 80 def entity_type return @entity_type end |
#entity_type=(value) ⇒ Object
Sets the entityType property value. The entityType property
88 89 90 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 88 def entity_type=(value) @entity_type = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
95 96 97 98 99 100 101 102 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 95 def get_field_deserializers() return { "displayName" => lambda {|n| @display_name = n.get_string_value() }, "entityType" => lambda {|n| @entity_type = n.get_string_value() }, "mailNickname" => lambda {|n| @mail_nickname = n.get_string_value() }, "onBehalfOfUserId" => lambda {|n| @on_behalf_of_user_id = n.get_guid_value() }, } end |
#mail_nickname ⇒ Object
Gets the mailNickname property value. The mailNickname property
107 108 109 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 107 def mail_nickname return @mail_nickname end |
#mail_nickname=(value) ⇒ Object
Sets the mailNickname property value. The mailNickname property
115 116 117 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 115 def mail_nickname=(value) @mail_nickname = value end |
#on_behalf_of_user_id ⇒ Object
Gets the onBehalfOfUserId property value. The onBehalfOfUserId property
122 123 124 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 122 def on_behalf_of_user_id return @on_behalf_of_user_id end |
#on_behalf_of_user_id=(value) ⇒ Object
Sets the onBehalfOfUserId property value. The onBehalfOfUserId property
130 131 132 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 130 def on_behalf_of_user_id=(value) @on_behalf_of_user_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
138 139 140 141 142 143 144 145 |
# File 'lib/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 138 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("displayName", @display_name) writer.write_string_value("entityType", @entity_type) writer.write_string_value("mailNickname", @mail_nickname) writer.write_guid_value("onBehalfOfUserId", @on_behalf_of_user_id) writer.write_additional_data(@additional_data) end |