共用方式為


ArmAuthorizationModelFactory.RoleEligibilityScheduleInstanceData Method

Definition

Initializes a new instance of RoleEligibilityScheduleInstanceData.

public static Azure.ResourceManager.Authorization.RoleEligibilityScheduleInstanceData RoleEligibilityScheduleInstanceData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string scope = default, Azure.Core.ResourceIdentifier roleDefinitionId = default, Guid? principalId = default, Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType? principalType = default, Azure.Core.ResourceIdentifier roleEligibilityScheduleId = default, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType? memberType = default, string condition = default, string conditionVersion = default, DateTimeOffset? createdOn = default, Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = default);
static member RoleEligibilityScheduleInstanceData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Azure.Core.ResourceIdentifier * Nullable<Guid> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType> * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType> * string * string * Nullable<DateTimeOffset> * Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties -> Azure.ResourceManager.Authorization.RoleEligibilityScheduleInstanceData
Public Shared Function RoleEligibilityScheduleInstanceData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional scope As String = Nothing, Optional roleDefinitionId As ResourceIdentifier = Nothing, Optional principalId As Nullable(Of Guid) = Nothing, Optional principalType As Nullable(Of RoleManagementPrincipalType) = Nothing, Optional roleEligibilityScheduleId As ResourceIdentifier = Nothing, Optional status As Nullable(Of RoleManagementScheduleStatus) = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional memberType As Nullable(Of RoleManagementScheduleMemberType) = Nothing, Optional condition As String = Nothing, Optional conditionVersion As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional expandedProperties As RoleManagementExpandedProperties = Nothing) As RoleEligibilityScheduleInstanceData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

scope
String

The role eligibility schedule scope.

roleDefinitionId
ResourceIdentifier

The role definition ID.

principalId
Nullable<Guid>

The principal ID.

principalType
Nullable<RoleManagementPrincipalType>

The principal type of the assigned principal ID.

roleEligibilityScheduleId
ResourceIdentifier

Id of the master role eligibility schedule.

status
Nullable<RoleManagementScheduleStatus>

The status of the role eligibility schedule instance.

startOn
Nullable<DateTimeOffset>

The startDateTime of the role eligibility schedule instance.

endOn
Nullable<DateTimeOffset>

The endDateTime of the role eligibility schedule instance.

memberType
Nullable<RoleManagementScheduleMemberType>

Membership type of the role eligibility schedule.

condition
String

The conditions on the role assignment. This limits the resources it can be assigned to. e.g.: @Resource[Microsoft.Storage/storageAccounts/blobServices/containers:ContainerName] StringEqualsIgnoreCase 'foo_storage_container'.

conditionVersion
String

Version of the condition. Currently accepted value is '2.0'.

createdOn
Nullable<DateTimeOffset>

DateTime when role eligibility schedule was created.

expandedProperties
RoleManagementExpandedProperties

Additional properties of principal, scope and role definition.

Returns

A new RoleEligibilityScheduleInstanceData instance for mocking.

Applies to