UNPKG

@microsoft/msgraph-beta-sdk-solutions

Version:
87 lines 4.69 kB
import { type CrossTenantMigrationJob, type ExchangeOnlineCrossTenantMigrationSettings } 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 {ValidatePostRequestBody} */ export declare function createValidatePostRequestBodyFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>); /** * The deserialization information for the current model * @param ValidatePostRequestBody The instance to deserialize into. * @returns {Record<string, (node: ParseNode) => void>} */ export declare function deserializeIntoValidatePostRequestBody(validatePostRequestBody?: Partial<ValidatePostRequestBody> | undefined): Record<string, (node: ParseNode) => void>; /** * Serializes information the current object * @param isSerializingDerivedType A boolean indicating whether the serialization is for a derived type. * @param ValidatePostRequestBody The instance to serialize from. * @param writer Serialization writer to use to serialize this model */ export declare function serializeValidatePostRequestBody(writer: SerializationWriter, validatePostRequestBody?: Partial<ValidatePostRequestBody> | undefined | null, isSerializingDerivedType?: boolean): void; export interface ValidatePostRequestBody extends AdditionalDataHolder, BackedModel, Parsable { /** * Stores model information. */ backingStoreEnabled?: boolean | null; /** * The completeAfterDateTime property */ completeAfterDateTime?: string | null; /** * The displayName property */ displayName?: string | null; /** * The exchangeSettings property */ exchangeSettings?: ExchangeOnlineCrossTenantMigrationSettings | null; /** * The resources property */ resources?: string[] | null; /** * The resourceType property */ resourceType?: string | null; /** * The sourceTenantId property */ sourceTenantId?: string | null; /** * The workloads property */ workloads?: string[] | null; } /** * Provides operations to call the validate method. */ export interface ValidateRequestBuilder extends BaseRequestBuilder<ValidateRequestBuilder> { /** * Validate the configuration of a crossTenantMigrationJob. This function doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that would affect an actual migration job. * @param body The request body * @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 2025-07/PrivatePreview:CrossTenantContentMigrationAPI on 2025-07-09 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(body: ValidatePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): Promise<CrossTenantMigrationJob | undefined>; /** * Validate the configuration of a crossTenantMigrationJob. This function doesn't migrate any content, but goes through validation for the specified workloads to find any errors or misconfigurations that would affect an actual migration job. * @param body The request body * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} * @deprecated as of 2025-07/PrivatePreview:CrossTenantContentMigrationAPI on 2025-07-09 and will be removed 2026-07-09 */ toPostRequestInformation(body: ValidatePostRequestBody, requestConfiguration?: RequestConfiguration<object> | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const ValidateRequestBuilderUriTemplate = "{+baseurl}/solutions/migrations/crossTenantMigrationJobs/validate"; /** * Metadata for all the requests in the request builder. */ export declare const ValidateRequestBuilderRequestsMetadata: RequestsMetadata; //# sourceMappingURL=index.d.ts.map