다음을 통해 공유


ArmApiManagementModelFactory.UserContractData Method

Definition

Initializes a new instance of UserContractData.

public static Azure.ResourceManager.ApiManagement.UserContractData UserContractData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.ApiManagement.Models.ApiManagementUserState? state = default, string note = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ApiManagement.Models.UserIdentityContract> identities = default, string firstName = default, string lastName = default, string email = default, DateTimeOffset? registriesOn = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ApiManagement.Models.GroupContractProperties> groups = default);
static member UserContractData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.ApiManagement.Models.ApiManagementUserState> * string * seq<Azure.ResourceManager.ApiManagement.Models.UserIdentityContract> * string * string * string * Nullable<DateTimeOffset> * seq<Azure.ResourceManager.ApiManagement.Models.GroupContractProperties> -> Azure.ResourceManager.ApiManagement.UserContractData
Public Shared Function UserContractData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional state As Nullable(Of ApiManagementUserState) = Nothing, Optional note As String = Nothing, Optional identities As IEnumerable(Of UserIdentityContract) = Nothing, Optional firstName As String = Nothing, Optional lastName As String = Nothing, Optional email As String = Nothing, Optional registriesOn As Nullable(Of DateTimeOffset) = Nothing, Optional groups As IEnumerable(Of GroupContractProperties) = Nothing) As UserContractData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

state
Nullable<ApiManagementUserState>

Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active.

note
String

Optional note about a user set by the administrator.

identities
IEnumerable<UserIdentityContract>

Collection of user identities.

firstName
String

First name.

lastName
String

Last name.

email
String

Email address.

registriesOn
Nullable<DateTimeOffset>

Date of user registration. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.

groups
IEnumerable<GroupContractProperties>

Collection of groups user is part of.

Returns

A new UserContractData instance for mocking.

Applies to