ittybit 0.9.0 → 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 +46 -29
- data/lib/ittybit/automations/types/automations_create_response.rb +77 -51
- data/lib/ittybit/automations/types/{automations_get_response_data_status.rb → automations_create_response_status.rb} +1 -1
- data/lib/ittybit/automations/types/{automations_create_response_data_trigger.rb → automations_create_response_trigger.rb} +5 -5
- data/lib/ittybit/automations/types/{automations_create_response_data_workflow_item.rb → automations_create_response_workflow_item.rb} +11 -11
- data/lib/ittybit/automations/types/{automations_create_response_data_workflow_item_conditions.rb → automations_create_response_workflow_item_conditions.rb} +14 -14
- data/lib/ittybit/automations/types/{automations_create_response_data_workflow_item_conditions_conditions_item.rb → automations_create_response_workflow_item_conditions_conditions_item.rb} +5 -6
- data/lib/ittybit/automations/types/{automations_create_response_data_workflow_item_conditions_next_item.rb → automations_create_response_workflow_item_conditions_next_item.rb} +6 -6
- data/lib/ittybit/automations/types/{automations_create_response_data_workflow_item_ref.rb → automations_create_response_workflow_item_ref.rb} +13 -13
- data/lib/ittybit/automations/types/{automations_get_response_data_workflow_item_ref_kind.rb → automations_create_response_workflow_item_ref_kind.rb} +1 -1
- data/lib/ittybit/automations/types/{automations_create_response_data_workflow_item_ref_next_item.rb → automations_create_response_workflow_item_ref_next_item.rb} +6 -6
- data/lib/ittybit/automations/types/automations_delete_response.rb +9 -57
- data/lib/ittybit/automations/types/automations_get_response.rb +77 -51
- data/lib/ittybit/automations/types/{automations_update_response_data_status.rb → automations_get_response_status.rb} +1 -1
- data/lib/ittybit/automations/types/{automations_get_response_data_trigger.rb → automations_get_response_trigger.rb} +5 -5
- data/lib/ittybit/automations/types/{automations_get_response_data_workflow_item.rb → automations_get_response_workflow_item.rb} +11 -12
- data/lib/ittybit/automations/types/{automations_get_response_data_workflow_item_conditions.rb → automations_get_response_workflow_item_conditions.rb} +14 -14
- data/lib/ittybit/automations/types/{automations_list_response_data_item_workflow_item_conditions_conditions_item.rb → automations_get_response_workflow_item_conditions_conditions_item.rb} +5 -6
- data/lib/ittybit/automations/types/{automations_list_response_data_item_workflow_item_ref_next_item.rb → automations_get_response_workflow_item_conditions_next_item.rb} +6 -6
- data/lib/ittybit/automations/types/{automations_get_response_data_workflow_item_ref.rb → automations_get_response_workflow_item_ref.rb} +13 -14
- data/lib/ittybit/automations/types/{automations_create_response_data_workflow_item_ref_kind.rb → automations_get_response_workflow_item_ref_kind.rb} +1 -1
- data/lib/ittybit/automations/types/automations_get_response_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/{automations_list_response_data_item.rb → automations_list_response_item.rb} +18 -18
- data/lib/ittybit/automations/types/{automations_create_response_data_status.rb → automations_list_response_item_status.rb} +1 -1
- data/lib/ittybit/automations/types/{automations_list_response_data_item_trigger.rb → automations_list_response_item_trigger.rb} +5 -6
- data/lib/ittybit/automations/types/{automations_list_response_data_item_workflow_item.rb → automations_list_response_item_workflow_item.rb} +11 -11
- data/lib/ittybit/automations/types/{automations_list_response_data_item_workflow_item_conditions.rb → automations_list_response_item_workflow_item_conditions.rb} +14 -14
- data/lib/ittybit/automations/types/{automations_get_response_data_workflow_item_conditions_conditions_item.rb → automations_list_response_item_workflow_item_conditions_conditions_item.rb} +5 -5
- data/lib/ittybit/automations/types/{automations_get_response_data_workflow_item_conditions_next_item.rb → automations_list_response_item_workflow_item_conditions_next_item.rb} +5 -5
- data/lib/ittybit/automations/types/{automations_list_response_data_item_workflow_item_ref.rb → automations_list_response_item_workflow_item_ref.rb} +14 -14
- data/lib/ittybit/automations/types/{automations_update_response_data_workflow_item_ref_kind.rb → automations_list_response_item_workflow_item_ref_kind.rb} +1 -1
- data/lib/ittybit/automations/types/{automations_get_response_data_workflow_item_ref_next_item.rb → automations_list_response_item_workflow_item_ref_next_item.rb} +5 -5
- data/lib/ittybit/automations/types/automations_update_response.rb +77 -51
- data/lib/ittybit/automations/types/{automations_list_response_data_item_status.rb → automations_update_response_status.rb} +1 -1
- data/lib/ittybit/automations/types/{automations_update_response_data_trigger.rb → automations_update_response_trigger.rb} +5 -5
- data/lib/ittybit/automations/types/{automations_update_response_data_workflow_item.rb → automations_update_response_workflow_item.rb} +11 -11
- data/lib/ittybit/automations/types/{automations_update_response_data_workflow_item_conditions.rb → automations_update_response_workflow_item_conditions.rb} +14 -14
- data/lib/ittybit/automations/types/{automations_update_response_data_workflow_item_conditions_conditions_item.rb → automations_update_response_workflow_item_conditions_conditions_item.rb} +5 -6
- data/lib/ittybit/automations/types/{automations_update_response_data_workflow_item_conditions_next_item.rb → automations_update_response_workflow_item_conditions_next_item.rb} +6 -6
- data/lib/ittybit/automations/types/{automations_update_response_data_workflow_item_ref.rb → automations_update_response_workflow_item_ref.rb} +13 -13
- data/lib/ittybit/automations/types/{automations_list_response_data_item_workflow_item_ref_kind.rb → automations_update_response_workflow_item_ref_kind.rb} +1 -1
- data/lib/ittybit/automations/types/{automations_update_response_data_workflow_item_ref_next_item.rb → automations_update_response_workflow_item_ref_next_item.rb} +6 -6
- data/lib/ittybit/files/client.rb +56 -37
- data/lib/ittybit/files/types/files_create_response.rb +264 -54
- data/lib/ittybit/files/types/{files_get_response_data_kind.rb → files_create_response_kind.rb} +1 -1
- data/lib/ittybit/files/types/{files_get_response_data_object.rb → files_create_response_object.rb} +1 -1
- data/lib/ittybit/files/types/{files_get_response_data_status.rb → files_create_response_status.rb} +1 -1
- data/lib/ittybit/files/types/files_delete_response.rb +9 -57
- data/lib/ittybit/files/types/files_get_response.rb +264 -54
- data/lib/ittybit/files/types/{files_create_response_data_kind.rb → files_get_response_kind.rb} +1 -1
- data/lib/ittybit/files/types/{files_create_response_data_object.rb → files_get_response_object.rb} +1 -1
- data/lib/ittybit/files/types/{files_create_response_data_status.rb → files_get_response_status.rb} +1 -1
- data/lib/ittybit/files/types/{files_get_response_data.rb → files_list_response_item.rb} +17 -17
- data/lib/ittybit/files/types/{files_update_response_data_kind.rb → files_list_response_item_kind.rb} +1 -1
- data/lib/ittybit/files/types/{files_update_response_data_object.rb → files_list_response_item_object.rb} +1 -1
- data/lib/ittybit/files/types/{files_update_response_data_status.rb → files_list_response_item_status.rb} +1 -1
- data/lib/ittybit/files/types/files_update_response.rb +264 -54
- data/lib/ittybit/files/types/{files_list_response_data_item_kind.rb → files_update_response_kind.rb} +1 -1
- data/lib/ittybit/files/types/{files_list_response_data_item_object.rb → files_update_response_object.rb} +1 -1
- data/lib/ittybit/files/types/{files_list_response_data_item_status.rb → files_update_response_status.rb} +1 -1
- data/lib/ittybit/media/client.rb +57 -38
- data/lib/ittybit/media/types/media_create_response.rb +121 -53
- data/lib/ittybit/media/types/{media_create_response_data_files_item.rb → media_create_response_files_item.rb} +21 -21
- data/lib/ittybit/media/types/{media_get_response_data_files_item_kind.rb → media_create_response_files_item_kind.rb} +1 -1
- data/lib/ittybit/media/types/{media_get_response_data_files_item_object.rb → media_create_response_files_item_object.rb} +1 -1
- data/lib/ittybit/media/types/{media_get_response_data_files_item_orientation.rb → media_create_response_files_item_orientation.rb} +1 -1
- data/lib/ittybit/media/types/{media_get_response_data_files_item_status.rb → media_create_response_files_item_status.rb} +1 -1
- data/lib/ittybit/media/types/{media_get_response_data_kind.rb → media_create_response_kind.rb} +1 -1
- data/lib/ittybit/media/types/media_delete_response.rb +9 -57
- data/lib/ittybit/media/types/media_get_response.rb +121 -53
- data/lib/ittybit/media/types/{media_get_response_data_files_item.rb → media_get_response_files_item.rb} +21 -21
- data/lib/ittybit/media/types/media_get_response_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/{media_create_response_data_files_item_object.rb → media_get_response_files_item_object.rb} +1 -1
- data/lib/ittybit/media/types/{media_update_response_data_files_item_orientation.rb → media_get_response_files_item_orientation.rb} +1 -1
- data/lib/ittybit/media/types/{media_create_response_data_files_item_status.rb → media_get_response_files_item_status.rb} +1 -1
- data/lib/ittybit/media/types/{media_create_response_data_kind.rb → media_get_response_kind.rb} +1 -1
- data/lib/ittybit/media/types/media_update_response.rb +121 -53
- data/lib/ittybit/media/types/{media_update_response_data_files_item.rb → media_update_response_files_item.rb} +21 -21
- data/lib/ittybit/media/types/media_update_response_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/{media_update_response_data_files_item_object.rb → media_update_response_files_item_object.rb} +1 -1
- data/lib/ittybit/media/types/{media_create_response_data_files_item_orientation.rb → media_update_response_files_item_orientation.rb} +1 -1
- data/lib/ittybit/media/types/{media_update_response_data_files_item_status.rb → media_update_response_files_item_status.rb} +1 -1
- data/lib/ittybit/media/types/{media_update_response_data_kind.rb → media_update_response_kind.rb} +1 -1
- data/lib/ittybit/signatures/client.rb +8 -6
- data/lib/ittybit/signatures/types/signatures_create_response.rb +59 -54
- data/lib/ittybit/tasks/client.rb +38 -91
- data/lib/ittybit/tasks/types/tasks_create_response.rb +128 -49
- data/lib/ittybit/tasks/types/{tasks_get_response_data_kind.rb → tasks_create_response_kind.rb} +1 -1
- data/lib/ittybit/tasks/types/{tasks_create_response_data_results.rb → tasks_create_response_results.rb} +5 -5
- data/lib/ittybit/tasks/types/{tasks_get_response_data_status.rb → tasks_create_response_status.rb} +1 -1
- data/lib/ittybit/tasks/types/tasks_get_response.rb +128 -49
- data/lib/ittybit/tasks/types/{tasks_create_response_data_kind.rb → tasks_get_response_kind.rb} +1 -1
- data/lib/ittybit/tasks/types/{tasks_get_response_data_results.rb → tasks_get_response_results.rb} +5 -5
- data/lib/ittybit/tasks/types/{tasks_create_response_data_status.rb → tasks_get_response_status.rb} +1 -1
- data/lib/ittybit/tasks/types/{tasks_list_response_data_item.rb → tasks_list_response_item.rb} +18 -18
- data/lib/ittybit/tasks/types/{tasks_list_response_data_item_kind.rb → tasks_list_response_item_kind.rb} +1 -1
- data/lib/ittybit/tasks/types/{tasks_list_response_data_item_results.rb → tasks_list_response_item_results.rb} +5 -5
- data/lib/ittybit/tasks/types/{tasks_list_response_data_item_status.rb → tasks_list_response_item_status.rb} +1 -1
- data/lib/ittybit/types/automation_list_response.rb +2 -98
- data/lib/ittybit/types/{automation_list_response_data_item.rb → automation_list_response_item.rb} +18 -18
- data/lib/ittybit/types/{automation_list_response_data_item_status.rb → automation_list_response_item_status.rb} +1 -1
- data/lib/ittybit/types/{automation_list_response_data_item_trigger.rb → automation_list_response_item_trigger.rb} +5 -6
- data/lib/ittybit/types/{automation_list_response_data_item_workflow_item.rb → automation_list_response_item_workflow_item.rb} +11 -11
- data/lib/ittybit/types/{automation_list_response_data_item_workflow_item_conditions.rb → automation_list_response_item_workflow_item_conditions.rb} +14 -14
- data/lib/ittybit/types/{automation_response_data_workflow_item_conditions_conditions_item.rb → automation_list_response_item_workflow_item_conditions_conditions_item.rb} +5 -5
- data/lib/ittybit/types/{automation_list_response_data_item_workflow_item_conditions_next_item.rb → automation_list_response_item_workflow_item_conditions_next_item.rb} +5 -5
- data/lib/ittybit/types/{automation_response_data_workflow_item_ref.rb → automation_list_response_item_workflow_item_ref.rb} +14 -13
- data/lib/ittybit/types/{automation_list_response_data_item_workflow_item_ref_kind.rb → automation_list_response_item_workflow_item_ref_kind.rb} +1 -1
- data/lib/ittybit/types/{automation_response_data_workflow_item_conditions_next_item.rb → automation_list_response_item_workflow_item_ref_next_item.rb} +6 -6
- data/lib/ittybit/types/automation_response.rb +77 -51
- data/lib/ittybit/types/{automation_response_data_status.rb → automation_response_status.rb} +1 -1
- data/lib/ittybit/types/{automation_response_data_trigger.rb → automation_response_trigger.rb} +5 -5
- data/lib/ittybit/types/{automation_response_data_workflow_item.rb → automation_response_workflow_item.rb} +11 -11
- data/lib/ittybit/types/{automation_response_data_workflow_item_conditions.rb → automation_response_workflow_item_conditions.rb} +13 -13
- data/lib/ittybit/types/{automation_list_response_data_item_workflow_item_conditions_conditions_item.rb → automation_response_workflow_item_conditions_conditions_item.rb} +6 -7
- data/lib/ittybit/types/{automation_list_response_data_item_workflow_item_ref_next_item.rb → automation_response_workflow_item_conditions_next_item.rb} +6 -6
- data/lib/ittybit/types/{automation_list_response_data_item_workflow_item_ref.rb → automation_response_workflow_item_ref.rb} +13 -15
- data/lib/ittybit/types/{automation_response_data_workflow_item_ref_kind.rb → automation_response_workflow_item_ref_kind.rb} +1 -1
- data/lib/ittybit/types/{automation_response_data_workflow_item_ref_next_item.rb → automation_response_workflow_item_ref_next_item.rb} +5 -5
- data/lib/ittybit/types/confirmation_response.rb +9 -57
- data/lib/ittybit/types/file_list_response.rb +2 -98
- data/lib/ittybit/types/{file_response_data.rb → file_list_response_item.rb} +17 -17
- data/lib/ittybit/types/{file_list_response_data_item_kind.rb → file_list_response_item_kind.rb} +1 -1
- data/lib/ittybit/types/{file_list_response_data_item_object.rb → file_list_response_item_object.rb} +1 -1
- data/lib/ittybit/types/{file_list_response_data_item_status.rb → file_list_response_item_status.rb} +1 -1
- data/lib/ittybit/types/file_response.rb +264 -54
- data/lib/ittybit/types/{file_response_data_kind.rb → file_response_kind.rb} +1 -1
- data/lib/ittybit/types/{file_response_data_object.rb → file_response_object.rb} +1 -1
- data/lib/ittybit/types/{file_response_data_status.rb → file_response_status.rb} +1 -1
- data/lib/ittybit/types/links.rb +1 -63
- data/lib/ittybit/types/media_list_response.rb +2 -98
- data/lib/ittybit/types/{media_list_response_data_item.rb → media_list_response_item.rb} +13 -13
- data/lib/ittybit/types/{media_list_response_data_item_files_item.rb → media_list_response_item_files_item.rb} +21 -21
- data/lib/ittybit/types/{media_response_data_files_item_kind.rb → media_list_response_item_files_item_kind.rb} +1 -1
- data/lib/ittybit/types/{media_list_response_data_item_files_item_object.rb → media_list_response_item_files_item_object.rb} +1 -1
- data/lib/ittybit/types/{media_list_response_data_item_files_item_orientation.rb → media_list_response_item_files_item_orientation.rb} +1 -1
- data/lib/ittybit/types/{media_list_response_data_item_files_item_status.rb → media_list_response_item_files_item_status.rb} +1 -1
- data/lib/ittybit/types/{media_list_response_data_item_kind.rb → media_list_response_item_kind.rb} +1 -1
- data/lib/ittybit/types/media_response.rb +121 -53
- data/lib/ittybit/types/{media_response_data_files_item.rb → media_response_files_item.rb} +21 -21
- data/lib/ittybit/types/media_response_files_item_kind.rb +9 -0
- data/lib/ittybit/types/{media_response_data_files_item_object.rb → media_response_files_item_object.rb} +1 -1
- data/lib/ittybit/types/{media_response_data_files_item_orientation.rb → media_response_files_item_orientation.rb} +1 -1
- data/lib/ittybit/types/{media_response_data_files_item_status.rb → media_response_files_item_status.rb} +1 -1
- data/lib/ittybit/types/{media_response_data_kind.rb → media_response_kind.rb} +1 -1
- data/lib/ittybit/types/signature_response.rb +59 -54
- data/lib/ittybit/types/task_list_response.rb +2 -98
- data/lib/ittybit/types/{task_list_response_data_item.rb → task_list_response_item.rb} +18 -18
- data/lib/ittybit/types/{task_list_response_data_item_kind.rb → task_list_response_item_kind.rb} +1 -1
- data/lib/ittybit/types/{task_list_response_data_item_results.rb → task_list_response_item_results.rb} +5 -5
- data/lib/ittybit/types/{task_list_response_data_item_status.rb → task_list_response_item_status.rb} +1 -1
- data/lib/ittybit/types/task_response.rb +128 -49
- data/lib/ittybit/types/{task_response_data_kind.rb → task_response_kind.rb} +1 -1
- data/lib/ittybit/types/{task_response_data_results.rb → task_response_results.rb} +5 -5
- data/lib/ittybit/types/{task_response_data_status.rb → task_response_status.rb} +1 -1
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +128 -267
- metadata +126 -265
- data/lib/ittybit/automations/types/automations_create_response_data.rb +0 -133
- data/lib/ittybit/automations/types/automations_create_response_error.rb +0 -59
- data/lib/ittybit/automations/types/automations_create_response_links.rb +0 -69
- data/lib/ittybit/automations/types/automations_create_response_meta.rb +0 -98
- data/lib/ittybit/automations/types/automations_create_response_meta_type.rb +0 -10
- data/lib/ittybit/automations/types/automations_delete_response_data.rb +0 -59
- data/lib/ittybit/automations/types/automations_delete_response_error.rb +0 -59
- data/lib/ittybit/automations/types/automations_delete_response_links.rb +0 -69
- data/lib/ittybit/automations/types/automations_delete_response_meta.rb +0 -98
- data/lib/ittybit/automations/types/automations_delete_response_meta_type.rb +0 -10
- data/lib/ittybit/automations/types/automations_get_response_data.rb +0 -133
- data/lib/ittybit/automations/types/automations_get_response_error.rb +0 -59
- data/lib/ittybit/automations/types/automations_get_response_links.rb +0 -69
- data/lib/ittybit/automations/types/automations_get_response_meta.rb +0 -98
- data/lib/ittybit/automations/types/automations_get_response_meta_type.rb +0 -10
- data/lib/ittybit/automations/types/automations_list_response.rb +0 -105
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_conditions_next_item.rb +0 -71
- data/lib/ittybit/automations/types/automations_list_response_error.rb +0 -59
- data/lib/ittybit/automations/types/automations_list_response_links.rb +0 -90
- data/lib/ittybit/automations/types/automations_list_response_meta.rb +0 -130
- data/lib/ittybit/automations/types/automations_list_response_meta_type.rb +0 -10
- data/lib/ittybit/automations/types/automations_update_response_data.rb +0 -133
- data/lib/ittybit/automations/types/automations_update_response_error.rb +0 -59
- data/lib/ittybit/automations/types/automations_update_response_links.rb +0 -69
- data/lib/ittybit/automations/types/automations_update_response_meta.rb +0 -98
- data/lib/ittybit/automations/types/automations_update_response_meta_type.rb +0 -10
- data/lib/ittybit/files/types/files_create_response_data.rb +0 -317
- data/lib/ittybit/files/types/files_create_response_error.rb +0 -59
- data/lib/ittybit/files/types/files_create_response_links.rb +0 -69
- data/lib/ittybit/files/types/files_create_response_meta.rb +0 -98
- data/lib/ittybit/files/types/files_create_response_meta_type.rb +0 -10
- data/lib/ittybit/files/types/files_delete_response_data.rb +0 -59
- data/lib/ittybit/files/types/files_delete_response_error.rb +0 -59
- data/lib/ittybit/files/types/files_delete_response_links.rb +0 -69
- data/lib/ittybit/files/types/files_delete_response_meta.rb +0 -98
- data/lib/ittybit/files/types/files_delete_response_meta_type.rb +0 -10
- data/lib/ittybit/files/types/files_get_response_error.rb +0 -59
- data/lib/ittybit/files/types/files_get_response_links.rb +0 -69
- data/lib/ittybit/files/types/files_get_response_meta.rb +0 -98
- data/lib/ittybit/files/types/files_get_response_meta_type.rb +0 -10
- data/lib/ittybit/files/types/files_list_response.rb +0 -105
- data/lib/ittybit/files/types/files_list_response_data_item.rb +0 -317
- data/lib/ittybit/files/types/files_list_response_error.rb +0 -59
- data/lib/ittybit/files/types/files_list_response_links.rb +0 -90
- data/lib/ittybit/files/types/files_list_response_meta.rb +0 -130
- data/lib/ittybit/files/types/files_list_response_meta_type.rb +0 -10
- data/lib/ittybit/files/types/files_update_response_data.rb +0 -317
- data/lib/ittybit/files/types/files_update_response_error.rb +0 -59
- data/lib/ittybit/files/types/files_update_response_links.rb +0 -69
- data/lib/ittybit/files/types/files_update_response_meta.rb +0 -98
- data/lib/ittybit/files/types/files_update_response_meta_type.rb +0 -10
- data/lib/ittybit/media/types/media_create_response_data.rb +0 -175
- data/lib/ittybit/media/types/media_create_response_data_files_item_kind.rb +0 -11
- data/lib/ittybit/media/types/media_create_response_error.rb +0 -59
- data/lib/ittybit/media/types/media_create_response_links.rb +0 -69
- data/lib/ittybit/media/types/media_create_response_meta.rb +0 -98
- data/lib/ittybit/media/types/media_create_response_meta_type.rb +0 -10
- data/lib/ittybit/media/types/media_delete_response_data.rb +0 -59
- data/lib/ittybit/media/types/media_delete_response_error.rb +0 -59
- data/lib/ittybit/media/types/media_delete_response_links.rb +0 -69
- data/lib/ittybit/media/types/media_delete_response_meta.rb +0 -98
- data/lib/ittybit/media/types/media_delete_response_meta_type.rb +0 -10
- data/lib/ittybit/media/types/media_get_response_data.rb +0 -175
- data/lib/ittybit/media/types/media_get_response_error.rb +0 -59
- data/lib/ittybit/media/types/media_get_response_links.rb +0 -69
- data/lib/ittybit/media/types/media_get_response_meta.rb +0 -98
- data/lib/ittybit/media/types/media_get_response_meta_type.rb +0 -10
- data/lib/ittybit/media/types/media_update_response_data.rb +0 -175
- data/lib/ittybit/media/types/media_update_response_data_files_item_kind.rb +0 -11
- data/lib/ittybit/media/types/media_update_response_error.rb +0 -59
- data/lib/ittybit/media/types/media_update_response_links.rb +0 -69
- data/lib/ittybit/media/types/media_update_response_meta.rb +0 -98
- data/lib/ittybit/media/types/media_update_response_meta_type.rb +0 -10
- data/lib/ittybit/signatures/types/signatures_create_response_data.rb +0 -112
- data/lib/ittybit/signatures/types/signatures_create_response_error.rb +0 -59
- data/lib/ittybit/signatures/types/signatures_create_response_links.rb +0 -69
- data/lib/ittybit/signatures/types/signatures_create_response_meta.rb +0 -98
- data/lib/ittybit/signatures/types/signatures_create_response_meta_type.rb +0 -10
- data/lib/ittybit/tasks/types/tasks_create_response_data.rb +0 -186
- data/lib/ittybit/tasks/types/tasks_create_response_error.rb +0 -59
- data/lib/ittybit/tasks/types/tasks_create_response_links.rb +0 -69
- data/lib/ittybit/tasks/types/tasks_create_response_meta.rb +0 -98
- data/lib/ittybit/tasks/types/tasks_create_response_meta_type.rb +0 -10
- data/lib/ittybit/tasks/types/tasks_get_response_data.rb +0 -186
- data/lib/ittybit/tasks/types/tasks_get_response_error.rb +0 -59
- data/lib/ittybit/tasks/types/tasks_get_response_links.rb +0 -69
- data/lib/ittybit/tasks/types/tasks_get_response_meta.rb +0 -98
- data/lib/ittybit/tasks/types/tasks_get_response_meta_type.rb +0 -10
- data/lib/ittybit/tasks/types/tasks_list_response.rb +0 -105
- data/lib/ittybit/tasks/types/tasks_list_response_error.rb +0 -59
- data/lib/ittybit/tasks/types/tasks_list_response_links.rb +0 -90
- data/lib/ittybit/tasks/types/tasks_list_response_meta.rb +0 -130
- data/lib/ittybit/tasks/types/tasks_list_response_meta_type.rb +0 -10
- data/lib/ittybit/types/automation_list_response_error.rb +0 -57
- data/lib/ittybit/types/automation_list_response_links.rb +0 -88
- data/lib/ittybit/types/automation_list_response_meta.rb +0 -128
- data/lib/ittybit/types/automation_list_response_meta_type.rb +0 -8
- data/lib/ittybit/types/automation_response_data.rb +0 -131
- data/lib/ittybit/types/automation_response_error.rb +0 -57
- data/lib/ittybit/types/automation_response_links.rb +0 -67
- data/lib/ittybit/types/automation_response_meta.rb +0 -96
- data/lib/ittybit/types/automation_response_meta_type.rb +0 -8
- data/lib/ittybit/types/confirmation_response_data.rb +0 -57
- data/lib/ittybit/types/confirmation_response_error.rb +0 -57
- data/lib/ittybit/types/confirmation_response_links.rb +0 -67
- data/lib/ittybit/types/confirmation_response_meta.rb +0 -96
- data/lib/ittybit/types/confirmation_response_meta_type.rb +0 -8
- data/lib/ittybit/types/file_list_response_data_item.rb +0 -315
- data/lib/ittybit/types/file_list_response_error.rb +0 -57
- data/lib/ittybit/types/file_list_response_links.rb +0 -88
- data/lib/ittybit/types/file_list_response_meta.rb +0 -128
- data/lib/ittybit/types/file_list_response_meta_type.rb +0 -8
- data/lib/ittybit/types/file_response_error.rb +0 -57
- data/lib/ittybit/types/file_response_links.rb +0 -67
- data/lib/ittybit/types/file_response_meta.rb +0 -96
- data/lib/ittybit/types/file_response_meta_type.rb +0 -8
- data/lib/ittybit/types/links_list.rb +0 -88
- data/lib/ittybit/types/media_list_response_data_item_files_item_kind.rb +0 -9
- data/lib/ittybit/types/media_list_response_error.rb +0 -57
- data/lib/ittybit/types/media_list_response_links.rb +0 -88
- data/lib/ittybit/types/media_list_response_meta.rb +0 -128
- data/lib/ittybit/types/media_list_response_meta_type.rb +0 -8
- data/lib/ittybit/types/media_response_data.rb +0 -173
- data/lib/ittybit/types/media_response_error.rb +0 -57
- data/lib/ittybit/types/media_response_links.rb +0 -67
- data/lib/ittybit/types/media_response_meta.rb +0 -96
- data/lib/ittybit/types/media_response_meta_type.rb +0 -8
- data/lib/ittybit/types/meta_list.rb +0 -128
- data/lib/ittybit/types/meta_list_type.rb +0 -8
- data/lib/ittybit/types/signature_response_data.rb +0 -110
- data/lib/ittybit/types/signature_response_error.rb +0 -57
- data/lib/ittybit/types/signature_response_links.rb +0 -67
- data/lib/ittybit/types/signature_response_meta.rb +0 -96
- data/lib/ittybit/types/signature_response_meta_type.rb +0 -8
- data/lib/ittybit/types/task_list_response_error.rb +0 -57
- data/lib/ittybit/types/task_list_response_links.rb +0 -88
- data/lib/ittybit/types/task_list_response_meta.rb +0 -128
- data/lib/ittybit/types/task_list_response_meta_type.rb +0 -8
- data/lib/ittybit/types/task_response_data.rb +0 -184
- data/lib/ittybit/types/task_response_error.rb +0 -57
- data/lib/ittybit/types/task_response_links.rb +0 -67
- data/lib/ittybit/types/task_response_meta.rb +0 -96
- data/lib/ittybit/types/task_response_meta_type.rb +0 -8
@@ -1,23 +1,45 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "
|
5
|
-
|
6
|
-
require_relative "
|
3
|
+
require_relative "tasks_create_response_kind"
|
4
|
+
require_relative "tasks_create_response_status"
|
5
|
+
require "date"
|
6
|
+
require_relative "tasks_create_response_results"
|
7
7
|
require "ostruct"
|
8
8
|
require "json"
|
9
9
|
|
10
10
|
module Ittybit
|
11
11
|
class Tasks
|
12
12
|
class TasksCreateResponse
|
13
|
-
# @return [
|
14
|
-
attr_reader :
|
15
|
-
# @return [
|
16
|
-
attr_reader :
|
17
|
-
# @return [Ittybit::Tasks::
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :id
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :object
|
17
|
+
# @return [Ittybit::Tasks::TasksCreateResponseKind]
|
18
|
+
attr_reader :kind
|
19
|
+
# @return [Hash{String => Object}]
|
20
|
+
attr_reader :input
|
21
|
+
# @return [Hash{String => Object}]
|
22
|
+
attr_reader :options
|
23
|
+
# @return [Hash{String => Object}]
|
24
|
+
attr_reader :output
|
25
|
+
# @return [Ittybit::Tasks::TasksCreateResponseStatus]
|
26
|
+
attr_reader :status
|
27
|
+
# @return [Integer]
|
28
|
+
attr_reader :progress
|
29
|
+
# @return [String]
|
18
30
|
attr_reader :error
|
19
|
-
# @return [
|
20
|
-
attr_reader :
|
31
|
+
# @return [String]
|
32
|
+
attr_reader :created_by
|
33
|
+
# @return [DateTime]
|
34
|
+
attr_reader :created
|
35
|
+
# @return [DateTime]
|
36
|
+
attr_reader :updated
|
37
|
+
# @return [String]
|
38
|
+
attr_reader :parent_id
|
39
|
+
# @return [Array<Object>]
|
40
|
+
attr_reader :workflow
|
41
|
+
# @return [Ittybit::Tasks::TasksCreateResponseResults]
|
42
|
+
attr_reader :results
|
21
43
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
22
44
|
attr_reader :additional_properties
|
23
45
|
# @return [Object]
|
@@ -26,19 +48,58 @@ module Ittybit
|
|
26
48
|
|
27
49
|
OMIT = Object.new
|
28
50
|
|
29
|
-
# @param
|
30
|
-
# @param
|
31
|
-
# @param
|
32
|
-
# @param
|
51
|
+
# @param id [String]
|
52
|
+
# @param object [String]
|
53
|
+
# @param kind [Ittybit::Tasks::TasksCreateResponseKind]
|
54
|
+
# @param input [Hash{String => Object}]
|
55
|
+
# @param options [Hash{String => Object}]
|
56
|
+
# @param output [Hash{String => Object}]
|
57
|
+
# @param status [Ittybit::Tasks::TasksCreateResponseStatus]
|
58
|
+
# @param progress [Integer]
|
59
|
+
# @param error [String]
|
60
|
+
# @param created_by [String]
|
61
|
+
# @param created [DateTime]
|
62
|
+
# @param updated [DateTime]
|
63
|
+
# @param parent_id [String]
|
64
|
+
# @param workflow [Array<Object>]
|
65
|
+
# @param results [Ittybit::Tasks::TasksCreateResponseResults]
|
33
66
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
34
67
|
# @return [Ittybit::Tasks::TasksCreateResponse]
|
35
|
-
def initialize(
|
36
|
-
|
37
|
-
@
|
68
|
+
def initialize(id:, object:, kind:, status:, created:, updated:, input: OMIT, options: OMIT, output: OMIT, progress: OMIT,
|
69
|
+
error: OMIT, created_by: OMIT, parent_id: OMIT, workflow: OMIT, results: OMIT, additional_properties: nil)
|
70
|
+
@id = id
|
71
|
+
@object = object
|
72
|
+
@kind = kind
|
73
|
+
@input = input if input != OMIT
|
74
|
+
@options = options if options != OMIT
|
75
|
+
@output = output if output != OMIT
|
76
|
+
@status = status
|
77
|
+
@progress = progress if progress != OMIT
|
38
78
|
@error = error if error != OMIT
|
39
|
-
@
|
79
|
+
@created_by = created_by if created_by != OMIT
|
80
|
+
@created = created
|
81
|
+
@updated = updated
|
82
|
+
@parent_id = parent_id if parent_id != OMIT
|
83
|
+
@workflow = workflow if workflow != OMIT
|
84
|
+
@results = results if results != OMIT
|
40
85
|
@additional_properties = additional_properties
|
41
|
-
@_field_set = {
|
86
|
+
@_field_set = {
|
87
|
+
"id": id,
|
88
|
+
"object": object,
|
89
|
+
"kind": kind,
|
90
|
+
"input": input,
|
91
|
+
"options": options,
|
92
|
+
"output": output,
|
93
|
+
"status": status,
|
94
|
+
"progress": progress,
|
95
|
+
"error": error,
|
96
|
+
"created_by": created_by,
|
97
|
+
"created": created,
|
98
|
+
"updated": updated,
|
99
|
+
"parent_id": parent_id,
|
100
|
+
"workflow": workflow,
|
101
|
+
"results": results
|
102
|
+
}.reject do |_k, v|
|
42
103
|
v == OMIT
|
43
104
|
end
|
44
105
|
end
|
@@ -50,35 +111,42 @@ module Ittybit
|
|
50
111
|
def self.from_json(json_object:)
|
51
112
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
52
113
|
parsed_json = JSON.parse(json_object)
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
error = Ittybit::Tasks::TasksCreateResponseError.from_json(json_object: error)
|
70
|
-
end
|
71
|
-
if parsed_json["links"].nil?
|
72
|
-
links = nil
|
114
|
+
id = parsed_json["id"]
|
115
|
+
object = parsed_json["object"]
|
116
|
+
kind = parsed_json["kind"]
|
117
|
+
input = parsed_json["input"]
|
118
|
+
options = parsed_json["options"]
|
119
|
+
output = parsed_json["output"]
|
120
|
+
status = parsed_json["status"]
|
121
|
+
progress = parsed_json["progress"]
|
122
|
+
error = parsed_json["error"]
|
123
|
+
created_by = parsed_json["created_by"]
|
124
|
+
created = (DateTime.parse(parsed_json["created"]) unless parsed_json["created"].nil?)
|
125
|
+
updated = (DateTime.parse(parsed_json["updated"]) unless parsed_json["updated"].nil?)
|
126
|
+
parent_id = parsed_json["parent_id"]
|
127
|
+
workflow = parsed_json["workflow"]
|
128
|
+
if parsed_json["results"].nil?
|
129
|
+
results = nil
|
73
130
|
else
|
74
|
-
|
75
|
-
|
131
|
+
results = parsed_json["results"].to_json
|
132
|
+
results = Ittybit::Tasks::TasksCreateResponseResults.from_json(json_object: results)
|
76
133
|
end
|
77
134
|
new(
|
78
|
-
|
79
|
-
|
135
|
+
id: id,
|
136
|
+
object: object,
|
137
|
+
kind: kind,
|
138
|
+
input: input,
|
139
|
+
options: options,
|
140
|
+
output: output,
|
141
|
+
status: status,
|
142
|
+
progress: progress,
|
80
143
|
error: error,
|
81
|
-
|
144
|
+
created_by: created_by,
|
145
|
+
created: created,
|
146
|
+
updated: updated,
|
147
|
+
parent_id: parent_id,
|
148
|
+
workflow: workflow,
|
149
|
+
results: results,
|
82
150
|
additional_properties: struct
|
83
151
|
)
|
84
152
|
end
|
@@ -97,10 +165,21 @@ module Ittybit
|
|
97
165
|
# @param obj [Object]
|
98
166
|
# @return [Void]
|
99
167
|
def self.validate_raw(obj:)
|
100
|
-
obj.
|
101
|
-
obj.
|
102
|
-
obj.
|
103
|
-
obj.
|
168
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
169
|
+
obj.object.is_a?(String) != false || raise("Passed value for field obj.object is not the expected type, validation failed.")
|
170
|
+
obj.kind.is_a?(Ittybit::Tasks::TasksCreateResponseKind) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
171
|
+
obj.input&.is_a?(Hash) != false || raise("Passed value for field obj.input is not the expected type, validation failed.")
|
172
|
+
obj.options&.is_a?(Hash) != false || raise("Passed value for field obj.options is not the expected type, validation failed.")
|
173
|
+
obj.output&.is_a?(Hash) != false || raise("Passed value for field obj.output is not the expected type, validation failed.")
|
174
|
+
obj.status.is_a?(Ittybit::Tasks::TasksCreateResponseStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
175
|
+
obj.progress&.is_a?(Integer) != false || raise("Passed value for field obj.progress is not the expected type, validation failed.")
|
176
|
+
obj.error&.is_a?(String) != false || raise("Passed value for field obj.error is not the expected type, validation failed.")
|
177
|
+
obj.created_by&.is_a?(String) != false || raise("Passed value for field obj.created_by is not the expected type, validation failed.")
|
178
|
+
obj.created.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
|
179
|
+
obj.updated.is_a?(DateTime) != false || raise("Passed value for field obj.updated is not the expected type, validation failed.")
|
180
|
+
obj.parent_id&.is_a?(String) != false || raise("Passed value for field obj.parent_id is not the expected type, validation failed.")
|
181
|
+
obj.workflow&.is_a?(Array) != false || raise("Passed value for field obj.workflow is not the expected type, validation failed.")
|
182
|
+
obj.results.nil? || Ittybit::Tasks::TasksCreateResponseResults.validate_raw(obj: obj.results)
|
104
183
|
end
|
105
184
|
end
|
106
185
|
end
|
@@ -5,7 +5,7 @@ require "json"
|
|
5
5
|
|
6
6
|
module Ittybit
|
7
7
|
class Tasks
|
8
|
-
class
|
8
|
+
class TasksCreateResponseResults
|
9
9
|
# @return [Array<Hash{String => Object}>]
|
10
10
|
attr_reader :passed
|
11
11
|
# @return [Array<Hash{String => Object}>]
|
@@ -24,7 +24,7 @@ module Ittybit
|
|
24
24
|
# @param failed [Array<Hash{String => Object}>]
|
25
25
|
# @param continue [Boolean]
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [Ittybit::Tasks::
|
27
|
+
# @return [Ittybit::Tasks::TasksCreateResponseResults]
|
28
28
|
def initialize(passed: OMIT, failed: OMIT, continue: OMIT, additional_properties: nil)
|
29
29
|
@passed = passed if passed != OMIT
|
30
30
|
@failed = failed if failed != OMIT
|
@@ -35,10 +35,10 @@ module Ittybit
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
# Deserialize a JSON object to an instance of
|
38
|
+
# Deserialize a JSON object to an instance of TasksCreateResponseResults
|
39
39
|
#
|
40
40
|
# @param json_object [String]
|
41
|
-
# @return [Ittybit::Tasks::
|
41
|
+
# @return [Ittybit::Tasks::TasksCreateResponseResults]
|
42
42
|
def self.from_json(json_object:)
|
43
43
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
44
44
|
parsed_json = JSON.parse(json_object)
|
@@ -53,7 +53,7 @@ module Ittybit
|
|
53
53
|
)
|
54
54
|
end
|
55
55
|
|
56
|
-
# Serialize an instance of
|
56
|
+
# Serialize an instance of TasksCreateResponseResults to a JSON object
|
57
57
|
#
|
58
58
|
# @return [String]
|
59
59
|
def to_json(*_args)
|
@@ -1,23 +1,45 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "
|
5
|
-
|
6
|
-
require_relative "
|
3
|
+
require_relative "tasks_get_response_kind"
|
4
|
+
require_relative "tasks_get_response_status"
|
5
|
+
require "date"
|
6
|
+
require_relative "tasks_get_response_results"
|
7
7
|
require "ostruct"
|
8
8
|
require "json"
|
9
9
|
|
10
10
|
module Ittybit
|
11
11
|
class Tasks
|
12
12
|
class TasksGetResponse
|
13
|
-
# @return [
|
14
|
-
attr_reader :
|
15
|
-
# @return [
|
16
|
-
attr_reader :
|
17
|
-
# @return [Ittybit::Tasks::
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :id
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :object
|
17
|
+
# @return [Ittybit::Tasks::TasksGetResponseKind]
|
18
|
+
attr_reader :kind
|
19
|
+
# @return [Hash{String => Object}]
|
20
|
+
attr_reader :input
|
21
|
+
# @return [Hash{String => Object}]
|
22
|
+
attr_reader :options
|
23
|
+
# @return [Hash{String => Object}]
|
24
|
+
attr_reader :output
|
25
|
+
# @return [Ittybit::Tasks::TasksGetResponseStatus]
|
26
|
+
attr_reader :status
|
27
|
+
# @return [Integer]
|
28
|
+
attr_reader :progress
|
29
|
+
# @return [String]
|
18
30
|
attr_reader :error
|
19
|
-
# @return [
|
20
|
-
attr_reader :
|
31
|
+
# @return [String]
|
32
|
+
attr_reader :created_by
|
33
|
+
# @return [DateTime]
|
34
|
+
attr_reader :created
|
35
|
+
# @return [DateTime]
|
36
|
+
attr_reader :updated
|
37
|
+
# @return [String]
|
38
|
+
attr_reader :parent_id
|
39
|
+
# @return [Array<Object>]
|
40
|
+
attr_reader :workflow
|
41
|
+
# @return [Ittybit::Tasks::TasksGetResponseResults]
|
42
|
+
attr_reader :results
|
21
43
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
22
44
|
attr_reader :additional_properties
|
23
45
|
# @return [Object]
|
@@ -26,19 +48,58 @@ module Ittybit
|
|
26
48
|
|
27
49
|
OMIT = Object.new
|
28
50
|
|
29
|
-
# @param
|
30
|
-
# @param
|
31
|
-
# @param
|
32
|
-
# @param
|
51
|
+
# @param id [String]
|
52
|
+
# @param object [String]
|
53
|
+
# @param kind [Ittybit::Tasks::TasksGetResponseKind]
|
54
|
+
# @param input [Hash{String => Object}]
|
55
|
+
# @param options [Hash{String => Object}]
|
56
|
+
# @param output [Hash{String => Object}]
|
57
|
+
# @param status [Ittybit::Tasks::TasksGetResponseStatus]
|
58
|
+
# @param progress [Integer]
|
59
|
+
# @param error [String]
|
60
|
+
# @param created_by [String]
|
61
|
+
# @param created [DateTime]
|
62
|
+
# @param updated [DateTime]
|
63
|
+
# @param parent_id [String]
|
64
|
+
# @param workflow [Array<Object>]
|
65
|
+
# @param results [Ittybit::Tasks::TasksGetResponseResults]
|
33
66
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
34
67
|
# @return [Ittybit::Tasks::TasksGetResponse]
|
35
|
-
def initialize(
|
36
|
-
|
37
|
-
@
|
68
|
+
def initialize(id:, object:, kind:, status:, created:, updated:, input: OMIT, options: OMIT, output: OMIT, progress: OMIT,
|
69
|
+
error: OMIT, created_by: OMIT, parent_id: OMIT, workflow: OMIT, results: OMIT, additional_properties: nil)
|
70
|
+
@id = id
|
71
|
+
@object = object
|
72
|
+
@kind = kind
|
73
|
+
@input = input if input != OMIT
|
74
|
+
@options = options if options != OMIT
|
75
|
+
@output = output if output != OMIT
|
76
|
+
@status = status
|
77
|
+
@progress = progress if progress != OMIT
|
38
78
|
@error = error if error != OMIT
|
39
|
-
@
|
79
|
+
@created_by = created_by if created_by != OMIT
|
80
|
+
@created = created
|
81
|
+
@updated = updated
|
82
|
+
@parent_id = parent_id if parent_id != OMIT
|
83
|
+
@workflow = workflow if workflow != OMIT
|
84
|
+
@results = results if results != OMIT
|
40
85
|
@additional_properties = additional_properties
|
41
|
-
@_field_set = {
|
86
|
+
@_field_set = {
|
87
|
+
"id": id,
|
88
|
+
"object": object,
|
89
|
+
"kind": kind,
|
90
|
+
"input": input,
|
91
|
+
"options": options,
|
92
|
+
"output": output,
|
93
|
+
"status": status,
|
94
|
+
"progress": progress,
|
95
|
+
"error": error,
|
96
|
+
"created_by": created_by,
|
97
|
+
"created": created,
|
98
|
+
"updated": updated,
|
99
|
+
"parent_id": parent_id,
|
100
|
+
"workflow": workflow,
|
101
|
+
"results": results
|
102
|
+
}.reject do |_k, v|
|
42
103
|
v == OMIT
|
43
104
|
end
|
44
105
|
end
|
@@ -50,35 +111,42 @@ module Ittybit
|
|
50
111
|
def self.from_json(json_object:)
|
51
112
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
52
113
|
parsed_json = JSON.parse(json_object)
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
error = Ittybit::Tasks::TasksGetResponseError.from_json(json_object: error)
|
70
|
-
end
|
71
|
-
if parsed_json["links"].nil?
|
72
|
-
links = nil
|
114
|
+
id = parsed_json["id"]
|
115
|
+
object = parsed_json["object"]
|
116
|
+
kind = parsed_json["kind"]
|
117
|
+
input = parsed_json["input"]
|
118
|
+
options = parsed_json["options"]
|
119
|
+
output = parsed_json["output"]
|
120
|
+
status = parsed_json["status"]
|
121
|
+
progress = parsed_json["progress"]
|
122
|
+
error = parsed_json["error"]
|
123
|
+
created_by = parsed_json["created_by"]
|
124
|
+
created = (DateTime.parse(parsed_json["created"]) unless parsed_json["created"].nil?)
|
125
|
+
updated = (DateTime.parse(parsed_json["updated"]) unless parsed_json["updated"].nil?)
|
126
|
+
parent_id = parsed_json["parent_id"]
|
127
|
+
workflow = parsed_json["workflow"]
|
128
|
+
if parsed_json["results"].nil?
|
129
|
+
results = nil
|
73
130
|
else
|
74
|
-
|
75
|
-
|
131
|
+
results = parsed_json["results"].to_json
|
132
|
+
results = Ittybit::Tasks::TasksGetResponseResults.from_json(json_object: results)
|
76
133
|
end
|
77
134
|
new(
|
78
|
-
|
79
|
-
|
135
|
+
id: id,
|
136
|
+
object: object,
|
137
|
+
kind: kind,
|
138
|
+
input: input,
|
139
|
+
options: options,
|
140
|
+
output: output,
|
141
|
+
status: status,
|
142
|
+
progress: progress,
|
80
143
|
error: error,
|
81
|
-
|
144
|
+
created_by: created_by,
|
145
|
+
created: created,
|
146
|
+
updated: updated,
|
147
|
+
parent_id: parent_id,
|
148
|
+
workflow: workflow,
|
149
|
+
results: results,
|
82
150
|
additional_properties: struct
|
83
151
|
)
|
84
152
|
end
|
@@ -97,10 +165,21 @@ module Ittybit
|
|
97
165
|
# @param obj [Object]
|
98
166
|
# @return [Void]
|
99
167
|
def self.validate_raw(obj:)
|
100
|
-
obj.
|
101
|
-
obj.
|
102
|
-
obj.
|
103
|
-
obj.
|
168
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
169
|
+
obj.object.is_a?(String) != false || raise("Passed value for field obj.object is not the expected type, validation failed.")
|
170
|
+
obj.kind.is_a?(Ittybit::Tasks::TasksGetResponseKind) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
171
|
+
obj.input&.is_a?(Hash) != false || raise("Passed value for field obj.input is not the expected type, validation failed.")
|
172
|
+
obj.options&.is_a?(Hash) != false || raise("Passed value for field obj.options is not the expected type, validation failed.")
|
173
|
+
obj.output&.is_a?(Hash) != false || raise("Passed value for field obj.output is not the expected type, validation failed.")
|
174
|
+
obj.status.is_a?(Ittybit::Tasks::TasksGetResponseStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
175
|
+
obj.progress&.is_a?(Integer) != false || raise("Passed value for field obj.progress is not the expected type, validation failed.")
|
176
|
+
obj.error&.is_a?(String) != false || raise("Passed value for field obj.error is not the expected type, validation failed.")
|
177
|
+
obj.created_by&.is_a?(String) != false || raise("Passed value for field obj.created_by is not the expected type, validation failed.")
|
178
|
+
obj.created.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
|
179
|
+
obj.updated.is_a?(DateTime) != false || raise("Passed value for field obj.updated is not the expected type, validation failed.")
|
180
|
+
obj.parent_id&.is_a?(String) != false || raise("Passed value for field obj.parent_id is not the expected type, validation failed.")
|
181
|
+
obj.workflow&.is_a?(Array) != false || raise("Passed value for field obj.workflow is not the expected type, validation failed.")
|
182
|
+
obj.results.nil? || Ittybit::Tasks::TasksGetResponseResults.validate_raw(obj: obj.results)
|
104
183
|
end
|
105
184
|
end
|
106
185
|
end
|
data/lib/ittybit/tasks/types/{tasks_get_response_data_results.rb → tasks_get_response_results.rb}
RENAMED
@@ -5,7 +5,7 @@ require "json"
|
|
5
5
|
|
6
6
|
module Ittybit
|
7
7
|
class Tasks
|
8
|
-
class
|
8
|
+
class TasksGetResponseResults
|
9
9
|
# @return [Array<Hash{String => Object}>]
|
10
10
|
attr_reader :passed
|
11
11
|
# @return [Array<Hash{String => Object}>]
|
@@ -24,7 +24,7 @@ module Ittybit
|
|
24
24
|
# @param failed [Array<Hash{String => Object}>]
|
25
25
|
# @param continue [Boolean]
|
26
26
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
27
|
-
# @return [Ittybit::Tasks::
|
27
|
+
# @return [Ittybit::Tasks::TasksGetResponseResults]
|
28
28
|
def initialize(passed: OMIT, failed: OMIT, continue: OMIT, additional_properties: nil)
|
29
29
|
@passed = passed if passed != OMIT
|
30
30
|
@failed = failed if failed != OMIT
|
@@ -35,10 +35,10 @@ module Ittybit
|
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
# Deserialize a JSON object to an instance of
|
38
|
+
# Deserialize a JSON object to an instance of TasksGetResponseResults
|
39
39
|
#
|
40
40
|
# @param json_object [String]
|
41
|
-
# @return [Ittybit::Tasks::
|
41
|
+
# @return [Ittybit::Tasks::TasksGetResponseResults]
|
42
42
|
def self.from_json(json_object:)
|
43
43
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
44
44
|
parsed_json = JSON.parse(json_object)
|
@@ -53,7 +53,7 @@ module Ittybit
|
|
53
53
|
)
|
54
54
|
end
|
55
55
|
|
56
|
-
# Serialize an instance of
|
56
|
+
# Serialize an instance of TasksGetResponseResults to a JSON object
|
57
57
|
#
|
58
58
|
# @return [String]
|
59
59
|
def to_json(*_args)
|