Class: CommandObject

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/application_deployment_model_types.rb

Overview

Job commands to be used in Pre Job, Post Job and Module Load Commands

command:

The actual command in string format

commandOrder:

Order of the command in the multiple command situation

Constant Summary collapse

COMMAND =
1
COMMANDORDER =
2
FIELDS =
{
  COMMAND => {:type => ::Thrift::Types::STRING, :name => 'command'},
  COMMANDORDER => {:type => ::Thrift::Types::I32, :name => 'commandOrder', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



61
# File 'lib/application_deployment_model_types.rb', line 61

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


63
64
65
# File 'lib/application_deployment_model_types.rb', line 63

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field command is unset!') unless @command
end