Class: MicrosoftGraph::Models::ConditionalAccessPolicy
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/conditional_access_policy.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
-
#conditions ⇒ Object
Gets the conditions property value.
-
#conditions=(value) ⇒ Object
Sets the conditions property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#grant_controls ⇒ Object
Gets the grantControls property value.
-
#grant_controls=(value) ⇒ Object
Sets the grantControls property value.
-
#initialize ⇒ Object
constructor
Instantiates a new conditionalAccessPolicy and sets the default values.
-
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value.
-
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#session_controls ⇒ Object
Gets the sessionControls property value.
-
#session_controls=(value) ⇒ Object
Sets the sessionControls property value.
-
#state ⇒ Object
Gets the state property value.
-
#state=(value) ⇒ Object
Sets the state property value.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new conditionalAccessPolicy and sets the default values.
53 54 55 |
# File 'lib/models/conditional_access_policy.rb', line 53 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
76 77 78 79 |
# File 'lib/models/conditional_access_policy.rb', line 76 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ConditionalAccessPolicy.new end |
Instance Method Details
#conditions ⇒ Object
Gets the conditions property value. The conditions property
38 39 40 |
# File 'lib/models/conditional_access_policy.rb', line 38 def conditions return @conditions end |
#conditions=(value) ⇒ Object
Sets the conditions property value. The conditions property
46 47 48 |
# File 'lib/models/conditional_access_policy.rb', line 46 def conditions=(value) @conditions = value end |
#created_date_time ⇒ Object
Gets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
60 61 62 |
# File 'lib/models/conditional_access_policy.rb', line 60 def created_date_time return @created_date_time end |
#created_date_time=(value) ⇒ Object
Sets the createdDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
68 69 70 |
# File 'lib/models/conditional_access_policy.rb', line 68 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description property
84 85 86 |
# File 'lib/models/conditional_access_policy.rb', line 84 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description property
92 93 94 |
# File 'lib/models/conditional_access_policy.rb', line 92 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Specifies a display name for the conditionalAccessPolicy object.
99 100 101 |
# File 'lib/models/conditional_access_policy.rb', line 99 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Specifies a display name for the conditionalAccessPolicy object.
107 108 109 |
# File 'lib/models/conditional_access_policy.rb', line 107 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/models/conditional_access_policy.rb', line 114 def get_field_deserializers() return super.merge({ "conditions" => lambda {|n| @conditions = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessConditionSet.create_from_discriminator_value(pn) }) }, "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "grantControls" => lambda {|n| @grant_controls = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessGrantControls.create_from_discriminator_value(pn) }) }, "modifiedDateTime" => lambda {|n| @modified_date_time = n.get_date_time_value() }, "sessionControls" => lambda {|n| @session_controls = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessSessionControls.create_from_discriminator_value(pn) }) }, "state" => lambda {|n| @state = n.get_enum_value(MicrosoftGraph::Models::ConditionalAccessPolicyState) }, }) end |
#grant_controls ⇒ Object
Gets the grantControls property value. Specifies the grant controls that must be fulfilled to pass the policy.
130 131 132 |
# File 'lib/models/conditional_access_policy.rb', line 130 def grant_controls return @grant_controls end |
#grant_controls=(value) ⇒ Object
Sets the grantControls property value. Specifies the grant controls that must be fulfilled to pass the policy.
138 139 140 |
# File 'lib/models/conditional_access_policy.rb', line 138 def grant_controls=(value) @grant_controls = value end |
#modified_date_time ⇒ Object
Gets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
145 146 147 |
# File 'lib/models/conditional_access_policy.rb', line 145 def modified_date_time return @modified_date_time end |
#modified_date_time=(value) ⇒ Object
Sets the modifiedDateTime property value. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Readonly.
153 154 155 |
# File 'lib/models/conditional_access_policy.rb', line 153 def modified_date_time=(value) @modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
161 162 163 164 165 166 167 168 169 170 171 172 |
# File 'lib/models/conditional_access_policy.rb', line 161 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("conditions", @conditions) writer.write_date_time_value("createdDateTime", @created_date_time) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_object_value("grantControls", @grant_controls) writer.write_date_time_value("modifiedDateTime", @modified_date_time) writer.write_object_value("sessionControls", @session_controls) writer.write_enum_value("state", @state) end |
#session_controls ⇒ Object
Gets the sessionControls property value. Specifies the session controls that are enforced after sign-in.
177 178 179 |
# File 'lib/models/conditional_access_policy.rb', line 177 def session_controls return @session_controls end |
#session_controls=(value) ⇒ Object
Sets the sessionControls property value. Specifies the session controls that are enforced after sign-in.
185 186 187 |
# File 'lib/models/conditional_access_policy.rb', line 185 def session_controls=(value) @session_controls = value end |
#state ⇒ Object
Gets the state property value. The state property
192 193 194 |
# File 'lib/models/conditional_access_policy.rb', line 192 def state return @state end |
#state=(value) ⇒ Object
Sets the state property value. The state property
200 201 202 |
# File 'lib/models/conditional_access_policy.rb', line 200 def state=(value) @state = value end |