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