@microsoft/msgraph-beta-sdk-groups
Version:
Groups fluent API for Microsoft Graph
100 lines • 4.26 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 {RenewGroupPostRequestBody}
*/
// @ts-ignore
export function createRenewGroupPostRequestBodyFromDiscriminatorValue(parseNode) {
return deserializeIntoRenewGroupPostRequestBody;
}
/**
* 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 {RenewGroupPostResponse}
*/
// @ts-ignore
export function createRenewGroupPostResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoRenewGroupPostResponse;
}
/**
* The deserialization information for the current model
* @param RenewGroupPostRequestBody The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRenewGroupPostRequestBody(renewGroupPostRequestBody = {}) {
return {
"backingStoreEnabled": n => { renewGroupPostRequestBody.backingStoreEnabled = true; },
"groupId": n => { renewGroupPostRequestBody.groupId = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param RenewGroupPostResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRenewGroupPostResponse(renewGroupPostResponse = {}) {
return {
"backingStoreEnabled": n => { renewGroupPostResponse.backingStoreEnabled = true; },
"value": n => { var _a; renewGroupPostResponse.value = (_a = n.getBooleanValue()) !== null && _a !== void 0 ? _a : false; },
};
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param RenewGroupPostRequestBody The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeRenewGroupPostRequestBody(writer, renewGroupPostRequestBody = {}, isSerializingDerivedType = false) {
if (!renewGroupPostRequestBody || isSerializingDerivedType) {
return;
}
writer.writeStringValue("groupId", renewGroupPostRequestBody.groupId);
writer.writeAdditionalData(renewGroupPostRequestBody.additionalData);
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param RenewGroupPostResponse The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeRenewGroupPostResponse(writer, renewGroupPostResponse = {}, isSerializingDerivedType = false) {
var _a;
if (!renewGroupPostResponse || isSerializingDerivedType) {
return;
}
writer.writeBooleanValue("value", (_a = renewGroupPostResponse.value) !== null && _a !== void 0 ? _a : false);
writer.writeAdditionalData(renewGroupPostResponse.additionalData);
}
/**
* Uri template for the request builder.
*/
export const RenewGroupRequestBuilderUriTemplate = "{+baseurl}/groups/{group%2Did}/groupLifecyclePolicies/renewGroup";
/**
* Metadata for all the requests in the request builder.
*/
export const RenewGroupRequestBuilderRequestsMetadata = {
post: {
uriTemplate: RenewGroupRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "send",
responseBodyFactory: createRenewGroupPostResponseFromDiscriminatorValue,
requestBodyContentType: "application/json",
requestBodySerializer: serializeRenewGroupPostRequestBody,
requestInformationContentSetMethod: "setContentFromParsable",
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map