Class: Altertable::Lakehouse::Models::ValidateResponse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Request

#to_h

Constructor Details

#initialize(valid:, statement:, connections_errors: nil, error: nil) ⇒ ValidateResponse

Returns a new instance of ValidateResponse.

Parameters:

  • valid: (Boolean)
  • statement: (String)
  • connections_errors: (Object) (defaults to: nil)
  • error: (Object) (defaults to: nil)


117
118
119
120
121
122
# File 'lib/altertable/lakehouse/models.rb', line 117

def initialize(valid:, statement:, connections_errors: nil, error: nil)
  @valid = valid
  @statement = statement
  @connections_errors = connections_errors
  @error = error
end

Instance Attribute Details

#connections_errorsObject (readonly)

Returns the value of attribute connections_errors.

Returns:

  • (Object)


115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def connections_errors
  @connections_errors
end

#errorObject (readonly)

Returns the value of attribute error.

Returns:

  • (Object)


115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def error
  @error
end

#statementString (readonly)

Returns the value of attribute statement.

Returns:

  • (String)


115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def statement
  @statement
end

#validBoolean (readonly)

Returns the value of attribute valid.

Returns:

  • (Boolean)


115
116
117
# File 'lib/altertable/lakehouse/models.rb', line 115

def valid
  @valid
end

Class Method Details

.from_h(h) ⇒ ValidateResponse

Parameters:

  • h (::Hash[String, untyped])

Returns:



124
125
126
127
128
129
130
131
# File 'lib/altertable/lakehouse/models.rb', line 124

def self.from_h(h)
  new(
    valid: h["valid"],
    statement: h["statement"],
    connections_errors: h["connections_errors"],
    error: h["error"]
  )
end