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,20 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "
|
5
|
-
require_relative "
|
3
|
+
require_relative "media_list_response_item_files_item_object"
|
4
|
+
require_relative "media_list_response_item_files_item_kind"
|
5
|
+
require_relative "media_list_response_item_files_item_orientation"
|
6
6
|
require "date"
|
7
|
-
require_relative "
|
7
|
+
require_relative "media_list_response_item_files_item_status"
|
8
8
|
require "ostruct"
|
9
9
|
require "json"
|
10
10
|
|
11
11
|
module Ittybit
|
12
|
-
class
|
12
|
+
class MediaListResponseItemFilesItem
|
13
13
|
# @return [String]
|
14
14
|
attr_reader :id
|
15
|
-
# @return [Ittybit::
|
15
|
+
# @return [Ittybit::MediaListResponseItemFilesItemObject]
|
16
16
|
attr_reader :object
|
17
|
-
# @return [Ittybit::
|
17
|
+
# @return [Ittybit::MediaListResponseItemFilesItemKind]
|
18
18
|
attr_reader :kind
|
19
19
|
# @return [String]
|
20
20
|
attr_reader :type
|
@@ -26,7 +26,7 @@ module Ittybit
|
|
26
26
|
attr_reader :width
|
27
27
|
# @return [Integer]
|
28
28
|
attr_reader :height
|
29
|
-
# @return [Ittybit::
|
29
|
+
# @return [Ittybit::MediaListResponseItemFilesItemOrientation]
|
30
30
|
attr_reader :orientation
|
31
31
|
# @return [Float]
|
32
32
|
attr_reader :rotation
|
@@ -58,7 +58,7 @@ module Ittybit
|
|
58
58
|
attr_reader :created
|
59
59
|
# @return [DateTime]
|
60
60
|
attr_reader :updated
|
61
|
-
# @return [Ittybit::
|
61
|
+
# @return [Ittybit::MediaListResponseItemFilesItemStatus]
|
62
62
|
attr_reader :status
|
63
63
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
64
64
|
attr_reader :additional_properties
|
@@ -69,14 +69,14 @@ module Ittybit
|
|
69
69
|
OMIT = Object.new
|
70
70
|
|
71
71
|
# @param id [String]
|
72
|
-
# @param object [Ittybit::
|
73
|
-
# @param kind [Ittybit::
|
72
|
+
# @param object [Ittybit::MediaListResponseItemFilesItemObject]
|
73
|
+
# @param kind [Ittybit::MediaListResponseItemFilesItemKind]
|
74
74
|
# @param type [String]
|
75
75
|
# @param codec [String]
|
76
76
|
# @param container [String]
|
77
77
|
# @param width [Integer]
|
78
78
|
# @param height [Integer]
|
79
|
-
# @param orientation [Ittybit::
|
79
|
+
# @param orientation [Ittybit::MediaListResponseItemFilesItemOrientation]
|
80
80
|
# @param rotation [Float]
|
81
81
|
# @param transparency [Boolean]
|
82
82
|
# @param frames [Integer]
|
@@ -92,9 +92,9 @@ module Ittybit
|
|
92
92
|
# @param original [Boolean]
|
93
93
|
# @param created [DateTime]
|
94
94
|
# @param updated [DateTime]
|
95
|
-
# @param status [Ittybit::
|
95
|
+
# @param status [Ittybit::MediaListResponseItemFilesItemStatus]
|
96
96
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
97
|
-
# @return [Ittybit::
|
97
|
+
# @return [Ittybit::MediaListResponseItemFilesItem]
|
98
98
|
def initialize(id:, object:, kind:, type:, filesize:, url:, created:, updated:, status:, codec: OMIT, container: OMIT, width: OMIT, height: OMIT,
|
99
99
|
orientation: OMIT, rotation: OMIT, transparency: OMIT, frames: OMIT, duration: OMIT, fps: OMIT, bitrate: OMIT, ref: OMIT, folder: OMIT, filename: OMIT, metadata: OMIT, original: OMIT, additional_properties: nil)
|
100
100
|
@id = id
|
@@ -154,10 +154,10 @@ module Ittybit
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
-
# Deserialize a JSON object to an instance of
|
157
|
+
# Deserialize a JSON object to an instance of MediaListResponseItemFilesItem
|
158
158
|
#
|
159
159
|
# @param json_object [String]
|
160
|
-
# @return [Ittybit::
|
160
|
+
# @return [Ittybit::MediaListResponseItemFilesItem]
|
161
161
|
def self.from_json(json_object:)
|
162
162
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
163
163
|
parsed_json = JSON.parse(json_object)
|
@@ -216,7 +216,7 @@ module Ittybit
|
|
216
216
|
)
|
217
217
|
end
|
218
218
|
|
219
|
-
# Serialize an instance of
|
219
|
+
# Serialize an instance of MediaListResponseItemFilesItem to a JSON object
|
220
220
|
#
|
221
221
|
# @return [String]
|
222
222
|
def to_json(*_args)
|
@@ -231,14 +231,14 @@ module Ittybit
|
|
231
231
|
# @return [Void]
|
232
232
|
def self.validate_raw(obj:)
|
233
233
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
234
|
-
obj.object.is_a?(Ittybit::
|
235
|
-
obj.kind.is_a?(Ittybit::
|
234
|
+
obj.object.is_a?(Ittybit::MediaListResponseItemFilesItemObject) != false || raise("Passed value for field obj.object is not the expected type, validation failed.")
|
235
|
+
obj.kind.is_a?(Ittybit::MediaListResponseItemFilesItemKind) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
236
236
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
237
237
|
obj.codec&.is_a?(String) != false || raise("Passed value for field obj.codec is not the expected type, validation failed.")
|
238
238
|
obj.container&.is_a?(String) != false || raise("Passed value for field obj.container is not the expected type, validation failed.")
|
239
239
|
obj.width&.is_a?(Integer) != false || raise("Passed value for field obj.width is not the expected type, validation failed.")
|
240
240
|
obj.height&.is_a?(Integer) != false || raise("Passed value for field obj.height is not the expected type, validation failed.")
|
241
|
-
obj.orientation&.is_a?(Ittybit::
|
241
|
+
obj.orientation&.is_a?(Ittybit::MediaListResponseItemFilesItemOrientation) != false || raise("Passed value for field obj.orientation is not the expected type, validation failed.")
|
242
242
|
obj.rotation&.is_a?(Float) != false || raise("Passed value for field obj.rotation is not the expected type, validation failed.")
|
243
243
|
obj.transparency&.is_a?(Boolean) != false || raise("Passed value for field obj.transparency is not the expected type, validation failed.")
|
244
244
|
obj.frames&.is_a?(Integer) != false || raise("Passed value for field obj.frames is not the expected type, validation failed.")
|
@@ -254,7 +254,7 @@ module Ittybit
|
|
254
254
|
obj.original&.is_a?(Boolean) != false || raise("Passed value for field obj.original is not the expected type, validation failed.")
|
255
255
|
obj.created.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
|
256
256
|
obj.updated.is_a?(DateTime) != false || raise("Passed value for field obj.updated is not the expected type, validation failed.")
|
257
|
-
obj.status.is_a?(Ittybit::
|
257
|
+
obj.status.is_a?(Ittybit::MediaListResponseItemFilesItemStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
258
258
|
end
|
259
259
|
end
|
260
260
|
end
|
@@ -1,22 +1,41 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "
|
5
|
-
|
6
|
-
require_relative "media_response_links"
|
3
|
+
require_relative "media_response_kind"
|
4
|
+
require_relative "media_response_files_item"
|
5
|
+
require "date"
|
7
6
|
require "ostruct"
|
8
7
|
require "json"
|
9
8
|
|
10
9
|
module Ittybit
|
11
10
|
class MediaResponse
|
12
|
-
# @return [
|
13
|
-
attr_reader :
|
14
|
-
# @return [
|
15
|
-
attr_reader :
|
16
|
-
# @return [Ittybit::
|
17
|
-
attr_reader :
|
18
|
-
# @return [
|
19
|
-
attr_reader :
|
11
|
+
# @return [String]
|
12
|
+
attr_reader :id
|
13
|
+
# @return [String]
|
14
|
+
attr_reader :object
|
15
|
+
# @return [Ittybit::MediaResponseKind]
|
16
|
+
attr_reader :kind
|
17
|
+
# @return [String]
|
18
|
+
attr_reader :title
|
19
|
+
# @return [String]
|
20
|
+
attr_reader :alt
|
21
|
+
# @return [Integer]
|
22
|
+
attr_reader :width
|
23
|
+
# @return [Integer]
|
24
|
+
attr_reader :height
|
25
|
+
# @return [Float]
|
26
|
+
attr_reader :duration
|
27
|
+
# @return [Array<Ittybit::MediaResponseFilesItem>]
|
28
|
+
attr_reader :files
|
29
|
+
# @return [Hash{String => Object}]
|
30
|
+
attr_reader :urls
|
31
|
+
# @return [String]
|
32
|
+
attr_reader :background
|
33
|
+
# @return [Hash{String => Object}]
|
34
|
+
attr_reader :metadata
|
35
|
+
# @return [DateTime]
|
36
|
+
attr_reader :created
|
37
|
+
# @return [DateTime]
|
38
|
+
attr_reader :updated
|
20
39
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
21
40
|
attr_reader :additional_properties
|
22
41
|
# @return [Object]
|
@@ -25,19 +44,55 @@ module Ittybit
|
|
25
44
|
|
26
45
|
OMIT = Object.new
|
27
46
|
|
28
|
-
# @param
|
29
|
-
# @param
|
30
|
-
# @param
|
31
|
-
# @param
|
47
|
+
# @param id [String]
|
48
|
+
# @param object [String]
|
49
|
+
# @param kind [Ittybit::MediaResponseKind]
|
50
|
+
# @param title [String]
|
51
|
+
# @param alt [String]
|
52
|
+
# @param width [Integer]
|
53
|
+
# @param height [Integer]
|
54
|
+
# @param duration [Float]
|
55
|
+
# @param files [Array<Ittybit::MediaResponseFilesItem>]
|
56
|
+
# @param urls [Hash{String => Object}]
|
57
|
+
# @param background [String]
|
58
|
+
# @param metadata [Hash{String => Object}]
|
59
|
+
# @param created [DateTime]
|
60
|
+
# @param updated [DateTime]
|
32
61
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
33
62
|
# @return [Ittybit::MediaResponse]
|
34
|
-
def initialize(
|
35
|
-
|
36
|
-
@
|
37
|
-
@
|
38
|
-
@
|
63
|
+
def initialize(id:, object:, files:, urls:, created:, updated:, kind: OMIT, title: OMIT, alt: OMIT, width: OMIT,
|
64
|
+
height: OMIT, duration: OMIT, background: OMIT, metadata: OMIT, additional_properties: nil)
|
65
|
+
@id = id
|
66
|
+
@object = object
|
67
|
+
@kind = kind if kind != OMIT
|
68
|
+
@title = title if title != OMIT
|
69
|
+
@alt = alt if alt != OMIT
|
70
|
+
@width = width if width != OMIT
|
71
|
+
@height = height if height != OMIT
|
72
|
+
@duration = duration if duration != OMIT
|
73
|
+
@files = files
|
74
|
+
@urls = urls
|
75
|
+
@background = background if background != OMIT
|
76
|
+
@metadata = metadata if metadata != OMIT
|
77
|
+
@created = created
|
78
|
+
@updated = updated
|
39
79
|
@additional_properties = additional_properties
|
40
|
-
@_field_set = {
|
80
|
+
@_field_set = {
|
81
|
+
"id": id,
|
82
|
+
"object": object,
|
83
|
+
"kind": kind,
|
84
|
+
"title": title,
|
85
|
+
"alt": alt,
|
86
|
+
"width": width,
|
87
|
+
"height": height,
|
88
|
+
"duration": duration,
|
89
|
+
"files": files,
|
90
|
+
"urls": urls,
|
91
|
+
"background": background,
|
92
|
+
"metadata": metadata,
|
93
|
+
"created": created,
|
94
|
+
"updated": updated
|
95
|
+
}.reject do |_k, v|
|
41
96
|
v == OMIT
|
42
97
|
end
|
43
98
|
end
|
@@ -49,35 +104,38 @@ module Ittybit
|
|
49
104
|
def self.from_json(json_object:)
|
50
105
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
51
106
|
parsed_json = JSON.parse(json_object)
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
end
|
64
|
-
if parsed_json["error"].nil?
|
65
|
-
error = nil
|
66
|
-
else
|
67
|
-
error = parsed_json["error"].to_json
|
68
|
-
error = Ittybit::MediaResponseError.from_json(json_object: error)
|
69
|
-
end
|
70
|
-
if parsed_json["links"].nil?
|
71
|
-
links = nil
|
72
|
-
else
|
73
|
-
links = parsed_json["links"].to_json
|
74
|
-
links = Ittybit::MediaResponseLinks.from_json(json_object: links)
|
107
|
+
id = parsed_json["id"]
|
108
|
+
object = parsed_json["object"]
|
109
|
+
kind = parsed_json["kind"]
|
110
|
+
title = parsed_json["title"]
|
111
|
+
alt = parsed_json["alt"]
|
112
|
+
width = parsed_json["width"]
|
113
|
+
height = parsed_json["height"]
|
114
|
+
duration = parsed_json["duration"]
|
115
|
+
files = parsed_json["files"]&.map do |item|
|
116
|
+
item = item.to_json
|
117
|
+
Ittybit::MediaResponseFilesItem.from_json(json_object: item)
|
75
118
|
end
|
119
|
+
urls = parsed_json["urls"]
|
120
|
+
background = parsed_json["background"]
|
121
|
+
metadata = parsed_json["metadata"]
|
122
|
+
created = (DateTime.parse(parsed_json["created"]) unless parsed_json["created"].nil?)
|
123
|
+
updated = (DateTime.parse(parsed_json["updated"]) unless parsed_json["updated"].nil?)
|
76
124
|
new(
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
125
|
+
id: id,
|
126
|
+
object: object,
|
127
|
+
kind: kind,
|
128
|
+
title: title,
|
129
|
+
alt: alt,
|
130
|
+
width: width,
|
131
|
+
height: height,
|
132
|
+
duration: duration,
|
133
|
+
files: files,
|
134
|
+
urls: urls,
|
135
|
+
background: background,
|
136
|
+
metadata: metadata,
|
137
|
+
created: created,
|
138
|
+
updated: updated,
|
81
139
|
additional_properties: struct
|
82
140
|
)
|
83
141
|
end
|
@@ -96,10 +154,20 @@ module Ittybit
|
|
96
154
|
# @param obj [Object]
|
97
155
|
# @return [Void]
|
98
156
|
def self.validate_raw(obj:)
|
99
|
-
obj.
|
100
|
-
obj.
|
101
|
-
obj.
|
102
|
-
obj.
|
157
|
+
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
158
|
+
obj.object.is_a?(String) != false || raise("Passed value for field obj.object is not the expected type, validation failed.")
|
159
|
+
obj.kind&.is_a?(Ittybit::MediaResponseKind) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
160
|
+
obj.title&.is_a?(String) != false || raise("Passed value for field obj.title is not the expected type, validation failed.")
|
161
|
+
obj.alt&.is_a?(String) != false || raise("Passed value for field obj.alt is not the expected type, validation failed.")
|
162
|
+
obj.width&.is_a?(Integer) != false || raise("Passed value for field obj.width is not the expected type, validation failed.")
|
163
|
+
obj.height&.is_a?(Integer) != false || raise("Passed value for field obj.height is not the expected type, validation failed.")
|
164
|
+
obj.duration&.is_a?(Float) != false || raise("Passed value for field obj.duration is not the expected type, validation failed.")
|
165
|
+
obj.files.is_a?(Array) != false || raise("Passed value for field obj.files is not the expected type, validation failed.")
|
166
|
+
obj.urls.is_a?(Hash) != false || raise("Passed value for field obj.urls is not the expected type, validation failed.")
|
167
|
+
obj.background&.is_a?(String) != false || raise("Passed value for field obj.background is not the expected type, validation failed.")
|
168
|
+
obj.metadata&.is_a?(Hash) != false || raise("Passed value for field obj.metadata is not the expected type, validation failed.")
|
169
|
+
obj.created.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
|
170
|
+
obj.updated.is_a?(DateTime) != false || raise("Passed value for field obj.updated is not the expected type, validation failed.")
|
103
171
|
end
|
104
172
|
end
|
105
173
|
end
|
@@ -1,20 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require_relative "
|
4
|
-
require_relative "
|
5
|
-
require_relative "
|
3
|
+
require_relative "media_response_files_item_object"
|
4
|
+
require_relative "media_response_files_item_kind"
|
5
|
+
require_relative "media_response_files_item_orientation"
|
6
6
|
require "date"
|
7
|
-
require_relative "
|
7
|
+
require_relative "media_response_files_item_status"
|
8
8
|
require "ostruct"
|
9
9
|
require "json"
|
10
10
|
|
11
11
|
module Ittybit
|
12
|
-
class
|
12
|
+
class MediaResponseFilesItem
|
13
13
|
# @return [String]
|
14
14
|
attr_reader :id
|
15
|
-
# @return [Ittybit::
|
15
|
+
# @return [Ittybit::MediaResponseFilesItemObject]
|
16
16
|
attr_reader :object
|
17
|
-
# @return [Ittybit::
|
17
|
+
# @return [Ittybit::MediaResponseFilesItemKind]
|
18
18
|
attr_reader :kind
|
19
19
|
# @return [String]
|
20
20
|
attr_reader :type
|
@@ -26,7 +26,7 @@ module Ittybit
|
|
26
26
|
attr_reader :width
|
27
27
|
# @return [Integer]
|
28
28
|
attr_reader :height
|
29
|
-
# @return [Ittybit::
|
29
|
+
# @return [Ittybit::MediaResponseFilesItemOrientation]
|
30
30
|
attr_reader :orientation
|
31
31
|
# @return [Float]
|
32
32
|
attr_reader :rotation
|
@@ -58,7 +58,7 @@ module Ittybit
|
|
58
58
|
attr_reader :created
|
59
59
|
# @return [DateTime]
|
60
60
|
attr_reader :updated
|
61
|
-
# @return [Ittybit::
|
61
|
+
# @return [Ittybit::MediaResponseFilesItemStatus]
|
62
62
|
attr_reader :status
|
63
63
|
# @return [OpenStruct] Additional properties unmapped to the current class definition
|
64
64
|
attr_reader :additional_properties
|
@@ -69,14 +69,14 @@ module Ittybit
|
|
69
69
|
OMIT = Object.new
|
70
70
|
|
71
71
|
# @param id [String]
|
72
|
-
# @param object [Ittybit::
|
73
|
-
# @param kind [Ittybit::
|
72
|
+
# @param object [Ittybit::MediaResponseFilesItemObject]
|
73
|
+
# @param kind [Ittybit::MediaResponseFilesItemKind]
|
74
74
|
# @param type [String]
|
75
75
|
# @param codec [String]
|
76
76
|
# @param container [String]
|
77
77
|
# @param width [Integer]
|
78
78
|
# @param height [Integer]
|
79
|
-
# @param orientation [Ittybit::
|
79
|
+
# @param orientation [Ittybit::MediaResponseFilesItemOrientation]
|
80
80
|
# @param rotation [Float]
|
81
81
|
# @param transparency [Boolean]
|
82
82
|
# @param frames [Integer]
|
@@ -92,9 +92,9 @@ module Ittybit
|
|
92
92
|
# @param original [Boolean]
|
93
93
|
# @param created [DateTime]
|
94
94
|
# @param updated [DateTime]
|
95
|
-
# @param status [Ittybit::
|
95
|
+
# @param status [Ittybit::MediaResponseFilesItemStatus]
|
96
96
|
# @param additional_properties [OpenStruct] Additional properties unmapped to the current class definition
|
97
|
-
# @return [Ittybit::
|
97
|
+
# @return [Ittybit::MediaResponseFilesItem]
|
98
98
|
def initialize(id:, object:, kind:, type:, filesize:, url:, created:, updated:, status:, codec: OMIT, container: OMIT, width: OMIT, height: OMIT,
|
99
99
|
orientation: OMIT, rotation: OMIT, transparency: OMIT, frames: OMIT, duration: OMIT, fps: OMIT, bitrate: OMIT, ref: OMIT, folder: OMIT, filename: OMIT, metadata: OMIT, original: OMIT, additional_properties: nil)
|
100
100
|
@id = id
|
@@ -154,10 +154,10 @@ module Ittybit
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
|
157
|
-
# Deserialize a JSON object to an instance of
|
157
|
+
# Deserialize a JSON object to an instance of MediaResponseFilesItem
|
158
158
|
#
|
159
159
|
# @param json_object [String]
|
160
|
-
# @return [Ittybit::
|
160
|
+
# @return [Ittybit::MediaResponseFilesItem]
|
161
161
|
def self.from_json(json_object:)
|
162
162
|
struct = JSON.parse(json_object, object_class: OpenStruct)
|
163
163
|
parsed_json = JSON.parse(json_object)
|
@@ -216,7 +216,7 @@ module Ittybit
|
|
216
216
|
)
|
217
217
|
end
|
218
218
|
|
219
|
-
# Serialize an instance of
|
219
|
+
# Serialize an instance of MediaResponseFilesItem to a JSON object
|
220
220
|
#
|
221
221
|
# @return [String]
|
222
222
|
def to_json(*_args)
|
@@ -231,14 +231,14 @@ module Ittybit
|
|
231
231
|
# @return [Void]
|
232
232
|
def self.validate_raw(obj:)
|
233
233
|
obj.id.is_a?(String) != false || raise("Passed value for field obj.id is not the expected type, validation failed.")
|
234
|
-
obj.object.is_a?(Ittybit::
|
235
|
-
obj.kind.is_a?(Ittybit::
|
234
|
+
obj.object.is_a?(Ittybit::MediaResponseFilesItemObject) != false || raise("Passed value for field obj.object is not the expected type, validation failed.")
|
235
|
+
obj.kind.is_a?(Ittybit::MediaResponseFilesItemKind) != false || raise("Passed value for field obj.kind is not the expected type, validation failed.")
|
236
236
|
obj.type.is_a?(String) != false || raise("Passed value for field obj.type is not the expected type, validation failed.")
|
237
237
|
obj.codec&.is_a?(String) != false || raise("Passed value for field obj.codec is not the expected type, validation failed.")
|
238
238
|
obj.container&.is_a?(String) != false || raise("Passed value for field obj.container is not the expected type, validation failed.")
|
239
239
|
obj.width&.is_a?(Integer) != false || raise("Passed value for field obj.width is not the expected type, validation failed.")
|
240
240
|
obj.height&.is_a?(Integer) != false || raise("Passed value for field obj.height is not the expected type, validation failed.")
|
241
|
-
obj.orientation&.is_a?(Ittybit::
|
241
|
+
obj.orientation&.is_a?(Ittybit::MediaResponseFilesItemOrientation) != false || raise("Passed value for field obj.orientation is not the expected type, validation failed.")
|
242
242
|
obj.rotation&.is_a?(Float) != false || raise("Passed value for field obj.rotation is not the expected type, validation failed.")
|
243
243
|
obj.transparency&.is_a?(Boolean) != false || raise("Passed value for field obj.transparency is not the expected type, validation failed.")
|
244
244
|
obj.frames&.is_a?(Integer) != false || raise("Passed value for field obj.frames is not the expected type, validation failed.")
|
@@ -254,7 +254,7 @@ module Ittybit
|
|
254
254
|
obj.original&.is_a?(Boolean) != false || raise("Passed value for field obj.original is not the expected type, validation failed.")
|
255
255
|
obj.created.is_a?(DateTime) != false || raise("Passed value for field obj.created is not the expected type, validation failed.")
|
256
256
|
obj.updated.is_a?(DateTime) != false || raise("Passed value for field obj.updated is not the expected type, validation failed.")
|
257
|
-
obj.status.is_a?(Ittybit::
|
257
|
+
obj.status.is_a?(Ittybit::MediaResponseFilesItemStatus) != false || raise("Passed value for field obj.status is not the expected type, validation failed.")
|
258
258
|
end
|
259
259
|
end
|
260
260
|
end
|