generated/api/Models/VaultTrackerAction.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>Info of Vault Tracker Action</summary> public partial class VaultTrackerAction : Commvault.Powershell.Models.IVaultTrackerAction, Commvault.Powershell.Models.IVaultTrackerActionInternal { /// <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>Backing field for <see cref="ActionStatus" /> property.</summary> private string _actionStatus; /// <summary>Status of action</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ActionStatus { get => this._actionStatus; set => this._actionStatus = value; } /// <summary>Backing field for <see cref="ActionType" /> property.</summary> private string _actionType; /// <summary>Enum for Action Type</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ActionType { get => this._actionType; set => this._actionType = value; } /// <summary>Backing field for <see cref="ActionTypeStr" /> property.</summary> private string _actionTypeStr; /// <summary>Action Type</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ActionTypeStr { get => this._actionTypeStr; set => this._actionTypeStr = value; } /// <summary>Internal Acessors for DestinationLocation</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerActionInternal.DestinationLocation { get => (this._destinationLocation = this._destinationLocation ?? new Commvault.Powershell.Models.IdName()); set { {_destinationLocation = value;} } } /// <summary>Internal Acessors for SourceLocation</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerActionInternal.SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Commvault.Powershell.Models.IdName()); set { {_sourceLocation = value;} } } /// <summary>Internal Acessors for TransitLocation</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerActionInternal.TransitLocation { get => (this._transitLocation = this._transitLocation ?? new Commvault.Powershell.Models.IdName()); set { {_transitLocation = value;} } } /// <summary>Backing field for <see cref="CompletionTime" /> property.</summary> private long? _completionTime; /// <summary>End time of action</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? CompletionTime { get => this._completionTime; set => this._completionTime = value; } /// <summary>Backing field for <see cref="DestinationLocation" /> property.</summary> private Commvault.Powershell.Models.IIdName _destinationLocation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName DestinationLocation { get => (this._destinationLocation = this._destinationLocation ?? new Commvault.Powershell.Models.IdName()); set => this._destinationLocation = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? DestinationLocationId { get => ((Commvault.Powershell.Models.IIdNameInternal)DestinationLocation).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)DestinationLocation).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DestinationLocationName { get => ((Commvault.Powershell.Models.IIdNameInternal)DestinationLocation).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)DestinationLocation).Name = value ?? null; } /// <summary>Backing field for <see cref="Initiator" /> property.</summary> private string _initiator; /// <summary>Initiator of action</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Initiator { get => this._initiator; set => this._initiator = value; } /// <summary>Backing field for <see cref="JobId" /> property.</summary> private long? _jobId; /// <summary>Id of job</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? JobId { get => this._jobId; set => this._jobId = value; } /// <summary>Backing field for <see cref="LibraryId" /> property.</summary> private long? _libraryId; /// <summary>Id of Library</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? LibraryId { get => this._libraryId; set => this._libraryId = value; } /// <summary>Backing field for <see cref="PolicyId" /> property.</summary> private long? _policyId; /// <summary>Id of Policy</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? PolicyId { get => this._policyId; set => this._policyId = value; } /// <summary>Backing field for <see cref="RecallExpirationTime" /> property.</summary> private long? _recallExpirationTime; /// <summary>RecallExpirationTime time of action</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? RecallExpirationTime { get => this._recallExpirationTime; set => this._recallExpirationTime = value; } /// <summary>Backing field for <see cref="SourceLocation" /> property.</summary> private Commvault.Powershell.Models.IIdName _sourceLocation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Commvault.Powershell.Models.IdName()); set => this._sourceLocation = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SourceLocationId { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceLocationName { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Name = value ?? null; } /// <summary>Backing field for <see cref="StartTime" /> property.</summary> private long? _startTime; /// <summary>Start time of action</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? StartTime { get => this._startTime; set => this._startTime = value; } /// <summary>Backing field for <see cref="TransitLocation" /> property.</summary> private Commvault.Powershell.Models.IIdName _transitLocation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName TransitLocation { get => (this._transitLocation = this._transitLocation ?? new Commvault.Powershell.Models.IdName()); set => this._transitLocation = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? TransitLocationId { get => ((Commvault.Powershell.Models.IIdNameInternal)TransitLocation).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)TransitLocation).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string TransitLocationName { get => ((Commvault.Powershell.Models.IIdNameInternal)TransitLocation).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)TransitLocation).Name = value ?? null; } /// <summary>Backing field for <see cref="UserId" /> property.</summary> private long? _userId; /// <summary>Id of User</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? UserId { get => this._userId; set => this._userId = value; } /// <summary>Creates an new <see cref="VaultTrackerAction" /> instance.</summary> public VaultTrackerAction() { } } /// Info of Vault Tracker Action public partial interface IVaultTrackerAction : 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; } /// <summary>Status of action</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Status of action", SerializedName = @"actionStatus", PossibleTypes = new [] { typeof(string) })] string ActionStatus { get; set; } /// <summary>Enum for Action Type</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Enum for Action Type", SerializedName = @"actionType", PossibleTypes = new [] { typeof(string) })] string ActionType { get; set; } /// <summary>Action Type</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Action Type", SerializedName = @"actionTypeStr", PossibleTypes = new [] { typeof(string) })] string ActionTypeStr { get; set; } /// <summary>End time of action</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"End time of action", SerializedName = @"completionTime", PossibleTypes = new [] { typeof(long) })] long? CompletionTime { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? DestinationLocationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string DestinationLocationName { get; set; } /// <summary>Initiator of action</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Initiator of action", SerializedName = @"initiator", PossibleTypes = new [] { typeof(string) })] string Initiator { get; set; } /// <summary>Id of job</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of job", SerializedName = @"jobId", PossibleTypes = new [] { typeof(long) })] long? JobId { get; set; } /// <summary>Id of Library</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of Library", SerializedName = @"libraryId", PossibleTypes = new [] { typeof(long) })] long? LibraryId { get; set; } /// <summary>Id of Policy</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of Policy", SerializedName = @"policyId", PossibleTypes = new [] { typeof(long) })] long? PolicyId { get; set; } /// <summary>RecallExpirationTime time of action</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"RecallExpirationTime time of action", SerializedName = @"recallExpirationTime", PossibleTypes = new [] { typeof(long) })] long? RecallExpirationTime { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SourceLocationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SourceLocationName { get; set; } /// <summary>Start time of action</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Start time of action", SerializedName = @"startTime", PossibleTypes = new [] { typeof(long) })] long? StartTime { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? TransitLocationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string TransitLocationName { get; set; } /// <summary>Id of User</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of User", SerializedName = @"userId", PossibleTypes = new [] { typeof(long) })] long? UserId { get; set; } } /// Info of Vault Tracker Action internal partial interface IVaultTrackerActionInternal { /// <summary>Id of Action</summary> long? ActionId { get; set; } /// <summary>Status of action</summary> string ActionStatus { get; set; } /// <summary>Enum for Action Type</summary> string ActionType { get; set; } /// <summary>Action Type</summary> string ActionTypeStr { get; set; } /// <summary>End time of action</summary> long? CompletionTime { get; set; } Commvault.Powershell.Models.IIdName DestinationLocation { get; set; } long? DestinationLocationId { get; set; } string DestinationLocationName { get; set; } /// <summary>Initiator of action</summary> string Initiator { get; set; } /// <summary>Id of job</summary> long? JobId { get; set; } /// <summary>Id of Library</summary> long? LibraryId { get; set; } /// <summary>Id of Policy</summary> long? PolicyId { get; set; } /// <summary>RecallExpirationTime time of action</summary> long? RecallExpirationTime { get; set; } Commvault.Powershell.Models.IIdName SourceLocation { get; set; } long? SourceLocationId { get; set; } string SourceLocationName { get; set; } /// <summary>Start time of action</summary> long? StartTime { get; set; } Commvault.Powershell.Models.IIdName TransitLocation { get; set; } long? TransitLocationId { get; set; } string TransitLocationName { get; set; } /// <summary>Id of User</summary> long? UserId { get; set; } } } |