Source code for azure.mgmt.cosmosdb.models.region_for_online_offline_py3

# 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


[docs]class RegionForOnlineOffline(Model): """Cosmos DB region to online or offline. All required parameters must be populated in order to send to Azure. :param region: Required. Cosmos DB region, with spaces between words and each word capitalized. :type region: str """ _validation = { 'region': {'required': True}, } _attribute_map = { 'region': {'key': 'region', 'type': 'str'}, } def __init__(self, *, region: str, **kwargs) -> None: super(RegionForOnlineOffline, self).__init__(**kwargs) self.region = region