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.
Files changed (33) hide show
  1. assisted_service_client/__init__.py +6 -0
  2. assisted_service_client/api/installer_api.py +215 -5
  3. assisted_service_client/api/operators_api.py +36 -10
  4. assisted_service_client/models/__init__.py +6 -0
  5. assisted_service_client/models/cluster.py +4 -4
  6. assisted_service_client/models/cluster_validation_id.py +5 -0
  7. assisted_service_client/models/disconnected_cluster_create_params.py +151 -0
  8. assisted_service_client/models/feature.py +196 -0
  9. assisted_service_client/models/feature_support_level_id.py +5 -0
  10. assisted_service_client/models/fencing_credentials_params.py +210 -0
  11. assisted_service_client/models/host.py +31 -3
  12. assisted_service_client/models/host_update_params.py +31 -3
  13. assisted_service_client/models/host_validation_id.py +4 -0
  14. assisted_service_client/models/image_type.py +1 -0
  15. assisted_service_client/models/incompatibility_reason.py +95 -0
  16. assisted_service_client/models/infra_env.py +29 -1
  17. assisted_service_client/models/infra_env_create_params.py +29 -1
  18. assisted_service_client/models/infra_env_update_params.py +29 -1
  19. assisted_service_client/models/inline_response2001.py +43 -19
  20. assisted_service_client/models/inline_response2002.py +117 -0
  21. assisted_service_client/models/operator.py +252 -0
  22. {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post114.dist-info}/METADATA +10 -2
  23. {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post114.dist-info}/RECORD +33 -21
  24. test/test_disconnected_cluster_create_params.py +40 -0
  25. test/test_feature.py +40 -0
  26. test/test_fencing_credentials_params.py +40 -0
  27. test/test_incompatibility_reason.py +40 -0
  28. test/test_inline_response2002.py +40 -0
  29. test/test_installer_api.py +12 -0
  30. test/test_operator.py +40 -0
  31. test/test_operators_api.py +1 -1
  32. {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post114.dist-info}/WHEEL +0 -0
  33. {assisted_service_client-2.42.0.post9.dist-info → assisted_service_client-2.47.0.post114.dist-info}/top_level.txt +0 -0
@@ -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:
@@ -28,6 +28,7 @@ class ImageType(object):
28
28
  """
29
29
  FULL_ISO = "full-iso"
30
30
  MINIMAL_ISO = "minimal-iso"
31
+ DISCONNECTED_ISO = "disconnected-iso"
31
32
 
32
33
  """
33
34
  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
@@ -44,6 +44,7 @@ class InfraEnv(object):
44
44
  'ssh_authorized_key': 'str',
45
45
  'pull_secret_set': 'bool',
46
46
  'static_network_config': 'str',
47
+ 'rendezvous_ip': 'str',
47
48
  'type': 'ImageType',
48
49
  'ignition_config_override': 'str',
49
50
  'cluster_id': 'str',
@@ -72,6 +73,7 @@ class InfraEnv(object):
72
73
  'ssh_authorized_key': 'ssh_authorized_key',
73
74
  'pull_secret_set': 'pull_secret_set',
74
75
  'static_network_config': 'static_network_config',
76
+ 'rendezvous_ip': 'rendezvous_ip',
75
77
  'type': 'type',
76
78
  'ignition_config_override': 'ignition_config_override',
77
79
  'cluster_id': 'cluster_id',
@@ -86,7 +88,7 @@ class InfraEnv(object):
86
88
  'additional_trust_bundle': 'additional_trust_bundle'
87
89
  }
88
90
 
89
- def __init__(self, kind=None, id=None, href=None, openshift_version=None, name=None, user_name=None, org_id=None, email_domain=None, proxy=None, additional_ntp_sources=None, ssh_authorized_key=None, pull_secret_set=None, static_network_config=None, type=None, ignition_config_override=None, cluster_id=None, size_bytes=None, download_url=None, generator_version=None, updated_at=None, created_at=None, expires_at=None, cpu_architecture='x86_64', kernel_arguments=None, additional_trust_bundle=None): # noqa: E501
91
+ def __init__(self, kind=None, id=None, href=None, openshift_version=None, name=None, user_name=None, org_id=None, email_domain=None, proxy=None, additional_ntp_sources=None, ssh_authorized_key=None, pull_secret_set=None, static_network_config=None, rendezvous_ip=None, type=None, ignition_config_override=None, cluster_id=None, size_bytes=None, download_url=None, generator_version=None, updated_at=None, created_at=None, expires_at=None, cpu_architecture='x86_64', kernel_arguments=None, additional_trust_bundle=None): # noqa: E501
90
92
  """InfraEnv - a model defined in Swagger""" # noqa: E501
91
93
 
92
94
  self._kind = None
@@ -102,6 +104,7 @@ class InfraEnv(object):
102
104
  self._ssh_authorized_key = None
103
105
  self._pull_secret_set = None
104
106
  self._static_network_config = None
107
+ self._rendezvous_ip = None
105
108
  self._type = None
106
109
  self._ignition_config_override = None
107
110
  self._cluster_id = None
@@ -138,6 +141,8 @@ class InfraEnv(object):
138
141
  self.pull_secret_set = pull_secret_set
139
142
  if static_network_config is not None:
140
143
  self.static_network_config = static_network_config
144
+ if rendezvous_ip is not None:
145
+ self.rendezvous_ip = rendezvous_ip
141
146
  self.type = type
142
147
  if ignition_config_override is not None:
143
148
  self.ignition_config_override = ignition_config_override
@@ -465,6 +470,29 @@ class InfraEnv(object):
465
470
 
466
471
  self._static_network_config = static_network_config
467
472
 
473
+ @property
474
+ def rendezvous_ip(self):
475
+ """Gets the rendezvous_ip of this InfraEnv. # noqa: E501
476
+
477
+ The IP address of the host that will act as the rendezvous (bootstrap) node for agent-based installations. This is optional for disconnected-iso image type and specifies which host will run the assisted service during the bootstrap phase. All other hosts will connect to this IP to coordinate the installation. # noqa: E501
478
+
479
+ :return: The rendezvous_ip of this InfraEnv. # noqa: E501
480
+ :rtype: str
481
+ """
482
+ return self._rendezvous_ip
483
+
484
+ @rendezvous_ip.setter
485
+ def rendezvous_ip(self, rendezvous_ip):
486
+ """Sets the rendezvous_ip of this InfraEnv.
487
+
488
+ The IP address of the host that will act as the rendezvous (bootstrap) node for agent-based installations. This is optional for disconnected-iso image type and specifies which host will run the assisted service during the bootstrap phase. All other hosts will connect to this IP to coordinate the installation. # noqa: E501
489
+
490
+ :param rendezvous_ip: The rendezvous_ip of this InfraEnv. # noqa: E501
491
+ :type: str
492
+ """
493
+
494
+ self._rendezvous_ip = rendezvous_ip
495
+
468
496
  @property
469
497
  def type(self):
470
498
  """Gets the type of this InfraEnv. # noqa: E501
@@ -37,6 +37,7 @@ class InfraEnvCreateParams(object):
37
37
  'ssh_authorized_key': 'str',
38
38
  'pull_secret': 'str',
39
39
  'static_network_config': 'list[HostStaticNetworkConfig]',
40
+ 'rendezvous_ip': 'str',
40
41
  'image_type': 'ImageType',
41
42
  'ignition_config_override': 'str',
42
43
  'cluster_id': 'str',
@@ -53,6 +54,7 @@ class InfraEnvCreateParams(object):
53
54
  'ssh_authorized_key': 'ssh_authorized_key',
54
55
  'pull_secret': 'pull_secret',
55
56
  'static_network_config': 'static_network_config',
57
+ 'rendezvous_ip': 'rendezvous_ip',
56
58
  'image_type': 'image_type',
57
59
  'ignition_config_override': 'ignition_config_override',
58
60
  'cluster_id': 'cluster_id',
@@ -62,7 +64,7 @@ class InfraEnvCreateParams(object):
62
64
  'additional_trust_bundle': 'additional_trust_bundle'
63
65
  }
64
66
 
65
- def __init__(self, name=None, proxy=None, additional_ntp_sources=None, ssh_authorized_key=None, pull_secret=None, static_network_config=None, image_type=None, ignition_config_override=None, cluster_id=None, openshift_version=None, cpu_architecture='x86_64', kernel_arguments=None, additional_trust_bundle=None): # noqa: E501
67
+ def __init__(self, name=None, proxy=None, additional_ntp_sources=None, ssh_authorized_key=None, pull_secret=None, static_network_config=None, rendezvous_ip=None, image_type=None, ignition_config_override=None, cluster_id=None, openshift_version=None, cpu_architecture='x86_64', kernel_arguments=None, additional_trust_bundle=None): # noqa: E501
66
68
  """InfraEnvCreateParams - a model defined in Swagger""" # noqa: E501
67
69
 
68
70
  self._name = None
@@ -71,6 +73,7 @@ class InfraEnvCreateParams(object):
71
73
  self._ssh_authorized_key = None
72
74
  self._pull_secret = None
73
75
  self._static_network_config = None
76
+ self._rendezvous_ip = None
74
77
  self._image_type = None
75
78
  self._ignition_config_override = None
76
79
  self._cluster_id = None
@@ -90,6 +93,8 @@ class InfraEnvCreateParams(object):
90
93
  self.pull_secret = pull_secret
91
94
  if static_network_config is not None:
92
95
  self.static_network_config = static_network_config
96
+ if rendezvous_ip is not None:
97
+ self.rendezvous_ip = rendezvous_ip
93
98
  if image_type is not None:
94
99
  self.image_type = image_type
95
100
  if ignition_config_override is not None:
@@ -243,6 +248,29 @@ class InfraEnvCreateParams(object):
243
248
 
244
249
  self._static_network_config = static_network_config
245
250
 
251
+ @property
252
+ def rendezvous_ip(self):
253
+ """Gets the rendezvous_ip of this InfraEnvCreateParams. # noqa: E501
254
+
255
+ The IP address of the host that will act as the rendezvous (bootstrap) node for agent-based installations. This is optional for disconnected-iso image type and specifies which host will run the assisted service during the bootstrap phase. All other hosts will connect to this IP to coordinate the installation. # noqa: E501
256
+
257
+ :return: The rendezvous_ip of this InfraEnvCreateParams. # noqa: E501
258
+ :rtype: str
259
+ """
260
+ return self._rendezvous_ip
261
+
262
+ @rendezvous_ip.setter
263
+ def rendezvous_ip(self, rendezvous_ip):
264
+ """Sets the rendezvous_ip of this InfraEnvCreateParams.
265
+
266
+ The IP address of the host that will act as the rendezvous (bootstrap) node for agent-based installations. This is optional for disconnected-iso image type and specifies which host will run the assisted service during the bootstrap phase. All other hosts will connect to this IP to coordinate the installation. # noqa: E501
267
+
268
+ :param rendezvous_ip: The rendezvous_ip of this InfraEnvCreateParams. # noqa: E501
269
+ :type: str
270
+ """
271
+
272
+ self._rendezvous_ip = rendezvous_ip
273
+
246
274
  @property
247
275
  def image_type(self):
248
276
  """Gets the image_type of this InfraEnvCreateParams. # noqa: E501
@@ -36,6 +36,7 @@ class InfraEnvUpdateParams(object):
36
36
  'ssh_authorized_key': 'str',
37
37
  'pull_secret': 'str',
38
38
  'static_network_config': 'list[HostStaticNetworkConfig]',
39
+ 'rendezvous_ip': 'str',
39
40
  'image_type': 'ImageType',
40
41
  'ignition_config_override': 'str',
41
42
  'kernel_arguments': 'KernelArguments',
@@ -49,6 +50,7 @@ class InfraEnvUpdateParams(object):
49
50
  'ssh_authorized_key': 'ssh_authorized_key',
50
51
  'pull_secret': 'pull_secret',
51
52
  'static_network_config': 'static_network_config',
53
+ 'rendezvous_ip': 'rendezvous_ip',
52
54
  'image_type': 'image_type',
53
55
  'ignition_config_override': 'ignition_config_override',
54
56
  'kernel_arguments': 'kernel_arguments',
@@ -56,7 +58,7 @@ class InfraEnvUpdateParams(object):
56
58
  'openshift_version': 'openshift_version'
57
59
  }
58
60
 
59
- def __init__(self, proxy=None, additional_ntp_sources=None, ssh_authorized_key=None, pull_secret=None, static_network_config=None, image_type=None, ignition_config_override=None, kernel_arguments=None, additional_trust_bundle=None, openshift_version=None): # noqa: E501
61
+ def __init__(self, proxy=None, additional_ntp_sources=None, ssh_authorized_key=None, pull_secret=None, static_network_config=None, rendezvous_ip=None, image_type=None, ignition_config_override=None, kernel_arguments=None, additional_trust_bundle=None, openshift_version=None): # noqa: E501
60
62
  """InfraEnvUpdateParams - a model defined in Swagger""" # noqa: E501
61
63
 
62
64
  self._proxy = None
@@ -64,6 +66,7 @@ class InfraEnvUpdateParams(object):
64
66
  self._ssh_authorized_key = None
65
67
  self._pull_secret = None
66
68
  self._static_network_config = None
69
+ self._rendezvous_ip = None
67
70
  self._image_type = None
68
71
  self._ignition_config_override = None
69
72
  self._kernel_arguments = None
@@ -81,6 +84,8 @@ class InfraEnvUpdateParams(object):
81
84
  self.pull_secret = pull_secret
82
85
  if static_network_config is not None:
83
86
  self.static_network_config = static_network_config
87
+ if rendezvous_ip is not None:
88
+ self.rendezvous_ip = rendezvous_ip
84
89
  if image_type is not None:
85
90
  self.image_type = image_type
86
91
  if ignition_config_override is not None:
@@ -203,6 +208,29 @@ class InfraEnvUpdateParams(object):
203
208
 
204
209
  self._static_network_config = static_network_config
205
210
 
211
+ @property
212
+ def rendezvous_ip(self):
213
+ """Gets the rendezvous_ip of this InfraEnvUpdateParams. # noqa: E501
214
+
215
+ The IP address of the host that will act as the rendezvous (bootstrap) node for agent-based installations. This is optional for disconnected-iso image type and specifies which host will run the assisted service during the bootstrap phase. All other hosts will connect to this IP to coordinate the installation. # noqa: E501
216
+
217
+ :return: The rendezvous_ip of this InfraEnvUpdateParams. # noqa: E501
218
+ :rtype: str
219
+ """
220
+ return self._rendezvous_ip
221
+
222
+ @rendezvous_ip.setter
223
+ def rendezvous_ip(self, rendezvous_ip):
224
+ """Sets the rendezvous_ip of this InfraEnvUpdateParams.
225
+
226
+ The IP address of the host that will act as the rendezvous (bootstrap) node for agent-based installations. This is optional for disconnected-iso image type and specifies which host will run the assisted service during the bootstrap phase. All other hosts will connect to this IP to coordinate the installation. # noqa: E501
227
+
228
+ :param rendezvous_ip: The rendezvous_ip of this InfraEnvUpdateParams. # noqa: E501
229
+ :type: str
230
+ """
231
+
232
+ self._rendezvous_ip = rendezvous_ip
233
+
206
234
  @property
207
235
  def image_type(self):
208
236
  """Gets the image_type of this InfraEnvUpdateParams. # noqa: E501
@@ -31,44 +31,68 @@ class InlineResponse2001(object):
31
31
  and the value is json key in definition.
32
32
  """
33
33
  swagger_types = {
34
- 'architectures': 'SupportLevels'
34
+ 'features': 'list[Feature]',
35
+ 'operators': 'list[Operator]'
35
36
  }
36
37
 
37
38
  attribute_map = {
38
- 'architectures': 'architectures'
39
+ 'features': 'features',
40
+ 'operators': 'operators'
39
41
  }
40
42
 
41
- def __init__(self, architectures=None): # noqa: E501
43
+ def __init__(self, features=None, operators=None): # noqa: E501
42
44
  """InlineResponse2001 - a model defined in Swagger""" # noqa: E501
43
45
 
44
- self._architectures = None
46
+ self._features = None
47
+ self._operators = None
45
48
  self.discriminator = None
46
49
 
47
- if architectures is not None:
48
- self.architectures = architectures
50
+ if features is not None:
51
+ self.features = features
52
+ if operators is not None:
53
+ self.operators = operators
49
54
 
50
55
  @property
51
- def architectures(self):
52
- """Gets the architectures of this InlineResponse2001. # noqa: E501
56
+ def features(self):
57
+ """Gets the features of this InlineResponse2001. # noqa: E501
53
58
 
54
- Keys will be one of architecture-support-level-id enum. # noqa: E501
55
59
 
56
- :return: The architectures of this InlineResponse2001. # noqa: E501
57
- :rtype: SupportLevels
60
+ :return: The features of this InlineResponse2001. # noqa: E501
61
+ :rtype: list[Feature]
58
62
  """
59
- return self._architectures
63
+ return self._features
60
64
 
61
- @architectures.setter
62
- def architectures(self, architectures):
63
- """Sets the architectures of this InlineResponse2001.
65
+ @features.setter
66
+ def features(self, features):
67
+ """Sets the features of this InlineResponse2001.
64
68
 
65
- Keys will be one of architecture-support-level-id enum. # noqa: E501
66
69
 
67
- :param architectures: The architectures of this InlineResponse2001. # noqa: E501
68
- :type: SupportLevels
70
+ :param features: The features of this InlineResponse2001. # noqa: E501
71
+ :type: list[Feature]
69
72
  """
70
73
 
71
- self._architectures = architectures
74
+ self._features = features
75
+
76
+ @property
77
+ def operators(self):
78
+ """Gets the operators of this InlineResponse2001. # noqa: E501
79
+
80
+
81
+ :return: The operators of this InlineResponse2001. # noqa: E501
82
+ :rtype: list[Operator]
83
+ """
84
+ return self._operators
85
+
86
+ @operators.setter
87
+ def operators(self, operators):
88
+ """Sets the operators of this InlineResponse2001.
89
+
90
+
91
+ :param operators: The operators of this InlineResponse2001. # noqa: E501
92
+ :type: list[Operator]
93
+ """
94
+
95
+ self._operators = operators
72
96
 
73
97
  def to_dict(self):
74
98
  """Returns the model properties as a dict"""
@@ -0,0 +1,117 @@
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 InlineResponse2002(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
+ 'architectures': 'SupportLevels'
35
+ }
36
+
37
+ attribute_map = {
38
+ 'architectures': 'architectures'
39
+ }
40
+
41
+ def __init__(self, architectures=None): # noqa: E501
42
+ """InlineResponse2002 - a model defined in Swagger""" # noqa: E501
43
+
44
+ self._architectures = None
45
+ self.discriminator = None
46
+
47
+ if architectures is not None:
48
+ self.architectures = architectures
49
+
50
+ @property
51
+ def architectures(self):
52
+ """Gets the architectures of this InlineResponse2002. # noqa: E501
53
+
54
+ Keys will be one of architecture-support-level-id enum. # noqa: E501
55
+
56
+ :return: The architectures of this InlineResponse2002. # noqa: E501
57
+ :rtype: SupportLevels
58
+ """
59
+ return self._architectures
60
+
61
+ @architectures.setter
62
+ def architectures(self, architectures):
63
+ """Sets the architectures of this InlineResponse2002.
64
+
65
+ Keys will be one of architecture-support-level-id enum. # noqa: E501
66
+
67
+ :param architectures: The architectures of this InlineResponse2002. # noqa: E501
68
+ :type: SupportLevels
69
+ """
70
+
71
+ self._architectures = architectures
72
+
73
+ def to_dict(self):
74
+ """Returns the model properties as a dict"""
75
+ result = {}
76
+
77
+ for attr, _ in six.iteritems(self.swagger_types):
78
+ value = getattr(self, attr)
79
+ if isinstance(value, list):
80
+ result[attr] = list(map(
81
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
82
+ value
83
+ ))
84
+ elif hasattr(value, "to_dict"):
85
+ result[attr] = value.to_dict()
86
+ elif isinstance(value, dict):
87
+ result[attr] = dict(map(
88
+ lambda item: (item[0], item[1].to_dict())
89
+ if hasattr(item[1], "to_dict") else item,
90
+ value.items()
91
+ ))
92
+ else:
93
+ result[attr] = value
94
+ if issubclass(InlineResponse2002, dict):
95
+ for key, value in self.items():
96
+ result[key] = value
97
+
98
+ return result
99
+
100
+ def to_str(self):
101
+ """Returns the string representation of the model"""
102
+ return pprint.pformat(self.to_dict())
103
+
104
+ def __repr__(self):
105
+ """For `print` and `pprint`"""
106
+ return self.to_str()
107
+
108
+ def __eq__(self, other):
109
+ """Returns true if both objects are equal"""
110
+ if not isinstance(other, InlineResponse2002):
111
+ return False
112
+
113
+ return self.__dict__ == other.__dict__
114
+
115
+ def __ne__(self, other):
116
+ """Returns true if both objects are not equal"""
117
+ return not self == other