generated/api/Models/ObjectStorageAsset.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>ObjectStorageAsset</summary> public partial class ObjectStorageAsset : Commvault.Powershell.Models.IObjectStorageAsset, Commvault.Powershell.Models.IObjectStorageAssetInternal { /// <summary>Backing field for <see cref="AccessNode" /> property.</summary> private Commvault.Powershell.Models.IIdName _accessNode; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName AccessNode { get => (this._accessNode = this._accessNode ?? new Commvault.Powershell.Models.IdName()); set => this._accessNode = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? AccessNodeId { get => ((Commvault.Powershell.Models.IIdNameInternal)AccessNode).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)AccessNode).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string AccessNodeName { get => ((Commvault.Powershell.Models.IIdNameInternal)AccessNode).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)AccessNode).Name = value ?? null; } /// <summary>Internal Acessors for AccessNode</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IObjectStorageAssetInternal.AccessNode { get => (this._accessNode = this._accessNode ?? new Commvault.Powershell.Models.IdName()); set { {_accessNode = value;} } } /// <summary>Internal Acessors for Credentials</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IObjectStorageAssetInternal.Credentials { get => (this._credentials = this._credentials ?? new Commvault.Powershell.Models.IdName()); set { {_credentials = value;} } } /// <summary>Backing field for <see cref="Credentials" /> property.</summary> private Commvault.Powershell.Models.IIdName _credentials; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Credentials { get => (this._credentials = this._credentials ?? new Commvault.Powershell.Models.IdName()); set => this._credentials = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CredentialsId { get => ((Commvault.Powershell.Models.IIdNameInternal)Credentials).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Credentials).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CredentialsName { get => ((Commvault.Powershell.Models.IIdNameInternal)Credentials).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Credentials).Name = value ?? null; } /// <summary>Backing field for <see cref="HostUrl" /> property.</summary> private string _hostUrl; /// <summary>Service account URL</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string HostUrl { get => this._hostUrl; set => this._hostUrl = value; } /// <summary>Backing field for <see cref="StorageName" /> property.</summary> private string _storageName; /// <summary>Name of the object storage</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string StorageName { get => this._storageName; set => this._storageName = value; } /// <summary>Backing field for <see cref="StorageType" /> property.</summary> private string _storageType; /// <summary>ObjectStorageAssetType</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string StorageType { get => this._storageType; set => this._storageType = value; } /// <summary>Creates an new <see cref="ObjectStorageAsset" /> instance.</summary> public ObjectStorageAsset() { } } /// ObjectStorageAsset public partial interface IObjectStorageAsset : 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? AccessNodeId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string AccessNodeName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CredentialsId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CredentialsName { get; set; } /// <summary>Service account URL</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Service account URL", SerializedName = @"hostURL", PossibleTypes = new [] { typeof(string) })] string HostUrl { get; set; } /// <summary>Name of the object storage</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Name of the object storage", SerializedName = @"storageName", PossibleTypes = new [] { typeof(string) })] string StorageName { get; set; } /// <summary>ObjectStorageAssetType</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"ObjectStorageAssetType", SerializedName = @"storageType", PossibleTypes = new [] { typeof(string) })] string StorageType { get; set; } } /// ObjectStorageAsset internal partial interface IObjectStorageAssetInternal { Commvault.Powershell.Models.IIdName AccessNode { get; set; } long? AccessNodeId { get; set; } string AccessNodeName { get; set; } Commvault.Powershell.Models.IIdName Credentials { get; set; } long? CredentialsId { get; set; } string CredentialsName { get; set; } /// <summary>Service account URL</summary> string HostUrl { get; set; } /// <summary>Name of the object storage</summary> string StorageName { get; set; } /// <summary>ObjectStorageAssetType</summary> string StorageType { get; set; } } } |