// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../../resource'; import { isRequestOptions } from '../../core'; import * as Core from '../../core'; import * as TagAPI from './tag'; export class Tag extends APIResource { /** * Delete Concurrency Limit By Tag */ delete(tag: string, params?: TagDeleteParams, options?: Core.RequestOptions): Core.APIPromise; delete(tag: string, options?: Core.RequestOptions): Core.APIPromise; delete( tag: string, params: TagDeleteParams | Core.RequestOptions = {}, options?: Core.RequestOptions, ): Core.APIPromise { if (isRequestOptions(params)) { return this.delete(tag, {}, params); } const { 'x-prefect-api-version': xPrefectAPIVersion } = params; return this._client.delete(`/api/concurrency_limits/tag/${tag}`, { ...options, headers: { ...(xPrefectAPIVersion != null ? { 'x-prefect-api-version': xPrefectAPIVersion } : undefined), ...options?.headers, }, }); } } export type TagDeleteResponse = unknown; export interface TagDeleteParams { 'x-prefect-api-version'?: string; } export namespace Tag { export import TagDeleteResponse = TagAPI.TagDeleteResponse; export import TagDeleteParams = TagAPI.TagDeleteParams; }