is.google-api-services-cloudtrace.v2beta1-rev20200805-1.31.0.source-code.cloudtrace.v2beta1.json Maven / Gradle / Ivy
{
"fullyEncodeReservedExpansion": true,
"version_module": true,
"servicePath": "",
"protocol": "rest",
"ownerDomain": "google.com",
"resources": {
"projects": {
"resources": {
"traceSinks": {
"methods": {
"list": {
"parameters": {
"pageToken": {
"type": "string",
"location": "query",
"description": "Optional. If present, then retrieve the next batch of results from the preceding call to this method. `pageToken` must be the value of `nextPageToken` from the previous response. The values of other method parameters should be identical to those in the previous call."
},
"parent": {
"required": true,
"type": "string",
"pattern": "^projects/[^/]+$",
"location": "path",
"description": "Required. The parent resource whose sinks are to be listed (currently only project parent resources are supported): \"projects/[PROJECT_ID]\""
},
"pageSize": {
"location": "query",
"format": "int32",
"description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of `nextPageToken` in the response indicates that more results might be available.",
"type": "integer"
}
},
"path": "v2beta1/{+parent}/traceSinks",
"response": {
"$ref": "ListTraceSinksResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"httpMethod": "GET",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks",
"parameterOrder": [
"parent"
],
"description": "List all sinks for the parent resource (GCP project).",
"id": "cloudtrace.projects.traceSinks.list"
},
"patch": {
"response": {
"$ref": "TraceSink"
},
"id": "cloudtrace.projects.traceSinks.patch",
"path": "v2beta1/{+name}",
"parameterOrder": [
"name"
],
"httpMethod": "PATCH",
"request": {
"$ref": "TraceSink"
},
"parameters": {
"name": {
"type": "string",
"location": "path",
"required": true,
"description": "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\"`.",
"pattern": "^projects/[^/]+/traceSinks/[^/]+$"
},
"updateMask": {
"format": "google-fieldmask",
"location": "query",
"description": "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 updateMask 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`.",
"type": "string"
}
},
"flatPath": "v2beta1/projects/{projectsId}/traceSinks/{traceSinksId}",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"description": "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)."
},
"get": {
"parameterOrder": [
"name"
],
"id": "cloudtrace.projects.traceSinks.get",
"response": {
"$ref": "TraceSink"
},
"httpMethod": "GET",
"path": "v2beta1/{+name}",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.readonly"
],
"description": "Get a trace sink by name under the parent resource (GCP project).",
"parameters": {
"name": {
"description": "Required. The resource name of the sink: \"projects/[PROJECT_NUMBER]/traceSinks/[SINK_ID]\" Example: `\"projects/12345/traceSinks/my-sink-id\"`.",
"required": true,
"location": "path",
"pattern": "^projects/[^/]+/traceSinks/[^/]+$",
"type": "string"
}
},
"flatPath": "v2beta1/projects/{projectsId}/traceSinks/{traceSinksId}"
},
"create": {
"parameterOrder": [
"parent"
],
"response": {
"$ref": "TraceSink"
},
"request": {
"$ref": "TraceSink"
},
"description": "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').",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks",
"path": "v2beta1/{+parent}/traceSinks",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"id": "cloudtrace.projects.traceSinks.create",
"parameters": {
"parent": {
"pattern": "^projects/[^/]+$",
"location": "path",
"type": "string",
"description": "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\"`.",
"required": true
}
},
"httpMethod": "POST"
},
"delete": {
"httpMethod": "DELETE",
"flatPath": "v2beta1/projects/{projectsId}/traceSinks/{traceSinksId}",
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/trace.append"
],
"id": "cloudtrace.projects.traceSinks.delete",
"parameters": {
"name": {
"location": "path",
"type": "string",
"description": "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\"`.",
"pattern": "^projects/[^/]+/traceSinks/[^/]+$",
"required": true
}
},
"response": {
"$ref": "Empty"
},
"parameterOrder": [
"name"
],
"description": "Deletes a sink.",
"path": "v2beta1/{+name}"
}
}
}
}
}
},
"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. ",
"kind": "discovery#restDescription",
"name": "cloudtrace",
"version": "v2beta1",
"title": "Cloud Trace API",
"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"
}
}
}
},
"canonicalName": "Cloud Trace",
"discoveryVersion": "v1",
"batchPath": "batch",
"documentationLink": "https://cloud.google.com/trace",
"ownerName": "Google",
"mtlsRootUrl": "https://cloudtrace.mtls.googleapis.com/",
"schemas": {
"TraceSink": {
"id": "TraceSink",
"description": "Describes a sink used to export traces to a BigQuery dataset. The sink must be created within a project.",
"properties": {
"writerIdentity": {
"readOnly": true,
"type": "string",
"description": "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 write data this account will need the dataEditor role. Read more about roles in the [BigQuery documentation](https://cloud.google.com/bigquery/docs/access-control). E.g.: \"[email protected]\""
},
"name": {
"type": "string",
"description": "Required. The canonical sink resource name, unique within the project. Must be of the form: project/[PROJECT_NUMBER]/traceSinks/[SINK_ID]. E.g.: `\"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 characters, underscores, hyphens, and periods."
},
"outputConfig": {
"$ref": "OutputConfig",
"description": "Required. The export destination."
}
},
"type": "object"
},
"Empty": {
"id": "Empty",
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.",
"type": "object",
"properties": {}
},
"OutputConfig": {
"properties": {
"destination": {
"description": "The destination for writing trace data. Currently only BigQuery is supported. E.g.: \"bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]\"",
"type": "string"
}
},
"description": "OutputConfig contains a destination for writing trace data.",
"type": "object",
"id": "OutputConfig"
},
"ListTraceSinksResponse": {
"id": "ListTraceSinksResponse",
"type": "object",
"properties": {
"nextPageToken": {
"description": "If there might be more results than appear in this response, then `nextPageToken` is included. To get the next set of results, call the same method again using the value of `nextPageToken` as `pageToken`.",
"type": "string"
},
"sinks": {
"type": "array",
"items": {
"$ref": "TraceSink"
},
"description": "A list of sinks."
}
},
"description": "Result returned from `ListTraceSinks`."
}
},
"basePath": "",
"revision": "20200805",
"rootUrl": "https://cloudtrace.googleapis.com/",
"icons": {
"x32": "http://www.google.com/images/icons/product/search-32.gif",
"x16": "http://www.google.com/images/icons/product/search-16.gif"
},
"id": "cloudtrace:v2beta1",
"parameters": {
"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"
},
"access_token": {
"location": "query",
"description": "OAuth access token.",
"type": "string"
},
"quotaUser": {
"location": "query",
"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.",
"type": "string"
},
"alt": {
"enum": [
"json",
"media",
"proto"
],
"location": "query",
"description": "Data format for response.",
"default": "json",
"enumDescriptions": [
"Responses with Content-Type of application/json",
"Media download with context-dependent Content-Type",
"Responses with Content-Type of application/x-protobuf"
],
"type": "string"
},
"fields": {
"description": "Selector specifying which fields to include in a partial response.",
"type": "string",
"location": "query"
},
"$.xgafv": {
"location": "query",
"enum": [
"1",
"2"
],
"description": "V1 error format.",
"type": "string",
"enumDescriptions": [
"v1 error format",
"v2 error format"
]
},
"callback": {
"location": "query",
"type": "string",
"description": "JSONP"
},
"oauth_token": {
"type": "string",
"description": "OAuth 2.0 token for the current user.",
"location": "query"
},
"prettyPrint": {
"default": "true",
"location": "query",
"description": "Returns response with indentations and line breaks.",
"type": "boolean"
},
"uploadType": {
"type": "string",
"location": "query",
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\")."
},
"upload_protocol": {
"type": "string",
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
"location": "query"
}
},
"baseUrl": "https://cloudtrace.googleapis.com/"
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy