共用方式為


Topic 類別

EventGrid 主題。

變數只會由伺服器填入,而且會在傳送要求時予以忽略。

必須填入所有必要的參數,才能傳送至 Azure。

繼承
azure.mgmt.eventgrid.models._models_py3.TrackedResource
Topic

建構函式

Topic(*, location: str, tags: Dict[str, str] | None = None, identity: IdentityInfo | None = None, input_schema: str | InputSchema | None = None, input_schema_mapping: InputSchemaMapping | None = None, public_network_access: str | PublicNetworkAccess | None = None, inbound_ip_rules: List[InboundIpRule] | None = None, disable_local_auth: bool | None = False, data_residency_boundary: str | DataResidencyBoundary | None = None, **kwargs)

變數

id
str

資源的完整識別碼。

name
str

資源名稱。

type
str

資源類型。

location
str

必要。 資源的位置。

tags
dict[str, str]

一組標記。 資源的標記。

identity
IdentityInfo

資源的身分識別資訊。

system_data
SystemData

與主題資源相關的系統中繼資料。

private_endpoint_connections
list[PrivateEndpointConnection]
provisioning_state
strTopicProvisioningState

主題的布建狀態。 可能的值包括:「建立」、「更新」、「刪除」、「成功」、「已取消」、「失敗」。

endpoint
str

主題的端點。

input_schema
strInputSchema

這會決定事件方格在發佈至主題的傳入事件時應該預期的格式。 可能的值為:「EventGridSchema」、「CustomEventSchema」、「CloudEventSchemaV1_0」。

input_schema_mapping
InputSchemaMapping

這可讓您使用自訂事件架構進行發佈。 您可以指定 InputSchemaMapping,將來源架構的各種屬性對應至 EventGridEvent 架構的各種必要屬性。

metric_resource_id
str

主題的計量資源識別碼。

public_network_access
strPublicNetworkAccess

這會判斷是否允許透過公用網路流量。 預設會啟用它。 您可以藉由設定 <seealso cref="P:Microsoft.Azure.Events.ResourceProvider.Common.Contracts.TopicProperties.InboundIpRules" /> 來進一步限制特定 IP。 可能的值包括:「Enabled」、「Disabled」。

inbound_ip_rules
list[InboundIpRule]

這可以用來限制來自特定 IP 的流量,而不是所有 IP。 注意:只有在啟用 PublicNetworkAccess 時,才會考慮這些專案。

disable_local_auth
bool

此布林值是用來啟用或停用本機驗證。預設值為 false。 當 屬性設定為 true 時,只有在允許使用者發佈至主題時,才會使用 AAD 權杖進行驗證。

data_residency_boundary
strDataResidencyBoundary

Data Residency資源的界限。 可能的值為:「WithinGeopair」、「WithinRegion」。