public void UpdateAdminSettings(AdminSettings newSettings)
        {
            if (newSettings == null)
            {
                throw Utility.ThrowResponseException(this.Request, System.Net.HttpStatusCode.BadRequest, ErrorMessages.NullInput); 
            }

            settings = newSettings;
        }
 static AdminSettingsController()
 {
     settings = new AdminSettings
     {
         EndpointAddress = "http://dummyservice",
         Username = "******",
         Password = "******"
     };
 }
 /// <summary>
 /// UpdateAdminSettings registers Hybrid Cloud Resource Provider endpoint information with Admin API
 /// </summary>
 /// <returns></returns>
 public async Task UpdateAdminSettingsAsync(AdminSettings newSettings)
 {
     var requestUrl = this.CreateRequestUri(HybridCloudAdminClient.AdminSettings);
     var response = await this.httpClient.PutAsJsonAsync<AdminSettings>(requestUrl.ToString(), newSettings);
     response.EnsureSuccessStatusCode();
 }