Documentation ¶
Index ¶
- type AssignmentApproval
- type AssignmentApprovalStage
- type AssignmentApprovalStages
- type Client
- func (c *Client) GroupGetByID(ctx context.Context, id string) (Group, error)
- func (c *Client) Me(ctx context.Context) (User, error)
- func (c *Client) PIMGroupActiveAssignments(ctx context.Context) (GroupActiveAssignments, error)
- func (c *Client) PIMGroupApprovalRequests(ctx context.Context) (GroupAssignmentRequests, error)
- func (c *Client) PIMGroupAssignmentApprovalByApprovalID(ctx context.Context, approvalID string, justification string, ...) error
- func (c *Client) PIMGroupAssignmentRequests(ctx context.Context) (GroupAssignmentRequests, error)
- func (c *Client) PIMGroupAssignmentScheduleRequest(ctx context.Context, principalID string, groupID string, justification string, ...) (string, error)
- func (c *Client) PIMGroupEligibleAssignments(ctx context.Context) (GroupEligibleAssignments, error)
- func (c *Client) PIMGroupGetMaximumExpirationByGroupID(ctx context.Context, groupID string) (string, error)
- type Group
- type GroupActiveAssignment
- type GroupActiveAssignments
- type GroupAssignmentRequest
- type GroupAssignmentRequests
- type GroupEligibleAssignment
- type GroupEligibleAssignments
- type ReviewResult
- type ScheduleInfo
- type UnifiedRoleManagementPolicyExpirationRule
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentApproval ¶
type AssignmentApproval struct { ID string `json:"id"` Stages AssignmentApprovalStages `json:"stages"` }
type AssignmentApprovalStage ¶
type AssignmentApprovalStage struct { ID string `json:"id"` AssignedToMe bool `json:"assignedToMe"` ReviewResult string `json:"reviewResult"` Status string `json:"status"` Justification string `json:"justification"` ReviewedBy struct { DisplayName string `json:"displayName"` ID string `json:"id"` Mail string `json:"mail"` UserPrincipalName string `json:"userPrincipalName"` } `json:"reviewedBy"` ReviewedDateTime time.Time `json:"reviewedDateTime"` }
type AssignmentApprovalStages ¶
type AssignmentApprovalStages []AssignmentApprovalStage
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GroupGetByID ¶
func (*Client) PIMGroupActiveAssignments ¶
func (c *Client) PIMGroupActiveAssignments(ctx context.Context) (GroupActiveAssignments, error)
func (*Client) PIMGroupApprovalRequests ¶
func (c *Client) PIMGroupApprovalRequests(ctx context.Context) (GroupAssignmentRequests, error)
func (*Client) PIMGroupAssignmentApprovalByApprovalID ¶
func (*Client) PIMGroupAssignmentRequests ¶
func (c *Client) PIMGroupAssignmentRequests(ctx context.Context) (GroupAssignmentRequests, error)
func (*Client) PIMGroupAssignmentScheduleRequest ¶
func (*Client) PIMGroupEligibleAssignments ¶
func (c *Client) PIMGroupEligibleAssignments(ctx context.Context) (GroupEligibleAssignments, error)
type Group ¶
type GroupActiveAssignment ¶
type GroupActiveAssignment struct { ID string `json:"id"` AcessID string `json:"accessId"` AssignmentScheduleId string `json:"assignmentScheduleId"` AssignmentType string `json:"assignmentType"` EndDateTime time.Time `json:"endDateTime"` GroupID string `json:"groupId"` PricipalID string `json:"principalId"` MemberType string `json:"memberType"` StartDateTime time.Time `json:"startDateTime"` Group Group `json:"group"` Principal User `json:"principal"` }
func (GroupActiveAssignment) EndTime ¶
func (g GroupActiveAssignment) EndTime() string
type GroupActiveAssignments ¶
type GroupActiveAssignments []GroupActiveAssignment
type GroupAssignmentRequest ¶
type GroupAssignmentRequest struct { ID string `json:"id"` AccessID string `json:"accessId"` Action string `json:"action"` ApprovalID string `json:"approvalId"` CompletedDateTime time.Time `json:"completedDateTime"` CreatedBy struct { User struct { ID string `json:"id"` } `json:"user"` } `json:"createdBy"` CreatedDateTime time.Time `json:"createdDateTime"` Group Group `json:"group"` GroupID string `json:"groupId"` IsValidationOnly bool `json:"isValidationOnly"` Justification string `json:"justification"` Principal User `json:"principal"` PrincipalID string `json:"principalId"` ScheduleInfo ScheduleInfo `json:"scheduleInfo"` Status string `json:"status"` TargetSchduleID string `json:"targetScheduleId"` TicketInfo struct { TicketNumber string `json:"ticketNumber"` TicketSystem string `json:"ticketSystem"` } `json:"ticketInfo"` }
func (GroupAssignmentRequest) RequestTime ¶
func (g GroupAssignmentRequest) RequestTime() string
type GroupAssignmentRequests ¶
type GroupAssignmentRequests []GroupAssignmentRequest
type GroupEligibleAssignment ¶
type GroupEligibleAssignment struct { ID string `json:"id"` GroupID string `json:"groupId"` PricipalID string `json:"principalId"` MemberType string `json:"memberType"` AccessID string `json:"accessId"` Status string `json:"status"` ScheduleInfo ScheduleInfo `json:"scheduleInfo"` Group Group `json:"group"` Principal User `json:"principal"` }
type GroupEligibleAssignments ¶
type GroupEligibleAssignments []GroupEligibleAssignment
type ReviewResult ¶
type ReviewResult int
const ( UnknownReviewResult ReviewResult = iota ApproveReviewResult DenyReviewResult )
func (*ReviewResult) CobraCompletion ¶
func (r *ReviewResult) CobraCompletion(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
func (*ReviewResult) HelpText ¶
func (r *ReviewResult) HelpText() string
func (*ReviewResult) Set ¶
func (r *ReviewResult) Set(v string) error
func (*ReviewResult) String ¶
func (r *ReviewResult) String() string
func (*ReviewResult) Type ¶
func (r *ReviewResult) Type() string
type ScheduleInfo ¶
type ScheduleInfo struct { Expiration struct { Duration string `json:"duration"` Type string `json:"type"` EndDateTime time.Time `json:"endDateTime"` } `json:"expiration"` StartDateTime time.Time `json:"startDateTime"` }
func (ScheduleInfo) EndTime ¶
func (s ScheduleInfo) EndTime() string
func (ScheduleInfo) StartTime ¶
func (s ScheduleInfo) StartTime() string
Click to show internal directories.
Click to hide internal directories.