Class: Rafflesia::QueryContractData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::QueryContractData
- 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
-
#api_version ⇒ Object
Returns the value of attribute api_version.
-
#api_version_header ⇒ Object
Returns the value of attribute api_version_header.
-
#budget_profiles ⇒ Object
Returns the value of attribute budget_profiles.
-
#compatibility_promise ⇒ Object
Returns the value of attribute compatibility_promise.
-
#cross_database_evidence_default ⇒ Object
Returns the value of attribute cross_database_evidence_default.
-
#cross_database_safety_default ⇒ Object
Returns the value of attribute cross_database_safety_default.
-
#cursor_bindings ⇒ Object
Returns the value of attribute cursor_bindings.
-
#cursor_ttl_seconds ⇒ Object
Returns the value of attribute cursor_ttl_seconds.
-
#default_limit ⇒ Object
Returns the value of attribute default_limit.
-
#dialect ⇒ Object
Returns the value of attribute dialect.
-
#duckdb_max_temp_bytes ⇒ Object
Returns the value of attribute duckdb_max_temp_bytes.
-
#duckdb_memory_limit_bytes ⇒ Object
Returns the value of attribute duckdb_memory_limit_bytes.
-
#duckdb_temp_storage ⇒ Object
Returns the value of attribute duckdb_temp_storage.
-
#error_fields ⇒ Object
Returns the value of attribute error_fields.
-
#execution_capabilities ⇒ Object
Returns the value of attribute execution_capabilities.
-
#execution_engines ⇒ Object
Returns the value of attribute execution_engines.
-
#id ⇒ Object
Returns the value of attribute id.
-
#join_evidence_default ⇒ Object
Returns the value of attribute join_evidence_default.
-
#join_evidence_requirements ⇒ Object
Returns the value of attribute join_evidence_requirements.
-
#maximum_concurrent_executions ⇒ Object
Returns the value of attribute maximum_concurrent_executions.
-
#maximum_cursor_bytes ⇒ Object
Returns the value of attribute maximum_cursor_bytes.
-
#maximum_limit ⇒ Object
Returns the value of attribute maximum_limit.
-
#maximum_source_name_bytes ⇒ Object
Returns the value of attribute maximum_source_name_bytes.
-
#maximum_source_selector_bytes ⇒ Object
Returns the value of attribute maximum_source_selector_bytes.
-
#maximum_sources ⇒ Object
Returns the value of attribute maximum_sources.
-
#maximum_sql_bytes ⇒ Object
Returns the value of attribute maximum_sql_bytes.
-
#object ⇒ Object
Returns the value of attribute object.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_discovery ⇒ Object
Returns the value of attribute ontology_discovery.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#pagination ⇒ Object
Returns the value of attribute pagination.
-
#prohibited_features ⇒ Object
Returns the value of attribute prohibited_features.
-
#required_clauses ⇒ Object
Returns the value of attribute required_clauses.
-
#source_kinds ⇒ Object
Returns the value of attribute source_kinds.
-
#statement ⇒ Object
Returns the value of attribute statement.
-
#supported_clauses ⇒ Object
Returns the value of attribute supported_clauses.
-
#supported_functions ⇒ Object
Returns the value of attribute supported_functions.
-
#unknown_response_fields ⇒ Object
Returns the value of attribute unknown_response_fields.
-
#unverified_join_escape_field ⇒ Object
Returns the value of attribute unverified_join_escape_field.
Instance Method Summary collapse
-
#initialize(json) ⇒ QueryContractData
constructor
A new instance of QueryContractData.
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_version ⇒ Object
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_header ⇒ Object
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_profiles ⇒ Object
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_promise ⇒ Object
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_default ⇒ Object
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_default ⇒ Object
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_bindings ⇒ Object
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_seconds ⇒ Object
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_limit ⇒ Object
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 |
#dialect ⇒ Object
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_bytes ⇒ Object
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_bytes ⇒ Object
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_storage ⇒ Object
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_fields ⇒ Object
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_capabilities ⇒ Object
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_engines ⇒ Object
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 |
#id ⇒ Object
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_default ⇒ Object
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_requirements ⇒ Object
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_executions ⇒ Object
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_bytes ⇒ Object
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_limit ⇒ Object
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_bytes ⇒ Object
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_bytes ⇒ Object
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_sources ⇒ Object
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_bytes ⇒ Object
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 |
#object ⇒ Object
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_digest ⇒ Object
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_discovery ⇒ Object
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_version ⇒ Object
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 |
#pagination ⇒ Object
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_features ⇒ Object
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_clauses ⇒ Object
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_kinds ⇒ Object
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 |
#statement ⇒ Object
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_clauses ⇒ Object
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_functions ⇒ Object
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_fields ⇒ Object
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_field ⇒ Object
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 |