generated/api/Models/CrdCloudAccount.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>Cloud account eligible for Cloud Resource Discovery</summary> public partial class CrdCloudAccount : Commvault.Powershell.Models.ICrdCloudAccount, Commvault.Powershell.Models.ICrdCloudAccountInternal { /// <summary>Backing field for <see cref="Client" /> property.</summary> private Commvault.Powershell.Models.IIdName _client; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Client { get => (this._client = this._client ?? new Commvault.Powershell.Models.IdName()); set => this._client = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ClientId { get => ((Commvault.Powershell.Models.IIdNameInternal)Client).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Client).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ClientName { get => ((Commvault.Powershell.Models.IIdNameInternal)Client).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Client).Name = value ?? null; } /// <summary>Internal Acessors for Client</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICrdCloudAccountInternal.Client { get => (this._client = this._client ?? new Commvault.Powershell.Models.IdName()); set { {_client = value;} } } /// <summary>Backing field for <see cref="SubscriptionId" /> property.</summary> private string _subscriptionId; /// <summary>Subscription Id of the cloud account</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string SubscriptionId { get => this._subscriptionId; set => this._subscriptionId = value; } /// <summary>Creates an new <see cref="CrdCloudAccount" /> instance.</summary> public CrdCloudAccount() { } } /// Cloud account eligible for Cloud Resource Discovery public partial interface ICrdCloudAccount : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ClientId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ClientName { get; set; } /// <summary>Subscription Id of the cloud account</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Subscription Id of the cloud account", SerializedName = @"subscriptionId", PossibleTypes = new [] { typeof(string) })] string SubscriptionId { get; set; } } /// Cloud account eligible for Cloud Resource Discovery internal partial interface ICrdCloudAccountInternal { Commvault.Powershell.Models.IIdName Client { get; set; } long? ClientId { get; set; } string ClientName { get; set; } /// <summary>Subscription Id of the cloud account</summary> string SubscriptionId { get; set; } } } |