Class: MicrosoftGraph::Models::AuthenticationStrengthPolicy

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/authentication_strength_policy.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 authenticationStrengthPolicy and sets the default values.



68
69
70
# File 'lib/models/authentication_strength_policy.rb', line 68

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 authentication_strength_policy

Raises:

  • (StandardError)


91
92
93
94
# File 'lib/models/authentication_strength_policy.rb', line 91

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return AuthenticationStrengthPolicy.new
end

Instance Method Details

#allowed_combinationsObject

Gets the allowedCombinations property value. A collection of authentication method modes that are required be used to satify this authentication strength.

Returns:

  • a authentication_method_modes



38
39
40
# File 'lib/models/authentication_strength_policy.rb', line 38

def allowed_combinations
    return @allowed_combinations
end

#allowed_combinations=(value) ⇒ Object

Sets the allowedCombinations property value. A collection of authentication method modes that are required be used to satify this authentication strength.

Parameters:

  • value

    Value to set for the allowedCombinations property.

Returns:

  • a void



46
47
48
# File 'lib/models/authentication_strength_policy.rb', line 46

def allowed_combinations=(value)
    @allowed_combinations = value
end

#combination_configurationsObject

Gets the combinationConfigurations property value. Settings that may be used to require specific types or instances of an authentication method to be used when authenticating with a specified combination of authentication methods.

Returns:

  • a authentication_combination_configuration



53
54
55
# File 'lib/models/authentication_strength_policy.rb', line 53

def combination_configurations
    return @combination_configurations
end

#combination_configurations=(value) ⇒ Object

Sets the combinationConfigurations property value. Settings that may be used to require specific types or instances of an authentication method to be used when authenticating with a specified combination of authentication methods.

Parameters:

  • value

    Value to set for the combinationConfigurations property.

Returns:

  • a void



61
62
63
# File 'lib/models/authentication_strength_policy.rb', line 61

def combination_configurations=(value)
    @combination_configurations = value
end

#created_date_timeObject

Gets the createdDateTime property value. The datetime when this policy was created.

Returns:

  • a date_time



75
76
77
# File 'lib/models/authentication_strength_policy.rb', line 75

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. The datetime when this policy was created.

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



83
84
85
# File 'lib/models/authentication_strength_policy.rb', line 83

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. The human-readable description of this policy.

Returns:

  • a string



99
100
101
# File 'lib/models/authentication_strength_policy.rb', line 99

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The human-readable description of this policy.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



107
108
109
# File 'lib/models/authentication_strength_policy.rb', line 107

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The human-readable display name of this policy. Supports $filter (eq, ne, not , and in).

Returns:

  • a string



114
115
116
# File 'lib/models/authentication_strength_policy.rb', line 114

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The human-readable display name of this policy. Supports $filter (eq, ne, not , and in).

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



122
123
124
# File 'lib/models/authentication_strength_policy.rb', line 122

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/models/authentication_strength_policy.rb', line 129

def get_field_deserializers()
    return super.merge({
        "allowedCombinations" => lambda {|n| @allowed_combinations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodModes.create_from_discriminator_value(pn) }) },
        "combinationConfigurations" => lambda {|n| @combination_configurations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationCombinationConfiguration.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() },
        "policyType" => lambda {|n| @policy_type = n.get_enum_value(MicrosoftGraph::Models::AuthenticationStrengthPolicyType) },
        "requirementsSatisfied" => lambda {|n| @requirements_satisfied = n.get_enum_value(MicrosoftGraph::Models::AuthenticationStrengthRequirements) },
    })
end

#modified_date_timeObject

Gets the modifiedDateTime property value. The datetime when this policy was last modified.

Returns:

  • a date_time



145
146
147
# File 'lib/models/authentication_strength_policy.rb', line 145

def modified_date_time
    return @modified_date_time
end

#modified_date_time=(value) ⇒ Object

Sets the modifiedDateTime property value. The datetime when this policy was last modified.

Parameters:

  • value

    Value to set for the modifiedDateTime property.

Returns:

  • a void



153
154
155
# File 'lib/models/authentication_strength_policy.rb', line 153

def modified_date_time=(value)
    @modified_date_time = value
end

#policy_typeObject

Gets the policyType property value. The policyType property

Returns:

  • a authentication_strength_policy_type



160
161
162
# File 'lib/models/authentication_strength_policy.rb', line 160

def policy_type
    return @policy_type
end

#policy_type=(value) ⇒ Object

Sets the policyType property value. The policyType property

Parameters:

  • value

    Value to set for the policyType property.

Returns:

  • a void



168
169
170
# File 'lib/models/authentication_strength_policy.rb', line 168

def policy_type=(value)
    @policy_type = value
end

#requirements_satisfiedObject

Gets the requirementsSatisfied property value. The requirementsSatisfied property

Returns:

  • a authentication_strength_requirements



175
176
177
# File 'lib/models/authentication_strength_policy.rb', line 175

def requirements_satisfied
    return @requirements_satisfied
end

#requirements_satisfied=(value) ⇒ Object

Sets the requirementsSatisfied property value. The requirementsSatisfied property

Parameters:

  • value

    Value to set for the requirementsSatisfied property.

Returns:

  • a void



183
184
185
# File 'lib/models/authentication_strength_policy.rb', line 183

def requirements_satisfied=(value)
    @requirements_satisfied = 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)


191
192
193
194
195
196
197
198
199
200
201
202
# File 'lib/models/authentication_strength_policy.rb', line 191

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("allowedCombinations", @allowed_combinations)
    writer.write_collection_of_object_values("combinationConfigurations", @combination_configurations)
    writer.write_date_time_value("createdDateTime", @created_date_time)
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_date_time_value("modifiedDateTime", @modified_date_time)
    writer.write_enum_value("policyType", @policy_type)
    writer.write_enum_value("requirementsSatisfied", @requirements_satisfied)
end