Class: Airavata::SetupUserComputeResourcePreferencesForSSH_args

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

Constant Summary collapse

AUTHZTOKEN =
1
COMPUTERESOURCEID =
2
USERID =
3
AIRAVATACREDSTORETOKEN =
4
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'},
  USERID => {:type => ::Thrift::Types::STRING, :name => 'userId'},
  AIRAVATACREDSTORETOKEN => {:type => ::Thrift::Types::STRING, :name => 'airavataCredStoreToken'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


13190
13191
13192
13193
13194
13195
# File 'lib/airavata.rb', line 13190

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 computeResourceId is unset!') unless @computeResourceId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userId is unset!') unless @userId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field airavataCredStoreToken is unset!') unless @airavataCredStoreToken
end