Class: MicrosoftGraph::Models::SecurityUserAccount
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::SecurityUserAccount
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/security_user_account.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
-
#account_name ⇒ Object
Gets the accountName property value.
-
#account_name=(value) ⇒ Object
Sets the accountName property value.
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#azure_ad_user_id ⇒ Object
Gets the azureAdUserId property value.
-
#azure_ad_user_id=(value) ⇒ Object
Sets the azureAdUserId property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#domain_name ⇒ Object
Gets the domainName property value.
-
#domain_name=(value) ⇒ Object
Sets the domainName property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new securityUserAccount 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.
-
#user_principal_name ⇒ Object
Gets the userPrincipalName property value.
-
#user_principal_name=(value) ⇒ Object
Sets the userPrincipalName property value.
-
#user_sid ⇒ Object
Gets the userSid property value.
-
#user_sid=(value) ⇒ Object
Sets the userSid property value.
Constructor Details
#initialize ⇒ Object
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
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_name ⇒ Object
Gets the accountName property value. The displayed name of the user account.
37 38 39 |
# File 'lib/models/security_user_account.rb', line 37 def account_name return @account_name end |
#account_name=(value) ⇒ Object
Sets the accountName property value. The displayed name of the user account.
45 46 47 |
# File 'lib/models/security_user_account.rb', line 45 def account_name=(value) @account_name = value end |
#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.
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.
60 61 62 |
# File 'lib/models/security_user_account.rb', line 60 def additional_data=(value) @additional_data = value end |
#azure_ad_user_id ⇒ Object
Gets the azureAdUserId property value. The user object identifier in Azure Active Directory (Azure AD).
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).
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_name ⇒ Object
Gets the displayName property value. The user display name in Azure AD.
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.
106 107 108 |
# File 'lib/models/security_user_account.rb', line 106 def display_name=(value) @display_name = value end |
#domain_name ⇒ Object
Gets the domainName property value. The name of the Active Directory domain of which the user is a member.
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.
121 122 123 |
# File 'lib/models/security_user_account.rb', line 121 def domain_name=(value) @domain_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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_type ⇒ Object
Gets the @odata.type property value. The OdataType property
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
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
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_name ⇒ Object
Gets the userPrincipalName property value. The user principal name of the account in Azure AD.
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.
182 183 184 |
# File 'lib/models/security_user_account.rb', line 182 def user_principal_name=(value) @user_principal_name = value end |
#user_sid ⇒ Object
Gets the userSid property value. The local security identifier of the user account.
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.
197 198 199 |
# File 'lib/models/security_user_account.rb', line 197 def user_sid=(value) @user_sid = value end |