Class: MicrosoftGraph::Models::ConditionalAccessGrantControls

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a conditional_access_grant_controls

Raises:

  • (StandardError)


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

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



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

def additional_data=(value)
    @additional_data = value
end

#authentication_strengthObject

Gets the authenticationStrength property value. The authenticationStrength property

Returns:

  • a authentication_strength_policy



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

Parameters:

  • value

    Value to set for the authenticationStrength property.

Returns:

  • a void



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

def authentication_strength=(value)
    @authentication_strength = value
end

#built_in_controlsObject

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.

Returns:

  • a conditional_access_grant_control



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.

Parameters:

  • value

    Value to set for the builtInControls property.

Returns:

  • a void



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_factorsObject

Gets the customAuthenticationFactors property value. List of custom controls IDs required by the policy. For more information, see Custom controls.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the customAuthenticationFactors property.

Returns:

  • a void



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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

def odata_type=(value)
    @odata_type = value
end

#operatorObject

Gets the operator property value. Defines the relationship of the grant controls. Possible values: AND, OR.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the operator property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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_useObject

Gets the termsOfUse property value. List of terms of use IDs required by the policy.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the termsOfUse property.

Returns:

  • a void



177
178
179
# File 'lib/models/conditional_access_grant_controls.rb', line 177

def terms_of_use=(value)
    @terms_of_use = value
end