update all json files

This commit is contained in:
Sebastian Thiel
2020-04-12 18:55:37 +08:00
parent ea3b428364
commit aacc30f08d
260 changed files with 138411 additions and 26293 deletions

View File

@@ -18,7 +18,7 @@
"baseUrl": "https://cloudtrace.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Cloud Trace",
"description": "Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus.\n",
"description": "Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus.\n",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/trace",
"fullyEncodeReservedExpansion": true,
@@ -28,6 +28,7 @@
},
"id": "cloudtrace:v1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://cloudtrace.mtls.googleapis.com/",
"name": "cloudtrace",
"ownerDomain": "google.com",
"ownerName": "Google",
@@ -113,7 +114,7 @@
"projects": {
"methods": {
"patchTraces": {
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.",
"description": "Sends new traces to Stackdriver Trace or updates existing traces. If the ID\nof a trace that you send matches that of an existing trace, any fields\nin the existing trace and its spans are overwritten by the provided values,\nand any new fields provided are merged with the existing trace data. If the\nID does not match, a new trace is created.\nIn this case, writing traces is not considered an active developer\nmethod since traces are machine generated.",
"flatPath": "v1/projects/{projectId}/traces",
"httpMethod": "PATCH",
"id": "cloudtrace.projects.patchTraces",
@@ -122,7 +123,7 @@
],
"parameters": {
"projectId": {
"description": "ID of the Cloud project where the trace data is stored.",
"description": "Required. ID of the Cloud project where the trace data is stored.",
"location": "path",
"required": true,
"type": "string"
@@ -145,7 +146,7 @@
"traces": {
"methods": {
"get": {
"description": "Gets a single trace by its ID.",
"description": "Gets a single trace by its ID.\nIn this case, getting for traces is considered an active developer method,\neven though it is technically a read-only method.",
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"httpMethod": "GET",
"id": "cloudtrace.projects.traces.get",
@@ -155,13 +156,13 @@
],
"parameters": {
"projectId": {
"description": "ID of the Cloud project where the trace data is stored.",
"description": "Required. ID of the Cloud project where the trace data is stored.",
"location": "path",
"required": true,
"type": "string"
},
"traceId": {
"description": "ID of the trace to return.",
"description": "Required. ID of the trace to return.",
"location": "path",
"required": true,
"type": "string"
@@ -177,7 +178,7 @@
]
},
"list": {
"description": "Returns of a list of traces that match the specified filter conditions.",
"description": "Returns of a list of traces that match the specified filter conditions.\nIn this case, listing for traces is considered an active developer method,\neven though it is technically a read-only method.",
"flatPath": "v1/projects/{projectId}/traces",
"httpMethod": "GET",
"id": "cloudtrace.projects.traces.list",
@@ -192,28 +193,28 @@
"type": "string"
},
"filter": {
"description": "An optional filter against labels for the request.\n\nBy default, searches use prefix matching. To specify exact match, prepend\na plus symbol (`+`) to the search term.\nMultiple terms are ANDed. Syntax:\n\n* `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root\n span starts with `NAME_PREFIX`.\n* `+root:NAME` or `+NAME`: Return traces where any root span's name is\n exactly `NAME`.\n* `span:NAME_PREFIX`: Return traces where any span starts with\n `NAME_PREFIX`.\n* `+span:NAME`: Return traces where any span's name is exactly\n `NAME`.\n* `latency:DURATION`: Return traces whose overall latency is\n greater or equal to than `DURATION`. Accepted units are nanoseconds\n (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For\n example, `latency:24ms` returns traces whose overall latency\n is greater than or equal to 24 milliseconds.\n* `label:LABEL_KEY`: Return all traces containing the specified\n label key (exact match, case-sensitive) regardless of the key:value\n pair's value (including empty values).\n* `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified\n label key (exact match, case-sensitive) whose value starts with\n `VALUE_PREFIX`. Both a key and a value must be specified.\n* `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair\n exactly matching the specified text. Both a key and a value must be\n specified.\n* `method:VALUE`: Equivalent to `/http/method:VALUE`.\n* `url:VALUE`: Equivalent to `/http/url:VALUE`.",
"description": "Optional. A filter against labels for the request.\n\nBy default, searches use prefix matching. To specify exact match, prepend\na plus symbol (`+`) to the search term.\nMultiple terms are ANDed. Syntax:\n\n* `root:NAME_PREFIX` or `NAME_PREFIX`: Return traces where any root\n span starts with `NAME_PREFIX`.\n* `+root:NAME` or `+NAME`: Return traces where any root span's name is\n exactly `NAME`.\n* `span:NAME_PREFIX`: Return traces where any span starts with\n `NAME_PREFIX`.\n* `+span:NAME`: Return traces where any span's name is exactly\n `NAME`.\n* `latency:DURATION`: Return traces whose overall latency is\n greater or equal to than `DURATION`. Accepted units are nanoseconds\n (`ns`), milliseconds (`ms`), and seconds (`s`). Default is `ms`. For\n example, `latency:24ms` returns traces whose overall latency\n is greater than or equal to 24 milliseconds.\n* `label:LABEL_KEY`: Return all traces containing the specified\n label key (exact match, case-sensitive) regardless of the key:value\n pair's value (including empty values).\n* `LABEL_KEY:VALUE_PREFIX`: Return all traces containing the specified\n label key (exact match, case-sensitive) whose value starts with\n `VALUE_PREFIX`. Both a key and a value must be specified.\n* `+LABEL_KEY:VALUE`: Return all traces containing a key:value pair\n exactly matching the specified text. Both a key and a value must be\n specified.\n* `method:VALUE`: Equivalent to `/http/method:VALUE`.\n* `url:VALUE`: Equivalent to `/http/url:VALUE`.",
"location": "query",
"type": "string"
},
"orderBy": {
"description": "Field used to sort the returned traces. Optional.\nCan be one of the following:\n\n* `trace_id`\n* `name` (`name` field of root span in the trace)\n* `duration` (difference between `end_time` and `start_time` fields of\n the root span)\n* `start` (`start_time` field of the root span)\n\nDescending order can be specified by appending `desc` to the sort field\n(for example, `name desc`).\n\nOnly one sort field is permitted.",
"description": "Optional. Field used to sort the returned traces.\nCan be one of the following:\n\n* `trace_id`\n* `name` (`name` field of root span in the trace)\n* `duration` (difference between `end_time` and `start_time` fields of\n the root span)\n* `start` (`start_time` field of the root span)\n\nDescending order can be specified by appending `desc` to the sort field\n(for example, `name desc`).\n\nOnly one sort field is permitted.",
"location": "query",
"type": "string"
},
"pageSize": {
"description": "Maximum number of traces to return. If not specified or <= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
"description": "Optional. Maximum number of traces to return. If not specified or <= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Token identifying the page of results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request. Optional.",
"description": "Token identifying the page of results to return. If provided, use the\nvalue of the `next_page_token` field from a previous request.",
"location": "query",
"type": "string"
},
"projectId": {
"description": "ID of the Cloud project where the trace data is stored.",
"description": "Required. ID of the Cloud project where the trace data is stored.",
"location": "path",
"required": true,
"type": "string"
@@ -225,7 +226,7 @@
"type": "string"
},
"view": {
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
"description": "Optional. Type of data returned for traces in the list. Default is\n`MINIMAL`.",
"enum": [
"VIEW_TYPE_UNSPECIFIED",
"MINIMAL",
@@ -250,7 +251,7 @@
}
}
},
"revision": "20190622",
"revision": "20200330",
"rootUrl": "https://cloudtrace.googleapis.com/",
"schemas": {
"Empty": {
@@ -334,7 +335,7 @@
"type": "string"
},
"parentSpanId": {
"description": "ID of the parent span, if any. Optional.",
"description": "Optional. ID of the parent span, if any.",
"format": "uint64",
"type": "string"
},
@@ -367,7 +368,7 @@
}
},
"servicePath": "",
"title": "Stackdriver Trace API",
"title": "Cloud Trace API",
"version": "v1",
"version_module": true
}

View File

@@ -15,7 +15,7 @@
"baseUrl": "https://cloudtrace.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Cloud Trace",
"description": "Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenCensus.\n",
"description": "Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus.\n",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/trace",
"fullyEncodeReservedExpansion": true,
@@ -25,6 +25,7 @@
},
"id": "cloudtrace:v2",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://cloudtrace.mtls.googleapis.com/",
"name": "cloudtrace",
"ownerDomain": "google.com",
"ownerName": "Google",
@@ -112,7 +113,7 @@
"traces": {
"methods": {
"batchWrite": {
"description": "Sends new spans to new or existing traces. You cannot update\nexisting spans.",
"description": "Sends new spans to new or existing traces. You cannot update\nexisting spans.\nIn this case, writing traces is not considered an active developer\nmethod since traces are machine generated.",
"flatPath": "v2/projects/{projectsId}/traces:batchWrite",
"httpMethod": "POST",
"id": "cloudtrace.projects.traces.batchWrite",
@@ -145,7 +146,7 @@
"spans": {
"methods": {
"createSpan": {
"description": "Creates a new span.",
"description": "Creates a new span.\nIn this case, writing traces is not considered an active developer\nmethod since traces are machine generated.",
"flatPath": "v2/projects/{projectsId}/traces/{tracesId}/spans/{spansId}",
"httpMethod": "POST",
"id": "cloudtrace.projects.traces.spans.createSpan",
@@ -180,7 +181,7 @@
}
}
},
"revision": "20190622",
"revision": "20200330",
"rootUrl": "https://cloudtrace.googleapis.com/",
"schemas": {
"Annotation": {
@@ -242,7 +243,7 @@
"id": "BatchWriteSpansRequest",
"properties": {
"spans": {
"description": "A list of new spans. The span names must not match existing\nspans, or the results are undefined.",
"description": "Required. A list of new spans. The span names must not match existing\nspans, or the results are undefined.",
"items": {
"$ref": "Span"
},
@@ -369,16 +370,16 @@
"description": "A set of attributes on the span. You can have up to 32 attributes per\nspan."
},
"childSpanCount": {
"description": "An optional number of child spans that were generated while this span\nwas active. If set, allows implementation to detect missing child spans.",
"description": "Optional. The number of child spans that were generated while this span\nwas active. If set, allows implementation to detect missing child spans.",
"format": "int32",
"type": "integer"
},
"displayName": {
"$ref": "TruncatableString",
"description": "A description of the span's operation (up to 128 bytes).\nStackdriver Trace displays the description in the\nGoogle Cloud Platform Console.\nFor example, the display name can be a qualified method name or a file name\nand a line number where the operation is called. A best practice is to use\nthe same display name within an application and at the same call point.\nThis makes it easier to correlate spans in different traces."
"description": "Required. A description of the span's operation (up to 128 bytes).\nStackdriver Trace displays the description in the\nGoogle Cloud Platform Console.\nFor example, the display name can be a qualified method name or a file name\nand a line number where the operation is called. A best practice is to use\nthe same display name within an application and at the same call point.\nThis makes it easier to correlate spans in different traces."
},
"endTime": {
"description": "The end time of the span. On the client side, this is the time kept by\nthe local machine where the span execution ends. On the server side, this\nis the time when the server application handler stops running.",
"description": "Required. The end time of the span. On the client side, this is the time kept by\nthe local machine where the span execution ends. On the server side, this\nis the time when the server application handler stops running.",
"format": "google-datetime",
"type": "string"
},
@@ -395,11 +396,31 @@
"type": "string"
},
"sameProcessAsParentSpan": {
"description": "(Optional) Set this parameter to indicate whether this span is in\nthe same process as its parent. If you do not set this parameter,\nStackdriver Trace is unable to take advantage of this helpful\ninformation.",
"description": "Optional. Set this parameter to indicate whether this span is in\nthe same process as its parent. If you do not set this parameter,\nStackdriver Trace is unable to take advantage of this helpful\ninformation.",
"type": "boolean"
},
"spanId": {
"description": "The [SPAN_ID] portion of the span's resource name.",
"description": "Required. The [SPAN_ID] portion of the span's resource name.",
"type": "string"
},
"spanKind": {
"description": "Distinguishes between spans generated in a particular context. For example,\ntwo spans with the same name may be distinguished using `CLIENT` (caller)\nand `SERVER` (callee) to identify an RPC call.",
"enum": [
"SPAN_KIND_UNSPECIFIED",
"INTERNAL",
"SERVER",
"CLIENT",
"PRODUCER",
"CONSUMER"
],
"enumDescriptions": [
"Unspecified. Do NOT use as default.\nImplementations MAY assume SpanKind.INTERNAL to be default.",
"Indicates that the span is used internally. Default value.",
"Indicates that the span covers server-side handling of an RPC or other\nremote network request.",
"Indicates that the span covers the client-side wrapper around an RPC or\nother remote request.",
"Indicates that the span describes producer sending a message to a broker.\nUnlike client and server, there is no direct critical path latency\nrelationship between producer and consumer spans (e.g. publishing a\nmessage to a pubsub service).",
"Indicates that the span describes consumer recieving a message from a\nbroker. Unlike client and server, there is no direct critical path\nlatency relationship between producer and consumer spans (e.g. receiving\na message from a pubsub service subscription)."
],
"type": "string"
},
"stackTrace": {
@@ -407,13 +428,13 @@
"description": "Stack trace captured at the start of the span."
},
"startTime": {
"description": "The start time of the span. On the client side, this is the time kept by\nthe local machine where the span execution starts. On the server side, this\nis the time when the server's application handler starts running.",
"description": "Required. The start time of the span. On the client side, this is the time kept by\nthe local machine where the span execution starts. On the server side, this\nis the time when the server's application handler starts running.",
"format": "google-datetime",
"type": "string"
},
"status": {
"$ref": "Status",
"description": "An optional final status for this span."
"description": "Optional. The final status for this span."
},
"timeEvents": {
"$ref": "TimeEvents",
@@ -583,7 +604,7 @@
}
},
"servicePath": "",
"title": "Stackdriver Trace API",
"title": "Cloud Trace API",
"version": "v2",
"version_module": true
}

View File

@@ -0,0 +1,338 @@
{
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/trace.append": {
"description": "Write Trace data for a project or application"
},
"https://www.googleapis.com/auth/trace.readonly": {
"description": "Read Trace data for a project or application"
}
}
}
},
"basePath": "",
"baseUrl": "https://cloudtrace.googleapis.com/",
"batchPath": "batch",
"canonicalName": "Cloud Trace",
"description": "Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus.\n",
"discoveryVersion": "v1",
"documentationLink": "https://cloud.google.com/trace",
"fullyEncodeReservedExpansion": true,
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"id": "cloudtrace:v2beta1",
"kind": "discovery#restDescription",
"mtlsRootUrl": "https://cloudtrace.mtls.googleapis.com/",
"name": "cloudtrace",
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
"$.xgafv": {
"description": "V1 error format.",
"enum": [
"1",
"2"
],
"enumDescriptions": [
"v1 error format",
"v2 error format"
],
"location": "query",
"type": "string"
},
"access_token": {
"description": "OAuth access token.",
"location": "query",
"type": "string"
},
"alt": {
"default": "json",
"description": "Data format for response.",
"enum": [
"json",
"media",
"proto"
],
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"location": "query",
"type": "string"
},
"callback": {
"description": "JSONP",
"location": "query",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"location": "query",
"type": "string"
},
"key": {
"description": "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.",
"location": "query",
"type": "string"
},
"oauth_token": {
"description": "OAuth 2.0 token for the current user.",
"location": "query",
"type": "string"
},
"prettyPrint": {
"default": "true",
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
},
"quotaUser": {
"description": "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.",
"location": "query",
"type": "string"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"location": "query",
"type": "string"
},
"upload_protocol": {
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query",
"type": "string"
}
},
"protocol": "rest",
"resources": {
"projects": {
"resources": {
"traceSinks": {
"methods": {
"create": {
"description": "Creates a sink that exports trace spans to a destination. The\nexport of newly-ingested traces begins immediately, unless the sink's\n`writer_identity` is not permitted to write to the destination. A sink can\nexport traces only from the resource owning the sink (the 'parent').",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks",
"httpMethod": "POST",
"id": "cloudtrace.projects.traceSinks.create",
"parameterOrder": [
"parent"
],
"parameters": {
"parent": {
"description": "Required. The resource in which to create the sink (currently only project\nsinks are supported):\n\n \"projects/[PROJECT_ID]\"\n\nExamples: `\"projects/my-trace-project\"`, `\"projects/123456789\"`.",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2beta1/{+parent}/traceSinks",
"request": {
"$ref": "TraceSink"
},
"response": {
"$ref": "TraceSink"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
]
},
"delete": {
"description": "Deletes a sink.",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks/{traceSinksId}",
"httpMethod": "DELETE",
"id": "cloudtrace.projects.traceSinks.delete",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The full resource name of the sink to delete, including the\nparent resource and the sink identifier:\n\n \"projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]\"\n\nExample: `\"projects/12345/traceSinks/my-sink-id\"`.",
"location": "path",
"pattern": "^projects/[^/]+/traceSinks/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2beta1/{+name}",
"response": {
"$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
]
},
"get": {
"description": "Get a trace sink by name under the parent resource (GCP project).",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks/{traceSinksId}",
"httpMethod": "GET",
"id": "cloudtrace.projects.traceSinks.get",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The resource name of the sink:\n\n \"projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]\"\n\nExample: `\"projects/12345/traceSinks/my-sink-id\"`.",
"location": "path",
"pattern": "^projects/[^/]+/traceSinks/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2beta1/{+name}",
"response": {
"$ref": "TraceSink"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
]
},
"list": {
"description": "List all sinks for the parent resource (GCP project).",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks",
"httpMethod": "GET",
"id": "cloudtrace.projects.traceSinks.list",
"parameterOrder": [
"parent"
],
"parameters": {
"pageSize": {
"description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.",
"format": "int32",
"location": "query",
"type": "integer"
},
"pageToken": {
"description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.",
"location": "query",
"type": "string"
},
"parent": {
"description": "Required. The parent resource whose sinks are to be listed (currently only\nproject parent resources are supported):\n\n \"projects/[PROJECT_ID]\"",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
"path": "v2beta1/{+parent}/traceSinks",
"response": {
"$ref": "ListTraceSinksResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
]
},
"patch": {
"description": "Updates a sink. This method updates fields in the existing sink according\nto the provided update mask. The sink's name cannot be changed nor any\noutput-only fields (e.g. the writer_identity).",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks/{traceSinksId}",
"httpMethod": "PATCH",
"id": "cloudtrace.projects.traceSinks.patch",
"parameterOrder": [
"name"
],
"parameters": {
"name": {
"description": "Required. The full resource name of the sink to update, including the\nparent resource and the sink identifier:\n\n \"projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]\"\n\nExample: `\"projects/12345/traceSinks/my-sink-id\"`.",
"location": "path",
"pattern": "^projects/[^/]+/traceSinks/[^/]+$",
"required": true,
"type": "string"
},
"updateMask": {
"description": "Required. Field mask that specifies the fields in `trace_sink` that are to\nbe updated. A sink field is overwritten if, and only if, it is\nin the update mask. `name` and `writer_identity` fields cannot be updated.\n\nAn empty updateMask is considered an error.\n\nFor a detailed `FieldMask` definition, see\nhttps://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask\n\nExample: `updateMask=output_config`.",
"format": "google-fieldmask",
"location": "query",
"type": "string"
}
},
"path": "v2beta1/{+name}",
"request": {
"$ref": "TraceSink"
},
"response": {
"$ref": "TraceSink"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
]
}
}
}
}
}
},
"revision": "20200330",
"rootUrl": "https://cloudtrace.googleapis.com/",
"schemas": {
"Empty": {
"description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.",
"id": "Empty",
"properties": {},
"type": "object"
},
"ListTraceSinksResponse": {
"description": "Result returned from `ListTraceSinks`.",
"id": "ListTraceSinksResponse",
"properties": {
"nextPageToken": {
"description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call the same\nmethod again using the value of `nextPageToken` as `pageToken`.",
"type": "string"
},
"sinks": {
"description": "A list of sinks.",
"items": {
"$ref": "TraceSink"
},
"type": "array"
}
},
"type": "object"
},
"OutputConfig": {
"description": "OutputConfig contains a destination for writing trace data.",
"id": "OutputConfig",
"properties": {
"destination": {
"description": "The destination for writing trace data. Currently only BigQuery is\nsupported. E.g.:\n\n \"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\"",
"type": "string"
}
},
"type": "object"
},
"TraceSink": {
"description": "Describes a sink used to export traces to a BigQuery dataset. The sink must\nbe created within a project.",
"id": "TraceSink",
"properties": {
"name": {
"description": "Required. The canonical sink resource name, unique within the project. Must be of the\nform:\n\n project/[PROJECT_NUMBER]/traceSinks/[SINK_ID].\n\nE.g.:\n\n `\"projects/12345/traceSinks/my-project-trace-sink\"`.\n\nSink identifiers are limited to 256 characters and can include only the\nfollowing characters: upper and lower-case alphanumeric characters,\nunderscores, hyphens, and periods.",
"type": "string"
},
"outputConfig": {
"$ref": "OutputConfig",
"description": "Required. The export destination."
},
"writerIdentity": {
"description": "Output only. A service account name for exporting the data. This field is\nset by sinks.create and sinks.update. The service account will need to be\ngranted write access to the destination specified in the output\nconfiguration, see [Granting access for a\nresource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).\nTo create tables and write data this account will need the dataEditor role.\nRead more about roles in the [BigQuery\ndocumentation](https://cloud.google.com/bigquery/docs/access-control).\nE.g.:\n\n \"service-00000001@00000002.iam.gserviceaccount.com\"",
"type": "string"
}
},
"type": "object"
}
},
"servicePath": "",
"title": "Cloud Trace API",
"version": "v2beta1",
"version_module": true
}