UNPKG

@microsoft/msgraph-beta-sdk-organization

Version:
98 lines 4.67 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse } 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 {CheckMemberGroupsPostRequestBody} */ // @ts-ignore export function createCheckMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoCheckMemberGroupsPostRequestBody; } /** * 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 {CheckMemberGroupsPostResponse} */ // @ts-ignore export function createCheckMemberGroupsPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoCheckMemberGroupsPostResponse; } /** * The deserialization information for the current model * @param CheckMemberGroupsPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCheckMemberGroupsPostRequestBody(checkMemberGroupsPostRequestBody = {}) { return { "backingStoreEnabled": n => { checkMemberGroupsPostRequestBody.backingStoreEnabled = true; }, "groupIds": n => { checkMemberGroupsPostRequestBody.groupIds = n.getCollectionOfPrimitiveValues(); }, }; } /** * The deserialization information for the current model * @param CheckMemberGroupsPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCheckMemberGroupsPostResponse(checkMemberGroupsPostResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(checkMemberGroupsPostResponse)), { "value": n => { checkMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); } }); } /** * Serializes information the current object * @param CheckMemberGroupsPostRequestBody The instance to serialize from. * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeCheckMemberGroupsPostRequestBody(writer, checkMemberGroupsPostRequestBody = {}, isSerializingDerivedType = false) { if (!checkMemberGroupsPostRequestBody || isSerializingDerivedType) { return; } writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds); writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData); } /** * Serializes information the current object * @param CheckMemberGroupsPostResponse The instance to serialize from. * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeCheckMemberGroupsPostResponse(writer, checkMemberGroupsPostResponse = {}, isSerializingDerivedType = false) { if (!checkMemberGroupsPostResponse || isSerializingDerivedType) { return; } serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse, isSerializingDerivedType); writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value); } /** * Uri template for the request builder. */ export const CheckMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/organization/{organization%2Did}/checkMemberGroups"; /** * Metadata for all the requests in the request builder. */ export const CheckMemberGroupsRequestBuilderRequestsMetadata = { post: { uriTemplate: CheckMemberGroupsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createCheckMemberGroupsPostResponseFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeCheckMemberGroupsPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map