Class: UnicoreJobSubmission

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

Overview

Unicore Job Submission

unicoreEndPointURL:

unicoreGateway End Point. The provider will query this service to fetch required service end points.

authenticationMode

The authenticationMode defines the way certificate is fetched.

Constant Summary collapse

JOBSUBMISSIONINTERFACEID =
1
SECURITYPROTOCOL =
2
UNICOREENDPOINTURL =
3
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},
  UNICOREENDPOINTURL => {:type => ::Thrift::Types::STRING, :name => 'unicoreEndPointURL'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


305
306
307
308
309
310
311
312
# File 'lib/compute_resource_model_types.rb', line 305

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 unicoreEndPointURL is unset!') unless @unicoreEndPointURL
  unless @securityProtocol.nil? || ::SecurityProtocol::VALID_VALUES.include?(@securityProtocol)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field securityProtocol!')
  end
end