你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ArmEventHubsModelFactory.EventHubData Method

Definition

Initializes a new instance of EventHubData.

public static Azure.ResourceManager.EventHubs.EventHubData EventHubData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IEnumerable<string> partitionIds = default, DateTimeOffset? createdOn = default, DateTimeOffset? updatedOn = default, long? partitionCount = default, Azure.ResourceManager.EventHubs.Models.EventHubEntityStatus? status = default, string userMetadata = default, Azure.ResourceManager.EventHubs.Models.CaptureDescription captureDescription = default, Azure.ResourceManager.EventHubs.Models.RetentionDescription retentionDescription = default, Azure.Core.AzureLocation? location = default);
static member EventHubData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * seq<string> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<int64> * Nullable<Azure.ResourceManager.EventHubs.Models.EventHubEntityStatus> * string * Azure.ResourceManager.EventHubs.Models.CaptureDescription * Azure.ResourceManager.EventHubs.Models.RetentionDescription * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.EventHubs.EventHubData
Public Shared Function EventHubData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional partitionIds As IEnumerable(Of String) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional partitionCount As Nullable(Of Long) = Nothing, Optional status As Nullable(Of EventHubEntityStatus) = Nothing, Optional userMetadata As String = Nothing, Optional captureDescription As CaptureDescription = Nothing, Optional retentionDescription As RetentionDescription = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As EventHubData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

partitionIds
IEnumerable<String>

Current number of shards on the Event Hub.

createdOn
Nullable<DateTimeOffset>

Exact time the Event Hub was created.

updatedOn
Nullable<DateTimeOffset>

The exact time the message was updated.

partitionCount
Nullable<Int64>

Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.

status
Nullable<EventHubEntityStatus>

Enumerates the possible values for the status of the Event Hub.

userMetadata
String

Gets and Sets Metadata of User.

captureDescription
CaptureDescription

Properties of capture description.

retentionDescription
RetentionDescription

Event Hub retention settings.

location
Nullable<AzureLocation>

The geo-location where the resource lives.

Returns

A new EventHubData instance for mocking.

Applies to