Class: Azure::ARM::Scheduler::Models::BasicAuthentication

Inherits:
HttpAuthentication show all
Includes:
MsRestAzure
Defined in:
lib/generated/azure_mgmt_scheduler/models/basic_authentication.rb

Overview

Model object.

Instance Attribute Summary collapse

Attributes inherited from HttpAuthentication

#type

Class Method Summary collapse

Instance Attribute Details

#passwordString

empty.

Returns:

  • (String)

    Gets or sets the password, return value will always be



21
22
23
# File 'lib/generated/azure_mgmt_scheduler/models/basic_authentication.rb', line 21

def password
  @password
end

#usernameString

Returns Gets or sets the username.

Returns:

  • (String)

    Gets or sets the username.



17
18
19
# File 'lib/generated/azure_mgmt_scheduler/models/basic_authentication.rb', line 17

def username
  @username
end

Class Method Details

.mapperObject

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



28
29
30
31
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/generated/azure_mgmt_scheduler/models/basic_authentication.rb', line 28

def self.mapper()
  {
    required: false,
    serialized_name: 'BasicAuthentication',
    type: {
      name: 'Composite',
      class_name: 'BasicAuthentication',
      model_properties: {
        type: {
          required: false,
          serialized_name: 'type',
          type: {
            name: 'Enum',
            module: 'HttpAuthenticationType'
          }
        },
        username: {
          required: false,
          serialized_name: 'username',
          type: {
            name: 'String'
          }
        },
        password: {
          required: false,
          serialized_name: 'password',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end