共用方式為


ArmAuthorizationModelFactory.RoleEligibilityScheduleData Method

Definition

Initializes a new instance of RoleEligibilityScheduleData.

public static Azure.ResourceManager.Authorization.RoleEligibilityScheduleData RoleEligibilityScheduleData (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 roleEligibilityScheduleRequestId = default, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleMemberType? memberType = default, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default, DateTimeOffset? startOn = default, DateTimeOffset? endOn = default, string condition = default, string conditionVersion = default, DateTimeOffset? createdOn = default, DateTimeOffset? updatedOn = default, Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = default);
static member RoleEligibilityScheduleData : 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.RoleManagementScheduleMemberType> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus> * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * string * string * Nullable<DateTimeOffset> * Nullable<DateTimeOffset> * Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties -> Azure.ResourceManager.Authorization.RoleEligibilityScheduleData
Public Shared Function RoleEligibilityScheduleData (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 roleEligibilityScheduleRequestId As ResourceIdentifier = Nothing, Optional memberType As Nullable(Of RoleManagementScheduleMemberType) = Nothing, Optional status As Nullable(Of RoleManagementScheduleStatus) = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional condition As String = Nothing, Optional conditionVersion As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional updatedOn As Nullable(Of DateTimeOffset) = Nothing, Optional expandedProperties As RoleManagementExpandedProperties = Nothing) As RoleEligibilityScheduleData

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.

roleEligibilityScheduleRequestId
ResourceIdentifier

The id of roleEligibilityScheduleRequest used to create this roleAssignmentSchedule.

memberType
Nullable<RoleManagementScheduleMemberType>

Membership type of the role eligibility schedule.

status
Nullable<RoleManagementScheduleStatus>

The status of the role eligibility schedule.

startOn
Nullable<DateTimeOffset>

Start DateTime when role eligibility schedule.

endOn
Nullable<DateTimeOffset>

End DateTime when 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.

updatedOn
Nullable<DateTimeOffset>

DateTime when role eligibility schedule was modified.

expandedProperties
RoleManagementExpandedProperties

Additional properties of principal, scope and role definition.

Returns

A new RoleEligibilityScheduleData instance for mocking.

Applies to