Compartilhar via


PurviewMetadataPolicyClient.UpdateMetadataPolicyAsync Método

Definição

Atualizações uma política de metadados.

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

Parâmetros

policyId
String

ID de política exclusiva.

content
RequestContent

O conteúdo a ser enviado como o corpo da solicitação.

options
Azure.RequestOptions

As opções de solicitação.

Retornos

Exceções

policyId é nulo.

Comentários

Esquema para Request Body:

{
              name: string,
              id: string,
              version: number,
              properties: {
                description: string,
                decisionRules: [
                  {
                    kind: "decisionrule" | "attributerule",
                    effect: "Deny" | "Permit",
                    dnfCondition: [AttributeMatcher[]]
                  }
                ],
                attributeRules: [
                  {
                    kind: "decisionrule" | "attributerule",
                    id: string,
                    name: string,
                    dnfCondition: [AttributeMatcher[]]
                  }
                ],
                collection: {
                  type: string,
                  referenceName: string
                },
                parentCollectionName: string
              }
            }

Esquema para Response Body:

{
              name: string,
              id: string,
              version: number,
              properties: {
                description: string,
                decisionRules: [
                  {
                    kind: "decisionrule" | "attributerule",
                    effect: "Deny" | "Permit",
                    dnfCondition: [AttributeMatcher[]]
                  }
                ],
                attributeRules: [
                  {
                    kind: "decisionrule" | "attributerule",
                    id: string,
                    name: string,
                    dnfCondition: [AttributeMatcher[]]
                  }
                ],
                collection: {
                  type: string,
                  referenceName: string
                },
                parentCollectionName: string
              }
            }

Esquema para Response Error:

{
              error: {
                code: string,
                message: string,
                target: string,
                details: [ErrorModelAutoGenerated]
              }
            }

Aplica-se a