generated/api/Models/CreateHypervisorGroupRedHatOpenShift.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>Create a hypervisor group with openShift as the destination vendor</summary> public partial class CreateHypervisorGroupRedHatOpenShift : Commvault.Powershell.Models.ICreateHypervisorGroupRedHatOpenShift, Commvault.Powershell.Models.ICreateHypervisorGroupRedHatOpenShiftInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.ICreateHypervisorGroupReq" /> /// </summary> private Commvault.Powershell.Models.ICreateHypervisorGroupReq __createHypervisorGroupReq = new Commvault.Powershell.Models.CreateHypervisorGroupReq(); [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public System.Collections.Generic.List<Commvault.Powershell.Models.IAccessNodeModel> AccessNodes { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).AccessNodes; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).AccessNodes = value ?? null /* arrayOf */; } /// <summary>Internal Acessors for GlusterHostCredentials</summary> Commvault.Powershell.Models.IRedHatOpenShiftGluster Commvault.Powershell.Models.ICreateHypervisorGroupRedHatOpenShiftInternal.GlusterHostCredentials { get => (this._glusterHostCredentials = this._glusterHostCredentials ?? new Commvault.Powershell.Models.RedHatOpenShiftGluster()); set { {_glusterHostCredentials = value;} } } /// <summary>Internal Acessors for GlusterHostCredentialsCredentials</summary> Commvault.Powershell.Models.IUserNamePassword Commvault.Powershell.Models.ICreateHypervisorGroupRedHatOpenShiftInternal.GlusterHostCredentialsCredentials { get => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).Credentials; set => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).Credentials = value; } /// <summary>Internal Acessors for HypervisorType</summary> string Commvault.Powershell.Models.ICreateHypervisorGroupRedHatOpenShiftInternal.HypervisorType { get => this._hypervisorType; set { {_hypervisorType = value;} } } /// <summary>Internal Acessors for Credentials</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal.Credentials { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).Credentials; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).Credentials = value; } /// <summary>Internal Acessors for EtcdProtection</summary> Commvault.Powershell.Models.IEtcdProtectionItem Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal.EtcdProtection { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtection; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtection = value; } /// <summary>Internal Acessors for EtcdProtectionPlan</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal.EtcdProtectionPlan { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtectionPlan; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtectionPlan = value; } /// <summary>Internal Acessors for PlanEntity</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal.PlanEntity { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntity; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntity = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] internal Commvault.Powershell.Models.IIdName Credentials { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).Credentials; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).Credentials = value ?? null /* model class */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? CredentialsId { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).CredentialsId; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).CredentialsId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string CredentialsName { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).CredentialsName; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).CredentialsName = value ?? null; } /// <summary>password to access the network path</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CredentialsPassword { get => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).CredentialsPassword; set => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).CredentialsPassword = value ?? null; } /// <summary>Create an application group etcd (system generated) with pre-defined content</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] internal Commvault.Powershell.Models.IEtcdProtectionItem EtcdProtection { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtection; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtection = value ?? null /* model class */; } /// <summary>Denote if etcd protection is enabled</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public bool? EtcdProtectionEnabled { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtectionEnabled; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtectionEnabled = value ?? default(bool); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] internal Commvault.Powershell.Models.IIdName EtcdProtectionPlan { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtectionPlan; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).EtcdProtectionPlan = value ?? null /* model class */; } /// <summary>Backing field for <see cref="GlusterHostCredentials" /> property.</summary> private Commvault.Powershell.Models.IRedHatOpenShiftGluster _glusterHostCredentials; /// <summary>RedHatOpenShift</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IRedHatOpenShiftGluster GlusterHostCredentials { get => (this._glusterHostCredentials = this._glusterHostCredentials ?? new Commvault.Powershell.Models.RedHatOpenShiftGluster()); set => this._glusterHostCredentials = value; } /// <summary>Gluster Host authtype</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? GlusterHostCredentialsAuthType { get => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).AuthType; set => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).AuthType = value ?? default(long); } /// <summary>username to access the network path</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GlusterHostCredentialsCredentialsName { get => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).CredentialsName; set => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).CredentialsName = value ?? null; } /// <summary>Gluster Host Hostname</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string GlusterHostCredentialsHostName { get => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).HostName; set => ((Commvault.Powershell.Models.IRedHatOpenShiftGlusterInternal)GlusterHostCredentials).HostName = value ; } /// <summary>Backing field for <see cref="HypervisorType" /> property.</summary> private string _hypervisorType= @"REDHAT_OPENSHIFT"; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string HypervisorType { get => this._hypervisorType; } /// <summary>The name of the hypervisor group being created</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Name { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).Name; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).Name = value ; } /// <summary>Backing field for <see cref="Password" /> property.</summary> private string _password; /// <summary>redHatOpenShift password</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Password { get => this._password; set => this._password = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] internal Commvault.Powershell.Models.IIdName PlanEntity { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntity; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntity = value ?? null /* model class */; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? PlanEntityId { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntityId; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntityId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string PlanEntityName { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntityName; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanEntityName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? PlanId { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanId; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string PlanName { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanName; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).PlanName = value ?? null; } /// <summary>Backing field for <see cref="ServerName" /> property.</summary> private string _serverName; /// <summary>redHatOpenShift hostname</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ServerName { get => this._serverName; set => this._serverName = value; } /// <summary>if credential validation has to be skipped.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public bool? SkipCredentialValidation { get => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).SkipCredentialValidation; set => ((Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal)__createHypervisorGroupReq).SkipCredentialValidation = value ?? default(bool); } /// <summary>Backing field for <see cref="UserName" /> property.</summary> private string _userName; /// <summary>redHatOpenShift userName</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string UserName { get => this._userName; set => this._userName = value; } /// <summary>Creates an new <see cref="CreateHypervisorGroupRedHatOpenShift" /> instance.</summary> public CreateHypervisorGroupRedHatOpenShift() { } /// <summary>Validates that this object meets the validation criteria.</summary> /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation /// events.</param> /// <returns> /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. /// </returns> public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener) { await eventListener.AssertNotNull(nameof(__createHypervisorGroupReq), __createHypervisorGroupReq); await eventListener.AssertObjectIsValid(nameof(__createHypervisorGroupReq), __createHypervisorGroupReq); } } /// Create a hypervisor group with openShift as the destination vendor public partial interface ICreateHypervisorGroupRedHatOpenShift : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.ICreateHypervisorGroupReq { /// <summary>password to access the network path</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"password to access the network path", SerializedName = @"password", PossibleTypes = new [] { typeof(string) })] string CredentialsPassword { get; set; } /// <summary>Gluster Host authtype</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Gluster Host authtype ", SerializedName = @"authType", PossibleTypes = new [] { typeof(long) })] long? GlusterHostCredentialsAuthType { get; set; } /// <summary>username to access the network path</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"username to access the network path", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string GlusterHostCredentialsCredentialsName { get; set; } /// <summary>Gluster Host Hostname</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Gluster Host Hostname ", SerializedName = @"hostName", PossibleTypes = new [] { typeof(string) })] string GlusterHostCredentialsHostName { get; set; } [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = true, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"hypervisorType", PossibleTypes = new [] { typeof(string) })] string HypervisorType { get; } /// <summary>redHatOpenShift password</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"redHatOpenShift password ", SerializedName = @"password", PossibleTypes = new [] { typeof(string) })] string Password { get; set; } /// <summary>redHatOpenShift hostname</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"redHatOpenShift hostname ", SerializedName = @"serverName", PossibleTypes = new [] { typeof(string) })] string ServerName { get; set; } /// <summary>redHatOpenShift userName</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"redHatOpenShift userName ", SerializedName = @"userName", PossibleTypes = new [] { typeof(string) })] string UserName { get; set; } } /// Create a hypervisor group with openShift as the destination vendor internal partial interface ICreateHypervisorGroupRedHatOpenShiftInternal : Commvault.Powershell.Models.ICreateHypervisorGroupReqInternal { /// <summary>password to access the network path</summary> string CredentialsPassword { get; set; } /// <summary>RedHatOpenShift</summary> Commvault.Powershell.Models.IRedHatOpenShiftGluster GlusterHostCredentials { get; set; } /// <summary>Gluster Host authtype</summary> long? GlusterHostCredentialsAuthType { get; set; } Commvault.Powershell.Models.IUserNamePassword GlusterHostCredentialsCredentials { get; set; } /// <summary>username to access the network path</summary> string GlusterHostCredentialsCredentialsName { get; set; } /// <summary>Gluster Host Hostname</summary> string GlusterHostCredentialsHostName { get; set; } string HypervisorType { get; set; } /// <summary>redHatOpenShift password</summary> string Password { get; set; } /// <summary>redHatOpenShift hostname</summary> string ServerName { get; set; } /// <summary>redHatOpenShift userName</summary> string UserName { get; set; } } } |