Class: MicrosoftGraph::Models::IdentityUserFlowAttributeAssignment
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/identity_user_flow_attribute_assignment.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
-
#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 identityUserFlowAttributeAssignment and sets the default values.
-
#is_optional ⇒ Object
Gets the isOptional property value.
-
#is_optional=(value) ⇒ Object
Sets the isOptional property value.
-
#requires_verification ⇒ Object
Gets the requiresVerification property value.
-
#requires_verification=(value) ⇒ Object
Sets the requiresVerification property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#user_attribute ⇒ Object
Gets the userAttribute property value.
-
#user_attribute=(value) ⇒ Object
Sets the userAttribute property value.
-
#user_attribute_values ⇒ Object
Gets the userAttributeValues property value.
-
#user_attribute_values=(value) ⇒ Object
Sets the userAttributeValues property value.
-
#user_input_type ⇒ Object
Gets the userInputType property value.
-
#user_input_type=(value) ⇒ Object
Sets the userInputType property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new identityUserFlowAttributeAssignment and sets the default values.
31 32 33 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 31 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
39 40 41 42 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 39 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return IdentityUserFlowAttributeAssignment.new end |
Instance Method Details
#display_name ⇒ Object
Gets the displayName property value. The display name of the identityUserFlowAttribute within a user flow.
47 48 49 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 47 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name of the identityUserFlowAttribute within a user flow.
55 56 57 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 55 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
62 63 64 65 66 67 68 69 70 71 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 62 def get_field_deserializers() return super.merge({ "displayName" => lambda {|n| @display_name = n.get_string_value() }, "isOptional" => lambda {|n| @is_optional = n.get_boolean_value() }, "requiresVerification" => lambda {|n| @requires_verification = n.get_boolean_value() }, "userAttribute" => lambda {|n| @user_attribute = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentityUserFlowAttribute.create_from_discriminator_value(pn) }) }, "userAttributeValues" => lambda {|n| @user_attribute_values = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::UserAttributeValuesItem.create_from_discriminator_value(pn) }) }, "userInputType" => lambda {|n| @user_input_type = n.get_enum_value(MicrosoftGraph::Models::IdentityUserFlowAttributeInputType) }, }) end |
#is_optional ⇒ Object
Gets the isOptional property value. Determines whether the identityUserFlowAttribute is optional. true means the user doesn’t have to provide a value. false means the user cannot complete sign-up without providing a value.
76 77 78 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 76 def is_optional return @is_optional end |
#is_optional=(value) ⇒ Object
Sets the isOptional property value. Determines whether the identityUserFlowAttribute is optional. true means the user doesn’t have to provide a value. false means the user cannot complete sign-up without providing a value.
84 85 86 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 84 def is_optional=(value) @is_optional = value end |
#requires_verification ⇒ Object
Gets the requiresVerification property value. Determines whether the identityUserFlowAttribute requires verification. This is only used for verifying the user’s phone number or email address.
91 92 93 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 91 def requires_verification return @requires_verification end |
#requires_verification=(value) ⇒ Object
Sets the requiresVerification property value. Determines whether the identityUserFlowAttribute requires verification. This is only used for verifying the user’s phone number or email address.
99 100 101 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 99 def requires_verification=(value) @requires_verification = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
107 108 109 110 111 112 113 114 115 116 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 107 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("displayName", @display_name) writer.write_boolean_value("isOptional", @is_optional) writer.write_boolean_value("requiresVerification", @requires_verification) writer.write_object_value("userAttribute", @user_attribute) writer.write_collection_of_object_values("userAttributeValues", @user_attribute_values) writer.write_enum_value("userInputType", @user_input_type) end |
#user_attribute ⇒ Object
Gets the userAttribute property value. The user attribute that you want to add to your user flow.
121 122 123 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 121 def user_attribute return @user_attribute end |
#user_attribute=(value) ⇒ Object
Sets the userAttribute property value. The user attribute that you want to add to your user flow.
129 130 131 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 129 def user_attribute=(value) @user_attribute = value end |
#user_attribute_values ⇒ Object
Gets the userAttributeValues property value. The input options for the user flow attribute. Only applicable when the userInputType is radioSingleSelect, dropdownSingleSelect, or checkboxMultiSelect.
136 137 138 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 136 def user_attribute_values return @user_attribute_values end |
#user_attribute_values=(value) ⇒ Object
Sets the userAttributeValues property value. The input options for the user flow attribute. Only applicable when the userInputType is radioSingleSelect, dropdownSingleSelect, or checkboxMultiSelect.
144 145 146 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 144 def user_attribute_values=(value) @user_attribute_values = value end |
#user_input_type ⇒ Object
Gets the userInputType property value. The userInputType property
151 152 153 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 151 def user_input_type return @user_input_type end |
#user_input_type=(value) ⇒ Object
Sets the userInputType property value. The userInputType property
159 160 161 |
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 159 def user_input_type=(value) @user_input_type = value end |