UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
32 lines 2.89 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 validate method. */ export interface ValidateRequestBuilder extends BaseRequestBuilder<ValidateRequestBuilder> { /** * Validate the configuration of a cross-tenant migration job asynchronously. This action doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that affect an actual migration job. The job must be in a submitted or validateFailed status before you can call this action. This action is asynchronous. After you call the validate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of validatePassed or validateFailed. * @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-validate?view=graph-rest-beta|Find more info here} */ post(requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CrossTenantMigrationJob | undefined>; /** * Validate the configuration of a cross-tenant migration job asynchronously. This action doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that affect an actual migration job. The job must be in a submitted or validateFailed status before you can call this action. This action is asynchronous. After you call the validate API, poll the Get crossTenantMigrationJob endpoint to check for a terminal status of validatePassed or validateFailed. * @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 ValidateRequestBuilderUriTemplate = "{+baseurl}/solutions/migrations/crossTenantMigrationJobs(displayName='{displayName}')/validate"; /** * Metadata for all the requests in the request builder. */ export declare const ValidateRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map