Skip to content

Commit

Permalink
serialization mode for get put (#1332)
Browse files Browse the repository at this point in the history
  • Loading branch information
VeryEarly committed Apr 15, 2024
1 parent 030855d commit 70c9348
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions powershell/cmdlets/class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,9 @@ export class CmdletClass extends Class {
const operationParameters = $this.operationParameters;
const pipeline = $this.$<Property>('Pipeline');
this.serializationMode = this.bodyParameter ? (this.operation.operationType === OperationType.Create ? ClientRuntime.SerializationMode.IncludeCreate : (this.operation.operationType === OperationType.Update ? ClientRuntime.SerializationMode.IncludeUpdate : undefined)) : undefined;
if (this.operation.commandType === CommandType.GetPut || this.operation.commandType === CommandType.ManagedIdentityUpdate) {
this.serializationMode = ClientRuntime.SerializationMode.IncludeCreateOrUpdate;
}

const PRA = this.add(new Method('ProcessRecordAsync', System.Threading.Tasks.Task(), {
access: Access.Protected, async: Modifier.Async,
Expand Down

0 comments on commit 70c9348

Please sign in to comment.