flywheel-sdk 20.0.0rc0__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.
- flywheel/__init__.py +1 -6
- flywheel/api/acquisitions_api.py +2 -2
- flywheel/api/analyses_api.py +2 -2
- flywheel/api/collections_api.py +2 -2
- flywheel/api/dataexplorer_api.py +109 -0
- flywheel/api/files_api.py +2 -2
- flywheel/api/groups_api.py +2 -2
- flywheel/api/jobs_api.py +211 -0
- flywheel/api/projects_api.py +2 -2
- flywheel/api/resolve_api.py +10 -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 +44 -9
- flywheel/models/__init__.py +2 -7
- flywheel/models/action.py +4 -3
- flywheel/models/container_type.py +0 -1
- flywheel/models/current_user_output.py +4 -32
- flywheel/models/{azure_ml_workspace_input.py → delete_by_search_query.py} +96 -34
- flywheel/models/features.py +58 -4
- flywheel/models/modify_user_input.py +4 -32
- flywheel/models/project_settings_workspaces.py +4 -31
- flywheel/models/project_settings_workspaces_input.py +4 -32
- flywheel/models/search_query.py +30 -30
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0.dist-info}/METADATA +1 -1
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0.dist-info}/RECORD +30 -35
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0.dist-info}/WHEEL +1 -1
- flywheel/models/azure_ml_account.py +0 -188
- flywheel/models/azure_ml_initialization.py +0 -244
- flywheel/models/azure_ml_integration.py +0 -218
- flywheel/models/azure_ml_resource_init_status.py +0 -31
- flywheel/models/azure_ml_workspace.py +0 -347
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0.dist-info}/LICENSE.txt +0 -0
- {flywheel_sdk-20.0.0rc0.dist-info → flywheel_sdk-20.1.0.dist-info}/top_level.txt +0 -0
|
@@ -1,188 +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
|
-
class AzureMLAccount(object):
|
|
22
|
-
|
|
23
|
-
swagger_types = {
|
|
24
|
-
'email': 'str',
|
|
25
|
-
'onboarded': 'bool'
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
attribute_map = {
|
|
29
|
-
'email': 'email',
|
|
30
|
-
'onboarded': 'onboarded'
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
rattribute_map = {
|
|
34
|
-
'email': 'email',
|
|
35
|
-
'onboarded': 'onboarded'
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
def __init__(self, email=None, onboarded=None): # noqa: E501
|
|
39
|
-
"""AzureMLAccount - a model defined in Swagger"""
|
|
40
|
-
super(AzureMLAccount, self).__init__()
|
|
41
|
-
|
|
42
|
-
self._email = None
|
|
43
|
-
self._onboarded = None
|
|
44
|
-
self.discriminator = None
|
|
45
|
-
self.alt_discriminator = None
|
|
46
|
-
|
|
47
|
-
self.email = email
|
|
48
|
-
self.onboarded = onboarded
|
|
49
|
-
|
|
50
|
-
@property
|
|
51
|
-
def email(self):
|
|
52
|
-
"""Gets the email of this AzureMLAccount.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
:return: The email of this AzureMLAccount.
|
|
56
|
-
:rtype: str
|
|
57
|
-
"""
|
|
58
|
-
return self._email
|
|
59
|
-
|
|
60
|
-
@email.setter
|
|
61
|
-
def email(self, email):
|
|
62
|
-
"""Sets the email of this AzureMLAccount.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
:param email: The email of this AzureMLAccount. # noqa: E501
|
|
66
|
-
:type: str
|
|
67
|
-
"""
|
|
68
|
-
|
|
69
|
-
self._email = email
|
|
70
|
-
|
|
71
|
-
@property
|
|
72
|
-
def onboarded(self):
|
|
73
|
-
"""Gets the onboarded of this AzureMLAccount.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
:return: The onboarded of this AzureMLAccount.
|
|
77
|
-
:rtype: bool
|
|
78
|
-
"""
|
|
79
|
-
return self._onboarded
|
|
80
|
-
|
|
81
|
-
@onboarded.setter
|
|
82
|
-
def onboarded(self, onboarded):
|
|
83
|
-
"""Sets the onboarded of this AzureMLAccount.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
:param onboarded: The onboarded of this AzureMLAccount. # noqa: E501
|
|
87
|
-
:type: bool
|
|
88
|
-
"""
|
|
89
|
-
|
|
90
|
-
self._onboarded = onboarded
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
@staticmethod
|
|
94
|
-
def positional_to_model(value):
|
|
95
|
-
"""Converts a positional argument to a model value"""
|
|
96
|
-
return value
|
|
97
|
-
|
|
98
|
-
def return_value(self):
|
|
99
|
-
"""Unwraps return value from model"""
|
|
100
|
-
return self
|
|
101
|
-
|
|
102
|
-
def to_dict(self):
|
|
103
|
-
"""Returns the model properties as a dict"""
|
|
104
|
-
result = {}
|
|
105
|
-
|
|
106
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
107
|
-
value = getattr(self, attr)
|
|
108
|
-
if isinstance(value, list):
|
|
109
|
-
result[attr] = list(map(
|
|
110
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
111
|
-
value
|
|
112
|
-
))
|
|
113
|
-
elif hasattr(value, "to_dict"):
|
|
114
|
-
result[attr] = value.to_dict()
|
|
115
|
-
elif isinstance(value, dict):
|
|
116
|
-
result[attr] = dict(map(
|
|
117
|
-
lambda item: (item[0], item[1].to_dict())
|
|
118
|
-
if hasattr(item[1], "to_dict") else item,
|
|
119
|
-
value.items()
|
|
120
|
-
))
|
|
121
|
-
else:
|
|
122
|
-
result[attr] = value
|
|
123
|
-
|
|
124
|
-
return result
|
|
125
|
-
|
|
126
|
-
def to_str(self):
|
|
127
|
-
"""Returns the string representation of the model"""
|
|
128
|
-
return pprint.pformat(self.to_dict())
|
|
129
|
-
|
|
130
|
-
def __repr__(self):
|
|
131
|
-
"""For `print` and `pprint`"""
|
|
132
|
-
return self.to_str()
|
|
133
|
-
|
|
134
|
-
def __eq__(self, other):
|
|
135
|
-
"""Returns true if both objects are equal"""
|
|
136
|
-
if not isinstance(other, AzureMLAccount):
|
|
137
|
-
return False
|
|
138
|
-
|
|
139
|
-
return self.__dict__ == other.__dict__
|
|
140
|
-
|
|
141
|
-
def __ne__(self, other):
|
|
142
|
-
"""Returns true if both objects are not equal"""
|
|
143
|
-
return not self == other
|
|
144
|
-
|
|
145
|
-
# Container emulation
|
|
146
|
-
def __getitem__(self, key):
|
|
147
|
-
"""Returns the value of key"""
|
|
148
|
-
key = self._map_key(key)
|
|
149
|
-
return getattr(self, key)
|
|
150
|
-
|
|
151
|
-
def __setitem__(self, key, value):
|
|
152
|
-
"""Sets the value of key"""
|
|
153
|
-
key = self._map_key(key)
|
|
154
|
-
setattr(self, key, value)
|
|
155
|
-
|
|
156
|
-
def __contains__(self, key):
|
|
157
|
-
"""Checks if the given value is a key in this object"""
|
|
158
|
-
key = self._map_key(key, raise_on_error=False)
|
|
159
|
-
return key is not None
|
|
160
|
-
|
|
161
|
-
def keys(self):
|
|
162
|
-
"""Returns the list of json properties in the object"""
|
|
163
|
-
return self.__class__.rattribute_map.keys()
|
|
164
|
-
|
|
165
|
-
def values(self):
|
|
166
|
-
"""Returns the list of values in the object"""
|
|
167
|
-
for key in self.__class__.attribute_map.keys():
|
|
168
|
-
yield getattr(self, key)
|
|
169
|
-
|
|
170
|
-
def items(self):
|
|
171
|
-
"""Returns the list of json property to value mapping"""
|
|
172
|
-
for key, prop in self.__class__.rattribute_map.items():
|
|
173
|
-
yield key, getattr(self, prop)
|
|
174
|
-
|
|
175
|
-
def get(self, key, default=None):
|
|
176
|
-
"""Get the value of the provided json property, or default"""
|
|
177
|
-
key = self._map_key(key, raise_on_error=False)
|
|
178
|
-
if key:
|
|
179
|
-
return getattr(self, key, default)
|
|
180
|
-
return default
|
|
181
|
-
|
|
182
|
-
def _map_key(self, key, raise_on_error=True):
|
|
183
|
-
result = self.__class__.rattribute_map.get(key)
|
|
184
|
-
if result is None:
|
|
185
|
-
if raise_on_error:
|
|
186
|
-
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
187
|
-
return None
|
|
188
|
-
return '_' + result
|
|
@@ -1,244 +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
|
-
class AzureMLInitialization(object):
|
|
22
|
-
|
|
23
|
-
swagger_types = {
|
|
24
|
-
'resources': 'AzureMLResourceInitStatus',
|
|
25
|
-
'xfer_storage': 'AzureMLResourceInitStatus',
|
|
26
|
-
'user_role_assignments': 'AzureMLResourceInitStatus',
|
|
27
|
-
'compute_instances': 'AzureMLResourceInitStatus'
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
attribute_map = {
|
|
31
|
-
'resources': 'resources',
|
|
32
|
-
'xfer_storage': 'xfer_storage',
|
|
33
|
-
'user_role_assignments': 'user_role_assignments',
|
|
34
|
-
'compute_instances': 'compute_instances'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
rattribute_map = {
|
|
38
|
-
'resources': 'resources',
|
|
39
|
-
'xfer_storage': 'xfer_storage',
|
|
40
|
-
'user_role_assignments': 'user_role_assignments',
|
|
41
|
-
'compute_instances': 'compute_instances'
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
def __init__(self, resources=None, xfer_storage=None, user_role_assignments=None, compute_instances=None): # noqa: E501
|
|
45
|
-
"""AzureMLInitialization - a model defined in Swagger"""
|
|
46
|
-
super(AzureMLInitialization, self).__init__()
|
|
47
|
-
|
|
48
|
-
self._resources = None
|
|
49
|
-
self._xfer_storage = None
|
|
50
|
-
self._user_role_assignments = None
|
|
51
|
-
self._compute_instances = None
|
|
52
|
-
self.discriminator = None
|
|
53
|
-
self.alt_discriminator = None
|
|
54
|
-
|
|
55
|
-
if resources is not None:
|
|
56
|
-
self.resources = resources
|
|
57
|
-
if xfer_storage is not None:
|
|
58
|
-
self.xfer_storage = xfer_storage
|
|
59
|
-
if user_role_assignments is not None:
|
|
60
|
-
self.user_role_assignments = user_role_assignments
|
|
61
|
-
if compute_instances is not None:
|
|
62
|
-
self.compute_instances = compute_instances
|
|
63
|
-
|
|
64
|
-
@property
|
|
65
|
-
def resources(self):
|
|
66
|
-
"""Gets the resources of this AzureMLInitialization.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:return: The resources of this AzureMLInitialization.
|
|
70
|
-
:rtype: AzureMLResourceInitStatus
|
|
71
|
-
"""
|
|
72
|
-
return self._resources
|
|
73
|
-
|
|
74
|
-
@resources.setter
|
|
75
|
-
def resources(self, resources):
|
|
76
|
-
"""Sets the resources of this AzureMLInitialization.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
:param resources: The resources of this AzureMLInitialization. # noqa: E501
|
|
80
|
-
:type: AzureMLResourceInitStatus
|
|
81
|
-
"""
|
|
82
|
-
|
|
83
|
-
self._resources = resources
|
|
84
|
-
|
|
85
|
-
@property
|
|
86
|
-
def xfer_storage(self):
|
|
87
|
-
"""Gets the xfer_storage of this AzureMLInitialization.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
:return: The xfer_storage of this AzureMLInitialization.
|
|
91
|
-
:rtype: AzureMLResourceInitStatus
|
|
92
|
-
"""
|
|
93
|
-
return self._xfer_storage
|
|
94
|
-
|
|
95
|
-
@xfer_storage.setter
|
|
96
|
-
def xfer_storage(self, xfer_storage):
|
|
97
|
-
"""Sets the xfer_storage of this AzureMLInitialization.
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
:param xfer_storage: The xfer_storage of this AzureMLInitialization. # noqa: E501
|
|
101
|
-
:type: AzureMLResourceInitStatus
|
|
102
|
-
"""
|
|
103
|
-
|
|
104
|
-
self._xfer_storage = xfer_storage
|
|
105
|
-
|
|
106
|
-
@property
|
|
107
|
-
def user_role_assignments(self):
|
|
108
|
-
"""Gets the user_role_assignments of this AzureMLInitialization.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
:return: The user_role_assignments of this AzureMLInitialization.
|
|
112
|
-
:rtype: AzureMLResourceInitStatus
|
|
113
|
-
"""
|
|
114
|
-
return self._user_role_assignments
|
|
115
|
-
|
|
116
|
-
@user_role_assignments.setter
|
|
117
|
-
def user_role_assignments(self, user_role_assignments):
|
|
118
|
-
"""Sets the user_role_assignments of this AzureMLInitialization.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
:param user_role_assignments: The user_role_assignments of this AzureMLInitialization. # noqa: E501
|
|
122
|
-
:type: AzureMLResourceInitStatus
|
|
123
|
-
"""
|
|
124
|
-
|
|
125
|
-
self._user_role_assignments = user_role_assignments
|
|
126
|
-
|
|
127
|
-
@property
|
|
128
|
-
def compute_instances(self):
|
|
129
|
-
"""Gets the compute_instances of this AzureMLInitialization.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
:return: The compute_instances of this AzureMLInitialization.
|
|
133
|
-
:rtype: AzureMLResourceInitStatus
|
|
134
|
-
"""
|
|
135
|
-
return self._compute_instances
|
|
136
|
-
|
|
137
|
-
@compute_instances.setter
|
|
138
|
-
def compute_instances(self, compute_instances):
|
|
139
|
-
"""Sets the compute_instances of this AzureMLInitialization.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
:param compute_instances: The compute_instances of this AzureMLInitialization. # noqa: E501
|
|
143
|
-
:type: AzureMLResourceInitStatus
|
|
144
|
-
"""
|
|
145
|
-
|
|
146
|
-
self._compute_instances = compute_instances
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
@staticmethod
|
|
150
|
-
def positional_to_model(value):
|
|
151
|
-
"""Converts a positional argument to a model value"""
|
|
152
|
-
return value
|
|
153
|
-
|
|
154
|
-
def return_value(self):
|
|
155
|
-
"""Unwraps return value from model"""
|
|
156
|
-
return self
|
|
157
|
-
|
|
158
|
-
def to_dict(self):
|
|
159
|
-
"""Returns the model properties as a dict"""
|
|
160
|
-
result = {}
|
|
161
|
-
|
|
162
|
-
for attr, _ in six.iteritems(self.swagger_types):
|
|
163
|
-
value = getattr(self, attr)
|
|
164
|
-
if isinstance(value, list):
|
|
165
|
-
result[attr] = list(map(
|
|
166
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
167
|
-
value
|
|
168
|
-
))
|
|
169
|
-
elif hasattr(value, "to_dict"):
|
|
170
|
-
result[attr] = value.to_dict()
|
|
171
|
-
elif isinstance(value, dict):
|
|
172
|
-
result[attr] = dict(map(
|
|
173
|
-
lambda item: (item[0], item[1].to_dict())
|
|
174
|
-
if hasattr(item[1], "to_dict") else item,
|
|
175
|
-
value.items()
|
|
176
|
-
))
|
|
177
|
-
else:
|
|
178
|
-
result[attr] = value
|
|
179
|
-
|
|
180
|
-
return result
|
|
181
|
-
|
|
182
|
-
def to_str(self):
|
|
183
|
-
"""Returns the string representation of the model"""
|
|
184
|
-
return pprint.pformat(self.to_dict())
|
|
185
|
-
|
|
186
|
-
def __repr__(self):
|
|
187
|
-
"""For `print` and `pprint`"""
|
|
188
|
-
return self.to_str()
|
|
189
|
-
|
|
190
|
-
def __eq__(self, other):
|
|
191
|
-
"""Returns true if both objects are equal"""
|
|
192
|
-
if not isinstance(other, AzureMLInitialization):
|
|
193
|
-
return False
|
|
194
|
-
|
|
195
|
-
return self.__dict__ == other.__dict__
|
|
196
|
-
|
|
197
|
-
def __ne__(self, other):
|
|
198
|
-
"""Returns true if both objects are not equal"""
|
|
199
|
-
return not self == other
|
|
200
|
-
|
|
201
|
-
# Container emulation
|
|
202
|
-
def __getitem__(self, key):
|
|
203
|
-
"""Returns the value of key"""
|
|
204
|
-
key = self._map_key(key)
|
|
205
|
-
return getattr(self, key)
|
|
206
|
-
|
|
207
|
-
def __setitem__(self, key, value):
|
|
208
|
-
"""Sets the value of key"""
|
|
209
|
-
key = self._map_key(key)
|
|
210
|
-
setattr(self, key, value)
|
|
211
|
-
|
|
212
|
-
def __contains__(self, key):
|
|
213
|
-
"""Checks if the given value is a key in this object"""
|
|
214
|
-
key = self._map_key(key, raise_on_error=False)
|
|
215
|
-
return key is not None
|
|
216
|
-
|
|
217
|
-
def keys(self):
|
|
218
|
-
"""Returns the list of json properties in the object"""
|
|
219
|
-
return self.__class__.rattribute_map.keys()
|
|
220
|
-
|
|
221
|
-
def values(self):
|
|
222
|
-
"""Returns the list of values in the object"""
|
|
223
|
-
for key in self.__class__.attribute_map.keys():
|
|
224
|
-
yield getattr(self, key)
|
|
225
|
-
|
|
226
|
-
def items(self):
|
|
227
|
-
"""Returns the list of json property to value mapping"""
|
|
228
|
-
for key, prop in self.__class__.rattribute_map.items():
|
|
229
|
-
yield key, getattr(self, prop)
|
|
230
|
-
|
|
231
|
-
def get(self, key, default=None):
|
|
232
|
-
"""Get the value of the provided json property, or default"""
|
|
233
|
-
key = self._map_key(key, raise_on_error=False)
|
|
234
|
-
if key:
|
|
235
|
-
return getattr(self, key, default)
|
|
236
|
-
return default
|
|
237
|
-
|
|
238
|
-
def _map_key(self, key, raise_on_error=True):
|
|
239
|
-
result = self.__class__.rattribute_map.get(key)
|
|
240
|
-
if result is None:
|
|
241
|
-
if raise_on_error:
|
|
242
|
-
raise AttributeError('Invalid attribute name: {}'.format(key))
|
|
243
|
-
return None
|
|
244
|
-
return '_' + result
|
|
@@ -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
|