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