Topics interface
表示主题的接口。
方法
方法详细信息
createOrUpdate(string, string, string, SBTopic, TopicsCreateOrUpdateOptionalParams)
在指定的命名空间中创建主题。
function createOrUpdate(resourceGroupName: string, namespaceName: string, topicName: string, parameters: SBTopic, options?: TopicsCreateOrUpdateOptionalParams): Promise<SBTopic>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- parameters
- SBTopic
提供用于创建主题资源的参数。
选项参数。
返回
Promise<SBTopic>
createOrUpdateAuthorizationRule(string, string, string, string, SBAuthorizationRule, TopicsCreateOrUpdateAuthorizationRuleOptionalParams)
为指定主题创建授权规则。
function createOrUpdateAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: SBAuthorizationRule, options?: TopicsCreateOrUpdateAuthorizationRuleOptionalParams): Promise<SBAuthorizationRule>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- authorizationRuleName
-
string
授权规则名称。
- parameters
- SBAuthorizationRule
共享访问授权规则。
选项参数。
返回
Promise<SBAuthorizationRule>
delete(string, string, string, TopicsDeleteOptionalParams)
从指定的命名空间和资源组中删除主题。
function delete(resourceGroupName: string, namespaceName: string, topicName: string, options?: TopicsDeleteOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- options
- TopicsDeleteOptionalParams
选项参数。
返回
Promise<void>
deleteAuthorizationRule(string, string, string, string, TopicsDeleteAuthorizationRuleOptionalParams)
删除主题授权规则。
function deleteAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: TopicsDeleteAuthorizationRuleOptionalParams): Promise<void>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- authorizationRuleName
-
string
授权规则名称。
选项参数。
返回
Promise<void>
get(string, string, string, TopicsGetOptionalParams)
返回指定主题的说明。
function get(resourceGroupName: string, namespaceName: string, topicName: string, options?: TopicsGetOptionalParams): Promise<SBTopic>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- options
- TopicsGetOptionalParams
选项参数。
返回
Promise<SBTopic>
getAuthorizationRule(string, string, string, string, TopicsGetAuthorizationRuleOptionalParams)
返回指定的授权规则。
function getAuthorizationRule(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: TopicsGetAuthorizationRuleOptionalParams): Promise<SBAuthorizationRule>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- authorizationRuleName
-
string
授权规则名称。
选项参数。
返回
Promise<SBAuthorizationRule>
listAuthorizationRules(string, string, string, TopicsListAuthorizationRulesOptionalParams)
获取主题的授权规则。
function listAuthorizationRules(resourceGroupName: string, namespaceName: string, topicName: string, options?: TopicsListAuthorizationRulesOptionalParams): PagedAsyncIterableIterator<SBAuthorizationRule, SBAuthorizationRule[], PageSettings>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
选项参数。
返回
listByNamespace(string, string, TopicsListByNamespaceOptionalParams)
获取命名空间中的所有主题。
function listByNamespace(resourceGroupName: string, namespaceName: string, options?: TopicsListByNamespaceOptionalParams): PagedAsyncIterableIterator<SBTopic, SBTopic[], PageSettings>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
选项参数。
返回
listKeys(string, string, string, string, TopicsListKeysOptionalParams)
获取主题的主连接字符串和辅助连接字符串。
function listKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, options?: TopicsListKeysOptionalParams): Promise<AccessKeys>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- authorizationRuleName
-
string
授权规则名称。
- options
- TopicsListKeysOptionalParams
选项参数。
返回
Promise<AccessKeys>
regenerateKeys(string, string, string, string, RegenerateAccessKeyParameters, TopicsRegenerateKeysOptionalParams)
重新生成主题的主连接字符串或辅助连接字符串。
function regenerateKeys(resourceGroupName: string, namespaceName: string, topicName: string, authorizationRuleName: string, parameters: RegenerateAccessKeyParameters, options?: TopicsRegenerateKeysOptionalParams): Promise<AccessKeys>
参数
- resourceGroupName
-
string
Azure 订阅中的资源组的名称。
- namespaceName
-
string
命名空间名称
- topicName
-
string
主题名称。
- authorizationRuleName
-
string
授权规则名称。
- parameters
- RegenerateAccessKeyParameters
提供用于重新生成授权规则的参数。
选项参数。
返回
Promise<AccessKeys>