ittybit 0.7.5.2 → 0.8.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 +149 -87
- data/lib/ittybit/automations/types/update_automation_request_status.rb +10 -0
- data/lib/ittybit/automations/types/{automations_update_request_trigger_conditions_item.rb → update_automation_request_trigger.rb} +19 -21
- data/lib/ittybit/files/client.rb +67 -77
- data/lib/ittybit/media/client.rb +78 -34
- data/lib/ittybit/signatures/client.rb +20 -24
- data/lib/ittybit/signatures/types/signatures_create_request_method.rb +0 -3
- data/lib/ittybit/tasks/client.rb +45 -132
- data/lib/ittybit/types/automation.rb +19 -29
- data/lib/ittybit/types/automation_list_response.rb +15 -2
- data/lib/ittybit/types/automation_response.rb +15 -2
- data/lib/ittybit/types/automation_status.rb +1 -3
- data/lib/ittybit/types/automation_trigger.rb +11 -18
- data/lib/ittybit/types/{confirmation_response_data.rb → confirmation.rb} +11 -9
- data/lib/ittybit/types/confirmation_response.rb +20 -7
- data/lib/ittybit/types/file.rb +64 -68
- data/lib/ittybit/types/file_kind.rb +0 -1
- data/lib/ittybit/types/file_list_response.rb +15 -2
- data/lib/ittybit/types/file_object.rb +0 -1
- data/lib/ittybit/types/file_response.rb +15 -2
- data/lib/ittybit/types/file_status.rb +0 -1
- data/lib/ittybit/types/links.rb +4 -4
- data/lib/ittybit/types/links_list.rb +17 -32
- data/lib/ittybit/types/media.rb +34 -56
- data/lib/ittybit/types/media_kind.rb +0 -1
- data/lib/ittybit/types/media_list_response.rb +15 -2
- data/lib/ittybit/types/media_response.rb +15 -2
- data/lib/ittybit/types/media_source.rb +52 -53
- data/lib/ittybit/types/media_source_kind.rb +0 -1
- data/lib/ittybit/types/media_source_object.rb +0 -1
- data/lib/ittybit/types/media_source_orientation.rb +9 -0
- data/lib/ittybit/types/media_source_status.rb +0 -1
- data/lib/ittybit/types/meta_list.rb +40 -15
- data/lib/ittybit/types/meta_list_type.rb +8 -0
- data/lib/ittybit/types/signature.rb +14 -14
- data/lib/ittybit/types/signature_response.rb +15 -2
- data/lib/ittybit/types/task.rb +30 -50
- data/lib/ittybit/types/task_list_response.rb +15 -2
- data/lib/ittybit/types/task_response.rb +15 -2
- data/lib/ittybit/types/task_status.rb +0 -1
- data/lib/ittybit/types/task_summary.rb +20 -20
- data/lib/ittybit/types/task_summary_kind.rb +9 -13
- data/lib/ittybit/types/task_summary_status.rb +0 -1
- data/lib/ittybit/types/workflow_task_step.rb +22 -55
- data/lib/ittybit/types/workflow_task_step_kind.rb +8 -14
- data/lib/ittybit/types/{error_response.rb → workflow_task_step_next_item.rb} +21 -28
- data/lib/ittybit.rb +2 -2
- data/lib/requests.rb +8 -8
- data/lib/types_export.rb +6 -11
- metadata +8 -13
- data/lib/ittybit/automations/types/automations_update_request_trigger.rb +0 -75
- data/lib/ittybit/files/types/files_delete_response.rb +0 -89
- data/lib/ittybit/files/types/files_delete_response_data.rb +0 -60
- data/lib/ittybit/tasks/types/tasks_create_request_kind.rb +0 -22
- data/lib/ittybit/tasks/types/tasks_list_request_kind.rb +0 -26
- data/lib/ittybit/tasks/types/tasks_list_request_status.rb +0 -16
- data/lib/ittybit/types/automation_trigger_conditions_item.rb +0 -65
- data/lib/ittybit/types/media_urls.rb +0 -70
@@ -1,70 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "ostruct"
|
4
|
-
require "json"
|
5
|
-
|
6
|
-
module Ittybit
|
7
|
-
# URLs for the media item.
|
8
|
-
class MediaUrls
|
9
|
-
# @return [String] URL of the original source file.
|
10
|
-
attr_reader :original
|
11
|
-
# @return [String] Example URL for a file with the ref value "example_ref". Any key with a-z, 0-9,
|
12
|
-
# _, or - is possible, but keys must start with a letter.
|
13
|
-
attr_reader :example_ref
|
14
|
-
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
15
|
-
attr_reader :additional_properties
|
16
|
-
# @return [Object]
|
17
|
-
attr_reader :_field_set
|
18
|
-
protected :_field_set
|
19
|
-
|
20
|
-
OMIT = Object.new
|
21
|
-
|
22
|
-
# @param original [String] URL of the original source file.
|
23
|
-
# @param example_ref [String] Example URL for a file with the ref value "example_ref". Any key with a-z, 0-9,
|
24
|
-
# _, or - is possible, but keys must start with a letter.
|
25
|
-
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
26
|
-
# @return [Ittybit::MediaUrls]
|
27
|
-
def initialize(original: OMIT, example_ref: OMIT, additional_properties: nil)
|
28
|
-
@original = original if original != OMIT
|
29
|
-
@example_ref = example_ref if example_ref != OMIT
|
30
|
-
@additional_properties = additional_properties
|
31
|
-
@_field_set = { "original": original, "example_ref": example_ref }.reject do |_k, v|
|
32
|
-
v == OMIT
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
# Deserialize a JSON object to an instance of MediaUrls
|
37
|
-
#
|
38
|
-
# @param json_object [String]
|
39
|
-
# @return [Ittybit::MediaUrls]
|
40
|
-
def self.from_json(json_object:)
|
41
|
-
struct = JSON.parse(json_object, object_class: OpenStruct)
|
42
|
-
parsed_json = JSON.parse(json_object)
|
43
|
-
original = parsed_json["original"]
|
44
|
-
example_ref = parsed_json["example_ref"]
|
45
|
-
new(
|
46
|
-
original: original,
|
47
|
-
example_ref: example_ref,
|
48
|
-
additional_properties: struct
|
49
|
-
)
|
50
|
-
end
|
51
|
-
|
52
|
-
# Serialize an instance of MediaUrls to a JSON object
|
53
|
-
#
|
54
|
-
# @return [String]
|
55
|
-
def to_json(*_args)
|
56
|
-
@_field_set&.to_json
|
57
|
-
end
|
58
|
-
|
59
|
-
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
60
|
-
# hash and check each fields type against the current object's property
|
61
|
-
# definitions.
|
62
|
-
#
|
63
|
-
# @param obj [Object]
|
64
|
-
# @return [Void]
|
65
|
-
def self.validate_raw(obj:)
|
66
|
-
obj.original&.is_a?(String) != false || raise("Passed value for field obj.original is not the expected type, validation failed.")
|
67
|
-
obj.example_ref&.is_a?(String) != false || raise("Passed value for field obj.example_ref is not the expected type, validation failed.")
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|