Class: UserResourceProfile
- Inherits:
-
Object
- Object
- UserResourceProfile
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/user_resource_profile_model_types.rb
Overview
User Resource Profile
userId: Unique identifier used to link user to corresponding user data model
gatewayID:
Unique identifier for the gateway assigned by Airavata. Corelate this to Airavata Admin API Gateway Registration.
credentialStoreToken:
Gateway's defualt credential store token.
computeResourcePreferences:
List of resource preferences for each of the registered compute resources.
identityServerTenant:
identityServerPwdCredToken:
Constant Summary collapse
- USERID =
1
- GATEWAYID =
2
- CREDENTIALSTORETOKEN =
3
- USERCOMPUTERESOURCEPREFERENCES =
4
- USERSTORAGEPREFERENCES =
5
- IDENTITYSERVERTENANT =
6
- IDENTITYSERVERPWDCREDTOKEN =
7
- FIELDS =
{ USERID => {:type => ::Thrift::Types::STRING, :name => 'userId'}, GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayID'}, CREDENTIALSTORETOKEN => {:type => ::Thrift::Types::STRING, :name => 'credentialStoreToken', :optional => true}, USERCOMPUTERESOURCEPREFERENCES => {:type => ::Thrift::Types::LIST, :name => 'userComputeResourcePreferences', :element => {:type => ::Thrift::Types::STRUCT, :class => ::UserComputeResourcePreference}, :optional => true}, USERSTORAGEPREFERENCES => {:type => ::Thrift::Types::LIST, :name => 'userStoragePreferences', :element => {:type => ::Thrift::Types::STRUCT, :class => ::UserStoragePreference}, :optional => true}, IDENTITYSERVERTENANT => {:type => ::Thrift::Types::STRING, :name => 'identityServerTenant', :optional => true}, IDENTITYSERVERPWDCREDTOKEN => {:type => ::Thrift::Types::STRING, :name => 'identityServerPwdCredToken', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
141 |
# File 'lib/user_resource_profile_model_types.rb', line 141 def struct_fields; FIELDS; end |
#validate ⇒ Object
143 144 145 146 |
# File 'lib/user_resource_profile_model_types.rb', line 143 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field userId is unset!') unless @userId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayID is unset!') unless @gatewayID end |