assisted-service-client 2.40.0.post3__py3-none-any.whl → 2.47.0.post54__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.
- assisted_service_client/__init__.py +6 -0
- assisted_service_client/api/installer_api.py +213 -3
- assisted_service_client/api/operators_api.py +36 -10
- assisted_service_client/models/__init__.py +6 -0
- assisted_service_client/models/cluster.py +7 -7
- assisted_service_client/models/cluster_create_params.py +3 -3
- assisted_service_client/models/cluster_validation_id.py +5 -0
- assisted_service_client/models/disconnected_cluster_create_params.py +151 -0
- assisted_service_client/models/disk_encryption.py +3 -3
- assisted_service_client/models/feature.py +196 -0
- assisted_service_client/models/feature_support_level_id.py +5 -1
- assisted_service_client/models/fencing_credentials_params.py +210 -0
- assisted_service_client/models/host.py +31 -3
- assisted_service_client/models/host_update_params.py +31 -3
- assisted_service_client/models/host_validation_id.py +4 -0
- assisted_service_client/models/image_type.py +1 -0
- assisted_service_client/models/incompatibility_reason.py +95 -0
- assisted_service_client/models/inline_response2001.py +43 -19
- assisted_service_client/models/inline_response2002.py +117 -0
- assisted_service_client/models/operator.py +252 -0
- assisted_service_client/models/v2_cluster_update_params.py +3 -3
- assisted_service_client/models/versioned_host_requirements.py +29 -1
- {assisted_service_client-2.40.0.post3.dist-info → assisted_service_client-2.47.0.post54.dist-info}/METADATA +10 -2
- {assisted_service_client-2.40.0.post3.dist-info → assisted_service_client-2.47.0.post54.dist-info}/RECORD +34 -22
- test/test_disconnected_cluster_create_params.py +40 -0
- test/test_feature.py +40 -0
- test/test_fencing_credentials_params.py +40 -0
- test/test_incompatibility_reason.py +40 -0
- test/test_inline_response2002.py +40 -0
- test/test_installer_api.py +12 -0
- test/test_operator.py +40 -0
- test/test_operators_api.py +1 -1
- {assisted_service_client-2.40.0.post3.dist-info → assisted_service_client-2.47.0.post54.dist-info}/WHEEL +0 -0
- {assisted_service_client-2.40.0.post3.dist-info → assisted_service_client-2.47.0.post54.dist-info}/top_level.txt +0 -0
|
@@ -38,7 +38,8 @@ class HostUpdateParams(object):
|
|
|
38
38
|
'machine_config_pool_name': 'str',
|
|
39
39
|
'ignition_endpoint_token': 'str',
|
|
40
40
|
'ignition_endpoint_http_headers': 'list[IgnitionEndpointHttpHeadersParams]',
|
|
41
|
-
'node_labels': 'list[NodeLabelParams]'
|
|
41
|
+
'node_labels': 'list[NodeLabelParams]',
|
|
42
|
+
'fencing_credentials': 'FencingCredentialsParams'
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
attribute_map = {
|
|
@@ -49,10 +50,11 @@ class HostUpdateParams(object):
|
|
|
49
50
|
'machine_config_pool_name': 'machine_config_pool_name',
|
|
50
51
|
'ignition_endpoint_token': 'ignition_endpoint_token',
|
|
51
52
|
'ignition_endpoint_http_headers': 'ignition_endpoint_http_headers',
|
|
52
|
-
'node_labels': 'node_labels'
|
|
53
|
+
'node_labels': 'node_labels',
|
|
54
|
+
'fencing_credentials': 'fencing_credentials'
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
def __init__(self, host_role=None, host_name=None, disks_selected_config=None, disks_skip_formatting=None, machine_config_pool_name=None, ignition_endpoint_token=None, ignition_endpoint_http_headers=None, node_labels=None): # noqa: E501
|
|
57
|
+
def __init__(self, host_role=None, host_name=None, disks_selected_config=None, disks_skip_formatting=None, machine_config_pool_name=None, ignition_endpoint_token=None, ignition_endpoint_http_headers=None, node_labels=None, fencing_credentials=None): # noqa: E501
|
|
56
58
|
"""HostUpdateParams - a model defined in Swagger""" # noqa: E501
|
|
57
59
|
|
|
58
60
|
self._host_role = None
|
|
@@ -63,6 +65,7 @@ class HostUpdateParams(object):
|
|
|
63
65
|
self._ignition_endpoint_token = None
|
|
64
66
|
self._ignition_endpoint_http_headers = None
|
|
65
67
|
self._node_labels = None
|
|
68
|
+
self._fencing_credentials = None
|
|
66
69
|
self.discriminator = None
|
|
67
70
|
|
|
68
71
|
if host_role is not None:
|
|
@@ -81,6 +84,8 @@ class HostUpdateParams(object):
|
|
|
81
84
|
self.ignition_endpoint_http_headers = ignition_endpoint_http_headers
|
|
82
85
|
if node_labels is not None:
|
|
83
86
|
self.node_labels = node_labels
|
|
87
|
+
if fencing_credentials is not None:
|
|
88
|
+
self.fencing_credentials = fencing_credentials
|
|
84
89
|
|
|
85
90
|
@property
|
|
86
91
|
def host_role(self):
|
|
@@ -264,6 +269,29 @@ class HostUpdateParams(object):
|
|
|
264
269
|
|
|
265
270
|
self._node_labels = node_labels
|
|
266
271
|
|
|
272
|
+
@property
|
|
273
|
+
def fencing_credentials(self):
|
|
274
|
+
"""Gets the fencing_credentials of this HostUpdateParams. # noqa: E501
|
|
275
|
+
|
|
276
|
+
The host's BMC credentials that will be used in TNF. # noqa: E501
|
|
277
|
+
|
|
278
|
+
:return: The fencing_credentials of this HostUpdateParams. # noqa: E501
|
|
279
|
+
:rtype: FencingCredentialsParams
|
|
280
|
+
"""
|
|
281
|
+
return self._fencing_credentials
|
|
282
|
+
|
|
283
|
+
@fencing_credentials.setter
|
|
284
|
+
def fencing_credentials(self, fencing_credentials):
|
|
285
|
+
"""Sets the fencing_credentials of this HostUpdateParams.
|
|
286
|
+
|
|
287
|
+
The host's BMC credentials that will be used in TNF. # noqa: E501
|
|
288
|
+
|
|
289
|
+
:param fencing_credentials: The fencing_credentials of this HostUpdateParams. # noqa: E501
|
|
290
|
+
:type: FencingCredentialsParams
|
|
291
|
+
"""
|
|
292
|
+
|
|
293
|
+
self._fencing_credentials = fencing_credentials
|
|
294
|
+
|
|
267
295
|
def to_dict(self):
|
|
268
296
|
"""Returns the model properties as a dict"""
|
|
269
297
|
result = {}
|
|
@@ -86,6 +86,10 @@ class HostValidationId(object):
|
|
|
86
86
|
FENCE_AGENTS_REMEDIATION_REQUIREMENTS_SATISFIED = "fence-agents-remediation-requirements-satisfied"
|
|
87
87
|
NODE_MAINTENANCE_REQUIREMENTS_SATISFIED = "node-maintenance-requirements-satisfied"
|
|
88
88
|
KUBE_DESCHEDULER_REQUIREMENTS_SATISFIED = "kube-descheduler-requirements-satisfied"
|
|
89
|
+
CLUSTER_OBSERVABILITY_REQUIREMENTS_SATISFIED = "cluster-observability-requirements-satisfied"
|
|
90
|
+
NUMA_RESOURCES_REQUIREMENTS_SATISFIED = "numa-resources-requirements-satisfied"
|
|
91
|
+
OADP_REQUIREMENTS_SATISFIED = "oadp-requirements-satisfied"
|
|
92
|
+
METALLB_REQUIREMENTS_SATISFIED = "metallb-requirements-satisfied"
|
|
89
93
|
|
|
90
94
|
"""
|
|
91
95
|
Attributes:
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
AssistedInstall
|
|
5
|
+
|
|
6
|
+
Assisted installation # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 1.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class IncompatibilityReason(object):
|
|
21
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
22
|
+
|
|
23
|
+
Do not edit the class manually.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
allowed enum values
|
|
28
|
+
"""
|
|
29
|
+
CPUARCHITECTURE = "cpuArchitecture"
|
|
30
|
+
PLATFORM = "platform"
|
|
31
|
+
OPENSHIFTVERSION = "openshiftVersion"
|
|
32
|
+
OCIEXTERNALINTEGRATIONDISABLED = "ociExternalIntegrationDisabled"
|
|
33
|
+
|
|
34
|
+
"""
|
|
35
|
+
Attributes:
|
|
36
|
+
swagger_types (dict): The key is attribute name
|
|
37
|
+
and the value is attribute type.
|
|
38
|
+
attribute_map (dict): The key is attribute name
|
|
39
|
+
and the value is json key in definition.
|
|
40
|
+
"""
|
|
41
|
+
swagger_types = {
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
attribute_map = {
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self): # noqa: E501
|
|
48
|
+
"""IncompatibilityReason - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
def to_dict(self):
|
|
52
|
+
"""Returns the model properties as a dict"""
|
|
53
|
+
result = {}
|
|
54
|
+
|
|
55
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
56
|
+
value = getattr(self, attr)
|
|
57
|
+
if isinstance(value, list):
|
|
58
|
+
result[attr] = list(map(
|
|
59
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
60
|
+
value
|
|
61
|
+
))
|
|
62
|
+
elif hasattr(value, "to_dict"):
|
|
63
|
+
result[attr] = value.to_dict()
|
|
64
|
+
elif isinstance(value, dict):
|
|
65
|
+
result[attr] = dict(map(
|
|
66
|
+
lambda item: (item[0], item[1].to_dict())
|
|
67
|
+
if hasattr(item[1], "to_dict") else item,
|
|
68
|
+
value.items()
|
|
69
|
+
))
|
|
70
|
+
else:
|
|
71
|
+
result[attr] = value
|
|
72
|
+
if issubclass(IncompatibilityReason, dict):
|
|
73
|
+
for key, value in self.items():
|
|
74
|
+
result[key] = value
|
|
75
|
+
|
|
76
|
+
return result
|
|
77
|
+
|
|
78
|
+
def to_str(self):
|
|
79
|
+
"""Returns the string representation of the model"""
|
|
80
|
+
return pprint.pformat(self.to_dict())
|
|
81
|
+
|
|
82
|
+
def __repr__(self):
|
|
83
|
+
"""For `print` and `pprint`"""
|
|
84
|
+
return self.to_str()
|
|
85
|
+
|
|
86
|
+
def __eq__(self, other):
|
|
87
|
+
"""Returns true if both objects are equal"""
|
|
88
|
+
if not isinstance(other, IncompatibilityReason):
|
|
89
|
+
return False
|
|
90
|
+
|
|
91
|
+
return self.__dict__ == other.__dict__
|
|
92
|
+
|
|
93
|
+
def __ne__(self, other):
|
|
94
|
+
"""Returns true if both objects are not equal"""
|
|
95
|
+
return not self == other
|
|
@@ -31,44 +31,68 @@ class InlineResponse2001(object):
|
|
|
31
31
|
and the value is json key in definition.
|
|
32
32
|
"""
|
|
33
33
|
swagger_types = {
|
|
34
|
-
'
|
|
34
|
+
'features': 'list[Feature]',
|
|
35
|
+
'operators': 'list[Operator]'
|
|
35
36
|
}
|
|
36
37
|
|
|
37
38
|
attribute_map = {
|
|
38
|
-
'
|
|
39
|
+
'features': 'features',
|
|
40
|
+
'operators': 'operators'
|
|
39
41
|
}
|
|
40
42
|
|
|
41
|
-
def __init__(self,
|
|
43
|
+
def __init__(self, features=None, operators=None): # noqa: E501
|
|
42
44
|
"""InlineResponse2001 - a model defined in Swagger""" # noqa: E501
|
|
43
45
|
|
|
44
|
-
self.
|
|
46
|
+
self._features = None
|
|
47
|
+
self._operators = None
|
|
45
48
|
self.discriminator = None
|
|
46
49
|
|
|
47
|
-
if
|
|
48
|
-
self.
|
|
50
|
+
if features is not None:
|
|
51
|
+
self.features = features
|
|
52
|
+
if operators is not None:
|
|
53
|
+
self.operators = operators
|
|
49
54
|
|
|
50
55
|
@property
|
|
51
|
-
def
|
|
52
|
-
"""Gets the
|
|
56
|
+
def features(self):
|
|
57
|
+
"""Gets the features of this InlineResponse2001. # noqa: E501
|
|
53
58
|
|
|
54
|
-
Keys will be one of architecture-support-level-id enum. # noqa: E501
|
|
55
59
|
|
|
56
|
-
:return: The
|
|
57
|
-
:rtype:
|
|
60
|
+
:return: The features of this InlineResponse2001. # noqa: E501
|
|
61
|
+
:rtype: list[Feature]
|
|
58
62
|
"""
|
|
59
|
-
return self.
|
|
63
|
+
return self._features
|
|
60
64
|
|
|
61
|
-
@
|
|
62
|
-
def
|
|
63
|
-
"""Sets the
|
|
65
|
+
@features.setter
|
|
66
|
+
def features(self, features):
|
|
67
|
+
"""Sets the features of this InlineResponse2001.
|
|
64
68
|
|
|
65
|
-
Keys will be one of architecture-support-level-id enum. # noqa: E501
|
|
66
69
|
|
|
67
|
-
:param
|
|
68
|
-
:type:
|
|
70
|
+
:param features: The features of this InlineResponse2001. # noqa: E501
|
|
71
|
+
:type: list[Feature]
|
|
69
72
|
"""
|
|
70
73
|
|
|
71
|
-
self.
|
|
74
|
+
self._features = features
|
|
75
|
+
|
|
76
|
+
@property
|
|
77
|
+
def operators(self):
|
|
78
|
+
"""Gets the operators of this InlineResponse2001. # noqa: E501
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
:return: The operators of this InlineResponse2001. # noqa: E501
|
|
82
|
+
:rtype: list[Operator]
|
|
83
|
+
"""
|
|
84
|
+
return self._operators
|
|
85
|
+
|
|
86
|
+
@operators.setter
|
|
87
|
+
def operators(self, operators):
|
|
88
|
+
"""Sets the operators of this InlineResponse2001.
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:param operators: The operators of this InlineResponse2001. # noqa: E501
|
|
92
|
+
:type: list[Operator]
|
|
93
|
+
"""
|
|
94
|
+
|
|
95
|
+
self._operators = operators
|
|
72
96
|
|
|
73
97
|
def to_dict(self):
|
|
74
98
|
"""Returns the model properties as a dict"""
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
AssistedInstall
|
|
5
|
+
|
|
6
|
+
Assisted installation # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 1.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class InlineResponse2002(object):
|
|
21
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
22
|
+
|
|
23
|
+
Do not edit the class manually.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
Attributes:
|
|
28
|
+
swagger_types (dict): The key is attribute name
|
|
29
|
+
and the value is attribute type.
|
|
30
|
+
attribute_map (dict): The key is attribute name
|
|
31
|
+
and the value is json key in definition.
|
|
32
|
+
"""
|
|
33
|
+
swagger_types = {
|
|
34
|
+
'architectures': 'SupportLevels'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
attribute_map = {
|
|
38
|
+
'architectures': 'architectures'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, architectures=None): # noqa: E501
|
|
42
|
+
"""InlineResponse2002 - a model defined in Swagger""" # noqa: E501
|
|
43
|
+
|
|
44
|
+
self._architectures = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if architectures is not None:
|
|
48
|
+
self.architectures = architectures
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def architectures(self):
|
|
52
|
+
"""Gets the architectures of this InlineResponse2002. # noqa: E501
|
|
53
|
+
|
|
54
|
+
Keys will be one of architecture-support-level-id enum. # noqa: E501
|
|
55
|
+
|
|
56
|
+
:return: The architectures of this InlineResponse2002. # noqa: E501
|
|
57
|
+
:rtype: SupportLevels
|
|
58
|
+
"""
|
|
59
|
+
return self._architectures
|
|
60
|
+
|
|
61
|
+
@architectures.setter
|
|
62
|
+
def architectures(self, architectures):
|
|
63
|
+
"""Sets the architectures of this InlineResponse2002.
|
|
64
|
+
|
|
65
|
+
Keys will be one of architecture-support-level-id enum. # noqa: E501
|
|
66
|
+
|
|
67
|
+
:param architectures: The architectures of this InlineResponse2002. # noqa: E501
|
|
68
|
+
:type: SupportLevels
|
|
69
|
+
"""
|
|
70
|
+
|
|
71
|
+
self._architectures = architectures
|
|
72
|
+
|
|
73
|
+
def to_dict(self):
|
|
74
|
+
"""Returns the model properties as a dict"""
|
|
75
|
+
result = {}
|
|
76
|
+
|
|
77
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
78
|
+
value = getattr(self, attr)
|
|
79
|
+
if isinstance(value, list):
|
|
80
|
+
result[attr] = list(map(
|
|
81
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
82
|
+
value
|
|
83
|
+
))
|
|
84
|
+
elif hasattr(value, "to_dict"):
|
|
85
|
+
result[attr] = value.to_dict()
|
|
86
|
+
elif isinstance(value, dict):
|
|
87
|
+
result[attr] = dict(map(
|
|
88
|
+
lambda item: (item[0], item[1].to_dict())
|
|
89
|
+
if hasattr(item[1], "to_dict") else item,
|
|
90
|
+
value.items()
|
|
91
|
+
))
|
|
92
|
+
else:
|
|
93
|
+
result[attr] = value
|
|
94
|
+
if issubclass(InlineResponse2002, dict):
|
|
95
|
+
for key, value in self.items():
|
|
96
|
+
result[key] = value
|
|
97
|
+
|
|
98
|
+
return result
|
|
99
|
+
|
|
100
|
+
def to_str(self):
|
|
101
|
+
"""Returns the string representation of the model"""
|
|
102
|
+
return pprint.pformat(self.to_dict())
|
|
103
|
+
|
|
104
|
+
def __repr__(self):
|
|
105
|
+
"""For `print` and `pprint`"""
|
|
106
|
+
return self.to_str()
|
|
107
|
+
|
|
108
|
+
def __eq__(self, other):
|
|
109
|
+
"""Returns true if both objects are equal"""
|
|
110
|
+
if not isinstance(other, InlineResponse2002):
|
|
111
|
+
return False
|
|
112
|
+
|
|
113
|
+
return self.__dict__ == other.__dict__
|
|
114
|
+
|
|
115
|
+
def __ne__(self, other):
|
|
116
|
+
"""Returns true if both objects are not equal"""
|
|
117
|
+
return not self == other
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
AssistedInstall
|
|
5
|
+
|
|
6
|
+
Assisted installation # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: 1.0.0
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class Operator(object):
|
|
21
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
22
|
+
|
|
23
|
+
Do not edit the class manually.
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
"""
|
|
27
|
+
Attributes:
|
|
28
|
+
swagger_types (dict): The key is attribute name
|
|
29
|
+
and the value is attribute type.
|
|
30
|
+
attribute_map (dict): The key is attribute name
|
|
31
|
+
and the value is json key in definition.
|
|
32
|
+
"""
|
|
33
|
+
swagger_types = {
|
|
34
|
+
'feature_support_level_id': 'FeatureSupportLevelId',
|
|
35
|
+
'support_level': 'SupportLevel',
|
|
36
|
+
'reason': 'IncompatibilityReason',
|
|
37
|
+
'incompatibilities': 'list[FeatureSupportLevelId]',
|
|
38
|
+
'name': 'str',
|
|
39
|
+
'dependencies': 'list[FeatureSupportLevelId]'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'feature_support_level_id': 'feature-support-level-id',
|
|
44
|
+
'support_level': 'support_level',
|
|
45
|
+
'reason': 'reason',
|
|
46
|
+
'incompatibilities': 'incompatibilities',
|
|
47
|
+
'name': 'name',
|
|
48
|
+
'dependencies': 'dependencies'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, feature_support_level_id=None, support_level=None, reason=None, incompatibilities=None, name=None, dependencies=None): # noqa: E501
|
|
52
|
+
"""Operator - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
|
|
54
|
+
self._feature_support_level_id = None
|
|
55
|
+
self._support_level = None
|
|
56
|
+
self._reason = None
|
|
57
|
+
self._incompatibilities = None
|
|
58
|
+
self._name = None
|
|
59
|
+
self._dependencies = None
|
|
60
|
+
self.discriminator = None
|
|
61
|
+
|
|
62
|
+
self.feature_support_level_id = feature_support_level_id
|
|
63
|
+
self.support_level = support_level
|
|
64
|
+
if reason is not None:
|
|
65
|
+
self.reason = reason
|
|
66
|
+
self.incompatibilities = incompatibilities
|
|
67
|
+
self.name = name
|
|
68
|
+
self.dependencies = dependencies
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def feature_support_level_id(self):
|
|
72
|
+
"""Gets the feature_support_level_id of this Operator. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The feature_support_level_id of this Operator. # noqa: E501
|
|
76
|
+
:rtype: FeatureSupportLevelId
|
|
77
|
+
"""
|
|
78
|
+
return self._feature_support_level_id
|
|
79
|
+
|
|
80
|
+
@feature_support_level_id.setter
|
|
81
|
+
def feature_support_level_id(self, feature_support_level_id):
|
|
82
|
+
"""Sets the feature_support_level_id of this Operator.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param feature_support_level_id: The feature_support_level_id of this Operator. # noqa: E501
|
|
86
|
+
:type: FeatureSupportLevelId
|
|
87
|
+
"""
|
|
88
|
+
if feature_support_level_id is None:
|
|
89
|
+
raise ValueError("Invalid value for `feature_support_level_id`, must not be `None`") # noqa: E501
|
|
90
|
+
|
|
91
|
+
self._feature_support_level_id = feature_support_level_id
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def support_level(self):
|
|
95
|
+
"""Gets the support_level of this Operator. # noqa: E501
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
:return: The support_level of this Operator. # noqa: E501
|
|
99
|
+
:rtype: SupportLevel
|
|
100
|
+
"""
|
|
101
|
+
return self._support_level
|
|
102
|
+
|
|
103
|
+
@support_level.setter
|
|
104
|
+
def support_level(self, support_level):
|
|
105
|
+
"""Sets the support_level of this Operator.
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
:param support_level: The support_level of this Operator. # noqa: E501
|
|
109
|
+
:type: SupportLevel
|
|
110
|
+
"""
|
|
111
|
+
if support_level is None:
|
|
112
|
+
raise ValueError("Invalid value for `support_level`, must not be `None`") # noqa: E501
|
|
113
|
+
|
|
114
|
+
self._support_level = support_level
|
|
115
|
+
|
|
116
|
+
@property
|
|
117
|
+
def reason(self):
|
|
118
|
+
"""Gets the reason of this Operator. # noqa: E501
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
:return: The reason of this Operator. # noqa: E501
|
|
122
|
+
:rtype: IncompatibilityReason
|
|
123
|
+
"""
|
|
124
|
+
return self._reason
|
|
125
|
+
|
|
126
|
+
@reason.setter
|
|
127
|
+
def reason(self, reason):
|
|
128
|
+
"""Sets the reason of this Operator.
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
:param reason: The reason of this Operator. # noqa: E501
|
|
132
|
+
:type: IncompatibilityReason
|
|
133
|
+
"""
|
|
134
|
+
|
|
135
|
+
self._reason = reason
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def incompatibilities(self):
|
|
139
|
+
"""Gets the incompatibilities of this Operator. # noqa: E501
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
:return: The incompatibilities of this Operator. # noqa: E501
|
|
143
|
+
:rtype: list[FeatureSupportLevelId]
|
|
144
|
+
"""
|
|
145
|
+
return self._incompatibilities
|
|
146
|
+
|
|
147
|
+
@incompatibilities.setter
|
|
148
|
+
def incompatibilities(self, incompatibilities):
|
|
149
|
+
"""Sets the incompatibilities of this Operator.
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:param incompatibilities: The incompatibilities of this Operator. # noqa: E501
|
|
153
|
+
:type: list[FeatureSupportLevelId]
|
|
154
|
+
"""
|
|
155
|
+
if incompatibilities is None:
|
|
156
|
+
raise ValueError("Invalid value for `incompatibilities`, must not be `None`") # noqa: E501
|
|
157
|
+
|
|
158
|
+
self._incompatibilities = incompatibilities
|
|
159
|
+
|
|
160
|
+
@property
|
|
161
|
+
def name(self):
|
|
162
|
+
"""Gets the name of this Operator. # noqa: E501
|
|
163
|
+
|
|
164
|
+
Name of the operator # noqa: E501
|
|
165
|
+
|
|
166
|
+
:return: The name of this Operator. # noqa: E501
|
|
167
|
+
:rtype: str
|
|
168
|
+
"""
|
|
169
|
+
return self._name
|
|
170
|
+
|
|
171
|
+
@name.setter
|
|
172
|
+
def name(self, name):
|
|
173
|
+
"""Sets the name of this Operator.
|
|
174
|
+
|
|
175
|
+
Name of the operator # noqa: E501
|
|
176
|
+
|
|
177
|
+
:param name: The name of this Operator. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
if name is None:
|
|
181
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
182
|
+
|
|
183
|
+
self._name = name
|
|
184
|
+
|
|
185
|
+
@property
|
|
186
|
+
def dependencies(self):
|
|
187
|
+
"""Gets the dependencies of this Operator. # noqa: E501
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
:return: The dependencies of this Operator. # noqa: E501
|
|
191
|
+
:rtype: list[FeatureSupportLevelId]
|
|
192
|
+
"""
|
|
193
|
+
return self._dependencies
|
|
194
|
+
|
|
195
|
+
@dependencies.setter
|
|
196
|
+
def dependencies(self, dependencies):
|
|
197
|
+
"""Sets the dependencies of this Operator.
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
:param dependencies: The dependencies of this Operator. # noqa: E501
|
|
201
|
+
:type: list[FeatureSupportLevelId]
|
|
202
|
+
"""
|
|
203
|
+
if dependencies is None:
|
|
204
|
+
raise ValueError("Invalid value for `dependencies`, must not be `None`") # noqa: E501
|
|
205
|
+
|
|
206
|
+
self._dependencies = dependencies
|
|
207
|
+
|
|
208
|
+
def to_dict(self):
|
|
209
|
+
"""Returns the model properties as a dict"""
|
|
210
|
+
result = {}
|
|
211
|
+
|
|
212
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
213
|
+
value = getattr(self, attr)
|
|
214
|
+
if isinstance(value, list):
|
|
215
|
+
result[attr] = list(map(
|
|
216
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
217
|
+
value
|
|
218
|
+
))
|
|
219
|
+
elif hasattr(value, "to_dict"):
|
|
220
|
+
result[attr] = value.to_dict()
|
|
221
|
+
elif isinstance(value, dict):
|
|
222
|
+
result[attr] = dict(map(
|
|
223
|
+
lambda item: (item[0], item[1].to_dict())
|
|
224
|
+
if hasattr(item[1], "to_dict") else item,
|
|
225
|
+
value.items()
|
|
226
|
+
))
|
|
227
|
+
else:
|
|
228
|
+
result[attr] = value
|
|
229
|
+
if issubclass(Operator, dict):
|
|
230
|
+
for key, value in self.items():
|
|
231
|
+
result[key] = value
|
|
232
|
+
|
|
233
|
+
return result
|
|
234
|
+
|
|
235
|
+
def to_str(self):
|
|
236
|
+
"""Returns the string representation of the model"""
|
|
237
|
+
return pprint.pformat(self.to_dict())
|
|
238
|
+
|
|
239
|
+
def __repr__(self):
|
|
240
|
+
"""For `print` and `pprint`"""
|
|
241
|
+
return self.to_str()
|
|
242
|
+
|
|
243
|
+
def __eq__(self, other):
|
|
244
|
+
"""Returns true if both objects are equal"""
|
|
245
|
+
if not isinstance(other, Operator):
|
|
246
|
+
return False
|
|
247
|
+
|
|
248
|
+
return self.__dict__ == other.__dict__
|
|
249
|
+
|
|
250
|
+
def __ne__(self, other):
|
|
251
|
+
"""Returns true if both objects are not equal"""
|
|
252
|
+
return not self == other
|
|
@@ -639,7 +639,7 @@ class V2ClusterUpdateParams(object):
|
|
|
639
639
|
def hyperthreading(self):
|
|
640
640
|
"""Gets the hyperthreading of this V2ClusterUpdateParams. # noqa: E501
|
|
641
641
|
|
|
642
|
-
Enable/disable hyperthreading on master nodes, worker nodes, or
|
|
642
|
+
Enable/disable hyperthreading on master nodes, arbiter nodes, worker nodes, or a combination of them. # noqa: E501
|
|
643
643
|
|
|
644
644
|
:return: The hyperthreading of this V2ClusterUpdateParams. # noqa: E501
|
|
645
645
|
:rtype: str
|
|
@@ -650,12 +650,12 @@ class V2ClusterUpdateParams(object):
|
|
|
650
650
|
def hyperthreading(self, hyperthreading):
|
|
651
651
|
"""Sets the hyperthreading of this V2ClusterUpdateParams.
|
|
652
652
|
|
|
653
|
-
Enable/disable hyperthreading on master nodes, worker nodes, or
|
|
653
|
+
Enable/disable hyperthreading on master nodes, arbiter nodes, worker nodes, or a combination of them. # noqa: E501
|
|
654
654
|
|
|
655
655
|
:param hyperthreading: The hyperthreading of this V2ClusterUpdateParams. # noqa: E501
|
|
656
656
|
:type: str
|
|
657
657
|
"""
|
|
658
|
-
allowed_values = ["masters", "workers", "
|
|
658
|
+
allowed_values = ["none", "masters", "arbiters", "workers", "masters,arbiters", "masters,workers", "arbiters,workers", "masters,arbiters,workers", "all"] # noqa: E501
|
|
659
659
|
if hyperthreading not in allowed_values:
|
|
660
660
|
raise ValueError(
|
|
661
661
|
"Invalid value for `hyperthreading` ({0}), must be one of {1}" # noqa: E501
|