// 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 OwnedByAPI from './owned-by'; export class OwnedBy extends APIResource { /** * Delete Automations Owned By Resource */ delete( resourceId: string, params?: OwnedByDeleteParams, options?: Core.RequestOptions, ): Core.APIPromise; delete(resourceId: string, options?: Core.RequestOptions): Core.APIPromise; delete( resourceId: string, params: OwnedByDeleteParams | Core.RequestOptions = {}, options?: Core.RequestOptions, ): Core.APIPromise { if (isRequestOptions(params)) { return this.delete(resourceId, {}, params); } const { 'x-prefect-api-version': xPrefectAPIVersion } = params; return this._client.delete(`/api/automations/owned-by/${resourceId}`, { ...options, headers: { ...(xPrefectAPIVersion != null ? { 'x-prefect-api-version': xPrefectAPIVersion } : undefined), ...options?.headers, }, }); } } export type OwnedByDeleteResponse = unknown; export interface OwnedByDeleteParams { 'x-prefect-api-version'?: string; } export namespace OwnedBy { export import OwnedByDeleteResponse = OwnedByAPI.OwnedByDeleteResponse; export import OwnedByDeleteParams = OwnedByAPI.OwnedByDeleteParams; }