@microsoft/msgraph-beta-sdk-communications
Version:
Communications fluent API for Microsoft Graph
68 lines • 2.96 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createMuteParticipantsOperationFromDiscriminatorValue } from '@microsoft/msgraph-beta-sdk/models/index.js';
// @ts-ignore
import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-beta-sdk/models/oDataErrors/index.js';
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @returns {MuteAllPostRequestBody}
*/
// @ts-ignore
export function createMuteAllPostRequestBodyFromDiscriminatorValue(parseNode) {
return deserializeIntoMuteAllPostRequestBody;
}
/**
* The deserialization information for the current model
* @param MuteAllPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoMuteAllPostRequestBody(muteAllPostRequestBody = {}) {
return {
"backingStoreEnabled": n => { muteAllPostRequestBody.backingStoreEnabled = true; },
"clientContext": n => { muteAllPostRequestBody.clientContext = n.getStringValue(); },
"participants": n => { muteAllPostRequestBody.participants = n.getCollectionOfPrimitiveValues(); },
};
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param MuteAllPostRequestBody The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeMuteAllPostRequestBody(writer, muteAllPostRequestBody = {}, isSerializingDerivedType = false) {
if (!muteAllPostRequestBody || isSerializingDerivedType) {
return;
}
writer.writeStringValue("clientContext", muteAllPostRequestBody.clientContext);
writer.writeCollectionOfPrimitiveValues("participants", muteAllPostRequestBody.participants);
writer.writeAdditionalData(muteAllPostRequestBody.additionalData);
}
/**
* Uri template for the request builder.
*/
export const MuteAllRequestBuilderUriTemplate = "{+baseurl}/communications/calls/{call%2Did}/participants/muteAll";
/**
* Metadata for all the requests in the request builder.
*/
export const MuteAllRequestBuilderRequestsMetadata = {
post: {
uriTemplate: MuteAllRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "send",
responseBodyFactory: createMuteParticipantsOperationFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeMuteAllPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map