Class: MicrosoftGraph::Models::ConditionalAccessUsers

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

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

Returns:

  • a conditional_access_users

Raises:

  • (StandardError)


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



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.

Parameters:

  • value

    Value to set for the additionalData property.

Returns:

  • a void



51
52
53
# File 'lib/models/conditional_access_users.rb', line 51

def additional_data=(value)
    @additional_data = value
end

#exclude_groupsObject

Gets the excludeGroups property value. Group IDs excluded from scope of policy.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the excludeGroups property.

Returns:

  • a void



82
83
84
# File 'lib/models/conditional_access_users.rb', line 82

def exclude_groups=(value)
    @exclude_groups = value
end

#exclude_guests_or_external_usersObject

Gets the excludeGuestsOrExternalUsers property value. Internal guests or external users excluded from the policy scope. Optionally populated.

Returns:

  • a conditional_access_guests_or_external_users



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.

Parameters:

  • value

    Value to set for the excludeGuestsOrExternalUsers property.

Returns:

  • a void



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_rolesObject

Gets the excludeRoles property value. Role IDs excluded from scope of policy.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the excludeRoles property.

Returns:

  • a void



112
113
114
# File 'lib/models/conditional_access_users.rb', line 112

def exclude_roles=(value)
    @exclude_roles = value
end

#exclude_usersObject

Gets the excludeUsers property value. User IDs excluded from scope of policy and/or GuestsOrExternalUsers.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the excludeUsers property.

Returns:

  • a void



127
128
129
# File 'lib/models/conditional_access_users.rb', line 127

def exclude_users=(value)
    @exclude_users = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_groupsObject

Gets the includeGroups property value. Group IDs in scope of policy unless explicitly excluded.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the includeGroups property.

Returns:

  • a void



159
160
161
# File 'lib/models/conditional_access_users.rb', line 159

def include_groups=(value)
    @include_groups = value
end

#include_guests_or_external_usersObject

Gets the includeGuestsOrExternalUsers property value. Internal guests or external users included in the policy scope. Optionally populated.

Returns:

  • a conditional_access_guests_or_external_users



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.

Parameters:

  • value

    Value to set for the includeGuestsOrExternalUsers property.

Returns:

  • a void



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_rolesObject

Gets the includeRoles property value. Role IDs in scope of policy unless explicitly excluded.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the includeRoles property.

Returns:

  • a void



189
190
191
# File 'lib/models/conditional_access_users.rb', line 189

def include_roles=(value)
    @include_roles = value
end

#include_usersObject

Gets the includeUsers property value. User IDs in scope of policy unless explicitly excluded, None, All, or GuestsOrExternalUsers.

Returns:

  • a string



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.

Parameters:

  • value

    Value to set for the includeUsers property.

Returns:

  • a void



204
205
206
# File 'lib/models/conditional_access_users.rb', line 204

def include_users=(value)
    @include_users = value
end

#odata_typeObject

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

Returns:

  • a string



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

Parameters:

  • value

    Value to set for the @odata.type property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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