generated/api/Models/TapeMediaOperationsReq.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>Request body to perform tape media operations</summary>
    public partial class TapeMediaOperationsReq :
        Commvault.Powershell.Models.ITapeMediaOperationsReq,
        Commvault.Powershell.Models.ITapeMediaOperationsReqInternal
    {

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

        /// <summary>
        /// In case of REPLACE_BARCODE, media barcode is replaced with barcode sent. In other cases of UpdateBarcodeOpType, barcode
        /// sent is added or removed according to the type specified. For instance, in case of ADD_SUFFIX, the barcode sent will be
        /// appended to the end of barcodes of all the medias sent in request.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Barcode { get => this._barcode; set => this._barcode = value; }

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

        /// <summary>
        /// In case of MOVE_MEDIA, this field should be set to specify the destination spare group
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? DestSpareGroupId { get => this._destSpareGroupId; set => this._destSpareGroupId = value; }

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

        /// <summary>
        /// List of Media Ids for which operation needs to performed. NOTE : In case of QUICK_ERASE_SELECTED_MEDIA and FULL_ERASE_SELECTED_MEDIA
        /// single mediaId should be sent.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<long> MediaList { get => this._mediaList; set => this._mediaList = value; }

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

        /// <summary>MediaType list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? MediaTypeId { get => this._mediaTypeId; set => this._mediaTypeId = value; }

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

        /// <summary>Tape media operation type value</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string OperationType { get => this._operationType; set => this._operationType = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public System.Collections.Generic.List<long> SlotList { get => this._slotList; set => this._slotList = value; }

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

        /// <summary>SpareGroup list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? SpareGroupId { get => this._spareGroupId; set => this._spareGroupId = value; }

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

        /// <summary>
        /// Type of Barcode update being performed. NOTE : If Barcode update is being performed for more than one media, REPLACE_BARCODE
        /// is not supported as it will result in duplicate barcodes.
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string UpdateBarcodeOpType { get => this._updateBarcodeOpType; set => this._updateBarcodeOpType = value; }

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

        }
    }
    /// Request body to perform tape media operations
    public partial interface ITapeMediaOperationsReq :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>
        /// In case of REPLACE_BARCODE, media barcode is replaced with barcode sent. In other cases of UpdateBarcodeOpType, barcode
        /// sent is added or removed according to the type specified. For instance, in case of ADD_SUFFIX, the barcode sent will be
        /// appended to the end of barcodes of all the medias sent in request.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"In case of REPLACE_BARCODE, media barcode is replaced with barcode sent. In other cases of UpdateBarcodeOpType, barcode sent is added or removed according to the type specified. For instance, in case of ADD_SUFFIX, the barcode sent will be appended to the end of barcodes of all the medias sent in request.",
        SerializedName = @"barcode",
        PossibleTypes = new [] { typeof(string) })]
        string Barcode { get; set; }
        /// <summary>
        /// In case of MOVE_MEDIA, this field should be set to specify the destination spare group
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"In case of MOVE_MEDIA, this field should be set to specify the destination spare group",
        SerializedName = @"destSpareGroupId",
        PossibleTypes = new [] { typeof(long) })]
        long? DestSpareGroupId { get; set; }
        /// <summary>
        /// List of Media Ids for which operation needs to performed. NOTE : In case of QUICK_ERASE_SELECTED_MEDIA and FULL_ERASE_SELECTED_MEDIA
        /// single mediaId should be sent.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"List of Media Ids for which operation needs to performed. NOTE : In case of QUICK_ERASE_SELECTED_MEDIA and FULL_ERASE_SELECTED_MEDIA single mediaId should be sent.",
        SerializedName = @"mediaList",
        PossibleTypes = new [] { typeof(long) })]
        System.Collections.Generic.List<long> MediaList { get; set; }
        /// <summary>MediaType list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"MediaType list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType",
        SerializedName = @"mediaTypeId",
        PossibleTypes = new [] { typeof(long) })]
        long? MediaTypeId { get; set; }
        /// <summary>Tape media operation type value</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Tape media operation type value",
        SerializedName = @"operationType",
        PossibleTypes = new [] { typeof(string) })]
        string OperationType { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"",
        SerializedName = @"slotList",
        PossibleTypes = new [] { typeof(long) })]
        System.Collections.Generic.List<long> SlotList { get; set; }
        /// <summary>SpareGroup list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"SpareGroup list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType",
        SerializedName = @"spareGroupId",
        PossibleTypes = new [] { typeof(long) })]
        long? SpareGroupId { get; set; }
        /// <summary>
        /// Type of Barcode update being performed. NOTE : If Barcode update is being performed for more than one media, REPLACE_BARCODE
        /// is not supported as it will result in duplicate barcodes.
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Type of Barcode update being performed. NOTE : If Barcode update is being performed for more than one media, REPLACE_BARCODE is not supported as it will result in duplicate barcodes.",
        SerializedName = @"UpdateBarcodeOpType",
        PossibleTypes = new [] { typeof(string) })]
        string UpdateBarcodeOpType { get; set; }

    }
    /// Request body to perform tape media operations
    internal partial interface ITapeMediaOperationsReqInternal

    {
        /// <summary>
        /// In case of REPLACE_BARCODE, media barcode is replaced with barcode sent. In other cases of UpdateBarcodeOpType, barcode
        /// sent is added or removed according to the type specified. For instance, in case of ADD_SUFFIX, the barcode sent will be
        /// appended to the end of barcodes of all the medias sent in request.
        /// </summary>
        string Barcode { get; set; }
        /// <summary>
        /// In case of MOVE_MEDIA, this field should be set to specify the destination spare group
        /// </summary>
        long? DestSpareGroupId { get; set; }
        /// <summary>
        /// List of Media Ids for which operation needs to performed. NOTE : In case of QUICK_ERASE_SELECTED_MEDIA and FULL_ERASE_SELECTED_MEDIA
        /// single mediaId should be sent.
        /// </summary>
        System.Collections.Generic.List<long> MediaList { get; set; }
        /// <summary>MediaType list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType</summary>
        long? MediaTypeId { get; set; }
        /// <summary>Tape media operation type value</summary>
        string OperationType { get; set; }

        System.Collections.Generic.List<long> SlotList { get; set; }
        /// <summary>SpareGroup list must be fetched from GET V4/Storage/Tape/{libraryId}/MediaType</summary>
        long? SpareGroupId { get; set; }
        /// <summary>
        /// Type of Barcode update being performed. NOTE : If Barcode update is being performed for more than one media, REPLACE_BARCODE
        /// is not supported as it will result in duplicate barcodes.
        /// </summary>
        string UpdateBarcodeOpType { get; set; }

    }
}