Class: MicrosoftGraph::Me::Chats::Item::PermissionGrants::ValidateProperties::ValidatePropertiesPostRequestBody
- Inherits:
-
Object
- Object
- MicrosoftGraph::Me::Chats::Item::PermissionGrants::ValidateProperties::ValidatePropertiesPostRequestBody
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/me/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.
51 52 53 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 51 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
59 60 61 62 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 59 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.
36 37 38 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 36 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.
44 45 46 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 44 def additional_data=(value) @additional_data = value end |
#display_name ⇒ Object
Gets the displayName property value. The displayName property
67 68 69 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 67 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The displayName property
75 76 77 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 75 def display_name=(value) @display_name = value end |
#entity_type ⇒ Object
Gets the entityType property value. The entityType property
82 83 84 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 82 def entity_type return @entity_type end |
#entity_type=(value) ⇒ Object
Sets the entityType property value. The entityType property
90 91 92 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 90 def entity_type=(value) @entity_type = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
97 98 99 100 101 102 103 104 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 97 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
109 110 111 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 109 def mail_nickname return @mail_nickname end |
#mail_nickname=(value) ⇒ Object
Sets the mailNickname property value. The mailNickname property
117 118 119 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 117 def mail_nickname=(value) @mail_nickname = value end |
#on_behalf_of_user_id ⇒ Object
Gets the onBehalfOfUserId property value. The onBehalfOfUserId property
124 125 126 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 124 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
132 133 134 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 132 def on_behalf_of_user_id=(value) @on_behalf_of_user_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
140 141 142 143 144 145 146 147 |
# File 'lib/me/chats/item/permission_grants/validate_properties/validate_properties_post_request_body.rb', line 140 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 |