UNPKG

@microsoft/msgraph-beta-sdk-security

Version:
98 lines 5.13 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createProcessContentBatchRequestFromDiscriminatorValue, createProcessContentResponsesFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeProcessContentBatchRequest, serializeProcessContentResponses } 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 {ProcessContentAsyncPostRequestBody} */ // @ts-ignore export function createProcessContentAsyncPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoProcessContentAsyncPostRequestBody; } /** * 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 {ProcessContentAsyncPostResponse} */ // @ts-ignore export function createProcessContentAsyncPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoProcessContentAsyncPostResponse; } /** * The deserialization information for the current model * @param ProcessContentAsyncPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoProcessContentAsyncPostRequestBody(processContentAsyncPostRequestBody = {}) { return { "backingStoreEnabled": n => { processContentAsyncPostRequestBody.backingStoreEnabled = true; }, "processContentRequests": n => { processContentAsyncPostRequestBody.processContentRequests = n.getCollectionOfObjectValues(createProcessContentBatchRequestFromDiscriminatorValue); }, }; } /** * The deserialization information for the current model * @param ProcessContentAsyncPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoProcessContentAsyncPostResponse(processContentAsyncPostResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(processContentAsyncPostResponse)), { "value": n => { processContentAsyncPostResponse.value = n.getCollectionOfObjectValues(createProcessContentResponsesFromDiscriminatorValue); } }); } /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param ProcessContentAsyncPostRequestBody The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeProcessContentAsyncPostRequestBody(writer, processContentAsyncPostRequestBody = {}, isSerializingDerivedType = false) { if (!processContentAsyncPostRequestBody || isSerializingDerivedType) { return; } writer.writeCollectionOfObjectValues("processContentRequests", processContentAsyncPostRequestBody.processContentRequests, serializeProcessContentBatchRequest); writer.writeAdditionalData(processContentAsyncPostRequestBody.additionalData); } /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param ProcessContentAsyncPostResponse The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeProcessContentAsyncPostResponse(writer, processContentAsyncPostResponse = {}, isSerializingDerivedType = false) { if (!processContentAsyncPostResponse || isSerializingDerivedType) { return; } serializeBaseCollectionPaginationCountResponse(writer, processContentAsyncPostResponse, isSerializingDerivedType); writer.writeCollectionOfObjectValues("value", processContentAsyncPostResponse.value, serializeProcessContentResponses); } /** * Uri template for the request builder. */ export const ProcessContentAsyncRequestBuilderUriTemplate = "{+baseurl}/security/dataSecurityAndGovernance/processContentAsync"; /** * Metadata for all the requests in the request builder. */ export const ProcessContentAsyncRequestBuilderRequestsMetadata = { post: { uriTemplate: ProcessContentAsyncRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createProcessContentAsyncPostResponseFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeProcessContentAsyncPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map