File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/os_management_hub/models/system_details.py
Back
# coding: utf-8 # Copyright (c) 2016, 2026, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. # NOTE: This class is auto generated by OracleSDKGenerator. DO NOT EDIT. API Version: 20220901 from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 from oci.decorators import init_model_state_from_kwargs @init_model_state_from_kwargs class SystemDetails(object): """ Provides information about the system architecture and operating system. """ #: A constant which can be used with the architecture property of a SystemDetails. #: This constant has a value of "X86_64" ARCHITECTURE_X86_64 = "X86_64" #: A constant which can be used with the architecture property of a SystemDetails. #: This constant has a value of "AARCH64" ARCHITECTURE_AARCH64 = "AARCH64" #: A constant which can be used with the architecture property of a SystemDetails. #: This constant has a value of "I686" ARCHITECTURE_I686 = "I686" #: A constant which can be used with the architecture property of a SystemDetails. #: This constant has a value of "NOARCH" ARCHITECTURE_NOARCH = "NOARCH" #: A constant which can be used with the architecture property of a SystemDetails. #: This constant has a value of "SRC" ARCHITECTURE_SRC = "SRC" #: A constant which can be used with the architecture property of a SystemDetails. #: This constant has a value of "I386" ARCHITECTURE_I386 = "I386" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "ORACLE_LINUX_9" OS_FAMILY_ORACLE_LINUX_9 = "ORACLE_LINUX_9" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "ORACLE_LINUX_8" OS_FAMILY_ORACLE_LINUX_8 = "ORACLE_LINUX_8" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "ORACLE_LINUX_7" OS_FAMILY_ORACLE_LINUX_7 = "ORACLE_LINUX_7" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "ORACLE_LINUX_6" OS_FAMILY_ORACLE_LINUX_6 = "ORACLE_LINUX_6" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "WINDOWS_SERVER_2016" OS_FAMILY_WINDOWS_SERVER_2016 = "WINDOWS_SERVER_2016" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "WINDOWS_SERVER_2019" OS_FAMILY_WINDOWS_SERVER_2019 = "WINDOWS_SERVER_2019" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "WINDOWS_SERVER_2022" OS_FAMILY_WINDOWS_SERVER_2022 = "WINDOWS_SERVER_2022" #: A constant which can be used with the os_family property of a SystemDetails. #: This constant has a value of "ALL" OS_FAMILY_ALL = "ALL" def __init__(self, **kwargs): """ Initializes a new SystemDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param architecture: The value to assign to the architecture property of this SystemDetails. Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC", "I386", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type architecture: str :param ksplice_effective_kernel_version: The value to assign to the ksplice_effective_kernel_version property of this SystemDetails. :type ksplice_effective_kernel_version: str :param os_family: The value to assign to the os_family property of this SystemDetails. Allowed values for this property are: "ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7", "ORACLE_LINUX_6", "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type os_family: str :param os_name: The value to assign to the os_name property of this SystemDetails. :type os_name: str :param os_kernel_release: The value to assign to the os_kernel_release property of this SystemDetails. :type os_kernel_release: str :param os_kernel_version: The value to assign to the os_kernel_version property of this SystemDetails. :type os_kernel_version: str :param os_system_version: The value to assign to the os_system_version property of this SystemDetails. :type os_system_version: str """ self.swagger_types = { 'architecture': 'str', 'ksplice_effective_kernel_version': 'str', 'os_family': 'str', 'os_name': 'str', 'os_kernel_release': 'str', 'os_kernel_version': 'str', 'os_system_version': 'str' } self.attribute_map = { 'architecture': 'architecture', 'ksplice_effective_kernel_version': 'kspliceEffectiveKernelVersion', 'os_family': 'osFamily', 'os_name': 'osName', 'os_kernel_release': 'osKernelRelease', 'os_kernel_version': 'osKernelVersion', 'os_system_version': 'osSystemVersion' } self._architecture = None self._ksplice_effective_kernel_version = None self._os_family = None self._os_name = None self._os_kernel_release = None self._os_kernel_version = None self._os_system_version = None @property def architecture(self): """ **[Required]** Gets the architecture of this SystemDetails. Architecture type. Allowed values for this property are: "X86_64", "AARCH64", "I686", "NOARCH", "SRC", "I386", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The architecture of this SystemDetails. :rtype: str """ return self._architecture @architecture.setter def architecture(self, architecture): """ Sets the architecture of this SystemDetails. Architecture type. :param architecture: The architecture of this SystemDetails. :type: str """ allowed_values = ["X86_64", "AARCH64", "I686", "NOARCH", "SRC", "I386"] if not value_allowed_none_or_none_sentinel(architecture, allowed_values): architecture = 'UNKNOWN_ENUM_VALUE' self._architecture = architecture @property def ksplice_effective_kernel_version(self): """ Gets the ksplice_effective_kernel_version of this SystemDetails. Version of the Ksplice effective kernel. :return: The ksplice_effective_kernel_version of this SystemDetails. :rtype: str """ return self._ksplice_effective_kernel_version @ksplice_effective_kernel_version.setter def ksplice_effective_kernel_version(self, ksplice_effective_kernel_version): """ Sets the ksplice_effective_kernel_version of this SystemDetails. Version of the Ksplice effective kernel. :param ksplice_effective_kernel_version: The ksplice_effective_kernel_version of this SystemDetails. :type: str """ self._ksplice_effective_kernel_version = ksplice_effective_kernel_version @property def os_family(self): """ **[Required]** Gets the os_family of this SystemDetails. Operating system type. Allowed values for this property are: "ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7", "ORACLE_LINUX_6", "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "ALL", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The os_family of this SystemDetails. :rtype: str """ return self._os_family @os_family.setter def os_family(self, os_family): """ Sets the os_family of this SystemDetails. Operating system type. :param os_family: The os_family of this SystemDetails. :type: str """ allowed_values = ["ORACLE_LINUX_9", "ORACLE_LINUX_8", "ORACLE_LINUX_7", "ORACLE_LINUX_6", "WINDOWS_SERVER_2016", "WINDOWS_SERVER_2019", "WINDOWS_SERVER_2022", "ALL"] if not value_allowed_none_or_none_sentinel(os_family, allowed_values): os_family = 'UNKNOWN_ENUM_VALUE' self._os_family = os_family @property def os_name(self): """ **[Required]** Gets the os_name of this SystemDetails. Name of the operating system. :return: The os_name of this SystemDetails. :rtype: str """ return self._os_name @os_name.setter def os_name(self, os_name): """ Sets the os_name of this SystemDetails. Name of the operating system. :param os_name: The os_name of this SystemDetails. :type: str """ self._os_name = os_name @property def os_kernel_release(self): """ Gets the os_kernel_release of this SystemDetails. Release of the kernel. :return: The os_kernel_release of this SystemDetails. :rtype: str """ return self._os_kernel_release @os_kernel_release.setter def os_kernel_release(self, os_kernel_release): """ Sets the os_kernel_release of this SystemDetails. Release of the kernel. :param os_kernel_release: The os_kernel_release of this SystemDetails. :type: str """ self._os_kernel_release = os_kernel_release @property def os_kernel_version(self): """ Gets the os_kernel_version of this SystemDetails. Version of the kernel. :return: The os_kernel_version of this SystemDetails. :rtype: str """ return self._os_kernel_version @os_kernel_version.setter def os_kernel_version(self, os_kernel_version): """ Sets the os_kernel_version of this SystemDetails. Version of the kernel. :param os_kernel_version: The os_kernel_version of this SystemDetails. :type: str """ self._os_kernel_version = os_kernel_version @property def os_system_version(self): """ **[Required]** Gets the os_system_version of this SystemDetails. Version of the operating system. :return: The os_system_version of this SystemDetails. :rtype: str """ return self._os_system_version @os_system_version.setter def os_system_version(self, os_system_version): """ Sets the os_system_version of this SystemDetails. Version of the operating system. :param os_system_version: The os_system_version of this SystemDetails. :type: str """ self._os_system_version = os_system_version def __repr__(self): return formatted_flat_dict(self) def __eq__(self, other): if other is None: return False return self.__dict__ == other.__dict__ def __ne__(self, other): return not self == other
| ver. 1.4 |
Github
|
.
| PHP 8.2.32 | Generation time: 0.06 |
proxy
|
phpinfo
|
Settings