@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
60 lines • 3.16 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createPrivilegeManagementElevationRequestFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializePrivilegeManagementElevationRequest } 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 {GetAllElevationRequestsPostResponse}
*/
// @ts-ignore
export function createGetAllElevationRequestsPostResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoGetAllElevationRequestsPostResponse;
}
/**
* The deserialization information for the current model
* @param GetAllElevationRequestsPostResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoGetAllElevationRequestsPostResponse(getAllElevationRequestsPostResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(getAllElevationRequestsPostResponse)), { "value": n => { getAllElevationRequestsPostResponse.value = n.getCollectionOfObjectValues(createPrivilegeManagementElevationRequestFromDiscriminatorValue); } });
}
/**
* Serializes information the current object
* @param GetAllElevationRequestsPostResponse 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 serializeGetAllElevationRequestsPostResponse(writer, getAllElevationRequestsPostResponse = {}, isSerializingDerivedType = false) {
if (!getAllElevationRequestsPostResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, getAllElevationRequestsPostResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", getAllElevationRequestsPostResponse.value, serializePrivilegeManagementElevationRequest);
}
/**
* Uri template for the request builder.
*/
export const GetAllElevationRequestsRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/elevationRequests/{privilegeManagementElevationRequest%2Did}/getAllElevationRequests";
/**
* Metadata for all the requests in the request builder.
*/
export const GetAllElevationRequestsRequestBuilderRequestsMetadata = {
post: {
uriTemplate: GetAllElevationRequestsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "send",
responseBodyFactory: createGetAllElevationRequestsPostResponseFromDiscriminatorValue,
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map