generated/api/Models/CreateArchivePlanBackupDestinations.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; public partial class CreateArchivePlanBackupDestinations : Commvault.Powershell.Models.ICreateArchivePlanBackupDestinations, Commvault.Powershell.Models.ICreateArchivePlanBackupDestinationsInternal { /// <summary>Internal Acessors for Region</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICreateArchivePlanBackupDestinationsInternal.Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdName()); set { {_region = value;} } } /// <summary>Backing field for <see cref="Destinations" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.ICreateArchivePlanBackupDestination> _destinations; /// <summary>List of backup destinations to create</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.ICreateArchivePlanBackupDestination> Destinations { get => this._destinations; set => this._destinations = value; } /// <summary>Backing field for <see cref="Region" /> property.</summary> private Commvault.Powershell.Models.IIdName _region; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdName()); set => this._region = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? RegionId { get => ((Commvault.Powershell.Models.IIdNameInternal)Region).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Region).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RegionName { get => ((Commvault.Powershell.Models.IIdNameInternal)Region).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Region).Name = value ?? null; } /// <summary>Creates an new <see cref="CreateArchivePlanBackupDestinations" /> instance.</summary> public CreateArchivePlanBackupDestinations() { } } public partial interface ICreateArchivePlanBackupDestinations : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>List of backup destinations to create</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"List of backup destinations to create", SerializedName = @"destinations", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ICreateArchivePlanBackupDestination) })] System.Collections.Generic.List<Commvault.Powershell.Models.ICreateArchivePlanBackupDestination> Destinations { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? RegionId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string RegionName { get; set; } } internal partial interface ICreateArchivePlanBackupDestinationsInternal { /// <summary>List of backup destinations to create</summary> System.Collections.Generic.List<Commvault.Powershell.Models.ICreateArchivePlanBackupDestination> Destinations { get; set; } Commvault.Powershell.Models.IIdName Region { get; set; } long? RegionId { get; set; } string RegionName { get; set; } } } |