retab 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/retab/client.rb +8 -0
- data/lib/retab/files/create_file_blueprint_request.rb +31 -0
- data/lib/retab/files/file_blueprint.rb +52 -0
- data/lib/retab/files.rb +88 -0
- data/lib/retab/schemas/generate_schema_request.rb +3 -3
- data/lib/retab/schemas/{partial_schema.rb → schema_generation.rb} +12 -3
- data/lib/retab/schemas.rb +5 -5
- data/lib/retab/secrets/create_secret_request.rb +25 -0
- data/lib/retab/secrets/secret.rb +34 -0
- data/lib/retab/secrets/secret_list_response.rb +20 -0
- data/lib/retab/secrets/secret_response.rb +20 -0
- data/lib/retab/secrets/secret_value.rb +28 -0
- data/lib/retab/secrets/secret_value_response.rb +20 -0
- data/lib/retab/secrets/set_secret_request.rb +20 -0
- data/lib/retab/secrets.rb +154 -0
- data/lib/retab/tables/body_create_table_v_1_tables_post.rb +28 -0
- data/lib/retab/tables/body_replace_table_v_1_tables_table_id_put.rb +25 -0
- data/lib/retab/tables/query_workflow_table_request.rb +72 -0
- data/lib/retab/tables/update_workflow_table_request.rb +25 -0
- data/lib/retab/tables/workflow_table.rb +55 -0
- data/lib/retab/tables/workflow_table_aggregation_request.rb +28 -0
- data/lib/retab/tables/workflow_table_column.rb +34 -0
- data/lib/retab/tables/workflow_table_distinct_request.rb +20 -0
- data/lib/retab/tables/workflow_table_explain.rb +54 -0
- data/lib/retab/tables/workflow_table_filter_rule.rb +28 -0
- data/lib/retab/tables/workflow_table_list_response.rb +20 -0
- data/lib/retab/tables/workflow_table_profile_column.rb +49 -0
- data/lib/retab/tables/workflow_table_profile_response.rb +28 -0
- data/lib/retab/tables/workflow_table_response.rb +20 -0
- data/lib/retab/tables/workflow_table_row.rb +28 -0
- data/lib/retab/tables/workflow_table_rows_response.rb +52 -0
- data/lib/retab/tables/workflow_table_sample_request.rb +20 -0
- data/lib/retab/tables/workflow_table_schema_response.rb +25 -0
- data/lib/retab/tables/workflow_table_search_request.rb +25 -0
- data/lib/retab/tables/workflow_table_sort_rule.rb +25 -0
- data/lib/retab/tables/workflow_table_tail_request.rb +7 -0
- data/lib/retab/tables/workflow_table_validation_column_rule.rb +28 -0
- data/lib/retab/tables/workflow_table_validation_diagnostic.rb +31 -0
- data/lib/retab/tables/workflow_table_validation_request.rb +28 -0
- data/lib/retab/tables/workflow_table_validation_response.rb +30 -0
- data/lib/retab/tables.rb +356 -0
- data/lib/retab/types/create_file_blueprint_request_mode.rb +13 -0
- data/lib/retab/types/declarative_plan_resource_change_type.rb +0 -2
- data/lib/retab/types/file_blueprint_mode.rb +9 -0
- data/lib/retab/types/file_blueprint_status.rb +9 -0
- data/lib/retab/types/schema_generation_status.rb +9 -0
- data/lib/retab/types/validate_workflow_block_config_request_config_mode.rb +9 -0
- data/lib/retab/types/workflow_block_type.rb +0 -2
- data/lib/retab/types/workflow_table_aggregation_function.rb +17 -0
- data/lib/retab/types/workflow_table_filter_operator.rb +46 -0
- data/lib/retab/types/workflow_table_sort_direction.rb +9 -0
- data/lib/retab/types/workflow_table_validation_severity.rb +13 -0
- data/lib/retab/workflow_blocks/validate_workflow_block_config_request.rb +25 -0
- data/lib/retab/workflow_blocks/validate_workflow_block_config_response.rb +34 -0
- data/lib/retab/workflow_blocks/workflow_block.rb +6 -0
- data/lib/retab/workflow_blocks.rb +38 -0
- data/lib/retab.rb +2 -0
- data/rbi/retab/body_create_table_v_1_tables_post.rbi +36 -0
- data/rbi/retab/body_replace_table_v_1_tables_table_id_put.rbi +30 -0
- data/rbi/retab/client.rbi +6 -0
- data/rbi/retab/create_file_blueprint_request.rbi +42 -0
- data/rbi/retab/create_secret_request.rbi +30 -0
- data/rbi/retab/file_blueprint.rbi +84 -0
- data/rbi/retab/files.rbi +28 -0
- data/rbi/retab/generate_schema_request.rbi +2 -2
- data/rbi/retab/query_workflow_table_request.rbi +120 -0
- data/rbi/retab/{partial_schema.rbi → schema_generation.rbi} +19 -1
- data/rbi/retab/schemas.rbi +3 -3
- data/rbi/retab/secret.rbi +48 -0
- data/rbi/retab/secret_list_response.rbi +24 -0
- data/rbi/retab/secret_response.rbi +24 -0
- data/rbi/retab/secret_value.rbi +36 -0
- data/rbi/retab/secret_value_response.rbi +24 -0
- data/rbi/retab/secrets.rbi +62 -0
- data/rbi/retab/set_secret_request.rbi +24 -0
- data/rbi/retab/tables.rbi +127 -0
- data/rbi/retab/update_workflow_table_request.rbi +30 -0
- data/rbi/retab/validate_workflow_block_config_request.rbi +30 -0
- data/rbi/retab/validate_workflow_block_config_response.rbi +48 -0
- data/rbi/retab/workflow_block.rbi +12 -0
- data/rbi/retab/workflow_blocks.rbi +11 -0
- data/rbi/retab/workflow_table.rbi +90 -0
- data/rbi/retab/workflow_table_aggregation_request.rbi +36 -0
- data/rbi/retab/workflow_table_column.rbi +48 -0
- data/rbi/retab/workflow_table_distinct_request.rbi +24 -0
- data/rbi/retab/workflow_table_explain.rbi +84 -0
- data/rbi/retab/workflow_table_filter_rule.rbi +36 -0
- data/rbi/retab/workflow_table_list_response.rbi +24 -0
- data/rbi/retab/workflow_table_profile_column.rbi +78 -0
- data/rbi/retab/workflow_table_profile_response.rbi +36 -0
- data/rbi/retab/workflow_table_response.rbi +24 -0
- data/rbi/retab/workflow_table_row.rbi +36 -0
- data/rbi/retab/workflow_table_rows_response.rbi +84 -0
- data/rbi/retab/workflow_table_sample_request.rbi +24 -0
- data/rbi/retab/workflow_table_schema_response.rbi +30 -0
- data/rbi/retab/workflow_table_search_request.rbi +30 -0
- data/rbi/retab/workflow_table_sort_rule.rbi +30 -0
- data/rbi/retab/workflow_table_tail_request.rbi +24 -0
- data/rbi/retab/workflow_table_validation_column_rule.rbi +36 -0
- data/rbi/retab/workflow_table_validation_diagnostic.rbi +42 -0
- data/rbi/retab/workflow_table_validation_request.rbi +36 -0
- data/rbi/retab/workflow_table_validation_response.rbi +36 -0
- metadata +88 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class BodyReplaceTableV1TablesTableIdPut < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
file: :file,
|
|
10
|
+
column_schema_overrides: :column_schema_overrides
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor(
|
|
14
|
+
:file,
|
|
15
|
+
:column_schema_overrides
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
super()
|
|
20
|
+
hash = self.class.normalize(json)
|
|
21
|
+
@file = hash[:file]
|
|
22
|
+
@column_schema_overrides = hash[:column_schema_overrides]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class QueryWorkflowTableRequest < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
filters: :filters,
|
|
10
|
+
search: :search,
|
|
11
|
+
case_sensitive: :case_sensitive,
|
|
12
|
+
select: :select,
|
|
13
|
+
distinct: :distinct,
|
|
14
|
+
group_by: :group_by,
|
|
15
|
+
aggregations: :aggregations,
|
|
16
|
+
sort: :sort,
|
|
17
|
+
sample: :sample,
|
|
18
|
+
tail: :tail,
|
|
19
|
+
count_only: :count_only,
|
|
20
|
+
include_explain: :include_explain,
|
|
21
|
+
sort_column: :sort_column,
|
|
22
|
+
sort_direction: :sort_direction,
|
|
23
|
+
viewer_mode: :viewer_mode,
|
|
24
|
+
offset: :offset,
|
|
25
|
+
limit: :limit
|
|
26
|
+
}.freeze
|
|
27
|
+
|
|
28
|
+
attr_accessor(
|
|
29
|
+
:filters,
|
|
30
|
+
:search,
|
|
31
|
+
:case_sensitive,
|
|
32
|
+
:select,
|
|
33
|
+
:distinct,
|
|
34
|
+
:group_by,
|
|
35
|
+
:aggregations,
|
|
36
|
+
:sort,
|
|
37
|
+
:sample,
|
|
38
|
+
:tail,
|
|
39
|
+
:count_only,
|
|
40
|
+
:include_explain,
|
|
41
|
+
:sort_column,
|
|
42
|
+
:sort_direction,
|
|
43
|
+
:viewer_mode,
|
|
44
|
+
:offset,
|
|
45
|
+
:limit
|
|
46
|
+
)
|
|
47
|
+
|
|
48
|
+
def initialize(json)
|
|
49
|
+
super()
|
|
50
|
+
hash = self.class.normalize(json)
|
|
51
|
+
@filters = (hash[:filters] || []).map { |item| item ? Retab::WorkflowTableFilterRule.new(item) : nil }
|
|
52
|
+
@search = hash[:search] ? Retab::WorkflowTableSearchRequest.new(hash[:search]) : nil
|
|
53
|
+
@case_sensitive = hash[:case_sensitive].nil? ? false : hash[:case_sensitive]
|
|
54
|
+
@select = (hash[:select] || [])
|
|
55
|
+
@distinct = hash[:distinct] ? Retab::WorkflowTableDistinctRequest.new(hash[:distinct]) : nil
|
|
56
|
+
@group_by = (hash[:group_by] || [])
|
|
57
|
+
@aggregations = (hash[:aggregations] || []).map { |item|
|
|
58
|
+
item ? Retab::WorkflowTableAggregationRequest.new(item) : nil
|
|
59
|
+
}
|
|
60
|
+
@sort = (hash[:sort] || []).map { |item| item ? Retab::WorkflowTableSortRule.new(item) : nil }
|
|
61
|
+
@sample = hash[:sample] ? Retab::WorkflowTableSampleRequest.new(hash[:sample]) : nil
|
|
62
|
+
@tail = hash[:tail] ? Retab::WorkflowTableTailRequest.new(hash[:tail]) : nil
|
|
63
|
+
@count_only = hash[:count_only].nil? ? false : hash[:count_only]
|
|
64
|
+
@include_explain = hash[:include_explain].nil? ? false : hash[:include_explain]
|
|
65
|
+
@sort_column = hash[:sort_column]
|
|
66
|
+
@sort_direction = hash[:sort_direction]
|
|
67
|
+
@viewer_mode = hash[:viewer_mode]
|
|
68
|
+
@offset = hash[:offset]
|
|
69
|
+
@limit = hash[:limit]
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class UpdateWorkflowTableRequest < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
name: :name,
|
|
10
|
+
metadata: :metadata
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor(
|
|
14
|
+
:name,
|
|
15
|
+
:metadata
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
super()
|
|
20
|
+
hash = self.class.normalize(json)
|
|
21
|
+
@name = hash[:name]
|
|
22
|
+
@metadata = hash[:metadata] || {}
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTable < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
id: :id,
|
|
10
|
+
name: :name,
|
|
11
|
+
filename: :filename,
|
|
12
|
+
source_file_id: :source_file_id,
|
|
13
|
+
snapshot_file_id: :snapshot_file_id,
|
|
14
|
+
row_count: :row_count,
|
|
15
|
+
columns: :columns,
|
|
16
|
+
sample_rows: :sample_rows,
|
|
17
|
+
metadata: :metadata,
|
|
18
|
+
uploaded_by_user_id: :uploaded_by_user_id,
|
|
19
|
+
created_at: :created_at,
|
|
20
|
+
updated_at: :updated_at
|
|
21
|
+
}.freeze
|
|
22
|
+
|
|
23
|
+
attr_accessor(
|
|
24
|
+
:id,
|
|
25
|
+
:name,
|
|
26
|
+
:filename,
|
|
27
|
+
:source_file_id,
|
|
28
|
+
:snapshot_file_id,
|
|
29
|
+
:row_count,
|
|
30
|
+
:columns,
|
|
31
|
+
:sample_rows,
|
|
32
|
+
:metadata,
|
|
33
|
+
:uploaded_by_user_id,
|
|
34
|
+
:created_at,
|
|
35
|
+
:updated_at
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
def initialize(json)
|
|
39
|
+
super()
|
|
40
|
+
hash = self.class.normalize(json)
|
|
41
|
+
@id = hash[:id]
|
|
42
|
+
@name = hash[:name]
|
|
43
|
+
@filename = hash[:filename]
|
|
44
|
+
@source_file_id = hash[:source_file_id].nil? ? "" : hash[:source_file_id]
|
|
45
|
+
@snapshot_file_id = hash[:snapshot_file_id].nil? ? "" : hash[:snapshot_file_id]
|
|
46
|
+
@row_count = hash[:row_count]
|
|
47
|
+
@columns = (hash[:columns] || []).map { |item| item ? Retab::WorkflowTableColumn.new(item) : nil }
|
|
48
|
+
@sample_rows = (hash[:sample_rows] || []).map { |item| item || {} }
|
|
49
|
+
@metadata = hash[:metadata] || {}
|
|
50
|
+
@uploaded_by_user_id = hash[:uploaded_by_user_id]
|
|
51
|
+
@created_at = hash[:created_at]
|
|
52
|
+
@updated_at = hash[:updated_at]
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableAggregationRequest < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
function: :function,
|
|
10
|
+
column: :column,
|
|
11
|
+
alias: :alias
|
|
12
|
+
}.freeze
|
|
13
|
+
|
|
14
|
+
attr_accessor(
|
|
15
|
+
:function,
|
|
16
|
+
:column,
|
|
17
|
+
:alias
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
def initialize(json)
|
|
21
|
+
super()
|
|
22
|
+
hash = self.class.normalize(json)
|
|
23
|
+
@function = hash[:function]
|
|
24
|
+
@column = hash[:column]
|
|
25
|
+
@alias = hash[:alias]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableColumn < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
name: :name,
|
|
10
|
+
json_schema: :json_schema,
|
|
11
|
+
sample_values: :sample_values,
|
|
12
|
+
required: :required,
|
|
13
|
+
unique: :unique
|
|
14
|
+
}.freeze
|
|
15
|
+
|
|
16
|
+
attr_accessor(
|
|
17
|
+
:name,
|
|
18
|
+
:json_schema,
|
|
19
|
+
:sample_values,
|
|
20
|
+
:required,
|
|
21
|
+
:unique
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
def initialize(json)
|
|
25
|
+
super()
|
|
26
|
+
hash = self.class.normalize(json)
|
|
27
|
+
@name = hash[:name]
|
|
28
|
+
@json_schema = hash[:json_schema] || {}
|
|
29
|
+
@sample_values = (hash[:sample_values] || [])
|
|
30
|
+
@required = hash[:required].nil? ? false : hash[:required]
|
|
31
|
+
@unique = hash[:unique].nil? ? false : hash[:unique]
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableDistinctRequest < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
column: :column
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor :column
|
|
13
|
+
|
|
14
|
+
def initialize(json)
|
|
15
|
+
super()
|
|
16
|
+
hash = self.class.normalize(json)
|
|
17
|
+
@column = hash[:column]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableExplain < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
table_id: :table_id,
|
|
10
|
+
snapshot_file_id: :snapshot_file_id,
|
|
11
|
+
selected_columns: :selected_columns,
|
|
12
|
+
filters: :filters,
|
|
13
|
+
search: :search,
|
|
14
|
+
sort: :sort,
|
|
15
|
+
offset: :offset,
|
|
16
|
+
limit: :limit,
|
|
17
|
+
distinct: :distinct,
|
|
18
|
+
group_by: :group_by,
|
|
19
|
+
aggregations: :aggregations
|
|
20
|
+
}.freeze
|
|
21
|
+
|
|
22
|
+
attr_accessor(
|
|
23
|
+
:table_id,
|
|
24
|
+
:snapshot_file_id,
|
|
25
|
+
:selected_columns,
|
|
26
|
+
:filters,
|
|
27
|
+
:search,
|
|
28
|
+
:sort,
|
|
29
|
+
:offset,
|
|
30
|
+
:limit,
|
|
31
|
+
:distinct,
|
|
32
|
+
:group_by,
|
|
33
|
+
:aggregations
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
def initialize(json)
|
|
37
|
+
super()
|
|
38
|
+
hash = self.class.normalize(json)
|
|
39
|
+
@table_id = hash[:table_id]
|
|
40
|
+
@snapshot_file_id = hash[:snapshot_file_id].nil? ? "" : hash[:snapshot_file_id]
|
|
41
|
+
@selected_columns = (hash[:selected_columns] || [])
|
|
42
|
+
@filters = (hash[:filters] || []).map { |item| item ? Retab::WorkflowTableFilterRule.new(item) : nil }
|
|
43
|
+
@search = hash[:search] ? Retab::WorkflowTableSearchRequest.new(hash[:search]) : nil
|
|
44
|
+
@sort = (hash[:sort] || []).map { |item| item ? Retab::WorkflowTableSortRule.new(item) : nil }
|
|
45
|
+
@offset = hash[:offset]
|
|
46
|
+
@limit = hash[:limit]
|
|
47
|
+
@distinct = hash[:distinct] ? Retab::WorkflowTableDistinctRequest.new(hash[:distinct]) : nil
|
|
48
|
+
@group_by = (hash[:group_by] || [])
|
|
49
|
+
@aggregations = (hash[:aggregations] || []).map { |item|
|
|
50
|
+
item ? Retab::WorkflowTableAggregationRequest.new(item) : nil
|
|
51
|
+
}
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableFilterRule < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
column: :column,
|
|
10
|
+
operator: :operator,
|
|
11
|
+
value: :value
|
|
12
|
+
}.freeze
|
|
13
|
+
|
|
14
|
+
attr_accessor(
|
|
15
|
+
:column,
|
|
16
|
+
:operator,
|
|
17
|
+
:value
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
def initialize(json)
|
|
21
|
+
super()
|
|
22
|
+
hash = self.class.normalize(json)
|
|
23
|
+
@column = hash[:column]
|
|
24
|
+
@operator = hash[:operator]
|
|
25
|
+
@value = hash[:value]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableListResponse < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
tables: :tables
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor :tables
|
|
13
|
+
|
|
14
|
+
def initialize(json)
|
|
15
|
+
super()
|
|
16
|
+
hash = self.class.normalize(json)
|
|
17
|
+
@tables = (hash[:tables] || []).map { |item| item ? Retab::WorkflowTable.new(item) : nil }
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableProfileColumn < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
name: :name,
|
|
10
|
+
json_schema: :json_schema,
|
|
11
|
+
row_count: :row_count,
|
|
12
|
+
null_count: :null_count,
|
|
13
|
+
empty_count: :empty_count,
|
|
14
|
+
distinct_count: :distinct_count,
|
|
15
|
+
min: :min,
|
|
16
|
+
max: :max,
|
|
17
|
+
sample_values: :sample_values,
|
|
18
|
+
is_estimated: :is_estimated
|
|
19
|
+
}.freeze
|
|
20
|
+
|
|
21
|
+
attr_accessor(
|
|
22
|
+
:name,
|
|
23
|
+
:json_schema,
|
|
24
|
+
:row_count,
|
|
25
|
+
:null_count,
|
|
26
|
+
:empty_count,
|
|
27
|
+
:distinct_count,
|
|
28
|
+
:min,
|
|
29
|
+
:max,
|
|
30
|
+
:sample_values,
|
|
31
|
+
:is_estimated
|
|
32
|
+
)
|
|
33
|
+
|
|
34
|
+
def initialize(json)
|
|
35
|
+
super()
|
|
36
|
+
hash = self.class.normalize(json)
|
|
37
|
+
@name = hash[:name]
|
|
38
|
+
@json_schema = hash[:json_schema] || {}
|
|
39
|
+
@row_count = hash[:row_count]
|
|
40
|
+
@null_count = hash[:null_count]
|
|
41
|
+
@empty_count = hash[:empty_count]
|
|
42
|
+
@distinct_count = hash[:distinct_count]
|
|
43
|
+
@min = hash[:min]
|
|
44
|
+
@max = hash[:max]
|
|
45
|
+
@sample_values = (hash[:sample_values] || [])
|
|
46
|
+
@is_estimated = hash[:is_estimated].nil? ? false : hash[:is_estimated]
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableProfileResponse < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
table_id: :table_id,
|
|
10
|
+
row_count: :row_count,
|
|
11
|
+
columns: :columns
|
|
12
|
+
}.freeze
|
|
13
|
+
|
|
14
|
+
attr_accessor(
|
|
15
|
+
:table_id,
|
|
16
|
+
:row_count,
|
|
17
|
+
:columns
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
def initialize(json)
|
|
21
|
+
super()
|
|
22
|
+
hash = self.class.normalize(json)
|
|
23
|
+
@table_id = hash[:table_id]
|
|
24
|
+
@row_count = hash[:row_count]
|
|
25
|
+
@columns = (hash[:columns] || []).map { |item| item ? Retab::WorkflowTableProfileColumn.new(item) : nil }
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableResponse < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
table: :table
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor :table
|
|
13
|
+
|
|
14
|
+
def initialize(json)
|
|
15
|
+
super()
|
|
16
|
+
hash = self.class.normalize(json)
|
|
17
|
+
@table = hash[:table] ? Retab::WorkflowTable.new(hash[:table]) : nil
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableRow < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
id: :id,
|
|
10
|
+
data: :data,
|
|
11
|
+
position: :position
|
|
12
|
+
}.freeze
|
|
13
|
+
|
|
14
|
+
attr_accessor(
|
|
15
|
+
:id,
|
|
16
|
+
:data,
|
|
17
|
+
:position
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
def initialize(json)
|
|
21
|
+
super()
|
|
22
|
+
hash = self.class.normalize(json)
|
|
23
|
+
@id = hash[:id]
|
|
24
|
+
@data = hash[:data] || {}
|
|
25
|
+
@position = hash[:position]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableRowsResponse < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
table_id: :table_id,
|
|
10
|
+
columns: :columns,
|
|
11
|
+
rows: :rows,
|
|
12
|
+
row_count: :row_count,
|
|
13
|
+
filtered_row_count: :filtered_row_count,
|
|
14
|
+
offset: :offset,
|
|
15
|
+
limit: :limit,
|
|
16
|
+
has_more: :has_more,
|
|
17
|
+
next_cursor: :next_cursor,
|
|
18
|
+
previous_cursor: :previous_cursor,
|
|
19
|
+
explain: :explain
|
|
20
|
+
}.freeze
|
|
21
|
+
|
|
22
|
+
attr_accessor(
|
|
23
|
+
:table_id,
|
|
24
|
+
:columns,
|
|
25
|
+
:rows,
|
|
26
|
+
:row_count,
|
|
27
|
+
:filtered_row_count,
|
|
28
|
+
:offset,
|
|
29
|
+
:limit,
|
|
30
|
+
:has_more,
|
|
31
|
+
:next_cursor,
|
|
32
|
+
:previous_cursor,
|
|
33
|
+
:explain
|
|
34
|
+
)
|
|
35
|
+
|
|
36
|
+
def initialize(json)
|
|
37
|
+
super()
|
|
38
|
+
hash = self.class.normalize(json)
|
|
39
|
+
@table_id = hash[:table_id]
|
|
40
|
+
@columns = (hash[:columns] || []).map { |item| item ? Retab::WorkflowTableColumn.new(item) : nil }
|
|
41
|
+
@rows = (hash[:rows] || []).map { |item| item ? Retab::WorkflowTableRow.new(item) : nil }
|
|
42
|
+
@row_count = hash[:row_count]
|
|
43
|
+
@filtered_row_count = hash[:filtered_row_count]
|
|
44
|
+
@offset = hash[:offset]
|
|
45
|
+
@limit = hash[:limit]
|
|
46
|
+
@has_more = hash[:has_more].nil? ? false : hash[:has_more]
|
|
47
|
+
@next_cursor = hash[:next_cursor]
|
|
48
|
+
@previous_cursor = hash[:previous_cursor]
|
|
49
|
+
@explain = hash[:explain] ? Retab::WorkflowTableExplain.new(hash[:explain]) : nil
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableSampleRequest < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
size: :size
|
|
10
|
+
}.freeze
|
|
11
|
+
|
|
12
|
+
attr_accessor :size
|
|
13
|
+
|
|
14
|
+
def initialize(json)
|
|
15
|
+
super()
|
|
16
|
+
hash = self.class.normalize(json)
|
|
17
|
+
@size = hash[:size]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableSchemaResponse < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
table_id: :table_id,
|
|
10
|
+
columns: :columns
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor(
|
|
14
|
+
:table_id,
|
|
15
|
+
:columns
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
super()
|
|
20
|
+
hash = self.class.normalize(json)
|
|
21
|
+
@table_id = hash[:table_id]
|
|
22
|
+
@columns = (hash[:columns] || []).map { |item| item ? Retab::WorkflowTableColumn.new(item) : nil }
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableSearchRequest < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
query: :query,
|
|
10
|
+
columns: :columns
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor(
|
|
14
|
+
:query,
|
|
15
|
+
:columns
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
super()
|
|
20
|
+
hash = self.class.normalize(json)
|
|
21
|
+
@query = hash[:query]
|
|
22
|
+
@columns = (hash[:columns] || [])
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableSortRule < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
column: :column,
|
|
10
|
+
direction: :direction
|
|
11
|
+
}.freeze
|
|
12
|
+
|
|
13
|
+
attr_accessor(
|
|
14
|
+
:column,
|
|
15
|
+
:direction
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
def initialize(json)
|
|
19
|
+
super()
|
|
20
|
+
hash = self.class.normalize(json)
|
|
21
|
+
@column = hash[:column]
|
|
22
|
+
@direction = hash[:direction].nil? ? "asc" : hash[:direction]
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# This file is auto-generated by oagen. Do not edit.
|
|
4
|
+
|
|
5
|
+
module Retab
|
|
6
|
+
class WorkflowTableValidationColumnRule < Retab::Types::BaseModel
|
|
7
|
+
|
|
8
|
+
HASH_ATTRS = {
|
|
9
|
+
type: :type,
|
|
10
|
+
format: :format,
|
|
11
|
+
is_not_empty: :is_not_empty
|
|
12
|
+
}.freeze
|
|
13
|
+
|
|
14
|
+
attr_accessor(
|
|
15
|
+
:type,
|
|
16
|
+
:format,
|
|
17
|
+
:is_not_empty
|
|
18
|
+
)
|
|
19
|
+
|
|
20
|
+
def initialize(json)
|
|
21
|
+
super()
|
|
22
|
+
hash = self.class.normalize(json)
|
|
23
|
+
@type = hash[:type]
|
|
24
|
+
@format = hash[:format]
|
|
25
|
+
@is_not_empty = hash[:is_not_empty].nil? ? false : hash[:is_not_empty]
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|