@maxim_mazurok/gapi.client.cloudtrace-v2beta1 0.0.20230420 → 0.0.20230427

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 +195 -98
  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=v2beta1
12
- // Revision: 20230420
12
+ // Revision: 20230427
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -30,13 +30,16 @@ declare namespace gapi.client {
30
30
  * A paginated response where more pages might be available has `next_page_token` set. To get the next set of results, call the same method again using the value of `next_page_token`
31
31
  * as `page_token`.
32
32
  */
33
- nextPageToken?: string;
33
+ nextPageToken?:
34
+ string;
34
35
  /** A list of sinks. */
35
- sinks?: TraceSink[];
36
+ sinks?:
37
+ TraceSink[];
36
38
  }
37
39
  interface OutputConfig {
38
40
  /** The destination for writing trace data. Supported formats include: "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]" */
39
- destination?: string;
41
+ destination?:
42
+ string;
40
43
  }
41
44
  interface TraceSink {
42
45
  /**
@@ -44,16 +47,19 @@ declare namespace gapi.client {
44
47
  * `"projects/12345/traceSinks/my-project-trace-sink"`. Sink identifiers are limited to 256 characters and can include only the following characters: upper and lower-case alphanumeric
45
48
  * characters, underscores, hyphens, and periods.
46
49
  */
47
- name?: string;
50
+ name?:
51
+ string;
48
52
  /** Required. The export destination. */
49
- outputConfig?: OutputConfig;
53
+ outputConfig?:
54
+ OutputConfig;
50
55
  /**
51
56
  * Output only. A service account name for exporting the data. This field is set by sinks.create and sinks.update. The service account will need to be granted write access to the
52
57
  * destination specified in the output configuration, see [Granting access for a
53
58
  * resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource). To create tables and to write data, this account needs the `dataEditor`
54
59
  * role. Read more about roles in the [BigQuery documentation](https://cloud.google.com/bigquery/docs/access-control). E.g.: "service-00000001@00000002.iam.gserviceaccount.com"
55
60
  */
56
- writerIdentity?: string;
61
+ writerIdentity?:
62
+ string;
57
63
  }
58
64
  interface TraceSinksResource {
59
65
  /**
@@ -62,158 +68,221 @@ declare namespace gapi.client {
62
68
  */
63
69
  create(request: {
64
70
  /** V1 error format. */
65
- "$.xgafv"?: string;
71
+ "$.xgafv"?:
72
+ string;
66
73
  /** OAuth access token. */
67
- access_token?: string;
74
+ access_token?:
75
+ string;
68
76
  /** Data format for response. */
69
- alt?: string;
77
+ alt?:
78
+ string;
70
79
  /** JSONP */
71
- callback?: string;
80
+ callback?:
81
+ string;
72
82
  /** Selector specifying which fields to include in a partial response. */
73
- fields?: string;
83
+ fields?:
84
+ string;
74
85
  /** 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. */
75
- key?: string;
86
+ key?:
87
+ string;
76
88
  /** OAuth 2.0 token for the current user. */
77
- oauth_token?: string;
89
+ oauth_token?:
90
+ string;
78
91
  /**
79
92
  * Required. The resource in which to create the sink (currently only project sinks are supported): "projects/[PROJECT_ID]" Examples: `"projects/my-trace-project"`,
80
93
  * `"projects/123456789"`.
81
94
  */
82
- parent: string;
95
+ parent:
96
+ string;
83
97
  /** Returns response with indentations and line breaks. */
84
- prettyPrint?: boolean;
98
+ prettyPrint?:
99
+ boolean;
85
100
  /** 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. */
86
- quotaUser?: string;
101
+ quotaUser?:
102
+ string;
87
103
  /** Upload protocol for media (e.g. "raw", "multipart"). */
88
- upload_protocol?: string;
104
+ upload_protocol?:
105
+ string;
89
106
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
90
- uploadType?: string;
107
+ uploadType?:
108
+ string;
91
109
  /** Request body */
92
- resource: TraceSink;
110
+ resource:
111
+ TraceSink;
93
112
  }): Request<TraceSink>;
94
113
  create(request: {
95
114
  /** V1 error format. */
96
- "$.xgafv"?: string;
115
+ "$.xgafv"?:
116
+ string;
97
117
  /** OAuth access token. */
98
- access_token?: string;
118
+ access_token?:
119
+ string;
99
120
  /** Data format for response. */
100
- alt?: string;
121
+ alt?:
122
+ string;
101
123
  /** JSONP */
102
- callback?: string;
124
+ callback?:
125
+ string;
103
126
  /** Selector specifying which fields to include in a partial response. */
104
- fields?: string;
127
+ fields?:
128
+ string;
105
129
  /** 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. */
106
- key?: string;
130
+ key?:
131
+ string;
107
132
  /** OAuth 2.0 token for the current user. */
108
- oauth_token?: string;
133
+ oauth_token?:
134
+ string;
109
135
  /**
110
136
  * Required. The resource in which to create the sink (currently only project sinks are supported): "projects/[PROJECT_ID]" Examples: `"projects/my-trace-project"`,
111
137
  * `"projects/123456789"`.
112
138
  */
113
- parent: string;
139
+ parent:
140
+ string;
114
141
  /** Returns response with indentations and line breaks. */
115
- prettyPrint?: boolean;
142
+ prettyPrint?:
143
+ boolean;
116
144
  /** 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. */
117
- quotaUser?: string;
145
+ quotaUser?:
146
+ string;
118
147
  /** Upload protocol for media (e.g. "raw", "multipart"). */
119
- upload_protocol?: string;
148
+ upload_protocol?:
149
+ string;
120
150
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
121
- uploadType?: string;
151
+ uploadType?:
152
+ string;
122
153
  },
123
154
  body: TraceSink): Request<TraceSink>;
124
155
  /** Deletes a sink. */
125
156
  delete(request?: {
126
157
  /** V1 error format. */
127
- "$.xgafv"?: string;
158
+ "$.xgafv"?:
159
+ string;
128
160
  /** OAuth access token. */
129
- access_token?: string;
161
+ access_token?:
162
+ string;
130
163
  /** Data format for response. */
131
- alt?: string;
164
+ alt?:
165
+ string;
132
166
  /** JSONP */
133
- callback?: string;
167
+ callback?:
168
+ string;
134
169
  /** Selector specifying which fields to include in a partial response. */
135
- fields?: string;
170
+ fields?:
171
+ string;
136
172
  /** 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. */
137
- key?: string;
173
+ key?:
174
+ string;
138
175
  /**
139
176
  * Required. The full resource name of the sink to delete, including the parent resource and the sink identifier: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
140
177
  * `"projects/12345/traceSinks/my-sink-id"`.
141
178
  */
142
- name: string;
179
+ name:
180
+ string;
143
181
  /** OAuth 2.0 token for the current user. */
144
- oauth_token?: string;
182
+ oauth_token?:
183
+ string;
145
184
  /** Returns response with indentations and line breaks. */
146
- prettyPrint?: boolean;
185
+ prettyPrint?:
186
+ boolean;
147
187
  /** 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. */
148
- quotaUser?: string;
188
+ quotaUser?:
189
+ string;
149
190
  /** Upload protocol for media (e.g. "raw", "multipart"). */
150
- upload_protocol?: string;
191
+ upload_protocol?:
192
+ string;
151
193
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
152
- uploadType?: string;
194
+ uploadType?:
195
+ string;
153
196
  }): Request<{}>;
154
197
  /** Get a trace sink by name under the parent resource (GCP project). */
155
198
  get(request?: {
156
199
  /** V1 error format. */
157
- "$.xgafv"?: string;
200
+ "$.xgafv"?:
201
+ string;
158
202
  /** OAuth access token. */
159
- access_token?: string;
203
+ access_token?:
204
+ string;
160
205
  /** Data format for response. */
161
- alt?: string;
206
+ alt?:
207
+ string;
162
208
  /** JSONP */
163
- callback?: string;
209
+ callback?:
210
+ string;
164
211
  /** Selector specifying which fields to include in a partial response. */
165
- fields?: string;
212
+ fields?:
213
+ string;
166
214
  /** 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. */
167
- key?: string;
215
+ key?:
216
+ string;
168
217
  /** Required. The resource name of the sink: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example: `"projects/12345/traceSinks/my-sink-id"`. */
169
- name: string;
218
+ name:
219
+ string;
170
220
  /** OAuth 2.0 token for the current user. */
171
- oauth_token?: string;
221
+ oauth_token?:
222
+ string;
172
223
  /** Returns response with indentations and line breaks. */
173
- prettyPrint?: boolean;
224
+ prettyPrint?:
225
+ boolean;
174
226
  /** 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. */
175
- quotaUser?: string;
227
+ quotaUser?:
228
+ string;
176
229
  /** Upload protocol for media (e.g. "raw", "multipart"). */
177
- upload_protocol?: string;
230
+ upload_protocol?:
231
+ string;
178
232
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
179
- uploadType?: string;
233
+ uploadType?:
234
+ string;
180
235
  }): Request<TraceSink>;
181
236
  /** List all sinks for the parent resource (GCP project). */
182
237
  list(request?: {
183
238
  /** V1 error format. */
184
- "$.xgafv"?: string;
239
+ "$.xgafv"?:
240
+ string;
185
241
  /** OAuth access token. */
186
- access_token?: string;
242
+ access_token?:
243
+ string;
187
244
  /** Data format for response. */
188
- alt?: string;
245
+ alt?:
246
+ string;
189
247
  /** JSONP */
190
- callback?: string;
248
+ callback?:
249
+ string;
191
250
  /** Selector specifying which fields to include in a partial response. */
192
- fields?: string;
251
+ fields?:
252
+ string;
193
253
  /** 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. */
194
- key?: string;
254
+ key?:
255
+ string;
195
256
  /** OAuth 2.0 token for the current user. */
196
- oauth_token?: string;
257
+ oauth_token?:
258
+ string;
197
259
  /**
198
260
  * Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `next_page_token` in the response indicates that more
199
261
  * results might be available.
200
262
  */
201
- pageSize?: number;
263
+ pageSize?:
264
+ number;
202
265
  /**
203
266
  * Optional. If present, then retrieve the next batch of results from the preceding call to this method. `page_token` must be the value of `next_page_token` from the previous
204
267
  * response. The values of other method parameters should be identical to those in the previous call.
205
268
  */
206
- pageToken?: string;
269
+ pageToken?:
270
+ string;
207
271
  /** Required. The parent resource whose sinks are to be listed (currently only project parent resources are supported): "projects/[PROJECT_ID]" */
208
- parent: string;
272
+ parent:
273
+ string;
209
274
  /** Returns response with indentations and line breaks. */
210
- prettyPrint?: boolean;
275
+ prettyPrint?:
276
+ boolean;
211
277
  /** 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. */
212
- quotaUser?: string;
278
+ quotaUser?:
279
+ string;
213
280
  /** Upload protocol for media (e.g. "raw", "multipart"). */
214
- upload_protocol?: string;
281
+ upload_protocol?:
282
+ string;
215
283
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
216
- uploadType?: string;
284
+ uploadType?:
285
+ string;
217
286
  }): Request<ListTraceSinksResponse>;
218
287
  /**
219
288
  * Updates a sink. This method updates fields in the existing sink according to the provided update mask. The sink's name cannot be changed nor any output-only fields (e.g. the
@@ -221,80 +290,108 @@ declare namespace gapi.client {
221
290
  */
222
291
  patch(request: {
223
292
  /** V1 error format. */
224
- "$.xgafv"?: string;
293
+ "$.xgafv"?:
294
+ string;
225
295
  /** OAuth access token. */
226
- access_token?: string;
296
+ access_token?:
297
+ string;
227
298
  /** Data format for response. */
228
- alt?: string;
299
+ alt?:
300
+ string;
229
301
  /** JSONP */
230
- callback?: string;
302
+ callback?:
303
+ string;
231
304
  /** Selector specifying which fields to include in a partial response. */
232
- fields?: string;
305
+ fields?:
306
+ string;
233
307
  /** 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. */
234
- key?: string;
308
+ key?:
309
+ string;
235
310
  /**
236
311
  * Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
237
312
  * `"projects/12345/traceSinks/my-sink-id"`.
238
313
  */
239
- name: string;
314
+ name:
315
+ string;
240
316
  /** OAuth 2.0 token for the current user. */
241
- oauth_token?: string;
317
+ oauth_token?:
318
+ string;
242
319
  /** Returns response with indentations and line breaks. */
243
- prettyPrint?: boolean;
320
+ prettyPrint?:
321
+ boolean;
244
322
  /** 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. */
245
- quotaUser?: string;
323
+ quotaUser?:
324
+ string;
246
325
  /**
247
326
  * Required. Field mask that specifies the fields in `trace_sink` that are to be updated. A sink field is overwritten if, and only if, it is in the update mask. `name` and
248
327
  * `writer_identity` fields cannot be updated. An empty `update_mask` is considered an error. For a detailed `FieldMask` definition, see
249
328
  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask Example: `updateMask=output_config`.
250
329
  */
251
- updateMask?: string;
330
+ updateMask?:
331
+ string;
252
332
  /** Upload protocol for media (e.g. "raw", "multipart"). */
253
- upload_protocol?: string;
333
+ upload_protocol?:
334
+ string;
254
335
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
255
- uploadType?: string;
336
+ uploadType?:
337
+ string;
256
338
  /** Request body */
257
- resource: TraceSink;
339
+ resource:
340
+ TraceSink;
258
341
  }): Request<TraceSink>;
259
342
  patch(request: {
260
343
  /** V1 error format. */
261
- "$.xgafv"?: string;
344
+ "$.xgafv"?:
345
+ string;
262
346
  /** OAuth access token. */
263
- access_token?: string;
347
+ access_token?:
348
+ string;
264
349
  /** Data format for response. */
265
- alt?: string;
350
+ alt?:
351
+ string;
266
352
  /** JSONP */
267
- callback?: string;
353
+ callback?:
354
+ string;
268
355
  /** Selector specifying which fields to include in a partial response. */
269
- fields?: string;
356
+ fields?:
357
+ string;
270
358
  /** 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. */
271
- key?: string;
359
+ key?:
360
+ string;
272
361
  /**
273
362
  * Required. The full resource name of the sink to update, including the parent resource and the sink identifier: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example:
274
363
  * `"projects/12345/traceSinks/my-sink-id"`.
275
364
  */
276
- name: string;
365
+ name:
366
+ string;
277
367
  /** OAuth 2.0 token for the current user. */
278
- oauth_token?: string;
368
+ oauth_token?:
369
+ string;
279
370
  /** Returns response with indentations and line breaks. */
280
- prettyPrint?: boolean;
371
+ prettyPrint?:
372
+ boolean;
281
373
  /** 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. */
282
- quotaUser?: string;
374
+ quotaUser?:
375
+ string;
283
376
  /**
284
377
  * Required. Field mask that specifies the fields in `trace_sink` that are to be updated. A sink field is overwritten if, and only if, it is in the update mask. `name` and
285
378
  * `writer_identity` fields cannot be updated. An empty `update_mask` is considered an error. For a detailed `FieldMask` definition, see
286
379
  * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask Example: `updateMask=output_config`.
287
380
  */
288
- updateMask?: string;
381
+ updateMask?:
382
+ string;
289
383
  /** Upload protocol for media (e.g. "raw", "multipart"). */
290
- upload_protocol?: string;
384
+ upload_protocol?:
385
+ string;
291
386
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
292
- uploadType?: string;
387
+ uploadType?:
388
+ string;
293
389
  },
294
390
  body: TraceSink): Request<TraceSink>;
295
391
  }
296
392
  interface ProjectsResource {
297
- traceSinks: TraceSinksResource;
393
+ traceSinks:
394
+ TraceSinksResource;
298
395
  }
299
396
 
300
397
  const projects: ProjectsResource;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudtrace-v2beta1",
3
- "version": "0.0.20230420",
3
+ "version": "0.0.20230427",
4
4
  "description": "TypeScript typings for Cloud Trace API v2beta1",
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: 20230427
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */