Class: MicrosoftGraph::Models::AuthenticationStrengthPolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/authentication_strength_policy.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
-
#allowed_combinations ⇒ Object
Gets the allowedCombinations property value.
-
#allowed_combinations=(value) ⇒ Object
Sets the allowedCombinations property value.
-
#combination_configurations ⇒ Object
Gets the combinationConfigurations property value.
-
#combination_configurations=(value) ⇒ Object
Sets the combinationConfigurations property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime 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 authenticationStrengthPolicy and sets the default values.
-
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value.
-
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value.
-
#policy_type ⇒ Object
Gets the policyType property value.
-
#policy_type=(value) ⇒ Object
Sets the policyType property value.
-
#requirements_satisfied ⇒ Object
Gets the requirementsSatisfied property value.
-
#requirements_satisfied=(value) ⇒ Object
Sets the requirementsSatisfied property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
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
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_combinations ⇒ Object
Gets the allowedCombinations property value. A collection of authentication method modes that are required be used to satify this authentication strength.
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.
46 47 48 |
# File 'lib/models/authentication_strength_policy.rb', line 46 def allowed_combinations=(value) @allowed_combinations = value end |
#combination_configurations ⇒ Object
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.
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.
61 62 63 |
# File 'lib/models/authentication_strength_policy.rb', line 61 def combination_configurations=(value) @combination_configurations = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The datetime when this policy was created.
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.
83 84 85 |
# File 'lib/models/authentication_strength_policy.rb', line 83 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The human-readable description of this policy.
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.
107 108 109 |
# File 'lib/models/authentication_strength_policy.rb', line 107 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The human-readable display name of this policy. Supports $filter (eq, ne, not , and in).
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).
122 123 124 |
# File 'lib/models/authentication_strength_policy.rb', line 122 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_time ⇒ Object
Gets the modifiedDateTime property value. The datetime when this policy was last modified.
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.
153 154 155 |
# File 'lib/models/authentication_strength_policy.rb', line 153 def modified_date_time=(value) @modified_date_time = value end |
#policy_type ⇒ Object
Gets the policyType property value. The policyType property
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
168 169 170 |
# File 'lib/models/authentication_strength_policy.rb', line 168 def policy_type=(value) @policy_type = value end |
#requirements_satisfied ⇒ Object
Gets the requirementsSatisfied property value. The requirementsSatisfied property
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
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
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 |