Skip to content

Commit 8ab7703

Browse files
jameszyaoSimsonW
authored andcommitted
fix: remove total count from list api response
1 parent 9f35d60 commit 8ab7703

File tree

6 files changed

+5
-152
lines changed

6 files changed

+5
-152
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,4 @@ target/
6565

6666
.idea/
6767

68-
.swagger-codegen-ignore
69-
/.swagger-codegen/
7068
.DS_Store

taskingai/client/models/rest/action_list_response.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,26 @@ class ActionListResponse(object):
2727
'status': 'object',
2828
'data': 'object',
2929
'fetched_count': 'object',
30-
'total_count': 'object',
3130
'has_more': 'object'
3231
}
3332

3433
attribute_map = {
3534
'status': 'status',
3635
'data': 'data',
3736
'fetched_count': 'fetched_count',
38-
'total_count': 'total_count',
3937
'has_more': 'has_more'
4038
}
4139

42-
def __init__(self, status=None, data=None, fetched_count=None, total_count=None, has_more=None): # noqa: E501
40+
def __init__(self, status=None, data=None, fetched_count=None, has_more=None): # noqa: E501
4341
"""ActionListResponse - a model defined in Swagger""" # noqa: E501
4442
self._status = None
4543
self._data = None
4644
self._fetched_count = None
47-
self._total_count = None
4845
self._has_more = None
4946
self.discriminator = None
5047
self.status = status
5148
self.data = data
5249
self.fetched_count = fetched_count
53-
self.total_count = total_count
5450
self.has_more = has_more
5551

5652
@property
@@ -128,31 +124,6 @@ def fetched_count(self, fetched_count):
128124

129125
self._fetched_count = fetched_count
130126

131-
@property
132-
def total_count(self):
133-
"""Gets the total_count of this ActionListResponse. # noqa: E501
134-
135-
The total number of actions in the project. # noqa: E501
136-
137-
:return: The total_count of this ActionListResponse. # noqa: E501
138-
:rtype: object
139-
"""
140-
return self._total_count
141-
142-
@total_count.setter
143-
def total_count(self, total_count):
144-
"""Sets the total_count of this ActionListResponse.
145-
146-
The total number of actions in the project. # noqa: E501
147-
148-
:param total_count: The total_count of this ActionListResponse. # noqa: E501
149-
:type: object
150-
"""
151-
if total_count is None:
152-
raise ValueError("Invalid value for `total_count`, must not be `None`") # noqa: E501
153-
154-
self._total_count = total_count
155-
156127
@property
157128
def has_more(self):
158129
"""Gets the has_more of this ActionListResponse. # noqa: E501

taskingai/client/models/rest/assistant_list_response.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,26 @@ class AssistantListResponse(object):
2828
'data': 'object',
2929
'has_more': 'object',
3030
'fetched_count': 'object',
31-
'total_count': 'object'
3231
}
3332

3433
attribute_map = {
3534
'status': 'status',
3635
'data': 'data',
3736
'has_more': 'has_more',
3837
'fetched_count': 'fetched_count',
39-
'total_count': 'total_count'
4038
}
4139

42-
def __init__(self, status=None, data=None, has_more=None, fetched_count=None, total_count=None): # noqa: E501
40+
def __init__(self, status=None, data=None, has_more=None, fetched_count=None): # noqa: E501
4341
"""AssistantListResponse - a model defined in Swagger""" # noqa: E501
4442
self._status = None
4543
self._data = None
4644
self._has_more = None
4745
self._fetched_count = None
48-
self._total_count = None
4946
self.discriminator = None
5047
self.status = status
5148
self.data = data
5249
self.has_more = has_more
5350
self.fetched_count = fetched_count
54-
self.total_count = total_count
5551

5652
@property
5753
def status(self):
@@ -153,31 +149,6 @@ def fetched_count(self, fetched_count):
153149

154150
self._fetched_count = fetched_count
155151

156-
@property
157-
def total_count(self):
158-
"""Gets the total_count of this AssistantListResponse. # noqa: E501
159-
160-
The total number of assistants in the project. # noqa: E501
161-
162-
:return: The total_count of this AssistantListResponse. # noqa: E501
163-
:rtype: object
164-
"""
165-
return self._total_count
166-
167-
@total_count.setter
168-
def total_count(self, total_count):
169-
"""Sets the total_count of this AssistantListResponse.
170-
171-
The total number of assistants in the project. # noqa: E501
172-
173-
:param total_count: The total_count of this AssistantListResponse. # noqa: E501
174-
:type: object
175-
"""
176-
if total_count is None:
177-
raise ValueError("Invalid value for `total_count`, must not be `None`") # noqa: E501
178-
179-
self._total_count = total_count
180-
181152
def to_dict(self):
182153
"""Returns the model properties as a dict"""
183154
result = {}

taskingai/client/models/rest/collection_list_response.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,26 @@ class CollectionListResponse(object):
2727
'status': 'object',
2828
'data': 'object',
2929
'fetched_count': 'object',
30-
'total_count': 'object',
3130
'has_more': 'object'
3231
}
3332

3433
attribute_map = {
3534
'status': 'status',
3635
'data': 'data',
3736
'fetched_count': 'fetched_count',
38-
'total_count': 'total_count',
3937
'has_more': 'has_more'
4038
}
4139

42-
def __init__(self, status=None, data=None, fetched_count=None, total_count=None, has_more=None): # noqa: E501
40+
def __init__(self, status=None, data=None, fetched_count=None, has_more=None): # noqa: E501
4341
"""CollectionListResponse - a model defined in Swagger""" # noqa: E501
4442
self._status = None
4543
self._data = None
4644
self._fetched_count = None
47-
self._total_count = None
4845
self._has_more = None
4946
self.discriminator = None
5047
self.status = status
5148
self.data = data
5249
self.fetched_count = fetched_count
53-
self.total_count = total_count
5450
self.has_more = has_more
5551

5652
@property
@@ -128,31 +124,6 @@ def fetched_count(self, fetched_count):
128124

129125
self._fetched_count = fetched_count
130126

131-
@property
132-
def total_count(self):
133-
"""Gets the total_count of this CollectionListResponse. # noqa: E501
134-
135-
The total number of collections in the project. # noqa: E501
136-
137-
:return: The total_count of this CollectionListResponse. # noqa: E501
138-
:rtype: object
139-
"""
140-
return self._total_count
141-
142-
@total_count.setter
143-
def total_count(self, total_count):
144-
"""Sets the total_count of this CollectionListResponse.
145-
146-
The total number of collections in the project. # noqa: E501
147-
148-
:param total_count: The total_count of this CollectionListResponse. # noqa: E501
149-
:type: object
150-
"""
151-
if total_count is None:
152-
raise ValueError("Invalid value for `total_count`, must not be `None`") # noqa: E501
153-
154-
self._total_count = total_count
155-
156127
@property
157128
def has_more(self):
158129
"""Gets the has_more of this CollectionListResponse. # noqa: E501

taskingai/client/models/rest/function_list_response.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,26 @@ class FunctionListResponse(object):
2727
'status': 'object',
2828
'data': 'object',
2929
'fetched_count': 'object',
30-
'total_count': 'object',
3130
'has_more': 'object'
3231
}
3332

3433
attribute_map = {
3534
'status': 'status',
3635
'data': 'data',
3736
'fetched_count': 'fetched_count',
38-
'total_count': 'total_count',
3937
'has_more': 'has_more'
4038
}
4139

42-
def __init__(self, status=None, data=None, fetched_count=None, total_count=None, has_more=None): # noqa: E501
40+
def __init__(self, status=None, data=None, fetched_count=None, has_more=None): # noqa: E501
4341
"""FunctionListResponse - a model defined in Swagger""" # noqa: E501
4442
self._status = None
4543
self._data = None
4644
self._fetched_count = None
47-
self._total_count = None
4845
self._has_more = None
4946
self.discriminator = None
5047
self.status = status
5148
self.data = data
5249
self.fetched_count = fetched_count
53-
self.total_count = total_count
5450
self.has_more = has_more
5551

5652
@property
@@ -128,31 +124,6 @@ def fetched_count(self, fetched_count):
128124

129125
self._fetched_count = fetched_count
130126

131-
@property
132-
def total_count(self):
133-
"""Gets the total_count of this FunctionListResponse. # noqa: E501
134-
135-
The total number of functions in the project. # noqa: E501
136-
137-
:return: The total_count of this FunctionListResponse. # noqa: E501
138-
:rtype: object
139-
"""
140-
return self._total_count
141-
142-
@total_count.setter
143-
def total_count(self, total_count):
144-
"""Sets the total_count of this FunctionListResponse.
145-
146-
The total number of functions in the project. # noqa: E501
147-
148-
:param total_count: The total_count of this FunctionListResponse. # noqa: E501
149-
:type: object
150-
"""
151-
if total_count is None:
152-
raise ValueError("Invalid value for `total_count`, must not be `None`") # noqa: E501
153-
154-
self._total_count = total_count
155-
156127
@property
157128
def has_more(self):
158129
"""Gets the has_more of this FunctionListResponse. # noqa: E501

taskingai/client/models/rest/record_list_response.py

Lines changed: 1 addition & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,30 +27,26 @@ class RecordListResponse(object):
2727
'status': 'object',
2828
'data': 'object',
2929
'fetched_count': 'object',
30-
'total_count': 'object',
3130
'has_more': 'object'
3231
}
3332

3433
attribute_map = {
3534
'status': 'status',
3635
'data': 'data',
3736
'fetched_count': 'fetched_count',
38-
'total_count': 'total_count',
3937
'has_more': 'has_more'
4038
}
4139

42-
def __init__(self, status=None, data=None, fetched_count=None, total_count=None, has_more=None): # noqa: E501
40+
def __init__(self, status=None, data=None, fetched_count=None, has_more=None): # noqa: E501
4341
"""RecordListResponse - a model defined in Swagger""" # noqa: E501
4442
self._status = None
4543
self._data = None
4644
self._fetched_count = None
47-
self._total_count = None
4845
self._has_more = None
4946
self.discriminator = None
5047
self.status = status
5148
self.data = data
5249
self.fetched_count = fetched_count
53-
self.total_count = total_count
5450
self.has_more = has_more
5551

5652
@property
@@ -128,31 +124,6 @@ def fetched_count(self, fetched_count):
128124

129125
self._fetched_count = fetched_count
130126

131-
@property
132-
def total_count(self):
133-
"""Gets the total_count of this RecordListResponse. # noqa: E501
134-
135-
The total number of records in the collection. # noqa: E501
136-
137-
:return: The total_count of this RecordListResponse. # noqa: E501
138-
:rtype: object
139-
"""
140-
return self._total_count
141-
142-
@total_count.setter
143-
def total_count(self, total_count):
144-
"""Sets the total_count of this RecordListResponse.
145-
146-
The total number of records in the collection. # noqa: E501
147-
148-
:param total_count: The total_count of this RecordListResponse. # noqa: E501
149-
:type: object
150-
"""
151-
if total_count is None:
152-
raise ValueError("Invalid value for `total_count`, must not be `None`") # noqa: E501
153-
154-
self._total_count = total_count
155-
156127
@property
157128
def has_more(self):
158129
"""Gets the has_more of this RecordListResponse. # noqa: E501

0 commit comments

Comments
 (0)