Class: MicrosoftGraph::Models::IdentityUserFlowAttributeAssignment

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/identity_user_flow_attribute_assignment.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a identity_user_flow_attribute_assignment

Raises:

  • (StandardError)


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_nameObject

Gets the displayName property value. The display name of the identityUserFlowAttribute within a user flow.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



55
56
57
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 55

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_optionalObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the isOptional property.

Returns:

  • a void



84
85
86
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 84

def is_optional=(value)
    @is_optional = value
end

#requires_verificationObject

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.

Returns:

  • a boolean



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.

Parameters:

  • value

    Value to set for the requiresVerification property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_attributeObject

Gets the userAttribute property value. The user attribute that you want to add to your user flow.

Returns:

  • a identity_user_flow_attribute



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.

Parameters:

  • value

    Value to set for the userAttribute property.

Returns:

  • a void



129
130
131
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 129

def user_attribute=(value)
    @user_attribute = value
end

#user_attribute_valuesObject

Gets the userAttributeValues property value. The input options for the user flow attribute. Only applicable when the userInputType is radioSingleSelect, dropdownSingleSelect, or checkboxMultiSelect.

Returns:

  • a user_attribute_values_item



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.

Parameters:

  • value

    Value to set for the userAttributeValues property.

Returns:

  • a void



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_typeObject

Gets the userInputType property value. The userInputType property

Returns:

  • a identity_user_flow_attribute_input_type



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

Parameters:

  • value

    Value to set for the userInputType property.

Returns:

  • a void



159
160
161
# File 'lib/models/identity_user_flow_attribute_assignment.rb', line 159

def user_input_type=(value)
    @user_input_type = value
end