cloudflare/cloudflare-typescript

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v7

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

172lines · modecode

1// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
3import { APIResource } from '../../core/resource';
4import * as ConfigurationsAPI from './configurations';
5import {
6 BaseConfigurations,
7 Configuration,
8 ConfigurationGetParams,
9 ConfigurationUpdateParams,
10 Configurations,
11} from './configurations';
12import * as SchemasAPI from './schemas';
13import { BaseSchemas, SchemaListParams, SchemaListResponse, Schemas } from './schemas';
14import * as DiscoveryAPI from './discovery/discovery';
15import {
16 BaseDiscovery,
17 Discovery,
18 DiscoveryGetParams,
19 DiscoveryGetResponse,
20 DiscoveryOperation,
21} from './discovery/discovery';
22import * as ExpressionTemplateAPI from './expression-template/expression-template';
23import { BaseExpressionTemplate, ExpressionTemplate } from './expression-template/expression-template';
24import * as LabelsAPI from './labels/labels';
25import {
26 BaseLabels,
27 LabelListParams,
28 LabelListResponse,
29 LabelListResponsesV4PagePaginationArray,
30 Labels,
31} from './labels/labels';
32import * as OperationsAPI from './operations/operations';
33import {
34 APIShield,
35 BaseOperations,
36 OperationBulkCreateParams,
37 OperationBulkCreateResponse,
38 OperationBulkCreateResponsesSinglePage,
39 OperationBulkDeleteParams,
40 OperationBulkDeleteResponse,
41 OperationCreateParams,
42 OperationCreateResponse,
43 OperationDeleteParams,
44 OperationDeleteResponse,
45 OperationGetParams,
46 OperationGetResponse,
47 OperationListParams,
48 OperationListResponse,
49 OperationListResponsesV4PagePaginationArray,
50 Operations,
51} from './operations/operations';
52import * as SettingsAPI from './settings/settings';
53import { BaseSettings, Settings } from './settings/settings';
54import * as UserSchemasAPI from './user-schemas/user-schemas';
55import {
56 BaseUserSchemas,
57 Message,
58 OldPublicSchema,
59 OldPublicSchemasV4PagePaginationArray,
60 UserSchemaCreateParams,
61 UserSchemaCreateResponse,
62 UserSchemaDeleteParams,
63 UserSchemaDeleteResponse,
64 UserSchemaEditParams,
65 UserSchemaGetParams,
66 UserSchemaListParams,
67 UserSchemas,
68} from './user-schemas/user-schemas';
69
70export class BaseAPIGateway extends APIResource {
71 static override readonly _key: readonly ['apiGateway'] = Object.freeze(['apiGateway'] as const);
72}
73export class APIGateway extends BaseAPIGateway {
74 configurations: ConfigurationsAPI.Configurations = new ConfigurationsAPI.Configurations(this._client);
75 discovery: DiscoveryAPI.Discovery = new DiscoveryAPI.Discovery(this._client);
76 labels: LabelsAPI.Labels = new LabelsAPI.Labels(this._client);
77 operations: OperationsAPI.Operations = new OperationsAPI.Operations(this._client);
78 schemas: SchemasAPI.Schemas = new SchemasAPI.Schemas(this._client);
79 settings: SettingsAPI.Settings = new SettingsAPI.Settings(this._client);
80 userSchemas: UserSchemasAPI.UserSchemas = new UserSchemasAPI.UserSchemas(this._client);
81 expressionTemplate: ExpressionTemplateAPI.ExpressionTemplate = new ExpressionTemplateAPI.ExpressionTemplate(
82 this._client,
83 );
84}
85
86APIGateway.Configurations = Configurations;
87APIGateway.BaseConfigurations = BaseConfigurations;
88APIGateway.Discovery = Discovery;
89APIGateway.BaseDiscovery = BaseDiscovery;
90APIGateway.Labels = Labels;
91APIGateway.BaseLabels = BaseLabels;
92APIGateway.Operations = Operations;
93APIGateway.BaseOperations = BaseOperations;
94APIGateway.Schemas = Schemas;
95APIGateway.BaseSchemas = BaseSchemas;
96APIGateway.BaseSettings = BaseSettings;
97APIGateway.UserSchemas = UserSchemas;
98APIGateway.BaseUserSchemas = BaseUserSchemas;
99APIGateway.ExpressionTemplate = ExpressionTemplate;
100APIGateway.BaseExpressionTemplate = BaseExpressionTemplate;
101
102export declare namespace APIGateway {
103 export {
104 Configurations as Configurations,
105 BaseConfigurations as BaseConfigurations,
106 type Configuration as Configuration,
107 type ConfigurationUpdateParams as ConfigurationUpdateParams,
108 type ConfigurationGetParams as ConfigurationGetParams,
109 };
110
111 export {
112 Discovery as Discovery,
113 BaseDiscovery as BaseDiscovery,
114 type DiscoveryOperation as DiscoveryOperation,
115 type DiscoveryGetResponse as DiscoveryGetResponse,
116 type DiscoveryGetParams as DiscoveryGetParams,
117 };
118
119 export {
120 Labels as Labels,
121 BaseLabels as BaseLabels,
122 type LabelListResponse as LabelListResponse,
123 type LabelListResponsesV4PagePaginationArray as LabelListResponsesV4PagePaginationArray,
124 type LabelListParams as LabelListParams,
125 };
126
127 export {
128 Operations as Operations,
129 BaseOperations as BaseOperations,
130 type APIShield as APIShield,
131 type OperationCreateResponse as OperationCreateResponse,
132 type OperationListResponse as OperationListResponse,
133 type OperationDeleteResponse as OperationDeleteResponse,
134 type OperationBulkCreateResponse as OperationBulkCreateResponse,
135 type OperationBulkDeleteResponse as OperationBulkDeleteResponse,
136 type OperationGetResponse as OperationGetResponse,
137 type OperationListResponsesV4PagePaginationArray as OperationListResponsesV4PagePaginationArray,
138 type OperationBulkCreateResponsesSinglePage as OperationBulkCreateResponsesSinglePage,
139 type OperationCreateParams as OperationCreateParams,
140 type OperationListParams as OperationListParams,
141 type OperationDeleteParams as OperationDeleteParams,
142 type OperationBulkCreateParams as OperationBulkCreateParams,
143 type OperationBulkDeleteParams as OperationBulkDeleteParams,
144 type OperationGetParams as OperationGetParams,
145 };
146
147 export {
148 Schemas as Schemas,
149 BaseSchemas as BaseSchemas,
150 type SchemaListResponse as SchemaListResponse,
151 type SchemaListParams as SchemaListParams,
152 };
153
154 export { type Settings as Settings, BaseSettings as BaseSettings };
155
156 export {
157 UserSchemas as UserSchemas,
158 BaseUserSchemas as BaseUserSchemas,
159 type Message as Message,
160 type OldPublicSchema as OldPublicSchema,
161 type UserSchemaCreateResponse as UserSchemaCreateResponse,
162 type UserSchemaDeleteResponse as UserSchemaDeleteResponse,
163 type OldPublicSchemasV4PagePaginationArray as OldPublicSchemasV4PagePaginationArray,
164 type UserSchemaCreateParams as UserSchemaCreateParams,
165 type UserSchemaListParams as UserSchemaListParams,
166 type UserSchemaDeleteParams as UserSchemaDeleteParams,
167 type UserSchemaEditParams as UserSchemaEditParams,
168 type UserSchemaGetParams as UserSchemaGetParams,
169 };
170
171 export { ExpressionTemplate as ExpressionTemplate, BaseExpressionTemplate as BaseExpressionTemplate };
172}
173