UNPKG

@microsoft/msgraph-beta-sdk-security

Version:
98 lines 4.85 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createTiIndicatorFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeTiIndicator } 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 {UpdateTiIndicatorsPostRequestBody} */ // @ts-ignore export function createUpdateTiIndicatorsPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoUpdateTiIndicatorsPostRequestBody; } /** * 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 {UpdateTiIndicatorsPostResponse} */ // @ts-ignore export function createUpdateTiIndicatorsPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoUpdateTiIndicatorsPostResponse; } /** * The deserialization information for the current model * @param UpdateTiIndicatorsPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoUpdateTiIndicatorsPostRequestBody(updateTiIndicatorsPostRequestBody = {}) { return { "backingStoreEnabled": n => { updateTiIndicatorsPostRequestBody.backingStoreEnabled = true; }, "value": n => { updateTiIndicatorsPostRequestBody.value = n.getCollectionOfObjectValues(createTiIndicatorFromDiscriminatorValue); }, }; } /** * The deserialization information for the current model * @param UpdateTiIndicatorsPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoUpdateTiIndicatorsPostResponse(updateTiIndicatorsPostResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(updateTiIndicatorsPostResponse)), { "value": n => { updateTiIndicatorsPostResponse.value = n.getCollectionOfObjectValues(createTiIndicatorFromDiscriminatorValue); } }); } /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param UpdateTiIndicatorsPostRequestBody The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeUpdateTiIndicatorsPostRequestBody(writer, updateTiIndicatorsPostRequestBody = {}, isSerializingDerivedType = false) { if (!updateTiIndicatorsPostRequestBody || isSerializingDerivedType) { return; } writer.writeCollectionOfObjectValues("value", updateTiIndicatorsPostRequestBody.value, serializeTiIndicator); writer.writeAdditionalData(updateTiIndicatorsPostRequestBody.additionalData); } /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param UpdateTiIndicatorsPostResponse The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeUpdateTiIndicatorsPostResponse(writer, updateTiIndicatorsPostResponse = {}, isSerializingDerivedType = false) { if (!updateTiIndicatorsPostResponse || isSerializingDerivedType) { return; } serializeBaseCollectionPaginationCountResponse(writer, updateTiIndicatorsPostResponse, isSerializingDerivedType); writer.writeCollectionOfObjectValues("value", updateTiIndicatorsPostResponse.value, serializeTiIndicator); } /** * Uri template for the request builder. */ export const UpdateTiIndicatorsRequestBuilderUriTemplate = "{+baseurl}/security/tiIndicators/updateTiIndicators"; /** * Metadata for all the requests in the request builder. */ export const UpdateTiIndicatorsRequestBuilderRequestsMetadata = { post: { uriTemplate: UpdateTiIndicatorsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createUpdateTiIndicatorsPostResponseFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeUpdateTiIndicatorsPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map