Class: EnvironmentSetupTaskModel
- Inherits:
-
Object
- Object
- EnvironmentSetupTaskModel
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/task_model_types.rb
Overview
EnvironmentSetupTaskModel: A structure holding the environment creation task details
Constant Summary collapse
- LOCATION =
1
- PROTOCOL =
2
- FIELDS =
{ LOCATION => {:type => ::Thrift::Types::STRING, :name => 'location'}, PROTOCOL => {:type => ::Thrift::Types::I32, :name => 'protocol', :enum_class => ::SecurityProtocol} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
137 |
# File 'lib/task_model_types.rb', line 137 def struct_fields; FIELDS; end |
#validate ⇒ Object
139 140 141 142 143 144 145 |
# File 'lib/task_model_types.rb', line 139 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field location is unset!') unless @location raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field protocol is unset!') unless @protocol unless @protocol.nil? || ::SecurityProtocol::VALID_VALUES.include?(@protocol) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field protocol!') end end |