/// <summary>
        ///
        /// </summary>
        /// <param name="responseData"></param>
        /// <returns></returns>
        private static PrivateNetwork GetNetworkFromResponseData(Objects.Network.Universal.Network responseData)
        {
            var network = new PrivateNetwork();

            network._id  = responseData.id;
            network.Name = responseData.name;

            return(network);
        }
        /// <summary>
        /// Returns all datacenter with the given id.
        /// </summary>
        /// <returns></returns>
        public static async Task <PrivateNetwork> GetAsync(long id, string token = null)
        {
            var network = new PrivateNetwork();

            string url = string.Format("/networks/{0}", id);

            string responseContent = await ApiCore.SendRequest(url, token);

            var response = JsonConvert.DeserializeObject <Objects.Network.GetOne.Response>(responseContent);

            network = GetNetworkFromResponseData(response.network);

            return(network);
        }