class Azure::ServerManagement::Mgmt::V2016_07_01_preview::Models::PowerShellCommandResult

Results from invoking a PowerShell command.

Attributes

background_color[RW]

@return [String] The HTML color string representing the background color.

caption[RW]

@return [String] Text that precedes the prompt.

descriptions[RW]

@return [Array<PromptFieldDescription>] Collection of PromptFieldDescription objects that contains the user input.

exit_code[RW]

@return [Integer] The exit code from a executable that was called from PowerShell.

foreground_color[RW]

@return [String] The HTML color string representing the foreground color.

id[RW]

@return [Integer] ID of the prompt message.

message[RW]

@return [String] Text of the prompt.

message_type[RW]

@return [Integer] The type of message.

prompt[RW]

@return [String] The interactive prompt message.

value[RW]

@return [String] Actual result text from the PowerShell Command.

Private Class Methods

mapper() click to toggle source

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

# 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