From c6f1beafdd8487eca0c3ce6c03ee309877bc1256 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Fri, 8 Jul 2022 18:02:44 +0300 Subject: [PATCH] Update API version to 2.20 --- apiserver/schema/services/events.conf | 10 +++++----- apiserver/schema/services/models.conf | 2 +- apiserver/schema/services/organization.conf | 2 +- apiserver/schema/services/projects.conf | 2 +- apiserver/schema/services/queues.conf | 8 ++++---- apiserver/schema/services/tasks.conf | 2 +- apiserver/schema/services/workers.conf | 2 +- apiserver/service_repo/service_repo.py | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/apiserver/schema/services/events.conf b/apiserver/schema/services/events.conf index 2a8a38c..9f33885 100644 --- a/apiserver/schema/services/events.conf +++ b/apiserver/schema/services/events.conf @@ -550,7 +550,7 @@ debug_images { } } plots { - "999.0" { + "2.20" { description: "Get plot events for the requested amount of iterations per each task" request { type: object @@ -619,7 +619,7 @@ get_debug_image_sample { } response {"$ref": "#/definitions/debug_image_sample_response"} } - "999.0": ${get_debug_image_sample."2.12"} { + "2.20": ${get_debug_image_sample."2.12"} { request.properties.navigate_current_metric { description: If set then subsequent navigation with next_debug_image_sample is done on the debug images for the passed metric only. Otherwise for all the metrics type: boolean @@ -653,7 +653,7 @@ next_debug_image_sample { } } get_plot_sample { - "999.0": { + "2.20": { description: "Return the plot per metric and variant for the provided iteration" request { type: object @@ -694,7 +694,7 @@ get_plot_sample { } } next_plot_sample { - "999.0": { + "2.20": { description: "Get the plot for the next variant for the same iteration or for the next iteration" request { type: object @@ -1284,7 +1284,7 @@ multi_task_scalar_metrics_iter_histogram { } } get_task_single_value_metrics { - "999.0" { + "2.20" { description: Get single value metrics for the passed tasks request { type: object diff --git a/apiserver/schema/services/models.conf b/apiserver/schema/services/models.conf index 0e7628c..4f96d3b 100644 --- a/apiserver/schema/services/models.conf +++ b/apiserver/schema/services/models.conf @@ -234,7 +234,7 @@ get_all_ex { description: "Scroll ID that can be used with the next calls to get_all_ex to retrieve more data" } } - "999.0": ${get_all_ex."2.15"} { + "2.20": ${get_all_ex."2.15"} { request.properties.include_stats { description: "If true, include models statistic in response" type: boolean diff --git a/apiserver/schema/services/organization.conf b/apiserver/schema/services/organization.conf index 8743edd..00e72cb 100644 --- a/apiserver/schema/services/organization.conf +++ b/apiserver/schema/services/organization.conf @@ -104,7 +104,7 @@ get_user_companies { } } get_entities_count { - "999.0": { + "2.20": { description: "Get counts for the company entities according to the passed search criteria" request { type: object diff --git a/apiserver/schema/services/projects.conf b/apiserver/schema/services/projects.conf index ce15005..66cc220 100644 --- a/apiserver/schema/services/projects.conf +++ b/apiserver/schema/services/projects.conf @@ -609,7 +609,7 @@ get_all_ex { additionalProperties: true } } - "999.0": ${get_all_ex."2.17"} { + "2.20": ${get_all_ex."2.17"} { request.properties.include_dataset_stats { description: "If true, include project dataset statistic in response" type: boolean diff --git a/apiserver/schema/services/queues.conf b/apiserver/schema/services/queues.conf index 492f92b..ee61317 100644 --- a/apiserver/schema/services/queues.conf +++ b/apiserver/schema/services/queues.conf @@ -112,7 +112,7 @@ get_by_id { } } } - "999.0": ${get_by_id."2.4"} { + "2.20": ${get_by_id."2.4"} { request.properties.max_task_entries { description: Max number of queue task entries to return type: integer @@ -146,7 +146,7 @@ get_all_ex { description: "Scroll ID that can be used with the next calls to get_all_ex to retrieve more data" } } - "999.0": ${get_all_ex."2.15"} { + "2.20": ${get_all_ex."2.15"} { request.properties.max_task_entries { description: Max number of queue task entries to return type: integer @@ -238,7 +238,7 @@ get_all { description: "Scroll ID that can be used with the next calls to get_all to retrieve more data" } } - "999.0": ${get_all."2.15"} { + "2.20": ${get_all."2.15"} { request.properties.max_task_entries { description: Max number of queue task entries to return type: integer @@ -652,7 +652,7 @@ get_queue_metrics : { } } } - "999.0": ${get_queue_metrics."2.4"} { + "2.20": ${get_queue_metrics."2.4"} { request.properties.refresh { type: boolean default: false diff --git a/apiserver/schema/services/tasks.conf b/apiserver/schema/services/tasks.conf index c55e50b..779e1d0 100644 --- a/apiserver/schema/services/tasks.conf +++ b/apiserver/schema/services/tasks.conf @@ -2031,7 +2031,7 @@ completed { } ${_references.status_change_request} response: ${_definitions.update_response} } - "999.0": ${completed."2.2"} { + "2.20": ${completed."2.2"} { request.properties.publish { type: boolean default: false diff --git a/apiserver/schema/services/workers.conf b/apiserver/schema/services/workers.conf index a234a31..3c437ac 100644 --- a/apiserver/schema/services/workers.conf +++ b/apiserver/schema/services/workers.conf @@ -287,7 +287,7 @@ get_all { } } } - "999.0": ${get_all."2.4"} { + "2.20": ${get_all."2.4"} { request.properties.tags { description: The list of allowed worker tags. Prepend tag value with '-' in order to exclude type: array diff --git a/apiserver/service_repo/service_repo.py b/apiserver/service_repo/service_repo.py index 4a1ee4a..9ea31f7 100644 --- a/apiserver/service_repo/service_repo.py +++ b/apiserver/service_repo/service_repo.py @@ -38,7 +38,7 @@ class ServiceRepo(object): """If the check is set, parsing will fail for endpoint request with the version that is grater than the current maximum """ - _max_version = PartialVersion("2.17") + _max_version = PartialVersion("2.20") """ Maximum version number (the highest min_version value across all endpoints) """ _endpoint_exp = (