UNPKG

@microsoft/msgraph-beta-sdk-security

Version:
90 lines 4.17 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 * @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 * @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 writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeUpdateTiIndicatorsPostRequestBody(writer, updateTiIndicatorsPostRequestBody = {}) { if (updateTiIndicatorsPostRequestBody) { writer.writeCollectionOfObjectValues("value", updateTiIndicatorsPostRequestBody.value, serializeTiIndicator); writer.writeAdditionalData(updateTiIndicatorsPostRequestBody.additionalData); } } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeUpdateTiIndicatorsPostResponse(writer, updateTiIndicatorsPostResponse = {}) { if (updateTiIndicatorsPostResponse) { serializeBaseCollectionPaginationCountResponse(writer, updateTiIndicatorsPostResponse); 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