Freigeben über


StateStoreResourceRule Constructor

Definition

Initializes a new instance of StateStoreResourceRule.

public StateStoreResourceRule(Azure.ResourceManager.IotOperations.Models.StateStoreResourceKeyType keyType, System.Collections.Generic.IEnumerable<string> keys, Azure.ResourceManager.IotOperations.Models.StateStoreResourceDefinitionMethod method);
new Azure.ResourceManager.IotOperations.Models.StateStoreResourceRule : Azure.ResourceManager.IotOperations.Models.StateStoreResourceKeyType * seq<string> * Azure.ResourceManager.IotOperations.Models.StateStoreResourceDefinitionMethod -> Azure.ResourceManager.IotOperations.Models.StateStoreResourceRule
Public Sub New (keyType As StateStoreResourceKeyType, keys As IEnumerable(Of String), method As StateStoreResourceDefinitionMethod)

Parameters

keyType
StateStoreResourceKeyType

Allowed keyTypes pattern, string, binary. The key type used for matching, for example pattern tries to match the key to a glob-style pattern and string checks key is equal to value provided in keys.

keys
IEnumerable<String>

Give access to state store keys for the corresponding principals defined. When key type is pattern set glob-style pattern (e.g., '', 'clients/').

method
StateStoreResourceDefinitionMethod

Give access for Read, Write and ReadWrite access level.

Exceptions

keys is null.

Applies to