anyscale 0.26.20__py3-none-any.whl → 0.26.22__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 (34) hide show
  1. anyscale/_private/anyscale_client/anyscale_client.py +103 -43
  2. anyscale/_private/anyscale_client/common.py +37 -7
  3. anyscale/_private/anyscale_client/fake_anyscale_client.py +98 -27
  4. anyscale/_private/models/model_base.py +95 -0
  5. anyscale/_private/workload/workload_sdk.py +3 -1
  6. anyscale/aggregated_instance_usage/models.py +4 -4
  7. anyscale/client/README.md +1 -9
  8. anyscale/client/openapi_client/__init__.py +0 -3
  9. anyscale/client/openapi_client/api/default_api.py +151 -715
  10. anyscale/client/openapi_client/models/__init__.py +0 -3
  11. anyscale/commands/cloud_commands.py +15 -4
  12. anyscale/commands/command_examples.py +4 -0
  13. anyscale/commands/list_util.py +107 -0
  14. anyscale/commands/service_commands.py +267 -31
  15. anyscale/commands/util.py +5 -4
  16. anyscale/controllers/cloud_controller.py +358 -49
  17. anyscale/controllers/service_controller.py +7 -86
  18. anyscale/service/__init__.py +53 -3
  19. anyscale/service/_private/service_sdk.py +177 -41
  20. anyscale/service/commands.py +78 -1
  21. anyscale/service/models.py +65 -0
  22. anyscale/util.py +35 -1
  23. anyscale/utils/gcp_utils.py +20 -4
  24. anyscale/version.py +1 -1
  25. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/METADATA +1 -1
  26. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/RECORD +31 -33
  27. anyscale/client/openapi_client/models/organization_public_identifier.py +0 -121
  28. anyscale/client/openapi_client/models/organization_response.py +0 -121
  29. anyscale/client/openapi_client/models/organizationpublicidentifier_response.py +0 -121
  30. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/LICENSE +0 -0
  31. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/NOTICE +0 -0
  32. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/WHEEL +0 -0
  33. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/entry_points.txt +0 -0
  34. {anyscale-0.26.20.dist-info → anyscale-0.26.22.dist-info}/top_level.txt +0 -0
@@ -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 OrganizationpublicidentifierResponse(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': 'OrganizationPublicIdentifier'
37
- }
38
-
39
- attribute_map = {
40
- 'result': 'result'
41
- }
42
-
43
- def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
44
- """OrganizationpublicidentifierResponse - 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 OrganizationpublicidentifierResponse. # noqa: E501
57
-
58
-
59
- :return: The result of this OrganizationpublicidentifierResponse. # noqa: E501
60
- :rtype: OrganizationPublicIdentifier
61
- """
62
- return self._result
63
-
64
- @result.setter
65
- def result(self, result):
66
- """Sets the result of this OrganizationpublicidentifierResponse.
67
-
68
-
69
- :param result: The result of this OrganizationpublicidentifierResponse. # noqa: E501
70
- :type: OrganizationPublicIdentifier
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, OrganizationpublicidentifierResponse):
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, OrganizationpublicidentifierResponse):
119
- return True
120
-
121
- return self.to_dict() != other.to_dict()