// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. import { APIResource } from '../resource'; import * as Core from '../core'; export class DCVDelegation extends APIResource { /** * Retrieve the account and zone specific unique identifier used as part of the * CNAME target for DCV Delegation. */ get(params: DCVDelegationGetParams, options?: Core.RequestOptions): Core.APIPromise { const { zone_id } = params; return ( this._client.get(`/zones/${zone_id}/dcv_delegation/uuid`, options) as Core.APIPromise<{ result: DCVDelegationUUID; }> )._thenUnwrap((obj) => obj.result); } } export interface DCVDelegationUUID { /** * The DCV Delegation unique identifier. */ uuid?: string; } export interface DCVDelegationGetParams { /** * Identifier */ zone_id: string; }