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