Class: GroupComputeResourcePreference

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

Constant Summary collapse

COMPUTERESOURCEID =
1
GROUPRESOURCEPROFILEID =
2
OVERRIDEBYAIRAVATA =
3
LOGINUSERNAME =
4
PREFERREDJOBSUBMISSIONPROTOCOL =
5
PREFERREDDATAMOVEMENTPROTOCOL =
6
PREFERREDBATCHQUEUE =
7
SCRATCHLOCATION =
8
ALLOCATIONPROJECTNUMBER =
9
RESOURCESPECIFICCREDENTIALSTORETOKEN =
10
USAGEREPORTINGGATEWAYID =
11
QUALITYOFSERVICE =
12
SSHACCOUNTPROVISIONER =
16
GROUPSSHACCOUNTPROVISIONERCONFIGS =
17
SSHACCOUNTPROVISIONERADDITIONALINFO =
18
RESERVATIONS =
19
FIELDS =
{
  COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'},
  GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  OVERRIDEBYAIRAVATA => {:type => ::Thrift::Types::BOOL, :name => 'overridebyAiravata', :default => true},
  LOGINUSERNAME => {:type => ::Thrift::Types::STRING, :name => 'loginUserName', :optional => true},
  PREFERREDJOBSUBMISSIONPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'preferredJobSubmissionProtocol', :optional => true, :enum_class => ::JobSubmissionProtocol},
  PREFERREDDATAMOVEMENTPROTOCOL => {:type => ::Thrift::Types::I32, :name => 'preferredDataMovementProtocol', :optional => true, :enum_class => ::DataMovementProtocol},
  PREFERREDBATCHQUEUE => {:type => ::Thrift::Types::STRING, :name => 'preferredBatchQueue', :optional => true},
  SCRATCHLOCATION => {:type => ::Thrift::Types::STRING, :name => 'scratchLocation', :optional => true},
  ALLOCATIONPROJECTNUMBER => {:type => ::Thrift::Types::STRING, :name => 'allocationProjectNumber', :optional => true},
  RESOURCESPECIFICCREDENTIALSTORETOKEN => {:type => ::Thrift::Types::STRING, :name => 'resourceSpecificCredentialStoreToken', :optional => true},
  USAGEREPORTINGGATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'usageReportingGatewayId', :optional => true},
  QUALITYOFSERVICE => {:type => ::Thrift::Types::STRING, :name => 'qualityOfService', :optional => true},
  SSHACCOUNTPROVISIONER => {:type => ::Thrift::Types::STRING, :name => 'sshAccountProvisioner', :optional => true},
  GROUPSSHACCOUNTPROVISIONERCONFIGS => {:type => ::Thrift::Types::LIST, :name => 'groupSSHAccountProvisionerConfigs', :element => {:type => ::Thrift::Types::STRUCT, :class => ::GroupAccountSSHProvisionerConfig}, :optional => true},
  SSHACCOUNTPROVISIONERADDITIONALINFO => {:type => ::Thrift::Types::STRING, :name => 'sshAccountProvisionerAdditionalInfo', :optional => true},
  RESERVATIONS => {:type => ::Thrift::Types::LIST, :name => 'reservations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ComputeResourceReservation}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


107
108
109
110
111
112
113
114
115
116
117
# File 'lib/group_resource_profile_model_types.rb', line 107

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field computeResourceId is unset!') unless @computeResourceId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field groupResourceProfileId is unset!') unless @groupResourceProfileId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field overridebyAiravata is unset!') if @overridebyAiravata.nil?
  unless @preferredJobSubmissionProtocol.nil? || ::JobSubmissionProtocol::VALID_VALUES.include?(@preferredJobSubmissionProtocol)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field preferredJobSubmissionProtocol!')
  end
  unless @preferredDataMovementProtocol.nil? || ::DataMovementProtocol::VALID_VALUES.include?(@preferredDataMovementProtocol)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field preferredDataMovementProtocol!')
  end
end