@maxim_mazurok/gapi.client.cloudtrace-v1 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.
Files changed (3) hide show
  1. package/index.d.ts +143 -72
  2. package/package.json +1 -1
  3. 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=v1
12
- // Revision: 20230420
12
+ // Revision: 20230504
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -27,33 +27,41 @@ declare namespace gapi.client {
27
27
  }
28
28
  interface ListTracesResponse {
29
29
  /** If defined, indicates that there are more traces that match the request and that this value should be passed to the next request to continue retrieving additional traces. */
30
- nextPageToken?: string;
30
+ nextPageToken?:
31
+ string;
31
32
  /** List of trace records as specified by the view parameter. */
32
- traces?: Trace[];
33
+ traces?:
34
+ Trace[];
33
35
  }
34
36
  interface Trace {
35
37
  /** Project ID of the Cloud project where the trace data is stored. */
36
- projectId?: string;
38
+ projectId?:
39
+ string;
37
40
  /** Collection of spans in the trace. */
38
- spans?: TraceSpan[];
41
+ spans?:
42
+ TraceSpan[];
39
43
  /**
40
44
  * Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, `382d4f4c6b7bb2f4a972559d9085001d`. The numeric
41
45
  * value should not be zero.
42
46
  */
43
- traceId?: string;
47
+ traceId?:
48
+ string;
44
49
  }
45
50
  interface Traces {
46
51
  /** List of traces. */
47
- traces?: Trace[];
52
+ traces?:
53
+ Trace[];
48
54
  }
49
55
  interface TraceSpan {
50
56
  /** End time of the span in nanoseconds from the UNIX epoch. */
51
- endTime?: string;
57
+ endTime?:
58
+ string;
52
59
  /**
53
60
  * Distinguishes between spans generated in a particular context. For example, two spans with the same name may be distinguished using `RPC_CLIENT` and `RPC_SERVER` to identify
54
61
  * queueing latency associated with the span.
55
62
  */
56
- kind?: string;
63
+ kind?:
64
+ string;
57
65
  /**
58
66
  * Collection of labels associated with the span. Label keys must be less than 128 bytes. Label values must be less than 16 kilobytes (10MB for `/stacktrace` values). Some predefined
59
67
  * label keys exist, or you may create your own. When creating your own, we recommend the following formats: * `/category/product/key` for agents of well-known products (e.g.
@@ -61,63 +69,87 @@ declare namespace gapi.client {
61
69
  * `/error/name` * `/http/client_city` * `/http/client_country` * `/http/client_protocol` * `/http/client_region` * `/http/host` * `/http/method` * `/http/path` *
62
70
  * `/http/redirected_url` * `/http/request/size` * `/http/response/size` * `/http/route` * `/http/status_code` * `/http/url` * `/http/user_agent` * `/pid` * `/stacktrace` * `/tid`
63
71
  */
64
- labels?: { [P in string]: string };
72
+ labels?:
73
+ { [P in string]: string };
65
74
  /**
66
75
  * Name of the span. Must be less than 128 bytes. The span name is sanitized and displayed in the Trace tool in the Google Cloud Platform Console. The name may be a method name or some
67
76
  * other per-call site name. For the same executable and the same call point, a best practice is to use a consistent name, which makes it easier to correlate cross-trace spans.
68
77
  */
69
- name?: string;
78
+ name?:
79
+ string;
70
80
  /** Optional. ID of the parent span, if any. */
71
- parentSpanId?: string;
81
+ parentSpanId?:
82
+ string;
72
83
  /** Identifier for the span. Must be a 64-bit integer other than 0 and unique within a trace. For example, `2205310701640571284`. */
73
- spanId?: string;
84
+ spanId?:
85
+ string;
74
86
  /** Start time of the span in nanoseconds from the UNIX epoch. */
75
- startTime?: string;
87
+ startTime?:
88
+ string;
76
89
  }
77
90
  interface TracesResource {
78
91
  /** Gets a single trace by its ID. */
79
92
  get(request?: {
80
93
  /** V1 error format. */
81
- "$.xgafv"?: string;
94
+ "$.xgafv"?:
95
+ string;
82
96
  /** OAuth access token. */
83
- access_token?: string;
97
+ access_token?:
98
+ string;
84
99
  /** Data format for response. */
85
- alt?: string;
100
+ alt?:
101
+ string;
86
102
  /** JSONP */
87
- callback?: string;
103
+ callback?:
104
+ string;
88
105
  /** Selector specifying which fields to include in a partial response. */
89
- fields?: string;
106
+ fields?:
107
+ string;
90
108
  /** 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. */
91
- key?: string;
109
+ key?:
110
+ string;
92
111
  /** OAuth 2.0 token for the current user. */
93
- oauth_token?: string;
112
+ oauth_token?:
113
+ string;
94
114
  /** Returns response with indentations and line breaks. */
95
- prettyPrint?: boolean;
115
+ prettyPrint?:
116
+ boolean;
96
117
  /** Required. ID of the Cloud project where the trace data is stored. */
97
- projectId: string;
118
+ projectId:
119
+ string;
98
120
  /** 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. */
99
- quotaUser?: string;
121
+ quotaUser?:
122
+ string;
100
123
  /** Required. ID of the trace to return. */
101
- traceId: string;
124
+ traceId:
125
+ string;
102
126
  /** Upload protocol for media (e.g. "raw", "multipart"). */
103
- upload_protocol?: string;
127
+ upload_protocol?:
128
+ string;
104
129
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
105
- uploadType?: string;
130
+ uploadType?:
131
+ string;
106
132
  }): Request<Trace>;
107
133
  /** Returns a list of traces that match the specified filter conditions. */
108
134
  list(request?: {
109
135
  /** V1 error format. */
110
- "$.xgafv"?: string;
136
+ "$.xgafv"?:
137
+ string;
111
138
  /** OAuth access token. */
112
- access_token?: string;
139
+ access_token?:
140
+ string;
113
141
  /** Data format for response. */
114
- alt?: string;
142
+ alt?:
143
+ string;
115
144
  /** JSONP */
116
- callback?: string;
145
+ callback?:
146
+ string;
117
147
  /** End of the time interval (inclusive) during which the trace data was collected from the application. */
118
- endTime?: string;
148
+ endTime?:
149
+ string;
119
150
  /** Selector specifying which fields to include in a partial response. */
120
- fields?: string;
151
+ fields?:
152
+ string;
121
153
  /**
122
154
  * Optional. A filter against labels for the request. By default, searches use prefix matching. To specify exact match, prepend a plus symbol (`+`) to the search term. Multiple
123
155
  * terms are ANDed. Syntax: * `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root span starts with `NAME_PREFIX`. * `+root:NAME` or `+NAME`: Return traces where any
@@ -129,38 +161,51 @@ declare namespace gapi.client {
129
161
  * all traces containing a key:value pair exactly matching the specified text. Both a key and a value must be specified. * `method:VALUE`: Equivalent to `/http/method:VALUE`. *
130
162
  * `url:VALUE`: Equivalent to `/http/url:VALUE`.
131
163
  */
132
- filter?: string;
164
+ filter?:
165
+ string;
133
166
  /** 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. */
134
- key?: string;
167
+ key?:
168
+ string;
135
169
  /** OAuth 2.0 token for the current user. */
136
- oauth_token?: string;
170
+ oauth_token?:
171
+ string;
137
172
  /**
138
173
  * Optional. Field used to sort the returned traces. Can be one of the following: * `trace_id` * `name` (`name` field of root span in the trace) * `duration` (difference between
139
174
  * `end_time` and `start_time` fields of the root span) * `start` (`start_time` field of the root span) Descending order can be specified by appending `desc` to the sort field (for
140
175
  * example, `name desc`). Only one sort field is permitted.
141
176
  */
142
- orderBy?: string;
177
+ orderBy?:
178
+ string;
143
179
  /**
144
180
  * Optional. Maximum number of traces to return. If not specified or <= 0, the implementation selects a reasonable value. The implementation may return fewer traces than the
145
181
  * requested page size.
146
182
  */
147
- pageSize?: number;
183
+ pageSize?:
184
+ number;
148
185
  /** Token identifying the page of results to return. If provided, use the value of the `next_page_token` field from a previous request. */
149
- pageToken?: string;
186
+ pageToken?:
187
+ string;
150
188
  /** Returns response with indentations and line breaks. */
151
- prettyPrint?: boolean;
189
+ prettyPrint?:
190
+ boolean;
152
191
  /** Required. ID of the Cloud project where the trace data is stored. */
153
- projectId: string;
192
+ projectId:
193
+ string;
154
194
  /** 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. */
155
- quotaUser?: string;
195
+ quotaUser?:
196
+ string;
156
197
  /** Start of the time interval (inclusive) during which the trace data was collected from the application. */
157
- startTime?: string;
198
+ startTime?:
199
+ string;
158
200
  /** Upload protocol for media (e.g. "raw", "multipart"). */
159
- upload_protocol?: string;
201
+ upload_protocol?:
202
+ string;
160
203
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
161
- uploadType?: string;
204
+ uploadType?:
205
+ string;
162
206
  /** Optional. Type of data returned for traces in the list. Default is `MINIMAL`. */
163
- view?: string;
207
+ view?:
208
+ string;
164
209
  }): Request<ListTracesResponse>;
165
210
  }
166
211
  interface ProjectsResource {
@@ -170,60 +215,86 @@ declare namespace gapi.client {
170
215
  */
171
216
  patchTraces(request: {
172
217
  /** V1 error format. */
173
- "$.xgafv"?: string;
218
+ "$.xgafv"?:
219
+ string;
174
220
  /** OAuth access token. */
175
- access_token?: string;
221
+ access_token?:
222
+ string;
176
223
  /** Data format for response. */
177
- alt?: string;
224
+ alt?:
225
+ string;
178
226
  /** JSONP */
179
- callback?: string;
227
+ callback?:
228
+ string;
180
229
  /** Selector specifying which fields to include in a partial response. */
181
- fields?: string;
230
+ fields?:
231
+ string;
182
232
  /** 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. */
183
- key?: string;
233
+ key?:
234
+ string;
184
235
  /** OAuth 2.0 token for the current user. */
185
- oauth_token?: string;
236
+ oauth_token?:
237
+ string;
186
238
  /** Returns response with indentations and line breaks. */
187
- prettyPrint?: boolean;
239
+ prettyPrint?:
240
+ boolean;
188
241
  /** Required. ID of the Cloud project where the trace data is stored. */
189
- projectId: string;
242
+ projectId:
243
+ string;
190
244
  /** 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. */
191
- quotaUser?: string;
245
+ quotaUser?:
246
+ string;
192
247
  /** Upload protocol for media (e.g. "raw", "multipart"). */
193
- upload_protocol?: string;
248
+ upload_protocol?:
249
+ string;
194
250
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
195
- uploadType?: string;
251
+ uploadType?:
252
+ string;
196
253
  /** Request body */
197
- resource: Traces;
254
+ resource:
255
+ Traces;
198
256
  }): Request<{}>;
199
257
  patchTraces(request: {
200
258
  /** V1 error format. */
201
- "$.xgafv"?: string;
259
+ "$.xgafv"?:
260
+ string;
202
261
  /** OAuth access token. */
203
- access_token?: string;
262
+ access_token?:
263
+ string;
204
264
  /** Data format for response. */
205
- alt?: string;
265
+ alt?:
266
+ string;
206
267
  /** JSONP */
207
- callback?: string;
268
+ callback?:
269
+ string;
208
270
  /** Selector specifying which fields to include in a partial response. */
209
- fields?: string;
271
+ fields?:
272
+ string;
210
273
  /** 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. */
211
- key?: string;
274
+ key?:
275
+ string;
212
276
  /** OAuth 2.0 token for the current user. */
213
- oauth_token?: string;
277
+ oauth_token?:
278
+ string;
214
279
  /** Returns response with indentations and line breaks. */
215
- prettyPrint?: boolean;
280
+ prettyPrint?:
281
+ boolean;
216
282
  /** Required. ID of the Cloud project where the trace data is stored. */
217
- projectId: string;
283
+ projectId:
284
+ string;
218
285
  /** 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. */
219
- quotaUser?: string;
286
+ quotaUser?:
287
+ string;
220
288
  /** Upload protocol for media (e.g. "raw", "multipart"). */
221
- upload_protocol?: string;
289
+ upload_protocol?:
290
+ string;
222
291
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
223
- uploadType?: string;
292
+ uploadType?:
293
+ string;
224
294
  },
225
295
  body: Traces): Request<{}>;
226
- traces: TracesResource;
296
+ traces:
297
+ TracesResource;
227
298
  }
228
299
 
229
300
  const projects: ProjectsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtrace-v1",
3
- "version": "0.0.20230420",
3
+ "version": "0.0.20230504",
4
4
  "description": "TypeScript typings for Cloud Trace API v1",
5
5
  "license": "MIT",
6
6
  "author": {
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: 20230420
6
+ // Revision: 20230504
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */