@microsoft/msgraph-beta-sdk-applications
Version:
Applications fluent API for Microsoft Graph
90 lines • 3.94 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 {GetMemberGroupsPostRequestBody}
*/
// @ts-ignore
export function createGetMemberGroupsPostRequestBodyFromDiscriminatorValue(parseNode) {
return deserializeIntoGetMemberGroupsPostRequestBody;
}
/**
* 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 {GetMemberGroupsPostResponse}
*/
// @ts-ignore
export function createGetMemberGroupsPostResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoGetMemberGroupsPostResponse;
}
/**
* The deserialization information for the current model
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoGetMemberGroupsPostRequestBody(getMemberGroupsPostRequestBody = {}) {
return {
"backingStoreEnabled": n => { getMemberGroupsPostRequestBody.backingStoreEnabled = true; },
"securityEnabledOnly": n => { getMemberGroupsPostRequestBody.securityEnabledOnly = n.getBooleanValue(); },
};
}
/**
* The deserialization information for the current model
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoGetMemberGroupsPostResponse(getMemberGroupsPostResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(getMemberGroupsPostResponse)), { "value": n => { getMemberGroupsPostResponse.value = n.getCollectionOfPrimitiveValues(); } });
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeGetMemberGroupsPostRequestBody(writer, getMemberGroupsPostRequestBody = {}) {
if (getMemberGroupsPostRequestBody) {
writer.writeBooleanValue("securityEnabledOnly", getMemberGroupsPostRequestBody.securityEnabledOnly);
writer.writeAdditionalData(getMemberGroupsPostRequestBody.additionalData);
}
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeGetMemberGroupsPostResponse(writer, getMemberGroupsPostResponse = {}) {
if (getMemberGroupsPostResponse) {
serializeBaseCollectionPaginationCountResponse(writer, getMemberGroupsPostResponse);
writer.writeCollectionOfPrimitiveValues("value", getMemberGroupsPostResponse.value);
}
}
/**
* Uri template for the request builder.
*/
export const GetMemberGroupsRequestBuilderUriTemplate = "{+baseurl}/applications/{application%2Did}/getMemberGroups";
/**
* Metadata for all the requests in the request builder.
*/
export const GetMemberGroupsRequestBuilderRequestsMetadata = {
post: {
uriTemplate: GetMemberGroupsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "send",
responseBodyFactory: createGetMemberGroupsPostResponseFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeGetMemberGroupsPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map