Class: MicrosoftGraph::Models::ConditionalAccessUsers
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::ConditionalAccessUsers
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/conditional_access_users.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.
-
#exclude_groups ⇒ Object
Gets the excludeGroups property value.
-
#exclude_groups=(value) ⇒ Object
Sets the excludeGroups property value.
-
#exclude_guests_or_external_users ⇒ Object
Gets the excludeGuestsOrExternalUsers property value.
-
#exclude_guests_or_external_users=(value) ⇒ Object
Sets the excludeGuestsOrExternalUsers property value.
-
#exclude_roles ⇒ Object
Gets the excludeRoles property value.
-
#exclude_roles=(value) ⇒ Object
Sets the excludeRoles property value.
-
#exclude_users ⇒ Object
Gets the excludeUsers property value.
-
#exclude_users=(value) ⇒ Object
Sets the excludeUsers property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#include_groups ⇒ Object
Gets the includeGroups property value.
-
#include_groups=(value) ⇒ Object
Sets the includeGroups property value.
-
#include_guests_or_external_users ⇒ Object
Gets the includeGuestsOrExternalUsers property value.
-
#include_guests_or_external_users=(value) ⇒ Object
Sets the includeGuestsOrExternalUsers property value.
-
#include_roles ⇒ Object
Gets the includeRoles property value.
-
#include_roles=(value) ⇒ Object
Sets the includeRoles property value.
-
#include_users ⇒ Object
Gets the includeUsers property value.
-
#include_users=(value) ⇒ Object
Sets the includeUsers property value.
-
#initialize ⇒ Object
constructor
Instantiates a new conditionalAccessUsers and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Constructor Details
#initialize ⇒ Object
Instantiates a new conditionalAccessUsers and sets the default values.
58 59 60 |
# File 'lib/models/conditional_access_users.rb', line 58 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
66 67 68 69 |
# File 'lib/models/conditional_access_users.rb', line 66 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return ConditionalAccessUsers.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.
43 44 45 |
# File 'lib/models/conditional_access_users.rb', line 43 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.
51 52 53 |
# File 'lib/models/conditional_access_users.rb', line 51 def additional_data=(value) @additional_data = value end |
#exclude_groups ⇒ Object
Gets the excludeGroups property value. Group IDs excluded from scope of policy.
74 75 76 |
# File 'lib/models/conditional_access_users.rb', line 74 def exclude_groups return @exclude_groups end |
#exclude_groups=(value) ⇒ Object
Sets the excludeGroups property value. Group IDs excluded from scope of policy.
82 83 84 |
# File 'lib/models/conditional_access_users.rb', line 82 def exclude_groups=(value) @exclude_groups = value end |
#exclude_guests_or_external_users ⇒ Object
Gets the excludeGuestsOrExternalUsers property value. Internal guests or external users excluded from the policy scope. Optionally populated.
89 90 91 |
# File 'lib/models/conditional_access_users.rb', line 89 def exclude_guests_or_external_users return @exclude_guests_or_external_users end |
#exclude_guests_or_external_users=(value) ⇒ Object
Sets the excludeGuestsOrExternalUsers property value. Internal guests or external users excluded from the policy scope. Optionally populated.
97 98 99 |
# File 'lib/models/conditional_access_users.rb', line 97 def exclude_guests_or_external_users=(value) @exclude_guests_or_external_users = value end |
#exclude_roles ⇒ Object
Gets the excludeRoles property value. Role IDs excluded from scope of policy.
104 105 106 |
# File 'lib/models/conditional_access_users.rb', line 104 def exclude_roles return @exclude_roles end |
#exclude_roles=(value) ⇒ Object
Sets the excludeRoles property value. Role IDs excluded from scope of policy.
112 113 114 |
# File 'lib/models/conditional_access_users.rb', line 112 def exclude_roles=(value) @exclude_roles = value end |
#exclude_users ⇒ Object
Gets the excludeUsers property value. User IDs excluded from scope of policy and/or GuestsOrExternalUsers.
119 120 121 |
# File 'lib/models/conditional_access_users.rb', line 119 def exclude_users return @exclude_users end |
#exclude_users=(value) ⇒ Object
Sets the excludeUsers property value. User IDs excluded from scope of policy and/or GuestsOrExternalUsers.
127 128 129 |
# File 'lib/models/conditional_access_users.rb', line 127 def exclude_users=(value) @exclude_users = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/models/conditional_access_users.rb', line 134 def get_field_deserializers() return { "excludeGroups" => lambda {|n| @exclude_groups = n.get_collection_of_primitive_values(String) }, "excludeGuestsOrExternalUsers" => lambda {|n| @exclude_guests_or_external_users = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessGuestsOrExternalUsers.create_from_discriminator_value(pn) }) }, "excludeRoles" => lambda {|n| @exclude_roles = n.get_collection_of_primitive_values(String) }, "excludeUsers" => lambda {|n| @exclude_users = n.get_collection_of_primitive_values(String) }, "includeGroups" => lambda {|n| @include_groups = n.get_collection_of_primitive_values(String) }, "includeGuestsOrExternalUsers" => lambda {|n| @include_guests_or_external_users = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::ConditionalAccessGuestsOrExternalUsers.create_from_discriminator_value(pn) }) }, "includeRoles" => lambda {|n| @include_roles = n.get_collection_of_primitive_values(String) }, "includeUsers" => lambda {|n| @include_users = n.get_collection_of_primitive_values(String) }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, } end |
#include_groups ⇒ Object
Gets the includeGroups property value. Group IDs in scope of policy unless explicitly excluded.
151 152 153 |
# File 'lib/models/conditional_access_users.rb', line 151 def include_groups return @include_groups end |
#include_groups=(value) ⇒ Object
Sets the includeGroups property value. Group IDs in scope of policy unless explicitly excluded.
159 160 161 |
# File 'lib/models/conditional_access_users.rb', line 159 def include_groups=(value) @include_groups = value end |
#include_guests_or_external_users ⇒ Object
Gets the includeGuestsOrExternalUsers property value. Internal guests or external users included in the policy scope. Optionally populated.
166 167 168 |
# File 'lib/models/conditional_access_users.rb', line 166 def include_guests_or_external_users return @include_guests_or_external_users end |
#include_guests_or_external_users=(value) ⇒ Object
Sets the includeGuestsOrExternalUsers property value. Internal guests or external users included in the policy scope. Optionally populated.
174 175 176 |
# File 'lib/models/conditional_access_users.rb', line 174 def include_guests_or_external_users=(value) @include_guests_or_external_users = value end |
#include_roles ⇒ Object
Gets the includeRoles property value. Role IDs in scope of policy unless explicitly excluded.
181 182 183 |
# File 'lib/models/conditional_access_users.rb', line 181 def include_roles return @include_roles end |
#include_roles=(value) ⇒ Object
Sets the includeRoles property value. Role IDs in scope of policy unless explicitly excluded.
189 190 191 |
# File 'lib/models/conditional_access_users.rb', line 189 def include_roles=(value) @include_roles = value end |
#include_users ⇒ Object
Gets the includeUsers property value. User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers.
196 197 198 |
# File 'lib/models/conditional_access_users.rb', line 196 def include_users return @include_users end |
#include_users=(value) ⇒ Object
Sets the includeUsers property value. User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers.
204 205 206 |
# File 'lib/models/conditional_access_users.rb', line 204 def include_users=(value) @include_users = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
211 212 213 |
# File 'lib/models/conditional_access_users.rb', line 211 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
219 220 221 |
# File 'lib/models/conditional_access_users.rb', line 219 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
227 228 229 230 231 232 233 234 235 236 237 238 239 |
# File 'lib/models/conditional_access_users.rb', line 227 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_collection_of_primitive_values("excludeGroups", @exclude_groups) writer.write_object_value("excludeGuestsOrExternalUsers", @exclude_guests_or_external_users) writer.write_collection_of_primitive_values("excludeRoles", @exclude_roles) writer.write_collection_of_primitive_values("excludeUsers", @exclude_users) writer.write_collection_of_primitive_values("includeGroups", @include_groups) writer.write_object_value("includeGuestsOrExternalUsers", @include_guests_or_external_users) writer.write_collection_of_primitive_values("includeRoles", @include_roles) writer.write_collection_of_primitive_values("includeUsers", @include_users) writer.write_string_value("@odata.type", @odata_type) writer.write_additional_data(@additional_data) end |