Skip to content

Commit ebe3856

Browse files
authored
Add new result types, make EDGE a source option, make label field of LabelValue nullable (#325)
Updating generated code based on latest spec.
1 parent 83c40a0 commit ebe3856

15 files changed

+169
-111
lines changed

generated/docs/BinaryClassificationResult.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**label** | **str** | |
88
**confidence** | **float, none_type** | | [optional]
99
**source** | **str** | | [optional]
10+
**result_type** | **str** | | [optional] if omitted the server will use the default value of "binary_classification"
1011
**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]
1112

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

generated/docs/CountingResult.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**count** | **int, none_type** | |
88
**confidence** | **float, none_type** | | [optional]
99
**source** | **str** | | [optional]
10+
**result_type** | **str** | | [optional] if omitted the server will use the default value of "counting"
1011
**greater_than_max** | **bool** | | [optional]
1112
**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]
1213

generated/docs/LabelValueRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**label** | **str** | |
7+
**label** | **str, none_type** | |
88
**image_query_id** | **str** | |
99
**rois** | [**[ROIRequest], none_type**](ROIRequest.md) | | [optional]
1010
**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]

generated/docs/MultiClassificationResult.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**label** | **str** | |
88
**confidence** | **float, none_type** | | [optional]
99
**source** | **str** | | [optional]
10+
**result_type** | **str** | | [optional] if omitted the server will use the default value of "multi_classification"
1011
**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]
1112

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

generated/docs/SourceEnum.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# SourceEnum
22

3-
* `INITIAL_PLACEHOLDER` - InitialPlaceholder * `CLOUD` - HumanCloud * `CUST` - HumanCustomer * `HUMAN_CLOUD_ENSEMBLE` - HumanCloudEnsemble * `ALG` - Algorithm * `ALG_REC` - AlgorithmReconciled * `ALG_UNCLEAR` - AlgorithmUnclear
3+
* `INITIAL_PLACEHOLDER` - InitialPlaceholder * `CLOUD` - HumanCloud * `CUST` - HumanCustomer * `HUMAN_CLOUD_ENSEMBLE` - HumanCloudEnsemble * `ALG` - Algorithm * `ALG_REC` - AlgorithmReconciled * `ALG_UNCLEAR` - AlgorithmUnclear * `EDGE` - EDGE
44

55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8-
**value** | **str** | * `INITIAL_PLACEHOLDER` - InitialPlaceholder * `CLOUD` - HumanCloud * `CUST` - HumanCustomer * `HUMAN_CLOUD_ENSEMBLE` - HumanCloudEnsemble * `ALG` - Algorithm * `ALG_REC` - AlgorithmReconciled * `ALG_UNCLEAR` - AlgorithmUnclear | must be one of ["INITIAL_PLACEHOLDER", "CLOUD", "CUST", "HUMAN_CLOUD_ENSEMBLE", "ALG", "ALG_REC", "ALG_UNCLEAR", ]
8+
**value** | **str** | * `INITIAL_PLACEHOLDER` - InitialPlaceholder * `CLOUD` - HumanCloud * `CUST` - HumanCustomer * `HUMAN_CLOUD_ENSEMBLE` - HumanCloudEnsemble * `ALG` - Algorithm * `ALG_REC` - AlgorithmReconciled * `ALG_UNCLEAR` - AlgorithmUnclear * `EDGE` - EDGE | must be one of ["INITIAL_PLACEHOLDER", "CLOUD", "CUST", "HUMAN_CLOUD_ENSEMBLE", "ALG", "ALG_REC", "ALG_UNCLEAR", "EDGE", ]
99

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

generated/docs/TextRecognitionResult.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**text** | **str** | |
7+
**text** | **str, none_type** | |
88
**truncated** | **bool** | |
99
**confidence** | **float, none_type** | | [optional]
1010
**source** | **str** | | [optional]
11+
**result_type** | **str** | | [optional] if omitted the server will use the default value of "text_recognition"
1112
**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]
1213

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

generated/groundlight_openapi_client/model/binary_classification_result.py

+8
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ class BinaryClassificationResult(ModelNormal):
6565
"USER": "USER",
6666
"CLOUD_ENSEMBLE": "CLOUD_ENSEMBLE",
6767
"ALGORITHM": "ALGORITHM",
68+
"EDGE": "EDGE",
69+
},
70+
("result_type",): {
71+
"BINARY_CLASSIFICATION": "binary_classification",
6872
},
6973
}
7074

@@ -112,6 +116,7 @@ def openapi_types():
112116
none_type,
113117
), # noqa: E501
114118
"source": (str,), # noqa: E501
119+
"result_type": (str,), # noqa: E501
115120
}
116121

117122
@cached_property
@@ -122,6 +127,7 @@ def discriminator():
122127
"label": "label", # noqa: E501
123128
"confidence": "confidence", # noqa: E501
124129
"source": "source", # noqa: E501
130+
"result_type": "result_type", # noqa: E501
125131
}
126132

127133
read_only_vars = {}
@@ -169,6 +175,7 @@ def _from_openapi_data(cls, label, *args, **kwargs): # noqa: E501
169175
_visited_composed_classes = (Animal,)
170176
confidence (float, none_type): [optional] # noqa: E501
171177
source (str): [optional] # noqa: E501
178+
result_type (str): [optional] if omitted the server will use the default value of "binary_classification" # noqa: E501
172179
"""
173180

174181
_check_type = kwargs.pop("_check_type", True)
@@ -259,6 +266,7 @@ def __init__(self, label, *args, **kwargs): # noqa: E501
259266
_visited_composed_classes = (Animal,)
260267
confidence (float, none_type): [optional] # noqa: E501
261268
source (str): [optional] # noqa: E501
269+
result_type (str): [optional] if omitted the server will use the default value of "binary_classification" # noqa: E501
262270
"""
263271

264272
_check_type = kwargs.pop("_check_type", True)

generated/groundlight_openapi_client/model/counting_result.py

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ class CountingResult(ModelNormal):
6060
"USER": "USER",
6161
"CLOUD_ENSEMBLE": "CLOUD_ENSEMBLE",
6262
"ALGORITHM": "ALGORITHM",
63+
"EDGE": "EDGE",
64+
},
65+
("result_type",): {
66+
"COUNTING": "counting",
6367
},
6468
}
6569

@@ -113,6 +117,7 @@ def openapi_types():
113117
none_type,
114118
), # noqa: E501
115119
"source": (str,), # noqa: E501
120+
"result_type": (str,), # noqa: E501
116121
"greater_than_max": (bool,), # noqa: E501
117122
}
118123

@@ -124,6 +129,7 @@ def discriminator():
124129
"count": "count", # noqa: E501
125130
"confidence": "confidence", # noqa: E501
126131
"source": "source", # noqa: E501
132+
"result_type": "result_type", # noqa: E501
127133
"greater_than_max": "greater_than_max", # noqa: E501
128134
}
129135

@@ -172,6 +178,7 @@ def _from_openapi_data(cls, count, *args, **kwargs): # noqa: E501
172178
_visited_composed_classes = (Animal,)
173179
confidence (float, none_type): [optional] # noqa: E501
174180
source (str): [optional] # noqa: E501
181+
result_type (str): [optional] if omitted the server will use the default value of "counting" # noqa: E501
175182
greater_than_max (bool): [optional] # noqa: E501
176183
"""
177184

@@ -263,6 +270,7 @@ def __init__(self, count, *args, **kwargs): # noqa: E501
263270
_visited_composed_classes = (Animal,)
264271
confidence (float, none_type): [optional] # noqa: E501
265272
source (str): [optional] # noqa: E501
273+
result_type (str): [optional] if omitted the server will use the default value of "counting" # noqa: E501
266274
greater_than_max (bool): [optional] # noqa: E501
267275
"""
268276

generated/groundlight_openapi_client/model/label_value_request.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,10 @@ def openapi_types():
100100
"""
101101
lazy_import()
102102
return {
103-
"label": (str,), # noqa: E501
103+
"label": (
104+
str,
105+
none_type,
106+
), # noqa: E501
104107
"image_query_id": (str,), # noqa: E501
105108
"rois": (
106109
[ROIRequest],
@@ -128,7 +131,7 @@ def _from_openapi_data(cls, label, image_query_id, *args, **kwargs): # noqa: E5
128131
"""LabelValueRequest - a model defined in OpenAPI
129132
130133
Args:
131-
label (str):
134+
label (str, none_type):
132135
image_query_id (str):
133136
134137
Keyword Args:
@@ -219,7 +222,7 @@ def __init__(self, label, image_query_id, *args, **kwargs): # noqa: E501
219222
"""LabelValueRequest - a model defined in OpenAPI
220223
221224
Args:
222-
label (str):
225+
label (str, none_type):
223226
image_query_id (str):
224227
225228
Keyword Args:

generated/groundlight_openapi_client/model/multi_classification_result.py

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ class MultiClassificationResult(ModelNormal):
6060
"USER": "USER",
6161
"CLOUD_ENSEMBLE": "CLOUD_ENSEMBLE",
6262
"ALGORITHM": "ALGORITHM",
63+
"EDGE": "EDGE",
64+
},
65+
("result_type",): {
66+
"MULTI_CLASSIFICATION": "multi_classification",
6367
},
6468
}
6569

@@ -107,6 +111,7 @@ def openapi_types():
107111
none_type,
108112
), # noqa: E501
109113
"source": (str,), # noqa: E501
114+
"result_type": (str,), # noqa: E501
110115
}
111116

112117
@cached_property
@@ -117,6 +122,7 @@ def discriminator():
117122
"label": "label", # noqa: E501
118123
"confidence": "confidence", # noqa: E501
119124
"source": "source", # noqa: E501
125+
"result_type": "result_type", # noqa: E501
120126
}
121127

122128
read_only_vars = {}
@@ -164,6 +170,7 @@ def _from_openapi_data(cls, label, *args, **kwargs): # noqa: E501
164170
_visited_composed_classes = (Animal,)
165171
confidence (float, none_type): [optional] # noqa: E501
166172
source (str): [optional] # noqa: E501
173+
result_type (str): [optional] if omitted the server will use the default value of "multi_classification" # noqa: E501
167174
"""
168175

169176
_check_type = kwargs.pop("_check_type", True)
@@ -254,6 +261,7 @@ def __init__(self, label, *args, **kwargs): # noqa: E501
254261
_visited_composed_classes = (Animal,)
255262
confidence (float, none_type): [optional] # noqa: E501
256263
source (str): [optional] # noqa: E501
264+
result_type (str): [optional] if omitted the server will use the default value of "multi_classification" # noqa: E501
257265
"""
258266

259267
_check_type = kwargs.pop("_check_type", True)

0 commit comments

Comments
 (0)