/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { uploadMappingsCreateUploadMapping } from "../funcs/uploadMappingsCreateUploadMapping.js";
import { uploadMappingsDeleteUploadMapping } from "../funcs/uploadMappingsDeleteUploadMapping.js";
import { uploadMappingsListUploadMappings } from "../funcs/uploadMappingsListUploadMappings.js";
import { uploadMappingsReplaceUploadMappings } from "../funcs/uploadMappingsReplaceUploadMappings.js";
import { uploadMappingsUpdateUploadMapping } from "../funcs/uploadMappingsUpdateUploadMapping.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
export class UploadMappings extends ClientSDK {
    /**
     * Retrieves a list of all upload mapping rules configured in your Cloudinary product environment
     *
     * @remarks
     * Returns a list of all upload mappings defined for your account.
     * Upload mappings allow you to map an upload preset to a specific folder and URL template.
     */
    async listUploadMappings(folder, nextCursor, maxResults, options) {
        return unwrapAsync(uploadMappingsListUploadMappings(this, folder, nextCursor, maxResults, options));
    }
    /**
     * Creates a new upload mapping
     *
     * @remarks
     * Creates a new upload mapping for the specified folder
     */
    async createUploadMapping(request, options) {
        return unwrapAsync(uploadMappingsCreateUploadMapping(this, request, options));
    }
    /**
     * Updates an existing upload mapping by changing its remote URL template for a given
     *
     * @remarks
     * Updates the URL template for an existing folder mapping
     */
    async updateUploadMapping(request, options) {
        return unwrapAsync(uploadMappingsUpdateUploadMapping(this, request, options));
    }
    /**
     * Deletes a folder upload mapping
     *
     * @remarks
     * Permanently deletes the upload mapping for the specified folder
     */
    async deleteUploadMapping(folder, options) {
        return unwrapAsync(uploadMappingsDeleteUploadMapping(this, folder, options));
    }
    /**
     * Replaces all upload mappings
     */
    async replaceUploadMappings(request, options) {
        return unwrapAsync(uploadMappingsReplaceUploadMappings(this, request, options));
    }
}
//# sourceMappingURL=uploadmappings.js.map