File manager - Edit - /usr/lib/mysqlsh/lib/python3.9/site-packages/oci/distributed_database/models/move_distributed_database_replication_unit_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: 20250101 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 MoveDistributedDatabaseReplicationUnitDetails(object): """ The details for moving replication units from source shard to destination shard for the Globally distributed database. """ def __init__(self, **kwargs): """ Initializes a new MoveDistributedDatabaseReplicationUnitDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class): :param source_shard_name: The value to assign to the source_shard_name property of this MoveDistributedDatabaseReplicationUnitDetails. :type source_shard_name: str :param destination_shard_name: The value to assign to the destination_shard_name property of this MoveDistributedDatabaseReplicationUnitDetails. :type destination_shard_name: str :param replication_units: The value to assign to the replication_units property of this MoveDistributedDatabaseReplicationUnitDetails. :type replication_units: list[int] """ self.swagger_types = { 'source_shard_name': 'str', 'destination_shard_name': 'str', 'replication_units': 'list[int]' } self.attribute_map = { 'source_shard_name': 'sourceShardName', 'destination_shard_name': 'destinationShardName', 'replication_units': 'replicationUnits' } self._source_shard_name = None self._destination_shard_name = None self._replication_units = None @property def source_shard_name(self): """ **[Required]** Gets the source_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. The name of the source shard from which to move the chunks out to other shards. :return: The source_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. :rtype: str """ return self._source_shard_name @source_shard_name.setter def source_shard_name(self, source_shard_name): """ Sets the source_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. The name of the source shard from which to move the chunks out to other shards. :param source_shard_name: The source_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. :type: str """ self._source_shard_name = source_shard_name @property def destination_shard_name(self): """ Gets the destination_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. The name of the destination shard to which the chunks moved out from source shard should be relocate to. :return: The destination_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. :rtype: str """ return self._destination_shard_name @destination_shard_name.setter def destination_shard_name(self, destination_shard_name): """ Sets the destination_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. The name of the destination shard to which the chunks moved out from source shard should be relocate to. :param destination_shard_name: The destination_shard_name of this MoveDistributedDatabaseReplicationUnitDetails. :type: str """ self._destination_shard_name = destination_shard_name @property def replication_units(self): """ Gets the replication_units of this MoveDistributedDatabaseReplicationUnitDetails. For RAFT databases please provide replication unit numbers to be moved from source shard to destination shard. :return: The replication_units of this MoveDistributedDatabaseReplicationUnitDetails. :rtype: list[int] """ return self._replication_units @replication_units.setter def replication_units(self, replication_units): """ Sets the replication_units of this MoveDistributedDatabaseReplicationUnitDetails. For RAFT databases please provide replication unit numbers to be moved from source shard to destination shard. :param replication_units: The replication_units of this MoveDistributedDatabaseReplicationUnitDetails. :type: list[int] """ self._replication_units = replication_units 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