@microsoft/msgraph-beta-sdk-users
Version:
Users fluent API for Microsoft Graph
72 lines • 4.4 kB
TypeScript
import { RestoreTimeRange, type CloudPcBulkRemoteActionResult } 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';
export interface BulkRestoreCloudPcPostRequestBody extends AdditionalDataHolder, BackedModel, Parsable {
/**
* Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
*/
additionalData?: Record<string, unknown>;
/**
* Stores model information.
*/
backingStoreEnabled?: boolean | null;
/**
* The managedDeviceIds property
*/
managedDeviceIds?: string[] | null;
/**
* The restorePointDateTime property
*/
restorePointDateTime?: Date | null;
/**
* The timeRange property
*/
timeRange?: RestoreTimeRange | null;
}
/**
* Provides operations to call the bulkRestoreCloudPc method.
*/
export interface BulkRestoreCloudPcRequestBuilder extends BaseRequestBuilder<BulkRestoreCloudPcRequestBuilder> {
/**
* Restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {Promise<CloudPcBulkRemoteActionResult>}
* @throws {ODataError} error when the service returns a 4XX or 5XX status code
* @deprecated The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24
* @see {@link https://learn.microsoft.com/graph/api/manageddevice-bulkrestorecloudpc?view=graph-rest-beta|Find more info here}
*/
post(body: BulkRestoreCloudPcPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CloudPcBulkRemoteActionResult | undefined>;
/**
* Restore multiple Cloud PC devices with a single request that includes the IDs of Intune managed devices and a restore point date and time.
* @param body The request body
* @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
* @returns {RequestInformation}
* @deprecated The bulkRestoreCloudPc action is deprecated and will stop supporting on September 24, 2023. Please use bulk action entity api. as of 2023-05/bulkRestoreCloudPc on 2023-05-24 and will be removed 2023-09-24
*/
toPostRequestInformation(body: BulkRestoreCloudPcPostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation;
}
/**
* 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 {BulkRestoreCloudPcPostRequestBody}
*/
export declare function createBulkRestoreCloudPcPostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
/**
* The deserialization information for the current model
* @returns {Record<string, (node: ParseNode) => void>}
*/
export declare function deserializeIntoBulkRestoreCloudPcPostRequestBody(bulkRestoreCloudPcPostRequestBody?: Partial<BulkRestoreCloudPcPostRequestBody> | undefined): Record<string, (node: ParseNode) => void>;
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
export declare function serializeBulkRestoreCloudPcPostRequestBody(writer: SerializationWriter, bulkRestoreCloudPcPostRequestBody?: Partial<BulkRestoreCloudPcPostRequestBody> | undefined | null): void;
/**
* Uri template for the request builder.
*/
export declare const BulkRestoreCloudPcRequestBuilderUriTemplate = "{+baseurl}/users/{user%2Did}/managedDevices/bulkRestoreCloudPc";
/**
* Metadata for all the requests in the request builder.
*/
export declare const BulkRestoreCloudPcRequestBuilderRequestsMetadata: RequestsMetadata;
//# sourceMappingURL=index.d.ts.map