// 
// Copyright (c) Microsoft and contributors.  All rights reserved.
// 
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//   http://www.apache.org/licenses/LICENSE-2.0
// 
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// 
// See the License for the specific language governing permissions and
// limitations under the License.
// 

// Warning: This code was generated by a tool.
// 
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Linq;
using Microsoft.Azure.Search.Models;

namespace Microsoft.Azure.Search.Models
{
    /// <summary>
    /// Represents a datasource definition in Azure Search, which can be used
    /// to configure an indexer.
    /// </summary>
    public partial class DataSource
    {
        private DataContainer _container;
        
        /// <summary>
        /// Required. Gets or sets the data container for the datasource.
        /// </summary>
        public DataContainer Container
        {
            get { return this._container; }
            set { this._container = value; }
        }
        
        private DataSourceCredentials _credentials;
        
        /// <summary>
        /// Required. Gets or sets credentials for the datasource.
        /// </summary>
        public DataSourceCredentials Credentials
        {
            get { return this._credentials; }
            set { this._credentials = value; }
        }
        
        private DataChangeDetectionPolicy _dataChangeDetectionPolicy;
        
        /// <summary>
        /// Optional. Gets or sets the data change detection policy for the
        /// datasource.
        /// </summary>
        public DataChangeDetectionPolicy DataChangeDetectionPolicy
        {
            get { return this._dataChangeDetectionPolicy; }
            set { this._dataChangeDetectionPolicy = value; }
        }
        
        private DataDeletionDetectionPolicy _dataDeletionDetectionPolicy;
        
        /// <summary>
        /// Optional. Gets or sets the data deletion detection policy for the
        /// datasource.
        /// </summary>
        public DataDeletionDetectionPolicy DataDeletionDetectionPolicy
        {
            get { return this._dataDeletionDetectionPolicy; }
            set { this._dataDeletionDetectionPolicy = value; }
        }
        
        private string _description;
        
        /// <summary>
        /// Optional. Gets or sets the description of the datasource.
        /// </summary>
        public string Description
        {
            get { return this._description; }
            set { this._description = value; }
        }
        
        private string _name;
        
        /// <summary>
        /// Required. Gets or sets the name of the datasource.  (see
        /// https://msdn.microsoft.com/library/azure/dn857353.aspx for more
        /// information)
        /// </summary>
        public string Name
        {
            get { return this._name; }
            set { this._name = value; }
        }
        
        private string _type;
        
        /// <summary>
        /// Required. Gets or sets the type of the datasource.
        /// </summary>
        public string Type
        {
            get { return this._type; }
            set { this._type = value; }
        }
        
        /// <summary>
        /// Initializes a new instance of the DataSource class.
        /// </summary>
        public DataSource()
        {
        }
    }
}
