flywheel-sdk 20.5.0rc0__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.0rc0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.5.0rc0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/RECORD +30 -25
- {flywheel_sdk-20.5.0rc0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/WHEEL +0 -0
- {flywheel_sdk-20.5.0rc0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/licenses/LICENSE.txt +0 -0
- {flywheel_sdk-20.5.0rc0.dist-info → flywheel_sdk-20.6.0rc2.dist-info}/top_level.txt +0 -0
flywheel/api/groups_api.py
CHANGED
|
@@ -1362,7 +1362,7 @@ class GroupsApi(object):
|
|
|
1362
1362
|
Delete multiple groups by query
|
|
1363
1363
|
This method makes a synchronous HTTP request by default.
|
|
1364
1364
|
|
|
1365
|
-
:param list[
|
|
1365
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1366
1366
|
:param ContainerDeleteReason delete_reason:
|
|
1367
1367
|
:param bool async_: Perform the request asynchronously
|
|
1368
1368
|
:return: DeletedResult
|
|
@@ -1389,7 +1389,7 @@ class GroupsApi(object):
|
|
|
1389
1389
|
Delete multiple groups by query
|
|
1390
1390
|
This method makes a synchronous HTTP request by default.
|
|
1391
1391
|
|
|
1392
|
-
:param list[
|
|
1392
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1393
1393
|
:param ContainerDeleteReason delete_reason:
|
|
1394
1394
|
:param bool async_: Perform the request asynchronously
|
|
1395
1395
|
:return: DeletedResult
|
flywheel/api/projects_api.py
CHANGED
|
@@ -2061,7 +2061,7 @@ class ProjectsApi(object):
|
|
|
2061
2061
|
Delete multiple projects by query
|
|
2062
2062
|
This method makes a synchronous HTTP request by default.
|
|
2063
2063
|
|
|
2064
|
-
:param list[
|
|
2064
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
2065
2065
|
:param ContainerDeleteReason delete_reason:
|
|
2066
2066
|
:param bool async_: Perform the request asynchronously
|
|
2067
2067
|
:return: DeletedResult
|
|
@@ -2088,7 +2088,7 @@ class ProjectsApi(object):
|
|
|
2088
2088
|
Delete multiple projects by query
|
|
2089
2089
|
This method makes a synchronous HTTP request by default.
|
|
2090
2090
|
|
|
2091
|
-
:param list[
|
|
2091
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
2092
2092
|
:param ContainerDeleteReason delete_reason:
|
|
2093
2093
|
:param bool async_: Perform the request asynchronously
|
|
2094
2094
|
:return: DeletedResult
|
flywheel/api/sessions_api.py
CHANGED
|
@@ -1596,7 +1596,7 @@ class SessionsApi(object):
|
|
|
1596
1596
|
Delete multiple sessions by query
|
|
1597
1597
|
This method makes a synchronous HTTP request by default.
|
|
1598
1598
|
|
|
1599
|
-
:param list[
|
|
1599
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1600
1600
|
:param ContainerDeleteReason delete_reason:
|
|
1601
1601
|
:param bool async_: Perform the request asynchronously
|
|
1602
1602
|
:return: DeletedResult
|
|
@@ -1623,7 +1623,7 @@ class SessionsApi(object):
|
|
|
1623
1623
|
Delete multiple sessions by query
|
|
1624
1624
|
This method makes a synchronous HTTP request by default.
|
|
1625
1625
|
|
|
1626
|
-
:param list[
|
|
1626
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1627
1627
|
:param ContainerDeleteReason delete_reason:
|
|
1628
1628
|
:param bool async_: Perform the request asynchronously
|
|
1629
1629
|
:return: DeletedResult
|
flywheel/api/subjects_api.py
CHANGED
|
@@ -1704,7 +1704,7 @@ class SubjectsApi(object):
|
|
|
1704
1704
|
Delete multiple subjects by query
|
|
1705
1705
|
This method makes a synchronous HTTP request by default.
|
|
1706
1706
|
|
|
1707
|
-
:param list[
|
|
1707
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1708
1708
|
:param ContainerDeleteReason delete_reason:
|
|
1709
1709
|
:param bool async_: Perform the request asynchronously
|
|
1710
1710
|
:return: DeletedResult
|
|
@@ -1731,7 +1731,7 @@ class SubjectsApi(object):
|
|
|
1731
1731
|
Delete multiple subjects by query
|
|
1732
1732
|
This method makes a synchronous HTTP request by default.
|
|
1733
1733
|
|
|
1734
|
-
:param list[
|
|
1734
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1735
1735
|
:param ContainerDeleteReason delete_reason:
|
|
1736
1736
|
:param bool async_: Perform the request asynchronously
|
|
1737
1737
|
:return: DeletedResult
|
flywheel/api_client.py
CHANGED
|
@@ -84,7 +84,7 @@ class ApiClient(object):
|
|
|
84
84
|
self.default_query_params = []
|
|
85
85
|
self.cookie = cookie
|
|
86
86
|
# Set default User-Agent.
|
|
87
|
-
self.user_agent = 'Swagger-Codegen/20.
|
|
87
|
+
self.user_agent = 'Swagger-Codegen/20.6.0-rc2/python'
|
|
88
88
|
self.last_response = None
|
|
89
89
|
self._version_check_fn = None
|
|
90
90
|
self._context = context
|
flywheel/configuration.py
CHANGED
|
@@ -253,8 +253,8 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
|
|
|
253
253
|
return "Python SDK Debug Report:\n"\
|
|
254
254
|
"OS: {env}\n"\
|
|
255
255
|
"Python Version: {pyversion}\n"\
|
|
256
|
-
"Version of the API: 20.
|
|
257
|
-
"SDK Package Version: 20.
|
|
256
|
+
"Version of the API: 20.6.0-rc2\n"\
|
|
257
|
+
"SDK Package Version: 20.6.0-rc2".\
|
|
258
258
|
format(env=sys.platform, pyversion=sys.version)
|
|
259
259
|
|
|
260
260
|
def enable_message_cutoff(self, message_cutoff):
|
flywheel/flywheel.py
CHANGED
|
@@ -40,7 +40,7 @@ from flywheel.view_builder import ViewBuilder
|
|
|
40
40
|
from flywheel.finder import Finder
|
|
41
41
|
import flywheel.api
|
|
42
42
|
|
|
43
|
-
SDK_VERSION = "20.
|
|
43
|
+
SDK_VERSION = "20.6.0-rc2"
|
|
44
44
|
|
|
45
45
|
def config_from_api_key(api_key):
|
|
46
46
|
parts = api_key.split(':')
|
|
@@ -145,6 +145,7 @@ class Flywheel:
|
|
|
145
145
|
self.config_api = flywheel.api.ConfigApi(self.api_client)
|
|
146
146
|
self.container_type_api = flywheel.api.ContainerTypeApi(self.api_client)
|
|
147
147
|
self.containers_api = flywheel.api.ContainersApi(self.api_client)
|
|
148
|
+
self.custom_filters_api = flywheel.api.CustomFiltersApi(self.api_client)
|
|
148
149
|
self.data_view_executions_api = flywheel.api.DataViewExecutionsApi(self.api_client)
|
|
149
150
|
self.dataexplorer_api = flywheel.api.DataexplorerApi(self.api_client)
|
|
150
151
|
self.devices_api = flywheel.api.DevicesApi(self.api_client)
|
|
@@ -412,7 +413,7 @@ class Flywheel:
|
|
|
412
413
|
|
|
413
414
|
Delete multiple acquisitions by query
|
|
414
415
|
|
|
415
|
-
:param list[
|
|
416
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
416
417
|
:param ContainerDeleteReason delete_reason:
|
|
417
418
|
:param bool async_: Perform the request asynchronously
|
|
418
419
|
:return: DeletedResult
|
|
@@ -932,7 +933,7 @@ class Flywheel:
|
|
|
932
933
|
|
|
933
934
|
Delete multiple analyses by query
|
|
934
935
|
|
|
935
|
-
:param list[
|
|
936
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
936
937
|
:param ContainerDeleteReason delete_reason:
|
|
937
938
|
:param bool async_: Perform the request asynchronously
|
|
938
939
|
:return: DeletedResult
|
|
@@ -1763,7 +1764,7 @@ class Flywheel:
|
|
|
1763
1764
|
|
|
1764
1765
|
Delete multiple collections by query
|
|
1765
1766
|
|
|
1766
|
-
:param list[
|
|
1767
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
1767
1768
|
:param ContainerDeleteReason delete_reason:
|
|
1768
1769
|
:param bool async_: Perform the request asynchronously
|
|
1769
1770
|
:return: DeletedResult
|
|
@@ -2634,14 +2635,15 @@ class Flywheel:
|
|
|
2634
2635
|
View all containers
|
|
2635
2636
|
|
|
2636
2637
|
:param str container_id: The ID of the container, one of user, group or project. Use \"site\" as containerId to save or get a site data view. (required)
|
|
2637
|
-
:param str filter:
|
|
2638
|
-
:param str sort:
|
|
2639
|
-
:param int limit:
|
|
2640
|
-
:param int skip:
|
|
2641
|
-
:param int page:
|
|
2642
|
-
:param str after_id:
|
|
2638
|
+
:param str filter: The filter to apply. (e.g. label=my-label,created>2018-09-22)
|
|
2639
|
+
:param str sort: The sort fields and order. (e.g. label:asc,created:desc)
|
|
2640
|
+
:param int limit: The maximum number of entries to return.
|
|
2641
|
+
:param int skip: The number of entries to skip.
|
|
2642
|
+
:param int page: The page number (i.e. skip limit*page entries)
|
|
2643
|
+
:param str after_id: Paginate after the given id. (Cannot be used with sort, page or skip)
|
|
2644
|
+
:param list[union[HeaderFeature,str]] x_accept_feature:
|
|
2643
2645
|
:param bool async_: Perform the request asynchronously
|
|
2644
|
-
:return: list[ViewOutput]
|
|
2646
|
+
:return: union[Page,list[ViewOutput]]
|
|
2645
2647
|
"""
|
|
2646
2648
|
return self.containers_api.get_views(container_id, **kwargs)
|
|
2647
2649
|
|
|
@@ -2806,6 +2808,60 @@ class Flywheel:
|
|
|
2806
2808
|
return self.containers_api.upload_output_to_container_analysis(cid, analysis_id, file, **kwargs)
|
|
2807
2809
|
|
|
2808
2810
|
|
|
2811
|
+
def create_custom_filter(self, body, **kwargs): # noqa: E501
|
|
2812
|
+
"""Create a custom filter for user
|
|
2813
|
+
|
|
2814
|
+
Creates a custom filter for the user Args: filter_input: The input model for creating a filter auth_session: The user auth session for permission Checks Returns: Filter: A customer saved filter Raises: BusinessLogicError: when auth session does not have user set
|
|
2815
|
+
|
|
2816
|
+
:param FilterInput body: (required)
|
|
2817
|
+
:param bool async_: Perform the request asynchronously
|
|
2818
|
+
:return: CoreModelsCustomFiltersFilter
|
|
2819
|
+
"""
|
|
2820
|
+
return self.custom_filters_api.create_custom_filter(body, **kwargs)
|
|
2821
|
+
|
|
2822
|
+
|
|
2823
|
+
def delete_custom_filter(self, custom_filter_id, **kwargs): # noqa: E501
|
|
2824
|
+
"""Delete a custom filter for user
|
|
2825
|
+
|
|
2826
|
+
Deletes a custom filter for the authenticated user Args: custom_filter_id: The ID of the filter to delete auth_session: The user auth session for permission checks Returns: DeletedResult: Result indicating the number of deleted filters Raises: BusinessLogicError: when auth session does not have user privilege ResourceNotFound: when the filter doesn't exist PermissionError: when the filter doesn't belong to the user's origin
|
|
2827
|
+
|
|
2828
|
+
:param str custom_filter_id: (required)
|
|
2829
|
+
:param bool async_: Perform the request asynchronously
|
|
2830
|
+
:return: DeletedResult
|
|
2831
|
+
"""
|
|
2832
|
+
return self.custom_filters_api.delete_custom_filter(custom_filter_id, **kwargs)
|
|
2833
|
+
|
|
2834
|
+
|
|
2835
|
+
def get_all_custom_filters(self, **kwargs): # noqa: E501
|
|
2836
|
+
"""Get all custom filters for user
|
|
2837
|
+
|
|
2838
|
+
Retrieves all custom filters for the authenticated user's origin Args: pagination: Pagination parameters for the query auth_session: The user auth session for permission checks Returns: Page[Filter]: A paginated list of custom filters matching the user's origin Raises: BusinessLogicError: when auth session does not have user privilege
|
|
2839
|
+
|
|
2840
|
+
:param str filter: The filter to apply. (e.g. label=my-label,created>2018-09-22)
|
|
2841
|
+
:param str sort: The sort fields and order. (e.g. label:asc,created:desc)
|
|
2842
|
+
:param int limit: The maximum number of entries to return.
|
|
2843
|
+
:param int skip: The number of entries to skip.
|
|
2844
|
+
:param int page: The page number (i.e. skip limit*page entries)
|
|
2845
|
+
:param str after_id: Paginate after the given id. (Cannot be used with sort, page or skip)
|
|
2846
|
+
:param bool async_: Perform the request asynchronously
|
|
2847
|
+
:return: PageGenericFilter
|
|
2848
|
+
"""
|
|
2849
|
+
return self.custom_filters_api.get_all_custom_filters(**kwargs)
|
|
2850
|
+
|
|
2851
|
+
|
|
2852
|
+
def update_custom_filter(self, custom_filter_id, body, **kwargs): # noqa: E501
|
|
2853
|
+
"""Update a custom filter for user
|
|
2854
|
+
|
|
2855
|
+
Updates an existing custom filter Args: custom_filter_id: The ID of the filter to update filter_input: The input model for updating a filter auth_session: The user auth session for permission checks Returns: Filter: The updated custom filter Raises: BusinessLogicError: when auth session does not have user privilege or origin mismatch
|
|
2856
|
+
|
|
2857
|
+
:param str custom_filter_id: (required)
|
|
2858
|
+
:param FilterInput body: (required)
|
|
2859
|
+
:param bool async_: Perform the request asynchronously
|
|
2860
|
+
:return: CoreModelsCustomFiltersFilter
|
|
2861
|
+
"""
|
|
2862
|
+
return self.custom_filters_api.update_custom_filter(custom_filter_id, body, **kwargs)
|
|
2863
|
+
|
|
2864
|
+
|
|
2809
2865
|
def delete_view_execution(self, data_view_execution_id, **kwargs): # noqa: E501
|
|
2810
2866
|
"""Delete a data_view_execution
|
|
2811
2867
|
|
|
@@ -3312,7 +3368,7 @@ class Flywheel:
|
|
|
3312
3368
|
|
|
3313
3369
|
Delete multiple files by query
|
|
3314
3370
|
|
|
3315
|
-
:param list[
|
|
3371
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
3316
3372
|
:param ContainerDeleteReason delete_reason:
|
|
3317
3373
|
:param bool async_: Perform the request asynchronously
|
|
3318
3374
|
:return: DeletedResult
|
|
@@ -3870,7 +3926,7 @@ class Flywheel:
|
|
|
3870
3926
|
|
|
3871
3927
|
Delete multiple groups by query
|
|
3872
3928
|
|
|
3873
|
-
:param list[
|
|
3929
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
3874
3930
|
:param ContainerDeleteReason delete_reason:
|
|
3875
3931
|
:param bool async_: Perform the request asynchronously
|
|
3876
3932
|
:return: DeletedResult
|
|
@@ -4648,7 +4704,7 @@ class Flywheel:
|
|
|
4648
4704
|
|
|
4649
4705
|
Delete multiple projects by query
|
|
4650
4706
|
|
|
4651
|
-
:param list[
|
|
4707
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
4652
4708
|
:param ContainerDeleteReason delete_reason:
|
|
4653
4709
|
:param bool async_: Perform the request asynchronously
|
|
4654
4710
|
:return: DeletedResult
|
|
@@ -5835,7 +5891,7 @@ class Flywheel:
|
|
|
5835
5891
|
|
|
5836
5892
|
Delete multiple sessions by query
|
|
5837
5893
|
|
|
5838
|
-
:param list[
|
|
5894
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
5839
5895
|
:param ContainerDeleteReason delete_reason:
|
|
5840
5896
|
:param bool async_: Perform the request asynchronously
|
|
5841
5897
|
:return: DeletedResult
|
|
@@ -6744,7 +6800,7 @@ class Flywheel:
|
|
|
6744
6800
|
|
|
6745
6801
|
Delete multiple subjects by query
|
|
6746
6802
|
|
|
6747
|
-
:param list[
|
|
6803
|
+
:param list[CoreModelsPaginationsFilter] body: Query for containers to delete (required)
|
|
6748
6804
|
:param ContainerDeleteReason delete_reason:
|
|
6749
6805
|
:param bool async_: Perform the request asynchronously
|
|
6750
6806
|
:return: DeletedResult
|
flywheel/models/__init__.py
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Flywheel: API for data import, automated curation, image processing, machine learning workflows, and secure collaboration. # noqa: E501
|
|
8
8
|
|
|
9
|
-
OpenAPI spec version: 20.
|
|
9
|
+
OpenAPI spec version: 20.6.0-rc2
|
|
10
10
|
|
|
11
11
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
12
12
|
"""
|
|
@@ -150,7 +150,9 @@ from flywheel.models.copy_filter import CopyFilter
|
|
|
150
150
|
from flywheel.models.copy_status import CopyStatus
|
|
151
151
|
from flywheel.models.core_models_api_key_api_key_input import CoreModelsApiKeyApiKeyInput
|
|
152
152
|
from flywheel.models.core_models_common_source import CoreModelsCommonSource
|
|
153
|
+
from flywheel.models.core_models_custom_filters_filter import CoreModelsCustomFiltersFilter
|
|
153
154
|
from flywheel.models.core_models_jobs_api_key_input import CoreModelsJobsApiKeyInput
|
|
155
|
+
from flywheel.models.core_models_paginations_filter import CoreModelsPaginationsFilter
|
|
154
156
|
from flywheel.models.create_report_input import CreateReportInput
|
|
155
157
|
from flywheel.models.creds import Creds
|
|
156
158
|
from flywheel.models.curator import Curator
|
|
@@ -240,8 +242,9 @@ from flywheel.models.file_version_output import FileVersionOutput
|
|
|
240
242
|
from flywheel.models.file_via import FileVia
|
|
241
243
|
from flywheel.models.file_zip_entry import FileZipEntry
|
|
242
244
|
from flywheel.models.file_zip_info import FileZipInfo
|
|
243
|
-
from flywheel.models.
|
|
245
|
+
from flywheel.models.filter_input import FilterInput
|
|
244
246
|
from flywheel.models.filter_values import FilterValues
|
|
247
|
+
from flywheel.models.filter_view import FilterView
|
|
245
248
|
from flywheel.models.fixed_file_version_input import FixedFileVersionInput
|
|
246
249
|
from flywheel.models.fixed_input import FixedInput
|
|
247
250
|
from flywheel.models.form_definition import FormDefinition
|
|
@@ -430,6 +433,7 @@ from flywheel.models.packfile_cleanup_output import PackfileCleanupOutput
|
|
|
430
433
|
from flywheel.models.packfile_removed_output import PackfileRemovedOutput
|
|
431
434
|
from flywheel.models.page import Page
|
|
432
435
|
from flywheel.models.page_generic_file_output import PageGenericFileOutput
|
|
436
|
+
from flywheel.models.page_generic_filter import PageGenericFilter
|
|
433
437
|
from flywheel.models.parent_type import ParentType
|
|
434
438
|
from flywheel.models.parsed_query_response import ParsedQueryResponse
|
|
435
439
|
from flywheel.models.permission_access_permission import PermissionAccessPermission
|
|
@@ -0,0 +1,348 @@
|
|
|
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
|
+
from flywheel.models.origin import Origin # noqa: F401,E501
|
|
23
|
+
|
|
24
|
+
class CoreModelsCustomFiltersFilter(object):
|
|
25
|
+
|
|
26
|
+
swagger_types = {
|
|
27
|
+
'filter': 'union[str,object]',
|
|
28
|
+
'view': 'FilterView',
|
|
29
|
+
'origin': 'Origin',
|
|
30
|
+
'created': 'datetime',
|
|
31
|
+
'modified': 'datetime',
|
|
32
|
+
'deleted': 'datetime',
|
|
33
|
+
'id': 'str',
|
|
34
|
+
'label': 'str'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'filter': 'filter',
|
|
39
|
+
'view': 'view',
|
|
40
|
+
'origin': 'origin',
|
|
41
|
+
'created': 'created',
|
|
42
|
+
'modified': 'modified',
|
|
43
|
+
'deleted': 'deleted',
|
|
44
|
+
'id': '_id',
|
|
45
|
+
'label': 'label'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
rattribute_map = {
|
|
49
|
+
'filter': 'filter',
|
|
50
|
+
'view': 'view',
|
|
51
|
+
'origin': 'origin',
|
|
52
|
+
'created': 'created',
|
|
53
|
+
'modified': 'modified',
|
|
54
|
+
'deleted': 'deleted',
|
|
55
|
+
'_id': 'id',
|
|
56
|
+
'label': 'label'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, filter=None, view=None, origin=None, created=None, modified=None, deleted=None, id=None, label=None): # noqa: E501
|
|
60
|
+
"""CoreModelsCustomFiltersFilter - a model defined in Swagger"""
|
|
61
|
+
super(CoreModelsCustomFiltersFilter, self).__init__()
|
|
62
|
+
|
|
63
|
+
self._filter = None
|
|
64
|
+
self._view = None
|
|
65
|
+
self._origin = None
|
|
66
|
+
self._created = None
|
|
67
|
+
self._modified = None
|
|
68
|
+
self._deleted = None
|
|
69
|
+
self._id = None
|
|
70
|
+
self._label = None
|
|
71
|
+
self.discriminator = None
|
|
72
|
+
self.alt_discriminator = None
|
|
73
|
+
|
|
74
|
+
self.filter = filter
|
|
75
|
+
self.view = view
|
|
76
|
+
self.origin = origin
|
|
77
|
+
self.created = created
|
|
78
|
+
self.modified = modified
|
|
79
|
+
if deleted is not None:
|
|
80
|
+
self.deleted = deleted
|
|
81
|
+
self.id = id
|
|
82
|
+
self.label = label
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def filter(self):
|
|
86
|
+
"""Gets the filter of this CoreModelsCustomFiltersFilter.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The filter of this CoreModelsCustomFiltersFilter.
|
|
90
|
+
:rtype: union[str,object]
|
|
91
|
+
"""
|
|
92
|
+
return self._filter
|
|
93
|
+
|
|
94
|
+
@filter.setter
|
|
95
|
+
def filter(self, filter):
|
|
96
|
+
"""Sets the filter of this CoreModelsCustomFiltersFilter.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param filter: The filter of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
100
|
+
:type: union[str,object]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
self._filter = filter
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def view(self):
|
|
107
|
+
"""Gets the view of this CoreModelsCustomFiltersFilter.
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
:return: The view of this CoreModelsCustomFiltersFilter.
|
|
111
|
+
:rtype: FilterView
|
|
112
|
+
"""
|
|
113
|
+
return self._view
|
|
114
|
+
|
|
115
|
+
@view.setter
|
|
116
|
+
def view(self, view):
|
|
117
|
+
"""Sets the view of this CoreModelsCustomFiltersFilter.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:param view: The view of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
121
|
+
:type: FilterView
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
self._view = view
|
|
125
|
+
|
|
126
|
+
@property
|
|
127
|
+
def origin(self):
|
|
128
|
+
"""Gets the origin of this CoreModelsCustomFiltersFilter.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:return: The origin of this CoreModelsCustomFiltersFilter.
|
|
132
|
+
:rtype: Origin
|
|
133
|
+
"""
|
|
134
|
+
return self._origin
|
|
135
|
+
|
|
136
|
+
@origin.setter
|
|
137
|
+
def origin(self, origin):
|
|
138
|
+
"""Sets the origin of this CoreModelsCustomFiltersFilter.
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
:param origin: The origin of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
142
|
+
:type: Origin
|
|
143
|
+
"""
|
|
144
|
+
|
|
145
|
+
self._origin = origin
|
|
146
|
+
|
|
147
|
+
@property
|
|
148
|
+
def created(self):
|
|
149
|
+
"""Gets the created of this CoreModelsCustomFiltersFilter.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:return: The created of this CoreModelsCustomFiltersFilter.
|
|
153
|
+
:rtype: datetime
|
|
154
|
+
"""
|
|
155
|
+
return self._created
|
|
156
|
+
|
|
157
|
+
@created.setter
|
|
158
|
+
def created(self, created):
|
|
159
|
+
"""Sets the created of this CoreModelsCustomFiltersFilter.
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
:param created: The created of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
163
|
+
:type: datetime
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
self._created = created
|
|
167
|
+
|
|
168
|
+
@property
|
|
169
|
+
def modified(self):
|
|
170
|
+
"""Gets the modified of this CoreModelsCustomFiltersFilter.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
:return: The modified of this CoreModelsCustomFiltersFilter.
|
|
174
|
+
:rtype: datetime
|
|
175
|
+
"""
|
|
176
|
+
return self._modified
|
|
177
|
+
|
|
178
|
+
@modified.setter
|
|
179
|
+
def modified(self, modified):
|
|
180
|
+
"""Sets the modified of this CoreModelsCustomFiltersFilter.
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
:param modified: The modified of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
184
|
+
:type: datetime
|
|
185
|
+
"""
|
|
186
|
+
|
|
187
|
+
self._modified = modified
|
|
188
|
+
|
|
189
|
+
@property
|
|
190
|
+
def deleted(self):
|
|
191
|
+
"""Gets the deleted of this CoreModelsCustomFiltersFilter.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:return: The deleted of this CoreModelsCustomFiltersFilter.
|
|
195
|
+
:rtype: datetime
|
|
196
|
+
"""
|
|
197
|
+
return self._deleted
|
|
198
|
+
|
|
199
|
+
@deleted.setter
|
|
200
|
+
def deleted(self, deleted):
|
|
201
|
+
"""Sets the deleted of this CoreModelsCustomFiltersFilter.
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
:param deleted: The deleted of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
205
|
+
:type: datetime
|
|
206
|
+
"""
|
|
207
|
+
|
|
208
|
+
self._deleted = deleted
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
def id(self):
|
|
212
|
+
"""Gets the id of this CoreModelsCustomFiltersFilter.
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
:return: The id of this CoreModelsCustomFiltersFilter.
|
|
216
|
+
:rtype: str
|
|
217
|
+
"""
|
|
218
|
+
return self._id
|
|
219
|
+
|
|
220
|
+
@id.setter
|
|
221
|
+
def id(self, id):
|
|
222
|
+
"""Sets the id of this CoreModelsCustomFiltersFilter.
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
:param id: The id of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
226
|
+
:type: str
|
|
227
|
+
"""
|
|
228
|
+
|
|
229
|
+
self._id = id
|
|
230
|
+
|
|
231
|
+
@property
|
|
232
|
+
def label(self):
|
|
233
|
+
"""Gets the label of this CoreModelsCustomFiltersFilter.
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
:return: The label of this CoreModelsCustomFiltersFilter.
|
|
237
|
+
:rtype: str
|
|
238
|
+
"""
|
|
239
|
+
return self._label
|
|
240
|
+
|
|
241
|
+
@label.setter
|
|
242
|
+
def label(self, label):
|
|
243
|
+
"""Sets the label of this CoreModelsCustomFiltersFilter.
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
:param label: The label of this CoreModelsCustomFiltersFilter. # noqa: E501
|
|
247
|
+
:type: str
|
|
248
|
+
"""
|
|
249
|
+
|
|
250
|
+
self._label = label
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
@staticmethod
|
|
254
|
+
def positional_to_model(value):
|
|
255
|
+
"""Converts a positional argument to a model value"""
|
|
256
|
+
return value
|
|
257
|
+
|
|
258
|
+
def return_value(self):
|
|
259
|
+
"""Unwraps return value from model"""
|
|
260
|
+
return self
|
|
261
|
+
|
|
262
|
+
def to_dict(self):
|
|
263
|
+
"""Returns the model properties as a dict"""
|
|
264
|
+
result = {}
|
|
265
|
+
|
|
266
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
267
|
+
value = getattr(self, attr)
|
|
268
|
+
if isinstance(value, list):
|
|
269
|
+
result[attr] = list(map(
|
|
270
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
271
|
+
value
|
|
272
|
+
))
|
|
273
|
+
elif hasattr(value, "to_dict"):
|
|
274
|
+
result[attr] = value.to_dict()
|
|
275
|
+
elif isinstance(value, dict):
|
|
276
|
+
result[attr] = dict(map(
|
|
277
|
+
lambda item: (item[0], item[1].to_dict())
|
|
278
|
+
if hasattr(item[1], "to_dict") else item,
|
|
279
|
+
value.items()
|
|
280
|
+
))
|
|
281
|
+
else:
|
|
282
|
+
result[attr] = value
|
|
283
|
+
|
|
284
|
+
return result
|
|
285
|
+
|
|
286
|
+
def to_str(self):
|
|
287
|
+
"""Returns the string representation of the model"""
|
|
288
|
+
return pprint.pformat(self.to_dict())
|
|
289
|
+
|
|
290
|
+
def __repr__(self):
|
|
291
|
+
"""For `print` and `pprint`"""
|
|
292
|
+
return self.to_str()
|
|
293
|
+
|
|
294
|
+
def __eq__(self, other):
|
|
295
|
+
"""Returns true if both objects are equal"""
|
|
296
|
+
if not isinstance(other, CoreModelsCustomFiltersFilter):
|
|
297
|
+
return False
|
|
298
|
+
|
|
299
|
+
return self.__dict__ == other.__dict__
|
|
300
|
+
|
|
301
|
+
def __ne__(self, other):
|
|
302
|
+
"""Returns true if both objects are not equal"""
|
|
303
|
+
return not self == other
|
|
304
|
+
|
|
305
|
+
# Container emulation
|
|
306
|
+
def __getitem__(self, key):
|
|
307
|
+
"""Returns the value of key"""
|
|
308
|
+
key = self._map_key(key)
|
|
309
|
+
return getattr(self, key)
|
|
310
|
+
|
|
311
|
+
def __setitem__(self, key, value):
|
|
312
|
+
"""Sets the value of key"""
|
|
313
|
+
key = self._map_key(key)
|
|
314
|
+
setattr(self, key, value)
|
|
315
|
+
|
|
316
|
+
def __contains__(self, key):
|
|
317
|
+
"""Checks if the given value is a key in this object"""
|
|
318
|
+
key = self._map_key(key, raise_on_error=False)
|
|
319
|
+
return key is not None
|
|
320
|
+
|
|
321
|
+
def keys(self):
|
|
322
|
+
"""Returns the list of json properties in the object"""
|
|
323
|
+
return self.__class__.rattribute_map.keys()
|
|
324
|
+
|
|
325
|
+
def values(self):
|
|
326
|
+
"""Returns the list of values in the object"""
|
|
327
|
+
for key in self.__class__.attribute_map.keys():
|
|
328
|
+
yield getattr(self, key)
|
|
329
|
+
|
|
330
|
+
def items(self):
|
|
331
|
+
"""Returns the list of json property to value mapping"""
|
|
332
|
+
for key, prop in self.__class__.rattribute_map.items():
|
|
333
|
+
yield key, getattr(self, prop)
|
|
334
|
+
|
|
335
|
+
def get(self, key, default=None):
|
|
336
|
+
"""Get the value of the provided json property, or default"""
|
|
337
|
+
key = self._map_key(key, raise_on_error=False)
|
|
338
|
+
if key:
|
|
339
|
+
return getattr(self, key, default)
|
|
340
|
+
return default
|
|
341
|
+
|
|
342
|
+
def _map_key(self, key, raise_on_error=True):
|
|
343
|
+
result = self.__class__.rattribute_map.get(key)
|
|
344
|
+
if result is None:
|
|
345
|
+
if raise_on_error:
|
|
346
|
+
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
347
|
+
return None
|
|
348
|
+
return '_' + result
|