Compartilhar via


PurviewMetadataPolicyClient.UpdateMetadataPolicy Método

Definição

Atualizações uma política de metadados.

public virtual Azure.Response UpdateMetadataPolicy (string policyId, Azure.Core.RequestContent content, Azure.RequestOptions options = default);
abstract member UpdateMetadataPolicy : string * Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
override this.UpdateMetadataPolicy : string * Azure.Core.RequestContent * Azure.RequestOptions -> Azure.Response
Public Overridable Function UpdateMetadataPolicy (policyId As String, content As RequestContent, Optional options As RequestOptions = Nothing) As 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