logging.projects.sinks.patch
PATCH {{baseUrl}}/v2/:sinkName?uniqueWriterIdentity=<boolean>&updateMask=<string>&$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>"aUser=<string>&upload_protocol=<string>&uploadType=<string>
Updates a sink. This method replaces the following fields in the existing sink with values from the new sink: destination, and filter.The updated sink might also have a new writeridentity; see the uniquewriter_identity field.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
uniqueWriterIdentity | string | Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field: If the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity. If the old value is false and the new value is true, then writer_identity is changed to a unique service account. It is an error if the old value is true and the new value is set to false or defaulted to false. | |
updateMask | string | Optional. Field mask that specifies the fields in sink that need an update. A sink field will be overwritten if, and only if, it is in the update mask. name and output only fields cannot be updated.An empty updateMask is temporarily treated as using the following mask for backwards compatibility purposes: destination,filter,includeChildren At some point in the future, behavior will be removed and specifying an empty updateMask will be an error.For a detailed FieldMask definition, see https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMaskExample: updateMask=filter. | |
$.xgafv | string | V1 error format. | |
access_token | string | OAuth access token. | |
alt | string | Data format for response. | |
callback | string | JSONP | |
fields | string | Selector specifying which fields to include in a partial response. | |
key | string | 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. | |
oauth_token | string | OAuth 2.0 token for the current user. | |
prettyPrint | string | Returns response with indentations and line breaks. | |
quotaUser | string | 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. | |
upload_protocol | string | Upload protocol for media (e.g. "raw", "multipart"). | |
uploadType | string | Legacy upload protocol for media (e.g. "media", "multipart"). |
Request Body
{"bigqueryOptions"=>{"usePartitionedTables"=>false, "usesTimestampColumnPartitioning"=>true}, "description"=>"<string>", "destination"=>"<string>", "disabled"=>"<boolean>", "exclusions"=>[{"createTime"=>"ut consequat dolore Lorem aliqua", "description"=>"<string>", "disabled"=>"<boolean>", "filter"=>"<string>", "name"=>"<string>", "updateTime"=>"qui sunt elit"}, {"createTime"=>"minim sit", "description"=>"<string>", "disabled"=>"<boolean>", "filter"=>"<string>", "name"=>"<string>", "updateTime"=>"nostrud fugiat"}], "filter"=>"<string>", "includeChildren"=>"<boolean>", "name"=>"<string>", "outputVersionFormat"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"bigqueryOptions":{"usePartitionedTables":true,"usesTimestampColumnPartitioning":false},"createTime":"reprehenderit esse","description":"\u003cstring\u003e","destination":"\u003cstring\u003e","disabled":"\u003cboolean\u003e","exclusions":[{"createTime":"aute","description":"\u003cstring\u003e","disabled":"\u003cboolean\u003e","filter":"\u003cstring\u003e","name":"\u003cstring\u003e","updateTime":"amet"},{"createTime":"ad ut","description":"\u003cstring\u003e","disabled":"\u003cboolean\u003e","filter":"\u003cstring\u003e","name":"\u003cstring\u003e","updateTime":"officia irure Excepteur exer"}],"filter":"\u003cstring\u003e","includeChildren":"\u003cboolean\u003e","name":"\u003cstring\u003e","outputVersionFormat":"\u003cstring\u003e","updateTime":"fugiat culpa in","writerIdentity":"ut ipsum Lorem ad"}