anyscale 0.26.56__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/connect_utils/start_interactive_session.py +0 -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.56.dist-info → anyscale-0.26.58.dist-info}/METADATA +1 -1
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/RECORD +53 -21
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/WHEEL +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/entry_points.txt +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/licenses/LICENSE +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/licenses/NOTICE +0 -0
- {anyscale-0.26.56.dist-info → anyscale-0.26.58.dist-info}/top_level.txt +0 -0
@@ -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 ResourcetagslistResponse(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': 'ResourceTagsList'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'result': 'result'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, result=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""ResourcetagslistResponse - 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 ResourcetagslistResponse. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The result of this ResourcetagslistResponse. # noqa: E501
|
60
|
+
:rtype: ResourceTagsList
|
61
|
+
"""
|
62
|
+
return self._result
|
63
|
+
|
64
|
+
@result.setter
|
65
|
+
def result(self, result):
|
66
|
+
"""Sets the result of this ResourcetagslistResponse.
|
67
|
+
|
68
|
+
|
69
|
+
:param result: The result of this ResourcetagslistResponse. # noqa: E501
|
70
|
+
:type: ResourceTagsList
|
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, ResourcetagslistResponse):
|
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, ResourcetagslistResponse):
|
119
|
+
return True
|
120
|
+
|
121
|
+
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 TagKey(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
|
+
'key': 'str'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'key': 'key'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, key=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""TagKey - 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._key = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.key = key
|
53
|
+
|
54
|
+
@property
|
55
|
+
def key(self):
|
56
|
+
"""Gets the key of this TagKey. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The key of this TagKey. # noqa: E501
|
60
|
+
:rtype: str
|
61
|
+
"""
|
62
|
+
return self._key
|
63
|
+
|
64
|
+
@key.setter
|
65
|
+
def key(self, key):
|
66
|
+
"""Sets the key of this TagKey.
|
67
|
+
|
68
|
+
|
69
|
+
:param key: The key of this TagKey. # noqa: E501
|
70
|
+
:type: str
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._key = key
|
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, TagKey):
|
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, TagKey):
|
119
|
+
return True
|
120
|
+
|
121
|
+
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 TagKeyValue(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
|
+
'key': 'str',
|
37
|
+
'value': 'str'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'key': 'key',
|
42
|
+
'value': 'value'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, key=None, value=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""TagKeyValue - 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._key = None
|
52
|
+
self._value = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
self.key = key
|
56
|
+
self.value = value
|
57
|
+
|
58
|
+
@property
|
59
|
+
def key(self):
|
60
|
+
"""Gets the key of this TagKeyValue. # noqa: E501
|
61
|
+
|
62
|
+
|
63
|
+
:return: The key of this TagKeyValue. # noqa: E501
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._key
|
67
|
+
|
68
|
+
@key.setter
|
69
|
+
def key(self, key):
|
70
|
+
"""Sets the key of this TagKeyValue.
|
71
|
+
|
72
|
+
|
73
|
+
:param key: The key of this TagKeyValue. # noqa: E501
|
74
|
+
:type: str
|
75
|
+
"""
|
76
|
+
if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
|
77
|
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
78
|
+
|
79
|
+
self._key = key
|
80
|
+
|
81
|
+
@property
|
82
|
+
def value(self):
|
83
|
+
"""Gets the value of this TagKeyValue. # noqa: E501
|
84
|
+
|
85
|
+
|
86
|
+
:return: The value of this TagKeyValue. # noqa: E501
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._value
|
90
|
+
|
91
|
+
@value.setter
|
92
|
+
def value(self, value):
|
93
|
+
"""Sets the value of this TagKeyValue.
|
94
|
+
|
95
|
+
|
96
|
+
:param value: The value of this TagKeyValue. # noqa: E501
|
97
|
+
:type: str
|
98
|
+
"""
|
99
|
+
if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501
|
100
|
+
raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501
|
101
|
+
|
102
|
+
self._value = value
|
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, TagKeyValue):
|
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, TagKeyValue):
|
146
|
+
return True
|
147
|
+
|
148
|
+
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 TagSearchIn(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
|
+
KEY = "key"
|
32
|
+
VALUE = "value"
|
33
|
+
ALL = "all"
|
34
|
+
|
35
|
+
allowable_values = [KEY, VALUE, ALL] # 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
|
+
"""TagSearchIn - 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, TagSearchIn):
|
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, TagSearchIn):
|
99
|
+
return True
|
100
|
+
|
101
|
+
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 TagValue(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
|
+
'value': 'str'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'value': 'value'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, value=None, local_vars_configuration=None): # noqa: E501
|
44
|
+
"""TagValue - 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._value = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
self.value = value
|
53
|
+
|
54
|
+
@property
|
55
|
+
def value(self):
|
56
|
+
"""Gets the value of this TagValue. # noqa: E501
|
57
|
+
|
58
|
+
|
59
|
+
:return: The value of this TagValue. # noqa: E501
|
60
|
+
:rtype: str
|
61
|
+
"""
|
62
|
+
return self._value
|
63
|
+
|
64
|
+
@value.setter
|
65
|
+
def value(self, value):
|
66
|
+
"""Sets the value of this TagValue.
|
67
|
+
|
68
|
+
|
69
|
+
:param value: The value of this TagValue. # noqa: E501
|
70
|
+
:type: str
|
71
|
+
"""
|
72
|
+
if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501
|
73
|
+
raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501
|
74
|
+
|
75
|
+
self._value = value
|
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, TagValue):
|
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, TagValue):
|
119
|
+
return True
|
120
|
+
|
121
|
+
return self.to_dict() != other.to_dict()
|