Class: MicrosoftGraph::Models::ConditionalAccessGrantControls
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ConditionalAccessGrantControls
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/conditional_access_grant_controls.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.
-
#authentication_strength ⇒ Object
Gets the authenticationStrength property value.
-
#authentication_strength=(value) ⇒ Object
Sets the authenticationStrength property value.
-
#built_in_controls ⇒ Object
Gets the builtInControls property value.
-
#built_in_controls=(value) ⇒ Object
Sets the builtInControls property value.
-
#custom_authentication_factors ⇒ Object
Gets the customAuthenticationFactors property value.
-
#custom_authentication_factors=(value) ⇒ Object
Sets the customAuthenticationFactors property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new conditionalAccessGrantControls and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#operator ⇒ Object
Gets the operator property value.
-
#operator=(value) ⇒ Object
Sets the operator property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#terms_of_use ⇒ Object
Gets the termsOfUse property value.
-
#terms_of_use=(value) ⇒ Object
Sets the termsOfUse property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new conditionalAccessGrantControls and sets the default values.
79 80 81 |
# File 'lib/models/conditional_access_grant_controls.rb', line 79 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
87 88 89 90 |
# File 'lib/models/conditional_access_grant_controls.rb', line 87 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ConditionalAccessGrantControls.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.
34 35 36 |
# File 'lib/models/conditional_access_grant_controls.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.
42 43 44 |
# File 'lib/models/conditional_access_grant_controls.rb', line 42 def additional_data=(value) @additional_data = value end |
#authentication_strength ⇒ Object
Gets the authenticationStrength property value. The authenticationStrength property
49 50 51 |
# File 'lib/models/conditional_access_grant_controls.rb', line 49 def authentication_strength return @authentication_strength end |
#authentication_strength=(value) ⇒ Object
Sets the authenticationStrength property value. The authenticationStrength property
57 58 59 |
# File 'lib/models/conditional_access_grant_controls.rb', line 57 def authentication_strength=(value) @authentication_strength = value end |
#built_in_controls ⇒ Object
Gets the builtInControls property value. List of values of built-in controls required by the policy. Possible values: block, mfa, compliantDevice, domainJoinedDevice, approvedApplication, compliantApplication, passwordChange, unknownFutureValue.
64 65 66 |
# File 'lib/models/conditional_access_grant_controls.rb', line 64 def built_in_controls return @built_in_controls end |
#built_in_controls=(value) ⇒ Object
Sets the builtInControls property value. List of values of built-in controls required by the policy. Possible values: block, mfa, compliantDevice, domainJoinedDevice, approvedApplication, compliantApplication, passwordChange, unknownFutureValue.
72 73 74 |
# File 'lib/models/conditional_access_grant_controls.rb', line 72 def built_in_controls=(value) @built_in_controls = value end |
#custom_authentication_factors ⇒ Object
Gets the customAuthenticationFactors property value. List of custom controls IDs required by the policy. For more information, see Custom controls.
95 96 97 |
# File 'lib/models/conditional_access_grant_controls.rb', line 95 def custom_authentication_factors return @custom_authentication_factors end |
#custom_authentication_factors=(value) ⇒ Object
Sets the customAuthenticationFactors property value. List of custom controls IDs required by the policy. For more information, see Custom controls.
103 104 105 |
# File 'lib/models/conditional_access_grant_controls.rb', line 103 def custom_authentication_factors=(value) @custom_authentication_factors = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/models/conditional_access_grant_controls.rb', line 110 def get_field_deserializers() return { "authenticationStrength" => lambda {|n| @authentication_strength = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::AuthenticationStrengthPolicy.create_from_discriminator_value(pn) }) }, "builtInControls" => lambda {|n| @built_in_controls = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessGrantControl.create_from_discriminator_value(pn) }) }, "customAuthenticationFactors" => lambda {|n| @custom_authentication_factors = n.get_collection_of_primitive_values(String) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "operator" => lambda {|n| @operator = n.get_string_value() }, "termsOfUse" => lambda {|n| @terms_of_use = n.get_collection_of_primitive_values(String) }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
124 125 126 |
# File 'lib/models/conditional_access_grant_controls.rb', line 124 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
132 133 134 |
# File 'lib/models/conditional_access_grant_controls.rb', line 132 def odata_type=(value) @odata_type = value end |
#operator ⇒ Object
Gets the operator property value. Defines the relationship of the grant controls. Possible values: AND, OR.
139 140 141 |
# File 'lib/models/conditional_access_grant_controls.rb', line 139 def operator return @operator end |
#operator=(value) ⇒ Object
Sets the operator property value. Defines the relationship of the grant controls. Possible values: AND, OR.
147 148 149 |
# File 'lib/models/conditional_access_grant_controls.rb', line 147 def operator=(value) @operator = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
155 156 157 158 159 160 161 162 163 164 |
# File 'lib/models/conditional_access_grant_controls.rb', line 155 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("authenticationStrength", @authentication_strength) writer.write_collection_of_object_values("builtInControls", @built_in_controls) writer.write_collection_of_primitive_values("customAuthenticationFactors", @custom_authentication_factors) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("operator", @operator) writer.write_collection_of_primitive_values("termsOfUse", @terms_of_use) writer.write_additional_data(@additional_data) end |
#terms_of_use ⇒ Object
Gets the termsOfUse property value. List of terms of use IDs required by the policy.
169 170 171 |
# File 'lib/models/conditional_access_grant_controls.rb', line 169 def terms_of_use return @terms_of_use end |
#terms_of_use=(value) ⇒ Object
Sets the termsOfUse property value. List of terms of use IDs required by the policy.
177 178 179 |
# File 'lib/models/conditional_access_grant_controls.rb', line 177 def terms_of_use=(value) @terms_of_use = value end |