UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
32 lines 3.15 kB
import { type CrossTenantMigrationJob } from '@microsoft/msgraph-beta-sdk/models/index.js'; import { type BaseRequestBuilder, type RequestConfiguration, type RequestInformation, type RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Provides operations to call the migrate method. */ export interface MigrateRequestBuilder extends BaseRequestBuilder<MigrateRequestBuilder> { /** * Migrate a cross-tenant migration job asynchronously. The job must pass validation before migration can start. After a job is created by using the Create crossTenantMigrationJob method and validated by using the validate action, call this action to start the migration of user data from the source tenant to the target tenant for the specified workloads. Validation results expire after seven days; if expired, revalidate the job before you call the migrate API. This action is asynchronous. After you call the migrate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of completed, completedWithErrors, or failed. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise<CrossTenantMigrationJob>} * @throws {ODataError} error when the service returns a 4XX or 5XX status code * @deprecated as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 * @see {@link https://learn.microsoft.com/graph/api/crosstenantmigrationjob-migrate?view=graph-rest-beta|Find more info here} */ post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CrossTenantMigrationJob | undefined>; /** * Migrate a cross-tenant migration job asynchronously. The job must pass validation before migration can start. After a job is created by using the Create crossTenantMigrationJob method and validated by using the validate action, call this action to start the migration of user data from the source tenant to the target tenant for the specified workloads. Validation results expire after seven days; if expired, revalidate the job before you call the migrate API. This action is asynchronous. After you call the migrate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of completed, completedWithErrors, or failed. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} * @deprecated as of 2023-11/PrivatePreview:CrossTenantContentMigrationAPI on 2023-11-15 and will be removed 2026-07-09 */ toPostRequestInformation(requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const MigrateRequestBuilderUriTemplate = "{+baseurl}/solutions/migrations/crossTenantMigrationJobs(displayName='{displayName}')/migrate"; /** * Metadata for all the requests in the request builder. */ export declare const MigrateRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map