403Webshell
Server IP : 103.119.228.120  /  Your IP : 216.73.216.224
Web Server : Apache
System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els17.x86_64 #1 SMP Mon Feb 24 04:58:14 UTC 2025 x86_64
User : nobody ( 99)
PHP Version : 5.6.40
Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime
MySQL : ON |  cURL : ON |  WGET : ON |  Perl : ON |  Python : ON |  Sudo : ON |  Pkexec : ON
Directory :  /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/os_management/models/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/os_management/models/available_update_summary.py
# coding: utf-8
# Copyright (c) 2016, 2025, 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: 20190801


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 AvailableUpdateSummary(object):
    """
    An update available for a managed instance
    """

    #: A constant which can be used with the update_type property of a AvailableUpdateSummary.
    #: This constant has a value of "SECURITY"
    UPDATE_TYPE_SECURITY = "SECURITY"

    #: A constant which can be used with the update_type property of a AvailableUpdateSummary.
    #: This constant has a value of "BUG"
    UPDATE_TYPE_BUG = "BUG"

    #: A constant which can be used with the update_type property of a AvailableUpdateSummary.
    #: This constant has a value of "ENHANCEMENT"
    UPDATE_TYPE_ENHANCEMENT = "ENHANCEMENT"

    #: A constant which can be used with the update_type property of a AvailableUpdateSummary.
    #: This constant has a value of "OTHER"
    UPDATE_TYPE_OTHER = "OTHER"

    def __init__(self, **kwargs):
        """
        Initializes a new AvailableUpdateSummary object with values from keyword arguments.
        The following keyword arguments are supported (corresponding to the getters/setters of this class):

        :param display_name:
            The value to assign to the display_name property of this AvailableUpdateSummary.
        :type display_name: str

        :param name:
            The value to assign to the name property of this AvailableUpdateSummary.
        :type name: str

        :param update_type:
            The value to assign to the update_type property of this AvailableUpdateSummary.
            Allowed values for this property are: "SECURITY", "BUG", "ENHANCEMENT", "OTHER", 'UNKNOWN_ENUM_VALUE'.
            Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
        :type update_type: str

        :param type:
            The value to assign to the type property of this AvailableUpdateSummary.
        :type type: str

        :param installed_version:
            The value to assign to the installed_version property of this AvailableUpdateSummary.
        :type installed_version: str

        :param available_version:
            The value to assign to the available_version property of this AvailableUpdateSummary.
        :type available_version: str

        :param architecture:
            The value to assign to the architecture property of this AvailableUpdateSummary.
        :type architecture: str

        :param errata:
            The value to assign to the errata property of this AvailableUpdateSummary.
        :type errata: list[oci.os_management.models.Id]

        :param related_cves:
            The value to assign to the related_cves property of this AvailableUpdateSummary.
        :type related_cves: list[str]

        :param software_sources:
            The value to assign to the software_sources property of this AvailableUpdateSummary.
        :type software_sources: list[oci.os_management.models.SoftwareSourceId]

        """
        self.swagger_types = {
            'display_name': 'str',
            'name': 'str',
            'update_type': 'str',
            'type': 'str',
            'installed_version': 'str',
            'available_version': 'str',
            'architecture': 'str',
            'errata': 'list[Id]',
            'related_cves': 'list[str]',
            'software_sources': 'list[SoftwareSourceId]'
        }

        self.attribute_map = {
            'display_name': 'displayName',
            'name': 'name',
            'update_type': 'updateType',
            'type': 'type',
            'installed_version': 'installedVersion',
            'available_version': 'availableVersion',
            'architecture': 'architecture',
            'errata': 'errata',
            'related_cves': 'relatedCves',
            'software_sources': 'softwareSources'
        }

        self._display_name = None
        self._name = None
        self._update_type = None
        self._type = None
        self._installed_version = None
        self._available_version = None
        self._architecture = None
        self._errata = None
        self._related_cves = None
        self._software_sources = None

    @property
    def display_name(self):
        """
        **[Required]** Gets the display_name of this AvailableUpdateSummary.
        Package name


        :return: The display_name of this AvailableUpdateSummary.
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """
        Sets the display_name of this AvailableUpdateSummary.
        Package name


        :param display_name: The display_name of this AvailableUpdateSummary.
        :type: str
        """
        self._display_name = display_name

    @property
    def name(self):
        """
        **[Required]** Gets the name of this AvailableUpdateSummary.
        Unique identifier for the package available for update. NOTE - This is not an OCID


        :return: The name of this AvailableUpdateSummary.
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """
        Sets the name of this AvailableUpdateSummary.
        Unique identifier for the package available for update. NOTE - This is not an OCID


        :param name: The name of this AvailableUpdateSummary.
        :type: str
        """
        self._name = name

    @property
    def update_type(self):
        """
        Gets the update_type of this AvailableUpdateSummary.
        The purpose of this update.

        Allowed values for this property are: "SECURITY", "BUG", "ENHANCEMENT", "OTHER", 'UNKNOWN_ENUM_VALUE'.
        Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.


        :return: The update_type of this AvailableUpdateSummary.
        :rtype: str
        """
        return self._update_type

    @update_type.setter
    def update_type(self, update_type):
        """
        Sets the update_type of this AvailableUpdateSummary.
        The purpose of this update.


        :param update_type: The update_type of this AvailableUpdateSummary.
        :type: str
        """
        allowed_values = ["SECURITY", "BUG", "ENHANCEMENT", "OTHER"]
        if not value_allowed_none_or_none_sentinel(update_type, allowed_values):
            update_type = 'UNKNOWN_ENUM_VALUE'
        self._update_type = update_type

    @property
    def type(self):
        """
        **[Required]** Gets the type of this AvailableUpdateSummary.
        Type of the package


        :return: The type of this AvailableUpdateSummary.
        :rtype: str
        """
        return self._type

    @type.setter
    def type(self, type):
        """
        Sets the type of this AvailableUpdateSummary.
        Type of the package


        :param type: The type of this AvailableUpdateSummary.
        :type: str
        """
        self._type = type

    @property
    def installed_version(self):
        """
        **[Required]** Gets the installed_version of this AvailableUpdateSummary.
        Version of the installed package


        :return: The installed_version of this AvailableUpdateSummary.
        :rtype: str
        """
        return self._installed_version

    @installed_version.setter
    def installed_version(self, installed_version):
        """
        Sets the installed_version of this AvailableUpdateSummary.
        Version of the installed package


        :param installed_version: The installed_version of this AvailableUpdateSummary.
        :type: str
        """
        self._installed_version = installed_version

    @property
    def available_version(self):
        """
        **[Required]** Gets the available_version of this AvailableUpdateSummary.
        Version of the package available for update


        :return: The available_version of this AvailableUpdateSummary.
        :rtype: str
        """
        return self._available_version

    @available_version.setter
    def available_version(self, available_version):
        """
        Sets the available_version of this AvailableUpdateSummary.
        Version of the package available for update


        :param available_version: The available_version of this AvailableUpdateSummary.
        :type: str
        """
        self._available_version = available_version

    @property
    def architecture(self):
        """
        Gets the architecture of this AvailableUpdateSummary.
        The architecture for which this package was built


        :return: The architecture of this AvailableUpdateSummary.
        :rtype: str
        """
        return self._architecture

    @architecture.setter
    def architecture(self, architecture):
        """
        Sets the architecture of this AvailableUpdateSummary.
        The architecture for which this package was built


        :param architecture: The architecture of this AvailableUpdateSummary.
        :type: str
        """
        self._architecture = architecture

    @property
    def errata(self):
        """
        Gets the errata of this AvailableUpdateSummary.
        List of errata containing this update


        :return: The errata of this AvailableUpdateSummary.
        :rtype: list[oci.os_management.models.Id]
        """
        return self._errata

    @errata.setter
    def errata(self, errata):
        """
        Sets the errata of this AvailableUpdateSummary.
        List of errata containing this update


        :param errata: The errata of this AvailableUpdateSummary.
        :type: list[oci.os_management.models.Id]
        """
        self._errata = errata

    @property
    def related_cves(self):
        """
        Gets the related_cves of this AvailableUpdateSummary.
        List of CVEs applicable to this erratum


        :return: The related_cves of this AvailableUpdateSummary.
        :rtype: list[str]
        """
        return self._related_cves

    @related_cves.setter
    def related_cves(self, related_cves):
        """
        Sets the related_cves of this AvailableUpdateSummary.
        List of CVEs applicable to this erratum


        :param related_cves: The related_cves of this AvailableUpdateSummary.
        :type: list[str]
        """
        self._related_cves = related_cves

    @property
    def software_sources(self):
        """
        Gets the software_sources of this AvailableUpdateSummary.
        list of software sources that provide the software package


        :return: The software_sources of this AvailableUpdateSummary.
        :rtype: list[oci.os_management.models.SoftwareSourceId]
        """
        return self._software_sources

    @software_sources.setter
    def software_sources(self, software_sources):
        """
        Sets the software_sources of this AvailableUpdateSummary.
        list of software sources that provide the software package


        :param software_sources: The software_sources of this AvailableUpdateSummary.
        :type: list[oci.os_management.models.SoftwareSourceId]
        """
        self._software_sources = software_sources

    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

Youez - 2016 - github.com/yon3zu
LinuXploit