anyscale 0.26.64__py3-none-any.whl → 0.26.66__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/__main__.py +23 -4
- anyscale/_private/docgen/generator.py +127 -34
- anyscale/_private/docgen/generator_legacy.py +35 -12
- anyscale/client/README.md +37 -1
- anyscale/client/openapi_client/__init__.py +26 -0
- anyscale/client/openapi_client/api/default_api.py +1446 -245
- anyscale/client/openapi_client/models/__init__.py +26 -0
- anyscale/client/openapi_client/models/baseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/cloud_deployment_compute_config.py +29 -1
- anyscale/client/openapi_client/models/connection_type.py +99 -0
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/data_catalog.py +281 -0
- anyscale/client/openapi_client/models/data_catalog_connection.py +308 -0
- anyscale/client/openapi_client/models/data_catalog_connection_status.py +102 -0
- anyscale/client/openapi_client/models/data_catalog_provider.py +101 -0
- anyscale/client/openapi_client/models/databricks_connection_config.py +152 -0
- anyscale/client/openapi_client/models/databricks_connection_info.py +229 -0
- anyscale/client/openapi_client/models/databricks_connection_response.py +148 -0
- anyscale/client/openapi_client/models/databricks_register_request.py +187 -0
- anyscale/client/openapi_client/models/databricksconnectioninfo_response.py +121 -0
- anyscale/client/openapi_client/models/databricksconnectionresponse_response.py +121 -0
- anyscale/client/openapi_client/models/datacatalog_list_response.py +147 -0
- anyscale/client/openapi_client/models/datacatalogconnection_list_response.py +147 -0
- anyscale/client/openapi_client/models/decorated_session.py +29 -1
- anyscale/client/openapi_client/models/domain_verification.py +181 -0
- anyscale/client/openapi_client/models/list_databricks_connections.py +121 -0
- anyscale/client/openapi_client/models/o_auth_connection_response.py +229 -0
- anyscale/client/openapi_client/models/oauth_auth_url_response.py +121 -0
- anyscale/client/openapi_client/models/oauthconnectionresponse_response.py +121 -0
- anyscale/client/openapi_client/models/sso_config.py +148 -0
- anyscale/client/openapi_client/models/sso_connection.py +148 -0
- anyscale/client/openapi_client/models/sso_connection_state.py +100 -0
- anyscale/client/openapi_client/models/ssoconfig_response.py +121 -0
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/client/openapi_client/models/task_summary_config.py +29 -3
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/update_workspace_template.py +346 -0
- anyscale/client/openapi_client/models/usage_by_cluster_type.py +174 -0
- anyscale/client/openapi_client/models/usagebyclustertype_list_response.py +147 -0
- anyscale/client/openapi_client/models/validation_status.py +101 -0
- anyscale/commands/cloud_commands.py +310 -206
- anyscale/controllers/cloud_controller.py +175 -241
- anyscale/controllers/cloud_functional_verification_controller.py +6 -3
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +70 -1
- anyscale/sdk/anyscale_client/models/cloud_deployment_compute_config.py +29 -1
- anyscale/sdk/anyscale_client/models/session.py +31 -3
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +70 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/util.py +1 -1
- anyscale/version.py +1 -1
- {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/METADATA +1 -1
- {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/RECORD +58 -33
- anyscale/commands/cloud_commands_util.py +0 -10
- {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/WHEEL +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.64.dist-info → anyscale-0.26.66.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,121 @@
|
|
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 DatabricksconnectionresponseResponse(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': 'DatabricksConnectionResponse'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'result': 'result'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""DatabricksconnectionresponseResponse - 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 DatabricksconnectionresponseResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The result of this DatabricksconnectionresponseResponse. # noqa: E501
|
60
|
+
:rtype: DatabricksConnectionResponse
|
61
|
+
"""
|
62
|
+
return self._result
|
63
|
+
|
64
|
+
@result.setter
|
65
|
+
def result(self, result):
|
66
|
+
"""Sets the result of this DatabricksconnectionresponseResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param result: The result of this DatabricksconnectionresponseResponse. # noqa: E501
|
70
|
+
:type: DatabricksConnectionResponse
|
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, DatabricksconnectionresponseResponse):
|
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, DatabricksconnectionresponseResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,147 @@
|
|
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 DatacatalogListResponse(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[DataCatalog]',
|
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
|
+
"""DatacatalogListResponse - 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 DatacatalogListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this DatacatalogListResponse. # noqa: E501
|
65
|
+
:rtype: list[DataCatalog]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this DatacatalogListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this DatacatalogListResponse. # noqa: E501
|
75
|
+
:type: list[DataCatalog]
|
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 DatacatalogListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this DatacatalogListResponse. # 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 DatacatalogListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this DatacatalogListResponse. # 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, DatacatalogListResponse):
|
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, DatacatalogListResponse):
|
145
|
+
return True
|
146
|
+
|
147
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,147 @@
|
|
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 DatacatalogconnectionListResponse(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[DataCatalogConnection]',
|
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
|
+
"""DatacatalogconnectionListResponse - 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 DatacatalogconnectionListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this DatacatalogconnectionListResponse. # noqa: E501
|
65
|
+
:rtype: list[DataCatalogConnection]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this DatacatalogconnectionListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this DatacatalogconnectionListResponse. # noqa: E501
|
75
|
+
:type: list[DataCatalogConnection]
|
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 DatacatalogconnectionListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this DatacatalogconnectionListResponse. # 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 DatacatalogconnectionListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this DatacatalogconnectionListResponse. # 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, DatacatalogconnectionListResponse):
|
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, DatacatalogconnectionListResponse):
|
145
|
+
return True
|
146
|
+
|
147
|
+
return self.to_dict() != other.to_dict()
|
@@ -86,6 +86,7 @@ class DecoratedSession(object):
|
|
86
86
|
'maximum_uptime_will_terminate_cluster_at': 'datetime',
|
87
87
|
'idle_termination_status': 'IdleTerminationStatus',
|
88
88
|
'ray_dashboard_snapshot_last_reported_at': 'datetime',
|
89
|
+
'is_system_cluster': 'bool',
|
89
90
|
'build': 'MiniBuild',
|
90
91
|
'cloud': 'MiniCloud',
|
91
92
|
'creator': 'MiniUser',
|
@@ -150,6 +151,7 @@ class DecoratedSession(object):
|
|
150
151
|
'maximum_uptime_will_terminate_cluster_at': 'maximum_uptime_will_terminate_cluster_at',
|
151
152
|
'idle_termination_status': 'idle_termination_status',
|
152
153
|
'ray_dashboard_snapshot_last_reported_at': 'ray_dashboard_snapshot_last_reported_at',
|
154
|
+
'is_system_cluster': 'is_system_cluster',
|
153
155
|
'build': 'build',
|
154
156
|
'cloud': 'cloud',
|
155
157
|
'creator': 'creator',
|
@@ -160,7 +162,7 @@ class DecoratedSession(object):
|
|
160
162
|
'latest_started_at': 'latest_started_at'
|
161
163
|
}
|
162
164
|
|
163
|
-
def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, serve_llm_metrics_dashboard_url=None, supports_full_grafana_view=False, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, build=None, cloud=None, creator=None, compute_template=None, idle_time_remaining_seconds=None, access=None, project=None, latest_started_at=None, local_vars_configuration=None): # noqa: E501
|
165
|
+
def __init__(self, name=None, project_id=None, cloud_id=None, cluster_config=None, build_id=None, compute_template_id=None, idle_timeout=120, uses_app_config=False, allow_public_internet_traffic=False, user_service_access=None, user_service_token=None, ha_job_id=None, id=None, state=None, pending_state=None, state_data=None, status=None, status_details=None, creator_id=None, created_at=None, archived_at=None, webterminal_auth_url=None, metrics_dashboard_url=None, data_metrics_dashboard_url=None, train_metrics_dashboard_url=None, serve_metrics_dashboard_url=None, serve_deployment_metrics_dashboard_url=None, serve_llm_metrics_dashboard_url=None, supports_full_grafana_view=False, persistent_metrics_url=None, connect_url=None, jupyter_notebook_url=None, ray_dashboard_url=None, access_token=None, service_proxy_url=None, tensorboard_available=None, cluster_config_last_modified_at=None, host_name=None, head_node_ip=None, ssh_authorized_keys=None, ssh_private_key=None, anyscaled_config=None, anyscaled_config_generated_at=None, default_build_id=None, idle_timeout_last_activity_at=None, ray_version=None, ray_version_last_updated_at=None, user_service_url=None, ray_component_activities_last_reported_at=None, activity_details=None, maximum_uptime_will_terminate_cluster_at=None, idle_termination_status=None, ray_dashboard_snapshot_last_reported_at=None, is_system_cluster=False, build=None, cloud=None, creator=None, compute_template=None, idle_time_remaining_seconds=None, access=None, project=None, latest_started_at=None, local_vars_configuration=None): # noqa: E501
|
164
166
|
"""DecoratedSession - a model defined in OpenAPI""" # noqa: E501
|
165
167
|
if local_vars_configuration is None:
|
166
168
|
local_vars_configuration = Configuration()
|
@@ -219,6 +221,7 @@ class DecoratedSession(object):
|
|
219
221
|
self._maximum_uptime_will_terminate_cluster_at = None
|
220
222
|
self._idle_termination_status = None
|
221
223
|
self._ray_dashboard_snapshot_last_reported_at = None
|
224
|
+
self._is_system_cluster = None
|
222
225
|
self._build = None
|
223
226
|
self._cloud = None
|
224
227
|
self._creator = None
|
@@ -322,6 +325,8 @@ class DecoratedSession(object):
|
|
322
325
|
self.idle_termination_status = idle_termination_status
|
323
326
|
if ray_dashboard_snapshot_last_reported_at is not None:
|
324
327
|
self.ray_dashboard_snapshot_last_reported_at = ray_dashboard_snapshot_last_reported_at
|
328
|
+
if is_system_cluster is not None:
|
329
|
+
self.is_system_cluster = is_system_cluster
|
325
330
|
if build is not None:
|
326
331
|
self.build = build
|
327
332
|
self.cloud = cloud
|
@@ -1582,6 +1587,29 @@ class DecoratedSession(object):
|
|
1582
1587
|
|
1583
1588
|
self._ray_dashboard_snapshot_last_reported_at = ray_dashboard_snapshot_last_reported_at
|
1584
1589
|
|
1590
|
+
@property
|
1591
|
+
def is_system_cluster(self):
|
1592
|
+
"""Gets the is_system_cluster of this DecoratedSession. # noqa: E501
|
1593
|
+
|
1594
|
+
Represents clusters that are used for system workloads but not visible to the user # noqa: E501
|
1595
|
+
|
1596
|
+
:return: The is_system_cluster of this DecoratedSession. # noqa: E501
|
1597
|
+
:rtype: bool
|
1598
|
+
"""
|
1599
|
+
return self._is_system_cluster
|
1600
|
+
|
1601
|
+
@is_system_cluster.setter
|
1602
|
+
def is_system_cluster(self, is_system_cluster):
|
1603
|
+
"""Sets the is_system_cluster of this DecoratedSession.
|
1604
|
+
|
1605
|
+
Represents clusters that are used for system workloads but not visible to the user # noqa: E501
|
1606
|
+
|
1607
|
+
:param is_system_cluster: The is_system_cluster of this DecoratedSession. # noqa: E501
|
1608
|
+
:type: bool
|
1609
|
+
"""
|
1610
|
+
|
1611
|
+
self._is_system_cluster = is_system_cluster
|
1612
|
+
|
1585
1613
|
@property
|
1586
1614
|
def build(self):
|
1587
1615
|
"""Gets the build of this DecoratedSession. # noqa: E501
|
@@ -0,0 +1,181 @@
|
|
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 DomainVerification(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
|
+
'url': 'str',
|
37
|
+
'state': 'str',
|
38
|
+
'domain': 'str'
|
39
|
+
}
|
40
|
+
|
41
|
+
attribute_map = {
|
42
|
+
'url': 'url',
|
43
|
+
'state': 'state',
|
44
|
+
'domain': 'domain'
|
45
|
+
}
|
46
|
+
|
47
|
+
def __init__(self, url=None, state=None, domain=None, local_vars_configuration=None): # noqa: E501
|
48
|
+
"""DomainVerification - 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._url = None
|
54
|
+
self._state = None
|
55
|
+
self._domain = None
|
56
|
+
self.discriminator = None
|
57
|
+
|
58
|
+
self.url = url
|
59
|
+
self.state = state
|
60
|
+
self.domain = domain
|
61
|
+
|
62
|
+
@property
|
63
|
+
def url(self):
|
64
|
+
"""Gets the url of this DomainVerification. # noqa: E501
|
65
|
+
|
66
|
+
|
67
|
+
:return: The url of this DomainVerification. # noqa: E501
|
68
|
+
:rtype: str
|
69
|
+
"""
|
70
|
+
return self._url
|
71
|
+
|
72
|
+
@url.setter
|
73
|
+
def url(self, url):
|
74
|
+
"""Sets the url of this DomainVerification.
|
75
|
+
|
76
|
+
|
77
|
+
:param url: The url of this DomainVerification. # noqa: E501
|
78
|
+
:type: str
|
79
|
+
"""
|
80
|
+
if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
|
81
|
+
raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
|
82
|
+
|
83
|
+
self._url = url
|
84
|
+
|
85
|
+
@property
|
86
|
+
def state(self):
|
87
|
+
"""Gets the state of this DomainVerification. # noqa: E501
|
88
|
+
|
89
|
+
|
90
|
+
:return: The state of this DomainVerification. # noqa: E501
|
91
|
+
:rtype: str
|
92
|
+
"""
|
93
|
+
return self._state
|
94
|
+
|
95
|
+
@state.setter
|
96
|
+
def state(self, state):
|
97
|
+
"""Sets the state of this DomainVerification.
|
98
|
+
|
99
|
+
|
100
|
+
:param state: The state of this DomainVerification. # noqa: E501
|
101
|
+
:type: str
|
102
|
+
"""
|
103
|
+
if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501
|
104
|
+
raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501
|
105
|
+
allowed_values = ["failed", "pending", "legacy_verified", "verified"] # noqa: E501
|
106
|
+
if self.local_vars_configuration.client_side_validation and state not in allowed_values: # noqa: E501
|
107
|
+
raise ValueError(
|
108
|
+
"Invalid value for `state` ({0}), must be one of {1}" # noqa: E501
|
109
|
+
.format(state, allowed_values)
|
110
|
+
)
|
111
|
+
|
112
|
+
self._state = state
|
113
|
+
|
114
|
+
@property
|
115
|
+
def domain(self):
|
116
|
+
"""Gets the domain of this DomainVerification. # noqa: E501
|
117
|
+
|
118
|
+
|
119
|
+
:return: The domain of this DomainVerification. # noqa: E501
|
120
|
+
:rtype: str
|
121
|
+
"""
|
122
|
+
return self._domain
|
123
|
+
|
124
|
+
@domain.setter
|
125
|
+
def domain(self, domain):
|
126
|
+
"""Sets the domain of this DomainVerification.
|
127
|
+
|
128
|
+
|
129
|
+
:param domain: The domain of this DomainVerification. # noqa: E501
|
130
|
+
:type: str
|
131
|
+
"""
|
132
|
+
if self.local_vars_configuration.client_side_validation and domain is None: # noqa: E501
|
133
|
+
raise ValueError("Invalid value for `domain`, must not be `None`") # noqa: E501
|
134
|
+
|
135
|
+
self._domain = domain
|
136
|
+
|
137
|
+
def to_dict(self):
|
138
|
+
"""Returns the model properties as a dict"""
|
139
|
+
result = {}
|
140
|
+
|
141
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
142
|
+
value = getattr(self, attr)
|
143
|
+
if isinstance(value, list):
|
144
|
+
result[attr] = list(map(
|
145
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
146
|
+
value
|
147
|
+
))
|
148
|
+
elif hasattr(value, "to_dict"):
|
149
|
+
result[attr] = value.to_dict()
|
150
|
+
elif isinstance(value, dict):
|
151
|
+
result[attr] = dict(map(
|
152
|
+
lambda item: (item[0], item[1].to_dict())
|
153
|
+
if hasattr(item[1], "to_dict") else item,
|
154
|
+
value.items()
|
155
|
+
))
|
156
|
+
else:
|
157
|
+
result[attr] = value
|
158
|
+
|
159
|
+
return result
|
160
|
+
|
161
|
+
def to_str(self):
|
162
|
+
"""Returns the string representation of the model"""
|
163
|
+
return pprint.pformat(self.to_dict())
|
164
|
+
|
165
|
+
def __repr__(self):
|
166
|
+
"""For `print` and `pprint`"""
|
167
|
+
return self.to_str()
|
168
|
+
|
169
|
+
def __eq__(self, other):
|
170
|
+
"""Returns true if both objects are equal"""
|
171
|
+
if not isinstance(other, DomainVerification):
|
172
|
+
return False
|
173
|
+
|
174
|
+
return self.to_dict() == other.to_dict()
|
175
|
+
|
176
|
+
def __ne__(self, other):
|
177
|
+
"""Returns true if both objects are not equal"""
|
178
|
+
if not isinstance(other, DomainVerification):
|
179
|
+
return True
|
180
|
+
|
181
|
+
return self.to_dict() != other.to_dict()
|