Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions src/WebSiteManagement/Generated/DiagnosticOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -263,17 +263,20 @@ public async System.Threading.Tasks.Task<OperationResponse> UpdateSettingsAsync(
string requestContent = null;
JToken requestDoc = null;

JObject settingsDictionary = new JObject();
if (parameters.Settings != null)
{
foreach (KeyValuePair<string, string> pair in parameters.Settings)
if (parameters.Settings is ILazyCollection == false || ((ILazyCollection)parameters.Settings).IsInitialized)
{
string settingsKey = pair.Key;
string settingsValue = pair.Value;
settingsDictionary[settingsKey] = settingsValue;
JObject settingsDictionary = new JObject();
foreach (KeyValuePair<string, string> pair in parameters.Settings)
{
string settingsKey = pair.Key;
string settingsValue = pair.Value;
settingsDictionary[settingsKey] = settingsValue;
}
requestDoc = settingsDictionary;
}
}
requestDoc = settingsDictionary;

requestContent = requestDoc.ToString(Formatting.Indented);
httpRequest.Content = new StringContent(requestContent, Encoding.UTF8);
Expand Down
33 changes: 33 additions & 0 deletions src/WebSiteManagement/Generated/IWebSiteOperations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,21 @@ public partial interface IWebSiteOperations
/// </returns>
Task<WebSiteGetRepositoryResponse> GetRepositoryAsync(string webSpaceName, string webSiteName, CancellationToken cancellationToken);

/// <param name='webSpaceName'>
/// The name of the web space.
/// </param>
/// <param name='webSiteName'>
/// The name of the web site.
/// </param>
/// <param name='cancellationToken'>
/// Cancellation token.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
Task<SlotConfigNames> GetSlotConfigNamesAsync(string webSpaceName, string webSiteName, CancellationToken cancellationToken);

/// <summary>
/// You can retrieve current usage metrics for a site by issuing an
/// HTTP GET request. The metrics returned include CPU Time, Data In,
Expand Down Expand Up @@ -583,5 +598,23 @@ public partial interface IWebSiteOperations
/// request ID.
/// </returns>
Task<OperationResponse> UpdateConfigurationAsync(string webSpaceName, string webSiteName, WebSiteUpdateConfigurationParameters parameters, CancellationToken cancellationToken);

/// <param name='webSpaceName'>
/// The name of the web space.
/// </param>
/// <param name='webSiteName'>
/// The name of the web site.
/// </param>
/// <param name='parameters'>
/// The parameters.
/// </param>
/// <param name='cancellationToken'>
/// Cancellation token.
/// </param>
/// <returns>
/// A standard service response including an HTTP status code and
/// request ID.
/// </returns>
Task<OperationResponse> UpdateSlotConfigNamesAsync(string webSpaceName, string webSiteName, SlotConfigNamesUpdate parameters, CancellationToken cancellationToken);
}
}
3 changes: 2 additions & 1 deletion src/WebSiteManagement/Generated/Models/BackupItem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure.Common.Internals;
using Microsoft.WindowsAzure.Management.WebSites.Models;

namespace Microsoft.WindowsAzure.Management.WebSites.Models
Expand Down Expand Up @@ -175,7 +176,7 @@ public string StorageAccountUrl
/// </summary>
public BackupItem()
{
this.Databases = new List<DatabaseBackupSetting>();
this.Databases = new LazyList<DatabaseBackupSetting>();
}
}
}
3 changes: 2 additions & 1 deletion src/WebSiteManagement/Generated/Models/BackupRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure.Common.Internals;
using Microsoft.WindowsAzure.Management.WebSites.Models;

namespace Microsoft.WindowsAzure.Management.WebSites.Models
Expand Down Expand Up @@ -96,7 +97,7 @@ public string StorageAccountUrl
/// </summary>
public BackupRequest()
{
this.Databases = new List<DatabaseBackupSetting>();
this.Databases = new LazyList<DatabaseBackupSetting>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Common.Internals;
using Microsoft.WindowsAzure.WebSitesExtensions.Models;

namespace Microsoft.WindowsAzure.WebSitesExtensions.Models
Expand All @@ -49,7 +50,7 @@ public IList<ContinuousWebJob> ContinuousWebJobs
/// </summary>
public ContinuousWebJobListResponse()
{
this.ContinuousWebJobs = new List<ContinuousWebJob>();
this.ContinuousWebJobs = new LazyList<ContinuousWebJob>();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Common.Internals;
using Microsoft.WindowsAzure.WebSitesExtensions.Models;

namespace Microsoft.WindowsAzure.WebSitesExtensions.Models
Expand All @@ -48,7 +49,7 @@ public IList<DeploymentLog> Logs
/// </summary>
public DeploymentListLogsResponse()
{
this.Logs = new List<DeploymentLog>();
this.Logs = new LazyList<DeploymentLog>();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Common.Internals;
using Microsoft.WindowsAzure.WebSitesExtensions.Models;

namespace Microsoft.WindowsAzure.WebSitesExtensions.Models
Expand All @@ -48,7 +49,7 @@ public IList<Deployment> Deployments
/// </summary>
public DeploymentListResponse()
{
this.Deployments = new List<Deployment>();
this.Deployments = new LazyList<Deployment>();
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Common.Internals;

namespace Microsoft.WindowsAzure.WebSitesExtensions.Models
{
Expand All @@ -47,7 +48,7 @@ public IDictionary<string, string> Settings
/// </summary>
public DiagnosticGetResponse()
{
this.Settings = new Dictionary<string, string>();
this.Settings = new LazyDictionary<string, string>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure.Common.Internals;

namespace Microsoft.WindowsAzure.WebSitesExtensions.Models
{
Expand All @@ -46,7 +47,7 @@ public IDictionary<string, string> Settings
/// </summary>
public DiagnosticUpdateParameters()
{
this.Settings = new Dictionary<string, string>();
this.Settings = new LazyDictionary<string, string>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure.Common.Internals;
using Microsoft.WindowsAzure.Management.WebSites.Models;

namespace Microsoft.WindowsAzure.Management.WebSites.Models
Expand Down Expand Up @@ -127,7 +128,7 @@ public IList<HistoricalUsageMetricSample> Values
/// </summary>
public HistoricalUsageMetricData()
{
this.Values = new List<HistoricalUsageMetricSample>();
this.Values = new LazyList<HistoricalUsageMetricSample>();
}
}
}
3 changes: 2 additions & 1 deletion src/WebSiteManagement/Generated/Models/RestoreRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure.Common.Internals;
using Microsoft.WindowsAzure.Management.WebSites.Models;

namespace Microsoft.WindowsAzure.Management.WebSites.Models
Expand Down Expand Up @@ -110,7 +111,7 @@ public string StorageAccountUrl
/// </summary>
public RestoreRequest()
{
this.Databases = new List<DatabaseBackupSetting>();
this.Databases = new LazyList<DatabaseBackupSetting>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Common.Internals;

namespace Microsoft.WindowsAzure.WebSitesExtensions.Models
{
Expand All @@ -47,7 +48,7 @@ public IDictionary<string, string> Settings
/// </summary>
public SettingsListResponse()
{
this.Settings = new Dictionary<string, string>();
this.Settings = new LazyDictionary<string, string>();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure.Common.Internals;

namespace Microsoft.WindowsAzure.WebSitesExtensions.Models
{
Expand All @@ -46,7 +47,7 @@ public IDictionary<string, string> Settings
/// </summary>
public SettingsUpdateParameters()
{
this.Settings = new Dictionary<string, string>();
this.Settings = new LazyDictionary<string, string>();
}
}
}
76 changes: 76 additions & 0 deletions src/WebSiteManagement/Generated/Models/SlotConfigNames.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
//
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//

// Warning: This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if the
// code is regenerated.

using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.Common.Internals;

namespace Microsoft.WindowsAzure.Management.WebSites.Models
{
/// <summary>
/// A standard service response including an HTTP status code and request
/// ID.
/// </summary>
public partial class SlotConfigNames : OperationResponse
{
private IList<string> _appSettingNames;

/// <summary>
/// Optional. One or more string elements that list the name of the app
/// setting that will not be moved durig site swap. For example, if
/// slot named staging has setting EnableVerboseLogging=1, it
/// shouldn't be moved when swapped with production slot but should
/// take the current value from production.
/// </summary>
public IList<string> AppSettingNames
{
get { return this._appSettingNames; }
set { this._appSettingNames = value; }
}

private IList<string> _connectionStringNames;

/// <summary>
/// Optional. One or more string elements that list the name of the
/// connection string setting that will not be moved durig site swap.
/// For example, if slot named staging has connection UsersDatabase
/// that points to staging test database, it shouldn't be moved when
/// swapped with production slot but should take the current value
/// from production.
/// </summary>
public IList<string> ConnectionStringNames
{
get { return this._connectionStringNames; }
set { this._connectionStringNames = value; }
}

/// <summary>
/// Initializes a new instance of the SlotConfigNames class.
/// </summary>
public SlotConfigNames()
{
this.AppSettingNames = new LazyList<string>();
this.ConnectionStringNames = new LazyList<string>();
}
}
}
Loading