ittybit 0.8.14 → 1.0.0
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/ittybit/automations/client.rb +80 -60
- data/lib/ittybit/automations/types/automations_create_request_workflow_item.rb +81 -0
- data/lib/ittybit/automations/types/automations_create_request_workflow_item_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_create_request_workflow_item_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_create_response.rb +133 -0
- data/lib/ittybit/automations/types/automations_create_response_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_create_response_trigger.rb +67 -0
- data/lib/ittybit/automations/types/automations_create_response_workflow_item.rb +61 -0
- data/lib/ittybit/automations/types/automations_create_response_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_create_response_workflow_item_conditions_conditions_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_create_response_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_create_response_workflow_item_ref.rb +83 -0
- data/lib/ittybit/automations/types/automations_create_response_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_create_response_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_delete_response.rb +59 -0
- data/lib/ittybit/automations/types/automations_get_response.rb +133 -0
- data/lib/ittybit/automations/types/automations_get_response_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_get_response_trigger.rb +67 -0
- data/lib/ittybit/automations/types/automations_get_response_workflow_item.rb +60 -0
- data/lib/ittybit/automations/types/automations_get_response_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_get_response_workflow_item_conditions_conditions_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_get_response_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_get_response_workflow_item_ref.rb +82 -0
- data/lib/ittybit/automations/types/automations_get_response_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_get_response_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_list_response_item.rb +133 -0
- data/lib/ittybit/automations/types/automations_list_response_item_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_list_response_item_trigger.rb +67 -0
- data/lib/ittybit/automations/types/automations_list_response_item_workflow_item.rb +61 -0
- data/lib/ittybit/automations/types/automations_list_response_item_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_list_response_item_workflow_item_conditions_conditions_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_list_response_item_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_list_response_item_workflow_item_ref.rb +83 -0
- data/lib/ittybit/automations/types/automations_list_response_item_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_list_response_item_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_update_request_workflow_item.rb +81 -0
- data/lib/ittybit/automations/types/automations_update_request_workflow_item_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_update_request_workflow_item_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_update_response.rb +133 -0
- data/lib/ittybit/automations/types/automations_update_response_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_update_response_trigger.rb +67 -0
- data/lib/ittybit/automations/types/automations_update_response_workflow_item.rb +61 -0
- data/lib/ittybit/automations/types/automations_update_response_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_update_response_workflow_item_conditions_conditions_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_update_response_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_update_response_workflow_item_ref.rb +83 -0
- data/lib/ittybit/automations/types/automations_update_response_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_update_response_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/files/client.rb +76 -55
- data/lib/ittybit/files/types/files_create_response.rb +317 -0
- data/lib/ittybit/files/types/files_create_response_kind.rb +11 -0
- data/lib/ittybit/files/types/files_create_response_object.rb +11 -0
- data/lib/ittybit/files/types/files_create_response_status.rb +12 -0
- data/lib/ittybit/files/types/files_delete_response.rb +59 -0
- data/lib/ittybit/files/types/files_get_response.rb +317 -0
- data/lib/ittybit/files/types/files_get_response_kind.rb +11 -0
- data/lib/ittybit/files/types/files_get_response_object.rb +11 -0
- data/lib/ittybit/files/types/files_get_response_status.rb +12 -0
- data/lib/ittybit/files/types/files_list_response_item.rb +317 -0
- data/lib/ittybit/files/types/files_list_response_item_kind.rb +11 -0
- data/lib/ittybit/files/types/files_list_response_item_object.rb +11 -0
- data/lib/ittybit/files/types/files_list_response_item_status.rb +12 -0
- data/lib/ittybit/files/types/files_update_response.rb +317 -0
- data/lib/ittybit/files/types/files_update_response_kind.rb +11 -0
- data/lib/ittybit/files/types/files_update_response_object.rb +11 -0
- data/lib/ittybit/files/types/files_update_response_status.rb +12 -0
- data/lib/ittybit/media/client.rb +77 -56
- data/lib/ittybit/media/types/media_create_response.rb +175 -0
- data/lib/ittybit/media/types/media_create_response_files_item.rb +262 -0
- data/lib/ittybit/media/types/media_create_response_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/media_create_response_files_item_object.rb +11 -0
- data/lib/ittybit/media/types/media_create_response_files_item_orientation.rb +11 -0
- data/lib/ittybit/media/types/media_create_response_files_item_status.rb +12 -0
- data/lib/ittybit/media/types/media_create_response_kind.rb +11 -0
- data/lib/ittybit/media/types/media_delete_response.rb +59 -0
- data/lib/ittybit/media/types/media_get_response.rb +175 -0
- data/lib/ittybit/media/types/media_get_response_files_item.rb +262 -0
- data/lib/ittybit/media/types/media_get_response_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/media_get_response_files_item_object.rb +11 -0
- data/lib/ittybit/media/types/media_get_response_files_item_orientation.rb +11 -0
- data/lib/ittybit/media/types/media_get_response_files_item_status.rb +12 -0
- data/lib/ittybit/media/types/media_get_response_kind.rb +11 -0
- data/lib/ittybit/media/types/media_update_response.rb +175 -0
- data/lib/ittybit/media/types/media_update_response_files_item.rb +262 -0
- data/lib/ittybit/media/types/media_update_response_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/media_update_response_files_item_object.rb +11 -0
- data/lib/ittybit/media/types/media_update_response_files_item_orientation.rb +11 -0
- data/lib/ittybit/media/types/media_update_response_files_item_status.rb +12 -0
- data/lib/ittybit/media/types/media_update_response_kind.rb +11 -0
- data/lib/ittybit/signatures/client.rb +13 -11
- data/lib/ittybit/signatures/types/signatures_create_response.rb +112 -0
- data/lib/ittybit/tasks/client.rb +47 -99
- data/lib/ittybit/tasks/types/tasks_create_response.rb +186 -0
- data/lib/ittybit/tasks/types/tasks_create_response_kind.rb +23 -0
- data/lib/ittybit/tasks/types/tasks_create_response_results.rb +76 -0
- data/lib/ittybit/tasks/types/tasks_create_response_status.rb +16 -0
- data/lib/ittybit/tasks/types/tasks_get_response.rb +186 -0
- data/lib/ittybit/tasks/types/tasks_get_response_kind.rb +23 -0
- data/lib/ittybit/tasks/types/tasks_get_response_results.rb +76 -0
- data/lib/ittybit/tasks/types/tasks_get_response_status.rb +16 -0
- data/lib/ittybit/tasks/types/tasks_list_response_item.rb +186 -0
- data/lib/ittybit/tasks/types/tasks_list_response_item_kind.rb +23 -0
- data/lib/ittybit/tasks/types/tasks_list_response_item_results.rb +76 -0
- data/lib/ittybit/tasks/types/tasks_list_response_item_status.rb +16 -0
- data/lib/ittybit/types/automation_list_response.rb +2 -98
- data/lib/ittybit/types/automation_list_response_item.rb +131 -0
- data/lib/ittybit/types/automation_list_response_item_status.rb +8 -0
- data/lib/ittybit/types/automation_list_response_item_trigger.rb +65 -0
- data/lib/ittybit/types/automation_list_response_item_workflow_item.rb +57 -0
- data/lib/ittybit/types/automation_list_response_item_workflow_item_conditions.rb +84 -0
- data/lib/ittybit/types/automation_list_response_item_workflow_item_conditions_conditions_item.rb +69 -0
- data/lib/ittybit/types/automation_list_response_item_workflow_item_conditions_next_item.rb +69 -0
- data/lib/ittybit/types/automation_list_response_item_workflow_item_ref.rb +81 -0
- data/lib/ittybit/types/automation_list_response_item_workflow_item_ref_kind.rb +18 -0
- data/lib/ittybit/types/automation_list_response_item_workflow_item_ref_next_item.rb +69 -0
- data/lib/ittybit/types/automation_response.rb +77 -46
- data/lib/ittybit/types/automation_response_status.rb +8 -0
- data/lib/ittybit/types/automation_response_trigger.rb +65 -0
- data/lib/ittybit/types/automation_response_workflow_item.rb +54 -0
- data/lib/ittybit/types/automation_response_workflow_item_conditions.rb +84 -0
- data/lib/ittybit/types/automation_response_workflow_item_conditions_conditions_item.rb +69 -0
- data/lib/ittybit/types/automation_response_workflow_item_conditions_next_item.rb +69 -0
- data/lib/ittybit/types/automation_response_workflow_item_ref.rb +79 -0
- data/lib/ittybit/types/automation_response_workflow_item_ref_kind.rb +18 -0
- data/lib/ittybit/types/automation_response_workflow_item_ref_next_item.rb +69 -0
- data/lib/ittybit/types/automation_workflow_item.rb +8 -8
- data/lib/ittybit/types/automation_workflow_item_conditions.rb +82 -0
- data/lib/ittybit/types/automation_workflow_item_conditions_conditions_item.rb +69 -0
- data/lib/ittybit/types/automation_workflow_item_conditions_next_item.rb +69 -0
- data/lib/ittybit/types/automation_workflow_item_ref.rb +79 -0
- data/lib/ittybit/types/automation_workflow_item_ref_kind.rb +18 -0
- data/lib/ittybit/types/automation_workflow_item_ref_next_item.rb +67 -0
- data/lib/ittybit/types/confirmation_response.rb +9 -52
- data/lib/ittybit/types/created_by.rb +5 -0
- data/lib/ittybit/types/error.rb +1 -53
- data/lib/ittybit/types/file_list_response.rb +2 -98
- data/lib/ittybit/types/file_list_response_item.rb +315 -0
- data/lib/ittybit/types/file_list_response_item_kind.rb +9 -0
- data/lib/ittybit/types/file_list_response_item_object.rb +9 -0
- data/lib/ittybit/types/file_list_response_item_status.rb +10 -0
- data/lib/ittybit/types/file_response.rb +264 -49
- data/lib/ittybit/types/file_response_kind.rb +9 -0
- data/lib/ittybit/types/file_response_object.rb +9 -0
- data/lib/ittybit/types/file_response_status.rb +10 -0
- data/lib/ittybit/types/kind.rb +21 -0
- data/lib/ittybit/types/links.rb +1 -63
- data/lib/ittybit/types/media.rb +4 -4
- data/lib/ittybit/types/media_files_item.rb +260 -0
- data/lib/ittybit/types/media_files_item_kind.rb +9 -0
- data/lib/ittybit/types/media_files_item_object.rb +9 -0
- data/lib/ittybit/types/media_files_item_orientation.rb +9 -0
- data/lib/ittybit/types/media_files_item_status.rb +10 -0
- data/lib/ittybit/types/media_list_response.rb +2 -98
- data/lib/ittybit/types/media_list_response_item.rb +173 -0
- data/lib/ittybit/types/media_list_response_item_files_item.rb +260 -0
- data/lib/ittybit/types/media_list_response_item_files_item_kind.rb +9 -0
- data/lib/ittybit/types/media_list_response_item_files_item_object.rb +9 -0
- data/lib/ittybit/types/media_list_response_item_files_item_orientation.rb +9 -0
- data/lib/ittybit/types/media_list_response_item_files_item_status.rb +10 -0
- data/lib/ittybit/types/media_list_response_item_kind.rb +9 -0
- data/lib/ittybit/types/media_response.rb +121 -48
- data/lib/ittybit/types/media_response_files_item.rb +260 -0
- data/lib/ittybit/types/media_response_files_item_kind.rb +9 -0
- data/lib/ittybit/types/media_response_files_item_object.rb +9 -0
- data/lib/ittybit/types/media_response_files_item_orientation.rb +9 -0
- data/lib/ittybit/types/media_response_files_item_status.rb +10 -0
- data/lib/ittybit/types/media_response_kind.rb +9 -0
- data/lib/ittybit/types/parent_id.rb +5 -0
- data/lib/ittybit/types/progress.rb +5 -0
- data/lib/ittybit/types/signature_response.rb +59 -49
- data/lib/ittybit/types/status.rb +14 -0
- data/lib/ittybit/types/task_list_response.rb +2 -98
- data/lib/ittybit/types/task_list_response_item.rb +184 -0
- data/lib/ittybit/types/task_list_response_item_kind.rb +21 -0
- data/lib/ittybit/types/task_list_response_item_results.rb +74 -0
- data/lib/ittybit/types/task_list_response_item_status.rb +14 -0
- data/lib/ittybit/types/task_response.rb +128 -44
- data/lib/ittybit/types/task_response_kind.rb +21 -0
- data/lib/ittybit/types/task_response_results.rb +74 -0
- data/lib/ittybit/types/task_response_status.rb +14 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +168 -9
- metadata +163 -5
- data/lib/ittybit/types/links_list.rb +0 -88
- data/lib/ittybit/types/meta_list.rb +0 -128
- data/lib/ittybit/types/meta_list_type.rb +0 -8
@@ -1,128 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require_relative "meta_list_type"
|
4
|
-
require "ostruct"
|
5
|
-
require "json"
|
6
|
-
|
7
|
-
module Ittybit
|
8
|
-
class MetaList
|
9
|
-
# @return [String]
|
10
|
-
attr_reader :request_id
|
11
|
-
# @return [String]
|
12
|
-
attr_reader :org_id
|
13
|
-
# @return [String]
|
14
|
-
attr_reader :project_id
|
15
|
-
# @return [String]
|
16
|
-
attr_reader :version
|
17
|
-
# @return [Ittybit::MetaListType]
|
18
|
-
attr_reader :type
|
19
|
-
# @return [Integer]
|
20
|
-
attr_reader :limit
|
21
|
-
# @return [Integer]
|
22
|
-
attr_reader :total
|
23
|
-
# @return [Integer]
|
24
|
-
attr_reader :page
|
25
|
-
# @return [Integer]
|
26
|
-
attr_reader :pages
|
27
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
28
|
-
attr_reader :additional_properties
|
29
|
-
# @return [Object]
|
30
|
-
attr_reader :_field_set
|
31
|
-
protected :_field_set
|
32
|
-
|
33
|
-
OMIT = Object.new
|
34
|
-
|
35
|
-
# @param request_id [String]
|
36
|
-
# @param org_id [String]
|
37
|
-
# @param project_id [String]
|
38
|
-
# @param version [String]
|
39
|
-
# @param type [Ittybit::MetaListType]
|
40
|
-
# @param limit [Integer]
|
41
|
-
# @param total [Integer]
|
42
|
-
# @param page [Integer]
|
43
|
-
# @param pages [Integer]
|
44
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
45
|
-
# @return [Ittybit::MetaList]
|
46
|
-
def initialize(request_id: OMIT, org_id: OMIT, project_id: OMIT, version: OMIT, type: OMIT, limit: OMIT,
|
47
|
-
total: OMIT, page: OMIT, pages: OMIT, additional_properties: nil)
|
48
|
-
@request_id = request_id if request_id != OMIT
|
49
|
-
@org_id = org_id if org_id != OMIT
|
50
|
-
@project_id = project_id if project_id != OMIT
|
51
|
-
@version = version if version != OMIT
|
52
|
-
@type = type if type != OMIT
|
53
|
-
@limit = limit if limit != OMIT
|
54
|
-
@total = total if total != OMIT
|
55
|
-
@page = page if page != OMIT
|
56
|
-
@pages = pages if pages != OMIT
|
57
|
-
@additional_properties = additional_properties
|
58
|
-
@_field_set = {
|
59
|
-
"request_id": request_id,
|
60
|
-
"org_id": org_id,
|
61
|
-
"project_id": project_id,
|
62
|
-
"version": version,
|
63
|
-
"type": type,
|
64
|
-
"limit": limit,
|
65
|
-
"total": total,
|
66
|
-
"page": page,
|
67
|
-
"pages": pages
|
68
|
-
}.reject do |_k, v|
|
69
|
-
v == OMIT
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
# Deserialize a JSON object to an instance of MetaList
|
74
|
-
#
|
75
|
-
# @param json_object [String]
|
76
|
-
# @return [Ittybit::MetaList]
|
77
|
-
def self.from_json(json_object:)
|
78
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
79
|
-
parsed_json = JSON.parse(json_object)
|
80
|
-
request_id = parsed_json["request_id"]
|
81
|
-
org_id = parsed_json["org_id"]
|
82
|
-
project_id = parsed_json["project_id"]
|
83
|
-
version = parsed_json["version"]
|
84
|
-
type = parsed_json["type"]
|
85
|
-
limit = parsed_json["limit"]
|
86
|
-
total = parsed_json["total"]
|
87
|
-
page = parsed_json["page"]
|
88
|
-
pages = parsed_json["pages"]
|
89
|
-
new(
|
90
|
-
request_id: request_id,
|
91
|
-
org_id: org_id,
|
92
|
-
project_id: project_id,
|
93
|
-
version: version,
|
94
|
-
type: type,
|
95
|
-
limit: limit,
|
96
|
-
total: total,
|
97
|
-
page: page,
|
98
|
-
pages: pages,
|
99
|
-
additional_properties: struct
|
100
|
-
)
|
101
|
-
end
|
102
|
-
|
103
|
-
# Serialize an instance of MetaList to a JSON object
|
104
|
-
#
|
105
|
-
# @return [String]
|
106
|
-
def to_json(*_args)
|
107
|
-
@_field_set&.to_json
|
108
|
-
end
|
109
|
-
|
110
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
111
|
-
# hash and check each fields type against the current object's property
|
112
|
-
# definitions.
|
113
|
-
#
|
114
|
-
# @param obj [Object]
|
115
|
-
# @return [Void]
|
116
|
-
def self.validate_raw(obj:)
|
117
|
-
obj.request_id&.is_a?(String) != false || raise("Passed value for field obj.request_id is not the expected type, validation failed.")
|
118
|
-
obj.org_id&.is_a?(String) != false || raise("Passed value for field obj.org_id is not the expected type, validation failed.")
|
119
|
-
obj.project_id&.is_a?(String) != false || raise("Passed value for field obj.project_id is not the expected type, validation failed.")
|
120
|
-
obj.version&.is_a?(String) != false || raise("Passed value for field obj.version is not the expected type, validation failed.")
|
121
|
-
obj.type&.is_a?(Ittybit::MetaListType) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
122
|
-
obj.limit&.is_a?(Integer) != false || raise("Passed value for field obj.limit is not the expected type, validation failed.")
|
123
|
-
obj.total&.is_a?(Integer) != false || raise("Passed value for field obj.total is not the expected type, validation failed.")
|
124
|
-
obj.page&.is_a?(Integer) != false || raise("Passed value for field obj.page is not the expected type, validation failed.")
|
125
|
-
obj.pages&.is_a?(Integer) != false || raise("Passed value for field obj.pages is not the expected type, validation failed.")
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|