@microsoft/msgraph-beta-sdk
Version:
Microsoft Graph Beta JavaScript client library
541 lines • 29.4 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createDirectoryObjectFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, deserializeIntoEntity, serializeBaseCollectionPaginationCountResponse, serializeDirectoryObject, serializeEntity } from '../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 {AdminCloudLicensing}
*/
// @ts-ignore
export function createAdminCloudLicensingFromDiscriminatorValue(parseNode) {
return deserializeIntoAdminCloudLicensing;
}
/**
* 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 {AllotmentCollectionResponse}
*/
// @ts-ignore
export function createAllotmentCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoAllotmentCollectionResponse;
}
/**
* 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 {Allotment}
*/
// @ts-ignore
export function createAllotmentFromDiscriminatorValue(parseNode) {
return deserializeIntoAllotment;
}
/**
* 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 {AssignmentCollectionResponse}
*/
// @ts-ignore
export function createAssignmentCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoAssignmentCollectionResponse;
}
/**
* 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 {AssignmentErrorCollectionResponse}
*/
// @ts-ignore
export function createAssignmentErrorCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoAssignmentErrorCollectionResponse;
}
/**
* 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 {AssignmentError}
*/
// @ts-ignore
export function createAssignmentErrorFromDiscriminatorValue(parseNode) {
return deserializeIntoAssignmentError;
}
/**
* 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 {Assignment}
*/
// @ts-ignore
export function createAssignmentFromDiscriminatorValue(parseNode) {
return deserializeIntoAssignment;
}
/**
* 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 {GroupCloudLicensing}
*/
// @ts-ignore
export function createGroupCloudLicensingFromDiscriminatorValue(parseNode) {
return deserializeIntoGroupCloudLicensing;
}
/**
* 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 {Service}
*/
// @ts-ignore
export function createServiceFromDiscriminatorValue(parseNode) {
return deserializeIntoService;
}
/**
* 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 {Subscription}
*/
// @ts-ignore
export function createSubscriptionFromDiscriminatorValue(parseNode) {
return deserializeIntoSubscription;
}
/**
* 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 {UsageRight}
*/
// @ts-ignore
export function createUsageRightFromDiscriminatorValue(parseNode) {
return deserializeIntoUsageRight;
}
/**
* 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 {UserCloudLicensing}
*/
// @ts-ignore
export function createUserCloudLicensingFromDiscriminatorValue(parseNode) {
return deserializeIntoUserCloudLicensing;
}
/**
* 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 {WaitingMemberCollectionResponse}
*/
// @ts-ignore
export function createWaitingMemberCollectionResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoWaitingMemberCollectionResponse;
}
/**
* 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 {WaitingMember}
*/
// @ts-ignore
export function createWaitingMemberFromDiscriminatorValue(parseNode) {
return deserializeIntoWaitingMember;
}
/**
* The deserialization information for the current model
* @param AdminCloudLicensing The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAdminCloudLicensing(adminCloudLicensing = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(adminCloudLicensing)), { "allotments": n => { adminCloudLicensing.allotments = n.getCollectionOfObjectValues(createAllotmentFromDiscriminatorValue); }, "assignmentErrors": n => { adminCloudLicensing.assignmentErrors = n.getCollectionOfObjectValues(createAssignmentErrorFromDiscriminatorValue); }, "assignments": n => { adminCloudLicensing.assignments = n.getCollectionOfObjectValues(createAssignmentFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param Allotment The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAllotment(allotment = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(allotment)), { "allottedUnits": n => { allotment.allottedUnits = n.getNumberValue(); }, "assignableTo": n => { allotment.assignableTo = n.getCollectionOfEnumValues(AssigneeTypesObject); }, "assignments": n => { allotment.assignments = n.getCollectionOfObjectValues(createAssignmentFromDiscriminatorValue); }, "consumedUnits": n => { allotment.consumedUnits = n.getNumberValue(); }, "externalServiceIdentifier": n => { allotment.externalServiceIdentifier = n.getStringValue(); }, "services": n => { allotment.services = n.getCollectionOfObjectValues(createServiceFromDiscriminatorValue); }, "skuId": n => { allotment.skuId = n.getGuidValue(); }, "skuPartNumber": n => { allotment.skuPartNumber = n.getStringValue(); }, "subscriptions": n => { allotment.subscriptions = n.getCollectionOfObjectValues(createSubscriptionFromDiscriminatorValue); }, "waitingMembers": n => { allotment.waitingMembers = n.getCollectionOfObjectValues(createWaitingMemberFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param AllotmentCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAllotmentCollectionResponse(allotmentCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(allotmentCollectionResponse)), { "value": n => { allotmentCollectionResponse.value = n.getCollectionOfObjectValues(createAllotmentFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param Assignment The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAssignment(assignment = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(assignment)), { "allotment": n => { assignment.allotment = n.getObjectValue(createAllotmentFromDiscriminatorValue); }, "assignedTo": n => { assignment.assignedTo = n.getObjectValue(createDirectoryObjectFromDiscriminatorValue); }, "disabledServicePlanIds": n => { assignment.disabledServicePlanIds = n.getCollectionOfPrimitiveValues("string"); } });
}
/**
* The deserialization information for the current model
* @param AssignmentCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAssignmentCollectionResponse(assignmentCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(assignmentCollectionResponse)), { "value": n => { assignmentCollectionResponse.value = n.getCollectionOfObjectValues(createAssignmentFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param AssignmentError The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAssignmentError(assignmentError = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(assignmentError)), { "assignedTo": n => { assignmentError.assignedTo = n.getObjectValue(createDirectoryObjectFromDiscriminatorValue); }, "code": n => { assignmentError.code = n.getStringValue(); }, "message": n => { assignmentError.message = n.getStringValue(); }, "occurrenceDateTime": n => { assignmentError.occurrenceDateTime = n.getDateValue(); }, "skuId": n => { assignmentError.skuId = n.getGuidValue(); }, "usageRight": n => { assignmentError.usageRight = n.getObjectValue(createUsageRightFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param AssignmentErrorCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoAssignmentErrorCollectionResponse(assignmentErrorCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(assignmentErrorCollectionResponse)), { "value": n => { assignmentErrorCollectionResponse.value = n.getCollectionOfObjectValues(createAssignmentErrorFromDiscriminatorValue); } });
}
/**
* The deserialization information for the current model
* @param GroupCloudLicensing The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoGroupCloudLicensing(groupCloudLicensing = {}) {
return {
"assignments": n => { groupCloudLicensing.assignments = n.getCollectionOfObjectValues(createAssignmentFromDiscriminatorValue); },
"backingStoreEnabled": n => { groupCloudLicensing.backingStoreEnabled = true; },
"@odata.type": n => { groupCloudLicensing.odataType = n.getStringValue(); },
"usageRights": n => { groupCloudLicensing.usageRights = n.getCollectionOfObjectValues(createUsageRightFromDiscriminatorValue); },
};
}
/**
* The deserialization information for the current model
* @param Service The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoService(service = {}) {
return {
"assignableTo": n => { service.assignableTo = n.getCollectionOfEnumValues(AssigneeTypesObject); },
"backingStoreEnabled": n => { service.backingStoreEnabled = true; },
"@odata.type": n => { service.odataType = n.getStringValue(); },
"planId": n => { service.planId = n.getGuidValue(); },
"planName": n => { service.planName = n.getStringValue(); },
};
}
/**
* The deserialization information for the current model
* @param Subscription The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoSubscription(subscription = {}) {
return {
"backingStoreEnabled": n => { subscription.backingStoreEnabled = true; },
"nextLifecycleDate": n => { subscription.nextLifecycleDate = n.getDateOnlyValue(); },
"@odata.type": n => { subscription.odataType = n.getStringValue(); },
"startDate": n => { subscription.startDate = n.getDateOnlyValue(); },
"state": n => { subscription.state = n.getEnumValue(SubscriptionStateObject); },
"subscriptionId": n => { subscription.subscriptionId = n.getStringValue(); },
"tags": n => { subscription.tags = n.getCollectionOfEnumValues(SubscriptionTagsObject); },
};
}
/**
* The deserialization information for the current model
* @param UsageRight The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUsageRight(usageRight = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(usageRight)), { "allotments": n => { usageRight.allotments = n.getCollectionOfObjectValues(createAllotmentFromDiscriminatorValue); }, "assignments": n => { usageRight.assignments = n.getCollectionOfObjectValues(createAssignmentFromDiscriminatorValue); }, "externalServiceIdentifier": n => { usageRight.externalServiceIdentifier = n.getStringValue(); }, "services": n => { usageRight.services = n.getCollectionOfObjectValues(createServiceFromDiscriminatorValue); }, "skuId": n => { usageRight.skuId = n.getGuidValue(); }, "skuPartNumber": n => { usageRight.skuPartNumber = n.getStringValue(); } });
}
/**
* The deserialization information for the current model
* @param UserCloudLicensing The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoUserCloudLicensing(userCloudLicensing = {}) {
return {
"assignmentErrors": n => { userCloudLicensing.assignmentErrors = n.getCollectionOfObjectValues(createAssignmentErrorFromDiscriminatorValue); },
"assignments": n => { userCloudLicensing.assignments = n.getCollectionOfObjectValues(createAssignmentFromDiscriminatorValue); },
"backingStoreEnabled": n => { userCloudLicensing.backingStoreEnabled = true; },
"@odata.type": n => { userCloudLicensing.odataType = n.getStringValue(); },
"usageRights": n => { userCloudLicensing.usageRights = n.getCollectionOfObjectValues(createUsageRightFromDiscriminatorValue); },
"waitingMembers": n => { userCloudLicensing.waitingMembers = n.getCollectionOfObjectValues(createWaitingMemberFromDiscriminatorValue); },
};
}
/**
* The deserialization information for the current model
* @param WaitingMember The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoWaitingMember(waitingMember = {}) {
return Object.assign(Object.assign({}, deserializeIntoEntity(waitingMember)), { "allotment": n => { waitingMember.allotment = n.getObjectValue(createAllotmentFromDiscriminatorValue); }, "assignedTo": n => { waitingMember.assignedTo = n.getObjectValue(createDirectoryObjectFromDiscriminatorValue); }, "waitingSinceDateTime": n => { waitingMember.waitingSinceDateTime = n.getDateValue(); } });
}
/**
* The deserialization information for the current model
* @param WaitingMemberCollectionResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoWaitingMemberCollectionResponse(waitingMemberCollectionResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(waitingMemberCollectionResponse)), { "value": n => { waitingMemberCollectionResponse.value = n.getCollectionOfObjectValues(createWaitingMemberFromDiscriminatorValue); } });
}
/**
* Serializes information the current object
* @param AdminCloudLicensing 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 serializeAdminCloudLicensing(writer, adminCloudLicensing = {}, isSerializingDerivedType = false) {
if (!adminCloudLicensing || isSerializingDerivedType) {
return;
}
serializeEntity(writer, adminCloudLicensing, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("allotments", adminCloudLicensing.allotments, serializeAllotment);
writer.writeCollectionOfObjectValues("assignmentErrors", adminCloudLicensing.assignmentErrors, serializeAssignmentError);
writer.writeCollectionOfObjectValues("assignments", adminCloudLicensing.assignments, serializeAssignment);
}
/**
* Serializes information the current object
* @param Allotment 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 serializeAllotment(writer, allotment = {}, isSerializingDerivedType = false) {
if (!allotment || isSerializingDerivedType) {
return;
}
serializeEntity(writer, allotment, isSerializingDerivedType);
writer.writeNumberValue("allottedUnits", allotment.allottedUnits);
writer.writeEnumValue("assignableTo", allotment.assignableTo);
writer.writeCollectionOfObjectValues("assignments", allotment.assignments, serializeAssignment);
writer.writeNumberValue("consumedUnits", allotment.consumedUnits);
writer.writeStringValue("externalServiceIdentifier", allotment.externalServiceIdentifier);
writer.writeCollectionOfObjectValues("services", allotment.services, serializeService);
writer.writeGuidValue("skuId", allotment.skuId);
writer.writeStringValue("skuPartNumber", allotment.skuPartNumber);
writer.writeCollectionOfObjectValues("subscriptions", allotment.subscriptions, serializeSubscription);
writer.writeCollectionOfObjectValues("waitingMembers", allotment.waitingMembers, serializeWaitingMember);
}
/**
* Serializes information the current object
* @param AllotmentCollectionResponse 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 serializeAllotmentCollectionResponse(writer, allotmentCollectionResponse = {}, isSerializingDerivedType = false) {
if (!allotmentCollectionResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, allotmentCollectionResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", allotmentCollectionResponse.value, serializeAllotment);
}
/**
* Serializes information the current object
* @param Assignment 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 serializeAssignment(writer, assignment = {}, isSerializingDerivedType = false) {
if (!assignment || isSerializingDerivedType) {
return;
}
serializeEntity(writer, assignment, isSerializingDerivedType);
writer.writeObjectValue("allotment", assignment.allotment, serializeAllotment);
writer.writeObjectValue("assignedTo", assignment.assignedTo, serializeDirectoryObject);
writer.writeCollectionOfPrimitiveValues("disabledServicePlanIds", assignment.disabledServicePlanIds);
}
/**
* Serializes information the current object
* @param AssignmentCollectionResponse 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 serializeAssignmentCollectionResponse(writer, assignmentCollectionResponse = {}, isSerializingDerivedType = false) {
if (!assignmentCollectionResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, assignmentCollectionResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", assignmentCollectionResponse.value, serializeAssignment);
}
/**
* Serializes information the current object
* @param AssignmentError 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 serializeAssignmentError(writer, assignmentError = {}, isSerializingDerivedType = false) {
if (!assignmentError || isSerializingDerivedType) {
return;
}
serializeEntity(writer, assignmentError, isSerializingDerivedType);
writer.writeObjectValue("assignedTo", assignmentError.assignedTo, serializeDirectoryObject);
writer.writeStringValue("code", assignmentError.code);
writer.writeStringValue("message", assignmentError.message);
writer.writeDateValue("occurrenceDateTime", assignmentError.occurrenceDateTime);
writer.writeGuidValue("skuId", assignmentError.skuId);
writer.writeObjectValue("usageRight", assignmentError.usageRight, serializeUsageRight);
}
/**
* Serializes information the current object
* @param AssignmentErrorCollectionResponse 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 serializeAssignmentErrorCollectionResponse(writer, assignmentErrorCollectionResponse = {}, isSerializingDerivedType = false) {
if (!assignmentErrorCollectionResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, assignmentErrorCollectionResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", assignmentErrorCollectionResponse.value, serializeAssignmentError);
}
/**
* Serializes information the current object
* @param GroupCloudLicensing 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 serializeGroupCloudLicensing(writer, groupCloudLicensing = {}, isSerializingDerivedType = false) {
if (!groupCloudLicensing || isSerializingDerivedType) {
return;
}
writer.writeCollectionOfObjectValues("assignments", groupCloudLicensing.assignments, serializeAssignment);
writer.writeStringValue("@odata.type", groupCloudLicensing.odataType);
writer.writeCollectionOfObjectValues("usageRights", groupCloudLicensing.usageRights, serializeUsageRight);
writer.writeAdditionalData(groupCloudLicensing.additionalData);
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param Service The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeService(writer, service = {}, isSerializingDerivedType = false) {
if (!service || isSerializingDerivedType) {
return;
}
writer.writeEnumValue("assignableTo", service.assignableTo);
writer.writeStringValue("@odata.type", service.odataType);
writer.writeGuidValue("planId", service.planId);
writer.writeStringValue("planName", service.planName);
writer.writeAdditionalData(service.additionalData);
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param Subscription The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeSubscription(writer, subscription = {}, isSerializingDerivedType = false) {
if (!subscription || isSerializingDerivedType) {
return;
}
writer.writeDateOnlyValue("nextLifecycleDate", subscription.nextLifecycleDate);
writer.writeStringValue("@odata.type", subscription.odataType);
writer.writeDateOnlyValue("startDate", subscription.startDate);
writer.writeEnumValue("state", subscription.state);
writer.writeStringValue("subscriptionId", subscription.subscriptionId);
writer.writeEnumValue("tags", subscription.tags);
writer.writeAdditionalData(subscription.additionalData);
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param UsageRight The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeUsageRight(writer, usageRight = {}, isSerializingDerivedType = false) {
if (!usageRight || isSerializingDerivedType) {
return;
}
serializeEntity(writer, usageRight, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("allotments", usageRight.allotments, serializeAllotment);
writer.writeCollectionOfObjectValues("assignments", usageRight.assignments, serializeAssignment);
writer.writeStringValue("externalServiceIdentifier", usageRight.externalServiceIdentifier);
writer.writeCollectionOfObjectValues("services", usageRight.services, serializeService);
writer.writeGuidValue("skuId", usageRight.skuId);
writer.writeStringValue("skuPartNumber", usageRight.skuPartNumber);
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param UserCloudLicensing The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeUserCloudLicensing(writer, userCloudLicensing = {}, isSerializingDerivedType = false) {
if (!userCloudLicensing || isSerializingDerivedType) {
return;
}
writer.writeCollectionOfObjectValues("assignmentErrors", userCloudLicensing.assignmentErrors, serializeAssignmentError);
writer.writeCollectionOfObjectValues("assignments", userCloudLicensing.assignments, serializeAssignment);
writer.writeStringValue("@odata.type", userCloudLicensing.odataType);
writer.writeCollectionOfObjectValues("usageRights", userCloudLicensing.usageRights, serializeUsageRight);
writer.writeCollectionOfObjectValues("waitingMembers", userCloudLicensing.waitingMembers, serializeWaitingMember);
writer.writeAdditionalData(userCloudLicensing.additionalData);
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param WaitingMember The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeWaitingMember(writer, waitingMember = {}, isSerializingDerivedType = false) {
if (!waitingMember || isSerializingDerivedType) {
return;
}
serializeEntity(writer, waitingMember, isSerializingDerivedType);
writer.writeObjectValue("allotment", waitingMember.allotment, serializeAllotment);
writer.writeObjectValue("assignedTo", waitingMember.assignedTo, serializeDirectoryObject);
writer.writeDateValue("waitingSinceDateTime", waitingMember.waitingSinceDateTime);
}
/**
* Serializes information the current object
* @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type.
* @param WaitingMemberCollectionResponse The instance to serialize from.
* @param writer Serialization writer to use to serialize this model
*/
// @ts-ignore
export function serializeWaitingMemberCollectionResponse(writer, waitingMemberCollectionResponse = {}, isSerializingDerivedType = false) {
if (!waitingMemberCollectionResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, waitingMemberCollectionResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", waitingMemberCollectionResponse.value, serializeWaitingMember);
}
export const AssigneeTypesObject = {
None: "none",
User: "user",
Group: "group",
Device: "device",
UnknownFutureValue: "unknownFutureValue",
};
export const SubscriptionStateObject = {
Active: "active",
Warning: "warning",
Suspended: "suspended",
LockedOut: "lockedOut",
Deleted: "deleted",
UnknownFutureValue: "unknownFutureValue",
};
export const SubscriptionTagsObject = {
None: "none",
Trial: "trial",
UnknownFutureValue: "unknownFutureValue",
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map