Class: Airavata::UpdateGatewayStoragePreference_args

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

Constant Summary collapse

AUTHZTOKEN =
1
GATEWAYID =
2
STORAGEID =
3
STORAGEPREFERENCE =
4
FIELDS =
{
  AUTHZTOKEN => {:type => ::Thrift::Types::STRUCT, :name => 'authzToken', :class => ::AuthzToken},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayID'},
  STORAGEID => {:type => ::Thrift::Types::STRING, :name => 'storageId'},
  STORAGEPREFERENCE => {:type => ::Thrift::Types::STRUCT, :name => 'storagePreference', :class => ::StoragePreference}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


12911
12912
12913
12914
12915
12916
# File 'lib/airavata.rb', line 12911

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