/// <summary>创建Namespace,可以通过此接口创建Namespace,调用此接口需要授予第三方APP对目标APP的管理权限。</summary>
        public static Task <AppNamespace> CreateAppNamespace(this IAppClusterClient client,
                                                             AppNamespace appNamespace, CancellationToken cancellationToken = default)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }
            if (appNamespace == null)
            {
                throw new ArgumentNullException(nameof(appNamespace));
            }

            return(client.Post <AppNamespace>($"apps/{client.AppId}/appnamespaces", appNamespace, cancellationToken));
        }
        /// <summary>创建集群</summary>
        public static Task CreateCluster(this IAppClusterClient client, string env,
                                         Cluster cluster,
                                         CancellationToken cancellationToken = default)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }
            if (env == null)
            {
                throw new ArgumentNullException(nameof(env));
            }

            return(client.Post <Cluster>($"envs/{env}/apps/{client.AppId}/clusters", cluster, cancellationToken));
        }