@maxim_mazurok/gapi.client.cloudtrace-v2beta1 0.1.20261030 → 0.2.20261106
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 +161 -163
- package/package.json +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:
|
|
12
|
+
// Revision: 20261106
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -47,38 +47,11 @@ declare namespace gapi.client {
|
|
|
47
47
|
/** 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 destination specified in the output configuration, see [Granting access for a 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` 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" */
|
|
48
48
|
writerIdentity?: string;
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
/** OAuth access token. */
|
|
56
|
-
access_token?: string;
|
|
57
|
-
/** Data format for response. */
|
|
58
|
-
alt?: 'json' | 'media' | 'proto';
|
|
59
|
-
/** JSONP */
|
|
60
|
-
callback?: string;
|
|
61
|
-
/** Selector specifying which fields to include in a partial response. */
|
|
62
|
-
fields?: string;
|
|
63
|
-
/** 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. */
|
|
64
|
-
key?: string;
|
|
65
|
-
/** OAuth 2.0 token for the current user. */
|
|
66
|
-
oauth_token?: string;
|
|
67
|
-
/** Required. The resource in which to create the sink (currently only project sinks are supported): "projects/[PROJECT_ID]" Examples: `"projects/my-trace-project"`, `"projects/123456789"`. */
|
|
68
|
-
parent: string;
|
|
69
|
-
/** Returns response with indentations and line breaks. */
|
|
70
|
-
prettyPrint?: boolean;
|
|
71
|
-
/** 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. */
|
|
72
|
-
quotaUser?: string;
|
|
73
|
-
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
74
|
-
upload_protocol?: string;
|
|
75
|
-
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
76
|
-
uploadType?: string;
|
|
77
|
-
/** Request body */
|
|
78
|
-
resource: TraceSink;
|
|
79
|
-
}): Request<TraceSink>;
|
|
80
|
-
create(
|
|
81
|
-
request: {
|
|
50
|
+
|
|
51
|
+
const projects: {
|
|
52
|
+
traceSinks: {
|
|
53
|
+
/** Creates a sink that exports trace spans to a destination. The export of newly-ingested traces begins immediately, unless the sink's `writer_identity` is not permitted to write to the destination. A sink can export traces only from the resource owning the sink (the 'parent'). */
|
|
54
|
+
create(request: {
|
|
82
55
|
/** V1 error format. */
|
|
83
56
|
'$.xgafv'?: '1' | '2';
|
|
84
57
|
/** OAuth access token. */
|
|
@@ -103,127 +76,125 @@ declare namespace gapi.client {
|
|
|
103
76
|
upload_protocol?: string;
|
|
104
77
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
105
78
|
uploadType?: string;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
patch(
|
|
226
|
-
request: {
|
|
79
|
+
/** Request body */
|
|
80
|
+
resource: TraceSink;
|
|
81
|
+
}): Request<TraceSink>;
|
|
82
|
+
create(
|
|
83
|
+
request: {
|
|
84
|
+
/** V1 error format. */
|
|
85
|
+
'$.xgafv'?: '1' | '2';
|
|
86
|
+
/** OAuth access token. */
|
|
87
|
+
access_token?: string;
|
|
88
|
+
/** Data format for response. */
|
|
89
|
+
alt?: 'json' | 'media' | 'proto';
|
|
90
|
+
/** JSONP */
|
|
91
|
+
callback?: string;
|
|
92
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
93
|
+
fields?: string;
|
|
94
|
+
/** 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. */
|
|
95
|
+
key?: string;
|
|
96
|
+
/** OAuth 2.0 token for the current user. */
|
|
97
|
+
oauth_token?: string;
|
|
98
|
+
/** Required. The resource in which to create the sink (currently only project sinks are supported): "projects/[PROJECT_ID]" Examples: `"projects/my-trace-project"`, `"projects/123456789"`. */
|
|
99
|
+
parent: string;
|
|
100
|
+
/** Returns response with indentations and line breaks. */
|
|
101
|
+
prettyPrint?: boolean;
|
|
102
|
+
/** 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. */
|
|
103
|
+
quotaUser?: string;
|
|
104
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
105
|
+
upload_protocol?: string;
|
|
106
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
107
|
+
uploadType?: string;
|
|
108
|
+
},
|
|
109
|
+
body: TraceSink,
|
|
110
|
+
): Request<TraceSink>;
|
|
111
|
+
/** Deletes a sink. */
|
|
112
|
+
delete(request?: {
|
|
113
|
+
/** V1 error format. */
|
|
114
|
+
'$.xgafv'?: '1' | '2';
|
|
115
|
+
/** OAuth access token. */
|
|
116
|
+
access_token?: string;
|
|
117
|
+
/** Data format for response. */
|
|
118
|
+
alt?: 'json' | 'media' | 'proto';
|
|
119
|
+
/** JSONP */
|
|
120
|
+
callback?: string;
|
|
121
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
122
|
+
fields?: string;
|
|
123
|
+
/** 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. */
|
|
124
|
+
key?: string;
|
|
125
|
+
/** 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: `"projects/12345/traceSinks/my-sink-id"`. */
|
|
126
|
+
name: string;
|
|
127
|
+
/** OAuth 2.0 token for the current user. */
|
|
128
|
+
oauth_token?: string;
|
|
129
|
+
/** Returns response with indentations and line breaks. */
|
|
130
|
+
prettyPrint?: boolean;
|
|
131
|
+
/** 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. */
|
|
132
|
+
quotaUser?: string;
|
|
133
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
134
|
+
upload_protocol?: string;
|
|
135
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
136
|
+
uploadType?: string;
|
|
137
|
+
}): Request<{}>;
|
|
138
|
+
/** Get a trace sink by name under the parent resource (GCP project). */
|
|
139
|
+
get(request?: {
|
|
140
|
+
/** V1 error format. */
|
|
141
|
+
'$.xgafv'?: '1' | '2';
|
|
142
|
+
/** OAuth access token. */
|
|
143
|
+
access_token?: string;
|
|
144
|
+
/** Data format for response. */
|
|
145
|
+
alt?: 'json' | 'media' | 'proto';
|
|
146
|
+
/** JSONP */
|
|
147
|
+
callback?: string;
|
|
148
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
149
|
+
fields?: string;
|
|
150
|
+
/** 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. */
|
|
151
|
+
key?: string;
|
|
152
|
+
/** Required. The resource name of the sink: "projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]" Example: `"projects/12345/traceSinks/my-sink-id"`. */
|
|
153
|
+
name: string;
|
|
154
|
+
/** OAuth 2.0 token for the current user. */
|
|
155
|
+
oauth_token?: string;
|
|
156
|
+
/** Returns response with indentations and line breaks. */
|
|
157
|
+
prettyPrint?: boolean;
|
|
158
|
+
/** 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. */
|
|
159
|
+
quotaUser?: string;
|
|
160
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
161
|
+
upload_protocol?: string;
|
|
162
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
163
|
+
uploadType?: string;
|
|
164
|
+
}): Request<TraceSink>;
|
|
165
|
+
/** List all sinks for the parent resource (GCP project). */
|
|
166
|
+
list(request?: {
|
|
167
|
+
/** V1 error format. */
|
|
168
|
+
'$.xgafv'?: '1' | '2';
|
|
169
|
+
/** OAuth access token. */
|
|
170
|
+
access_token?: string;
|
|
171
|
+
/** Data format for response. */
|
|
172
|
+
alt?: 'json' | 'media' | 'proto';
|
|
173
|
+
/** JSONP */
|
|
174
|
+
callback?: string;
|
|
175
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
176
|
+
fields?: string;
|
|
177
|
+
/** 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. */
|
|
178
|
+
key?: string;
|
|
179
|
+
/** OAuth 2.0 token for the current user. */
|
|
180
|
+
oauth_token?: string;
|
|
181
|
+
/** 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 results might be available. */
|
|
182
|
+
pageSize?: number;
|
|
183
|
+
/** 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 response. The values of other method parameters should be identical to those in the previous call. */
|
|
184
|
+
pageToken?: string;
|
|
185
|
+
/** Required. The parent resource whose sinks are to be listed (currently only project parent resources are supported): "projects/[PROJECT_ID]" */
|
|
186
|
+
parent: string;
|
|
187
|
+
/** Returns response with indentations and line breaks. */
|
|
188
|
+
prettyPrint?: boolean;
|
|
189
|
+
/** 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. */
|
|
190
|
+
quotaUser?: string;
|
|
191
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
192
|
+
upload_protocol?: string;
|
|
193
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
194
|
+
uploadType?: string;
|
|
195
|
+
}): Request<ListTraceSinksResponse>;
|
|
196
|
+
/** 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 writer_identity). */
|
|
197
|
+
patch(request: {
|
|
227
198
|
/** V1 error format. */
|
|
228
199
|
'$.xgafv'?: '1' | '2';
|
|
229
200
|
/** OAuth access token. */
|
|
@@ -250,14 +221,41 @@ declare namespace gapi.client {
|
|
|
250
221
|
upload_protocol?: string;
|
|
251
222
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
252
223
|
uploadType?: string;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
224
|
+
/** Request body */
|
|
225
|
+
resource: TraceSink;
|
|
226
|
+
}): Request<TraceSink>;
|
|
227
|
+
patch(
|
|
228
|
+
request: {
|
|
229
|
+
/** V1 error format. */
|
|
230
|
+
'$.xgafv'?: '1' | '2';
|
|
231
|
+
/** OAuth access token. */
|
|
232
|
+
access_token?: string;
|
|
233
|
+
/** Data format for response. */
|
|
234
|
+
alt?: 'json' | 'media' | 'proto';
|
|
235
|
+
/** JSONP */
|
|
236
|
+
callback?: string;
|
|
237
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
238
|
+
fields?: string;
|
|
239
|
+
/** 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. */
|
|
240
|
+
key?: string;
|
|
241
|
+
/** 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: `"projects/12345/traceSinks/my-sink-id"`. */
|
|
242
|
+
name: string;
|
|
243
|
+
/** OAuth 2.0 token for the current user. */
|
|
244
|
+
oauth_token?: string;
|
|
245
|
+
/** Returns response with indentations and line breaks. */
|
|
246
|
+
prettyPrint?: boolean;
|
|
247
|
+
/** 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. */
|
|
248
|
+
quotaUser?: string;
|
|
249
|
+
/** 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 `writer_identity` fields cannot be updated. An empty `update_mask` is considered an error. For a detailed `FieldMask` definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask Example: `updateMask=output_config`. */
|
|
250
|
+
updateMask?: string;
|
|
251
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
252
|
+
upload_protocol?: string;
|
|
253
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
254
|
+
uploadType?: string;
|
|
255
|
+
},
|
|
256
|
+
body: TraceSink,
|
|
257
|
+
): Request<TraceSink>;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
262
260
|
}
|
|
263
261
|
}
|