@maxim_mazurok/gapi.client.trafficdirector-v3 0.0.20231018
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +707 -0
- package/package.json +20 -0
- package/readme.md +73 -0
- package/tests.ts +167 -0
- package/tsconfig.json +18 -0
- package/tslint.json +6 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,707 @@
|
|
|
1
|
+
/* Type definitions for non-npm package Traffic Director API v3 0.0 */
|
|
2
|
+
// Project: https://cloud.google.com/traffic-director
|
|
3
|
+
// Definitions by: Maxim Mazurok <https://github.com/Maxim-Mazurok>
|
|
4
|
+
// Nick Amoscato <https://github.com/namoscato>
|
|
5
|
+
// Declan Vong <https://github.com/declanvong>
|
|
6
|
+
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
|
+
|
|
8
|
+
// IMPORTANT
|
|
9
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
|
+
// Generated from: https://trafficdirector.googleapis.com/$discovery/rest?version=v3
|
|
12
|
+
// Revision: 20231018
|
|
13
|
+
|
|
14
|
+
/// <reference types="gapi.client" />
|
|
15
|
+
|
|
16
|
+
declare namespace gapi.client {
|
|
17
|
+
/** Load Traffic Director API v3 */
|
|
18
|
+
function load(urlOrObject: "https://trafficdirector.googleapis.com/$discovery/rest?version=v3"): Promise<void>;
|
|
19
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
20
|
+
function load(name: "trafficdirector", version: "v3"): Promise<void>;
|
|
21
|
+
/** @deprecated Please load APIs with discovery documents. */
|
|
22
|
+
function load(name: "trafficdirector", version: "v3", callback: () => any): void;
|
|
23
|
+
|
|
24
|
+
namespace trafficdirector {
|
|
25
|
+
interface Address {
|
|
26
|
+
/** Specifies a user-space address handled by :ref:`internal listeners `. */
|
|
27
|
+
envoyInternalAddress?:
|
|
28
|
+
EnvoyInternalAddress;
|
|
29
|
+
pipe?:
|
|
30
|
+
Pipe;
|
|
31
|
+
socketAddress?:
|
|
32
|
+
SocketAddress;
|
|
33
|
+
}
|
|
34
|
+
interface BuildVersion {
|
|
35
|
+
/** Free-form build information. Envoy defines several well known keys in the source/common/version/version.h file */
|
|
36
|
+
metadata?:
|
|
37
|
+
{ [P in string]: any };
|
|
38
|
+
/** SemVer version of extension. */
|
|
39
|
+
version?:
|
|
40
|
+
SemanticVersion;
|
|
41
|
+
}
|
|
42
|
+
interface ClientConfig {
|
|
43
|
+
/** Represents generic xDS config and the exact config structure depends on the type URL (like Cluster if it is CDS) */
|
|
44
|
+
genericXdsConfigs?:
|
|
45
|
+
GenericXdsConfig[];
|
|
46
|
+
/** Node for a particular client. */
|
|
47
|
+
node?:
|
|
48
|
+
Node;
|
|
49
|
+
/** This field is deprecated in favor of generic_xds_configs which is much simpler and uniform in structure. */
|
|
50
|
+
xdsConfig?:
|
|
51
|
+
PerXdsConfig[];
|
|
52
|
+
}
|
|
53
|
+
interface ClientStatusRequest {
|
|
54
|
+
/** If true, the server will not include the resource contents in the response (i.e., the generic_xds_configs.xds_config field will not be populated). [#not-implemented-hide:] */
|
|
55
|
+
excludeResourceContents?:
|
|
56
|
+
boolean;
|
|
57
|
+
/** The node making the csds request. */
|
|
58
|
+
node?:
|
|
59
|
+
Node;
|
|
60
|
+
/** Management server can use these match criteria to identify clients. The match follows OR semantics. */
|
|
61
|
+
nodeMatchers?:
|
|
62
|
+
NodeMatcher[];
|
|
63
|
+
}
|
|
64
|
+
interface ClientStatusResponse {
|
|
65
|
+
/** Client configs for the clients specified in the ClientStatusRequest. */
|
|
66
|
+
config?:
|
|
67
|
+
ClientConfig[];
|
|
68
|
+
}
|
|
69
|
+
interface ClustersConfigDump {
|
|
70
|
+
/** The dynamically loaded active clusters. These are clusters that are available to service data plane traffic. */
|
|
71
|
+
dynamicActiveClusters?:
|
|
72
|
+
DynamicCluster[];
|
|
73
|
+
/**
|
|
74
|
+
* The dynamically loaded warming clusters. These are clusters that are currently undergoing warming in preparation to service data plane traffic. Note that if attempting to recreate
|
|
75
|
+
* an Envoy configuration from a configuration dump, the warming clusters should generally be discarded.
|
|
76
|
+
*/
|
|
77
|
+
dynamicWarmingClusters?:
|
|
78
|
+
DynamicCluster[];
|
|
79
|
+
/** The statically loaded cluster configs. */
|
|
80
|
+
staticClusters?:
|
|
81
|
+
StaticCluster[];
|
|
82
|
+
/** This is the :ref:`version_info ` in the last processed CDS discovery response. If there are only static bootstrap clusters, this field will be "". */
|
|
83
|
+
versionInfo?:
|
|
84
|
+
string;
|
|
85
|
+
}
|
|
86
|
+
interface ContextParams {
|
|
87
|
+
params?:
|
|
88
|
+
{ [P in string]: string };
|
|
89
|
+
}
|
|
90
|
+
interface DoubleMatcher {
|
|
91
|
+
/** If specified, the input double value must be equal to the value specified here. */
|
|
92
|
+
exact?:
|
|
93
|
+
number;
|
|
94
|
+
/** If specified, the input double value must be in the range specified here. Note: The range is using half-open interval semantics [start, end). */
|
|
95
|
+
range?:
|
|
96
|
+
DoubleRange;
|
|
97
|
+
}
|
|
98
|
+
interface DoubleRange {
|
|
99
|
+
/** end of the range (exclusive) */
|
|
100
|
+
end?:
|
|
101
|
+
number;
|
|
102
|
+
/** start of the range (inclusive) */
|
|
103
|
+
start?:
|
|
104
|
+
number;
|
|
105
|
+
}
|
|
106
|
+
interface DynamicCluster {
|
|
107
|
+
/** The client status of this resource. [#not-implemented-hide:] */
|
|
108
|
+
clientStatus?:
|
|
109
|
+
string;
|
|
110
|
+
/** The cluster config. */
|
|
111
|
+
cluster?:
|
|
112
|
+
{ [P in string]: any };
|
|
113
|
+
/**
|
|
114
|
+
* Set if the last update failed, cleared after the next successful update. The ``error_state`` field contains the rejected version of this particular resource along with the reason
|
|
115
|
+
* and timestamp. For successfully updated or acknowledged resource, this field should be empty. [#not-implemented-hide:]
|
|
116
|
+
*/
|
|
117
|
+
errorState?:
|
|
118
|
+
UpdateFailureState;
|
|
119
|
+
/** The timestamp when the Cluster was last updated. */
|
|
120
|
+
lastUpdated?:
|
|
121
|
+
string;
|
|
122
|
+
/**
|
|
123
|
+
* This is the per-resource version information. This version is currently taken from the :ref:`version_info ` field at the time that the cluster was loaded. In the future, discrete
|
|
124
|
+
* per-cluster versions may be supported by the API.
|
|
125
|
+
*/
|
|
126
|
+
versionInfo?:
|
|
127
|
+
string;
|
|
128
|
+
}
|
|
129
|
+
interface DynamicEndpointConfig {
|
|
130
|
+
/** The client status of this resource. [#not-implemented-hide:] */
|
|
131
|
+
clientStatus?:
|
|
132
|
+
string;
|
|
133
|
+
/** The endpoint config. */
|
|
134
|
+
endpointConfig?:
|
|
135
|
+
{ [P in string]: any };
|
|
136
|
+
/**
|
|
137
|
+
* Set if the last update failed, cleared after the next successful update. The ``error_state`` field contains the rejected version of this particular resource along with the reason
|
|
138
|
+
* and timestamp. For successfully updated or acknowledged resource, this field should be empty. [#not-implemented-hide:]
|
|
139
|
+
*/
|
|
140
|
+
errorState?:
|
|
141
|
+
UpdateFailureState;
|
|
142
|
+
/** [#not-implemented-hide:] The timestamp when the Endpoint was last updated. */
|
|
143
|
+
lastUpdated?:
|
|
144
|
+
string;
|
|
145
|
+
/**
|
|
146
|
+
* [#not-implemented-hide:] This is the per-resource version information. This version is currently taken from the :ref:`version_info ` field at the time that the endpoint
|
|
147
|
+
* configuration was loaded.
|
|
148
|
+
*/
|
|
149
|
+
versionInfo?:
|
|
150
|
+
string;
|
|
151
|
+
}
|
|
152
|
+
interface DynamicListener {
|
|
153
|
+
/** The listener state for any active listener by this name. These are listeners that are available to service data plane traffic. */
|
|
154
|
+
activeState?:
|
|
155
|
+
DynamicListenerState;
|
|
156
|
+
/** The client status of this resource. [#not-implemented-hide:] */
|
|
157
|
+
clientStatus?:
|
|
158
|
+
string;
|
|
159
|
+
/**
|
|
160
|
+
* The listener state for any draining listener by this name. These are listeners that are currently undergoing draining in preparation to stop servicing data plane traffic. Note that
|
|
161
|
+
* if attempting to recreate an Envoy configuration from a configuration dump, the draining listeners should generally be discarded.
|
|
162
|
+
*/
|
|
163
|
+
drainingState?:
|
|
164
|
+
DynamicListenerState;
|
|
165
|
+
/**
|
|
166
|
+
* Set if the last update failed, cleared after the next successful update. The ``error_state`` field contains the rejected version of this particular resource along with the reason
|
|
167
|
+
* and timestamp. For successfully updated or acknowledged resource, this field should be empty.
|
|
168
|
+
*/
|
|
169
|
+
errorState?:
|
|
170
|
+
UpdateFailureState;
|
|
171
|
+
/** The name or unique id of this listener, pulled from the DynamicListenerState config. */
|
|
172
|
+
name?:
|
|
173
|
+
string;
|
|
174
|
+
/**
|
|
175
|
+
* The listener state for any warming listener by this name. These are listeners that are currently undergoing warming in preparation to service data plane traffic. Note that if
|
|
176
|
+
* attempting to recreate an Envoy configuration from a configuration dump, the warming listeners should generally be discarded.
|
|
177
|
+
*/
|
|
178
|
+
warmingState?:
|
|
179
|
+
DynamicListenerState;
|
|
180
|
+
}
|
|
181
|
+
interface DynamicListenerState {
|
|
182
|
+
/** The timestamp when the Listener was last successfully updated. */
|
|
183
|
+
lastUpdated?:
|
|
184
|
+
string;
|
|
185
|
+
/** The listener config. */
|
|
186
|
+
listener?:
|
|
187
|
+
{ [P in string]: any };
|
|
188
|
+
/**
|
|
189
|
+
* This is the per-resource version information. This version is currently taken from the :ref:`version_info ` field at the time that the listener was loaded. In the future, discrete
|
|
190
|
+
* per-listener versions may be supported by the API.
|
|
191
|
+
*/
|
|
192
|
+
versionInfo?:
|
|
193
|
+
string;
|
|
194
|
+
}
|
|
195
|
+
interface DynamicRouteConfig {
|
|
196
|
+
/** The client status of this resource. [#not-implemented-hide:] */
|
|
197
|
+
clientStatus?:
|
|
198
|
+
string;
|
|
199
|
+
/**
|
|
200
|
+
* Set if the last update failed, cleared after the next successful update. The ``error_state`` field contains the rejected version of this particular resource along with the reason
|
|
201
|
+
* and timestamp. For successfully updated or acknowledged resource, this field should be empty. [#not-implemented-hide:]
|
|
202
|
+
*/
|
|
203
|
+
errorState?:
|
|
204
|
+
UpdateFailureState;
|
|
205
|
+
/** The timestamp when the Route was last updated. */
|
|
206
|
+
lastUpdated?:
|
|
207
|
+
string;
|
|
208
|
+
/** The route config. */
|
|
209
|
+
routeConfig?:
|
|
210
|
+
{ [P in string]: any };
|
|
211
|
+
/** This is the per-resource version information. This version is currently taken from the :ref:`version_info ` field at the time that the route configuration was loaded. */
|
|
212
|
+
versionInfo?:
|
|
213
|
+
string;
|
|
214
|
+
}
|
|
215
|
+
interface DynamicScopedRouteConfigs {
|
|
216
|
+
/** The client status of this resource. [#not-implemented-hide:] */
|
|
217
|
+
clientStatus?:
|
|
218
|
+
string;
|
|
219
|
+
/**
|
|
220
|
+
* Set if the last update failed, cleared after the next successful update. The ``error_state`` field contains the rejected version of this particular resource along with the reason
|
|
221
|
+
* and timestamp. For successfully updated or acknowledged resource, this field should be empty. [#not-implemented-hide:]
|
|
222
|
+
*/
|
|
223
|
+
errorState?:
|
|
224
|
+
UpdateFailureState;
|
|
225
|
+
/** The timestamp when the scoped route config set was last updated. */
|
|
226
|
+
lastUpdated?:
|
|
227
|
+
string;
|
|
228
|
+
/** The name assigned to the scoped route configurations. */
|
|
229
|
+
name?:
|
|
230
|
+
string;
|
|
231
|
+
/** The scoped route configurations. */
|
|
232
|
+
scopedRouteConfigs?:
|
|
233
|
+
Array<{ [P in string]: any }>;
|
|
234
|
+
/** This is the per-resource version information. This version is currently taken from the :ref:`version_info ` field at the time that the scoped routes configuration was loaded. */
|
|
235
|
+
versionInfo?:
|
|
236
|
+
string;
|
|
237
|
+
}
|
|
238
|
+
interface EndpointsConfigDump {
|
|
239
|
+
/** The dynamically loaded endpoint configs. */
|
|
240
|
+
dynamicEndpointConfigs?:
|
|
241
|
+
DynamicEndpointConfig[];
|
|
242
|
+
/** The statically loaded endpoint configs. */
|
|
243
|
+
staticEndpointConfigs?:
|
|
244
|
+
StaticEndpointConfig[];
|
|
245
|
+
}
|
|
246
|
+
interface EnvoyInternalAddress {
|
|
247
|
+
/**
|
|
248
|
+
* Specifies an endpoint identifier to distinguish between multiple endpoints for the same internal listener in a single upstream pool. Only used in the upstream addresses for tracking
|
|
249
|
+
* changes to individual endpoints. This, for example, may be set to the final destination IP for the target internal listener.
|
|
250
|
+
*/
|
|
251
|
+
endpointId?:
|
|
252
|
+
string;
|
|
253
|
+
/** Specifies the :ref:`name ` of the internal listener. */
|
|
254
|
+
serverListenerName?:
|
|
255
|
+
string;
|
|
256
|
+
}
|
|
257
|
+
interface Extension {
|
|
258
|
+
/**
|
|
259
|
+
* Category of the extension. Extension category names use reverse DNS notation. For instance "envoy.filters.listener" for Envoy's built-in listener filters or "com.acme.filters.http"
|
|
260
|
+
* for HTTP filters from acme.com vendor. [#comment:
|
|
261
|
+
*/
|
|
262
|
+
category?:
|
|
263
|
+
string;
|
|
264
|
+
/** Indicates that the extension is present but was disabled via dynamic configuration. */
|
|
265
|
+
disabled?:
|
|
266
|
+
boolean;
|
|
267
|
+
/** This is the name of the Envoy filter as specified in the Envoy configuration, e.g. envoy.filters.http.router, com.acme.widget. */
|
|
268
|
+
name?:
|
|
269
|
+
string;
|
|
270
|
+
/** [#not-implemented-hide:] Type descriptor of extension configuration proto. [#comment: */
|
|
271
|
+
typeDescriptor?:
|
|
272
|
+
string;
|
|
273
|
+
/** Type URLs of extension configuration protos. */
|
|
274
|
+
typeUrls?:
|
|
275
|
+
string[];
|
|
276
|
+
/**
|
|
277
|
+
* The version is a property of the extension and maintained independently of other extensions and the Envoy API. This field is not set when extension did not provide version
|
|
278
|
+
* information.
|
|
279
|
+
*/
|
|
280
|
+
version?:
|
|
281
|
+
BuildVersion;
|
|
282
|
+
}
|
|
283
|
+
interface GenericXdsConfig {
|
|
284
|
+
/** Per xDS resource status from the view of a xDS client */
|
|
285
|
+
clientStatus?:
|
|
286
|
+
string;
|
|
287
|
+
/** Per xDS resource config status. It is generated by management servers. It will not be present if the CSDS server is an xDS client. */
|
|
288
|
+
configStatus?:
|
|
289
|
+
string;
|
|
290
|
+
/**
|
|
291
|
+
* Set if the last update failed, cleared after the next successful update. The *error_state* field contains the rejected version of this particular resource along with the reason and
|
|
292
|
+
* timestamp. For successfully updated or acknowledged resource, this field should be empty. [#not-implemented-hide:]
|
|
293
|
+
*/
|
|
294
|
+
errorState?:
|
|
295
|
+
UpdateFailureState;
|
|
296
|
+
/** Is static resource is true if it is specified in the config supplied through the file at the startup. */
|
|
297
|
+
isStaticResource?:
|
|
298
|
+
boolean;
|
|
299
|
+
/** Timestamp when the xDS resource was last updated */
|
|
300
|
+
lastUpdated?:
|
|
301
|
+
string;
|
|
302
|
+
/** Name of the xDS resource */
|
|
303
|
+
name?:
|
|
304
|
+
string;
|
|
305
|
+
/** Type_url represents the fully qualified name of xDS resource type like envoy.v3.Cluster, envoy.v3.ClusterLoadAssignment etc. */
|
|
306
|
+
typeUrl?:
|
|
307
|
+
string;
|
|
308
|
+
/** This is the :ref:`version_info ` in the last processed xDS discovery response. If there are only static bootstrap listeners, this field will be "" */
|
|
309
|
+
versionInfo?:
|
|
310
|
+
string;
|
|
311
|
+
/** The xDS resource config. Actual content depends on the type */
|
|
312
|
+
xdsConfig?:
|
|
313
|
+
{ [P in string]: any };
|
|
314
|
+
}
|
|
315
|
+
interface GoogleRE2 {
|
|
316
|
+
/**
|
|
317
|
+
* This field controls the RE2 "program size" which is a rough estimate of how complex a compiled regex is to evaluate. A regex that has a program size greater than the configured
|
|
318
|
+
* value will fail to compile. In this case, the configured max program size can be increased or the regex can be simplified. If not specified, the default is 100. This field is
|
|
319
|
+
* deprecated; regexp validation should be performed on the management server instead of being done by each individual client. .. note:: Although this field is deprecated, the program
|
|
320
|
+
* size will still be checked against the global ``re2.max_program_size.error_level`` runtime value.
|
|
321
|
+
*/
|
|
322
|
+
maxProgramSize?:
|
|
323
|
+
number;
|
|
324
|
+
}
|
|
325
|
+
interface InlineScopedRouteConfigs {
|
|
326
|
+
/** The timestamp when the scoped route config set was last updated. */
|
|
327
|
+
lastUpdated?:
|
|
328
|
+
string;
|
|
329
|
+
/** The name assigned to the scoped route configurations. */
|
|
330
|
+
name?:
|
|
331
|
+
string;
|
|
332
|
+
/** The scoped route configurations. */
|
|
333
|
+
scopedRouteConfigs?:
|
|
334
|
+
Array<{ [P in string]: any }>;
|
|
335
|
+
}
|
|
336
|
+
interface ListenersConfigDump {
|
|
337
|
+
/** State for any warming, active, or draining listeners. */
|
|
338
|
+
dynamicListeners?:
|
|
339
|
+
DynamicListener[];
|
|
340
|
+
/** The statically loaded listener configs. */
|
|
341
|
+
staticListeners?:
|
|
342
|
+
StaticListener[];
|
|
343
|
+
/** This is the :ref:`version_info ` in the last processed LDS discovery response. If there are only static bootstrap listeners, this field will be "". */
|
|
344
|
+
versionInfo?:
|
|
345
|
+
string;
|
|
346
|
+
}
|
|
347
|
+
interface ListMatcher {
|
|
348
|
+
/** If specified, at least one of the values in the list must match the value specified. */
|
|
349
|
+
oneOf?:
|
|
350
|
+
ValueMatcher;
|
|
351
|
+
}
|
|
352
|
+
interface Locality {
|
|
353
|
+
/** Region this :ref:`zone ` belongs to. */
|
|
354
|
+
region?:
|
|
355
|
+
string;
|
|
356
|
+
/** When used for locality of upstream hosts, this field further splits zone into smaller chunks of sub-zones so they can be load balanced independently. */
|
|
357
|
+
subZone?:
|
|
358
|
+
string;
|
|
359
|
+
/**
|
|
360
|
+
* Defines the local service zone where Envoy is running. Though optional, it should be set if discovery service routing is used and the discovery service exposes :ref:`zone data `,
|
|
361
|
+
* either in this message or via :option:`--service-zone`. The meaning of zone is context dependent, e.g. `Availability Zone (AZ) `_ on AWS, `Zone `_ on GCP, etc.
|
|
362
|
+
*/
|
|
363
|
+
zone?:
|
|
364
|
+
string;
|
|
365
|
+
}
|
|
366
|
+
interface Node {
|
|
367
|
+
/**
|
|
368
|
+
* Client feature support list. These are well known features described in the Envoy API repository for a given major version of an API. Client features use reverse DNS naming scheme,
|
|
369
|
+
* for example ``com.acme.feature``. See :ref:`the list of features ` that xDS client may support.
|
|
370
|
+
*/
|
|
371
|
+
clientFeatures?:
|
|
372
|
+
string[];
|
|
373
|
+
/**
|
|
374
|
+
* Defines the local service cluster name where Envoy is running. Though optional, it should be set if any of the following features are used: :ref:`statsd `, :ref:`health check
|
|
375
|
+
* cluster verification `, :ref:`runtime override directory `, :ref:`user agent addition `, :ref:`HTTP global rate limiting `, :ref:`CDS `, and :ref:`HTTP tracing `, either in this
|
|
376
|
+
* message or via :option:`--service-cluster`.
|
|
377
|
+
*/
|
|
378
|
+
cluster?:
|
|
379
|
+
string;
|
|
380
|
+
/**
|
|
381
|
+
* Map from xDS resource type URL to dynamic context parameters. These may vary at runtime (unlike other fields in this message). For example, the xDS client may have a shard
|
|
382
|
+
* identifier that changes during the lifetime of the xDS client. In Envoy, this would be achieved by updating the dynamic context on the Server::Instance's LocalInfo context provider.
|
|
383
|
+
* The shard ID dynamic parameter then appears in this field during future discovery requests.
|
|
384
|
+
*/
|
|
385
|
+
dynamicParameters?:
|
|
386
|
+
{ [P in string]: ContextParams };
|
|
387
|
+
/** List of extensions and their versions supported by the node. */
|
|
388
|
+
extensions?:
|
|
389
|
+
Extension[];
|
|
390
|
+
/**
|
|
391
|
+
* An opaque node identifier for the Envoy node. This also provides the local service node name. It should be set if any of the following features are used: :ref:`statsd `, :ref:`CDS
|
|
392
|
+
* `, and :ref:`HTTP tracing `, either in this message or via :option:`--service-node`.
|
|
393
|
+
*/
|
|
394
|
+
id?:
|
|
395
|
+
string;
|
|
396
|
+
/**
|
|
397
|
+
* Known listening ports on the node as a generic hint to the management server for filtering :ref:`listeners ` to be returned. For example, if there is a listener bound to port 80,
|
|
398
|
+
* the list can optionally contain the SocketAddress ``(0.0.0.0,80)``. The field is optional and just a hint.
|
|
399
|
+
*/
|
|
400
|
+
listeningAddresses?:
|
|
401
|
+
Address[];
|
|
402
|
+
/** Locality specifying where the Envoy instance is running. */
|
|
403
|
+
locality?:
|
|
404
|
+
Locality;
|
|
405
|
+
/** Opaque metadata extending the node identifier. Envoy will pass this directly to the management server. */
|
|
406
|
+
metadata?:
|
|
407
|
+
{ [P in string]: any };
|
|
408
|
+
/** Structured version of the entity requesting config. */
|
|
409
|
+
userAgentBuildVersion?:
|
|
410
|
+
BuildVersion;
|
|
411
|
+
/** Free-form string that identifies the entity requesting config. E.g. "envoy" or "grpc" */
|
|
412
|
+
userAgentName?:
|
|
413
|
+
string;
|
|
414
|
+
/** Free-form string that identifies the version of the entity requesting config. E.g. "1.12.2" or "abcd1234", or "SpecialEnvoyBuild" */
|
|
415
|
+
userAgentVersion?:
|
|
416
|
+
string;
|
|
417
|
+
}
|
|
418
|
+
interface NodeMatcher {
|
|
419
|
+
/** Specifies match criteria on the node id. */
|
|
420
|
+
nodeId?:
|
|
421
|
+
StringMatcher;
|
|
422
|
+
/** Specifies match criteria on the node metadata. */
|
|
423
|
+
nodeMetadatas?:
|
|
424
|
+
StructMatcher[];
|
|
425
|
+
}
|
|
426
|
+
// tslint:disable-next-line:no-empty-interface
|
|
427
|
+
interface NullMatch {
|
|
428
|
+
}
|
|
429
|
+
interface PathSegment {
|
|
430
|
+
/** If specified, use the key to retrieve the value in a Struct. */
|
|
431
|
+
key?:
|
|
432
|
+
string;
|
|
433
|
+
}
|
|
434
|
+
interface PerXdsConfig {
|
|
435
|
+
/**
|
|
436
|
+
* Client config status is populated by xDS clients. Will not be present if the CSDS server is an xDS server. No matter what the client config status is, xDS clients should always dump
|
|
437
|
+
* the most recent accepted xDS config. .. attention:: This field is deprecated. Use :ref:`ClientResourceStatus ` for per-resource config status instead.
|
|
438
|
+
*/
|
|
439
|
+
clientStatus?:
|
|
440
|
+
string;
|
|
441
|
+
clusterConfig?:
|
|
442
|
+
ClustersConfigDump;
|
|
443
|
+
endpointConfig?:
|
|
444
|
+
EndpointsConfigDump;
|
|
445
|
+
listenerConfig?:
|
|
446
|
+
ListenersConfigDump;
|
|
447
|
+
routeConfig?:
|
|
448
|
+
RoutesConfigDump;
|
|
449
|
+
scopedRouteConfig?:
|
|
450
|
+
ScopedRoutesConfigDump;
|
|
451
|
+
/** Config status generated by management servers. Will not be present if the CSDS server is an xDS client. */
|
|
452
|
+
status?:
|
|
453
|
+
string;
|
|
454
|
+
}
|
|
455
|
+
interface Pipe {
|
|
456
|
+
/** The mode for the Pipe. Not applicable for abstract sockets. */
|
|
457
|
+
mode?:
|
|
458
|
+
number;
|
|
459
|
+
/**
|
|
460
|
+
* Unix Domain Socket path. On Linux, paths starting with '@' will use the abstract namespace. The starting '@' is replaced by a null byte by Envoy. Paths starting with '@' will result
|
|
461
|
+
* in an error in environments other than Linux.
|
|
462
|
+
*/
|
|
463
|
+
path?:
|
|
464
|
+
string;
|
|
465
|
+
}
|
|
466
|
+
interface RegexMatcher {
|
|
467
|
+
/** Google's RE2 regex engine. */
|
|
468
|
+
googleRe2?:
|
|
469
|
+
GoogleRE2;
|
|
470
|
+
/** The regex match string. The string must be supported by the configured engine. The regex is matched against the full string, not as a partial match. */
|
|
471
|
+
regex?:
|
|
472
|
+
string;
|
|
473
|
+
}
|
|
474
|
+
interface RoutesConfigDump {
|
|
475
|
+
/** The dynamically loaded route configs. */
|
|
476
|
+
dynamicRouteConfigs?:
|
|
477
|
+
DynamicRouteConfig[];
|
|
478
|
+
/** The statically loaded route configs. */
|
|
479
|
+
staticRouteConfigs?:
|
|
480
|
+
StaticRouteConfig[];
|
|
481
|
+
}
|
|
482
|
+
interface ScopedRoutesConfigDump {
|
|
483
|
+
/** The dynamically loaded scoped route configs. */
|
|
484
|
+
dynamicScopedRouteConfigs?:
|
|
485
|
+
DynamicScopedRouteConfigs[];
|
|
486
|
+
/** The statically loaded scoped route configs. */
|
|
487
|
+
inlineScopedRouteConfigs?:
|
|
488
|
+
InlineScopedRouteConfigs[];
|
|
489
|
+
}
|
|
490
|
+
interface SemanticVersion {
|
|
491
|
+
majorNumber?:
|
|
492
|
+
number;
|
|
493
|
+
minorNumber?:
|
|
494
|
+
number;
|
|
495
|
+
patch?:
|
|
496
|
+
number;
|
|
497
|
+
}
|
|
498
|
+
interface SocketAddress {
|
|
499
|
+
/**
|
|
500
|
+
* The address for this socket. :ref:`Listeners ` will bind to the address. An empty address is not allowed. Specify ``0.0.0.0`` or ``::`` to bind to any address.
|
|
501
|
+
* [#comment:TODO(zuercher) reinstate when implemented: It is possible to distinguish a Listener address via the prefix/suffix matching in :ref:`FilterChainMatch `.] When used within
|
|
502
|
+
* an upstream :ref:`BindConfig `, the address controls the source address of outbound connections. For :ref:`clusters `, the cluster type determines whether the address must be an IP
|
|
503
|
+
* (``STATIC`` or ``EDS`` clusters) or a hostname resolved by DNS (``STRICT_DNS`` or ``LOGICAL_DNS`` clusters). Address resolution can be customized via :ref:`resolver_name `.
|
|
504
|
+
*/
|
|
505
|
+
address?:
|
|
506
|
+
string;
|
|
507
|
+
/**
|
|
508
|
+
* When binding to an IPv6 address above, this enables `IPv4 compatibility `_. Binding to ``::`` will allow both IPv4 and IPv6 connections, with peer IPv4 addresses mapped into IPv6
|
|
509
|
+
* space as ``::FFFF:``.
|
|
510
|
+
*/
|
|
511
|
+
ipv4Compat?:
|
|
512
|
+
boolean;
|
|
513
|
+
/** This is only valid if :ref:`resolver_name ` is specified below and the named resolver is capable of named port resolution. */
|
|
514
|
+
namedPort?:
|
|
515
|
+
string;
|
|
516
|
+
portValue?:
|
|
517
|
+
number;
|
|
518
|
+
protocol?:
|
|
519
|
+
string;
|
|
520
|
+
/**
|
|
521
|
+
* The name of the custom resolver. This must have been registered with Envoy. If this is empty, a context dependent default applies. If the address is a concrete IP address, no
|
|
522
|
+
* resolution will occur. If address is a hostname this should be set for resolution other than DNS. Specifying a custom resolver with ``STRICT_DNS`` or ``LOGICAL_DNS`` will generate
|
|
523
|
+
* an error at runtime.
|
|
524
|
+
*/
|
|
525
|
+
resolverName?:
|
|
526
|
+
string;
|
|
527
|
+
}
|
|
528
|
+
interface StaticCluster {
|
|
529
|
+
/** The cluster config. */
|
|
530
|
+
cluster?:
|
|
531
|
+
{ [P in string]: any };
|
|
532
|
+
/** The timestamp when the Cluster was last updated. */
|
|
533
|
+
lastUpdated?:
|
|
534
|
+
string;
|
|
535
|
+
}
|
|
536
|
+
interface StaticEndpointConfig {
|
|
537
|
+
/** The endpoint config. */
|
|
538
|
+
endpointConfig?:
|
|
539
|
+
{ [P in string]: any };
|
|
540
|
+
/** [#not-implemented-hide:] The timestamp when the Endpoint was last updated. */
|
|
541
|
+
lastUpdated?:
|
|
542
|
+
string;
|
|
543
|
+
}
|
|
544
|
+
interface StaticListener {
|
|
545
|
+
/** The timestamp when the Listener was last successfully updated. */
|
|
546
|
+
lastUpdated?:
|
|
547
|
+
string;
|
|
548
|
+
/** The listener config. */
|
|
549
|
+
listener?:
|
|
550
|
+
{ [P in string]: any };
|
|
551
|
+
}
|
|
552
|
+
interface StaticRouteConfig {
|
|
553
|
+
/** The timestamp when the Route was last updated. */
|
|
554
|
+
lastUpdated?:
|
|
555
|
+
string;
|
|
556
|
+
/** The route config. */
|
|
557
|
+
routeConfig?:
|
|
558
|
+
{ [P in string]: any };
|
|
559
|
+
}
|
|
560
|
+
interface StringMatcher {
|
|
561
|
+
/** The input string must have the substring specified here. Note: empty contains match is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def`` */
|
|
562
|
+
contains?:
|
|
563
|
+
string;
|
|
564
|
+
/** The input string must match exactly the string specified here. Examples: * ``abc`` only matches the value ``abc``. */
|
|
565
|
+
exact?:
|
|
566
|
+
string;
|
|
567
|
+
/**
|
|
568
|
+
* If true, indicates the exact/prefix/suffix/contains matching should be case insensitive. This has no effect for the safe_regex match. For example, the matcher ``data`` will match
|
|
569
|
+
* both input string ``Data`` and ``data`` if set to true.
|
|
570
|
+
*/
|
|
571
|
+
ignoreCase?:
|
|
572
|
+
boolean;
|
|
573
|
+
/** The input string must have the prefix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``abc.xyz`` */
|
|
574
|
+
prefix?:
|
|
575
|
+
string;
|
|
576
|
+
/** The input string must match the regular expression specified here. */
|
|
577
|
+
safeRegex?:
|
|
578
|
+
RegexMatcher;
|
|
579
|
+
/** The input string must have the suffix specified here. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc`` */
|
|
580
|
+
suffix?:
|
|
581
|
+
string;
|
|
582
|
+
}
|
|
583
|
+
interface StructMatcher {
|
|
584
|
+
/** The path to retrieve the Value from the Struct. */
|
|
585
|
+
path?:
|
|
586
|
+
PathSegment[];
|
|
587
|
+
/** The StructMatcher is matched if the value retrieved by path is matched to this value. */
|
|
588
|
+
value?:
|
|
589
|
+
ValueMatcher;
|
|
590
|
+
}
|
|
591
|
+
interface UpdateFailureState {
|
|
592
|
+
/** Details about the last failed update attempt. */
|
|
593
|
+
details?:
|
|
594
|
+
string;
|
|
595
|
+
/** What the component configuration would have been if the update had succeeded. This field may not be populated by xDS clients due to storage overhead. */
|
|
596
|
+
failedConfiguration?:
|
|
597
|
+
{ [P in string]: any };
|
|
598
|
+
/** Time of the latest failed update attempt. */
|
|
599
|
+
lastUpdateAttempt?:
|
|
600
|
+
string;
|
|
601
|
+
/** This is the version of the rejected resource. [#not-implemented-hide:] */
|
|
602
|
+
versionInfo?:
|
|
603
|
+
string;
|
|
604
|
+
}
|
|
605
|
+
interface ValueMatcher {
|
|
606
|
+
/** If specified, a match occurs if and only if the target value is a bool value and is equal to this field. */
|
|
607
|
+
boolMatch?:
|
|
608
|
+
boolean;
|
|
609
|
+
/** If specified, a match occurs if and only if the target value is a double value and is matched to this field. */
|
|
610
|
+
doubleMatch?:
|
|
611
|
+
DoubleMatcher;
|
|
612
|
+
/** If specified, a match occurs if and only if the target value is a list value and is matched to this field. */
|
|
613
|
+
listMatch?:
|
|
614
|
+
ListMatcher;
|
|
615
|
+
/** If specified, a match occurs if and only if the target value is a NullValue. */
|
|
616
|
+
nullMatch?:
|
|
617
|
+
any;
|
|
618
|
+
/**
|
|
619
|
+
* If specified, value match will be performed based on whether the path is referring to a valid primitive value in the metadata. If the path is referring to a non-primitive value, the
|
|
620
|
+
* result is always not matched.
|
|
621
|
+
*/
|
|
622
|
+
presentMatch?:
|
|
623
|
+
boolean;
|
|
624
|
+
/** If specified, a match occurs if and only if the target value is a string value and is matched to this field. */
|
|
625
|
+
stringMatch?:
|
|
626
|
+
StringMatcher;
|
|
627
|
+
}
|
|
628
|
+
interface DiscoveryResource {
|
|
629
|
+
client_status(request: {
|
|
630
|
+
/** V1 error format. */
|
|
631
|
+
"$.xgafv"?:
|
|
632
|
+
string;
|
|
633
|
+
/** OAuth access token. */
|
|
634
|
+
access_token?:
|
|
635
|
+
string;
|
|
636
|
+
/** Data format for response. */
|
|
637
|
+
alt?:
|
|
638
|
+
string;
|
|
639
|
+
/** JSONP */
|
|
640
|
+
callback?:
|
|
641
|
+
string;
|
|
642
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
643
|
+
fields?:
|
|
644
|
+
string;
|
|
645
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
646
|
+
key?:
|
|
647
|
+
string;
|
|
648
|
+
/** OAuth 2.0 token for the current user. */
|
|
649
|
+
oauth_token?:
|
|
650
|
+
string;
|
|
651
|
+
/** Returns response with indentations and line breaks. */
|
|
652
|
+
prettyPrint?:
|
|
653
|
+
boolean;
|
|
654
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
655
|
+
quotaUser?:
|
|
656
|
+
string;
|
|
657
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
658
|
+
upload_protocol?:
|
|
659
|
+
string;
|
|
660
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
661
|
+
uploadType?:
|
|
662
|
+
string;
|
|
663
|
+
/** Request body */
|
|
664
|
+
resource:
|
|
665
|
+
ClientStatusRequest;
|
|
666
|
+
}): Request<ClientStatusResponse>;
|
|
667
|
+
client_status(request: {
|
|
668
|
+
/** V1 error format. */
|
|
669
|
+
"$.xgafv"?:
|
|
670
|
+
string;
|
|
671
|
+
/** OAuth access token. */
|
|
672
|
+
access_token?:
|
|
673
|
+
string;
|
|
674
|
+
/** Data format for response. */
|
|
675
|
+
alt?:
|
|
676
|
+
string;
|
|
677
|
+
/** JSONP */
|
|
678
|
+
callback?:
|
|
679
|
+
string;
|
|
680
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
681
|
+
fields?:
|
|
682
|
+
string;
|
|
683
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
684
|
+
key?:
|
|
685
|
+
string;
|
|
686
|
+
/** OAuth 2.0 token for the current user. */
|
|
687
|
+
oauth_token?:
|
|
688
|
+
string;
|
|
689
|
+
/** Returns response with indentations and line breaks. */
|
|
690
|
+
prettyPrint?:
|
|
691
|
+
boolean;
|
|
692
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
693
|
+
quotaUser?:
|
|
694
|
+
string;
|
|
695
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
696
|
+
upload_protocol?:
|
|
697
|
+
string;
|
|
698
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
699
|
+
uploadType?:
|
|
700
|
+
string;
|
|
701
|
+
},
|
|
702
|
+
body: ClientStatusRequest): Request<ClientStatusResponse>;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
const discovery: DiscoveryResource;
|
|
706
|
+
}
|
|
707
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@maxim_mazurok/gapi.client.trafficdirector-v3",
|
|
3
|
+
"version": "0.0.20231018",
|
|
4
|
+
"description": "TypeScript typings for Traffic Director API v3",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"email": "maxim@mazurok.com",
|
|
8
|
+
"name": "Maxim Mazurok",
|
|
9
|
+
"url": "https://maxim.mazurok.com"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
+
},
|
|
15
|
+
"types": "index.d.ts",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@types/gapi.client": "*",
|
|
18
|
+
"@types/gapi.client.discovery-v1": "*"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# TypeScript typings for Traffic Director API v3
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
For detailed description please check [documentation](https://cloud.google.com/traffic-director).
|
|
5
|
+
|
|
6
|
+
## Installing
|
|
7
|
+
|
|
8
|
+
Install typings for Traffic Director API:
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
npm install @types/gapi.client.trafficdirector-v3 --save-dev
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
You need to initialize Google API client in your code:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
gapi.load('client', () => {
|
|
20
|
+
// now we can use gapi.client
|
|
21
|
+
// ...
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then load api client wrapper:
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
gapi.client.load('https://trafficdirector.googleapis.com/$discovery/rest?version=v3', () => {
|
|
29
|
+
// now we can use:
|
|
30
|
+
// gapi.client.trafficdirector
|
|
31
|
+
});
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
```typescript
|
|
35
|
+
// Deprecated, use discovery document URL, see https://github.com/google/google-api-javascript-client/blob/master/docs/reference.md#----gapiclientloadname----version----callback--
|
|
36
|
+
gapi.client.load('trafficdirector', 'v3', () => {
|
|
37
|
+
// now we can use:
|
|
38
|
+
// gapi.client.trafficdirector
|
|
39
|
+
});
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Don't forget to authenticate your client before sending any request to resources:
|
|
43
|
+
|
|
44
|
+
```typescript
|
|
45
|
+
// declare client_id registered in Google Developers Console
|
|
46
|
+
var client_id = '',
|
|
47
|
+
scope = [
|
|
48
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
49
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
50
|
+
],
|
|
51
|
+
immediate = true;
|
|
52
|
+
// ...
|
|
53
|
+
|
|
54
|
+
gapi.auth.authorize(
|
|
55
|
+
{ client_id: client_id, scope: scope, immediate: immediate },
|
|
56
|
+
authResult => {
|
|
57
|
+
if (authResult && !authResult.error) {
|
|
58
|
+
/* handle successful authorization */
|
|
59
|
+
} else {
|
|
60
|
+
/* handle authorization error */
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
After that you can use Traffic Director API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
|
|
69
|
+
/*
|
|
70
|
+
|
|
71
|
+
*/
|
|
72
|
+
await gapi.client.trafficdirector.discovery.client_status({ });
|
|
73
|
+
```
|
package/tests.ts
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/* This is stub file for gapi.client.trafficdirector-v3 definition tests */
|
|
2
|
+
// IMPORTANT
|
|
3
|
+
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
+
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
+
|
|
6
|
+
// Revision: 20231018
|
|
7
|
+
|
|
8
|
+
gapi.load('client', async () => {
|
|
9
|
+
/** now we can use gapi.client */
|
|
10
|
+
|
|
11
|
+
await gapi.client.load('https://trafficdirector.googleapis.com/$discovery/rest?version=v3');
|
|
12
|
+
/** now we can use gapi.client.trafficdirector */
|
|
13
|
+
|
|
14
|
+
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
+
/** declare client_id registered in Google Developers Console */
|
|
16
|
+
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
+
const scope = [
|
|
18
|
+
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
+
];
|
|
21
|
+
const immediate = false;
|
|
22
|
+
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
+
if (authResult && !authResult.error) {
|
|
24
|
+
/** handle successful authorization */
|
|
25
|
+
run();
|
|
26
|
+
} else {
|
|
27
|
+
/** handle authorization error */
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
async function run() {
|
|
32
|
+
await gapi.client.trafficdirector.discovery.client_status({
|
|
33
|
+
}, {
|
|
34
|
+
excludeResourceContents: true,
|
|
35
|
+
node: {
|
|
36
|
+
clientFeatures: [
|
|
37
|
+
"Test string"
|
|
38
|
+
],
|
|
39
|
+
cluster: "Test string",
|
|
40
|
+
dynamicParameters: {
|
|
41
|
+
A: {
|
|
42
|
+
params: {
|
|
43
|
+
A: "Test string"
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
extensions: [
|
|
48
|
+
{
|
|
49
|
+
category: "Test string",
|
|
50
|
+
disabled: true,
|
|
51
|
+
name: "Test string",
|
|
52
|
+
typeDescriptor: "Test string",
|
|
53
|
+
typeUrls: [
|
|
54
|
+
"Test string"
|
|
55
|
+
],
|
|
56
|
+
version: {
|
|
57
|
+
metadata: {
|
|
58
|
+
A: 42
|
|
59
|
+
},
|
|
60
|
+
version: {
|
|
61
|
+
majorNumber: 42,
|
|
62
|
+
minorNumber: 42,
|
|
63
|
+
patch: 42,
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
id: "Test string",
|
|
69
|
+
listeningAddresses: [
|
|
70
|
+
{
|
|
71
|
+
envoyInternalAddress: {
|
|
72
|
+
endpointId: "Test string",
|
|
73
|
+
serverListenerName: "Test string",
|
|
74
|
+
},
|
|
75
|
+
pipe: {
|
|
76
|
+
mode: 42,
|
|
77
|
+
path: "Test string",
|
|
78
|
+
},
|
|
79
|
+
socketAddress: {
|
|
80
|
+
address: "Test string",
|
|
81
|
+
ipv4Compat: true,
|
|
82
|
+
namedPort: "Test string",
|
|
83
|
+
portValue: 42,
|
|
84
|
+
protocol: "Test string",
|
|
85
|
+
resolverName: "Test string",
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
locality: {
|
|
90
|
+
region: "Test string",
|
|
91
|
+
subZone: "Test string",
|
|
92
|
+
zone: "Test string",
|
|
93
|
+
},
|
|
94
|
+
metadata: {
|
|
95
|
+
A: 42
|
|
96
|
+
},
|
|
97
|
+
userAgentBuildVersion: {
|
|
98
|
+
metadata: {
|
|
99
|
+
A: 42
|
|
100
|
+
},
|
|
101
|
+
version: {
|
|
102
|
+
majorNumber: 42,
|
|
103
|
+
minorNumber: 42,
|
|
104
|
+
patch: 42,
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
userAgentName: "Test string",
|
|
108
|
+
userAgentVersion: "Test string",
|
|
109
|
+
},
|
|
110
|
+
nodeMatchers: [
|
|
111
|
+
{
|
|
112
|
+
nodeId: {
|
|
113
|
+
contains: "Test string",
|
|
114
|
+
exact: "Test string",
|
|
115
|
+
ignoreCase: true,
|
|
116
|
+
prefix: "Test string",
|
|
117
|
+
safeRegex: {
|
|
118
|
+
googleRe2: {
|
|
119
|
+
maxProgramSize: 42,
|
|
120
|
+
},
|
|
121
|
+
regex: "Test string",
|
|
122
|
+
},
|
|
123
|
+
suffix: "Test string",
|
|
124
|
+
},
|
|
125
|
+
nodeMetadatas: [
|
|
126
|
+
{
|
|
127
|
+
path: [
|
|
128
|
+
{
|
|
129
|
+
key: "Test string",
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
value: {
|
|
133
|
+
boolMatch: true,
|
|
134
|
+
doubleMatch: {
|
|
135
|
+
exact: 42,
|
|
136
|
+
range: {
|
|
137
|
+
end: 42,
|
|
138
|
+
start: 42,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
listMatch: {
|
|
142
|
+
oneOf: undefined,
|
|
143
|
+
},
|
|
144
|
+
nullMatch: {
|
|
145
|
+
},
|
|
146
|
+
presentMatch: true,
|
|
147
|
+
stringMatch: {
|
|
148
|
+
contains: "Test string",
|
|
149
|
+
exact: "Test string",
|
|
150
|
+
ignoreCase: true,
|
|
151
|
+
prefix: "Test string",
|
|
152
|
+
safeRegex: {
|
|
153
|
+
googleRe2: {
|
|
154
|
+
maxProgramSize: 42,
|
|
155
|
+
},
|
|
156
|
+
regex: "Test string",
|
|
157
|
+
},
|
|
158
|
+
suffix: "Test string",
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
}
|
|
162
|
+
],
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
});
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "commonjs",
|
|
4
|
+
"lib": ["es6", "dom"],
|
|
5
|
+
"noImplicitAny": true,
|
|
6
|
+
"noImplicitThis": true,
|
|
7
|
+
"strictNullChecks": true,
|
|
8
|
+
"baseUrl": "../",
|
|
9
|
+
"typeRoots": [
|
|
10
|
+
"../"
|
|
11
|
+
],
|
|
12
|
+
"types": [],
|
|
13
|
+
"noEmit": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"strictFunctionTypes": true
|
|
16
|
+
},
|
|
17
|
+
"files": ["index.d.ts", "tests.ts"]
|
|
18
|
+
}
|