/*
 * 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.
 */

'use strict';

/**
 * Parameters that define the configuration of traffic analytics.
 *
 */
class TrafficAnalyticsConfigurationProperties {
  /**
   * Create a TrafficAnalyticsConfigurationProperties.
   * @property {boolean} enabled Flag to enable/disable traffic analytics.
   * @property {string} workspaceId The resource guid of the attached workspace
   * @property {string} workspaceRegion The location of the attached workspace
   * @property {string} workspaceResourceId Resource Id of the attached
   * workspace
   * @property {number} [trafficAnalyticsInterval] The interval in minutes
   * which would decide how frequently TA service should do flow analytics
   */
  constructor() {
  }

  /**
   * Defines the metadata of TrafficAnalyticsConfigurationProperties
   *
   * @returns {object} metadata of TrafficAnalyticsConfigurationProperties
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'TrafficAnalyticsConfigurationProperties',
      type: {
        name: 'Composite',
        className: 'TrafficAnalyticsConfigurationProperties',
        modelProperties: {
          enabled: {
            required: true,
            serializedName: 'enabled',
            type: {
              name: 'Boolean'
            }
          },
          workspaceId: {
            required: true,
            serializedName: 'workspaceId',
            type: {
              name: 'String'
            }
          },
          workspaceRegion: {
            required: true,
            serializedName: 'workspaceRegion',
            type: {
              name: 'String'
            }
          },
          workspaceResourceId: {
            required: true,
            serializedName: 'workspaceResourceId',
            type: {
              name: 'String'
            }
          },
          trafficAnalyticsInterval: {
            required: false,
            serializedName: 'trafficAnalyticsInterval',
            type: {
              name: 'Number'
            }
          }
        }
      }
    };
  }
}

module.exports = TrafficAnalyticsConfigurationProperties;
