Class: MicrosoftGraph::Models::ConditionalAccessConditionSet

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new conditionalAccessConditionSet and sets the default values.



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

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_condition_set

Raises:

  • (StandardError)


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

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return ConditionalAccessConditionSet.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



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

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



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

def additional_data=(value)
    @additional_data = value
end

#applicationsObject

Gets the applications property value. Applications and user actions included in and excluded from the policy. Required.

Returns:

  • a conditional_access_applications



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

def applications
    return @applications
end

#applications=(value) ⇒ Object

Sets the applications property value. Applications and user actions included in and excluded from the policy. Required.

Parameters:

  • value

    Value to set for the applications property.

Returns:

  • a void



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

def applications=(value)
    @applications = value
end

#client_app_typesObject

Gets the clientAppTypes property value. Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required.

Returns:

  • a conditional_access_client_app



79
80
81
# File 'lib/models/conditional_access_condition_set.rb', line 79

def client_app_types
    return @client_app_types
end

#client_app_types=(value) ⇒ Object

Sets the clientAppTypes property value. Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required.

Parameters:

  • value

    Value to set for the clientAppTypes property.

Returns:

  • a void



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

def client_app_types=(value)
    @client_app_types = value
end

#client_applicationsObject

Gets the clientApplications property value. Client applications (service principals and workload identities) included in and excluded from the policy. Either users or clientApplications is required.

Returns:

  • a conditional_access_client_applications



94
95
96
# File 'lib/models/conditional_access_condition_set.rb', line 94

def client_applications
    return @client_applications
end

#client_applications=(value) ⇒ Object

Sets the clientApplications property value. Client applications (service principals and workload identities) included in and excluded from the policy. Either users or clientApplications is required.

Parameters:

  • value

    Value to set for the clientApplications property.

Returns:

  • a void



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

def client_applications=(value)
    @client_applications = value
end

#devicesObject

Gets the devices property value. Devices in the policy.

Returns:

  • a conditional_access_devices



125
126
127
# File 'lib/models/conditional_access_condition_set.rb', line 125

def devices
    return @devices
end

#devices=(value) ⇒ Object

Sets the devices property value. Devices in the policy.

Parameters:

  • value

    Value to set for the devices property.

Returns:

  • a void



133
134
135
# File 'lib/models/conditional_access_condition_set.rb', line 133

def devices=(value)
    @devices = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
# File 'lib/models/conditional_access_condition_set.rb', line 140

def get_field_deserializers()
    return {
        "applications" => lambda {|n| @applications = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessApplications.create_from_discriminator_value(pn) }) },
        "clientAppTypes" => lambda {|n| @client_app_types = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessClientApp.create_from_discriminator_value(pn) }) },
        "clientApplications" => lambda {|n| @client_applications = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessClientApplications.create_from_discriminator_value(pn) }) },
        "devices" => lambda {|n| @devices = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessDevices.create_from_discriminator_value(pn) }) },
        "locations" => lambda {|n| @locations = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessLocations.create_from_discriminator_value(pn) }) },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "platforms" => lambda {|n| @platforms = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessPlatforms.create_from_discriminator_value(pn) }) },
        "servicePrincipalRiskLevels" => lambda {|n| @service_principal_risk_levels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RiskLevel.create_from_discriminator_value(pn) }) },
        "signInRiskLevels" => lambda {|n| @sign_in_risk_levels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RiskLevel.create_from_discriminator_value(pn) }) },
        "userRiskLevels" => lambda {|n| @user_risk_levels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RiskLevel.create_from_discriminator_value(pn) }) },
        "users" => lambda {|n| @users = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessUsers.create_from_discriminator_value(pn) }) },
    }
end

#locationsObject

Gets the locations property value. Locations included in and excluded from the policy.

Returns:

  • a conditional_access_locations



159
160
161
# File 'lib/models/conditional_access_condition_set.rb', line 159

def locations
    return @locations
end

#locations=(value) ⇒ Object

Sets the locations property value. Locations included in and excluded from the policy.

Parameters:

  • value

    Value to set for the locations property.

Returns:

  • a void



167
168
169
# File 'lib/models/conditional_access_condition_set.rb', line 167

def locations=(value)
    @locations = value
end

#odata_typeObject

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

Returns:

  • a string



174
175
176
# File 'lib/models/conditional_access_condition_set.rb', line 174

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



182
183
184
# File 'lib/models/conditional_access_condition_set.rb', line 182

def odata_type=(value)
    @odata_type = value
end

#platformsObject

Gets the platforms property value. Platforms included in and excluded from the policy.

Returns:

  • a conditional_access_platforms



189
190
191
# File 'lib/models/conditional_access_condition_set.rb', line 189

def platforms
    return @platforms
end

#platforms=(value) ⇒ Object

Sets the platforms property value. Platforms included in and excluded from the policy.

Parameters:

  • value

    Value to set for the platforms property.

Returns:

  • a void



197
198
199
# File 'lib/models/conditional_access_condition_set.rb', line 197

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


205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# File 'lib/models/conditional_access_condition_set.rb', line 205

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_object_value("applications", @applications)
    writer.write_collection_of_object_values("clientAppTypes", @client_app_types)
    writer.write_object_value("clientApplications", @client_applications)
    writer.write_object_value("devices", @devices)
    writer.write_object_value("locations", @locations)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_object_value("platforms", @platforms)
    writer.write_collection_of_object_values("servicePrincipalRiskLevels", @service_principal_risk_levels)
    writer.write_collection_of_object_values("signInRiskLevels", @sign_in_risk_levels)
    writer.write_collection_of_object_values("userRiskLevels", @user_risk_levels)
    writer.write_object_value("users", @users)
    writer.write_additional_data(@additional_data)
end

#service_principal_risk_levelsObject

Gets the servicePrincipalRiskLevels property value. Service principal risk levels included in the policy. Possible values are: low, medium, high, none, unknownFutureValue.

Returns:

  • a risk_level



224
225
226
# File 'lib/models/conditional_access_condition_set.rb', line 224

def service_principal_risk_levels
    return @service_principal_risk_levels
end

#service_principal_risk_levels=(value) ⇒ Object

Sets the servicePrincipalRiskLevels property value. Service principal risk levels included in the policy. Possible values are: low, medium, high, none, unknownFutureValue.

Parameters:

  • value

    Value to set for the servicePrincipalRiskLevels property.

Returns:

  • a void



232
233
234
# File 'lib/models/conditional_access_condition_set.rb', line 232

def service_principal_risk_levels=(value)
    @service_principal_risk_levels = value
end

#sign_in_risk_levelsObject

Gets the signInRiskLevels property value. Sign-in risk levels included in the policy. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Required.

Returns:

  • a risk_level



239
240
241
# File 'lib/models/conditional_access_condition_set.rb', line 239

def 
    return @sign_in_risk_levels
end

#sign_in_risk_levels=(value) ⇒ Object

Sets the signInRiskLevels property value. Sign-in risk levels included in the policy. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Required.

Parameters:

  • value

    Value to set for the signInRiskLevels property.

Returns:

  • a void



247
248
249
# File 'lib/models/conditional_access_condition_set.rb', line 247

def (value)
    @sign_in_risk_levels = value
end

#user_risk_levelsObject

Gets the userRiskLevels property value. User risk levels included in the policy. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Required.

Returns:

  • a risk_level



254
255
256
# File 'lib/models/conditional_access_condition_set.rb', line 254

def user_risk_levels
    return @user_risk_levels
end

#user_risk_levels=(value) ⇒ Object

Sets the userRiskLevels property value. User risk levels included in the policy. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Required.

Parameters:

  • value

    Value to set for the userRiskLevels property.

Returns:

  • a void



262
263
264
# File 'lib/models/conditional_access_condition_set.rb', line 262

def user_risk_levels=(value)
    @user_risk_levels = value
end

#usersObject

Gets the users property value. Users, groups, and roles included in and excluded from the policy. Either users or clientApplications is required.

Returns:

  • a conditional_access_users



269
270
271
# File 'lib/models/conditional_access_condition_set.rb', line 269

def users
    return @users
end

#users=(value) ⇒ Object

Sets the users property value. Users, groups, and roles included in and excluded from the policy. Either users or clientApplications is required.

Parameters:

  • value

    Value to set for the users property.

Returns:

  • a void



277
278
279
# File 'lib/models/conditional_access_condition_set.rb', line 277

def users=(value)
    @users = value
end