Class: Rafflesia::QueryContractData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/query_contract/query_contract_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  api_version: :api_version,
  api_version_header: :api_version_header,
  budget_profiles: :budget_profiles,
  compatibility_promise: :compatibility_promise,
  cross_database_evidence_default: :cross_database_evidence_default,
  cross_database_safety_default: :cross_database_safety_default,
  cursor_bindings: :cursor_bindings,
  cursor_ttl_seconds: :cursor_ttl_seconds,
  default_limit: :default_limit,
  dialect: :dialect,
  duckdb_max_temp_bytes: :duckdb_max_temp_bytes,
  duckdb_memory_limit_bytes: :duckdb_memory_limit_bytes,
  duckdb_temp_storage: :duckdb_temp_storage,
  error_fields: :error_fields,
  execution_capabilities: :execution_capabilities,
  execution_engines: :execution_engines,
  id: :id,
  join_evidence_default: :join_evidence_default,
  join_evidence_requirements: :join_evidence_requirements,
  maximum_concurrent_executions: :maximum_concurrent_executions,
  maximum_cursor_bytes: :maximum_cursor_bytes,
  maximum_limit: :maximum_limit,
  maximum_source_name_bytes: :maximum_source_name_bytes,
  maximum_source_selector_bytes: :maximum_source_selector_bytes,
  maximum_sources: :maximum_sources,
  maximum_sql_bytes: :maximum_sql_bytes,
  object: :object,
  ontology_digest: :ontology_digest,
  ontology_discovery: :ontology_discovery,
  ontology_version: :ontology_version,
  pagination: :pagination,
  prohibited_features: :prohibited_features,
  required_clauses: :required_clauses,
  source_kinds: :source_kinds,
  statement: :statement,
  supported_clauses: :supported_clauses,
  supported_functions: :supported_functions,
  unknown_response_fields: :unknown_response_fields,
  unverified_join_escape_field: :unverified_join_escape_field
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ QueryContractData

Returns a new instance of QueryContractData.



91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 91

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @api_version = hash[:api_version]
  @api_version_header = hash[:api_version_header]
  @budget_profiles = (hash[:budget_profiles] || []).map { |item| item ? Rafflesia::QueryBudgetProfile.new(item) : nil }
  @compatibility_promise = hash[:compatibility_promise]
  @cross_database_evidence_default = hash[:cross_database_evidence_default]
  @cross_database_safety_default = hash[:cross_database_safety_default]
  @cursor_bindings = (hash[:cursor_bindings] || [])
  @cursor_ttl_seconds = hash[:cursor_ttl_seconds]
  @default_limit = hash[:default_limit]
  @dialect = hash[:dialect]
  @duckdb_max_temp_bytes = hash[:duckdb_max_temp_bytes]
  @duckdb_memory_limit_bytes = hash[:duckdb_memory_limit_bytes]
  @duckdb_temp_storage = hash[:duckdb_temp_storage]
  @error_fields = (hash[:error_fields] || [])
  @execution_capabilities = (hash[:execution_capabilities] || []).map { |item| item ? Rafflesia::QueryExecutionEngineCapability.new(item) : nil }
  @execution_engines = (hash[:execution_engines] || [])
  @id = hash[:id]
  @join_evidence_default = hash[:join_evidence_default]
  @join_evidence_requirements = (hash[:join_evidence_requirements] || [])
  @maximum_concurrent_executions = hash[:maximum_concurrent_executions]
  @maximum_cursor_bytes = hash[:maximum_cursor_bytes]
  @maximum_limit = hash[:maximum_limit]
  @maximum_source_name_bytes = hash[:maximum_source_name_bytes]
  @maximum_source_selector_bytes = hash[:maximum_source_selector_bytes]
  @maximum_sources = hash[:maximum_sources]
  @maximum_sql_bytes = hash[:maximum_sql_bytes]
  @object = hash[:object]
  @ontology_digest = hash[:ontology_digest]
  @ontology_discovery = (hash[:ontology_discovery] || [])
  @ontology_version = hash[:ontology_version]
  @pagination = hash[:pagination]
  @prohibited_features = (hash[:prohibited_features] || [])
  @required_clauses = (hash[:required_clauses] || [])
  @source_kinds = (hash[:source_kinds] || [])
  @statement = hash[:statement]
  @supported_clauses = (hash[:supported_clauses] || [])
  @supported_functions = (hash[:supported_functions] || [])
  @unknown_response_fields = hash[:unknown_response_fields]
  @unverified_join_escape_field = hash[:unverified_join_escape_field]
end

Instance Attribute Details

#api_versionObject

Returns the value of attribute api_version.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def api_version
  @api_version
end

#api_version_headerObject

Returns the value of attribute api_version_header.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def api_version_header
  @api_version_header
end

#budget_profilesObject

Returns the value of attribute budget_profiles.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def budget_profiles
  @budget_profiles
end

#compatibility_promiseObject

Returns the value of attribute compatibility_promise.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def compatibility_promise
  @compatibility_promise
end

#cross_database_evidence_defaultObject

Returns the value of attribute cross_database_evidence_default.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def cross_database_evidence_default
  @cross_database_evidence_default
end

#cross_database_safety_defaultObject

Returns the value of attribute cross_database_safety_default.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def cross_database_safety_default
  @cross_database_safety_default
end

#cursor_bindingsObject

Returns the value of attribute cursor_bindings.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def cursor_bindings
  @cursor_bindings
end

#cursor_ttl_secondsObject

Returns the value of attribute cursor_ttl_seconds.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def cursor_ttl_seconds
  @cursor_ttl_seconds
end

#default_limitObject

Returns the value of attribute default_limit.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def default_limit
  @default_limit
end

#dialectObject

Returns the value of attribute dialect.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def dialect
  @dialect
end

#duckdb_max_temp_bytesObject

Returns the value of attribute duckdb_max_temp_bytes.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def duckdb_max_temp_bytes
  @duckdb_max_temp_bytes
end

#duckdb_memory_limit_bytesObject

Returns the value of attribute duckdb_memory_limit_bytes.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def duckdb_memory_limit_bytes
  @duckdb_memory_limit_bytes
end

#duckdb_temp_storageObject

Returns the value of attribute duckdb_temp_storage.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def duckdb_temp_storage
  @duckdb_temp_storage
end

#error_fieldsObject

Returns the value of attribute error_fields.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def error_fields
  @error_fields
end

#execution_capabilitiesObject

Returns the value of attribute execution_capabilities.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def execution_capabilities
  @execution_capabilities
end

#execution_enginesObject

Returns the value of attribute execution_engines.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def execution_engines
  @execution_engines
end

#idObject

Returns the value of attribute id.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def id
  @id
end

#join_evidence_defaultObject

Returns the value of attribute join_evidence_default.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def join_evidence_default
  @join_evidence_default
end

#join_evidence_requirementsObject

Returns the value of attribute join_evidence_requirements.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def join_evidence_requirements
  @join_evidence_requirements
end

#maximum_concurrent_executionsObject

Returns the value of attribute maximum_concurrent_executions.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def maximum_concurrent_executions
  @maximum_concurrent_executions
end

#maximum_cursor_bytesObject

Returns the value of attribute maximum_cursor_bytes.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def maximum_cursor_bytes
  @maximum_cursor_bytes
end

#maximum_limitObject

Returns the value of attribute maximum_limit.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def maximum_limit
  @maximum_limit
end

#maximum_source_name_bytesObject

Returns the value of attribute maximum_source_name_bytes.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def maximum_source_name_bytes
  @maximum_source_name_bytes
end

#maximum_source_selector_bytesObject

Returns the value of attribute maximum_source_selector_bytes.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def maximum_source_selector_bytes
  @maximum_source_selector_bytes
end

#maximum_sourcesObject

Returns the value of attribute maximum_sources.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def maximum_sources
  @maximum_sources
end

#maximum_sql_bytesObject

Returns the value of attribute maximum_sql_bytes.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def maximum_sql_bytes
  @maximum_sql_bytes
end

#objectObject

Returns the value of attribute object.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def object
  @object
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def ontology_digest
  @ontology_digest
end

#ontology_discoveryObject

Returns the value of attribute ontology_discovery.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def ontology_discovery
  @ontology_discovery
end

#ontology_versionObject

Returns the value of attribute ontology_version.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def ontology_version
  @ontology_version
end

#paginationObject

Returns the value of attribute pagination.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def pagination
  @pagination
end

#prohibited_featuresObject

Returns the value of attribute prohibited_features.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def prohibited_features
  @prohibited_features
end

#required_clausesObject

Returns the value of attribute required_clauses.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def required_clauses
  @required_clauses
end

#source_kindsObject

Returns the value of attribute source_kinds.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def source_kinds
  @source_kinds
end

#statementObject

Returns the value of attribute statement.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def statement
  @statement
end

#supported_clausesObject

Returns the value of attribute supported_clauses.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def supported_clauses
  @supported_clauses
end

#supported_functionsObject

Returns the value of attribute supported_functions.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def supported_functions
  @supported_functions
end

#unknown_response_fieldsObject

Returns the value of attribute unknown_response_fields.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def unknown_response_fields
  @unknown_response_fields
end

#unverified_join_escape_fieldObject

Returns the value of attribute unverified_join_escape_field.



50
51
52
# File 'lib/rafflesia/query_contract/query_contract_data.rb', line 50

def unverified_join_escape_field
  @unverified_join_escape_field
end