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>&quotaUser=<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

KeyDatatypeRequiredDescription
uniqueWriterIdentitystringOptional. 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.
updateMaskstringOptional. 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.
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI 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_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable 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_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy 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

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;bigqueryOptions&quot;:{&quot;usePartitionedTables&quot;:true,&quot;usesTimestampColumnPartitioning&quot;:false},&quot;createTime&quot;:&quot;reprehenderit esse&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;destination&quot;:&quot;\u003cstring\u003e&quot;,&quot;disabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;exclusions&quot;:[{&quot;createTime&quot;:&quot;aute&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;disabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;filter&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;updateTime&quot;:&quot;amet&quot;},{&quot;createTime&quot;:&quot;ad ut&quot;,&quot;description&quot;:&quot;\u003cstring\u003e&quot;,&quot;disabled&quot;:&quot;\u003cboolean\u003e&quot;,&quot;filter&quot;:&quot;\u003cstring\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;updateTime&quot;:&quot;officia irure Excepteur exer&quot;}],&quot;filter&quot;:&quot;\u003cstring\u003e&quot;,&quot;includeChildren&quot;:&quot;\u003cboolean\u003e&quot;,&quot;name&quot;:&quot;\u003cstring\u003e&quot;,&quot;outputVersionFormat&quot;:&quot;\u003cstring\u003e&quot;,&quot;updateTime&quot;:&quot;fugiat culpa in&quot;,&quot;writerIdentity&quot;:&quot;ut ipsum Lorem ad&quot;}