Class: Conductor::Http::Models::SchemaDef

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/conductor/http/models/schema_def.rb

Overview

SchemaDef model - JSON/Avro/Protobuf schema definition

Constant Summary collapse

SWAGGER_TYPES =
{
  owner_app: 'String',
  create_time: 'Integer',
  update_time: 'Integer',
  created_by: 'String',
  updated_by: 'String',
  name: 'String',
  version: 'Integer',
  type: 'String',
  data: 'Hash<String, Object>',
  external_ref: 'String'
}.freeze
ATTRIBUTE_MAP =
{
  owner_app: :ownerApp,
  create_time: :createTime,
  update_time: :updateTime,
  created_by: :createdBy,
  updated_by: :updatedBy,
  name: :name,
  version: :version,
  type: :type,
  data: :data,
  external_ref: :externalRef
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json

Constructor Details

#initialize(params = {}) ⇒ SchemaDef

Returns a new instance of SchemaDef.



44
45
46
47
48
49
50
51
52
53
54
55
# File 'lib/conductor/http/models/schema_def.rb', line 44

def initialize(params = {})
  @owner_app = params[:owner_app]
  @create_time = params[:create_time]
  @update_time = params[:update_time]
  @created_by = params[:created_by]
  @updated_by = params[:updated_by]
  @name = params[:name]
  @version = params[:version] || 1
  @type = params[:type]
  @data = params[:data]
  @external_ref = params[:external_ref]
end

Instance Attribute Details

#create_timeObject

Returns the value of attribute create_time.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def create_time
  @create_time
end

#created_byObject

Returns the value of attribute created_by.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def created_by
  @created_by
end

#dataObject

Returns the value of attribute data.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def data
  @data
end

#external_refObject

Returns the value of attribute external_ref.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def external_ref
  @external_ref
end

#nameObject

Returns the value of attribute name.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def name
  @name
end

#owner_appObject

Returns the value of attribute owner_app.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def owner_app
  @owner_app
end

#typeObject

Returns the value of attribute type.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def type
  @type
end

#update_timeObject

Returns the value of attribute update_time.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def update_time
  @update_time
end

#updated_byObject

Returns the value of attribute updated_by.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def updated_by
  @updated_by
end

#versionObject

Returns the value of attribute version.



41
42
43
# File 'lib/conductor/http/models/schema_def.rb', line 41

def version
  @version
end