anyscale 0.26.17__py3-none-any.whl → 0.26.19__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/docgen/models.md +2 -2
- anyscale/anyscale-cloud-setup.yaml +0 -4
- anyscale/client/README.md +12 -37
- anyscale/client/openapi_client/__init__.py +11 -20
- anyscale/client/openapi_client/api/default_api.py +115 -2004
- anyscale/client/openapi_client/models/__init__.py +11 -20
- anyscale/client/openapi_client/models/aws_config.py +402 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
- anyscale/client/openapi_client/models/{webterminal_list_response.py → clouddeployment_list_response.py} +15 -15
- anyscale/client/openapi_client/models/file_storage.py +206 -0
- anyscale/client/openapi_client/models/gcp_config.py +402 -0
- anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
- anyscale/client/openapi_client/models/{monitor_logs_extension.py → networking_mode.py} +7 -7
- anyscale/client/openapi_client/models/object_storage.py +178 -0
- anyscale/client/openapi_client/models/{sessiondetails_response.py → pcp_config.py} +23 -22
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
- anyscale/client/openapi_client/models/{archivedlogsinfo_response.py → workspacetemplatereadme_response.py} +11 -11
- anyscale/commands/cloud_commands.py +55 -7
- anyscale/connect_utils/prepare_cluster.py +19 -14
- anyscale/controllers/cloud_controller.py +60 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/METADATA +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/RECORD +33 -42
- anyscale/client/openapi_client/models/archived_logs_info.py +0 -164
- 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/create_session_response.py +0 -174
- 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/session_describe.py +0 -175
- anyscale/client/openapi_client/models/session_details.py +0 -148
- 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/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.17.dist-info → anyscale-0.26.19.dist-info}/LICENSE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/NOTICE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/WHEEL +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.19.dist-info}/top_level.txt +0 -0
@@ -1,175 +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 SessionDescribe(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
|
-
'id': 'str',
|
37
|
-
'applied_snapshots': 'list[AppliedSnapshot]',
|
38
|
-
'commands': 'list[SessionCommand]'
|
39
|
-
}
|
40
|
-
|
41
|
-
attribute_map = {
|
42
|
-
'id': 'id',
|
43
|
-
'applied_snapshots': 'applied_snapshots',
|
44
|
-
'commands': 'commands'
|
45
|
-
}
|
46
|
-
|
47
|
-
def __init__(self, id=None, applied_snapshots=None, commands=None, local_vars_configuration=None): # noqa: E501
|
48
|
-
"""SessionDescribe - a model defined in OpenAPI""" # noqa: E501
|
49
|
-
if local_vars_configuration is None:
|
50
|
-
local_vars_configuration = Configuration()
|
51
|
-
self.local_vars_configuration = local_vars_configuration
|
52
|
-
|
53
|
-
self._id = None
|
54
|
-
self._applied_snapshots = None
|
55
|
-
self._commands = None
|
56
|
-
self.discriminator = None
|
57
|
-
|
58
|
-
self.id = id
|
59
|
-
self.applied_snapshots = applied_snapshots
|
60
|
-
self.commands = commands
|
61
|
-
|
62
|
-
@property
|
63
|
-
def id(self):
|
64
|
-
"""Gets the id of this SessionDescribe. # noqa: E501
|
65
|
-
|
66
|
-
|
67
|
-
:return: The id of this SessionDescribe. # noqa: E501
|
68
|
-
:rtype: str
|
69
|
-
"""
|
70
|
-
return self._id
|
71
|
-
|
72
|
-
@id.setter
|
73
|
-
def id(self, id):
|
74
|
-
"""Sets the id of this SessionDescribe.
|
75
|
-
|
76
|
-
|
77
|
-
:param id: The id of this SessionDescribe. # noqa: E501
|
78
|
-
:type: str
|
79
|
-
"""
|
80
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
81
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
82
|
-
|
83
|
-
self._id = id
|
84
|
-
|
85
|
-
@property
|
86
|
-
def applied_snapshots(self):
|
87
|
-
"""Gets the applied_snapshots of this SessionDescribe. # noqa: E501
|
88
|
-
|
89
|
-
|
90
|
-
:return: The applied_snapshots of this SessionDescribe. # noqa: E501
|
91
|
-
:rtype: list[AppliedSnapshot]
|
92
|
-
"""
|
93
|
-
return self._applied_snapshots
|
94
|
-
|
95
|
-
@applied_snapshots.setter
|
96
|
-
def applied_snapshots(self, applied_snapshots):
|
97
|
-
"""Sets the applied_snapshots of this SessionDescribe.
|
98
|
-
|
99
|
-
|
100
|
-
:param applied_snapshots: The applied_snapshots of this SessionDescribe. # noqa: E501
|
101
|
-
:type: list[AppliedSnapshot]
|
102
|
-
"""
|
103
|
-
if self.local_vars_configuration.client_side_validation and applied_snapshots is None: # noqa: E501
|
104
|
-
raise ValueError("Invalid value for `applied_snapshots`, must not be `None`") # noqa: E501
|
105
|
-
|
106
|
-
self._applied_snapshots = applied_snapshots
|
107
|
-
|
108
|
-
@property
|
109
|
-
def commands(self):
|
110
|
-
"""Gets the commands of this SessionDescribe. # noqa: E501
|
111
|
-
|
112
|
-
|
113
|
-
:return: The commands of this SessionDescribe. # noqa: E501
|
114
|
-
:rtype: list[SessionCommand]
|
115
|
-
"""
|
116
|
-
return self._commands
|
117
|
-
|
118
|
-
@commands.setter
|
119
|
-
def commands(self, commands):
|
120
|
-
"""Sets the commands of this SessionDescribe.
|
121
|
-
|
122
|
-
|
123
|
-
:param commands: The commands of this SessionDescribe. # noqa: E501
|
124
|
-
:type: list[SessionCommand]
|
125
|
-
"""
|
126
|
-
if self.local_vars_configuration.client_side_validation and commands is None: # noqa: E501
|
127
|
-
raise ValueError("Invalid value for `commands`, must not be `None`") # noqa: E501
|
128
|
-
|
129
|
-
self._commands = commands
|
130
|
-
|
131
|
-
def to_dict(self):
|
132
|
-
"""Returns the model properties as a dict"""
|
133
|
-
result = {}
|
134
|
-
|
135
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
136
|
-
value = getattr(self, attr)
|
137
|
-
if isinstance(value, list):
|
138
|
-
result[attr] = list(map(
|
139
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
140
|
-
value
|
141
|
-
))
|
142
|
-
elif hasattr(value, "to_dict"):
|
143
|
-
result[attr] = value.to_dict()
|
144
|
-
elif isinstance(value, dict):
|
145
|
-
result[attr] = dict(map(
|
146
|
-
lambda item: (item[0], item[1].to_dict())
|
147
|
-
if hasattr(item[1], "to_dict") else item,
|
148
|
-
value.items()
|
149
|
-
))
|
150
|
-
else:
|
151
|
-
result[attr] = value
|
152
|
-
|
153
|
-
return result
|
154
|
-
|
155
|
-
def to_str(self):
|
156
|
-
"""Returns the string representation of the model"""
|
157
|
-
return pprint.pformat(self.to_dict())
|
158
|
-
|
159
|
-
def __repr__(self):
|
160
|
-
"""For `print` and `pprint`"""
|
161
|
-
return self.to_str()
|
162
|
-
|
163
|
-
def __eq__(self, other):
|
164
|
-
"""Returns true if both objects are equal"""
|
165
|
-
if not isinstance(other, SessionDescribe):
|
166
|
-
return False
|
167
|
-
|
168
|
-
return self.to_dict() == other.to_dict()
|
169
|
-
|
170
|
-
def __ne__(self, other):
|
171
|
-
"""Returns true if both objects are not equal"""
|
172
|
-
if not isinstance(other, SessionDescribe):
|
173
|
-
return True
|
174
|
-
|
175
|
-
return self.to_dict() != other.to_dict()
|
@@ -1,148 +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 SessionDetails(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
|
-
'id': 'str',
|
37
|
-
'cluster_name': 'str'
|
38
|
-
}
|
39
|
-
|
40
|
-
attribute_map = {
|
41
|
-
'id': 'id',
|
42
|
-
'cluster_name': 'cluster_name'
|
43
|
-
}
|
44
|
-
|
45
|
-
def __init__(self, id=None, cluster_name=None, local_vars_configuration=None): # noqa: E501
|
46
|
-
"""SessionDetails - 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._id = None
|
52
|
-
self._cluster_name = None
|
53
|
-
self.discriminator = None
|
54
|
-
|
55
|
-
self.id = id
|
56
|
-
self.cluster_name = cluster_name
|
57
|
-
|
58
|
-
@property
|
59
|
-
def id(self):
|
60
|
-
"""Gets the id of this SessionDetails. # noqa: E501
|
61
|
-
|
62
|
-
|
63
|
-
:return: The id of this SessionDetails. # noqa: E501
|
64
|
-
:rtype: str
|
65
|
-
"""
|
66
|
-
return self._id
|
67
|
-
|
68
|
-
@id.setter
|
69
|
-
def id(self, id):
|
70
|
-
"""Sets the id of this SessionDetails.
|
71
|
-
|
72
|
-
|
73
|
-
:param id: The id of this SessionDetails. # noqa: E501
|
74
|
-
:type: str
|
75
|
-
"""
|
76
|
-
if self.local_vars_configuration.client_side_validation and id is None: # noqa: E501
|
77
|
-
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
78
|
-
|
79
|
-
self._id = id
|
80
|
-
|
81
|
-
@property
|
82
|
-
def cluster_name(self):
|
83
|
-
"""Gets the cluster_name of this SessionDetails. # noqa: E501
|
84
|
-
|
85
|
-
|
86
|
-
:return: The cluster_name of this SessionDetails. # noqa: E501
|
87
|
-
:rtype: str
|
88
|
-
"""
|
89
|
-
return self._cluster_name
|
90
|
-
|
91
|
-
@cluster_name.setter
|
92
|
-
def cluster_name(self, cluster_name):
|
93
|
-
"""Sets the cluster_name of this SessionDetails.
|
94
|
-
|
95
|
-
|
96
|
-
:param cluster_name: The cluster_name of this SessionDetails. # noqa: E501
|
97
|
-
:type: str
|
98
|
-
"""
|
99
|
-
if self.local_vars_configuration.client_side_validation and cluster_name is None: # noqa: E501
|
100
|
-
raise ValueError("Invalid value for `cluster_name`, must not be `None`") # noqa: E501
|
101
|
-
|
102
|
-
self._cluster_name = cluster_name
|
103
|
-
|
104
|
-
def to_dict(self):
|
105
|
-
"""Returns the model properties as a dict"""
|
106
|
-
result = {}
|
107
|
-
|
108
|
-
for attr, _ in six.iteritems(self.openapi_types):
|
109
|
-
value = getattr(self, attr)
|
110
|
-
if isinstance(value, list):
|
111
|
-
result[attr] = list(map(
|
112
|
-
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
113
|
-
value
|
114
|
-
))
|
115
|
-
elif hasattr(value, "to_dict"):
|
116
|
-
result[attr] = value.to_dict()
|
117
|
-
elif isinstance(value, dict):
|
118
|
-
result[attr] = dict(map(
|
119
|
-
lambda item: (item[0], item[1].to_dict())
|
120
|
-
if hasattr(item[1], "to_dict") else item,
|
121
|
-
value.items()
|
122
|
-
))
|
123
|
-
else:
|
124
|
-
result[attr] = value
|
125
|
-
|
126
|
-
return result
|
127
|
-
|
128
|
-
def to_str(self):
|
129
|
-
"""Returns the string representation of the model"""
|
130
|
-
return pprint.pformat(self.to_dict())
|
131
|
-
|
132
|
-
def __repr__(self):
|
133
|
-
"""For `print` and `pprint`"""
|
134
|
-
return self.to_str()
|
135
|
-
|
136
|
-
def __eq__(self, other):
|
137
|
-
"""Returns true if both objects are equal"""
|
138
|
-
if not isinstance(other, SessionDetails):
|
139
|
-
return False
|
140
|
-
|
141
|
-
return self.to_dict() == other.to_dict()
|
142
|
-
|
143
|
-
def __ne__(self, other):
|
144
|
-
"""Returns true if both objects are not equal"""
|
145
|
-
if not isinstance(other, SessionDetails):
|
146
|
-
return True
|
147
|
-
|
148
|
-
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 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()
|