@microsoft/msgraph-beta-sdk-groups
Version:
Groups fluent API for Microsoft Graph
91 lines • 3.52 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
* @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
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoRenewGroupPostResponse(renewGroupPostResponse = {}) {
return {
"backingStoreEnabled": n => { renewGroupPostResponse.backingStoreEnabled = true; },
"value": n => { renewGroupPostResponse.value = n.getBooleanValue(); },
};
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeRenewGroupPostRequestBody(writer, renewGroupPostRequestBody = {}) {
if (renewGroupPostRequestBody) {
writer.writeStringValue("groupId", renewGroupPostRequestBody.groupId);
writer.writeAdditionalData(renewGroupPostRequestBody.additionalData);
}
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeRenewGroupPostResponse(writer, renewGroupPostResponse = {}) {
if (renewGroupPostResponse) {
writer.writeBooleanValue("value", renewGroupPostResponse.value);
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