anyscale 0.26.16__py3-none-any.whl → 0.26.18__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-cloud-setup-gcp.yaml +2 -0
- anyscale/anyscale-cloud-setup.yaml +0 -4
- anyscale/client/README.md +7 -37
- anyscale/client/openapi_client/__init__.py +5 -20
- anyscale/client/openapi_client/api/default_api.py +410 -2163
- anyscale/client/openapi_client/models/__init__.py +5 -20
- anyscale/client/openapi_client/models/{create_session_response.py → i_know_response.py} +51 -51
- anyscale/client/openapi_client/models/{session_details.py → i_know_time_series_event.py} +35 -35
- anyscale/client/openapi_client/models/job_report.py +199 -0
- anyscale/client/openapi_client/models/job_with_report.py +254 -0
- anyscale/client/openapi_client/models/{webterminal_list_response.py → jobwithreport_list_response.py} +15 -15
- anyscale/commands/cloud_commands.py +71 -0
- anyscale/connect_utils/prepare_cluster.py +19 -14
- anyscale/controllers/cloud_controller.py +164 -1
- anyscale/job/_private/job_sdk.py +22 -24
- anyscale/version.py +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/METADATA +1 -1
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/RECORD +23 -38
- anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
- anyscale/client/openapi_client/models/archivedlogsinfo_response.py +0 -121
- anyscale/client/openapi_client/models/create_experimental_workspace_from_job.py +0 -123
- anyscale/client/openapi_client/models/create_session_from_snapshot_options.py +0 -538
- anyscale/client/openapi_client/models/create_session_in_db.py +0 -434
- anyscale/client/openapi_client/models/createsessionresponse_response.py +0 -121
- anyscale/client/openapi_client/models/external_service_status.py +0 -147
- anyscale/client/openapi_client/models/external_service_status_response.py +0 -250
- anyscale/client/openapi_client/models/externalservicestatusresponse_response.py +0 -121
- anyscale/client/openapi_client/models/monitor_logs_extension.py +0 -100
- anyscale/client/openapi_client/models/session_describe.py +0 -175
- anyscale/client/openapi_client/models/session_history_item.py +0 -146
- anyscale/client/openapi_client/models/sessiondescribe_response.py +0 -121
- anyscale/client/openapi_client/models/sessiondetails_response.py +0 -121
- anyscale/client/openapi_client/models/sessionhistoryitem_list_response.py +0 -147
- anyscale/client/openapi_client/models/update_compute_template.py +0 -146
- anyscale/client/openapi_client/models/update_compute_template_config.py +0 -464
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/LICENSE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/NOTICE +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/WHEEL +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.16.dist-info → anyscale-0.26.18.dist-info}/top_level.txt +0 -0
@@ -1,146 +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 SessionHistoryItem(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
|
-
'applied_snapshot': 'AppliedSnapshot',
|
37
|
-
'command': 'SessionCommand'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'applied_snapshot': 'applied_snapshot',
|
42
|
-
'command': 'command'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, applied_snapshot=None, command=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""SessionHistoryItem - 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._applied_snapshot = None
|
52
|
-
self._command = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
if applied_snapshot is not None:
|
56
|
-
self.applied_snapshot = applied_snapshot
|
57
|
-
if command is not None:
|
58
|
-
self.command = command
|
59
|
-
|
60
|
-
@property
|
61
|
-
def applied_snapshot(self):
|
62
|
-
"""Gets the applied_snapshot of this SessionHistoryItem. # noqa: E501
|
63
|
-
|
64
|
-
|
65
|
-
:return: The applied_snapshot of this SessionHistoryItem. # noqa: E501
|
66
|
-
:rtype: AppliedSnapshot
|
67
|
-
"""
|
68
|
-
return self._applied_snapshot
|
69
|
-
|
70
|
-
@applied_snapshot.setter
|
71
|
-
def applied_snapshot(self, applied_snapshot):
|
72
|
-
"""Sets the applied_snapshot of this SessionHistoryItem.
|
73
|
-
|
74
|
-
|
75
|
-
:param applied_snapshot: The applied_snapshot of this SessionHistoryItem. # noqa: E501
|
76
|
-
:type: AppliedSnapshot
|
77
|
-
"""
|
78
|
-
|
79
|
-
self._applied_snapshot = applied_snapshot
|
80
|
-
|
81
|
-
@property
|
82
|
-
def command(self):
|
83
|
-
"""Gets the command of this SessionHistoryItem. # noqa: E501
|
84
|
-
|
85
|
-
|
86
|
-
:return: The command of this SessionHistoryItem. # noqa: E501
|
87
|
-
:rtype: SessionCommand
|
88
|
-
"""
|
89
|
-
return self._command
|
90
|
-
|
91
|
-
@command.setter
|
92
|
-
def command(self, command):
|
93
|
-
"""Sets the command of this SessionHistoryItem.
|
94
|
-
|
95
|
-
|
96
|
-
:param command: The command of this SessionHistoryItem. # noqa: E501
|
97
|
-
:type: SessionCommand
|
98
|
-
"""
|
99
|
-
|
100
|
-
self._command = command
|
101
|
-
|
102
|
-
def to_dict(self):
|
103
|
-
"""Returns the model properties as a dict"""
|
104
|
-
result = {}
|
105
|
-
|
106
|
-
for attr, _ in six.iteritems(self.openapi_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, SessionHistoryItem):
|
137
|
-
return False
|
138
|
-
|
139
|
-
return self.to_dict() == other.to_dict()
|
140
|
-
|
141
|
-
def __ne__(self, other):
|
142
|
-
"""Returns true if both objects are not equal"""
|
143
|
-
if not isinstance(other, SessionHistoryItem):
|
144
|
-
return True
|
145
|
-
|
146
|
-
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 SessiondescribeResponse(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': 'SessionDescribe'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""SessiondescribeResponse - 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 SessiondescribeResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this SessiondescribeResponse. # noqa: E501
|
60
|
-
:rtype: SessionDescribe
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this SessiondescribeResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this SessiondescribeResponse. # noqa: E501
|
70
|
-
:type: SessionDescribe
|
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, SessiondescribeResponse):
|
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, SessiondescribeResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
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 SessiondetailsResponse(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': 'SessionDetails'
|
37
|
-
}
|
38
|
-
|
39
|
-
attribute_map = {
|
40
|
-
'result': 'result'
|
41
|
-
}
|
42
|
-
|
43
|
-
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
-
"""SessiondetailsResponse - 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 SessiondetailsResponse. # noqa: E501
|
57
|
-
|
58
|
-
|
59
|
-
:return: The result of this SessiondetailsResponse. # noqa: E501
|
60
|
-
:rtype: SessionDetails
|
61
|
-
"""
|
62
|
-
return self._result
|
63
|
-
|
64
|
-
@result.setter
|
65
|
-
def result(self, result):
|
66
|
-
"""Sets the result of this SessiondetailsResponse.
|
67
|
-
|
68
|
-
|
69
|
-
:param result: The result of this SessiondetailsResponse. # noqa: E501
|
70
|
-
:type: SessionDetails
|
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, SessiondetailsResponse):
|
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, SessiondetailsResponse):
|
119
|
-
return True
|
120
|
-
|
121
|
-
return self.to_dict() != other.to_dict()
|
@@ -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 SessionhistoryitemListResponse(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[SessionHistoryItem]',
|
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
|
-
"""SessionhistoryitemListResponse - 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 SessionhistoryitemListResponse. # noqa: E501
|
62
|
-
|
63
|
-
|
64
|
-
:return: The results of this SessionhistoryitemListResponse. # noqa: E501
|
65
|
-
:rtype: list[SessionHistoryItem]
|
66
|
-
"""
|
67
|
-
return self._results
|
68
|
-
|
69
|
-
@results.setter
|
70
|
-
def results(self, results):
|
71
|
-
"""Sets the results of this SessionhistoryitemListResponse.
|
72
|
-
|
73
|
-
|
74
|
-
:param results: The results of this SessionhistoryitemListResponse. # noqa: E501
|
75
|
-
:type: list[SessionHistoryItem]
|
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 SessionhistoryitemListResponse. # noqa: E501
|
85
|
-
|
86
|
-
|
87
|
-
:return: The metadata of this SessionhistoryitemListResponse. # 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 SessionhistoryitemListResponse.
|
95
|
-
|
96
|
-
|
97
|
-
:param metadata: The metadata of this SessionhistoryitemListResponse. # 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, SessionhistoryitemListResponse):
|
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, SessionhistoryitemListResponse):
|
145
|
-
return True
|
146
|
-
|
147
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,146 +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 UpdateComputeTemplate(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
|
-
'config': 'UpdateComputeTemplateConfig'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'name': 'name',
|
42
|
-
'config': 'config'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, name=None, config=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""UpdateComputeTemplate - 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._name = None
|
52
|
-
self._config = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
if name is not None:
|
56
|
-
self.name = name
|
57
|
-
if config is not None:
|
58
|
-
self.config = config
|
59
|
-
|
60
|
-
@property
|
61
|
-
def name(self):
|
62
|
-
"""Gets the name of this UpdateComputeTemplate. # noqa: E501
|
63
|
-
|
64
|
-
|
65
|
-
:return: The name of this UpdateComputeTemplate. # noqa: E501
|
66
|
-
:rtype: str
|
67
|
-
"""
|
68
|
-
return self._name
|
69
|
-
|
70
|
-
@name.setter
|
71
|
-
def name(self, name):
|
72
|
-
"""Sets the name of this UpdateComputeTemplate.
|
73
|
-
|
74
|
-
|
75
|
-
:param name: The name of this UpdateComputeTemplate. # noqa: E501
|
76
|
-
:type: str
|
77
|
-
"""
|
78
|
-
|
79
|
-
self._name = name
|
80
|
-
|
81
|
-
@property
|
82
|
-
def config(self):
|
83
|
-
"""Gets the config of this UpdateComputeTemplate. # noqa: E501
|
84
|
-
|
85
|
-
|
86
|
-
:return: The config of this UpdateComputeTemplate. # noqa: E501
|
87
|
-
:rtype: UpdateComputeTemplateConfig
|
88
|
-
"""
|
89
|
-
return self._config
|
90
|
-
|
91
|
-
@config.setter
|
92
|
-
def config(self, config):
|
93
|
-
"""Sets the config of this UpdateComputeTemplate.
|
94
|
-
|
95
|
-
|
96
|
-
:param config: The config of this UpdateComputeTemplate. # noqa: E501
|
97
|
-
:type: UpdateComputeTemplateConfig
|
98
|
-
"""
|
99
|
-
|
100
|
-
self._config = config
|
101
|
-
|
102
|
-
def to_dict(self):
|
103
|
-
"""Returns the model properties as a dict"""
|
104
|
-
result = {}
|
105
|
-
|
106
|
-
for attr, _ in six.iteritems(self.openapi_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, UpdateComputeTemplate):
|
137
|
-
return False
|
138
|
-
|
139
|
-
return self.to_dict() == other.to_dict()
|
140
|
-
|
141
|
-
def __ne__(self, other):
|
142
|
-
"""Returns true if both objects are not equal"""
|
143
|
-
if not isinstance(other, UpdateComputeTemplate):
|
144
|
-
return True
|
145
|
-
|
146
|
-
return self.to_dict() != other.to_dict()
|