generated/api/Models/GetClusterDetailsResp.PowerShell.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 Commvault.Powershell.Runtime.PowerShell;

    /// <summary>Details of a Kubernetes Cluster</summary>
    [System.ComponentModel.TypeConverter(typeof(GetClusterDetailsRespTypeConverter))]
    public partial class GetClusterDetailsResp
    {

        /// <summary>
        /// <c>AfterDeserializeDictionary</c> will be called after the deserialization has finished, allowing customization of the
        /// object before it is returned. Implement this method in a partial class to enable this behavior
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>

        partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content);

        /// <summary>
        /// <c>AfterDeserializePSObject</c> will be called after the deserialization has finished, allowing customization of the object
        /// before it is returned. Implement this method in a partial class to enable this behavior
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>

        partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content);

        /// <summary>
        /// <c>BeforeDeserializeDictionary</c> will be called before the deserialization has commenced, allowing complete customization
        /// of the object before it is deserialized.
        /// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        /// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow);

        /// <summary>
        /// <c>BeforeDeserializePSObject</c> will be called before the deserialization has commenced, allowing complete customization
        /// of the object before it is deserialized.
        /// If you wish to disable the default deserialization entirely, return <c>true</c> in the <see "returnNow" /> output parameter.
        /// Implement this method in a partial class to enable this behavior.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        /// <param name="returnNow">Determines if the rest of the serialization should be processed, or if the method should return
        /// instantly.</param>

        partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow);

        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into an instance of <see cref="Commvault.Powershell.Models.GetClusterDetailsResp"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        /// <returns>
        /// an instance of <see cref="Commvault.Powershell.Models.IGetClusterDetailsResp" />.
        /// </returns>
        public static Commvault.Powershell.Models.IGetClusterDetailsResp DeserializeFromDictionary(global::System.Collections.IDictionary content)
        {
            return new GetClusterDetailsResp(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into an instance of <see cref="Commvault.Powershell.Models.GetClusterDetailsResp"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        /// <returns>
        /// an instance of <see cref="Commvault.Powershell.Models.IGetClusterDetailsResp" />.
        /// </returns>
        public static Commvault.Powershell.Models.IGetClusterDetailsResp DeserializeFromPSObject(global::System.Management.Automation.PSObject content)
        {
            return new GetClusterDetailsResp(content);
        }

        /// <summary>
        /// Creates a new instance of <see cref="GetClusterDetailsResp" />, deserializing the content from a json string.
        /// </summary>
        /// <param name="jsonText">a string containing a JSON serialized instance of this model.</param>
        /// <returns>an instance of the <see cref="className" /> model class.</returns>
        public static Commvault.Powershell.Models.IGetClusterDetailsResp FromJsonString(string jsonText) => FromJson(Commvault.Powershell.Runtime.Json.JsonNode.Parse(jsonText));

        /// <summary>
        /// Deserializes a <see cref="global::System.Collections.IDictionary" /> into a new instance of <see cref="Commvault.Powershell.Models.GetClusterDetailsResp"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Collections.IDictionary content that should be used.</param>
        internal GetClusterDetailsResp(global::System.Collections.IDictionary content)
        {
            bool returnNow = false;
            BeforeDeserializeDictionary(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtection = (Commvault.Powershell.Models.IGetEtcdProtectionItem) content.GetValueForProperty("EtcdProtection",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtection, Commvault.Powershell.Models.GetEtcdProtectionItemTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCount = (Commvault.Powershell.Models.IKubernetesApplicationCountInfo) content.GetValueForProperty("ApplicationCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCount, Commvault.Powershell.Models.KubernetesApplicationCountInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Instance = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Instance",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Instance, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Region = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Region",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Region, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonProperties = (Commvault.Powershell.Models.IClusterDetailsCommonProps) content.GetValueForProperty("CommonProperties",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonProperties, Commvault.Powershell.Models.ClusterDetailsCommonPropsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControl = (Commvault.Powershell.Models.IClusterActivityControlOptions) content.GetValueForProperty("ActivityControl",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControl, Commvault.Powershell.Models.ClusterActivityControlOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Options = (Commvault.Powershell.Models.IEditClusterAdvancedOptionsInfo) content.GetValueForProperty("Options",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Options, Commvault.Powershell.Models.EditClusterAdvancedOptionsInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApiServer = (string) content.GetValueForProperty("ApiServer",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApiServer, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Version = (string) content.GetValueForProperty("Version",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Version, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).AccessNode = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("AccessNode",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).AccessNode, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Tags = (Commvault.Powershell.Models.IIdNameValue[]) content.GetValueForProperty("Tags",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Tags, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdNameValue>(__y, Commvault.Powershell.Models.IdNameValueTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ClientGroups = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("ClientGroups",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ClientGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Name, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).DisplayName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionId = (long?) content.GetValueForProperty("EtcdProtectionId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionName = (string) content.GetValueForProperty("EtcdProtectionName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlan = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("EtcdProtectionPlan",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlan, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionEnabled = (bool?) content.GetValueForProperty("EtcdProtectionEnabled",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountPendingCount = (long?) content.GetValueForProperty("ApplicationCountPendingCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountPendingCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountProtectedCount = (long?) content.GetValueForProperty("ApplicationCountProtectedCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountProtectedCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNotProtectedCount = (long?) content.GetValueForProperty("ApplicationCountNotProtectedCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNotProtectedCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNeverBackedUpCount = (long?) content.GetValueForProperty("ApplicationCountNeverBackedUpCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNeverBackedUpCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountBackupUpWithErrorCount = (long?) content.GetValueForProperty("ApplicationCountBackupUpWithErrorCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountBackupUpWithErrorCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountTotalCount = (long?) content.GetValueForProperty("ApplicationCountTotalCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountTotalCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceId = (long?) content.GetValueForProperty("InstanceId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceName = (string) content.GetValueForProperty("InstanceName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionId = (long?) content.GetValueForProperty("RegionId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionName = (string) content.GetValueForProperty("RegionName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertySecurity = (Commvault.Powershell.Models.IClusterDetailsCommonClientSecurity) content.GetValueForProperty("CommonPropertySecurity",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertySecurity, Commvault.Powershell.Models.ClusterDetailsCommonClientSecurityTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertyAssociatedUserGroups = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("CommonPropertyAssociatedUserGroups",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertyAssociatedUserGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableBackup = (bool?) content.GetValueForProperty("ActivityControlEnableBackup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableRestore = (bool?) content.GetValueForProperty("ActivityControlEnableRestore",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableRestore, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionImageRegistry = (Commvault.Powershell.Models.IClusterImageRegistryOptions) content.GetValueForProperty("OptionImageRegistry",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionImageRegistry, Commvault.Powershell.Models.ClusterImageRegistryOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionJobStepWaitTime = (Commvault.Powershell.Models.IJobStepWaitTimeOptions) content.GetValueForProperty("OptionJobStepWaitTime",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionJobStepWaitTime, Commvault.Powershell.Models.JobStepWaitTimeOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionConfigNamespace = (string) content.GetValueForProperty("OptionConfigNamespace",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionConfigNamespace, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanId = (long?) content.GetValueForProperty("EtcdProtectionPlanId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanName = (string) content.GetValueForProperty("EtcdProtectionPlanName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).SecurityOwners = (string[]) content.GetValueForProperty("SecurityOwners",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).SecurityOwners, __y => TypeConverterExtensions.SelectToArray<string>(__y, global::System.Convert.ToString));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryUrl = (string) content.GetValueForProperty("ImageRegistryUrl",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryUrl, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryPullSecret = (string) content.GetValueForProperty("ImageRegistryPullSecret",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryPullSecret, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeWorkerPodStartup = (long?) content.GetValueForProperty("JobStepWaitTimeWorkerPodStartup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeWorkerPodStartup, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeResourceCleanup = (long?) content.GetValueForProperty("JobStepWaitTimeResourceCleanup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeResourceCleanup, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotReady = (long?) content.GetValueForProperty("JobStepWaitTimeSnapshotReady",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotReady, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotCleanup = (long?) content.GetValueForProperty("JobStepWaitTimeSnapshotCleanup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotCleanup, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            AfterDeserializeDictionary(content);
        }

        /// <summary>
        /// Deserializes a <see cref="global::System.Management.Automation.PSObject" /> into a new instance of <see cref="Commvault.Powershell.Models.GetClusterDetailsResp"
        /// />.
        /// </summary>
        /// <param name="content">The global::System.Management.Automation.PSObject content that should be used.</param>
        internal GetClusterDetailsResp(global::System.Management.Automation.PSObject content)
        {
            bool returnNow = false;
            BeforeDeserializePSObject(content, ref returnNow);
            if (returnNow)
            {
                return;
            }
            // actually deserialize
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtection = (Commvault.Powershell.Models.IGetEtcdProtectionItem) content.GetValueForProperty("EtcdProtection",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtection, Commvault.Powershell.Models.GetEtcdProtectionItemTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCount = (Commvault.Powershell.Models.IKubernetesApplicationCountInfo) content.GetValueForProperty("ApplicationCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCount, Commvault.Powershell.Models.KubernetesApplicationCountInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Instance = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Instance",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Instance, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Region = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("Region",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Region, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonProperties = (Commvault.Powershell.Models.IClusterDetailsCommonProps) content.GetValueForProperty("CommonProperties",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonProperties, Commvault.Powershell.Models.ClusterDetailsCommonPropsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControl = (Commvault.Powershell.Models.IClusterActivityControlOptions) content.GetValueForProperty("ActivityControl",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControl, Commvault.Powershell.Models.ClusterActivityControlOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Options = (Commvault.Powershell.Models.IEditClusterAdvancedOptionsInfo) content.GetValueForProperty("Options",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Options, Commvault.Powershell.Models.EditClusterAdvancedOptionsInfoTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApiServer = (string) content.GetValueForProperty("ApiServer",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApiServer, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Version = (string) content.GetValueForProperty("Version",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Version, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).AccessNode = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("AccessNode",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).AccessNode, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Tags = (Commvault.Powershell.Models.IIdNameValue[]) content.GetValueForProperty("Tags",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).Tags, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdNameValue>(__y, Commvault.Powershell.Models.IdNameValueTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ClientGroups = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("ClientGroups",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ClientGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Id = (long?) content.GetValueForProperty("Id",((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Id, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Name = (string) content.GetValueForProperty("Name",((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).Name, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Commvault.Powershell.Models.IIdNameDisplayNameInternal)this).DisplayName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionId = (long?) content.GetValueForProperty("EtcdProtectionId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionName = (string) content.GetValueForProperty("EtcdProtectionName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlan = (Commvault.Powershell.Models.IIdName) content.GetValueForProperty("EtcdProtectionPlan",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlan, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionEnabled = (bool?) content.GetValueForProperty("EtcdProtectionEnabled",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountPendingCount = (long?) content.GetValueForProperty("ApplicationCountPendingCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountPendingCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountProtectedCount = (long?) content.GetValueForProperty("ApplicationCountProtectedCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountProtectedCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNotProtectedCount = (long?) content.GetValueForProperty("ApplicationCountNotProtectedCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNotProtectedCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNeverBackedUpCount = (long?) content.GetValueForProperty("ApplicationCountNeverBackedUpCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountNeverBackedUpCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountBackupUpWithErrorCount = (long?) content.GetValueForProperty("ApplicationCountBackupUpWithErrorCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountBackupUpWithErrorCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountTotalCount = (long?) content.GetValueForProperty("ApplicationCountTotalCount",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ApplicationCountTotalCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceId = (long?) content.GetValueForProperty("InstanceId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceName = (string) content.GetValueForProperty("InstanceName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).InstanceName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionId = (long?) content.GetValueForProperty("RegionId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionName = (string) content.GetValueForProperty("RegionName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).RegionName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertySecurity = (Commvault.Powershell.Models.IClusterDetailsCommonClientSecurity) content.GetValueForProperty("CommonPropertySecurity",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertySecurity, Commvault.Powershell.Models.ClusterDetailsCommonClientSecurityTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertyAssociatedUserGroups = (Commvault.Powershell.Models.IIdName[]) content.GetValueForProperty("CommonPropertyAssociatedUserGroups",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).CommonPropertyAssociatedUserGroups, __y => TypeConverterExtensions.SelectToArray<Commvault.Powershell.Models.IIdName>(__y, Commvault.Powershell.Models.IdNameTypeConverter.ConvertFrom));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableBackup = (bool?) content.GetValueForProperty("ActivityControlEnableBackup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableRestore = (bool?) content.GetValueForProperty("ActivityControlEnableRestore",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ActivityControlEnableRestore, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionImageRegistry = (Commvault.Powershell.Models.IClusterImageRegistryOptions) content.GetValueForProperty("OptionImageRegistry",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionImageRegistry, Commvault.Powershell.Models.ClusterImageRegistryOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionJobStepWaitTime = (Commvault.Powershell.Models.IJobStepWaitTimeOptions) content.GetValueForProperty("OptionJobStepWaitTime",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionJobStepWaitTime, Commvault.Powershell.Models.JobStepWaitTimeOptionsTypeConverter.ConvertFrom);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionConfigNamespace = (string) content.GetValueForProperty("OptionConfigNamespace",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).OptionConfigNamespace, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanId = (long?) content.GetValueForProperty("EtcdProtectionPlanId",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanId, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanName = (string) content.GetValueForProperty("EtcdProtectionPlanName",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).EtcdProtectionPlanName, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).SecurityOwners = (string[]) content.GetValueForProperty("SecurityOwners",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).SecurityOwners, __y => TypeConverterExtensions.SelectToArray<string>(__y, global::System.Convert.ToString));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryUrl = (string) content.GetValueForProperty("ImageRegistryUrl",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryUrl, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryPullSecret = (string) content.GetValueForProperty("ImageRegistryPullSecret",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).ImageRegistryPullSecret, global::System.Convert.ToString);
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeWorkerPodStartup = (long?) content.GetValueForProperty("JobStepWaitTimeWorkerPodStartup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeWorkerPodStartup, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeResourceCleanup = (long?) content.GetValueForProperty("JobStepWaitTimeResourceCleanup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeResourceCleanup, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotReady = (long?) content.GetValueForProperty("JobStepWaitTimeSnapshotReady",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotReady, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            ((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotCleanup = (long?) content.GetValueForProperty("JobStepWaitTimeSnapshotCleanup",((Commvault.Powershell.Models.IGetClusterDetailsRespInternal)this).JobStepWaitTimeSnapshotCleanup, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long)));
            AfterDeserializePSObject(content);
        }

        /// <summary>Serializes this instance to a json string.</summary>

        /// <returns>a <see cref="System.String" /> containing this model serialized to JSON text.</returns>
        public string ToJsonString() => ToJson(null, Commvault.Powershell.Runtime.SerializationMode.IncludeAll)?.ToString();
    }
    /// Details of a Kubernetes Cluster
    [System.ComponentModel.TypeConverter(typeof(GetClusterDetailsRespTypeConverter))]
    public partial interface IGetClusterDetailsResp

    {

    }
}