@microsoft/msgraph-beta-sdk-devicemanagement
Version:
DeviceManagement fluent API for Microsoft Graph
60 lines • 3.32 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
// Generated by Microsoft Kiota
// @ts-ignore
import { createCloudCertificationAuthorityFromDiscriminatorValue, deserializeIntoBaseCollectionPaginationCountResponse, serializeBaseCollectionPaginationCountResponse, serializeCloudCertificationAuthority } from '@microsoft/msgraph-beta-sdk/models/index.js';
// @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 {GetAllCloudCertificationAuthorityPostResponse}
*/
// @ts-ignore
export function createGetAllCloudCertificationAuthorityPostResponseFromDiscriminatorValue(parseNode) {
return deserializeIntoGetAllCloudCertificationAuthorityPostResponse;
}
/**
* The deserialization information for the current model
* @param GetAllCloudCertificationAuthorityPostResponse The instance to deserialize into.
* @returns {Record<string, (node: ParseNode) => void>}
*/
// @ts-ignore
export function deserializeIntoGetAllCloudCertificationAuthorityPostResponse(getAllCloudCertificationAuthorityPostResponse = {}) {
return Object.assign(Object.assign({}, deserializeIntoBaseCollectionPaginationCountResponse(getAllCloudCertificationAuthorityPostResponse)), { "value": n => { getAllCloudCertificationAuthorityPostResponse.value = n.getCollectionOfObjectValues(createCloudCertificationAuthorityFromDiscriminatorValue); } });
}
/**
* Serializes information the current object
* @param GetAllCloudCertificationAuthorityPostResponse 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 serializeGetAllCloudCertificationAuthorityPostResponse(writer, getAllCloudCertificationAuthorityPostResponse = {}, isSerializingDerivedType = false) {
if (!getAllCloudCertificationAuthorityPostResponse || isSerializingDerivedType) {
return;
}
serializeBaseCollectionPaginationCountResponse(writer, getAllCloudCertificationAuthorityPostResponse, isSerializingDerivedType);
writer.writeCollectionOfObjectValues("value", getAllCloudCertificationAuthorityPostResponse.value, serializeCloudCertificationAuthority);
}
/**
* Uri template for the request builder.
*/
export const GetAllCloudCertificationAuthorityRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/cloudCertificationAuthority/{cloudCertificationAuthority%2Did}/getAllCloudCertificationAuthority";
/**
* Metadata for all the requests in the request builder.
*/
export const GetAllCloudCertificationAuthorityRequestBuilderRequestsMetadata = {
post: {
uriTemplate: GetAllCloudCertificationAuthorityRequestBuilderUriTemplate,
responseBodyContentType: "application/json",
errorMappings: {
XXX: createODataErrorFromDiscriminatorValue,
},
adapterMethodName: "send",
responseBodyFactory: createGetAllCloudCertificationAuthorityPostResponseFromDiscriminatorValue,
},
};
/* tslint:enable */
/* eslint-enable */
//# sourceMappingURL=index.js.map