Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
8 changes: 8 additions & 0 deletions generated/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ docs/PaginatedDetectorList.md
docs/PaginatedImageQueryList.md
docs/PaginatedRuleList.md
docs/PatchedDetectorRequest.md
docs/PayloadTemplate.md
docs/PayloadTemplateRequest.md
docs/ROI.md
docs/ROIRequest.md
docs/ResultTypeEnum.md
Expand All @@ -50,6 +52,7 @@ docs/RuleRequest.md
docs/SnoozeTimeUnitEnum.md
docs/SourceEnum.md
docs/StatusEnum.md
docs/TextModeConfiguration.md
docs/TextRecognitionResult.md
docs/UserApi.md
docs/VerbEnum.md
Expand Down Expand Up @@ -106,6 +109,8 @@ groundlight_openapi_client/model/paginated_detector_list.py
groundlight_openapi_client/model/paginated_image_query_list.py
groundlight_openapi_client/model/paginated_rule_list.py
groundlight_openapi_client/model/patched_detector_request.py
groundlight_openapi_client/model/payload_template.py
groundlight_openapi_client/model/payload_template_request.py
groundlight_openapi_client/model/result_type_enum.py
groundlight_openapi_client/model/roi.py
groundlight_openapi_client/model/roi_request.py
Expand All @@ -114,6 +119,7 @@ groundlight_openapi_client/model/rule_request.py
groundlight_openapi_client/model/snooze_time_unit_enum.py
groundlight_openapi_client/model/source_enum.py
groundlight_openapi_client/model/status_enum.py
groundlight_openapi_client/model/text_mode_configuration.py
groundlight_openapi_client/model/text_recognition_result.py
groundlight_openapi_client/model/verb_enum.py
groundlight_openapi_client/model/webhook_action.py
Expand All @@ -126,4 +132,6 @@ setup.cfg
setup.py
test-requirements.txt
test/__init__.py
test/test_payload_template.py
test/test_payload_template_request.py
tox.ini
4 changes: 4 additions & 0 deletions generated/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ rule_request = RuleRequest(
WebhookActionRequest(
url="url_example",
include_image=True,
payload_template=None,
),
],
) # RuleRequest |
Expand Down Expand Up @@ -171,6 +172,8 @@ Class | Method | HTTP request | Description
- [PaginatedImageQueryList](docs/PaginatedImageQueryList.md)
- [PaginatedRuleList](docs/PaginatedRuleList.md)
- [PatchedDetectorRequest](docs/PatchedDetectorRequest.md)
- [PayloadTemplate](docs/PayloadTemplate.md)
- [PayloadTemplateRequest](docs/PayloadTemplateRequest.md)
- [ROI](docs/ROI.md)
- [ROIRequest](docs/ROIRequest.md)
- [ResultTypeEnum](docs/ResultTypeEnum.md)
Expand All @@ -179,6 +182,7 @@ Class | Method | HTTP request | Description
- [SnoozeTimeUnitEnum](docs/SnoozeTimeUnitEnum.md)
- [SourceEnum](docs/SourceEnum.md)
- [StatusEnum](docs/StatusEnum.md)
- [TextModeConfiguration](docs/TextModeConfiguration.md)
- [TextRecognitionResult](docs/TextRecognitionResult.md)
- [VerbEnum](docs/VerbEnum.md)
- [WebhookAction](docs/WebhookAction.md)
Expand Down
1 change: 1 addition & 0 deletions generated/docs/ActionsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ with groundlight_openapi_client.ApiClient(configuration) as api_client:
WebhookActionRequest(
url="url_example",
include_image=True,
payload_template=None,
),
],
) # RuleRequest |
Expand Down
12 changes: 12 additions & 0 deletions generated/docs/PayloadTemplate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# PayloadTemplate


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**template** | **str** | |
**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]

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


12 changes: 12 additions & 0 deletions generated/docs/PayloadTemplateRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# PayloadTemplateRequest


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**template** | **str** | |
**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]

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


12 changes: 12 additions & 0 deletions generated/docs/TextModeConfiguration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# TextModeConfiguration


## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value_max_length** | **int** | | [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]

[[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 @@ -4,7 +4,7 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**text** | **str** | |
**text** | **str, none_type** | |
**truncated** | **bool** | |
**confidence** | **float, none_type** | | [optional]
**source** | **str** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions generated/docs/WebhookAction.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**url** | **str** | |
**include_image** | **bool** | | [optional]
**payload_template** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
1 change: 1 addition & 0 deletions generated/docs/WebhookActionRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**url** | **str** | |
**include_image** | **bool** | | [optional]
**payload_template** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [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]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@ def lazy_import():
from groundlight_openapi_client.model.count_mode_configuration import CountModeConfiguration
from groundlight_openapi_client.model.mode_enum import ModeEnum
from groundlight_openapi_client.model.multi_class_mode_configuration import MultiClassModeConfiguration
from groundlight_openapi_client.model.text_mode_configuration import TextModeConfiguration

globals()["CountModeConfiguration"] = CountModeConfiguration
globals()["ModeEnum"] = ModeEnum
globals()["MultiClassModeConfiguration"] = MultiClassModeConfiguration
globals()["TextModeConfiguration"] = TextModeConfiguration


class DetectorCreationInputRequest(ModelNormal):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ class LabelValueRequest(ModelNormal):
allowed_values = {}

validations = {
("label",): {
"min_length": 1,
},
("image_query_id",): {
"min_length": 1,
},
Expand Down
Loading