CloudflareApi class
Minimal client of the Cloudflare API used by katana apply.
The token is only sent in the Authorization header and is never included
in exceptions or logs.
katana applyで使用するCloudflare APIの最小限のクライアント。
トークンはAuthorizationヘッダーでのみ送信され、例外やログには含まれません。
Constructors
- CloudflareApi({required String token, Uri? baseUrl, HttpClient? client})
-
Minimal client of the Cloudflare API used by
katana apply.
Properties
Methods
-
addPagesDomain(
String accountId, String project, String domain) → Future< CloudflarePagesDomain> -
Attaches the custom domain
domainto the Pages projectproject. -
close(
) → void - Closes the underlying HTTP client.
-
createProxiedCname(
String zoneId, {required String name, required String content}) → Future< void> -
Creates a proxied CNAME record from
nametocontentinzoneId. -
getPagesProjectSubdomain(
String accountId, String project) → Future< String?> -
Returns the
*.pages.devsubdomain of the Pages projectproject. -
getZone(
String zoneId) → Future< CloudflareZone> -
Returns the zone
zoneId. -
listDnsRecords(
String zoneId, String name) → Future< List< CloudflareDnsRecord> > -
Lists the DNS records named
namein the zonezoneId. -
listPagesDomains(
String accountId, String project) → Future< List< CloudflarePagesDomain> > -
Lists the custom domains of the Pages project
project. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited