anyscale 0.26.17__py3-none-any.whl → 0.26.20__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 +3 -3
- anyscale/anyscale-cloud-setup.yaml +0 -4
- anyscale/client/README.md +18 -38
- anyscale/client/openapi_client/__init__.py +14 -20
- anyscale/client/openapi_client/api/default_api.py +460 -2097
- anyscale/client/openapi_client/models/__init__.py +14 -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/decorated_production_job_state_transition.py +2 -2
- 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/{session_details.py → job_queue_sort_directive.py} +39 -39
- anyscale/client/openapi_client/models/{sessiondescribe_response.py → job_queue_sort_field.py} +20 -34
- anyscale/client/openapi_client/models/job_queues_query.py +31 -3
- 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/production_job_state_transition.py +2 -2
- anyscale/client/openapi_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/client/openapi_client/models/{external_service_status.py → update_job_queue_request.py} +39 -36
- 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/commands/command_examples.py +58 -0
- anyscale/commands/job_commands.py +2 -2
- anyscale/commands/job_queue_commands.py +172 -0
- anyscale/connect_utils/prepare_cluster.py +19 -14
- anyscale/controllers/cloud_controller.py +60 -3
- anyscale/controllers/job_controller.py +215 -3
- anyscale/scripts.py +3 -0
- anyscale/sdk/anyscale_client/models/baseimagesenum.py +68 -1
- anyscale/sdk/anyscale_client/models/production_job_state_transition.py +2 -2
- anyscale/sdk/anyscale_client/models/supportedbaseimagesenum.py +68 -1
- anyscale/shared_anyscale_utils/latest_ray_version.py +1 -1
- anyscale/util.py +3 -1
- anyscale/utils/connect_helpers.py +34 -0
- anyscale/version.py +1 -1
- anyscale/workspace/_private/workspace_sdk.py +19 -6
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/METADATA +1 -1
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/RECORD +48 -53
- 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_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_history_item.py +0 -146
- 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.20.dist-info}/LICENSE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/NOTICE +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/WHEEL +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.17.dist-info → anyscale-0.26.20.dist-info}/top_level.txt +0 -0
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class JobQueueSortDirective(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -33,73 +33,73 @@ class SessionDetails(object):
|
|
33
33
|
and the value is json key in definition.
|
34
34
|
"""
|
35
35
|
openapi_types = {
|
36
|
-
'
|
37
|
-
'
|
36
|
+
'sort_field': 'JobQueueSortField',
|
37
|
+
'sort_order': 'SortOrder'
|
38
38
|
}
|
39
39
|
|
40
40
|
attribute_map = {
|
41
|
-
'
|
42
|
-
'
|
41
|
+
'sort_field': 'sort_field',
|
42
|
+
'sort_order': 'sort_order'
|
43
43
|
}
|
44
44
|
|
45
|
-
def __init__(self,
|
46
|
-
"""
|
45
|
+
def __init__(self, sort_field=None, sort_order=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""JobQueueSortDirective - a model defined in OpenAPI""" # noqa: E501
|
47
47
|
if local_vars_configuration is None:
|
48
48
|
local_vars_configuration = Configuration()
|
49
49
|
self.local_vars_configuration = local_vars_configuration
|
50
50
|
|
51
|
-
self.
|
52
|
-
self.
|
51
|
+
self._sort_field = None
|
52
|
+
self._sort_order = None
|
53
53
|
self.discriminator = None
|
54
54
|
|
55
|
-
self.
|
56
|
-
self.
|
55
|
+
self.sort_field = sort_field
|
56
|
+
self.sort_order = sort_order
|
57
57
|
|
58
58
|
@property
|
59
|
-
def
|
60
|
-
"""Gets the
|
59
|
+
def sort_field(self):
|
60
|
+
"""Gets the sort_field of this JobQueueSortDirective. # noqa: E501
|
61
61
|
|
62
62
|
|
63
|
-
:return: The
|
64
|
-
:rtype:
|
63
|
+
:return: The sort_field of this JobQueueSortDirective. # noqa: E501
|
64
|
+
:rtype: JobQueueSortField
|
65
65
|
"""
|
66
|
-
return self.
|
66
|
+
return self._sort_field
|
67
67
|
|
68
|
-
@
|
69
|
-
def
|
70
|
-
"""Sets the
|
68
|
+
@sort_field.setter
|
69
|
+
def sort_field(self, sort_field):
|
70
|
+
"""Sets the sort_field of this JobQueueSortDirective.
|
71
71
|
|
72
72
|
|
73
|
-
:param
|
74
|
-
:type:
|
73
|
+
:param sort_field: The sort_field of this JobQueueSortDirective. # noqa: E501
|
74
|
+
:type: JobQueueSortField
|
75
75
|
"""
|
76
|
-
if self.local_vars_configuration.client_side_validation and
|
77
|
-
raise ValueError("Invalid value for `
|
76
|
+
if self.local_vars_configuration.client_side_validation and sort_field is None: # noqa: E501
|
77
|
+
raise ValueError("Invalid value for `sort_field`, must not be `None`") # noqa: E501
|
78
78
|
|
79
|
-
self.
|
79
|
+
self._sort_field = sort_field
|
80
80
|
|
81
81
|
@property
|
82
|
-
def
|
83
|
-
"""Gets the
|
82
|
+
def sort_order(self):
|
83
|
+
"""Gets the sort_order of this JobQueueSortDirective. # noqa: E501
|
84
84
|
|
85
85
|
|
86
|
-
:return: The
|
87
|
-
:rtype:
|
86
|
+
:return: The sort_order of this JobQueueSortDirective. # noqa: E501
|
87
|
+
:rtype: SortOrder
|
88
88
|
"""
|
89
|
-
return self.
|
89
|
+
return self._sort_order
|
90
90
|
|
91
|
-
@
|
92
|
-
def
|
93
|
-
"""Sets the
|
91
|
+
@sort_order.setter
|
92
|
+
def sort_order(self, sort_order):
|
93
|
+
"""Sets the sort_order of this JobQueueSortDirective.
|
94
94
|
|
95
95
|
|
96
|
-
:param
|
97
|
-
:type:
|
96
|
+
:param sort_order: The sort_order of this JobQueueSortDirective. # noqa: E501
|
97
|
+
:type: SortOrder
|
98
98
|
"""
|
99
|
-
if self.local_vars_configuration.client_side_validation and
|
100
|
-
raise ValueError("Invalid value for `
|
99
|
+
if self.local_vars_configuration.client_side_validation and sort_order is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `sort_order`, must not be `None`") # noqa: E501
|
101
101
|
|
102
|
-
self.
|
102
|
+
self._sort_order = sort_order
|
103
103
|
|
104
104
|
def to_dict(self):
|
105
105
|
"""Returns the model properties as a dict"""
|
@@ -135,14 +135,14 @@ class SessionDetails(object):
|
|
135
135
|
|
136
136
|
def __eq__(self, other):
|
137
137
|
"""Returns true if both objects are equal"""
|
138
|
-
if not isinstance(other,
|
138
|
+
if not isinstance(other, JobQueueSortDirective):
|
139
139
|
return False
|
140
140
|
|
141
141
|
return self.to_dict() == other.to_dict()
|
142
142
|
|
143
143
|
def __ne__(self, other):
|
144
144
|
"""Returns true if both objects are not equal"""
|
145
|
-
if not isinstance(other,
|
145
|
+
if not isinstance(other, JobQueueSortDirective):
|
146
146
|
return True
|
147
147
|
|
148
148
|
return self.to_dict() != other.to_dict()
|
anyscale/client/openapi_client/models/{sessiondescribe_response.py → job_queue_sort_field.py}
RENAMED
@@ -18,13 +18,28 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class JobQueueSortField(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
25
25
|
Do not edit the class manually.
|
26
26
|
"""
|
27
27
|
|
28
|
+
"""
|
29
|
+
allowed enum values
|
30
|
+
"""
|
31
|
+
ID = "ID"
|
32
|
+
NAME = "NAME"
|
33
|
+
CREATED_AT = "CREATED_AT"
|
34
|
+
CREATOR_ID = "CREATOR_ID"
|
35
|
+
CREATOR_EMAIL = "CREATOR_EMAIL"
|
36
|
+
PROJECT_ID = "PROJECT_ID"
|
37
|
+
CLOUD_ID = "CLOUD_ID"
|
38
|
+
QUEUE_STATE = "QUEUE_STATE"
|
39
|
+
CLUSTER_STATE = "CLUSTER_STATE"
|
40
|
+
|
41
|
+
allowable_values = [ID, NAME, CREATED_AT, CREATOR_ID, CREATOR_EMAIL, PROJECT_ID, CLOUD_ID, QUEUE_STATE, CLUSTER_STATE] # noqa: E501
|
42
|
+
|
28
43
|
"""
|
29
44
|
Attributes:
|
30
45
|
openapi_types (dict): The key is attribute name
|
@@ -33,47 +48,18 @@ class SessiondescribeResponse(object):
|
|
33
48
|
and the value is json key in definition.
|
34
49
|
"""
|
35
50
|
openapi_types = {
|
36
|
-
'result': 'SessionDescribe'
|
37
51
|
}
|
38
52
|
|
39
53
|
attribute_map = {
|
40
|
-
'result': 'result'
|
41
54
|
}
|
42
55
|
|
43
|
-
def __init__(self,
|
44
|
-
"""
|
56
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
57
|
+
"""JobQueueSortField - a model defined in OpenAPI""" # noqa: E501
|
45
58
|
if local_vars_configuration is None:
|
46
59
|
local_vars_configuration = Configuration()
|
47
60
|
self.local_vars_configuration = local_vars_configuration
|
48
|
-
|
49
|
-
self._result = None
|
50
61
|
self.discriminator = None
|
51
62
|
|
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
63
|
def to_dict(self):
|
78
64
|
"""Returns the model properties as a dict"""
|
79
65
|
result = {}
|
@@ -108,14 +94,14 @@ class SessiondescribeResponse(object):
|
|
108
94
|
|
109
95
|
def __eq__(self, other):
|
110
96
|
"""Returns true if both objects are equal"""
|
111
|
-
if not isinstance(other,
|
97
|
+
if not isinstance(other, JobQueueSortField):
|
112
98
|
return False
|
113
99
|
|
114
100
|
return self.to_dict() == other.to_dict()
|
115
101
|
|
116
102
|
def __ne__(self, other):
|
117
103
|
"""Returns true if both objects are not equal"""
|
118
|
-
if not isinstance(other,
|
104
|
+
if not isinstance(other, JobQueueSortField):
|
119
105
|
return True
|
120
106
|
|
121
107
|
return self.to_dict() != other.to_dict()
|
@@ -38,7 +38,8 @@ class JobQueuesQuery(object):
|
|
38
38
|
'cluster_status': 'SessionState',
|
39
39
|
'project_id': 'str',
|
40
40
|
'cloud_id': 'str',
|
41
|
-
'paging': 'PageQuery'
|
41
|
+
'paging': 'PageQuery',
|
42
|
+
'sorting_directives': 'list[JobQueueSortDirective]'
|
42
43
|
}
|
43
44
|
|
44
45
|
attribute_map = {
|
@@ -47,10 +48,11 @@ class JobQueuesQuery(object):
|
|
47
48
|
'cluster_status': 'cluster_status',
|
48
49
|
'project_id': 'project_id',
|
49
50
|
'cloud_id': 'cloud_id',
|
50
|
-
'paging': 'paging'
|
51
|
+
'paging': 'paging',
|
52
|
+
'sorting_directives': 'sorting_directives'
|
51
53
|
}
|
52
54
|
|
53
|
-
def __init__(self, name=None, creator_id=None, cluster_status=None, project_id=None, cloud_id=None, paging=None, local_vars_configuration=None): # noqa: E501
|
55
|
+
def __init__(self, name=None, creator_id=None, cluster_status=None, project_id=None, cloud_id=None, paging=None, sorting_directives=None, local_vars_configuration=None): # noqa: E501
|
54
56
|
"""JobQueuesQuery - a model defined in OpenAPI""" # noqa: E501
|
55
57
|
if local_vars_configuration is None:
|
56
58
|
local_vars_configuration = Configuration()
|
@@ -62,6 +64,7 @@ class JobQueuesQuery(object):
|
|
62
64
|
self._project_id = None
|
63
65
|
self._cloud_id = None
|
64
66
|
self._paging = None
|
67
|
+
self._sorting_directives = None
|
65
68
|
self.discriminator = None
|
66
69
|
|
67
70
|
if name is not None:
|
@@ -76,6 +79,8 @@ class JobQueuesQuery(object):
|
|
76
79
|
self.cloud_id = cloud_id
|
77
80
|
if paging is not None:
|
78
81
|
self.paging = paging
|
82
|
+
if sorting_directives is not None:
|
83
|
+
self.sorting_directives = sorting_directives
|
79
84
|
|
80
85
|
@property
|
81
86
|
def name(self):
|
@@ -215,6 +220,29 @@ class JobQueuesQuery(object):
|
|
215
220
|
|
216
221
|
self._paging = paging
|
217
222
|
|
223
|
+
@property
|
224
|
+
def sorting_directives(self):
|
225
|
+
"""Gets the sorting_directives of this JobQueuesQuery. # noqa: E501
|
226
|
+
|
227
|
+
List of sorting criteria (multi-field sort supported). # noqa: E501
|
228
|
+
|
229
|
+
:return: The sorting_directives of this JobQueuesQuery. # noqa: E501
|
230
|
+
:rtype: list[JobQueueSortDirective]
|
231
|
+
"""
|
232
|
+
return self._sorting_directives
|
233
|
+
|
234
|
+
@sorting_directives.setter
|
235
|
+
def sorting_directives(self, sorting_directives):
|
236
|
+
"""Sets the sorting_directives of this JobQueuesQuery.
|
237
|
+
|
238
|
+
List of sorting criteria (multi-field sort supported). # noqa: E501
|
239
|
+
|
240
|
+
:param sorting_directives: The sorting_directives of this JobQueuesQuery. # noqa: E501
|
241
|
+
:type: list[JobQueueSortDirective]
|
242
|
+
"""
|
243
|
+
|
244
|
+
self._sorting_directives = sorting_directives
|
245
|
+
|
218
246
|
def to_dict(self):
|
219
247
|
"""Returns the model properties as a dict"""
|
220
248
|
result = {}
|
@@ -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()
|
@@ -18,7 +18,7 @@ import six
|
|
18
18
|
from openapi_client.configuration import Configuration
|
19
19
|
|
20
20
|
|
21
|
-
class
|
21
|
+
class NetworkingMode(object):
|
22
22
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
23
|
Ref: https://openapi-generator.tech
|
24
24
|
|
@@ -28,10 +28,10 @@ class MonitorLogsExtension(object):
|
|
28
28
|
"""
|
29
29
|
allowed enum values
|
30
30
|
"""
|
31
|
-
|
32
|
-
|
31
|
+
PUBLIC = "PUBLIC"
|
32
|
+
PRIVATE = "PRIVATE"
|
33
33
|
|
34
|
-
allowable_values = [
|
34
|
+
allowable_values = [PUBLIC, PRIVATE] # noqa: E501
|
35
35
|
|
36
36
|
"""
|
37
37
|
Attributes:
|
@@ -47,7 +47,7 @@ class MonitorLogsExtension(object):
|
|
47
47
|
}
|
48
48
|
|
49
49
|
def __init__(self, local_vars_configuration=None): # noqa: E501
|
50
|
-
"""
|
50
|
+
"""NetworkingMode - a model defined in OpenAPI""" # noqa: E501
|
51
51
|
if local_vars_configuration is None:
|
52
52
|
local_vars_configuration = Configuration()
|
53
53
|
self.local_vars_configuration = local_vars_configuration
|
@@ -87,14 +87,14 @@ class MonitorLogsExtension(object):
|
|
87
87
|
|
88
88
|
def __eq__(self, other):
|
89
89
|
"""Returns true if both objects are equal"""
|
90
|
-
if not isinstance(other,
|
90
|
+
if not isinstance(other, NetworkingMode):
|
91
91
|
return False
|
92
92
|
|
93
93
|
return self.to_dict() == other.to_dict()
|
94
94
|
|
95
95
|
def __ne__(self, other):
|
96
96
|
"""Returns true if both objects are not equal"""
|
97
|
-
if not isinstance(other,
|
97
|
+
if not isinstance(other, NetworkingMode):
|
98
98
|
return True
|
99
99
|
|
100
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()
|