| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,4 @@ | |||
| 1 | - configured_endpoints: 2317 | ||
| 2 | - openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-6c72aaee26a255cefb59365441066a292ee06cff650529eb8b95d9ffb73ec13a.yml | ||
| 3 | - openapi_spec_hash: 393731844a065cd2de4b422825007b70 | ||
| 4 | - config_hash: fb00b1d45d83236f53f8ef08adb2db5c | ||
| 1 | + configured_endpoints: 2329 | ||
| 2 | + openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare/cloudflare-884b4b7d2d826afd303115f717021363d35e76d0819f4822e9faf6c577ea66ca.yml | ||
| 3 | + openapi_spec_hash: 4fc7ac1b97d37c76f38db408ab2ed0cd | ||
| 4 | + config_hash: 1fe0cc702fafe448e633d379a5633326 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -69,13 +69,25 @@ def list( | |||
| 69 | 69 | | Omit = omit, | |
| 70 | 70 | status: Literal["pending", "active", "in_review", "cancelled", "removed"] | Omit = omit, | |
| 71 | 71 | type: Literal[ | |
| 72 | + "account_suspend", | ||
| 73 | + "copyright_interstitial", | ||
| 74 | + "geo_block", | ||
| 72 | 75 | "legal_block", | |
| 76 | + "malware_interstitial", | ||
| 73 | 77 | "misleading_interstitial", | |
| 74 | - "phishing_interstitial", | ||
| 75 | 78 | "network_block", | |
| 79 | + "phishing_interstitial", | ||
| 80 | + "playfairite_enforce", | ||
| 81 | + "r2_takedown_account", | ||
| 82 | + "r2_takedown_bucket", | ||
| 83 | + "r2_takedown_object", | ||
| 76 | 84 | "rate_limit_cache", | |
| 77 | - "account_suspend", | ||
| 78 | 85 | "redirect_video_stream", | |
| 86 | + "registrar_freeze", | ||
| 87 | + "registrar_parking", | ||
| 88 | + "stream_block_account", | ||
| 89 | + "user_suspend", | ||
| 90 | + "workers_takedown_by_zone_id", | ||
| 79 | 91 | ] | |
| 80 | 92 | | Omit = omit, | |
| 81 | 93 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. | |
@@ -238,13 +250,25 @@ def list( | |||
| 238 | 250 | | Omit = omit, | |
| 239 | 251 | status: Literal["pending", "active", "in_review", "cancelled", "removed"] | Omit = omit, | |
| 240 | 252 | type: Literal[ | |
| 253 | + "account_suspend", | ||
| 254 | + "copyright_interstitial", | ||
| 255 | + "geo_block", | ||
| 241 | 256 | "legal_block", | |
| 257 | + "malware_interstitial", | ||
| 242 | 258 | "misleading_interstitial", | |
| 243 | - "phishing_interstitial", | ||
| 244 | 259 | "network_block", | |
| 260 | + "phishing_interstitial", | ||
| 261 | + "playfairite_enforce", | ||
| 262 | + "r2_takedown_account", | ||
| 263 | + "r2_takedown_bucket", | ||
| 264 | + "r2_takedown_object", | ||
| 245 | 265 | "rate_limit_cache", | |
| 246 | - "account_suspend", | ||
| 247 | 266 | "redirect_video_stream", | |
| 267 | + "registrar_freeze", | ||
| 268 | + "registrar_parking", | ||
| 269 | + "stream_block_account", | ||
| 270 | + "user_suspend", | ||
| 271 | + "workers_takedown_by_zone_id", | ||
| 248 | 272 | ] | |
| 249 | 273 | | Omit = omit, | |
| 250 | 274 | # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -255,6 +255,7 @@ def update( | |||
| 255 | 255 | retry_backoff: Optional[Literal["constant", "linear", "exponential"]] | Omit = omit, | |
| 256 | 256 | retry_delay: Optional[int] | Omit = omit, | |
| 257 | 257 | retry_max_attempts: Optional[int] | Omit = omit, | |
| 258 | + spend_limits: Optional[ai_gateway_update_params.SpendLimits] | Omit = omit, | ||
| 258 | 259 | store_id: Optional[str] | Omit = omit, | |
| 259 | 260 | stripe: Optional[ai_gateway_update_params.Stripe] | Omit = omit, | |
| 260 | 261 | workers_ai_billing_mode: Literal["postpaid"] | Omit = omit, | |
@@ -314,6 +315,7 @@ def update( | |||
| 314 | 315 | "retry_backoff": retry_backoff, | |
| 315 | 316 | "retry_delay": retry_delay, | |
| 316 | 317 | "retry_max_attempts": retry_max_attempts, | |
| 318 | + "spend_limits": spend_limits, | ||
| 317 | 319 | "store_id": store_id, | |
| 318 | 320 | "stripe": stripe, | |
| 319 | 321 | "workers_ai_billing_mode": workers_ai_billing_mode, | |
@@ -627,6 +629,7 @@ async def update( | |||
| 627 | 629 | retry_backoff: Optional[Literal["constant", "linear", "exponential"]] | Omit = omit, | |
| 628 | 630 | retry_delay: Optional[int] | Omit = omit, | |
| 629 | 631 | retry_max_attempts: Optional[int] | Omit = omit, | |
| 632 | + spend_limits: Optional[ai_gateway_update_params.SpendLimits] | Omit = omit, | ||
| 630 | 633 | store_id: Optional[str] | Omit = omit, | |
| 631 | 634 | stripe: Optional[ai_gateway_update_params.Stripe] | Omit = omit, | |
| 632 | 635 | workers_ai_billing_mode: Literal["postpaid"] | Omit = omit, | |
@@ -686,6 +689,7 @@ async def update( | |||
| 686 | 689 | "retry_backoff": retry_backoff, | |
| 687 | 690 | "retry_delay": retry_delay, | |
| 688 | 691 | "retry_max_attempts": retry_max_attempts, | |
| 692 | + "spend_limits": spend_limits, | ||
| 689 | 693 | "store_id": store_id, | |
| 690 | 694 | "stripe": stripe, | |
| 691 | 695 | "workers_ai_billing_mode": workers_ai_billing_mode, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,14 @@ | |||
| 8 | 8 | DNSResourceWithStreamingResponse, | |
| 9 | 9 | AsyncDNSResourceWithStreamingResponse, | |
| 10 | 10 | ) | |
| 11 | + from .usage import ( | ||
| 12 | + UsageResource, | ||
| 13 | + AsyncUsageResource, | ||
| 14 | + UsageResourceWithRawResponse, | ||
| 15 | + AsyncUsageResourceWithRawResponse, | ||
| 16 | + UsageResourceWithStreamingResponse, | ||
| 17 | + AsyncUsageResourceWithStreamingResponse, | ||
| 18 | + ) | ||
| 11 | 19 | from .dnssec import ( | |
| 12 | 20 | DNSSECResource, | |
| 13 | 21 | AsyncDNSSECResource, | |
@@ -62,6 +70,12 @@ | |||
| 62 | 70 | "AsyncRecordsResourceWithRawResponse", | |
| 63 | 71 | "RecordsResourceWithStreamingResponse", | |
| 64 | 72 | "AsyncRecordsResourceWithStreamingResponse", | |
| 73 | + "UsageResource", | ||
| 74 | + "AsyncUsageResource", | ||
| 75 | + "UsageResourceWithRawResponse", | ||
| 76 | + "AsyncUsageResourceWithRawResponse", | ||
| 77 | + "UsageResourceWithStreamingResponse", | ||
| 78 | + "AsyncUsageResourceWithStreamingResponse", | ||
| 65 | 79 | "SettingsResource", | |
| 66 | 80 | "AsyncSettingsResource", | |
| 67 | 81 | "SettingsResourceWithRawResponse", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -72,6 +72,32 @@ Methods: | |||
| 72 | 72 | - <code title="post /zones/{zone_id}/dns_records/scan/review">client.dns.records.<a href="./src/cloudflare/resources/dns/records.py">scan_review</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/dns/record_scan_review_params.py">params</a>) -> <a href="./src/cloudflare/types/dns/record_scan_review_response.py">Optional[RecordScanReviewResponse]</a></code> | |
| 73 | 73 | - <code title="post /zones/{zone_id}/dns_records/scan/trigger">client.dns.records.<a href="./src/cloudflare/resources/dns/records.py">scan_trigger</a>(\*, zone_id) -> <a href="./src/cloudflare/types/dns/record_scan_trigger_response.py">RecordScanTriggerResponse</a></code> | |
| 74 | 74 | ||
| 75 | + ## Usage | ||
| 76 | + | ||
| 77 | + ### Zone | ||
| 78 | + | ||
| 79 | + Types: | ||
| 80 | + | ||
| 81 | + ```python | ||
| 82 | + from cloudflare.types.dns.usage import ZoneGetResponse | ||
| 83 | + ``` | ||
| 84 | + | ||
| 85 | + Methods: | ||
| 86 | + | ||
| 87 | + - <code title="get /zones/{zone_id}/dns_records/usage">client.dns.usage.zone.<a href="./src/cloudflare/resources/dns/usage/zone.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/dns/usage/zone_get_response.py">Optional[ZoneGetResponse]</a></code> | ||
| 88 | + | ||
| 89 | + ### Account | ||
| 90 | + | ||
| 91 | + Types: | ||
| 92 | + | ||
| 93 | + ```python | ||
| 94 | + from cloudflare.types.dns.usage import AccountGetResponse | ||
| 95 | + ``` | ||
| 96 | + | ||
| 97 | + Methods: | ||
| 98 | + | ||
| 99 | + - <code title="get /accounts/{account_id}/dns_records/usage">client.dns.usage.account.<a href="./src/cloudflare/resources/dns/usage/account.py">get</a>(\*, account_id) -> <a href="./src/cloudflare/types/dns/usage/account_get_response.py">Optional[AccountGetResponse]</a></code> | ||
| 100 | + | ||
| 75 | 101 | ## Settings | |
| 76 | 102 | ||
| 77 | 103 | ### Zone | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,14 @@ | |||
| 20 | 20 | ) | |
| 21 | 21 | from ..._compat import cached_property | |
| 22 | 22 | from ..._resource import SyncAPIResource, AsyncAPIResource | |
| 23 | + from .usage.usage import ( | ||
| 24 | + UsageResource, | ||
| 25 | + AsyncUsageResource, | ||
| 26 | + UsageResourceWithRawResponse, | ||
| 27 | + AsyncUsageResourceWithRawResponse, | ||
| 28 | + UsageResourceWithStreamingResponse, | ||
| 29 | + AsyncUsageResourceWithStreamingResponse, | ||
| 30 | + ) | ||
| 23 | 31 | from .settings.settings import ( | |
| 24 | 32 | SettingsResource, | |
| 25 | 33 | AsyncSettingsResource, | |
@@ -57,6 +65,10 @@ def dnssec(self) -> DNSSECResource: | |||
| 57 | 65 | def records(self) -> RecordsResource: | |
| 58 | 66 | return RecordsResource(self._client) | |
| 59 | 67 | ||
| 68 | + @cached_property | ||
| 69 | + def usage(self) -> UsageResource: | ||
| 70 | + return UsageResource(self._client) | ||
| 71 | + | ||
| 60 | 72 | @cached_property | |
| 61 | 73 | def settings(self) -> SettingsResource: | |
| 62 | 74 | return SettingsResource(self._client) | |
@@ -98,6 +110,10 @@ def dnssec(self) -> AsyncDNSSECResource: | |||
| 98 | 110 | def records(self) -> AsyncRecordsResource: | |
| 99 | 111 | return AsyncRecordsResource(self._client) | |
| 100 | 112 | ||
| 113 | + @cached_property | ||
| 114 | + def usage(self) -> AsyncUsageResource: | ||
| 115 | + return AsyncUsageResource(self._client) | ||
| 116 | + | ||
| 101 | 117 | @cached_property | |
| 102 | 118 | def settings(self) -> AsyncSettingsResource: | |
| 103 | 119 | return AsyncSettingsResource(self._client) | |
@@ -142,6 +158,10 @@ def dnssec(self) -> DNSSECResourceWithRawResponse: | |||
| 142 | 158 | def records(self) -> RecordsResourceWithRawResponse: | |
| 143 | 159 | return RecordsResourceWithRawResponse(self._dns.records) | |
| 144 | 160 | ||
| 161 | + @cached_property | ||
| 162 | + def usage(self) -> UsageResourceWithRawResponse: | ||
| 163 | + return UsageResourceWithRawResponse(self._dns.usage) | ||
| 164 | + | ||
| 145 | 165 | @cached_property | |
| 146 | 166 | def settings(self) -> SettingsResourceWithRawResponse: | |
| 147 | 167 | return SettingsResourceWithRawResponse(self._dns.settings) | |
@@ -167,6 +187,10 @@ def dnssec(self) -> AsyncDNSSECResourceWithRawResponse: | |||
| 167 | 187 | def records(self) -> AsyncRecordsResourceWithRawResponse: | |
| 168 | 188 | return AsyncRecordsResourceWithRawResponse(self._dns.records) | |
| 169 | 189 | ||
| 190 | + @cached_property | ||
| 191 | + def usage(self) -> AsyncUsageResourceWithRawResponse: | ||
| 192 | + return AsyncUsageResourceWithRawResponse(self._dns.usage) | ||
| 193 | + | ||
| 170 | 194 | @cached_property | |
| 171 | 195 | def settings(self) -> AsyncSettingsResourceWithRawResponse: | |
| 172 | 196 | return AsyncSettingsResourceWithRawResponse(self._dns.settings) | |
@@ -192,6 +216,10 @@ def dnssec(self) -> DNSSECResourceWithStreamingResponse: | |||
| 192 | 216 | def records(self) -> RecordsResourceWithStreamingResponse: | |
| 193 | 217 | return RecordsResourceWithStreamingResponse(self._dns.records) | |
| 194 | 218 | ||
| 219 | + @cached_property | ||
| 220 | + def usage(self) -> UsageResourceWithStreamingResponse: | ||
| 221 | + return UsageResourceWithStreamingResponse(self._dns.usage) | ||
| 222 | + | ||
| 195 | 223 | @cached_property | |
| 196 | 224 | def settings(self) -> SettingsResourceWithStreamingResponse: | |
| 197 | 225 | return SettingsResourceWithStreamingResponse(self._dns.settings) | |
@@ -217,6 +245,10 @@ def dnssec(self) -> AsyncDNSSECResourceWithStreamingResponse: | |||
| 217 | 245 | def records(self) -> AsyncRecordsResourceWithStreamingResponse: | |
| 218 | 246 | return AsyncRecordsResourceWithStreamingResponse(self._dns.records) | |
| 219 | 247 | ||
| 248 | + @cached_property | ||
| 249 | + def usage(self) -> AsyncUsageResourceWithStreamingResponse: | ||
| 250 | + return AsyncUsageResourceWithStreamingResponse(self._dns.usage) | ||
| 251 | + | ||
| 220 | 252 | @cached_property | |
| 221 | 253 | def settings(self) -> AsyncSettingsResourceWithStreamingResponse: | |
| 222 | 254 | return AsyncSettingsResourceWithStreamingResponse(self._dns.settings) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,47 @@ | |||
| 1 | + # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
| 2 | + | ||
| 3 | + from .zone import ( | ||
| 4 | + ZoneResource, | ||
| 5 | + AsyncZoneResource, | ||
| 6 | + ZoneResourceWithRawResponse, | ||
| 7 | + AsyncZoneResourceWithRawResponse, | ||
| 8 | + ZoneResourceWithStreamingResponse, | ||
| 9 | + AsyncZoneResourceWithStreamingResponse, | ||
| 10 | + ) | ||
| 11 | + from .usage import ( | ||
| 12 | + UsageResource, | ||
| 13 | + AsyncUsageResource, | ||
| 14 | + UsageResourceWithRawResponse, | ||
| 15 | + AsyncUsageResourceWithRawResponse, | ||
| 16 | + UsageResourceWithStreamingResponse, | ||
| 17 | + AsyncUsageResourceWithStreamingResponse, | ||
| 18 | + ) | ||
| 19 | + from .account import ( | ||
| 20 | + AccountResource, | ||
| 21 | + AsyncAccountResource, | ||
| 22 | + AccountResourceWithRawResponse, | ||
| 23 | + AsyncAccountResourceWithRawResponse, | ||
| 24 | + AccountResourceWithStreamingResponse, | ||
| 25 | + AsyncAccountResourceWithStreamingResponse, | ||
| 26 | + ) | ||
| 27 | + | ||
| 28 | + __all__ = [ | ||
| 29 | + "ZoneResource", | ||
| 30 | + "AsyncZoneResource", | ||
| 31 | + "ZoneResourceWithRawResponse", | ||
| 32 | + "AsyncZoneResourceWithRawResponse", | ||
| 33 | + "ZoneResourceWithStreamingResponse", | ||
| 34 | + "AsyncZoneResourceWithStreamingResponse", | ||
| 35 | + "AccountResource", | ||
| 36 | + "AsyncAccountResource", | ||
| 37 | + "AccountResourceWithRawResponse", | ||
| 38 | + "AsyncAccountResourceWithRawResponse", | ||
| 39 | + "AccountResourceWithStreamingResponse", | ||
| 40 | + "AsyncAccountResourceWithStreamingResponse", | ||
| 41 | + "UsageResource", | ||
| 42 | + "AsyncUsageResource", | ||
| 43 | + "UsageResourceWithRawResponse", | ||
| 44 | + "AsyncUsageResourceWithRawResponse", | ||
| 45 | + "UsageResourceWithStreamingResponse", | ||
| 46 | + "AsyncUsageResourceWithStreamingResponse", | ||
| 47 | + ] | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments