Class: MicrosoftGraph::Models::ConditionalAccessApplications

Inherits:
Object
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/conditional_access_applications.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new conditionalAccessApplications and sets the default values.



64
65
66
# File 'lib/models/conditional_access_applications.rb', line 64

def initialize()
    @additional_data = Hash.new
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_applications

Raises:

  • (StandardError)


72
73
74
75
# File 'lib/models/conditional_access_applications.rb', line 72

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

Instance Method Details

#additional_dataObject

Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Returns:

  • a i_dictionary



34
35
36
# File 'lib/models/conditional_access_applications.rb', line 34

def additional_data
    return @additional_data
end

#additional_data=(value) ⇒ Object

Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



42
43
44
# File 'lib/models/conditional_access_applications.rb', line 42

def additional_data=(value)
    @additional_data = value
end

#application_filterObject

Gets the applicationFilter property value. The applicationFilter property

Returns:

  • a conditional_access_filter



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

def application_filter
    return @application_filter
end

#application_filter=(value) ⇒ Object

Sets the applicationFilter property value. The applicationFilter property

Parameters:

  • value

    Value to set for the applicationFilter property.

Returns:

  • a void



57
58
59
# File 'lib/models/conditional_access_applications.rb', line 57

def application_filter=(value)
    @application_filter = value
end

#exclude_applicationsObject

Gets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Conditional Access target apps: Office 365

Returns:

  • a string



80
81
82
# File 'lib/models/conditional_access_applications.rb', line 80

def exclude_applications
    return @exclude_applications
end

#exclude_applications=(value) ⇒ Object

Sets the excludeApplications property value. Can be one of the following: The list of client IDs (appId) explicitly excluded from the policy. Office365 - For the list of apps included in Office365, see Conditional Access target apps: Office 365

Parameters:

  • value

    Value to set for the excludeApplications property.

Returns:

  • a void



88
89
90
# File 'lib/models/conditional_access_applications.rb', line 88

def exclude_applications=(value)
    @exclude_applications = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



95
96
97
98
99
100
101
102
103
104
# File 'lib/models/conditional_access_applications.rb', line 95

def get_field_deserializers()
    return {
        "applicationFilter" => lambda {|n| @application_filter = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessFilter.create_from_discriminator_value(pn) }) },
        "excludeApplications" => lambda {|n| @exclude_applications = n.get_collection_of_primitive_values(String) },
        "includeApplications" => lambda {|n| @include_applications = n.get_collection_of_primitive_values(String) },
        "includeAuthenticationContextClassReferences" => lambda {|n| @include_authentication_context_class_references = n.get_collection_of_primitive_values(String) },
        "includeUserActions" => lambda {|n| @include_user_actions = n.get_collection_of_primitive_values(String) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
    }
end

#include_applicationsObject

Gets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Conditional Access target apps: Office 365

Returns:

  • a string



109
110
111
# File 'lib/models/conditional_access_applications.rb', line 109

def include_applications
    return @include_applications
end

#include_applications=(value) ⇒ Object

Sets the includeApplications property value. Can be one of the following: The list of client IDs (appId) the policy applies to, unless explicitly excluded (in excludeApplications) All Office365 - For the list of apps included in Office365, see Conditional Access target apps: Office 365

Parameters:

  • value

    Value to set for the includeApplications property.

Returns:

  • a void



117
118
119
# File 'lib/models/conditional_access_applications.rb', line 117

def include_applications=(value)
    @include_applications = value
end

#include_authentication_context_class_referencesObject

Gets the includeAuthenticationContextClassReferences property value. The includeAuthenticationContextClassReferences property

Returns:

  • a string



124
125
126
# File 'lib/models/conditional_access_applications.rb', line 124

def include_authentication_context_class_references
    return @include_authentication_context_class_references
end

#include_authentication_context_class_references=(value) ⇒ Object

Sets the includeAuthenticationContextClassReferences property value. The includeAuthenticationContextClassReferences property

Parameters:

  • value

    Value to set for the includeAuthenticationContextClassReferences property.

Returns:

  • a void



132
133
134
# File 'lib/models/conditional_access_applications.rb', line 132

def include_authentication_context_class_references=(value)
    @include_authentication_context_class_references = value
end

#include_user_actionsObject

Gets the includeUserActions property value. User actions to include. Supported values are urn:user:registersecurityinfo and urn:user:registerdevice

Returns:

  • a string



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

def 
    return @include_user_actions
end

#include_user_actions=(value) ⇒ Object

Sets the includeUserActions property value. User actions to include. Supported values are urn:user:registersecurityinfo and urn:user:registerdevice

Parameters:

  • value

    Value to set for the includeUserActions property.

Returns:

  • a void



147
148
149
# File 'lib/models/conditional_access_applications.rb', line 147

def include_user_actions=(value)
    @include_user_actions = value
end

#odata_typeObject

Gets the @odata.type property value. The OdataType property

Returns:

  • a string



154
155
156
# File 'lib/models/conditional_access_applications.rb', line 154

def odata_type
    return @odata_type
end

#odata_type=(value) ⇒ Object

Sets the @odata.type property value. The OdataType property

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



162
163
164
# File 'lib/models/conditional_access_applications.rb', line 162

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


170
171
172
173
174
175
176
177
178
179
# File 'lib/models/conditional_access_applications.rb', line 170

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_object_value("applicationFilter", @application_filter)
    writer.write_collection_of_primitive_values("excludeApplications", @exclude_applications)
    writer.write_collection_of_primitive_values("includeApplications", @include_applications)
    writer.write_collection_of_primitive_values("includeAuthenticationContextClassReferences", @include_authentication_context_class_references)
    writer.write_collection_of_primitive_values("includeUserActions", @include_user_actions)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_additional_data(@additional_data)
end