Class: MicrosoftGraph::Models::IdentityUserFlowAttribute
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/identity_user_flow_attribute.rb
Direct Known Subclasses
IdentityBuiltInUserFlowAttribute, IdentityCustomUserFlowAttribute
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
-
#data_type ⇒ Object
Gets the dataType property value.
-
#data_type=(value) ⇒ Object
Sets the dataType property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new identityUserFlowAttribute and sets the default values.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_flow_attribute_type ⇒ Object
Gets the userFlowAttributeType property value.
-
#user_flow_attribute_type=(value) ⇒ Object
Sets the userFlowAttributeType property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new identityUserFlowAttribute and sets the default values.
25 26 27 |
# File 'lib/models/identity_user_flow_attribute.rb', line 25 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/models/identity_user_flow_attribute.rb', line 33 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.identityBuiltInUserFlowAttribute" return IdentityBuiltInUserFlowAttribute.new when "#microsoft.graph.identityCustomUserFlowAttribute" return IdentityCustomUserFlowAttribute.new end end return IdentityUserFlowAttribute.new end |
Instance Method Details
#data_type ⇒ Object
Gets the dataType property value. The dataType property
51 52 53 |
# File 'lib/models/identity_user_flow_attribute.rb', line 51 def data_type return @data_type end |
#data_type=(value) ⇒ Object
Sets the dataType property value. The dataType property
59 60 61 |
# File 'lib/models/identity_user_flow_attribute.rb', line 59 def data_type=(value) @data_type = value end |
#description ⇒ Object
Gets the description property value. The description of the user flow attribute that’s shown to the user at the time of sign-up.
66 67 68 |
# File 'lib/models/identity_user_flow_attribute.rb', line 66 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description of the user flow attribute that’s shown to the user at the time of sign-up.
74 75 76 |
# File 'lib/models/identity_user_flow_attribute.rb', line 74 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name of the user flow attribute.
81 82 83 |
# File 'lib/models/identity_user_flow_attribute.rb', line 81 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name of the user flow attribute.
89 90 91 |
# File 'lib/models/identity_user_flow_attribute.rb', line 89 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
96 97 98 99 100 101 102 103 |
# File 'lib/models/identity_user_flow_attribute.rb', line 96 def get_field_deserializers() return super.merge({ "dataType" => lambda {|n| @data_type = n.get_enum_value(MicrosoftGraph::Models::IdentityUserFlowAttributeDataType) }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "userFlowAttributeType" => lambda {|n| @user_flow_attribute_type = n.get_enum_value(MicrosoftGraph::Models::IdentityUserFlowAttributeType) }, }) end |
#serialize(writer) ⇒ Object
Serializes information the current object
109 110 111 112 113 114 115 116 |
# File 'lib/models/identity_user_flow_attribute.rb', line 109 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_enum_value("dataType", @data_type) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_enum_value("userFlowAttributeType", @user_flow_attribute_type) end |
#user_flow_attribute_type ⇒ Object
Gets the userFlowAttributeType property value. The userFlowAttributeType property
121 122 123 |
# File 'lib/models/identity_user_flow_attribute.rb', line 121 def user_flow_attribute_type return @user_flow_attribute_type end |
#user_flow_attribute_type=(value) ⇒ Object
Sets the userFlowAttributeType property value. The userFlowAttributeType property
129 130 131 |
# File 'lib/models/identity_user_flow_attribute.rb', line 129 def user_flow_attribute_type=(value) @user_flow_attribute_type = value end |