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

/**
 * The HDInsight cluster application GET response.
 *
 */
class ApplicationGetProperties {
  /**
   * Create a ApplicationGetProperties.
   * @member {object} [computeProfile] The list of roles in the cluster.
   * @member {array} [computeProfile.roles] The list of roles in the cluster.
   * @member {array} [installScriptActions] The list of install script actions.
   * @member {array} [uninstallScriptActions] The list of uninstall script
   * actions.
   * @member {array} [httpsEndpoints] The list of application HTTPS endpoints.
   * @member {array} [sshEndpoints] The list of application SSH endpoints.
   * @member {string} [provisioningState] The provisioning state of the
   * application.
   * @member {string} [applicationType] The application type.
   * @member {string} [applicationState] The application state.
   * @member {array} [errors] The list of errors.
   * @member {string} [createdDate] The application create date time.
   * @member {string} [marketplaceIdentifier] The marketplace identifier.
   * @member {string} [additionalProperties] The additional properties for
   * application.
   */
  constructor() {
  }

  /**
   * Defines the metadata of ApplicationGetProperties
   *
   * @returns {object} metadata of ApplicationGetProperties
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'ApplicationGetProperties',
      type: {
        name: 'Composite',
        className: 'ApplicationGetProperties',
        modelProperties: {
          computeProfile: {
            required: false,
            serializedName: 'computeProfile',
            type: {
              name: 'Composite',
              className: 'ComputeProfile'
            }
          },
          installScriptActions: {
            required: false,
            serializedName: 'installScriptActions',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'RuntimeScriptActionElementType',
                  type: {
                    name: 'Composite',
                    className: 'RuntimeScriptAction'
                  }
              }
            }
          },
          uninstallScriptActions: {
            required: false,
            serializedName: 'uninstallScriptActions',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'RuntimeScriptActionElementType',
                  type: {
                    name: 'Composite',
                    className: 'RuntimeScriptAction'
                  }
              }
            }
          },
          httpsEndpoints: {
            required: false,
            serializedName: 'httpsEndpoints',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'ApplicationGetHttpsEndpointElementType',
                  type: {
                    name: 'Composite',
                    additionalProperties: {
                      type: {
                        name: 'Dictionary',
                        value: {
                            required: false,
                            serializedName: 'StringElementType',
                            type: {
                              name: 'String'
                            }
                        }
                      }
                    },
                    className: 'ApplicationGetHttpsEndpoint'
                  }
              }
            }
          },
          sshEndpoints: {
            required: false,
            serializedName: 'sshEndpoints',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'ApplicationGetEndpointElementType',
                  type: {
                    name: 'Composite',
                    className: 'ApplicationGetEndpoint'
                  }
              }
            }
          },
          provisioningState: {
            required: false,
            readOnly: true,
            serializedName: 'provisioningState',
            type: {
              name: 'String'
            }
          },
          applicationType: {
            required: false,
            serializedName: 'applicationType',
            type: {
              name: 'String'
            }
          },
          applicationState: {
            required: false,
            readOnly: true,
            serializedName: 'applicationState',
            type: {
              name: 'String'
            }
          },
          errors: {
            required: false,
            serializedName: 'errors',
            type: {
              name: 'Sequence',
              element: {
                  required: false,
                  serializedName: 'ErrorsElementType',
                  type: {
                    name: 'Composite',
                    className: 'Errors'
                  }
              }
            }
          },
          createdDate: {
            required: false,
            readOnly: true,
            serializedName: 'createdDate',
            type: {
              name: 'String'
            }
          },
          marketplaceIdentifier: {
            required: false,
            readOnly: true,
            serializedName: 'marketplaceIdentifier',
            type: {
              name: 'String'
            }
          },
          additionalProperties: {
            required: false,
            serializedName: 'additionalProperties',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = ApplicationGetProperties;
