Class: MicrosoftGraph::Models::ConditionalAccessConditionSet
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ConditionalAccessConditionSet
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/conditional_access_condition_set.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#applications ⇒ Object
Gets the applications property value.
-
#applications=(value) ⇒ Object
Sets the applications property value.
-
#client_app_types ⇒ Object
Gets the clientAppTypes property value.
-
#client_app_types=(value) ⇒ Object
Sets the clientAppTypes property value.
-
#client_applications ⇒ Object
Gets the clientApplications property value.
-
#client_applications=(value) ⇒ Object
Sets the clientApplications property value.
-
#devices ⇒ Object
Gets the devices property value.
-
#devices=(value) ⇒ Object
Sets the devices property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new conditionalAccessConditionSet and sets the default values.
-
#locations ⇒ Object
Gets the locations property value.
-
#locations=(value) ⇒ Object
Sets the locations property value.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#platforms ⇒ Object
Gets the platforms property value.
-
#platforms=(value) ⇒ Object
Sets the platforms property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#service_principal_risk_levels ⇒ Object
Gets the servicePrincipalRiskLevels property value.
-
#service_principal_risk_levels=(value) ⇒ Object
Sets the servicePrincipalRiskLevels property value.
-
#sign_in_risk_levels ⇒ Object
Gets the signInRiskLevels property value.
-
#sign_in_risk_levels=(value) ⇒ Object
Sets the signInRiskLevels property value.
-
#user_risk_levels ⇒ Object
Gets the userRiskLevels property value.
-
#user_risk_levels=(value) ⇒ Object
Sets the userRiskLevels property value.
-
#users ⇒ Object
Gets the users property value.
-
#users=(value) ⇒ Object
Sets the users property value.
Constructor Details
#initialize ⇒ Object
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
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_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
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.
57 58 59 |
# File 'lib/models/conditional_access_condition_set.rb', line 57 def additional_data=(value) @additional_data = value end |
#applications ⇒ Object
Gets the applications property value. Applications and user actions included in and excluded from the policy. Required.
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.
72 73 74 |
# File 'lib/models/conditional_access_condition_set.rb', line 72 def applications=(value) @applications = value end |
#client_app_types ⇒ Object
Gets the clientAppTypes property value. Client application types included in the policy. Possible values are: all, browser, mobileAppsAndDesktopClients, exchangeActiveSync, easSupported, other. Required.
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.
87 88 89 |
# File 'lib/models/conditional_access_condition_set.rb', line 87 def client_app_types=(value) @client_app_types = value end |
#client_applications ⇒ Object
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.
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.
102 103 104 |
# File 'lib/models/conditional_access_condition_set.rb', line 102 def client_applications=(value) @client_applications = value end |
#devices ⇒ Object
Gets the devices property value. Devices in the policy.
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.
133 134 135 |
# File 'lib/models/conditional_access_condition_set.rb', line 133 def devices=(value) @devices = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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 |
#locations ⇒ Object
Gets the locations property value. Locations included in and excluded from the policy.
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.
167 168 169 |
# File 'lib/models/conditional_access_condition_set.rb', line 167 def locations=(value) @locations = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
182 183 184 |
# File 'lib/models/conditional_access_condition_set.rb', line 182 def odata_type=(value) @odata_type = value end |
#platforms ⇒ Object
Gets the platforms property value. Platforms included in and excluded from the policy.
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.
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
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_levels ⇒ Object
Gets the servicePrincipalRiskLevels property value. Service principal risk levels included in the policy. Possible values are: low, medium, high, none, unknownFutureValue.
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.
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_levels ⇒ Object
Gets the signInRiskLevels property value. Sign-in risk levels included in the policy. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Required.
239 240 241 |
# File 'lib/models/conditional_access_condition_set.rb', line 239 def sign_in_risk_levels 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.
247 248 249 |
# File 'lib/models/conditional_access_condition_set.rb', line 247 def sign_in_risk_levels=(value) @sign_in_risk_levels = value end |
#user_risk_levels ⇒ Object
Gets the userRiskLevels property value. User risk levels included in the policy. Possible values are: low, medium, high, hidden, none, unknownFutureValue. Required.
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.
262 263 264 |
# File 'lib/models/conditional_access_condition_set.rb', line 262 def user_risk_levels=(value) @user_risk_levels = value end |
#users ⇒ Object
Gets the users property value. Users, groups, and roles included in and excluded from the policy. Either users or clientApplications is required.
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.
277 278 279 |
# File 'lib/models/conditional_access_condition_set.rb', line 277 def users=(value) @users = value end |