Skip to content

Commit 726d3b7

Browse files
feat(api): update via SDK Studio (#358)
1 parent 328ca5b commit 726d3b7

File tree

469 files changed

+2659
-5318
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

469 files changed

+2659
-5318
lines changed

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

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const cloudflare = new Cloudflare({
1010
});
1111

1212
describe('resource accounts', () => {
13-
// skipped: tests are disabled for the time being
14-
test.skip('update: only required params', async () => {
13+
test('update: only required params', async () => {
1514
const responsePromise = cloudflare.accounts.update({ account_id: {}, name: 'Demo Account' });
1615
const rawResponse = await responsePromise.asResponse();
1716
expect(rawResponse).toBeInstanceOf(Response);
@@ -22,8 +21,7 @@ describe('resource accounts', () => {
2221
expect(dataAndResponse.response).toBe(rawResponse);
2322
});
2423

25-
// skipped: tests are disabled for the time being
26-
test.skip('update: required and optional params', async () => {
24+
test('update: required and optional params', async () => {
2725
const response = await cloudflare.accounts.update({
2826
account_id: {},
2927
name: 'Demo Account',
@@ -35,8 +33,7 @@ describe('resource accounts', () => {
3533
});
3634
});
3735

38-
// skipped: tests are disabled for the time being
39-
test.skip('list', async () => {
36+
test('list', async () => {
4037
const responsePromise = cloudflare.accounts.list();
4138
const rawResponse = await responsePromise.asResponse();
4239
expect(rawResponse).toBeInstanceOf(Response);
@@ -47,16 +44,14 @@ describe('resource accounts', () => {
4744
expect(dataAndResponse.response).toBe(rawResponse);
4845
});
4946

50-
// skipped: tests are disabled for the time being
51-
test.skip('list: request options instead of params are passed correctly', async () => {
47+
test('list: request options instead of params are passed correctly', async () => {
5248
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
5349
await expect(cloudflare.accounts.list({ path: '/_stainless_unknown_path' })).rejects.toThrow(
5450
Cloudflare.NotFoundError,
5551
);
5652
});
5753

58-
// skipped: tests are disabled for the time being
59-
test.skip('list: request options and params are passed correctly', async () => {
54+
test('list: request options and params are passed correctly', async () => {
6055
// ensure the request options are being passed correctly by passing an invalid HTTP method in order to cause an error
6156
await expect(
6257
cloudflare.accounts.list(
@@ -66,8 +61,7 @@ describe('resource accounts', () => {
6661
).rejects.toThrow(Cloudflare.NotFoundError);
6762
});
6863

69-
// skipped: tests are disabled for the time being
70-
test.skip('get: only required params', async () => {
64+
test('get: only required params', async () => {
7165
const responsePromise = cloudflare.accounts.get({ account_id: {} });
7266
const rawResponse = await responsePromise.asResponse();
7367
expect(rawResponse).toBeInstanceOf(Response);
@@ -78,8 +72,7 @@ describe('resource accounts', () => {
7872
expect(dataAndResponse.response).toBe(rawResponse);
7973
});
8074

81-
// skipped: tests are disabled for the time being
82-
test.skip('get: required and optional params', async () => {
75+
test('get: required and optional params', async () => {
8376
const response = await cloudflare.accounts.get({ account_id: {} });
8477
});
8578
});

tests/api-resources/accounts/members.test.ts

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const cloudflare = new Cloudflare({
1010
});
1111

1212
describe('resource members', () => {
13-
// skipped: tests are disabled for the time being
14-
test.skip('create: only required params', async () => {
13+
test('create: only required params', async () => {
1514
const responsePromise = cloudflare.accounts.members.create({
1615
account_id: {},
1716
@@ -30,8 +29,7 @@ describe('resource members', () => {
3029
expect(dataAndResponse.response).toBe(rawResponse);
3130
});
3231

33-
// skipped: tests are disabled for the time being
34-
test.skip('create: required and optional params', async () => {
32+
test('create: required and optional params', async () => {
3533
const response = await cloudflare.accounts.members.create({
3634
account_id: {},
3735
@@ -44,8 +42,7 @@ describe('resource members', () => {
4442
});
4543
});
4644

47-
// skipped: tests are disabled for the time being
48-
test.skip('update: only required params', async () => {
45+
test('update: only required params', async () => {
4946
const responsePromise = cloudflare.accounts.members.update('4536bcfad5faccb111b47003c79917fa', {
5047
account_id: {},
5148
roles: [
@@ -63,8 +60,7 @@ describe('resource members', () => {
6360
expect(dataAndResponse.response).toBe(rawResponse);
6461
});
6562

66-
// skipped: tests are disabled for the time being
67-
test.skip('update: required and optional params', async () => {
63+
test('update: required and optional params', async () => {
6864
const response = await cloudflare.accounts.members.update('4536bcfad5faccb111b47003c79917fa', {
6965
account_id: {},
7066
roles: [
@@ -75,8 +71,7 @@ describe('resource members', () => {
7571
});
7672
});
7773

78-
// skipped: tests are disabled for the time being
79-
test.skip('list: only required params', async () => {
74+
test('list: only required params', async () => {
8075
const responsePromise = cloudflare.accounts.members.list({ account_id: {} });
8176
const rawResponse = await responsePromise.asResponse();
8277
expect(rawResponse).toBeInstanceOf(Response);
@@ -87,8 +82,7 @@ describe('resource members', () => {
8782
expect(dataAndResponse.response).toBe(rawResponse);
8883
});
8984

90-
// skipped: tests are disabled for the time being
91-
test.skip('list: required and optional params', async () => {
85+
test('list: required and optional params', async () => {
9286
const response = await cloudflare.accounts.members.list({
9387
account_id: {},
9488
direction: 'desc',
@@ -99,8 +93,7 @@ describe('resource members', () => {
9993
});
10094
});
10195

102-
// skipped: tests are disabled for the time being
103-
test.skip('delete: only required params', async () => {
96+
test('delete: only required params', async () => {
10497
const responsePromise = cloudflare.accounts.members.delete('4536bcfad5faccb111b47003c79917fa', {
10598
account_id: {},
10699
body: {},
@@ -114,16 +107,14 @@ describe('resource members', () => {
114107
expect(dataAndResponse.response).toBe(rawResponse);
115108
});
116109

117-
// skipped: tests are disabled for the time being
118-
test.skip('delete: required and optional params', async () => {
110+
test('delete: required and optional params', async () => {
119111
const response = await cloudflare.accounts.members.delete('4536bcfad5faccb111b47003c79917fa', {
120112
account_id: {},
121113
body: {},
122114
});
123115
});
124116

125-
// skipped: tests are disabled for the time being
126-
test.skip('get: only required params', async () => {
117+
test('get: only required params', async () => {
127118
const responsePromise = cloudflare.accounts.members.get('4536bcfad5faccb111b47003c79917fa', {
128119
account_id: {},
129120
});
@@ -136,8 +127,7 @@ describe('resource members', () => {
136127
expect(dataAndResponse.response).toBe(rawResponse);
137128
});
138129

139-
// skipped: tests are disabled for the time being
140-
test.skip('get: required and optional params', async () => {
130+
test('get: required and optional params', async () => {
141131
const response = await cloudflare.accounts.members.get('4536bcfad5faccb111b47003c79917fa', {
142132
account_id: {},
143133
});

tests/api-resources/accounts/roles.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const cloudflare = new Cloudflare({
1010
});
1111

1212
describe('resource roles', () => {
13-
// skipped: tests are disabled for the time being
14-
test.skip('list: only required params', async () => {
13+
test('list: only required params', async () => {
1514
const responsePromise = cloudflare.accounts.roles.list({ account_id: {} });
1615
const rawResponse = await responsePromise.asResponse();
1716
expect(rawResponse).toBeInstanceOf(Response);
@@ -22,13 +21,11 @@ describe('resource roles', () => {
2221
expect(dataAndResponse.response).toBe(rawResponse);
2322
});
2423

25-
// skipped: tests are disabled for the time being
26-
test.skip('list: required and optional params', async () => {
24+
test('list: required and optional params', async () => {
2725
const response = await cloudflare.accounts.roles.list({ account_id: {} });
2826
});
2927

30-
// skipped: tests are disabled for the time being
31-
test.skip('get: only required params', async () => {
28+
test('get: only required params', async () => {
3229
const responsePromise = cloudflare.accounts.roles.get({}, { account_id: {} });
3330
const rawResponse = await responsePromise.asResponse();
3431
expect(rawResponse).toBeInstanceOf(Response);
@@ -39,8 +36,7 @@ describe('resource roles', () => {
3936
expect(dataAndResponse.response).toBe(rawResponse);
4037
});
4138

42-
// skipped: tests are disabled for the time being
43-
test.skip('get: required and optional params', async () => {
39+
test('get: required and optional params', async () => {
4440
const response = await cloudflare.accounts.roles.get({}, { account_id: {} });
4541
});
4642
});

tests/api-resources/acm/total-tls.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const cloudflare = new Cloudflare({
1010
});
1111

1212
describe('resource totalTLS', () => {
13-
// skipped: tests are disabled for the time being
14-
test.skip('create: only required params', async () => {
13+
test('create: only required params', async () => {
1514
const responsePromise = cloudflare.acm.totalTLS.create({
1615
zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
1716
enabled: true,
@@ -25,17 +24,15 @@ describe('resource totalTLS', () => {
2524
expect(dataAndResponse.response).toBe(rawResponse);
2625
});
2726

28-
// skipped: tests are disabled for the time being
29-
test.skip('create: required and optional params', async () => {
27+
test('create: required and optional params', async () => {
3028
const response = await cloudflare.acm.totalTLS.create({
3129
zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
3230
enabled: true,
3331
certificate_authority: 'google',
3432
});
3533
});
3634

37-
// skipped: tests are disabled for the time being
38-
test.skip('get: only required params', async () => {
35+
test('get: only required params', async () => {
3936
const responsePromise = cloudflare.acm.totalTLS.get({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' });
4037
const rawResponse = await responsePromise.asResponse();
4138
expect(rawResponse).toBeInstanceOf(Response);
@@ -46,8 +43,7 @@ describe('resource totalTLS', () => {
4643
expect(dataAndResponse.response).toBe(rawResponse);
4744
});
4845

49-
// skipped: tests are disabled for the time being
50-
test.skip('get: required and optional params', async () => {
46+
test('get: required and optional params', async () => {
5147
const response = await cloudflare.acm.totalTLS.get({ zone_id: '023e105f4ecef8ad9ca31a8372d0c353' });
5248
});
5349
});

tests/api-resources/addressing/address-maps/accounts.test.ts

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const cloudflare = new Cloudflare({
1010
});
1111

1212
describe('resource accounts', () => {
13-
// skipped: tests are disabled for the time being
14-
test.skip('update: only required params', async () => {
13+
test('update: only required params', async () => {
1514
const responsePromise = cloudflare.addressing.addressMaps.accounts.update(
1615
'023e105f4ecef8ad9ca31a8372d0c353',
1716
{ account_id: '023e105f4ecef8ad9ca31a8372d0c353', body: {} },
@@ -25,16 +24,14 @@ describe('resource accounts', () => {
2524
expect(dataAndResponse.response).toBe(rawResponse);
2625
});
2726

28-
// skipped: tests are disabled for the time being
29-
test.skip('update: required and optional params', async () => {
27+
test('update: required and optional params', async () => {
3028
const response = await cloudflare.addressing.addressMaps.accounts.update(
3129
'023e105f4ecef8ad9ca31a8372d0c353',
3230
{ account_id: '023e105f4ecef8ad9ca31a8372d0c353', body: {} },
3331
);
3432
});
3533

36-
// skipped: tests are disabled for the time being
37-
test.skip('delete: only required params', async () => {
34+
test('delete: only required params', async () => {
3835
const responsePromise = cloudflare.addressing.addressMaps.accounts.delete(
3936
'023e105f4ecef8ad9ca31a8372d0c353',
4037
{ account_id: '023e105f4ecef8ad9ca31a8372d0c353', body: {} },
@@ -48,8 +45,7 @@ describe('resource accounts', () => {
4845
expect(dataAndResponse.response).toBe(rawResponse);
4946
});
5047

51-
// skipped: tests are disabled for the time being
52-
test.skip('delete: required and optional params', async () => {
48+
test('delete: required and optional params', async () => {
5349
const response = await cloudflare.addressing.addressMaps.accounts.delete(
5450
'023e105f4ecef8ad9ca31a8372d0c353',
5551
{ account_id: '023e105f4ecef8ad9ca31a8372d0c353', body: {} },

tests/api-resources/addressing/address-maps/address-maps.test.ts

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ const cloudflare = new Cloudflare({
1010
});
1111

1212
describe('resource addressMaps', () => {
13-
// skipped: tests are disabled for the time being
14-
test.skip('create: only required params', async () => {
13+
test('create: only required params', async () => {
1514
const responsePromise = cloudflare.addressing.addressMaps.create({
1615
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
1716
});
@@ -24,17 +23,15 @@ describe('resource addressMaps', () => {
2423
expect(dataAndResponse.response).toBe(rawResponse);
2524
});
2625

27-
// skipped: tests are disabled for the time being
28-
test.skip('create: required and optional params', async () => {
26+
test('create: required and optional params', async () => {
2927
const response = await cloudflare.addressing.addressMaps.create({
3028
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
3129
description: 'My Ecommerce zones',
3230
enabled: true,
3331
});
3432
});
3533

36-
// skipped: tests are disabled for the time being
37-
test.skip('list: only required params', async () => {
34+
test('list: only required params', async () => {
3835
const responsePromise = cloudflare.addressing.addressMaps.list({
3936
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
4037
});
@@ -47,15 +44,13 @@ describe('resource addressMaps', () => {
4744
expect(dataAndResponse.response).toBe(rawResponse);
4845
});
4946

50-
// skipped: tests are disabled for the time being
51-
test.skip('list: required and optional params', async () => {
47+
test('list: required and optional params', async () => {
5248
const response = await cloudflare.addressing.addressMaps.list({
5349
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
5450
});
5551
});
5652

57-
// skipped: tests are disabled for the time being
58-
test.skip('delete: only required params', async () => {
53+
test('delete: only required params', async () => {
5954
const responsePromise = cloudflare.addressing.addressMaps.delete('023e105f4ecef8ad9ca31a8372d0c353', {
6055
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
6156
body: {},
@@ -69,16 +64,14 @@ describe('resource addressMaps', () => {
6964
expect(dataAndResponse.response).toBe(rawResponse);
7065
});
7166

72-
// skipped: tests are disabled for the time being
73-
test.skip('delete: required and optional params', async () => {
67+
test('delete: required and optional params', async () => {
7468
const response = await cloudflare.addressing.addressMaps.delete('023e105f4ecef8ad9ca31a8372d0c353', {
7569
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
7670
body: {},
7771
});
7872
});
7973

80-
// skipped: tests are disabled for the time being
81-
test.skip('edit: only required params', async () => {
74+
test('edit: only required params', async () => {
8275
const responsePromise = cloudflare.addressing.addressMaps.edit('023e105f4ecef8ad9ca31a8372d0c353', {
8376
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
8477
});
@@ -91,8 +84,7 @@ describe('resource addressMaps', () => {
9184
expect(dataAndResponse.response).toBe(rawResponse);
9285
});
9386

94-
// skipped: tests are disabled for the time being
95-
test.skip('edit: required and optional params', async () => {
87+
test('edit: required and optional params', async () => {
9688
const response = await cloudflare.addressing.addressMaps.edit('023e105f4ecef8ad9ca31a8372d0c353', {
9789
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
9890
default_sni: '*.example.com',
@@ -101,8 +93,7 @@ describe('resource addressMaps', () => {
10193
});
10294
});
10395

104-
// skipped: tests are disabled for the time being
105-
test.skip('get: only required params', async () => {
96+
test('get: only required params', async () => {
10697
const responsePromise = cloudflare.addressing.addressMaps.get('023e105f4ecef8ad9ca31a8372d0c353', {
10798
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
10899
});
@@ -115,8 +106,7 @@ describe('resource addressMaps', () => {
115106
expect(dataAndResponse.response).toBe(rawResponse);
116107
});
117108

118-
// skipped: tests are disabled for the time being
119-
test.skip('get: required and optional params', async () => {
109+
test('get: required and optional params', async () => {
120110
const response = await cloudflare.addressing.addressMaps.get('023e105f4ecef8ad9ca31a8372d0c353', {
121111
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
122112
});

0 commit comments

Comments
 (0)