1742 lines
69 KiB
Python
1742 lines
69 KiB
Python
#
|
|
# def create_authentication_service(add_module):
|
|
#
|
|
# authentication_service = Services.find_or_create(
|
|
# service_name="Authentication",
|
|
# service_description="Authentication Service",
|
|
# service_code="AUTH",
|
|
# )
|
|
#
|
|
# authentication_login_with_domain_and_creds_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_login_with_domain_and_creds"
|
|
# )
|
|
# authentication_login_with_domain_and_creds = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Login",
|
|
# action_description="Login with Domain and Creds Action",
|
|
# action_code="LWDC",
|
|
# endpoint_id=authentication_login_with_domain_and_creds_endpoint.id,
|
|
# )
|
|
# authentication_select_company_or_occupant_type_endpoint = (
|
|
# EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_select_company_or_occupant_type"
|
|
# )
|
|
# )
|
|
# authentication_select_company_or_occupant_type = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Select",
|
|
# action_description="Select Company or Occupant Type Action",
|
|
# action_code="SCOT",
|
|
# endpoint_id=authentication_select_company_or_occupant_type_endpoint.id,
|
|
# )
|
|
# authentication_check_token_is_valid_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_check_token_is_valid"
|
|
# )
|
|
# authentication_check_token_is_valid = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Check",
|
|
# action_description="Check Token is Valid Action",
|
|
# action_code="CTIV",
|
|
# endpoint_id=authentication_check_token_is_valid_endpoint.id,
|
|
# )
|
|
# authentication_refresh_user_info_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_refresh_user_info"
|
|
# )
|
|
# authentication_refresh_user_info = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Refresh",
|
|
# action_description="Refresh User Info Action",
|
|
# action_code="RUI",
|
|
# endpoint_id=authentication_refresh_user_info_endpoint.id,
|
|
# )
|
|
# authentication_change_password_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_change_password"
|
|
# )
|
|
# authentication_change_password = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Change",
|
|
# action_description="Change Password Action",
|
|
# action_code="CP",
|
|
# endpoint_id=authentication_change_password_endpoint.id,
|
|
# )
|
|
# authentication_create_password_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_create_password"
|
|
# )
|
|
# authentication_create_password = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Create",
|
|
# action_description="Create Password Action",
|
|
# action_code="CP",
|
|
# endpoint_id=authentication_create_password_endpoint.id,
|
|
# )
|
|
# authentication_disconnect_user_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_disconnect_user"
|
|
# )
|
|
# authentication_disconnect_user = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Disconnect",
|
|
# action_description="Disconnect User Action",
|
|
# action_code="DU",
|
|
# endpoint_id=authentication_disconnect_user_endpoint.id,
|
|
# )
|
|
# authentication_logout_user_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_logout_user"
|
|
# )
|
|
# authentication_logout_user = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Logout",
|
|
# action_description="Logout User Action",
|
|
# action_code="LU",
|
|
# endpoint_id=authentication_logout_user_endpoint.id,
|
|
# )
|
|
# authentication_refresher_token_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_refresher_token"
|
|
# )
|
|
# authentication_refresher_token = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Refresher Token",
|
|
# action_description="Refresher Token Action",
|
|
# action_code="RT",
|
|
# endpoint_id=authentication_refresher_token_endpoint.id,
|
|
# )
|
|
# authentication_forgot_password_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_forgot_password"
|
|
# )
|
|
# authentication_forgot_password = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Forgot",
|
|
# action_description="Forgot Password Action",
|
|
# action_code="FP",
|
|
# endpoint_id=authentication_forgot_password_endpoint.id,
|
|
# )
|
|
# authentication_download_avatar_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="authentication_download_avatar"
|
|
# )
|
|
# authentication_download_avatar = Actions.find_or_create(
|
|
# action_table="Authentication",
|
|
# action_type="Avatar",
|
|
# action_description="Download Avatar Action",
|
|
# action_code="DA",
|
|
# endpoint_id=authentication_download_avatar_endpoint.id,
|
|
# )
|
|
# # Authentication completed
|
|
#
|
|
#
|
|
# def create_build_service(add_module):
|
|
# build_service = Services.find_or_create(
|
|
# service_name="Build",
|
|
# service_description="Build Service",
|
|
# service_code="BLD",
|
|
# )
|
|
# building_build_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_list"
|
|
# )
|
|
# building_build_list = Actions.find_or_create(
|
|
# action_table="Build",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=building_build_list_endpoint.id,
|
|
# )
|
|
# building_build_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_create"
|
|
# )
|
|
# building_build_create = Actions.find_or_create(
|
|
# action_table="Build",
|
|
# action_type="Create",
|
|
# action_description="Create Build with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=building_build_create_endpoint.id,
|
|
# )
|
|
# building_build_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_update"
|
|
# )
|
|
# building_build_update = Actions.find_or_create(
|
|
# action_table="Build",
|
|
# action_type="Update",
|
|
# action_description="Update Build Parts with given auth levels Action",
|
|
# action_code="UBPGAL",
|
|
# endpoint_id=building_build_update_endpoint.id,
|
|
# )
|
|
# building_build_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_patch"
|
|
# )
|
|
# building_build_patch = Actions.find_or_create(
|
|
# action_table="Build",
|
|
# action_type="Update",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=building_build_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_parts_service(add_module):
|
|
# build_parts_service = Services.find_or_create(
|
|
# service_name="Buildparts",
|
|
# service_description="Build Parts Service",
|
|
# service_code="BLDP",
|
|
# )
|
|
# building_build_parts_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_part_list"
|
|
# )
|
|
# building_build_parts_list = Actions.find_or_create(
|
|
# action_table="Build Parts",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Parts Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=building_build_parts_list_endpoint.id,
|
|
# )
|
|
# building_build_part_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_part_create"
|
|
# )
|
|
# building_build_part_create = Actions.find_or_create(
|
|
# action_table="Build Parts",
|
|
# action_type="Create",
|
|
# action_description="Create Build Parts with given auth levels Action",
|
|
# action_code="CBPGAL",
|
|
# endpoint_id=building_build_part_create_endpoint.id,
|
|
# )
|
|
# building_build_part_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_part_update"
|
|
# )
|
|
# building_build_part_update = Actions.find_or_create(
|
|
# action_table="Build Parts",
|
|
# action_type="Update",
|
|
# action_description="Update Build Parts with given auth levels Action",
|
|
# action_code="UBPGAL",
|
|
# endpoint_id=building_build_part_update_endpoint.id,
|
|
# )
|
|
# building_build_part_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_build_part_patch"
|
|
# )
|
|
# building_build_part_patch = Actions.find_or_create(
|
|
# action_table="Build Parts",
|
|
# action_type="Update",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=building_build_part_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_area_service(add_module):
|
|
# build_section_service = Services.find_or_create(
|
|
# service_name="BuildArea",
|
|
# service_description="Build Area Service",
|
|
# service_code="BLDA",
|
|
# )
|
|
# building_build_area_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_area_list"
|
|
# )
|
|
# building_build_area_list = Actions.find_or_create(
|
|
# action_table="Build Area",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Area Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=building_build_area_list_endpoint.id,
|
|
# )
|
|
# building_build_area_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_area_create"
|
|
# )
|
|
# building_build_area_create = Actions.find_or_create(
|
|
# action_table="Build Area",
|
|
# action_type="Create",
|
|
# action_description="Create Build Area with given auth levels Action",
|
|
# action_code="CBAGAL",
|
|
# endpoint_id=building_build_area_create_endpoint.id,
|
|
# )
|
|
# building_build_area_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_area_update"
|
|
# )
|
|
# building_build_area_update = Actions.find_or_create(
|
|
# action_table="Build Area",
|
|
# action_type="Update",
|
|
# action_description="Update Build Area with given auth levels Action",
|
|
# action_code="UBAGAL",
|
|
# endpoint_id=building_build_area_update_endpoint.id,
|
|
# )
|
|
# building_build_area_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_area_patch"
|
|
# )
|
|
# building_build_area_patch = Actions.find_or_create(
|
|
# action_table="Build Area",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=building_build_area_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_sites_service(add_module):
|
|
# build_sites_service = Services.find_or_create(
|
|
# service_name="BuildSites",
|
|
# service_description="Build Sites Service",
|
|
# service_code="BLDS",
|
|
# )
|
|
# building_sites_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_sites_list"
|
|
# )
|
|
# building_sites_list = Actions.find_or_create(
|
|
# action_table="Build Sites",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Sites Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=building_sites_list_endpoint.id,
|
|
# )
|
|
# building_sites_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_sites_create"
|
|
# )
|
|
# building_sites_create = Actions.find_or_create(
|
|
# action_table="Build Sites",
|
|
# action_type="Create",
|
|
# action_description="Create Build Sites with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=building_sites_create_endpoint.id,
|
|
# )
|
|
# building_sites_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_sites_update"
|
|
# )
|
|
# building_sites_update = Actions.find_or_create(
|
|
# action_table="Build Sites",
|
|
# action_type="Update",
|
|
# action_description="Update Build Sites with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=building_sites_update_endpoint.id,
|
|
# )
|
|
# building_sites_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_sites_patch"
|
|
# )
|
|
# building_sites_patch = Actions.find_or_create(
|
|
# action_table="Build Sites",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=building_sites_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_types_service(add_module):
|
|
# build_types_service = Services.find_or_create(
|
|
# service_name="BuildTypes",
|
|
# service_description="Build Types Service",
|
|
# service_code="BLDT",
|
|
# )
|
|
# building_types_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_types_list"
|
|
# )
|
|
# building_types_list = Actions.find_or_create(
|
|
# action_table="Build Types",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Parts Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=building_types_list_endpoint.id,
|
|
# )
|
|
# building_types_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_types_create"
|
|
# )
|
|
# building_types_create = Actions.find_or_create(
|
|
# action_table="Build Types",
|
|
# action_type="Create",
|
|
# action_description="Create BuildParts with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=building_types_create_endpoint.id,
|
|
# )
|
|
# building_types_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_types_update"
|
|
# )
|
|
# building_types_update = Actions.find_or_create(
|
|
# action_table="Build Types",
|
|
# action_type="Update",
|
|
# action_description="Update BuildParts with given auth levels Action",
|
|
# action_code="UBPGAL",
|
|
# endpoint_id=building_types_update_endpoint.id,
|
|
# )
|
|
# building_types_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_types_patch"
|
|
# )
|
|
# building_types_patch = Actions.find_or_create(
|
|
# action_table="Build Types",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=building_types_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_living_spaces_service(add_module):
|
|
# living_spaces_service = Services.find_or_create(
|
|
# service_name="Livingspaces",
|
|
# service_description="Living Spaces Service",
|
|
# service_code="LIV",
|
|
# )
|
|
# building_living_space_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_living_space_list"
|
|
# )
|
|
# building_living_space_list = Actions.find_or_create(
|
|
# action_table="Build Living Space",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Parts Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=building_living_space_list_endpoint.id,
|
|
# )
|
|
# building_living_space_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_living_space_create"
|
|
# )
|
|
# building_living_space_create = Actions.find_or_create(
|
|
# action_table="Build Living Space",
|
|
# action_type="Create",
|
|
# action_description="Create Build Living Space with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=building_living_space_create_endpoint.id,
|
|
# )
|
|
# building_living_space_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_living_space_update"
|
|
# )
|
|
# building_living_space_update = Actions.find_or_create(
|
|
# action_table="Build Living Space",
|
|
# action_type="Update",
|
|
# action_description="Update Build Living Space with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=building_living_space_update_endpoint.id,
|
|
# )
|
|
# building_living_space_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="building_living_space_patch"
|
|
# )
|
|
# building_living_space_patch = Actions.find_or_create(
|
|
# action_table="Build Living Space",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=building_living_space_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_company_service(add_module):
|
|
# company_service = Services.find_or_create(
|
|
# service_name="Company",
|
|
# service_description="Company Service",
|
|
# service_code="COM",
|
|
# )
|
|
# company_company_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_company_list"
|
|
# )
|
|
# company_company_list = Actions.find_or_create(
|
|
# action_table="Company",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Company Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=company_company_list_endpoint.id,
|
|
# )
|
|
# company_company_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_company_create"
|
|
# )
|
|
# company_company_create = Actions.find_or_create(
|
|
# action_table="Company",
|
|
# action_type="Create",
|
|
# action_description="Create Company with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=company_company_create_endpoint.id,
|
|
# )
|
|
# company_company_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_company_update"
|
|
# )
|
|
# company_company_update = Actions.find_or_create(
|
|
# action_table="Company",
|
|
# action_type="Update",
|
|
# action_description="Update Company with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=company_company_update_endpoint.id,
|
|
# )
|
|
# company_company_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_company_patch"
|
|
# )
|
|
# company_company_patch = Actions.find_or_create(
|
|
# action_table="Company",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=company_company_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_department_service(add_module):
|
|
# department_service = Services.find_or_create(
|
|
# service_name="Department",
|
|
# service_description="Department Service",
|
|
# service_code="DEP",
|
|
# )
|
|
# department_department_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_department_list"
|
|
# )
|
|
# department_department_list = Actions.find_or_create(
|
|
# action_table="Department",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Department Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=department_department_list_endpoint.id,
|
|
# )
|
|
# department_department_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_department_create",
|
|
# )
|
|
# department_department_create = Actions.find_or_create(
|
|
# action_table="Department",
|
|
# action_type="Create",
|
|
# action_description="Create Department with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=department_department_create_endpoint.id,
|
|
# )
|
|
# department_department_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_department_update",
|
|
# )
|
|
# department_department_update = Actions.find_or_create(
|
|
# action_table="Department",
|
|
# action_type="Update",
|
|
# action_description="Update Department with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=department_department_update_endpoint.id,
|
|
# )
|
|
# department_department_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_department_patch",
|
|
# )
|
|
# department_department_patch = Actions.find_or_create(
|
|
# action_table="Department",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=department_department_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_duty_service(add_module):
|
|
# duty_service = Services.find_or_create(
|
|
# service_name="Duty",
|
|
# service_description="Duty Service",
|
|
# service_code="DTY",
|
|
# )
|
|
# duty_duty_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duty_list"
|
|
# )
|
|
# duty_duty_list = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Duty Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=duty_duty_list_endpoint.id,
|
|
# )
|
|
# duty_duty_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duty_create"
|
|
# )
|
|
# duty_duty_create = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="Create",
|
|
# action_description="Create Duty with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=duty_duty_create_endpoint.id,
|
|
# )
|
|
# duty_duty_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duty_update"
|
|
# )
|
|
# duty_duty_update = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="Update",
|
|
# action_description="Update Duty with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=duty_duty_update_endpoint.id,
|
|
# )
|
|
# duty_duty_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duty_patch"
|
|
# )
|
|
# duty_duty_patch = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=duty_duty_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_duties_service(add_module):
|
|
# duties_service = Services.find_or_create(
|
|
# service_name="Duties",
|
|
# service_description="Duties Service",
|
|
# service_code="DUT",
|
|
# )
|
|
# company_duties_get_by_duty_uuid_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duties_get_by_duty_uuid"
|
|
# )
|
|
# company_duties_get_by_duty_uuid = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="Get",
|
|
# action_description="Get Duties by Duty UU ID Action",
|
|
# action_code="GDBD",
|
|
# endpoint_id=company_duties_get_by_duty_uuid_endpoint.id,
|
|
# )
|
|
# duties_duties_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duties_list"
|
|
# )
|
|
# duties_duties_list = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Duties Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=duties_duties_list_endpoint.id,
|
|
# )
|
|
# duties_duties_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duties_create"
|
|
# )
|
|
# duties_duties_create = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="Create",
|
|
# action_description="Create Duties with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=duties_duties_create_endpoint.id,
|
|
# )
|
|
# duties_duties_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duties_update"
|
|
# )
|
|
# duties_duties_update = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="Update",
|
|
# action_description="Update Duties with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=duties_duties_update_endpoint.id,
|
|
# )
|
|
# duties_duties_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_duties_patch"
|
|
# )
|
|
# duties_duties_patch = Actions.find_or_create(
|
|
# action_table="Duty",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=duties_duties_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_employee_service(add_module):
|
|
# employee_service = Services.find_or_create(
|
|
# service_name="Employee",
|
|
# service_description="Employee Service",
|
|
# service_code="EMP",
|
|
# )
|
|
# employee_employee_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_employee_list"
|
|
# )
|
|
# employee_employee_list = Actions.find_or_create(
|
|
# action_table="Employee",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Employee Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=employee_employee_list_endpoint.id,
|
|
# )
|
|
# employee_employee_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_employee_create"
|
|
# )
|
|
# employee_employee_create = Actions.find_or_create(
|
|
# action_table="Employee",
|
|
# action_type="Create",
|
|
# action_description="Create Employee with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=employee_employee_create_endpoint.id,
|
|
# )
|
|
# employee_employee_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_employee_update"
|
|
# )
|
|
# employee_employee_update = Actions.find_or_create(
|
|
# action_table="Employee",
|
|
# action_type="Update",
|
|
# action_description="Update Employee with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=employee_employee_update_endpoint.id,
|
|
# )
|
|
# employee_employee_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_employee_patch"
|
|
# )
|
|
# employee_employee_patch = Actions.find_or_create(
|
|
# action_table="Employee",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=employee_employee_patch_endpoint.id,
|
|
# )
|
|
# employee_employee_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_employee_employ"
|
|
# )
|
|
# employee_employee_patch = Actions.find_or_create(
|
|
# action_table="Employee",
|
|
# action_type="Employ",
|
|
# action_description="Employ Employee with given auth levels Action",
|
|
# action_code="EEGAL",
|
|
# endpoint_id=employee_employee_patch_endpoint.id,
|
|
# )
|
|
# employee_employee_fire_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_employee_fire"
|
|
# )
|
|
# employee_employee_fire = Actions.find_or_create(
|
|
# action_table="Employee",
|
|
# action_type="Fire",
|
|
# action_description="Fire Employee with given auth levels Action",
|
|
# action_code="FEGAL",
|
|
# endpoint_id=employee_employee_fire_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_staff_service(add_module):
|
|
# staff_service = Services.find_or_create(
|
|
# service_name="Staff",
|
|
# service_description="Staff Service",
|
|
# service_code="STF",
|
|
# )
|
|
# staff_staff_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_staff_list"
|
|
# )
|
|
# staff_staff_list = Actions.find_or_create(
|
|
# action_table="Staff",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Staff Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=staff_staff_list_endpoint.id,
|
|
# )
|
|
# company_staff_get_by_uu_id_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_staff_get_by_uu_id"
|
|
# )
|
|
# company_staff_get_by_uu_id = Actions.find_or_create(
|
|
# action_table="Staff",
|
|
# action_type="Get",
|
|
# action_description="Get Staff by UU ID Action",
|
|
# action_code="GSBU",
|
|
# endpoint_id=company_staff_get_by_uu_id_endpoint.id,
|
|
# )
|
|
# staff_staff_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_staff_create"
|
|
# )
|
|
# staff_staff_create = Actions.find_or_create(
|
|
# action_table="Staff",
|
|
# action_type="Create",
|
|
# action_description="Create Staff with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=staff_staff_create_endpoint.id,
|
|
# )
|
|
# staff_staff_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_staff_update"
|
|
# )
|
|
# staff_staff_update = Actions.find_or_create(
|
|
# action_table="Staff",
|
|
# action_type="Update",
|
|
# action_description="Update Staff with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=staff_staff_update_endpoint.id,
|
|
# )
|
|
# staff_staff_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="company_staff_patch"
|
|
# )
|
|
# staff_staff_patch = Actions.find_or_create(
|
|
# action_table="Staff",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=staff_staff_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_decision_book_service(add_module):
|
|
# decision_book_service = Services.find_or_create(
|
|
# service_name="DecisionBook",
|
|
# service_description="Decision Book Service",
|
|
# service_code="DB",
|
|
# )
|
|
# decision_book_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_list"
|
|
# )
|
|
# decision_book_list = Actions.find_or_create(
|
|
# action_table="Decision Book",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Decision Book Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=decision_book_list_endpoint.id,
|
|
# )
|
|
# decision_book_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_create"
|
|
# )
|
|
# decision_book_create = Actions.find_or_create(
|
|
# action_table="Decision Book",
|
|
# action_type="Create",
|
|
# action_description="Create Decision Book with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=decision_book_create_endpoint.id,
|
|
# )
|
|
# decision_book_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_update"
|
|
# )
|
|
# decision_book_update = Actions.find_or_create(
|
|
# action_table="Decision Book",
|
|
# action_type="Update",
|
|
# action_description="Update Decision Book with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=decision_book_update_endpoint.id,
|
|
# )
|
|
# decision_book_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_patch"
|
|
# )
|
|
# decision_book_patch = Actions.find_or_create(
|
|
# action_table="Decision Book",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=decision_book_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_decision_book_items_service(add_module):
|
|
# decision_book_items_service = Services.find_or_create(
|
|
# service_name="DecisionBookItems",
|
|
# service_description="Decision Book Items Service",
|
|
# service_code="DBI",
|
|
# )
|
|
# build_decision_book_items_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_list"
|
|
# )
|
|
# decision_book_items_list = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Decision Book Items Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=build_decision_book_items_list_endpoint.id,
|
|
# )
|
|
# decision_book_items_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_create"
|
|
# )
|
|
# decision_book_items_create = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Create",
|
|
# action_description="Create Decision Book Items with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=decision_book_items_create_endpoint.id,
|
|
# )
|
|
# decision_book_items_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_update"
|
|
# )
|
|
# decision_book_items_update = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Update",
|
|
# action_description="Update Decision Book Items with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=decision_book_items_update_endpoint.id,
|
|
# )
|
|
# decision_book_items_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_patch"
|
|
# )
|
|
# decision_book_items_patch = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=decision_book_items_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_decision_book_items_debits_service(add_module):
|
|
# decision_book_items_debits_service = Services.find_or_create(
|
|
# service_name="DecisionBookItemsDebits",
|
|
# service_description="Decision Book Items Debits Service",
|
|
# service_code="DBID",
|
|
# )
|
|
# build_decision_book_items_debits_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_debits_list"
|
|
# )
|
|
# decision_book_items_debits_list = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Decision Book Items Debits Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=build_decision_book_items_debits_list_endpoint.id,
|
|
# )
|
|
# build_decision_book_items_debits_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_debits_create"
|
|
# )
|
|
# decision_book_items_debits_create = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Create",
|
|
# action_description="Create Build Items Debits Decision Book with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=build_decision_book_items_debits_create_endpoint.id,
|
|
# )
|
|
# build_decision_book_items_debits_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_debits_update"
|
|
# )
|
|
# decision_book_items_debits_update = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Update",
|
|
# action_description="Update Build Decision Book Items Debits with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=build_decision_book_items_debits_update_endpoint.id,
|
|
# )
|
|
# build_decision_book_items_debits_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_items_debits_patch"
|
|
# )
|
|
# decision_book_items_debits_patch = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=build_decision_book_items_debits_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_decision_book_person_service(add_module):
|
|
# decision_book_person_service = Services.find_or_create(
|
|
# service_name="DecisionBookPerson",
|
|
# service_description="Decision Book Person Service",
|
|
# service_code="DBP",
|
|
# )
|
|
# build_decision_book_person_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_person_list"
|
|
# )
|
|
# decision_book_person_list = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Decision Book Person Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=build_decision_book_person_list_endpoint.id,
|
|
# )
|
|
# build_decision_book_person_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_person_create"
|
|
# )
|
|
# decision_book_person_create = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Create",
|
|
# action_description="Create Build Decision Book Person with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=build_decision_book_person_create_endpoint.id,
|
|
# )
|
|
# build_decision_book_person_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_person_update"
|
|
# )
|
|
# decision_book_person_update = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Update",
|
|
# action_description="Update Build Decision Book Person with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=build_decision_book_person_update_endpoint.id,
|
|
# )
|
|
# build_decision_book_person_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_decision_book_person_patch"
|
|
# )
|
|
# decision_book_person_patch = Actions.find_or_create(
|
|
# action_table="Decision Book Items",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=build_decision_book_person_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_actions_service(add_module):
|
|
# actions_service = Services.find_or_create(
|
|
# service_name="Actions",
|
|
# service_description="Actions Service",
|
|
# service_code="ACT",
|
|
# )
|
|
# actions_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="event_actions_list"
|
|
# )
|
|
# actions_list = Actions.find_or_create(
|
|
# action_table="Actions",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Actions Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=actions_list_endpoint.id,
|
|
# )
|
|
# actions_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="event_actions_create"
|
|
# )
|
|
# actions_create = Actions.find_or_create(
|
|
# action_table="Actions",
|
|
# action_type="Create",
|
|
# action_description="Create Actions with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=actions_create_endpoint.id,
|
|
# )
|
|
# actions_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="event_actions_update"
|
|
# )
|
|
# actions_update = Actions.find_or_create(
|
|
# action_table="Actions",
|
|
# action_type="Update",
|
|
# action_description="Update Actions with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=actions_update_endpoint.id,
|
|
# )
|
|
# actions_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="event_actions_patch"
|
|
# )
|
|
# actions_patch = Actions.find_or_create(
|
|
# action_table="Actions",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=actions_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_event_to_bind_people_service(add_module):
|
|
# event_to_bind_people = Services.find_or_create(
|
|
# service_name="EventToBindPeople",
|
|
# service_description="Event To Bind People Service",
|
|
# service_code="EBP",
|
|
# )
|
|
# bind_events_occupant_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="bind_events_occupant"
|
|
# )
|
|
# bind_events_occupant = Actions.find_or_create(
|
|
# action_table="Event To Bind People",
|
|
# action_type="Bind",
|
|
# action_description="Bind Events Occupant Action",
|
|
# action_code="BEO",
|
|
# endpoint_id=bind_events_occupant_endpoint.id,
|
|
# )
|
|
# bind_events_employee_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="bind_events_employee"
|
|
# )
|
|
# bind_events_employee = Actions.find_or_create(
|
|
# action_table="Event To Bind People",
|
|
# action_type="Bind",
|
|
# action_description="Bind Events Employee Action",
|
|
# action_code="BEE",
|
|
# endpoint_id=bind_events_employee_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_events_service(add_module):
|
|
# events_service = Services.find_or_create(
|
|
# service_name="Events",
|
|
# service_description="Events Service",
|
|
# service_code="EVT",
|
|
# )
|
|
# events_list_endpoint = EndpointRestriction.find_one(endpoint_function="events_list")
|
|
# events_list = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Events Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=events_list_endpoint.id,
|
|
# )
|
|
# events_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="events_create"
|
|
# )
|
|
# events_create = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="Create",
|
|
# action_description="Create Events with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=events_create_endpoint.id,
|
|
# )
|
|
# events_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="events_update"
|
|
# )
|
|
# events_update = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="Update",
|
|
# action_description="Update Events with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=events_update_endpoint.id,
|
|
# )
|
|
# events_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="events_patch"
|
|
# )
|
|
# events_patch = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=events_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_model_service(add_module):
|
|
# model_service = Services.find_or_create(
|
|
# service_name="Model",
|
|
# service_description="Model Service",
|
|
# service_code="MDL",
|
|
# )
|
|
# model_list_endpoint = EndpointRestriction.find_one(endpoint_function="model_list")
|
|
# model_list = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Model Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=model_list_endpoint.id,
|
|
# )
|
|
# model_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="model_create"
|
|
# )
|
|
# model_create = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="Create",
|
|
# action_description="Create Model with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=model_create_endpoint.id,
|
|
# )
|
|
# model_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="model_update"
|
|
# )
|
|
# model_update = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="Update",
|
|
# action_description="Update Model with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=model_update_endpoint.id,
|
|
# )
|
|
# model_patch_endpoint = EndpointRestriction.find_one(endpoint_function="model_patch")
|
|
# model_patch = Actions.find_or_create(
|
|
# action_table="Events",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=model_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_model_entities_service(add_module):
|
|
# model_entities_service = Services.find_or_create(
|
|
# service_name="ModelEntities",
|
|
# service_description="Model Entities Service",
|
|
# service_code="MDE",
|
|
# )
|
|
# model_entities_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="model_entities_list"
|
|
# )
|
|
# model_entities_list = Actions.find_or_create(
|
|
# action_table="Model Entities",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Model Entities Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=model_entities_list_endpoint.id,
|
|
# )
|
|
# model_entities_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="model_entities_create"
|
|
# )
|
|
# model_entities_create = Actions.find_or_create(
|
|
# action_table="Model Entities",
|
|
# action_type="Create",
|
|
# action_description="Create Model Entities with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=model_entities_create_endpoint.id,
|
|
# )
|
|
# model_entities_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="model_entities_update"
|
|
# )
|
|
# model_entities_update = Actions.find_or_create(
|
|
# action_table="Model Entities",
|
|
# action_type="Update",
|
|
# action_description="Update Model Entities with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=model_entities_update_endpoint.id,
|
|
# )
|
|
# model_entities_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="model_entities_patch"
|
|
# )
|
|
# model_entities_patch = Actions.find_or_create(
|
|
# action_table="Model Entities",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=model_entities_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_modules_service(add_module):
|
|
# modules_service = Services.find_or_create(
|
|
# service_name="Modules",
|
|
# service_description="Modules Service",
|
|
# service_code="MOD",
|
|
# )
|
|
# modules_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="modules_list"
|
|
# )
|
|
# modules_list = Actions.find_or_create(
|
|
# action_table="Modules",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Modules Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=modules_list_endpoint.id,
|
|
# )
|
|
# modules_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="modules_create"
|
|
# )
|
|
# modules_create = Actions.find_or_create(
|
|
# action_table="Modules",
|
|
# action_type="Create",
|
|
# action_description="Create Modules with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=modules_create_endpoint.id,
|
|
# )
|
|
# modules_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="modules_update"
|
|
# )
|
|
# modules_update = Actions.find_or_create(
|
|
# action_table="Modules",
|
|
# action_type="Update",
|
|
# action_description="Update Modules with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=modules_update_endpoint.id,
|
|
# )
|
|
# modules_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="modules_patch"
|
|
# )
|
|
# modules_patch = Actions.find_or_create(
|
|
# action_table="Modules",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=modules_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_bind_service_service(add_module):
|
|
# bind_service_service = Services.find_or_create(
|
|
# service_name="BindService",
|
|
# service_description="Bind Service Service",
|
|
# service_code="BDS",
|
|
# )
|
|
# bind_service_to_action_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="bind_service_to_action"
|
|
# )
|
|
# bind_service_to_action = Actions.find_or_create(
|
|
# action_table="Service Bind",
|
|
# action_type="Bind",
|
|
# action_description="Bind Service to Action Action",
|
|
# action_code="BSA",
|
|
# endpoint_id=bind_service_to_action_endpoint.id,
|
|
# )
|
|
# bind_module_to_service_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="bind_module_to_service"
|
|
# )
|
|
# bind_module_to_service = Actions.find_or_create(
|
|
# action_table="Service Bind",
|
|
# action_type="Bind",
|
|
# action_description="Bind Module to Service Action",
|
|
# action_code="BMS",
|
|
# endpoint_id=bind_module_to_service_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_services_service(add_module):
|
|
# services_service = Services.find_or_create(
|
|
# service_name="Services",
|
|
# service_description="Services Service",
|
|
# service_code="SRV",
|
|
# )
|
|
# services_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="services_list"
|
|
# )
|
|
# services_list = Actions.find_or_create(
|
|
# action_table="Services",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Services Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=services_list_endpoint.id,
|
|
# )
|
|
# services_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="services_create"
|
|
# )
|
|
# services_create = Actions.find_or_create(
|
|
# action_table="Services",
|
|
# action_type="Create",
|
|
# action_description="Create Services with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=services_create_endpoint.id,
|
|
# )
|
|
# services_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="services_update"
|
|
# )
|
|
# services_update = Actions.find_or_create(
|
|
# action_table="Services",
|
|
# action_type="Update",
|
|
# action_description="Update Services with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=services_update_endpoint.id,
|
|
# )
|
|
# services_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="services_patch"
|
|
# )
|
|
# services_patch = Actions.find_or_create(
|
|
# action_table="Services",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=services_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_people_service(add_module):
|
|
# people_service = Services.find_or_create(
|
|
# service_name="People",
|
|
# service_description="People Service",
|
|
# service_code="PPL",
|
|
# )
|
|
# people_list_endpoint = EndpointRestriction.find_one(endpoint_function="people_list")
|
|
# people_list = Actions.find_or_create(
|
|
# action_table="People",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm People Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=people_list_endpoint.id,
|
|
# )
|
|
# people_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="people_create"
|
|
# )
|
|
# people_create = Actions.find_or_create(
|
|
# action_table="People",
|
|
# action_type="Create",
|
|
# action_description="Create People with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=people_create_endpoint.id,
|
|
# )
|
|
# people_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="people_update"
|
|
# )
|
|
# people_update = Actions.find_or_create(
|
|
# action_table="People",
|
|
# action_type="Update",
|
|
# action_description="Update People with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=people_update_endpoint.id,
|
|
# )
|
|
# people_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="people_patch"
|
|
# )
|
|
# people_patch = Actions.find_or_create(
|
|
# action_table="People",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=people_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_project_decision_book_service(add_module):
|
|
# project_decision_book_service = Services.find_or_create(
|
|
# service_name="ProjectDecisionBook",
|
|
# service_description="Project Decision Book Service",
|
|
# service_code="PDB",
|
|
# )
|
|
# project_decision_book_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_list"
|
|
# )
|
|
# project_decision_book_list = Actions.find_or_create(
|
|
# action_table="Project Decision Book",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Project Decision Book Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=project_decision_book_list_endpoint.id,
|
|
# )
|
|
# project_decision_book_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_create"
|
|
# )
|
|
# project_decision_book_create = Actions.find_or_create(
|
|
# action_table="Project Decision Book",
|
|
# action_type="Create",
|
|
# action_description="Create Project Decision Book with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=project_decision_book_create_endpoint.id,
|
|
# )
|
|
# project_decision_book_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_update"
|
|
# )
|
|
# project_decision_book_update = Actions.find_or_create(
|
|
# action_table="Project Decision Book",
|
|
# action_type="Update",
|
|
# action_description="Update Project Decision Book with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=project_decision_book_update_endpoint.id,
|
|
# )
|
|
# project_decision_book_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_patch"
|
|
# )
|
|
# project_decision_book_patch = Actions.find_or_create(
|
|
# action_table="Project Decision Book",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=project_decision_book_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_project_decision_book_items_service(add_module):
|
|
# build_project_decision_book_items_service = Services.find_or_create(
|
|
# service_name="BuildProjectDecisionBookItems",
|
|
# service_description="Build Project Decision Book Items Service",
|
|
# service_code="BPDBI",
|
|
# )
|
|
# build_project_decision_book_items_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_list"
|
|
# )
|
|
# build_project_decision_book_items_list = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Items",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Project Decision Book Items Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=build_project_decision_book_items_list_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_items_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_create"
|
|
# )
|
|
# build_project_decision_book_items_create = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Items",
|
|
# action_type="Create",
|
|
# action_description="Create Build Project Decision Book Items with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=build_project_decision_book_items_create_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_items_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_update"
|
|
# )
|
|
# build_project_decision_book_items_update = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Items",
|
|
# action_type="Update",
|
|
# action_description="Update Build Project Decision Book Items with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=build_project_decision_book_items_update_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_items_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_patch"
|
|
# )
|
|
# build_project_decision_book_items_patch = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Items",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=build_project_decision_book_items_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_project_decision_book_items_debits_service(add_module):
|
|
# build_project_decision_book_items_debits_service = Services.find_or_create(
|
|
# service_name="BuildProjectDecisionBookItemsDebits",
|
|
# service_description="Build Project Decision Book Items Debits Service",
|
|
# service_code="BPDBID",
|
|
# )
|
|
# build_project_decision_book_items_debits_list_endpoint = (
|
|
# EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_debits_list"
|
|
# )
|
|
# )
|
|
# build_project_decision_book_items_debits_list = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Item Debits",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Project Decision Book Items Debits Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=build_project_decision_book_items_debits_list_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_items_debits_create_endpoint = (
|
|
# EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_debits_create"
|
|
# )
|
|
# )
|
|
# build_project_decision_book_items_debits_create = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Item Debits",
|
|
# action_type="Create",
|
|
# action_description="Create Build Project Decision Book Items Debits with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=build_project_decision_book_items_debits_create_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_items_debits_update_endpoint = (
|
|
# EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_debits_update"
|
|
# )
|
|
# )
|
|
# build_project_decision_book_items_debits_update = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Item Debits",
|
|
# action_type="Update",
|
|
# action_description="Update Build Project Decision Book Items Debits with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=build_project_decision_book_items_debits_update_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_items_debits_patch_endpoint = (
|
|
# EndpointRestriction.find_one(
|
|
# endpoint_function="build_project_decision_book_items_debits_patch"
|
|
# )
|
|
# )
|
|
# build_project_decision_book_items_debits_patch = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Item Debits",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=build_project_decision_book_items_debits_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_build_project_decision_book_person_service(add_module):
|
|
# build_project_decision_book_person_service = Services.find_or_create(
|
|
# service_name="BuildProjectDecisionBookPerson",
|
|
# service_description="Build Project Decision Book Person Service",
|
|
# service_code="BPDBP",
|
|
# )
|
|
# build_project_decision_book_person_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_person_list"
|
|
# )
|
|
# build_project_decision_book_person_list = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Person",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Build Project Decision Book Person Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=build_project_decision_book_person_list_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_person_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_person_create"
|
|
# )
|
|
# build_project_decision_book_person_create = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Person",
|
|
# action_type="Create",
|
|
# action_description="Create Build Project Decision Book Person with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=build_project_decision_book_person_create_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_person_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_person_update"
|
|
# )
|
|
# build_project_decision_book_person_update = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Person",
|
|
# action_type="Update",
|
|
# action_description="Update Build Project Decision Book Person with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=build_project_decision_book_person_update_endpoint.id,
|
|
# )
|
|
# build_project_decision_book_person_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="project_decision_book_person_patch"
|
|
# )
|
|
# build_project_decision_book_person_patch = Actions.find_or_create(
|
|
# action_table="Build Project Decision Book Person",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=build_project_decision_book_person_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_endpoint_restriction_service(add_module):
|
|
# endpoint_restriction_service = Services.find_or_create(
|
|
# service_name="EndpointRestriction",
|
|
# service_description="Endpoint Restriction Service",
|
|
# service_code="ERS",
|
|
# )
|
|
# endpoint_restriction_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="endpoint_restriction_create"
|
|
# )
|
|
# endpoint_restriction_create = Actions.find_or_create(
|
|
# action_table="Endpoint Restriction",
|
|
# action_type="Create",
|
|
# action_description="Create Endpoint Restriction Action",
|
|
# action_code="CER",
|
|
# endpoint_id=endpoint_restriction_create_endpoint.id,
|
|
# )
|
|
# endpoint_restriction_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="endpoint_restriction_update"
|
|
# )
|
|
# endpoint_restriction_update = Actions.find_or_create(
|
|
# action_table="Endpoint Restriction",
|
|
# action_type="Update",
|
|
# action_description="Update Endpoint Restriction Action",
|
|
# action_code="UER",
|
|
# endpoint_id=endpoint_restriction_update_endpoint.id,
|
|
# )
|
|
# endpoint_restriction_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="endpoint_restriction_list"
|
|
# )
|
|
# endpoint_restriction_list = Actions.find_or_create(
|
|
# action_table="Endpoint Restriction",
|
|
# action_type="List",
|
|
# action_description="List Endpoint Restriction Action",
|
|
# action_code="LER",
|
|
# endpoint_id=endpoint_restriction_list_endpoint.id,
|
|
# )
|
|
# endpoint_restriction_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="endpoint_restriction_patch"
|
|
# )
|
|
# endpoint_restriction_patch = Actions.find_or_create(
|
|
# action_table="Endpoint Restriction",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=endpoint_restriction_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_users_service(add_module):
|
|
# users_service = Services.find_or_create(
|
|
# service_name="Users",
|
|
# service_description="Users Service",
|
|
# service_code="USR",
|
|
# )
|
|
# user_list_endpoint = EndpointRestriction.find_one(endpoint_function="user_list")
|
|
# user_list = Actions.find_or_create(
|
|
# action_table="Users",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Users Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=user_list_endpoint.id,
|
|
# )
|
|
# user_create_endpoint = EndpointRestriction.find_one(endpoint_function="user_create")
|
|
# user_create = Actions.find_or_create(
|
|
# action_table="Users",
|
|
# action_type="Create",
|
|
# action_description="Create Users with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=user_create_endpoint.id,
|
|
# )
|
|
# user_update_endpoint = EndpointRestriction.find_one(endpoint_function="user_update")
|
|
# user_update = Actions.find_or_create(
|
|
# action_table="Users",
|
|
# action_type="Update",
|
|
# action_description="Update Users with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=user_update_endpoint.id,
|
|
# )
|
|
# user_patch_endpoint = EndpointRestriction.find_one(endpoint_function="user_patch")
|
|
# user_patch = Actions.find_or_create(
|
|
# action_table="Users",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=user_patch_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_address_service(add_module):
|
|
# address_service = Services.find_or_create(
|
|
# service_name="Address",
|
|
# service_description="Address Service",
|
|
# service_code="ADD",
|
|
# )
|
|
# address_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="address_list"
|
|
# )
|
|
# address_list = Actions.find_or_create(
|
|
# action_table="Address",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Address Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=address_list_endpoint.id,
|
|
# )
|
|
# address_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="address_create"
|
|
# )
|
|
# address_create = Actions.find_or_create(
|
|
# action_table="Address",
|
|
# action_type="Create",
|
|
# action_description="Create Address with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=address_create_endpoint.id,
|
|
# )
|
|
# address_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="address_update"
|
|
# )
|
|
# address_update = Actions.find_or_create(
|
|
# action_table="Address",
|
|
# action_type="Update",
|
|
# action_description="Update Address with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=address_update_endpoint.id,
|
|
# )
|
|
# address_patch_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="address_patch"
|
|
# )
|
|
# address_patch = Actions.find_or_create(
|
|
# action_table="Address",
|
|
# action_type="Patch",
|
|
# action_description="Update Active/Delete/Confirm Action",
|
|
# action_code="UADC",
|
|
# endpoint_id=address_patch_endpoint.id,
|
|
# )
|
|
# address_search_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="address_search"
|
|
# )
|
|
# address_search = Actions.find_or_create(
|
|
# action_table="Address",
|
|
# action_type="Search",
|
|
# action_description="Search Address with given auth levels Action",
|
|
# action_code="SAD",
|
|
# endpoint_id=address_search_endpoint.id,
|
|
# )
|
|
# return
|
|
#
|
|
#
|
|
# def create_post_code_service(add_module):
|
|
# post_code_service = Services.find_or_create(
|
|
# service_name="PostCode",
|
|
# service_description="Post Code Service",
|
|
# service_code="PC",
|
|
# )
|
|
# post_code_list_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="post_code_list"
|
|
# )
|
|
# post_code_list = Actions.find_or_create(
|
|
# action_table="Post Code",
|
|
# action_type="List",
|
|
# action_description="List Active/Delete/Confirm Post Code Action",
|
|
# action_code="LADC",
|
|
# endpoint_id=post_code_list_endpoint.id,
|
|
# )
|
|
# post_code_create_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="post_code_create"
|
|
# )
|
|
# post_code_create = Actions.find_or_create(
|
|
# action_table="Post Code",
|
|
# action_type="Create",
|
|
# action_description="Create Post Code with given auth levels Action",
|
|
# action_code="CBGAL",
|
|
# endpoint_id=post_code_create_endpoint.id,
|
|
# )
|
|
# post_code_update_endpoint = EndpointRestriction.find_one(
|
|
# endpoint_function="post_code_update"
|
|
# )
|
|
# post_code_update = Actions.find_or_create(
|
|
# action_table="Post Code",
|
|
# action_type="Update",
|
|
# action_description="Update Post Code with given auth levels Action",
|
|
# action_code="UBGAL",
|
|
# endpoint_id=post_code_update_endpoint.id,
|
|
# )
|
|
# # post_code_patch_endpoint = EndpointRestriction.find_one(
|
|
# # endpoint_function="post_code_patch"
|
|
# # )
|
|
# # post_code_patch = Actions.find_or_create(
|
|
# # action_table="Post Code",
|
|
# # action_type="Patch",
|
|
# # action_description="Update Active/Delete/Confirm Action",
|
|
# # action_code="UADC",
|
|
# # endpoint_id=post_code_patch_endpoint.id,
|
|
# # )
|
|
# return
|