@maxim_mazurok/gapi.client.cloudtrace-v2 0.0.20230420 → 0.0.20230504
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 +217 -109
- package/package.json +1 -1
- package/tests.ts +1 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://cloudtrace.googleapis.com/$discovery/rest?version=v2
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20230504
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -24,254 +24,335 @@ declare namespace gapi.client {
|
|
|
24
24
|
namespace cloudtrace {
|
|
25
25
|
interface Annotation {
|
|
26
26
|
/** A set of attributes on the annotation. You can have up to 4 attributes per Annotation. */
|
|
27
|
-
attributes?:
|
|
27
|
+
attributes?:
|
|
28
|
+
Attributes;
|
|
28
29
|
/** A user-supplied message describing the event. The maximum length for the description is 256 bytes. */
|
|
29
|
-
description?:
|
|
30
|
+
description?:
|
|
31
|
+
TruncatableString;
|
|
30
32
|
}
|
|
31
33
|
interface Attributes {
|
|
32
34
|
/**
|
|
33
35
|
* A set of attributes. Each attribute's key can be up to 128 bytes long. The value can be a string up to 256 bytes, a signed 64-bit integer, or the boolean values `true` or `false`.
|
|
34
36
|
* For example: "/instance_id": { "string_value": { "value": "my-instance" } } "/http/request_bytes": { "int_value": 300 } "abc.com/myattribute": { "bool_value": false }
|
|
35
37
|
*/
|
|
36
|
-
attributeMap?:
|
|
38
|
+
attributeMap?:
|
|
39
|
+
{ [P in string]: AttributeValue };
|
|
37
40
|
/**
|
|
38
41
|
* The number of attributes that were discarded. Attributes can be discarded because their keys are too long or because there are too many attributes. If this value is 0 then all
|
|
39
42
|
* attributes are valid.
|
|
40
43
|
*/
|
|
41
|
-
droppedAttributesCount?:
|
|
44
|
+
droppedAttributesCount?:
|
|
45
|
+
number;
|
|
42
46
|
}
|
|
43
47
|
interface AttributeValue {
|
|
44
48
|
/** A Boolean value represented by `true` or `false`. */
|
|
45
|
-
boolValue?:
|
|
49
|
+
boolValue?:
|
|
50
|
+
boolean;
|
|
46
51
|
/** A 64-bit signed integer. */
|
|
47
|
-
intValue?:
|
|
52
|
+
intValue?:
|
|
53
|
+
string;
|
|
48
54
|
/** A string up to 256 bytes long. */
|
|
49
|
-
stringValue?:
|
|
55
|
+
stringValue?:
|
|
56
|
+
TruncatableString;
|
|
50
57
|
}
|
|
51
58
|
interface BatchWriteSpansRequest {
|
|
52
59
|
/** Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined. */
|
|
53
|
-
spans?:
|
|
60
|
+
spans?:
|
|
61
|
+
Span[];
|
|
54
62
|
}
|
|
55
63
|
// tslint:disable-next-line:no-empty-interface
|
|
56
64
|
interface Empty {
|
|
57
65
|
}
|
|
58
66
|
interface Link {
|
|
59
67
|
/** A set of attributes on the link. Up to 32 attributes can be specified per link. */
|
|
60
|
-
attributes?:
|
|
68
|
+
attributes?:
|
|
69
|
+
Attributes;
|
|
61
70
|
/** The `[SPAN_ID]` for a span within a trace. */
|
|
62
|
-
spanId?:
|
|
71
|
+
spanId?:
|
|
72
|
+
string;
|
|
63
73
|
/** The `[TRACE_ID]` for a trace within a project. */
|
|
64
|
-
traceId?:
|
|
74
|
+
traceId?:
|
|
75
|
+
string;
|
|
65
76
|
/** The relationship of the current span relative to the linked span. */
|
|
66
|
-
type?:
|
|
77
|
+
type?:
|
|
78
|
+
string;
|
|
67
79
|
}
|
|
68
80
|
interface Links {
|
|
69
81
|
/** The number of dropped links after the maximum size was enforced. If this value is 0, then no links were dropped. */
|
|
70
|
-
droppedLinksCount?:
|
|
82
|
+
droppedLinksCount?:
|
|
83
|
+
number;
|
|
71
84
|
/** A collection of links. */
|
|
72
|
-
link?:
|
|
85
|
+
link?:
|
|
86
|
+
Link[];
|
|
73
87
|
}
|
|
74
88
|
interface MessageEvent {
|
|
75
89
|
/** The number of compressed bytes sent or received. If missing, the compressed size is assumed to be the same size as the uncompressed size. */
|
|
76
|
-
compressedSizeBytes?:
|
|
90
|
+
compressedSizeBytes?:
|
|
91
|
+
string;
|
|
77
92
|
/** An identifier for the MessageEvent's message that can be used to match `SENT` and `RECEIVED` MessageEvents. */
|
|
78
|
-
id?:
|
|
93
|
+
id?:
|
|
94
|
+
string;
|
|
79
95
|
/** Type of MessageEvent. Indicates whether the message was sent or received. */
|
|
80
|
-
type?:
|
|
96
|
+
type?:
|
|
97
|
+
string;
|
|
81
98
|
/** The number of uncompressed bytes sent or received. */
|
|
82
|
-
uncompressedSizeBytes?:
|
|
99
|
+
uncompressedSizeBytes?:
|
|
100
|
+
string;
|
|
83
101
|
}
|
|
84
102
|
interface Module {
|
|
85
103
|
/** A unique identifier for the module, usually a hash of its contents (up to 128 bytes). */
|
|
86
|
-
buildId?:
|
|
104
|
+
buildId?:
|
|
105
|
+
TruncatableString;
|
|
87
106
|
/** For example: main binary, kernel modules, and dynamic libraries such as libc.so, sharedlib.so (up to 256 bytes). */
|
|
88
|
-
module?:
|
|
107
|
+
module?:
|
|
108
|
+
TruncatableString;
|
|
89
109
|
}
|
|
90
110
|
interface Span {
|
|
91
111
|
/** A set of attributes on the span. You can have up to 32 attributes per span. */
|
|
92
|
-
attributes?:
|
|
112
|
+
attributes?:
|
|
113
|
+
Attributes;
|
|
93
114
|
/** Optional. The number of child spans that were generated while this span was active. If set, allows implementation to detect missing child spans. */
|
|
94
|
-
childSpanCount?:
|
|
115
|
+
childSpanCount?:
|
|
116
|
+
number;
|
|
95
117
|
/**
|
|
96
118
|
* Required. A description of the span's operation (up to 128 bytes). Cloud Trace displays the description in the Cloud console. For example, the display name can be a qualified method
|
|
97
119
|
* name or a file name and a line number where the operation is called. A best practice is to use the same display name within an application and at the same call point. This makes it
|
|
98
120
|
* easier to correlate spans in different traces.
|
|
99
121
|
*/
|
|
100
|
-
displayName?:
|
|
122
|
+
displayName?:
|
|
123
|
+
TruncatableString;
|
|
101
124
|
/**
|
|
102
125
|
* Required. The end time of the span. On the client side, this is the time kept by the local machine where the span execution ends. On the server side, this is the time when the
|
|
103
126
|
* server application handler stops running.
|
|
104
127
|
*/
|
|
105
|
-
endTime?:
|
|
128
|
+
endTime?:
|
|
129
|
+
string;
|
|
106
130
|
/** Links associated with the span. You can have up to 128 links per Span. */
|
|
107
|
-
links?:
|
|
131
|
+
links?:
|
|
132
|
+
Links;
|
|
108
133
|
/**
|
|
109
134
|
* Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace within a
|
|
110
135
|
* project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a 16-character
|
|
111
136
|
* hexadecimal encoding of an 8-byte array. It should not be zero. .
|
|
112
137
|
*/
|
|
113
|
-
name?:
|
|
138
|
+
name?:
|
|
139
|
+
string;
|
|
114
140
|
/** The `[SPAN_ID]` of this span's parent span. If this is a root span, then this field must be empty. */
|
|
115
|
-
parentSpanId?:
|
|
141
|
+
parentSpanId?:
|
|
142
|
+
string;
|
|
116
143
|
/**
|
|
117
144
|
* Optional. Set this parameter to indicate whether this span is in the same process as its parent. If you do not set this parameter, Trace is unable to take advantage of this helpful
|
|
118
145
|
* information.
|
|
119
146
|
*/
|
|
120
|
-
sameProcessAsParentSpan?:
|
|
147
|
+
sameProcessAsParentSpan?:
|
|
148
|
+
boolean;
|
|
121
149
|
/** Required. The `[SPAN_ID]` portion of the span's resource name. */
|
|
122
|
-
spanId?:
|
|
150
|
+
spanId?:
|
|
151
|
+
string;
|
|
123
152
|
/**
|
|
124
153
|
* Optional. Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `CLIENT` (caller) and `SERVER` (callee)
|
|
125
154
|
* to identify an RPC call.
|
|
126
155
|
*/
|
|
127
|
-
spanKind?:
|
|
156
|
+
spanKind?:
|
|
157
|
+
string;
|
|
128
158
|
/** Stack trace captured at the start of the span. */
|
|
129
|
-
stackTrace?:
|
|
159
|
+
stackTrace?:
|
|
160
|
+
StackTrace;
|
|
130
161
|
/**
|
|
131
162
|
* Required. The start time of the span. On the client side, this is the time kept by the local machine where the span execution starts. On the server side, this is the time when the
|
|
132
163
|
* server's application handler starts running.
|
|
133
164
|
*/
|
|
134
|
-
startTime?:
|
|
165
|
+
startTime?:
|
|
166
|
+
string;
|
|
135
167
|
/** Optional. The final status for this span. */
|
|
136
|
-
status?:
|
|
168
|
+
status?:
|
|
169
|
+
Status;
|
|
137
170
|
/** A set of time events. You can have up to 32 annotations and 128 message events per span. */
|
|
138
|
-
timeEvents?:
|
|
171
|
+
timeEvents?:
|
|
172
|
+
TimeEvents;
|
|
139
173
|
}
|
|
140
174
|
interface StackFrame {
|
|
141
175
|
/** The column number where the function call appears, if available. This is important in JavaScript because of its anonymous functions. */
|
|
142
|
-
columnNumber?:
|
|
176
|
+
columnNumber?:
|
|
177
|
+
string;
|
|
143
178
|
/** The name of the source file where the function call appears (up to 256 bytes). */
|
|
144
|
-
fileName?:
|
|
179
|
+
fileName?:
|
|
180
|
+
TruncatableString;
|
|
145
181
|
/** The fully-qualified name that uniquely identifies the function or method that is active in this frame (up to 1024 bytes). */
|
|
146
|
-
functionName?:
|
|
182
|
+
functionName?:
|
|
183
|
+
TruncatableString;
|
|
147
184
|
/** The line number in `file_name` where the function call appears. */
|
|
148
|
-
lineNumber?:
|
|
185
|
+
lineNumber?:
|
|
186
|
+
string;
|
|
149
187
|
/** The binary module from where the code was loaded. */
|
|
150
|
-
loadModule?:
|
|
188
|
+
loadModule?:
|
|
189
|
+
Module;
|
|
151
190
|
/**
|
|
152
191
|
* An un-mangled function name, if `function_name` is mangled. To get information about name mangling, run [this search](https://www.google.com/search?q=cxx+name+mangling). The name
|
|
153
192
|
* can be fully-qualified (up to 1024 bytes).
|
|
154
193
|
*/
|
|
155
|
-
originalFunctionName?:
|
|
194
|
+
originalFunctionName?:
|
|
195
|
+
TruncatableString;
|
|
156
196
|
/** The version of the deployed source code (up to 128 bytes). */
|
|
157
|
-
sourceVersion?:
|
|
197
|
+
sourceVersion?:
|
|
198
|
+
TruncatableString;
|
|
158
199
|
}
|
|
159
200
|
interface StackFrames {
|
|
160
201
|
/** The number of stack frames that were dropped because there were too many stack frames. If this value is 0, then no stack frames were dropped. */
|
|
161
|
-
droppedFramesCount?:
|
|
202
|
+
droppedFramesCount?:
|
|
203
|
+
number;
|
|
162
204
|
/** Stack frames in this call stack. */
|
|
163
|
-
frame?:
|
|
205
|
+
frame?:
|
|
206
|
+
StackFrame[];
|
|
164
207
|
}
|
|
165
208
|
interface StackTrace {
|
|
166
209
|
/** Stack frames in this stack trace. A maximum of 128 frames are allowed. */
|
|
167
|
-
stackFrames?:
|
|
210
|
+
stackFrames?:
|
|
211
|
+
StackFrames;
|
|
168
212
|
/**
|
|
169
213
|
* The hash ID is used to conserve network bandwidth for duplicate stack traces within a single trace. Often multiple spans will have identical stack traces. The first occurrence of a
|
|
170
214
|
* stack trace should contain both the `stackFrame` content and a value in `stackTraceHashId`. Subsequent spans within the same request can refer to that stack trace by only setting
|
|
171
215
|
* `stackTraceHashId`.
|
|
172
216
|
*/
|
|
173
|
-
stackTraceHashId?:
|
|
217
|
+
stackTraceHashId?:
|
|
218
|
+
string;
|
|
174
219
|
}
|
|
175
220
|
interface Status {
|
|
176
221
|
/** The status code, which should be an enum value of google.rpc.Code. */
|
|
177
|
-
code?:
|
|
222
|
+
code?:
|
|
223
|
+
number;
|
|
178
224
|
/** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
|
|
179
|
-
details?:
|
|
225
|
+
details?:
|
|
226
|
+
Array<{ [P in string]: any }>;
|
|
180
227
|
/**
|
|
181
228
|
* A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
|
|
182
229
|
* client.
|
|
183
230
|
*/
|
|
184
|
-
message?:
|
|
231
|
+
message?:
|
|
232
|
+
string;
|
|
185
233
|
}
|
|
186
234
|
interface TimeEvent {
|
|
187
235
|
/** Text annotation with a set of attributes. */
|
|
188
|
-
annotation?:
|
|
236
|
+
annotation?:
|
|
237
|
+
Annotation;
|
|
189
238
|
/** An event describing a message sent/received between Spans. */
|
|
190
|
-
messageEvent?:
|
|
239
|
+
messageEvent?:
|
|
240
|
+
MessageEvent;
|
|
191
241
|
/** The timestamp indicating the time the event occurred. */
|
|
192
|
-
time?:
|
|
242
|
+
time?:
|
|
243
|
+
string;
|
|
193
244
|
}
|
|
194
245
|
interface TimeEvents {
|
|
195
246
|
/** The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped. */
|
|
196
|
-
droppedAnnotationsCount?:
|
|
247
|
+
droppedAnnotationsCount?:
|
|
248
|
+
number;
|
|
197
249
|
/** The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped. */
|
|
198
|
-
droppedMessageEventsCount?:
|
|
250
|
+
droppedMessageEventsCount?:
|
|
251
|
+
number;
|
|
199
252
|
/** A collection of `TimeEvent`s. */
|
|
200
|
-
timeEvent?:
|
|
253
|
+
timeEvent?:
|
|
254
|
+
TimeEvent[];
|
|
201
255
|
}
|
|
202
256
|
interface TruncatableString {
|
|
203
257
|
/** The number of bytes removed from the original string. If this value is 0, then the string was not shortened. */
|
|
204
|
-
truncatedByteCount?:
|
|
258
|
+
truncatedByteCount?:
|
|
259
|
+
number;
|
|
205
260
|
/**
|
|
206
261
|
* The shortened string. For example, if the original string is 500 bytes long and the limit of the string is 128 bytes, then `value` contains the first 128 bytes of the 500-byte
|
|
207
262
|
* string. Truncation always happens on a UTF8 character boundary. If there are multi-byte characters in the string, then the length of the shortened string might be less than the size
|
|
208
263
|
* limit.
|
|
209
264
|
*/
|
|
210
|
-
value?:
|
|
265
|
+
value?:
|
|
266
|
+
string;
|
|
211
267
|
}
|
|
212
268
|
interface SpansResource {
|
|
213
269
|
/** Creates a new span. */
|
|
214
270
|
createSpan(request: {
|
|
215
271
|
/** V1 error format. */
|
|
216
|
-
"$.xgafv"?:
|
|
272
|
+
"$.xgafv"?:
|
|
273
|
+
string;
|
|
217
274
|
/** OAuth access token. */
|
|
218
|
-
access_token?:
|
|
275
|
+
access_token?:
|
|
276
|
+
string;
|
|
219
277
|
/** Data format for response. */
|
|
220
|
-
alt?:
|
|
278
|
+
alt?:
|
|
279
|
+
string;
|
|
221
280
|
/** JSONP */
|
|
222
|
-
callback?:
|
|
281
|
+
callback?:
|
|
282
|
+
string;
|
|
223
283
|
/** Selector specifying which fields to include in a partial response. */
|
|
224
|
-
fields?:
|
|
284
|
+
fields?:
|
|
285
|
+
string;
|
|
225
286
|
/** 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. */
|
|
226
|
-
key?:
|
|
287
|
+
key?:
|
|
288
|
+
string;
|
|
227
289
|
/**
|
|
228
290
|
* Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace
|
|
229
291
|
* within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a
|
|
230
292
|
* 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
|
|
231
293
|
*/
|
|
232
|
-
name:
|
|
294
|
+
name:
|
|
295
|
+
string;
|
|
233
296
|
/** OAuth 2.0 token for the current user. */
|
|
234
|
-
oauth_token?:
|
|
297
|
+
oauth_token?:
|
|
298
|
+
string;
|
|
235
299
|
/** Returns response with indentations and line breaks. */
|
|
236
|
-
prettyPrint?:
|
|
300
|
+
prettyPrint?:
|
|
301
|
+
boolean;
|
|
237
302
|
/** 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. */
|
|
238
|
-
quotaUser?:
|
|
303
|
+
quotaUser?:
|
|
304
|
+
string;
|
|
239
305
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
240
|
-
upload_protocol?:
|
|
306
|
+
upload_protocol?:
|
|
307
|
+
string;
|
|
241
308
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
242
|
-
uploadType?:
|
|
309
|
+
uploadType?:
|
|
310
|
+
string;
|
|
243
311
|
/** Request body */
|
|
244
|
-
resource:
|
|
312
|
+
resource:
|
|
313
|
+
Span;
|
|
245
314
|
}): Request<Span>;
|
|
246
315
|
createSpan(request: {
|
|
247
316
|
/** V1 error format. */
|
|
248
|
-
"$.xgafv"?:
|
|
317
|
+
"$.xgafv"?:
|
|
318
|
+
string;
|
|
249
319
|
/** OAuth access token. */
|
|
250
|
-
access_token?:
|
|
320
|
+
access_token?:
|
|
321
|
+
string;
|
|
251
322
|
/** Data format for response. */
|
|
252
|
-
alt?:
|
|
323
|
+
alt?:
|
|
324
|
+
string;
|
|
253
325
|
/** JSONP */
|
|
254
|
-
callback?:
|
|
326
|
+
callback?:
|
|
327
|
+
string;
|
|
255
328
|
/** Selector specifying which fields to include in a partial response. */
|
|
256
|
-
fields?:
|
|
329
|
+
fields?:
|
|
330
|
+
string;
|
|
257
331
|
/** 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. */
|
|
258
|
-
key?:
|
|
332
|
+
key?:
|
|
333
|
+
string;
|
|
259
334
|
/**
|
|
260
335
|
* Required. The resource name of the span in the following format: * `projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]` `[TRACE_ID]` is a unique identifier for a trace
|
|
261
336
|
* within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. `[SPAN_ID]` is a unique identifier for a span within a trace; it is a
|
|
262
337
|
* 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .
|
|
263
338
|
*/
|
|
264
|
-
name:
|
|
339
|
+
name:
|
|
340
|
+
string;
|
|
265
341
|
/** OAuth 2.0 token for the current user. */
|
|
266
|
-
oauth_token?:
|
|
342
|
+
oauth_token?:
|
|
343
|
+
string;
|
|
267
344
|
/** Returns response with indentations and line breaks. */
|
|
268
|
-
prettyPrint?:
|
|
345
|
+
prettyPrint?:
|
|
346
|
+
boolean;
|
|
269
347
|
/** 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. */
|
|
270
|
-
quotaUser?:
|
|
348
|
+
quotaUser?:
|
|
349
|
+
string;
|
|
271
350
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
272
|
-
upload_protocol?:
|
|
351
|
+
upload_protocol?:
|
|
352
|
+
string;
|
|
273
353
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
274
|
-
uploadType?:
|
|
354
|
+
uploadType?:
|
|
355
|
+
string;
|
|
275
356
|
},
|
|
276
357
|
body: Span): Request<Span>;
|
|
277
358
|
}
|
|
@@ -279,63 +360,90 @@ declare namespace gapi.client {
|
|
|
279
360
|
/** Batch writes new spans to new or existing traces. You cannot update existing spans. */
|
|
280
361
|
batchWrite(request: {
|
|
281
362
|
/** V1 error format. */
|
|
282
|
-
"$.xgafv"?:
|
|
363
|
+
"$.xgafv"?:
|
|
364
|
+
string;
|
|
283
365
|
/** OAuth access token. */
|
|
284
|
-
access_token?:
|
|
366
|
+
access_token?:
|
|
367
|
+
string;
|
|
285
368
|
/** Data format for response. */
|
|
286
|
-
alt?:
|
|
369
|
+
alt?:
|
|
370
|
+
string;
|
|
287
371
|
/** JSONP */
|
|
288
|
-
callback?:
|
|
372
|
+
callback?:
|
|
373
|
+
string;
|
|
289
374
|
/** Selector specifying which fields to include in a partial response. */
|
|
290
|
-
fields?:
|
|
375
|
+
fields?:
|
|
376
|
+
string;
|
|
291
377
|
/** 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. */
|
|
292
|
-
key?:
|
|
378
|
+
key?:
|
|
379
|
+
string;
|
|
293
380
|
/** Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`. */
|
|
294
|
-
name:
|
|
381
|
+
name:
|
|
382
|
+
string;
|
|
295
383
|
/** OAuth 2.0 token for the current user. */
|
|
296
|
-
oauth_token?:
|
|
384
|
+
oauth_token?:
|
|
385
|
+
string;
|
|
297
386
|
/** Returns response with indentations and line breaks. */
|
|
298
|
-
prettyPrint?:
|
|
387
|
+
prettyPrint?:
|
|
388
|
+
boolean;
|
|
299
389
|
/** 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. */
|
|
300
|
-
quotaUser?:
|
|
390
|
+
quotaUser?:
|
|
391
|
+
string;
|
|
301
392
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
302
|
-
upload_protocol?:
|
|
393
|
+
upload_protocol?:
|
|
394
|
+
string;
|
|
303
395
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
304
|
-
uploadType?:
|
|
396
|
+
uploadType?:
|
|
397
|
+
string;
|
|
305
398
|
/** Request body */
|
|
306
|
-
resource:
|
|
399
|
+
resource:
|
|
400
|
+
BatchWriteSpansRequest;
|
|
307
401
|
}): Request<{}>;
|
|
308
402
|
batchWrite(request: {
|
|
309
403
|
/** V1 error format. */
|
|
310
|
-
"$.xgafv"?:
|
|
404
|
+
"$.xgafv"?:
|
|
405
|
+
string;
|
|
311
406
|
/** OAuth access token. */
|
|
312
|
-
access_token?:
|
|
407
|
+
access_token?:
|
|
408
|
+
string;
|
|
313
409
|
/** Data format for response. */
|
|
314
|
-
alt?:
|
|
410
|
+
alt?:
|
|
411
|
+
string;
|
|
315
412
|
/** JSONP */
|
|
316
|
-
callback?:
|
|
413
|
+
callback?:
|
|
414
|
+
string;
|
|
317
415
|
/** Selector specifying which fields to include in a partial response. */
|
|
318
|
-
fields?:
|
|
416
|
+
fields?:
|
|
417
|
+
string;
|
|
319
418
|
/** 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. */
|
|
320
|
-
key?:
|
|
419
|
+
key?:
|
|
420
|
+
string;
|
|
321
421
|
/** Required. The name of the project where the spans belong. The format is `projects/[PROJECT_ID]`. */
|
|
322
|
-
name:
|
|
422
|
+
name:
|
|
423
|
+
string;
|
|
323
424
|
/** OAuth 2.0 token for the current user. */
|
|
324
|
-
oauth_token?:
|
|
425
|
+
oauth_token?:
|
|
426
|
+
string;
|
|
325
427
|
/** Returns response with indentations and line breaks. */
|
|
326
|
-
prettyPrint?:
|
|
428
|
+
prettyPrint?:
|
|
429
|
+
boolean;
|
|
327
430
|
/** 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. */
|
|
328
|
-
quotaUser?:
|
|
431
|
+
quotaUser?:
|
|
432
|
+
string;
|
|
329
433
|
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
330
|
-
upload_protocol?:
|
|
434
|
+
upload_protocol?:
|
|
435
|
+
string;
|
|
331
436
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
332
|
-
uploadType?:
|
|
437
|
+
uploadType?:
|
|
438
|
+
string;
|
|
333
439
|
},
|
|
334
440
|
body: BatchWriteSpansRequest): Request<{}>;
|
|
335
|
-
spans:
|
|
441
|
+
spans:
|
|
442
|
+
SpansResource;
|
|
336
443
|
}
|
|
337
444
|
interface ProjectsResource {
|
|
338
|
-
traces:
|
|
445
|
+
traces:
|
|
446
|
+
TracesResource;
|
|
339
447
|
}
|
|
340
448
|
|
|
341
449
|
const projects: ProjectsResource;
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20230504
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|