@microsoft/msgraph-beta-sdk-admin
Version:
Admin fluent API for Microsoft Graph
69 lines • 3.44 kB
JavaScript
/* 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 {UpdateNumberPostRequestBody}
*/
// @ts-ignore
export function createUpdateNumberPostRequestBodyFromDiscriminatorValue(parseNode) {
return deserializeIntoUpdateNumberPostRequestBody;
}
/**
* The deserialization information for the current model
* @param UpdateNumberPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUpdateNumberPostRequestBody(updateNumberPostRequestBody = {}) {
return {
"backingStoreEnabled": n => { updateNumberPostRequestBody.backingStoreEnabled = true; },
"locationId": n => { updateNumberPostRequestBody.locationId = n.getStringValue(); },
"networkSiteId": n => { updateNumberPostRequestBody.networkSiteId = n.getStringValue(); },
"reverseNumberLookupOptions": n => { updateNumberPostRequestBody.reverseNumberLookupOptions = n.getCollectionOfPrimitiveValues(); },
"telephoneNumber": n => { updateNumberPostRequestBody.telephoneNumber = n.getStringValue(); },
};
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param UpdateNumberPostRequestBody The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeUpdateNumberPostRequestBody(writer, updateNumberPostRequestBody = {}, isSerializingDerivedType = false) {
if (!updateNumberPostRequestBody || isSerializingDerivedType) {
return;
}
writer.writeStringValue("locationId", updateNumberPostRequestBody.locationId);
writer.writeStringValue("networkSiteId", updateNumberPostRequestBody.networkSiteId);
writer.writeCollectionOfPrimitiveValues("reverseNumberLookupOptions", updateNumberPostRequestBody.reverseNumberLookupOptions);
writer.writeStringValue("telephoneNumber", updateNumberPostRequestBody.telephoneNumber);
writer.writeAdditionalData(updateNumberPostRequestBody.additionalData);
}
/**
* Uri template for the request builder.
*/
export const MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderUriTemplate = "{+baseurl}/admin/teams/telephoneNumberManagement/numberAssignments/microsoft.graph.teamsAdministration.updateNumber";
/**
* Metadata for all the requests in the request builder.
*/
export const MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderRequestsMetadata = {
post: {
uriTemplate: MicrosoftGraphTeamsAdministrationUpdateNumberRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "sendNoResponseContent",
requestBodyContentType: "application/json",
requestBodySerializer: serializeUpdateNumberPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map