Skip to content

Commit

Permalink
Generated from eef3c7046ebad353cb28ad76a425e1ea145d18d7 (#755)
Browse files Browse the repository at this point in the history
[LabServices] Fix typo, remove required from optional param
  • Loading branch information
AutorestCI authored Dec 6, 2018
1 parent bab8562 commit 57cc4fe
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export {
OperationBatchStatusResponseItem,
OperationStatusPayload,
OperationStatusResponse,
PersonalPerferencesOperationsPayload,
PersonalPreferencesOperationsPayload,
GetPersonalPreferencesResponse,
ListEnvironmentsPayload,
ListEnvironmentsResponse,
Expand Down
4 changes: 2 additions & 2 deletions packages/@azure/arm-labservices/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1594,12 +1594,12 @@ export interface OperationStatusResponse {

/**
* @interface
* An interface representing PersonalPerferencesOperationsPayload.
* An interface representing PersonalPreferencesOperationsPayload.
* Represents payload for any Environment operations like get, start, stop,
* connect
*
*/
export interface PersonalPerferencesOperationsPayload {
export interface PersonalPreferencesOperationsPayload {
/**
* @member {string} [labAccountResourceId] Resource Id of the lab account
*/
Expand Down
6 changes: 3 additions & 3 deletions packages/@azure/arm-labservices/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1937,11 +1937,11 @@ export const OperationStatusResponse: msRest.CompositeMapper = {
}
};

export const PersonalPerferencesOperationsPayload: msRest.CompositeMapper = {
serializedName: "PersonalPerferencesOperationsPayload",
export const PersonalPreferencesOperationsPayload: msRest.CompositeMapper = {
serializedName: "PersonalPreferencesOperationsPayload",
type: {
name: "Composite",
className: "PersonalPerferencesOperationsPayload",
className: "PersonalPreferencesOperationsPayload",
modelProperties: {
labAccountResourceId: {
serializedName: "labAccountResourceId",
Expand Down
20 changes: 10 additions & 10 deletions packages/@azure/arm-labservices/lib/operations/globalUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,32 +129,32 @@ export class GlobalUsers {
/**
* Get personal preferences for a user
* @param userName The name of the user.
* @param personalPerferencesOperationsPayload Represents payload for any Environment operations
* @param personalPreferencesOperationsPayload Represents payload for any Environment operations
* like get, start, stop, connect
* @param [options] The optional parameters
* @returns Promise<Models.GlobalUsersGetPersonalPreferencesResponse>
*/
getPersonalPreferences(userName: string, personalPerferencesOperationsPayload: Models.PersonalPerferencesOperationsPayload, options?: msRest.RequestOptionsBase): Promise<Models.GlobalUsersGetPersonalPreferencesResponse>;
getPersonalPreferences(userName: string, personalPreferencesOperationsPayload: Models.PersonalPreferencesOperationsPayload, options?: msRest.RequestOptionsBase): Promise<Models.GlobalUsersGetPersonalPreferencesResponse>;
/**
* @param userName The name of the user.
* @param personalPerferencesOperationsPayload Represents payload for any Environment operations
* @param personalPreferencesOperationsPayload Represents payload for any Environment operations
* like get, start, stop, connect
* @param callback The callback
*/
getPersonalPreferences(userName: string, personalPerferencesOperationsPayload: Models.PersonalPerferencesOperationsPayload, callback: msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>): void;
getPersonalPreferences(userName: string, personalPreferencesOperationsPayload: Models.PersonalPreferencesOperationsPayload, callback: msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>): void;
/**
* @param userName The name of the user.
* @param personalPerferencesOperationsPayload Represents payload for any Environment operations
* @param personalPreferencesOperationsPayload Represents payload for any Environment operations
* like get, start, stop, connect
* @param options The optional parameters
* @param callback The callback
*/
getPersonalPreferences(userName: string, personalPerferencesOperationsPayload: Models.PersonalPerferencesOperationsPayload, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>): void;
getPersonalPreferences(userName: string, personalPerferencesOperationsPayload: Models.PersonalPerferencesOperationsPayload, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>, callback?: msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>): Promise<Models.GlobalUsersGetPersonalPreferencesResponse> {
getPersonalPreferences(userName: string, personalPreferencesOperationsPayload: Models.PersonalPreferencesOperationsPayload, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>): void;
getPersonalPreferences(userName: string, personalPreferencesOperationsPayload: Models.PersonalPreferencesOperationsPayload, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>, callback?: msRest.ServiceCallback<Models.GetPersonalPreferencesResponse>): Promise<Models.GlobalUsersGetPersonalPreferencesResponse> {
return this.client.sendOperationRequest(
{
userName,
personalPerferencesOperationsPayload,
personalPreferencesOperationsPayload,
options
},
getPersonalPreferencesOperationSpec,
Expand Down Expand Up @@ -458,9 +458,9 @@ const getPersonalPreferencesOperationSpec: msRest.OperationSpec = {
Parameters.acceptLanguage
],
requestBody: {
parameterPath: "personalPerferencesOperationsPayload",
parameterPath: "personalPreferencesOperationsPayload",
mapper: {
...Mappers.PersonalPerferencesOperationsPayload,
...Mappers.PersonalPreferencesOperationsPayload,
required: true
}
},
Expand Down

0 comments on commit 57cc4fe

Please sign in to comment.