cloudflare
Version:
The official TypeScript library for the Cloudflare API
45 lines • 1.55 kB
text/typescript
import { APIResource } from "../../../../core/resource.mjs";
import * as WARPAPI from "./warp.mjs";
import { APIPromise } from "../../../../core/api-promise.mjs";
import { RequestOptions } from "../../../../internal/request-options.mjs";
export declare class BaseCloudflareSource extends APIResource {
static readonly _key: readonly ['zeroTrust', 'networks', 'subnets', 'cloudflareSource'];
/**
* Updates the Cloudflare Source subnet of the given address family
*
* @example
* ```ts
* const subnet =
* await client.zeroTrust.networks.subnets.cloudflareSource.update(
* 'v4',
* { account_id: '699d98642c564d2e855e9661899b7252' },
* );
* ```
*/
update(addressFamily: 'v4' | 'v6', params: CloudflareSourceUpdateParams, options?: RequestOptions): APIPromise<WARPAPI.Subnet>;
}
export declare class CloudflareSource extends BaseCloudflareSource {
}
export interface CloudflareSourceUpdateParams {
/**
* Path param: Cloudflare account ID
*/
account_id: string;
/**
* Body param: An optional description of the subnet.
*/
comment?: string;
/**
* Body param: A user-friendly name for the subnet.
*/
name?: string;
/**
* Body param: The private IPv4 or IPv6 range defining the subnet, in CIDR
* notation.
*/
network?: string;
}
export declare namespace CloudflareSource {
export { type CloudflareSourceUpdateParams as CloudflareSourceUpdateParams };
}
//# sourceMappingURL=cloudflare-source.d.mts.map