Class: MicrosoftGraph::Models::ConditionalAccessRoot

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



58
59
60
# File 'lib/models/conditional_access_root.rb', line 58

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 conditional_access_root

Raises:

  • (StandardError)


66
67
68
69
# File 'lib/models/conditional_access_root.rb', line 66

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

Instance Method Details

#authentication_context_class_referencesObject

Gets the authenticationContextClassReferences property value. Read-only. Nullable. Returns a collection of the specified authentication context class references.

Returns:

  • a authentication_context_class_reference



28
29
30
# File 'lib/models/conditional_access_root.rb', line 28

def authentication_context_class_references
    return @authentication_context_class_references
end

#authentication_context_class_references=(value) ⇒ Object

Sets the authenticationContextClassReferences property value. Read-only. Nullable. Returns a collection of the specified authentication context class references.

Parameters:

  • value

    Value to set for the authenticationContextClassReferences property.

Returns:

  • a void



36
37
38
# File 'lib/models/conditional_access_root.rb', line 36

def authentication_context_class_references=(value)
    @authentication_context_class_references = value
end

#authentication_strengthObject

Gets the authenticationStrength property value. The authenticationStrength property

Returns:

  • a authentication_strength_root



43
44
45
# File 'lib/models/conditional_access_root.rb', line 43

def authentication_strength
    return @authentication_strength
end

#authentication_strength=(value) ⇒ Object

Sets the authenticationStrength property value. The authenticationStrength property

Parameters:

  • value

    Value to set for the authenticationStrength property.

Returns:

  • a void



51
52
53
# File 'lib/models/conditional_access_root.rb', line 51

def authentication_strength=(value)
    @authentication_strength = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



74
75
76
77
78
79
80
81
82
# File 'lib/models/conditional_access_root.rb', line 74

def get_field_deserializers()
    return super.merge({
        "authenticationContextClassReferences" => lambda {|n| @authentication_context_class_references = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::AuthenticationContextClassReference.create_from_discriminator_value(pn) }) },
        "authenticationStrength" => lambda {|n| @authentication_strength = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthRoot.create_from_discriminator_value(pn) }) },
        "namedLocations" => lambda {|n| @named_locations = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::NamedLocation.create_from_discriminator_value(pn) }) },
        "policies" => lambda {|n| @policies = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessPolicy.create_from_discriminator_value(pn) }) },
        "templates" => lambda {|n| @templates = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessTemplate.create_from_discriminator_value(pn) }) },
    })
end

#named_locationsObject

Gets the namedLocations property value. Read-only. Nullable. Returns a collection of the specified named locations.

Returns:

  • a named_location



87
88
89
# File 'lib/models/conditional_access_root.rb', line 87

def named_locations
    return @named_locations
end

#named_locations=(value) ⇒ Object

Sets the namedLocations property value. Read-only. Nullable. Returns a collection of the specified named locations.

Parameters:

  • value

    Value to set for the namedLocations property.

Returns:

  • a void



95
96
97
# File 'lib/models/conditional_access_root.rb', line 95

def named_locations=(value)
    @named_locations = value
end

#policiesObject

Gets the policies property value. Read-only. Nullable. Returns a collection of the specified Conditional Access (CA) policies.

Returns:

  • a conditional_access_policy



102
103
104
# File 'lib/models/conditional_access_root.rb', line 102

def policies
    return @policies
end

#policies=(value) ⇒ Object

Sets the policies property value. Read-only. Nullable. Returns a collection of the specified Conditional Access (CA) policies.

Parameters:

  • value

    Value to set for the policies property.

Returns:

  • a void



110
111
112
# File 'lib/models/conditional_access_root.rb', line 110

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


118
119
120
121
122
123
124
125
126
# File 'lib/models/conditional_access_root.rb', line 118

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_collection_of_object_values("authenticationContextClassReferences", @authentication_context_class_references)
    writer.write_object_value("authenticationStrength", @authentication_strength)
    writer.write_collection_of_object_values("namedLocations", @named_locations)
    writer.write_collection_of_object_values("policies", @policies)
    writer.write_collection_of_object_values("templates", @templates)
end

#templatesObject

Gets the templates property value. Read-only. Nullable. Returns a collection of the specified Conditional Access templates.

Returns:

  • a conditional_access_template



131
132
133
# File 'lib/models/conditional_access_root.rb', line 131

def templates
    return @templates
end

#templates=(value) ⇒ Object

Sets the templates property value. Read-only. Nullable. Returns a collection of the specified Conditional Access templates.

Parameters:

  • value

    Value to set for the templates property.

Returns:

  • a void



139
140
141
# File 'lib/models/conditional_access_root.rb', line 139

def templates=(value)
    @templates = value
end