Method: properties.dataStreams.measurementProtocolSecrets.patch
更新 Measurement Protocol 密钥。
HTTP 请求
PATCH https://analyticsadmin.googleapis.com/v1beta/{measurementProtocolSecret.name=properties/*/dataStreams/*/measurementProtocolSecrets/*}
网址采用 gRPC 转码语法。
路径参数
参数 |
measurementProtocolSecret.name |
string
仅限输出。此 Secret 的资源名称。此 Secret 可以是任何类型的串流的子级。Format: properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
|
查询参数
参数 |
updateMask |
string (FieldMask format)
必需。要更新的字段的列表。系统不会更新省略的字段。 这是完全限定字段名称的逗号分隔列表。示例:"user.displayName,photo" 。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/analytics.edit
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-14。
[null,null,["最后更新时间 (UTC):2025-01-14。"],[[["Updates an existing measurement protocol secret using a PATCH request to a specific endpoint."],["Requires specifying the measurement protocol secret's resource name in the path parameter."],["Allows selective field updates via the `updateMask` query parameter."],["Uses a `MeasurementProtocolSecret` object in the request body to define the updates and returns the same object type in the response if successful."],["Needs authorization with the `https://www.googleapis.com/auth/analytics.edit` scope."]]],["This outlines how to update a measurement protocol secret using a `PATCH` request to the specified URL. The URL utilizes gRPC Transcoding syntax and includes a path parameter `measurementProtocolSecret.name`. A `updateMask` query parameter is required to specify which fields to update. The request and response bodies both use the `MeasurementProtocolSecret` resource. Authorization requires the `https://www.googleapis.com/auth/analytics.edit` OAuth scope.\n"]]