Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jul 1, 2024
1 parent e09366a commit 305276c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1254
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-10e0f5bf9e74bc8593c8024dd72b3c91d0402b96678320361ec2166da30136ff.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-623885448544cf05b4f37663c71fa42a56151359a9b770b24d86195f10da96d8.yml
20 changes: 10 additions & 10 deletions tests/api-resources/ai-gateway/ai-gateway.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const cloudflare = new Cloudflare({
describe('resource aiGateway', () => {
test('create: only required params', async () => {
const responsePromise = cloudflare.aiGateway.create({
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
id: 'my-gateway',
cache_invalidate_on_update: true,
cache_ttl: 0,
Expand All @@ -32,7 +32,7 @@ describe('resource aiGateway', () => {

test('create: required and optional params', async () => {
const response = await cloudflare.aiGateway.create({
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
id: 'my-gateway',
cache_invalidate_on_update: true,
cache_ttl: 0,
Expand All @@ -45,7 +45,7 @@ describe('resource aiGateway', () => {

test('update: only required params', async () => {
const responsePromise = cloudflare.aiGateway.update('my-gateway', {
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
cache_invalidate_on_update: true,
cache_ttl: 0,
collect_logs: true,
Expand All @@ -64,7 +64,7 @@ describe('resource aiGateway', () => {

test('update: required and optional params', async () => {
const response = await cloudflare.aiGateway.update('my-gateway', {
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
cache_invalidate_on_update: true,
cache_ttl: 0,
collect_logs: true,
Expand All @@ -75,7 +75,7 @@ describe('resource aiGateway', () => {
});

test('list: only required params', async () => {
const responsePromise = cloudflare.aiGateway.list({ account_id: '0d37909e38d3e99c29fa2cd343ac421a' });
const responsePromise = cloudflare.aiGateway.list({ account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0' });
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
const response = await responsePromise;
Expand All @@ -87,7 +87,7 @@ describe('resource aiGateway', () => {

test('list: required and optional params', async () => {
const response = await cloudflare.aiGateway.list({
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
id: 'my-gateway',
order_by: 'string',
page: 1,
Expand All @@ -97,7 +97,7 @@ describe('resource aiGateway', () => {

test('delete: only required params', async () => {
const responsePromise = cloudflare.aiGateway.delete('string', {
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
Expand All @@ -110,13 +110,13 @@ describe('resource aiGateway', () => {

test('delete: required and optional params', async () => {
const response = await cloudflare.aiGateway.delete('string', {
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
});
});

test('get: only required params', async () => {
const responsePromise = cloudflare.aiGateway.get('my-gateway', {
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
});
const rawResponse = await responsePromise.asResponse();
expect(rawResponse).toBeInstanceOf(Response);
Expand All @@ -129,7 +129,7 @@ describe('resource aiGateway', () => {

test('get: required and optional params', async () => {
const response = await cloudflare.aiGateway.get('my-gateway', {
account_id: '0d37909e38d3e99c29fa2cd343ac421a',
account_id: '3ebbcb006d4d46d7bb6a8c7f14676cb0',
});
});
});

0 comments on commit 305276c

Please sign in to comment.