1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrest.serialization import Model
class MongoDbCollectionSettings(Model):
"""Describes how an individual MongoDB collection should be migrated.
:param can_delete: Whether the migrator is allowed to drop the target
collection in the course of performing a migration. The default is true.
:type can_delete: bool
:param shard_key:
:type shard_key: ~azure.mgmt.datamigration.models.MongoDbShardKeySetting
:param target_rus: The RUs that should be configured on a CosmosDB target,
or null to use the default. This has no effect on non-CosmosDB targets.
:type target_rus: int
"""
_attribute_map = {
'can_delete': {'key': 'canDelete', 'type': 'bool'},
'shard_key': {'key': 'shardKey', 'type': 'MongoDbShardKeySetting'},
'target_rus': {'key': 'targetRUs', 'type': 'int'},
}
def __init__(self, **kwargs):
super(MongoDbCollectionSettings, self).__init__(**kwargs)
self.can_delete = kwargs.get('can_delete', None)
self.shard_key = kwargs.get('shard_key', None)
self.target_rus = kwargs.get('target_rus', None)
|