anyscale 0.25.9__py3-none-any.whl → 0.25.11__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.
- anyscale/_private/anyscale_client/common.py +1 -1
- anyscale/_private/docgen/models.md +4 -4
- anyscale/client/README.md +10 -0
- anyscale/client/openapi_client/__init__.py +6 -0
- anyscale/client/openapi_client/api/default_api.py +456 -0
- anyscale/client/openapi_client/models/__init__.py +6 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +51 -1
- anyscale/client/openapi_client/models/create_resource_alert.py +265 -0
- anyscale/client/openapi_client/models/list_resource_alerts_query.py +234 -0
- anyscale/client/openapi_client/models/project.py +59 -61
- anyscale/client/openapi_client/models/projects_sort_field.py +1 -3
- anyscale/client/openapi_client/models/resource_alert.py +437 -0
- anyscale/client/openapi_client/models/resource_alert_event_type.py +101 -0
- anyscale/client/openapi_client/models/resourcealert_list_response.py +147 -0
- anyscale/client/openapi_client/models/resourcealert_response.py +121 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +51 -1
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +51 -1
- anyscale/sdk/anyscale_client/models/project.py +9 -11
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +51 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/METADATA +1 -1
- {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/RECORD +28 -22
- {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/LICENSE +0 -0
- {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/NOTICE +0 -0
- {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/WHEEL +0 -0
- {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/entry_points.txt +0 -0
- {anyscale-0.25.9.dist-info → anyscale-0.25.11.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,265 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Managed Ray API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from openapi_client.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class CreateResourceAlert(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'name': 'str',
|
37
|
+
'cloud_id': 'str',
|
38
|
+
'project_id': 'str',
|
39
|
+
'user_id': 'str',
|
40
|
+
'alert_events': 'list[ResourceAlertEventType]',
|
41
|
+
'notification_channel': 'CreateNotificationChannelRecord'
|
42
|
+
}
|
43
|
+
|
44
|
+
attribute_map = {
|
45
|
+
'name': 'name',
|
46
|
+
'cloud_id': 'cloud_id',
|
47
|
+
'project_id': 'project_id',
|
48
|
+
'user_id': 'user_id',
|
49
|
+
'alert_events': 'alert_events',
|
50
|
+
'notification_channel': 'notification_channel'
|
51
|
+
}
|
52
|
+
|
53
|
+
def __init__(self, name=None, cloud_id=None, project_id=None, user_id=None, alert_events=None, notification_channel=None, local_vars_configuration=None): # noqa: E501
|
54
|
+
"""CreateResourceAlert - a model defined in OpenAPI""" # noqa: E501
|
55
|
+
if local_vars_configuration is None:
|
56
|
+
local_vars_configuration = Configuration()
|
57
|
+
self.local_vars_configuration = local_vars_configuration
|
58
|
+
|
59
|
+
self._name = None
|
60
|
+
self._cloud_id = None
|
61
|
+
self._project_id = None
|
62
|
+
self._user_id = None
|
63
|
+
self._alert_events = None
|
64
|
+
self._notification_channel = None
|
65
|
+
self.discriminator = None
|
66
|
+
|
67
|
+
self.name = name
|
68
|
+
self.cloud_id = cloud_id
|
69
|
+
if project_id is not None:
|
70
|
+
self.project_id = project_id
|
71
|
+
if user_id is not None:
|
72
|
+
self.user_id = user_id
|
73
|
+
self.alert_events = alert_events
|
74
|
+
if notification_channel is not None:
|
75
|
+
self.notification_channel = notification_channel
|
76
|
+
|
77
|
+
@property
|
78
|
+
def name(self):
|
79
|
+
"""Gets the name of this CreateResourceAlert. # noqa: E501
|
80
|
+
|
81
|
+
The name of this resource alert. # noqa: E501
|
82
|
+
|
83
|
+
:return: The name of this CreateResourceAlert. # noqa: E501
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._name
|
87
|
+
|
88
|
+
@name.setter
|
89
|
+
def name(self, name):
|
90
|
+
"""Sets the name of this CreateResourceAlert.
|
91
|
+
|
92
|
+
The name of this resource alert. # noqa: E501
|
93
|
+
|
94
|
+
:param name: The name of this CreateResourceAlert. # noqa: E501
|
95
|
+
:type: str
|
96
|
+
"""
|
97
|
+
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
|
98
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
99
|
+
|
100
|
+
self._name = name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def cloud_id(self):
|
104
|
+
"""Gets the cloud_id of this CreateResourceAlert. # noqa: E501
|
105
|
+
|
106
|
+
The ID of the cloud that this resource alert applies to. # noqa: E501
|
107
|
+
|
108
|
+
:return: The cloud_id of this CreateResourceAlert. # noqa: E501
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._cloud_id
|
112
|
+
|
113
|
+
@cloud_id.setter
|
114
|
+
def cloud_id(self, cloud_id):
|
115
|
+
"""Sets the cloud_id of this CreateResourceAlert.
|
116
|
+
|
117
|
+
The ID of the cloud that this resource alert applies to. # noqa: E501
|
118
|
+
|
119
|
+
:param cloud_id: The cloud_id of this CreateResourceAlert. # noqa: E501
|
120
|
+
:type: str
|
121
|
+
"""
|
122
|
+
if self.local_vars_configuration.client_side_validation and cloud_id is None: # noqa: E501
|
123
|
+
raise ValueError("Invalid value for `cloud_id`, must not be `None`") # noqa: E501
|
124
|
+
|
125
|
+
self._cloud_id = cloud_id
|
126
|
+
|
127
|
+
@property
|
128
|
+
def project_id(self):
|
129
|
+
"""Gets the project_id of this CreateResourceAlert. # noqa: E501
|
130
|
+
|
131
|
+
The ID of the project that this resource alert applies to. # noqa: E501
|
132
|
+
|
133
|
+
:return: The project_id of this CreateResourceAlert. # noqa: E501
|
134
|
+
:rtype: str
|
135
|
+
"""
|
136
|
+
return self._project_id
|
137
|
+
|
138
|
+
@project_id.setter
|
139
|
+
def project_id(self, project_id):
|
140
|
+
"""Sets the project_id of this CreateResourceAlert.
|
141
|
+
|
142
|
+
The ID of the project that this resource alert applies to. # noqa: E501
|
143
|
+
|
144
|
+
:param project_id: The project_id of this CreateResourceAlert. # noqa: E501
|
145
|
+
:type: str
|
146
|
+
"""
|
147
|
+
|
148
|
+
self._project_id = project_id
|
149
|
+
|
150
|
+
@property
|
151
|
+
def user_id(self):
|
152
|
+
"""Gets the user_id of this CreateResourceAlert. # noqa: E501
|
153
|
+
|
154
|
+
The ID of the user that this resource alert applies to. # noqa: E501
|
155
|
+
|
156
|
+
:return: The user_id of this CreateResourceAlert. # noqa: E501
|
157
|
+
:rtype: str
|
158
|
+
"""
|
159
|
+
return self._user_id
|
160
|
+
|
161
|
+
@user_id.setter
|
162
|
+
def user_id(self, user_id):
|
163
|
+
"""Sets the user_id of this CreateResourceAlert.
|
164
|
+
|
165
|
+
The ID of the user that this resource alert applies to. # noqa: E501
|
166
|
+
|
167
|
+
:param user_id: The user_id of this CreateResourceAlert. # noqa: E501
|
168
|
+
:type: str
|
169
|
+
"""
|
170
|
+
|
171
|
+
self._user_id = user_id
|
172
|
+
|
173
|
+
@property
|
174
|
+
def alert_events(self):
|
175
|
+
"""Gets the alert_events of this CreateResourceAlert. # noqa: E501
|
176
|
+
|
177
|
+
The event types to alert on. # noqa: E501
|
178
|
+
|
179
|
+
:return: The alert_events of this CreateResourceAlert. # noqa: E501
|
180
|
+
:rtype: list[ResourceAlertEventType]
|
181
|
+
"""
|
182
|
+
return self._alert_events
|
183
|
+
|
184
|
+
@alert_events.setter
|
185
|
+
def alert_events(self, alert_events):
|
186
|
+
"""Sets the alert_events of this CreateResourceAlert.
|
187
|
+
|
188
|
+
The event types to alert on. # noqa: E501
|
189
|
+
|
190
|
+
:param alert_events: The alert_events of this CreateResourceAlert. # noqa: E501
|
191
|
+
:type: list[ResourceAlertEventType]
|
192
|
+
"""
|
193
|
+
if self.local_vars_configuration.client_side_validation and alert_events is None: # noqa: E501
|
194
|
+
raise ValueError("Invalid value for `alert_events`, must not be `None`") # noqa: E501
|
195
|
+
|
196
|
+
self._alert_events = alert_events
|
197
|
+
|
198
|
+
@property
|
199
|
+
def notification_channel(self):
|
200
|
+
"""Gets the notification_channel of this CreateResourceAlert. # noqa: E501
|
201
|
+
|
202
|
+
The notification channel that this resource alert sends notification to. # noqa: E501
|
203
|
+
|
204
|
+
:return: The notification_channel of this CreateResourceAlert. # noqa: E501
|
205
|
+
:rtype: CreateNotificationChannelRecord
|
206
|
+
"""
|
207
|
+
return self._notification_channel
|
208
|
+
|
209
|
+
@notification_channel.setter
|
210
|
+
def notification_channel(self, notification_channel):
|
211
|
+
"""Sets the notification_channel of this CreateResourceAlert.
|
212
|
+
|
213
|
+
The notification channel that this resource alert sends notification to. # noqa: E501
|
214
|
+
|
215
|
+
:param notification_channel: The notification_channel of this CreateResourceAlert. # noqa: E501
|
216
|
+
:type: CreateNotificationChannelRecord
|
217
|
+
"""
|
218
|
+
|
219
|
+
self._notification_channel = notification_channel
|
220
|
+
|
221
|
+
def to_dict(self):
|
222
|
+
"""Returns the model properties as a dict"""
|
223
|
+
result = {}
|
224
|
+
|
225
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
226
|
+
value = getattr(self, attr)
|
227
|
+
if isinstance(value, list):
|
228
|
+
result[attr] = list(map(
|
229
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
230
|
+
value
|
231
|
+
))
|
232
|
+
elif hasattr(value, "to_dict"):
|
233
|
+
result[attr] = value.to_dict()
|
234
|
+
elif isinstance(value, dict):
|
235
|
+
result[attr] = dict(map(
|
236
|
+
lambda item: (item[0], item[1].to_dict())
|
237
|
+
if hasattr(item[1], "to_dict") else item,
|
238
|
+
value.items()
|
239
|
+
))
|
240
|
+
else:
|
241
|
+
result[attr] = value
|
242
|
+
|
243
|
+
return result
|
244
|
+
|
245
|
+
def to_str(self):
|
246
|
+
"""Returns the string representation of the model"""
|
247
|
+
return pprint.pformat(self.to_dict())
|
248
|
+
|
249
|
+
def __repr__(self):
|
250
|
+
"""For `print` and `pprint`"""
|
251
|
+
return self.to_str()
|
252
|
+
|
253
|
+
def __eq__(self, other):
|
254
|
+
"""Returns true if both objects are equal"""
|
255
|
+
if not isinstance(other, CreateResourceAlert):
|
256
|
+
return False
|
257
|
+
|
258
|
+
return self.to_dict() == other.to_dict()
|
259
|
+
|
260
|
+
def __ne__(self, other):
|
261
|
+
"""Returns true if both objects are not equal"""
|
262
|
+
if not isinstance(other, CreateResourceAlert):
|
263
|
+
return True
|
264
|
+
|
265
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,234 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Managed Ray API
|
5
|
+
|
6
|
+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: 0.1.0
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from openapi_client.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class ListResourceAlertsQuery(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'name': 'TextQuery',
|
37
|
+
'cloud_id': 'str',
|
38
|
+
'creator_id': 'str',
|
39
|
+
'is_enabled': 'bool',
|
40
|
+
'paging': 'PageQuery'
|
41
|
+
}
|
42
|
+
|
43
|
+
attribute_map = {
|
44
|
+
'name': 'name',
|
45
|
+
'cloud_id': 'cloud_id',
|
46
|
+
'creator_id': 'creator_id',
|
47
|
+
'is_enabled': 'is_enabled',
|
48
|
+
'paging': 'paging'
|
49
|
+
}
|
50
|
+
|
51
|
+
def __init__(self, name=None, cloud_id=None, creator_id=None, is_enabled=None, paging=None, local_vars_configuration=None): # noqa: E501
|
52
|
+
"""ListResourceAlertsQuery - a model defined in OpenAPI""" # noqa: E501
|
53
|
+
if local_vars_configuration is None:
|
54
|
+
local_vars_configuration = Configuration()
|
55
|
+
self.local_vars_configuration = local_vars_configuration
|
56
|
+
|
57
|
+
self._name = None
|
58
|
+
self._cloud_id = None
|
59
|
+
self._creator_id = None
|
60
|
+
self._is_enabled = None
|
61
|
+
self._paging = None
|
62
|
+
self.discriminator = None
|
63
|
+
|
64
|
+
if name is not None:
|
65
|
+
self.name = name
|
66
|
+
if cloud_id is not None:
|
67
|
+
self.cloud_id = cloud_id
|
68
|
+
if creator_id is not None:
|
69
|
+
self.creator_id = creator_id
|
70
|
+
if is_enabled is not None:
|
71
|
+
self.is_enabled = is_enabled
|
72
|
+
if paging is not None:
|
73
|
+
self.paging = paging
|
74
|
+
|
75
|
+
@property
|
76
|
+
def name(self):
|
77
|
+
"""Gets the name of this ListResourceAlertsQuery. # noqa: E501
|
78
|
+
|
79
|
+
The name filter for the resource alerts. # noqa: E501
|
80
|
+
|
81
|
+
:return: The name of this ListResourceAlertsQuery. # noqa: E501
|
82
|
+
:rtype: TextQuery
|
83
|
+
"""
|
84
|
+
return self._name
|
85
|
+
|
86
|
+
@name.setter
|
87
|
+
def name(self, name):
|
88
|
+
"""Sets the name of this ListResourceAlertsQuery.
|
89
|
+
|
90
|
+
The name filter for the resource alerts. # noqa: E501
|
91
|
+
|
92
|
+
:param name: The name of this ListResourceAlertsQuery. # noqa: E501
|
93
|
+
:type: TextQuery
|
94
|
+
"""
|
95
|
+
|
96
|
+
self._name = name
|
97
|
+
|
98
|
+
@property
|
99
|
+
def cloud_id(self):
|
100
|
+
"""Gets the cloud_id of this ListResourceAlertsQuery. # noqa: E501
|
101
|
+
|
102
|
+
The cloud ID filter for the resource alerts. # noqa: E501
|
103
|
+
|
104
|
+
:return: The cloud_id of this ListResourceAlertsQuery. # noqa: E501
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._cloud_id
|
108
|
+
|
109
|
+
@cloud_id.setter
|
110
|
+
def cloud_id(self, cloud_id):
|
111
|
+
"""Sets the cloud_id of this ListResourceAlertsQuery.
|
112
|
+
|
113
|
+
The cloud ID filter for the resource alerts. # noqa: E501
|
114
|
+
|
115
|
+
:param cloud_id: The cloud_id of this ListResourceAlertsQuery. # noqa: E501
|
116
|
+
:type: str
|
117
|
+
"""
|
118
|
+
|
119
|
+
self._cloud_id = cloud_id
|
120
|
+
|
121
|
+
@property
|
122
|
+
def creator_id(self):
|
123
|
+
"""Gets the creator_id of this ListResourceAlertsQuery. # noqa: E501
|
124
|
+
|
125
|
+
The creator ID filter for the resource alerts. # noqa: E501
|
126
|
+
|
127
|
+
:return: The creator_id of this ListResourceAlertsQuery. # noqa: E501
|
128
|
+
:rtype: str
|
129
|
+
"""
|
130
|
+
return self._creator_id
|
131
|
+
|
132
|
+
@creator_id.setter
|
133
|
+
def creator_id(self, creator_id):
|
134
|
+
"""Sets the creator_id of this ListResourceAlertsQuery.
|
135
|
+
|
136
|
+
The creator ID filter for the resource alerts. # noqa: E501
|
137
|
+
|
138
|
+
:param creator_id: The creator_id of this ListResourceAlertsQuery. # noqa: E501
|
139
|
+
:type: str
|
140
|
+
"""
|
141
|
+
|
142
|
+
self._creator_id = creator_id
|
143
|
+
|
144
|
+
@property
|
145
|
+
def is_enabled(self):
|
146
|
+
"""Gets the is_enabled of this ListResourceAlertsQuery. # noqa: E501
|
147
|
+
|
148
|
+
The is_enabled filter for the resource alerts. # noqa: E501
|
149
|
+
|
150
|
+
:return: The is_enabled of this ListResourceAlertsQuery. # noqa: E501
|
151
|
+
:rtype: bool
|
152
|
+
"""
|
153
|
+
return self._is_enabled
|
154
|
+
|
155
|
+
@is_enabled.setter
|
156
|
+
def is_enabled(self, is_enabled):
|
157
|
+
"""Sets the is_enabled of this ListResourceAlertsQuery.
|
158
|
+
|
159
|
+
The is_enabled filter for the resource alerts. # noqa: E501
|
160
|
+
|
161
|
+
:param is_enabled: The is_enabled of this ListResourceAlertsQuery. # noqa: E501
|
162
|
+
:type: bool
|
163
|
+
"""
|
164
|
+
|
165
|
+
self._is_enabled = is_enabled
|
166
|
+
|
167
|
+
@property
|
168
|
+
def paging(self):
|
169
|
+
"""Gets the paging of this ListResourceAlertsQuery. # noqa: E501
|
170
|
+
|
171
|
+
Pagination information. # noqa: E501
|
172
|
+
|
173
|
+
:return: The paging of this ListResourceAlertsQuery. # noqa: E501
|
174
|
+
:rtype: PageQuery
|
175
|
+
"""
|
176
|
+
return self._paging
|
177
|
+
|
178
|
+
@paging.setter
|
179
|
+
def paging(self, paging):
|
180
|
+
"""Sets the paging of this ListResourceAlertsQuery.
|
181
|
+
|
182
|
+
Pagination information. # noqa: E501
|
183
|
+
|
184
|
+
:param paging: The paging of this ListResourceAlertsQuery. # noqa: E501
|
185
|
+
:type: PageQuery
|
186
|
+
"""
|
187
|
+
|
188
|
+
self._paging = paging
|
189
|
+
|
190
|
+
def to_dict(self):
|
191
|
+
"""Returns the model properties as a dict"""
|
192
|
+
result = {}
|
193
|
+
|
194
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
195
|
+
value = getattr(self, attr)
|
196
|
+
if isinstance(value, list):
|
197
|
+
result[attr] = list(map(
|
198
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
199
|
+
value
|
200
|
+
))
|
201
|
+
elif hasattr(value, "to_dict"):
|
202
|
+
result[attr] = value.to_dict()
|
203
|
+
elif isinstance(value, dict):
|
204
|
+
result[attr] = dict(map(
|
205
|
+
lambda item: (item[0], item[1].to_dict())
|
206
|
+
if hasattr(item[1], "to_dict") else item,
|
207
|
+
value.items()
|
208
|
+
))
|
209
|
+
else:
|
210
|
+
result[attr] = value
|
211
|
+
|
212
|
+
return result
|
213
|
+
|
214
|
+
def to_str(self):
|
215
|
+
"""Returns the string representation of the model"""
|
216
|
+
return pprint.pformat(self.to_dict())
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print` and `pprint`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, ListResourceAlertsQuery):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.to_dict() == other.to_dict()
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
if not isinstance(other, ListResourceAlertsQuery):
|
232
|
+
return True
|
233
|
+
|
234
|
+
return self.to_dict() != other.to_dict()
|
@@ -46,10 +46,10 @@ class Project(object):
|
|
46
46
|
'directory_name': 'str',
|
47
47
|
'cloud': 'str',
|
48
48
|
'last_used_cloud_id': 'str',
|
49
|
-
'active_sessions': 'int',
|
50
|
-
'last_activity_at': 'datetime',
|
51
49
|
'owners': 'list[MiniUser]',
|
52
|
-
'is_default': 'bool'
|
50
|
+
'is_default': 'bool',
|
51
|
+
'active_sessions': 'int',
|
52
|
+
'last_activity_at': 'datetime'
|
53
53
|
}
|
54
54
|
|
55
55
|
attribute_map = {
|
@@ -66,13 +66,13 @@ class Project(object):
|
|
66
66
|
'directory_name': 'directory_name',
|
67
67
|
'cloud': 'cloud',
|
68
68
|
'last_used_cloud_id': 'last_used_cloud_id',
|
69
|
-
'active_sessions': 'active_sessions',
|
70
|
-
'last_activity_at': 'last_activity_at',
|
71
69
|
'owners': 'owners',
|
72
|
-
'is_default': 'is_default'
|
70
|
+
'is_default': 'is_default',
|
71
|
+
'active_sessions': 'active_sessions',
|
72
|
+
'last_activity_at': 'last_activity_at'
|
73
73
|
}
|
74
74
|
|
75
|
-
def __init__(self, name=None, description=None, cloud_id=None, initial_cluster_config=None, parent_cloud_id=None, id=None, created_at=None, creator_id=None, is_owner=None, is_read_only=None, directory_name=None, cloud=None, last_used_cloud_id=None,
|
75
|
+
def __init__(self, name=None, description=None, cloud_id=None, initial_cluster_config=None, parent_cloud_id=None, id=None, created_at=None, creator_id=None, is_owner=None, is_read_only=None, directory_name=None, cloud=None, last_used_cloud_id=None, owners=[], is_default=None, active_sessions=0, last_activity_at=None, local_vars_configuration=None): # noqa: E501
|
76
76
|
"""Project - a model defined in OpenAPI""" # noqa: E501
|
77
77
|
if local_vars_configuration is None:
|
78
78
|
local_vars_configuration = Configuration()
|
@@ -91,10 +91,10 @@ class Project(object):
|
|
91
91
|
self._directory_name = None
|
92
92
|
self._cloud = None
|
93
93
|
self._last_used_cloud_id = None
|
94
|
-
self._active_sessions = None
|
95
|
-
self._last_activity_at = None
|
96
94
|
self._owners = None
|
97
95
|
self._is_default = None
|
96
|
+
self._active_sessions = None
|
97
|
+
self._last_activity_at = None
|
98
98
|
self.discriminator = None
|
99
99
|
|
100
100
|
self.name = name
|
@@ -116,11 +116,13 @@ class Project(object):
|
|
116
116
|
self.cloud = cloud
|
117
117
|
if last_used_cloud_id is not None:
|
118
118
|
self.last_used_cloud_id = last_used_cloud_id
|
119
|
-
self.active_sessions = active_sessions
|
120
|
-
self.last_activity_at = last_activity_at
|
121
119
|
if owners is not None:
|
122
120
|
self.owners = owners
|
123
121
|
self.is_default = is_default
|
122
|
+
if active_sessions is not None:
|
123
|
+
self.active_sessions = active_sessions
|
124
|
+
if last_activity_at is not None:
|
125
|
+
self.last_activity_at = last_activity_at
|
124
126
|
|
125
127
|
@property
|
126
128
|
def name(self):
|
@@ -409,56 +411,6 @@ class Project(object):
|
|
409
411
|
|
410
412
|
self._last_used_cloud_id = last_used_cloud_id
|
411
413
|
|
412
|
-
@property
|
413
|
-
def active_sessions(self):
|
414
|
-
"""Gets the active_sessions of this Project. # noqa: E501
|
415
|
-
|
416
|
-
Read only. Number of active sessions for this project. # noqa: E501
|
417
|
-
|
418
|
-
:return: The active_sessions of this Project. # noqa: E501
|
419
|
-
:rtype: int
|
420
|
-
"""
|
421
|
-
return self._active_sessions
|
422
|
-
|
423
|
-
@active_sessions.setter
|
424
|
-
def active_sessions(self, active_sessions):
|
425
|
-
"""Sets the active_sessions of this Project.
|
426
|
-
|
427
|
-
Read only. Number of active sessions for this project. # noqa: E501
|
428
|
-
|
429
|
-
:param active_sessions: The active_sessions of this Project. # noqa: E501
|
430
|
-
:type: int
|
431
|
-
"""
|
432
|
-
if self.local_vars_configuration.client_side_validation and active_sessions is None: # noqa: E501
|
433
|
-
raise ValueError("Invalid value for `active_sessions`, must not be `None`") # noqa: E501
|
434
|
-
|
435
|
-
self._active_sessions = active_sessions
|
436
|
-
|
437
|
-
@property
|
438
|
-
def last_activity_at(self):
|
439
|
-
"""Gets the last_activity_at of this Project. # noqa: E501
|
440
|
-
|
441
|
-
Read only. The most recent activity for this project. This is based on the most recently created sessions # noqa: E501
|
442
|
-
|
443
|
-
:return: The last_activity_at of this Project. # noqa: E501
|
444
|
-
:rtype: datetime
|
445
|
-
"""
|
446
|
-
return self._last_activity_at
|
447
|
-
|
448
|
-
@last_activity_at.setter
|
449
|
-
def last_activity_at(self, last_activity_at):
|
450
|
-
"""Sets the last_activity_at of this Project.
|
451
|
-
|
452
|
-
Read only. The most recent activity for this project. This is based on the most recently created sessions # noqa: E501
|
453
|
-
|
454
|
-
:param last_activity_at: The last_activity_at of this Project. # noqa: E501
|
455
|
-
:type: datetime
|
456
|
-
"""
|
457
|
-
if self.local_vars_configuration.client_side_validation and last_activity_at is None: # noqa: E501
|
458
|
-
raise ValueError("Invalid value for `last_activity_at`, must not be `None`") # noqa: E501
|
459
|
-
|
460
|
-
self._last_activity_at = last_activity_at
|
461
|
-
|
462
414
|
@property
|
463
415
|
def owners(self):
|
464
416
|
"""Gets the owners of this Project. # noqa: E501
|
@@ -507,6 +459,52 @@ class Project(object):
|
|
507
459
|
|
508
460
|
self._is_default = is_default
|
509
461
|
|
462
|
+
@property
|
463
|
+
def active_sessions(self):
|
464
|
+
"""Gets the active_sessions of this Project. # noqa: E501
|
465
|
+
|
466
|
+
DEPRECATED. Number of active sessions for this project. # noqa: E501
|
467
|
+
|
468
|
+
:return: The active_sessions of this Project. # noqa: E501
|
469
|
+
:rtype: int
|
470
|
+
"""
|
471
|
+
return self._active_sessions
|
472
|
+
|
473
|
+
@active_sessions.setter
|
474
|
+
def active_sessions(self, active_sessions):
|
475
|
+
"""Sets the active_sessions of this Project.
|
476
|
+
|
477
|
+
DEPRECATED. Number of active sessions for this project. # noqa: E501
|
478
|
+
|
479
|
+
:param active_sessions: The active_sessions of this Project. # noqa: E501
|
480
|
+
:type: int
|
481
|
+
"""
|
482
|
+
|
483
|
+
self._active_sessions = active_sessions
|
484
|
+
|
485
|
+
@property
|
486
|
+
def last_activity_at(self):
|
487
|
+
"""Gets the last_activity_at of this Project. # noqa: E501
|
488
|
+
|
489
|
+
DEPRECATED. The most recent activity for this project. This is based on the most recently created sessions # noqa: E501
|
490
|
+
|
491
|
+
:return: The last_activity_at of this Project. # noqa: E501
|
492
|
+
:rtype: datetime
|
493
|
+
"""
|
494
|
+
return self._last_activity_at
|
495
|
+
|
496
|
+
@last_activity_at.setter
|
497
|
+
def last_activity_at(self, last_activity_at):
|
498
|
+
"""Sets the last_activity_at of this Project.
|
499
|
+
|
500
|
+
DEPRECATED. The most recent activity for this project. This is based on the most recently created sessions # noqa: E501
|
501
|
+
|
502
|
+
:param last_activity_at: The last_activity_at of this Project. # noqa: E501
|
503
|
+
:type: datetime
|
504
|
+
"""
|
505
|
+
|
506
|
+
self._last_activity_at = last_activity_at
|
507
|
+
|
510
508
|
def to_dict(self):
|
511
509
|
"""Returns the model properties as a dict"""
|
512
510
|
result = {}
|
@@ -28,11 +28,9 @@ class ProjectsSortField(object):
|
|
28
28
|
"""
|
29
29
|
allowed enum values
|
30
30
|
"""
|
31
|
-
ACTIVE_CLUSTERS = "ACTIVE_CLUSTERS"
|
32
|
-
LAST_UPDATED_AT = "LAST_UPDATED_AT"
|
33
31
|
NAME = "NAME"
|
34
32
|
|
35
|
-
allowable_values = [
|
33
|
+
allowable_values = [NAME] # noqa: E501
|
36
34
|
|
37
35
|
"""
|
38
36
|
Attributes:
|