ittybit 0.8.14 → 0.9.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 +39 -36
- 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 +107 -0
- data/lib/ittybit/automations/types/automations_create_response_data.rb +133 -0
- data/lib/ittybit/automations/types/automations_create_response_data_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_create_response_data_trigger.rb +67 -0
- data/lib/ittybit/automations/types/automations_create_response_data_workflow_item.rb +61 -0
- data/lib/ittybit/automations/types/automations_create_response_data_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_create_response_data_workflow_item_conditions_conditions_item.rb +72 -0
- data/lib/ittybit/automations/types/automations_create_response_data_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_create_response_data_workflow_item_ref.rb +83 -0
- data/lib/ittybit/automations/types/automations_create_response_data_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_create_response_data_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_create_response_error.rb +59 -0
- data/lib/ittybit/automations/types/automations_create_response_links.rb +69 -0
- data/lib/ittybit/automations/types/automations_create_response_meta.rb +98 -0
- data/lib/ittybit/automations/types/automations_create_response_meta_type.rb +10 -0
- data/lib/ittybit/automations/types/automations_delete_response.rb +107 -0
- data/lib/ittybit/automations/types/automations_delete_response_data.rb +59 -0
- data/lib/ittybit/automations/types/automations_delete_response_error.rb +59 -0
- data/lib/ittybit/automations/types/automations_delete_response_links.rb +69 -0
- data/lib/ittybit/automations/types/automations_delete_response_meta.rb +98 -0
- data/lib/ittybit/automations/types/automations_delete_response_meta_type.rb +10 -0
- data/lib/ittybit/automations/types/automations_get_response.rb +107 -0
- data/lib/ittybit/automations/types/automations_get_response_data.rb +133 -0
- data/lib/ittybit/automations/types/automations_get_response_data_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_get_response_data_trigger.rb +67 -0
- data/lib/ittybit/automations/types/automations_get_response_data_workflow_item.rb +61 -0
- data/lib/ittybit/automations/types/automations_get_response_data_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_get_response_data_workflow_item_conditions_conditions_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_get_response_data_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_get_response_data_workflow_item_ref.rb +83 -0
- data/lib/ittybit/automations/types/automations_get_response_data_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_get_response_data_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_get_response_error.rb +59 -0
- data/lib/ittybit/automations/types/automations_get_response_links.rb +69 -0
- data/lib/ittybit/automations/types/automations_get_response_meta.rb +98 -0
- data/lib/ittybit/automations/types/automations_get_response_meta_type.rb +10 -0
- data/lib/ittybit/automations/types/automations_list_response.rb +105 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item.rb +133 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_trigger.rb +68 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item.rb +61 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_conditions_conditions_item.rb +72 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_ref.rb +83 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_list_response_error.rb +59 -0
- data/lib/ittybit/automations/types/automations_list_response_links.rb +90 -0
- data/lib/ittybit/automations/types/automations_list_response_meta.rb +130 -0
- data/lib/ittybit/automations/types/automations_list_response_meta_type.rb +10 -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 +107 -0
- data/lib/ittybit/automations/types/automations_update_response_data.rb +133 -0
- data/lib/ittybit/automations/types/automations_update_response_data_status.rb +10 -0
- data/lib/ittybit/automations/types/automations_update_response_data_trigger.rb +67 -0
- data/lib/ittybit/automations/types/automations_update_response_data_workflow_item.rb +61 -0
- data/lib/ittybit/automations/types/automations_update_response_data_workflow_item_conditions.rb +86 -0
- data/lib/ittybit/automations/types/automations_update_response_data_workflow_item_conditions_conditions_item.rb +72 -0
- data/lib/ittybit/automations/types/automations_update_response_data_workflow_item_conditions_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_update_response_data_workflow_item_ref.rb +83 -0
- data/lib/ittybit/automations/types/automations_update_response_data_workflow_item_ref_kind.rb +20 -0
- data/lib/ittybit/automations/types/automations_update_response_data_workflow_item_ref_next_item.rb +71 -0
- data/lib/ittybit/automations/types/automations_update_response_error.rb +59 -0
- data/lib/ittybit/automations/types/automations_update_response_links.rb +69 -0
- data/lib/ittybit/automations/types/automations_update_response_meta.rb +98 -0
- data/lib/ittybit/automations/types/automations_update_response_meta_type.rb +10 -0
- data/lib/ittybit/files/client.rb +25 -23
- data/lib/ittybit/files/types/files_create_response.rb +107 -0
- data/lib/ittybit/files/types/files_create_response_data.rb +317 -0
- data/lib/ittybit/files/types/files_create_response_data_kind.rb +11 -0
- data/lib/ittybit/files/types/files_create_response_data_object.rb +11 -0
- data/lib/ittybit/files/types/files_create_response_data_status.rb +12 -0
- data/lib/ittybit/files/types/files_create_response_error.rb +59 -0
- data/lib/ittybit/files/types/files_create_response_links.rb +69 -0
- data/lib/ittybit/files/types/files_create_response_meta.rb +98 -0
- data/lib/ittybit/files/types/files_create_response_meta_type.rb +10 -0
- data/lib/ittybit/files/types/files_delete_response.rb +107 -0
- data/lib/ittybit/files/types/files_delete_response_data.rb +59 -0
- data/lib/ittybit/files/types/files_delete_response_error.rb +59 -0
- data/lib/ittybit/files/types/files_delete_response_links.rb +69 -0
- data/lib/ittybit/files/types/files_delete_response_meta.rb +98 -0
- data/lib/ittybit/files/types/files_delete_response_meta_type.rb +10 -0
- data/lib/ittybit/files/types/files_get_response.rb +107 -0
- data/lib/ittybit/files/types/files_get_response_data.rb +317 -0
- data/lib/ittybit/files/types/files_get_response_data_kind.rb +11 -0
- data/lib/ittybit/files/types/files_get_response_data_object.rb +11 -0
- data/lib/ittybit/files/types/files_get_response_data_status.rb +12 -0
- data/lib/ittybit/files/types/files_get_response_error.rb +59 -0
- data/lib/ittybit/files/types/files_get_response_links.rb +69 -0
- data/lib/ittybit/files/types/files_get_response_meta.rb +98 -0
- data/lib/ittybit/files/types/files_get_response_meta_type.rb +10 -0
- data/lib/ittybit/files/types/files_list_response.rb +105 -0
- data/lib/ittybit/files/types/files_list_response_data_item.rb +317 -0
- data/lib/ittybit/files/types/files_list_response_data_item_kind.rb +11 -0
- data/lib/ittybit/files/types/files_list_response_data_item_object.rb +11 -0
- data/lib/ittybit/files/types/files_list_response_data_item_status.rb +12 -0
- data/lib/ittybit/files/types/files_list_response_error.rb +59 -0
- data/lib/ittybit/files/types/files_list_response_links.rb +90 -0
- data/lib/ittybit/files/types/files_list_response_meta.rb +130 -0
- data/lib/ittybit/files/types/files_list_response_meta_type.rb +10 -0
- data/lib/ittybit/files/types/files_update_response.rb +107 -0
- data/lib/ittybit/files/types/files_update_response_data.rb +317 -0
- data/lib/ittybit/files/types/files_update_response_data_kind.rb +11 -0
- data/lib/ittybit/files/types/files_update_response_data_object.rb +11 -0
- data/lib/ittybit/files/types/files_update_response_data_status.rb +12 -0
- data/lib/ittybit/files/types/files_update_response_error.rb +59 -0
- data/lib/ittybit/files/types/files_update_response_links.rb +69 -0
- data/lib/ittybit/files/types/files_update_response_meta.rb +98 -0
- data/lib/ittybit/files/types/files_update_response_meta_type.rb +10 -0
- data/lib/ittybit/media/client.rb +20 -18
- data/lib/ittybit/media/types/media_create_response.rb +107 -0
- data/lib/ittybit/media/types/media_create_response_data.rb +175 -0
- data/lib/ittybit/media/types/media_create_response_data_files_item.rb +262 -0
- data/lib/ittybit/media/types/media_create_response_data_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/media_create_response_data_files_item_object.rb +11 -0
- data/lib/ittybit/media/types/media_create_response_data_files_item_orientation.rb +11 -0
- data/lib/ittybit/media/types/media_create_response_data_files_item_status.rb +12 -0
- data/lib/ittybit/media/types/media_create_response_data_kind.rb +11 -0
- data/lib/ittybit/media/types/media_create_response_error.rb +59 -0
- data/lib/ittybit/media/types/media_create_response_links.rb +69 -0
- data/lib/ittybit/media/types/media_create_response_meta.rb +98 -0
- data/lib/ittybit/media/types/media_create_response_meta_type.rb +10 -0
- data/lib/ittybit/media/types/media_delete_response.rb +107 -0
- data/lib/ittybit/media/types/media_delete_response_data.rb +59 -0
- data/lib/ittybit/media/types/media_delete_response_error.rb +59 -0
- data/lib/ittybit/media/types/media_delete_response_links.rb +69 -0
- data/lib/ittybit/media/types/media_delete_response_meta.rb +98 -0
- data/lib/ittybit/media/types/media_delete_response_meta_type.rb +10 -0
- data/lib/ittybit/media/types/media_get_response.rb +107 -0
- data/lib/ittybit/media/types/media_get_response_data.rb +175 -0
- data/lib/ittybit/media/types/media_get_response_data_files_item.rb +262 -0
- data/lib/ittybit/media/types/media_get_response_data_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/media_get_response_data_files_item_object.rb +11 -0
- data/lib/ittybit/media/types/media_get_response_data_files_item_orientation.rb +11 -0
- data/lib/ittybit/media/types/media_get_response_data_files_item_status.rb +12 -0
- data/lib/ittybit/media/types/media_get_response_data_kind.rb +11 -0
- data/lib/ittybit/media/types/media_get_response_error.rb +59 -0
- data/lib/ittybit/media/types/media_get_response_links.rb +69 -0
- data/lib/ittybit/media/types/media_get_response_meta.rb +98 -0
- data/lib/ittybit/media/types/media_get_response_meta_type.rb +10 -0
- data/lib/ittybit/media/types/media_update_response.rb +107 -0
- data/lib/ittybit/media/types/media_update_response_data.rb +175 -0
- data/lib/ittybit/media/types/media_update_response_data_files_item.rb +262 -0
- data/lib/ittybit/media/types/media_update_response_data_files_item_kind.rb +11 -0
- data/lib/ittybit/media/types/media_update_response_data_files_item_object.rb +11 -0
- data/lib/ittybit/media/types/media_update_response_data_files_item_orientation.rb +11 -0
- data/lib/ittybit/media/types/media_update_response_data_files_item_status.rb +12 -0
- data/lib/ittybit/media/types/media_update_response_data_kind.rb +11 -0
- data/lib/ittybit/media/types/media_update_response_error.rb +59 -0
- data/lib/ittybit/media/types/media_update_response_links.rb +69 -0
- data/lib/ittybit/media/types/media_update_response_meta.rb +98 -0
- data/lib/ittybit/media/types/media_update_response_meta_type.rb +10 -0
- data/lib/ittybit/signatures/client.rb +5 -5
- data/lib/ittybit/signatures/types/signatures_create_response.rb +107 -0
- data/lib/ittybit/signatures/types/signatures_create_response_data.rb +112 -0
- data/lib/ittybit/signatures/types/signatures_create_response_error.rb +59 -0
- data/lib/ittybit/signatures/types/signatures_create_response_links.rb +69 -0
- data/lib/ittybit/signatures/types/signatures_create_response_meta.rb +98 -0
- data/lib/ittybit/signatures/types/signatures_create_response_meta_type.rb +10 -0
- data/lib/ittybit/tasks/client.rb +15 -14
- data/lib/ittybit/tasks/types/tasks_create_response.rb +107 -0
- data/lib/ittybit/tasks/types/tasks_create_response_data.rb +186 -0
- data/lib/ittybit/tasks/types/tasks_create_response_data_kind.rb +23 -0
- data/lib/ittybit/tasks/types/tasks_create_response_data_results.rb +76 -0
- data/lib/ittybit/tasks/types/tasks_create_response_data_status.rb +16 -0
- data/lib/ittybit/tasks/types/tasks_create_response_error.rb +59 -0
- data/lib/ittybit/tasks/types/tasks_create_response_links.rb +69 -0
- data/lib/ittybit/tasks/types/tasks_create_response_meta.rb +98 -0
- data/lib/ittybit/tasks/types/tasks_create_response_meta_type.rb +10 -0
- data/lib/ittybit/tasks/types/tasks_get_response.rb +107 -0
- data/lib/ittybit/tasks/types/tasks_get_response_data.rb +186 -0
- data/lib/ittybit/tasks/types/tasks_get_response_data_kind.rb +23 -0
- data/lib/ittybit/tasks/types/tasks_get_response_data_results.rb +76 -0
- data/lib/ittybit/tasks/types/tasks_get_response_data_status.rb +16 -0
- data/lib/ittybit/tasks/types/tasks_get_response_error.rb +59 -0
- data/lib/ittybit/tasks/types/tasks_get_response_links.rb +69 -0
- data/lib/ittybit/tasks/types/tasks_get_response_meta.rb +98 -0
- data/lib/ittybit/tasks/types/tasks_get_response_meta_type.rb +10 -0
- data/lib/ittybit/tasks/types/tasks_list_response.rb +105 -0
- data/lib/ittybit/tasks/types/tasks_list_response_data_item.rb +186 -0
- data/lib/ittybit/tasks/types/tasks_list_response_data_item_kind.rb +23 -0
- data/lib/ittybit/tasks/types/tasks_list_response_data_item_results.rb +76 -0
- data/lib/ittybit/tasks/types/tasks_list_response_data_item_status.rb +16 -0
- data/lib/ittybit/tasks/types/tasks_list_response_error.rb +59 -0
- data/lib/ittybit/tasks/types/tasks_list_response_links.rb +90 -0
- data/lib/ittybit/tasks/types/tasks_list_response_meta.rb +130 -0
- data/lib/ittybit/tasks/types/tasks_list_response_meta_type.rb +10 -0
- data/lib/ittybit/types/automation_list_response.rb +19 -19
- data/lib/ittybit/types/automation_list_response_data_item.rb +131 -0
- data/lib/ittybit/types/automation_list_response_data_item_status.rb +8 -0
- data/lib/ittybit/types/automation_list_response_data_item_trigger.rb +66 -0
- data/lib/ittybit/types/automation_list_response_data_item_workflow_item.rb +57 -0
- data/lib/ittybit/types/automation_list_response_data_item_workflow_item_conditions.rb +84 -0
- data/lib/ittybit/types/automation_list_response_data_item_workflow_item_conditions_conditions_item.rb +70 -0
- data/lib/ittybit/types/automation_list_response_data_item_workflow_item_conditions_next_item.rb +69 -0
- data/lib/ittybit/types/automation_list_response_data_item_workflow_item_ref.rb +81 -0
- data/lib/ittybit/types/automation_list_response_data_item_workflow_item_ref_kind.rb +18 -0
- data/lib/ittybit/types/automation_list_response_data_item_workflow_item_ref_next_item.rb +69 -0
- data/lib/ittybit/types/automation_list_response_error.rb +57 -0
- data/lib/ittybit/types/automation_list_response_links.rb +88 -0
- data/lib/ittybit/types/automation_list_response_meta.rb +128 -0
- data/lib/ittybit/types/automation_list_response_meta_type.rb +8 -0
- data/lib/ittybit/types/automation_response.rb +25 -20
- data/lib/ittybit/types/automation_response_data.rb +131 -0
- data/lib/ittybit/types/automation_response_data_status.rb +8 -0
- data/lib/ittybit/types/automation_response_data_trigger.rb +65 -0
- data/lib/ittybit/types/automation_response_data_workflow_item.rb +54 -0
- data/lib/ittybit/types/automation_response_data_workflow_item_conditions.rb +84 -0
- data/lib/ittybit/types/automation_response_data_workflow_item_conditions_conditions_item.rb +69 -0
- data/lib/ittybit/types/automation_response_data_workflow_item_conditions_next_item.rb +69 -0
- data/lib/ittybit/types/automation_response_data_workflow_item_ref.rb +80 -0
- data/lib/ittybit/types/automation_response_data_workflow_item_ref_kind.rb +18 -0
- data/lib/ittybit/types/automation_response_data_workflow_item_ref_next_item.rb +69 -0
- data/lib/ittybit/types/automation_response_error.rb +57 -0
- data/lib/ittybit/types/automation_response_links.rb +67 -0
- data/lib/ittybit/types/automation_response_meta.rb +96 -0
- data/lib/ittybit/types/automation_response_meta_type.rb +8 -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 +25 -20
- data/lib/ittybit/types/confirmation_response_data.rb +57 -0
- data/lib/ittybit/types/confirmation_response_error.rb +57 -0
- data/lib/ittybit/types/confirmation_response_links.rb +67 -0
- data/lib/ittybit/types/confirmation_response_meta.rb +96 -0
- data/lib/ittybit/types/confirmation_response_meta_type.rb +8 -0
- 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 +19 -19
- data/lib/ittybit/types/file_list_response_data_item.rb +315 -0
- data/lib/ittybit/types/file_list_response_data_item_kind.rb +9 -0
- data/lib/ittybit/types/file_list_response_data_item_object.rb +9 -0
- data/lib/ittybit/types/file_list_response_data_item_status.rb +10 -0
- data/lib/ittybit/types/file_list_response_error.rb +57 -0
- data/lib/ittybit/types/file_list_response_links.rb +88 -0
- data/lib/ittybit/types/file_list_response_meta.rb +128 -0
- data/lib/ittybit/types/file_list_response_meta_type.rb +8 -0
- data/lib/ittybit/types/file_response.rb +25 -20
- data/lib/ittybit/types/file_response_data.rb +315 -0
- data/lib/ittybit/types/file_response_data_kind.rb +9 -0
- data/lib/ittybit/types/file_response_data_object.rb +9 -0
- data/lib/ittybit/types/file_response_data_status.rb +10 -0
- data/lib/ittybit/types/file_response_error.rb +57 -0
- data/lib/ittybit/types/file_response_links.rb +67 -0
- data/lib/ittybit/types/file_response_meta.rb +96 -0
- data/lib/ittybit/types/file_response_meta_type.rb +8 -0
- data/lib/ittybit/types/kind.rb +21 -0
- 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 +19 -19
- data/lib/ittybit/types/media_list_response_data_item.rb +173 -0
- data/lib/ittybit/types/media_list_response_data_item_files_item.rb +260 -0
- data/lib/ittybit/types/media_list_response_data_item_files_item_kind.rb +9 -0
- data/lib/ittybit/types/media_list_response_data_item_files_item_object.rb +9 -0
- data/lib/ittybit/types/media_list_response_data_item_files_item_orientation.rb +9 -0
- data/lib/ittybit/types/media_list_response_data_item_files_item_status.rb +10 -0
- data/lib/ittybit/types/media_list_response_data_item_kind.rb +9 -0
- data/lib/ittybit/types/media_list_response_error.rb +57 -0
- data/lib/ittybit/types/media_list_response_links.rb +88 -0
- data/lib/ittybit/types/media_list_response_meta.rb +128 -0
- data/lib/ittybit/types/media_list_response_meta_type.rb +8 -0
- data/lib/ittybit/types/media_response.rb +25 -20
- data/lib/ittybit/types/media_response_data.rb +173 -0
- data/lib/ittybit/types/media_response_data_files_item.rb +260 -0
- data/lib/ittybit/types/media_response_data_files_item_kind.rb +9 -0
- data/lib/ittybit/types/media_response_data_files_item_object.rb +9 -0
- data/lib/ittybit/types/media_response_data_files_item_orientation.rb +9 -0
- data/lib/ittybit/types/media_response_data_files_item_status.rb +10 -0
- data/lib/ittybit/types/media_response_data_kind.rb +9 -0
- data/lib/ittybit/types/media_response_error.rb +57 -0
- data/lib/ittybit/types/media_response_links.rb +67 -0
- data/lib/ittybit/types/media_response_meta.rb +96 -0
- data/lib/ittybit/types/media_response_meta_type.rb +8 -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 +25 -20
- data/lib/ittybit/types/signature_response_data.rb +110 -0
- data/lib/ittybit/types/signature_response_error.rb +57 -0
- data/lib/ittybit/types/signature_response_links.rb +67 -0
- data/lib/ittybit/types/signature_response_meta.rb +96 -0
- data/lib/ittybit/types/signature_response_meta_type.rb +8 -0
- data/lib/ittybit/types/status.rb +14 -0
- data/lib/ittybit/types/task_list_response.rb +19 -19
- data/lib/ittybit/types/task_list_response_data_item.rb +184 -0
- data/lib/ittybit/types/task_list_response_data_item_kind.rb +21 -0
- data/lib/ittybit/types/task_list_response_data_item_results.rb +74 -0
- data/lib/ittybit/types/task_list_response_data_item_status.rb +14 -0
- data/lib/ittybit/types/task_list_response_error.rb +57 -0
- data/lib/ittybit/types/task_list_response_links.rb +88 -0
- data/lib/ittybit/types/task_list_response_meta.rb +128 -0
- data/lib/ittybit/types/task_list_response_meta_type.rb +8 -0
- data/lib/ittybit/types/task_response.rb +25 -20
- data/lib/ittybit/types/task_response_data.rb +184 -0
- data/lib/ittybit/types/task_response_data_kind.rb +21 -0
- data/lib/ittybit/types/task_response_data_results.rb +74 -0
- data/lib/ittybit/types/task_response_data_status.rb +14 -0
- data/lib/ittybit/types/task_response_error.rb +57 -0
- data/lib/ittybit/types/task_response_links.rb +67 -0
- data/lib/ittybit/types/task_response_meta.rb +96 -0
- data/lib/ittybit/types/task_response_meta_type.rb +8 -0
- data/lib/requests.rb +2 -2
- data/lib/types_export.rb +300 -2
- metadata +299 -2
data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_conditions.rb
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "automations_list_response_data_item_workflow_item_conditions_conditions_item"
|
4
|
+
require_relative "automations_list_response_data_item_workflow_item_conditions_next_item"
|
5
|
+
require "ostruct"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module Ittybit
|
9
|
+
class Automations
|
10
|
+
class AutomationsListResponseDataItemWorkflowItemConditions
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :kind
|
13
|
+
# @return [Array<Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem>]
|
14
|
+
attr_reader :conditions
|
15
|
+
# @return [Array<Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsNextItem>]
|
16
|
+
attr_reader :next_
|
17
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
18
|
+
attr_reader :additional_properties
|
19
|
+
# @return [Object]
|
20
|
+
attr_reader :_field_set
|
21
|
+
protected :_field_set
|
22
|
+
|
23
|
+
OMIT = Object.new
|
24
|
+
|
25
|
+
# @param kind [String]
|
26
|
+
# @param conditions [Array<Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem>]
|
27
|
+
# @param next_ [Array<Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsNextItem>]
|
28
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditions]
|
30
|
+
def initialize(kind:, conditions:, next_: OMIT, additional_properties: nil)
|
31
|
+
@kind = kind
|
32
|
+
@conditions = conditions
|
33
|
+
@next_ = next_ if next_ != OMIT
|
34
|
+
@additional_properties = additional_properties
|
35
|
+
@_field_set = { "kind": kind, "conditions": conditions, "next": next_ }.reject do |_k, v|
|
36
|
+
v == OMIT
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Deserialize a JSON object to an instance of
|
41
|
+
# AutomationsListResponseDataItemWorkflowItemConditions
|
42
|
+
#
|
43
|
+
# @param json_object [String]
|
44
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditions]
|
45
|
+
def self.from_json(json_object:)
|
46
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
47
|
+
parsed_json = JSON.parse(json_object)
|
48
|
+
kind = parsed_json["kind"]
|
49
|
+
conditions = parsed_json["conditions"]&.map do |item|
|
50
|
+
item = item.to_json
|
51
|
+
Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem.from_json(json_object: item)
|
52
|
+
end
|
53
|
+
next_ = parsed_json["next"]&.map do |item|
|
54
|
+
item = item.to_json
|
55
|
+
Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsNextItem.from_json(json_object: item)
|
56
|
+
end
|
57
|
+
new(
|
58
|
+
kind: kind,
|
59
|
+
conditions: conditions,
|
60
|
+
next_: next_,
|
61
|
+
additional_properties: struct
|
62
|
+
)
|
63
|
+
end
|
64
|
+
|
65
|
+
# Serialize an instance of AutomationsListResponseDataItemWorkflowItemConditions
|
66
|
+
# to a JSON object
|
67
|
+
#
|
68
|
+
# @return [String]
|
69
|
+
def to_json(*_args)
|
70
|
+
@_field_set&.to_json
|
71
|
+
end
|
72
|
+
|
73
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
74
|
+
# hash and check each fields type against the current object's property
|
75
|
+
# definitions.
|
76
|
+
#
|
77
|
+
# @param obj [Object]
|
78
|
+
# @return [Void]
|
79
|
+
def self.validate_raw(obj:)
|
80
|
+
obj.kind.is_a?(String) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
81
|
+
obj.conditions.is_a?(Array) != false || raise("Passed value for field obj.conditions is not the expected type, validation failed.")
|
82
|
+
obj.next_&.is_a?(Array) != false || raise("Passed value for field obj.next_ is not the expected type, validation failed.")
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module Ittybit
|
7
|
+
class Automations
|
8
|
+
class AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :prop
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :value
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
attr_reader :additional_properties
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :_field_set
|
17
|
+
protected :_field_set
|
18
|
+
|
19
|
+
OMIT = Object.new
|
20
|
+
|
21
|
+
# @param prop [String]
|
22
|
+
# @param value [String]
|
23
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem]
|
25
|
+
def initialize(prop: OMIT, value: OMIT, additional_properties: nil)
|
26
|
+
@prop = prop if prop != OMIT
|
27
|
+
@value = value if value != OMIT
|
28
|
+
@additional_properties = additional_properties
|
29
|
+
@_field_set = { "prop": prop, "value": value }.reject do |_k, v|
|
30
|
+
v == OMIT
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# Deserialize a JSON object to an instance of
|
35
|
+
# AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem
|
36
|
+
#
|
37
|
+
# @param json_object [String]
|
38
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem]
|
39
|
+
def self.from_json(json_object:)
|
40
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
41
|
+
parsed_json = JSON.parse(json_object)
|
42
|
+
prop = parsed_json["prop"]
|
43
|
+
value = parsed_json["value"]
|
44
|
+
new(
|
45
|
+
prop: prop,
|
46
|
+
value: value,
|
47
|
+
additional_properties: struct
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Serialize an instance of
|
52
|
+
# AutomationsListResponseDataItemWorkflowItemConditionsConditionsItem to a JSON
|
53
|
+
# object
|
54
|
+
#
|
55
|
+
# @return [String]
|
56
|
+
def to_json(*_args)
|
57
|
+
@_field_set&.to_json
|
58
|
+
end
|
59
|
+
|
60
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
61
|
+
# hash and check each fields type against the current object's property
|
62
|
+
# definitions.
|
63
|
+
#
|
64
|
+
# @param obj [Object]
|
65
|
+
# @return [Void]
|
66
|
+
def self.validate_raw(obj:)
|
67
|
+
obj.prop&.is_a?(String) != false || raise("Passed value for field obj.prop is not the expected type, validation failed.")
|
68
|
+
obj.value&.is_a?(String) != false || raise("Passed value for field obj.value is not the expected type, validation failed.")
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module Ittybit
|
7
|
+
class Automations
|
8
|
+
class AutomationsListResponseDataItemWorkflowItemConditionsNextItem
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :kind
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :ref
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
attr_reader :additional_properties
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :_field_set
|
17
|
+
protected :_field_set
|
18
|
+
|
19
|
+
OMIT = Object.new
|
20
|
+
|
21
|
+
# @param kind [String]
|
22
|
+
# @param ref [String]
|
23
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsNextItem]
|
25
|
+
def initialize(kind: OMIT, ref: OMIT, additional_properties: nil)
|
26
|
+
@kind = kind if kind != OMIT
|
27
|
+
@ref = ref if ref != OMIT
|
28
|
+
@additional_properties = additional_properties
|
29
|
+
@_field_set = { "kind": kind, "ref": ref }.reject do |_k, v|
|
30
|
+
v == OMIT
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# Deserialize a JSON object to an instance of
|
35
|
+
# AutomationsListResponseDataItemWorkflowItemConditionsNextItem
|
36
|
+
#
|
37
|
+
# @param json_object [String]
|
38
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemConditionsNextItem]
|
39
|
+
def self.from_json(json_object:)
|
40
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
41
|
+
parsed_json = JSON.parse(json_object)
|
42
|
+
kind = parsed_json["kind"]
|
43
|
+
ref = parsed_json["ref"]
|
44
|
+
new(
|
45
|
+
kind: kind,
|
46
|
+
ref: ref,
|
47
|
+
additional_properties: struct
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Serialize an instance of
|
52
|
+
# AutomationsListResponseDataItemWorkflowItemConditionsNextItem 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.kind&.is_a?(String) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
67
|
+
obj.ref&.is_a?(String) != false || raise("Passed value for field obj.ref is not the expected type, validation failed.")
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "automations_list_response_data_item_workflow_item_ref_kind"
|
4
|
+
require_relative "automations_list_response_data_item_workflow_item_ref_next_item"
|
5
|
+
require "ostruct"
|
6
|
+
require "json"
|
7
|
+
|
8
|
+
module Ittybit
|
9
|
+
class Automations
|
10
|
+
class AutomationsListResponseDataItemWorkflowItemRef
|
11
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefKind]
|
12
|
+
attr_reader :kind
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :ref
|
15
|
+
# @return [Array<Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefNextItem>]
|
16
|
+
attr_reader :next_
|
17
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
18
|
+
attr_reader :additional_properties
|
19
|
+
# @return [Object]
|
20
|
+
attr_reader :_field_set
|
21
|
+
protected :_field_set
|
22
|
+
|
23
|
+
OMIT = Object.new
|
24
|
+
|
25
|
+
# @param kind [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefKind]
|
26
|
+
# @param ref [String]
|
27
|
+
# @param next_ [Array<Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefNextItem>]
|
28
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRef]
|
30
|
+
def initialize(kind:, ref: OMIT, next_: OMIT, additional_properties: nil)
|
31
|
+
@kind = kind
|
32
|
+
@ref = ref if ref != OMIT
|
33
|
+
@next_ = next_ if next_ != OMIT
|
34
|
+
@additional_properties = additional_properties
|
35
|
+
@_field_set = { "kind": kind, "ref": ref, "next": next_ }.reject do |_k, v|
|
36
|
+
v == OMIT
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Deserialize a JSON object to an instance of
|
41
|
+
# AutomationsListResponseDataItemWorkflowItemRef
|
42
|
+
#
|
43
|
+
# @param json_object [String]
|
44
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRef]
|
45
|
+
def self.from_json(json_object:)
|
46
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
47
|
+
parsed_json = JSON.parse(json_object)
|
48
|
+
kind = parsed_json["kind"]
|
49
|
+
ref = parsed_json["ref"]
|
50
|
+
next_ = parsed_json["next"]&.map do |item|
|
51
|
+
item = item.to_json
|
52
|
+
Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefNextItem.from_json(json_object: item)
|
53
|
+
end
|
54
|
+
new(
|
55
|
+
kind: kind,
|
56
|
+
ref: ref,
|
57
|
+
next_: next_,
|
58
|
+
additional_properties: struct
|
59
|
+
)
|
60
|
+
end
|
61
|
+
|
62
|
+
# Serialize an instance of AutomationsListResponseDataItemWorkflowItemRef to a
|
63
|
+
# JSON object
|
64
|
+
#
|
65
|
+
# @return [String]
|
66
|
+
def to_json(*_args)
|
67
|
+
@_field_set&.to_json
|
68
|
+
end
|
69
|
+
|
70
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
71
|
+
# hash and check each fields type against the current object's property
|
72
|
+
# definitions.
|
73
|
+
#
|
74
|
+
# @param obj [Object]
|
75
|
+
# @return [Void]
|
76
|
+
def self.validate_raw(obj:)
|
77
|
+
obj.kind.is_a?(Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefKind) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
78
|
+
obj.ref&.is_a?(String) != false || raise("Passed value for field obj.ref is not the expected type, validation failed.")
|
79
|
+
obj.next_&.is_a?(Array) != false || raise("Passed value for field obj.next_ is not the expected type, validation failed.")
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
data/lib/ittybit/automations/types/automations_list_response_data_item_workflow_item_ref_kind.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Ittybit
|
4
|
+
class Automations
|
5
|
+
class AutomationsListResponseDataItemWorkflowItemRefKind
|
6
|
+
VIDEO = "video"
|
7
|
+
IMAGE = "image"
|
8
|
+
AUDIO = "audio"
|
9
|
+
CHAPTERS = "chapters"
|
10
|
+
SUBTITLES = "subtitles"
|
11
|
+
THUMBNAILS = "thumbnails"
|
12
|
+
NSFW = "nsfw"
|
13
|
+
SPEECH = "speech"
|
14
|
+
DESCRIPTION = "description"
|
15
|
+
OUTLINE = "outline"
|
16
|
+
PROMPT = "prompt"
|
17
|
+
HTTP = "http"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module Ittybit
|
7
|
+
class Automations
|
8
|
+
class AutomationsListResponseDataItemWorkflowItemRefNextItem
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :kind
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :ref
|
13
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
14
|
+
attr_reader :additional_properties
|
15
|
+
# @return [Object]
|
16
|
+
attr_reader :_field_set
|
17
|
+
protected :_field_set
|
18
|
+
|
19
|
+
OMIT = Object.new
|
20
|
+
|
21
|
+
# @param kind [String]
|
22
|
+
# @param ref [String]
|
23
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
24
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefNextItem]
|
25
|
+
def initialize(kind: OMIT, ref: OMIT, additional_properties: nil)
|
26
|
+
@kind = kind if kind != OMIT
|
27
|
+
@ref = ref if ref != OMIT
|
28
|
+
@additional_properties = additional_properties
|
29
|
+
@_field_set = { "kind": kind, "ref": ref }.reject do |_k, v|
|
30
|
+
v == OMIT
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
# Deserialize a JSON object to an instance of
|
35
|
+
# AutomationsListResponseDataItemWorkflowItemRefNextItem
|
36
|
+
#
|
37
|
+
# @param json_object [String]
|
38
|
+
# @return [Ittybit::Automations::AutomationsListResponseDataItemWorkflowItemRefNextItem]
|
39
|
+
def self.from_json(json_object:)
|
40
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
41
|
+
parsed_json = JSON.parse(json_object)
|
42
|
+
kind = parsed_json["kind"]
|
43
|
+
ref = parsed_json["ref"]
|
44
|
+
new(
|
45
|
+
kind: kind,
|
46
|
+
ref: ref,
|
47
|
+
additional_properties: struct
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
# Serialize an instance of AutomationsListResponseDataItemWorkflowItemRefNextItem
|
52
|
+
# 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.kind&.is_a?(String) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
67
|
+
obj.ref&.is_a?(String) != false || raise("Passed value for field obj.ref is not the expected type, validation failed.")
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module Ittybit
|
7
|
+
class Automations
|
8
|
+
class AutomationsListResponseError
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :message
|
11
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
12
|
+
attr_reader :additional_properties
|
13
|
+
# @return [Object]
|
14
|
+
attr_reader :_field_set
|
15
|
+
protected :_field_set
|
16
|
+
|
17
|
+
OMIT = Object.new
|
18
|
+
|
19
|
+
# @param message [String]
|
20
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
21
|
+
# @return [Ittybit::Automations::AutomationsListResponseError]
|
22
|
+
def initialize(message: OMIT, additional_properties: nil)
|
23
|
+
@message = message if message != OMIT
|
24
|
+
@additional_properties = additional_properties
|
25
|
+
@_field_set = { "message": message }.reject do |_k, v|
|
26
|
+
v == OMIT
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
# Deserialize a JSON object to an instance of AutomationsListResponseError
|
31
|
+
#
|
32
|
+
# @param json_object [String]
|
33
|
+
# @return [Ittybit::Automations::AutomationsListResponseError]
|
34
|
+
def self.from_json(json_object:)
|
35
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
36
|
+
parsed_json = JSON.parse(json_object)
|
37
|
+
message = parsed_json["message"]
|
38
|
+
new(message: message, additional_properties: struct)
|
39
|
+
end
|
40
|
+
|
41
|
+
# Serialize an instance of AutomationsListResponseError to a JSON object
|
42
|
+
#
|
43
|
+
# @return [String]
|
44
|
+
def to_json(*_args)
|
45
|
+
@_field_set&.to_json
|
46
|
+
end
|
47
|
+
|
48
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
49
|
+
# hash and check each fields type against the current object's property
|
50
|
+
# definitions.
|
51
|
+
#
|
52
|
+
# @param obj [Object]
|
53
|
+
# @return [Void]
|
54
|
+
def self.validate_raw(obj:)
|
55
|
+
obj.message&.is_a?(String) != false || raise("Passed value for field obj.message is not the expected type, validation failed.")
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "ostruct"
|
4
|
+
require "json"
|
5
|
+
|
6
|
+
module Ittybit
|
7
|
+
class Automations
|
8
|
+
class AutomationsListResponseLinks
|
9
|
+
# @return [String]
|
10
|
+
attr_reader :self_
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :first
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :next_
|
15
|
+
# @return [String]
|
16
|
+
attr_reader :prev
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :last
|
19
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
20
|
+
attr_reader :additional_properties
|
21
|
+
# @return [Object]
|
22
|
+
attr_reader :_field_set
|
23
|
+
protected :_field_set
|
24
|
+
|
25
|
+
OMIT = Object.new
|
26
|
+
|
27
|
+
# @param self_ [String]
|
28
|
+
# @param first [String]
|
29
|
+
# @param next_ [String]
|
30
|
+
# @param prev [String]
|
31
|
+
# @param last [String]
|
32
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
33
|
+
# @return [Ittybit::Automations::AutomationsListResponseLinks]
|
34
|
+
def initialize(self_: OMIT, first: OMIT, next_: OMIT, prev: OMIT, last: OMIT, additional_properties: nil)
|
35
|
+
@self_ = self_ if self_ != OMIT
|
36
|
+
@first = first if first != OMIT
|
37
|
+
@next_ = next_ if next_ != OMIT
|
38
|
+
@prev = prev if prev != OMIT
|
39
|
+
@last = last if last != OMIT
|
40
|
+
@additional_properties = additional_properties
|
41
|
+
@_field_set = { "self": self_, "first": first, "next": next_, "prev": prev, "last": last }.reject do |_k, v|
|
42
|
+
v == OMIT
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Deserialize a JSON object to an instance of AutomationsListResponseLinks
|
47
|
+
#
|
48
|
+
# @param json_object [String]
|
49
|
+
# @return [Ittybit::Automations::AutomationsListResponseLinks]
|
50
|
+
def self.from_json(json_object:)
|
51
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
52
|
+
parsed_json = JSON.parse(json_object)
|
53
|
+
self_ = parsed_json["self"]
|
54
|
+
first = parsed_json["first"]
|
55
|
+
next_ = parsed_json["next"]
|
56
|
+
prev = parsed_json["prev"]
|
57
|
+
last = parsed_json["last"]
|
58
|
+
new(
|
59
|
+
self_: self_,
|
60
|
+
first: first,
|
61
|
+
next_: next_,
|
62
|
+
prev: prev,
|
63
|
+
last: last,
|
64
|
+
additional_properties: struct
|
65
|
+
)
|
66
|
+
end
|
67
|
+
|
68
|
+
# Serialize an instance of AutomationsListResponseLinks to a JSON object
|
69
|
+
#
|
70
|
+
# @return [String]
|
71
|
+
def to_json(*_args)
|
72
|
+
@_field_set&.to_json
|
73
|
+
end
|
74
|
+
|
75
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
76
|
+
# hash and check each fields type against the current object's property
|
77
|
+
# definitions.
|
78
|
+
#
|
79
|
+
# @param obj [Object]
|
80
|
+
# @return [Void]
|
81
|
+
def self.validate_raw(obj:)
|
82
|
+
obj.self_&.is_a?(String) != false || raise("Passed value for field obj.self_ is not the expected type, validation failed.")
|
83
|
+
obj.first&.is_a?(String) != false || raise("Passed value for field obj.first is not the expected type, validation failed.")
|
84
|
+
obj.next_&.is_a?(String) != false || raise("Passed value for field obj.next_ is not the expected type, validation failed.")
|
85
|
+
obj.prev&.is_a?(String) != false || raise("Passed value for field obj.prev is not the expected type, validation failed.")
|
86
|
+
obj.last&.is_a?(String) != false || raise("Passed value for field obj.last is not the expected type, validation failed.")
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -0,0 +1,130 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "automations_list_response_meta_type"
|
4
|
+
require "ostruct"
|
5
|
+
require "json"
|
6
|
+
|
7
|
+
module Ittybit
|
8
|
+
class Automations
|
9
|
+
class AutomationsListResponseMeta
|
10
|
+
# @return [String]
|
11
|
+
attr_reader :request_id
|
12
|
+
# @return [String]
|
13
|
+
attr_reader :org_id
|
14
|
+
# @return [String]
|
15
|
+
attr_reader :project_id
|
16
|
+
# @return [String]
|
17
|
+
attr_reader :version
|
18
|
+
# @return [Ittybit::Automations::AutomationsListResponseMetaType]
|
19
|
+
attr_reader :type
|
20
|
+
# @return [Integer]
|
21
|
+
attr_reader :limit
|
22
|
+
# @return [Integer]
|
23
|
+
attr_reader :total
|
24
|
+
# @return [Integer]
|
25
|
+
attr_reader :page
|
26
|
+
# @return [Integer]
|
27
|
+
attr_reader :pages
|
28
|
+
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
29
|
+
attr_reader :additional_properties
|
30
|
+
# @return [Object]
|
31
|
+
attr_reader :_field_set
|
32
|
+
protected :_field_set
|
33
|
+
|
34
|
+
OMIT = Object.new
|
35
|
+
|
36
|
+
# @param request_id [String]
|
37
|
+
# @param org_id [String]
|
38
|
+
# @param project_id [String]
|
39
|
+
# @param version [String]
|
40
|
+
# @param type [Ittybit::Automations::AutomationsListResponseMetaType]
|
41
|
+
# @param limit [Integer]
|
42
|
+
# @param total [Integer]
|
43
|
+
# @param page [Integer]
|
44
|
+
# @param pages [Integer]
|
45
|
+
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
46
|
+
# @return [Ittybit::Automations::AutomationsListResponseMeta]
|
47
|
+
def initialize(request_id: OMIT, org_id: OMIT, project_id: OMIT, version: OMIT, type: OMIT, limit: OMIT,
|
48
|
+
total: OMIT, page: OMIT, pages: OMIT, additional_properties: nil)
|
49
|
+
@request_id = request_id if request_id != OMIT
|
50
|
+
@org_id = org_id if org_id != OMIT
|
51
|
+
@project_id = project_id if project_id != OMIT
|
52
|
+
@version = version if version != OMIT
|
53
|
+
@type = type if type != OMIT
|
54
|
+
@limit = limit if limit != OMIT
|
55
|
+
@total = total if total != OMIT
|
56
|
+
@page = page if page != OMIT
|
57
|
+
@pages = pages if pages != OMIT
|
58
|
+
@additional_properties = additional_properties
|
59
|
+
@_field_set = {
|
60
|
+
"request_id": request_id,
|
61
|
+
"org_id": org_id,
|
62
|
+
"project_id": project_id,
|
63
|
+
"version": version,
|
64
|
+
"type": type,
|
65
|
+
"limit": limit,
|
66
|
+
"total": total,
|
67
|
+
"page": page,
|
68
|
+
"pages": pages
|
69
|
+
}.reject do |_k, v|
|
70
|
+
v == OMIT
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# Deserialize a JSON object to an instance of AutomationsListResponseMeta
|
75
|
+
#
|
76
|
+
# @param json_object [String]
|
77
|
+
# @return [Ittybit::Automations::AutomationsListResponseMeta]
|
78
|
+
def self.from_json(json_object:)
|
79
|
+
struct = JSON.parse(json_object, object_class: OpenStruct)
|
80
|
+
parsed_json = JSON.parse(json_object)
|
81
|
+
request_id = parsed_json["request_id"]
|
82
|
+
org_id = parsed_json["org_id"]
|
83
|
+
project_id = parsed_json["project_id"]
|
84
|
+
version = parsed_json["version"]
|
85
|
+
type = parsed_json["type"]
|
86
|
+
limit = parsed_json["limit"]
|
87
|
+
total = parsed_json["total"]
|
88
|
+
page = parsed_json["page"]
|
89
|
+
pages = parsed_json["pages"]
|
90
|
+
new(
|
91
|
+
request_id: request_id,
|
92
|
+
org_id: org_id,
|
93
|
+
project_id: project_id,
|
94
|
+
version: version,
|
95
|
+
type: type,
|
96
|
+
limit: limit,
|
97
|
+
total: total,
|
98
|
+
page: page,
|
99
|
+
pages: pages,
|
100
|
+
additional_properties: struct
|
101
|
+
)
|
102
|
+
end
|
103
|
+
|
104
|
+
# Serialize an instance of AutomationsListResponseMeta to a JSON object
|
105
|
+
#
|
106
|
+
# @return [String]
|
107
|
+
def to_json(*_args)
|
108
|
+
@_field_set&.to_json
|
109
|
+
end
|
110
|
+
|
111
|
+
# Leveraged for Union-type generation, validate_raw attempts to parse the given
|
112
|
+
# hash and check each fields type against the current object's property
|
113
|
+
# definitions.
|
114
|
+
#
|
115
|
+
# @param obj [Object]
|
116
|
+
# @return [Void]
|
117
|
+
def self.validate_raw(obj:)
|
118
|
+
obj.request_id&.is_a?(String) != false || raise("Passed value for field obj.request_id is not the expected type, validation failed.")
|
119
|
+
obj.org_id&.is_a?(String) != false || raise("Passed value for field obj.org_id is not the expected type, validation failed.")
|
120
|
+
obj.project_id&.is_a?(String) != false || raise("Passed value for field obj.project_id is not the expected type, validation failed.")
|
121
|
+
obj.version&.is_a?(String) != false || raise("Passed value for field obj.version is not the expected type, validation failed.")
|
122
|
+
obj.type&.is_a?(Ittybit::Automations::AutomationsListResponseMetaType) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
123
|
+
obj.limit&.is_a?(Integer) != false || raise("Passed value for field obj.limit is not the expected type, validation failed.")
|
124
|
+
obj.total&.is_a?(Integer) != false || raise("Passed value for field obj.total is not the expected type, validation failed.")
|
125
|
+
obj.page&.is_a?(Integer) != false || raise("Passed value for field obj.page is not the expected type, validation failed.")
|
126
|
+
obj.pages&.is_a?(Integer) != false || raise("Passed value for field obj.pages is not the expected type, validation failed.")
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|