kickflow 0.1.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 +7 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +18 -0
- data/LICENSE.txt +202 -0
- data/README.md +303 -0
- data/Rakefile +48 -0
- data/Rakefile~ +48 -0
- data/bin/console +11 -0
- data/bin/setup +8 -0
- data/bin/setup-Nix +2 -0
- data/docs/Attachment.md +22 -0
- data/docs/Category.md +24 -0
- data/docs/ClimberCloudSetting.md +24 -0
- data/docs/ClimberCloudSettingMappingsInner.md +20 -0
- data/docs/Comment.md +32 -0
- data/docs/DefaultApi.md +6318 -0
- data/docs/DeleteTeamsTeamIdMembersRequest.md +18 -0
- data/docs/ExternalApiSetting.md +30 -0
- data/docs/ExternalApiSettingHeadersInner.md +20 -0
- data/docs/ExternalApiSettingMappingsInner.md +24 -0
- data/docs/Folder.md +34 -0
- data/docs/FolderDetail.md +38 -0
- data/docs/FormField.md +60 -0
- data/docs/FormFieldDetail.md +68 -0
- data/docs/GeneralMaster.md +30 -0
- data/docs/GeneralMasterField.md +36 -0
- data/docs/GeneralMasterItem.md +34 -0
- data/docs/GeneralMasterItemInputsInner.md +26 -0
- data/docs/GeneralMasterItemInputsInnerValue.md +15 -0
- data/docs/GetFilesSignedId200Response.md +28 -0
- data/docs/GetTicketsStatusParameter.md +49 -0
- data/docs/Grade.md +30 -0
- data/docs/GradeCreateBody.md +22 -0
- data/docs/GradeUpdateBody.md +22 -0
- data/docs/Label.md +28 -0
- data/docs/MemberUser.md +46 -0
- data/docs/OrganizationChart.md +32 -0
- data/docs/OrganizationChartActivationPlan.md +24 -0
- data/docs/OrganizationChartBody.md +18 -0
- data/docs/OrganizationChartDetail.md +32 -0
- data/docs/PatchFoldersFolderIdRequest.md +24 -0
- data/docs/PatchGeneralMastersGeneralMasterIdItemsItemIdRequest.md +28 -0
- data/docs/PatchGeneralMastersGeneralMasterIdItemsItemIdRequestInputsInner.md +20 -0
- data/docs/PatchGeneralMastersGeneralMasterIdItemsItemIdRequestInputsInnerValue.md +49 -0
- data/docs/PatchGeneralMastersGeneralMasterIdRequest.md +24 -0
- data/docs/PatchGeneralMastersGeneralMasterIdRequestFieldsInner.md +30 -0
- data/docs/PatchTeamsTeamIdMembershipsUserIdRequest.md +20 -0
- data/docs/PatchTicketsIdCommentsCommentIdRequest.md +18 -0
- data/docs/PatchTicketsTicketIdRequest.md +30 -0
- data/docs/PatchTicketsTicketIdRequestCloudSignDocument.md +22 -0
- data/docs/PatchTicketsTicketIdRequestInputsInner.md +32 -0
- data/docs/PatchTicketsTicketIdRequestSlipItemsInner.md +18 -0
- data/docs/PatchTicketsTicketIdRequestSlipItemsInnerInputsInner.md +26 -0
- data/docs/PatchUsersUserIdRequest.md +26 -0
- data/docs/PostCategoriesRequest.md +18 -0
- data/docs/PostFiles200Response.md +18 -0
- data/docs/PostFoldersRequest.md +24 -0
- data/docs/PostGeneralMastersGeneralMasterIdItemsRequest.md +28 -0
- data/docs/PostGeneralMastersGeneralMasterIdItemsRequestInputsInner.md +20 -0
- data/docs/PostGeneralMastersGeneralMasterIdItemsRequestInputsInnerValue.md +49 -0
- data/docs/PostGeneralMastersRequest.md +24 -0
- data/docs/PostGeneralMastersRequestFieldsInner.md +30 -0
- data/docs/PostOrganizationChartsOrganizationChartIdActivateRequest.md +18 -0
- data/docs/PostProxyApplicantsRequest.md +26 -0
- data/docs/PostProxyApproversRequest.md +26 -0
- data/docs/PostRolesRoleIdMembershipsRequest.md +18 -0
- data/docs/PostTeamsTeamIdMembersRequest.md +18 -0
- data/docs/PostTeamsTeamIdMembersRequestUsersInner.md +22 -0
- data/docs/PostTicketsIdCommentsRequest.md +20 -0
- data/docs/PostTicketsIdViewersRequest.md +22 -0
- data/docs/PostTicketsIdViewersRequestTeamId.md +15 -0
- data/docs/PostTicketsIdViewersRequestUserId.md +15 -0
- data/docs/PostTicketsRequest.md +32 -0
- data/docs/PostTicketsRequestCloudSignDocument.md +22 -0
- data/docs/PostTicketsRequestInputsInner.md +32 -0
- data/docs/PostTicketsRequestInputsInnerTeamId.md +49 -0
- data/docs/PostTicketsRequestInputsInnerTicketId.md +49 -0
- data/docs/PostTicketsRequestInputsInnerUserId.md +49 -0
- data/docs/PostTicketsRequestSlipItemsInner.md +18 -0
- data/docs/PostTicketsRequestSlipItemsInnerInputsInner.md +26 -0
- data/docs/PostTicketsRequestSlipItemsInnerInputsInnerGeneralMasterItemId.md +49 -0
- data/docs/PostTicketsRequestSlipItemsInnerInputsInnerValue.md +49 -0
- data/docs/PostTicketsTicketIdRejectRequest.md +18 -0
- data/docs/PostUsersRequest.md +28 -0
- data/docs/ProxyApplicant.md +32 -0
- data/docs/ProxyApprover.md +32 -0
- data/docs/Role.md +28 -0
- data/docs/RoleCreateBody.md +20 -0
- data/docs/RoleCreateBodyPermissionListInner.md +26 -0
- data/docs/RoleDetail.md +30 -0
- data/docs/RoleDetailAllOfPermissionList.md +26 -0
- data/docs/RoleUpdateBody.md +20 -0
- data/docs/RoleUpdateBodyPermissionListInner.md +26 -0
- data/docs/Route.md +40 -0
- data/docs/RouteDetail.md +42 -0
- data/docs/RouteStep.md +44 -0
- data/docs/RouteStepCondition.md +24 -0
- data/docs/RouteStepConditionField.md +34 -0
- data/docs/RouteStepTarget.md +24 -0
- data/docs/Section.md +32 -0
- data/docs/SlipField.md +56 -0
- data/docs/SlipFieldDetail.md +60 -0
- data/docs/SlipItem.md +24 -0
- data/docs/SlipItemInput.md +30 -0
- data/docs/SlipItemInputValue.md +15 -0
- data/docs/SubStatus.md +28 -0
- data/docs/Team.md +32 -0
- data/docs/TeamCreateBody.md +24 -0
- data/docs/TeamDetail.md +38 -0
- data/docs/TeamUpdateBody.md +24 -0
- data/docs/Ticket.md +50 -0
- data/docs/TicketAssignee.md +28 -0
- data/docs/TicketDetail.md +68 -0
- data/docs/TicketDetailAllOfCloudSignDocument.md +32 -0
- data/docs/TicketInput.md +32 -0
- data/docs/TicketInputValue.md +15 -0
- data/docs/TicketSection.md +22 -0
- data/docs/TicketStep.md +44 -0
- data/docs/TicketViewer.md +24 -0
- data/docs/TicketWorkflow.md +74 -0
- data/docs/User.md +42 -0
- data/docs/UserDetail.md +42 -0
- data/docs/UserImage.md +18 -0
- data/docs/Workflow.md +66 -0
- data/docs/WorkflowDetail.md +76 -0
- data/docs/WorkflowInTicket.md +74 -0
- data/docs/WorkflowInTicketAllOfCloudSignSetting.md +18 -0
- data/docs/WorkflowRouteCondition.md +30 -0
- data/docs/WorkflowRouteConditionField.md +30 -0
- data/docs/WorkflowTicketViewer.md +24 -0
- data/git_push.sh +57 -0
- data/kickflow.gemspec +34 -0
- data/lib/kickflow/api/_api.rb +6531 -0
- data/lib/kickflow/api_client.rb +431 -0
- data/lib/kickflow/api_error.rb +58 -0
- data/lib/kickflow/configuration.rb +392 -0
- data/lib/kickflow/models/attachment.rb +257 -0
- data/lib/kickflow/models/category.rb +293 -0
- data/lib/kickflow/models/climber_cloud_setting.rb +261 -0
- data/lib/kickflow/models/climber_cloud_setting_mappings_inner.rb +238 -0
- data/lib/kickflow/models/comment.rb +341 -0
- data/lib/kickflow/models/delete_teams_team_id_members_request.rb +252 -0
- data/lib/kickflow/models/external_api_setting.rb +359 -0
- data/lib/kickflow/models/external_api_setting_headers_inner.rb +239 -0
- data/lib/kickflow/models/external_api_setting_mappings_inner.rb +268 -0
- data/lib/kickflow/models/folder.rb +448 -0
- data/lib/kickflow/models/folder_detail.rb +479 -0
- data/lib/kickflow/models/form_field.rb +646 -0
- data/lib/kickflow/models/form_field_detail.rb +693 -0
- data/lib/kickflow/models/general_master.rb +361 -0
- data/lib/kickflow/models/general_master_field.rb +442 -0
- data/lib/kickflow/models/general_master_item.rb +387 -0
- data/lib/kickflow/models/general_master_item_inputs_inner.rb +288 -0
- data/lib/kickflow/models/general_master_item_inputs_inner_value.rb +105 -0
- data/lib/kickflow/models/get_files_signed_id200_response.rb +307 -0
- data/lib/kickflow/models/get_tickets_status_parameter.rb +105 -0
- data/lib/kickflow/models/grade.rb +383 -0
- data/lib/kickflow/models/grade_create_body.rb +316 -0
- data/lib/kickflow/models/grade_update_body.rb +283 -0
- data/lib/kickflow/models/label.rb +343 -0
- data/lib/kickflow/models/member_user.rb +620 -0
- data/lib/kickflow/models/organization_chart.rb +356 -0
- data/lib/kickflow/models/organization_chart_activation_plan.rb +274 -0
- data/lib/kickflow/models/organization_chart_body.rb +223 -0
- data/lib/kickflow/models/organization_chart_detail.rb +363 -0
- data/lib/kickflow/models/patch_folders_folder_id_request.rb +246 -0
- data/lib/kickflow/models/patch_general_masters_general_master_id_items_item_id_request.rb +269 -0
- data/lib/kickflow/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner.rb +238 -0
- data/lib/kickflow/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner_value.rb +106 -0
- data/lib/kickflow/models/patch_general_masters_general_master_id_request.rb +247 -0
- data/lib/kickflow/models/patch_general_masters_general_master_id_request_fields_inner.rb +286 -0
- data/lib/kickflow/models/patch_teams_team_id_memberships_user_id_request.rb +260 -0
- data/lib/kickflow/models/patch_tickets_id_comments_comment_id_request.rb +222 -0
- data/lib/kickflow/models/patch_tickets_ticket_id_request.rb +312 -0
- data/lib/kickflow/models/patch_tickets_ticket_id_request_cloud_sign_document.rb +257 -0
- data/lib/kickflow/models/patch_tickets_ticket_id_request_inputs_inner.rb +286 -0
- data/lib/kickflow/models/patch_tickets_ticket_id_request_slip_items_inner.rb +225 -0
- data/lib/kickflow/models/patch_tickets_ticket_id_request_slip_items_inner_inputs_inner.rb +261 -0
- data/lib/kickflow/models/patch_users_user_id_request.rb +347 -0
- data/lib/kickflow/models/post_categories_request.rb +222 -0
- data/lib/kickflow/models/post_files200_response.rb +222 -0
- data/lib/kickflow/models/post_folders_request.rb +253 -0
- data/lib/kickflow/models/post_general_masters_general_master_id_items_request.rb +283 -0
- data/lib/kickflow/models/post_general_masters_general_master_id_items_request_inputs_inner.rb +238 -0
- data/lib/kickflow/models/post_general_masters_general_master_id_items_request_inputs_inner_value.rb +106 -0
- data/lib/kickflow/models/post_general_masters_request.rb +254 -0
- data/lib/kickflow/models/post_general_masters_request_fields_inner.rb +341 -0
- data/lib/kickflow/models/post_organization_charts_organization_chart_id_activate_request.rb +215 -0
- data/lib/kickflow/models/post_proxy_applicants_request.rb +273 -0
- data/lib/kickflow/models/post_proxy_approvers_request.rb +273 -0
- data/lib/kickflow/models/post_roles_role_id_memberships_request.rb +252 -0
- data/lib/kickflow/models/post_teams_team_id_members_request.rb +252 -0
- data/lib/kickflow/models/post_teams_team_id_members_request_users_inner.rb +270 -0
- data/lib/kickflow/models/post_tickets_id_comments_request.rb +235 -0
- data/lib/kickflow/models/post_tickets_id_viewers_request.rb +236 -0
- data/lib/kickflow/models/post_tickets_id_viewers_request_team_id.rb +105 -0
- data/lib/kickflow/models/post_tickets_id_viewers_request_user_id.rb +105 -0
- data/lib/kickflow/models/post_tickets_request.rb +352 -0
- data/lib/kickflow/models/post_tickets_request_cloud_sign_document.rb +257 -0
- data/lib/kickflow/models/post_tickets_request_inputs_inner.rb +286 -0
- data/lib/kickflow/models/post_tickets_request_inputs_inner_team_id.rb +106 -0
- data/lib/kickflow/models/post_tickets_request_inputs_inner_ticket_id.rb +106 -0
- data/lib/kickflow/models/post_tickets_request_inputs_inner_user_id.rb +106 -0
- data/lib/kickflow/models/post_tickets_request_slip_items_inner.rb +225 -0
- data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner.rb +259 -0
- data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner_general_master_item_id.rb +106 -0
- data/lib/kickflow/models/post_tickets_request_slip_items_inner_inputs_inner_value.rb +106 -0
- data/lib/kickflow/models/post_tickets_ticket_id_reject_request.rb +222 -0
- data/lib/kickflow/models/post_users_request.rb +366 -0
- data/lib/kickflow/models/proxy_applicant.rb +334 -0
- data/lib/kickflow/models/proxy_approver.rb +334 -0
- data/lib/kickflow/models/role.rb +346 -0
- data/lib/kickflow/models/role_create_body.rb +242 -0
- data/lib/kickflow/models/role_create_body_permission_list_inner.rb +309 -0
- data/lib/kickflow/models/role_detail.rb +372 -0
- data/lib/kickflow/models/role_detail_all_of_permission_list.rb +330 -0
- data/lib/kickflow/models/role_update_body.rb +228 -0
- data/lib/kickflow/models/role_update_body_permission_list_inner.rb +330 -0
- data/lib/kickflow/models/route.rb +429 -0
- data/lib/kickflow/models/route_detail.rb +453 -0
- data/lib/kickflow/models/route_step.rb +495 -0
- data/lib/kickflow/models/route_step_condition.rb +292 -0
- data/lib/kickflow/models/route_step_condition_field.rb +293 -0
- data/lib/kickflow/models/route_step_target.rb +246 -0
- data/lib/kickflow/models/section.rb +336 -0
- data/lib/kickflow/models/slip_field.rb +535 -0
- data/lib/kickflow/models/slip_field_detail.rb +562 -0
- data/lib/kickflow/models/slip_item.rb +276 -0
- data/lib/kickflow/models/slip_item_input.rb +324 -0
- data/lib/kickflow/models/slip_item_input_value.rb +107 -0
- data/lib/kickflow/models/sub_status.rb +302 -0
- data/lib/kickflow/models/team.rb +399 -0
- data/lib/kickflow/models/team_create_body.rb +253 -0
- data/lib/kickflow/models/team_detail.rb +454 -0
- data/lib/kickflow/models/team_update_body.rb +246 -0
- data/lib/kickflow/models/ticket.rb +540 -0
- data/lib/kickflow/models/ticket_assignee.rb +303 -0
- data/lib/kickflow/models/ticket_detail.rb +684 -0
- data/lib/kickflow/models/ticket_detail_all_of_cloud_sign_document.rb +375 -0
- data/lib/kickflow/models/ticket_input.rb +308 -0
- data/lib/kickflow/models/ticket_input_value.rb +107 -0
- data/lib/kickflow/models/ticket_section.rb +259 -0
- data/lib/kickflow/models/ticket_step.rb +471 -0
- data/lib/kickflow/models/ticket_viewer.rb +259 -0
- data/lib/kickflow/models/ticket_workflow.rb +105 -0
- data/lib/kickflow/models/user.rb +558 -0
- data/lib/kickflow/models/user_detail.rb +565 -0
- data/lib/kickflow/models/user_image.rb +222 -0
- data/lib/kickflow/models/workflow.rb +693 -0
- data/lib/kickflow/models/workflow_detail.rb +796 -0
- data/lib/kickflow/models/workflow_in_ticket.rb +770 -0
- data/lib/kickflow/models/workflow_in_ticket_all_of_cloud_sign_setting.rb +222 -0
- data/lib/kickflow/models/workflow_route_condition.rb +364 -0
- data/lib/kickflow/models/workflow_route_condition_field.rb +305 -0
- data/lib/kickflow/models/workflow_ticket_viewer.rb +259 -0
- data/lib/kickflow/version.rb +15 -0
- data/lib/kickflow.rb +159 -0
- data/manifest.scm +1 -0
- data/manifest.scm~ +1 -0
- data/pkg/kickflow-0.1.0.gem +0 -0
- data/sig/kickflow.rbs +4 -0
- data/spec/api/_api_spec.rb +1260 -0
- data/spec/models/attachment_spec.rb +48 -0
- data/spec/models/category_spec.rb +54 -0
- data/spec/models/climber_cloud_setting_mappings_inner_spec.rb +42 -0
- data/spec/models/climber_cloud_setting_spec.rb +54 -0
- data/spec/models/comment_spec.rb +78 -0
- data/spec/models/delete_teams_team_id_members_request_spec.rb +36 -0
- data/spec/models/external_api_setting_headers_inner_spec.rb +42 -0
- data/spec/models/external_api_setting_mappings_inner_spec.rb +54 -0
- data/spec/models/external_api_setting_spec.rb +76 -0
- data/spec/models/folder_detail_spec.rb +96 -0
- data/spec/models/folder_spec.rb +84 -0
- data/spec/models/form_field_detail_spec.rb +194 -0
- data/spec/models/form_field_spec.rb +170 -0
- data/spec/models/general_master_field_spec.rb +94 -0
- data/spec/models/general_master_item_inputs_inner_spec.rb +60 -0
- data/spec/models/general_master_item_inputs_inner_value_spec.rb +21 -0
- data/spec/models/general_master_item_spec.rb +84 -0
- data/spec/models/general_master_spec.rb +72 -0
- data/spec/models/get_files_signed_id200_response_spec.rb +66 -0
- data/spec/models/get_tickets_status_parameter_spec.rb +32 -0
- data/spec/models/grade_create_body_spec.rb +48 -0
- data/spec/models/grade_spec.rb +72 -0
- data/spec/models/grade_update_body_spec.rb +48 -0
- data/spec/models/label_spec.rb +66 -0
- data/spec/models/member_user_spec.rb +124 -0
- data/spec/models/organization_chart_activation_plan_spec.rb +54 -0
- data/spec/models/organization_chart_body_spec.rb +36 -0
- data/spec/models/organization_chart_detail_spec.rb +78 -0
- data/spec/models/organization_chart_spec.rb +78 -0
- data/spec/models/patch_folders_folder_id_request_spec.rb +54 -0
- data/spec/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner_spec.rb +42 -0
- data/spec/models/patch_general_masters_general_master_id_items_item_id_request_inputs_inner_value_spec.rb +32 -0
- data/spec/models/patch_general_masters_general_master_id_items_item_id_request_spec.rb +66 -0
- data/spec/models/patch_general_masters_general_master_id_request_fields_inner_spec.rb +72 -0
- data/spec/models/patch_general_masters_general_master_id_request_spec.rb +54 -0
- data/spec/models/patch_teams_team_id_memberships_user_id_request_spec.rb +42 -0
- data/spec/models/patch_tickets_id_comments_comment_id_request_spec.rb +36 -0
- data/spec/models/patch_tickets_ticket_id_request_cloud_sign_document_spec.rb +48 -0
- data/spec/models/patch_tickets_ticket_id_request_inputs_inner_spec.rb +78 -0
- data/spec/models/patch_tickets_ticket_id_request_slip_items_inner_inputs_inner_spec.rb +60 -0
- data/spec/models/patch_tickets_ticket_id_request_slip_items_inner_spec.rb +36 -0
- data/spec/models/patch_tickets_ticket_id_request_spec.rb +76 -0
- data/spec/models/patch_users_user_id_request_spec.rb +60 -0
- data/spec/models/post_categories_request_spec.rb +36 -0
- data/spec/models/post_files200_response_spec.rb +36 -0
- data/spec/models/post_folders_request_spec.rb +54 -0
- data/spec/models/post_general_masters_general_master_id_items_request_inputs_inner_spec.rb +42 -0
- data/spec/models/post_general_masters_general_master_id_items_request_inputs_inner_value_spec.rb +32 -0
- data/spec/models/post_general_masters_general_master_id_items_request_spec.rb +66 -0
- data/spec/models/post_general_masters_request_fields_inner_spec.rb +76 -0
- data/spec/models/post_general_masters_request_spec.rb +54 -0
- data/spec/models/post_organization_charts_organization_chart_id_activate_request_spec.rb +36 -0
- data/spec/models/post_proxy_applicants_request_spec.rb +60 -0
- data/spec/models/post_proxy_approvers_request_spec.rb +60 -0
- data/spec/models/post_roles_role_id_memberships_request_spec.rb +36 -0
- data/spec/models/post_teams_team_id_members_request_spec.rb +36 -0
- data/spec/models/post_teams_team_id_members_request_users_inner_spec.rb +48 -0
- data/spec/models/post_tickets_id_comments_request_spec.rb +42 -0
- data/spec/models/post_tickets_id_viewers_request_spec.rb +48 -0
- data/spec/models/post_tickets_id_viewers_request_team_id_spec.rb +21 -0
- data/spec/models/post_tickets_id_viewers_request_user_id_spec.rb +21 -0
- data/spec/models/post_tickets_request_cloud_sign_document_spec.rb +48 -0
- data/spec/models/post_tickets_request_inputs_inner_spec.rb +78 -0
- data/spec/models/post_tickets_request_inputs_inner_team_id_spec.rb +32 -0
- data/spec/models/post_tickets_request_inputs_inner_ticket_id_spec.rb +32 -0
- data/spec/models/post_tickets_request_inputs_inner_user_id_spec.rb +32 -0
- data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_general_master_item_id_spec.rb +32 -0
- data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_spec.rb +60 -0
- data/spec/models/post_tickets_request_slip_items_inner_inputs_inner_value_spec.rb +32 -0
- data/spec/models/post_tickets_request_slip_items_inner_spec.rb +36 -0
- data/spec/models/post_tickets_request_spec.rb +82 -0
- data/spec/models/post_tickets_ticket_id_reject_request_spec.rb +36 -0
- data/spec/models/post_users_request_spec.rb +66 -0
- data/spec/models/proxy_applicant_spec.rb +78 -0
- data/spec/models/proxy_approver_spec.rb +78 -0
- data/spec/models/role_create_body_permission_list_inner_spec.rb +64 -0
- data/spec/models/role_create_body_spec.rb +42 -0
- data/spec/models/role_detail_all_of_permission_list_spec.rb +64 -0
- data/spec/models/role_detail_spec.rb +72 -0
- data/spec/models/role_spec.rb +66 -0
- data/spec/models/role_update_body_permission_list_inner_spec.rb +64 -0
- data/spec/models/role_update_body_spec.rb +42 -0
- data/spec/models/route_detail_spec.rb +112 -0
- data/spec/models/route_spec.rb +106 -0
- data/spec/models/route_step_condition_field_spec.rb +84 -0
- data/spec/models/route_step_condition_spec.rb +62 -0
- data/spec/models/route_step_spec.rb +126 -0
- data/spec/models/route_step_target_spec.rb +54 -0
- data/spec/models/section_spec.rb +78 -0
- data/spec/models/slip_field_detail_spec.rb +166 -0
- data/spec/models/slip_field_spec.rb +154 -0
- data/spec/models/slip_item_input_spec.rb +72 -0
- data/spec/models/slip_item_input_value_spec.rb +21 -0
- data/spec/models/slip_item_spec.rb +54 -0
- data/spec/models/sub_status_spec.rb +66 -0
- data/spec/models/team_create_body_spec.rb +54 -0
- data/spec/models/team_detail_spec.rb +96 -0
- data/spec/models/team_spec.rb +78 -0
- data/spec/models/team_update_body_spec.rb +54 -0
- data/spec/models/ticket_assignee_spec.rb +66 -0
- data/spec/models/ticket_detail_all_of_cloud_sign_document_spec.rb +82 -0
- data/spec/models/ticket_detail_spec.rb +194 -0
- data/spec/models/ticket_input_spec.rb +78 -0
- data/spec/models/ticket_input_value_spec.rb +21 -0
- data/spec/models/ticket_section_spec.rb +48 -0
- data/spec/models/ticket_spec.rb +140 -0
- data/spec/models/ticket_step_spec.rb +122 -0
- data/spec/models/ticket_viewer_spec.rb +54 -0
- data/spec/models/ticket_workflow_spec.rb +21 -0
- data/spec/models/user_detail_spec.rb +112 -0
- data/spec/models/user_image_spec.rb +36 -0
- data/spec/models/user_spec.rb +112 -0
- data/spec/models/workflow_detail_spec.rb +226 -0
- data/spec/models/workflow_in_ticket_all_of_cloud_sign_setting_spec.rb +36 -0
- data/spec/models/workflow_in_ticket_spec.rb +220 -0
- data/spec/models/workflow_route_condition_field_spec.rb +72 -0
- data/spec/models/workflow_route_condition_spec.rb +80 -0
- data/spec/models/workflow_spec.rb +196 -0
- data/spec/models/workflow_ticket_viewer_spec.rb +54 -0
- data/spec/spec_helper.rb +111 -0
- data/vendor/schema.yaml +6258 -0
- metadata +600 -0
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#kickflow REST API v1
|
|
3
|
+
|
|
4
|
+
#kickflowの開発者用REST API (v1)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.7.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module Kickflow
|
|
17
|
+
# チケット
|
|
18
|
+
class Ticket
|
|
19
|
+
# UUID
|
|
20
|
+
attr_accessor :id
|
|
21
|
+
|
|
22
|
+
# チケット番号
|
|
23
|
+
attr_accessor :ticket_number
|
|
24
|
+
|
|
25
|
+
# タイトル
|
|
26
|
+
attr_accessor :title
|
|
27
|
+
|
|
28
|
+
# ステータス
|
|
29
|
+
attr_accessor :status
|
|
30
|
+
|
|
31
|
+
attr_accessor :sub_status
|
|
32
|
+
|
|
33
|
+
# 現在のステップ。0が起票者、1が最初の承認ステップ。
|
|
34
|
+
attr_accessor :current_step
|
|
35
|
+
|
|
36
|
+
attr_accessor :author
|
|
37
|
+
|
|
38
|
+
attr_accessor :proxy_client_user
|
|
39
|
+
|
|
40
|
+
# 作成日時
|
|
41
|
+
attr_accessor :created_at
|
|
42
|
+
|
|
43
|
+
# 申請日時
|
|
44
|
+
attr_accessor :opened_at
|
|
45
|
+
|
|
46
|
+
# 完了日時
|
|
47
|
+
attr_accessor :completed_at
|
|
48
|
+
|
|
49
|
+
# アーカイブ日時
|
|
50
|
+
attr_accessor :archived_at
|
|
51
|
+
|
|
52
|
+
# 更新日時
|
|
53
|
+
attr_accessor :updated_at
|
|
54
|
+
|
|
55
|
+
# チケットが全体公開の場合true
|
|
56
|
+
attr_accessor :public_status
|
|
57
|
+
|
|
58
|
+
# チケットの強制公開設定
|
|
59
|
+
attr_accessor :forced_public_type
|
|
60
|
+
|
|
61
|
+
attr_accessor :workflow
|
|
62
|
+
|
|
63
|
+
# チケットのラベルの配列
|
|
64
|
+
attr_accessor :labels
|
|
65
|
+
|
|
66
|
+
class EnumAttributeValidator
|
|
67
|
+
attr_reader :datatype
|
|
68
|
+
attr_reader :allowable_values
|
|
69
|
+
|
|
70
|
+
def initialize(datatype, allowable_values)
|
|
71
|
+
@allowable_values = allowable_values.map do |value|
|
|
72
|
+
case datatype.to_s
|
|
73
|
+
when /Integer/i
|
|
74
|
+
value.to_i
|
|
75
|
+
when /Float/i
|
|
76
|
+
value.to_f
|
|
77
|
+
else
|
|
78
|
+
value
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
def valid?(value)
|
|
84
|
+
!value || allowable_values.include?(value)
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
89
|
+
def self.attribute_map
|
|
90
|
+
{
|
|
91
|
+
:'id' => :'id',
|
|
92
|
+
:'ticket_number' => :'ticketNumber',
|
|
93
|
+
:'title' => :'title',
|
|
94
|
+
:'status' => :'status',
|
|
95
|
+
:'sub_status' => :'subStatus',
|
|
96
|
+
:'current_step' => :'currentStep',
|
|
97
|
+
:'author' => :'author',
|
|
98
|
+
:'proxy_client_user' => :'proxyClientUser',
|
|
99
|
+
:'created_at' => :'createdAt',
|
|
100
|
+
:'opened_at' => :'openedAt',
|
|
101
|
+
:'completed_at' => :'completedAt',
|
|
102
|
+
:'archived_at' => :'archivedAt',
|
|
103
|
+
:'updated_at' => :'updatedAt',
|
|
104
|
+
:'public_status' => :'publicStatus',
|
|
105
|
+
:'forced_public_type' => :'forcedPublicType',
|
|
106
|
+
:'workflow' => :'workflow',
|
|
107
|
+
:'labels' => :'labels'
|
|
108
|
+
}
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Returns all the JSON keys this model knows about
|
|
112
|
+
def self.acceptable_attributes
|
|
113
|
+
attribute_map.values
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Attribute type mapping.
|
|
117
|
+
def self.openapi_types
|
|
118
|
+
{
|
|
119
|
+
:'id' => :'String',
|
|
120
|
+
:'ticket_number' => :'String',
|
|
121
|
+
:'title' => :'String',
|
|
122
|
+
:'status' => :'String',
|
|
123
|
+
:'sub_status' => :'SubStatus',
|
|
124
|
+
:'current_step' => :'Float',
|
|
125
|
+
:'author' => :'User',
|
|
126
|
+
:'proxy_client_user' => :'User',
|
|
127
|
+
:'created_at' => :'Time',
|
|
128
|
+
:'opened_at' => :'Time',
|
|
129
|
+
:'completed_at' => :'Time',
|
|
130
|
+
:'archived_at' => :'Time',
|
|
131
|
+
:'updated_at' => :'Time',
|
|
132
|
+
:'public_status' => :'Boolean',
|
|
133
|
+
:'forced_public_type' => :'String',
|
|
134
|
+
:'workflow' => :'TicketWorkflow',
|
|
135
|
+
:'labels' => :'Array<Label>'
|
|
136
|
+
}
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# List of attributes with nullable: true
|
|
140
|
+
def self.openapi_nullable
|
|
141
|
+
Set.new([
|
|
142
|
+
:'title',
|
|
143
|
+
:'sub_status',
|
|
144
|
+
:'proxy_client_user',
|
|
145
|
+
:'opened_at',
|
|
146
|
+
:'completed_at',
|
|
147
|
+
:'archived_at',
|
|
148
|
+
])
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Initializes the object
|
|
152
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
153
|
+
def initialize(attributes = {})
|
|
154
|
+
if (!attributes.is_a?(Hash))
|
|
155
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Kickflow::Ticket` initialize method"
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
159
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
160
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
161
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Kickflow::Ticket`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
162
|
+
end
|
|
163
|
+
h[k.to_sym] = v
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
if attributes.key?(:'id')
|
|
167
|
+
self.id = attributes[:'id']
|
|
168
|
+
else
|
|
169
|
+
self.id = nil
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.key?(:'ticket_number')
|
|
173
|
+
self.ticket_number = attributes[:'ticket_number']
|
|
174
|
+
else
|
|
175
|
+
self.ticket_number = nil
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
if attributes.key?(:'title')
|
|
179
|
+
self.title = attributes[:'title']
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
if attributes.key?(:'status')
|
|
183
|
+
self.status = attributes[:'status']
|
|
184
|
+
else
|
|
185
|
+
self.status = nil
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
if attributes.key?(:'sub_status')
|
|
189
|
+
self.sub_status = attributes[:'sub_status']
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
if attributes.key?(:'current_step')
|
|
193
|
+
self.current_step = attributes[:'current_step']
|
|
194
|
+
else
|
|
195
|
+
self.current_step = nil
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
if attributes.key?(:'author')
|
|
199
|
+
self.author = attributes[:'author']
|
|
200
|
+
else
|
|
201
|
+
self.author = nil
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
if attributes.key?(:'proxy_client_user')
|
|
205
|
+
self.proxy_client_user = attributes[:'proxy_client_user']
|
|
206
|
+
else
|
|
207
|
+
self.proxy_client_user = nil
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
if attributes.key?(:'created_at')
|
|
211
|
+
self.created_at = attributes[:'created_at']
|
|
212
|
+
else
|
|
213
|
+
self.created_at = nil
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
if attributes.key?(:'opened_at')
|
|
217
|
+
self.opened_at = attributes[:'opened_at']
|
|
218
|
+
else
|
|
219
|
+
self.opened_at = nil
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
if attributes.key?(:'completed_at')
|
|
223
|
+
self.completed_at = attributes[:'completed_at']
|
|
224
|
+
else
|
|
225
|
+
self.completed_at = nil
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
if attributes.key?(:'archived_at')
|
|
229
|
+
self.archived_at = attributes[:'archived_at']
|
|
230
|
+
else
|
|
231
|
+
self.archived_at = nil
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
if attributes.key?(:'updated_at')
|
|
235
|
+
self.updated_at = attributes[:'updated_at']
|
|
236
|
+
else
|
|
237
|
+
self.updated_at = nil
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
if attributes.key?(:'public_status')
|
|
241
|
+
self.public_status = attributes[:'public_status']
|
|
242
|
+
else
|
|
243
|
+
self.public_status = nil
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
if attributes.key?(:'forced_public_type')
|
|
247
|
+
self.forced_public_type = attributes[:'forced_public_type']
|
|
248
|
+
else
|
|
249
|
+
self.forced_public_type = nil
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
if attributes.key?(:'workflow')
|
|
253
|
+
self.workflow = attributes[:'workflow']
|
|
254
|
+
else
|
|
255
|
+
self.workflow = nil
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
if attributes.key?(:'labels')
|
|
259
|
+
if (value = attributes[:'labels']).is_a?(Array)
|
|
260
|
+
self.labels = value
|
|
261
|
+
end
|
|
262
|
+
else
|
|
263
|
+
self.labels = nil
|
|
264
|
+
end
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
268
|
+
# @return Array for valid properties with the reasons
|
|
269
|
+
def list_invalid_properties
|
|
270
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
271
|
+
invalid_properties = Array.new
|
|
272
|
+
if @id.nil?
|
|
273
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if @ticket_number.nil?
|
|
277
|
+
invalid_properties.push('invalid value for "ticket_number", ticket_number cannot be nil.')
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if @status.nil?
|
|
281
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
if @current_step.nil?
|
|
285
|
+
invalid_properties.push('invalid value for "current_step", current_step cannot be nil.')
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
if @current_step < 0
|
|
289
|
+
invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.')
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
if @author.nil?
|
|
293
|
+
invalid_properties.push('invalid value for "author", author cannot be nil.')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if @created_at.nil?
|
|
297
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if @updated_at.nil?
|
|
301
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
if @public_status.nil?
|
|
305
|
+
invalid_properties.push('invalid value for "public_status", public_status cannot be nil.')
|
|
306
|
+
end
|
|
307
|
+
|
|
308
|
+
if @forced_public_type.nil?
|
|
309
|
+
invalid_properties.push('invalid value for "forced_public_type", forced_public_type cannot be nil.')
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
if @workflow.nil?
|
|
313
|
+
invalid_properties.push('invalid value for "workflow", workflow cannot be nil.')
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
if @labels.nil?
|
|
317
|
+
invalid_properties.push('invalid value for "labels", labels cannot be nil.')
|
|
318
|
+
end
|
|
319
|
+
|
|
320
|
+
invalid_properties
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# Check to see if the all the properties in the model are valid
|
|
324
|
+
# @return true if the model is valid
|
|
325
|
+
def valid?
|
|
326
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
327
|
+
return false if @id.nil?
|
|
328
|
+
return false if @ticket_number.nil?
|
|
329
|
+
return false if @status.nil?
|
|
330
|
+
status_validator = EnumAttributeValidator.new('String', ["draft", "in_progress", "completed", "rejected", "archived", "denied"])
|
|
331
|
+
return false unless status_validator.valid?(@status)
|
|
332
|
+
return false if @current_step.nil?
|
|
333
|
+
return false if @current_step < 0
|
|
334
|
+
return false if @author.nil?
|
|
335
|
+
return false if @created_at.nil?
|
|
336
|
+
return false if @updated_at.nil?
|
|
337
|
+
return false if @public_status.nil?
|
|
338
|
+
return false if @forced_public_type.nil?
|
|
339
|
+
forced_public_type_validator = EnumAttributeValidator.new('String', ["follow_workflow", "forced_public", "forced_private"])
|
|
340
|
+
return false unless forced_public_type_validator.valid?(@forced_public_type)
|
|
341
|
+
return false if @workflow.nil?
|
|
342
|
+
return false if @labels.nil?
|
|
343
|
+
true
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
347
|
+
# @param [Object] status Object to be assigned
|
|
348
|
+
def status=(status)
|
|
349
|
+
validator = EnumAttributeValidator.new('String', ["draft", "in_progress", "completed", "rejected", "archived", "denied"])
|
|
350
|
+
unless validator.valid?(status)
|
|
351
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
352
|
+
end
|
|
353
|
+
@status = status
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
# Custom attribute writer method with validation
|
|
357
|
+
# @param [Object] current_step Value to be assigned
|
|
358
|
+
def current_step=(current_step)
|
|
359
|
+
if current_step.nil?
|
|
360
|
+
fail ArgumentError, 'current_step cannot be nil'
|
|
361
|
+
end
|
|
362
|
+
|
|
363
|
+
if current_step < 0
|
|
364
|
+
fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.'
|
|
365
|
+
end
|
|
366
|
+
|
|
367
|
+
@current_step = current_step
|
|
368
|
+
end
|
|
369
|
+
|
|
370
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
371
|
+
# @param [Object] forced_public_type Object to be assigned
|
|
372
|
+
def forced_public_type=(forced_public_type)
|
|
373
|
+
validator = EnumAttributeValidator.new('String', ["follow_workflow", "forced_public", "forced_private"])
|
|
374
|
+
unless validator.valid?(forced_public_type)
|
|
375
|
+
fail ArgumentError, "invalid value for \"forced_public_type\", must be one of #{validator.allowable_values}."
|
|
376
|
+
end
|
|
377
|
+
@forced_public_type = forced_public_type
|
|
378
|
+
end
|
|
379
|
+
|
|
380
|
+
# Custom attribute writer method with validation
|
|
381
|
+
# @param [Object] labels Value to be assigned
|
|
382
|
+
def labels=(labels)
|
|
383
|
+
if labels.nil?
|
|
384
|
+
fail ArgumentError, 'labels cannot be nil'
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
@labels = labels
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Checks equality by comparing each attribute.
|
|
391
|
+
# @param [Object] Object to be compared
|
|
392
|
+
def ==(o)
|
|
393
|
+
return true if self.equal?(o)
|
|
394
|
+
self.class == o.class &&
|
|
395
|
+
id == o.id &&
|
|
396
|
+
ticket_number == o.ticket_number &&
|
|
397
|
+
title == o.title &&
|
|
398
|
+
status == o.status &&
|
|
399
|
+
sub_status == o.sub_status &&
|
|
400
|
+
current_step == o.current_step &&
|
|
401
|
+
author == o.author &&
|
|
402
|
+
proxy_client_user == o.proxy_client_user &&
|
|
403
|
+
created_at == o.created_at &&
|
|
404
|
+
opened_at == o.opened_at &&
|
|
405
|
+
completed_at == o.completed_at &&
|
|
406
|
+
archived_at == o.archived_at &&
|
|
407
|
+
updated_at == o.updated_at &&
|
|
408
|
+
public_status == o.public_status &&
|
|
409
|
+
forced_public_type == o.forced_public_type &&
|
|
410
|
+
workflow == o.workflow &&
|
|
411
|
+
labels == o.labels
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
# @see the `==` method
|
|
415
|
+
# @param [Object] Object to be compared
|
|
416
|
+
def eql?(o)
|
|
417
|
+
self == o
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Calculates hash code according to all attributes.
|
|
421
|
+
# @return [Integer] Hash code
|
|
422
|
+
def hash
|
|
423
|
+
[id, ticket_number, title, status, sub_status, current_step, author, proxy_client_user, created_at, opened_at, completed_at, archived_at, updated_at, public_status, forced_public_type, workflow, labels].hash
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
# Builds the object from hash
|
|
427
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
428
|
+
# @return [Object] Returns the model itself
|
|
429
|
+
def self.build_from_hash(attributes)
|
|
430
|
+
return nil unless attributes.is_a?(Hash)
|
|
431
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
432
|
+
transformed_hash = {}
|
|
433
|
+
openapi_types.each_pair do |key, type|
|
|
434
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
435
|
+
transformed_hash["#{key}"] = nil
|
|
436
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
437
|
+
# check to ensure the input is an array given that the attribute
|
|
438
|
+
# is documented as an array but the input is not
|
|
439
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
440
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
441
|
+
end
|
|
442
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
443
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
444
|
+
end
|
|
445
|
+
end
|
|
446
|
+
new(transformed_hash)
|
|
447
|
+
end
|
|
448
|
+
|
|
449
|
+
# Deserializes the data based on type
|
|
450
|
+
# @param string type Data type
|
|
451
|
+
# @param string value Value to be deserialized
|
|
452
|
+
# @return [Object] Deserialized data
|
|
453
|
+
def self._deserialize(type, value)
|
|
454
|
+
case type.to_sym
|
|
455
|
+
when :Time
|
|
456
|
+
Time.parse(value)
|
|
457
|
+
when :Date
|
|
458
|
+
Date.parse(value)
|
|
459
|
+
when :String
|
|
460
|
+
value.to_s
|
|
461
|
+
when :Integer
|
|
462
|
+
value.to_i
|
|
463
|
+
when :Float
|
|
464
|
+
value.to_f
|
|
465
|
+
when :Boolean
|
|
466
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
467
|
+
true
|
|
468
|
+
else
|
|
469
|
+
false
|
|
470
|
+
end
|
|
471
|
+
when :Object
|
|
472
|
+
# generic object (usually a Hash), return directly
|
|
473
|
+
value
|
|
474
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
475
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
476
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
477
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
478
|
+
k_type = Regexp.last_match[:k_type]
|
|
479
|
+
v_type = Regexp.last_match[:v_type]
|
|
480
|
+
{}.tap do |hash|
|
|
481
|
+
value.each do |k, v|
|
|
482
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
483
|
+
end
|
|
484
|
+
end
|
|
485
|
+
else # model
|
|
486
|
+
# models (e.g. Pet) or oneOf
|
|
487
|
+
klass = Kickflow.const_get(type)
|
|
488
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
489
|
+
end
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Returns the string representation of the object
|
|
493
|
+
# @return [String] String presentation of the object
|
|
494
|
+
def to_s
|
|
495
|
+
to_hash.to_s
|
|
496
|
+
end
|
|
497
|
+
|
|
498
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
499
|
+
# @return [Hash] Returns the object in the form of hash
|
|
500
|
+
def to_body
|
|
501
|
+
to_hash
|
|
502
|
+
end
|
|
503
|
+
|
|
504
|
+
# Returns the object in the form of hash
|
|
505
|
+
# @return [Hash] Returns the object in the form of hash
|
|
506
|
+
def to_hash
|
|
507
|
+
hash = {}
|
|
508
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
509
|
+
value = self.send(attr)
|
|
510
|
+
if value.nil?
|
|
511
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
512
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
hash[param] = _to_hash(value)
|
|
516
|
+
end
|
|
517
|
+
hash
|
|
518
|
+
end
|
|
519
|
+
|
|
520
|
+
# Outputs non-array value in the form of hash
|
|
521
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
522
|
+
# @param [Object] value Any valid value
|
|
523
|
+
# @return [Hash] Returns the value in the form of hash
|
|
524
|
+
def _to_hash(value)
|
|
525
|
+
if value.is_a?(Array)
|
|
526
|
+
value.compact.map { |v| _to_hash(v) }
|
|
527
|
+
elsif value.is_a?(Hash)
|
|
528
|
+
{}.tap do |hash|
|
|
529
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
530
|
+
end
|
|
531
|
+
elsif value.respond_to? :to_hash
|
|
532
|
+
value.to_hash
|
|
533
|
+
else
|
|
534
|
+
value
|
|
535
|
+
end
|
|
536
|
+
end
|
|
537
|
+
|
|
538
|
+
end
|
|
539
|
+
|
|
540
|
+
end
|