Class: Azure::Batch::Mgmt::V2019_08_01::Models::UserAccount
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2019_08_01::Models::UserAccount
- Includes:
- MsRestAzure
- Defined in:
- lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb
Overview
Properties used to create a user on an Azure Batch node.
Instance Attribute Summary collapse
-
#elevation_level ⇒ ElevationLevel
nonAdmin - The auto user is a standard user without elevated access.
-
#linux_user_configuration ⇒ LinuxUserConfiguration
for the user account.
-
#name ⇒ String
The name of the user account.
-
#password ⇒ String
The password for the user account.
-
#windows_user_configuration ⇒ WindowsUserConfiguration
configuration for the user account.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for UserAccount class as Ruby Hash.
Instance Attribute Details
#elevation_level ⇒ ElevationLevel
nonAdmin - The auto user is a standard user without elevated access. admin - The auto user is a user with elevated access and operates with full Administrator permissions. The default value is nonAdmin. Possible values include: ‘NonAdmin’, ‘Admin’
27 28 29 |
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb', line 27 def elevation_level @elevation_level end |
#linux_user_configuration ⇒ LinuxUserConfiguration
for the user account. This property is ignored if specified on a Windows pool. If not specified, the user is created with the default options.
33 34 35 |
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb', line 33 def linux_user_configuration @linux_user_configuration end |
#name ⇒ String
Returns The name of the user account.
17 18 19 |
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb', line 17 def name @name end |
#password ⇒ String
Returns The password for the user account.
20 21 22 |
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb', line 20 def password @password end |
#windows_user_configuration ⇒ WindowsUserConfiguration
configuration for the user account. This property can only be specified if the user is on a Windows pool. If not specified and on a Windows pool, the user is created with the default options.
39 40 41 |
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb', line 39 def windows_user_configuration @windows_user_configuration end |
Class Method Details
.mapper ⇒ Object
Mapper for UserAccount class as Ruby Hash. This will be used for serialization/deserialization.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/2019-08-01/generated/azure_mgmt_batch/models/user_account.rb', line 46 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'UserAccount', type: { name: 'Composite', class_name: 'UserAccount', model_properties: { name: { client_side_validation: true, required: true, serialized_name: 'name', type: { name: 'String' } }, password: { client_side_validation: true, required: true, serialized_name: 'password', type: { name: 'String' } }, elevation_level: { client_side_validation: true, required: false, serialized_name: 'elevationLevel', type: { name: 'Enum', module: 'ElevationLevel' } }, linux_user_configuration: { client_side_validation: true, required: false, serialized_name: 'linuxUserConfiguration', type: { name: 'Composite', class_name: 'LinuxUserConfiguration' } }, windows_user_configuration: { client_side_validation: true, required: false, serialized_name: 'windowsUserConfiguration', type: { name: 'Composite', class_name: 'WindowsUserConfiguration' } } } } } end |