UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
100 lines 5.91 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createImportedAppleDeviceIdentityFromDiscriminatorValue, createImportedAppleDeviceIdentityResultFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeImportedAppleDeviceIdentity, serializeImportedAppleDeviceIdentityResult } 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 {ImportAppleDeviceIdentityListPostRequestBody} */ // @ts-ignore export function createImportAppleDeviceIdentityListPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoImportAppleDeviceIdentityListPostRequestBody; } /** * 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 {ImportAppleDeviceIdentityListPostResponse} */ // @ts-ignore export function createImportAppleDeviceIdentityListPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoImportAppleDeviceIdentityListPostResponse; } /** * The deserialization information for the current model * @param ImportAppleDeviceIdentityListPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoImportAppleDeviceIdentityListPostRequestBody(importAppleDeviceIdentityListPostRequestBody = {}) { return { "backingStoreEnabled": n => { importAppleDeviceIdentityListPostRequestBody.backingStoreEnabled = true; }, "importedAppleDeviceIdentities": n => { importAppleDeviceIdentityListPostRequestBody.importedAppleDeviceIdentities = n.getCollectionOfObjectValues(createImportedAppleDeviceIdentityFromDiscriminatorValue); }, "overwriteImportedDeviceIdentities": n => { importAppleDeviceIdentityListPostRequestBody.overwriteImportedDeviceIdentities = n.getBooleanValue(); }, }; } /** * The deserialization information for the current model * @param ImportAppleDeviceIdentityListPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoImportAppleDeviceIdentityListPostResponse(importAppleDeviceIdentityListPostResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(importAppleDeviceIdentityListPostResponse)), { "value": n => { importAppleDeviceIdentityListPostResponse.value = n.getCollectionOfObjectValues(createImportedAppleDeviceIdentityResultFromDiscriminatorValue); } }); } /** * Serializes information the current object * @param ImportAppleDeviceIdentityListPostRequestBody 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 serializeImportAppleDeviceIdentityListPostRequestBody(writer, importAppleDeviceIdentityListPostRequestBody = {}, isSerializingDerivedType = false) { if (!importAppleDeviceIdentityListPostRequestBody || isSerializingDerivedType) { return; } writer.writeCollectionOfObjectValues("importedAppleDeviceIdentities", importAppleDeviceIdentityListPostRequestBody.importedAppleDeviceIdentities, serializeImportedAppleDeviceIdentity); writer.writeBooleanValue("overwriteImportedDeviceIdentities", importAppleDeviceIdentityListPostRequestBody.overwriteImportedDeviceIdentities); writer.writeAdditionalData(importAppleDeviceIdentityListPostRequestBody.additionalData); } /** * Serializes information the current object * @param ImportAppleDeviceIdentityListPostResponse 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 serializeImportAppleDeviceIdentityListPostResponse(writer, importAppleDeviceIdentityListPostResponse = {}, isSerializingDerivedType = false) { if (!importAppleDeviceIdentityListPostResponse || isSerializingDerivedType) { return; } serializeBaseCollectionPaginationCountResponse(writer, importAppleDeviceIdentityListPostResponse, isSerializingDerivedType); writer.writeCollectionOfObjectValues("value", importAppleDeviceIdentityListPostResponse.value, serializeImportedAppleDeviceIdentityResult); } /** * Uri template for the request builder. */ export const ImportAppleDeviceIdentityListRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/depOnboardingSettings/{depOnboardingSetting%2Did}/importedAppleDeviceIdentities/importAppleDeviceIdentityList"; /** * Metadata for all the requests in the request builder. */ export const ImportAppleDeviceIdentityListRequestBuilderRequestsMetadata = { post: { uriTemplate: ImportAppleDeviceIdentityListRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createImportAppleDeviceIdentityListPostResponseFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeImportAppleDeviceIdentityListPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map