UNPKG

@microsoft/msgraph-sdk-policies

Version:
63 lines 2.97 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @ts-ignore import { AuthenticationMethodModesObject, createUpdateAllowedCombinationsResultFromDiscriminatorValue } from '@microsoft/msgraph-sdk/models/index.js'; // @ts-ignore import { createODataErrorFromDiscriminatorValue } from '@microsoft/msgraph-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 {UpdateAllowedCombinationsPostRequestBody} */ // @ts-ignore export function createUpdateAllowedCombinationsPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoUpdateAllowedCombinationsPostRequestBody; } /** * The deserialization information for the current model * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoUpdateAllowedCombinationsPostRequestBody(updateAllowedCombinationsPostRequestBody = {}) { return { "allowedCombinations": n => { updateAllowedCombinationsPostRequestBody.allowedCombinations = n.getCollectionOfEnumValues(AuthenticationMethodModesObject); }, "backingStoreEnabled": n => { updateAllowedCombinationsPostRequestBody.backingStoreEnabled = true; }, }; } /** * Serializes information the current object * @param writer Serialization writer to use to serialize this model */ // @ts-ignore export function serializeUpdateAllowedCombinationsPostRequestBody(writer, updateAllowedCombinationsPostRequestBody = {}) { if (updateAllowedCombinationsPostRequestBody) { if (updateAllowedCombinationsPostRequestBody.allowedCombinations) writer.writeCollectionOfEnumValues("allowedCombinations", updateAllowedCombinationsPostRequestBody.allowedCombinations); writer.writeAdditionalData(updateAllowedCombinationsPostRequestBody.additionalData); } } /** * Uri template for the request builder. */ export const UpdateAllowedCombinationsRequestBuilderUriTemplate = "{+baseurl}/policies/authenticationStrengthPolicies/{authenticationStrengthPolicy%2Did}/updateAllowedCombinations"; /** * Metadata for all the requests in the request builder. */ export const UpdateAllowedCombinationsRequestBuilderRequestsMetadata = { post: { uriTemplate: UpdateAllowedCombinationsRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createUpdateAllowedCombinationsResultFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeUpdateAllowedCombinationsPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map