anyscale 0.26.18__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.
Files changed (31) hide show
  1. anyscale/_private/docgen/models.md +2 -2
  2. anyscale/client/README.md +12 -0
  3. anyscale/client/openapi_client/__init__.py +11 -0
  4. anyscale/client/openapi_client/api/default_api.py +115 -3
  5. anyscale/client/openapi_client/models/__init__.py +11 -0
  6. anyscale/client/openapi_client/models/aws_config.py +402 -0
  7. anyscale/client/openapi_client/models/baseimagesenum.py +68 -1
  8. anyscale/client/openapi_client/models/cloud_deployment.py +397 -0
  9. anyscale/client/openapi_client/models/clouddeployment_list_response.py +147 -0
  10. anyscale/client/openapi_client/models/file_storage.py +206 -0
  11. anyscale/client/openapi_client/models/gcp_config.py +402 -0
  12. anyscale/client/openapi_client/models/kubernetes_config.py +150 -0
  13. anyscale/client/openapi_client/models/networking_mode.py +100 -0
  14. anyscale/client/openapi_client/models/object_storage.py +178 -0
  15. anyscale/client/openapi_client/models/pcp_config.py +122 -0
  16. anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
  17. anyscale/client/openapi_client/models/workspace_template_readme.py +181 -0
  18. anyscale/client/openapi_client/models/workspacetemplatereadme_response.py +121 -0
  19. anyscale/commands/cloud_commands.py +23 -3
  20. anyscale/controllers/cloud_controller.py +37 -0
  21. anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
  22. anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
  23. anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
  24. anyscale/version.py +1 -1
  25. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/METADATA +1 -1
  26. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/RECORD +31 -20
  27. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/LICENSE +0 -0
  28. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/NOTICE +0 -0
  29. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/WHEEL +0 -0
  30. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/entry_points.txt +0 -0
  31. {anyscale-0.26.18.dist-info → anyscale-0.26.19.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,150 @@
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 KubernetesConfig(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
+ 'anyscale_operator_iam_identity': 'str',
37
+ 'zones': 'list[str]'
38
+ }
39
+
40
+ attribute_map = {
41
+ 'anyscale_operator_iam_identity': 'anyscale_operator_iam_identity',
42
+ 'zones': 'zones'
43
+ }
44
+
45
+ def __init__(self, anyscale_operator_iam_identity=None, zones=None, local_vars_configuration=None): # noqa: E501
46
+ """KubernetesConfig - 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._anyscale_operator_iam_identity = None
52
+ self._zones = None
53
+ self.discriminator = None
54
+
55
+ if anyscale_operator_iam_identity is not None:
56
+ self.anyscale_operator_iam_identity = anyscale_operator_iam_identity
57
+ if zones is not None:
58
+ self.zones = zones
59
+
60
+ @property
61
+ def anyscale_operator_iam_identity(self):
62
+ """Gets the anyscale_operator_iam_identity of this KubernetesConfig. # noqa: E501
63
+
64
+ The cloud provider IAM identity federated with the Anyscale Operator's Kubernetes service account, which will be used by Anyscale control plane for validation during Anyscale Operator bootstrap in the dataplane. IN AWS EKS, this is the ARN of the IAM role. For GCP GKE, this is the service account email. # noqa: E501
65
+
66
+ :return: The anyscale_operator_iam_identity of this KubernetesConfig. # noqa: E501
67
+ :rtype: str
68
+ """
69
+ return self._anyscale_operator_iam_identity
70
+
71
+ @anyscale_operator_iam_identity.setter
72
+ def anyscale_operator_iam_identity(self, anyscale_operator_iam_identity):
73
+ """Sets the anyscale_operator_iam_identity of this KubernetesConfig.
74
+
75
+ The cloud provider IAM identity federated with the Anyscale Operator's Kubernetes service account, which will be used by Anyscale control plane for validation during Anyscale Operator bootstrap in the dataplane. IN AWS EKS, this is the ARN of the IAM role. For GCP GKE, this is the service account email. # noqa: E501
76
+
77
+ :param anyscale_operator_iam_identity: The anyscale_operator_iam_identity of this KubernetesConfig. # noqa: E501
78
+ :type: str
79
+ """
80
+
81
+ self._anyscale_operator_iam_identity = anyscale_operator_iam_identity
82
+
83
+ @property
84
+ def zones(self):
85
+ """Gets the zones of this KubernetesConfig. # noqa: E501
86
+
87
+ List of zones to launch pods in. # noqa: E501
88
+
89
+ :return: The zones of this KubernetesConfig. # noqa: E501
90
+ :rtype: list[str]
91
+ """
92
+ return self._zones
93
+
94
+ @zones.setter
95
+ def zones(self, zones):
96
+ """Sets the zones of this KubernetesConfig.
97
+
98
+ List of zones to launch pods in. # noqa: E501
99
+
100
+ :param zones: The zones of this KubernetesConfig. # noqa: E501
101
+ :type: list[str]
102
+ """
103
+
104
+ self._zones = zones
105
+
106
+ def to_dict(self):
107
+ """Returns the model properties as a dict"""
108
+ result = {}
109
+
110
+ for attr, _ in six.iteritems(self.openapi_types):
111
+ value = getattr(self, attr)
112
+ if isinstance(value, list):
113
+ result[attr] = list(map(
114
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115
+ value
116
+ ))
117
+ elif hasattr(value, "to_dict"):
118
+ result[attr] = value.to_dict()
119
+ elif isinstance(value, dict):
120
+ result[attr] = dict(map(
121
+ lambda item: (item[0], item[1].to_dict())
122
+ if hasattr(item[1], "to_dict") else item,
123
+ value.items()
124
+ ))
125
+ else:
126
+ result[attr] = value
127
+
128
+ return result
129
+
130
+ def to_str(self):
131
+ """Returns the string representation of the model"""
132
+ return pprint.pformat(self.to_dict())
133
+
134
+ def __repr__(self):
135
+ """For `print` and `pprint`"""
136
+ return self.to_str()
137
+
138
+ def __eq__(self, other):
139
+ """Returns true if both objects are equal"""
140
+ if not isinstance(other, KubernetesConfig):
141
+ return False
142
+
143
+ return self.to_dict() == other.to_dict()
144
+
145
+ def __ne__(self, other):
146
+ """Returns true if both objects are not equal"""
147
+ if not isinstance(other, KubernetesConfig):
148
+ return True
149
+
150
+ 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 NetworkingMode(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
+ PUBLIC = "PUBLIC"
32
+ PRIVATE = "PRIVATE"
33
+
34
+ allowable_values = [PUBLIC, PRIVATE] # 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
+ """NetworkingMode - 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, NetworkingMode):
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, NetworkingMode):
98
+ return True
99
+
100
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,178 @@
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 ObjectStorage(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
+ 'bucket_name': 'str',
37
+ 'region': 'str',
38
+ 'endpoint': 'str'
39
+ }
40
+
41
+ attribute_map = {
42
+ 'bucket_name': 'bucket_name',
43
+ 'region': 'region',
44
+ 'endpoint': 'endpoint'
45
+ }
46
+
47
+ def __init__(self, bucket_name=None, region=None, endpoint=None, local_vars_configuration=None): # noqa: E501
48
+ """ObjectStorage - 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._bucket_name = None
54
+ self._region = None
55
+ self._endpoint = None
56
+ self.discriminator = None
57
+
58
+ if bucket_name is not None:
59
+ self.bucket_name = bucket_name
60
+ if region is not None:
61
+ self.region = region
62
+ if endpoint is not None:
63
+ self.endpoint = endpoint
64
+
65
+ @property
66
+ def bucket_name(self):
67
+ """Gets the bucket_name of this ObjectStorage. # noqa: E501
68
+
69
+ The cloud storage bucket name, prefixed with the storage scheme (s3://bucket-name, gs://bucket-name, or azure://bucket-name). # noqa: E501
70
+
71
+ :return: The bucket_name of this ObjectStorage. # noqa: E501
72
+ :rtype: str
73
+ """
74
+ return self._bucket_name
75
+
76
+ @bucket_name.setter
77
+ def bucket_name(self, bucket_name):
78
+ """Sets the bucket_name of this ObjectStorage.
79
+
80
+ The cloud storage bucket name, prefixed with the storage scheme (s3://bucket-name, gs://bucket-name, or azure://bucket-name). # noqa: E501
81
+
82
+ :param bucket_name: The bucket_name of this ObjectStorage. # noqa: E501
83
+ :type: str
84
+ """
85
+
86
+ self._bucket_name = bucket_name
87
+
88
+ @property
89
+ def region(self):
90
+ """Gets the region of this ObjectStorage. # noqa: E501
91
+
92
+ The region for the cloud storage bucket. Defaults to the region of the deployment. # noqa: E501
93
+
94
+ :return: The region of this ObjectStorage. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._region
98
+
99
+ @region.setter
100
+ def region(self, region):
101
+ """Sets the region of this ObjectStorage.
102
+
103
+ The region for the cloud storage bucket. Defaults to the region of the deployment. # noqa: E501
104
+
105
+ :param region: The region of this ObjectStorage. # noqa: E501
106
+ :type: str
107
+ """
108
+
109
+ self._region = region
110
+
111
+ @property
112
+ def endpoint(self):
113
+ """Gets the endpoint of this ObjectStorage. # noqa: E501
114
+
115
+ The cloud storage endpoint, used to override the default cloud storage scheme's endpoint. For example, for S3, this will be passed to the AWS_ENDPOINT_URL environment variable. # noqa: E501
116
+
117
+ :return: The endpoint of this ObjectStorage. # noqa: E501
118
+ :rtype: str
119
+ """
120
+ return self._endpoint
121
+
122
+ @endpoint.setter
123
+ def endpoint(self, endpoint):
124
+ """Sets the endpoint of this ObjectStorage.
125
+
126
+ The cloud storage endpoint, used to override the default cloud storage scheme's endpoint. For example, for S3, this will be passed to the AWS_ENDPOINT_URL environment variable. # noqa: E501
127
+
128
+ :param endpoint: The endpoint of this ObjectStorage. # noqa: E501
129
+ :type: str
130
+ """
131
+
132
+ self._endpoint = endpoint
133
+
134
+ def to_dict(self):
135
+ """Returns the model properties as a dict"""
136
+ result = {}
137
+
138
+ for attr, _ in six.iteritems(self.openapi_types):
139
+ value = getattr(self, attr)
140
+ if isinstance(value, list):
141
+ result[attr] = list(map(
142
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
143
+ value
144
+ ))
145
+ elif hasattr(value, "to_dict"):
146
+ result[attr] = value.to_dict()
147
+ elif isinstance(value, dict):
148
+ result[attr] = dict(map(
149
+ lambda item: (item[0], item[1].to_dict())
150
+ if hasattr(item[1], "to_dict") else item,
151
+ value.items()
152
+ ))
153
+ else:
154
+ result[attr] = value
155
+
156
+ return result
157
+
158
+ def to_str(self):
159
+ """Returns the string representation of the model"""
160
+ return pprint.pformat(self.to_dict())
161
+
162
+ def __repr__(self):
163
+ """For `print` and `pprint`"""
164
+ return self.to_str()
165
+
166
+ def __eq__(self, other):
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, ObjectStorage):
169
+ return False
170
+
171
+ return self.to_dict() == other.to_dict()
172
+
173
+ def __ne__(self, other):
174
+ """Returns true if both objects are not equal"""
175
+ if not isinstance(other, ObjectStorage):
176
+ return True
177
+
178
+ return self.to_dict() != other.to_dict()
@@ -0,0 +1,122 @@
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 PCPConfig(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
+ 'machine_pool_name': 'str'
37
+ }
38
+
39
+ attribute_map = {
40
+ 'machine_pool_name': 'machine_pool_name'
41
+ }
42
+
43
+ def __init__(self, machine_pool_name=None, local_vars_configuration=None): # noqa: E501
44
+ """PCPConfig - 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._machine_pool_name = None
50
+ self.discriminator = None
51
+
52
+ if machine_pool_name is not None:
53
+ self.machine_pool_name = machine_pool_name
54
+
55
+ @property
56
+ def machine_pool_name(self):
57
+ """Gets the machine_pool_name of this PCPConfig. # noqa: E501
58
+
59
+ The name of the machine pool. # noqa: E501
60
+
61
+ :return: The machine_pool_name of this PCPConfig. # noqa: E501
62
+ :rtype: str
63
+ """
64
+ return self._machine_pool_name
65
+
66
+ @machine_pool_name.setter
67
+ def machine_pool_name(self, machine_pool_name):
68
+ """Sets the machine_pool_name of this PCPConfig.
69
+
70
+ The name of the machine pool. # noqa: E501
71
+
72
+ :param machine_pool_name: The machine_pool_name of this PCPConfig. # noqa: E501
73
+ :type: str
74
+ """
75
+
76
+ self._machine_pool_name = machine_pool_name
77
+
78
+ def to_dict(self):
79
+ """Returns the model properties as a dict"""
80
+ result = {}
81
+
82
+ for attr, _ in six.iteritems(self.openapi_types):
83
+ value = getattr(self, attr)
84
+ if isinstance(value, list):
85
+ result[attr] = list(map(
86
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
87
+ value
88
+ ))
89
+ elif hasattr(value, "to_dict"):
90
+ result[attr] = value.to_dict()
91
+ elif isinstance(value, dict):
92
+ result[attr] = dict(map(
93
+ lambda item: (item[0], item[1].to_dict())
94
+ if hasattr(item[1], "to_dict") else item,
95
+ value.items()
96
+ ))
97
+ else:
98
+ result[attr] = value
99
+
100
+ return result
101
+
102
+ def to_str(self):
103
+ """Returns the string representation of the model"""
104
+ return pprint.pformat(self.to_dict())
105
+
106
+ def __repr__(self):
107
+ """For `print` and `pprint`"""
108
+ return self.to_str()
109
+
110
+ def __eq__(self, other):
111
+ """Returns true if both objects are equal"""
112
+ if not isinstance(other, PCPConfig):
113
+ return False
114
+
115
+ return self.to_dict() == other.to_dict()
116
+
117
+ def __ne__(self, other):
118
+ """Returns true if both objects are not equal"""
119
+ if not isinstance(other, PCPConfig):
120
+ return True
121
+
122
+ return self.to_dict() != other.to_dict()