Class: ComputeResourceReservation
- Inherits:
-
Object
- Object
- ComputeResourceReservation
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/group_resource_profile_model_types.rb
Constant Summary collapse
- RESERVATIONID =
1
- RESERVATIONNAME =
2
- QUEUENAMES =
3
- STARTTIME =
4
- ENDTIME =
5
- FIELDS =
{ RESERVATIONID => {:type => ::Thrift::Types::STRING, :name => 'reservationId', :default => %q"DO_NOT_SET_AT_CLIENTS"}, RESERVATIONNAME => {:type => ::Thrift::Types::STRING, :name => 'reservationName'}, QUEUENAMES => {:type => ::Thrift::Types::LIST, :name => 'queueNames', :element => {:type => ::Thrift::Types::STRING}}, STARTTIME => {:type => ::Thrift::Types::I64, :name => 'startTime'}, ENDTIME => {:type => ::Thrift::Types::I64, :name => 'endTime'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
54 |
# File 'lib/group_resource_profile_model_types.rb', line 54 def struct_fields; FIELDS; end |
#validate ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/group_resource_profile_model_types.rb', line 56 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field reservationId is unset!') unless @reservationId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field reservationName is unset!') unless @reservationName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field queueNames is unset!') unless @queueNames raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field startTime is unset!') unless @startTime raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field endTime is unset!') unless @endTime end |