ÿØÿà JFIF ÿÛ „ ( %"1"%)+...383,7(-.-
![]() Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20 System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64 User : apache ( 48) PHP Version : 7.4.20 Disable Function : NONE Directory : /proc/self/root/usr/share/mysqlsh/oci_sdk/oci/streaming/models/ |
# coding: utf-8 # Copyright (c) 2016, 2020, Oracle and/or its affiliates. All rights reserved. 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 UpdateArchiverDetails(object): """ The update stream archiver parameters. """ #: A constant which can be used with the start_position property of a UpdateArchiverDetails. #: This constant has a value of "LATEST" START_POSITION_LATEST = "LATEST" #: A constant which can be used with the start_position property of a UpdateArchiverDetails. #: This constant has a value of "TRIM_HORIZON" START_POSITION_TRIM_HORIZON = "TRIM_HORIZON" def __init__(self, **kwargs): """ Initializes a new UpdateArchiverDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param bucket_name: The value to assign to the bucket_name property of this UpdateArchiverDetails. :type bucket_name: str :param use_existing_bucket: The value to assign to the use_existing_bucket property of this UpdateArchiverDetails. :type use_existing_bucket: bool :param start_position: The value to assign to the start_position property of this UpdateArchiverDetails. Allowed values for this property are: "LATEST", "TRIM_HORIZON" :type start_position: str :param batch_rollover_size_in_mbs: The value to assign to the batch_rollover_size_in_mbs property of this UpdateArchiverDetails. :type batch_rollover_size_in_mbs: int :param batch_rollover_time_in_seconds: The value to assign to the batch_rollover_time_in_seconds property of this UpdateArchiverDetails. :type batch_rollover_time_in_seconds: int """ self.swagger_types = { 'bucket_name': 'str', 'use_existing_bucket': 'bool', 'start_position': 'str', 'batch_rollover_size_in_mbs': 'int', 'batch_rollover_time_in_seconds': 'int' } self.attribute_map = { 'bucket_name': 'bucketName', 'use_existing_bucket': 'useExistingBucket', 'start_position': 'startPosition', 'batch_rollover_size_in_mbs': 'batchRolloverSizeInMBs', 'batch_rollover_time_in_seconds': 'batchRolloverTimeInSeconds' } self._bucket_name = None self._use_existing_bucket = None self._start_position = None self._batch_rollover_size_in_mbs = None self._batch_rollover_time_in_seconds = None @property def bucket_name(self): """ Gets the bucket_name of this UpdateArchiverDetails. The name of the bucket. :return: The bucket_name of this UpdateArchiverDetails. :rtype: str """ return self._bucket_name @bucket_name.setter def bucket_name(self, bucket_name): """ Sets the bucket_name of this UpdateArchiverDetails. The name of the bucket. :param bucket_name: The bucket_name of this UpdateArchiverDetails. :type: str """ self._bucket_name = bucket_name @property def use_existing_bucket(self): """ Gets the use_existing_bucket of this UpdateArchiverDetails. The flag to create a new bucket or use existing one. :return: The use_existing_bucket of this UpdateArchiverDetails. :rtype: bool """ return self._use_existing_bucket @use_existing_bucket.setter def use_existing_bucket(self, use_existing_bucket): """ Sets the use_existing_bucket of this UpdateArchiverDetails. The flag to create a new bucket or use existing one. :param use_existing_bucket: The use_existing_bucket of this UpdateArchiverDetails. :type: bool """ self._use_existing_bucket = use_existing_bucket @property def start_position(self): """ Gets the start_position of this UpdateArchiverDetails. The start message. Allowed values for this property are: "LATEST", "TRIM_HORIZON" :return: The start_position of this UpdateArchiverDetails. :rtype: str """ return self._start_position @start_position.setter def start_position(self, start_position): """ Sets the start_position of this UpdateArchiverDetails. The start message. :param start_position: The start_position of this UpdateArchiverDetails. :type: str """ allowed_values = ["LATEST", "TRIM_HORIZON"] if not value_allowed_none_or_none_sentinel(start_position, allowed_values): raise ValueError( "Invalid value for `start_position`, must be None or one of {0}" .format(allowed_values) ) self._start_position = start_position @property def batch_rollover_size_in_mbs(self): """ Gets the batch_rollover_size_in_mbs of this UpdateArchiverDetails. The batch rollover size in megabytes. :return: The batch_rollover_size_in_mbs of this UpdateArchiverDetails. :rtype: int """ return self._batch_rollover_size_in_mbs @batch_rollover_size_in_mbs.setter def batch_rollover_size_in_mbs(self, batch_rollover_size_in_mbs): """ Sets the batch_rollover_size_in_mbs of this UpdateArchiverDetails. The batch rollover size in megabytes. :param batch_rollover_size_in_mbs: The batch_rollover_size_in_mbs of this UpdateArchiverDetails. :type: int """ self._batch_rollover_size_in_mbs = batch_rollover_size_in_mbs @property def batch_rollover_time_in_seconds(self): """ Gets the batch_rollover_time_in_seconds of this UpdateArchiverDetails. The rollover time in seconds. :return: The batch_rollover_time_in_seconds of this UpdateArchiverDetails. :rtype: int """ return self._batch_rollover_time_in_seconds @batch_rollover_time_in_seconds.setter def batch_rollover_time_in_seconds(self, batch_rollover_time_in_seconds): """ Sets the batch_rollover_time_in_seconds of this UpdateArchiverDetails. The rollover time in seconds. :param batch_rollover_time_in_seconds: The batch_rollover_time_in_seconds of this UpdateArchiverDetails. :type: int """ self._batch_rollover_time_in_seconds = batch_rollover_time_in_seconds 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