Class: Altertable::Lakehouse::Models::ValidateRequest
- Defined in:
- lib/altertable/lakehouse/models.rb
Instance Attribute Summary collapse
-
#catalog ⇒ Object
readonly
Returns the value of attribute catalog.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
-
#session_id ⇒ Object
readonly
Returns the value of attribute session_id.
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
Instance Method Summary collapse
-
#initialize(statement:, catalog: nil, schema: nil, session_id: nil) ⇒ ValidateRequest
constructor
A new instance of ValidateRequest.
- #to_h ⇒ Object
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
#catalog ⇒ Object (readonly)
Returns the value of attribute catalog.
96 97 98 |
# File 'lib/altertable/lakehouse/models.rb', line 96 def catalog @catalog end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
96 97 98 |
# File 'lib/altertable/lakehouse/models.rb', line 96 def schema @schema end |
#session_id ⇒ Object (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 |
#statement ⇒ Object (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_h ⇒ Object
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 |