UNPKG

@microsoft/msgraph-sdk-groups

Version:
60 lines 3.19 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createResourceSpecificPermissionGrantFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeResourceSpecificPermissionGrant } from '@microsoft/msgraph-sdk/models/index.js'; // @ts-ignore import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-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 {CheckGrantedPermissionsForAppPostResponse} */ // @ts-ignore export function createCheckGrantedPermissionsForAppPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoCheckGrantedPermissionsForAppPostResponse; } /** * The deserialization information for the current model * @param CheckGrantedPermissionsForAppPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCheckGrantedPermissionsForAppPostResponse(checkGrantedPermissionsForAppPostResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(checkGrantedPermissionsForAppPostResponse)), { "value": n => { checkGrantedPermissionsForAppPostResponse.value = n.getCollectionOfObjectValues(createResourceSpecificPermissionGrantFromDiscriminatorValue); } }); } /** * Serializes information the current object * @param CheckGrantedPermissionsForAppPostResponse 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 serializeCheckGrantedPermissionsForAppPostResponse(writer, checkGrantedPermissionsForAppPostResponse = {}, isSerializingDerivedType = false) { if (!checkGrantedPermissionsForAppPostResponse || isSerializingDerivedType) { return; } serializeBaseCollectionPaginationCountResponse(writer, checkGrantedPermissionsForAppPostResponse, isSerializingDerivedType); writer.writeCollectionOfObjectValues("value", checkGrantedPermissionsForAppPostResponse.value, serializeResourceSpecificPermissionGrant); } /** * Uri template for the request builder. */ export const CheckGrantedPermissionsForAppRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/checkGrantedPermissionsForApp"; /** * Metadata for all the requests in the request builder. */ export const CheckGrantedPermissionsForAppRequestBuilderRequestsMetadata = { post: { uriTemplate: CheckGrantedPermissionsForAppRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createCheckGrantedPermissionsForAppPostResponseFromDiscriminatorValue, }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map