flywheel-sdk 20.0.0__py2.py3-none-any.whl → 20.1.0__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 (34) hide show
  1. flywheel/__init__.py +1 -6
  2. flywheel/api/acquisitions_api.py +2 -2
  3. flywheel/api/analyses_api.py +2 -2
  4. flywheel/api/collections_api.py +2 -2
  5. flywheel/api/dataexplorer_api.py +109 -0
  6. flywheel/api/files_api.py +2 -2
  7. flywheel/api/groups_api.py +2 -2
  8. flywheel/api/projects_api.py +2 -2
  9. flywheel/api/resolve_api.py +10 -2
  10. flywheel/api/sessions_api.py +2 -2
  11. flywheel/api/subjects_api.py +2 -2
  12. flywheel/api_client.py +1 -1
  13. flywheel/configuration.py +2 -2
  14. flywheel/flywheel.py +22 -9
  15. flywheel/models/__init__.py +2 -7
  16. flywheel/models/action.py +4 -3
  17. flywheel/models/container_type.py +0 -1
  18. flywheel/models/current_user_output.py +4 -32
  19. flywheel/models/{azure_ml_workspace_input.py → delete_by_search_query.py} +96 -34
  20. flywheel/models/features.py +31 -4
  21. flywheel/models/modify_user_input.py +4 -32
  22. flywheel/models/project_settings_workspaces.py +4 -31
  23. flywheel/models/project_settings_workspaces_input.py +4 -32
  24. flywheel/models/search_query.py +30 -30
  25. {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/METADATA +1 -1
  26. {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/RECORD +29 -34
  27. {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/WHEEL +1 -1
  28. flywheel/models/azure_ml_account.py +0 -188
  29. flywheel/models/azure_ml_initialization.py +0 -244
  30. flywheel/models/azure_ml_integration.py +0 -218
  31. flywheel/models/azure_ml_resource_init_status.py +0 -31
  32. flywheel/models/azure_ml_workspace.py +0 -347
  33. {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/LICENSE.txt +0 -0
  34. {flywheel_sdk-20.0.0.dist-info → flywheel_sdk-20.1.0.dist-info}/top_level.txt +0 -0
@@ -1,218 +0,0 @@
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.azure_ml_initialization import AzureMLInitialization # noqa: F401,E501
22
-
23
- class AzureMLIntegration(object):
24
-
25
- swagger_types = {
26
- 'enabled': 'bool',
27
- 'workspace': 'union[AzureMLWorkspace,AzureMLWorkspaceInput]',
28
- 'azureml_initialization': 'AzureMLInitialization'
29
- }
30
-
31
- attribute_map = {
32
- 'enabled': 'enabled',
33
- 'workspace': 'workspace',
34
- 'azureml_initialization': 'azureml_initialization'
35
- }
36
-
37
- rattribute_map = {
38
- 'enabled': 'enabled',
39
- 'workspace': 'workspace',
40
- 'azureml_initialization': 'azureml_initialization'
41
- }
42
-
43
- def __init__(self, enabled=None, workspace=None, azureml_initialization=None): # noqa: E501
44
- """AzureMLIntegration - a model defined in Swagger"""
45
- super(AzureMLIntegration, self).__init__()
46
-
47
- self._enabled = None
48
- self._workspace = None
49
- self._azureml_initialization = None
50
- self.discriminator = None
51
- self.alt_discriminator = None
52
-
53
- self.enabled = enabled
54
- if workspace is not None:
55
- self.workspace = workspace
56
- if azureml_initialization is not None:
57
- self.azureml_initialization = azureml_initialization
58
-
59
- @property
60
- def enabled(self):
61
- """Gets the enabled of this AzureMLIntegration.
62
-
63
-
64
- :return: The enabled of this AzureMLIntegration.
65
- :rtype: bool
66
- """
67
- return self._enabled
68
-
69
- @enabled.setter
70
- def enabled(self, enabled):
71
- """Sets the enabled of this AzureMLIntegration.
72
-
73
-
74
- :param enabled: The enabled of this AzureMLIntegration. # noqa: E501
75
- :type: bool
76
- """
77
-
78
- self._enabled = enabled
79
-
80
- @property
81
- def workspace(self):
82
- """Gets the workspace of this AzureMLIntegration.
83
-
84
-
85
- :return: The workspace of this AzureMLIntegration.
86
- :rtype: union[AzureMLWorkspace,AzureMLWorkspaceInput]
87
- """
88
- return self._workspace
89
-
90
- @workspace.setter
91
- def workspace(self, workspace):
92
- """Sets the workspace of this AzureMLIntegration.
93
-
94
-
95
- :param workspace: The workspace of this AzureMLIntegration. # noqa: E501
96
- :type: union[AzureMLWorkspace,AzureMLWorkspaceInput]
97
- """
98
-
99
- self._workspace = workspace
100
-
101
- @property
102
- def azureml_initialization(self):
103
- """Gets the azureml_initialization of this AzureMLIntegration.
104
-
105
-
106
- :return: The azureml_initialization of this AzureMLIntegration.
107
- :rtype: AzureMLInitialization
108
- """
109
- return self._azureml_initialization
110
-
111
- @azureml_initialization.setter
112
- def azureml_initialization(self, azureml_initialization):
113
- """Sets the azureml_initialization of this AzureMLIntegration.
114
-
115
-
116
- :param azureml_initialization: The azureml_initialization of this AzureMLIntegration. # noqa: E501
117
- :type: AzureMLInitialization
118
- """
119
-
120
- self._azureml_initialization = azureml_initialization
121
-
122
-
123
- @staticmethod
124
- def positional_to_model(value):
125
- """Converts a positional argument to a model value"""
126
- return value
127
-
128
- def return_value(self):
129
- """Unwraps return value from model"""
130
- return self
131
-
132
- def to_dict(self):
133
- """Returns the model properties as a dict"""
134
- result = {}
135
-
136
- for attr, _ in six.iteritems(self.swagger_types):
137
- value = getattr(self, attr)
138
- if isinstance(value, list):
139
- result[attr] = list(map(
140
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
141
- value
142
- ))
143
- elif hasattr(value, "to_dict"):
144
- result[attr] = value.to_dict()
145
- elif isinstance(value, dict):
146
- result[attr] = dict(map(
147
- lambda item: (item[0], item[1].to_dict())
148
- if hasattr(item[1], "to_dict") else item,
149
- value.items()
150
- ))
151
- else:
152
- result[attr] = value
153
-
154
- return result
155
-
156
- def to_str(self):
157
- """Returns the string representation of the model"""
158
- return pprint.pformat(self.to_dict())
159
-
160
- def __repr__(self):
161
- """For `print` and `pprint`"""
162
- return self.to_str()
163
-
164
- def __eq__(self, other):
165
- """Returns true if both objects are equal"""
166
- if not isinstance(other, AzureMLIntegration):
167
- return False
168
-
169
- return self.__dict__ == other.__dict__
170
-
171
- def __ne__(self, other):
172
- """Returns true if both objects are not equal"""
173
- return not self == other
174
-
175
- # Container emulation
176
- def __getitem__(self, key):
177
- """Returns the value of key"""
178
- key = self._map_key(key)
179
- return getattr(self, key)
180
-
181
- def __setitem__(self, key, value):
182
- """Sets the value of key"""
183
- key = self._map_key(key)
184
- setattr(self, key, value)
185
-
186
- def __contains__(self, key):
187
- """Checks if the given value is a key in this object"""
188
- key = self._map_key(key, raise_on_error=False)
189
- return key is not None
190
-
191
- def keys(self):
192
- """Returns the list of json properties in the object"""
193
- return self.__class__.rattribute_map.keys()
194
-
195
- def values(self):
196
- """Returns the list of values in the object"""
197
- for key in self.__class__.attribute_map.keys():
198
- yield getattr(self, key)
199
-
200
- def items(self):
201
- """Returns the list of json property to value mapping"""
202
- for key, prop in self.__class__.rattribute_map.items():
203
- yield key, getattr(self, prop)
204
-
205
- def get(self, key, default=None):
206
- """Get the value of the provided json property, or default"""
207
- key = self._map_key(key, raise_on_error=False)
208
- if key:
209
- return getattr(self, key, default)
210
- return default
211
-
212
- def _map_key(self, key, raise_on_error=True):
213
- result = self.__class__.rattribute_map.get(key)
214
- if result is None:
215
- if raise_on_error:
216
- raise AttributeError('Invalid attribute name: {}'.format(key))
217
- return None
218
- return '_' + result
@@ -1,31 +0,0 @@
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 AzureMLResourceInitStatus(str, enum.Enum):
24
- PENDING = "pending"
25
- IN_PROGRESS = "in_progress"
26
- DELETING = "deleting"
27
- COMPLETE = "complete"
28
- ERROR = "error"
29
-
30
- def __str__(self):
31
- return self.value
@@ -1,347 +0,0 @@
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.origin import Origin # noqa: F401,E501
22
-
23
- class AzureMLWorkspace(object):
24
-
25
- swagger_types = {
26
- 'name': 'str',
27
- 'display_name': 'str',
28
- 'resource_group': 'str',
29
- 'subscription': 'str',
30
- 'url': 'str',
31
- 'created': 'datetime',
32
- 'origin': 'Origin',
33
- 'project_id': 'str'
34
- }
35
-
36
- attribute_map = {
37
- 'name': 'name',
38
- 'display_name': 'display_name',
39
- 'resource_group': 'resource_group',
40
- 'subscription': 'subscription',
41
- 'url': 'url',
42
- 'created': 'created',
43
- 'origin': 'origin',
44
- 'project_id': 'project_id'
45
- }
46
-
47
- rattribute_map = {
48
- 'name': 'name',
49
- 'display_name': 'display_name',
50
- 'resource_group': 'resource_group',
51
- 'subscription': 'subscription',
52
- 'url': 'url',
53
- 'created': 'created',
54
- 'origin': 'origin',
55
- 'project_id': 'project_id'
56
- }
57
-
58
- def __init__(self, name=None, display_name=None, resource_group=None, subscription=None, url=None, created=None, origin=None, project_id=None): # noqa: E501
59
- """AzureMLWorkspace - a model defined in Swagger"""
60
- super(AzureMLWorkspace, self).__init__()
61
-
62
- self._name = None
63
- self._display_name = None
64
- self._resource_group = None
65
- self._subscription = None
66
- self._url = None
67
- self._created = None
68
- self._origin = None
69
- self._project_id = None
70
- self.discriminator = None
71
- self.alt_discriminator = None
72
-
73
- self.name = name
74
- if display_name is not None:
75
- self.display_name = display_name
76
- self.resource_group = resource_group
77
- self.subscription = subscription
78
- self.url = url
79
- self.created = created
80
- self.origin = origin
81
- self.project_id = project_id
82
-
83
- @property
84
- def name(self):
85
- """Gets the name of this AzureMLWorkspace.
86
-
87
-
88
- :return: The name of this AzureMLWorkspace.
89
- :rtype: str
90
- """
91
- return self._name
92
-
93
- @name.setter
94
- def name(self, name):
95
- """Sets the name of this AzureMLWorkspace.
96
-
97
-
98
- :param name: The name of this AzureMLWorkspace. # noqa: E501
99
- :type: str
100
- """
101
-
102
- self._name = name
103
-
104
- @property
105
- def display_name(self):
106
- """Gets the display_name of this AzureMLWorkspace.
107
-
108
-
109
- :return: The display_name of this AzureMLWorkspace.
110
- :rtype: str
111
- """
112
- return self._display_name
113
-
114
- @display_name.setter
115
- def display_name(self, display_name):
116
- """Sets the display_name of this AzureMLWorkspace.
117
-
118
-
119
- :param display_name: The display_name of this AzureMLWorkspace. # noqa: E501
120
- :type: str
121
- """
122
-
123
- self._display_name = display_name
124
-
125
- @property
126
- def resource_group(self):
127
- """Gets the resource_group of this AzureMLWorkspace.
128
-
129
-
130
- :return: The resource_group of this AzureMLWorkspace.
131
- :rtype: str
132
- """
133
- return self._resource_group
134
-
135
- @resource_group.setter
136
- def resource_group(self, resource_group):
137
- """Sets the resource_group of this AzureMLWorkspace.
138
-
139
-
140
- :param resource_group: The resource_group of this AzureMLWorkspace. # noqa: E501
141
- :type: str
142
- """
143
-
144
- self._resource_group = resource_group
145
-
146
- @property
147
- def subscription(self):
148
- """Gets the subscription of this AzureMLWorkspace.
149
-
150
-
151
- :return: The subscription of this AzureMLWorkspace.
152
- :rtype: str
153
- """
154
- return self._subscription
155
-
156
- @subscription.setter
157
- def subscription(self, subscription):
158
- """Sets the subscription of this AzureMLWorkspace.
159
-
160
-
161
- :param subscription: The subscription of this AzureMLWorkspace. # noqa: E501
162
- :type: str
163
- """
164
-
165
- self._subscription = subscription
166
-
167
- @property
168
- def url(self):
169
- """Gets the url of this AzureMLWorkspace.
170
-
171
-
172
- :return: The url of this AzureMLWorkspace.
173
- :rtype: str
174
- """
175
- return self._url
176
-
177
- @url.setter
178
- def url(self, url):
179
- """Sets the url of this AzureMLWorkspace.
180
-
181
-
182
- :param url: The url of this AzureMLWorkspace. # noqa: E501
183
- :type: str
184
- """
185
-
186
- self._url = url
187
-
188
- @property
189
- def created(self):
190
- """Gets the created of this AzureMLWorkspace.
191
-
192
-
193
- :return: The created of this AzureMLWorkspace.
194
- :rtype: datetime
195
- """
196
- return self._created
197
-
198
- @created.setter
199
- def created(self, created):
200
- """Sets the created of this AzureMLWorkspace.
201
-
202
-
203
- :param created: The created of this AzureMLWorkspace. # noqa: E501
204
- :type: datetime
205
- """
206
-
207
- self._created = created
208
-
209
- @property
210
- def origin(self):
211
- """Gets the origin of this AzureMLWorkspace.
212
-
213
-
214
- :return: The origin of this AzureMLWorkspace.
215
- :rtype: Origin
216
- """
217
- return self._origin
218
-
219
- @origin.setter
220
- def origin(self, origin):
221
- """Sets the origin of this AzureMLWorkspace.
222
-
223
-
224
- :param origin: The origin of this AzureMLWorkspace. # noqa: E501
225
- :type: Origin
226
- """
227
-
228
- self._origin = origin
229
-
230
- @property
231
- def project_id(self):
232
- """Gets the project_id of this AzureMLWorkspace.
233
-
234
-
235
- :return: The project_id of this AzureMLWorkspace.
236
- :rtype: str
237
- """
238
- return self._project_id
239
-
240
- @project_id.setter
241
- def project_id(self, project_id):
242
- """Sets the project_id of this AzureMLWorkspace.
243
-
244
-
245
- :param project_id: The project_id of this AzureMLWorkspace. # noqa: E501
246
- :type: str
247
- """
248
-
249
- self._project_id = project_id
250
-
251
-
252
- @staticmethod
253
- def positional_to_model(value):
254
- """Converts a positional argument to a model value"""
255
- return value
256
-
257
- def return_value(self):
258
- """Unwraps return value from model"""
259
- return self
260
-
261
- def to_dict(self):
262
- """Returns the model properties as a dict"""
263
- result = {}
264
-
265
- for attr, _ in six.iteritems(self.swagger_types):
266
- value = getattr(self, attr)
267
- if isinstance(value, list):
268
- result[attr] = list(map(
269
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
270
- value
271
- ))
272
- elif hasattr(value, "to_dict"):
273
- result[attr] = value.to_dict()
274
- elif isinstance(value, dict):
275
- result[attr] = dict(map(
276
- lambda item: (item[0], item[1].to_dict())
277
- if hasattr(item[1], "to_dict") else item,
278
- value.items()
279
- ))
280
- else:
281
- result[attr] = value
282
-
283
- return result
284
-
285
- def to_str(self):
286
- """Returns the string representation of the model"""
287
- return pprint.pformat(self.to_dict())
288
-
289
- def __repr__(self):
290
- """For `print` and `pprint`"""
291
- return self.to_str()
292
-
293
- def __eq__(self, other):
294
- """Returns true if both objects are equal"""
295
- if not isinstance(other, AzureMLWorkspace):
296
- return False
297
-
298
- return self.__dict__ == other.__dict__
299
-
300
- def __ne__(self, other):
301
- """Returns true if both objects are not equal"""
302
- return not self == other
303
-
304
- # Container emulation
305
- def __getitem__(self, key):
306
- """Returns the value of key"""
307
- key = self._map_key(key)
308
- return getattr(self, key)
309
-
310
- def __setitem__(self, key, value):
311
- """Sets the value of key"""
312
- key = self._map_key(key)
313
- setattr(self, key, value)
314
-
315
- def __contains__(self, key):
316
- """Checks if the given value is a key in this object"""
317
- key = self._map_key(key, raise_on_error=False)
318
- return key is not None
319
-
320
- def keys(self):
321
- """Returns the list of json properties in the object"""
322
- return self.__class__.rattribute_map.keys()
323
-
324
- def values(self):
325
- """Returns the list of values in the object"""
326
- for key in self.__class__.attribute_map.keys():
327
- yield getattr(self, key)
328
-
329
- def items(self):
330
- """Returns the list of json property to value mapping"""
331
- for key, prop in self.__class__.rattribute_map.items():
332
- yield key, getattr(self, prop)
333
-
334
- def get(self, key, default=None):
335
- """Get the value of the provided json property, or default"""
336
- key = self._map_key(key, raise_on_error=False)
337
- if key:
338
- return getattr(self, key, default)
339
- return default
340
-
341
- def _map_key(self, key, raise_on_error=True):
342
- result = self.__class__.rattribute_map.get(key)
343
- if result is None:
344
- if raise_on_error:
345
- raise AttributeError('Invalid attribute name: {}'.format(key))
346
- return None
347
- return '_' + result