/*
 * 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';

const models = require('./index');

/**
 * Response for ApplicationGatewayAvailableSslOptions API service call.
 *
 * @extends models['Resource']
 */
class ApplicationGatewayAvailableSslOptions extends models['Resource'] {
  /**
   * Create a ApplicationGatewayAvailableSslOptions.
   * @property {array} [predefinedPolicies] List of available Ssl predefined
   * policy.
   * @property {string} [defaultPolicy] Name of the Ssl predefined policy
   * applied by default to application gateway. Possible values include:
   * 'AppGwSslPolicy20150501', 'AppGwSslPolicy20170401',
   * 'AppGwSslPolicy20170401S'
   * @property {array} [availableCipherSuites] List of available Ssl cipher
   * suites.
   * @property {array} [availableProtocols] List of available Ssl protocols.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of ApplicationGatewayAvailableSslOptions
   *
   * @returns {object} metadata of ApplicationGatewayAvailableSslOptions
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ApplicationGatewayAvailableSslOptions',
      type: {
        name: 'Composite',
        className: 'ApplicationGatewayAvailableSslOptions',
        modelProperties: {
          id: {
            required: false,
            serializedName: 'id',
            type: {
              name: 'String'
            }
          },
          name: {
            required: false,
            readOnly: true,
            serializedName: 'name',
            type: {
              name: 'String'
            }
          },
          type: {
            required: false,
            readOnly: true,
            serializedName: 'type',
            type: {
              name: 'String'
            }
          },
          location: {
            required: false,
            serializedName: 'location',
            type: {
              name: 'String'
            }
          },
          tags: {
            required: false,
            serializedName: 'tags',
            type: {
              name: 'Dictionary',
              value: {
                  required: false,
                  serializedName: 'StringElementType',
                  type: {
                    name: 'String'
                  }
              }
            }
          },
          predefinedPolicies: {
            required: false,
            serializedName: 'properties.predefinedPolicies',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'SubResourceElementType',
                  type: {
                    name: 'Composite',
                    className: 'SubResource'
                  }
              }
            }
          },
          defaultPolicy: {
            required: false,
            serializedName: 'properties.defaultPolicy',
            type: {
              name: 'String'
            }
          },
          availableCipherSuites: {
            required: false,
            serializedName: 'properties.availableCipherSuites',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'ApplicationGatewaySslCipherSuiteElementType',
                  type: {
                    name: 'String'
                  }
              }
            }
          },
          availableProtocols: {
            required: false,
            serializedName: 'properties.availableProtocols',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'ApplicationGatewaySslProtocolElementType',
                  type: {
                    name: 'String'
                  }
              }
            }
          }
        }
      }
    };
  }
}

module.exports = ApplicationGatewayAvailableSslOptions;
