{"size": 3352, "ext": "js", "max_stars_repo_path": "lib/services/recoveryServicesSiteRecoveryManagement/lib/models/fabric.js", "max_stars_repo_name": "scbedd/azure-sdk-for-node", "max_stars_repo_stars_event_min_datetime": "2015-01-01T08:16:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-30T22:10:40.000Z", "max_issues_repo_path": "lib/services/recoveryServicesSiteRecoveryManagement/lib/models/fabric.js", "max_issues_repo_name": "scbedd/azure-sdk-for-node", "max_issues_repo_issues_event_min_datetime": "2015-01-06T10:28:57.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T02:07:25.000Z", "max_forks_repo_path": "lib/services/recoveryServicesSiteRecoveryManagement/lib/models/fabric.js", "max_forks_repo_name": "scbedd/azure-sdk-for-node", "max_forks_repo_forks_event_min_datetime": "2015-01-16T13:21:23.000Z", "max_forks_repo_forks_event_max_datetime": "2022-01-06T00:49:46.000Z"}
{"max_stars_count": 748, "max_issues_count": 2114, "max_forks_count": 567, "avg_line_length": 29.4035087719, "max_line_length": 79, "alphanum_fraction": 0.5996420048}
/*
 * 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');

/**
 * Fabric definition.
 *
 * @extends models['Resource']
 */
class Fabric extends models['Resource'] {
  /**
   * Create a Fabric.
   * @member {object} [properties] Fabric related data.
   * @member {string} [properties.friendlyName] Friendly name of the fabric.
   * @member {object} [properties.encryptionDetails] Encryption details for the
   * fabric.
   * @member {string} [properties.encryptionDetails.kekState] The key
   * encryption key state for the Vmm.
   * @member {string} [properties.encryptionDetails.kekCertThumbprint] The key
   * encryption key certificate thumbprint.
   * @member {date} [properties.encryptionDetails.kekCertExpiryDate] The key
   * encryption key certificate expiry date.
   * @member {object} [properties.rolloverEncryptionDetails] Rollover
   * encryption details for the fabric.
   * @member {string} [properties.rolloverEncryptionDetails.kekState] The key
   * encryption key state for the Vmm.
   * @member {string} [properties.rolloverEncryptionDetails.kekCertThumbprint]
   * The key encryption key certificate thumbprint.
   * @member {date} [properties.rolloverEncryptionDetails.kekCertExpiryDate]
   * The key encryption key certificate expiry date.
   * @member {string} [properties.internalIdentifier] Dra Registration Id.
   * @member {string} [properties.bcdrState] BCDR state of the fabric.
   * @member {object} [properties.customDetails] Fabric specific settings.
   * @member {string} [properties.customDetails.instanceType] Polymorphic
   * Discriminator
   * @member {array} [properties.healthErrorDetails] Fabric health error
   * details.
   * @member {string} [properties.health] Health of fabric.
   */
  constructor() {
    super();
  }

  /**
   * Defines the metadata of Fabric
   *
   * @returns {object} metadata of Fabric
   *
   */
  mapper() {
    return {
      required: false,
      serializedName: 'Fabric',
      type: {
        name: 'Composite',
        className: 'Fabric',
        modelProperties: {
          id: {
            required: false,
            readOnly: true,
            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'
            }
          },
          properties: {
            required: false,
            serializedName: 'properties',
            type: {
              name: 'Composite',
              className: 'FabricProperties'
            }
          }
        }
      }
    };
  }
}

module.exports = Fabric;
