Class: GroupResourceProfile

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

Overview

Group Resource Profile

gatewayID:

Unique identifier for the gateway assigned by Airavata. Corelate this to Airavata Admin API Gateway Registration.

groupResourceProfileId:

computeResourcePreferences:

List of resource preferences for each of the registered compute resources.

computeResourcePolicies:

List of enforced policies for each of the registered compute resources.

batchQueueResourcePolicies:

List of enforced policies on registered batch queues

defaultCredentialStoreToken:

The default credential store token to use for compute resources that don't specify a resource specific credential store token.

Constant Summary collapse

GATEWAYID =
1
GROUPRESOURCEPROFILEID =
2
GROUPRESOURCEPROFILENAME =
3
COMPUTEPREFERENCES =
4
COMPUTERESOURCEPOLICIES =
5
BATCHQUEUERESOURCEPOLICIES =
6
CREATIONTIME =
7
UPDATEDTIME =
8
DEFAULTCREDENTIALSTORETOKEN =
9
FIELDS =
{
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
  GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  GROUPRESOURCEPROFILENAME => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileName', :optional => true},
  COMPUTEPREFERENCES => {:type => ::Thrift::Types::LIST, :name => 'computePreferences', :element => {:type => ::Thrift::Types::STRUCT, :class => ::GroupComputeResourcePreference}, :optional => true},
  COMPUTERESOURCEPOLICIES => {:type => ::Thrift::Types::LIST, :name => 'computeResourcePolicies', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ComputeResourcePolicy}, :optional => true},
  BATCHQUEUERESOURCEPOLICIES => {:type => ::Thrift::Types::LIST, :name => 'batchQueueResourcePolicies', :element => {:type => ::Thrift::Types::STRUCT, :class => ::BatchQueueResourcePolicy}, :optional => true},
  CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
  UPDATEDTIME => {:type => ::Thrift::Types::I64, :name => 'updatedTime', :optional => true},
  DEFAULTCREDENTIALSTORETOKEN => {:type => ::Thrift::Types::STRING, :name => 'defaultCredentialStoreToken', :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



221
# File 'lib/group_resource_profile_model_types.rb', line 221

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


223
224
225
226
# File 'lib/group_resource_profile_model_types.rb', line 223

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field groupResourceProfileId is unset!') unless @groupResourceProfileId
end