@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
65 lines • 2.85 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { AndroidManagedStoreLayoutTypeObject } 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 {SetStoreLayoutPostRequestBody}
*/
// @ts-ignore
export function createSetStoreLayoutPostRequestBodyFromDiscriminatorValue(parseNode) {
return deserializeIntoSetStoreLayoutPostRequestBody;
}
/**
* The deserialization information for the current model
* @param SetStoreLayoutPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSetStoreLayoutPostRequestBody(setStoreLayoutPostRequestBody = {}) {
return {
"backingStoreEnabled": n => { setStoreLayoutPostRequestBody.backingStoreEnabled = true; },
"storeLayoutType": n => { setStoreLayoutPostRequestBody.storeLayoutType = n.getEnumValue(AndroidManagedStoreLayoutTypeObject); },
};
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param SetStoreLayoutPostRequestBody The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeSetStoreLayoutPostRequestBody(writer, setStoreLayoutPostRequestBody = {}, isSerializingDerivedType = false) {
if (!setStoreLayoutPostRequestBody || isSerializingDerivedType) {
return;
}
writer.writeEnumValue("storeLayoutType", setStoreLayoutPostRequestBody.storeLayoutType);
writer.writeAdditionalData(setStoreLayoutPostRequestBody.additionalData);
}
/**
* Uri template for the request builder.
*/
export const SetStoreLayoutRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/androidManagedStoreAccountEnterpriseSettings/setStoreLayout";
/**
* Metadata for all the requests in the request builder.
*/
export const SetStoreLayoutRequestBuilderRequestsMetadata = {
post: {
uriTemplate: SetStoreLayoutRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "sendNoResponseContent",
requestBodyContentType: "application/json",
requestBodySerializer: serializeSetStoreLayoutPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map