你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SchemaRegistryClient 类

定义

架构注册表客户端提供与架构注册表服务交互的操作。

public class SchemaRegistryClient
type SchemaRegistryClient = class
Public Class SchemaRegistryClient
继承
SchemaRegistryClient

构造函数

SchemaRegistryClient()

初始化 类的新实例, SchemaRegistryClient 以便在测试中使用模拟。

SchemaRegistryClient(String, TokenCredential)

初始化 SchemaRegistryClient 的新实例。

SchemaRegistryClient(String, TokenCredential, SchemaRegistryClientOptions)

初始化 SchemaRegistryClient 的新实例。

属性

FullyQualifiedNamespace

获取客户端连接到的完全限定命名空间。

方法

GetSchema(String, CancellationToken)

从 SchemaRegistry 服务获取与架构 ID 关联的架构内容。

GetSchema(String, String, Int32, CancellationToken)

从 SchemaRegistry 服务中获取与组名、架构名称和版本关联的架构内容。

GetSchemaAsync(String, CancellationToken)

从 SchemaRegistry 服务获取与架构 ID 关联的架构内容。

GetSchemaAsync(String, String, Int32, CancellationToken)

从 SchemaRegistry 服务中获取与组名、架构名称和版本关联的架构内容。

GetSchemaProperties(String, String, String, SchemaFormat, CancellationToken)

从 SchemaRegistry 服务获取与架构关联的架构 ID。

GetSchemaPropertiesAsync(String, String, String, SchemaFormat, CancellationToken)

从 SchemaRegistry 服务获取与架构关联的架构 ID。

RegisterSchema(String, String, String, SchemaFormat, CancellationToken)

向 SchemaRegistry 服务注册架构。 如果架构注册表实例中以前不存在该架构,则会将其添加到实例并分配架构 ID。 如果架构以前确实存在于架构注册表实例中,则会将架构的新版本添加到实例并分配新的架构 ID。

RegisterSchemaAsync(String, String, String, SchemaFormat, CancellationToken)

向 SchemaRegistry 服务注册架构。

适用于