Class: OCI::DelegateAccessControl::Models::DelegatedResourceAccessRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/oci/delegate_access_control/models/delegated_resource_access_request.rb

Overview

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.

Constant Summary collapse

RESOURCE_TYPE_ENUM =
[
  RESOURCE_TYPE_VMCLUSTER = 'VMCLUSTER'.freeze,
  RESOURCE_TYPE_CLOUDVMCLUSTER = 'CLOUDVMCLUSTER'.freeze,
  RESOURCE_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
REQUESTER_TYPE_ENUM =
[
  REQUESTER_TYPE_OPERATOR = 'OPERATOR'.freeze,
  REQUESTER_TYPE_CUSTOMER = 'CUSTOMER'.freeze,
  REQUESTER_TYPE_SYSTEM = 'SYSTEM'.freeze,
  REQUESTER_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
PROVIDED_SERVICE_TYPES_ENUM =
[
  PROVIDED_SERVICE_TYPES_TROUBLESHOOTING = 'TROUBLESHOOTING'.freeze,
  PROVIDED_SERVICE_TYPES_ASSISTED_PATCHING = 'ASSISTED_PATCHING'.freeze,
  PROVIDED_SERVICE_TYPES_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
SEVERITY_ENUM =
[
  SEVERITY_S1 = 'S1'.freeze,
  SEVERITY_S2 = 'S2'.freeze,
  SEVERITY_S3 = 'S3'.freeze,
  SEVERITY_S4 = 'S4'.freeze,
  SEVERITY_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
LIFECYCLE_STATE_ENUM =
[
  LIFECYCLE_STATE_ACCEPTED = 'ACCEPTED'.freeze,
  LIFECYCLE_STATE_IN_PROGRESS = 'IN_PROGRESS'.freeze,
  LIFECYCLE_STATE_WAITING = 'WAITING'.freeze,
  LIFECYCLE_STATE_FAILED = 'FAILED'.freeze,
  LIFECYCLE_STATE_SUCCEEDED = 'SUCCEEDED'.freeze,
  LIFECYCLE_STATE_CANCELING = 'CANCELING'.freeze,
  LIFECYCLE_STATE_CANCELED = 'CANCELED'.freeze,
  LIFECYCLE_STATE_NEEDS_ATTENTION = 'NEEDS_ATTENTION'.freeze,
  LIFECYCLE_STATE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
REQUEST_STATUS_ENUM =
[
  REQUEST_STATUS_CREATED = 'CREATED'.freeze,
  REQUEST_STATUS_APPROVAL_WAITING = 'APPROVAL_WAITING'.freeze,
  REQUEST_STATUS_OPERATOR_ASSIGNMENT_WAITING = 'OPERATOR_ASSIGNMENT_WAITING'.freeze,
  REQUEST_STATUS_PREAPPROVED = 'PREAPPROVED'.freeze,
  REQUEST_STATUS_APPROVED = 'APPROVED'.freeze,
  REQUEST_STATUS_APPROVED_FOR_FUTURE = 'APPROVED_FOR_FUTURE'.freeze,
  REQUEST_STATUS_REJECTED = 'REJECTED'.freeze,
  REQUEST_STATUS_DEPLOYED = 'DEPLOYED'.freeze,
  REQUEST_STATUS_DEPLOY_FAILED = 'DEPLOY_FAILED'.freeze,
  REQUEST_STATUS_UNDEPLOYED = 'UNDEPLOYED'.freeze,
  REQUEST_STATUS_UNDEPLOY_FAILED = 'UNDEPLOY_FAILED'.freeze,
  REQUEST_STATUS_CLOSE_FAILED = 'CLOSE_FAILED'.freeze,
  REQUEST_STATUS_REVOKE_FAILED = 'REVOKE_FAILED'.freeze,
  REQUEST_STATUS_EXPIRY_FAILED = 'EXPIRY_FAILED'.freeze,
  REQUEST_STATUS_REVOKING = 'REVOKING'.freeze,
  REQUEST_STATUS_REVOKED = 'REVOKED'.freeze,
  REQUEST_STATUS_EXTENDING = 'EXTENDING'.freeze,
  REQUEST_STATUS_EXTENDED = 'EXTENDED'.freeze,
  REQUEST_STATUS_EXTENSION_REJECTED = 'EXTENSION_REJECTED'.freeze,
  REQUEST_STATUS_EXTENSION_FAILED = 'EXTENSION_FAILED'.freeze,
  REQUEST_STATUS_COMPLETING = 'COMPLETING'.freeze,
  REQUEST_STATUS_COMPLETED = 'COMPLETED'.freeze,
  REQUEST_STATUS_EXPIRED = 'EXPIRED'.freeze,
  REQUEST_STATUS_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze
AUDIT_TYPES_ENUM =
[
  AUDIT_TYPES_COMMAND_AUDIT = 'COMMAND_AUDIT'.freeze,
  AUDIT_TYPES_COMMAND_KEYSTROKE_AUDIT = 'COMMAND_KEYSTROKE_AUDIT'.freeze,
  AUDIT_TYPES_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze
].freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DelegatedResourceAccessRequest

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):



372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 372

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.id = attributes[:'id'] if attributes[:'id']

  self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId']

  raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id')

  self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id']

  self.display_name = attributes[:'displayName'] if attributes[:'displayName']

  raise 'You cannot provide both :displayName and :display_name' if attributes.key?(:'displayName') && attributes.key?(:'display_name')

  self.display_name = attributes[:'display_name'] if attributes[:'display_name']

  self.ticket_numbers = attributes[:'ticketNumbers'] if attributes[:'ticketNumbers']

  raise 'You cannot provide both :ticketNumbers and :ticket_numbers' if attributes.key?(:'ticketNumbers') && attributes.key?(:'ticket_numbers')

  self.ticket_numbers = attributes[:'ticket_numbers'] if attributes[:'ticket_numbers']

  self.reason_for_request = attributes[:'reasonForRequest'] if attributes[:'reasonForRequest']

  raise 'You cannot provide both :reasonForRequest and :reason_for_request' if attributes.key?(:'reasonForRequest') && attributes.key?(:'reason_for_request')

  self.reason_for_request = attributes[:'reason_for_request'] if attributes[:'reason_for_request']

  self.description = attributes[:'description'] if attributes[:'description']

  self.time_access_requested = attributes[:'timeAccessRequested'] if attributes[:'timeAccessRequested']

  raise 'You cannot provide both :timeAccessRequested and :time_access_requested' if attributes.key?(:'timeAccessRequested') && attributes.key?(:'time_access_requested')

  self.time_access_requested = attributes[:'time_access_requested'] if attributes[:'time_access_requested']

  self.resource_id = attributes[:'resourceId'] if attributes[:'resourceId']

  raise 'You cannot provide both :resourceId and :resource_id' if attributes.key?(:'resourceId') && attributes.key?(:'resource_id')

  self.resource_id = attributes[:'resource_id'] if attributes[:'resource_id']

  self.resource_name = attributes[:'resourceName'] if attributes[:'resourceName']

  raise 'You cannot provide both :resourceName and :resource_name' if attributes.key?(:'resourceName') && attributes.key?(:'resource_name')

  self.resource_name = attributes[:'resource_name'] if attributes[:'resource_name']

  self.resource_type = attributes[:'resourceType'] if attributes[:'resourceType']

  raise 'You cannot provide both :resourceType and :resource_type' if attributes.key?(:'resourceType') && attributes.key?(:'resource_type')

  self.resource_type = attributes[:'resource_type'] if attributes[:'resource_type']

  self.requester_type = attributes[:'requesterType'] if attributes[:'requesterType']

  raise 'You cannot provide both :requesterType and :requester_type' if attributes.key?(:'requesterType') && attributes.key?(:'requester_type')

  self.requester_type = attributes[:'requester_type'] if attributes[:'requester_type']

  self.requested_action_names = attributes[:'requestedActionNames'] if attributes[:'requestedActionNames']

  raise 'You cannot provide both :requestedActionNames and :requested_action_names' if attributes.key?(:'requestedActionNames') && attributes.key?(:'requested_action_names')

  self.requested_action_names = attributes[:'requested_action_names'] if attributes[:'requested_action_names']

  self.database_name_list = attributes[:'databaseNameList'] if attributes[:'databaseNameList']

  raise 'You cannot provide both :databaseNameList and :database_name_list' if attributes.key?(:'databaseNameList') && attributes.key?(:'database_name_list')

  self.database_name_list = attributes[:'database_name_list'] if attributes[:'database_name_list']

  self.provided_service_types = attributes[:'providedServiceTypes'] if attributes[:'providedServiceTypes']

  raise 'You cannot provide both :providedServiceTypes and :provided_service_types' if attributes.key?(:'providedServiceTypes') && attributes.key?(:'provided_service_types')

  self.provided_service_types = attributes[:'provided_service_types'] if attributes[:'provided_service_types']

  self.delegation_subscription_ids = attributes[:'delegationSubscriptionIds'] if attributes[:'delegationSubscriptionIds']

  raise 'You cannot provide both :delegationSubscriptionIds and :delegation_subscription_ids' if attributes.key?(:'delegationSubscriptionIds') && attributes.key?(:'delegation_subscription_ids')

  self.delegation_subscription_ids = attributes[:'delegation_subscription_ids'] if attributes[:'delegation_subscription_ids']

  self.severity = attributes[:'severity'] if attributes[:'severity']

  self.duration_in_hours = attributes[:'durationInHours'] if attributes[:'durationInHours']

  raise 'You cannot provide both :durationInHours and :duration_in_hours' if attributes.key?(:'durationInHours') && attributes.key?(:'duration_in_hours')

  self.duration_in_hours = attributes[:'duration_in_hours'] if attributes[:'duration_in_hours']

  self.extend_duration_in_hours = attributes[:'extendDurationInHours'] if attributes[:'extendDurationInHours']

  raise 'You cannot provide both :extendDurationInHours and :extend_duration_in_hours' if attributes.key?(:'extendDurationInHours') && attributes.key?(:'extend_duration_in_hours')

  self.extend_duration_in_hours = attributes[:'extend_duration_in_hours'] if attributes[:'extend_duration_in_hours']

  self.is_auto_approved = attributes[:'isAutoApproved'] unless attributes[:'isAutoApproved'].nil?

  raise 'You cannot provide both :isAutoApproved and :is_auto_approved' if attributes.key?(:'isAutoApproved') && attributes.key?(:'is_auto_approved')

  self.is_auto_approved = attributes[:'is_auto_approved'] unless attributes[:'is_auto_approved'].nil?

  self.lifecycle_state = attributes[:'lifecycleState'] if attributes[:'lifecycleState']

  raise 'You cannot provide both :lifecycleState and :lifecycle_state' if attributes.key?(:'lifecycleState') && attributes.key?(:'lifecycle_state')

  self.lifecycle_state = attributes[:'lifecycle_state'] if attributes[:'lifecycle_state']

  self.lifecycle_state_details = attributes[:'lifecycleStateDetails'] if attributes[:'lifecycleStateDetails']

  raise 'You cannot provide both :lifecycleStateDetails and :lifecycle_state_details' if attributes.key?(:'lifecycleStateDetails') && attributes.key?(:'lifecycle_state_details')

  self.lifecycle_state_details = attributes[:'lifecycle_state_details'] if attributes[:'lifecycle_state_details']

  self.request_status = attributes[:'requestStatus'] if attributes[:'requestStatus']

  raise 'You cannot provide both :requestStatus and :request_status' if attributes.key?(:'requestStatus') && attributes.key?(:'request_status')

  self.request_status = attributes[:'request_status'] if attributes[:'request_status']

  self.time_created = attributes[:'timeCreated'] if attributes[:'timeCreated']

  raise 'You cannot provide both :timeCreated and :time_created' if attributes.key?(:'timeCreated') && attributes.key?(:'time_created')

  self.time_created = attributes[:'time_created'] if attributes[:'time_created']

  self.time_updated = attributes[:'timeUpdated'] if attributes[:'timeUpdated']

  raise 'You cannot provide both :timeUpdated and :time_updated' if attributes.key?(:'timeUpdated') && attributes.key?(:'time_updated')

  self.time_updated = attributes[:'time_updated'] if attributes[:'time_updated']

  self.num_initial_approvals = attributes[:'numInitialApprovals'] if attributes[:'numInitialApprovals']

  raise 'You cannot provide both :numInitialApprovals and :num_initial_approvals' if attributes.key?(:'numInitialApprovals') && attributes.key?(:'num_initial_approvals')

  self.num_initial_approvals = attributes[:'num_initial_approvals'] if attributes[:'num_initial_approvals']

  self.num_extension_approvals = attributes[:'numExtensionApprovals'] if attributes[:'numExtensionApprovals']

  raise 'You cannot provide both :numExtensionApprovals and :num_extension_approvals' if attributes.key?(:'numExtensionApprovals') && attributes.key?(:'num_extension_approvals')

  self.num_extension_approvals = attributes[:'num_extension_approvals'] if attributes[:'num_extension_approvals']

  self.approval_info = attributes[:'approvalInfo'] if attributes[:'approvalInfo']

  raise 'You cannot provide both :approvalInfo and :approval_info' if attributes.key?(:'approvalInfo') && attributes.key?(:'approval_info')

  self.approval_info = attributes[:'approval_info'] if attributes[:'approval_info']

  self.closure_comment = attributes[:'closureComment'] if attributes[:'closureComment']

  raise 'You cannot provide both :closureComment and :closure_comment' if attributes.key?(:'closureComment') && attributes.key?(:'closure_comment')

  self.closure_comment = attributes[:'closure_comment'] if attributes[:'closure_comment']

  self.delegation_control_id = attributes[:'delegationControlId'] if attributes[:'delegationControlId']

  raise 'You cannot provide both :delegationControlId and :delegation_control_id' if attributes.key?(:'delegationControlId') && attributes.key?(:'delegation_control_id')

  self.delegation_control_id = attributes[:'delegation_control_id'] if attributes[:'delegation_control_id']

  self.audit_types = attributes[:'auditTypes'] if attributes[:'auditTypes']

  raise 'You cannot provide both :auditTypes and :audit_types' if attributes.key?(:'auditTypes') && attributes.key?(:'audit_types')

  self.audit_types = attributes[:'audit_types'] if attributes[:'audit_types']

  self.is_pending_more_info = attributes[:'isPendingMoreInfo'] unless attributes[:'isPendingMoreInfo'].nil?

  raise 'You cannot provide both :isPendingMoreInfo and :is_pending_more_info' if attributes.key?(:'isPendingMoreInfo') && attributes.key?(:'is_pending_more_info')

  self.is_pending_more_info = attributes[:'is_pending_more_info'] unless attributes[:'is_pending_more_info'].nil?

  self.freeform_tags = attributes[:'freeformTags'] if attributes[:'freeformTags']

  raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags')

  self.freeform_tags = attributes[:'freeform_tags'] if attributes[:'freeform_tags']

  self.defined_tags = attributes[:'definedTags'] if attributes[:'definedTags']

  raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags')

  self.defined_tags = attributes[:'defined_tags'] if attributes[:'defined_tags']

  self.system_tags = attributes[:'systemTags'] if attributes[:'systemTags']

  raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags')

  self.system_tags = attributes[:'system_tags'] if attributes[:'system_tags']
end

Instance Attribute Details

#approval_infoArray<OCI::DelegateAccessControl::Models::DelegatedResourceAccessRequestApprovalDetails>

In case of single approval, this will have only one item. Else, a list of approvals.



205
206
207
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 205

def approval_info
  @approval_info
end

#audit_typesArray<String>

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.

Returns:

  • (Array<String>)


219
220
221
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 219

def audit_types
  @audit_types
end

#closure_commentString

The comment entered by the support operator while closing the request.

Returns:

  • (String)


209
210
211
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 209

def closure_comment
  @closure_comment
end

#compartment_idString

[Required] The OCID of the compartment that contains the Delegated Resource Access Request.

Returns:

  • (String)


99
100
101
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 99

def compartment_id
  @compartment_id
end

#database_name_listArray<String>

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.

Returns:

  • (Array<String>)


147
148
149
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 147

def database_name_list
  @database_name_list
end

#defined_tagsHash<String, Hash<String, Object>>

Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {\"Operations\": {\"CostCenter\": \"42\"}}

Returns:

  • (Hash<String, Hash<String, Object>>)


239
240
241
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 239

def defined_tags
  @defined_tags
end

#delegation_control_idString

The OCID of the Delegation Control governing the target resource.

Returns:

  • (String)


213
214
215
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 213

def delegation_control_id
  @delegation_control_id
end

#delegation_subscription_idsArray<String>

List of Delegation Subscription OCID that are associated with this Delegated Resource Access Request based on the service types being requested.

Returns:

  • (Array<String>)


155
156
157
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 155

def delegation_subscription_ids
  @delegation_subscription_ids
end

#descriptionString

[Required] Detailed description of this Delegated Resource Access Request.

Returns:

  • (String)


115
116
117
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 115

def description
  @description
end

#display_nameString

Display name. This is generated by the system automatically.

Returns:

  • (String)


103
104
105
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 103

def display_name
  @display_name
end

#duration_in_hoursInteger

Duration in hours for which access is sought on the target resource.

Returns:

  • (Integer)


163
164
165
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 163

def duration_in_hours
  @duration_in_hours
end

#extend_duration_in_hoursInteger

Duration in hours for which extension access is sought on the target resource.

Returns:

  • (Integer)


167
168
169
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 167

def extend_duration_in_hours
  @extend_duration_in_hours
end

#freeform_tagsHash<String, String>

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\"}

Returns:

  • (Hash<String, String>)


231
232
233
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 231

def freeform_tags
  @freeform_tags
end

#idString

[Required] The OCID of the Delegated Resource Access Request.

Returns:

  • (String)


95
96
97
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 95

def id
  @id
end

#is_auto_approvedBOOLEAN

Set to true if the request is approved automatically based on preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated Delegation Control.

Returns:

  • (BOOLEAN)


171
172
173
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 171

def is_auto_approved
  @is_auto_approved
end

#is_pending_more_infoBOOLEAN

Indicates if the delegated resource access request is waiting on more information from the operator

Returns:

  • (BOOLEAN)


223
224
225
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 223

def is_pending_more_info
  @is_pending_more_info
end

#lifecycle_stateString

The current lifecycle state of the Delegated Resource Access Request.

Returns:

  • (String)


175
176
177
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 175

def lifecycle_state
  @lifecycle_state
end

#lifecycle_state_detailsString

Description of the current lifecycle state in more detail.

Returns:

  • (String)


179
180
181
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 179

def lifecycle_state_details
  @lifecycle_state_details
end

#num_extension_approvalsInteger

Number of extension approvals that have been obtained so far.

Returns:

  • (Integer)


201
202
203
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 201

def num_extension_approvals
  @num_extension_approvals
end

#num_initial_approvalsInteger

Number of initial approvals that have been obtained so far.

Returns:

  • (Integer)


197
198
199
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 197

def num_initial_approvals
  @num_initial_approvals
end

#provided_service_typesArray<String>

List of Service Provider Service Types being provided by the support operator user.

Returns:

  • (Array<String>)


151
152
153
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 151

def provided_service_types
  @provided_service_types
end

#reason_for_requestString

[Required] A short description explaining why this Delegated Resource Access Request is needed by the support operator.

Returns:

  • (String)


111
112
113
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 111

def reason_for_request
  @reason_for_request
end

#request_statusString

The current status of the Delegated Resource Access Request.

Returns:

  • (String)


183
184
185
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 183

def request_status
  @request_status
end

#requested_action_namesArray<String>

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.

Returns:

  • (Array<String>)


143
144
145
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 143

def requested_action_names
  @requested_action_names
end

#requester_typeString

Requester type

Returns:

  • (String)


139
140
141
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 139

def requester_type
  @requester_type
end

#resource_idString

[Required] 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.

Returns:

  • (String)


125
126
127
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 125

def resource_id
  @resource_id
end

#resource_nameString

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.

Returns:

  • (String)


131
132
133
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 131

def resource_name
  @resource_name
end

#resource_typeString

Resource type for which the associated Delegation Control is applicable to.

Returns:

  • (String)


135
136
137
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 135

def resource_type
  @resource_type
end

#severityString

Priority assigned to the Delegated Resource Access Request by the support operator

Returns:

  • (String)


159
160
161
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 159

def severity
  @severity
end

#system_tagsHash<String, Hash<String, Object>>

System tags for this resource. Each key is predefined and scoped to a namespace.

Example: {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}

Returns:

  • (Hash<String, Hash<String, Object>>)


246
247
248
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 246

def system_tags
  @system_tags
end

#ticket_numbersArray<String>

A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service Request (SR) number and JIRA ticket number.

Returns:

  • (Array<String>)


107
108
109
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 107

def ticket_numbers
  @ticket_numbers
end

#time_access_requestedDateTime

Requested access start time in UTC.

Returns:

  • (DateTime)


119
120
121
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 119

def time_access_requested
  @time_access_requested
end

#time_createdDateTime

Time when the Delegated Resource Access Request was created in 3339[https://tools.ietf.org/html/rfc3339]timestamp format, e.g. '2020-05-22T21:10:29.600Z'.

Returns:

  • (DateTime)


188
189
190
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 188

def time_created
  @time_created
end

#time_updatedDateTime

Time when the Delegated Resource Access Request was last modified in 3339[https://tools.ietf.org/html/rfc3339]timestamp format, e.g. '2020-05-22T21:10:29.600Z'.

Returns:

  • (DateTime)


193
194
195
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 193

def time_updated
  @time_updated
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 249

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'compartment_id': :'compartmentId',
    'display_name': :'displayName',
    'ticket_numbers': :'ticketNumbers',
    'reason_for_request': :'reasonForRequest',
    'description': :'description',
    'time_access_requested': :'timeAccessRequested',
    'resource_id': :'resourceId',
    'resource_name': :'resourceName',
    'resource_type': :'resourceType',
    'requester_type': :'requesterType',
    'requested_action_names': :'requestedActionNames',
    'database_name_list': :'databaseNameList',
    'provided_service_types': :'providedServiceTypes',
    'delegation_subscription_ids': :'delegationSubscriptionIds',
    'severity': :'severity',
    'duration_in_hours': :'durationInHours',
    'extend_duration_in_hours': :'extendDurationInHours',
    'is_auto_approved': :'isAutoApproved',
    'lifecycle_state': :'lifecycleState',
    'lifecycle_state_details': :'lifecycleStateDetails',
    'request_status': :'requestStatus',
    'time_created': :'timeCreated',
    'time_updated': :'timeUpdated',
    'num_initial_approvals': :'numInitialApprovals',
    'num_extension_approvals': :'numExtensionApprovals',
    'approval_info': :'approvalInfo',
    'closure_comment': :'closureComment',
    'delegation_control_id': :'delegationControlId',
    'audit_types': :'auditTypes',
    'is_pending_more_info': :'isPendingMoreInfo',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 291

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'compartment_id': :'String',
    'display_name': :'String',
    'ticket_numbers': :'Array<String>',
    'reason_for_request': :'String',
    'description': :'String',
    'time_access_requested': :'DateTime',
    'resource_id': :'String',
    'resource_name': :'String',
    'resource_type': :'String',
    'requester_type': :'String',
    'requested_action_names': :'Array<String>',
    'database_name_list': :'Array<String>',
    'provided_service_types': :'Array<String>',
    'delegation_subscription_ids': :'Array<String>',
    'severity': :'String',
    'duration_in_hours': :'Integer',
    'extend_duration_in_hours': :'Integer',
    'is_auto_approved': :'BOOLEAN',
    'lifecycle_state': :'String',
    'lifecycle_state_details': :'String',
    'request_status': :'String',
    'time_created': :'DateTime',
    'time_updated': :'DateTime',
    'num_initial_approvals': :'Integer',
    'num_extension_approvals': :'Integer',
    'approval_info': :'Array<OCI::DelegateAccessControl::Models::DelegatedResourceAccessRequestApprovalDetails>',
    'closure_comment': :'String',
    'delegation_control_id': :'String',
    'audit_types': :'Array<String>',
    'is_pending_more_info': :'BOOLEAN',
    'freeform_tags': :'Hash<String, String>',
    'defined_tags': :'Hash<String, Hash<String, Object>>',
    'system_tags': :'Hash<String, Hash<String, Object>>'
    # rubocop:enable Style/SymbolLiteral
  }
end

Instance Method Details

#==(other) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • other (Object)

    the other object to be compared



683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 683

def ==(other)
  return true if equal?(other)

  self.class == other.class &&
    id == other.id &&
    compartment_id == other.compartment_id &&
    display_name == other.display_name &&
    ticket_numbers == other.ticket_numbers &&
    reason_for_request == other.reason_for_request &&
    description == other.description &&
    time_access_requested == other.time_access_requested &&
    resource_id == other.resource_id &&
    resource_name == other.resource_name &&
    resource_type == other.resource_type &&
    requester_type == other.requester_type &&
    requested_action_names == other.requested_action_names &&
    database_name_list == other.database_name_list &&
    provided_service_types == other.provided_service_types &&
    delegation_subscription_ids == other.delegation_subscription_ids &&
    severity == other.severity &&
    duration_in_hours == other.duration_in_hours &&
    extend_duration_in_hours == other.extend_duration_in_hours &&
    is_auto_approved == other.is_auto_approved &&
    lifecycle_state == other.lifecycle_state &&
    lifecycle_state_details == other.lifecycle_state_details &&
    request_status == other.request_status &&
    time_created == other.time_created &&
    time_updated == other.time_updated &&
    num_initial_approvals == other.num_initial_approvals &&
    num_extension_approvals == other.num_extension_approvals &&
    approval_info == other.approval_info &&
    closure_comment == other.closure_comment &&
    delegation_control_id == other.delegation_control_id &&
    audit_types == other.audit_types &&
    is_pending_more_info == other.is_pending_more_info &&
    freeform_tags == other.freeform_tags &&
    defined_tags == other.defined_tags &&
    system_tags == other.system_tags
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 746

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)

  self.class.swagger_types.each_pair do |key, type|
    if type =~ /^Array<(.*)>/i
      # check to ensure the input is an array given that the the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        public_method("#{key}=").call(
          attributes[self.class.attribute_map[key]]
            .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) }
        )
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      public_method("#{key}=").call(
        OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]])
      )
    end
    # or else data not found in attributes(hash), not an issue as the data can be optional
  end

  self
end

#eql?(other) ⇒ Boolean

Parameters:

  • other (Object)

    the other object to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


726
727
728
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 726

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



735
736
737
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 735

def hash
  [id, compartment_id, display_name, ticket_numbers, reason_for_request, description, time_access_requested, resource_id, resource_name, resource_type, requester_type, requested_action_names, database_name_list, provided_service_types, delegation_subscription_ids, severity, duration_in_hours, extend_duration_in_hours, is_auto_approved, lifecycle_state, lifecycle_state_details, request_status, time_created, time_updated, num_initial_approvals, num_extension_approvals, approval_info, closure_comment, delegation_control_id, audit_types, is_pending_more_info, freeform_tags, defined_tags, system_tags].hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



779
780
781
782
783
784
785
786
787
788
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 779

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = public_method(attr).call
    next if value.nil? && !instance_variable_defined?("@#{attr}")

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



773
774
775
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request.rb', line 773

def to_s
  to_hash.to_s
end