import { GitOpsValidateRequest, GitOpsValidateTask } from '../../../models/index.js'; import { WithTaskItemRequestBuilder } from './item/index.js'; import { BaseRequestBuilder, KeysToExcludeForNavigationMetadata, NavigationMetadata, RequestConfiguration, RequestInformation, RequestsMetadata } from '@microsoft/kiota-abstractions'; /** * Manage dry-run validation tasks. */ export interface ValidateRequestBuilder extends BaseRequestBuilder { /** * Manage a specific validation task. * @param taskId Unique identifier of the item * @returns {WithTaskItemRequestBuilder} */ byTaskId(taskId: string): WithTaskItemRequestBuilder; /** * **Experimental.** Returns a list of all active dry-run validation tasks. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ProblemDetails} error when the service returns a 401 status code * @throws {ProblemDetails} error when the service returns a 403 status code * @throws {ProblemDetails} error when the service returns a 409 status code * @throws {ProblemDetails} error when the service returns a 500 status code */ get(requestConfiguration?: RequestConfiguration | undefined): Promise; /** * **Experimental.** Creates a dry-run validation task that fetches a git ref and validates the data without affecting the live registry. The sidecar fetches the ref, and the registry loads and validates the data in the inactive storage (no swap).Returns a task object with a `taskId` that can be used to poll for results.This endpoint is only available when GitOps storage is enabled.This operation can fail for the following reasons:* GitOps storage is not enabled (HTTP error `409`)* Dry-run validation is disabled (HTTP error `503`)* A server error occurred (HTTP error `500`) * @param body Request body for creating a dry-run validation task. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {Promise} * @throws {ProblemDetails} error when the service returns a 401 status code * @throws {ProblemDetails} error when the service returns a 403 status code * @throws {ProblemDetails} error when the service returns a 409 status code * @throws {ProblemDetails} error when the service returns a 500 status code */ post(body: GitOpsValidateRequest, requestConfiguration?: RequestConfiguration | undefined): Promise; /** * **Experimental.** Returns a list of all active dry-run validation tasks. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toGetRequestInformation(requestConfiguration?: RequestConfiguration | undefined): RequestInformation; /** * **Experimental.** Creates a dry-run validation task that fetches a git ref and validates the data without affecting the live registry. The sidecar fetches the ref, and the registry loads and validates the data in the inactive storage (no swap).Returns a task object with a `taskId` that can be used to poll for results.This endpoint is only available when GitOps storage is enabled.This operation can fail for the following reasons:* GitOps storage is not enabled (HTTP error `409`)* Dry-run validation is disabled (HTTP error `503`)* A server error occurred (HTTP error `500`) * @param body Request body for creating a dry-run validation task. * @param requestConfiguration Configuration for the request such as headers, query parameters, and middleware options. * @returns {RequestInformation} */ toPostRequestInformation(body: GitOpsValidateRequest, requestConfiguration?: RequestConfiguration | undefined): RequestInformation; } /** * Uri template for the request builder. */ export declare const ValidateRequestBuilderUriTemplate = "{+baseurl}/admin/gitops/validate"; /** * Metadata for all the navigation properties in the request builder. */ export declare const ValidateRequestBuilderNavigationMetadata: Record, NavigationMetadata>; /** * Metadata for all the requests in the request builder. */ export declare const ValidateRequestBuilderRequestsMetadata: RequestsMetadata;