Skip to content

Commit 669361c

Browse files
feat(api): update via SDK Studio (#359)
1 parent 726d3b7 commit 669361c

File tree

469 files changed

+5318
-2659
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

+5318
-2659
lines changed

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

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

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

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

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

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

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

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

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

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

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

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

32-
test('create: required and optional params', async () => {
33+
// skipped: tests are disabled for the time being
34+
test.skip('create: required and optional params', async () => {
3335
const response = await cloudflare.accounts.members.create({
3436
account_id: {},
3537
@@ -42,7 +44,8 @@ describe('resource members', () => {
4244
});
4345
});
4446

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

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

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

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

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

110-
test('delete: required and optional params', async () => {
117+
// skipped: tests are disabled for the time being
118+
test.skip('delete: required and optional params', async () => {
111119
const response = await cloudflare.accounts.members.delete('4536bcfad5faccb111b47003c79917fa', {
112120
account_id: {},
113121
body: {},
114122
});
115123
});
116124

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

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

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

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

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

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

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

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

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

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

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

27-
test('create: required and optional params', async () => {
28+
// skipped: tests are disabled for the time being
29+
test.skip('create: required and optional params', async () => {
2830
const response = await cloudflare.acm.totalTLS.create({
2931
zone_id: '023e105f4ecef8ad9ca31a8372d0c353',
3032
enabled: true,
3133
certificate_authority: 'google',
3234
});
3335
});
3436

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

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

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

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

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

27-
test('update: required and optional params', async () => {
28+
// skipped: tests are disabled for the time being
29+
test.skip('update: required and optional params', async () => {
2830
const response = await cloudflare.addressing.addressMaps.accounts.update(
2931
'023e105f4ecef8ad9ca31a8372d0c353',
3032
{ account_id: '023e105f4ecef8ad9ca31a8372d0c353', body: {} },
3133
);
3234
});
3335

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

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

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

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

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

26-
test('create: required and optional params', async () => {
27+
// skipped: tests are disabled for the time being
28+
test.skip('create: required and optional params', async () => {
2729
const response = await cloudflare.addressing.addressMaps.create({
2830
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
2931
description: 'My Ecommerce zones',
3032
enabled: true,
3133
});
3234
});
3335

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

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

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

67-
test('delete: required and optional params', async () => {
72+
// skipped: tests are disabled for the time being
73+
test.skip('delete: required and optional params', async () => {
6874
const response = await cloudflare.addressing.addressMaps.delete('023e105f4ecef8ad9ca31a8372d0c353', {
6975
account_id: '023e105f4ecef8ad9ca31a8372d0c353',
7076
body: {},
7177
});
7278
});
7379

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

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

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

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

0 commit comments

Comments
 (0)