Condividi tramite


PurviewEntities.DeleteLabelsByUniqueAttributeAsync Method

Definition

Delete given labels to a given entity identified by its type and unique attributes, if labels is null/empty, no labels will be removed. If any labels in labels set are non-existing labels, they will be ignored, only existing labels will be removed. In addition to the typeName path parameter, attribute key-value pair(s) can be provided in the following format: attr:<attrName>=<attrValue>. NOTE: The attrName and attrValue should be unique across entities, eg. qualifiedName. The REST request would look something like this: DELETE /v2/entity/uniqueAttribute/type/aType?attr:aTypeAttribute=someValue.

public virtual System.Threading.Tasks.Task<Azure.Response> DeleteLabelsByUniqueAttributeAsync (string typeName, Azure.Core.RequestContent content, string attrQualifiedName = default, Azure.RequestContext context = default);
abstract member DeleteLabelsByUniqueAttributeAsync : string * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.DeleteLabelsByUniqueAttributeAsync : string * Azure.Core.RequestContent * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DeleteLabelsByUniqueAttributeAsync (typeName As String, content As RequestContent, Optional attrQualifiedName As String = Nothing, Optional context As RequestContext = Nothing) As Task(Of Response)

Parameters

typeName
String

The name of the type.

content
RequestContent

The content to send as the body of the request.

attrQualifiedName
String

The qualified name of the entity.

context
RequestContext

The request context, which can override default behaviors on the request on a per-call basis.

Returns

Exceptions

typeName is null.

typeName is an empty string, and was expected to be non-empty.

Applies to