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,375 @@
|
|
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
|
+
class TicketDetailAllOfCloudSignDocument
|
18
|
+
# UUID
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# クラウドサイン書類のID
|
22
|
+
attr_accessor :document_id
|
23
|
+
|
24
|
+
# クラウドサイン書類のタイトル
|
25
|
+
attr_accessor :document_title
|
26
|
+
|
27
|
+
# クラウドサイン書類のステータス
|
28
|
+
attr_accessor :status
|
29
|
+
|
30
|
+
# クラウドサインがサンドボックス環境の場合true
|
31
|
+
attr_accessor :sandbox
|
32
|
+
|
33
|
+
# 作成日時
|
34
|
+
attr_accessor :created_at
|
35
|
+
|
36
|
+
# 更新日時
|
37
|
+
attr_accessor :updated_at
|
38
|
+
|
39
|
+
# クラウドサイン書類のURL
|
40
|
+
attr_accessor :url
|
41
|
+
|
42
|
+
class EnumAttributeValidator
|
43
|
+
attr_reader :datatype
|
44
|
+
attr_reader :allowable_values
|
45
|
+
|
46
|
+
def initialize(datatype, allowable_values)
|
47
|
+
@allowable_values = allowable_values.map do |value|
|
48
|
+
case datatype.to_s
|
49
|
+
when /Integer/i
|
50
|
+
value.to_i
|
51
|
+
when /Float/i
|
52
|
+
value.to_f
|
53
|
+
else
|
54
|
+
value
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
def valid?(value)
|
60
|
+
!value || allowable_values.include?(value)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
65
|
+
def self.attribute_map
|
66
|
+
{
|
67
|
+
:'id' => :'id',
|
68
|
+
:'document_id' => :'documentId',
|
69
|
+
:'document_title' => :'documentTitle',
|
70
|
+
:'status' => :'status',
|
71
|
+
:'sandbox' => :'sandbox',
|
72
|
+
:'created_at' => :'createdAt',
|
73
|
+
:'updated_at' => :'updatedAt',
|
74
|
+
:'url' => :'url'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# Returns all the JSON keys this model knows about
|
79
|
+
def self.acceptable_attributes
|
80
|
+
attribute_map.values
|
81
|
+
end
|
82
|
+
|
83
|
+
# Attribute type mapping.
|
84
|
+
def self.openapi_types
|
85
|
+
{
|
86
|
+
:'id' => :'String',
|
87
|
+
:'document_id' => :'String',
|
88
|
+
:'document_title' => :'String',
|
89
|
+
:'status' => :'String',
|
90
|
+
:'sandbox' => :'Boolean',
|
91
|
+
:'created_at' => :'Time',
|
92
|
+
:'updated_at' => :'Time',
|
93
|
+
:'url' => :'String'
|
94
|
+
}
|
95
|
+
end
|
96
|
+
|
97
|
+
# List of attributes with nullable: true
|
98
|
+
def self.openapi_nullable
|
99
|
+
Set.new([
|
100
|
+
])
|
101
|
+
end
|
102
|
+
|
103
|
+
# Initializes the object
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
def initialize(attributes = {})
|
106
|
+
if (!attributes.is_a?(Hash))
|
107
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Kickflow::TicketDetailAllOfCloudSignDocument` initialize method"
|
108
|
+
end
|
109
|
+
|
110
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
111
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
112
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
113
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Kickflow::TicketDetailAllOfCloudSignDocument`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
114
|
+
end
|
115
|
+
h[k.to_sym] = v
|
116
|
+
}
|
117
|
+
|
118
|
+
if attributes.key?(:'id')
|
119
|
+
self.id = attributes[:'id']
|
120
|
+
else
|
121
|
+
self.id = nil
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'document_id')
|
125
|
+
self.document_id = attributes[:'document_id']
|
126
|
+
else
|
127
|
+
self.document_id = nil
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes.key?(:'document_title')
|
131
|
+
self.document_title = attributes[:'document_title']
|
132
|
+
else
|
133
|
+
self.document_title = nil
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'status')
|
137
|
+
self.status = attributes[:'status']
|
138
|
+
else
|
139
|
+
self.status = nil
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'sandbox')
|
143
|
+
self.sandbox = attributes[:'sandbox']
|
144
|
+
else
|
145
|
+
self.sandbox = nil
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'created_at')
|
149
|
+
self.created_at = attributes[:'created_at']
|
150
|
+
else
|
151
|
+
self.created_at = nil
|
152
|
+
end
|
153
|
+
|
154
|
+
if attributes.key?(:'updated_at')
|
155
|
+
self.updated_at = attributes[:'updated_at']
|
156
|
+
else
|
157
|
+
self.updated_at = nil
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'url')
|
161
|
+
self.url = attributes[:'url']
|
162
|
+
else
|
163
|
+
self.url = nil
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
168
|
+
# @return Array for valid properties with the reasons
|
169
|
+
def list_invalid_properties
|
170
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
171
|
+
invalid_properties = Array.new
|
172
|
+
if @id.nil?
|
173
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
174
|
+
end
|
175
|
+
|
176
|
+
if @document_id.nil?
|
177
|
+
invalid_properties.push('invalid value for "document_id", document_id cannot be nil.')
|
178
|
+
end
|
179
|
+
|
180
|
+
if @document_title.nil?
|
181
|
+
invalid_properties.push('invalid value for "document_title", document_title cannot be nil.')
|
182
|
+
end
|
183
|
+
|
184
|
+
if @status.nil?
|
185
|
+
invalid_properties.push('invalid value for "status", status cannot be nil.')
|
186
|
+
end
|
187
|
+
|
188
|
+
if @sandbox.nil?
|
189
|
+
invalid_properties.push('invalid value for "sandbox", sandbox cannot be nil.')
|
190
|
+
end
|
191
|
+
|
192
|
+
if @created_at.nil?
|
193
|
+
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
194
|
+
end
|
195
|
+
|
196
|
+
if @updated_at.nil?
|
197
|
+
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
198
|
+
end
|
199
|
+
|
200
|
+
if @url.nil?
|
201
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
202
|
+
end
|
203
|
+
|
204
|
+
invalid_properties
|
205
|
+
end
|
206
|
+
|
207
|
+
# Check to see if the all the properties in the model are valid
|
208
|
+
# @return true if the model is valid
|
209
|
+
def valid?
|
210
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
211
|
+
return false if @id.nil?
|
212
|
+
return false if @document_id.nil?
|
213
|
+
return false if @document_title.nil?
|
214
|
+
return false if @status.nil?
|
215
|
+
status_validator = EnumAttributeValidator.new('String', ["draft", "in_progress", "rejected", "template", "imported", "completed"])
|
216
|
+
return false unless status_validator.valid?(@status)
|
217
|
+
return false if @sandbox.nil?
|
218
|
+
return false if @created_at.nil?
|
219
|
+
return false if @updated_at.nil?
|
220
|
+
return false if @url.nil?
|
221
|
+
true
|
222
|
+
end
|
223
|
+
|
224
|
+
# Custom attribute writer method checking allowed values (enum).
|
225
|
+
# @param [Object] status Object to be assigned
|
226
|
+
def status=(status)
|
227
|
+
validator = EnumAttributeValidator.new('String', ["draft", "in_progress", "rejected", "template", "imported", "completed"])
|
228
|
+
unless validator.valid?(status)
|
229
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
230
|
+
end
|
231
|
+
@status = status
|
232
|
+
end
|
233
|
+
|
234
|
+
# Checks equality by comparing each attribute.
|
235
|
+
# @param [Object] Object to be compared
|
236
|
+
def ==(o)
|
237
|
+
return true if self.equal?(o)
|
238
|
+
self.class == o.class &&
|
239
|
+
id == o.id &&
|
240
|
+
document_id == o.document_id &&
|
241
|
+
document_title == o.document_title &&
|
242
|
+
status == o.status &&
|
243
|
+
sandbox == o.sandbox &&
|
244
|
+
created_at == o.created_at &&
|
245
|
+
updated_at == o.updated_at &&
|
246
|
+
url == o.url
|
247
|
+
end
|
248
|
+
|
249
|
+
# @see the `==` method
|
250
|
+
# @param [Object] Object to be compared
|
251
|
+
def eql?(o)
|
252
|
+
self == o
|
253
|
+
end
|
254
|
+
|
255
|
+
# Calculates hash code according to all attributes.
|
256
|
+
# @return [Integer] Hash code
|
257
|
+
def hash
|
258
|
+
[id, document_id, document_title, status, sandbox, created_at, updated_at, url].hash
|
259
|
+
end
|
260
|
+
|
261
|
+
# Builds the object from hash
|
262
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
263
|
+
# @return [Object] Returns the model itself
|
264
|
+
def self.build_from_hash(attributes)
|
265
|
+
return nil unless attributes.is_a?(Hash)
|
266
|
+
attributes = attributes.transform_keys(&:to_sym)
|
267
|
+
transformed_hash = {}
|
268
|
+
openapi_types.each_pair do |key, type|
|
269
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
270
|
+
transformed_hash["#{key}"] = nil
|
271
|
+
elsif type =~ /\AArray<(.*)>/i
|
272
|
+
# check to ensure the input is an array given that the attribute
|
273
|
+
# is documented as an array but the input is not
|
274
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
275
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
276
|
+
end
|
277
|
+
elsif !attributes[attribute_map[key]].nil?
|
278
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
279
|
+
end
|
280
|
+
end
|
281
|
+
new(transformed_hash)
|
282
|
+
end
|
283
|
+
|
284
|
+
# Deserializes the data based on type
|
285
|
+
# @param string type Data type
|
286
|
+
# @param string value Value to be deserialized
|
287
|
+
# @return [Object] Deserialized data
|
288
|
+
def self._deserialize(type, value)
|
289
|
+
case type.to_sym
|
290
|
+
when :Time
|
291
|
+
Time.parse(value)
|
292
|
+
when :Date
|
293
|
+
Date.parse(value)
|
294
|
+
when :String
|
295
|
+
value.to_s
|
296
|
+
when :Integer
|
297
|
+
value.to_i
|
298
|
+
when :Float
|
299
|
+
value.to_f
|
300
|
+
when :Boolean
|
301
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
302
|
+
true
|
303
|
+
else
|
304
|
+
false
|
305
|
+
end
|
306
|
+
when :Object
|
307
|
+
# generic object (usually a Hash), return directly
|
308
|
+
value
|
309
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
310
|
+
inner_type = Regexp.last_match[:inner_type]
|
311
|
+
value.map { |v| _deserialize(inner_type, v) }
|
312
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
313
|
+
k_type = Regexp.last_match[:k_type]
|
314
|
+
v_type = Regexp.last_match[:v_type]
|
315
|
+
{}.tap do |hash|
|
316
|
+
value.each do |k, v|
|
317
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
318
|
+
end
|
319
|
+
end
|
320
|
+
else # model
|
321
|
+
# models (e.g. Pet) or oneOf
|
322
|
+
klass = Kickflow.const_get(type)
|
323
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
324
|
+
end
|
325
|
+
end
|
326
|
+
|
327
|
+
# Returns the string representation of the object
|
328
|
+
# @return [String] String presentation of the object
|
329
|
+
def to_s
|
330
|
+
to_hash.to_s
|
331
|
+
end
|
332
|
+
|
333
|
+
# to_body is an alias to to_hash (backward compatibility)
|
334
|
+
# @return [Hash] Returns the object in the form of hash
|
335
|
+
def to_body
|
336
|
+
to_hash
|
337
|
+
end
|
338
|
+
|
339
|
+
# Returns the object in the form of hash
|
340
|
+
# @return [Hash] Returns the object in the form of hash
|
341
|
+
def to_hash
|
342
|
+
hash = {}
|
343
|
+
self.class.attribute_map.each_pair do |attr, param|
|
344
|
+
value = self.send(attr)
|
345
|
+
if value.nil?
|
346
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
347
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
348
|
+
end
|
349
|
+
|
350
|
+
hash[param] = _to_hash(value)
|
351
|
+
end
|
352
|
+
hash
|
353
|
+
end
|
354
|
+
|
355
|
+
# Outputs non-array value in the form of hash
|
356
|
+
# For object, use to_hash. Otherwise, just return the value
|
357
|
+
# @param [Object] value Any valid value
|
358
|
+
# @return [Hash] Returns the value in the form of hash
|
359
|
+
def _to_hash(value)
|
360
|
+
if value.is_a?(Array)
|
361
|
+
value.compact.map { |v| _to_hash(v) }
|
362
|
+
elsif value.is_a?(Hash)
|
363
|
+
{}.tap do |hash|
|
364
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
365
|
+
end
|
366
|
+
elsif value.respond_to? :to_hash
|
367
|
+
value.to_hash
|
368
|
+
else
|
369
|
+
value
|
370
|
+
end
|
371
|
+
end
|
372
|
+
|
373
|
+
end
|
374
|
+
|
375
|
+
end
|
@@ -0,0 +1,308 @@
|
|
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 TicketInput
|
19
|
+
# UUID
|
20
|
+
attr_accessor :id
|
21
|
+
|
22
|
+
attr_accessor :value
|
23
|
+
|
24
|
+
attr_accessor :form_field
|
25
|
+
|
26
|
+
# 入力値: 汎用マスタアイテム
|
27
|
+
attr_accessor :general_master_items
|
28
|
+
|
29
|
+
# 入力値: ユーザー
|
30
|
+
attr_accessor :users
|
31
|
+
|
32
|
+
# 入力値: チーム
|
33
|
+
attr_accessor :teams
|
34
|
+
|
35
|
+
# 入力値: チケット
|
36
|
+
attr_accessor :input_tickets
|
37
|
+
|
38
|
+
# 添付ファイル
|
39
|
+
attr_accessor :attachments
|
40
|
+
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
42
|
+
def self.attribute_map
|
43
|
+
{
|
44
|
+
:'id' => :'id',
|
45
|
+
:'value' => :'value',
|
46
|
+
:'form_field' => :'formField',
|
47
|
+
:'general_master_items' => :'generalMasterItems',
|
48
|
+
:'users' => :'users',
|
49
|
+
:'teams' => :'teams',
|
50
|
+
:'input_tickets' => :'inputTickets',
|
51
|
+
:'attachments' => :'attachments'
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Returns all the JSON keys this model knows about
|
56
|
+
def self.acceptable_attributes
|
57
|
+
attribute_map.values
|
58
|
+
end
|
59
|
+
|
60
|
+
# Attribute type mapping.
|
61
|
+
def self.openapi_types
|
62
|
+
{
|
63
|
+
:'id' => :'String',
|
64
|
+
:'value' => :'TicketInputValue',
|
65
|
+
:'form_field' => :'FormField',
|
66
|
+
:'general_master_items' => :'Array<GeneralMasterItem>',
|
67
|
+
:'users' => :'Array<User>',
|
68
|
+
:'teams' => :'Array<Team>',
|
69
|
+
:'input_tickets' => :'Array<Ticket>',
|
70
|
+
:'attachments' => :'Array<Attachment>'
|
71
|
+
}
|
72
|
+
end
|
73
|
+
|
74
|
+
# List of attributes with nullable: true
|
75
|
+
def self.openapi_nullable
|
76
|
+
Set.new([
|
77
|
+
])
|
78
|
+
end
|
79
|
+
|
80
|
+
# Initializes the object
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
82
|
+
def initialize(attributes = {})
|
83
|
+
if (!attributes.is_a?(Hash))
|
84
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Kickflow::TicketInput` initialize method"
|
85
|
+
end
|
86
|
+
|
87
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
89
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
90
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Kickflow::TicketInput`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
91
|
+
end
|
92
|
+
h[k.to_sym] = v
|
93
|
+
}
|
94
|
+
|
95
|
+
if attributes.key?(:'id')
|
96
|
+
self.id = attributes[:'id']
|
97
|
+
else
|
98
|
+
self.id = nil
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'value')
|
102
|
+
self.value = attributes[:'value']
|
103
|
+
else
|
104
|
+
self.value = nil
|
105
|
+
end
|
106
|
+
|
107
|
+
if attributes.key?(:'form_field')
|
108
|
+
self.form_field = attributes[:'form_field']
|
109
|
+
end
|
110
|
+
|
111
|
+
if attributes.key?(:'general_master_items')
|
112
|
+
if (value = attributes[:'general_master_items']).is_a?(Array)
|
113
|
+
self.general_master_items = value
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'users')
|
118
|
+
if (value = attributes[:'users']).is_a?(Array)
|
119
|
+
self.users = value
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
if attributes.key?(:'teams')
|
124
|
+
if (value = attributes[:'teams']).is_a?(Array)
|
125
|
+
self.teams = value
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'input_tickets')
|
130
|
+
if (value = attributes[:'input_tickets']).is_a?(Array)
|
131
|
+
self.input_tickets = value
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
if attributes.key?(:'attachments')
|
136
|
+
if (value = attributes[:'attachments']).is_a?(Array)
|
137
|
+
self.attachments = value
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
143
|
+
# @return Array for valid properties with the reasons
|
144
|
+
def list_invalid_properties
|
145
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
146
|
+
invalid_properties = Array.new
|
147
|
+
if @id.nil?
|
148
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
149
|
+
end
|
150
|
+
|
151
|
+
if @value.nil?
|
152
|
+
invalid_properties.push('invalid value for "value", value cannot be nil.')
|
153
|
+
end
|
154
|
+
|
155
|
+
invalid_properties
|
156
|
+
end
|
157
|
+
|
158
|
+
# Check to see if the all the properties in the model are valid
|
159
|
+
# @return true if the model is valid
|
160
|
+
def valid?
|
161
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
162
|
+
return false if @id.nil?
|
163
|
+
return false if @value.nil?
|
164
|
+
true
|
165
|
+
end
|
166
|
+
|
167
|
+
# Checks equality by comparing each attribute.
|
168
|
+
# @param [Object] Object to be compared
|
169
|
+
def ==(o)
|
170
|
+
return true if self.equal?(o)
|
171
|
+
self.class == o.class &&
|
172
|
+
id == o.id &&
|
173
|
+
value == o.value &&
|
174
|
+
form_field == o.form_field &&
|
175
|
+
general_master_items == o.general_master_items &&
|
176
|
+
users == o.users &&
|
177
|
+
teams == o.teams &&
|
178
|
+
input_tickets == o.input_tickets &&
|
179
|
+
attachments == o.attachments
|
180
|
+
end
|
181
|
+
|
182
|
+
# @see the `==` method
|
183
|
+
# @param [Object] Object to be compared
|
184
|
+
def eql?(o)
|
185
|
+
self == o
|
186
|
+
end
|
187
|
+
|
188
|
+
# Calculates hash code according to all attributes.
|
189
|
+
# @return [Integer] Hash code
|
190
|
+
def hash
|
191
|
+
[id, value, form_field, general_master_items, users, teams, input_tickets, attachments].hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Builds the object from hash
|
195
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
196
|
+
# @return [Object] Returns the model itself
|
197
|
+
def self.build_from_hash(attributes)
|
198
|
+
return nil unless attributes.is_a?(Hash)
|
199
|
+
attributes = attributes.transform_keys(&:to_sym)
|
200
|
+
transformed_hash = {}
|
201
|
+
openapi_types.each_pair do |key, type|
|
202
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
203
|
+
transformed_hash["#{key}"] = nil
|
204
|
+
elsif type =~ /\AArray<(.*)>/i
|
205
|
+
# check to ensure the input is an array given that the attribute
|
206
|
+
# is documented as an array but the input is not
|
207
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
208
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
209
|
+
end
|
210
|
+
elsif !attributes[attribute_map[key]].nil?
|
211
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
212
|
+
end
|
213
|
+
end
|
214
|
+
new(transformed_hash)
|
215
|
+
end
|
216
|
+
|
217
|
+
# Deserializes the data based on type
|
218
|
+
# @param string type Data type
|
219
|
+
# @param string value Value to be deserialized
|
220
|
+
# @return [Object] Deserialized data
|
221
|
+
def self._deserialize(type, value)
|
222
|
+
case type.to_sym
|
223
|
+
when :Time
|
224
|
+
Time.parse(value)
|
225
|
+
when :Date
|
226
|
+
Date.parse(value)
|
227
|
+
when :String
|
228
|
+
value.to_s
|
229
|
+
when :Integer
|
230
|
+
value.to_i
|
231
|
+
when :Float
|
232
|
+
value.to_f
|
233
|
+
when :Boolean
|
234
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
235
|
+
true
|
236
|
+
else
|
237
|
+
false
|
238
|
+
end
|
239
|
+
when :Object
|
240
|
+
# generic object (usually a Hash), return directly
|
241
|
+
value
|
242
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
243
|
+
inner_type = Regexp.last_match[:inner_type]
|
244
|
+
value.map { |v| _deserialize(inner_type, v) }
|
245
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
246
|
+
k_type = Regexp.last_match[:k_type]
|
247
|
+
v_type = Regexp.last_match[:v_type]
|
248
|
+
{}.tap do |hash|
|
249
|
+
value.each do |k, v|
|
250
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
251
|
+
end
|
252
|
+
end
|
253
|
+
else # model
|
254
|
+
# models (e.g. Pet) or oneOf
|
255
|
+
klass = Kickflow.const_get(type)
|
256
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
# Returns the string representation of the object
|
261
|
+
# @return [String] String presentation of the object
|
262
|
+
def to_s
|
263
|
+
to_hash.to_s
|
264
|
+
end
|
265
|
+
|
266
|
+
# to_body is an alias to to_hash (backward compatibility)
|
267
|
+
# @return [Hash] Returns the object in the form of hash
|
268
|
+
def to_body
|
269
|
+
to_hash
|
270
|
+
end
|
271
|
+
|
272
|
+
# Returns the object in the form of hash
|
273
|
+
# @return [Hash] Returns the object in the form of hash
|
274
|
+
def to_hash
|
275
|
+
hash = {}
|
276
|
+
self.class.attribute_map.each_pair do |attr, param|
|
277
|
+
value = self.send(attr)
|
278
|
+
if value.nil?
|
279
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
280
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
281
|
+
end
|
282
|
+
|
283
|
+
hash[param] = _to_hash(value)
|
284
|
+
end
|
285
|
+
hash
|
286
|
+
end
|
287
|
+
|
288
|
+
# Outputs non-array value in the form of hash
|
289
|
+
# For object, use to_hash. Otherwise, just return the value
|
290
|
+
# @param [Object] value Any valid value
|
291
|
+
# @return [Hash] Returns the value in the form of hash
|
292
|
+
def _to_hash(value)
|
293
|
+
if value.is_a?(Array)
|
294
|
+
value.compact.map { |v| _to_hash(v) }
|
295
|
+
elsif value.is_a?(Hash)
|
296
|
+
{}.tap do |hash|
|
297
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
298
|
+
end
|
299
|
+
elsif value.respond_to? :to_hash
|
300
|
+
value.to_hash
|
301
|
+
else
|
302
|
+
value
|
303
|
+
end
|
304
|
+
end
|
305
|
+
|
306
|
+
end
|
307
|
+
|
308
|
+
end
|