anyscale 0.26.63__py3-none-any.whl → 0.26.65__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.
Files changed (52) hide show
  1. anyscale/_private/docgen/__main__.py +23 -4
  2. anyscale/_private/docgen/generator.py +127 -34
  3. anyscale/_private/docgen/generator_legacy.py +35 -12
  4. anyscale/client/README.md +37 -0
  5. anyscale/client/openapi_client/__init__.py +26 -0
  6. anyscale/client/openapi_client/api/default_api.py +1423 -97
  7. anyscale/client/openapi_client/models/__init__.py +26 -0
  8. anyscale/client/openapi_client/models/apply_production_service_v2_model.py +2 -2
  9. anyscale/client/openapi_client/models/connection_type.py +99 -0
  10. anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
  11. anyscale/client/openapi_client/models/data_catalog.py +281 -0
  12. anyscale/client/openapi_client/models/data_catalog_connection.py +308 -0
  13. anyscale/client/openapi_client/models/data_catalog_connection_status.py +102 -0
  14. anyscale/client/openapi_client/models/data_catalog_provider.py +101 -0
  15. anyscale/client/openapi_client/models/databricks_connection_config.py +152 -0
  16. anyscale/client/openapi_client/models/databricks_connection_info.py +229 -0
  17. anyscale/client/openapi_client/models/databricks_connection_response.py +148 -0
  18. anyscale/client/openapi_client/models/databricks_register_request.py +187 -0
  19. anyscale/client/openapi_client/models/databricksconnectioninfo_response.py +121 -0
  20. anyscale/client/openapi_client/models/databricksconnectionresponse_response.py +121 -0
  21. anyscale/client/openapi_client/models/datacatalog_list_response.py +147 -0
  22. anyscale/client/openapi_client/models/datacatalogconnection_list_response.py +147 -0
  23. anyscale/client/openapi_client/models/decorated_session.py +29 -1
  24. anyscale/client/openapi_client/models/domain_verification.py +181 -0
  25. anyscale/client/openapi_client/models/list_databricks_connections.py +121 -0
  26. anyscale/client/openapi_client/models/o_auth_connection_response.py +229 -0
  27. anyscale/client/openapi_client/models/oauth_auth_url_response.py +121 -0
  28. anyscale/client/openapi_client/models/oauthconnectionresponse_response.py +121 -0
  29. anyscale/client/openapi_client/models/sso_config.py +148 -0
  30. anyscale/client/openapi_client/models/sso_connection.py +148 -0
  31. anyscale/client/openapi_client/models/sso_connection_state.py +100 -0
  32. anyscale/client/openapi_client/models/ssoconfig_response.py +121 -0
  33. anyscale/client/openapi_client/models/update_workspace_template.py +346 -0
  34. anyscale/client/openapi_client/models/usage_by_cluster_type.py +174 -0
  35. anyscale/client/openapi_client/models/usagebyclustertype_list_response.py +147 -0
  36. anyscale/client/openapi_client/models/validation_status.py +101 -0
  37. anyscale/commands/cloud_commands.py +310 -206
  38. anyscale/controllers/cloud_controller.py +174 -240
  39. anyscale/controllers/cloud_functional_verification_controller.py +6 -3
  40. anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +2 -2
  41. anyscale/sdk/anyscale_client/models/apply_service_model.py +2 -2
  42. anyscale/sdk/anyscale_client/models/session.py +31 -3
  43. anyscale/util.py +1 -1
  44. anyscale/version.py +1 -1
  45. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/METADATA +1 -1
  46. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/RECORD +51 -26
  47. anyscale/commands/cloud_commands_util.py +0 -10
  48. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/WHEEL +0 -0
  49. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/entry_points.txt +0 -0
  50. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/licenses/LICENSE +0 -0
  51. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/licenses/NOTICE +0 -0
  52. {anyscale-0.26.63.dist-info → anyscale-0.26.65.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,148 @@
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 SSOConfig(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
+ 'sso_connection': 'SSOConnection',
37
+ 'domain_verification': 'DomainVerification'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'sso_connection': 'sso_connection',
42
+ 'domain_verification': 'domain_verification'
43
+ }
44
+
45
+ def __init__(self, sso_connection=None, domain_verification=None, local_vars_configuration=None): # noqa: E501
46
+ """SSOConfig - 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._sso_connection = None
52
+ self._domain_verification = None
53
+ self.discriminator = None
54
+
55
+ self.sso_connection = sso_connection
56
+ self.domain_verification = domain_verification
57
+
58
+ @property
59
+ def sso_connection(self):
60
+ """Gets the sso_connection of this SSOConfig. # noqa: E501
61
+
62
+
63
+ :return: The sso_connection of this SSOConfig. # noqa: E501
64
+ :rtype: SSOConnection
65
+ """
66
+ return self._sso_connection
67
+
68
+ @sso_connection.setter
69
+ def sso_connection(self, sso_connection):
70
+ """Sets the sso_connection of this SSOConfig.
71
+
72
+
73
+ :param sso_connection: The sso_connection of this SSOConfig. # noqa: E501
74
+ :type: SSOConnection
75
+ """
76
+ if self.local_vars_configuration.client_side_validation and sso_connection is None: # noqa: E501
77
+ raise ValueError("Invalid value for `sso_connection`, must not be `None`") # noqa: E501
78
+
79
+ self._sso_connection = sso_connection
80
+
81
+ @property
82
+ def domain_verification(self):
83
+ """Gets the domain_verification of this SSOConfig. # noqa: E501
84
+
85
+
86
+ :return: The domain_verification of this SSOConfig. # noqa: E501
87
+ :rtype: DomainVerification
88
+ """
89
+ return self._domain_verification
90
+
91
+ @domain_verification.setter
92
+ def domain_verification(self, domain_verification):
93
+ """Sets the domain_verification of this SSOConfig.
94
+
95
+
96
+ :param domain_verification: The domain_verification of this SSOConfig. # noqa: E501
97
+ :type: DomainVerification
98
+ """
99
+ if self.local_vars_configuration.client_side_validation and domain_verification is None: # noqa: E501
100
+ raise ValueError("Invalid value for `domain_verification`, must not be `None`") # noqa: E501
101
+
102
+ self._domain_verification = domain_verification
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, SSOConfig):
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, SSOConfig):
146
+ return True
147
+
148
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,148 @@
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 SSOConnection(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': 'SSOConnectionState'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'url': 'url',
42
+ 'state': 'state'
43
+ }
44
+
45
+ def __init__(self, url=None, state=None, local_vars_configuration=None): # noqa: E501
46
+ """SSOConnection - 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._url = None
52
+ self._state = None
53
+ self.discriminator = None
54
+
55
+ self.url = url
56
+ self.state = state
57
+
58
+ @property
59
+ def url(self):
60
+ """Gets the url of this SSOConnection. # noqa: E501
61
+
62
+
63
+ :return: The url of this SSOConnection. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._url
67
+
68
+ @url.setter
69
+ def url(self, url):
70
+ """Sets the url of this SSOConnection.
71
+
72
+
73
+ :param url: The url of this SSOConnection. # noqa: E501
74
+ :type: str
75
+ """
76
+ if self.local_vars_configuration.client_side_validation and url is None: # noqa: E501
77
+ raise ValueError("Invalid value for `url`, must not be `None`") # noqa: E501
78
+
79
+ self._url = url
80
+
81
+ @property
82
+ def state(self):
83
+ """Gets the state of this SSOConnection. # noqa: E501
84
+
85
+
86
+ :return: The state of this SSOConnection. # noqa: E501
87
+ :rtype: SSOConnectionState
88
+ """
89
+ return self._state
90
+
91
+ @state.setter
92
+ def state(self, state):
93
+ """Sets the state of this SSOConnection.
94
+
95
+
96
+ :param state: The state of this SSOConnection. # noqa: E501
97
+ :type: SSOConnectionState
98
+ """
99
+ if self.local_vars_configuration.client_side_validation and state is None: # noqa: E501
100
+ raise ValueError("Invalid value for `state`, must not be `None`") # noqa: E501
101
+
102
+ self._state = state
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, SSOConnection):
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, SSOConnection):
146
+ return True
147
+
148
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,100 @@
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 SSOConnectionState(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
+ ACTIVE = "active"
32
+ INACTIVE = "inactive"
33
+
34
+ allowable_values = [ACTIVE, INACTIVE] # 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
+ """SSOConnectionState - 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, SSOConnectionState):
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, SSOConnectionState):
98
+ return True
99
+
100
+ return self.to_dict() != other.to_dict()
@@ -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 SsoconfigResponse(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': 'SSOConfig'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'result': 'result'
41
+ }
42
+
43
+ def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
+ """SsoconfigResponse - 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 SsoconfigResponse. # noqa: E501
57
+
58
+
59
+ :return: The result of this SsoconfigResponse. # noqa: E501
60
+ :rtype: SSOConfig
61
+ """
62
+ return self._result
63
+
64
+ @result.setter
65
+ def result(self, result):
66
+ """Sets the result of this SsoconfigResponse.
67
+
68
+
69
+ :param result: The result of this SsoconfigResponse. # noqa: E501
70
+ :type: SSOConfig
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, SsoconfigResponse):
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, SsoconfigResponse):
119
+ return True
120
+
121
+ return self.to_dict() != other.to_dict()