assisted-service-client 2.29.0.post57__py3-none-any.whl → 2.29.0.post59__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- assisted_service_client/__init__.py +1 -0
- assisted_service_client/models/__init__.py +1 -0
- assisted_service_client/models/host_update_params.py +29 -1
- assisted_service_client/models/ignition_endpoint_http_headers_params.py +147 -0
- {assisted_service_client-2.29.0.post57.dist-info → assisted_service_client-2.29.0.post59.dist-info}/METADATA +2 -1
- {assisted_service_client-2.29.0.post57.dist-info → assisted_service_client-2.29.0.post59.dist-info}/RECORD +9 -7
- test/test_ignition_endpoint_http_headers_params.py +40 -0
- {assisted_service_client-2.29.0.post57.dist-info → assisted_service_client-2.29.0.post59.dist-info}/WHEEL +0 -0
- {assisted_service_client-2.29.0.post57.dist-info → assisted_service_client-2.29.0.post59.dist-info}/top_level.txt +0 -0
@@ -103,6 +103,7 @@ from assisted_service_client.models.host_type_hardware_requirements_wrapper impo
|
|
103
103
|
from assisted_service_client.models.host_update_params import HostUpdateParams
|
104
104
|
from assisted_service_client.models.host_validation_id import HostValidationId
|
105
105
|
from assisted_service_client.models.ignition_endpoint import IgnitionEndpoint
|
106
|
+
from assisted_service_client.models.ignition_endpoint_http_headers_params import IgnitionEndpointHttpHeadersParams
|
106
107
|
from assisted_service_client.models.ignored_validations import IgnoredValidations
|
107
108
|
from assisted_service_client.models.image_create_params import ImageCreateParams
|
108
109
|
from assisted_service_client.models.image_info import ImageInfo
|
@@ -91,6 +91,7 @@ from assisted_service_client.models.host_type_hardware_requirements_wrapper impo
|
|
91
91
|
from assisted_service_client.models.host_update_params import HostUpdateParams
|
92
92
|
from assisted_service_client.models.host_validation_id import HostValidationId
|
93
93
|
from assisted_service_client.models.ignition_endpoint import IgnitionEndpoint
|
94
|
+
from assisted_service_client.models.ignition_endpoint_http_headers_params import IgnitionEndpointHttpHeadersParams
|
94
95
|
from assisted_service_client.models.ignored_validations import IgnoredValidations
|
95
96
|
from assisted_service_client.models.image_create_params import ImageCreateParams
|
96
97
|
from assisted_service_client.models.image_info import ImageInfo
|
@@ -37,6 +37,7 @@ class HostUpdateParams(object):
|
|
37
37
|
'disks_skip_formatting': 'list[DiskSkipFormattingParams]',
|
38
38
|
'machine_config_pool_name': 'str',
|
39
39
|
'ignition_endpoint_token': 'str',
|
40
|
+
'ignition_endpoint_http_headers': 'list[IgnitionEndpointHttpHeadersParams]',
|
40
41
|
'node_labels': 'list[NodeLabelParams]'
|
41
42
|
}
|
42
43
|
|
@@ -47,10 +48,11 @@ class HostUpdateParams(object):
|
|
47
48
|
'disks_skip_formatting': 'disks_skip_formatting',
|
48
49
|
'machine_config_pool_name': 'machine_config_pool_name',
|
49
50
|
'ignition_endpoint_token': 'ignition_endpoint_token',
|
51
|
+
'ignition_endpoint_http_headers': 'ignition_endpoint_http_headers',
|
50
52
|
'node_labels': 'node_labels'
|
51
53
|
}
|
52
54
|
|
53
|
-
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, node_labels=None): # noqa: E501
|
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
|
54
56
|
"""HostUpdateParams - a model defined in Swagger""" # noqa: E501
|
55
57
|
|
56
58
|
self._host_role = None
|
@@ -59,6 +61,7 @@ class HostUpdateParams(object):
|
|
59
61
|
self._disks_skip_formatting = None
|
60
62
|
self._machine_config_pool_name = None
|
61
63
|
self._ignition_endpoint_token = None
|
64
|
+
self._ignition_endpoint_http_headers = None
|
62
65
|
self._node_labels = None
|
63
66
|
self.discriminator = None
|
64
67
|
|
@@ -74,6 +77,8 @@ class HostUpdateParams(object):
|
|
74
77
|
self.machine_config_pool_name = machine_config_pool_name
|
75
78
|
if ignition_endpoint_token is not None:
|
76
79
|
self.ignition_endpoint_token = ignition_endpoint_token
|
80
|
+
if ignition_endpoint_http_headers is not None:
|
81
|
+
self.ignition_endpoint_http_headers = ignition_endpoint_http_headers
|
77
82
|
if node_labels is not None:
|
78
83
|
self.node_labels = node_labels
|
79
84
|
|
@@ -213,6 +218,29 @@ class HostUpdateParams(object):
|
|
213
218
|
|
214
219
|
self._ignition_endpoint_token = ignition_endpoint_token
|
215
220
|
|
221
|
+
@property
|
222
|
+
def ignition_endpoint_http_headers(self):
|
223
|
+
"""Gets the ignition_endpoint_http_headers of this HostUpdateParams. # noqa: E501
|
224
|
+
|
225
|
+
JSON-formatted string of additional HTTP headers when fetching the ignition. # noqa: E501
|
226
|
+
|
227
|
+
:return: The ignition_endpoint_http_headers of this HostUpdateParams. # noqa: E501
|
228
|
+
:rtype: list[IgnitionEndpointHttpHeadersParams]
|
229
|
+
"""
|
230
|
+
return self._ignition_endpoint_http_headers
|
231
|
+
|
232
|
+
@ignition_endpoint_http_headers.setter
|
233
|
+
def ignition_endpoint_http_headers(self, ignition_endpoint_http_headers):
|
234
|
+
"""Sets the ignition_endpoint_http_headers of this HostUpdateParams.
|
235
|
+
|
236
|
+
JSON-formatted string of additional HTTP headers when fetching the ignition. # noqa: E501
|
237
|
+
|
238
|
+
:param ignition_endpoint_http_headers: The ignition_endpoint_http_headers of this HostUpdateParams. # noqa: E501
|
239
|
+
:type: list[IgnitionEndpointHttpHeadersParams]
|
240
|
+
"""
|
241
|
+
|
242
|
+
self._ignition_endpoint_http_headers = ignition_endpoint_http_headers
|
243
|
+
|
216
244
|
@property
|
217
245
|
def node_labels(self):
|
218
246
|
"""Gets the node_labels of this HostUpdateParams. # noqa: E501
|
@@ -0,0 +1,147 @@
|
|
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 IgnitionEndpointHttpHeadersParams(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
|
+
'key': 'str',
|
35
|
+
'value': 'str'
|
36
|
+
}
|
37
|
+
|
38
|
+
attribute_map = {
|
39
|
+
'key': 'key',
|
40
|
+
'value': 'value'
|
41
|
+
}
|
42
|
+
|
43
|
+
def __init__(self, key=None, value=None): # noqa: E501
|
44
|
+
"""IgnitionEndpointHttpHeadersParams - a model defined in Swagger""" # noqa: E501
|
45
|
+
|
46
|
+
self._key = None
|
47
|
+
self._value = None
|
48
|
+
self.discriminator = None
|
49
|
+
|
50
|
+
self.key = key
|
51
|
+
self.value = value
|
52
|
+
|
53
|
+
@property
|
54
|
+
def key(self):
|
55
|
+
"""Gets the key of this IgnitionEndpointHttpHeadersParams. # noqa: E501
|
56
|
+
|
57
|
+
The key for the http header's key-value pair. # noqa: E501
|
58
|
+
|
59
|
+
:return: The key of this IgnitionEndpointHttpHeadersParams. # 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 IgnitionEndpointHttpHeadersParams.
|
67
|
+
|
68
|
+
The key for the http header's key-value pair. # noqa: E501
|
69
|
+
|
70
|
+
:param key: The key of this IgnitionEndpointHttpHeadersParams. # noqa: E501
|
71
|
+
:type: str
|
72
|
+
"""
|
73
|
+
if key is None:
|
74
|
+
raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
|
75
|
+
|
76
|
+
self._key = key
|
77
|
+
|
78
|
+
@property
|
79
|
+
def value(self):
|
80
|
+
"""Gets the value of this IgnitionEndpointHttpHeadersParams. # noqa: E501
|
81
|
+
|
82
|
+
The value for the http header's key-value pair. # noqa: E501
|
83
|
+
|
84
|
+
:return: The value of this IgnitionEndpointHttpHeadersParams. # noqa: E501
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._value
|
88
|
+
|
89
|
+
@value.setter
|
90
|
+
def value(self, value):
|
91
|
+
"""Sets the value of this IgnitionEndpointHttpHeadersParams.
|
92
|
+
|
93
|
+
The value for the http header's key-value pair. # noqa: E501
|
94
|
+
|
95
|
+
:param value: The value of this IgnitionEndpointHttpHeadersParams. # noqa: E501
|
96
|
+
:type: str
|
97
|
+
"""
|
98
|
+
if value is None:
|
99
|
+
raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501
|
100
|
+
|
101
|
+
self._value = value
|
102
|
+
|
103
|
+
def to_dict(self):
|
104
|
+
"""Returns the model properties as a dict"""
|
105
|
+
result = {}
|
106
|
+
|
107
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
108
|
+
value = getattr(self, attr)
|
109
|
+
if isinstance(value, list):
|
110
|
+
result[attr] = list(map(
|
111
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
112
|
+
value
|
113
|
+
))
|
114
|
+
elif hasattr(value, "to_dict"):
|
115
|
+
result[attr] = value.to_dict()
|
116
|
+
elif isinstance(value, dict):
|
117
|
+
result[attr] = dict(map(
|
118
|
+
lambda item: (item[0], item[1].to_dict())
|
119
|
+
if hasattr(item[1], "to_dict") else item,
|
120
|
+
value.items()
|
121
|
+
))
|
122
|
+
else:
|
123
|
+
result[attr] = value
|
124
|
+
if issubclass(IgnitionEndpointHttpHeadersParams, dict):
|
125
|
+
for key, value in self.items():
|
126
|
+
result[key] = value
|
127
|
+
|
128
|
+
return result
|
129
|
+
|
130
|
+
def to_str(self):
|
131
|
+
"""Returns the string representation of the model"""
|
132
|
+
return pprint.pformat(self.to_dict())
|
133
|
+
|
134
|
+
def __repr__(self):
|
135
|
+
"""For `print` and `pprint`"""
|
136
|
+
return self.to_str()
|
137
|
+
|
138
|
+
def __eq__(self, other):
|
139
|
+
"""Returns true if both objects are equal"""
|
140
|
+
if not isinstance(other, IgnitionEndpointHttpHeadersParams):
|
141
|
+
return False
|
142
|
+
|
143
|
+
return self.__dict__ == other.__dict__
|
144
|
+
|
145
|
+
def __ne__(self, other):
|
146
|
+
"""Returns true if both objects are not equal"""
|
147
|
+
return not self == other
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: assisted-service-client
|
3
|
-
Version: 2.29.0.
|
3
|
+
Version: 2.29.0.post59
|
4
4
|
Summary: AssistedInstall
|
5
5
|
Home-page: https://github.com/openshift/assisted-service
|
6
6
|
Author: RedHat
|
@@ -277,6 +277,7 @@ Class | Method | HTTP request | Description
|
|
277
277
|
- [HostUpdateParams](docs/HostUpdateParams.md)
|
278
278
|
- [HostValidationId](docs/HostValidationId.md)
|
279
279
|
- [IgnitionEndpoint](docs/IgnitionEndpoint.md)
|
280
|
+
- [IgnitionEndpointHttpHeadersParams](docs/IgnitionEndpointHttpHeadersParams.md)
|
280
281
|
- [IgnoredValidations](docs/IgnoredValidations.md)
|
281
282
|
- [ImageCreateParams](docs/ImageCreateParams.md)
|
282
283
|
- [ImageInfo](docs/ImageInfo.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
assisted_service_client/__init__.py,sha256=
|
1
|
+
assisted_service_client/__init__.py,sha256=2p3_RhD1sLZ9M584izT52KaVY6HoslCeE-6g5RmwOiQ,14745
|
2
2
|
assisted_service_client/api_client.py,sha256=ypPMDOaIc8GI-xm-g5PrNLYlakkK5K3qcJBjJP5GlbM,24986
|
3
3
|
assisted_service_client/configuration.py,sha256=cnW5aIc2HR6HqBv7LXhMfoJTdfPhBed_97UxKDzE8Ro,9078
|
4
4
|
assisted_service_client/rest.py,sha256=fLcY2m9yxpqJW4agxf3yCJyiz486qPLgqw8CbCuftZw,13123
|
@@ -9,7 +9,7 @@ assisted_service_client/api/managed_domains_api.py,sha256=rTPj3IVxrECtMc_-acZ14u
|
|
9
9
|
assisted_service_client/api/manifests_api.py,sha256=aLktOGwkOa3siGnJOYuGO0mH3TlES-fBZvilNvseGO0,25146
|
10
10
|
assisted_service_client/api/operators_api.py,sha256=d-QpJNPGcrAKlE2zG7K160zWrQ7_Wig4osid_92zSTQ,17473
|
11
11
|
assisted_service_client/api/versions_api.py,sha256=UakBz9aWYY3xBKf2hKJfXqrQSlYV7xwQtk5DNri4qug,7618
|
12
|
-
assisted_service_client/models/__init__.py,sha256=
|
12
|
+
assisted_service_client/models/__init__.py,sha256=eHhLJw5Ra3UTfTR77syBdU2vyx-eZ66gnzUMQtrFchY,14169
|
13
13
|
assisted_service_client/models/api_vip.py,sha256=gn7i8OtCG3uzm-Ymku55LMWWOn9sujJ-tJ-eZ2VSLkk,4590
|
14
14
|
assisted_service_client/models/api_vip_connectivity_additional_request_header.py,sha256=pxx8s7nM0qoKarVqYMF0qyY4R4Tz3O6eOfPnji55lRY,4138
|
15
15
|
assisted_service_client/models/api_vip_connectivity_request.py,sha256=juCr4-I9tFkoU3f3t_YrXPJfiAgWAZ03zStfW-BZ6OU,7760
|
@@ -83,9 +83,10 @@ assisted_service_client/models/host_stage.py,sha256=YvTU-GZCuqc7gTzHwlaANPS1Iz2c
|
|
83
83
|
assisted_service_client/models/host_static_network_config.py,sha256=sKEeJ5w_O9XS7oey78pVlgkjOVFPtmPTQLECgZvGVnM,4424
|
84
84
|
assisted_service_client/models/host_type_hardware_requirements.py,sha256=6246yH8N_XNG0_QpMGAQvxK4mHQTBHD_ESjWQMYLVUE,4507
|
85
85
|
assisted_service_client/models/host_type_hardware_requirements_wrapper.py,sha256=zAV2uaPeFuPfvvTYWnELgMxoTzf-NQ1Qgb-z64BhajE,4256
|
86
|
-
assisted_service_client/models/host_update_params.py,sha256=
|
86
|
+
assisted_service_client/models/host_update_params.py,sha256=IZcocNSd2Izv6ZnplU8oSnCoFJVlD74aBN-0V0XUABk,10806
|
87
87
|
assisted_service_client/models/host_validation_id.py,sha256=GAGxAIkm014eEhOSHWT7uRUUVZjPEZ2uw7rBHOiTVrE,4883
|
88
88
|
assisted_service_client/models/ignition_endpoint.py,sha256=dUS_tZE4zvAZwyjDpGV3geXYwD2ecuVDdtrKqNPn7bM,4058
|
89
|
+
assisted_service_client/models/ignition_endpoint_http_headers_params.py,sha256=2yhwXhtDwfq05bQWZQiNbxcEB9T7Kd-3yhH6xHI1-hY,4216
|
89
90
|
assisted_service_client/models/ignored_validations.py,sha256=mhpR__OOD3LXlcwUh7hYeUSyPcvNinDAEQjmVEcM_oc,5278
|
90
91
|
assisted_service_client/models/image_create_params.py,sha256=ls6dj4lLhWhdWVGi54YCUPGvM3IaE2jicwiSK8E83lY,5197
|
91
92
|
assisted_service_client/models/image_info.py,sha256=qLE6WdrbAF3NcgwCBXbTDxrWMlEyyAeYDTlHuFeU_WU,8895
|
@@ -261,6 +262,7 @@ test/test_host_type_hardware_requirements_wrapper.py,sha256=9WyNZ0TSqa_bCf5OrrXq
|
|
261
262
|
test/test_host_update_params.py,sha256=KX5vFTmhGoUf2s5mvyT2DUYvoewdsg005PPVyq2Cmg0,911
|
262
263
|
test/test_host_validation_id.py,sha256=SPTl8qZerQqXSF2n3ySr1M969UpbRLNjbZHXltuJHI8,911
|
263
264
|
test/test_ignition_endpoint.py,sha256=9CHmUNKd5LJew9FkBWEvH3xQ8SG7ofCQ2fKwnPvAf3M,909
|
265
|
+
test/test_ignition_endpoint_http_headers_params.py,sha256=ezDFTyozaGCq1l3LCOfKdFFGFNKLPQtKHCBq6Zks2AM,1051
|
264
266
|
test/test_ignored_validations.py,sha256=MR1CV3lvjhXhomGfun9iURdFxyBvE5k7MPeIwP9_ZS8,925
|
265
267
|
test/test_image_create_params.py,sha256=s8zTLJwyela-ocmNXBSP_NTuuk7onOktGsN7zbCsh70,919
|
266
268
|
test/test_image_info.py,sha256=V_3KX6PNE_xWDcsYS4b41OuOQhoGAwRHi3hB3DBHvhc,853
|
@@ -363,7 +365,7 @@ test/test_versions.py,sha256=n-4xIBBiEuExya4yfHjxHbsRinb_vccUxwIrMxyEvfk,843
|
|
363
365
|
test/test_versions_api.py,sha256=1I1X8zO7RRpqgvWhuV05bK2PnSQfYjN7_d4eBYkum1s,967
|
364
366
|
test/test_vip_type.py,sha256=MAse7Cn2PT8pBELxmmAa4X9K_fZ-jtvNTmrqQ0Hvc-o,837
|
365
367
|
test/test_vip_verification.py,sha256=DwaHdagiOxRAPQ8TN541xSPn--MJEbRATBm1h3OmmZ4,901
|
366
|
-
assisted_service_client-2.29.0.
|
367
|
-
assisted_service_client-2.29.0.
|
368
|
-
assisted_service_client-2.29.0.
|
369
|
-
assisted_service_client-2.29.0.
|
368
|
+
assisted_service_client-2.29.0.post59.dist-info/METADATA,sha256=aAVPgb9PB-XlM07muhGsTSDjuBmRYPAYq2NBEMMK7h0,25380
|
369
|
+
assisted_service_client-2.29.0.post59.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
370
|
+
assisted_service_client-2.29.0.post59.dist-info/top_level.txt,sha256=4hfKi9CMXGm1B8Tohp02sqpWY8GTFoD38UbGI8duAD4,29
|
371
|
+
assisted_service_client-2.29.0.post59.dist-info/RECORD,,
|
@@ -0,0 +1,40 @@
|
|
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
|
+
from __future__ import absolute_import
|
15
|
+
|
16
|
+
import unittest
|
17
|
+
|
18
|
+
import assisted_service_client
|
19
|
+
from assisted_service_client.models.ignition_endpoint_http_headers_params import IgnitionEndpointHttpHeadersParams # noqa: E501
|
20
|
+
from assisted_service_client.rest import ApiException
|
21
|
+
|
22
|
+
|
23
|
+
class TestIgnitionEndpointHttpHeadersParams(unittest.TestCase):
|
24
|
+
"""IgnitionEndpointHttpHeadersParams unit test stubs"""
|
25
|
+
|
26
|
+
def setUp(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def tearDown(self):
|
30
|
+
pass
|
31
|
+
|
32
|
+
def testIgnitionEndpointHttpHeadersParams(self):
|
33
|
+
"""Test IgnitionEndpointHttpHeadersParams"""
|
34
|
+
# FIXME: construct object with mandatory attributes with example values
|
35
|
+
# model = assisted_service_client.models.ignition_endpoint_http_headers_params.IgnitionEndpointHttpHeadersParams() # noqa: E501
|
36
|
+
pass
|
37
|
+
|
38
|
+
|
39
|
+
if __name__ == '__main__':
|
40
|
+
unittest.main()
|
File without changes
|
File without changes
|