共用方式為


AuthorizationRule<RuleT> Interface

Type Parameters

RuleT

the specific authorization rule type

Implements

public interface AuthorizationRule
extends NestedResource, HasInnerModel<AuthorizationRuleInner>, HasManager<EventHubsManager>, Refreshable<RuleT>

The base type representing authorization rule of event hub namespace and event hub.

Method Summary

Modifier and Type Method and Description
abstract EventHubAuthorizationKey getKeys()

Gets the access keys (primary, secondary) and the connection strings.

abstract Mono<EventHubAuthorizationKey> getKeysAsync()

Gets a representation of the deferred computation.

abstract EventHubAuthorizationKey regenerateKey(KeyType keyType)

Regenerates primary or secondary keys.

abstract Mono<EventHubAuthorizationKey> regenerateKeyAsync(KeyType keyType)

Regenerates primary or secondary access keys.

abstract List<AccessRights> rights()

Gets rights associated with the authorization rule.

Method Details

getKeys

public abstract EventHubAuthorizationKey getKeys()

Gets the access keys (primary, secondary) and the connection strings.

Returns:

the access keys (primary, secondary) and the connection strings

getKeysAsync

public abstract Mono getKeysAsync()

Gets a representation of the deferred computation.

Returns:

a representation of the deferred computation of this call, returning access keys (primary, secondary) and the connection strings

regenerateKey

public abstract EventHubAuthorizationKey regenerateKey(KeyType keyType)

Regenerates primary or secondary keys.

Parameters:

keyType - the key to regenerate

Returns:

the access keys (primary, secondary) and the connection strings

regenerateKeyAsync

public abstract Mono regenerateKeyAsync(KeyType keyType)

Regenerates primary or secondary access keys.

Parameters:

keyType - the key to regenerate

Returns:

a representation of the deferred computation of this call, returning access keys (primary, secondary) and the connection strings

rights

public abstract List rights()

Gets rights associated with the authorization rule.

Returns:

rights associated with the authorization rule

Applies to