@microsoft/msgraph-beta-sdk-security
Version:
Security fluent API for Microsoft Graph
98 lines • 4.79 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createResultInfoFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeResultInfo } 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 {DeleteTiIndicatorsPostRequestBody}
*/
// @ts-ignore
export function createDeleteTiIndicatorsPostRequestBodyFromDiscriminatorValue(parseNode) {
return deserializeIntoDeleteTiIndicatorsPostRequestBody;
}
/**
* 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 {DeleteTiIndicatorsPostResponse}
*/
// @ts-ignore
export function createDeleteTiIndicatorsPostResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoDeleteTiIndicatorsPostResponse;
}
/**
* The deserialization information for the current model
* @param DeleteTiIndicatorsPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoDeleteTiIndicatorsPostRequestBody(deleteTiIndicatorsPostRequestBody = {}) {
return {
"backingStoreEnabled": n => { deleteTiIndicatorsPostRequestBody.backingStoreEnabled = true; },
"value": n => { deleteTiIndicatorsPostRequestBody.value = n.getCollectionOfPrimitiveValues(); },
};
}
/**
* The deserialization information for the current model
* @param DeleteTiIndicatorsPostResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoDeleteTiIndicatorsPostResponse(deleteTiIndicatorsPostResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(deleteTiIndicatorsPostResponse)), { "value": n => { deleteTiIndicatorsPostResponse.value = n.getCollectionOfObjectValues(createResultInfoFromDiscriminatorValue); } });
}
/**
* Serializes information the current object
* @param DeleteTiIndicatorsPostRequestBody 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 serializeDeleteTiIndicatorsPostRequestBody(writer, deleteTiIndicatorsPostRequestBody = {}, isSerializingDerivedType = false) {
if (!deleteTiIndicatorsPostRequestBody || isSerializingDerivedType) {
return;
}
writer.writeCollectionOfPrimitiveValues("value", deleteTiIndicatorsPostRequestBody.value);
writer.writeAdditionalData(deleteTiIndicatorsPostRequestBody.additionalData);
}
/**
* Serializes information the current object
* @param DeleteTiIndicatorsPostResponse 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 serializeDeleteTiIndicatorsPostResponse(writer, deleteTiIndicatorsPostResponse = {}, isSerializingDerivedType = false) {
if (!deleteTiIndicatorsPostResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, deleteTiIndicatorsPostResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", deleteTiIndicatorsPostResponse.value, serializeResultInfo);
}
/**
* Uri template for the request builder.
*/
export const DeleteTiIndicatorsRequestBuilderUriTemplate = "{+baseurl}/security/tiIndicators/deleteTiIndicators";
/**
* Metadata for all the requests in the request builder.
*/
export const DeleteTiIndicatorsRequestBuilderRequestsMetadata = {
post: {
uriTemplate: DeleteTiIndicatorsRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "send",
responseBodyFactory: createDeleteTiIndicatorsPostResponseFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeDeleteTiIndicatorsPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map