blob: a6c2f2bd2692eca8555b57d25d1aa082b87bda5f [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="cloudtrace_v2beta1.html">Cloud Trace API</a> . <a href="cloudtrace_v2beta1.projects.html">projects</a> . <a href="cloudtrace_v2beta1.projects.traceSinks.html">traceSinks</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates a sink that exports trace spans to a destination. The</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes a sink.</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Get a trace sink by name under the parent resource (GCP project).</p>
86<p class="toc_element">
87 <code><a href="#list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
88<p class="firstline">List all sinks for the parent resource (GCP project).</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
94<p class="firstline">Updates a sink. This method updates fields in the existing sink according</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
98 <pre>Creates a sink that exports trace spans to a destination. The
99export of newly-ingested traces begins immediately, unless the sink&#x27;s
100`writer_identity` is not permitted to write to the destination. A sink can
101export traces only from the resource owning the sink (the &#x27;parent&#x27;).
102
103Args:
104 parent: string, Required. The resource in which to create the sink (currently only project
105sinks are supported):
106
107 &quot;projects/[PROJECT_ID]&quot;
108
109Examples: `&quot;projects/my-trace-project&quot;`, `&quot;projects/123456789&quot;`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113{ # Describes a sink used to export traces to a BigQuery dataset. The sink must
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700114 # be created within a project.
115 &quot;outputConfig&quot;: { # OutputConfig contains a destination for writing trace data. # Required. The export destination.
116 &quot;destination&quot;: &quot;A String&quot;, # The destination for writing trace data. Currently only BigQuery is
117 # supported. E.g.:
118 #
119 # &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot;
120 },
121 &quot;name&quot;: &quot;A String&quot;, # Required. The canonical sink resource name, unique within the project. Must be of the
122 # form:
123 #
124 # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].
125 #
126 # E.g.:
127 #
128 # `&quot;projects/12345/traceSinks/my-project-trace-sink&quot;`.
129 #
130 # Sink identifiers are limited to 256 characters and can include only the
131 # following characters: upper and lower-case alphanumeric characters,
132 # underscores, hyphens, and periods.
133 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. A service account name for exporting the data. This field is
134 # set by sinks.create and sinks.update. The service account will need to be
135 # granted write access to the destination specified in the output
136 # configuration, see [Granting access for a
137 # resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
138 # To create tables and write data this account will need the dataEditor role.
139 # Read more about roles in the [BigQuery
140 # documentation](https://cloud.google.com/bigquery/docs/access-control).
141 # E.g.:
142 #
143 # &quot;service-00000001@00000002.iam.gserviceaccount.com&quot;
144}
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700145
146 x__xgafv: string, V1 error format.
147 Allowed values
148 1 - v1 error format
149 2 - v2 error format
150
151Returns:
152 An object of the form:
153
154 { # Describes a sink used to export traces to a BigQuery dataset. The sink must
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700155 # be created within a project.
156 &quot;outputConfig&quot;: { # OutputConfig contains a destination for writing trace data. # Required. The export destination.
157 &quot;destination&quot;: &quot;A String&quot;, # The destination for writing trace data. Currently only BigQuery is
158 # supported. E.g.:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700159 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700160 # &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot;
161 },
162 &quot;name&quot;: &quot;A String&quot;, # Required. The canonical sink resource name, unique within the project. Must be of the
163 # form:
164 #
165 # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].
166 #
167 # E.g.:
168 #
169 # `&quot;projects/12345/traceSinks/my-project-trace-sink&quot;`.
170 #
171 # Sink identifiers are limited to 256 characters and can include only the
172 # following characters: upper and lower-case alphanumeric characters,
173 # underscores, hyphens, and periods.
174 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. A service account name for exporting the data. This field is
175 # set by sinks.create and sinks.update. The service account will need to be
176 # granted write access to the destination specified in the output
177 # configuration, see [Granting access for a
178 # resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
179 # To create tables and write data this account will need the dataEditor role.
180 # Read more about roles in the [BigQuery
181 # documentation](https://cloud.google.com/bigquery/docs/access-control).
182 # E.g.:
183 #
184 # &quot;service-00000001@00000002.iam.gserviceaccount.com&quot;
185 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700186</div>
187
188<div class="method">
189 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
190 <pre>Deletes a sink.
191
192Args:
193 name: string, Required. The full resource name of the sink to delete, including the
194parent resource and the sink identifier:
195
196 &quot;projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]&quot;
197
198Example: `&quot;projects/12345/traceSinks/my-sink-id&quot;`. (required)
199 x__xgafv: string, V1 error format.
200 Allowed values
201 1 - v1 error format
202 2 - v2 error format
203
204Returns:
205 An object of the form:
206
207 { # A generic empty message that you can re-use to avoid defining duplicated
208 # empty messages in your APIs. A typical example is to use it as the request
209 # or the response type of an API method. For instance:
210 #
211 # service Foo {
212 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
213 # }
214 #
215 # The JSON representation for `Empty` is empty JSON object `{}`.
216 }</pre>
217</div>
218
219<div class="method">
220 <code class="details" id="get">get(name, x__xgafv=None)</code>
221 <pre>Get a trace sink by name under the parent resource (GCP project).
222
223Args:
224 name: string, Required. The resource name of the sink:
225
226 &quot;projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]&quot;
227
228Example: `&quot;projects/12345/traceSinks/my-sink-id&quot;`. (required)
229 x__xgafv: string, V1 error format.
230 Allowed values
231 1 - v1 error format
232 2 - v2 error format
233
234Returns:
235 An object of the form:
236
237 { # Describes a sink used to export traces to a BigQuery dataset. The sink must
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700238 # be created within a project.
239 &quot;outputConfig&quot;: { # OutputConfig contains a destination for writing trace data. # Required. The export destination.
240 &quot;destination&quot;: &quot;A String&quot;, # The destination for writing trace data. Currently only BigQuery is
241 # supported. E.g.:
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700243 # &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot;
244 },
245 &quot;name&quot;: &quot;A String&quot;, # Required. The canonical sink resource name, unique within the project. Must be of the
246 # form:
247 #
248 # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].
249 #
250 # E.g.:
251 #
252 # `&quot;projects/12345/traceSinks/my-project-trace-sink&quot;`.
253 #
254 # Sink identifiers are limited to 256 characters and can include only the
255 # following characters: upper and lower-case alphanumeric characters,
256 # underscores, hyphens, and periods.
257 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. A service account name for exporting the data. This field is
258 # set by sinks.create and sinks.update. The service account will need to be
259 # granted write access to the destination specified in the output
260 # configuration, see [Granting access for a
261 # resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
262 # To create tables and write data this account will need the dataEditor role.
263 # Read more about roles in the [BigQuery
264 # documentation](https://cloud.google.com/bigquery/docs/access-control).
265 # E.g.:
266 #
267 # &quot;service-00000001@00000002.iam.gserviceaccount.com&quot;
268 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700269</div>
270
271<div class="method">
272 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, x__xgafv=None)</code>
273 <pre>List all sinks for the parent resource (GCP project).
274
275Args:
276 parent: string, Required. The parent resource whose sinks are to be listed (currently only
277project parent resources are supported):
278
279 &quot;projects/[PROJECT_ID]&quot; (required)
280 pageToken: string, Optional. If present, then retrieve the next batch of results from the
281preceding call to this method. `pageToken` must be the value of
282`nextPageToken` from the previous response. The values of other method
283parameters should be identical to those in the previous call.
284 pageSize: integer, Optional. The maximum number of results to return from this request.
285Non-positive values are ignored. The presence of `nextPageToken` in the
286response indicates that more results might be available.
287 x__xgafv: string, V1 error format.
288 Allowed values
289 1 - v1 error format
290 2 - v2 error format
291
292Returns:
293 An object of the form:
294
295 { # Result returned from `ListTraceSinks`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there might be more results than appear in this response, then
297 # `nextPageToken` is included. To get the next set of results, call the same
298 # method again using the value of `nextPageToken` as `pageToken`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700299 &quot;sinks&quot;: [ # A list of sinks.
300 { # Describes a sink used to export traces to a BigQuery dataset. The sink must
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700301 # be created within a project.
302 &quot;outputConfig&quot;: { # OutputConfig contains a destination for writing trace data. # Required. The export destination.
303 &quot;destination&quot;: &quot;A String&quot;, # The destination for writing trace data. Currently only BigQuery is
304 # supported. E.g.:
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700305 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700306 # &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700307 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700308 &quot;name&quot;: &quot;A String&quot;, # Required. The canonical sink resource name, unique within the project. Must be of the
309 # form:
310 #
311 # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].
312 #
313 # E.g.:
314 #
315 # `&quot;projects/12345/traceSinks/my-project-trace-sink&quot;`.
316 #
317 # Sink identifiers are limited to 256 characters and can include only the
318 # following characters: upper and lower-case alphanumeric characters,
319 # underscores, hyphens, and periods.
320 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. A service account name for exporting the data. This field is
321 # set by sinks.create and sinks.update. The service account will need to be
322 # granted write access to the destination specified in the output
323 # configuration, see [Granting access for a
324 # resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
325 # To create tables and write data this account will need the dataEditor role.
326 # Read more about roles in the [BigQuery
327 # documentation](https://cloud.google.com/bigquery/docs/access-control).
328 # E.g.:
329 #
330 # &quot;service-00000001@00000002.iam.gserviceaccount.com&quot;
331 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700332 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 }</pre>
334</div>
335
336<div class="method">
337 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
338 <pre>Retrieves the next page of results.
339
340Args:
341 previous_request: The request for the previous page. (required)
342 previous_response: The response from the request for the previous page. (required)
343
344Returns:
345 A request object that you can call &#x27;execute()&#x27; on to request the next
346 page. Returns None if there are no more items in the collection.
347 </pre>
348</div>
349
350<div class="method">
351 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
352 <pre>Updates a sink. This method updates fields in the existing sink according
353to the provided update mask. The sink&#x27;s name cannot be changed nor any
354output-only fields (e.g. the writer_identity).
355
356Args:
357 name: string, Required. The full resource name of the sink to update, including the
358parent resource and the sink identifier:
359
360 &quot;projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]&quot;
361
362Example: `&quot;projects/12345/traceSinks/my-sink-id&quot;`. (required)
363 body: object, The request body.
364 The object takes the form of:
365
366{ # Describes a sink used to export traces to a BigQuery dataset. The sink must
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700367 # be created within a project.
368 &quot;outputConfig&quot;: { # OutputConfig contains a destination for writing trace data. # Required. The export destination.
369 &quot;destination&quot;: &quot;A String&quot;, # The destination for writing trace data. Currently only BigQuery is
370 # supported. E.g.:
371 #
372 # &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot;
373 },
374 &quot;name&quot;: &quot;A String&quot;, # Required. The canonical sink resource name, unique within the project. Must be of the
375 # form:
376 #
377 # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].
378 #
379 # E.g.:
380 #
381 # `&quot;projects/12345/traceSinks/my-project-trace-sink&quot;`.
382 #
383 # Sink identifiers are limited to 256 characters and can include only the
384 # following characters: upper and lower-case alphanumeric characters,
385 # underscores, hyphens, and periods.
386 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. A service account name for exporting the data. This field is
387 # set by sinks.create and sinks.update. The service account will need to be
388 # granted write access to the destination specified in the output
389 # configuration, see [Granting access for a
390 # resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
391 # To create tables and write data this account will need the dataEditor role.
392 # Read more about roles in the [BigQuery
393 # documentation](https://cloud.google.com/bigquery/docs/access-control).
394 # E.g.:
395 #
396 # &quot;service-00000001@00000002.iam.gserviceaccount.com&quot;
397}
Bu Sun Kim65020912020-05-20 12:08:20 -0700398
399 updateMask: string, Required. Field mask that specifies the fields in `trace_sink` that are to
400be updated. A sink field is overwritten if, and only if, it is
401in the update mask. `name` and `writer_identity` fields cannot be updated.
402
403An empty updateMask is considered an error.
404
405For a detailed `FieldMask` definition, see
406https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
407
408Example: `updateMask=output_config`.
409 x__xgafv: string, V1 error format.
410 Allowed values
411 1 - v1 error format
412 2 - v2 error format
413
414Returns:
415 An object of the form:
416
417 { # Describes a sink used to export traces to a BigQuery dataset. The sink must
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700418 # be created within a project.
419 &quot;outputConfig&quot;: { # OutputConfig contains a destination for writing trace data. # Required. The export destination.
420 &quot;destination&quot;: &quot;A String&quot;, # The destination for writing trace data. Currently only BigQuery is
421 # supported. E.g.:
Bu Sun Kim65020912020-05-20 12:08:20 -0700422 #
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700423 # &quot;bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]&quot;
424 },
425 &quot;name&quot;: &quot;A String&quot;, # Required. The canonical sink resource name, unique within the project. Must be of the
426 # form:
427 #
428 # project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].
429 #
430 # E.g.:
431 #
432 # `&quot;projects/12345/traceSinks/my-project-trace-sink&quot;`.
433 #
434 # Sink identifiers are limited to 256 characters and can include only the
435 # following characters: upper and lower-case alphanumeric characters,
436 # underscores, hyphens, and periods.
437 &quot;writerIdentity&quot;: &quot;A String&quot;, # Output only. A service account name for exporting the data. This field is
438 # set by sinks.create and sinks.update. The service account will need to be
439 # granted write access to the destination specified in the output
440 # configuration, see [Granting access for a
441 # resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
442 # To create tables and write data this account will need the dataEditor role.
443 # Read more about roles in the [BigQuery
444 # documentation](https://cloud.google.com/bigquery/docs/access-control).
445 # E.g.:
446 #
447 # &quot;service-00000001@00000002.iam.gserviceaccount.com&quot;
448 }</pre>
Bu Sun Kim65020912020-05-20 12:08:20 -0700449</div>
450
451</body></html>