generated/api/Models/MediaAgentSummary.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.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 MediaAgentSummary :
        Commvault.Powershell.Models.IMediaAgentSummary,
        Commvault.Powershell.Models.IMediaAgentSummaryInternal
    {

        /// <summary>Internal Acessors for Company</summary>
        Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IMediaAgentSummaryInternal.Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set { {_company = value;} } }

        /// <summary>Internal Acessors for OperatingSystem</summary>
        Commvault.Powershell.Models.IIdNameType Commvault.Powershell.Models.IMediaAgentSummaryInternal.OperatingSystem { get => (this._operatingSystem = this._operatingSystem ?? new Commvault.Powershell.Models.IdNameType()); set { {_operatingSystem = value;} } }

        /// <summary>Backing field for <see cref="Company" /> property.</summary>
        private Commvault.Powershell.Models.IIdName _company;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdName Company { get => (this._company = this._company ?? new Commvault.Powershell.Models.IdName()); set => this._company = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? CompanyId { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string CompanyName { get => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Company).Name = value ?? null; }

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

        /// <summary>Description of the media agent.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Description { get => this._description; set => this._description = value; }

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

        /// <summary>Display name of the media agent.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string DisplayName { get => this._displayName; set => this._displayName = value; }

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

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

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

        /// <summary>Used to determine if the MA is licensed or not.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsUnlicensedMa { get => this._isUnlicensedMa; set => this._isUnlicensedMa = value; }

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

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

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

        /// <summary>
        /// Provides a reason for the media agent being offline. Only given when the media agent is offline.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string OfflineReason { get => this._offlineReason; set => this._offlineReason = value; }

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

        /// <summary>A flag for offline reason. Only given when the media agent is offline.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? OfflineReasonValue { get => this._offlineReasonValue; set => this._offlineReasonValue = value; }

        /// <summary>Backing field for <see cref="OperatingSystem" /> property.</summary>
        private Commvault.Powershell.Models.IIdNameType _operatingSystem;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.IIdNameType OperatingSystem { get => (this._operatingSystem = this._operatingSystem ?? new Commvault.Powershell.Models.IdNameType()); set => this._operatingSystem = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public long? OperatingSystemId { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)OperatingSystem).Id; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)OperatingSystem).Id = value ?? default(long); }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string OperatingSystemName { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)OperatingSystem).Name; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)OperatingSystem).Name = value ?? null; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string OperatingSystemType { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)OperatingSystem).Type; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)OperatingSystem).Type = value ?? null; }

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

        /// <summary>Release version of the media agent.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? ReleaseId { get => this._releaseId; set => this._releaseId = value; }

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

        /// <summary>Current status of the media agent.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Status { get => this._status; set => this._status = value; }

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

        /// <summary>The service pack of the media agent.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Version { get => this._version; set => this._version = value; }

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

        }
    }
    public partial interface IMediaAgentSummary :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? CompanyId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string CompanyName { get; set; }
        /// <summary>Description of the media agent.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Description of the media agent.",
        SerializedName = @"description",
        PossibleTypes = new [] { typeof(string) })]
        string Description { get; set; }
        /// <summary>Display name of the media agent.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Display name of the media agent.",
        SerializedName = @"displayName",
        PossibleTypes = new [] { typeof(string) })]
        string DisplayName { get; set; }
        /// <summary>Id of the media agent.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Id of the media agent.",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? Id { get; set; }
        /// <summary>Used to determine if the MA is licensed or not.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Used to determine if the MA is licensed or not.",
        SerializedName = @"isUnlicensedMA",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsUnlicensedMa { get; set; }
        /// <summary>Name of the media agent.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Name of the media agent.",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }
        /// <summary>
        /// Provides a reason for the media agent being offline. Only given when the media agent is offline.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Provides a reason for the media agent being offline. Only given when the media agent is offline.",
        SerializedName = @"offlineReason",
        PossibleTypes = new [] { typeof(string) })]
        string OfflineReason { get; set; }
        /// <summary>A flag for offline reason. Only given when the media agent is offline.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"A flag for offline reason. Only given when the media agent is offline.",
        SerializedName = @"offlineReasonValue",
        PossibleTypes = new [] { typeof(long) })]
        long? OfflineReasonValue { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long? OperatingSystemId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string OperatingSystemName { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"type",
        PossibleTypes = new [] { typeof(string) })]
        string OperatingSystemType { get; set; }
        /// <summary>Release version of the media agent.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Release version of the media agent.",
        SerializedName = @"releaseId",
        PossibleTypes = new [] { typeof(long) })]
        long? ReleaseId { get; set; }
        /// <summary>Current status of the media agent.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Current status of the media agent.",
        SerializedName = @"status",
        PossibleTypes = new [] { typeof(string) })]
        string Status { get; set; }
        /// <summary>The service pack of the media agent.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The service pack of the media agent.",
        SerializedName = @"version",
        PossibleTypes = new [] { typeof(string) })]
        string Version { get; set; }

    }
    internal partial interface IMediaAgentSummaryInternal

    {
        Commvault.Powershell.Models.IIdName Company { get; set; }

        long? CompanyId { get; set; }

        string CompanyName { get; set; }
        /// <summary>Description of the media agent.</summary>
        string Description { get; set; }
        /// <summary>Display name of the media agent.</summary>
        string DisplayName { get; set; }
        /// <summary>Id of the media agent.</summary>
        long? Id { get; set; }
        /// <summary>Used to determine if the MA is licensed or not.</summary>
        bool? IsUnlicensedMa { get; set; }
        /// <summary>Name of the media agent.</summary>
        string Name { get; set; }
        /// <summary>
        /// Provides a reason for the media agent being offline. Only given when the media agent is offline.
        /// </summary>
        string OfflineReason { get; set; }
        /// <summary>A flag for offline reason. Only given when the media agent is offline.</summary>
        long? OfflineReasonValue { get; set; }

        Commvault.Powershell.Models.IIdNameType OperatingSystem { get; set; }

        long? OperatingSystemId { get; set; }

        string OperatingSystemName { get; set; }

        string OperatingSystemType { get; set; }
        /// <summary>Release version of the media agent.</summary>
        long? ReleaseId { get; set; }
        /// <summary>Current status of the media agent.</summary>
        string Status { get; set; }
        /// <summary>The service pack of the media agent.</summary>
        string Version { get; set; }

    }
}