diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperations.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperations.cs
index 259c3b95e5ed..da63af34e2a7 100644
--- a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperations.cs
+++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperations.cs
@@ -665,7 +665,7 @@ internal GlobalUsersOperations(ManagedLabsClient client)
///
/// The name of the user.
///
- ///
+ ///
/// Represents payload for any Environment operations like get, start, stop,
/// connect
///
@@ -690,15 +690,15 @@ internal GlobalUsersOperations(ManagedLabsClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetPersonalPreferencesWithHttpMessagesAsync(string userName, PersonalPerferencesOperationsPayload personalPerferencesOperationsPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetPersonalPreferencesWithHttpMessagesAsync(string userName, PersonalPreferencesOperationsPayload personalPreferencesOperationsPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (userName == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "userName");
}
- if (personalPerferencesOperationsPayload == null)
+ if (personalPreferencesOperationsPayload == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "personalPerferencesOperationsPayload");
+ throw new ValidationException(ValidationRules.CannotBeNull, "personalPreferencesOperationsPayload");
}
if (Client.ApiVersion == null)
{
@@ -712,7 +712,7 @@ internal GlobalUsersOperations(ManagedLabsClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("userName", userName);
- tracingParameters.Add("personalPerferencesOperationsPayload", personalPerferencesOperationsPayload);
+ tracingParameters.Add("personalPreferencesOperationsPayload", personalPreferencesOperationsPayload);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "GetPersonalPreferences", tracingParameters);
}
@@ -763,9 +763,9 @@ internal GlobalUsersOperations(ManagedLabsClient client)
// Serialize Request
string _requestContent = null;
- if(personalPerferencesOperationsPayload != null)
+ if(personalPreferencesOperationsPayload != null)
{
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(personalPerferencesOperationsPayload, Client.SerializationSettings);
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(personalPreferencesOperationsPayload, Client.SerializationSettings);
_httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
_httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}
diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperationsExtensions.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperationsExtensions.cs
index 684e85ecd37d..1b0843d8fbef 100644
--- a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperationsExtensions.cs
+++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/GlobalUsersOperationsExtensions.cs
@@ -158,13 +158,13 @@ public static OperationStatusResponse GetOperationStatus(this IGlobalUsersOperat
///
/// The name of the user.
///
- ///
+ ///
/// Represents payload for any Environment operations like get, start, stop,
/// connect
///
- public static GetPersonalPreferencesResponse GetPersonalPreferences(this IGlobalUsersOperations operations, string userName, PersonalPerferencesOperationsPayload personalPerferencesOperationsPayload)
+ public static GetPersonalPreferencesResponse GetPersonalPreferences(this IGlobalUsersOperations operations, string userName, PersonalPreferencesOperationsPayload personalPreferencesOperationsPayload)
{
- return operations.GetPersonalPreferencesAsync(userName, personalPerferencesOperationsPayload).GetAwaiter().GetResult();
+ return operations.GetPersonalPreferencesAsync(userName, personalPreferencesOperationsPayload).GetAwaiter().GetResult();
}
///
@@ -176,16 +176,16 @@ public static GetPersonalPreferencesResponse GetPersonalPreferences(this IGlobal
///
/// The name of the user.
///
- ///
+ ///
/// Represents payload for any Environment operations like get, start, stop,
/// connect
///
///
/// The cancellation token.
///
- public static async Task GetPersonalPreferencesAsync(this IGlobalUsersOperations operations, string userName, PersonalPerferencesOperationsPayload personalPerferencesOperationsPayload, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task GetPersonalPreferencesAsync(this IGlobalUsersOperations operations, string userName, PersonalPreferencesOperationsPayload personalPreferencesOperationsPayload, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.GetPersonalPreferencesWithHttpMessagesAsync(userName, personalPerferencesOperationsPayload, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.GetPersonalPreferencesWithHttpMessagesAsync(userName, personalPreferencesOperationsPayload, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/IGlobalUsersOperations.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/IGlobalUsersOperations.cs
index a69eef11ce71..7a9a03a57721 100644
--- a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/IGlobalUsersOperations.cs
+++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/IGlobalUsersOperations.cs
@@ -109,7 +109,7 @@ public partial interface IGlobalUsersOperations
///
/// The name of the user.
///
- ///
+ ///
/// Represents payload for any Environment operations like get, start,
/// stop, connect
///
@@ -128,7 +128,7 @@ public partial interface IGlobalUsersOperations
///
/// Thrown when a required parameter is null
///
- Task> GetPersonalPreferencesWithHttpMessagesAsync(string userName, PersonalPerferencesOperationsPayload personalPerferencesOperationsPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetPersonalPreferencesWithHttpMessagesAsync(string userName, PersonalPreferencesOperationsPayload personalPreferencesOperationsPayload, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// List Environments for the user
///
diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/ListEnvironmentsResponse.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/ListEnvironmentsResponse.cs
index 87685b885d02..83d850f6d3b1 100644
--- a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/ListEnvironmentsResponse.cs
+++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/ListEnvironmentsResponse.cs
@@ -31,7 +31,7 @@ public ListEnvironmentsResponse()
///
/// Initializes a new instance of the ListEnvironmentsResponse class.
///
- /// List of all the evironments
+ /// List of all the environments
public ListEnvironmentsResponse(IList environments = default(IList))
{
Environments = environments;
@@ -44,7 +44,7 @@ public ListEnvironmentsResponse()
partial void CustomInit();
///
- /// Gets or sets list of all the evironments
+ /// Gets or sets list of all the environments
///
[JsonProperty(PropertyName = "environments")]
public IList Environments { get; set; }
diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/PersonalPreferencesOperationsPayload.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/PersonalPreferencesOperationsPayload.cs
new file mode 100644
index 000000000000..727f7e595f2f
--- /dev/null
+++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/Models/PersonalPreferencesOperationsPayload.cs
@@ -0,0 +1,76 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.LabServices.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Represents payload for any Environment operations like get, start,
+ /// stop, connect
+ ///
+ public partial class PersonalPreferencesOperationsPayload
+ {
+ ///
+ /// Initializes a new instance of the
+ /// PersonalPreferencesOperationsPayload class.
+ ///
+ public PersonalPreferencesOperationsPayload()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// PersonalPreferencesOperationsPayload class.
+ ///
+ /// Resource Id of the lab
+ /// account
+ /// Enum indicating if user is adding or
+ /// removing a favorite lab. Possible values include: 'Add',
+ /// 'Remove'
+ /// Resource Id of the lab to add/remove
+ /// from the favorites list
+ public PersonalPreferencesOperationsPayload(string labAccountResourceId = default(string), string addRemove = default(string), string labResourceId = default(string))
+ {
+ LabAccountResourceId = labAccountResourceId;
+ AddRemove = addRemove;
+ LabResourceId = labResourceId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets resource Id of the lab account
+ ///
+ [JsonProperty(PropertyName = "labAccountResourceId")]
+ public string LabAccountResourceId { get; set; }
+
+ ///
+ /// Gets or sets enum indicating if user is adding or removing a
+ /// favorite lab. Possible values include: 'Add', 'Remove'
+ ///
+ [JsonProperty(PropertyName = "addRemove")]
+ public string AddRemove { get; set; }
+
+ ///
+ /// Gets or sets resource Id of the lab to add/remove from the
+ /// favorites list
+ ///
+ [JsonProperty(PropertyName = "labResourceId")]
+ public string LabResourceId { get; set; }
+
+ }
+}
diff --git a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_ManagedLabsClient.cs b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_ManagedLabsClient.cs
index f01441782eed..1a595d92905f 100644
--- a/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_ManagedLabsClient.cs
+++ b/sdk/labservices/Microsoft.Azure.Management.LabServices/src/Generated/SdkInfo_ManagedLabsClient.cs
@@ -31,16 +31,5 @@ public static IEnumerable> ApiInfo_ManagedLabsClie
}.AsEnumerable();
}
}
- // BEGIN: Code Generation Metadata Section
- public static readonly String AutoRestVersion = "latest";
- public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/labservices/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=D:\\git\\azure-sdk-for-net\\src\\SDKs";
- public static readonly String GithubForkName = "Azure";
- public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "d02b8b65bf8ce5d8322c92530bf6b2e6dd3b9aab";
- public static readonly String CodeGenerationErrors = "";
- public static readonly String GithubRepoName = "azure-rest-api-specs";
- // END: Code Generation Metadata Section
}
}
-