Class: Azure::Batch::Mgmt::V2017_09_01::Models::UserIdentity

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb

Overview

Specify either the userName or autoUser property, but not both.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#auto_userAutoUserSpecification

run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.

Returns:



25
26
27
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb', line 25

def auto_user
  @auto_user
end

#user_nameString

run. The userName and autoUser properties are mutually exclusive; you must specify one but not both.

Returns:

  • (String)

    The name of the user identity under which the task is



20
21
22
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb', line 20

def user_name
  @user_name
end

Class Method Details

.mapperObject

Mapper for UserIdentity class as Ruby Hash. This will be used for serialization/deserialization.



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/user_identity.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'UserIdentity',
    type: {
      name: 'Composite',
      class_name: 'UserIdentity',
      model_properties: {
        user_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'userName',
          type: {
            name: 'String'
          }
        },
        auto_user: {
          client_side_validation: true,
          required: false,
          serialized_name: 'autoUser',
          type: {
            name: 'Composite',
            class_name: 'AutoUserSpecification'
          }
        }
      }
    }
  }
end