generated/api/Models/VaultTrackerOperationInfo.cs

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

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

    /// <summary>VaultTrackerAction information to perform operation</summary>
    public partial class VaultTrackerOperationInfo :
        Commvault.Powershell.Models.IVaultTrackerOperationInfo,
        Commvault.Powershell.Models.IVaultTrackerOperationInfoInternal
    {

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

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

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

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

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

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

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

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

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

        /// <summary>Backing field for <see cref="MediaList" /> property.</summary>
        private System.Collections.Generic.List<long> _mediaList;

        /// <summary>List of mediaIds</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<long> MediaList { get => this._mediaList; set => this._mediaList = value; }

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

        }
    }
    /// VaultTrackerAction information to perform operation
    public partial interface IVaultTrackerOperationInfo :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Id of action</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Id of action",
        SerializedName = @"actionId",
        PossibleTypes = new [] { typeof(long) })]
        long? ActionId { get; set; }

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string ContainerName { get; set; }
        /// <summary>Id of history</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Id of history",
        SerializedName = @"historyId",
        PossibleTypes = new [] { typeof(long) })]
        long? HistoryId { get; set; }
        /// <summary>List of mediaIds</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"List of mediaIds",
        SerializedName = @"mediaList",
        PossibleTypes = new [] { typeof(long) })]
        System.Collections.Generic.List<long> MediaList { get; set; }

    }
    /// VaultTrackerAction information to perform operation
    internal partial interface IVaultTrackerOperationInfoInternal

    {
        /// <summary>Id of action</summary>
        long? ActionId { get; set; }

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

        long? ContainerId { get; set; }

        string ContainerName { get; set; }
        /// <summary>Id of history</summary>
        long? HistoryId { get; set; }
        /// <summary>List of mediaIds</summary>
        System.Collections.Generic.List<long> MediaList { get; set; }

    }
}