cloudflare/cloudflare-typescript
Publicmirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable
src/resources/api-gateway/api-gateway.ts
172lines · modecode
| 1 | // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. |
| 2 | |
| 3 | import { APIResource } from '../../core/resource'; |
| 4 | import * as ConfigurationsAPI from './configurations'; |
| 5 | import { |
| 6 | BaseConfigurations, |
| 7 | Configuration, |
| 8 | ConfigurationGetParams, |
| 9 | ConfigurationUpdateParams, |
| 10 | Configurations, |
| 11 | } from './configurations'; |
| 12 | import * as SchemasAPI from './schemas'; |
| 13 | import { BaseSchemas, SchemaListParams, SchemaListResponse, Schemas } from './schemas'; |
| 14 | import * as DiscoveryAPI from './discovery/discovery'; |
| 15 | import { |
| 16 | BaseDiscovery, |
| 17 | Discovery, |
| 18 | DiscoveryGetParams, |
| 19 | DiscoveryGetResponse, |
| 20 | DiscoveryOperation, |
| 21 | } from './discovery/discovery'; |
| 22 | import * as ExpressionTemplateAPI from './expression-template/expression-template'; |
| 23 | import { BaseExpressionTemplate, ExpressionTemplate } from './expression-template/expression-template'; |
| 24 | import * as LabelsAPI from './labels/labels'; |
| 25 | import { |
| 26 | BaseLabels, |
| 27 | LabelListParams, |
| 28 | LabelListResponse, |
| 29 | LabelListResponsesV4PagePaginationArray, |
| 30 | Labels, |
| 31 | } from './labels/labels'; |
| 32 | import * as OperationsAPI from './operations/operations'; |
| 33 | import { |
| 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'; |
| 52 | import * as SettingsAPI from './settings/settings'; |
| 53 | import { BaseSettings, Settings } from './settings/settings'; |
| 54 | import * as UserSchemasAPI from './user-schemas/user-schemas'; |
| 55 | import { |
| 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 | |
| 70 | export class BaseAPIGateway extends APIResource { |
| 71 | static override readonly _key: readonly ['apiGateway'] = Object.freeze(['apiGateway'] as const); |
| 72 | } |
| 73 | export 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 | |
| 86 | APIGateway.Configurations = Configurations; |
| 87 | APIGateway.BaseConfigurations = BaseConfigurations; |
| 88 | APIGateway.Discovery = Discovery; |
| 89 | APIGateway.BaseDiscovery = BaseDiscovery; |
| 90 | APIGateway.Labels = Labels; |
| 91 | APIGateway.BaseLabels = BaseLabels; |
| 92 | APIGateway.Operations = Operations; |
| 93 | APIGateway.BaseOperations = BaseOperations; |
| 94 | APIGateway.Schemas = Schemas; |
| 95 | APIGateway.BaseSchemas = BaseSchemas; |
| 96 | APIGateway.BaseSettings = BaseSettings; |
| 97 | APIGateway.UserSchemas = UserSchemas; |
| 98 | APIGateway.BaseUserSchemas = BaseUserSchemas; |
| 99 | APIGateway.ExpressionTemplate = ExpressionTemplate; |
| 100 | APIGateway.BaseExpressionTemplate = BaseExpressionTemplate; |
| 101 | |
| 102 | export 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 | |