Class: MicrosoftGraph::Models::AuthenticationMethodsPolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/authentication_methods_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
-
#authentication_method_configurations ⇒ Object
Gets the authenticationMethodConfigurations property value.
-
#authentication_method_configurations=(value) ⇒ Object
Sets the authenticationMethodConfigurations 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 authenticationMethodsPolicy and sets the default values.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#policy_migration_state ⇒ Object
Gets the policyMigrationState property value.
-
#policy_migration_state=(value) ⇒ Object
Sets the policyMigrationState property value.
-
#policy_version ⇒ Object
Gets the policyVersion property value.
-
#policy_version=(value) ⇒ Object
Sets the policyVersion property value.
-
#reconfirmation_in_days ⇒ Object
Gets the reconfirmationInDays property value.
-
#reconfirmation_in_days=(value) ⇒ Object
Sets the reconfirmationInDays property value.
-
#registration_enforcement ⇒ Object
Gets the registrationEnforcement property value.
-
#registration_enforcement=(value) ⇒ Object
Sets the registrationEnforcement 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 authenticationMethodsPolicy and sets the default values.
53 54 55 |
# File 'lib/models/authentication_methods_policy.rb', line 53 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
61 62 63 64 |
# File 'lib/models/authentication_methods_policy.rb', line 61 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AuthenticationMethodsPolicy.new end |
Instance Method Details
#authentication_method_configurations ⇒ Object
Gets the authenticationMethodConfigurations property value. Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy.
38 39 40 |
# File 'lib/models/authentication_methods_policy.rb', line 38 def authentication_method_configurations return @authentication_method_configurations end |
#authentication_method_configurations=(value) ⇒ Object
Sets the authenticationMethodConfigurations property value. Represents the settings for each authentication method. Automatically expanded on GET /policies/authenticationMethodsPolicy.
46 47 48 |
# File 'lib/models/authentication_methods_policy.rb', line 46 def authentication_method_configurations=(value) @authentication_method_configurations = value end |
#description ⇒ Object
Gets the description property value. A description of the policy. Read-only.
69 70 71 |
# File 'lib/models/authentication_methods_policy.rb', line 69 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. A description of the policy. Read-only.
77 78 79 |
# File 'lib/models/authentication_methods_policy.rb', line 77 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of the policy. Read-only.
84 85 86 |
# File 'lib/models/authentication_methods_policy.rb', line 84 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of the policy. Read-only.
92 93 94 |
# File 'lib/models/authentication_methods_policy.rb', line 92 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/models/authentication_methods_policy.rb', line 99 def get_field_deserializers() return super.merge({ "authenticationMethodConfigurations" => lambda {|n| @authentication_method_configurations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationMethodConfiguration.create_from_discriminator_value(pn) }) }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, "policyMigrationState" => lambda {|n| @policy_migration_state = n.get_enum_value(MicrosoftGraph::Models::AuthenticationMethodsPolicyMigrationState) }, "policyVersion" => lambda {|n| @policy_version = n.get_string_value() }, "reconfirmationInDays" => lambda {|n| @reconfirmation_in_days = n.get_number_value() }, "registrationEnforcement" => lambda {|n| @registration_enforcement = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::RegistrationEnforcement.create_from_discriminator_value(pn) }) }, }) end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The date and time of the last update to the policy. Read-only.
115 116 117 |
# File 'lib/models/authentication_methods_policy.rb', line 115 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The date and time of the last update to the policy. Read-only.
123 124 125 |
# File 'lib/models/authentication_methods_policy.rb', line 123 def last_modified_date_time=(value) @last_modified_date_time = value end |
#policy_migration_state ⇒ Object
Gets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Do not use.
130 131 132 |
# File 'lib/models/authentication_methods_policy.rb', line 130 def policy_migration_state return @policy_migration_state end |
#policy_migration_state=(value) ⇒ Object
Sets the policyMigrationState property value. The state of migration of the authentication methods policy from the legacy multifactor authentication and self-service password reset (SSPR) policies. The possible values are: premigration - means the authentication methods policy is used for authentication only, legacy policies are respected. migrationInProgress - means the authentication methods policy is used for both authentication and SSPR, legacy policies are respected. migrationComplete - means the authentication methods policy is used for authentication and SSPR, legacy policies are ignored. unknownFutureValue - Evolvable enumeration sentinel value. Do not use.
138 139 140 |
# File 'lib/models/authentication_methods_policy.rb', line 138 def policy_migration_state=(value) @policy_migration_state = value end |
#policy_version ⇒ Object
Gets the policyVersion property value. The version of the policy in use. Read-only.
145 146 147 |
# File 'lib/models/authentication_methods_policy.rb', line 145 def policy_version return @policy_version end |
#policy_version=(value) ⇒ Object
Sets the policyVersion property value. The version of the policy in use. Read-only.
153 154 155 |
# File 'lib/models/authentication_methods_policy.rb', line 153 def policy_version=(value) @policy_version = value end |
#reconfirmation_in_days ⇒ Object
Gets the reconfirmationInDays property value. The reconfirmationInDays property
160 161 162 |
# File 'lib/models/authentication_methods_policy.rb', line 160 def reconfirmation_in_days return @reconfirmation_in_days end |
#reconfirmation_in_days=(value) ⇒ Object
Sets the reconfirmationInDays property value. The reconfirmationInDays property
168 169 170 |
# File 'lib/models/authentication_methods_policy.rb', line 168 def reconfirmation_in_days=(value) @reconfirmation_in_days = value end |
#registration_enforcement ⇒ Object
Gets the registrationEnforcement property value. Enforce registration at sign-in time. This property can be used to remind users to set up targeted authentication methods.
175 176 177 |
# File 'lib/models/authentication_methods_policy.rb', line 175 def registration_enforcement return @registration_enforcement end |
#registration_enforcement=(value) ⇒ Object
Sets the registrationEnforcement property value. Enforce registration at sign-in time. This property can be used to remind users to set up targeted authentication methods.
183 184 185 |
# File 'lib/models/authentication_methods_policy.rb', line 183 def registration_enforcement=(value) @registration_enforcement = 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_methods_policy.rb', line 191 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_collection_of_object_values("authenticationMethodConfigurations", @authentication_method_configurations) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) writer.write_enum_value("policyMigrationState", @policy_migration_state) writer.write_string_value("policyVersion", @policy_version) writer.write_number_value("reconfirmationInDays", @reconfirmation_in_days) writer.write_object_value("registrationEnforcement", @registration_enforcement) end |