你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Topic 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Topic()
初始化 Topic 类的新实例。
public Topic ();
Public Sub New ()
适用于
Topic(String, String, String, String, IDictionary<String,String>, IList<PrivateEndpointConnection>, String, String, String, InputSchemaMapping, String, String, IList<InboundIpRule>, Nullable<Boolean>, String, IdentityInfo, SystemData)
初始化 Topic 类的新实例。
public Topic (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.PrivateEndpointConnection> privateEndpointConnections = default, string provisioningState = default, string endpoint = default, string inputSchema = default, Microsoft.Azure.Management.EventGrid.Models.InputSchemaMapping inputSchemaMapping = default, string metricResourceId = default, string publicNetworkAccess = default, System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.InboundIpRule> inboundIpRules = default, bool? disableLocalAuth = default, string dataResidencyBoundary = default, Microsoft.Azure.Management.EventGrid.Models.IdentityInfo identity = default, Microsoft.Azure.Management.EventGrid.Models.SystemData systemData = default);
new Microsoft.Azure.Management.EventGrid.Models.Topic : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.PrivateEndpointConnection> * string * string * string * Microsoft.Azure.Management.EventGrid.Models.InputSchemaMapping * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.EventGrid.Models.InboundIpRule> * Nullable<bool> * string * Microsoft.Azure.Management.EventGrid.Models.IdentityInfo * Microsoft.Azure.Management.EventGrid.Models.SystemData -> Microsoft.Azure.Management.EventGrid.Models.Topic
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing, Optional provisioningState As String = Nothing, Optional endpoint As String = Nothing, Optional inputSchema As String = Nothing, Optional inputSchemaMapping As InputSchemaMapping = Nothing, Optional metricResourceId As String = Nothing, Optional publicNetworkAccess As String = Nothing, Optional inboundIpRules As IList(Of InboundIpRule) = Nothing, Optional disableLocalAuth As Nullable(Of Boolean) = Nothing, Optional dataResidencyBoundary As String = Nothing, Optional identity As IdentityInfo = Nothing, Optional systemData As SystemData = Nothing)
参数
- location
- String
资源的位置。
- id
- String
资源的完全限定标识符。
- name
- String
资源的名称。
- type
- String
资源的类型。
- tags
- IDictionary<String,String>
资源的标记。
- privateEndpointConnections
- IList<PrivateEndpointConnection>
- provisioningState
- String
主题的预配状态。 可能的值包括:“Create”、“Updateing”、“删除”、“Succeeded”、“Canceled”、“Failed”
- endpoint
- String
主题的终结点。
- inputSchema
- String
这将确定事件网格应预期发布到主题的传入事件的格式。 可能的值包括:“EventGridSchema”、“CustomEventSchema”、“CloudEventSchemaV1_0”
- inputSchemaMapping
- InputSchemaMapping
这样就可以使用自定义事件架构进行发布。 可以指定 InputSchemaMapping,将源架构的各种属性映射到 EventGridEvent 架构的各种必需属性。
- metricResourceId
- String
主题的指标资源 ID。
- publicNetworkAccess
- String
这确定是否允许通过公用网络流量。 默认情况下,它处于启用状态。 可以通过配置 <seealso cref=“P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicProperties.InboundIpRules” />来进一步限制为特定的 IP。 可能的值包括:“Enabled”、“Disabled”
- inboundIpRules
- IList<InboundIpRule>
这可用于限制来自特定 IP 而不是所有 IP 的流量。 注意:仅当启用了 PublicNetworkAccess 时,才会考虑这些项。
此布尔值用于启用或禁用本地身份验证。默认值为 false。 当 属性设置为 true 时,如果允许用户发布到主题,则仅使用 AAD 令牌进行身份验证。
- dataResidencyBoundary
- String
Data Residency资源的边界。 可能的值包括:“WithinGeopair”、“WithinRegion”
- identity
- IdentityInfo
资源的标识信息。
- systemData
- SystemData
与主题资源相关的系统元数据。