@Generated(value="OracleSDKGenerator", comments="API Version: 20230801") public final class DelegatedResourceAccessRequest extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A support operator raises Delegated Resource Access Request when they need access to any infrastructure resource governed by Delegation Control. The Delegated Resource Access Request identifies the target resource and the set of Service Provider Actions. Delegated Resource Access Request handling depends upon the Delegation Control that governs the target resource, and the set of Service Provider Actions listed for approval in the Delegated Resource Access Request. If all of the Service Provider Actions listed in the Delegated Resource Access Request are in the pre-approved list in the Delegation Control that governs the target resource, then the Delegated Resource Access Request is automatically approved. If not, then the Delegated Resource Access Request requires explicit approval from the approver group specified by the Delegation Control governing the target resource.
You can approve or reject a Delegated Resource Access Request. You can also revoke the
approval of an already approved Delegated Resource Access Request. While creating a Delegated
Resource Access Request, the support operator specifies the duration of access. You have the
option to approve the entire duration or reduce or even increase the time duration. A support
operator can also request for an extension. The approval for such an extension is processed the
same way the original Delegated Resource Access Request was processed.
Note: Objects should always be created or deserialized using the DelegatedResourceAccessRequest.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the DelegatedResourceAccessRequest.Builder
, which maintain a
set of all explicitly set fields called DelegatedResourceAccessRequest.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
DelegatedResourceAccessRequest.Builder |
static class |
DelegatedResourceAccessRequest.LifecycleState
The current lifecycle state of the Delegated Resource Access Request.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DelegatedResourceAccessRequest(String id,
String compartmentId,
String displayName,
List<String> ticketNumbers,
String reasonForRequest,
String description,
Date timeAccessRequested,
String resourceId,
String resourceName,
DelegationControlResourceType resourceType,
DelegatedResourceAccessRequesterType requesterType,
List<String> requestedActionNames,
List<String> databaseNameList,
List<ServiceProviderServiceType> providedServiceTypes,
List<String> delegationSubscriptionIds,
DelegatedResourceAccessRequestSeverity severity,
Integer durationInHours,
Integer extendDurationInHours,
Boolean isAutoApproved,
DelegatedResourceAccessRequest.LifecycleState lifecycleState,
String lifecycleStateDetails,
DelegatedResourceAccessRequestStatus requestStatus,
Date timeCreated,
Date timeUpdated,
Integer numInitialApprovals,
Integer numExtensionApprovals,
List<DelegatedResourceAccessRequestApprovalDetails> approvalInfo,
String closureComment,
String delegationControlId,
List<DelegatedResourceAccessRequestAuditType> auditTypes,
Boolean isPendingMoreInfo,
Map<String,String> freeformTags,
Map<String,Map<String,Object>> definedTags,
Map<String,Map<String,Object>> systemTags)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DelegatedResourceAccessRequest.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<DelegatedResourceAccessRequestApprovalDetails> |
getApprovalInfo()
In case of single approval, this will have only one item.
|
List<DelegatedResourceAccessRequestAuditType> |
getAuditTypes()
Specifies the type of auditing to be enabled.
|
String |
getClosureComment()
The comment entered by the support operator while closing the request.
|
String |
getCompartmentId()
The OCID of the compartment that contains the Delegated Resource Access Request.
|
List<String> |
getDatabaseNameList()
List of Database unique names for which access is requested.
|
Map<String,Map<String,Object>> |
getDefinedTags()
Defined tags for this resource.
|
String |
getDelegationControlId()
The OCID of the Delegation Control governing the target resource.
|
List<String> |
getDelegationSubscriptionIds()
List of Delegation Subscription OCID that are associated with this Delegated Resource Access
Request based on the service types being requested.
|
String |
getDescription()
Detailed description of this Delegated Resource Access Request.
|
String |
getDisplayName()
Display name.
|
Integer |
getDurationInHours()
Duration in hours for which access is sought on the target resource.
|
Integer |
getExtendDurationInHours()
Duration in hours for which extension access is sought on the target resource.
|
Map<String,String> |
getFreeformTags()
Free-form tags for this resource.
|
String |
getId()
The OCID of the Delegated Resource Access Request.
|
Boolean |
getIsAutoApproved()
Set to true if the request is approved automatically based on
preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated
Delegation Control.
|
Boolean |
getIsPendingMoreInfo()
Indicates if the delegated resource access request is waiting on more information from the
operator
|
DelegatedResourceAccessRequest.LifecycleState |
getLifecycleState()
The current lifecycle state of the Delegated Resource Access Request.
|
String |
getLifecycleStateDetails()
Description of the current lifecycle state in more detail.
|
Integer |
getNumExtensionApprovals()
Number of extension approvals that have been obtained so far.
|
Integer |
getNumInitialApprovals()
Number of initial approvals that have been obtained so far.
|
List<ServiceProviderServiceType> |
getProvidedServiceTypes()
List of Service Provider Service Types being provided by the support operator user.
|
String |
getReasonForRequest()
A short description explaining why this Delegated Resource Access Request is needed by the
support operator.
|
List<String> |
getRequestedActionNames()
List of Service Provider Action names for which approval is sought by the support operator
user.
|
DelegatedResourceAccessRequesterType |
getRequesterType()
Requester type
|
DelegatedResourceAccessRequestStatus |
getRequestStatus()
The current status of the Delegated Resource Access Request.
|
String |
getResourceId()
The OCID of the target resource associated with the Delegated Resource Access Request.
|
String |
getResourceName()
The name of the target resource associated with the Delegated Resource Access Request.
|
DelegationControlResourceType |
getResourceType()
Resource type for which the associated Delegation Control is applicable to.
|
DelegatedResourceAccessRequestSeverity |
getSeverity()
Priority assigned to the Delegated Resource Access Request by the support operator
|
Map<String,Map<String,Object>> |
getSystemTags()
System tags for this resource.
|
List<String> |
getTicketNumbers()
A list of ticket numbers related to this Delegated Resource Access Request, e.g.
|
Date |
getTimeAccessRequested()
Requested access start time in UTC.
|
Date |
getTimeCreated()
Time when the Delegated Resource Access Request was created in RFC
3339timestamp format, e.g.
|
Date |
getTimeUpdated()
Time when the Delegated Resource Access Request was last modified in RFC
3339timestamp format, e.g.
|
int |
hashCode() |
DelegatedResourceAccessRequest.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"id","compartmentId","displayName","ticketNumbers","reasonForRequest","description","timeAccessRequested","resourceId","resourceName","resourceType","requesterType","requestedActionNames","databaseNameList","providedServiceTypes","delegationSubscriptionIds","severity","durationInHours","extendDurationInHours","isAutoApproved","lifecycleState","lifecycleStateDetails","requestStatus","timeCreated","timeUpdated","numInitialApprovals","numExtensionApprovals","approvalInfo","closureComment","delegationControlId","auditTypes","isPendingMoreInfo","freeformTags","definedTags","systemTags"}) public DelegatedResourceAccessRequest(String id, String compartmentId, String displayName, List<String> ticketNumbers, String reasonForRequest, String description, Date timeAccessRequested, String resourceId, String resourceName, DelegationControlResourceType resourceType, DelegatedResourceAccessRequesterType requesterType, List<String> requestedActionNames, List<String> databaseNameList, List<ServiceProviderServiceType> providedServiceTypes, List<String> delegationSubscriptionIds, DelegatedResourceAccessRequestSeverity severity, Integer durationInHours, Integer extendDurationInHours, Boolean isAutoApproved, DelegatedResourceAccessRequest.LifecycleState lifecycleState, String lifecycleStateDetails, DelegatedResourceAccessRequestStatus requestStatus, Date timeCreated, Date timeUpdated, Integer numInitialApprovals, Integer numExtensionApprovals, List<DelegatedResourceAccessRequestApprovalDetails> approvalInfo, String closureComment, String delegationControlId, List<DelegatedResourceAccessRequestAuditType> auditTypes, Boolean isPendingMoreInfo, Map<String,String> freeformTags, Map<String,Map<String,Object>> definedTags, Map<String,Map<String,Object>> systemTags)
public static DelegatedResourceAccessRequest.Builder builder()
Create a new builder.
public DelegatedResourceAccessRequest.Builder toBuilder()
public String getId()
The OCID of the Delegated Resource Access Request.
public String getCompartmentId()
The OCID of the compartment that contains the Delegated Resource Access Request.
public String getDisplayName()
Display name. This is generated by the system automatically.
public List<String> getTicketNumbers()
A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service Request (SR) number and JIRA ticket number.
public String getReasonForRequest()
A short description explaining why this Delegated Resource Access Request is needed by the support operator.
public String getDescription()
Detailed description of this Delegated Resource Access Request.
public Date getTimeAccessRequested()
Requested access start time in UTC.
public String getResourceId()
The OCID of the target resource associated with the Delegated Resource Access Request. The support operator raises a Delegated Resource Access Request to get approval to access the target resource.
public String getResourceName()
The name of the target resource associated with the Delegated Resource Access Request. The support operator raises a Delegated Resource Access Request to get approval to access the target resource.
public DelegationControlResourceType getResourceType()
Resource type for which the associated Delegation Control is applicable to.
public DelegatedResourceAccessRequesterType getRequesterType()
Requester type
public List<String> getRequestedActionNames()
List of Service Provider Action names for which approval is sought by the support operator user. The list of pre-defined Service Provider Actions can be obtained from the ListServiceProviderActions API.
public List<String> getDatabaseNameList()
List of Database unique names for which access is requested. This parameter is required for DLGT_MGMT_SYS_MAINT_ACCESS cage when database access in needed.
public List<ServiceProviderServiceType> getProvidedServiceTypes()
List of Service Provider Service Types being provided by the support operator user.
public List<String> getDelegationSubscriptionIds()
List of Delegation Subscription OCID that are associated with this Delegated Resource Access Request based on the service types being requested.
public DelegatedResourceAccessRequestSeverity getSeverity()
Priority assigned to the Delegated Resource Access Request by the support operator
public Integer getDurationInHours()
Duration in hours for which access is sought on the target resource.
public Integer getExtendDurationInHours()
Duration in hours for which extension access is sought on the target resource.
public Boolean getIsAutoApproved()
Set to true if the request is approved automatically based on preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated Delegation Control.
public DelegatedResourceAccessRequest.LifecycleState getLifecycleState()
The current lifecycle state of the Delegated Resource Access Request.
public String getLifecycleStateDetails()
Description of the current lifecycle state in more detail.
public DelegatedResourceAccessRequestStatus getRequestStatus()
The current status of the Delegated Resource Access Request.
public Date getTimeCreated()
Time when the Delegated Resource Access Request was created in RFC 3339timestamp format, e.g. ‘2020-05-22T21:10:29.600Z’.
public Date getTimeUpdated()
Time when the Delegated Resource Access Request was last modified in RFC 3339timestamp format, e.g. ‘2020-05-22T21:10:29.600Z’.
public Integer getNumInitialApprovals()
Number of initial approvals that have been obtained so far.
public Integer getNumExtensionApprovals()
Number of extension approvals that have been obtained so far.
public List<DelegatedResourceAccessRequestApprovalDetails> getApprovalInfo()
In case of single approval, this will have only one item. Else, a list of approvals.
public String getClosureComment()
The comment entered by the support operator while closing the request.
public String getDelegationControlId()
The OCID of the Delegation Control governing the target resource.
public List<DelegatedResourceAccessRequestAuditType> getAuditTypes()
Specifies the type of auditing to be enabled. There are two levels of auditing: command-level and keystroke-level. By default, both command-level and keystroke-level auditing are enabled, i.e. commands and key strokes issued by the support operator are logged.
public Boolean getIsPendingMoreInfo()
Indicates if the delegated resource access request is waiting on more information from the operator
public Map<String,String> getFreeformTags()
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
public Map<String,Map<String,Object>> getDefinedTags()
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
public Map<String,Map<String,Object>> getSystemTags()
System tags for this resource. Each key is predefined and scoped to a namespace.
Example: {"orcl-cloud": {"free-tier-retained": "true"}}
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.