Skip to content

Commit 3383cee

Browse files
feat(api): api update
1 parent 35ca118 commit 3383cee

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1739
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3f72477c7ad185b8412acc07b382363c57a1164b40ff37232ea8c0da9919f199.yml
3-
openapi_spec_hash: 87b7c2287f19bf059b0cd6550a2b805d
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-3bcbff61e51911a9f7dc10e8d468a0848ecc706a1694d3b49433dd6b739b3665.yml
3+
openapi_spec_hash: 2fa4d4a482c9f2612ab00e57b9bad971
44
config_hash: 7e270b3449efce600e3469937a344c2d

src/resources/zones/zones.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,12 @@ export interface ZoneEditParams {
617617
*/
618618
zone_id: string;
619619

620+
/**
621+
* Body param: Indicates whether the zone is only using Cloudflare DNS services. A
622+
* true value means the zone will not receive security or performance benefits.
623+
*/
624+
paused?: boolean;
625+
620626
/**
621627
* Body param: A full zone implies that DNS is hosted with Cloudflare. A partial
622628
* zone is typically a partner-hosted zone or a CNAME setup. This parameter is only

tests/api-resources/zones/zones.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ describe('resource zones', () => {
9797
test('edit: required and optional params', async () => {
9898
const response = await client.zones.edit({
9999
zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
100+
paused: true,
100101
type: 'full',
101102
vanity_name_servers: ['ns1.example.com', 'ns2.example.com'],
102103
});

0 commit comments

Comments
 (0)