UNPKG

@microsoft/msgraph-beta-sdk-devicemanagement

Version:
65 lines 4.4 kB
import { type CloudPcSnapshotImportActionDetail, type CloudPcSnapshotImportActionResult } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type AdditionalDataHolder, type BackedModel, type BaseRequestBuilder, type Parsable, type ParseNode, type RequestConfiguration, type RequestInformation, type RequestsMetadata, type SerializationWriter } from '@microsoft/kiota-abstractions'; /** * 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 {ImportSnapshotPostRequestBody} */ export declare function createImportSnapshotPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * The deserialization information for the current model * @param ImportSnapshotPostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoImportSnapshotPostRequestBody(importSnapshotPostRequestBody?: Partial<ImportSnapshotPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>; export interface ImportSnapshotPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { /** * The assignedUserId property */ assignedUserId?: string | null; /** * Stores model information. */ backingStoreEnabled?: boolean | null; /** * The sourceFiles property */ sourceFiles?: CloudPcSnapshotImportActionDetail[] | null; } /** * Provides operations to call the importSnapshot method. */ export interface ImportSnapshotRequestBuilder extends BaseRequestBuilder<ImportSnapshotRequestBuilder> { /** * Import the snapshot from the customer-managed storage account using the provided information, and store it in the Azure storage account within the Cloud PC service on behalf of the customer. To provision a new Cloud PC for a licensed user, import a valid .vhd snapshot from a customer-managed storage account into the Azure storage account used by the Cloud PC service. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<CloudPcSnapshotImportActionResult>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @see {@link https://learn.microsoft.com/graph/api/cloudpcsnapshot-importsnapshot?view=graph-rest-beta|Find more info here} */ post(body: ImportSnapshotPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CloudPcSnapshotImportActionResult | undefined>; /** * Import the snapshot from the customer-managed storage account using the provided information, and store it in the Azure storage account within the Cloud PC service on behalf of the customer. To provision a new Cloud PC for a licensed user, import a valid .vhd snapshot from a customer-managed storage account into the Azure storage account used by the Cloud PC service. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: ImportSnapshotPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Serializes information the current object * @param ImportSnapshotPostRequestBody 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 */ export declare function serializeImportSnapshotPostRequestBody(writer: SerializationWriter, importSnapshotPostRequestBody?: Partial<ImportSnapshotPostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void; /** * Uri template for the request builder. */ export declare const ImportSnapshotRequestBuilderUriTemplate = "{+baseurl}/deviceManagement/virtualEndpoint/snapshots/importSnapshot"; /** * Metadata for all the requests in the request builder. */ export declare const ImportSnapshotRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map