import { APIResource } from "../../../resource.js"; import * as Core from "../../../core.js"; import { SinglePage } from "../../../pagination.js"; export declare class IPProfiles extends APIResource { /** * Creates a WARP Device IP profile. Currently, only IPv4 Device subnets can be * associated. * * @example * ```ts * const ipProfile = * await client.zeroTrust.devices.ipProfiles.create({ * account_id: 'account_id', * match: 'identity.email == "test@cloudflare.com"', * name: 'IPv4 Cloudflare Source IPs', * precedence: 100, * subnet_id: 'b70ff985-a4ef-4643-bbbc-4a0ed4fc8415', * }); * ``` */ create(params: IPProfileCreateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Updates a WARP Device IP profile. Currently, only IPv4 Device subnets can be * associated. * * @example * ```ts * const ipProfile = * await client.zeroTrust.devices.ipProfiles.update( * 'profile_id', * { account_id: 'account_id' }, * ); * ``` */ update(profileId: string, params: IPProfileUpdateParams, options?: Core.RequestOptions): Core.APIPromise; /** * Lists WARP Device IP profiles. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const ipProfile of client.zeroTrust.devices.ipProfiles.list( * { account_id: 'account_id' }, * )) { * // ... * } * ``` */ list(params: IPProfileListParams, options?: Core.RequestOptions): Core.PagePromise; /** * Delete a WARP Device IP profile. * * @example * ```ts * const ipProfile = * await client.zeroTrust.devices.ipProfiles.delete( * 'profile_id', * { account_id: 'account_id' }, * ); * ``` */ delete(profileId: string, params: IPProfileDeleteParams, options?: Core.RequestOptions): Core.APIPromise; /** * Fetches a single WARP Device IP profile. * * @example * ```ts * const ipProfile = * await client.zeroTrust.devices.ipProfiles.get( * 'profile_id', * { account_id: 'account_id' }, * ); * ``` */ get(profileId: string, params: IPProfileGetParams, options?: Core.RequestOptions): Core.APIPromise; } export declare class IPProfilesSinglePage extends SinglePage { } export interface IPProfile { /** * The ID of the Device IP profile. */ id: string; /** * The RFC3339Nano timestamp when the Device IP profile was created. */ created_at: string; /** * An optional description of the Device IP profile. */ description: string | null; /** * Whether the Device IP profile is enabled. */ enabled: boolean; /** * The wirefilter expression to match registrations. Available values: * "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", * "identity.groups.email", "identity.saml_attributes". */ match: string; /** * A user-friendly name for the Device IP profile. */ name: string; /** * The precedence of the Device IP profile. Lower values indicate higher * precedence. Device IP profile will be evaluated in ascending order of this * field. */ precedence: number; /** * The ID of the Subnet. */ subnet_id: string; /** * The RFC3339Nano timestamp when the Device IP profile was last updated. */ updated_at: string; } export interface IPProfileDeleteResponse { /** * ID of the deleted Device IP profile. */ id?: string; } export interface IPProfileCreateParams { /** * Path param */ account_id: string; /** * Body param: The wirefilter expression to match registrations. Available values: * "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", * "identity.groups.email", "identity.saml_attributes". */ match: string; /** * Body param: A user-friendly name for the Device IP profile. */ name: string; /** * Body param: The precedence of the Device IP profile. Lower values indicate * higher precedence. Device IP profile will be evaluated in ascending order of * this field. */ precedence: number; /** * Body param: The ID of the Subnet. */ subnet_id: string; /** * Body param: An optional description of the Device IP profile. */ description?: string | null; /** * Body param: Whether the Device IP profile will be applied to matching devices. */ enabled?: boolean; } export interface IPProfileUpdateParams { /** * Path param */ account_id: string; /** * Body param: An optional description of the Device IP profile. */ description?: string; /** * Body param: Whether the Device IP profile is enabled. */ enabled?: boolean; /** * Body param: The wirefilter expression to match registrations. Available values: * "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", * "identity.groups.email", "identity.saml_attributes". */ match?: string; /** * Body param: A user-friendly name for the Device IP profile. */ name?: string; /** * Body param: The precedence of the Device IP profile. Lower values indicate * higher precedence. Device IP profile will be evaluated in ascending order of * this field. */ precedence?: number; /** * Body param: The ID of the Subnet. */ subnet_id?: string; } export interface IPProfileListParams { /** * Path param */ account_id: string; /** * Query param: The number of IP profiles to return per page. */ per_page?: number; } export interface IPProfileDeleteParams { account_id: string; } export interface IPProfileGetParams { account_id: string; } export declare namespace IPProfiles { export { type IPProfile as IPProfile, type IPProfileDeleteResponse as IPProfileDeleteResponse, IPProfilesSinglePage as IPProfilesSinglePage, type IPProfileCreateParams as IPProfileCreateParams, type IPProfileUpdateParams as IPProfileUpdateParams, type IPProfileListParams as IPProfileListParams, type IPProfileDeleteParams as IPProfileDeleteParams, type IPProfileGetParams as IPProfileGetParams, }; } //# sourceMappingURL=ip-profiles.d.ts.map