anyscale 0.26.57__py3-none-any.whl → 0.26.58__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/client/README.md +45 -0
- anyscale/client/openapi_client/__init__.py +32 -0
- anyscale/client/openapi_client/api/default_api.py +1882 -244
- anyscale/client/openapi_client/models/__init__.py +32 -0
- anyscale/client/openapi_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/client/openapi_client/models/create_experimental_workspace.py +29 -1
- anyscale/client/openapi_client/models/create_workspace_template.py +404 -0
- anyscale/client/openapi_client/models/create_workspace_template_version.py +178 -0
- anyscale/client/openapi_client/models/delete_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/deleted_count.py +121 -0
- anyscale/client/openapi_client/models/deletedcount_response.py +121 -0
- anyscale/client/openapi_client/models/global_workspace_template.py +465 -0
- anyscale/client/openapi_client/models/globalworkspacetemplate_list_response.py +147 -0
- anyscale/client/openapi_client/models/published_filter.py +101 -0
- anyscale/client/openapi_client/models/resource_tag_record.py +310 -0
- anyscale/client/openapi_client/models/resource_tag_resource_type.py +102 -0
- anyscale/client/openapi_client/models/resource_tags_list.py +121 -0
- anyscale/client/openapi_client/models/resourcetagslist_response.py +121 -0
- anyscale/client/openapi_client/models/tag_key.py +121 -0
- anyscale/client/openapi_client/models/tag_key_value.py +148 -0
- anyscale/client/openapi_client/models/tag_search_in.py +101 -0
- anyscale/client/openapi_client/models/tag_value.py +121 -0
- anyscale/client/openapi_client/models/tagkey_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagkeyvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/tagvalue_list_response.py +147 -0
- anyscale/client/openapi_client/models/task_attempts.py +101 -0
- anyscale/client/openapi_client/models/task_table_config.py +29 -3
- anyscale/client/openapi_client/models/upsert_resource_tags_request.py +175 -0
- anyscale/client/openapi_client/models/workspace_system_artifacts.py +234 -0
- anyscale/client/openapi_client/models/workspace_template.py +343 -204
- anyscale/client/openapi_client/models/workspace_template_category.py +100 -0
- anyscale/client/openapi_client/models/workspace_template_complexity.py +101 -0
- anyscale/client/openapi_client/models/workspace_template_icon_background_color.py +105 -0
- anyscale/client/openapi_client/models/workspace_template_icon_type.py +108 -0
- anyscale/client/openapi_client/models/workspace_template_version.py +323 -0
- anyscale/client/openapi_client/models/workspace_template_version_data_object.py +323 -0
- anyscale/client/openapi_client/models/workspace_templates_sort_field.py +101 -0
- anyscale/client/openapi_client/models/workspacetemplate_response.py +121 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_list_response.py +147 -0
- anyscale/client/openapi_client/models/workspacetemplateversion_response.py +121 -0
- anyscale/commands/command_examples.py +1 -1
- anyscale/sdk/anyscale_client/models/apply_production_service_v2_model.py +31 -3
- anyscale/sdk/anyscale_client/models/apply_service_model.py +31 -3
- anyscale/shared_anyscale_utils/utils/id_gen.py +3 -0
- anyscale/version.py +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/METADATA +1 -1
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/RECORD +52 -20
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/WHEEL +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.57.dist-info → anyscale-0.26.58.dist-info}/top_level.txt +0 -0
@@ -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 TagkeyListResponse(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[TagKey]',
|
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
|
+
"""TagkeyListResponse - 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 TagkeyListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this TagkeyListResponse. # noqa: E501
|
65
|
+
:rtype: list[TagKey]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this TagkeyListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this TagkeyListResponse. # noqa: E501
|
75
|
+
:type: list[TagKey]
|
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 TagkeyListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this TagkeyListResponse. # 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 TagkeyListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this TagkeyListResponse. # 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, TagkeyListResponse):
|
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, TagkeyListResponse):
|
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 TagkeyvalueListResponse(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[TagKeyValue]',
|
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
|
+
"""TagkeyvalueListResponse - 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 TagkeyvalueListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this TagkeyvalueListResponse. # noqa: E501
|
65
|
+
:rtype: list[TagKeyValue]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this TagkeyvalueListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this TagkeyvalueListResponse. # noqa: E501
|
75
|
+
:type: list[TagKeyValue]
|
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 TagkeyvalueListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this TagkeyvalueListResponse. # 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 TagkeyvalueListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this TagkeyvalueListResponse. # 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, TagkeyvalueListResponse):
|
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, TagkeyvalueListResponse):
|
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 TagvalueListResponse(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[TagValue]',
|
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
|
+
"""TagvalueListResponse - 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 TagvalueListResponse. # noqa: E501
|
62
|
+
|
63
|
+
|
64
|
+
:return: The results of this TagvalueListResponse. # noqa: E501
|
65
|
+
:rtype: list[TagValue]
|
66
|
+
"""
|
67
|
+
return self._results
|
68
|
+
|
69
|
+
@results.setter
|
70
|
+
def results(self, results):
|
71
|
+
"""Sets the results of this TagvalueListResponse.
|
72
|
+
|
73
|
+
|
74
|
+
:param results: The results of this TagvalueListResponse. # noqa: E501
|
75
|
+
:type: list[TagValue]
|
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 TagvalueListResponse. # noqa: E501
|
85
|
+
|
86
|
+
|
87
|
+
:return: The metadata of this TagvalueListResponse. # 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 TagvalueListResponse.
|
95
|
+
|
96
|
+
|
97
|
+
:param metadata: The metadata of this TagvalueListResponse. # 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, TagvalueListResponse):
|
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, TagvalueListResponse):
|
145
|
+
return True
|
146
|
+
|
147
|
+
return self.to_dict() != other.to_dict()
|
@@ -0,0 +1,101 @@
|
|
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 TaskAttempts(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
|
+
ALL = "ALL"
|
32
|
+
RETRIED_TRUE = "RETRIED_TRUE"
|
33
|
+
RETRIED_FALSE = "RETRIED_FALSE"
|
34
|
+
|
35
|
+
allowable_values = [ALL, RETRIED_TRUE, RETRIED_FALSE] # noqa: E501
|
36
|
+
|
37
|
+
"""
|
38
|
+
Attributes:
|
39
|
+
openapi_types (dict): The key is attribute name
|
40
|
+
and the value is attribute type.
|
41
|
+
attribute_map (dict): The key is attribute name
|
42
|
+
and the value is json key in definition.
|
43
|
+
"""
|
44
|
+
openapi_types = {
|
45
|
+
}
|
46
|
+
|
47
|
+
attribute_map = {
|
48
|
+
}
|
49
|
+
|
50
|
+
def __init__(self, local_vars_configuration=None): # noqa: E501
|
51
|
+
"""TaskAttempts - a model defined in OpenAPI""" # noqa: E501
|
52
|
+
if local_vars_configuration is None:
|
53
|
+
local_vars_configuration = Configuration()
|
54
|
+
self.local_vars_configuration = local_vars_configuration
|
55
|
+
self.discriminator = None
|
56
|
+
|
57
|
+
def to_dict(self):
|
58
|
+
"""Returns the model properties as a dict"""
|
59
|
+
result = {}
|
60
|
+
|
61
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
62
|
+
value = getattr(self, attr)
|
63
|
+
if isinstance(value, list):
|
64
|
+
result[attr] = list(map(
|
65
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
66
|
+
value
|
67
|
+
))
|
68
|
+
elif hasattr(value, "to_dict"):
|
69
|
+
result[attr] = value.to_dict()
|
70
|
+
elif isinstance(value, dict):
|
71
|
+
result[attr] = dict(map(
|
72
|
+
lambda item: (item[0], item[1].to_dict())
|
73
|
+
if hasattr(item[1], "to_dict") else item,
|
74
|
+
value.items()
|
75
|
+
))
|
76
|
+
else:
|
77
|
+
result[attr] = value
|
78
|
+
|
79
|
+
return result
|
80
|
+
|
81
|
+
def to_str(self):
|
82
|
+
"""Returns the string representation of the model"""
|
83
|
+
return pprint.pformat(self.to_dict())
|
84
|
+
|
85
|
+
def __repr__(self):
|
86
|
+
"""For `print` and `pprint`"""
|
87
|
+
return self.to_str()
|
88
|
+
|
89
|
+
def __eq__(self, other):
|
90
|
+
"""Returns true if both objects are equal"""
|
91
|
+
if not isinstance(other, TaskAttempts):
|
92
|
+
return False
|
93
|
+
|
94
|
+
return self.to_dict() == other.to_dict()
|
95
|
+
|
96
|
+
def __ne__(self, other):
|
97
|
+
"""Returns true if both objects are not equal"""
|
98
|
+
if not isinstance(other, TaskAttempts):
|
99
|
+
return True
|
100
|
+
|
101
|
+
return self.to_dict() != other.to_dict()
|
@@ -38,7 +38,8 @@ class TaskTableConfig(object):
|
|
38
38
|
'current_state': 'list[TaskState]',
|
39
39
|
'text': 'str',
|
40
40
|
'job_id': 'str',
|
41
|
-
'exception_type': 'str'
|
41
|
+
'exception_type': 'str',
|
42
|
+
'attempts': 'TaskAttempts'
|
42
43
|
}
|
43
44
|
|
44
45
|
attribute_map = {
|
@@ -47,10 +48,11 @@ class TaskTableConfig(object):
|
|
47
48
|
'current_state': 'current_state',
|
48
49
|
'text': 'text',
|
49
50
|
'job_id': 'job_id',
|
50
|
-
'exception_type': 'exception_type'
|
51
|
+
'exception_type': 'exception_type',
|
52
|
+
'attempts': 'attempts'
|
51
53
|
}
|
52
54
|
|
53
|
-
def __init__(self, task_id=None, function_name=None, current_state=None, text=None, job_id=None, exception_type=None, local_vars_configuration=None): # noqa: E501
|
55
|
+
def __init__(self, task_id=None, function_name=None, current_state=None, text=None, job_id=None, exception_type=None, attempts=None, local_vars_configuration=None): # noqa: E501
|
54
56
|
"""TaskTableConfig - 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 TaskTableConfig(object):
|
|
62
64
|
self._text = None
|
63
65
|
self._job_id = None
|
64
66
|
self._exception_type = None
|
67
|
+
self._attempts = None
|
65
68
|
self.discriminator = None
|
66
69
|
|
67
70
|
if task_id is not None:
|
@@ -76,6 +79,8 @@ class TaskTableConfig(object):
|
|
76
79
|
self.job_id = job_id
|
77
80
|
if exception_type is not None:
|
78
81
|
self.exception_type = exception_type
|
82
|
+
if attempts is not None:
|
83
|
+
self.attempts = attempts
|
79
84
|
|
80
85
|
@property
|
81
86
|
def task_id(self):
|
@@ -203,6 +208,27 @@ class TaskTableConfig(object):
|
|
203
208
|
|
204
209
|
self._exception_type = exception_type
|
205
210
|
|
211
|
+
@property
|
212
|
+
def attempts(self):
|
213
|
+
"""Gets the attempts of this TaskTableConfig. # noqa: E501
|
214
|
+
|
215
|
+
|
216
|
+
:return: The attempts of this TaskTableConfig. # noqa: E501
|
217
|
+
:rtype: TaskAttempts
|
218
|
+
"""
|
219
|
+
return self._attempts
|
220
|
+
|
221
|
+
@attempts.setter
|
222
|
+
def attempts(self, attempts):
|
223
|
+
"""Sets the attempts of this TaskTableConfig.
|
224
|
+
|
225
|
+
|
226
|
+
:param attempts: The attempts of this TaskTableConfig. # noqa: E501
|
227
|
+
:type: TaskAttempts
|
228
|
+
"""
|
229
|
+
|
230
|
+
self._attempts = attempts
|
231
|
+
|
206
232
|
def to_dict(self):
|
207
233
|
"""Returns the model properties as a dict"""
|
208
234
|
result = {}
|