Class: BatchQueueResourcePolicy
- Inherits:
-
Object
- Object
- BatchQueueResourcePolicy
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/group_resource_profile_model_types.rb
Constant Summary collapse
- RESOURCEPOLICYID =
1
- COMPUTERESOURCEID =
2
- GROUPRESOURCEPROFILEID =
3
- QUEUENAME =
4
- MAXALLOWEDNODES =
5
- MAXALLOWEDCORES =
6
- MAXALLOWEDWALLTIME =
7
- FIELDS =
{ RESOURCEPOLICYID => {:type => ::Thrift::Types::STRING, :name => 'resourcePolicyId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'}, GROUPRESOURCEPROFILEID => {:type => ::Thrift::Types::STRING, :name => 'groupResourceProfileId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, QUEUENAME => {:type => ::Thrift::Types::STRING, :name => 'queuename', :optional => true}, MAXALLOWEDNODES => {:type => ::Thrift::Types::I32, :name => 'maxAllowedNodes', :optional => true}, MAXALLOWEDCORES => {:type => ::Thrift::Types::I32, :name => 'maxAllowedCores', :optional => true}, MAXALLOWEDWALLTIME => {:type => ::Thrift::Types::I32, :name => 'maxAllowedWalltime', :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
167 |
# File 'lib/group_resource_profile_model_types.rb', line 167 def struct_fields; FIELDS; end |
#validate ⇒ Object
169 170 171 172 173 |
# File 'lib/group_resource_profile_model_types.rb', line 169 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field resourcePolicyId is unset!') unless @resourcePolicyId 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 end |