SchemaRegistry interface
表示 SchemaRegistry 的接口。
方法
| create |
创建或更新 EventHub 架构组。 |
| delete(string, string, string, Schema |
删除 EventHub 架构组。 |
| get(string, string, string, Schema |
获取 EventHub 架构组的详细信息。 |
| list |
获取命名空间中的所有架构组。 |
方法详细信息
createOrUpdate(string, string, string, SchemaGroup, SchemaRegistryCreateOrUpdateOptionalParams)
创建或更新 EventHub 架构组。
function createOrUpdate(resourceGroupName: string, namespaceName: string, schemaGroupName: string, parameters: SchemaGroup, options?: SchemaRegistryCreateOrUpdateOptionalParams): Promise<SchemaGroup>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- schemaGroupName
-
string
架构组名称
- parameters
- SchemaGroup
提供用于创建事件中心资源的参数。
选项参数。
返回
Promise<SchemaGroup>
delete(string, string, string, SchemaRegistryDeleteOptionalParams)
删除 EventHub 架构组。
function delete(resourceGroupName: string, namespaceName: string, schemaGroupName: string, options?: SchemaRegistryDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- schemaGroupName
-
string
架构组名称
选项参数。
返回
Promise<void>
get(string, string, string, SchemaRegistryGetOptionalParams)
获取 EventHub 架构组的详细信息。
function get(resourceGroupName: string, namespaceName: string, schemaGroupName: string, options?: SchemaRegistryGetOptionalParams): Promise<SchemaGroup>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- schemaGroupName
-
string
架构组名称
- options
- SchemaRegistryGetOptionalParams
选项参数。
返回
Promise<SchemaGroup>
listByNamespace(string, string, SchemaRegistryListByNamespaceOptionalParams)
获取命名空间中的所有架构组。
function listByNamespace(resourceGroupName: string, namespaceName: string, options?: SchemaRegistryListByNamespaceOptionalParams): PagedAsyncIterableIterator<SchemaGroup, SchemaGroup[], PageSettings>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
选项参数。