Class: MicrosoftGraph::Models::SecurityUserAccount

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeObject

Instantiates a new securityUserAccount and sets the default values.



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

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 security_user_account

Raises:

  • (StandardError)


90
91
92
93
# File 'lib/models/security_user_account.rb', line 90

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

Instance Method Details

#account_nameObject

Gets the accountName property value. The displayed name of the user account.

Returns:

  • a string



37
38
39
# File 'lib/models/security_user_account.rb', line 37

def 
    return @account_name
end

#account_name=(value) ⇒ Object

Sets the accountName property value. The displayed name of the user account.

Parameters:

  • value

    Value to set for the accountName property.

Returns:

  • a void



45
46
47
# File 'lib/models/security_user_account.rb', line 45

def (value)
    @account_name = value
end

#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



52
53
54
# File 'lib/models/security_user_account.rb', line 52

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



60
61
62
# File 'lib/models/security_user_account.rb', line 60

def additional_data=(value)
    @additional_data = value
end

#azure_ad_user_idObject

Gets the azureAdUserId property value. The user object identifier in Azure Active Directory (Azure AD).

Returns:

  • a string



67
68
69
# File 'lib/models/security_user_account.rb', line 67

def azure_ad_user_id
    return @azure_ad_user_id
end

#azure_ad_user_id=(value) ⇒ Object

Sets the azureAdUserId property value. The user object identifier in Azure Active Directory (Azure AD).

Parameters:

  • value

    Value to set for the azureAdUserId property.

Returns:

  • a void



75
76
77
# File 'lib/models/security_user_account.rb', line 75

def azure_ad_user_id=(value)
    @azure_ad_user_id = value
end

#display_nameObject

Gets the displayName property value. The user display name in Azure AD.

Returns:

  • a string



98
99
100
# File 'lib/models/security_user_account.rb', line 98

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The user display name in Azure AD.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



106
107
108
# File 'lib/models/security_user_account.rb', line 106

def display_name=(value)
    @display_name = value
end

#domain_nameObject

Gets the domainName property value. The name of the Active Directory domain of which the user is a member.

Returns:

  • a string



113
114
115
# File 'lib/models/security_user_account.rb', line 113

def domain_name
    return @domain_name
end

#domain_name=(value) ⇒ Object

Sets the domainName property value. The name of the Active Directory domain of which the user is a member.

Parameters:

  • value

    Value to set for the domainName property.

Returns:

  • a void



121
122
123
# File 'lib/models/security_user_account.rb', line 121

def domain_name=(value)
    @domain_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



128
129
130
131
132
133
134
135
136
137
138
# File 'lib/models/security_user_account.rb', line 128

def get_field_deserializers()
    return {
        "accountName" => lambda {|n| @account_name = n.get_string_value() },
        "azureAdUserId" => lambda {|n| @azure_ad_user_id = n.get_string_value() },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "domainName" => lambda {|n| @domain_name = n.get_string_value() },
        "@odata.type" => lambda {|n| @odata_type = n.get_string_value() },
        "userPrincipalName" => lambda {|n| @user_principal_name = n.get_string_value() },
        "userSid" => lambda {|n| @user_sid = n.get_string_value() },
    }
end

#odata_typeObject

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

Returns:

  • a string



143
144
145
# File 'lib/models/security_user_account.rb', line 143

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



151
152
153
# File 'lib/models/security_user_account.rb', line 151

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)


159
160
161
162
163
164
165
166
167
168
169
# File 'lib/models/security_user_account.rb', line 159

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    writer.write_string_value("accountName", @account_name)
    writer.write_string_value("azureAdUserId", @azure_ad_user_id)
    writer.write_string_value("displayName", @display_name)
    writer.write_string_value("domainName", @domain_name)
    writer.write_string_value("@odata.type", @odata_type)
    writer.write_string_value("userPrincipalName", @user_principal_name)
    writer.write_string_value("userSid", @user_sid)
    writer.write_additional_data(@additional_data)
end

#user_principal_nameObject

Gets the userPrincipalName property value. The user principal name of the account in Azure AD.

Returns:

  • a string



174
175
176
# File 'lib/models/security_user_account.rb', line 174

def user_principal_name
    return @user_principal_name
end

#user_principal_name=(value) ⇒ Object

Sets the userPrincipalName property value. The user principal name of the account in Azure AD.

Parameters:

  • value

    Value to set for the userPrincipalName property.

Returns:

  • a void



182
183
184
# File 'lib/models/security_user_account.rb', line 182

def user_principal_name=(value)
    @user_principal_name = value
end

#user_sidObject

Gets the userSid property value. The local security identifier of the user account.

Returns:

  • a string



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

def user_sid
    return @user_sid
end

#user_sid=(value) ⇒ Object

Sets the userSid property value. The local security identifier of the user account.

Parameters:

  • value

    Value to set for the userSid property.

Returns:

  • a void



197
198
199
# File 'lib/models/security_user_account.rb', line 197

def user_sid=(value)
    @user_sid = value
end