Skip to content

maintain Label and Source class #359

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ docs/InlineResponse2001EvaluationResults.md
docs/InlineResponse2002.md
docs/InlineResponse200Summary.md
docs/InlineResponse200SummaryClassCounts.md
docs/Label.md
docs/LabelValue.md
docs/LabelValueRequest.md
docs/LabelsApi.md
Expand All @@ -57,6 +58,7 @@ docs/ResultTypeEnum.md
docs/Rule.md
docs/RuleRequest.md
docs/SnoozeTimeUnitEnum.md
docs/Source.md
docs/SourceEnum.md
docs/StatusEnum.md
docs/TextModeConfiguration.md
Expand Down Expand Up @@ -112,6 +114,7 @@ groundlight_openapi_client/model/inline_response2001_evaluation_results.py
groundlight_openapi_client/model/inline_response2002.py
groundlight_openapi_client/model/inline_response200_summary.py
groundlight_openapi_client/model/inline_response200_summary_class_counts.py
groundlight_openapi_client/model/label.py
groundlight_openapi_client/model/label_value.py
groundlight_openapi_client/model/label_value_request.py
groundlight_openapi_client/model/mode_enum.py
Expand All @@ -131,6 +134,7 @@ groundlight_openapi_client/model/roi_request.py
groundlight_openapi_client/model/rule.py
groundlight_openapi_client/model/rule_request.py
groundlight_openapi_client/model/snooze_time_unit_enum.py
groundlight_openapi_client/model/source.py
groundlight_openapi_client/model/source_enum.py
groundlight_openapi_client/model/status_enum.py
groundlight_openapi_client/model/text_mode_configuration.py
Expand All @@ -146,4 +150,6 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_label.py
test/test_source.py
tox.ini
2 changes: 2 additions & 0 deletions generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Class | Method | HTTP request | Description
- [InlineResponse2002](docs/InlineResponse2002.md)
- [InlineResponse200Summary](docs/InlineResponse200Summary.md)
- [InlineResponse200SummaryClassCounts](docs/InlineResponse200SummaryClassCounts.md)
- [Label](docs/Label.md)
- [LabelValue](docs/LabelValue.md)
- [LabelValueRequest](docs/LabelValueRequest.md)
- [ModeEnum](docs/ModeEnum.md)
Expand All @@ -193,6 +194,7 @@ Class | Method | HTTP request | Description
- [Rule](docs/Rule.md)
- [RuleRequest](docs/RuleRequest.md)
- [SnoozeTimeUnitEnum](docs/SnoozeTimeUnitEnum.md)
- [Source](docs/Source.md)
- [SourceEnum](docs/SourceEnum.md)
- [StatusEnum](docs/StatusEnum.md)
- [TextModeConfiguration](docs/TextModeConfiguration.md)
Expand Down
2 changes: 1 addition & 1 deletion generated/docs/BinaryClassificationResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**label** | **str** | |
**confidence** | **float, none_type** | | [optional]
**source** | **str** | | [optional]
**result_type** | **str** | | [optional]
**result_type** | **str** | | [optional] if omitted the server will use the default value of "binary_classification"
**from_edge** | **bool** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

Expand Down
2 changes: 1 addition & 1 deletion generated/docs/BoundingBoxResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**label** | **str** | |
**confidence** | **float, none_type** | | [optional]
**source** | **str** | | [optional]
**result_type** | **str** | | [optional]
**result_type** | **str** | | [optional] if omitted the server will use the default value of "bounding_box"
**from_edge** | **bool** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

Expand Down
2 changes: 1 addition & 1 deletion generated/docs/CountingResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**count** | **int, none_type** | |
**confidence** | **float, none_type** | | [optional]
**source** | **str** | | [optional]
**result_type** | **str** | | [optional]
**result_type** | **str** | | [optional] if omitted the server will use the default value of "counting"
**from_edge** | **bool** | | [optional]
**greater_than_max** | **bool** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
Expand Down
11 changes: 11 additions & 0 deletions generated/docs/Label.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Label


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **str** | | must be one of ["YES", "NO", "UNCLEAR", ]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion generated/docs/MultiClassificationResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Name | Type | Description | Notes
**label** | **str** | |
**confidence** | **float, none_type** | | [optional]
**source** | **str** | | [optional]
**result_type** | **str** | | [optional]
**result_type** | **str** | | [optional] if omitted the server will use the default value of "multi_classification"
**from_edge** | **bool** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

Expand Down
11 changes: 11 additions & 0 deletions generated/docs/Source.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Source


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **str** | | must be one of ["STILL_PROCESSING", "CLOUD", "USER", "CLOUD_ENSEMBLE", "ALGORITHM", "EDGE", ]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


2 changes: 1 addition & 1 deletion generated/docs/TextRecognitionResult.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**truncated** | **bool** | |
**confidence** | **float, none_type** | | [optional]
**source** | **str** | | [optional]
**result_type** | **str** | | [optional]
**result_type** | **str** | | [optional] if omitted the server will use the default value of "text_recognition"
**from_edge** | **bool** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class BinaryClassificationResult(ModelNormal):
as additional properties values.
"""

allowed_values = {}
allowed_values = {
("result_type",): {
"BINARY_CLASSIFICATION": "binary_classification",
},
}

validations = {
("confidence",): {
Expand Down Expand Up @@ -160,7 +164,7 @@ def _from_openapi_data(cls, label, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
confidence (float, none_type): [optional] # noqa: E501
source (str): [optional] # noqa: E501
result_type (str): [optional] # noqa: E501
result_type (str): [optional] if omitted the server will use the default value of "binary_classification" # noqa: E501
from_edge (bool): [optional] # noqa: E501
"""

Expand Down Expand Up @@ -252,7 +256,7 @@ def __init__(self, label, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
confidence (float, none_type): [optional] # noqa: E501
source (str): [optional] # noqa: E501
result_type (str): [optional] # noqa: E501
result_type (str): [optional] if omitted the server will use the default value of "binary_classification" # noqa: E501
from_edge (bool): [optional] # noqa: E501
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class BoundingBoxResult(ModelNormal):
as additional properties values.
"""

allowed_values = {}
allowed_values = {
("result_type",): {
"BOUNDING_BOX": "bounding_box",
},
}

validations = {
("confidence",): {
Expand Down Expand Up @@ -160,7 +164,7 @@ def _from_openapi_data(cls, label, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
confidence (float, none_type): [optional] # noqa: E501
source (str): [optional] # noqa: E501
result_type (str): [optional] # noqa: E501
result_type (str): [optional] if omitted the server will use the default value of "bounding_box" # noqa: E501
from_edge (bool): [optional] # noqa: E501
"""

Expand Down Expand Up @@ -252,7 +256,7 @@ def __init__(self, label, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
confidence (float, none_type): [optional] # noqa: E501
source (str): [optional] # noqa: E501
result_type (str): [optional] # noqa: E501
result_type (str): [optional] if omitted the server will use the default value of "bounding_box" # noqa: E501
from_edge (bool): [optional] # noqa: E501
"""

Expand Down
10 changes: 7 additions & 3 deletions generated/groundlight_openapi_client/model/counting_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ class CountingResult(ModelNormal):
as additional properties values.
"""

allowed_values = {}
allowed_values = {
("result_type",): {
"COUNTING": "counting",
},
}

validations = {
("count",): {
Expand Down Expand Up @@ -168,7 +172,7 @@ def _from_openapi_data(cls, count, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
confidence (float, none_type): [optional] # noqa: E501
source (str): [optional] # noqa: E501
result_type (str): [optional] # noqa: E501
result_type (str): [optional] if omitted the server will use the default value of "counting" # noqa: E501
from_edge (bool): [optional] # noqa: E501
greater_than_max (bool): [optional] # noqa: E501
"""
Expand Down Expand Up @@ -261,7 +265,7 @@ def __init__(self, count, *args, **kwargs): # noqa: E501
_visited_composed_classes = (Animal,)
confidence (float, none_type): [optional] # noqa: E501
source (str): [optional] # noqa: E501
result_type (str): [optional] # noqa: E501
result_type (str): [optional] if omitted the server will use the default value of "counting" # noqa: E501
from_edge (bool): [optional] # noqa: E501
greater_than_max (bool): [optional] # noqa: E501
"""
Expand Down
Loading
Loading