403Webshell
Server IP : 103.119.228.120  /  Your IP : 3.144.41.200
Web Server : Apache
System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 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/streaming/models/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/streaming/models/partition_reservation.py
# 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: 20180418


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 PartitionReservation(object):
    """
    Represents the state of a single partition reservation.
    """

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

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

        :param committed_offset:
            The value to assign to the committed_offset property of this PartitionReservation.
        :type committed_offset: int

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

        :param time_reserved_until:
            The value to assign to the time_reserved_until property of this PartitionReservation.
        :type time_reserved_until: datetime

        """
        self.swagger_types = {
            'partition': 'str',
            'committed_offset': 'int',
            'reserved_instance': 'str',
            'time_reserved_until': 'datetime'
        }

        self.attribute_map = {
            'partition': 'partition',
            'committed_offset': 'committedOffset',
            'reserved_instance': 'reservedInstance',
            'time_reserved_until': 'timeReservedUntil'
        }

        self._partition = None
        self._committed_offset = None
        self._reserved_instance = None
        self._time_reserved_until = None

    @property
    def partition(self):
        """
        Gets the partition of this PartitionReservation.
        The partition for which the reservation applies.


        :return: The partition of this PartitionReservation.
        :rtype: str
        """
        return self._partition

    @partition.setter
    def partition(self, partition):
        """
        Sets the partition of this PartitionReservation.
        The partition for which the reservation applies.


        :param partition: The partition of this PartitionReservation.
        :type: str
        """
        self._partition = partition

    @property
    def committed_offset(self):
        """
        Gets the committed_offset of this PartitionReservation.
        The latest offset which has been committed for this partition.


        :return: The committed_offset of this PartitionReservation.
        :rtype: int
        """
        return self._committed_offset

    @committed_offset.setter
    def committed_offset(self, committed_offset):
        """
        Sets the committed_offset of this PartitionReservation.
        The latest offset which has been committed for this partition.


        :param committed_offset: The committed_offset of this PartitionReservation.
        :type: int
        """
        self._committed_offset = committed_offset

    @property
    def reserved_instance(self):
        """
        Gets the reserved_instance of this PartitionReservation.
        The consumer instance which currently has the partition reserved.


        :return: The reserved_instance of this PartitionReservation.
        :rtype: str
        """
        return self._reserved_instance

    @reserved_instance.setter
    def reserved_instance(self, reserved_instance):
        """
        Sets the reserved_instance of this PartitionReservation.
        The consumer instance which currently has the partition reserved.


        :param reserved_instance: The reserved_instance of this PartitionReservation.
        :type: str
        """
        self._reserved_instance = reserved_instance

    @property
    def time_reserved_until(self):
        """
        Gets the time_reserved_until of this PartitionReservation.
        A timestamp when the current reservation expires.


        :return: The time_reserved_until of this PartitionReservation.
        :rtype: datetime
        """
        return self._time_reserved_until

    @time_reserved_until.setter
    def time_reserved_until(self, time_reserved_until):
        """
        Sets the time_reserved_until of this PartitionReservation.
        A timestamp when the current reservation expires.


        :param time_reserved_until: The time_reserved_until of this PartitionReservation.
        :type: datetime
        """
        self._time_reserved_until = time_reserved_until

    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