UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
98 lines 5.2 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { createDeviceManagementComplianceScheduledActionForRuleFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeDeviceManagementComplianceScheduledActionForRule } 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 {SetScheduledActionsPostRequestBody} */ // @ts-ignore export function createSetScheduledActionsPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoSetScheduledActionsPostRequestBody; } /** * 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 {SetScheduledActionsPostResponse} */ // @ts-ignore export function createSetScheduledActionsPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoSetScheduledActionsPostResponse; } /** * The deserialization information for the current model * @param SetScheduledActionsPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoSetScheduledActionsPostRequestBody(setScheduledActionsPostRequestBody = {}) { return { "backingStoreEnabled": n => { setScheduledActionsPostRequestBody.backingStoreEnabled = true; }, "scheduledActions": n => { setScheduledActionsPostRequestBody.scheduledActions = n.getCollectionOfObjectValues(createDeviceManagementComplianceScheduledActionForRuleFromDiscriminatorValue); }, }; } /** * The deserialization information for the current model * @param SetScheduledActionsPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoSetScheduledActionsPostResponse(setScheduledActionsPostResponse = {}) { return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(setScheduledActionsPostResponse)), { "value": n => { setScheduledActionsPostResponse.value = n.getCollectionOfObjectValues(createDeviceManagementComplianceScheduledActionForRuleFromDiscriminatorValue); } }); } /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param SetScheduledActionsPostRequestBody The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeSetScheduledActionsPostRequestBody(writer, setScheduledActionsPostRequestBody = {}, isSerializingDerivedType = false) { if (!setScheduledActionsPostRequestBody || isSerializingDerivedType) { return; } writer.writeCollectionOfObjectValues("scheduledActions", setScheduledActionsPostRequestBody.scheduledActions, serializeDeviceManagementComplianceScheduledActionForRule); writer.writeAdditionalData(setScheduledActionsPostRequestBody.additionalData); } /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param SetScheduledActionsPostResponse The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeSetScheduledActionsPostResponse(writer, setScheduledActionsPostResponse = {}, isSerializingDerivedType = false) { if (!setScheduledActionsPostResponse || isSerializingDerivedType) { return; } serializeBaseCollectionPaginationCountResponse(writer, setScheduledActionsPostResponse, isSerializingDerivedType); writer.writeCollectionOfObjectValues("value", setScheduledActionsPostResponse.value, serializeDeviceManagementComplianceScheduledActionForRule); } /** * Uri template for the request builder. */ export const SetScheduledActionsRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/compliancePolicies/{deviceManagementCompliancePolicy%2Did}/setScheduledActions"; /** * Metadata for all the requests in the request builder. */ export const SetScheduledActionsRequestBuilderRequestsMetadata = { post: { uriTemplate: SetScheduledActionsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createSetScheduledActionsPostResponseFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeSetScheduledActionsPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map