共用方式為


ArmAuthorizationModelFactory.RoleAssignmentScheduleRequestData Method

Definition

Initializes a new instance of RoleAssignmentScheduleRequestData.

public static Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData RoleAssignmentScheduleRequestData (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.ResourceManager.Authorization.Models.RoleManagementScheduleRequestType? requestType = default, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus? status = default, string approvalId = default, Azure.Core.ResourceIdentifier targetRoleAssignmentScheduleId = default, Azure.Core.ResourceIdentifier targetRoleAssignmentScheduleInstanceId = default, Azure.Core.ResourceIdentifier linkedRoleEligibilityScheduleId = default, string justification = default, Azure.ResourceManager.Authorization.Models.RoleAssignmentScheduleTicketInfo ticketInfo = default, string condition = default, string conditionVersion = default, DateTimeOffset? createdOn = default, Guid? requestorId = default, Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties expandedProperties = default, DateTimeOffset? startOn = default, Azure.ResourceManager.Authorization.Models.RoleManagementScheduleExpirationType? expirationType = default, DateTimeOffset? endOn = default, TimeSpan? duration = default);
static member RoleAssignmentScheduleRequestData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Azure.Core.ResourceIdentifier * Nullable<Guid> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementPrincipalType> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementScheduleRequestType> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementScheduleStatus> * string * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * Azure.ResourceManager.Authorization.Models.RoleAssignmentScheduleTicketInfo * string * string * Nullable<DateTimeOffset> * Nullable<Guid> * Azure.ResourceManager.Authorization.Models.RoleManagementExpandedProperties * Nullable<DateTimeOffset> * Nullable<Azure.ResourceManager.Authorization.Models.RoleManagementScheduleExpirationType> * Nullable<DateTimeOffset> * Nullable<TimeSpan> -> Azure.ResourceManager.Authorization.RoleAssignmentScheduleRequestData
Public Shared Function RoleAssignmentScheduleRequestData (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 requestType As Nullable(Of RoleManagementScheduleRequestType) = Nothing, Optional status As Nullable(Of RoleManagementScheduleStatus) = Nothing, Optional approvalId As String = Nothing, Optional targetRoleAssignmentScheduleId As ResourceIdentifier = Nothing, Optional targetRoleAssignmentScheduleInstanceId As ResourceIdentifier = Nothing, Optional linkedRoleEligibilityScheduleId As ResourceIdentifier = Nothing, Optional justification As String = Nothing, Optional ticketInfo As RoleAssignmentScheduleTicketInfo = Nothing, Optional condition As String = Nothing, Optional conditionVersion As String = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing, Optional requestorId As Nullable(Of Guid) = Nothing, Optional expandedProperties As RoleManagementExpandedProperties = Nothing, Optional startOn As Nullable(Of DateTimeOffset) = Nothing, Optional expirationType As Nullable(Of RoleManagementScheduleExpirationType) = Nothing, Optional endOn As Nullable(Of DateTimeOffset) = Nothing, Optional duration As Nullable(Of TimeSpan) = Nothing) As RoleAssignmentScheduleRequestData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

scope
String

The role assignment schedule request scope.

roleDefinitionId
ResourceIdentifier

The role definition ID.

principalId
Nullable<Guid>

The principal ID.

principalType
Nullable<RoleManagementPrincipalType>

The principal type of the assigned principal ID.

requestType
Nullable<RoleManagementScheduleRequestType>

The type of the role assignment schedule request. Eg: SelfActivate, AdminAssign etc.

status
Nullable<RoleManagementScheduleStatus>

The status of the role assignment schedule request.

approvalId
String

The approvalId of the role assignment schedule request.

targetRoleAssignmentScheduleId
ResourceIdentifier

The resultant role assignment schedule id or the role assignment schedule id being updated.

targetRoleAssignmentScheduleInstanceId
ResourceIdentifier

The role assignment schedule instance id being updated.

linkedRoleEligibilityScheduleId
ResourceIdentifier

The linked role eligibility schedule id - to activate an eligibility.

justification
String

Justification for the role assignment.

ticketInfo
RoleAssignmentScheduleTicketInfo

Ticket Info of the role assignment.

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 assignment schedule request was created.

requestorId
Nullable<Guid>

Id of the user who created this request.

expandedProperties
RoleManagementExpandedProperties

Additional properties of principal, scope and role definition.

startOn
Nullable<DateTimeOffset>

Start DateTime of the role assignment schedule.

expirationType
Nullable<RoleManagementScheduleExpirationType>

Type of the role assignment schedule expiration.

endOn
Nullable<DateTimeOffset>

End DateTime of the role assignment schedule.

duration
Nullable<TimeSpan>

Duration of the role assignment schedule in TimeSpan.

Returns

A new RoleAssignmentScheduleRequestData instance for mocking.

Applies to