Class: CloudJobSubmission

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

Overview

Cloud Job Submission

Constant Summary collapse

JOBSUBMISSIONINTERFACEID =
1
SECURITYPROTOCOL =
2
NODEID =
3
EXECUTABLETYPE =
4
PROVIDERNAME =
5
USERACCOUNTNAME =
6
FIELDS =
{
  JOBSUBMISSIONINTERFACEID => {:type => ::Thrift::Types::STRING, :name => 'jobSubmissionInterfaceId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  SECURITYPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'securityProtocol', :enum_class => ::SecurityProtocol},
  NODEID => {:type => ::Thrift::Types::STRING, :name => 'nodeId'},
  EXECUTABLETYPE => {:type => ::Thrift::Types::STRING, :name => 'executableType'},
  PROVIDERNAME => {:type => ::Thrift::Types::I32, :name => 'providerName', :enum_class => ::ProviderName},
  USERACCOUNTNAME => {:type => ::Thrift::Types::STRING, :name => 'userAccountName'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



338
# File 'lib/compute_resource_model_types.rb', line 338

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


340
341
342
343
344
345
346
347
348
349
350
351
352
353
# File 'lib/compute_resource_model_types.rb', line 340

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field jobSubmissionInterfaceId is unset!') unless @jobSubmissionInterfaceId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field securityProtocol is unset!') unless @securityProtocol
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field nodeId is unset!') unless @nodeId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field executableType is unset!') unless @executableType
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field providerName is unset!') unless @providerName
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userAccountName is unset!') unless @userAccountName
  unless @securityProtocol.nil? || ::SecurityProtocol::VALID_VALUES.include?(@securityProtocol)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field securityProtocol!')
  end
  unless @providerName.nil? || ::ProviderName::VALID_VALUES.include?(@providerName)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field providerName!')
  end
end