flywheel-sdk 20.5.0__py2.py3-none-any.whl → 20.6.0rc2__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- flywheel/__init__.py +6 -1
- flywheel/api/__init__.py +1 -0
- flywheel/api/acquisitions_api.py +2 -2
- flywheel/api/analyses_api.py +2 -2
- flywheel/api/collections_api.py +2 -2
- flywheel/api/containers_api.py +21 -16
- flywheel/api/custom_filters_api.py +466 -0
- flywheel/api/files_api.py +2 -2
- flywheel/api/groups_api.py +2 -2
- flywheel/api/projects_api.py +2 -2
- flywheel/api/sessions_api.py +2 -2
- flywheel/api/subjects_api.py +2 -2
- flywheel/api_client.py +1 -1
- flywheel/configuration.py +2 -2
- flywheel/flywheel.py +72 -16
- flywheel/models/__init__.py +6 -2
- flywheel/models/core_models_custom_filters_filter.py +348 -0
- flywheel/models/{filter.py → core_models_paginations_filter.py} +16 -16
- flywheel/models/features.py +28 -1
- flywheel/models/filter_input.py +216 -0
- flywheel/models/filter_view.py +27 -0
- flywheel/models/page_generic_filter.py +217 -0
- flywheel/models/search_status.py +4 -33
- flywheel/models/site.py +58 -4
- flywheel/models/status_type.py +2 -2
- {flywheel_sdk-20.5.0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.5.0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/RECORD +30 -25
- {flywheel_sdk-20.5.0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/WHEEL +0 -0
- {flywheel_sdk-20.5.0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-20.5.0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/top_level.txt +0 -0
|
@@ -18,7 +18,7 @@ import pprint
|
|
|
18
18
|
import re # noqa: F401
|
|
19
19
|
import six
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class CoreModelsPaginationsFilter(object):
|
|
22
22
|
|
|
23
23
|
swagger_types = {
|
|
24
24
|
'attribute': 'str',
|
|
@@ -39,8 +39,8 @@ class Filter(object):
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
def __init__(self, attribute=None, operator=None, value=None): # noqa: E501
|
|
42
|
-
"""
|
|
43
|
-
super(
|
|
42
|
+
"""CoreModelsPaginationsFilter - a model defined in Swagger"""
|
|
43
|
+
super(CoreModelsPaginationsFilter, self).__init__()
|
|
44
44
|
|
|
45
45
|
self._attribute = None
|
|
46
46
|
self._operator = None
|
|
@@ -55,20 +55,20 @@ class Filter(object):
|
|
|
55
55
|
|
|
56
56
|
@property
|
|
57
57
|
def attribute(self):
|
|
58
|
-
"""Gets the attribute of this
|
|
58
|
+
"""Gets the attribute of this CoreModelsPaginationsFilter.
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
:return: The attribute of this
|
|
61
|
+
:return: The attribute of this CoreModelsPaginationsFilter.
|
|
62
62
|
:rtype: str
|
|
63
63
|
"""
|
|
64
64
|
return self._attribute
|
|
65
65
|
|
|
66
66
|
@attribute.setter
|
|
67
67
|
def attribute(self, attribute):
|
|
68
|
-
"""Sets the attribute of this
|
|
68
|
+
"""Sets the attribute of this CoreModelsPaginationsFilter.
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
:param attribute: The attribute of this
|
|
71
|
+
:param attribute: The attribute of this CoreModelsPaginationsFilter. # noqa: E501
|
|
72
72
|
:type: str
|
|
73
73
|
"""
|
|
74
74
|
|
|
@@ -76,22 +76,22 @@ class Filter(object):
|
|
|
76
76
|
|
|
77
77
|
@property
|
|
78
78
|
def operator(self):
|
|
79
|
-
"""Gets the operator of this
|
|
79
|
+
"""Gets the operator of this CoreModelsPaginationsFilter.
|
|
80
80
|
|
|
81
81
|
Comparison operator to filter on. Can be one of: < (lt), <= (lte), = (eq), != (neq), >= (gte), > (gt), =~ (reg), =| (in), !=| (not_in)
|
|
82
82
|
|
|
83
|
-
:return: The operator of this
|
|
83
|
+
:return: The operator of this CoreModelsPaginationsFilter.
|
|
84
84
|
:rtype: str
|
|
85
85
|
"""
|
|
86
86
|
return self._operator
|
|
87
87
|
|
|
88
88
|
@operator.setter
|
|
89
89
|
def operator(self, operator):
|
|
90
|
-
"""Sets the operator of this
|
|
90
|
+
"""Sets the operator of this CoreModelsPaginationsFilter.
|
|
91
91
|
|
|
92
92
|
Comparison operator to filter on. Can be one of: < (lt), <= (lte), = (eq), != (neq), >= (gte), > (gt), =~ (reg), =| (in), !=| (not_in)
|
|
93
93
|
|
|
94
|
-
:param operator: The operator of this
|
|
94
|
+
:param operator: The operator of this CoreModelsPaginationsFilter. # noqa: E501
|
|
95
95
|
:type: str
|
|
96
96
|
"""
|
|
97
97
|
|
|
@@ -99,20 +99,20 @@ class Filter(object):
|
|
|
99
99
|
|
|
100
100
|
@property
|
|
101
101
|
def value(self):
|
|
102
|
-
"""Gets the value of this
|
|
102
|
+
"""Gets the value of this CoreModelsPaginationsFilter.
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
:return: The value of this
|
|
105
|
+
:return: The value of this CoreModelsPaginationsFilter.
|
|
106
106
|
:rtype: union[str,integer,list[Object]]
|
|
107
107
|
"""
|
|
108
108
|
return self._value
|
|
109
109
|
|
|
110
110
|
@value.setter
|
|
111
111
|
def value(self, value):
|
|
112
|
-
"""Sets the value of this
|
|
112
|
+
"""Sets the value of this CoreModelsPaginationsFilter.
|
|
113
113
|
|
|
114
114
|
|
|
115
|
-
:param value: The value of this
|
|
115
|
+
:param value: The value of this CoreModelsPaginationsFilter. # noqa: E501
|
|
116
116
|
:type: union[str,integer,list[Object]]
|
|
117
117
|
"""
|
|
118
118
|
|
|
@@ -162,7 +162,7 @@ class Filter(object):
|
|
|
162
162
|
|
|
163
163
|
def __eq__(self, other):
|
|
164
164
|
"""Returns true if both objects are equal"""
|
|
165
|
-
if not isinstance(other,
|
|
165
|
+
if not isinstance(other, CoreModelsPaginationsFilter):
|
|
166
166
|
return False
|
|
167
167
|
|
|
168
168
|
return self.__dict__ == other.__dict__
|
flywheel/models/features.py
CHANGED
|
@@ -82,6 +82,7 @@ class Features(object):
|
|
|
82
82
|
'url_access_apps': 'bool',
|
|
83
83
|
'userpilot': 'bool',
|
|
84
84
|
'validate_classification': 'bool',
|
|
85
|
+
'viewer_annotations_v3': 'bool',
|
|
85
86
|
'engine_validate_classification': 'bool',
|
|
86
87
|
'virus_scan': 'bool',
|
|
87
88
|
'legacy_dicom_uploader': 'bool',
|
|
@@ -150,6 +151,7 @@ class Features(object):
|
|
|
150
151
|
'url_access_apps': 'url_access_apps',
|
|
151
152
|
'userpilot': 'userpilot',
|
|
152
153
|
'validate_classification': 'validate_classification',
|
|
154
|
+
'viewer_annotations_v3': 'viewer_annotations_v3',
|
|
153
155
|
'engine_validate_classification': 'engine_validate_classification',
|
|
154
156
|
'virus_scan': 'virus_scan',
|
|
155
157
|
'legacy_dicom_uploader': 'legacy_dicom_uploader',
|
|
@@ -218,13 +220,14 @@ class Features(object):
|
|
|
218
220
|
'url_access_apps': 'url_access_apps',
|
|
219
221
|
'userpilot': 'userpilot',
|
|
220
222
|
'validate_classification': 'validate_classification',
|
|
223
|
+
'viewer_annotations_v3': 'viewer_annotations_v3',
|
|
221
224
|
'engine_validate_classification': 'engine_validate_classification',
|
|
222
225
|
'virus_scan': 'virus_scan',
|
|
223
226
|
'legacy_dicom_uploader': 'legacy_dicom_uploader',
|
|
224
227
|
'tasks_refactor': 'tasks_refactor'
|
|
225
228
|
}
|
|
226
229
|
|
|
227
|
-
def __init__(self, api_enabled_gear_rules=True, auth0=None, audit_trail=False, azureml_integration=False, cold_job_logs=False, collections=False, copy_by_reference=True, core_api=True, crawler=False, cvat=False, data_views_non_21_cfr=True, default_viewer_apps=True, deid_log=False, deid_profile=False, dimse=False, elastic_search_primary=False, exchange=False, case_uploader=False, exchange_admin=False, external_routing=False, gear_access=True, google_analytics=True, healthcare_api=False, job_ask=True, job_prioritization=True, job_tickets=True, jupyter_integration=False, jupyterhub_external_storage=True, ldap_sync=False, multifactor_auth=False, multipart_signed_url=True, multiproject=False, ohif_multi_subject_view=False, ohif_meteor=False, ohif_react=False, ohif_react_beta=False, ohif_slice_order=None, ohif_v2_adhoc_indexing=True, ohif_v3=True, ohif_v3_beta=False, ohif_v3_default_app=False, ohif_v3_readonly=False, project_export=True, project_import=True, project_list_uses_stats=False, project_locking=False, reader_tasks=False, rts_sync=False, sentry_logging=None, session_templates_non_21_cfr=True, shared_projects=False, signed_url=False, study_task_status=False, tagging=False, tags_in_lists=True, task_manager_data_views=True, transform_search_fields=True, unsafe_login=False, url_access_apps=False, userpilot=None, validate_classification=True, engine_validate_classification=False, virus_scan=False, legacy_dicom_uploader=False, tasks_refactor=False): # noqa: E501
|
|
230
|
+
def __init__(self, api_enabled_gear_rules=True, auth0=None, audit_trail=False, azureml_integration=False, cold_job_logs=False, collections=False, copy_by_reference=True, core_api=True, crawler=False, cvat=False, data_views_non_21_cfr=True, default_viewer_apps=True, deid_log=False, deid_profile=False, dimse=False, elastic_search_primary=False, exchange=False, case_uploader=False, exchange_admin=False, external_routing=False, gear_access=True, google_analytics=True, healthcare_api=False, job_ask=True, job_prioritization=True, job_tickets=True, jupyter_integration=False, jupyterhub_external_storage=True, ldap_sync=False, multifactor_auth=False, multipart_signed_url=True, multiproject=False, ohif_multi_subject_view=False, ohif_meteor=False, ohif_react=False, ohif_react_beta=False, ohif_slice_order=None, ohif_v2_adhoc_indexing=True, ohif_v3=True, ohif_v3_beta=False, ohif_v3_default_app=False, ohif_v3_readonly=False, project_export=True, project_import=True, project_list_uses_stats=False, project_locking=False, reader_tasks=False, rts_sync=False, sentry_logging=None, session_templates_non_21_cfr=True, shared_projects=False, signed_url=False, study_task_status=False, tagging=False, tags_in_lists=True, task_manager_data_views=True, transform_search_fields=True, unsafe_login=False, url_access_apps=False, userpilot=None, validate_classification=True, viewer_annotations_v3=False, engine_validate_classification=False, virus_scan=False, legacy_dicom_uploader=False, tasks_refactor=False): # noqa: E501
|
|
228
231
|
"""Features - a model defined in Swagger"""
|
|
229
232
|
super(Features, self).__init__()
|
|
230
233
|
|
|
@@ -289,6 +292,7 @@ class Features(object):
|
|
|
289
292
|
self._url_access_apps = None
|
|
290
293
|
self._userpilot = None
|
|
291
294
|
self._validate_classification = None
|
|
295
|
+
self._viewer_annotations_v3 = None
|
|
292
296
|
self._engine_validate_classification = None
|
|
293
297
|
self._virus_scan = None
|
|
294
298
|
self._legacy_dicom_uploader = None
|
|
@@ -418,6 +422,8 @@ class Features(object):
|
|
|
418
422
|
self.userpilot = userpilot
|
|
419
423
|
if validate_classification is not None:
|
|
420
424
|
self.validate_classification = validate_classification
|
|
425
|
+
if viewer_annotations_v3 is not None:
|
|
426
|
+
self.viewer_annotations_v3 = viewer_annotations_v3
|
|
421
427
|
if engine_validate_classification is not None:
|
|
422
428
|
self.engine_validate_classification = engine_validate_classification
|
|
423
429
|
if virus_scan is not None:
|
|
@@ -1708,6 +1714,27 @@ class Features(object):
|
|
|
1708
1714
|
|
|
1709
1715
|
self._validate_classification = validate_classification
|
|
1710
1716
|
|
|
1717
|
+
@property
|
|
1718
|
+
def viewer_annotations_v3(self):
|
|
1719
|
+
"""Gets the viewer_annotations_v3 of this Features.
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
:return: The viewer_annotations_v3 of this Features.
|
|
1723
|
+
:rtype: bool
|
|
1724
|
+
"""
|
|
1725
|
+
return self._viewer_annotations_v3
|
|
1726
|
+
|
|
1727
|
+
@viewer_annotations_v3.setter
|
|
1728
|
+
def viewer_annotations_v3(self, viewer_annotations_v3):
|
|
1729
|
+
"""Sets the viewer_annotations_v3 of this Features.
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
:param viewer_annotations_v3: The viewer_annotations_v3 of this Features. # noqa: E501
|
|
1733
|
+
:type: bool
|
|
1734
|
+
"""
|
|
1735
|
+
|
|
1736
|
+
self._viewer_annotations_v3 = viewer_annotations_v3
|
|
1737
|
+
|
|
1711
1738
|
@property
|
|
1712
1739
|
def engine_validate_classification(self):
|
|
1713
1740
|
"""Gets the engine_validate_classification of this Features.
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Flywheel
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 0.0.1
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## NOTE: This file is auto generated by the swagger code generator program.
|
|
15
|
+
## Do not edit the file manually.
|
|
16
|
+
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
from flywheel.models.filter_view import FilterView # noqa: F401,E501
|
|
22
|
+
|
|
23
|
+
class FilterInput(object):
|
|
24
|
+
|
|
25
|
+
swagger_types = {
|
|
26
|
+
'filter': 'union[str,object]',
|
|
27
|
+
'view': 'FilterView',
|
|
28
|
+
'label': 'str'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'filter': 'filter',
|
|
33
|
+
'view': 'view',
|
|
34
|
+
'label': 'label'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
rattribute_map = {
|
|
38
|
+
'filter': 'filter',
|
|
39
|
+
'view': 'view',
|
|
40
|
+
'label': 'label'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, filter=None, view=None, label=None): # noqa: E501
|
|
44
|
+
"""FilterInput - a model defined in Swagger"""
|
|
45
|
+
super(FilterInput, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._filter = None
|
|
48
|
+
self._view = None
|
|
49
|
+
self._label = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
self.alt_discriminator = None
|
|
52
|
+
|
|
53
|
+
self.filter = filter
|
|
54
|
+
self.view = view
|
|
55
|
+
self.label = label
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def filter(self):
|
|
59
|
+
"""Gets the filter of this FilterInput.
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
:return: The filter of this FilterInput.
|
|
63
|
+
:rtype: union[str,object]
|
|
64
|
+
"""
|
|
65
|
+
return self._filter
|
|
66
|
+
|
|
67
|
+
@filter.setter
|
|
68
|
+
def filter(self, filter):
|
|
69
|
+
"""Sets the filter of this FilterInput.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
:param filter: The filter of this FilterInput. # noqa: E501
|
|
73
|
+
:type: union[str,object]
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
self._filter = filter
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def view(self):
|
|
80
|
+
"""Gets the view of this FilterInput.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The view of this FilterInput.
|
|
84
|
+
:rtype: FilterView
|
|
85
|
+
"""
|
|
86
|
+
return self._view
|
|
87
|
+
|
|
88
|
+
@view.setter
|
|
89
|
+
def view(self, view):
|
|
90
|
+
"""Sets the view of this FilterInput.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param view: The view of this FilterInput. # noqa: E501
|
|
94
|
+
:type: FilterView
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._view = view
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def label(self):
|
|
101
|
+
"""Gets the label of this FilterInput.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The label of this FilterInput.
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._label
|
|
108
|
+
|
|
109
|
+
@label.setter
|
|
110
|
+
def label(self, label):
|
|
111
|
+
"""Sets the label of this FilterInput.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param label: The label of this FilterInput. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._label = label
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
@staticmethod
|
|
122
|
+
def positional_to_model(value):
|
|
123
|
+
"""Converts a positional argument to a model value"""
|
|
124
|
+
return value
|
|
125
|
+
|
|
126
|
+
def return_value(self):
|
|
127
|
+
"""Unwraps return value from model"""
|
|
128
|
+
return self
|
|
129
|
+
|
|
130
|
+
def to_dict(self):
|
|
131
|
+
"""Returns the model properties as a dict"""
|
|
132
|
+
result = {}
|
|
133
|
+
|
|
134
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
135
|
+
value = getattr(self, attr)
|
|
136
|
+
if isinstance(value, list):
|
|
137
|
+
result[attr] = list(map(
|
|
138
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
139
|
+
value
|
|
140
|
+
))
|
|
141
|
+
elif hasattr(value, "to_dict"):
|
|
142
|
+
result[attr] = value.to_dict()
|
|
143
|
+
elif isinstance(value, dict):
|
|
144
|
+
result[attr] = dict(map(
|
|
145
|
+
lambda item: (item[0], item[1].to_dict())
|
|
146
|
+
if hasattr(item[1], "to_dict") else item,
|
|
147
|
+
value.items()
|
|
148
|
+
))
|
|
149
|
+
else:
|
|
150
|
+
result[attr] = value
|
|
151
|
+
|
|
152
|
+
return result
|
|
153
|
+
|
|
154
|
+
def to_str(self):
|
|
155
|
+
"""Returns the string representation of the model"""
|
|
156
|
+
return pprint.pformat(self.to_dict())
|
|
157
|
+
|
|
158
|
+
def __repr__(self):
|
|
159
|
+
"""For `print` and `pprint`"""
|
|
160
|
+
return self.to_str()
|
|
161
|
+
|
|
162
|
+
def __eq__(self, other):
|
|
163
|
+
"""Returns true if both objects are equal"""
|
|
164
|
+
if not isinstance(other, FilterInput):
|
|
165
|
+
return False
|
|
166
|
+
|
|
167
|
+
return self.__dict__ == other.__dict__
|
|
168
|
+
|
|
169
|
+
def __ne__(self, other):
|
|
170
|
+
"""Returns true if both objects are not equal"""
|
|
171
|
+
return not self == other
|
|
172
|
+
|
|
173
|
+
# Container emulation
|
|
174
|
+
def __getitem__(self, key):
|
|
175
|
+
"""Returns the value of key"""
|
|
176
|
+
key = self._map_key(key)
|
|
177
|
+
return getattr(self, key)
|
|
178
|
+
|
|
179
|
+
def __setitem__(self, key, value):
|
|
180
|
+
"""Sets the value of key"""
|
|
181
|
+
key = self._map_key(key)
|
|
182
|
+
setattr(self, key, value)
|
|
183
|
+
|
|
184
|
+
def __contains__(self, key):
|
|
185
|
+
"""Checks if the given value is a key in this object"""
|
|
186
|
+
key = self._map_key(key, raise_on_error=False)
|
|
187
|
+
return key is not None
|
|
188
|
+
|
|
189
|
+
def keys(self):
|
|
190
|
+
"""Returns the list of json properties in the object"""
|
|
191
|
+
return self.__class__.rattribute_map.keys()
|
|
192
|
+
|
|
193
|
+
def values(self):
|
|
194
|
+
"""Returns the list of values in the object"""
|
|
195
|
+
for key in self.__class__.attribute_map.keys():
|
|
196
|
+
yield getattr(self, key)
|
|
197
|
+
|
|
198
|
+
def items(self):
|
|
199
|
+
"""Returns the list of json property to value mapping"""
|
|
200
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
201
|
+
yield key, getattr(self, prop)
|
|
202
|
+
|
|
203
|
+
def get(self, key, default=None):
|
|
204
|
+
"""Get the value of the provided json property, or default"""
|
|
205
|
+
key = self._map_key(key, raise_on_error=False)
|
|
206
|
+
if key:
|
|
207
|
+
return getattr(self, key, default)
|
|
208
|
+
return default
|
|
209
|
+
|
|
210
|
+
def _map_key(self, key, raise_on_error=True):
|
|
211
|
+
result = self.__class__.rattribute_map.get(key)
|
|
212
|
+
if result is None:
|
|
213
|
+
if raise_on_error:
|
|
214
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
215
|
+
return None
|
|
216
|
+
return '_' + result
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Flywheel
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 0.0.1
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## NOTE: This file is auto generated by the swagger code generator program.
|
|
15
|
+
## Do not edit the file manually.
|
|
16
|
+
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
import enum
|
|
22
|
+
|
|
23
|
+
class FilterView(str, enum.Enum):
|
|
24
|
+
TASKS = "tasks"
|
|
25
|
+
|
|
26
|
+
def __str__(self):
|
|
27
|
+
return self.value
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Flywheel
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 0.0.1
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## NOTE: This file is auto generated by the swagger code generator program.
|
|
15
|
+
## Do not edit the file manually.
|
|
16
|
+
|
|
17
|
+
import pprint
|
|
18
|
+
import re # noqa: F401
|
|
19
|
+
import six
|
|
20
|
+
|
|
21
|
+
from flywheel.models.core_models_custom_filters_filter import CoreModelsCustomFiltersFilter # noqa: F401,E501
|
|
22
|
+
|
|
23
|
+
class PageGenericFilter(object):
|
|
24
|
+
|
|
25
|
+
swagger_types = {
|
|
26
|
+
'count': 'int',
|
|
27
|
+
'total': 'int',
|
|
28
|
+
'results': 'list[CoreModelsCustomFiltersFilter]'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
attribute_map = {
|
|
32
|
+
'count': 'count',
|
|
33
|
+
'total': 'total',
|
|
34
|
+
'results': 'results'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
rattribute_map = {
|
|
38
|
+
'count': 'count',
|
|
39
|
+
'total': 'total',
|
|
40
|
+
'results': 'results'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, count=None, total=None, results=None): # noqa: E501
|
|
44
|
+
"""PageGenericFilter - a model defined in Swagger"""
|
|
45
|
+
super(PageGenericFilter, self).__init__()
|
|
46
|
+
|
|
47
|
+
self._count = None
|
|
48
|
+
self._total = None
|
|
49
|
+
self._results = None
|
|
50
|
+
self.discriminator = None
|
|
51
|
+
self.alt_discriminator = None
|
|
52
|
+
|
|
53
|
+
if count is not None:
|
|
54
|
+
self.count = count
|
|
55
|
+
self.total = total
|
|
56
|
+
self.results = results
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def count(self):
|
|
60
|
+
"""Gets the count of this PageGenericFilter.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The count of this PageGenericFilter.
|
|
64
|
+
:rtype: int
|
|
65
|
+
"""
|
|
66
|
+
return self._count
|
|
67
|
+
|
|
68
|
+
@count.setter
|
|
69
|
+
def count(self, count):
|
|
70
|
+
"""Sets the count of this PageGenericFilter.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param count: The count of this PageGenericFilter. # noqa: E501
|
|
74
|
+
:type: int
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._count = count
|
|
78
|
+
|
|
79
|
+
@property
|
|
80
|
+
def total(self):
|
|
81
|
+
"""Gets the total of this PageGenericFilter.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
:return: The total of this PageGenericFilter.
|
|
85
|
+
:rtype: int
|
|
86
|
+
"""
|
|
87
|
+
return self._total
|
|
88
|
+
|
|
89
|
+
@total.setter
|
|
90
|
+
def total(self, total):
|
|
91
|
+
"""Sets the total of this PageGenericFilter.
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:param total: The total of this PageGenericFilter. # noqa: E501
|
|
95
|
+
:type: int
|
|
96
|
+
"""
|
|
97
|
+
|
|
98
|
+
self._total = total
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def results(self):
|
|
102
|
+
"""Gets the results of this PageGenericFilter.
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
:return: The results of this PageGenericFilter.
|
|
106
|
+
:rtype: list[CoreModelsCustomFiltersFilter]
|
|
107
|
+
"""
|
|
108
|
+
return self._results
|
|
109
|
+
|
|
110
|
+
@results.setter
|
|
111
|
+
def results(self, results):
|
|
112
|
+
"""Sets the results of this PageGenericFilter.
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
:param results: The results of this PageGenericFilter. # noqa: E501
|
|
116
|
+
:type: list[CoreModelsCustomFiltersFilter]
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
self._results = results
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
@staticmethod
|
|
123
|
+
def positional_to_model(value):
|
|
124
|
+
"""Converts a positional argument to a model value"""
|
|
125
|
+
return value
|
|
126
|
+
|
|
127
|
+
def return_value(self):
|
|
128
|
+
"""Unwraps return value from model"""
|
|
129
|
+
return self
|
|
130
|
+
|
|
131
|
+
def to_dict(self):
|
|
132
|
+
"""Returns the model properties as a dict"""
|
|
133
|
+
result = {}
|
|
134
|
+
|
|
135
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
136
|
+
value = getattr(self, attr)
|
|
137
|
+
if isinstance(value, list):
|
|
138
|
+
result[attr] = list(map(
|
|
139
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
140
|
+
value
|
|
141
|
+
))
|
|
142
|
+
elif hasattr(value, "to_dict"):
|
|
143
|
+
result[attr] = value.to_dict()
|
|
144
|
+
elif isinstance(value, dict):
|
|
145
|
+
result[attr] = dict(map(
|
|
146
|
+
lambda item: (item[0], item[1].to_dict())
|
|
147
|
+
if hasattr(item[1], "to_dict") else item,
|
|
148
|
+
value.items()
|
|
149
|
+
))
|
|
150
|
+
else:
|
|
151
|
+
result[attr] = value
|
|
152
|
+
|
|
153
|
+
return result
|
|
154
|
+
|
|
155
|
+
def to_str(self):
|
|
156
|
+
"""Returns the string representation of the model"""
|
|
157
|
+
return pprint.pformat(self.to_dict())
|
|
158
|
+
|
|
159
|
+
def __repr__(self):
|
|
160
|
+
"""For `print` and `pprint`"""
|
|
161
|
+
return self.to_str()
|
|
162
|
+
|
|
163
|
+
def __eq__(self, other):
|
|
164
|
+
"""Returns true if both objects are equal"""
|
|
165
|
+
if not isinstance(other, PageGenericFilter):
|
|
166
|
+
return False
|
|
167
|
+
|
|
168
|
+
return self.__dict__ == other.__dict__
|
|
169
|
+
|
|
170
|
+
def __ne__(self, other):
|
|
171
|
+
"""Returns true if both objects are not equal"""
|
|
172
|
+
return not self == other
|
|
173
|
+
|
|
174
|
+
# Container emulation
|
|
175
|
+
def __getitem__(self, key):
|
|
176
|
+
"""Returns the value of key"""
|
|
177
|
+
key = self._map_key(key)
|
|
178
|
+
return getattr(self, key)
|
|
179
|
+
|
|
180
|
+
def __setitem__(self, key, value):
|
|
181
|
+
"""Sets the value of key"""
|
|
182
|
+
key = self._map_key(key)
|
|
183
|
+
setattr(self, key, value)
|
|
184
|
+
|
|
185
|
+
def __contains__(self, key):
|
|
186
|
+
"""Checks if the given value is a key in this object"""
|
|
187
|
+
key = self._map_key(key, raise_on_error=False)
|
|
188
|
+
return key is not None
|
|
189
|
+
|
|
190
|
+
def keys(self):
|
|
191
|
+
"""Returns the list of json properties in the object"""
|
|
192
|
+
return self.__class__.rattribute_map.keys()
|
|
193
|
+
|
|
194
|
+
def values(self):
|
|
195
|
+
"""Returns the list of values in the object"""
|
|
196
|
+
for key in self.__class__.attribute_map.keys():
|
|
197
|
+
yield getattr(self, key)
|
|
198
|
+
|
|
199
|
+
def items(self):
|
|
200
|
+
"""Returns the list of json property to value mapping"""
|
|
201
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
202
|
+
yield key, getattr(self, prop)
|
|
203
|
+
|
|
204
|
+
def get(self, key, default=None):
|
|
205
|
+
"""Get the value of the provided json property, or default"""
|
|
206
|
+
key = self._map_key(key, raise_on_error=False)
|
|
207
|
+
if key:
|
|
208
|
+
return getattr(self, key, default)
|
|
209
|
+
return default
|
|
210
|
+
|
|
211
|
+
def _map_key(self, key, raise_on_error=True):
|
|
212
|
+
result = self.__class__.rattribute_map.get(key)
|
|
213
|
+
if result is None:
|
|
214
|
+
if raise_on_error:
|
|
215
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
216
|
+
return None
|
|
217
|
+
return '_' + result
|