/// <summary>
        /// Update the list of application entitlements for the company Pod
        /// </summary>
        /// <param name="appEntitlements">List of app entitlements to be updated</param>
        /// <returns>List of updated app entitlements</returns>
        public IEnumerable <PodAppEntitlement> UpdateAppEntitlements(IEnumerable <PodAppEntitlement> appEntitlements)
        {
            try
            {
                if (appEntitlements == null)
                {
                    return(null);
                }
                var generatedPodAppEntitlement = appEntitlements.Select(x => new Generated.OpenApi.PodApi.PodAppEntitlement {
                    AppId = x.AppId, AppName = x.AppName, Enable = x.Enable, Install = x.Install, Listed = x.Listed
                });
                var podAppEnttlementsGenerated = _apiExecutor.Execute(_appEntitlementsApi.V1AppEntitlementListPostAsync, _authTokens.SessionToken, generatedPodAppEntitlement);
                if (podAppEnttlementsGenerated == null)
                {
                    return(null);
                }

                return(podAppEnttlementsGenerated.Select(x => PodAppEntitlementFactory.Create(x)));
            }
            catch (Exception e)
            {
                _log?.LogError(0, e, "An error has occured while trying to update application entitlements");
                throw;
            }
        }
        /// <summary>
        /// Get the list of available application entitlements for the company Pod
        /// </summary>
        /// <returns>List of app entitlements</returns>
        public IEnumerable <PodAppEntitlement> GetAppEntitlements()
        {
            try
            {
                var podAppEnttlementsGenerated = _apiExecutor.Execute(_appEntitlementsApi.V1AppEntitlementListGetAsync, _authTokens.SessionToken);
                if (podAppEnttlementsGenerated == null)
                {
                    return(null);
                }

                return(podAppEnttlementsGenerated.Select(x => PodAppEntitlementFactory.Create(x)));
            }
            catch (Exception e)
            {
                _log?.LogError(0, e, "An error has occured while trying to retrieve application entitlements");
                throw;
            }
        }