anyscale 0.26.9__py3-none-any.whl → 0.26.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/anyscale_halo/LICENSE +21 -0
- anyscale/anyscale_halo/README.md +1 -0
- anyscale/anyscale_halo/__init__.py +10 -0
- anyscale/anyscale_halo/_utils.py +148 -0
- anyscale/anyscale_halo/cursor.py +48 -0
- anyscale/anyscale_halo/halo.py +609 -0
- anyscale/anyscale_halo/halo_notebook.py +122 -0
- anyscale/cli_logger.py +1 -1
- anyscale/client/README.md +0 -35
- anyscale/client/openapi_client/__init__.py +0 -28
- anyscale/client/openapi_client/api/default_api.py +107 -878
- anyscale/client/openapi_client/models/__init__.py +0 -28
- anyscale/version.py +1 -1
- {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/METADATA +5 -2
- {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/RECORD +20 -41
- anyscale/client/openapi_client/models/card.py +0 -181
- anyscale/client/openapi_client/models/card_id.py +0 -108
- anyscale/client/openapi_client/models/card_list_response.py +0 -147
- anyscale/client/openapi_client/models/cluster_features.py +0 -152
- anyscale/client/openapi_client/models/clusterfeatures_response.py +0 -121
- anyscale/client/openapi_client/models/dismissal_type.py +0 -100
- anyscale/client/openapi_client/models/feature_compatibility.py +0 -152
- anyscale/client/openapi_client/models/onboarding_user_cards_query.py +0 -122
- anyscale/client/openapi_client/models/project_collaborators_put_message.py +0 -121
- anyscale/client/openapi_client/models/project_create_message.py +0 -148
- anyscale/client/openapi_client/models/project_delete_message.py +0 -121
- anyscale/client/openapi_client/models/project_patch_message.py +0 -121
- anyscale/client/openapi_client/models/session_autosync_sessions_update_message.py +0 -121
- anyscale/client/openapi_client/models/session_create_message.py +0 -148
- anyscale/client/openapi_client/models/session_delete_message.py +0 -121
- anyscale/client/openapi_client/models/session_execute_message.py +0 -121
- anyscale/client/openapi_client/models/session_finish_command_message.py +0 -175
- anyscale/client/openapi_client/models/session_kill_command_message.py +0 -121
- anyscale/client/openapi_client/models/session_patch_message.py +0 -121
- anyscale/client/openapi_client/models/session_state_change_message.py +0 -121
- anyscale/client/openapi_client/models/snapshot_create_message.py +0 -148
- anyscale/client/openapi_client/models/snapshot_delete_message.py +0 -148
- anyscale/client/openapi_client/models/snapshot_patch_message.py +0 -148
- anyscale/client/openapi_client/models/socket_message_schemas.py +0 -499
- anyscale/client/openapi_client/models/socket_message_types.py +0 -113
- anyscale/client/openapi_client/models/socketmessageschemas_response.py +0 -121
- anyscale/client/openapi_client/models/socketmessagetypes_response.py +0 -121
- anyscale/client/openapi_client/models/visibility.py +0 -100
- {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/LICENSE +0 -0
- {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/NOTICE +0 -0
- {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/WHEEL +0 -0
- {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.9.dist-info → anyscale-0.26.11.dist-info}/top_level.txt +0 -0
@@ -1,147 +0,0 @@
|
|
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 CardListResponse(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
|
-
'results': 'list[Card]',
|
37
|
-
'metadata': 'ListResponseMetadata'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'results': 'results',
|
42
|
-
'metadata': 'metadata'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, results=None, metadata=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""CardListResponse - a model defined in OpenAPI""" # noqa: E501
|
47
|
-
if local_vars_configuration is None:
|
48
|
-
local_vars_configuration = Configuration()
|
49
|
-
self.local_vars_configuration = local_vars_configuration
|
50
|
-
|
51
|
-
self._results = None
|
52
|
-
self._metadata = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.results = results
|
56
|
-
if metadata is not None:
|
57
|
-
self.metadata = metadata
|
58
|
-
|
59
|
-
@property
|
60
|
-
def results(self):
|
61
|
-
"""Gets the results of this CardListResponse. # noqa: E501
|
62
|
-
|
63
|
-
|
64
|
-
:return: The results of this CardListResponse. # noqa: E501
|
65
|
-
:rtype: list[Card]
|
66
|
-
"""
|
67
|
-
return self._results
|
68
|
-
|
69
|
-
@results.setter
|
70
|
-
def results(self, results):
|
71
|
-
"""Sets the results of this CardListResponse.
|
72
|
-
|
73
|
-
|
74
|
-
:param results: The results of this CardListResponse. # noqa: E501
|
75
|
-
:type: list[Card]
|
76
|
-
"""
|
77
|
-
if self.local_vars_configuration.client_side_validation and results is None: # noqa: E501
|
78
|
-
raise ValueError("Invalid value for `results`, must not be `None`") # noqa: E501
|
79
|
-
|
80
|
-
self._results = results
|
81
|
-
|
82
|
-
@property
|
83
|
-
def metadata(self):
|
84
|
-
"""Gets the metadata of this CardListResponse. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The metadata of this CardListResponse. # noqa: E501
|
88
|
-
:rtype: ListResponseMetadata
|
89
|
-
"""
|
90
|
-
return self._metadata
|
91
|
-
|
92
|
-
@metadata.setter
|
93
|
-
def metadata(self, metadata):
|
94
|
-
"""Sets the metadata of this CardListResponse.
|
95
|
-
|
96
|
-
|
97
|
-
:param metadata: The metadata of this CardListResponse. # noqa: E501
|
98
|
-
:type: ListResponseMetadata
|
99
|
-
"""
|
100
|
-
|
101
|
-
self._metadata = metadata
|
102
|
-
|
103
|
-
def to_dict(self):
|
104
|
-
"""Returns the model properties as a dict"""
|
105
|
-
result = {}
|
106
|
-
|
107
|
-
for attr, _ in six.iteritems(self.openapi_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, CardListResponse):
|
138
|
-
return False
|
139
|
-
|
140
|
-
return self.to_dict() == other.to_dict()
|
141
|
-
|
142
|
-
def __ne__(self, other):
|
143
|
-
"""Returns true if both objects are not equal"""
|
144
|
-
if not isinstance(other, CardListResponse):
|
145
|
-
return True
|
146
|
-
|
147
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,152 +0,0 @@
|
|
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 ClusterFeatures(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
|
-
'version': 'str',
|
37
|
-
'serve_deployment': 'FeatureCompatibility'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'version': 'version',
|
42
|
-
'serve_deployment': 'serve_deployment'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, version=None, serve_deployment=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""ClusterFeatures - a model defined in OpenAPI""" # noqa: E501
|
47
|
-
if local_vars_configuration is None:
|
48
|
-
local_vars_configuration = Configuration()
|
49
|
-
self.local_vars_configuration = local_vars_configuration
|
50
|
-
|
51
|
-
self._version = None
|
52
|
-
self._serve_deployment = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.version = version
|
56
|
-
self.serve_deployment = serve_deployment
|
57
|
-
|
58
|
-
@property
|
59
|
-
def version(self):
|
60
|
-
"""Gets the version of this ClusterFeatures. # noqa: E501
|
61
|
-
|
62
|
-
The current ray version # noqa: E501
|
63
|
-
|
64
|
-
:return: The version of this ClusterFeatures. # noqa: E501
|
65
|
-
:rtype: str
|
66
|
-
"""
|
67
|
-
return self._version
|
68
|
-
|
69
|
-
@version.setter
|
70
|
-
def version(self, version):
|
71
|
-
"""Sets the version of this ClusterFeatures.
|
72
|
-
|
73
|
-
The current ray version # noqa: E501
|
74
|
-
|
75
|
-
:param version: The version of this ClusterFeatures. # noqa: E501
|
76
|
-
:type: str
|
77
|
-
"""
|
78
|
-
if self.local_vars_configuration.client_side_validation and version is None: # noqa: E501
|
79
|
-
raise ValueError("Invalid value for `version`, must not be `None`") # noqa: E501
|
80
|
-
|
81
|
-
self._version = version
|
82
|
-
|
83
|
-
@property
|
84
|
-
def serve_deployment(self):
|
85
|
-
"""Gets the serve_deployment of this ClusterFeatures. # noqa: E501
|
86
|
-
|
87
|
-
Check the compatibility of the new serve deployment UI with the ray version # noqa: E501
|
88
|
-
|
89
|
-
:return: The serve_deployment of this ClusterFeatures. # noqa: E501
|
90
|
-
:rtype: FeatureCompatibility
|
91
|
-
"""
|
92
|
-
return self._serve_deployment
|
93
|
-
|
94
|
-
@serve_deployment.setter
|
95
|
-
def serve_deployment(self, serve_deployment):
|
96
|
-
"""Sets the serve_deployment of this ClusterFeatures.
|
97
|
-
|
98
|
-
Check the compatibility of the new serve deployment UI with the ray version # noqa: E501
|
99
|
-
|
100
|
-
:param serve_deployment: The serve_deployment of this ClusterFeatures. # noqa: E501
|
101
|
-
:type: FeatureCompatibility
|
102
|
-
"""
|
103
|
-
if self.local_vars_configuration.client_side_validation and serve_deployment is None: # noqa: E501
|
104
|
-
raise ValueError("Invalid value for `serve_deployment`, must not be `None`") # noqa: E501
|
105
|
-
|
106
|
-
self._serve_deployment = serve_deployment
|
107
|
-
|
108
|
-
def to_dict(self):
|
109
|
-
"""Returns the model properties as a dict"""
|
110
|
-
result = {}
|
111
|
-
|
112
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
113
|
-
value = getattr(self, attr)
|
114
|
-
if isinstance(value, list):
|
115
|
-
result[attr] = list(map(
|
116
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
117
|
-
value
|
118
|
-
))
|
119
|
-
elif hasattr(value, "to_dict"):
|
120
|
-
result[attr] = value.to_dict()
|
121
|
-
elif isinstance(value, dict):
|
122
|
-
result[attr] = dict(map(
|
123
|
-
lambda item: (item[0], item[1].to_dict())
|
124
|
-
if hasattr(item[1], "to_dict") else item,
|
125
|
-
value.items()
|
126
|
-
))
|
127
|
-
else:
|
128
|
-
result[attr] = value
|
129
|
-
|
130
|
-
return result
|
131
|
-
|
132
|
-
def to_str(self):
|
133
|
-
"""Returns the string representation of the model"""
|
134
|
-
return pprint.pformat(self.to_dict())
|
135
|
-
|
136
|
-
def __repr__(self):
|
137
|
-
"""For `print` and `pprint`"""
|
138
|
-
return self.to_str()
|
139
|
-
|
140
|
-
def __eq__(self, other):
|
141
|
-
"""Returns true if both objects are equal"""
|
142
|
-
if not isinstance(other, ClusterFeatures):
|
143
|
-
return False
|
144
|
-
|
145
|
-
return self.to_dict() == other.to_dict()
|
146
|
-
|
147
|
-
def __ne__(self, other):
|
148
|
-
"""Returns true if both objects are not equal"""
|
149
|
-
if not isinstance(other, ClusterFeatures):
|
150
|
-
return True
|
151
|
-
|
152
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,121 +0,0 @@
|
|
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 ClusterfeaturesResponse(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
|
-
'result': 'ClusterFeatures'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""ClusterfeaturesResponse - a model defined in OpenAPI""" # noqa: E501
|
45
|
-
if local_vars_configuration is None:
|
46
|
-
local_vars_configuration = Configuration()
|
47
|
-
self.local_vars_configuration = local_vars_configuration
|
48
|
-
|
49
|
-
self._result = None
|
50
|
-
self.discriminator = None
|
51
|
-
|
52
|
-
self.result = result
|
53
|
-
|
54
|
-
@property
|
55
|
-
def result(self):
|
56
|
-
"""Gets the result of this ClusterfeaturesResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this ClusterfeaturesResponse. # noqa: E501
|
60
|
-
:rtype: ClusterFeatures
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this ClusterfeaturesResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this ClusterfeaturesResponse. # noqa: E501
|
70
|
-
:type: ClusterFeatures
|
71
|
-
"""
|
72
|
-
if self.local_vars_configuration.client_side_validation and result is None: # noqa: E501
|
73
|
-
raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
|
74
|
-
|
75
|
-
self._result = result
|
76
|
-
|
77
|
-
def to_dict(self):
|
78
|
-
"""Returns the model properties as a dict"""
|
79
|
-
result = {}
|
80
|
-
|
81
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
82
|
-
value = getattr(self, attr)
|
83
|
-
if isinstance(value, list):
|
84
|
-
result[attr] = list(map(
|
85
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
86
|
-
value
|
87
|
-
))
|
88
|
-
elif hasattr(value, "to_dict"):
|
89
|
-
result[attr] = value.to_dict()
|
90
|
-
elif isinstance(value, dict):
|
91
|
-
result[attr] = dict(map(
|
92
|
-
lambda item: (item[0], item[1].to_dict())
|
93
|
-
if hasattr(item[1], "to_dict") else item,
|
94
|
-
value.items()
|
95
|
-
))
|
96
|
-
else:
|
97
|
-
result[attr] = value
|
98
|
-
|
99
|
-
return result
|
100
|
-
|
101
|
-
def to_str(self):
|
102
|
-
"""Returns the string representation of the model"""
|
103
|
-
return pprint.pformat(self.to_dict())
|
104
|
-
|
105
|
-
def __repr__(self):
|
106
|
-
"""For `print` and `pprint`"""
|
107
|
-
return self.to_str()
|
108
|
-
|
109
|
-
def __eq__(self, other):
|
110
|
-
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other, ClusterfeaturesResponse):
|
112
|
-
return False
|
113
|
-
|
114
|
-
return self.to_dict() == other.to_dict()
|
115
|
-
|
116
|
-
def __ne__(self, other):
|
117
|
-
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other, ClusterfeaturesResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,100 +0,0 @@
|
|
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 DismissalType(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
|
-
allowed enum values
|
30
|
-
"""
|
31
|
-
MANUAL = "manual"
|
32
|
-
AUTOMATIC = "automatic"
|
33
|
-
|
34
|
-
allowable_values = [MANUAL, AUTOMATIC] # noqa: E501
|
35
|
-
|
36
|
-
"""
|
37
|
-
Attributes:
|
38
|
-
openapi_types (dict): The key is attribute name
|
39
|
-
and the value is attribute type.
|
40
|
-
attribute_map (dict): The key is attribute name
|
41
|
-
and the value is json key in definition.
|
42
|
-
"""
|
43
|
-
openapi_types = {
|
44
|
-
}
|
45
|
-
|
46
|
-
attribute_map = {
|
47
|
-
}
|
48
|
-
|
49
|
-
def __init__(self, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""DismissalType - a model defined in OpenAPI""" # noqa: E501
|
51
|
-
if local_vars_configuration is None:
|
52
|
-
local_vars_configuration = Configuration()
|
53
|
-
self.local_vars_configuration = local_vars_configuration
|
54
|
-
self.discriminator = None
|
55
|
-
|
56
|
-
def to_dict(self):
|
57
|
-
"""Returns the model properties as a dict"""
|
58
|
-
result = {}
|
59
|
-
|
60
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
61
|
-
value = getattr(self, attr)
|
62
|
-
if isinstance(value, list):
|
63
|
-
result[attr] = list(map(
|
64
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
65
|
-
value
|
66
|
-
))
|
67
|
-
elif hasattr(value, "to_dict"):
|
68
|
-
result[attr] = value.to_dict()
|
69
|
-
elif isinstance(value, dict):
|
70
|
-
result[attr] = dict(map(
|
71
|
-
lambda item: (item[0], item[1].to_dict())
|
72
|
-
if hasattr(item[1], "to_dict") else item,
|
73
|
-
value.items()
|
74
|
-
))
|
75
|
-
else:
|
76
|
-
result[attr] = value
|
77
|
-
|
78
|
-
return result
|
79
|
-
|
80
|
-
def to_str(self):
|
81
|
-
"""Returns the string representation of the model"""
|
82
|
-
return pprint.pformat(self.to_dict())
|
83
|
-
|
84
|
-
def __repr__(self):
|
85
|
-
"""For `print` and `pprint`"""
|
86
|
-
return self.to_str()
|
87
|
-
|
88
|
-
def __eq__(self, other):
|
89
|
-
"""Returns true if both objects are equal"""
|
90
|
-
if not isinstance(other, DismissalType):
|
91
|
-
return False
|
92
|
-
|
93
|
-
return self.to_dict() == other.to_dict()
|
94
|
-
|
95
|
-
def __ne__(self, other):
|
96
|
-
"""Returns true if both objects are not equal"""
|
97
|
-
if not isinstance(other, DismissalType):
|
98
|
-
return True
|
99
|
-
|
100
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,152 +0,0 @@
|
|
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 FeatureCompatibility(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
|
-
'is_compatible': 'bool',
|
37
|
-
'compatibility_message': 'str'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'is_compatible': 'is_compatible',
|
42
|
-
'compatibility_message': 'compatibility_message'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, is_compatible=None, compatibility_message=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""FeatureCompatibility - a model defined in OpenAPI""" # noqa: E501
|
47
|
-
if local_vars_configuration is None:
|
48
|
-
local_vars_configuration = Configuration()
|
49
|
-
self.local_vars_configuration = local_vars_configuration
|
50
|
-
|
51
|
-
self._is_compatible = None
|
52
|
-
self._compatibility_message = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.is_compatible = is_compatible
|
56
|
-
self.compatibility_message = compatibility_message
|
57
|
-
|
58
|
-
@property
|
59
|
-
def is_compatible(self):
|
60
|
-
"""Gets the is_compatible of this FeatureCompatibility. # noqa: E501
|
61
|
-
|
62
|
-
Returns true if a feature is compatible with a ray version # noqa: E501
|
63
|
-
|
64
|
-
:return: The is_compatible of this FeatureCompatibility. # noqa: E501
|
65
|
-
:rtype: bool
|
66
|
-
"""
|
67
|
-
return self._is_compatible
|
68
|
-
|
69
|
-
@is_compatible.setter
|
70
|
-
def is_compatible(self, is_compatible):
|
71
|
-
"""Sets the is_compatible of this FeatureCompatibility.
|
72
|
-
|
73
|
-
Returns true if a feature is compatible with a ray version # noqa: E501
|
74
|
-
|
75
|
-
:param is_compatible: The is_compatible of this FeatureCompatibility. # noqa: E501
|
76
|
-
:type: bool
|
77
|
-
"""
|
78
|
-
if self.local_vars_configuration.client_side_validation and is_compatible is None: # noqa: E501
|
79
|
-
raise ValueError("Invalid value for `is_compatible`, must not be `None`") # noqa: E501
|
80
|
-
|
81
|
-
self._is_compatible = is_compatible
|
82
|
-
|
83
|
-
@property
|
84
|
-
def compatibility_message(self):
|
85
|
-
"""Gets the compatibility_message of this FeatureCompatibility. # noqa: E501
|
86
|
-
|
87
|
-
A string indicating the available ray versions # noqa: E501
|
88
|
-
|
89
|
-
:return: The compatibility_message of this FeatureCompatibility. # noqa: E501
|
90
|
-
:rtype: str
|
91
|
-
"""
|
92
|
-
return self._compatibility_message
|
93
|
-
|
94
|
-
@compatibility_message.setter
|
95
|
-
def compatibility_message(self, compatibility_message):
|
96
|
-
"""Sets the compatibility_message of this FeatureCompatibility.
|
97
|
-
|
98
|
-
A string indicating the available ray versions # noqa: E501
|
99
|
-
|
100
|
-
:param compatibility_message: The compatibility_message of this FeatureCompatibility. # noqa: E501
|
101
|
-
:type: str
|
102
|
-
"""
|
103
|
-
if self.local_vars_configuration.client_side_validation and compatibility_message is None: # noqa: E501
|
104
|
-
raise ValueError("Invalid value for `compatibility_message`, must not be `None`") # noqa: E501
|
105
|
-
|
106
|
-
self._compatibility_message = compatibility_message
|
107
|
-
|
108
|
-
def to_dict(self):
|
109
|
-
"""Returns the model properties as a dict"""
|
110
|
-
result = {}
|
111
|
-
|
112
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
113
|
-
value = getattr(self, attr)
|
114
|
-
if isinstance(value, list):
|
115
|
-
result[attr] = list(map(
|
116
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
117
|
-
value
|
118
|
-
))
|
119
|
-
elif hasattr(value, "to_dict"):
|
120
|
-
result[attr] = value.to_dict()
|
121
|
-
elif isinstance(value, dict):
|
122
|
-
result[attr] = dict(map(
|
123
|
-
lambda item: (item[0], item[1].to_dict())
|
124
|
-
if hasattr(item[1], "to_dict") else item,
|
125
|
-
value.items()
|
126
|
-
))
|
127
|
-
else:
|
128
|
-
result[attr] = value
|
129
|
-
|
130
|
-
return result
|
131
|
-
|
132
|
-
def to_str(self):
|
133
|
-
"""Returns the string representation of the model"""
|
134
|
-
return pprint.pformat(self.to_dict())
|
135
|
-
|
136
|
-
def __repr__(self):
|
137
|
-
"""For `print` and `pprint`"""
|
138
|
-
return self.to_str()
|
139
|
-
|
140
|
-
def __eq__(self, other):
|
141
|
-
"""Returns true if both objects are equal"""
|
142
|
-
if not isinstance(other, FeatureCompatibility):
|
143
|
-
return False
|
144
|
-
|
145
|
-
return self.to_dict() == other.to_dict()
|
146
|
-
|
147
|
-
def __ne__(self, other):
|
148
|
-
"""Returns true if both objects are not equal"""
|
149
|
-
if not isinstance(other, FeatureCompatibility):
|
150
|
-
return True
|
151
|
-
|
152
|
-
return self.to_dict() != other.to_dict()
|