assisted-service-client 2.37.0.post34__py3-none-any.whl → 2.37.0.post35__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.
Potentially problematic release.
This version of assisted-service-client might be problematic. Click here for more details.
- assisted_service_client/__init__.py +1 -0
- assisted_service_client/api/operators_api.py +190 -0
- assisted_service_client/models/__init__.py +1 -0
- assisted_service_client/models/bundle.py +145 -0
- assisted_service_client/models/monitored_operator.py +31 -3
- {assisted_service_client-2.37.0.post34.dist-info → assisted_service_client-2.37.0.post35.dist-info}/METADATA +4 -1
- {assisted_service_client-2.37.0.post34.dist-info → assisted_service_client-2.37.0.post35.dist-info}/RECORD +11 -9
- test/test_bundle.py +40 -0
- test/test_operators_api.py +14 -0
- {assisted_service_client-2.37.0.post34.dist-info → assisted_service_client-2.37.0.post35.dist-info}/WHEEL +0 -0
- {assisted_service_client-2.37.0.post34.dist-info → assisted_service_client-2.37.0.post35.dist-info}/top_level.txt +0 -0
|
@@ -34,6 +34,7 @@ from assisted_service_client.models.api_vip_connectivity_response import ApiVipC
|
|
|
34
34
|
from assisted_service_client.models.architecture_support_level_id import ArchitectureSupportLevelId
|
|
35
35
|
from assisted_service_client.models.bind_host_params import BindHostParams
|
|
36
36
|
from assisted_service_client.models.boot import Boot
|
|
37
|
+
from assisted_service_client.models.bundle import Bundle
|
|
37
38
|
from assisted_service_client.models.cluster import Cluster
|
|
38
39
|
from assisted_service_client.models.cluster_create_params import ClusterCreateParams
|
|
39
40
|
from assisted_service_client.models.cluster_default_config import ClusterDefaultConfig
|
|
@@ -33,6 +33,196 @@ class OperatorsApi(object):
|
|
|
33
33
|
api_client = ApiClient()
|
|
34
34
|
self.api_client = api_client
|
|
35
35
|
|
|
36
|
+
def v2_get_bundle(self, bundle_name, **kwargs): # noqa: E501
|
|
37
|
+
"""Get operator properties for a bundle # noqa: E501
|
|
38
|
+
|
|
39
|
+
Retrieves an array of operator properties for the specified bundle. # noqa: E501
|
|
40
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
41
|
+
asynchronous HTTP request, please pass async_req=True
|
|
42
|
+
>>> thread = api.v2_get_bundle(bundle_name, async_req=True)
|
|
43
|
+
>>> result = thread.get()
|
|
44
|
+
|
|
45
|
+
:param async_req bool
|
|
46
|
+
:param str bundle_name: The name of the bundle. (required)
|
|
47
|
+
:return: Bundle
|
|
48
|
+
If the method is called asynchronously,
|
|
49
|
+
returns the request thread.
|
|
50
|
+
"""
|
|
51
|
+
kwargs['_return_http_data_only'] = True
|
|
52
|
+
if kwargs.get('async_req'):
|
|
53
|
+
return self.v2_get_bundle_with_http_info(bundle_name, **kwargs) # noqa: E501
|
|
54
|
+
else:
|
|
55
|
+
(data) = self.v2_get_bundle_with_http_info(bundle_name, **kwargs) # noqa: E501
|
|
56
|
+
return data
|
|
57
|
+
|
|
58
|
+
def v2_get_bundle_with_http_info(self, bundle_name, **kwargs): # noqa: E501
|
|
59
|
+
"""Get operator properties for a bundle # noqa: E501
|
|
60
|
+
|
|
61
|
+
Retrieves an array of operator properties for the specified bundle. # noqa: E501
|
|
62
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
63
|
+
asynchronous HTTP request, please pass async_req=True
|
|
64
|
+
>>> thread = api.v2_get_bundle_with_http_info(bundle_name, async_req=True)
|
|
65
|
+
>>> result = thread.get()
|
|
66
|
+
|
|
67
|
+
:param async_req bool
|
|
68
|
+
:param str bundle_name: The name of the bundle. (required)
|
|
69
|
+
:return: Bundle
|
|
70
|
+
If the method is called asynchronously,
|
|
71
|
+
returns the request thread.
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
all_params = ['bundle_name'] # noqa: E501
|
|
75
|
+
all_params.append('async_req')
|
|
76
|
+
all_params.append('_return_http_data_only')
|
|
77
|
+
all_params.append('_preload_content')
|
|
78
|
+
all_params.append('_request_timeout')
|
|
79
|
+
|
|
80
|
+
params = locals()
|
|
81
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
82
|
+
if key not in all_params:
|
|
83
|
+
raise TypeError(
|
|
84
|
+
"Got an unexpected keyword argument '%s'"
|
|
85
|
+
" to method v2_get_bundle" % key
|
|
86
|
+
)
|
|
87
|
+
params[key] = val
|
|
88
|
+
del params['kwargs']
|
|
89
|
+
# verify the required parameter 'bundle_name' is set
|
|
90
|
+
if ('bundle_name' not in params or
|
|
91
|
+
params['bundle_name'] is None):
|
|
92
|
+
raise ValueError("Missing the required parameter `bundle_name` when calling `v2_get_bundle`") # noqa: E501
|
|
93
|
+
|
|
94
|
+
collection_formats = {}
|
|
95
|
+
|
|
96
|
+
path_params = {}
|
|
97
|
+
if 'bundle_name' in params:
|
|
98
|
+
path_params['bundle_name'] = params['bundle_name'] # noqa: E501
|
|
99
|
+
|
|
100
|
+
query_params = []
|
|
101
|
+
|
|
102
|
+
header_params = {}
|
|
103
|
+
|
|
104
|
+
form_params = []
|
|
105
|
+
local_var_files = {}
|
|
106
|
+
|
|
107
|
+
body_params = None
|
|
108
|
+
# HTTP header `Accept`
|
|
109
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
110
|
+
['application/json']) # noqa: E501
|
|
111
|
+
|
|
112
|
+
# HTTP header `Content-Type`
|
|
113
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
114
|
+
['application/json']) # noqa: E501
|
|
115
|
+
|
|
116
|
+
# Authentication setting
|
|
117
|
+
auth_settings = ['userAuth'] # noqa: E501
|
|
118
|
+
|
|
119
|
+
return self.api_client.call_api(
|
|
120
|
+
'/v2/operators/bundles/{bundle_name}', 'GET',
|
|
121
|
+
path_params,
|
|
122
|
+
query_params,
|
|
123
|
+
header_params,
|
|
124
|
+
body=body_params,
|
|
125
|
+
post_params=form_params,
|
|
126
|
+
files=local_var_files,
|
|
127
|
+
response_type='Bundle', # noqa: E501
|
|
128
|
+
auth_settings=auth_settings,
|
|
129
|
+
async_req=params.get('async_req'),
|
|
130
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
131
|
+
_preload_content=params.get('_preload_content', True),
|
|
132
|
+
_request_timeout=params.get('_request_timeout'),
|
|
133
|
+
collection_formats=collection_formats)
|
|
134
|
+
|
|
135
|
+
def v2_list_bundles(self, **kwargs): # noqa: E501
|
|
136
|
+
"""Get list of avaliable bundles # noqa: E501
|
|
137
|
+
|
|
138
|
+
Retrieves a list of avaliable bundles. # noqa: E501
|
|
139
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
140
|
+
asynchronous HTTP request, please pass async_req=True
|
|
141
|
+
>>> thread = api.v2_list_bundles(async_req=True)
|
|
142
|
+
>>> result = thread.get()
|
|
143
|
+
|
|
144
|
+
:param async_req bool
|
|
145
|
+
:return: list[str]
|
|
146
|
+
If the method is called asynchronously,
|
|
147
|
+
returns the request thread.
|
|
148
|
+
"""
|
|
149
|
+
kwargs['_return_http_data_only'] = True
|
|
150
|
+
if kwargs.get('async_req'):
|
|
151
|
+
return self.v2_list_bundles_with_http_info(**kwargs) # noqa: E501
|
|
152
|
+
else:
|
|
153
|
+
(data) = self.v2_list_bundles_with_http_info(**kwargs) # noqa: E501
|
|
154
|
+
return data
|
|
155
|
+
|
|
156
|
+
def v2_list_bundles_with_http_info(self, **kwargs): # noqa: E501
|
|
157
|
+
"""Get list of avaliable bundles # noqa: E501
|
|
158
|
+
|
|
159
|
+
Retrieves a list of avaliable bundles. # noqa: E501
|
|
160
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
161
|
+
asynchronous HTTP request, please pass async_req=True
|
|
162
|
+
>>> thread = api.v2_list_bundles_with_http_info(async_req=True)
|
|
163
|
+
>>> result = thread.get()
|
|
164
|
+
|
|
165
|
+
:param async_req bool
|
|
166
|
+
:return: list[str]
|
|
167
|
+
If the method is called asynchronously,
|
|
168
|
+
returns the request thread.
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
all_params = [] # noqa: E501
|
|
172
|
+
all_params.append('async_req')
|
|
173
|
+
all_params.append('_return_http_data_only')
|
|
174
|
+
all_params.append('_preload_content')
|
|
175
|
+
all_params.append('_request_timeout')
|
|
176
|
+
|
|
177
|
+
params = locals()
|
|
178
|
+
for key, val in six.iteritems(params['kwargs']):
|
|
179
|
+
if key not in all_params:
|
|
180
|
+
raise TypeError(
|
|
181
|
+
"Got an unexpected keyword argument '%s'"
|
|
182
|
+
" to method v2_list_bundles" % key
|
|
183
|
+
)
|
|
184
|
+
params[key] = val
|
|
185
|
+
del params['kwargs']
|
|
186
|
+
|
|
187
|
+
collection_formats = {}
|
|
188
|
+
|
|
189
|
+
path_params = {}
|
|
190
|
+
|
|
191
|
+
query_params = []
|
|
192
|
+
|
|
193
|
+
header_params = {}
|
|
194
|
+
|
|
195
|
+
form_params = []
|
|
196
|
+
local_var_files = {}
|
|
197
|
+
|
|
198
|
+
body_params = None
|
|
199
|
+
# HTTP header `Accept`
|
|
200
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
201
|
+
['application/json']) # noqa: E501
|
|
202
|
+
|
|
203
|
+
# HTTP header `Content-Type`
|
|
204
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
205
|
+
['application/json']) # noqa: E501
|
|
206
|
+
|
|
207
|
+
# Authentication setting
|
|
208
|
+
auth_settings = ['userAuth'] # noqa: E501
|
|
209
|
+
|
|
210
|
+
return self.api_client.call_api(
|
|
211
|
+
'/v2/operators/bundles', 'GET',
|
|
212
|
+
path_params,
|
|
213
|
+
query_params,
|
|
214
|
+
header_params,
|
|
215
|
+
body=body_params,
|
|
216
|
+
post_params=form_params,
|
|
217
|
+
files=local_var_files,
|
|
218
|
+
response_type='list[str]', # noqa: E501
|
|
219
|
+
auth_settings=auth_settings,
|
|
220
|
+
async_req=params.get('async_req'),
|
|
221
|
+
_return_http_data_only=params.get('_return_http_data_only'),
|
|
222
|
+
_preload_content=params.get('_preload_content', True),
|
|
223
|
+
_request_timeout=params.get('_request_timeout'),
|
|
224
|
+
collection_formats=collection_formats)
|
|
225
|
+
|
|
36
226
|
def v2_list_of_cluster_operators(self, cluster_id, **kwargs): # noqa: E501
|
|
37
227
|
"""v2_list_of_cluster_operators # noqa: E501
|
|
38
228
|
|
|
@@ -22,6 +22,7 @@ from assisted_service_client.models.api_vip_connectivity_response import ApiVipC
|
|
|
22
22
|
from assisted_service_client.models.architecture_support_level_id import ArchitectureSupportLevelId
|
|
23
23
|
from assisted_service_client.models.bind_host_params import BindHostParams
|
|
24
24
|
from assisted_service_client.models.boot import Boot
|
|
25
|
+
from assisted_service_client.models.bundle import Bundle
|
|
25
26
|
from assisted_service_client.models.cluster import Cluster
|
|
26
27
|
from assisted_service_client.models.cluster_create_params import ClusterCreateParams
|
|
27
28
|
from assisted_service_client.models.cluster_default_config import ClusterDefaultConfig
|
|
@@ -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 Bundle(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
|
+
'operators': 'list[str]'
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
'name': 'name',
|
|
40
|
+
'operators': 'operators'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
def __init__(self, name=None, operators=None): # noqa: E501
|
|
44
|
+
"""Bundle - a model defined in Swagger""" # noqa: E501
|
|
45
|
+
|
|
46
|
+
self._name = None
|
|
47
|
+
self._operators = None
|
|
48
|
+
self.discriminator = None
|
|
49
|
+
|
|
50
|
+
if name is not None:
|
|
51
|
+
self.name = name
|
|
52
|
+
if operators is not None:
|
|
53
|
+
self.operators = operators
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def name(self):
|
|
57
|
+
"""Gets the name of this Bundle. # noqa: E501
|
|
58
|
+
|
|
59
|
+
The name of the bundle. # noqa: E501
|
|
60
|
+
|
|
61
|
+
:return: The name of this Bundle. # noqa: E501
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._name
|
|
65
|
+
|
|
66
|
+
@name.setter
|
|
67
|
+
def name(self, name):
|
|
68
|
+
"""Sets the name of this Bundle.
|
|
69
|
+
|
|
70
|
+
The name of the bundle. # noqa: E501
|
|
71
|
+
|
|
72
|
+
:param name: The name of this Bundle. # noqa: E501
|
|
73
|
+
:type: str
|
|
74
|
+
"""
|
|
75
|
+
|
|
76
|
+
self._name = name
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def operators(self):
|
|
80
|
+
"""Gets the operators of this Bundle. # noqa: E501
|
|
81
|
+
|
|
82
|
+
List of operators associated with the bundle. # noqa: E501
|
|
83
|
+
|
|
84
|
+
:return: The operators of this Bundle. # noqa: E501
|
|
85
|
+
:rtype: list[str]
|
|
86
|
+
"""
|
|
87
|
+
return self._operators
|
|
88
|
+
|
|
89
|
+
@operators.setter
|
|
90
|
+
def operators(self, operators):
|
|
91
|
+
"""Sets the operators of this Bundle.
|
|
92
|
+
|
|
93
|
+
List of operators associated with the bundle. # noqa: E501
|
|
94
|
+
|
|
95
|
+
:param operators: The operators of this Bundle. # noqa: E501
|
|
96
|
+
:type: list[str]
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
self._operators = operators
|
|
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(Bundle, 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, Bundle):
|
|
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
|
|
@@ -41,7 +41,8 @@ class MonitoredOperator(object):
|
|
|
41
41
|
'timeout_seconds': 'int',
|
|
42
42
|
'status': 'OperatorStatus',
|
|
43
43
|
'status_info': 'str',
|
|
44
|
-
'status_updated_at': 'datetime'
|
|
44
|
+
'status_updated_at': 'datetime',
|
|
45
|
+
'bundles': 'list[str]'
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
attribute_map = {
|
|
@@ -55,10 +56,11 @@ class MonitoredOperator(object):
|
|
|
55
56
|
'timeout_seconds': 'timeout_seconds',
|
|
56
57
|
'status': 'status',
|
|
57
58
|
'status_info': 'status_info',
|
|
58
|
-
'status_updated_at': 'status_updated_at'
|
|
59
|
+
'status_updated_at': 'status_updated_at',
|
|
60
|
+
'bundles': 'bundles'
|
|
59
61
|
}
|
|
60
62
|
|
|
61
|
-
def __init__(self, cluster_id=None, name=None, version=None, namespace=None, subscription_name=None, operator_type=None, properties=None, timeout_seconds=None, status=None, status_info=None, status_updated_at=None): # noqa: E501
|
|
63
|
+
def __init__(self, cluster_id=None, name=None, version=None, namespace=None, subscription_name=None, operator_type=None, properties=None, timeout_seconds=None, status=None, status_info=None, status_updated_at=None, bundles=None): # noqa: E501
|
|
62
64
|
"""MonitoredOperator - a model defined in Swagger""" # noqa: E501
|
|
63
65
|
|
|
64
66
|
self._cluster_id = None
|
|
@@ -72,6 +74,7 @@ class MonitoredOperator(object):
|
|
|
72
74
|
self._status = None
|
|
73
75
|
self._status_info = None
|
|
74
76
|
self._status_updated_at = None
|
|
77
|
+
self._bundles = None
|
|
75
78
|
self.discriminator = None
|
|
76
79
|
|
|
77
80
|
if cluster_id is not None:
|
|
@@ -96,6 +99,8 @@ class MonitoredOperator(object):
|
|
|
96
99
|
self.status_info = status_info
|
|
97
100
|
if status_updated_at is not None:
|
|
98
101
|
self.status_updated_at = status_updated_at
|
|
102
|
+
if bundles is not None:
|
|
103
|
+
self.bundles = bundles
|
|
99
104
|
|
|
100
105
|
@property
|
|
101
106
|
def cluster_id(self):
|
|
@@ -346,6 +351,29 @@ class MonitoredOperator(object):
|
|
|
346
351
|
|
|
347
352
|
self._status_updated_at = status_updated_at
|
|
348
353
|
|
|
354
|
+
@property
|
|
355
|
+
def bundles(self):
|
|
356
|
+
"""Gets the bundles of this MonitoredOperator. # noqa: E501
|
|
357
|
+
|
|
358
|
+
List of bundles associated with the operator. Can be empty. # noqa: E501
|
|
359
|
+
|
|
360
|
+
:return: The bundles of this MonitoredOperator. # noqa: E501
|
|
361
|
+
:rtype: list[str]
|
|
362
|
+
"""
|
|
363
|
+
return self._bundles
|
|
364
|
+
|
|
365
|
+
@bundles.setter
|
|
366
|
+
def bundles(self, bundles):
|
|
367
|
+
"""Sets the bundles of this MonitoredOperator.
|
|
368
|
+
|
|
369
|
+
List of bundles associated with the operator. Can be empty. # noqa: E501
|
|
370
|
+
|
|
371
|
+
:param bundles: The bundles of this MonitoredOperator. # noqa: E501
|
|
372
|
+
:type: list[str]
|
|
373
|
+
"""
|
|
374
|
+
|
|
375
|
+
self._bundles = bundles
|
|
376
|
+
|
|
349
377
|
def to_dict(self):
|
|
350
378
|
"""Returns the model properties as a dict"""
|
|
351
379
|
result = {}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: assisted-service-client
|
|
3
|
-
Version: 2.37.0.
|
|
3
|
+
Version: 2.37.0.post35
|
|
4
4
|
Summary: AssistedInstall
|
|
5
5
|
Home-page: https://github.com/openshift/assisted-service
|
|
6
6
|
Author: RedHat
|
|
@@ -194,6 +194,8 @@ Class | Method | HTTP request | Description
|
|
|
194
194
|
*ManifestsApi* | [**v2_download_cluster_manifest**](docs/ManifestsApi.md#v2_download_cluster_manifest) | **GET** /v2/clusters/{cluster_id}/manifests/files |
|
|
195
195
|
*ManifestsApi* | [**v2_list_cluster_manifests**](docs/ManifestsApi.md#v2_list_cluster_manifests) | **GET** /v2/clusters/{cluster_id}/manifests |
|
|
196
196
|
*ManifestsApi* | [**v2_update_cluster_manifest**](docs/ManifestsApi.md#v2_update_cluster_manifest) | **PATCH** /v2/clusters/{cluster_id}/manifests |
|
|
197
|
+
*OperatorsApi* | [**v2_get_bundle**](docs/OperatorsApi.md#v2_get_bundle) | **GET** /v2/operators/bundles/{bundle_name} | Get operator properties for a bundle
|
|
198
|
+
*OperatorsApi* | [**v2_list_bundles**](docs/OperatorsApi.md#v2_list_bundles) | **GET** /v2/operators/bundles | Get list of avaliable bundles
|
|
197
199
|
*OperatorsApi* | [**v2_list_of_cluster_operators**](docs/OperatorsApi.md#v2_list_of_cluster_operators) | **GET** /v2/clusters/{cluster_id}/monitored-operators |
|
|
198
200
|
*OperatorsApi* | [**v2_list_operator_properties**](docs/OperatorsApi.md#v2_list_operator_properties) | **GET** /v2/supported-operators/{operator_name} |
|
|
199
201
|
*OperatorsApi* | [**v2_list_supported_operators**](docs/OperatorsApi.md#v2_list_supported_operators) | **GET** /v2/supported-operators |
|
|
@@ -212,6 +214,7 @@ Class | Method | HTTP request | Description
|
|
|
212
214
|
- [ArchitectureSupportLevelId](docs/ArchitectureSupportLevelId.md)
|
|
213
215
|
- [BindHostParams](docs/BindHostParams.md)
|
|
214
216
|
- [Boot](docs/Boot.md)
|
|
217
|
+
- [Bundle](docs/Bundle.md)
|
|
215
218
|
- [Cluster](docs/Cluster.md)
|
|
216
219
|
- [ClusterCreateParams](docs/ClusterCreateParams.md)
|
|
217
220
|
- [ClusterDefaultConfig](docs/ClusterDefaultConfig.md)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
assisted_service_client/__init__.py,sha256=
|
|
1
|
+
assisted_service_client/__init__.py,sha256=k7zp07rR11CxrPJII8Jf5xzxUOirsXzwJSh2i5Syc6A,15362
|
|
2
2
|
assisted_service_client/api_client.py,sha256=ypPMDOaIc8GI-xm-g5PrNLYlakkK5K3qcJBjJP5GlbM,24986
|
|
3
3
|
assisted_service_client/configuration.py,sha256=wLYxtRlTlR9o-y24tqlDSgfjrh9YdiyWaM8-QxFOyOY,9352
|
|
4
4
|
assisted_service_client/rest.py,sha256=fLcY2m9yxpqJW4agxf3yCJyiz486qPLgqw8CbCuftZw,13123
|
|
@@ -7,9 +7,9 @@ assisted_service_client/api/events_api.py,sha256=ViI7Amn3-o8PcVbAg2iGan0nFrk6oJ0
|
|
|
7
7
|
assisted_service_client/api/installer_api.py,sha256=TzuJkgnIyr4X4Qbh1A0xis1_YaGQmo7Y_G3RapsS4TY,299908
|
|
8
8
|
assisted_service_client/api/managed_domains_api.py,sha256=rTPj3IVxrECtMc_-acZ14u6WydVqHVw6VaM7I8Zvu3g,4087
|
|
9
9
|
assisted_service_client/api/manifests_api.py,sha256=aLktOGwkOa3siGnJOYuGO0mH3TlES-fBZvilNvseGO0,25146
|
|
10
|
-
assisted_service_client/api/operators_api.py,sha256=
|
|
10
|
+
assisted_service_client/api/operators_api.py,sha256=6_YxltaDkQ8J3XkOFoQeKEQRAOQN_BYdc9Ak-RLTpq8,24760
|
|
11
11
|
assisted_service_client/api/versions_api.py,sha256=0eomTHtqgrHnxBxNhL_rZ43K3O3fjvpy0nMRxt2idEg,11674
|
|
12
|
-
assisted_service_client/models/__init__.py,sha256=
|
|
12
|
+
assisted_service_client/models/__init__.py,sha256=YQpsUAl9adO4fqyzicmilWMLDz21Q0JmMNy_qxOAtbA,14786
|
|
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
|
|
@@ -17,6 +17,7 @@ assisted_service_client/models/api_vip_connectivity_response.py,sha256=g_lug17OF
|
|
|
17
17
|
assisted_service_client/models/architecture_support_level_id.py,sha256=hlG08k4mpxplccAeBy2aiF41lp7zcTUyxPP98x2mXUg,2711
|
|
18
18
|
assisted_service_client/models/bind_host_params.py,sha256=R6AntLnkrOE_uVaRECc_gx1QPfUmPsVNI06LoDQJONI,3170
|
|
19
19
|
assisted_service_client/models/boot.py,sha256=HaFURZ2Zcn14eHfojQVuCT7W6jmVly_hgCpgoeY-Pu8,5412
|
|
20
|
+
assisted_service_client/models/bundle.py,sha256=KSblKrop2bnV5MlxFaWROMC4zKatF5qMX9dn4PZOWOA,3796
|
|
20
21
|
assisted_service_client/models/cluster.py,sha256=3qQ8JGiYPVU_tlaQHsU4vokckaNzyoQfjIkZch1qrcM,76616
|
|
21
22
|
assisted_service_client/models/cluster_create_params.py,sha256=WRmRjCe4Uz-RlAiiTvueCLx_I3pajDXVpwRcHNu8zhQ,39605
|
|
22
23
|
assisted_service_client/models/cluster_default_config.py,sha256=MXhboRxA2o4-lHR9baQCiehfksCV4XfsabSMqFfSv3U,12993
|
|
@@ -128,7 +129,7 @@ assisted_service_client/models/managed_domain.py,sha256=lvORcWOR9eFVG8MMA_YFpmv_
|
|
|
128
129
|
assisted_service_client/models/manifest.py,sha256=IWPLzB9O2ouqnxXo_SOWSWkALT2l6CYNOWZrEzDFEqk,5582
|
|
129
130
|
assisted_service_client/models/memory.py,sha256=pNVA7KJrF2Qg9RQdP3RLH1hi6-I0oz_nmat3cHY7mrc,4870
|
|
130
131
|
assisted_service_client/models/memory_method.py,sha256=4Zaob1yIL-VgG80T7gPe5xuDux7zFqoAuwCwylP5cgE,2477
|
|
131
|
-
assisted_service_client/models/monitored_operator.py,sha256=
|
|
132
|
+
assisted_service_client/models/monitored_operator.py,sha256=wk15vZkZrZ8Nk9YwtDY6PRBPQMD0_BrKjiljdWQ-JJQ,12707
|
|
132
133
|
assisted_service_client/models/monitored_operators_list.py,sha256=6cJImtZn97HBeVmMEuFBGW-UYes1qTmgIvA22_regFo,2408
|
|
133
134
|
assisted_service_client/models/mtu_report.py,sha256=6N3M0UDvPJV7mKLf8gbvnD9MIW9tGqn06Jgxv-7dvJ8,4674
|
|
134
135
|
assisted_service_client/models/next_step_cmd_request.py,sha256=PQi1ykNi5OXQSOnmY6rhBz5OsJI4ZwQWvOiVO5toAoc,5078
|
|
@@ -200,6 +201,7 @@ test/test_api_vip_connectivity_response.py,sha256=lS0tibxSXY-4oQFMLWAh_LaPMpbYDw
|
|
|
200
201
|
test/test_architecture_support_level_id.py,sha256=ss-FbJ3EVGl7IW8y443o_59k5hUrcoc8HVEHi6bsDJ8,993
|
|
201
202
|
test/test_bind_host_params.py,sha256=FStw5r2XdIvvWM0x0RwGKNHJCCZDChlo9-0M_eduZIE,895
|
|
202
203
|
test/test_boot.py,sha256=bAvvmrxH391Wxy33I-XLgSVPNOuvXZsDOvqeNIa5HaA,811
|
|
204
|
+
test/test_bundle.py,sha256=zSg4n-fZHq7jz-6MuLGwlL48lXrtjZ-oYHvQcWEK0uM,827
|
|
203
205
|
test/test_cluster.py,sha256=154SEV85baNOGhubzXgs4TiP7R9NlBSu4o0ycGJNVPs,835
|
|
204
206
|
test/test_cluster_create_params.py,sha256=K3-6DrKzRlZ3la4QFzPlxq14kxFgICf8Zpm9SdnTRdQ,935
|
|
205
207
|
test/test_cluster_default_config.py,sha256=DggWVcma-LKqx_dZGSYJ6r0LAYoAoa6LIK8K3KzR-ro,943
|
|
@@ -333,7 +335,7 @@ test/test_operator_properties.py,sha256=b7qgRx73jUuGJa4_KL2q2iHgLCDTOyJuGY7nEPrE
|
|
|
333
335
|
test/test_operator_property.py,sha256=Qcrk-23Kk3BTNmOh6K-SPjWhovmjb4aox67DiU6f8Ik,909
|
|
334
336
|
test/test_operator_status.py,sha256=NYONReYAPyGrsYvY6gtjlt_H1co4k2lgBGyppNiXfH4,893
|
|
335
337
|
test/test_operator_type.py,sha256=sgh-FX4cIV3BaNb-Il3ruAreGagfzOOgCjn1BQwvZEA,877
|
|
336
|
-
test/test_operators_api.py,sha256=
|
|
338
|
+
test/test_operators_api.py,sha256=k0jFcSQZvz7uXjbNRa7nwrlJPJwYo4T8nmpwyswf8J0,1546
|
|
337
339
|
test/test_os_image.py,sha256=wZTKD1V1Zm6VVL9Ye60_BKycd8c_fkFE3NxOqI5jvo0,837
|
|
338
340
|
test/test_os_images.py,sha256=rBqwen7wukMW12pccvj58zVlBizpdINNSiuQl1wXMx8,845
|
|
339
341
|
test/test_platform.py,sha256=F3RymW4mgOOZzM7q79C0MgD0ibz53qNIwkzLJo2_exM,843
|
|
@@ -381,7 +383,7 @@ test/test_versions.py,sha256=n-4xIBBiEuExya4yfHjxHbsRinb_vccUxwIrMxyEvfk,843
|
|
|
381
383
|
test/test_versions_api.py,sha256=STXdU0DUr6Bmpp8YEBvPKo5ohNZKwxI0e_ddDi3F_1c,1087
|
|
382
384
|
test/test_vip_type.py,sha256=MAse7Cn2PT8pBELxmmAa4X9K_fZ-jtvNTmrqQ0Hvc-o,837
|
|
383
385
|
test/test_vip_verification.py,sha256=DwaHdagiOxRAPQ8TN541xSPn--MJEbRATBm1h3OmmZ4,901
|
|
384
|
-
assisted_service_client-2.37.0.
|
|
385
|
-
assisted_service_client-2.37.0.
|
|
386
|
-
assisted_service_client-2.37.0.
|
|
387
|
-
assisted_service_client-2.37.0.
|
|
386
|
+
assisted_service_client-2.37.0.post35.dist-info/METADATA,sha256=bpBBl_xiU2f2DdoMECxDRKMynClFsE8kEz--ShqfF8M,26536
|
|
387
|
+
assisted_service_client-2.37.0.post35.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
388
|
+
assisted_service_client-2.37.0.post35.dist-info/top_level.txt,sha256=4hfKi9CMXGm1B8Tohp02sqpWY8GTFoD38UbGI8duAD4,29
|
|
389
|
+
assisted_service_client-2.37.0.post35.dist-info/RECORD,,
|
test/test_bundle.py
ADDED
|
@@ -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.bundle import Bundle # noqa: E501
|
|
20
|
+
from assisted_service_client.rest import ApiException
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class TestBundle(unittest.TestCase):
|
|
24
|
+
"""Bundle unit test stubs"""
|
|
25
|
+
|
|
26
|
+
def setUp(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def tearDown(self):
|
|
30
|
+
pass
|
|
31
|
+
|
|
32
|
+
def testBundle(self):
|
|
33
|
+
"""Test Bundle"""
|
|
34
|
+
# FIXME: construct object with mandatory attributes with example values
|
|
35
|
+
# model = assisted_service_client.models.bundle.Bundle() # noqa: E501
|
|
36
|
+
pass
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if __name__ == '__main__':
|
|
40
|
+
unittest.main()
|
test/test_operators_api.py
CHANGED
|
@@ -29,6 +29,20 @@ class TestOperatorsApi(unittest.TestCase):
|
|
|
29
29
|
def tearDown(self):
|
|
30
30
|
pass
|
|
31
31
|
|
|
32
|
+
def test_v2_get_bundle(self):
|
|
33
|
+
"""Test case for v2_get_bundle
|
|
34
|
+
|
|
35
|
+
Get operator properties for a bundle # noqa: E501
|
|
36
|
+
"""
|
|
37
|
+
pass
|
|
38
|
+
|
|
39
|
+
def test_v2_list_bundles(self):
|
|
40
|
+
"""Test case for v2_list_bundles
|
|
41
|
+
|
|
42
|
+
Get list of avaliable bundles # noqa: E501
|
|
43
|
+
"""
|
|
44
|
+
pass
|
|
45
|
+
|
|
32
46
|
def test_v2_list_of_cluster_operators(self):
|
|
33
47
|
"""Test case for v2_list_of_cluster_operators
|
|
34
48
|
|
|
File without changes
|
|
File without changes
|