@microsoft/msgraph-beta-sdk-applications
Version:
Applications fluent API for Microsoft Graph
90 lines • 3.99 kB
JavaScript
/* 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
* @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
* @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 writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeCheckMemberGroupsPostRequestBody(writer, checkMemberGroupsPostRequestBody = {}) {
if (checkMemberGroupsPostRequestBody) {
writer.writeCollectionOfPrimitiveValues("groupIds", checkMemberGroupsPostRequestBody.groupIds);
writer.writeAdditionalData(checkMemberGroupsPostRequestBody.additionalData);
}
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeCheckMemberGroupsPostResponse(writer, checkMemberGroupsPostResponse = {}) {
if (checkMemberGroupsPostResponse) {
serializeBaseCollectionPaginationCountResponse(writer, checkMemberGroupsPostResponse);
writer.writeCollectionOfPrimitiveValues("value", checkMemberGroupsPostResponse.value);
}
}
/**
* Uri template for the request builder.
*/
export const CheckMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/applications/{application%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