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