Partager via


PurviewMetadataPolicyClient.UpdateMetadataPolicyAsync Méthode

Définition

Mises à jour une stratégie de métadonnées.

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)

Paramètres

policyId
String

ID de stratégie unique.

content
RequestContent

Contenu à envoyer en tant que corps de la demande.

options
Azure.RequestOptions

Options de demande.

Retours

Exceptions

policyId a la valeur null.

Remarques

Schéma pour 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
              }
            }

Schéma pour 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
              }
            }

Schéma pour Response Error:

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

S’applique à