Class: Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResult

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb

Overview

Results from invoking a PowerShell command.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#background_colorString

color.

Returns:

  • (String)

    The HTML color string representing the background



24
25
26
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 24

def background_color
  @background_color
end

#captionString

Returns Text that precedes the prompt.

Returns:

  • (String)

    Text that precedes the prompt.



40
41
42
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 40

def caption
  @caption
end

#descriptionsArray<PromptFieldDescription>

PromptFieldDescription objects that contains the user input.

Returns:



47
48
49
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 47

def descriptions
  @descriptions
end

#exit_codeInteger

PowerShell.

Returns:

  • (Integer)

    The exit code from a executable that was called from



34
35
36
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 34

def exit_code
  @exit_code
end

#foreground_colorString

color.

Returns:

  • (String)

    The HTML color string representing the foreground



20
21
22
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 20

def foreground_color
  @foreground_color
end

#idInteger

Returns ID of the prompt message.

Returns:

  • (Integer)

    ID of the prompt message.



37
38
39
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 37

def id
  @id
end

#messageString

Returns Text of the prompt.

Returns:

  • (String)

    Text of the prompt.



43
44
45
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 43

def message
  @message
end

#message_typeInteger

Returns The type of message.

Returns:

  • (Integer)

    The type of message.



16
17
18
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 16

def message_type
  @message_type
end

#promptString

Returns The interactive prompt message.

Returns:

  • (String)

    The interactive prompt message.



30
31
32
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 30

def prompt
  @prompt
end

#valueString

Returns Actual result text from the PowerShell Command.

Returns:

  • (String)

    Actual result text from the PowerShell Command.



27
28
29
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 27

def value
  @value
end

Class Method Details

.mapperObject

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



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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# File 'lib/2016-07-01-preview/generated/azure_mgmt_server_management/models/power_shell_command_result.rb', line 54

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PowerShellCommandResult',
    type: {
      name: 'Composite',
      class_name: 'PowerShellCommandResult',
      model_properties: {
        message_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'messageType',
          type: {
            name: 'Number'
          }
        },
        foreground_color: {
          client_side_validation: true,
          required: false,
          serialized_name: 'foregroundColor',
          type: {
            name: 'String'
          }
        },
        background_color: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backgroundColor',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        prompt: {
          client_side_validation: true,
          required: false,
          serialized_name: 'prompt',
          type: {
            name: 'String'
          }
        },
        exit_code: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exitCode',
          type: {
            name: 'Number'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'Number'
          }
        },
        caption: {
          client_side_validation: true,
          required: false,
          serialized_name: 'caption',
          type: {
            name: 'String'
          }
        },
        message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'message',
          type: {
            name: 'String'
          }
        },
        descriptions: {
          client_side_validation: true,
          required: false,
          serialized_name: 'descriptions',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'PromptFieldDescriptionElementType',
                type: {
                  name: 'Composite',
                  class_name: 'PromptFieldDescription'
                }
            }
          }
        }
      }
    }
  }
end