flywheel-sdk 20.1.0rc0__py2.py3-none-any.whl → 20.1.4rc0__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.
@@ -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
@@ -1,189 +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 AzureMLWorkspaceInput(object):
22
-
23
- swagger_types = {
24
- 'name': 'str',
25
- 'display_name': 'str'
26
- }
27
-
28
- attribute_map = {
29
- 'name': 'name',
30
- 'display_name': 'display_name'
31
- }
32
-
33
- rattribute_map = {
34
- 'name': 'name',
35
- 'display_name': 'display_name'
36
- }
37
-
38
- def __init__(self, name=None, display_name=None): # noqa: E501
39
- """AzureMLWorkspaceInput - a model defined in Swagger"""
40
- super(AzureMLWorkspaceInput, self).__init__()
41
-
42
- self._name = None
43
- self._display_name = None
44
- self.discriminator = None
45
- self.alt_discriminator = None
46
-
47
- self.name = name
48
- if display_name is not None:
49
- self.display_name = display_name
50
-
51
- @property
52
- def name(self):
53
- """Gets the name of this AzureMLWorkspaceInput.
54
-
55
-
56
- :return: The name of this AzureMLWorkspaceInput.
57
- :rtype: str
58
- """
59
- return self._name
60
-
61
- @name.setter
62
- def name(self, name):
63
- """Sets the name of this AzureMLWorkspaceInput.
64
-
65
-
66
- :param name: The name of this AzureMLWorkspaceInput. # noqa: E501
67
- :type: str
68
- """
69
-
70
- self._name = name
71
-
72
- @property
73
- def display_name(self):
74
- """Gets the display_name of this AzureMLWorkspaceInput.
75
-
76
-
77
- :return: The display_name of this AzureMLWorkspaceInput.
78
- :rtype: str
79
- """
80
- return self._display_name
81
-
82
- @display_name.setter
83
- def display_name(self, display_name):
84
- """Sets the display_name of this AzureMLWorkspaceInput.
85
-
86
-
87
- :param display_name: The display_name of this AzureMLWorkspaceInput. # noqa: E501
88
- :type: str
89
- """
90
-
91
- self._display_name = display_name
92
-
93
-
94
- @staticmethod
95
- def positional_to_model(value):
96
- """Converts a positional argument to a model value"""
97
- return value
98
-
99
- def return_value(self):
100
- """Unwraps return value from model"""
101
- return self
102
-
103
- def to_dict(self):
104
- """Returns the model properties as a dict"""
105
- result = {}
106
-
107
- for attr, _ in six.iteritems(self.swagger_types):
108
- value = getattr(self, attr)
109
- if isinstance(value, list):
110
- result[attr] = list(map(
111
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
112
- value
113
- ))
114
- elif hasattr(value, "to_dict"):
115
- result[attr] = value.to_dict()
116
- elif isinstance(value, dict):
117
- result[attr] = dict(map(
118
- lambda item: (item[0], item[1].to_dict())
119
- if hasattr(item[1], "to_dict") else item,
120
- value.items()
121
- ))
122
- else:
123
- result[attr] = value
124
-
125
- return result
126
-
127
- def to_str(self):
128
- """Returns the string representation of the model"""
129
- return pprint.pformat(self.to_dict())
130
-
131
- def __repr__(self):
132
- """For `print` and `pprint`"""
133
- return self.to_str()
134
-
135
- def __eq__(self, other):
136
- """Returns true if both objects are equal"""
137
- if not isinstance(other, AzureMLWorkspaceInput):
138
- return False
139
-
140
- return self.__dict__ == other.__dict__
141
-
142
- def __ne__(self, other):
143
- """Returns true if both objects are not equal"""
144
- return not self == other
145
-
146
- # Container emulation
147
- def __getitem__(self, key):
148
- """Returns the value of key"""
149
- key = self._map_key(key)
150
- return getattr(self, key)
151
-
152
- def __setitem__(self, key, value):
153
- """Sets the value of key"""
154
- key = self._map_key(key)
155
- setattr(self, key, value)
156
-
157
- def __contains__(self, key):
158
- """Checks if the given value is a key in this object"""
159
- key = self._map_key(key, raise_on_error=False)
160
- return key is not None
161
-
162
- def keys(self):
163
- """Returns the list of json properties in the object"""
164
- return self.__class__.rattribute_map.keys()
165
-
166
- def values(self):
167
- """Returns the list of values in the object"""
168
- for key in self.__class__.attribute_map.keys():
169
- yield getattr(self, key)
170
-
171
- def items(self):
172
- """Returns the list of json property to value mapping"""
173
- for key, prop in self.__class__.rattribute_map.items():
174
- yield key, getattr(self, prop)
175
-
176
- def get(self, key, default=None):
177
- """Get the value of the provided json property, or default"""
178
- key = self._map_key(key, raise_on_error=False)
179
- if key:
180
- return getattr(self, key, default)
181
- return default
182
-
183
- def _map_key(self, key, raise_on_error=True):
184
- result = self.__class__.rattribute_map.get(key)
185
- if result is None:
186
- if raise_on_error:
187
- raise AttributeError('Invalid attribute name: {}'.format(key))
188
- return None
189
- return '_' + result