assisted-service-client 2.29.0.post24__py3-none-any.whl → 2.29.0.post25__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 +1 -0
- assisted_service_client/models/__init__.py +1 -0
- assisted_service_client/models/api_vip_connectivity_additional_request_header.py +145 -0
- assisted_service_client/models/api_vip_connectivity_request.py +33 -5
- {assisted_service_client-2.29.0.post24.dist-info → assisted_service_client-2.29.0.post25.dist-info}/METADATA +2 -1
- {assisted_service_client-2.29.0.post24.dist-info → assisted_service_client-2.29.0.post25.dist-info}/RECORD +9 -7
- test/test_api_vip_connectivity_additional_request_header.py +40 -0
- {assisted_service_client-2.29.0.post24.dist-info → assisted_service_client-2.29.0.post25.dist-info}/WHEEL +0 -0
- {assisted_service_client-2.29.0.post24.dist-info → assisted_service_client-2.29.0.post25.dist-info}/top_level.txt +0 -0
@@ -28,6 +28,7 @@ from assisted_service_client.api_client import ApiClient
|
|
28
28
|
from assisted_service_client.configuration import Configuration
|
29
29
|
# import models into sdk package
|
30
30
|
from assisted_service_client.models.api_vip import ApiVip
|
31
|
+
from assisted_service_client.models.api_vip_connectivity_additional_request_header import ApiVipConnectivityAdditionalRequestHeader
|
31
32
|
from assisted_service_client.models.api_vip_connectivity_request import ApiVipConnectivityRequest
|
32
33
|
from assisted_service_client.models.api_vip_connectivity_response import ApiVipConnectivityResponse
|
33
34
|
from assisted_service_client.models.architecture_support_level_id import ArchitectureSupportLevelId
|
@@ -16,6 +16,7 @@ from __future__ import absolute_import
|
|
16
16
|
|
17
17
|
# import models into model package
|
18
18
|
from assisted_service_client.models.api_vip import ApiVip
|
19
|
+
from assisted_service_client.models.api_vip_connectivity_additional_request_header import ApiVipConnectivityAdditionalRequestHeader
|
19
20
|
from assisted_service_client.models.api_vip_connectivity_request import ApiVipConnectivityRequest
|
20
21
|
from assisted_service_client.models.api_vip_connectivity_response import ApiVipConnectivityResponse
|
21
22
|
from assisted_service_client.models.architecture_support_level_id import ArchitectureSupportLevelId
|
@@ -0,0 +1,145 @@
|
|
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 ApiVipConnectivityAdditionalRequestHeader(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
|
+
"""ApiVipConnectivityAdditionalRequestHeader - a model defined in Swagger""" # noqa: E501
|
45
|
+
|
46
|
+
self._key = None
|
47
|
+
self._value = None
|
48
|
+
self.discriminator = None
|
49
|
+
|
50
|
+
if key is not None:
|
51
|
+
self.key = key
|
52
|
+
if value is not None:
|
53
|
+
self.value = value
|
54
|
+
|
55
|
+
@property
|
56
|
+
def key(self):
|
57
|
+
"""Gets the key of this ApiVipConnectivityAdditionalRequestHeader. # noqa: E501
|
58
|
+
|
59
|
+
Value of the header's key when making a request # noqa: E501
|
60
|
+
|
61
|
+
:return: The key of this ApiVipConnectivityAdditionalRequestHeader. # noqa: E501
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._key
|
65
|
+
|
66
|
+
@key.setter
|
67
|
+
def key(self, key):
|
68
|
+
"""Sets the key of this ApiVipConnectivityAdditionalRequestHeader.
|
69
|
+
|
70
|
+
Value of the header's key when making a request # noqa: E501
|
71
|
+
|
72
|
+
:param key: The key of this ApiVipConnectivityAdditionalRequestHeader. # noqa: E501
|
73
|
+
:type: str
|
74
|
+
"""
|
75
|
+
|
76
|
+
self._key = key
|
77
|
+
|
78
|
+
@property
|
79
|
+
def value(self):
|
80
|
+
"""Gets the value of this ApiVipConnectivityAdditionalRequestHeader. # noqa: E501
|
81
|
+
|
82
|
+
The value corresponding to the header key # noqa: E501
|
83
|
+
|
84
|
+
:return: The value of this ApiVipConnectivityAdditionalRequestHeader. # 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 ApiVipConnectivityAdditionalRequestHeader.
|
92
|
+
|
93
|
+
The value corresponding to the header key # noqa: E501
|
94
|
+
|
95
|
+
:param value: The value of this ApiVipConnectivityAdditionalRequestHeader. # noqa: E501
|
96
|
+
:type: str
|
97
|
+
"""
|
98
|
+
|
99
|
+
self._value = value
|
100
|
+
|
101
|
+
def to_dict(self):
|
102
|
+
"""Returns the model properties as a dict"""
|
103
|
+
result = {}
|
104
|
+
|
105
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
106
|
+
value = getattr(self, attr)
|
107
|
+
if isinstance(value, list):
|
108
|
+
result[attr] = list(map(
|
109
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
110
|
+
value
|
111
|
+
))
|
112
|
+
elif hasattr(value, "to_dict"):
|
113
|
+
result[attr] = value.to_dict()
|
114
|
+
elif isinstance(value, dict):
|
115
|
+
result[attr] = dict(map(
|
116
|
+
lambda item: (item[0], item[1].to_dict())
|
117
|
+
if hasattr(item[1], "to_dict") else item,
|
118
|
+
value.items()
|
119
|
+
))
|
120
|
+
else:
|
121
|
+
result[attr] = value
|
122
|
+
if issubclass(ApiVipConnectivityAdditionalRequestHeader, dict):
|
123
|
+
for key, value in self.items():
|
124
|
+
result[key] = value
|
125
|
+
|
126
|
+
return result
|
127
|
+
|
128
|
+
def to_str(self):
|
129
|
+
"""Returns the string representation of the model"""
|
130
|
+
return pprint.pformat(self.to_dict())
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print` and `pprint`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ApiVipConnectivityAdditionalRequestHeader):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -34,23 +34,26 @@ class ApiVipConnectivityRequest(object):
|
|
34
34
|
'url': 'str',
|
35
35
|
'verify_cidr': 'bool',
|
36
36
|
'ca_certificate': 'str',
|
37
|
-
'ignition_endpoint_token': 'str'
|
37
|
+
'ignition_endpoint_token': 'str',
|
38
|
+
'request_headers': 'list[ApiVipConnectivityAdditionalRequestHeader]'
|
38
39
|
}
|
39
40
|
|
40
41
|
attribute_map = {
|
41
42
|
'url': 'url',
|
42
43
|
'verify_cidr': 'verify_cidr',
|
43
44
|
'ca_certificate': 'ca_certificate',
|
44
|
-
'ignition_endpoint_token': 'ignition_endpoint_token'
|
45
|
+
'ignition_endpoint_token': 'ignition_endpoint_token',
|
46
|
+
'request_headers': 'request_headers'
|
45
47
|
}
|
46
48
|
|
47
|
-
def __init__(self, url=None, verify_cidr=None, ca_certificate=None, ignition_endpoint_token=None): # noqa: E501
|
49
|
+
def __init__(self, url=None, verify_cidr=None, ca_certificate=None, ignition_endpoint_token=None, request_headers=None): # noqa: E501
|
48
50
|
"""ApiVipConnectivityRequest - a model defined in Swagger""" # noqa: E501
|
49
51
|
|
50
52
|
self._url = None
|
51
53
|
self._verify_cidr = None
|
52
54
|
self._ca_certificate = None
|
53
55
|
self._ignition_endpoint_token = None
|
56
|
+
self._request_headers = None
|
54
57
|
self.discriminator = None
|
55
58
|
|
56
59
|
self.url = url
|
@@ -60,6 +63,8 @@ class ApiVipConnectivityRequest(object):
|
|
60
63
|
self.ca_certificate = ca_certificate
|
61
64
|
if ignition_endpoint_token is not None:
|
62
65
|
self.ignition_endpoint_token = ignition_endpoint_token
|
66
|
+
if request_headers is not None:
|
67
|
+
self.request_headers = request_headers
|
63
68
|
|
64
69
|
@property
|
65
70
|
def url(self):
|
@@ -136,7 +141,7 @@ class ApiVipConnectivityRequest(object):
|
|
136
141
|
def ignition_endpoint_token(self):
|
137
142
|
"""Gets the ignition_endpoint_token of this ApiVipConnectivityRequest. # noqa: E501
|
138
143
|
|
139
|
-
A string which will be used as Authorization Bearer token to fetch the ignition from ignition_endpoint_url. # noqa: E501
|
144
|
+
A string which will be used as Authorization Bearer token to fetch the ignition from ignition_endpoint_url (DEPRECATED use request_headers to pass this token). # noqa: E501
|
140
145
|
|
141
146
|
:return: The ignition_endpoint_token of this ApiVipConnectivityRequest. # noqa: E501
|
142
147
|
:rtype: str
|
@@ -147,7 +152,7 @@ class ApiVipConnectivityRequest(object):
|
|
147
152
|
def ignition_endpoint_token(self, ignition_endpoint_token):
|
148
153
|
"""Sets the ignition_endpoint_token of this ApiVipConnectivityRequest.
|
149
154
|
|
150
|
-
A string which will be used as Authorization Bearer token to fetch the ignition from ignition_endpoint_url. # noqa: E501
|
155
|
+
A string which will be used as Authorization Bearer token to fetch the ignition from ignition_endpoint_url (DEPRECATED use request_headers to pass this token). # noqa: E501
|
151
156
|
|
152
157
|
:param ignition_endpoint_token: The ignition_endpoint_token of this ApiVipConnectivityRequest. # noqa: E501
|
153
158
|
:type: str
|
@@ -155,6 +160,29 @@ class ApiVipConnectivityRequest(object):
|
|
155
160
|
|
156
161
|
self._ignition_endpoint_token = ignition_endpoint_token
|
157
162
|
|
163
|
+
@property
|
164
|
+
def request_headers(self):
|
165
|
+
"""Gets the request_headers of this ApiVipConnectivityRequest. # noqa: E501
|
166
|
+
|
167
|
+
Additional request headers to include when fetching the ignition from ignition_endpoint_url. # noqa: E501
|
168
|
+
|
169
|
+
:return: The request_headers of this ApiVipConnectivityRequest. # noqa: E501
|
170
|
+
:rtype: list[ApiVipConnectivityAdditionalRequestHeader]
|
171
|
+
"""
|
172
|
+
return self._request_headers
|
173
|
+
|
174
|
+
@request_headers.setter
|
175
|
+
def request_headers(self, request_headers):
|
176
|
+
"""Sets the request_headers of this ApiVipConnectivityRequest.
|
177
|
+
|
178
|
+
Additional request headers to include when fetching the ignition from ignition_endpoint_url. # noqa: E501
|
179
|
+
|
180
|
+
:param request_headers: The request_headers of this ApiVipConnectivityRequest. # noqa: E501
|
181
|
+
:type: list[ApiVipConnectivityAdditionalRequestHeader]
|
182
|
+
"""
|
183
|
+
|
184
|
+
self._request_headers = request_headers
|
185
|
+
|
158
186
|
def to_dict(self):
|
159
187
|
"""Returns the model properties as a dict"""
|
160
188
|
result = {}
|
@@ -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.post25
|
4
4
|
Summary: AssistedInstall
|
5
5
|
Home-page: https://github.com/openshift/assisted-service
|
6
6
|
Author: RedHat
|
@@ -202,6 +202,7 @@ Class | Method | HTTP request | Description
|
|
202
202
|
## Documentation For Models
|
203
203
|
|
204
204
|
- [ApiVip](docs/ApiVip.md)
|
205
|
+
- [ApiVipConnectivityAdditionalRequestHeader](docs/ApiVipConnectivityAdditionalRequestHeader.md)
|
205
206
|
- [ApiVipConnectivityRequest](docs/ApiVipConnectivityRequest.md)
|
206
207
|
- [ApiVipConnectivityResponse](docs/ApiVipConnectivityResponse.md)
|
207
208
|
- [ArchitectureSupportLevelId](docs/ArchitectureSupportLevelId.md)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
assisted_service_client/__init__.py,sha256=
|
1
|
+
assisted_service_client/__init__.py,sha256=Ww_O-e8E00si_erAWFHHqbfAN0h2Bu31G-wPo__mH7E,14630
|
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,9 +9,10 @@ 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=ddWrntsRxjD5WRQ1C_RfFph10Ju1hU9S44agPNMHqWQ,14054
|
13
13
|
assisted_service_client/models/api_vip.py,sha256=gn7i8OtCG3uzm-Ymku55LMWWOn9sujJ-tJ-eZ2VSLkk,4590
|
14
|
-
assisted_service_client/models/
|
14
|
+
assisted_service_client/models/api_vip_connectivity_additional_request_header.py,sha256=pxx8s7nM0qoKarVqYMF0qyY4R4Tz3O6eOfPnji55lRY,4138
|
15
|
+
assisted_service_client/models/api_vip_connectivity_request.py,sha256=juCr4-I9tFkoU3f3t_YrXPJfiAgWAZ03zStfW-BZ6OU,7760
|
15
16
|
assisted_service_client/models/api_vip_connectivity_response.py,sha256=g_lug17OFCNbmB81u5xz4TL2XMVLqZ3cpFj9VOP6AUk,6425
|
16
17
|
assisted_service_client/models/architecture_support_level_id.py,sha256=hlG08k4mpxplccAeBy2aiF41lp7zcTUyxPP98x2mXUg,2711
|
17
18
|
assisted_service_client/models/bind_host_params.py,sha256=R6AntLnkrOE_uVaRECc_gx1QPfUmPsVNI06LoDQJONI,3170
|
@@ -184,6 +185,7 @@ assisted_service_client/models/vip_type.py,sha256=_ViccFeXAo3QmCLnOeZs1whiz1yOdA
|
|
184
185
|
assisted_service_client/models/vip_verification.py,sha256=rhxvuffUx8OSiDysXM3O5Lu8SPTh1I4OeDR-2-EFfZs,2501
|
185
186
|
test/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
186
187
|
test/test_api_vip.py,sha256=JSHGrpUtuMBJ8v6BUke0yKaK-TOyj6dYDtEfpohvwn8,829
|
188
|
+
test/test_api_vip_connectivity_additional_request_header.py,sha256=AiW2-jciUjzG2RPtq9zwtdSoNhnEE_Vlv__oubSIAYM,1117
|
187
189
|
test/test_api_vip_connectivity_request.py,sha256=0Blncr3gZR7Mu437Anlyd1tGmCdfxghwP2Ye3j6NNmU,985
|
188
190
|
test/test_api_vip_connectivity_response.py,sha256=lS0tibxSXY-4oQFMLWAh_LaPMpbYDw6FgEckDRqH-Jw,993
|
189
191
|
test/test_architecture_support_level_id.py,sha256=ss-FbJ3EVGl7IW8y443o_59k5hUrcoc8HVEHi6bsDJ8,993
|
@@ -361,7 +363,7 @@ test/test_versions.py,sha256=n-4xIBBiEuExya4yfHjxHbsRinb_vccUxwIrMxyEvfk,843
|
|
361
363
|
test/test_versions_api.py,sha256=1I1X8zO7RRpqgvWhuV05bK2PnSQfYjN7_d4eBYkum1s,967
|
362
364
|
test/test_vip_type.py,sha256=MAse7Cn2PT8pBELxmmAa4X9K_fZ-jtvNTmrqQ0Hvc-o,837
|
363
365
|
test/test_vip_verification.py,sha256=DwaHdagiOxRAPQ8TN541xSPn--MJEbRATBm1h3OmmZ4,901
|
364
|
-
assisted_service_client-2.29.0.
|
365
|
-
assisted_service_client-2.29.0.
|
366
|
-
assisted_service_client-2.29.0.
|
367
|
-
assisted_service_client-2.29.0.
|
366
|
+
assisted_service_client-2.29.0.post25.dist-info/METADATA,sha256=Q-CMoDCVGz3iZl4e7ml8lSIc83-qWYhxZQj71He4So8,25298
|
367
|
+
assisted_service_client-2.29.0.post25.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
368
|
+
assisted_service_client-2.29.0.post25.dist-info/top_level.txt,sha256=4hfKi9CMXGm1B8Tohp02sqpWY8GTFoD38UbGI8duAD4,29
|
369
|
+
assisted_service_client-2.29.0.post25.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.api_vip_connectivity_additional_request_header import ApiVipConnectivityAdditionalRequestHeader # noqa: E501
|
20
|
+
from assisted_service_client.rest import ApiException
|
21
|
+
|
22
|
+
|
23
|
+
class TestApiVipConnectivityAdditionalRequestHeader(unittest.TestCase):
|
24
|
+
"""ApiVipConnectivityAdditionalRequestHeader unit test stubs"""
|
25
|
+
|
26
|
+
def setUp(self):
|
27
|
+
pass
|
28
|
+
|
29
|
+
def tearDown(self):
|
30
|
+
pass
|
31
|
+
|
32
|
+
def testApiVipConnectivityAdditionalRequestHeader(self):
|
33
|
+
"""Test ApiVipConnectivityAdditionalRequestHeader"""
|
34
|
+
# FIXME: construct object with mandatory attributes with example values
|
35
|
+
# model = assisted_service_client.models.api_vip_connectivity_additional_request_header.ApiVipConnectivityAdditionalRequestHeader() # noqa: E501
|
36
|
+
pass
|
37
|
+
|
38
|
+
|
39
|
+
if __name__ == '__main__':
|
40
|
+
unittest.main()
|
File without changes
|
File without changes
|