Class: Project

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

Constant Summary collapse

PROJECTID =
1
OWNER =
2
GATEWAYID =
3
NAME =
4
DESCRIPTION =
5
CREATIONTIME =
6
SHAREDUSERS =
7
SHAREDGROUPS =
8
FIELDS =
{
  PROJECTID => {:type => ::Thrift::Types::STRING, :name => 'projectID', :default => %q"DO_NOT_SET_AT_CLIENTS"},
  OWNER => {:type => ::Thrift::Types::STRING, :name => 'owner'},
  GATEWAYID => {:type => ::Thrift::Types::STRING, :name => 'gatewayId'},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  DESCRIPTION => {:type => ::Thrift::Types::STRING, :name => 'description', :optional => true},
  CREATIONTIME => {:type => ::Thrift::Types::I64, :name => 'creationTime', :optional => true},
  SHAREDUSERS => {:type => ::Thrift::Types::LIST, :name => 'sharedUsers', :element => {:type => ::Thrift::Types::STRING}, :optional => true},
  SHAREDGROUPS => {:type => ::Thrift::Types::LIST, :name => 'sharedGroups', :element => {:type => ::Thrift::Types::STRING}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject

Raises:

  • (::Thrift::ProtocolException)


75
76
77
78
79
80
# File 'lib/workspace_model_types.rb', line 75

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