diff --git a/4.0/es/wapi.data_type.js b/4.0/es/wapi.data_type.js index 357d48de29484f39bb35e54a31457cddb4c58ea8..26d3faa08a591a9549c6a0e3e90a134c98625bcc 100644 --- a/4.0/es/wapi.data_type.js +++ b/4.0/es/wapi.data_type.js @@ -13,39 +13,12 @@ import NETVSConfig from '@/../netvs.config' /* eslint-disable object-shorthand */ export default { - createParamsList () { - return {'old': [ ], 'new': [ 'language_dict']} - }, - create (config, {language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { }} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/create`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - deleteParamsList () { - return {'old': [ 'language_dict'], 'new': [ ]} - }, - delete (config, {language_dict_old}) { - const params = { 'new': { }, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/delete`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - list (config, { json_name, fetch_limit, text_length, fetch_offset, language_dict, filter_params_dict, sorting_params_list }) { - const params = APIUtils.denullify_dict({ 'json_name': json_name, 'fetch_limit': fetch_limit, 'text_length': text_length, 'fetch_offset': fetch_offset, 'language_dict': language_dict, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) + list (config, { json_name, fetch_limit, text_length, fetch_offset, filter_params_dict, sorting_params_list }) { + const params = APIUtils.denullify_dict({ 'json_name': json_name, 'fetch_limit': fetch_limit, 'text_length': text_length, 'fetch_offset': fetch_offset, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) const cnf = {} Object.assign(cnf, (config || {}).netdb_axios_config) cnf.params = params return Axios.get(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/list`, cnf) // eslint-disable-next-line comma-dangle }, - updateParamsList () { - return {'old': [ 'language_dict'], 'new': [ 'language_dict']} - }, - update (config, {language_dict_old, language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/update`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, } diff --git a/4.0/es/wapi.data_type_operator.js b/4.0/es/wapi.data_type_operator.js index e5d9f296f8a22d993a3b5bc7cc36ca6da1436458..f1e2dc30ab945cabf6c4384b01e5bb763e1e9905 100644 --- a/4.0/es/wapi.data_type_operator.js +++ b/4.0/es/wapi.data_type_operator.js @@ -13,39 +13,12 @@ import NETVSConfig from '@/../netvs.config' /* eslint-disable object-shorthand */ export default { - createParamsList () { - return {'old': [ ], 'new': [ 'language_dict']} - }, - create (config, {language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { }} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/create`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - deleteParamsList () { - return {'old': [ 'language_dict'], 'new': [ ]} - }, - delete (config, {language_dict_old}) { - const params = { 'new': { }, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/delete`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - list (config, { name, data_type, language_dict }) { - const params = APIUtils.denullify_dict({ 'name': name, 'data_type': data_type, 'language_dict': language_dict}) + list (config, { name, data_type }) { + const params = APIUtils.denullify_dict({ 'name': name, 'data_type': data_type}) const cnf = {} Object.assign(cnf, (config || {}).netdb_axios_config) cnf.params = params return Axios.get(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/list`, cnf) // eslint-disable-next-line comma-dangle }, - updateParamsList () { - return {'old': [ 'language_dict'], 'new': [ 'language_dict']} - }, - update (config, {language_dict_old, language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/update`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, } diff --git a/4.0/es/wapi.system.js b/4.0/es/wapi.system.js index 6455af951a7580c58ccbbc7414f08bc84aabd42b..133ad994abb40fc4c80f2a39bef06bb7258f1382 100644 --- a/4.0/es/wapi.system.js +++ b/4.0/es/wapi.system.js @@ -13,39 +13,12 @@ import NETVSConfig from '@/../netvs.config' /* eslint-disable object-shorthand */ export default { - createParamsList () { - return {'old': [ ], 'new': [ 'language_dict']} - }, - create (config, {language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { }} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/create`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - deleteParamsList () { - return {'old': [ 'language_dict'], 'new': [ ]} - }, - delete (config, {language_dict_old}) { - const params = { 'new': { }, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/delete`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - list (config, { name_list, fetch_limit, fetch_offset, language_dict, filter_params_dict, sorting_params_list }) { - const params = APIUtils.denullify_dict({ 'name_list': (name_list === null) ? null : JSON.stringify(name_list), 'fetch_limit': fetch_limit, 'fetch_offset': fetch_offset, 'language_dict': language_dict, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) + list (config, { name_list, fetch_limit, fetch_offset, filter_params_dict, sorting_params_list }) { + const params = APIUtils.denullify_dict({ 'name_list': (name_list === null) ? null : JSON.stringify(name_list), 'fetch_limit': fetch_limit, 'fetch_offset': fetch_offset, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) const cnf = {} Object.assign(cnf, (config || {}).netdb_axios_config) cnf.params = params return Axios.get(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/list`, cnf) // eslint-disable-next-line comma-dangle }, - updateParamsList () { - return {'old': [ 'language_dict'], 'new': [ 'language_dict']} - }, - update (config, {language_dict_old, language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/update`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, } diff --git a/4.0/functions.json b/4.0/functions.json index b83e01be9bf44f86311c79a4b665e45378fcc4ac..11061d02df0521dbf1a10e5df1da2953477de4b9 100644 --- a/4.0/functions.json +++ b/4.0/functions.json @@ -4160,25 +4160,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "create", - "system": "wapi", - "fq_name": "wapi.system.create", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "system", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "create", "system": "cntl", @@ -5887,44 +5868,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "create", - "system": "wapi", - "fq_name": "wapi.data_type.create", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, - { - "name": "create", - "system": "wapi", - "fq_name": "wapi.data_type_operator.create", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type_operator", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "create", "system": "dnscfg", @@ -7422,25 +7365,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "delete", - "system": "wapi", - "fq_name": "wapi.system.delete", - "parameters": { - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "system", - "is_returning": false, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "delete", "system": "cntl", @@ -8188,44 +8112,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "delete", - "system": "wapi", - "fq_name": "wapi.data_type.delete", - "parameters": { - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type", - "is_returning": false, - "is_executable": true, - "is_data_manipulating": true - }, - { - "name": "delete", - "system": "wapi", - "fq_name": "wapi.data_type_operator.delete", - "parameters": { - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type_operator", - "is_returning": false, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "delete", "system": "dnscfg", @@ -14845,14 +14731,6 @@ "data_type": "integer8", "is_deprecated": false }, - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - }, "filter_params_dict": { "old": { "is_nullable": false, @@ -17881,14 +17759,6 @@ "data_type": "integer8", "is_deprecated": false }, - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - }, "filter_params_dict": { "old": { "is_nullable": false, @@ -17931,14 +17801,6 @@ }, "data_type": "text_kw_lc_long", "is_deprecated": false - }, - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false } }, "object_type": "data_type_operator", @@ -22151,29 +22013,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "update", - "system": "wapi", - "fq_name": "wapi.system.update", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": false - }, - "old": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "system", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "update", "system": "cntl", @@ -23864,52 +23703,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "update", - "system": "wapi", - "fq_name": "wapi.data_type.update", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": false - }, - "old": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, - { - "name": "update", - "system": "wapi", - "fq_name": "wapi.data_type_operator.update", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": false - }, - "old": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type_operator", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "update", "system": "dhcpv4", diff --git a/4.0/openapi.yml b/4.0/openapi.yml index 2ad9a5244e7d8f496396db382ed9124513dbd63c..e8af4f3b85872173793aa5a7afd72e127d8e9949 100644 --- a/4.0/openapi.yml +++ b/4.0/openapi.yml @@ -3469,7 +3469,7 @@ info: \ nicht Bestandteil dieser Dokumentation, sondern \xFCber selbstdokumentierende\ \ Indexabfragen der WebAPI erreichbar." title: SCC NETDB-API - version: 4.0.696 + version: 4.0.708 openapi: 3.0.3 paths: /cntl/column/create: @@ -28973,77 +28973,6 @@ paths: - api_key: [] tags: - tmp - /wapi/data_type/create: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: '' - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/data_type/delete: - post: - requestBody: - content: - application/json: - schema: - properties: - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: '' - nullable: false - type: object - type: object - type: object - required: true - responses: - 200: - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/data_type/list: get: parameters: @@ -29086,13 +29015,6 @@ paths: schema: nullable: false type: number - - description: '' - in: query - name: language_dict - required: false - schema: - nullable: false - type: object - description: '' in: query name: filter_params_dict @@ -29129,126 +29051,6 @@ paths: - api_key: [] tags: - wapi - /wapi/data_type/update: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: '' - nullable: false - type: object - type: object - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: '' - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/data_type_operator/create: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: '' - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type_operator' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/data_type_operator/delete: - post: - requestBody: - content: - application/json: - schema: - properties: - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: '' - nullable: false - type: object - type: object - type: object - required: true - responses: - 200: - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/data_type_operator/list: get: parameters: @@ -29266,62 +29068,6 @@ paths: schema: nullable: false type: string - - description: '' - in: query - name: language_dict - required: false - schema: - nullable: false - type: object - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type_operator' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/data_type_operator/update: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: '' - nullable: false - type: object - type: object - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: '' - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true responses: 200: content: @@ -29761,77 +29507,6 @@ paths: - api_key: [] tags: - wapi - /wapi/system/create: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: '' - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.system' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/system/delete: - post: - requestBody: - content: - application/json: - schema: - properties: - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: '' - nullable: false - type: object - type: object - type: object - required: true - responses: - 200: - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/system/list: get: parameters: @@ -29857,13 +29532,6 @@ paths: schema: nullable: false type: number - - description: '' - in: query - name: language_dict - required: false - schema: - nullable: false - type: object - description: '' in: query name: filter_params_dict @@ -29900,55 +29568,6 @@ paths: - api_key: [] tags: - wapi - /wapi/system/update: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: '' - nullable: false - type: object - type: object - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: '' - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.system' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/transaction/execute: post: parameters: diff --git a/4.0/python/__init__.py b/4.0/python/__init__.py index 77be606ae7c0ca3b344b7aa55af253ce696c2a3c..5714fb9c0e10f02cae9979907bea33e897327439 100644 --- a/4.0/python/__init__.py +++ b/4.0/python/__init__.py @@ -36,7 +36,7 @@ class APIEndpoint(object): class APISession(object): def __init__(self, endpoint: APIEndpoint, protocol: str='https', update_check: bool='NETDB_CLIENT_DISABLE_UPDATE_CHECK' not in os.environ): - self._build_version = '4.0.696' + self._build_version = '4.0.708' self.session = requests.session() self.session.headers.update({'Authorization': 'Bearer ' + endpoint.token}) self.api_root = f'{protocol}://{endpoint.base_url}' diff --git a/4.0/python/wapi.py b/4.0/python/wapi.py index a7f3b02ffc04639ab9a8c08f525e2d293dcccde6..e12dd611ccf1418aa67c2496baa5928560a7dd78 100644 --- a/4.0/python/wapi.py +++ b/4.0/python/wapi.py @@ -130,97 +130,35 @@ class System(APIObject): raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(self.language_dict)}") @staticmethod - def create_ta(language_dict_new: dict) -> dict: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - return {'name': 'wapi.system.create', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({})} - - # TODO: Consider is_returning - @classmethod - def create(cls, api_session: APISession, language_dict_new: dict) -> list: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.create_ta(language_dict_new=language_dict_new, )]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def delete_ta(language_dict_old: dict = None) -> dict: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.system.delete', 'new': _denullify_dict({}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def delete(cls, api_session: APISession, language_dict_old: dict = None) -> list: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.delete_ta(language_dict_old=language_dict_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def list_ta(name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: + def list_ta(name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: if name_list_old is not None and not (isinstance(name_list_old, list)): raise ValueError(f"'name_list' of incorrect type. Expected list, got {type(name_list_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): raise ValueError(f"'fetch_limit' of incorrect type. Expected int, got {type(fetch_limit_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - return {'name': 'wapi.system.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name_list': name_list_old, 'fetch_limit': fetch_limit_old, 'fetch_offset': fetch_offset_old, 'language_dict': language_dict_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} + return {'name': 'wapi.system.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name_list': name_list_old, 'fetch_limit': fetch_limit_old, 'fetch_offset': fetch_offset_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} # TODO: Consider is_returning @classmethod - def list(cls, api_session: APISession, name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: + def list(cls, api_session: APISession, name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: if name_list_old is not None and not (isinstance(name_list_old, list)): raise ValueError(f"'name_list' of incorrect type. Expected list, got {type(name_list_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): raise ValueError(f"'fetch_limit' of incorrect type. Expected int, got {type(fetch_limit_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_list_old=name_list_old, fetch_limit_old=fetch_limit_old, fetch_offset_old=fetch_offset_old, language_dict_old=language_dict_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def update_ta(language_dict_old: dict, language_dict_new: dict = None) -> dict: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.system.update', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def update(cls, api_session: APISession, language_dict_old: dict, language_dict_new: dict = None) -> list: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.update_ta(language_dict_new=language_dict_new, language_dict_old=language_dict_old)]) + res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_list_old=name_list_old, fetch_limit_old=fetch_limit_old, fetch_offset_old=fetch_offset_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) if not res.ok: raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) return [cls(**s) for s in res.json()[0]] @@ -446,43 +384,7 @@ class DataType(APIObject): raise ValueError(f"'format_literal' of incorrect type. Expected str, got {type(self.format_literal)}") @staticmethod - def create_ta(language_dict_new: dict) -> dict: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - return {'name': 'wapi.data_type.create', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({})} - - # TODO: Consider is_returning - @classmethod - def create(cls, api_session: APISession, language_dict_new: dict) -> list: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.create_ta(language_dict_new=language_dict_new, )]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def delete_ta(language_dict_old: dict = None) -> dict: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type.delete', 'new': _denullify_dict({}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def delete(cls, api_session: APISession, language_dict_old: dict = None) -> list: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.delete_ta(language_dict_old=language_dict_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def list_ta(json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: + def list_ta(json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: if json_name_old is not None and not (isinstance(json_name_old, str)): raise ValueError(f"'json_name' of incorrect type. Expected str, got {type(json_name_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): @@ -491,18 +393,16 @@ class DataType(APIObject): raise ValueError(f"'text_length' of incorrect type. Expected int, got {type(text_length_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - return {'name': 'wapi.data_type.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'json_name': json_name_old, 'fetch_limit': fetch_limit_old, 'text_length': text_length_old, 'fetch_offset': fetch_offset_old, 'language_dict': language_dict_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} + return {'name': 'wapi.data_type.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'json_name': json_name_old, 'fetch_limit': fetch_limit_old, 'text_length': text_length_old, 'fetch_offset': fetch_offset_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} # TODO: Consider is_returning @classmethod - def list(cls, api_session: APISession, json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: + def list(cls, api_session: APISession, json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: if json_name_old is not None and not (isinstance(json_name_old, str)): raise ValueError(f"'json_name' of incorrect type. Expected str, got {type(json_name_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): @@ -511,36 +411,12 @@ class DataType(APIObject): raise ValueError(f"'text_length' of incorrect type. Expected int, got {type(text_length_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(json_name_old=json_name_old, fetch_limit_old=fetch_limit_old, text_length_old=text_length_old, fetch_offset_old=fetch_offset_old, language_dict_old=language_dict_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def update_ta(language_dict_old: dict, language_dict_new: dict = None) -> dict: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type.update', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def update(cls, api_session: APISession, language_dict_old: dict, language_dict_new: dict = None) -> list: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.update_ta(language_dict_new=language_dict_new, language_dict_old=language_dict_old)]) + res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(json_name_old=json_name_old, fetch_limit_old=fetch_limit_old, text_length_old=text_length_old, fetch_offset_old=fetch_offset_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) if not res.ok: raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) return [cls(**s) for s in res.json()[0]] @@ -560,85 +436,23 @@ class DataTypeOperator(APIObject): raise ValueError(f"'data_type_list' of incorrect type. Expected list, got {type(self.data_type_list)}") @staticmethod - def create_ta(language_dict_new: dict) -> dict: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - return {'name': 'wapi.data_type_operator.create', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({})} - - # TODO: Consider is_returning - @classmethod - def create(cls, api_session: APISession, language_dict_new: dict) -> list: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.create_ta(language_dict_new=language_dict_new, )]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def delete_ta(language_dict_old: dict = None) -> dict: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type_operator.delete', 'new': _denullify_dict({}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def delete(cls, api_session: APISession, language_dict_old: dict = None) -> list: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.delete_ta(language_dict_old=language_dict_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def list_ta(name_old: str = None, data_type_old: str = None, language_dict_old: dict = None) -> dict: + def list_ta(name_old: str = None, data_type_old: str = None) -> dict: if name_old is not None and not (isinstance(name_old, str)): raise ValueError(f"'name' of incorrect type. Expected str, got {type(name_old)}") if data_type_old is not None and not (isinstance(data_type_old, str)): raise ValueError(f"'data_type' of incorrect type. Expected str, got {type(data_type_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - return {'name': 'wapi.data_type_operator.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name': name_old, 'data_type': data_type_old, 'language_dict': language_dict_old})} + return {'name': 'wapi.data_type_operator.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name': name_old, 'data_type': data_type_old})} # TODO: Consider is_returning @classmethod - def list(cls, api_session: APISession, name_old: str = None, data_type_old: str = None, language_dict_old: dict = None) -> list: + def list(cls, api_session: APISession, name_old: str = None, data_type_old: str = None) -> list: if name_old is not None and not (isinstance(name_old, str)): raise ValueError(f"'name' of incorrect type. Expected str, got {type(name_old)}") if data_type_old is not None and not (isinstance(data_type_old, str)): raise ValueError(f"'data_type' of incorrect type. Expected str, got {type(data_type_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_old=name_old, data_type_old=data_type_old, language_dict_old=language_dict_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def update_ta(language_dict_old: dict, language_dict_new: dict = None) -> dict: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type_operator.update', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def update(cls, api_session: APISession, language_dict_old: dict, language_dict_new: dict = None) -> list: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.update_ta(language_dict_new=language_dict_new, language_dict_old=language_dict_old)]) + res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_old=name_old, data_type_old=data_type_old)]) if not res.ok: raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) return [cls(**s) for s in res.json()[0]] diff --git a/4.0/version_numeric b/4.0/version_numeric index d4d82172a67bc52932988bd1e4418cd78f283300..293d25699a9049889ba1be3e7e9cbb22557d93f7 100644 --- a/4.0/version_numeric +++ b/4.0/version_numeric @@ -1 +1 @@ -4.0.696 \ No newline at end of file +4.0.708 \ No newline at end of file diff --git a/4.1/es/wapi.data_type.js b/4.1/es/wapi.data_type.js index 357d48de29484f39bb35e54a31457cddb4c58ea8..26d3faa08a591a9549c6a0e3e90a134c98625bcc 100644 --- a/4.1/es/wapi.data_type.js +++ b/4.1/es/wapi.data_type.js @@ -13,39 +13,12 @@ import NETVSConfig from '@/../netvs.config' /* eslint-disable object-shorthand */ export default { - createParamsList () { - return {'old': [ ], 'new': [ 'language_dict']} - }, - create (config, {language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { }} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/create`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - deleteParamsList () { - return {'old': [ 'language_dict'], 'new': [ ]} - }, - delete (config, {language_dict_old}) { - const params = { 'new': { }, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/delete`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - list (config, { json_name, fetch_limit, text_length, fetch_offset, language_dict, filter_params_dict, sorting_params_list }) { - const params = APIUtils.denullify_dict({ 'json_name': json_name, 'fetch_limit': fetch_limit, 'text_length': text_length, 'fetch_offset': fetch_offset, 'language_dict': language_dict, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) + list (config, { json_name, fetch_limit, text_length, fetch_offset, filter_params_dict, sorting_params_list }) { + const params = APIUtils.denullify_dict({ 'json_name': json_name, 'fetch_limit': fetch_limit, 'text_length': text_length, 'fetch_offset': fetch_offset, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) const cnf = {} Object.assign(cnf, (config || {}).netdb_axios_config) cnf.params = params return Axios.get(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/list`, cnf) // eslint-disable-next-line comma-dangle }, - updateParamsList () { - return {'old': [ 'language_dict'], 'new': [ 'language_dict']} - }, - update (config, {language_dict_old, language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type/update`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, } diff --git a/4.1/es/wapi.data_type_operator.js b/4.1/es/wapi.data_type_operator.js index 3108ddbdfc9d882a63e3a295a0db4cadbe343970..3d662750c3990de6023d456b86e09090f4ec03d8 100644 --- a/4.1/es/wapi.data_type_operator.js +++ b/4.1/es/wapi.data_type_operator.js @@ -13,39 +13,12 @@ import NETVSConfig from '@/../netvs.config' /* eslint-disable object-shorthand */ export default { - createParamsList () { - return {'old': [ ], 'new': [ 'language_dict']} - }, - create (config, {language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { }} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/create`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - deleteParamsList () { - return {'old': [ 'language_dict'], 'new': [ ]} - }, - delete (config, {language_dict_old}) { - const params = { 'new': { }, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/delete`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - list (config, { name, data_type, fetch_limit, fetch_offset, language_dict, filter_params_dict, sorting_params_list }) { - const params = APIUtils.denullify_dict({ 'name': name, 'data_type': data_type, 'fetch_limit': fetch_limit, 'fetch_offset': fetch_offset, 'language_dict': language_dict, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) + list (config, { name, data_type, fetch_limit, fetch_offset, filter_params_dict, sorting_params_list }) { + const params = APIUtils.denullify_dict({ 'name': name, 'data_type': data_type, 'fetch_limit': fetch_limit, 'fetch_offset': fetch_offset, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) const cnf = {} Object.assign(cnf, (config || {}).netdb_axios_config) cnf.params = params return Axios.get(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/list`, cnf) // eslint-disable-next-line comma-dangle }, - updateParamsList () { - return {'old': [ 'language_dict'], 'new': [ 'language_dict']} - }, - update (config, {language_dict_old, language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/data_type_operator/update`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, } diff --git a/4.1/es/wapi.system.js b/4.1/es/wapi.system.js index 6455af951a7580c58ccbbc7414f08bc84aabd42b..133ad994abb40fc4c80f2a39bef06bb7258f1382 100644 --- a/4.1/es/wapi.system.js +++ b/4.1/es/wapi.system.js @@ -13,39 +13,12 @@ import NETVSConfig from '@/../netvs.config' /* eslint-disable object-shorthand */ export default { - createParamsList () { - return {'old': [ ], 'new': [ 'language_dict']} - }, - create (config, {language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { }} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/create`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - deleteParamsList () { - return {'old': [ 'language_dict'], 'new': [ ]} - }, - delete (config, {language_dict_old}) { - const params = { 'new': { }, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/delete`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, - list (config, { name_list, fetch_limit, fetch_offset, language_dict, filter_params_dict, sorting_params_list }) { - const params = APIUtils.denullify_dict({ 'name_list': (name_list === null) ? null : JSON.stringify(name_list), 'fetch_limit': fetch_limit, 'fetch_offset': fetch_offset, 'language_dict': language_dict, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) + list (config, { name_list, fetch_limit, fetch_offset, filter_params_dict, sorting_params_list }) { + const params = APIUtils.denullify_dict({ 'name_list': (name_list === null) ? null : JSON.stringify(name_list), 'fetch_limit': fetch_limit, 'fetch_offset': fetch_offset, 'filter_params_dict': filter_params_dict, 'sorting_params_list': (sorting_params_list === null) ? null : JSON.stringify(sorting_params_list)}) const cnf = {} Object.assign(cnf, (config || {}).netdb_axios_config) cnf.params = params return Axios.get(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/list`, cnf) // eslint-disable-next-line comma-dangle }, - updateParamsList () { - return {'old': [ 'language_dict'], 'new': [ 'language_dict']} - }, - update (config, {language_dict_old, language_dict_new}) { - const params = { 'new': { 'language_dict': language_dict_new}, 'old': { 'language_dict': language_dict_old}} - // TODO: Return ta-object instead - return Axios.post(`${NETVSConfig.NETDB_API_BASE_URL}/${NETVSConfig.NETDB_API_VERSION}/wapi/system/update`, params, (config || {}).netdb_axios_config) - // eslint-disable-next-line comma-dangle - }, } diff --git a/4.1/functions.json b/4.1/functions.json index f7bbd377e1ec49024e226443cb455016431bddd2..18011edf506bd2514e4f06d7467a96bcf39a2a64 100644 --- a/4.1/functions.json +++ b/4.1/functions.json @@ -4201,25 +4201,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "create", - "system": "wapi", - "fq_name": "wapi.system.create", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "system", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "create", "system": "cntl", @@ -5939,44 +5920,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "create", - "system": "wapi", - "fq_name": "wapi.data_type.create", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, - { - "name": "create", - "system": "wapi", - "fq_name": "wapi.data_type_operator.create", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type_operator", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "create", "system": "dnscfg", @@ -7493,25 +7436,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "delete", - "system": "wapi", - "fq_name": "wapi.system.delete", - "parameters": { - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "system", - "is_returning": false, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "delete", "system": "cntl", @@ -8259,44 +8183,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "delete", - "system": "wapi", - "fq_name": "wapi.data_type.delete", - "parameters": { - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type", - "is_returning": false, - "is_executable": true, - "is_data_manipulating": true - }, - { - "name": "delete", - "system": "wapi", - "fq_name": "wapi.data_type_operator.delete", - "parameters": { - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type_operator", - "is_returning": false, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "delete", "system": "dnscfg", @@ -16268,14 +16154,6 @@ "data_type": "integer8", "is_deprecated": false }, - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - }, "filter_params_dict": { "old": { "is_nullable": false, @@ -20089,14 +19967,6 @@ "data_type": "integer8", "is_deprecated": false }, - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - }, "filter_params_dict": { "old": { "is_nullable": false, @@ -20156,14 +20026,6 @@ "data_type": "integer8", "is_deprecated": false }, - "language_dict": { - "old": { - "is_nullable": false, - "is_required": false - }, - "data_type": "json_object", - "is_deprecated": false - }, "filter_params_dict": { "old": { "is_nullable": false, @@ -24590,29 +24452,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "update", - "system": "wapi", - "fq_name": "wapi.system.update", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": false - }, - "old": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "system", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "update", "system": "cntl", @@ -26349,52 +26188,6 @@ "is_executable": true, "is_data_manipulating": true }, - { - "name": "update", - "system": "wapi", - "fq_name": "wapi.data_type.update", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": false - }, - "old": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, - { - "name": "update", - "system": "wapi", - "fq_name": "wapi.data_type_operator.update", - "parameters": { - "language_dict": { - "new": { - "is_nullable": false, - "is_required": false - }, - "old": { - "is_nullable": false, - "is_required": true - }, - "data_type": "json_object", - "is_deprecated": false - } - }, - "object_type": "data_type_operator", - "is_returning": true, - "is_executable": true, - "is_data_manipulating": true - }, { "name": "update", "system": "dhcpv4", diff --git a/4.1/openapi.yml b/4.1/openapi.yml index d81068e62be5efd657a06f200edb61f998f0acec..0228e7997aeca1b61cc1fe51f1ebfb0552cb8e6e 100644 --- a/4.1/openapi.yml +++ b/4.1/openapi.yml @@ -2161,9 +2161,10 @@ components: type: number dhcp_new_leases_get_dynamic_addr: description: "Neue Leases (unbekannte MAC-Adressen oder Client-Identifier)\ - \ d\xFCrfen vom DHCP-Server angelegt werden. Hierbei wird die IP-Adresse\ - \ der Lease dynamisch zugeordnet (n\xE4chste freie Adresse aus dem DHCP-Adress-Pool).\ - \ Als Hostname wird, falls vorhanden, der FQDN des A-RRs der zugeordneten\ + \ d\xFCrfen vom DHCP-Server angelegt werden und bekommen das Attribut\ + \ 'is_static_addr=false'. Hierbei wird die IP-Adresse der Lease dynamisch\ + \ zugeordnet (n\xE4chste freie Adresse aus dem DHCP-Adress-Pool). Als\ + \ Hostname wird, falls vorhanden, der FQDN des A-RRs der zugeordneten\ \ IP-Adresse an den Client zur\xFCckgegeben." type: boolean dhcp_new_leases_get_static_addr: @@ -4064,7 +4065,7 @@ info: \ nicht Bestandteil dieser Dokumentation, sondern \xFCber selbstdokumentierende\ \ Indexabfragen der WebAPI erreichbar." title: SCC NETDB-API - version: 4.1.156 + version: 4.1.168 openapi: 3.0.3 paths: /cntl/column/create: @@ -21024,11 +21025,12 @@ paths: dhcp_new_leases_get_dynamic_addr: default: false description: "Neue Leases (unbekannte MAC-Adressen oder Client-Identifier)\ - \ d\xFCrfen vom DHCP-Server angelegt werden. Hierbei wird\ - \ die IP-Adresse der Lease dynamisch zugeordnet (n\xE4chste\ - \ freie Adresse aus dem DHCP-Adress-Pool). Als Hostname wird,\ - \ falls vorhanden, der FQDN des A-RRs der zugeordneten IP-Adresse\ - \ an den Client zur\xFCckgegeben." + \ d\xFCrfen vom DHCP-Server angelegt werden und bekommen das\ + \ Attribut 'is_static_addr=false'. Hierbei wird die IP-Adresse\ + \ der Lease dynamisch zugeordnet (n\xE4chste freie Adresse\ + \ aus dem DHCP-Adress-Pool). Als Hostname wird, falls vorhanden,\ + \ der FQDN des A-RRs der zugeordneten IP-Adresse an den Client\ + \ zur\xFCckgegeben." nullable: false type: boolean dhcp_new_leases_get_static_addr: @@ -21302,10 +21304,10 @@ paths: nullable: false type: boolean - description: "Neue Leases (unbekannte MAC-Adressen oder Client-Identifier)\ - \ d\xFCrfen vom DHCP-Server angelegt werden. Hierbei wird die IP-Adresse\ - \ der Lease dynamisch zugeordnet (n\xE4chste freie Adresse aus dem DHCP-Adress-Pool).\ - \ Als Hostname wird, falls vorhanden, der FQDN des A-RRs der zugeordneten\ - \ IP-Adresse an den Client zur\xFCckgegeben." + \ d\xFCrfen vom DHCP-Server angelegt werden und bekommen das Attribut 'is_static_addr=false'.\ + \ Hierbei wird die IP-Adresse der Lease dynamisch zugeordnet (n\xE4chste\ + \ freie Adresse aus dem DHCP-Adress-Pool). Als Hostname wird, falls vorhanden,\ + \ der FQDN des A-RRs der zugeordneten IP-Adresse an den Client zur\xFCckgegeben." in: query name: dhcp_new_leases_get_dynamic_addr required: false @@ -21405,11 +21407,12 @@ paths: type: number dhcp_new_leases_get_dynamic_addr: description: "Neue Leases (unbekannte MAC-Adressen oder Client-Identifier)\ - \ d\xFCrfen vom DHCP-Server angelegt werden. Hierbei wird\ - \ die IP-Adresse der Lease dynamisch zugeordnet (n\xE4chste\ - \ freie Adresse aus dem DHCP-Adress-Pool). Als Hostname wird,\ - \ falls vorhanden, der FQDN des A-RRs der zugeordneten IP-Adresse\ - \ an den Client zur\xFCckgegeben." + \ d\xFCrfen vom DHCP-Server angelegt werden und bekommen das\ + \ Attribut 'is_static_addr=false'. Hierbei wird die IP-Adresse\ + \ der Lease dynamisch zugeordnet (n\xE4chste freie Adresse\ + \ aus dem DHCP-Adress-Pool). Als Hostname wird, falls vorhanden,\ + \ der FQDN des A-RRs der zugeordneten IP-Adresse an den Client\ + \ zur\xFCckgegeben." nullable: false type: boolean dhcp_new_leases_get_static_addr: @@ -34805,79 +34808,6 @@ paths: - api_key: [] tags: - tmp - /wapi/data_type/create: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: Beschreibungen des Datentyps in der jeweiligen - Sprache - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/data_type/delete: - post: - requestBody: - content: - application/json: - schema: - properties: - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: Beschreibungen des Datentyps in der jeweiligen - Sprache - nullable: false - type: object - type: object - type: object - required: true - responses: - 200: - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/data_type/list: get: parameters: @@ -34922,13 +34852,6 @@ paths: schema: nullable: false type: number - - description: Beschreibungen des Datentyps in der jeweiligen Sprache - in: query - name: language_dict - required: false - schema: - nullable: false - type: object - description: "JSON-Dict der zu filternden Objektattribute. Erwartete Schl\xFC\ ssel und Format: '{ \"show\": true | false, \"attrs_list\": [\"<attribute_name>\"\ , ...] }'. Mit 'show' = true werden nur die Attribute in 'attrs_list' zur\xFC\ @@ -34971,130 +34894,6 @@ paths: - api_key: [] tags: - wapi - /wapi/data_type/update: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: Beschreibungen des Datentyps in der jeweiligen - Sprache - nullable: false - type: object - type: object - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: Beschreibungen des Datentyps in der jeweiligen - Sprache - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/data_type_operator/create: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: Beschreibungen des Datentyp-Operators in der jeweiligen - Sprache - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type_operator' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/data_type_operator/delete: - post: - requestBody: - content: - application/json: - schema: - properties: - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: Beschreibungen des Datentyp-Operators in der jeweiligen - Sprache - nullable: false - type: object - type: object - type: object - required: true - responses: - 200: - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/data_type_operator/list: get: parameters: @@ -35130,13 +34929,6 @@ paths: schema: nullable: false type: number - - description: Beschreibungen des Datentyp-Operators in der jeweiligen Sprache - in: query - name: language_dict - required: false - schema: - nullable: false - type: object - description: "JSON-Dict der zu filternden Objektattribute. Erwartete Schl\xFC\ ssel und Format: '{ \"show\": true | false, \"attrs_list\": [\"<attribute_name>\"\ , ...] }'. Mit 'show' = true werden nur die Attribute in 'attrs_list' zur\xFC\ @@ -35181,57 +34973,6 @@ paths: - api_key: [] tags: - wapi - /wapi/data_type_operator/update: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: Beschreibungen des Datentyp-Operators in der jeweiligen - Sprache - nullable: false - type: object - type: object - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: Beschreibungen des Datentyp-Operators in der jeweiligen - Sprache - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.data_type_operator' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/function/list: get: parameters: @@ -35728,79 +35469,6 @@ paths: - api_key: [] tags: - wapi - /wapi/system/create: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: Beschreibungen des WebAPI-Systems in der jeweiligen - Sprache - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.system' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi - /wapi/system/delete: - post: - requestBody: - content: - application/json: - schema: - properties: - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: Beschreibungen des WebAPI-Systems in der jeweiligen - Sprache - nullable: false - type: object - type: object - type: object - required: true - responses: - 200: - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/system/list: get: parameters: @@ -35830,13 +35498,6 @@ paths: schema: nullable: false type: number - - description: Beschreibungen des WebAPI-Systems in der jeweiligen Sprache - in: query - name: language_dict - required: false - schema: - nullable: false - type: object - description: "JSON-Dict der zu filternden Objektattribute. Erwartete Schl\xFC\ ssel und Format: '{ \"show\": true | false, \"attrs_list\": [\"<attribute_name>\"\ , ...] }'. Mit 'show' = true werden nur die Attribute in 'attrs_list' zur\xFC\ @@ -35881,57 +35542,6 @@ paths: - api_key: [] tags: - wapi - /wapi/system/update: - post: - requestBody: - content: - application/json: - schema: - properties: - new: - description: Neue Angaben - properties: - language_dict: - description: Beschreibungen des WebAPI-Systems in der jeweiligen - Sprache - nullable: false - type: object - type: object - old: - description: Alte Attribute zur einduetigen Identifizierung des - Objekts - properties: - language_dict: - description: Beschreibungen des WebAPI-Systems in der jeweiligen - Sprache - nullable: false - type: object - required: - - language_dict - type: object - type: object - required: true - responses: - 200: - content: - application/json: - schema: - items: - items: - $ref: '#/components/schemas/wapi.system' - type: array - type: array - description: Request erfolgreich - 400: - description: Eingabefehler - 401: - description: Unautorisiert - 500: - description: Interner Serverfehler - security: - - api_key: [] - tags: - - wapi /wapi/transaction/execute: post: parameters: diff --git a/4.1/python/__init__.py b/4.1/python/__init__.py index 67a6c076c2b31799734ecf5a07020c00a5c5bf56..ee03443bbb1480d1311b01be6cee1f69337e6bda 100644 --- a/4.1/python/__init__.py +++ b/4.1/python/__init__.py @@ -36,7 +36,7 @@ class APIEndpoint(object): class APISession(object): def __init__(self, endpoint: APIEndpoint, protocol: str='https', update_check: bool='NETDB_CLIENT_DISABLE_UPDATE_CHECK' not in os.environ): - self._build_version = '4.1.156' + self._build_version = '4.1.168' self.session = requests.session() self.session.headers.update({'Authorization': 'Bearer ' + endpoint.token}) self.api_root = f'{protocol}://{endpoint.base_url}' diff --git a/4.1/python/wapi.py b/4.1/python/wapi.py index 9c70bb0486ea1ea88f2726fe42ce7fe7c119e3eb..d50fe3abe8a40505e70ed6a10dd48ff5d013eb25 100644 --- a/4.1/python/wapi.py +++ b/4.1/python/wapi.py @@ -157,97 +157,35 @@ class System(APIObject): raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(self.language_dict)}") @staticmethod - def create_ta(language_dict_new: dict) -> dict: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - return {'name': 'wapi.system.create', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({})} - - # TODO: Consider is_returning - @classmethod - def create(cls, api_session: APISession, language_dict_new: dict) -> list: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.create_ta(language_dict_new=language_dict_new, )]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def delete_ta(language_dict_old: dict = None) -> dict: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.system.delete', 'new': _denullify_dict({}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def delete(cls, api_session: APISession, language_dict_old: dict = None) -> list: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.delete_ta(language_dict_old=language_dict_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def list_ta(name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: + def list_ta(name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: if name_list_old is not None and not (isinstance(name_list_old, list)): raise ValueError(f"'name_list' of incorrect type. Expected list, got {type(name_list_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): raise ValueError(f"'fetch_limit' of incorrect type. Expected int, got {type(fetch_limit_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - return {'name': 'wapi.system.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name_list': name_list_old, 'fetch_limit': fetch_limit_old, 'fetch_offset': fetch_offset_old, 'language_dict': language_dict_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} + return {'name': 'wapi.system.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name_list': name_list_old, 'fetch_limit': fetch_limit_old, 'fetch_offset': fetch_offset_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} # TODO: Consider is_returning @classmethod - def list(cls, api_session: APISession, name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: + def list(cls, api_session: APISession, name_list_old: list = None, fetch_limit_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: if name_list_old is not None and not (isinstance(name_list_old, list)): raise ValueError(f"'name_list' of incorrect type. Expected list, got {type(name_list_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): raise ValueError(f"'fetch_limit' of incorrect type. Expected int, got {type(fetch_limit_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_list_old=name_list_old, fetch_limit_old=fetch_limit_old, fetch_offset_old=fetch_offset_old, language_dict_old=language_dict_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def update_ta(language_dict_old: dict, language_dict_new: dict = None) -> dict: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.system.update', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def update(cls, api_session: APISession, language_dict_old: dict, language_dict_new: dict = None) -> list: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.update_ta(language_dict_new=language_dict_new, language_dict_old=language_dict_old)]) + res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_list_old=name_list_old, fetch_limit_old=fetch_limit_old, fetch_offset_old=fetch_offset_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) if not res.ok: raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) return [cls(**s) for s in res.json()[0]] @@ -481,43 +419,7 @@ class DataType(APIObject): raise ValueError(f"'format_literal' of incorrect type. Expected str, got {type(self.format_literal)}") @staticmethod - def create_ta(language_dict_new: dict) -> dict: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - return {'name': 'wapi.data_type.create', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({})} - - # TODO: Consider is_returning - @classmethod - def create(cls, api_session: APISession, language_dict_new: dict) -> list: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.create_ta(language_dict_new=language_dict_new, )]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def delete_ta(language_dict_old: dict = None) -> dict: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type.delete', 'new': _denullify_dict({}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def delete(cls, api_session: APISession, language_dict_old: dict = None) -> list: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.delete_ta(language_dict_old=language_dict_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def list_ta(json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: + def list_ta(json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: if json_name_old is not None and not (isinstance(json_name_old, str)): raise ValueError(f"'json_name' of incorrect type. Expected str, got {type(json_name_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): @@ -526,18 +428,16 @@ class DataType(APIObject): raise ValueError(f"'text_length' of incorrect type. Expected int, got {type(text_length_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - return {'name': 'wapi.data_type.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'json_name': json_name_old, 'fetch_limit': fetch_limit_old, 'text_length': text_length_old, 'fetch_offset': fetch_offset_old, 'language_dict': language_dict_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} + return {'name': 'wapi.data_type.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'json_name': json_name_old, 'fetch_limit': fetch_limit_old, 'text_length': text_length_old, 'fetch_offset': fetch_offset_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} # TODO: Consider is_returning @classmethod - def list(cls, api_session: APISession, json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: + def list(cls, api_session: APISession, json_name_old: str = None, fetch_limit_old: int = None, text_length_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: if json_name_old is not None and not (isinstance(json_name_old, str)): raise ValueError(f"'json_name' of incorrect type. Expected str, got {type(json_name_old)}") if fetch_limit_old is not None and not (isinstance(fetch_limit_old, int)): @@ -546,36 +446,12 @@ class DataType(APIObject): raise ValueError(f"'text_length' of incorrect type. Expected int, got {type(text_length_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(json_name_old=json_name_old, fetch_limit_old=fetch_limit_old, text_length_old=text_length_old, fetch_offset_old=fetch_offset_old, language_dict_old=language_dict_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def update_ta(language_dict_old: dict, language_dict_new: dict = None) -> dict: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type.update', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def update(cls, api_session: APISession, language_dict_old: dict, language_dict_new: dict = None) -> list: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.update_ta(language_dict_new=language_dict_new, language_dict_old=language_dict_old)]) + res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(json_name_old=json_name_old, fetch_limit_old=fetch_limit_old, text_length_old=text_length_old, fetch_offset_old=fetch_offset_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) if not res.ok: raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) return [cls(**s) for s in res.json()[0]] @@ -595,43 +471,7 @@ class DataTypeOperator(APIObject): raise ValueError(f"'data_type_list' of incorrect type. Expected list, got {type(self.data_type_list)}") @staticmethod - def create_ta(language_dict_new: dict) -> dict: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - return {'name': 'wapi.data_type_operator.create', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({})} - - # TODO: Consider is_returning - @classmethod - def create(cls, api_session: APISession, language_dict_new: dict) -> list: - if not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.create_ta(language_dict_new=language_dict_new, )]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def delete_ta(language_dict_old: dict = None) -> dict: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type_operator.delete', 'new': _denullify_dict({}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def delete(cls, api_session: APISession, language_dict_old: dict = None) -> list: - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.delete_ta(language_dict_old=language_dict_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def list_ta(name_old: str = None, data_type_old: str = None, fetch_limit_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: + def list_ta(name_old: str = None, data_type_old: str = None, fetch_limit_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> dict: if name_old is not None and not (isinstance(name_old, str)): raise ValueError(f"'name' of incorrect type. Expected str, got {type(name_old)}") if data_type_old is not None and not (isinstance(data_type_old, str)): @@ -640,18 +480,16 @@ class DataTypeOperator(APIObject): raise ValueError(f"'fetch_limit' of incorrect type. Expected int, got {type(fetch_limit_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - return {'name': 'wapi.data_type_operator.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name': name_old, 'data_type': data_type_old, 'fetch_limit': fetch_limit_old, 'fetch_offset': fetch_offset_old, 'language_dict': language_dict_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} + return {'name': 'wapi.data_type_operator.list', 'new': _denullify_dict({}), 'old': _denullify_dict({'name': name_old, 'data_type': data_type_old, 'fetch_limit': fetch_limit_old, 'fetch_offset': fetch_offset_old, 'filter_params_dict': filter_params_dict_old, 'sorting_params_list': sorting_params_list_old})} # TODO: Consider is_returning @classmethod - def list(cls, api_session: APISession, name_old: str = None, data_type_old: str = None, fetch_limit_old: int = None, fetch_offset_old: int = None, language_dict_old: dict = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: + def list(cls, api_session: APISession, name_old: str = None, data_type_old: str = None, fetch_limit_old: int = None, fetch_offset_old: int = None, filter_params_dict_old: dict = None, sorting_params_list_old: list = None) -> list: if name_old is not None and not (isinstance(name_old, str)): raise ValueError(f"'name' of incorrect type. Expected str, got {type(name_old)}") if data_type_old is not None and not (isinstance(data_type_old, str)): @@ -660,36 +498,12 @@ class DataTypeOperator(APIObject): raise ValueError(f"'fetch_limit' of incorrect type. Expected int, got {type(fetch_limit_old)}") if fetch_offset_old is not None and not (isinstance(fetch_offset_old, int)): raise ValueError(f"'fetch_offset' of incorrect type. Expected int, got {type(fetch_offset_old)}") - if language_dict_old is not None and not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") if filter_params_dict_old is not None and not (isinstance(filter_params_dict_old, dict)): raise ValueError(f"'filter_params_dict' of incorrect type. Expected dict, got {type(filter_params_dict_old)}") if sorting_params_list_old is not None and not (isinstance(sorting_params_list_old, list)): raise ValueError(f"'sorting_params_list' of incorrect type. Expected list, got {type(sorting_params_list_old)}") - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_old=name_old, data_type_old=data_type_old, fetch_limit_old=fetch_limit_old, fetch_offset_old=fetch_offset_old, language_dict_old=language_dict_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) - if not res.ok: - raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) - return [cls(**s) for s in res.json()[0]] - - @staticmethod - def update_ta(language_dict_old: dict, language_dict_new: dict = None) -> dict: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - return {'name': 'wapi.data_type_operator.update', 'new': _denullify_dict({'language_dict': language_dict_new}), 'old': _denullify_dict({'language_dict': language_dict_old})} - - # TODO: Consider is_returning - @classmethod - def update(cls, api_session: APISession, language_dict_old: dict, language_dict_new: dict = None) -> list: - if language_dict_new is not None and not (isinstance(language_dict_new, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_new)}") - if not (isinstance(language_dict_old, dict)): - raise ValueError(f"'language_dict' of incorrect type. Expected dict, got {type(language_dict_old)}") - - res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.update_ta(language_dict_new=language_dict_new, language_dict_old=language_dict_old)]) + res = api_session.session.post(api_session.base_url + '/wapi/transaction/execute', json=[cls.list_ta(name_old=name_old, data_type_old=data_type_old, fetch_limit_old=fetch_limit_old, fetch_offset_old=fetch_offset_old, filter_params_dict_old=filter_params_dict_old, sorting_params_list_old=sorting_params_list_old)]) if not res.ok: raise ExecutionError(res.status_code, res.reason, res.json() if "json" in res.headers["content-type"] else res.text) return [cls(**s) for s in res.json()[0]] diff --git a/4.1/version_numeric b/4.1/version_numeric index fd27dc15c30db079b6a604f983e00adb82344f8b..34906015b08b8f43471b83e16f1141ab8b8f4e5c 100644 --- a/4.1/version_numeric +++ b/4.1/version_numeric @@ -1 +1 @@ -4.1.156 \ No newline at end of file +4.1.168 \ No newline at end of file diff --git a/latest_version b/latest_version index fd27dc15c30db079b6a604f983e00adb82344f8b..34906015b08b8f43471b83e16f1141ab8b8f4e5c 100644 --- a/latest_version +++ b/latest_version @@ -1 +1 @@ -4.1.156 \ No newline at end of file +4.1.168 \ No newline at end of file