flywheel-sdk 18.5.0rc0__py2.py3-none-any.whl → 19.0.0rc0__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.
Files changed (49) hide show
  1. flywheel/__init__.py +2 -2
  2. flywheel/api/files_api.py +3 -3
  3. flywheel/api/projects_api.py +5 -1
  4. flywheel/api_client.py +1 -1
  5. flywheel/configuration.py +2 -2
  6. flywheel/flywheel.py +39 -8
  7. flywheel/models/__init__.py +3 -3
  8. flywheel/models/acquisition_list_output.py +3 -2
  9. flywheel/models/acquisition_upsert_input.py +4 -4
  10. flywheel/models/analysis_list_output.py +2 -4
  11. flywheel/models/analysis_list_output_inflated_job.py +2 -4
  12. flywheel/models/analysis_output.py +2 -4
  13. flywheel/models/analysis_output_inflated_job.py +2 -4
  14. flywheel/models/classic_batch_proposal_input.py +1 -2
  15. flywheel/models/classic_batch_proposal_output.py +2 -4
  16. flywheel/models/column.py +3 -4
  17. flywheel/models/container_pipeline_input.py +1 -2
  18. flywheel/models/{core_models_source_source.py → core_models_common_source.py} +12 -12
  19. flywheel/models/data_view_column_alias.py +2 -2
  20. flywheel/models/data_view_execution.py +2 -2
  21. flywheel/models/features.py +4 -31
  22. flywheel/models/field_change.py +1 -2
  23. flywheel/models/file.py +4 -4
  24. flywheel/models/file_upsert_input.py +4 -4
  25. flywheel/models/gear_context_value_output.py +1 -2
  26. flywheel/models/header_feature.py +1 -0
  27. flywheel/models/jupyterlab_server_response.py +2 -4
  28. flywheel/models/{page_file_output_.py → page_generic_file_output.py} +16 -16
  29. flywheel/models/project_hierarchy_input.py +4 -4
  30. flywheel/models/project_list_output.py +2 -4
  31. flywheel/models/project_output.py +2 -4
  32. flywheel/models/search_parent_acquisition.py +1 -0
  33. flywheel/models/search_parent_analysis.py +1 -0
  34. flywheel/models/search_parent_collection.py +1 -0
  35. flywheel/models/search_parent_project.py +1 -0
  36. flywheel/models/search_parent_response.py +4 -3
  37. flywheel/models/search_parent_session.py +1 -0
  38. flywheel/models/session_list_output.py +2 -4
  39. flywheel/models/session_output.py +2 -4
  40. flywheel/models/session_upsert_input.py +4 -4
  41. flywheel/models/structured_query_value_suggestion.py +58 -4
  42. flywheel/models/subject_output_for_list.py +2 -4
  43. flywheel/models/subject_upsert_input.py +4 -4
  44. flywheel/models/version.py +30 -1
  45. {flywheel_sdk-18.5.0rc0.dist-info → flywheel_sdk-19.0.0rc0.dist-info}/METADATA +6 -6
  46. {flywheel_sdk-18.5.0rc0.dist-info → flywheel_sdk-19.0.0rc0.dist-info}/RECORD +49 -49
  47. {flywheel_sdk-18.5.0rc0.dist-info → flywheel_sdk-19.0.0rc0.dist-info}/WHEEL +1 -1
  48. {flywheel_sdk-18.5.0rc0.dist-info → flywheel_sdk-19.0.0rc0.dist-info}/LICENSE.txt +0 -0
  49. {flywheel_sdk-18.5.0rc0.dist-info → flywheel_sdk-19.0.0rc0.dist-info}/top_level.txt +0 -0
@@ -79,8 +79,7 @@ class Features(object):
79
79
  'userpilot': 'bool',
80
80
  'validate_classification': 'bool',
81
81
  'virus_scan': 'bool',
82
- 'web_uploader_v2': 'bool',
83
- 'unified_upload_disable_uid_conflict': 'bool'
82
+ 'web_uploader_v2': 'bool'
84
83
  }
85
84
 
86
85
  attribute_map = {
@@ -142,8 +141,7 @@ class Features(object):
142
141
  'userpilot': 'userpilot',
143
142
  'validate_classification': 'validate_classification',
144
143
  'virus_scan': 'virus_scan',
145
- 'web_uploader_v2': 'web_uploader_v2',
146
- 'unified_upload_disable_uid_conflict': 'unified_upload_disable_uid_conflict'
144
+ 'web_uploader_v2': 'web_uploader_v2'
147
145
  }
148
146
 
149
147
  rattribute_map = {
@@ -205,11 +203,10 @@ class Features(object):
205
203
  'userpilot': 'userpilot',
206
204
  'validate_classification': 'validate_classification',
207
205
  'virus_scan': 'virus_scan',
208
- 'web_uploader_v2': 'web_uploader_v2',
209
- 'unified_upload_disable_uid_conflict': 'unified_upload_disable_uid_conflict'
206
+ 'web_uploader_v2': 'web_uploader_v2'
210
207
  }
211
208
 
212
- 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, data_views_non_21_cfr=True, default_viewer_apps=True, deid_log=False, deid_profile=False, dicom_web_uploader_non_21_cfr=True, dimse=False, elastic_search_primary=False, exchange=False, exchange_admin=False, external_routing=False, gear_access=False, google_analytics=True, healthcare_api=False, job_ask=True, job_prioritization=True, job_tickets=True, jupyter_integration=False, ldap_sync=False, multifactor_auth=False, multipart_signed_url=True, multiproject=False, ohif_multi_subject_view=False, ohif_react=False, ohif_react_beta=False, ohif_slice_order=None, ohif_v3=False, ohif_v3_beta=False, ohif_v3_datasource=None, ohif_v3_default_app=False, ohif_v3_readonly=True, project_export=True, project_import=False, 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, unsafe_login=False, url_access_apps=False, userpilot=None, validate_classification=False, virus_scan=False, web_uploader_v2=False, unified_upload_disable_uid_conflict=False): # noqa: E501
209
+ 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, data_views_non_21_cfr=True, default_viewer_apps=True, deid_log=False, deid_profile=False, dicom_web_uploader_non_21_cfr=True, dimse=False, elastic_search_primary=False, exchange=False, exchange_admin=False, external_routing=False, gear_access=False, google_analytics=True, healthcare_api=False, job_ask=True, job_prioritization=True, job_tickets=True, jupyter_integration=False, ldap_sync=False, multifactor_auth=False, multipart_signed_url=True, multiproject=False, ohif_multi_subject_view=False, ohif_react=False, ohif_react_beta=False, ohif_slice_order=None, ohif_v3=False, ohif_v3_beta=False, ohif_v3_datasource=None, ohif_v3_default_app=False, ohif_v3_readonly=True, 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, unsafe_login=False, url_access_apps=False, userpilot=None, validate_classification=False, virus_scan=False, web_uploader_v2=True): # noqa: E501
213
210
  """Features - a model defined in Swagger"""
214
211
  super(Features, self).__init__()
215
212
 
@@ -272,7 +269,6 @@ class Features(object):
272
269
  self._validate_classification = None
273
270
  self._virus_scan = None
274
271
  self._web_uploader_v2 = None
275
- self._unified_upload_disable_uid_conflict = None
276
272
  self.discriminator = None
277
273
  self.alt_discriminator = None
278
274
 
@@ -394,8 +390,6 @@ class Features(object):
394
390
  self.virus_scan = virus_scan
395
391
  if web_uploader_v2 is not None:
396
392
  self.web_uploader_v2 = web_uploader_v2
397
- if unified_upload_disable_uid_conflict is not None:
398
- self.unified_upload_disable_uid_conflict = unified_upload_disable_uid_conflict
399
393
 
400
394
  @property
401
395
  def api_enabled_gear_rules(self):
@@ -1636,27 +1630,6 @@ class Features(object):
1636
1630
 
1637
1631
  self._web_uploader_v2 = web_uploader_v2
1638
1632
 
1639
- @property
1640
- def unified_upload_disable_uid_conflict(self):
1641
- """Gets the unified_upload_disable_uid_conflict of this Features.
1642
-
1643
-
1644
- :return: The unified_upload_disable_uid_conflict of this Features.
1645
- :rtype: bool
1646
- """
1647
- return self._unified_upload_disable_uid_conflict
1648
-
1649
- @unified_upload_disable_uid_conflict.setter
1650
- def unified_upload_disable_uid_conflict(self, unified_upload_disable_uid_conflict):
1651
- """Sets the unified_upload_disable_uid_conflict of this Features.
1652
-
1653
-
1654
- :param unified_upload_disable_uid_conflict: The unified_upload_disable_uid_conflict of this Features. # noqa: E501
1655
- :type: bool
1656
- """
1657
-
1658
- self._unified_upload_disable_uid_conflict = unified_upload_disable_uid_conflict
1659
-
1660
1633
 
1661
1634
  @staticmethod
1662
1635
  def positional_to_model(value):
@@ -60,8 +60,7 @@ class FieldChange(object):
60
60
  self.alt_discriminator = None
61
61
 
62
62
  self.method = method
63
- if value is not None:
64
- self.value = value
63
+ self.value = value
65
64
  self.created = created
66
65
  self.revision = revision
67
66
  self.origin = origin
flywheel/models/file.py CHANGED
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import six
20
20
 
21
21
  from flywheel.models.container_reference import ContainerReference # noqa: F401,E501
22
- from flywheel.models.core_models_source_source import CoreModelsSourceSource # noqa: F401,E501
22
+ from flywheel.models.core_models_common_source import CoreModelsCommonSource # noqa: F401,E501
23
23
  from flywheel.models.deid_log_skip_reason import DeidLogSkipReason # noqa: F401,E501
24
24
  from flywheel.models.file_gear_info import FileGearInfo # noqa: F401,E501
25
25
  from flywheel.models.file_parents import FileParents # noqa: F401,E501
@@ -51,7 +51,7 @@ class File(FileMixin):
51
51
  'parents': 'FileParents',
52
52
  'revision': 'int',
53
53
  'origin': 'Origin',
54
- 'source': 'CoreModelsSourceSource',
54
+ 'source': 'CoreModelsCommonSource',
55
55
  'type': 'str',
56
56
  'mimetype': 'str',
57
57
  'modality': 'str',
@@ -658,7 +658,7 @@ class File(FileMixin):
658
658
 
659
659
 
660
660
  :return: The source of this File.
661
- :rtype: CoreModelsSourceSource
661
+ :rtype: CoreModelsCommonSource
662
662
  """
663
663
  return self._source
664
664
 
@@ -668,7 +668,7 @@ class File(FileMixin):
668
668
 
669
669
 
670
670
  :param source: The source of this File. # noqa: E501
671
- :type: CoreModelsSourceSource
671
+ :type: CoreModelsCommonSource
672
672
  """
673
673
 
674
674
  self._source = source
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import six
20
20
 
21
21
  from flywheel.models.container_reference import ContainerReference # noqa: F401,E501
22
- from flywheel.models.core_models_source_source import CoreModelsSourceSource # noqa: F401,E501
22
+ from flywheel.models.core_models_common_source import CoreModelsCommonSource # noqa: F401,E501
23
23
  from flywheel.models.origin import Origin # noqa: F401,E501
24
24
 
25
25
  class FileUpsertInput(object):
@@ -41,7 +41,7 @@ class FileUpsertInput(object):
41
41
  'tags': 'list[str]',
42
42
  'parent_ref': 'ContainerReference',
43
43
  'origin': 'Origin',
44
- 'source': 'CoreModelsSourceSource'
44
+ 'source': 'CoreModelsCommonSource'
45
45
  }
46
46
 
47
47
  attribute_map = {
@@ -496,7 +496,7 @@ class FileUpsertInput(object):
496
496
 
497
497
 
498
498
  :return: The source of this FileUpsertInput.
499
- :rtype: CoreModelsSourceSource
499
+ :rtype: CoreModelsCommonSource
500
500
  """
501
501
  return self._source
502
502
 
@@ -506,7 +506,7 @@ class FileUpsertInput(object):
506
506
 
507
507
 
508
508
  :param source: The source of this FileUpsertInput. # noqa: E501
509
- :type: CoreModelsSourceSource
509
+ :type: CoreModelsCommonSource
510
510
  """
511
511
 
512
512
  self._source = source
@@ -62,8 +62,7 @@ class GearContextValueOutput(object):
62
62
  if label is not None:
63
63
  self.label = label
64
64
  self.id = id
65
- if value is not None:
66
- self.value = value
65
+ self.value = value
67
66
  if found is not None:
68
67
  self.found = found
69
68
 
@@ -22,6 +22,7 @@ import enum
22
22
 
23
23
  class HeaderFeature(str, enum.Enum):
24
24
  SYNC_AZURE_ML_CLIENT = "sync_azure_ml_client"
25
+ SYNC_JUPYTERHUB_CLIENT = "sync_jupyterhub_client"
25
26
  PAGINATION = "pagination"
26
27
  SLIM_CONTAINERS = "slim-containers"
27
28
  SAFE_REDIRECT = "safe-redirect"
@@ -84,10 +84,8 @@ class JupyterlabServerResponse(object):
84
84
  if project_id is not None:
85
85
  self.project_id = project_id
86
86
  self.label = label
87
- if created is not None:
88
- self.created = created
89
- if modified is not None:
90
- self.modified = modified
87
+ self.created = created
88
+ self.modified = modified
91
89
  if last_modified_by is not None:
92
90
  self.last_modified_by = last_modified_by
93
91
  self.origin = origin
@@ -20,7 +20,7 @@ import six
20
20
 
21
21
  from flywheel.models.file_output import FileOutput # noqa: F401,E501
22
22
 
23
- class PageFileOutput_(object):
23
+ class PageGenericFileOutput(object):
24
24
 
25
25
  swagger_types = {
26
26
  'count': 'int',
@@ -41,8 +41,8 @@ class PageFileOutput_(object):
41
41
  }
42
42
 
43
43
  def __init__(self, count=None, total=None, results=None): # noqa: E501
44
- """PageFileOutput_ - a model defined in Swagger"""
45
- super(PageFileOutput_, self).__init__()
44
+ """PageGenericFileOutput - a model defined in Swagger"""
45
+ super(PageGenericFileOutput, self).__init__()
46
46
 
47
47
  self._count = None
48
48
  self._total = None
@@ -57,20 +57,20 @@ class PageFileOutput_(object):
57
57
 
58
58
  @property
59
59
  def count(self):
60
- """Gets the count of this PageFileOutput_.
60
+ """Gets the count of this PageGenericFileOutput.
61
61
 
62
62
 
63
- :return: The count of this PageFileOutput_.
63
+ :return: The count of this PageGenericFileOutput.
64
64
  :rtype: int
65
65
  """
66
66
  return self._count
67
67
 
68
68
  @count.setter
69
69
  def count(self, count):
70
- """Sets the count of this PageFileOutput_.
70
+ """Sets the count of this PageGenericFileOutput.
71
71
 
72
72
 
73
- :param count: The count of this PageFileOutput_. # noqa: E501
73
+ :param count: The count of this PageGenericFileOutput. # noqa: E501
74
74
  :type: int
75
75
  """
76
76
 
@@ -78,20 +78,20 @@ class PageFileOutput_(object):
78
78
 
79
79
  @property
80
80
  def total(self):
81
- """Gets the total of this PageFileOutput_.
81
+ """Gets the total of this PageGenericFileOutput.
82
82
 
83
83
 
84
- :return: The total of this PageFileOutput_.
84
+ :return: The total of this PageGenericFileOutput.
85
85
  :rtype: int
86
86
  """
87
87
  return self._total
88
88
 
89
89
  @total.setter
90
90
  def total(self, total):
91
- """Sets the total of this PageFileOutput_.
91
+ """Sets the total of this PageGenericFileOutput.
92
92
 
93
93
 
94
- :param total: The total of this PageFileOutput_. # noqa: E501
94
+ :param total: The total of this PageGenericFileOutput. # noqa: E501
95
95
  :type: int
96
96
  """
97
97
 
@@ -99,20 +99,20 @@ class PageFileOutput_(object):
99
99
 
100
100
  @property
101
101
  def results(self):
102
- """Gets the results of this PageFileOutput_.
102
+ """Gets the results of this PageGenericFileOutput.
103
103
 
104
104
 
105
- :return: The results of this PageFileOutput_.
105
+ :return: The results of this PageGenericFileOutput.
106
106
  :rtype: list[FileOutput]
107
107
  """
108
108
  return self._results
109
109
 
110
110
  @results.setter
111
111
  def results(self, results):
112
- """Sets the results of this PageFileOutput_.
112
+ """Sets the results of this PageGenericFileOutput.
113
113
 
114
114
 
115
- :param results: The results of this PageFileOutput_. # noqa: E501
115
+ :param results: The results of this PageGenericFileOutput. # noqa: E501
116
116
  :type: list[FileOutput]
117
117
  """
118
118
 
@@ -162,7 +162,7 @@ class PageFileOutput_(object):
162
162
 
163
163
  def __eq__(self, other):
164
164
  """Returns true if both objects are equal"""
165
- if not isinstance(other, PageFileOutput_):
165
+ if not isinstance(other, PageGenericFileOutput):
166
166
  return False
167
167
 
168
168
  return self.__dict__ == other.__dict__
@@ -19,7 +19,7 @@ import re # noqa: F401
19
19
  import six
20
20
 
21
21
  from flywheel.models.acquisition_upsert_input import AcquisitionUpsertInput # noqa: F401,E501
22
- from flywheel.models.core_models_source_source import CoreModelsSourceSource # noqa: F401,E501
22
+ from flywheel.models.core_models_common_source import CoreModelsCommonSource # noqa: F401,E501
23
23
  from flywheel.models.origin import Origin # noqa: F401,E501
24
24
  from flywheel.models.session_upsert_input import SessionUpsertInput # noqa: F401,E501
25
25
  from flywheel.models.subject_upsert_input import SubjectUpsertInput # noqa: F401,E501
@@ -28,7 +28,7 @@ class ProjectHierarchyInput(object):
28
28
 
29
29
  swagger_types = {
30
30
  'origin': 'Origin',
31
- 'source': 'CoreModelsSourceSource',
31
+ 'source': 'CoreModelsCommonSource',
32
32
  'subject': 'SubjectUpsertInput',
33
33
  'session': 'SessionUpsertInput',
34
34
  'acquisition': 'AcquisitionUpsertInput'
@@ -99,7 +99,7 @@ class ProjectHierarchyInput(object):
99
99
 
100
100
 
101
101
  :return: The source of this ProjectHierarchyInput.
102
- :rtype: CoreModelsSourceSource
102
+ :rtype: CoreModelsCommonSource
103
103
  """
104
104
  return self._source
105
105
 
@@ -109,7 +109,7 @@ class ProjectHierarchyInput(object):
109
109
 
110
110
 
111
111
  :param source: The source of this ProjectHierarchyInput. # noqa: E501
112
- :type: CoreModelsSourceSource
112
+ :type: CoreModelsCommonSource
113
113
  """
114
114
 
115
115
  self._source = source
@@ -193,10 +193,8 @@ class ProjectListOutput(ProjectMixin):
193
193
  self.copy_status = copy_status
194
194
  if copy_failure_reason is not None:
195
195
  self.copy_failure_reason = copy_failure_reason
196
- if copy_of is not None:
197
- self.copy_of = copy_of
198
- if original_copy_of is not None:
199
- self.original_copy_of = original_copy_of
196
+ self.copy_of = copy_of
197
+ self.original_copy_of = original_copy_of
200
198
  if stats is not None:
201
199
  self.stats = stats
202
200
  self.revision = revision
@@ -198,10 +198,8 @@ class ProjectOutput(ProjectMixin):
198
198
  self.copy_status = copy_status
199
199
  if copy_failure_reason is not None:
200
200
  self.copy_failure_reason = copy_failure_reason
201
- if copy_of is not None:
202
- self.copy_of = copy_of
203
- if original_copy_of is not None:
204
- self.original_copy_of = original_copy_of
201
+ self.copy_of = copy_of
202
+ self.original_copy_of = original_copy_of
205
203
  if stats is not None:
206
204
  self.stats = stats
207
205
 
@@ -20,6 +20,7 @@ import six
20
20
 
21
21
  from flywheel.models.acquisition_output import AcquisitionOutput # noqa: F401,E501
22
22
  from flywheel.models.acquisition_parents import AcquisitionParents # noqa: F401,E501
23
+ from flywheel.models.container_type import ContainerType # noqa: F401,E501
23
24
  from flywheel.models.file_output import FileOutput # noqa: F401,E501
24
25
  from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
25
26
  from flywheel.models.note import Note # noqa: F401,E501
@@ -21,6 +21,7 @@ import six
21
21
  from flywheel.models.analysis_output import AnalysisOutput # noqa: F401,E501
22
22
  from flywheel.models.analysis_parents import AnalysisParents # noqa: F401,E501
23
23
  from flywheel.models.container_reference import ContainerReference # noqa: F401,E501
24
+ from flywheel.models.container_type import ContainerType # noqa: F401,E501
24
25
  from flywheel.models.file_output import FileOutput # noqa: F401,E501
25
26
  from flywheel.models.gear_info import GearInfo # noqa: F401,E501
26
27
  from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
@@ -21,6 +21,7 @@ import six
21
21
  from flywheel.models.access_permission import AccessPermission # noqa: F401,E501
22
22
  from flywheel.models.analysis import Analysis # noqa: F401,E501
23
23
  from flywheel.models.collection_output import CollectionOutput # noqa: F401,E501
24
+ from flywheel.models.container_type import ContainerType # noqa: F401,E501
24
25
  from flywheel.models.file_output import FileOutput # noqa: F401,E501
25
26
  from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
26
27
  from flywheel.models.note import Note # noqa: F401,E501
@@ -18,6 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import six
20
20
 
21
+ from flywheel.models.container_type import ContainerType # noqa: F401,E501
21
22
  from flywheel.models.edition import Edition # noqa: F401,E501
22
23
  from flywheel.models.file_output import FileOutput # noqa: F401,E501
23
24
  from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
@@ -18,6 +18,8 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import six
20
20
 
21
+ from flywheel.models.container_type import ContainerType # noqa: F401,E501
22
+
21
23
  class SearchParentResponse(object):
22
24
 
23
25
  swagger_types = {
@@ -55,7 +57,8 @@ class SearchParentResponse(object):
55
57
 
56
58
  if id is not None:
57
59
  self.id = id
58
- self.type = type
60
+ if type is not None:
61
+ self.type = type
59
62
 
60
63
  @property
61
64
  def id(self):
@@ -84,7 +87,6 @@ class SearchParentResponse(object):
84
87
  def type(self):
85
88
  """Gets the type of this SearchParentResponse.
86
89
 
87
- The type of container (e.g. session)
88
90
 
89
91
  :return: The type of this SearchParentResponse.
90
92
  :rtype: ContainerType
@@ -95,7 +97,6 @@ class SearchParentResponse(object):
95
97
  def type(self, type):
96
98
  """Sets the type of this SearchParentResponse.
97
99
 
98
- The type of container (e.g. session)
99
100
 
100
101
  :param type: The type of this SearchParentResponse. # noqa: E501
101
102
  :type: ContainerType
@@ -18,6 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import six
20
20
 
21
+ from flywheel.models.container_type import ContainerType # noqa: F401,E501
21
22
  from flywheel.models.file_output import FileOutput # noqa: F401,E501
22
23
  from flywheel.models.join_origins import JoinOrigins # noqa: F401,E501
23
24
  from flywheel.models.note import Note # noqa: F401,E501
@@ -191,10 +191,8 @@ class SessionListOutput(SessionMixin):
191
191
  self.join_origin = join_origin
192
192
  if analyses is not None:
193
193
  self.analyses = analyses
194
- if copy_of is not None:
195
- self.copy_of = copy_of
196
- if original_copy_of is not None:
197
- self.original_copy_of = original_copy_of
194
+ self.copy_of = copy_of
195
+ self.original_copy_of = original_copy_of
198
196
 
199
197
  @property
200
198
  def id(self):
@@ -189,10 +189,8 @@ class SessionOutput(SessionMixin):
189
189
  self.project_has_template = project_has_template
190
190
  if join_origin is not None:
191
191
  self.join_origin = join_origin
192
- if copy_of is not None:
193
- self.copy_of = copy_of
194
- if original_copy_of is not None:
195
- self.original_copy_of = original_copy_of
192
+ self.copy_of = copy_of
193
+ self.original_copy_of = original_copy_of
196
194
  if info_exists is not None:
197
195
  self.info_exists = info_exists
198
196
 
@@ -18,7 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import six
20
20
 
21
- from flywheel.models.core_models_source_source import CoreModelsSourceSource # noqa: F401,E501
21
+ from flywheel.models.core_models_common_source import CoreModelsCommonSource # noqa: F401,E501
22
22
 
23
23
  class SessionUpsertInput(object):
24
24
 
@@ -27,7 +27,7 @@ class SessionUpsertInput(object):
27
27
  'uid': 'str',
28
28
  'routing_field': 'str',
29
29
  'label': 'str',
30
- 'source': 'CoreModelsSourceSource',
30
+ 'source': 'CoreModelsCommonSource',
31
31
  'timestamp': 'datetime',
32
32
  'timezone': 'str',
33
33
  'age': 'int',
@@ -195,7 +195,7 @@ class SessionUpsertInput(object):
195
195
 
196
196
 
197
197
  :return: The source of this SessionUpsertInput.
198
- :rtype: CoreModelsSourceSource
198
+ :rtype: CoreModelsCommonSource
199
199
  """
200
200
  return self._source
201
201
 
@@ -205,7 +205,7 @@ class SessionUpsertInput(object):
205
205
 
206
206
 
207
207
  :param source: The source of this SessionUpsertInput. # noqa: E501
208
- :type: CoreModelsSourceSource
208
+ :type: CoreModelsCommonSource
209
209
  """
210
210
 
211
211
  self._source = source
@@ -22,30 +22,42 @@ class StructuredQueryValueSuggestion(object):
22
22
 
23
23
  swagger_types = {
24
24
  'display': 'str',
25
- 'value': 'str'
25
+ 'value': 'str',
26
+ 'type': 'str',
27
+ 'facet': 'bool'
26
28
  }
27
29
 
28
30
  attribute_map = {
29
31
  'display': 'display',
30
- 'value': 'value'
32
+ 'value': 'value',
33
+ 'type': 'type',
34
+ 'facet': 'facet'
31
35
  }
32
36
 
33
37
  rattribute_map = {
34
38
  'display': 'display',
35
- 'value': 'value'
39
+ 'value': 'value',
40
+ 'type': 'type',
41
+ 'facet': 'facet'
36
42
  }
37
43
 
38
- def __init__(self, display=None, value=None): # noqa: E501
44
+ def __init__(self, display=None, value=None, type=None, facet=None): # noqa: E501
39
45
  """StructuredQueryValueSuggestion - a model defined in Swagger"""
40
46
  super(StructuredQueryValueSuggestion, self).__init__()
41
47
 
42
48
  self._display = None
43
49
  self._value = None
50
+ self._type = None
51
+ self._facet = None
44
52
  self.discriminator = None
45
53
  self.alt_discriminator = None
46
54
 
47
55
  self.display = display
48
56
  self.value = value
57
+ if type is not None:
58
+ self.type = type
59
+ if facet is not None:
60
+ self.facet = facet
49
61
 
50
62
  @property
51
63
  def display(self):
@@ -93,6 +105,48 @@ class StructuredQueryValueSuggestion(object):
93
105
 
94
106
  self._value = value
95
107
 
108
+ @property
109
+ def type(self):
110
+ """Gets the type of this StructuredQueryValueSuggestion.
111
+
112
+
113
+ :return: The type of this StructuredQueryValueSuggestion.
114
+ :rtype: str
115
+ """
116
+ return self._type
117
+
118
+ @type.setter
119
+ def type(self, type):
120
+ """Sets the type of this StructuredQueryValueSuggestion.
121
+
122
+
123
+ :param type: The type of this StructuredQueryValueSuggestion. # noqa: E501
124
+ :type: str
125
+ """
126
+
127
+ self._type = type
128
+
129
+ @property
130
+ def facet(self):
131
+ """Gets the facet of this StructuredQueryValueSuggestion.
132
+
133
+
134
+ :return: The facet of this StructuredQueryValueSuggestion.
135
+ :rtype: bool
136
+ """
137
+ return self._facet
138
+
139
+ @facet.setter
140
+ def facet(self, facet):
141
+ """Sets the facet of this StructuredQueryValueSuggestion.
142
+
143
+
144
+ :param facet: The facet of this StructuredQueryValueSuggestion. # noqa: E501
145
+ :type: bool
146
+ """
147
+
148
+ self._facet = facet
149
+
96
150
 
97
151
  @staticmethod
98
152
  def positional_to_model(value):
@@ -212,10 +212,8 @@ class SubjectOutputForList(SubjectMixin):
212
212
  self.analyses = analyses
213
213
  if join_origin is not None:
214
214
  self.join_origin = join_origin
215
- if copy_of is not None:
216
- self.copy_of = copy_of
217
- if original_copy_of is not None:
218
- self.original_copy_of = original_copy_of
215
+ self.copy_of = copy_of
216
+ self.original_copy_of = original_copy_of
219
217
  if firstname is not None:
220
218
  self.firstname = firstname
221
219
  if lastname is not None:
@@ -18,7 +18,7 @@ import pprint
18
18
  import re # noqa: F401
19
19
  import six
20
20
 
21
- from flywheel.models.core_models_source_source import CoreModelsSourceSource # noqa: F401,E501
21
+ from flywheel.models.core_models_common_source import CoreModelsCommonSource # noqa: F401,E501
22
22
  from flywheel.models.subject_state import SubjectState # noqa: F401,E501
23
23
 
24
24
  class SubjectUpsertInput(object):
@@ -28,7 +28,7 @@ class SubjectUpsertInput(object):
28
28
  'id': 'str',
29
29
  'routing_field': 'str',
30
30
  'label': 'str',
31
- 'source': 'CoreModelsSourceSource',
31
+ 'source': 'CoreModelsCommonSource',
32
32
  'firstname': 'str',
33
33
  'lastname': 'str',
34
34
  'sex': 'str',
@@ -220,7 +220,7 @@ class SubjectUpsertInput(object):
220
220
 
221
221
 
222
222
  :return: The source of this SubjectUpsertInput.
223
- :rtype: CoreModelsSourceSource
223
+ :rtype: CoreModelsCommonSource
224
224
  """
225
225
  return self._source
226
226
 
@@ -230,7 +230,7 @@ class SubjectUpsertInput(object):
230
230
 
231
231
 
232
232
  :param source: The source of this SubjectUpsertInput. # noqa: E501
233
- :type: CoreModelsSourceSource
233
+ :type: CoreModelsCommonSource
234
234
  """
235
235
 
236
236
  self._source = source