generated/api/Models/EditArray.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 to pass for Edit Array</summary> public partial class EditArray : Commvault.Powershell.Models.IEditArray, Commvault.Powershell.Models.IEditArrayInternal { /// <summary>Backing field for <see cref="AccessNodes" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IArrayAccessNodes> _accessNodes; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IArrayAccessNodes> AccessNodes { get => this._accessNodes; set => this._accessNodes = value; } /// <summary>Internal Acessors for General</summary> Commvault.Powershell.Models.IEditArrayInfo Commvault.Powershell.Models.IEditArrayInternal.General { get => (this._general = this._general ?? new Commvault.Powershell.Models.EditArrayInfo()); set { {_general = value;} } } /// <summary>Internal Acessors for GeneralCredential</summary> Commvault.Powershell.Models.IArrayUserPassword Commvault.Powershell.Models.IEditArrayInternal.GeneralCredential { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Credential; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Credential = value; } /// <summary>Internal Acessors for GeneralRegion</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IEditArrayInternal.GeneralRegion { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Region; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Region = value; } /// <summary>Internal Acessors for GeneralSavedCredential</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IEditArrayInternal.GeneralSavedCredential { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).SavedCredential; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).SavedCredential = value; } /// <summary>Internal Acessors for Security</summary> Commvault.Powershell.Models.IUpdateSecurityAssoc Commvault.Powershell.Models.IEditArrayInternal.Security { get => (this._security = this._security ?? new Commvault.Powershell.Models.UpdateSecurityAssoc()); set { {_security = value;} } } /// <summary>Internal Acessors for SecurityRole</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IEditArrayInternal.SecurityRole { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).Role; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).Role = value; } /// <summary>Internal Acessors for SecurityUser</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IEditArrayInternal.SecurityUser { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).User; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).User = value; } /// <summary>Internal Acessors for SecurityUserGroup</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IEditArrayInternal.SecurityUserGroup { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserGroup; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserGroup = value; } /// <summary>Base 64 encoded Password to access the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CredentialPassword { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).CredentialPassword; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).CredentialPassword = value ?? null; } /// <summary>Username to access the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CredentialUserName { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).CredentialUserName; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).CredentialUserName = value ?? null; } /// <summary>Backing field for <see cref="General" /> property.</summary> private Commvault.Powershell.Models.IEditArrayInfo _general; /// <summary> /// Template for the editable generic information of an array. Region depicts the workload region which is only applicable /// to NetApp arrays as of now. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IEditArrayInfo General { get => (this._general = this._general ?? new Commvault.Powershell.Models.EditArrayInfo()); set => this._general = value; } /// <summary>Host name of the array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GeneralControlHost { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).ControlHost; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).ControlHost = value ?? null; } /// <summary>Description about the Array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GeneralDescription { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Description; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Description = value ?? null; } /// <summary>Flags to be set for array</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? GeneralFlags { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Flags; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).Flags = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? RegionId { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).RegionId; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).RegionId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RegionName { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).RegionName; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).RegionName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? RoleId { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).RoleId; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).RoleId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string RoleName { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).RoleName; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).RoleName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SavedCredentialId { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).SavedCredentialId; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).SavedCredentialId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SavedCredentialName { get => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).SavedCredentialName; set => ((Commvault.Powershell.Models.IEditArrayInfoInternal)General).SavedCredentialName = value ?? null; } /// <summary>Backing field for <see cref="Security" /> property.</summary> private Commvault.Powershell.Models.IUpdateSecurityAssoc _security; /// <summary> /// A list of users or user groups each having a specific set of roles that determine the kind of operations they can perform /// on the entity. Either id/name of the user/usergroup/roles can be provided. If both id and name are provided, id will be /// taken into consideration. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IUpdateSecurityAssoc Security { get => (this._security = this._security ?? new Commvault.Powershell.Models.UpdateSecurityAssoc()); set => this._security = value; } /// <summary>Backing field for <see cref="SnapConfigurations" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IArrayConfigsEdit> _snapConfigurations; /// <summary>Configurations related to a snap engine</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IArrayConfigsEdit> SnapConfigurations { get => this._snapConfigurations; set => this._snapConfigurations = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? UserGroupId { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserGroupId; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserGroupId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string UserGroupName { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserGroupName; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserGroupName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? UserId { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserId; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string UserName { get => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserName; set => ((Commvault.Powershell.Models.IUpdateSecurityAssocInternal)Security).UserName = value ?? null; } /// <summary>Creates an new <see cref="EditArray" /> instance.</summary> public EditArray() { } } /// Request to pass for Edit Array public partial interface IEditArray : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"accessNodes", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IArrayAccessNodes) })] System.Collections.Generic.List<Commvault.Powershell.Models.IArrayAccessNodes> AccessNodes { get; set; } /// <summary>Base 64 encoded Password to access the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Base 64 encoded Password to access the array", SerializedName = @"password", PossibleTypes = new [] { typeof(string) })] string CredentialPassword { get; set; } /// <summary>Username to access the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Username to access the array", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] string CredentialUserName { get; set; } /// <summary>Host name of the array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Host name of the array", SerializedName = @"controlHost", PossibleTypes = new [] { typeof(string) })] string GeneralControlHost { get; set; } /// <summary>Description about the Array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Description about the Array", SerializedName = @"description", PossibleTypes = new [] { typeof(string) })] string GeneralDescription { get; set; } /// <summary>Flags to be set for array</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Flags to be set for array", SerializedName = @"flags", PossibleTypes = new [] { typeof(long) })] long? GeneralFlags { 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; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? RoleId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string RoleName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SavedCredentialId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SavedCredentialName { get; set; } /// <summary>Configurations related to a snap engine</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Configurations related to a snap engine", SerializedName = @"snapConfigurations", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IArrayConfigsEdit) })] System.Collections.Generic.List<Commvault.Powershell.Models.IArrayConfigsEdit> SnapConfigurations { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? UserGroupId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string UserGroupName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? UserId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string UserName { get; set; } } /// Request to pass for Edit Array internal partial interface IEditArrayInternal { System.Collections.Generic.List<Commvault.Powershell.Models.IArrayAccessNodes> AccessNodes { get; set; } /// <summary>Base 64 encoded Password to access the array</summary> string CredentialPassword { get; set; } /// <summary>Username to access the array</summary> string CredentialUserName { get; set; } /// <summary> /// Template for the editable generic information of an array. Region depicts the workload region which is only applicable /// to NetApp arrays as of now. /// </summary> Commvault.Powershell.Models.IEditArrayInfo General { get; set; } /// <summary>Host name of the array</summary> string GeneralControlHost { get; set; } /// <summary>Template for options provided to user</summary> Commvault.Powershell.Models.IArrayUserPassword GeneralCredential { get; set; } /// <summary>Description about the Array</summary> string GeneralDescription { get; set; } /// <summary>Flags to be set for array</summary> long? GeneralFlags { get; set; } Commvault.Powershell.Models.IIdName GeneralRegion { get; set; } Commvault.Powershell.Models.IIdName GeneralSavedCredential { get; set; } long? RegionId { get; set; } string RegionName { get; set; } long? RoleId { get; set; } string RoleName { get; set; } long? SavedCredentialId { get; set; } string SavedCredentialName { get; set; } /// <summary> /// A list of users or user groups each having a specific set of roles that determine the kind of operations they can perform /// on the entity. Either id/name of the user/usergroup/roles can be provided. If both id and name are provided, id will be /// taken into consideration. /// </summary> Commvault.Powershell.Models.IUpdateSecurityAssoc Security { get; set; } Commvault.Powershell.Models.IIdName SecurityRole { get; set; } Commvault.Powershell.Models.IIdName SecurityUser { get; set; } Commvault.Powershell.Models.IIdName SecurityUserGroup { get; set; } /// <summary>Configurations related to a snap engine</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IArrayConfigsEdit> SnapConfigurations { get; set; } long? UserGroupId { get; set; } string UserGroupName { get; set; } long? UserId { get; set; } string UserName { get; set; } } } |