Class: MicrosoftGraph::Models::AuthenticationContextClassReference
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/authentication_context_class_reference.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
-
#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 authenticationContextClassReference and sets the default values.
-
#is_available ⇒ Object
Gets the isAvailable property value.
-
#is_available=(value) ⇒ Object
Sets the isAvailable 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 authenticationContextClassReference and sets the default values.
22 23 24 |
# File 'lib/models/authentication_context_class_reference.rb', line 22 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
30 31 32 33 |
# File 'lib/models/authentication_context_class_reference.rb', line 30 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return AuthenticationContextClassReference.new end |
Instance Method Details
#description ⇒ Object
Gets the description property value. A short explanation of the policies that are enforced by authenticationContextClassReference. This value should be used to provide secondary text to describe the authentication context class reference when building user-facing admin experiences. For example, a selection UX.
38 39 40 |
# File 'lib/models/authentication_context_class_reference.rb', line 38 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. A short explanation of the policies that are enforced by authenticationContextClassReference. This value should be used to provide secondary text to describe the authentication context class reference when building user-facing admin experiences. For example, a selection UX.
46 47 48 |
# File 'lib/models/authentication_context_class_reference.rb', line 46 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The display name is the friendly name of the authenticationContextClassReference object. This value should be used to identify the authentication context class reference when building user-facing admin experiences. For example, a selection UX.
53 54 55 |
# File 'lib/models/authentication_context_class_reference.rb', line 53 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The display name is the friendly name of the authenticationContextClassReference object. This value should be used to identify the authentication context class reference when building user-facing admin experiences. For example, a selection UX.
61 62 63 |
# File 'lib/models/authentication_context_class_reference.rb', line 61 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
68 69 70 71 72 73 74 |
# File 'lib/models/authentication_context_class_reference.rb', line 68 def get_field_deserializers() return super.merge({ "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "isAvailable" => lambda {|n| @is_available = n.get_boolean_value() }, }) end |
#is_available ⇒ Object
Gets the isAvailable property value. Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it is set to false, it should not be shown in authentication context selection UX, or used to protect app resources. It will be shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq).
79 80 81 |
# File 'lib/models/authentication_context_class_reference.rb', line 79 def is_available return @is_available end |
#is_available=(value) ⇒ Object
Sets the isAvailable property value. Indicates whether the authenticationContextClassReference has been published by the security admin and is ready for use by apps. When it is set to false, it should not be shown in authentication context selection UX, or used to protect app resources. It will be shown and available for Conditional Access policy authoring. The default value is false. Supports $filter (eq).
87 88 89 |
# File 'lib/models/authentication_context_class_reference.rb', line 87 def is_available=(value) @is_available = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
95 96 97 98 99 100 101 |
# File 'lib/models/authentication_context_class_reference.rb', line 95 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_boolean_value("isAvailable", @is_available) end |