Class: MicrosoftGraph::Models::AuthenticationContextClassReference

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/authentication_context_class_reference.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 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

Parameters:

  • parse_node

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

Returns:

  • a authentication_context_class_reference

Raises:

  • (StandardError)


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

#descriptionObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



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

def description=(value)
    @description = value
end

#display_nameObject

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.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



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

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_availableObject

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).

Returns:

  • a boolean



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).

Parameters:

  • value

    Value to set for the isAvailable property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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