Upgrade to latest API versions + code regen

This commit is contained in:
Sebastian Thiel
2017-12-12 14:30:54 +01:00
parent dc30217711
commit 357a0e650e
776 changed files with 356718 additions and 104442 deletions

View File

@@ -1,4 +1,9 @@
{
"ownerDomain": "google.com",
"name": "cloudtrace",
"batchPath": "batch",
"fullyEncodeReservedExpansion": true,
"title": "Stackdriver Trace API",
"ownerName": "Google",
"resources": {
"projects": {
@@ -11,21 +16,21 @@
"projectId"
],
"httpMethod": "PATCH",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"parameters": {
"projectId": {
"location": "path",
"description": "ID of the Cloud project where the trace data is stored.",
"type": "string",
"required": true
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"flatPath": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.patchTraces",
"path": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.patchTraces",
"request": {
"$ref": "Traces"
},
@@ -35,106 +40,106 @@
"resources": {
"traces": {
"methods": {
"get": {
"description": "Gets a single trace by its ID.",
"httpMethod": "GET",
"parameterOrder": [
"projectId",
"traceId"
],
"response": {
"$ref": "Trace"
},
"parameters": {
"projectId": {
"location": "path",
"description": "ID of the Cloud project where the trace data is stored.",
"type": "string",
"required": true
},
"traceId": {
"description": "ID of the trace to return.",
"type": "string",
"required": true,
"location": "path"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"path": "v1/projects/{projectId}/traces/{traceId}",
"id": "cloudtrace.projects.traces.get"
},
"list": {
"flatPath": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.traces.list",
"path": "v1/projects/{projectId}/traces",
"description": "Returns of a list of traces that match the specified filter conditions.",
"httpMethod": "GET",
"parameterOrder": [
"projectId"
],
"response": {
"$ref": "ListTracesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
"parameterOrder": [
"projectId"
],
"parameters": {
"projectId": {
"location": "path",
"description": "ID of the Cloud project where the trace data is stored.",
"type": "string",
"required": true
},
"filter": {
"location": "query",
"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`.",
"type": "string"
},
"endTime": {
"format": "google-datetime",
"description": "End of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"type": "string",
"location": "query"
},
"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.",
"format": "google-datetime",
"type": "string",
"location": "query"
},
"startTime": {
"location": "query",
"format": "google-datetime",
"description": "Start of the time interval (inclusive) during which the trace data was\ncollected from the application.",
"format": "google-datetime",
"type": "string",
"location": "query"
},
"pageToken": {
"location": "query",
"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.",
"type": "string"
},
"pageSize": {
"format": "int32",
"location": "query",
"description": "Maximum number of traces to return. If not specified or \u003c= 0, the\nimplementation selects a reasonable value. The implementation may\nreturn fewer traces than the requested page size. Optional.",
"type": "integer",
"location": "query"
"format": "int32",
"type": "integer"
},
"view": {
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
"type": "string",
"location": "query",
"enum": [
"VIEW_TYPE_UNSPECIFIED",
"MINIMAL",
"ROOTSPAN",
"COMPLETE"
],
"description": "Type of data returned for traces in the list. Optional. Default is\n`MINIMAL`.",
"type": "string"
]
},
"orderBy": {
"location": "query",
"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.",
"type": "string"
},
"projectId": {
"location": "path",
"description": "ID of the Cloud project where the trace data is stored.",
"required": true,
"type": "string"
}
},
"flatPath": "v1/projects/{projectId}/traces",
"path": "v1/projects/{projectId}/traces",
"id": "cloudtrace.projects.traces.list"
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
]
},
"get": {
"flatPath": "v1/projects/{projectId}/traces/{traceId}",
"path": "v1/projects/{projectId}/traces/{traceId}",
"id": "cloudtrace.projects.traces.get",
"description": "Gets a single trace by its ID.",
"response": {
"$ref": "Trace"
},
"parameterOrder": [
"projectId",
"traceId"
],
"httpMethod": "GET",
"parameters": {
"projectId": {
"location": "path",
"description": "ID of the Cloud project where the trace data is stored.",
"required": true,
"type": "string"
},
"traceId": {
"location": "path",
"description": "ID of the trace to return.",
"required": true,
"type": "string"
}
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
]
}
}
}
@@ -142,21 +147,21 @@
}
},
"parameters": {
"uploadType": {
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"uploadType": {
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
"callback": {
"description": "JSONP",
"type": "string",
"location": "query"
},
"callback": {
"location": "query",
"description": "JSONP",
"type": "string"
},
"$.xgafv": {
"enumDescriptions": [
"v1 error format",
@@ -171,6 +176,12 @@
"type": "string"
},
"alt": {
"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",
"description": "Data format for response.",
"default": "json",
"enum": [
@@ -178,13 +189,7 @@
"media",
"proto"
],
"type": "string",
"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"
},
"key": {
"location": "query",
@@ -203,104 +208,44 @@
},
"pp": {
"description": "Pretty-print response.",
"default": "true",
"type": "boolean",
"default": "true",
"location": "query"
},
"bearer_token": {
"location": "query",
"description": "OAuth bearer token.",
"type": "string"
},
"oauth_token": {
"location": "query",
"description": "OAuth 2.0 token for the current user.",
"type": "string"
},
"bearer_token": {
"description": "OAuth bearer token.",
"type": "string",
"location": "query"
},
"upload_protocol": {
"location": "query",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"type": "string"
},
"prettyPrint": {
"location": "query",
"description": "Returns response with indentations and line breaks.",
"default": "true",
"type": "boolean",
"location": "query"
"default": "true"
}
},
"version": "v1",
"baseUrl": "https://cloudtrace.googleapis.com/",
"kind": "discovery#restDescription",
"description": "Send and retrieve trace data from Stackdriver Trace. Data is generated and available by default for all App Engine applications. Data from other applications can be written to Stackdriver Trace for display, reporting, and analysis.\n",
"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.\n",
"servicePath": "",
"basePath": "",
"revision": "20170919",
"documentationLink": "https://cloud.google.com/trace",
"id": "cloudtrace:v1",
"documentationLink": "https://cloud.google.com/trace",
"revision": "20171202",
"discoveryVersion": "v1",
"version_module": true,
"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 `{}`.",
"type": "object",
"properties": {},
"id": "Empty"
},
"ListTracesResponse": {
"description": "The response message for the `ListTraces` method.",
"type": "object",
"properties": {
"nextPageToken": {
"description": "If defined, indicates that there are more traces that match the request\nand that this value should be passed to the next request to continue\nretrieving additional traces.",
"type": "string"
},
"traces": {
"description": "List of trace records returned.",
"items": {
"$ref": "Trace"
},
"type": "array"
}
},
"id": "ListTracesResponse"
},
"Trace": {
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
"type": "object",
"properties": {
"spans": {
"description": "Collection of spans in the trace.",
"items": {
"$ref": "TraceSpan"
},
"type": "array"
},
"projectId": {
"description": "Project ID of the Cloud project where the trace data is stored.",
"type": "string"
},
"traceId": {
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string.",
"type": "string"
}
},
"id": "Trace"
},
"Traces": {
"description": "List of new or updated traces.",
"type": "object",
"properties": {
"traces": {
"description": "List of traces.",
"items": {
"$ref": "Trace"
},
"type": "array"
}
},
"id": "Traces"
},
"TraceSpan": {
"description": "A span represents a single timed event within a trace. Spans can be nested\nand form a trace tree. Often, a trace contains a root span that describes the\nend-to-end latency of an operation and, optionally, one or more subspans for\nits suboperations. Spans do not need to be contiguous. There may be gaps\nbetween spans in a trace.",
"type": "object",
@@ -317,23 +262,23 @@
"type": "string"
},
"spanId": {
"format": "uint64",
"description": "Identifier for the span. Must be a 64-bit integer other than 0 and\nunique within a trace.",
"format": "uint64",
"type": "string"
},
"parentSpanId": {
"format": "uint64",
"description": "ID of the parent span, if any. Optional.",
"format": "uint64",
"type": "string"
},
"endTime": {
"format": "google-datetime",
"description": "End time of the span in nanoseconds from the UNIX epoch.",
"format": "google-datetime",
"type": "string"
},
"startTime": {
"format": "google-datetime",
"description": "Start time of the span in nanoseconds from the UNIX epoch.",
"format": "google-datetime",
"type": "string"
},
"kind": {
@@ -352,32 +297,88 @@
}
},
"id": "TraceSpan"
},
"ListTracesResponse": {
"description": "The response message for the `ListTraces` method.",
"type": "object",
"properties": {
"traces": {
"description": "List of trace records returned.",
"type": "array",
"items": {
"$ref": "Trace"
}
},
"nextPageToken": {
"description": "If defined, indicates that there are more traces that match the request\nand that this value should be passed to the next request to continue\nretrieving additional traces.",
"type": "string"
}
},
"id": "ListTracesResponse"
},
"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 `{}`.",
"type": "object",
"properties": {},
"id": "Empty"
},
"Trace": {
"description": "A trace describes how long it takes for an application to perform an\noperation. It consists of a set of spans, each of which represent a single\ntimed event within the operation.",
"type": "object",
"properties": {
"projectId": {
"description": "Project ID of the Cloud project where the trace data is stored.",
"type": "string"
},
"spans": {
"description": "Collection of spans in the trace.",
"type": "array",
"items": {
"$ref": "TraceSpan"
}
},
"traceId": {
"description": "Globally unique identifier for the trace. This identifier is a 128-bit\nnumeric value formatted as a 32-byte hex string.",
"type": "string"
}
},
"id": "Trace"
},
"Traces": {
"description": "List of new or updated traces.",
"type": "object",
"properties": {
"traces": {
"description": "List of traces.",
"type": "array",
"items": {
"$ref": "Trace"
}
}
},
"id": "Traces"
}
},
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"protocol": "rest",
"canonicalName": "Cloud Trace",
"auth": {
"oauth2": {
"scopes": {
"https://www.googleapis.com/auth/trace.readonly": {
"description": "Read Trace data for a project or application"
},
"https://www.googleapis.com/auth/trace.append": {
"description": "Write Trace data for a project or application"
},
"https://www.googleapis.com/auth/cloud-platform": {
"description": "View and manage your data across Google Cloud Platform services"
},
"https://www.googleapis.com/auth/trace.readonly": {
"description": "Read Trace data for a project or application"
}
}
}
},
"rootUrl": "https://cloudtrace.googleapis.com/",
"ownerDomain": "google.com",
"name": "cloudtrace",
"batchPath": "batch",
"title": "Stackdriver Trace API"
"rootUrl": "https://cloudtrace.googleapis.com/"
}