assisted-service-client 2.42.0.post9__py3-none-any.whl → 2.47.0.post114__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 +215 -5
- 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 +5 -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/infra_env.py +29 -1
- assisted_service_client/models/infra_env_create_params.py +29 -1
- assisted_service_client/models/infra_env_update_params.py +29 -1
- 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.post114.dist-info}/METADATA +10 -2
- {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post114.dist-info}/RECORD +33 -21
- 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.post114.dist-info}/WHEEL +0 -0
- {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post114.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
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 DisconnectedClusterCreateParams(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
|
+
'name': 'str',
|
|
35
|
+
'openshift_version': 'str'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'name': 'name',
|
|
40
|
+
'openshift_version': 'openshift_version'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, name=None, openshift_version=None): # noqa: E501
|
|
44
|
+
"""DisconnectedClusterCreateParams - a model defined in Swagger""" # noqa: E501
|
|
45
|
+
|
|
46
|
+
self._name = None
|
|
47
|
+
self._openshift_version = None
|
|
48
|
+
self.discriminator = None
|
|
49
|
+
|
|
50
|
+
self.name = name
|
|
51
|
+
self.openshift_version = openshift_version
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def name(self):
|
|
55
|
+
"""Gets the name of this DisconnectedClusterCreateParams. # noqa: E501
|
|
56
|
+
|
|
57
|
+
Name of the OpenShift cluster. # noqa: E501
|
|
58
|
+
|
|
59
|
+
:return: The name of this DisconnectedClusterCreateParams. # noqa: E501
|
|
60
|
+
:rtype: str
|
|
61
|
+
"""
|
|
62
|
+
return self._name
|
|
63
|
+
|
|
64
|
+
@name.setter
|
|
65
|
+
def name(self, name):
|
|
66
|
+
"""Sets the name of this DisconnectedClusterCreateParams.
|
|
67
|
+
|
|
68
|
+
Name of the OpenShift cluster. # noqa: E501
|
|
69
|
+
|
|
70
|
+
:param name: The name of this DisconnectedClusterCreateParams. # noqa: E501
|
|
71
|
+
:type: str
|
|
72
|
+
"""
|
|
73
|
+
if name is None:
|
|
74
|
+
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
75
|
+
if name is not None and len(name) > 54:
|
|
76
|
+
raise ValueError("Invalid value for `name`, length must be less than or equal to `54`") # noqa: E501
|
|
77
|
+
if name is not None and len(name) < 1:
|
|
78
|
+
raise ValueError("Invalid value for `name`, length must be greater than or equal to `1`") # noqa: E501
|
|
79
|
+
|
|
80
|
+
self._name = name
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def openshift_version(self):
|
|
84
|
+
"""Gets the openshift_version of this DisconnectedClusterCreateParams. # noqa: E501
|
|
85
|
+
|
|
86
|
+
Version of the OpenShift cluster. # noqa: E501
|
|
87
|
+
|
|
88
|
+
:return: The openshift_version of this DisconnectedClusterCreateParams. # noqa: E501
|
|
89
|
+
:rtype: str
|
|
90
|
+
"""
|
|
91
|
+
return self._openshift_version
|
|
92
|
+
|
|
93
|
+
@openshift_version.setter
|
|
94
|
+
def openshift_version(self, openshift_version):
|
|
95
|
+
"""Sets the openshift_version of this DisconnectedClusterCreateParams.
|
|
96
|
+
|
|
97
|
+
Version of the OpenShift cluster. # noqa: E501
|
|
98
|
+
|
|
99
|
+
:param openshift_version: The openshift_version of this DisconnectedClusterCreateParams. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
if openshift_version is None:
|
|
103
|
+
raise ValueError("Invalid value for `openshift_version`, must not be `None`") # noqa: E501
|
|
104
|
+
|
|
105
|
+
self._openshift_version = openshift_version
|
|
106
|
+
|
|
107
|
+
def to_dict(self):
|
|
108
|
+
"""Returns the model properties as a dict"""
|
|
109
|
+
result = {}
|
|
110
|
+
|
|
111
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
112
|
+
value = getattr(self, attr)
|
|
113
|
+
if isinstance(value, list):
|
|
114
|
+
result[attr] = list(map(
|
|
115
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
116
|
+
value
|
|
117
|
+
))
|
|
118
|
+
elif hasattr(value, "to_dict"):
|
|
119
|
+
result[attr] = value.to_dict()
|
|
120
|
+
elif isinstance(value, dict):
|
|
121
|
+
result[attr] = dict(map(
|
|
122
|
+
lambda item: (item[0], item[1].to_dict())
|
|
123
|
+
if hasattr(item[1], "to_dict") else item,
|
|
124
|
+
value.items()
|
|
125
|
+
))
|
|
126
|
+
else:
|
|
127
|
+
result[attr] = value
|
|
128
|
+
if issubclass(DisconnectedClusterCreateParams, dict):
|
|
129
|
+
for key, value in self.items():
|
|
130
|
+
result[key] = value
|
|
131
|
+
|
|
132
|
+
return result
|
|
133
|
+
|
|
134
|
+
def to_str(self):
|
|
135
|
+
"""Returns the string representation of the model"""
|
|
136
|
+
return pprint.pformat(self.to_dict())
|
|
137
|
+
|
|
138
|
+
def __repr__(self):
|
|
139
|
+
"""For `print` and `pprint`"""
|
|
140
|
+
return self.to_str()
|
|
141
|
+
|
|
142
|
+
def __eq__(self, other):
|
|
143
|
+
"""Returns true if both objects are equal"""
|
|
144
|
+
if not isinstance(other, DisconnectedClusterCreateParams):
|
|
145
|
+
return False
|
|
146
|
+
|
|
147
|
+
return self.__dict__ == other.__dict__
|
|
148
|
+
|
|
149
|
+
def __ne__(self, other):
|
|
150
|
+
"""Returns true if both objects are not equal"""
|
|
151
|
+
return not self == other
|
|
@@ -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,11 @@ 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"
|
|
77
|
+
DUAL_STACK_PRIMARY_IPV6 = "DUAL_STACK_PRIMARY_IPV6"
|
|
73
78
|
|
|
74
79
|
"""
|
|
75
80
|
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 = {}
|