cloudflare/cloudflare-typescript

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
f3c162e17cb4f538ac331c0f38fbe0eba44eb888

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

137lines · 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 Configurations,
10} from './configurations';
11import * as SchemasAPI from './schemas';
12import { SchemaListParams, SchemaListResponse, Schemas } from './schemas';
13import * as DiscoveryAPI from './discovery/discovery';
14import {
15 Discovery,
16 DiscoveryGetParams,
17 DiscoveryGetResponse,
18 DiscoveryOperation,
19} from './discovery/discovery';
20import * as ExpressionTemplateAPI from './expression-template/expression-template';
21import { ExpressionTemplate } from './expression-template/expression-template';
22import * as OperationsAPI from './operations/operations';
23import {
24 APIShield,
25 OperationBulkCreateParams,
26 OperationBulkCreateResponse,
27 OperationBulkCreateResponsesSinglePage,
28 OperationBulkDeleteParams,
29 OperationBulkDeleteResponse,
30 OperationCreateParams,
31 OperationCreateResponse,
32 OperationDeleteParams,
33 OperationDeleteResponse,
34 OperationGetParams,
35 OperationGetResponse,
36 OperationListParams,
37 OperationListResponse,
38 OperationListResponsesV4PagePaginationArray,
39 Operations,
40} from './operations/operations';
41import * as SettingsAPI from './settings/settings';
42import { Settings } from './settings/settings';
43import * as UserSchemasAPI from './user-schemas/user-schemas';
44import {
45 Message,
46 OldPublicSchema,
47 OldPublicSchemasV4PagePaginationArray,
48 UserSchemaCreateParams,
49 UserSchemaCreateResponse,
50 UserSchemaDeleteParams,
51 UserSchemaDeleteResponse,
52 UserSchemaEditParams,
53 UserSchemaGetParams,
54 UserSchemaListParams,
55 UserSchemas,
56} from './user-schemas/user-schemas';
57
58export class APIGateway extends APIResource {
59 configurations: ConfigurationsAPI.Configurations = new ConfigurationsAPI.Configurations(this._client);
60 discovery: DiscoveryAPI.Discovery = new DiscoveryAPI.Discovery(this._client);
61 operations: OperationsAPI.Operations = new OperationsAPI.Operations(this._client);
62 schemas: SchemasAPI.Schemas = new SchemasAPI.Schemas(this._client);
63 settings: SettingsAPI.Settings = new SettingsAPI.Settings(this._client);
64 userSchemas: UserSchemasAPI.UserSchemas = new UserSchemasAPI.UserSchemas(this._client);
65 expressionTemplate: ExpressionTemplateAPI.ExpressionTemplate = new ExpressionTemplateAPI.ExpressionTemplate(
66 this._client,
67 );
68}
69
70APIGateway.Configurations = Configurations;
71APIGateway.Discovery = Discovery;
72APIGateway.Operations = Operations;
73APIGateway.OperationListResponsesV4PagePaginationArray = OperationListResponsesV4PagePaginationArray;
74APIGateway.OperationBulkCreateResponsesSinglePage = OperationBulkCreateResponsesSinglePage;
75APIGateway.Schemas = Schemas;
76APIGateway.UserSchemas = UserSchemas;
77APIGateway.OldPublicSchemasV4PagePaginationArray = OldPublicSchemasV4PagePaginationArray;
78APIGateway.ExpressionTemplate = ExpressionTemplate;
79
80export declare namespace APIGateway {
81 export {
82 Configurations as Configurations,
83 type Configuration as Configuration,
84 type ConfigurationUpdateParams as ConfigurationUpdateParams,
85 type ConfigurationGetParams as ConfigurationGetParams,
86 };
87
88 export {
89 Discovery as Discovery,
90 type DiscoveryOperation as DiscoveryOperation,
91 type DiscoveryGetResponse as DiscoveryGetResponse,
92 type DiscoveryGetParams as DiscoveryGetParams,
93 };
94
95 export {
96 Operations as Operations,
97 type APIShield as APIShield,
98 type OperationCreateResponse as OperationCreateResponse,
99 type OperationListResponse as OperationListResponse,
100 type OperationDeleteResponse as OperationDeleteResponse,
101 type OperationBulkCreateResponse as OperationBulkCreateResponse,
102 type OperationBulkDeleteResponse as OperationBulkDeleteResponse,
103 type OperationGetResponse as OperationGetResponse,
104 OperationListResponsesV4PagePaginationArray as OperationListResponsesV4PagePaginationArray,
105 OperationBulkCreateResponsesSinglePage as OperationBulkCreateResponsesSinglePage,
106 type OperationCreateParams as OperationCreateParams,
107 type OperationListParams as OperationListParams,
108 type OperationDeleteParams as OperationDeleteParams,
109 type OperationBulkCreateParams as OperationBulkCreateParams,
110 type OperationBulkDeleteParams as OperationBulkDeleteParams,
111 type OperationGetParams as OperationGetParams,
112 };
113
114 export {
115 Schemas as Schemas,
116 type SchemaListResponse as SchemaListResponse,
117 type SchemaListParams as SchemaListParams,
118 };
119
120 export { type Settings as Settings };
121
122 export {
123 UserSchemas as UserSchemas,
124 type Message as Message,
125 type OldPublicSchema as OldPublicSchema,
126 type UserSchemaCreateResponse as UserSchemaCreateResponse,
127 type UserSchemaDeleteResponse as UserSchemaDeleteResponse,
128 OldPublicSchemasV4PagePaginationArray as OldPublicSchemasV4PagePaginationArray,
129 type UserSchemaCreateParams as UserSchemaCreateParams,
130 type UserSchemaListParams as UserSchemaListParams,
131 type UserSchemaDeleteParams as UserSchemaDeleteParams,
132 type UserSchemaEditParams as UserSchemaEditParams,
133 type UserSchemaGetParams as UserSchemaGetParams,
134 };
135
136 export { ExpressionTemplate as ExpressionTemplate };
137}
138