UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
99 lines 4.65 kB
/* tslint:disable */ /* eslint-disable */ // Generated by Microsoft Kiota // @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 {CreateGooglePlayWebTokenPostRequestBody} */ // @ts-ignore export function createCreateGooglePlayWebTokenPostRequestBodyFromDiscriminatorValue(parseNode) { return deserializeIntoCreateGooglePlayWebTokenPostRequestBody; } /** * 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 {CreateGooglePlayWebTokenPostResponse} */ // @ts-ignore export function createCreateGooglePlayWebTokenPostResponseFromDiscriminatorValue(parseNode) { return deserializeIntoCreateGooglePlayWebTokenPostResponse; } /** * The deserialization information for the current model * @param CreateGooglePlayWebTokenPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCreateGooglePlayWebTokenPostRequestBody(createGooglePlayWebTokenPostRequestBody = {}) { return { "backingStoreEnabled": n => { createGooglePlayWebTokenPostRequestBody.backingStoreEnabled = true; }, "parentUri": n => { createGooglePlayWebTokenPostRequestBody.parentUri = n.getStringValue(); }, }; } /** * The deserialization information for the current model * @param CreateGooglePlayWebTokenPostResponse The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ // @ts-ignore export function deserializeIntoCreateGooglePlayWebTokenPostResponse(createGooglePlayWebTokenPostResponse = {}) { return { "backingStoreEnabled": n => { createGooglePlayWebTokenPostResponse.backingStoreEnabled = true; }, "value": n => { createGooglePlayWebTokenPostResponse.value = n.getStringValue(); }, }; } /** * Serializes information the current object * @param CreateGooglePlayWebTokenPostRequestBody 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 serializeCreateGooglePlayWebTokenPostRequestBody(writer, createGooglePlayWebTokenPostRequestBody = {}, isSerializingDerivedType = false) { if (!createGooglePlayWebTokenPostRequestBody || isSerializingDerivedType) { return; } writer.writeStringValue("parentUri", createGooglePlayWebTokenPostRequestBody.parentUri); writer.writeAdditionalData(createGooglePlayWebTokenPostRequestBody.additionalData); } /** * Serializes information the current object * @param CreateGooglePlayWebTokenPostResponse 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 serializeCreateGooglePlayWebTokenPostResponse(writer, createGooglePlayWebTokenPostResponse = {}, isSerializingDerivedType = false) { if (!createGooglePlayWebTokenPostResponse || isSerializingDerivedType) { return; } writer.writeStringValue("value", createGooglePlayWebTokenPostResponse.value); writer.writeAdditionalData(createGooglePlayWebTokenPostResponse.additionalData); } /** * Uri template for the request builder. */ export const CreateGooglePlayWebTokenRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/androidManagedStoreAccountEnterpriseSettings/createGooglePlayWebToken"; /** * Metadata for all the requests in the request builder. */ export const CreateGooglePlayWebTokenRequestBuilderRequestsMetadata = { post: { uriTemplate: CreateGooglePlayWebTokenRequestBuilderUriTemplate, responseBodyContentType: "application/json", errorMappings: { XXX: createODataErrorFromDiscriminatorValue, }, adapterMethodName: "send", responseBodyFactory: createCreateGooglePlayWebTokenPostResponseFromDiscriminatorValue, requestBodyContentType: "application/json", requestBodySerializer: serializeCreateGooglePlayWebTokenPostRequestBody, requestInformationContentSetMethod: "setContentFromParsable", }, }; /* tslint:enable */ /* eslint-enable */ //# sourceMappingURL=index.js.map