assisted-service-client 2.42.0.post9__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 +4 -4
- 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/feature.py +196 -0
- assisted_service_client/models/feature_support_level_id.py +4 -0
- 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-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post54.dist-info}/METADATA +10 -2
- {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post54.dist-info}/RECORD +30 -18
- 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.42.0.post9.dist-info → assisted_service_client-2.47.0.post54.dist-info}/WHEEL +0 -0
- {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post54.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,196 @@
|
|
|
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 Feature(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
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'feature_support_level_id': 'feature-support-level-id',
|
|
42
|
+
'support_level': 'support_level',
|
|
43
|
+
'reason': 'reason',
|
|
44
|
+
'incompatibilities': 'incompatibilities'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, feature_support_level_id=None, support_level=None, reason=None, incompatibilities=None): # noqa: E501
|
|
48
|
+
"""Feature - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
|
|
50
|
+
self._feature_support_level_id = None
|
|
51
|
+
self._support_level = None
|
|
52
|
+
self._reason = None
|
|
53
|
+
self._incompatibilities = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.feature_support_level_id = feature_support_level_id
|
|
57
|
+
self.support_level = support_level
|
|
58
|
+
if reason is not None:
|
|
59
|
+
self.reason = reason
|
|
60
|
+
self.incompatibilities = incompatibilities
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def feature_support_level_id(self):
|
|
64
|
+
"""Gets the feature_support_level_id of this Feature. # noqa: E501
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
:return: The feature_support_level_id of this Feature. # noqa: E501
|
|
68
|
+
:rtype: FeatureSupportLevelId
|
|
69
|
+
"""
|
|
70
|
+
return self._feature_support_level_id
|
|
71
|
+
|
|
72
|
+
@feature_support_level_id.setter
|
|
73
|
+
def feature_support_level_id(self, feature_support_level_id):
|
|
74
|
+
"""Sets the feature_support_level_id of this Feature.
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
:param feature_support_level_id: The feature_support_level_id of this Feature. # noqa: E501
|
|
78
|
+
:type: FeatureSupportLevelId
|
|
79
|
+
"""
|
|
80
|
+
if feature_support_level_id is None:
|
|
81
|
+
raise ValueError("Invalid value for `feature_support_level_id`, must not be `None`") # noqa: E501
|
|
82
|
+
|
|
83
|
+
self._feature_support_level_id = feature_support_level_id
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def support_level(self):
|
|
87
|
+
"""Gets the support_level of this Feature. # noqa: E501
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:return: The support_level of this Feature. # noqa: E501
|
|
91
|
+
:rtype: SupportLevel
|
|
92
|
+
"""
|
|
93
|
+
return self._support_level
|
|
94
|
+
|
|
95
|
+
@support_level.setter
|
|
96
|
+
def support_level(self, support_level):
|
|
97
|
+
"""Sets the support_level of this Feature.
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
:param support_level: The support_level of this Feature. # noqa: E501
|
|
101
|
+
:type: SupportLevel
|
|
102
|
+
"""
|
|
103
|
+
if support_level is None:
|
|
104
|
+
raise ValueError("Invalid value for `support_level`, must not be `None`") # noqa: E501
|
|
105
|
+
|
|
106
|
+
self._support_level = support_level
|
|
107
|
+
|
|
108
|
+
@property
|
|
109
|
+
def reason(self):
|
|
110
|
+
"""Gets the reason of this Feature. # noqa: E501
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
:return: The reason of this Feature. # noqa: E501
|
|
114
|
+
:rtype: IncompatibilityReason
|
|
115
|
+
"""
|
|
116
|
+
return self._reason
|
|
117
|
+
|
|
118
|
+
@reason.setter
|
|
119
|
+
def reason(self, reason):
|
|
120
|
+
"""Sets the reason of this Feature.
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:param reason: The reason of this Feature. # noqa: E501
|
|
124
|
+
:type: IncompatibilityReason
|
|
125
|
+
"""
|
|
126
|
+
|
|
127
|
+
self._reason = reason
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def incompatibilities(self):
|
|
131
|
+
"""Gets the incompatibilities of this Feature. # noqa: E501
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
:return: The incompatibilities of this Feature. # noqa: E501
|
|
135
|
+
:rtype: list[FeatureSupportLevelId]
|
|
136
|
+
"""
|
|
137
|
+
return self._incompatibilities
|
|
138
|
+
|
|
139
|
+
@incompatibilities.setter
|
|
140
|
+
def incompatibilities(self, incompatibilities):
|
|
141
|
+
"""Sets the incompatibilities of this Feature.
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
:param incompatibilities: The incompatibilities of this Feature. # noqa: E501
|
|
145
|
+
:type: list[FeatureSupportLevelId]
|
|
146
|
+
"""
|
|
147
|
+
if incompatibilities is None:
|
|
148
|
+
raise ValueError("Invalid value for `incompatibilities`, must not be `None`") # noqa: E501
|
|
149
|
+
|
|
150
|
+
self._incompatibilities = incompatibilities
|
|
151
|
+
|
|
152
|
+
def to_dict(self):
|
|
153
|
+
"""Returns the model properties as a dict"""
|
|
154
|
+
result = {}
|
|
155
|
+
|
|
156
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
157
|
+
value = getattr(self, attr)
|
|
158
|
+
if isinstance(value, list):
|
|
159
|
+
result[attr] = list(map(
|
|
160
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
161
|
+
value
|
|
162
|
+
))
|
|
163
|
+
elif hasattr(value, "to_dict"):
|
|
164
|
+
result[attr] = value.to_dict()
|
|
165
|
+
elif isinstance(value, dict):
|
|
166
|
+
result[attr] = dict(map(
|
|
167
|
+
lambda item: (item[0], item[1].to_dict())
|
|
168
|
+
if hasattr(item[1], "to_dict") else item,
|
|
169
|
+
value.items()
|
|
170
|
+
))
|
|
171
|
+
else:
|
|
172
|
+
result[attr] = value
|
|
173
|
+
if issubclass(Feature, dict):
|
|
174
|
+
for key, value in self.items():
|
|
175
|
+
result[key] = value
|
|
176
|
+
|
|
177
|
+
return result
|
|
178
|
+
|
|
179
|
+
def to_str(self):
|
|
180
|
+
"""Returns the string representation of the model"""
|
|
181
|
+
return pprint.pformat(self.to_dict())
|
|
182
|
+
|
|
183
|
+
def __repr__(self):
|
|
184
|
+
"""For `print` and `pprint`"""
|
|
185
|
+
return self.to_str()
|
|
186
|
+
|
|
187
|
+
def __eq__(self, other):
|
|
188
|
+
"""Returns true if both objects are equal"""
|
|
189
|
+
if not isinstance(other, Feature):
|
|
190
|
+
return False
|
|
191
|
+
|
|
192
|
+
return self.__dict__ == other.__dict__
|
|
193
|
+
|
|
194
|
+
def __ne__(self, other):
|
|
195
|
+
"""Returns true if both objects are not equal"""
|
|
196
|
+
return not self == other
|
|
@@ -70,6 +70,10 @@ class FeatureSupportLevelId(object):
|
|
|
70
70
|
FENCE_AGENTS_REMEDIATION = "FENCE_AGENTS_REMEDIATION"
|
|
71
71
|
NODE_MAINTENANCE = "NODE_MAINTENANCE"
|
|
72
72
|
KUBE_DESCHEDULER = "KUBE_DESCHEDULER"
|
|
73
|
+
CLUSTER_OBSERVABILITY = "CLUSTER_OBSERVABILITY"
|
|
74
|
+
NUMA_RESOURCES = "NUMA_RESOURCES"
|
|
75
|
+
OADP = "OADP"
|
|
76
|
+
METALLB = "METALLB"
|
|
73
77
|
|
|
74
78
|
"""
|
|
75
79
|
Attributes:
|
|
@@ -0,0 +1,210 @@
|
|
|
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 FencingCredentialsParams(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
|
+
'address': 'str',
|
|
35
|
+
'username': 'str',
|
|
36
|
+
'password': 'str',
|
|
37
|
+
'certificate_verification': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'address': 'address',
|
|
42
|
+
'username': 'username',
|
|
43
|
+
'password': 'password',
|
|
44
|
+
'certificate_verification': 'certificate_verification'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, address=None, username=None, password=None, certificate_verification='Enabled'): # noqa: E501
|
|
48
|
+
"""FencingCredentialsParams - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
|
|
50
|
+
self._address = None
|
|
51
|
+
self._username = None
|
|
52
|
+
self._password = None
|
|
53
|
+
self._certificate_verification = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
|
|
56
|
+
self.address = address
|
|
57
|
+
self.username = username
|
|
58
|
+
self.password = password
|
|
59
|
+
if certificate_verification is not None:
|
|
60
|
+
self.certificate_verification = certificate_verification
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def address(self):
|
|
64
|
+
"""Gets the address of this FencingCredentialsParams. # noqa: E501
|
|
65
|
+
|
|
66
|
+
The URL of the host's BMC, for example https://bmc1.example.com. # noqa: E501
|
|
67
|
+
|
|
68
|
+
:return: The address of this FencingCredentialsParams. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._address
|
|
72
|
+
|
|
73
|
+
@address.setter
|
|
74
|
+
def address(self, address):
|
|
75
|
+
"""Sets the address of this FencingCredentialsParams.
|
|
76
|
+
|
|
77
|
+
The URL of the host's BMC, for example https://bmc1.example.com. # noqa: E501
|
|
78
|
+
|
|
79
|
+
:param address: The address of this FencingCredentialsParams. # noqa: E501
|
|
80
|
+
:type: str
|
|
81
|
+
"""
|
|
82
|
+
if address is None:
|
|
83
|
+
raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501
|
|
84
|
+
|
|
85
|
+
self._address = address
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def username(self):
|
|
89
|
+
"""Gets the username of this FencingCredentialsParams. # noqa: E501
|
|
90
|
+
|
|
91
|
+
The username to connect to the host's BMC. # noqa: E501
|
|
92
|
+
|
|
93
|
+
:return: The username of this FencingCredentialsParams. # noqa: E501
|
|
94
|
+
:rtype: str
|
|
95
|
+
"""
|
|
96
|
+
return self._username
|
|
97
|
+
|
|
98
|
+
@username.setter
|
|
99
|
+
def username(self, username):
|
|
100
|
+
"""Sets the username of this FencingCredentialsParams.
|
|
101
|
+
|
|
102
|
+
The username to connect to the host's BMC. # noqa: E501
|
|
103
|
+
|
|
104
|
+
:param username: The username of this FencingCredentialsParams. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
if username is None:
|
|
108
|
+
raise ValueError("Invalid value for `username`, must not be `None`") # noqa: E501
|
|
109
|
+
|
|
110
|
+
self._username = username
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def password(self):
|
|
114
|
+
"""Gets the password of this FencingCredentialsParams. # noqa: E501
|
|
115
|
+
|
|
116
|
+
The password to connect to the host's BMC. # noqa: E501
|
|
117
|
+
|
|
118
|
+
:return: The password of this FencingCredentialsParams. # noqa: E501
|
|
119
|
+
:rtype: str
|
|
120
|
+
"""
|
|
121
|
+
return self._password
|
|
122
|
+
|
|
123
|
+
@password.setter
|
|
124
|
+
def password(self, password):
|
|
125
|
+
"""Sets the password of this FencingCredentialsParams.
|
|
126
|
+
|
|
127
|
+
The password to connect to the host's BMC. # noqa: E501
|
|
128
|
+
|
|
129
|
+
:param password: The password of this FencingCredentialsParams. # noqa: E501
|
|
130
|
+
:type: str
|
|
131
|
+
"""
|
|
132
|
+
if password is None:
|
|
133
|
+
raise ValueError("Invalid value for `password`, must not be `None`") # noqa: E501
|
|
134
|
+
|
|
135
|
+
self._password = password
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def certificate_verification(self):
|
|
139
|
+
"""Gets the certificate_verification of this FencingCredentialsParams. # noqa: E501
|
|
140
|
+
|
|
141
|
+
Whether to enable or disable certificate verification when connecting to the host's BMC. # noqa: E501
|
|
142
|
+
|
|
143
|
+
:return: The certificate_verification of this FencingCredentialsParams. # noqa: E501
|
|
144
|
+
:rtype: str
|
|
145
|
+
"""
|
|
146
|
+
return self._certificate_verification
|
|
147
|
+
|
|
148
|
+
@certificate_verification.setter
|
|
149
|
+
def certificate_verification(self, certificate_verification):
|
|
150
|
+
"""Sets the certificate_verification of this FencingCredentialsParams.
|
|
151
|
+
|
|
152
|
+
Whether to enable or disable certificate verification when connecting to the host's BMC. # noqa: E501
|
|
153
|
+
|
|
154
|
+
:param certificate_verification: The certificate_verification of this FencingCredentialsParams. # noqa: E501
|
|
155
|
+
:type: str
|
|
156
|
+
"""
|
|
157
|
+
allowed_values = ["Enabled", "Disabled"] # noqa: E501
|
|
158
|
+
if certificate_verification not in allowed_values:
|
|
159
|
+
raise ValueError(
|
|
160
|
+
"Invalid value for `certificate_verification` ({0}), must be one of {1}" # noqa: E501
|
|
161
|
+
.format(certificate_verification, allowed_values)
|
|
162
|
+
)
|
|
163
|
+
|
|
164
|
+
self._certificate_verification = certificate_verification
|
|
165
|
+
|
|
166
|
+
def to_dict(self):
|
|
167
|
+
"""Returns the model properties as a dict"""
|
|
168
|
+
result = {}
|
|
169
|
+
|
|
170
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
171
|
+
value = getattr(self, attr)
|
|
172
|
+
if isinstance(value, list):
|
|
173
|
+
result[attr] = list(map(
|
|
174
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
175
|
+
value
|
|
176
|
+
))
|
|
177
|
+
elif hasattr(value, "to_dict"):
|
|
178
|
+
result[attr] = value.to_dict()
|
|
179
|
+
elif isinstance(value, dict):
|
|
180
|
+
result[attr] = dict(map(
|
|
181
|
+
lambda item: (item[0], item[1].to_dict())
|
|
182
|
+
if hasattr(item[1], "to_dict") else item,
|
|
183
|
+
value.items()
|
|
184
|
+
))
|
|
185
|
+
else:
|
|
186
|
+
result[attr] = value
|
|
187
|
+
if issubclass(FencingCredentialsParams, dict):
|
|
188
|
+
for key, value in self.items():
|
|
189
|
+
result[key] = value
|
|
190
|
+
|
|
191
|
+
return result
|
|
192
|
+
|
|
193
|
+
def to_str(self):
|
|
194
|
+
"""Returns the string representation of the model"""
|
|
195
|
+
return pprint.pformat(self.to_dict())
|
|
196
|
+
|
|
197
|
+
def __repr__(self):
|
|
198
|
+
"""For `print` and `pprint`"""
|
|
199
|
+
return self.to_str()
|
|
200
|
+
|
|
201
|
+
def __eq__(self, other):
|
|
202
|
+
"""Returns true if both objects are equal"""
|
|
203
|
+
if not isinstance(other, FencingCredentialsParams):
|
|
204
|
+
return False
|
|
205
|
+
|
|
206
|
+
return self.__dict__ == other.__dict__
|
|
207
|
+
|
|
208
|
+
def __ne__(self, other):
|
|
209
|
+
"""Returns true if both objects are not equal"""
|
|
210
|
+
return not self == other
|
|
@@ -79,7 +79,8 @@ class Host(object):
|
|
|
79
79
|
'ignition_endpoint_token_set': 'bool',
|
|
80
80
|
'node_labels': 'str',
|
|
81
81
|
'disks_to_be_formatted': 'str',
|
|
82
|
-
'skip_formatting_disks': 'str'
|
|
82
|
+
'skip_formatting_disks': 'str',
|
|
83
|
+
'fencing_credentials': 'str'
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
attribute_map = {
|
|
@@ -131,10 +132,11 @@ class Host(object):
|
|
|
131
132
|
'ignition_endpoint_token_set': 'ignition_endpoint_token_set',
|
|
132
133
|
'node_labels': 'node_labels',
|
|
133
134
|
'disks_to_be_formatted': 'disks_to_be_formatted',
|
|
134
|
-
'skip_formatting_disks': 'skip_formatting_disks'
|
|
135
|
+
'skip_formatting_disks': 'skip_formatting_disks',
|
|
136
|
+
'fencing_credentials': 'fencing_credentials'
|
|
135
137
|
}
|
|
136
138
|
|
|
137
|
-
def __init__(self, kind=None, id=None, href=None, cluster_id=None, infra_env_id=None, status=None, status_info=None, validations_info=None, logs_info=None, status_updated_at=None, progress=None, stage_started_at=None, stage_updated_at=None, progress_stages=None, connectivity=None, api_vip_connectivity=None, tang_connectivity=None, inventory=None, free_addresses=None, ntp_sources=None, disks_info=None, role=None, suggested_role=None, bootstrap=None, logs_collected_at=None, logs_started_at=None, installer_version=None, installation_disk_path=None, installation_disk_id=None, updated_at=None, created_at=None, checked_in_at=None, connection_timed_out=None, registered_at=None, discovery_agent_version=None, requested_hostname=None, user_name=None, media_status='connected', deleted_at=None, ignition_config_overrides=None, installer_args=None, timestamp=None, machine_config_pool_name=None, images_status=None, domain_name_resolutions=None, ignition_endpoint_token_set=None, node_labels=None, disks_to_be_formatted=None, skip_formatting_disks=None): # noqa: E501
|
|
139
|
+
def __init__(self, kind=None, id=None, href=None, cluster_id=None, infra_env_id=None, status=None, status_info=None, validations_info=None, logs_info=None, status_updated_at=None, progress=None, stage_started_at=None, stage_updated_at=None, progress_stages=None, connectivity=None, api_vip_connectivity=None, tang_connectivity=None, inventory=None, free_addresses=None, ntp_sources=None, disks_info=None, role=None, suggested_role=None, bootstrap=None, logs_collected_at=None, logs_started_at=None, installer_version=None, installation_disk_path=None, installation_disk_id=None, updated_at=None, created_at=None, checked_in_at=None, connection_timed_out=None, registered_at=None, discovery_agent_version=None, requested_hostname=None, user_name=None, media_status='connected', deleted_at=None, ignition_config_overrides=None, installer_args=None, timestamp=None, machine_config_pool_name=None, images_status=None, domain_name_resolutions=None, ignition_endpoint_token_set=None, node_labels=None, disks_to_be_formatted=None, skip_formatting_disks=None, fencing_credentials=None): # noqa: E501
|
|
138
140
|
"""Host - a model defined in Swagger""" # noqa: E501
|
|
139
141
|
|
|
140
142
|
self._kind = None
|
|
@@ -186,6 +188,7 @@ class Host(object):
|
|
|
186
188
|
self._node_labels = None
|
|
187
189
|
self._disks_to_be_formatted = None
|
|
188
190
|
self._skip_formatting_disks = None
|
|
191
|
+
self._fencing_credentials = None
|
|
189
192
|
self.discriminator = None
|
|
190
193
|
|
|
191
194
|
self.kind = kind
|
|
@@ -281,6 +284,8 @@ class Host(object):
|
|
|
281
284
|
self.disks_to_be_formatted = disks_to_be_formatted
|
|
282
285
|
if skip_formatting_disks is not None:
|
|
283
286
|
self.skip_formatting_disks = skip_formatting_disks
|
|
287
|
+
if fencing_credentials is not None:
|
|
288
|
+
self.fencing_credentials = fencing_credentials
|
|
284
289
|
|
|
285
290
|
@property
|
|
286
291
|
def kind(self):
|
|
@@ -1395,6 +1400,29 @@ class Host(object):
|
|
|
1395
1400
|
|
|
1396
1401
|
self._skip_formatting_disks = skip_formatting_disks
|
|
1397
1402
|
|
|
1403
|
+
@property
|
|
1404
|
+
def fencing_credentials(self):
|
|
1405
|
+
"""Gets the fencing_credentials of this Host. # noqa: E501
|
|
1406
|
+
|
|
1407
|
+
The host's BMC credentials that will be used in TNF. # noqa: E501
|
|
1408
|
+
|
|
1409
|
+
:return: The fencing_credentials of this Host. # noqa: E501
|
|
1410
|
+
:rtype: str
|
|
1411
|
+
"""
|
|
1412
|
+
return self._fencing_credentials
|
|
1413
|
+
|
|
1414
|
+
@fencing_credentials.setter
|
|
1415
|
+
def fencing_credentials(self, fencing_credentials):
|
|
1416
|
+
"""Sets the fencing_credentials of this Host.
|
|
1417
|
+
|
|
1418
|
+
The host's BMC credentials that will be used in TNF. # noqa: E501
|
|
1419
|
+
|
|
1420
|
+
:param fencing_credentials: The fencing_credentials of this Host. # noqa: E501
|
|
1421
|
+
:type: str
|
|
1422
|
+
"""
|
|
1423
|
+
|
|
1424
|
+
self._fencing_credentials = fencing_credentials
|
|
1425
|
+
|
|
1398
1426
|
def to_dict(self):
|
|
1399
1427
|
"""Returns the model properties as a dict"""
|
|
1400
1428
|
result = {}
|
|
@@ -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
|