assisted-service-client 2.31.0.post16__py3-none-any.whl → 2.37.0.post25__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 +4 -0
- assisted_service_client/api/events_api.py +1 -1
- assisted_service_client/api/installer_api.py +3 -3
- assisted_service_client/configuration.py +7 -0
- assisted_service_client/models/__init__.py +4 -0
- assisted_service_client/models/boot.py +29 -3
- assisted_service_client/models/cluster.py +57 -3
- assisted_service_client/models/cluster_create_params.py +59 -5
- assisted_service_client/models/cluster_validation_id.py +9 -0
- assisted_service_client/models/connectivity_remote_host.py +29 -3
- assisted_service_client/models/disk.py +55 -3
- assisted_service_client/models/domain_resolution_response_resolutions.py +31 -3
- assisted_service_client/models/feature_support_level_id.py +11 -0
- assisted_service_client/models/finalizing_stage.py +1 -0
- assisted_service_client/models/host_validation_id.py +11 -0
- assisted_service_client/models/infra_env_update_params.py +31 -3
- assisted_service_client/models/install_cmd_request.py +31 -3
- assisted_service_client/models/iscsi.py +117 -0
- assisted_service_client/models/load_balancer.py +123 -0
- assisted_service_client/models/manifest.py +37 -3
- assisted_service_client/models/mtu_report.py +167 -0
- assisted_service_client/models/secure_boot_state.py +95 -0
- assisted_service_client/models/v2_cluster_update_params.py +57 -3
- {assisted_service_client-2.31.0.post16.dist-info → assisted_service_client-2.37.0.post25.dist-info}/METADATA +15 -4
- {assisted_service_client-2.31.0.post16.dist-info → assisted_service_client-2.37.0.post25.dist-info}/RECORD +31 -23
- test/test_iscsi.py +40 -0
- test/test_load_balancer.py +40 -0
- test/test_mtu_report.py +40 -0
- test/test_secure_boot_state.py +40 -0
- {assisted_service_client-2.31.0.post16.dist-info → assisted_service_client-2.37.0.post25.dist-info}/WHEEL +0 -0
- {assisted_service_client-2.31.0.post16.dist-info → assisted_service_client-2.37.0.post25.dist-info}/top_level.txt +0 -0
@@ -35,6 +35,8 @@ class FeatureSupportLevelId(object):
|
|
35
35
|
LSO = "LSO"
|
36
36
|
CNV = "CNV"
|
37
37
|
MCE = "MCE"
|
38
|
+
MTV = "MTV"
|
39
|
+
OSC = "OSC"
|
38
40
|
NUTANIX_INTEGRATION = "NUTANIX_INTEGRATION"
|
39
41
|
BAREMETAL_PLATFORM = "BAREMETAL_PLATFORM"
|
40
42
|
NONE_PLATFORM = "NONE_PLATFORM"
|
@@ -51,6 +53,15 @@ class FeatureSupportLevelId(object):
|
|
51
53
|
EXTERNAL_PLATFORM = "EXTERNAL_PLATFORM"
|
52
54
|
OVN_NETWORK_TYPE = "OVN_NETWORK_TYPE"
|
53
55
|
SDN_NETWORK_TYPE = "SDN_NETWORK_TYPE"
|
56
|
+
NODE_FEATURE_DISCOVERY = "NODE_FEATURE_DISCOVERY"
|
57
|
+
NVIDIA_GPU = "NVIDIA_GPU"
|
58
|
+
PIPELINES = "PIPELINES"
|
59
|
+
SERVICEMESH = "SERVICEMESH"
|
60
|
+
SERVERLESS = "SERVERLESS"
|
61
|
+
OPENSHIFT_AI = "OPENSHIFT_AI"
|
62
|
+
NON_STANDARD_HA_CONTROL_PLANE = "NON_STANDARD_HA_CONTROL_PLANE"
|
63
|
+
AUTHORINO = "AUTHORINO"
|
64
|
+
USER_MANAGED_LOAD_BALANCER = "USER_MANAGED_LOAD_BALANCER"
|
54
65
|
|
55
66
|
"""
|
56
67
|
Attributes:
|
@@ -31,6 +31,7 @@ class FinalizingStage(object):
|
|
31
31
|
APPLYING_OLM_MANIFESTS = "Applying olm manifests"
|
32
32
|
WAITING_FOR_OLM_OPERATORS_CSV_INITIALIZATION = "Waiting for olm operators csv initialization"
|
33
33
|
WAITING_FOR_OLM_OPERATORS_CSV = "Waiting for olm operators csv"
|
34
|
+
WAITING_FOR_OLM_OPERATOR_SETUP_JOBS = "Waiting for OLM operator setup jobs"
|
34
35
|
DONE = "Done"
|
35
36
|
|
36
37
|
"""
|
@@ -49,6 +49,8 @@ class HostValidationId(object):
|
|
49
49
|
ODF_REQUIREMENTS_SATISFIED = "odf-requirements-satisfied"
|
50
50
|
LVM_REQUIREMENTS_SATISFIED = "lvm-requirements-satisfied"
|
51
51
|
MCE_REQUIREMENTS_SATISFIED = "mce-requirements-satisfied"
|
52
|
+
MTV_REQUIREMENTS_SATISFIED = "mtv-requirements-satisfied"
|
53
|
+
OSC_REQUIREMENTS_SATISFIED = "osc-requirements-satisfied"
|
52
54
|
SUFFICIENT_INSTALLATION_DISK_SPEED = "sufficient-installation-disk-speed"
|
53
55
|
CNV_REQUIREMENTS_SATISFIED = "cnv-requirements-satisfied"
|
54
56
|
SUFFICIENT_NETWORK_LATENCY_REQUIREMENT_FOR_ROLE = "sufficient-network-latency-requirement-for-role"
|
@@ -67,6 +69,15 @@ class HostValidationId(object):
|
|
67
69
|
NO_SKIP_INSTALLATION_DISK = "no-skip-installation-disk"
|
68
70
|
NO_SKIP_MISSING_DISK = "no-skip-missing-disk"
|
69
71
|
NO_IP_COLLISIONS_IN_NETWORK = "no-ip-collisions-in-network"
|
72
|
+
NO_ISCSI_NIC_BELONGS_TO_MACHINE_CIDR = "no-iscsi-nic-belongs-to-machine-cidr"
|
73
|
+
NODE_FEATURE_DISCOVERY_REQUIREMENTS_SATISFIED = "node-feature-discovery-requirements-satisfied"
|
74
|
+
NVIDIA_GPU_REQUIREMENTS_SATISFIED = "nvidia-gpu-requirements-satisfied"
|
75
|
+
PIPELINES_REQUIREMENTS_SATISFIED = "pipelines-requirements-satisfied"
|
76
|
+
SERVICEMESH_REQUIREMENTS_SATISFIED = "servicemesh-requirements-satisfied"
|
77
|
+
SERVERLESS_REQUIREMENTS_SATISFIED = "serverless-requirements-satisfied"
|
78
|
+
OPENSHIFT_AI_REQUIREMENTS_SATISFIED = "openshift-ai-requirements-satisfied"
|
79
|
+
AUTHORINO_REQUIREMENTS_SATISFIED = "authorino-requirements-satisfied"
|
80
|
+
MTU_VALID = "mtu-valid"
|
70
81
|
|
71
82
|
"""
|
72
83
|
Attributes:
|
@@ -39,7 +39,8 @@ class InfraEnvUpdateParams(object):
|
|
39
39
|
'image_type': 'ImageType',
|
40
40
|
'ignition_config_override': 'str',
|
41
41
|
'kernel_arguments': 'KernelArguments',
|
42
|
-
'additional_trust_bundle': 'str'
|
42
|
+
'additional_trust_bundle': 'str',
|
43
|
+
'openshift_version': 'str'
|
43
44
|
}
|
44
45
|
|
45
46
|
attribute_map = {
|
@@ -51,10 +52,11 @@ class InfraEnvUpdateParams(object):
|
|
51
52
|
'image_type': 'image_type',
|
52
53
|
'ignition_config_override': 'ignition_config_override',
|
53
54
|
'kernel_arguments': 'kernel_arguments',
|
54
|
-
'additional_trust_bundle': 'additional_trust_bundle'
|
55
|
+
'additional_trust_bundle': 'additional_trust_bundle',
|
56
|
+
'openshift_version': 'openshift_version'
|
55
57
|
}
|
56
58
|
|
57
|
-
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): # noqa: E501
|
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
|
58
60
|
"""InfraEnvUpdateParams - a model defined in Swagger""" # noqa: E501
|
59
61
|
|
60
62
|
self._proxy = None
|
@@ -66,6 +68,7 @@ class InfraEnvUpdateParams(object):
|
|
66
68
|
self._ignition_config_override = None
|
67
69
|
self._kernel_arguments = None
|
68
70
|
self._additional_trust_bundle = None
|
71
|
+
self._openshift_version = None
|
69
72
|
self.discriminator = None
|
70
73
|
|
71
74
|
if proxy is not None:
|
@@ -86,6 +89,8 @@ class InfraEnvUpdateParams(object):
|
|
86
89
|
self.kernel_arguments = kernel_arguments
|
87
90
|
if additional_trust_bundle is not None:
|
88
91
|
self.additional_trust_bundle = additional_trust_bundle
|
92
|
+
if openshift_version is not None:
|
93
|
+
self.openshift_version = openshift_version
|
89
94
|
|
90
95
|
@property
|
91
96
|
def proxy(self):
|
@@ -288,6 +293,29 @@ class InfraEnvUpdateParams(object):
|
|
288
293
|
|
289
294
|
self._additional_trust_bundle = additional_trust_bundle
|
290
295
|
|
296
|
+
@property
|
297
|
+
def openshift_version(self):
|
298
|
+
"""Gets the openshift_version of this InfraEnvUpdateParams. # noqa: E501
|
299
|
+
|
300
|
+
Version of the OS image # noqa: E501
|
301
|
+
|
302
|
+
:return: The openshift_version of this InfraEnvUpdateParams. # noqa: E501
|
303
|
+
:rtype: str
|
304
|
+
"""
|
305
|
+
return self._openshift_version
|
306
|
+
|
307
|
+
@openshift_version.setter
|
308
|
+
def openshift_version(self, openshift_version):
|
309
|
+
"""Sets the openshift_version of this InfraEnvUpdateParams.
|
310
|
+
|
311
|
+
Version of the OS image # noqa: E501
|
312
|
+
|
313
|
+
:param openshift_version: The openshift_version of this InfraEnvUpdateParams. # noqa: E501
|
314
|
+
:type: str
|
315
|
+
"""
|
316
|
+
|
317
|
+
self._openshift_version = openshift_version
|
318
|
+
|
291
319
|
def to_dict(self):
|
292
320
|
"""Returns the model properties as a dict"""
|
293
321
|
result = {}
|
@@ -48,7 +48,8 @@ class InstallCmdRequest(object):
|
|
48
48
|
'service_ips': 'list[str]',
|
49
49
|
'installer_args': 'str',
|
50
50
|
'skip_installation_disk_cleanup': 'bool',
|
51
|
-
'enable_skip_mco_reboot': 'bool'
|
51
|
+
'enable_skip_mco_reboot': 'bool',
|
52
|
+
'notify_num_reboots': 'bool'
|
52
53
|
}
|
53
54
|
|
54
55
|
attribute_map = {
|
@@ -69,10 +70,11 @@ class InstallCmdRequest(object):
|
|
69
70
|
'service_ips': 'service_ips',
|
70
71
|
'installer_args': 'installer_args',
|
71
72
|
'skip_installation_disk_cleanup': 'skip_installation_disk_cleanup',
|
72
|
-
'enable_skip_mco_reboot': 'enable_skip_mco_reboot'
|
73
|
+
'enable_skip_mco_reboot': 'enable_skip_mco_reboot',
|
74
|
+
'notify_num_reboots': 'notify_num_reboots'
|
73
75
|
}
|
74
76
|
|
75
|
-
def __init__(self, cluster_id=None, infra_env_id=None, host_id=None, role=None, boot_device=None, controller_image=None, installer_image=None, high_availability_mode='Full', proxy=None, check_cvo=True, disks_to_format=None, must_gather_image=None, mco_image=None, openshift_version=None, service_ips=None, installer_args=None, skip_installation_disk_cleanup=None, enable_skip_mco_reboot=None): # noqa: E501
|
77
|
+
def __init__(self, cluster_id=None, infra_env_id=None, host_id=None, role=None, boot_device=None, controller_image=None, installer_image=None, high_availability_mode='Full', proxy=None, check_cvo=True, disks_to_format=None, must_gather_image=None, mco_image=None, openshift_version=None, service_ips=None, installer_args=None, skip_installation_disk_cleanup=None, enable_skip_mco_reboot=None, notify_num_reboots=None): # noqa: E501
|
76
78
|
"""InstallCmdRequest - a model defined in Swagger""" # noqa: E501
|
77
79
|
|
78
80
|
self._cluster_id = None
|
@@ -93,6 +95,7 @@ class InstallCmdRequest(object):
|
|
93
95
|
self._installer_args = None
|
94
96
|
self._skip_installation_disk_cleanup = None
|
95
97
|
self._enable_skip_mco_reboot = None
|
98
|
+
self._notify_num_reboots = None
|
96
99
|
self.discriminator = None
|
97
100
|
|
98
101
|
self.cluster_id = cluster_id
|
@@ -124,6 +127,8 @@ class InstallCmdRequest(object):
|
|
124
127
|
self.skip_installation_disk_cleanup = skip_installation_disk_cleanup
|
125
128
|
if enable_skip_mco_reboot is not None:
|
126
129
|
self.enable_skip_mco_reboot = enable_skip_mco_reboot
|
130
|
+
if notify_num_reboots is not None:
|
131
|
+
self.notify_num_reboots = notify_num_reboots
|
127
132
|
|
128
133
|
@property
|
129
134
|
def cluster_id(self):
|
@@ -555,6 +560,29 @@ class InstallCmdRequest(object):
|
|
555
560
|
|
556
561
|
self._enable_skip_mco_reboot = enable_skip_mco_reboot
|
557
562
|
|
563
|
+
@property
|
564
|
+
def notify_num_reboots(self):
|
565
|
+
"""Gets the notify_num_reboots of this InstallCmdRequest. # noqa: E501
|
566
|
+
|
567
|
+
If true, notify number of reboots by assisted controller # noqa: E501
|
568
|
+
|
569
|
+
:return: The notify_num_reboots of this InstallCmdRequest. # noqa: E501
|
570
|
+
:rtype: bool
|
571
|
+
"""
|
572
|
+
return self._notify_num_reboots
|
573
|
+
|
574
|
+
@notify_num_reboots.setter
|
575
|
+
def notify_num_reboots(self, notify_num_reboots):
|
576
|
+
"""Sets the notify_num_reboots of this InstallCmdRequest.
|
577
|
+
|
578
|
+
If true, notify number of reboots by assisted controller # noqa: E501
|
579
|
+
|
580
|
+
:param notify_num_reboots: The notify_num_reboots of this InstallCmdRequest. # noqa: E501
|
581
|
+
:type: bool
|
582
|
+
"""
|
583
|
+
|
584
|
+
self._notify_num_reboots = notify_num_reboots
|
585
|
+
|
558
586
|
def to_dict(self):
|
559
587
|
"""Returns the model properties as a dict"""
|
560
588
|
result = {}
|
@@ -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 Iscsi(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
|
+
'host_ip_address': 'str'
|
35
|
+
}
|
36
|
+
|
37
|
+
attribute_map = {
|
38
|
+
'host_ip_address': 'host_ip_address'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, host_ip_address=None): # noqa: E501
|
42
|
+
"""Iscsi - a model defined in Swagger""" # noqa: E501
|
43
|
+
|
44
|
+
self._host_ip_address = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if host_ip_address is not None:
|
48
|
+
self.host_ip_address = host_ip_address
|
49
|
+
|
50
|
+
@property
|
51
|
+
def host_ip_address(self):
|
52
|
+
"""Gets the host_ip_address of this Iscsi. # noqa: E501
|
53
|
+
|
54
|
+
Host IP address used to reach iSCSI target # noqa: E501
|
55
|
+
|
56
|
+
:return: The host_ip_address of this Iscsi. # noqa: E501
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._host_ip_address
|
60
|
+
|
61
|
+
@host_ip_address.setter
|
62
|
+
def host_ip_address(self, host_ip_address):
|
63
|
+
"""Sets the host_ip_address of this Iscsi.
|
64
|
+
|
65
|
+
Host IP address used to reach iSCSI target # noqa: E501
|
66
|
+
|
67
|
+
:param host_ip_address: The host_ip_address of this Iscsi. # noqa: E501
|
68
|
+
:type: str
|
69
|
+
"""
|
70
|
+
|
71
|
+
self._host_ip_address = host_ip_address
|
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(Iscsi, 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, Iscsi):
|
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
|
@@ -0,0 +1,123 @@
|
|
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 LoadBalancer(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
|
+
'type': 'str'
|
35
|
+
}
|
36
|
+
|
37
|
+
attribute_map = {
|
38
|
+
'type': 'type'
|
39
|
+
}
|
40
|
+
|
41
|
+
def __init__(self, type=None): # noqa: E501
|
42
|
+
"""LoadBalancer - a model defined in Swagger""" # noqa: E501
|
43
|
+
|
44
|
+
self._type = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if type is not None:
|
48
|
+
self.type = type
|
49
|
+
|
50
|
+
@property
|
51
|
+
def type(self):
|
52
|
+
"""Gets the type of this LoadBalancer. # noqa: E501
|
53
|
+
|
54
|
+
Indicates if the load balancer will be managed by the cluster or by the user. This is optional and The default is `cluster-managed`. `cluster-managed` means that the cluster will start the components that assign the API and ingress VIPs to the nodes of the cluster automatically. `user-managed` means that the user is responsible for configuring an external load balancer and assign the API and ingress VIPs to it. Note that this configuration needs to be completed before starting the installation of the cluster, as it is needed during the installation process. # noqa: E501
|
55
|
+
|
56
|
+
:return: The type of this LoadBalancer. # noqa: E501
|
57
|
+
:rtype: str
|
58
|
+
"""
|
59
|
+
return self._type
|
60
|
+
|
61
|
+
@type.setter
|
62
|
+
def type(self, type):
|
63
|
+
"""Sets the type of this LoadBalancer.
|
64
|
+
|
65
|
+
Indicates if the load balancer will be managed by the cluster or by the user. This is optional and The default is `cluster-managed`. `cluster-managed` means that the cluster will start the components that assign the API and ingress VIPs to the nodes of the cluster automatically. `user-managed` means that the user is responsible for configuring an external load balancer and assign the API and ingress VIPs to it. Note that this configuration needs to be completed before starting the installation of the cluster, as it is needed during the installation process. # noqa: E501
|
66
|
+
|
67
|
+
:param type: The type of this LoadBalancer. # noqa: E501
|
68
|
+
:type: str
|
69
|
+
"""
|
70
|
+
allowed_values = ["cluster-managed", "user-managed"] # noqa: E501
|
71
|
+
if type not in allowed_values:
|
72
|
+
raise ValueError(
|
73
|
+
"Invalid value for `type` ({0}), must be one of {1}" # noqa: E501
|
74
|
+
.format(type, allowed_values)
|
75
|
+
)
|
76
|
+
|
77
|
+
self._type = type
|
78
|
+
|
79
|
+
def to_dict(self):
|
80
|
+
"""Returns the model properties as a dict"""
|
81
|
+
result = {}
|
82
|
+
|
83
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
84
|
+
value = getattr(self, attr)
|
85
|
+
if isinstance(value, list):
|
86
|
+
result[attr] = list(map(
|
87
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
88
|
+
value
|
89
|
+
))
|
90
|
+
elif hasattr(value, "to_dict"):
|
91
|
+
result[attr] = value.to_dict()
|
92
|
+
elif isinstance(value, dict):
|
93
|
+
result[attr] = dict(map(
|
94
|
+
lambda item: (item[0], item[1].to_dict())
|
95
|
+
if hasattr(item[1], "to_dict") else item,
|
96
|
+
value.items()
|
97
|
+
))
|
98
|
+
else:
|
99
|
+
result[attr] = value
|
100
|
+
if issubclass(LoadBalancer, dict):
|
101
|
+
for key, value in self.items():
|
102
|
+
result[key] = value
|
103
|
+
|
104
|
+
return result
|
105
|
+
|
106
|
+
def to_str(self):
|
107
|
+
"""Returns the string representation of the model"""
|
108
|
+
return pprint.pformat(self.to_dict())
|
109
|
+
|
110
|
+
def __repr__(self):
|
111
|
+
"""For `print` and `pprint`"""
|
112
|
+
return self.to_str()
|
113
|
+
|
114
|
+
def __eq__(self, other):
|
115
|
+
"""Returns true if both objects are equal"""
|
116
|
+
if not isinstance(other, LoadBalancer):
|
117
|
+
return False
|
118
|
+
|
119
|
+
return self.__dict__ == other.__dict__
|
120
|
+
|
121
|
+
def __ne__(self, other):
|
122
|
+
"""Returns true if both objects are not equal"""
|
123
|
+
return not self == other
|
@@ -32,25 +32,30 @@ class Manifest(object):
|
|
32
32
|
"""
|
33
33
|
swagger_types = {
|
34
34
|
'folder': 'str',
|
35
|
-
'file_name': 'str'
|
35
|
+
'file_name': 'str',
|
36
|
+
'manifest_source': 'str'
|
36
37
|
}
|
37
38
|
|
38
39
|
attribute_map = {
|
39
40
|
'folder': 'folder',
|
40
|
-
'file_name': 'file_name'
|
41
|
+
'file_name': 'file_name',
|
42
|
+
'manifest_source': 'manifest_source'
|
41
43
|
}
|
42
44
|
|
43
|
-
def __init__(self, folder=None, file_name=None): # noqa: E501
|
45
|
+
def __init__(self, folder=None, file_name=None, manifest_source=None): # noqa: E501
|
44
46
|
"""Manifest - a model defined in Swagger""" # noqa: E501
|
45
47
|
|
46
48
|
self._folder = None
|
47
49
|
self._file_name = None
|
50
|
+
self._manifest_source = None
|
48
51
|
self.discriminator = None
|
49
52
|
|
50
53
|
if folder is not None:
|
51
54
|
self.folder = folder
|
52
55
|
if file_name is not None:
|
53
56
|
self.file_name = file_name
|
57
|
+
if manifest_source is not None:
|
58
|
+
self.manifest_source = manifest_source
|
54
59
|
|
55
60
|
@property
|
56
61
|
def folder(self):
|
@@ -104,6 +109,35 @@ class Manifest(object):
|
|
104
109
|
|
105
110
|
self._file_name = file_name
|
106
111
|
|
112
|
+
@property
|
113
|
+
def manifest_source(self):
|
114
|
+
"""Gets the manifest_source of this Manifest. # noqa: E501
|
115
|
+
|
116
|
+
Describes whether manifest is sourced from a user or created by the system. # noqa: E501
|
117
|
+
|
118
|
+
:return: The manifest_source of this Manifest. # noqa: E501
|
119
|
+
:rtype: str
|
120
|
+
"""
|
121
|
+
return self._manifest_source
|
122
|
+
|
123
|
+
@manifest_source.setter
|
124
|
+
def manifest_source(self, manifest_source):
|
125
|
+
"""Sets the manifest_source of this Manifest.
|
126
|
+
|
127
|
+
Describes whether manifest is sourced from a user or created by the system. # noqa: E501
|
128
|
+
|
129
|
+
:param manifest_source: The manifest_source of this Manifest. # noqa: E501
|
130
|
+
:type: str
|
131
|
+
"""
|
132
|
+
allowed_values = ["user", "system"] # noqa: E501
|
133
|
+
if manifest_source not in allowed_values:
|
134
|
+
raise ValueError(
|
135
|
+
"Invalid value for `manifest_source` ({0}), must be one of {1}" # noqa: E501
|
136
|
+
.format(manifest_source, allowed_values)
|
137
|
+
)
|
138
|
+
|
139
|
+
self._manifest_source = manifest_source
|
140
|
+
|
107
141
|
def to_dict(self):
|
108
142
|
"""Returns the model properties as a dict"""
|
109
143
|
result = {}
|
@@ -0,0 +1,167 @@
|
|
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 MtuReport(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
|
+
'outgoing_nic': 'str',
|
35
|
+
'remote_ip_address': 'str',
|
36
|
+
'mtu_successful': 'bool'
|
37
|
+
}
|
38
|
+
|
39
|
+
attribute_map = {
|
40
|
+
'outgoing_nic': 'outgoing_nic',
|
41
|
+
'remote_ip_address': 'remote_ip_address',
|
42
|
+
'mtu_successful': 'mtu_successful'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, outgoing_nic=None, remote_ip_address=None, mtu_successful=None): # noqa: E501
|
46
|
+
"""MtuReport - a model defined in Swagger""" # noqa: E501
|
47
|
+
|
48
|
+
self._outgoing_nic = None
|
49
|
+
self._remote_ip_address = None
|
50
|
+
self._mtu_successful = None
|
51
|
+
self.discriminator = None
|
52
|
+
|
53
|
+
if outgoing_nic is not None:
|
54
|
+
self.outgoing_nic = outgoing_nic
|
55
|
+
if remote_ip_address is not None:
|
56
|
+
self.remote_ip_address = remote_ip_address
|
57
|
+
if mtu_successful is not None:
|
58
|
+
self.mtu_successful = mtu_successful
|
59
|
+
|
60
|
+
@property
|
61
|
+
def outgoing_nic(self):
|
62
|
+
"""Gets the outgoing_nic of this MtuReport. # noqa: E501
|
63
|
+
|
64
|
+
|
65
|
+
:return: The outgoing_nic of this MtuReport. # noqa: E501
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._outgoing_nic
|
69
|
+
|
70
|
+
@outgoing_nic.setter
|
71
|
+
def outgoing_nic(self, outgoing_nic):
|
72
|
+
"""Sets the outgoing_nic of this MtuReport.
|
73
|
+
|
74
|
+
|
75
|
+
:param outgoing_nic: The outgoing_nic of this MtuReport. # noqa: E501
|
76
|
+
:type: str
|
77
|
+
"""
|
78
|
+
|
79
|
+
self._outgoing_nic = outgoing_nic
|
80
|
+
|
81
|
+
@property
|
82
|
+
def remote_ip_address(self):
|
83
|
+
"""Gets the remote_ip_address of this MtuReport. # noqa: E501
|
84
|
+
|
85
|
+
|
86
|
+
:return: The remote_ip_address of this MtuReport. # noqa: E501
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._remote_ip_address
|
90
|
+
|
91
|
+
@remote_ip_address.setter
|
92
|
+
def remote_ip_address(self, remote_ip_address):
|
93
|
+
"""Sets the remote_ip_address of this MtuReport.
|
94
|
+
|
95
|
+
|
96
|
+
:param remote_ip_address: The remote_ip_address of this MtuReport. # noqa: E501
|
97
|
+
:type: str
|
98
|
+
"""
|
99
|
+
|
100
|
+
self._remote_ip_address = remote_ip_address
|
101
|
+
|
102
|
+
@property
|
103
|
+
def mtu_successful(self):
|
104
|
+
"""Gets the mtu_successful of this MtuReport. # noqa: E501
|
105
|
+
|
106
|
+
|
107
|
+
:return: The mtu_successful of this MtuReport. # noqa: E501
|
108
|
+
:rtype: bool
|
109
|
+
"""
|
110
|
+
return self._mtu_successful
|
111
|
+
|
112
|
+
@mtu_successful.setter
|
113
|
+
def mtu_successful(self, mtu_successful):
|
114
|
+
"""Sets the mtu_successful of this MtuReport.
|
115
|
+
|
116
|
+
|
117
|
+
:param mtu_successful: The mtu_successful of this MtuReport. # noqa: E501
|
118
|
+
:type: bool
|
119
|
+
"""
|
120
|
+
|
121
|
+
self._mtu_successful = mtu_successful
|
122
|
+
|
123
|
+
def to_dict(self):
|
124
|
+
"""Returns the model properties as a dict"""
|
125
|
+
result = {}
|
126
|
+
|
127
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
128
|
+
value = getattr(self, attr)
|
129
|
+
if isinstance(value, list):
|
130
|
+
result[attr] = list(map(
|
131
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
132
|
+
value
|
133
|
+
))
|
134
|
+
elif hasattr(value, "to_dict"):
|
135
|
+
result[attr] = value.to_dict()
|
136
|
+
elif isinstance(value, dict):
|
137
|
+
result[attr] = dict(map(
|
138
|
+
lambda item: (item[0], item[1].to_dict())
|
139
|
+
if hasattr(item[1], "to_dict") else item,
|
140
|
+
value.items()
|
141
|
+
))
|
142
|
+
else:
|
143
|
+
result[attr] = value
|
144
|
+
if issubclass(MtuReport, dict):
|
145
|
+
for key, value in self.items():
|
146
|
+
result[key] = value
|
147
|
+
|
148
|
+
return result
|
149
|
+
|
150
|
+
def to_str(self):
|
151
|
+
"""Returns the string representation of the model"""
|
152
|
+
return pprint.pformat(self.to_dict())
|
153
|
+
|
154
|
+
def __repr__(self):
|
155
|
+
"""For `print` and `pprint`"""
|
156
|
+
return self.to_str()
|
157
|
+
|
158
|
+
def __eq__(self, other):
|
159
|
+
"""Returns true if both objects are equal"""
|
160
|
+
if not isinstance(other, MtuReport):
|
161
|
+
return False
|
162
|
+
|
163
|
+
return self.__dict__ == other.__dict__
|
164
|
+
|
165
|
+
def __ne__(self, other):
|
166
|
+
"""Returns true if both objects are not equal"""
|
167
|
+
return not self == other
|