Class: Altertable::Lakehouse::Models::ValidateRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/altertable/lakehouse/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statement:, catalog: nil, schema: nil, session_id: nil) ⇒ ValidateRequest

Returns a new instance of ValidateRequest.



98
99
100
101
102
103
# File 'lib/altertable/lakehouse/models.rb', line 98

def initialize(statement:, catalog: nil, schema: nil, session_id: nil)
  @statement = statement
  @catalog = catalog
  @schema = schema
  @session_id = session_id
end

Instance Attribute Details

#catalogObject (readonly)

Returns the value of attribute catalog.



96
97
98
# File 'lib/altertable/lakehouse/models.rb', line 96

def catalog
  @catalog
end

#schemaObject (readonly)

Returns the value of attribute schema.



96
97
98
# File 'lib/altertable/lakehouse/models.rb', line 96

def schema
  @schema
end

#session_idObject (readonly)

Returns the value of attribute session_id.



96
97
98
# File 'lib/altertable/lakehouse/models.rb', line 96

def session_id
  @session_id
end

#statementObject (readonly)

Returns the value of attribute statement.



96
97
98
# File 'lib/altertable/lakehouse/models.rb', line 96

def statement
  @statement
end

Instance Method Details

#to_hObject



105
106
107
108
109
110
111
# File 'lib/altertable/lakehouse/models.rb', line 105

def to_h
  h = { statement: @statement }
  h[:catalog] = @catalog if @catalog
  h[:schema] = @schema if @schema
  h[:session_id] = @session_id if @session_id
  h
end