Class: MicrosoftGraph::Models::ConditionalAccessSessionControls
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ConditionalAccessSessionControls
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/conditional_access_session_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.
-
#application_enforced_restrictions ⇒ Object
Gets the applicationEnforcedRestrictions property value.
-
#application_enforced_restrictions=(value) ⇒ Object
Sets the applicationEnforcedRestrictions property value.
-
#cloud_app_security ⇒ Object
Gets the cloudAppSecurity property value.
-
#cloud_app_security=(value) ⇒ Object
Sets the cloudAppSecurity property value.
-
#disable_resilience_defaults ⇒ Object
Gets the disableResilienceDefaults property value.
-
#disable_resilience_defaults=(value) ⇒ Object
Sets the disableResilienceDefaults property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new conditionalAccessSessionControls and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#persistent_browser ⇒ Object
Gets the persistentBrowser property value.
-
#persistent_browser=(value) ⇒ Object
Sets the persistentBrowser property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#sign_in_frequency ⇒ Object
Gets the signInFrequency property value.
-
#sign_in_frequency=(value) ⇒ Object
Sets the signInFrequency property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new conditionalAccessSessionControls and sets the default values.
79 80 81 |
# File 'lib/models/conditional_access_session_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_session_controls.rb', line 87 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ConditionalAccessSessionControls.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_session_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_session_controls.rb', line 42 def additional_data=(value) @additional_data = value end |
#application_enforced_restrictions ⇒ Object
Gets the applicationEnforcedRestrictions property value. Session control to enforce application restrictions. Only Exchange Online and Sharepoint Online support this session control.
49 50 51 |
# File 'lib/models/conditional_access_session_controls.rb', line 49 def application_enforced_restrictions return @application_enforced_restrictions end |
#application_enforced_restrictions=(value) ⇒ Object
Sets the applicationEnforcedRestrictions property value. Session control to enforce application restrictions. Only Exchange Online and Sharepoint Online support this session control.
57 58 59 |
# File 'lib/models/conditional_access_session_controls.rb', line 57 def application_enforced_restrictions=(value) @application_enforced_restrictions = value end |
#cloud_app_security ⇒ Object
Gets the cloudAppSecurity property value. Session control to apply cloud app security.
64 65 66 |
# File 'lib/models/conditional_access_session_controls.rb', line 64 def cloud_app_security return @cloud_app_security end |
#cloud_app_security=(value) ⇒ Object
Sets the cloudAppSecurity property value. Session control to apply cloud app security.
72 73 74 |
# File 'lib/models/conditional_access_session_controls.rb', line 72 def cloud_app_security=(value) @cloud_app_security = value end |
#disable_resilience_defaults ⇒ Object
Gets the disableResilienceDefaults property value. Session control that determines whether it is acceptable for Azure AD to extend existing sessions based on information collected prior to an outage or not.
95 96 97 |
# File 'lib/models/conditional_access_session_controls.rb', line 95 def disable_resilience_defaults return @disable_resilience_defaults end |
#disable_resilience_defaults=(value) ⇒ Object
Sets the disableResilienceDefaults property value. Session control that determines whether it is acceptable for Azure AD to extend existing sessions based on information collected prior to an outage or not.
103 104 105 |
# File 'lib/models/conditional_access_session_controls.rb', line 103 def disable_resilience_defaults=(value) @disable_resilience_defaults = 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_session_controls.rb', line 110 def get_field_deserializers() return { "applicationEnforcedRestrictions" => lambda {|n| @application_enforced_restrictions = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ApplicationEnforcedRestrictionsSessionControl.create_from_discriminator_value(pn) }) }, "cloudAppSecurity" => lambda {|n| @cloud_app_security = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::CloudAppSecuritySessionControl.create_from_discriminator_value(pn) }) }, "disableResilienceDefaults" => lambda {|n| @disable_resilience_defaults = n.get_boolean_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "persistentBrowser" => lambda {|n| @persistent_browser = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::PersistentBrowserSessionControl.create_from_discriminator_value(pn) }) }, "signInFrequency" => lambda {|n| @sign_in_frequency = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::SignInFrequencySessionControl.create_from_discriminator_value(pn) }) }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
124 125 126 |
# File 'lib/models/conditional_access_session_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_session_controls.rb', line 132 def odata_type=(value) @odata_type = value end |
#persistent_browser ⇒ Object
Gets the persistentBrowser property value. Session control to define whether to persist cookies or not. All apps should be selected for this session control to work correctly.
139 140 141 |
# File 'lib/models/conditional_access_session_controls.rb', line 139 def persistent_browser return @persistent_browser end |
#persistent_browser=(value) ⇒ Object
Sets the persistentBrowser property value. Session control to define whether to persist cookies or not. All apps should be selected for this session control to work correctly.
147 148 149 |
# File 'lib/models/conditional_access_session_controls.rb', line 147 def persistent_browser=(value) @persistent_browser = 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_session_controls.rb', line 155 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_object_value("applicationEnforcedRestrictions", @application_enforced_restrictions) writer.write_object_value("cloudAppSecurity", @cloud_app_security) writer.write_boolean_value("disableResilienceDefaults", @disable_resilience_defaults) writer.write_string_value("@odata.type", @odata_type) writer.write_object_value("persistentBrowser", @persistent_browser) writer.write_object_value("signInFrequency", @sign_in_frequency) writer.write_additional_data(@additional_data) end |
#sign_in_frequency ⇒ Object
Gets the signInFrequency property value. Session control to enforce signin frequency.
169 170 171 |
# File 'lib/models/conditional_access_session_controls.rb', line 169 def sign_in_frequency return @sign_in_frequency end |
#sign_in_frequency=(value) ⇒ Object
Sets the signInFrequency property value. Session control to enforce signin frequency.
177 178 179 |
# File 'lib/models/conditional_access_session_controls.rb', line 177 def sign_in_frequency=(value) @sign_in_frequency = value end |