Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR labservices/resource-manager] [LabServices] Fix typo, remove required from optional param #755

Merged
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
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