generated/api/Models/OverrideReplicationOptionsAzureCreate.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;

    /// <summary>
    /// Replication options for Azure. Provide both of the name and the guid of the source VM and provide the id and the name
    /// of the security group
    /// </summary>
    public partial class OverrideReplicationOptionsAzureCreate :
        Commvault.Powershell.Models.IOverrideReplicationOptionsAzureCreate,
        Commvault.Powershell.Models.IOverrideReplicationOptionsAzureCreateInternal
    {

        /// <summary>Internal Acessors for SecurityGroup</summary>
        Commvault.Powershell.Models.ISecurityGroup Commvault.Powershell.Models.IOverrideReplicationOptionsAzureCreateInternal.SecurityGroup { get => (this._securityGroup = this._securityGroup ?? new Commvault.Powershell.Models.SecurityGroup()); set { {_securityGroup = value;} } }

        /// <summary>Internal Acessors for SourceVM</summary>
        Commvault.Powershell.Models.INameGuid Commvault.Powershell.Models.IOverrideReplicationOptionsAzureCreateInternal.SourceVM { get => (this._sourceVM = this._sourceVM ?? new Commvault.Powershell.Models.NameGuid()); set { {_sourceVM = value;} } }

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

        /// <summary>Creates a public IP on the destination VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? CreatePublicIP { get => this._createPublicIP; set => this._createPublicIP = value; }

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

        /// <summary>
        /// The id of the disk type to be used for the destination VM. Default value is Auto
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string DiskTypeId { get => this._diskTypeId; set => this._diskTypeId = value; }

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

        /// <summary>The name of the region where the destination VM will reside</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Region { get => this._region; set => this._region = value; }

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

        /// <summary>The resource group to be used for the destination VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ResourceGroup { get => this._resourceGroup; set => this._resourceGroup = value; }

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

        /// <summary>Creates the destination as a managed VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? RestoreAsManagedVM { get => this._restoreAsManagedVM; set => this._restoreAsManagedVM = value; }

        /// <summary>Backing field for <see cref="SecurityGroup" /> property.</summary>
        private Commvault.Powershell.Models.ISecurityGroup _securityGroup;

        /// <summary>The id and the name of the security group</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.ISecurityGroup SecurityGroup { get => (this._securityGroup = this._securityGroup ?? new Commvault.Powershell.Models.SecurityGroup()); set => this._securityGroup = value; }

        /// <summary>Security group id</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SecurityGroupId { get => ((Commvault.Powershell.Models.ISecurityGroupInternal)SecurityGroup).Id; set => ((Commvault.Powershell.Models.ISecurityGroupInternal)SecurityGroup).Id = value ?? null; }

        /// <summary>security group name</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SecurityGroupName { get => ((Commvault.Powershell.Models.ISecurityGroupInternal)SecurityGroup).Name; set => ((Commvault.Powershell.Models.ISecurityGroupInternal)SecurityGroup).Name = value ?? null; }

        /// <summary>Backing field for <see cref="SourceVM" /> property.</summary>
        private Commvault.Powershell.Models.INameGuid _sourceVM;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        internal Commvault.Powershell.Models.INameGuid SourceVM { get => (this._sourceVM = this._sourceVM ?? new Commvault.Powershell.Models.NameGuid()); set => this._sourceVM = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)]
        public string SourceVMGuid { get => ((Commvault.Powershell.Models.INameGuidInternal)SourceVM).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)SourceVM).Guid = value ?? null; }

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

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

        /// <summary>The name of the storage account to be used on the destination VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string StorageAccount { get => this._storageAccount; set => this._storageAccount = value; }

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

        /// <summary>Display name of destination VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string VMDisplayName { get => this._vMDisplayName; set => this._vMDisplayName = value; }

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

        /// <summary>
        /// The id of the vm size to be applied to the destination VM. Default value is Auto
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string VMSizeId { get => this._vMSizeId; set => this._vMSizeId = value; }

        /// <summary>Backing field for <see cref="VirtualNetwork" /> property.</summary>
        private Commvault.Powershell.Models.INetworkSubnet[] _virtualNetwork;

        /// <summary>The network to be used on the desination VM. Default value is Auto</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.INetworkSubnet[] VirtualNetwork { get => this._virtualNetwork; set => this._virtualNetwork = value; }

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

        }
    }
    /// Replication options for Azure. Provide both of the name and the guid of the source VM and provide the id and the name
    /// of the security group
    public partial interface IOverrideReplicationOptionsAzureCreate :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Creates a public IP on the destination VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Creates a public IP on the destination VM",
        SerializedName = @"createPublicIP",
        PossibleTypes = new [] { typeof(bool) })]
        bool? CreatePublicIP { get; set; }
        /// <summary>
        /// The id of the disk type to be used for the destination VM. Default value is Auto
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The id of the disk type to be used for the destination VM. Default value is Auto",
        SerializedName = @"diskTypeId",
        PossibleTypes = new [] { typeof(string) })]
        string DiskTypeId { get; set; }
        /// <summary>The name of the region where the destination VM will reside</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"The name of the region where the destination VM will reside",
        SerializedName = @"region",
        PossibleTypes = new [] { typeof(string) })]
        string Region { get; set; }
        /// <summary>The resource group to be used for the destination VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"The resource group to be used for the destination VM",
        SerializedName = @"resourceGroup",
        PossibleTypes = new [] { typeof(string) })]
        string ResourceGroup { get; set; }
        /// <summary>Creates the destination as a managed VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Creates the destination as a managed VM",
        SerializedName = @"restoreAsManagedVM",
        PossibleTypes = new [] { typeof(bool) })]
        bool? RestoreAsManagedVM { get; set; }
        /// <summary>Security group id</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Security group id",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(string) })]
        string SecurityGroupId { get; set; }
        /// <summary>security group name</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"security group name",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string SecurityGroupName { get; set; }

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

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string SourceVMName { get; set; }
        /// <summary>The name of the storage account to be used on the destination VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"The name of the storage account to be used on the destination VM",
        SerializedName = @"storageAccount",
        PossibleTypes = new [] { typeof(string) })]
        string StorageAccount { get; set; }
        /// <summary>Display name of destination VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"Display name of destination VM",
        SerializedName = @"vmDisplayName",
        PossibleTypes = new [] { typeof(string) })]
        string VMDisplayName { get; set; }
        /// <summary>
        /// The id of the vm size to be applied to the destination VM. Default value is Auto
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The id of the vm size to be applied to the destination VM. Default value is Auto",
        SerializedName = @"vmSizeId",
        PossibleTypes = new [] { typeof(string) })]
        string VMSizeId { get; set; }
        /// <summary>The network to be used on the desination VM. Default value is Auto</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The network to be used on the desination VM. Default value is Auto",
        SerializedName = @"virtualNetwork",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.INetworkSubnet) })]
        Commvault.Powershell.Models.INetworkSubnet[] VirtualNetwork { get; set; }

    }
    /// Replication options for Azure. Provide both of the name and the guid of the source VM and provide the id and the name
    /// of the security group
    internal partial interface IOverrideReplicationOptionsAzureCreateInternal

    {
        /// <summary>Creates a public IP on the destination VM</summary>
        bool? CreatePublicIP { get; set; }
        /// <summary>
        /// The id of the disk type to be used for the destination VM. Default value is Auto
        /// </summary>
        string DiskTypeId { get; set; }
        /// <summary>The name of the region where the destination VM will reside</summary>
        string Region { get; set; }
        /// <summary>The resource group to be used for the destination VM</summary>
        string ResourceGroup { get; set; }
        /// <summary>Creates the destination as a managed VM</summary>
        bool? RestoreAsManagedVM { get; set; }
        /// <summary>The id and the name of the security group</summary>
        Commvault.Powershell.Models.ISecurityGroup SecurityGroup { get; set; }
        /// <summary>Security group id</summary>
        string SecurityGroupId { get; set; }
        /// <summary>security group name</summary>
        string SecurityGroupName { get; set; }

        Commvault.Powershell.Models.INameGuid SourceVM { get; set; }

        string SourceVMGuid { get; set; }

        string SourceVMName { get; set; }
        /// <summary>The name of the storage account to be used on the destination VM</summary>
        string StorageAccount { get; set; }
        /// <summary>Display name of destination VM</summary>
        string VMDisplayName { get; set; }
        /// <summary>
        /// The id of the vm size to be applied to the destination VM. Default value is Auto
        /// </summary>
        string VMSizeId { get; set; }
        /// <summary>The network to be used on the desination VM. Default value is Auto</summary>
        Commvault.Powershell.Models.INetworkSubnet[] VirtualNetwork { get; set; }

    }
}