ruạṛ
# coding: utf-8 # Copyright (c) 2016, 2024, 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: 20210610 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 JavaFamily(object): """ Metadata associated with a specific Java release family. A Java release family is typically a major version in the Java version identifier. """ #: A constant which can be used with the support_type property of a JavaFamily. #: This constant has a value of "LTS" SUPPORT_TYPE_LTS = "LTS" #: A constant which can be used with the support_type property of a JavaFamily. #: This constant has a value of "NON_LTS" SUPPORT_TYPE_NON_LTS = "NON_LTS" def __init__(self, **kwargs): """ Initializes a new JavaFamily object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param latest_release_artifacts: The value to assign to the latest_release_artifacts property of this JavaFamily. :type latest_release_artifacts: list[oci.jms.models.JavaArtifact] :param family_version: The value to assign to the family_version property of this JavaFamily. :type family_version: str :param display_name: The value to assign to the display_name property of this JavaFamily. :type display_name: str :param support_type: The value to assign to the support_type property of this JavaFamily. Allowed values for this property are: "LTS", "NON_LTS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :type support_type: str :param end_of_support_life_date: The value to assign to the end_of_support_life_date property of this JavaFamily. :type end_of_support_life_date: datetime :param doc_url: The value to assign to the doc_url property of this JavaFamily. :type doc_url: str :param latest_release_version: The value to assign to the latest_release_version property of this JavaFamily. :type latest_release_version: str :param is_supported_version: The value to assign to the is_supported_version property of this JavaFamily. :type is_supported_version: bool :param release_date: The value to assign to the release_date property of this JavaFamily. :type release_date: datetime """ self.swagger_types = { 'latest_release_artifacts': 'list[JavaArtifact]', 'family_version': 'str', 'display_name': 'str', 'support_type': 'str', 'end_of_support_life_date': 'datetime', 'doc_url': 'str', 'latest_release_version': 'str', 'is_supported_version': 'bool', 'release_date': 'datetime' } self.attribute_map = { 'latest_release_artifacts': 'latestReleaseArtifacts', 'family_version': 'familyVersion', 'display_name': 'displayName', 'support_type': 'supportType', 'end_of_support_life_date': 'endOfSupportLifeDate', 'doc_url': 'docUrl', 'latest_release_version': 'latestReleaseVersion', 'is_supported_version': 'isSupportedVersion', 'release_date': 'releaseDate' } self._latest_release_artifacts = None self._family_version = None self._display_name = None self._support_type = None self._end_of_support_life_date = None self._doc_url = None self._latest_release_version = None self._is_supported_version = None self._release_date = None @property def latest_release_artifacts(self): """ Gets the latest_release_artifacts of this JavaFamily. List of artifacts for the latest Java release version in this family. The script URLs in the response can be used from a command line, or in scripts and dockerfiles to always get the artifacts corresponding to the latest update release version. :return: The latest_release_artifacts of this JavaFamily. :rtype: list[oci.jms.models.JavaArtifact] """ return self._latest_release_artifacts @latest_release_artifacts.setter def latest_release_artifacts(self, latest_release_artifacts): """ Sets the latest_release_artifacts of this JavaFamily. List of artifacts for the latest Java release version in this family. The script URLs in the response can be used from a command line, or in scripts and dockerfiles to always get the artifacts corresponding to the latest update release version. :param latest_release_artifacts: The latest_release_artifacts of this JavaFamily. :type: list[oci.jms.models.JavaArtifact] """ self._latest_release_artifacts = latest_release_artifacts @property def family_version(self): """ **[Required]** Gets the family_version of this JavaFamily. The Java release family identifier. :return: The family_version of this JavaFamily. :rtype: str """ return self._family_version @family_version.setter def family_version(self, family_version): """ Sets the family_version of this JavaFamily. The Java release family identifier. :param family_version: The family_version of this JavaFamily. :type: str """ self._family_version = family_version @property def display_name(self): """ **[Required]** Gets the display_name of this JavaFamily. The display name of the release family. :return: The display_name of this JavaFamily. :rtype: str """ return self._display_name @display_name.setter def display_name(self, display_name): """ Sets the display_name of this JavaFamily. The display name of the release family. :param display_name: The display_name of this JavaFamily. :type: str """ self._display_name = display_name @property def support_type(self): """ **[Required]** Gets the support_type of this JavaFamily. This indicates the support category for the Java release family. Allowed values for this property are: "LTS", "NON_LTS", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. :return: The support_type of this JavaFamily. :rtype: str """ return self._support_type @support_type.setter def support_type(self, support_type): """ Sets the support_type of this JavaFamily. This indicates the support category for the Java release family. :param support_type: The support_type of this JavaFamily. :type: str """ allowed_values = ["LTS", "NON_LTS"] if not value_allowed_none_or_none_sentinel(support_type, allowed_values): support_type = 'UNKNOWN_ENUM_VALUE' self._support_type = support_type @property def end_of_support_life_date(self): """ **[Required]** Gets the end_of_support_life_date of this JavaFamily. The End of Support Life (EOSL) date of the Java release family (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The end_of_support_life_date of this JavaFamily. :rtype: datetime """ return self._end_of_support_life_date @end_of_support_life_date.setter def end_of_support_life_date(self, end_of_support_life_date): """ Sets the end_of_support_life_date of this JavaFamily. The End of Support Life (EOSL) date of the Java release family (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param end_of_support_life_date: The end_of_support_life_date of this JavaFamily. :type: datetime """ self._end_of_support_life_date = end_of_support_life_date @property def doc_url(self): """ **[Required]** Gets the doc_url of this JavaFamily. Link to access the documentation for the release. :return: The doc_url of this JavaFamily. :rtype: str """ return self._doc_url @doc_url.setter def doc_url(self, doc_url): """ Sets the doc_url of this JavaFamily. Link to access the documentation for the release. :param doc_url: The doc_url of this JavaFamily. :type: str """ self._doc_url = doc_url @property def latest_release_version(self): """ **[Required]** Gets the latest_release_version of this JavaFamily. Latest Java release version in the family. :return: The latest_release_version of this JavaFamily. :rtype: str """ return self._latest_release_version @latest_release_version.setter def latest_release_version(self, latest_release_version): """ Sets the latest_release_version of this JavaFamily. Latest Java release version in the family. :param latest_release_version: The latest_release_version of this JavaFamily. :type: str """ self._latest_release_version = latest_release_version @property def is_supported_version(self): """ **[Required]** Gets the is_supported_version of this JavaFamily. Whether or not this Java release family is under active support. Refer `Java Support Roadmap`__ for more details. __ https://www.oracle.com/java/technologies/java-se-support-roadmap.html :return: The is_supported_version of this JavaFamily. :rtype: bool """ return self._is_supported_version @is_supported_version.setter def is_supported_version(self, is_supported_version): """ Sets the is_supported_version of this JavaFamily. Whether or not this Java release family is under active support. Refer `Java Support Roadmap`__ for more details. __ https://www.oracle.com/java/technologies/java-se-support-roadmap.html :param is_supported_version: The is_supported_version of this JavaFamily. :type: bool """ self._is_supported_version = is_supported_version @property def release_date(self): """ Gets the release_date of this JavaFamily. The date on which the Java release family was first made available (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :return: The release_date of this JavaFamily. :rtype: datetime """ return self._release_date @release_date.setter def release_date(self, release_date): """ Sets the release_date of this JavaFamily. The date on which the Java release family was first made available (formatted according to `RFC3339`__). __ https://datatracker.ietf.org/doc/html/rfc3339 :param release_date: The release_date of this JavaFamily. :type: datetime """ self._release_date = release_date 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
cải xoăn