ArmIotOperationsModelFactory.BrokerResourceRule Method

Definition

public static Azure.ResourceManager.IotOperations.Models.BrokerResourceRule BrokerResourceRule(Azure.ResourceManager.IotOperations.Models.BrokerResourceDefinitionMethod method = default, System.Collections.Generic.IEnumerable<string> clientIds = default, System.Collections.Generic.IEnumerable<string> topics = default);
static member BrokerResourceRule : Azure.ResourceManager.IotOperations.Models.BrokerResourceDefinitionMethod * seq<string> * seq<string> -> Azure.ResourceManager.IotOperations.Models.BrokerResourceRule
Public Shared Function BrokerResourceRule (Optional method As BrokerResourceDefinitionMethod = Nothing, Optional clientIds As IEnumerable(Of String) = Nothing, Optional topics As IEnumerable(Of String) = Nothing) As BrokerResourceRule

Parameters

method
BrokerResourceDefinitionMethod

Give access for a Broker method (i.e., Connect, Subscribe, or Publish).

clientIds
IEnumerable<String>

A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection. This subfield may be set if the method is Connect.

topics
IEnumerable<String>

A list of topics or topic patterns that match the topics that the clients can publish or subscribe to. This subfield is required if the method is Publish or Subscribe.

Returns

A new BrokerResourceRule instance for mocking.

Applies to