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.



40
41
42
# File 'lib/models/conditional_access_root.rb', line 40

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)


48
49
50
51
# File 'lib/models/conditional_access_root.rb', line 48

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



25
26
27
# File 'lib/models/conditional_access_root.rb', line 25

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 authentication_context_class_references property.

Returns:

  • a void



33
34
35
# File 'lib/models/conditional_access_root.rb', line 33

def authentication_context_class_references=(value)
    @authentication_context_class_references = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



56
57
58
59
60
61
62
63
# File 'lib/models/conditional_access_root.rb', line 56

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) }) },
        "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



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

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 named_locations property.

Returns:

  • a void



76
77
78
# File 'lib/models/conditional_access_root.rb', line 76

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



83
84
85
# File 'lib/models/conditional_access_root.rb', line 83

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



91
92
93
# File 'lib/models/conditional_access_root.rb', line 91

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)


99
100
101
102
103
104
105
106
# File 'lib/models/conditional_access_root.rb', line 99

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_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



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

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



119
120
121
# File 'lib/models/conditional_access_root.rb', line 119

def templates=(value)
    @templates = value
end