Aracılığıyla paylaş


ResourceManagerModelFactory.GenericResourceData Method

Definition

Initializes a new instance of GenericResourceData.

public static Azure.ResourceManager.Resources.GenericResourceData GenericResourceData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.AzureLocation location = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.ResourceManager.Models.ArmPlan plan = default, BinaryData properties = default, string kind = default, string managedBy = default, Azure.ResourceManager.Resources.Models.ResourcesSku sku = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, DateTimeOffset? createdOn = default, DateTimeOffset? changedOn = default, string provisioningState = default);
static member GenericResourceData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * System.Collections.Generic.IDictionary<string, string> * Azure.Core.AzureLocation * Azure.ResourceManager.Resources.Models.ExtendedLocation * Azure.ResourceManager.Models.ArmPlan * BinaryData * string * string * Azure.ResourceManager.Resources.Models.ResourcesSku * Azure.ResourceManager.Models.ManagedServiceIdentity * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string -> Azure.ResourceManager.Resources.GenericResourceData
Public Shared Function GenericResourceData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional location As AzureLocation = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional plan As ArmPlan = Nothing, Optional properties As BinaryData = Nothing, Optional kind As String = Nothing, Optional managedBy As String = Nothing, Optional sku As ResourcesSku = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional changedOn As Nullable(Of DateTimeOffset) = Nothing, Optional provisioningState As String = Nothing) As GenericResourceData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

tags
IDictionary<String,String>

The tags.

location
AzureLocation

The location.

extendedLocation
ExtendedLocation

Resource extended location.

plan
ArmPlan

The plan of the resource.

properties
BinaryData

The resource properties.

kind
String

The kind of the resource.

managedBy
String

ID of the resource that manages this resource.

sku
ResourcesSku

The SKU of the resource.

identity
ManagedServiceIdentity

The identity of the resource.

createdOn
Nullable<DateTimeOffset>

The created time of the resource. This is only present if requested via the $expand query parameter.

changedOn
Nullable<DateTimeOffset>

The changed time of the resource. This is only present if requested via the $expand query parameter.

provisioningState
String

The provisioning state of the resource. This is only present if requested via the $expand query parameter.

Returns

A new GenericResourceData instance for mocking.

Applies to