Class: ComputeResourcePolicy
- Inherits:
 - 
      Object
      
        
- Object
 - ComputeResourcePolicy
 
 
- Includes:
 - Thrift::Struct, Thrift::Struct_Union
 
- Defined in:
 - lib/group_resource_profile_model_types.rb
 
Constant Summary collapse
- RESOURCEPOLICYID =
 1- COMPUTERESOURCEID =
 2- GROUPRESOURCEPROFILEID =
 3- ALLOWEDBATCHQUEUES =
 4- 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"}, ALLOWEDBATCHQUEUES => {:type => ::Thrift::Types::LIST, :name => 'allowedBatchQueues', :element => {:type => ::Thrift::Types::STRING}, :optional => true} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
      136  | 
    
      # File 'lib/group_resource_profile_model_types.rb', line 136 def struct_fields; FIELDS; end  | 
  
#validate ⇒ Object
      138 139 140 141 142  | 
    
      # File 'lib/group_resource_profile_model_types.rb', line 138 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  |