Class: GatewayUsageReportingCommand

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

Constant Summary collapse

GATEWAYID =
1
COMPUTERESOURCEID =
2
COMMAND =
3
FIELDS =
{
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
  COMPUTERESOURCEID => {:type => ::Thrift::Types::STRING, :name => 'computeResourceId'},
  COMMAND => {:type => ::Thrift::Types::STRING, :name => 'command'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



184
# File 'lib/workspace_model_types.rb', line 184

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


186
187
188
189
190
# File 'lib/workspace_model_types.rb', line 186

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field gatewayId is unset!') unless @gatewayId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field computeResourceId is unset!') unless @computeResourceId
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field command is unset!') unless @command
end