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

/**
 * Log of the entity being created, updated or deleted.
 *
 */
class OperationResultLogItemContract {
  /**
   * Create a OperationResultLogItemContract.
   * @property {string} [objectType] The type of entity contract.
   * @property {string} [action] Action like create/update/delete.
   * @property {string} [objectKey] Identifier of the entity being
   * created/updated/deleted.
   */
  constructor() {
  }

  /**
   * Defines the metadata of OperationResultLogItemContract
   *
   * @returns {object} metadata of OperationResultLogItemContract
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'OperationResultLogItemContract',
      type: {
        name: 'Composite',
        className: 'OperationResultLogItemContract',
        modelProperties: {
          objectType: {
            required: false,
            serializedName: 'objectType',
            type: {
              name: 'String'
            }
          },
          action: {
            required: false,
            serializedName: 'action',
            type: {
              name: 'String'
            }
          },
          objectKey: {
            required: false,
            serializedName: 'objectKey',
            type: {
              name: 'String'
            }
          }
        }
      }
    };
  }
}

module.exports = OperationResultLogItemContract;
