old_contents: # 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 .resource import Resource
  
  
  class DatabaseAccountCreateUpdateParameters(Resource):
      """Parameters to create and update DocumentDB database accounts.
  
      Variables are only populated by the server, and will be ignored when
      sending a request.
  
      :ivar id: The unique resource identifier of the database account.
      :vartype id: str
      :ivar name: The name of the database account.
      :vartype name: str
      :ivar type: The type of Azure resource.
      :vartype type: str
      :param location: The location of the resource group to which the resource
       belongs.
      :type location: str
      :param tags:
      :type tags: dict
      :param consistency_policy: The consistency policy for the DocumentDB
       account.
      :type consistency_policy: :class:`ConsistencyPolicy
       <azure.mgmt.documentdb.models.ConsistencyPolicy>`
      :param locations: An array that contains the georeplication locations
       enabled for the DocumentDB account.
      :type locations: list of :class:`Location
       <azure.mgmt.documentdb.models.Location>`
      :ivar database_account_offer_type:  Default value: "Standard" .
      :vartype database_account_offer_type: str
      """ 
  
      _validation = {
          'id': {'readonly': True},
          'name': {'readonly': True},
          'type': {'readonly': True},
          'location': {'required': True},
          'consistency_policy': {'required': True},
          'locations': {'required': True},
          'database_account_offer_type': {'required': True, 'constant': True},
      }
  
      _attribute_map = {
          'id': {'key': 'id', 'type': 'str'},
          'name': {'key': 'name', 'type': 'str'},
          'type': {'key': 'type', 'type': 'str'},
          'location': {'key': 'location', 'type': 'str'},
          'tags': {'key': 'tags', 'type': '{str}'},
          'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'},
          'locations': {'key': 'properties.locations', 'type': '[Location]'},
          'database_account_offer_type': {'key': 'databaseAccountOfferType', 'type': 'str'},
      }
  
      database_account_offer_type = "Standard"
  
      def __init__(self, location, consistency_policy, locations, tags=None):
          super(DatabaseAccountCreateUpdateParameters, self).__init__(location=location, tags=tags)
          self.consistency_policy = consistency_policy
          self.locations = locations
  
new_contents: # 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 .resource import Resource
  
  
  class DatabaseAccountCreateUpdateParameters(Resource):
      """Parameters to create and update DocumentDB database accounts.
  
      Variables are only populated by the server, and will be ignored when
      sending a request.
  
      :ivar id: The unique resource identifier of the database account.
      :vartype id: str
      :ivar name: The name of the database account.
      :vartype name: str
      :ivar type: The type of Azure resource.
      :vartype type: str
      :param location: The location of the resource group to which the resource
       belongs.
      :type location: str
      :param tags:
      :type tags: dict
      :param consistency_policy: The consistency policy for the DocumentDB
       account.
      :type consistency_policy: :class:`ConsistencyPolicy
       <azure.mgmt.documentdb.models.ConsistencyPolicy>`
      :param locations: An array that contains the georeplication locations
       enabled for the DocumentDB account.
      :type locations: list of :class:`Location
       <azure.mgmt.documentdb.models.Location>`
      :ivar database_account_offer_type:  Default value: "Standard" .
      :vartype database_account_offer_type: str
      """ 
  
      _validation = {
          'id': {'readonly': True},
          'name': {'readonly': True},
          'type': {'readonly': True},
          'location': {'required': True},
          'locations': {'required': True},
          'database_account_offer_type': {'required': True, 'constant': True},
      }
  
      _attribute_map = {
          'id': {'key': 'id', 'type': 'str'},
          'name': {'key': 'name', 'type': 'str'},
          'type': {'key': 'type', 'type': 'str'},
          'location': {'key': 'location', 'type': 'str'},
          'tags': {'key': 'tags', 'type': '{str}'},
          'consistency_policy': {'key': 'properties.consistencyPolicy', 'type': 'ConsistencyPolicy'},
          'locations': {'key': 'properties.locations', 'type': '[Location]'},
          'database_account_offer_type': {'key': 'properties.databaseAccountOfferType', 'type': 'str'},
      }
  
      database_account_offer_type = "Standard"
  
      def __init__(self, location, locations, tags=None, consistency_policy=None):
          super(DatabaseAccountCreateUpdateParameters, self).__init__(location=location, tags=tags)
          self.consistency_policy = consistency_policy
          self.locations = locations
  
subject: Create DocDB fix