Class: Azure::Compute::Mgmt::V2016_03_30::Models::OSProfile

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb

Overview

Describes an OS profile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#admin_passwordString

Returns Specifies the password of the administrator account.

Returns:

  • (String)

    Specifies the password of the administrator account.



22
23
24
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 22

def admin_password
  @admin_password
end

#admin_usernameString

Returns Specifies the name of the administrator account.

Returns:

  • (String)

    Specifies the name of the administrator account.



19
20
21
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 19

def admin_username
  @admin_username
end

#computer_nameString

Returns Specifies the host OS name of the virtual machine.

Returns:

  • (String)

    Specifies the host OS name of the virtual machine.



16
17
18
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 16

def computer_name
  @computer_name
end

#custom_dataString

base-64 encoded string is decoded to a binary array that is saved as a file on the Virtual Machine. The maximum length of the binary array is 65535 bytes

Returns:

  • (String)

    Specifies a base-64 encoded string of custom data. The



28
29
30
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 28

def custom_data
  @custom_data
end

#linux_configurationLinuxConfiguration

Returns The Linux configuration of the OS profile.

Returns:



35
36
37
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 35

def linux_configuration
  @linux_configuration
end

#secretsArray<VaultSecretGroup>

to the VM.

Returns:



39
40
41
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 39

def secrets
  @secrets
end

#windows_configurationWindowsConfiguration

profile.

Returns:



32
33
34
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 32

def windows_configuration
  @windows_configuration
end

Class Method Details

.mapperObject

Mapper for OSProfile 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# File 'lib/2016-03-30/generated/azure_mgmt_compute/models/osprofile.rb', line 46

def self.mapper()
  {
    required: false,
    serialized_name: 'OSProfile',
    type: {
      name: 'Composite',
      class_name: 'OSProfile',
      model_properties: {
        computer_name: {
          required: false,
          serialized_name: 'computerName',
          type: {
            name: 'String'
          }
        },
        admin_username: {
          required: false,
          serialized_name: 'adminUsername',
          type: {
            name: 'String'
          }
        },
        admin_password: {
          required: false,
          serialized_name: 'adminPassword',
          type: {
            name: 'String'
          }
        },
        custom_data: {
          required: false,
          serialized_name: 'customData',
          type: {
            name: 'String'
          }
        },
        windows_configuration: {
          required: false,
          serialized_name: 'windowsConfiguration',
          type: {
            name: 'Composite',
            class_name: 'WindowsConfiguration'
          }
        },
        linux_configuration: {
          required: false,
          serialized_name: 'linuxConfiguration',
          type: {
            name: 'Composite',
            class_name: 'LinuxConfiguration'
          }
        },
        secrets: {
          required: false,
          serialized_name: 'secrets',
          type: {
            name: 'Sequence',
            element: {
                required: false,
                serialized_name: 'VaultSecretGroupElementType',
                type: {
                  name: 'Composite',
                  class_name: 'VaultSecretGroup'
                }
            }
          }
        }
      }
    }
  }
end