Class: MicrosoftGraph::Models::AuthenticationFlowsPolicy

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/authentication_flows_policy.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

Instantiates a new authenticationFlowsPolicy and sets the default values.



22
23
24
# File 'lib/models/authentication_flows_policy.rb', line 22

def initialize()
    super
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 authentication_flows_policy

Raises:

  • (StandardError)


30
31
32
33
# File 'lib/models/authentication_flows_policy.rb', line 30

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

Instance Method Details

#descriptionObject

Gets the description property value. Inherited property. A description of the policy. Optional. Read-only.

Returns:

  • a string



38
39
40
# File 'lib/models/authentication_flows_policy.rb', line 38

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. Inherited property. A description of the policy. Optional. Read-only.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



46
47
48
# File 'lib/models/authentication_flows_policy.rb', line 46

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. Inherited property. The human-readable name of the policy. Optional. Read-only.

Returns:

  • a string



53
54
55
# File 'lib/models/authentication_flows_policy.rb', line 53

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. Inherited property. The human-readable name of the policy. Optional. Read-only.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



61
62
63
# File 'lib/models/authentication_flows_policy.rb', line 61

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



68
69
70
71
72
73
74
# File 'lib/models/authentication_flows_policy.rb', line 68

def get_field_deserializers()
    return super.merge({
        "description" => lambda {|n| @description = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "selfServiceSignUp" => lambda {|n|  = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SelfServiceSignUpAuthenticationFlowConfiguration.create_from_discriminator_value(pn) }) },
    })
end

#self_service_sign_upObject

Gets the selfServiceSignUp property value. Contains selfServiceSignUpAuthenticationFlowConfiguration settings that convey whether self-service sign-up is enabled or disabled. Optional. Read-only.

Returns:

  • a self_service_sign_up_authentication_flow_configuration



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

def 
    return 
end

#self_service_sign_up=(value) ⇒ Object

Sets the selfServiceSignUp property value. Contains selfServiceSignUpAuthenticationFlowConfiguration settings that convey whether self-service sign-up is enabled or disabled. Optional. Read-only.

Parameters:

  • value

    Value to set for the selfServiceSignUp property.

Returns:

  • a void



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

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


95
96
97
98
99
100
101
# File 'lib/models/authentication_flows_policy.rb', line 95

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_string_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_object_value("selfServiceSignUp", )
end