Class: Airavata::AddGatewayComputeResourcePreference_args

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

Constant Summary collapse

AUTHZTOKEN =
1
GATEWAYID =
2
COMPUTERESOURCEID =
3
COMPUTERESOURCEPREFERENCE =
4
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayID'},
  COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'},
  COMPUTERESOURCEPREFERENCE => {:type => ::Thrift::Types::STRUCT, :name => 'computeResourcePreference', :class => ::ComputeResourcePreference}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



12536
# File 'lib/airavata.rb', line 12536

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


12538
12539
12540
12541
12542
12543
# File 'lib/airavata.rb', line 12538

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