generated/api/Models/CompanySummary.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.4, generator: @autorest/powershell@3.0.415)
// Changes may cause incorrect behavior and will be lost if the code is regenerated.

namespace Commvault.Powershell.Models
{
    using static Commvault.Powershell.Runtime.Extensions;

    public partial class CompanySummary :
        Commvault.Powershell.Models.ICompanySummary,
        Commvault.Powershell.Models.ICompanySummaryInternal
    {

        /// <summary>Backing field for <see cref="AssociatedEntitiesCount" /> property.</summary>
        private long? _associatedEntitiesCount;

        /// <summary>Gives the number of entities associated with the company</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? AssociatedEntitiesCount { get => this._associatedEntitiesCount; set => this._associatedEntitiesCount = value; }

        /// <summary>Backing field for <see cref="Deactivated" /> property.</summary>
        private bool? _deactivated;

        /// <summary>Gives the company status</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Deactivated { get => this._deactivated; set => this._deactivated = value; }

        /// <summary>Backing field for <see cref="Id" /> property.</summary>
        private long? _id;

        /// <summary>Company Id</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? Id { get => this._id; set => this._id = value; }

        /// <summary>Backing field for <see cref="Name" /> property.</summary>
        private string _name;

        /// <summary>Company name</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

        /// <summary>Backing field for <see cref="PrimaryContacts" /> property.</summary>
        private Commvault.Powershell.Models.IIdName[] _primaryContacts;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IIdName[] PrimaryContacts { get => this._primaryContacts; set => this._primaryContacts = value; }

        /// <summary>Creates an new <see cref="CompanySummary" /> instance.</summary>
        public CompanySummary()
        {

        }
    }
    public partial interface ICompanySummary :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Gives the number of entities associated with the company</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Gives the number of entities associated with the company",
        SerializedName = @"associatedEntitiesCount",
        PossibleTypes = new [] { typeof(long) })]
        long? AssociatedEntitiesCount { get; set; }
        /// <summary>Gives the company status</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Gives the company status",
        SerializedName = @"deactivated",
        PossibleTypes = new [] { typeof(bool) })]
        bool? Deactivated { get; set; }
        /// <summary>Company Id</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Company Id",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? Id { get; set; }
        /// <summary>Company name</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Company name",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"primaryContacts",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })]
        Commvault.Powershell.Models.IIdName[] PrimaryContacts { get; set; }

    }
    internal partial interface ICompanySummaryInternal

    {
        /// <summary>Gives the number of entities associated with the company</summary>
        long? AssociatedEntitiesCount { get; set; }
        /// <summary>Gives the company status</summary>
        bool? Deactivated { get; set; }
        /// <summary>Company Id</summary>
        long? Id { get; set; }
        /// <summary>Company name</summary>
        string Name { get; set; }

        Commvault.Powershell.Models.IIdName[] PrimaryContacts { get; set; }

    }
}