cloudflare/cloudflare-typescript

Public

mirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
9911931cf80c8a5c75ff84f83c12188e7f41e70d

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/resources/api-gateway/api-gateway.ts

128lines · modecode

1// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
3import { APIResource } from '../../resource';
4import * as ConfigurationsAPI from './configurations';
5import {
6 Configuration,
7 ConfigurationGetParams,
8 ConfigurationUpdateParams,
9 ConfigurationUpdateResponse,
10 Configurations,
11} from './configurations';
12import * as SchemasAPI from './schemas';
13import { SchemaListParams, SchemaListResponse, Schemas } from './schemas';
14import * as DiscoveryAPI from './discovery/discovery';
15import {
16 Discovery,
17 DiscoveryGetParams,
18 DiscoveryGetResponse,
19 DiscoveryOperation,
20} from './discovery/discovery';
21import * as ExpressionTemplateAPI from './expression-template/expression-template';
22import { ExpressionTemplate } from './expression-template/expression-template';
23import * as OperationsAPI from './operations/operations';
24import {
25 APIShield,
26 OperationCreateParams,
27 OperationCreateResponse,
28 OperationDeleteParams,
29 OperationDeleteResponse,
30 OperationGetParams,
31 OperationGetResponse,
32 OperationListParams,
33 OperationListResponse,
34 OperationListResponsesV4PagePaginationArray,
35 Operations,
36} from './operations/operations';
37import * as SettingsAPI from './settings/settings';
38import { Settings } from './settings/settings';
39import * as UserSchemasAPI from './user-schemas/user-schemas';
40import {
41 Message,
42 PublicSchema,
43 PublicSchemasV4PagePaginationArray,
44 SchemaUpload,
45 UserSchemaCreateParams,
46 UserSchemaDeleteParams,
47 UserSchemaDeleteResponse,
48 UserSchemaEditParams,
49 UserSchemaGetParams,
50 UserSchemaListParams,
51 UserSchemas,
52} from './user-schemas/user-schemas';
53
54export class APIGateway extends APIResource {
55 configurations: ConfigurationsAPI.Configurations = new ConfigurationsAPI.Configurations(this._client);
56 discovery: DiscoveryAPI.Discovery = new DiscoveryAPI.Discovery(this._client);
57 operations: OperationsAPI.Operations = new OperationsAPI.Operations(this._client);
58 schemas: SchemasAPI.Schemas = new SchemasAPI.Schemas(this._client);
59 settings: SettingsAPI.Settings = new SettingsAPI.Settings(this._client);
60 userSchemas: UserSchemasAPI.UserSchemas = new UserSchemasAPI.UserSchemas(this._client);
61 expressionTemplate: ExpressionTemplateAPI.ExpressionTemplate = new ExpressionTemplateAPI.ExpressionTemplate(
62 this._client,
63 );
64}
65
66APIGateway.Configurations = Configurations;
67APIGateway.Discovery = Discovery;
68APIGateway.Operations = Operations;
69APIGateway.OperationListResponsesV4PagePaginationArray = OperationListResponsesV4PagePaginationArray;
70APIGateway.Schemas = Schemas;
71APIGateway.UserSchemas = UserSchemas;
72APIGateway.PublicSchemasV4PagePaginationArray = PublicSchemasV4PagePaginationArray;
73APIGateway.ExpressionTemplate = ExpressionTemplate;
74
75export declare namespace APIGateway {
76 export {
77 Configurations as Configurations,
78 type Configuration as Configuration,
79 type ConfigurationUpdateResponse as ConfigurationUpdateResponse,
80 type ConfigurationUpdateParams as ConfigurationUpdateParams,
81 type ConfigurationGetParams as ConfigurationGetParams,
82 };
83
84 export {
85 Discovery as Discovery,
86 type DiscoveryOperation as DiscoveryOperation,
87 type DiscoveryGetResponse as DiscoveryGetResponse,
88 type DiscoveryGetParams as DiscoveryGetParams,
89 };
90
91 export {
92 Operations as Operations,
93 type APIShield as APIShield,
94 type OperationCreateResponse as OperationCreateResponse,
95 type OperationListResponse as OperationListResponse,
96 type OperationDeleteResponse as OperationDeleteResponse,
97 type OperationGetResponse as OperationGetResponse,
98 OperationListResponsesV4PagePaginationArray as OperationListResponsesV4PagePaginationArray,
99 type OperationCreateParams as OperationCreateParams,
100 type OperationListParams as OperationListParams,
101 type OperationDeleteParams as OperationDeleteParams,
102 type OperationGetParams as OperationGetParams,
103 };
104
105 export {
106 Schemas as Schemas,
107 type SchemaListResponse as SchemaListResponse,
108 type SchemaListParams as SchemaListParams,
109 };
110
111 export { type Settings as Settings };
112
113 export {
114 UserSchemas as UserSchemas,
115 type Message as Message,
116 type PublicSchema as PublicSchema,
117 type SchemaUpload as SchemaUpload,
118 type UserSchemaDeleteResponse as UserSchemaDeleteResponse,
119 PublicSchemasV4PagePaginationArray as PublicSchemasV4PagePaginationArray,
120 type UserSchemaCreateParams as UserSchemaCreateParams,
121 type UserSchemaListParams as UserSchemaListParams,
122 type UserSchemaDeleteParams as UserSchemaDeleteParams,
123 type UserSchemaEditParams as UserSchemaEditParams,
124 type UserSchemaGetParams as UserSchemaGetParams,
125 };
126
127 export { ExpressionTemplate as ExpressionTemplate };
128}