Class: OCI::DelegateAccessControl::Models::DelegatedResourceAccessRequestSummary

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

Overview

Summary of Delegated Resource Access Request.

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
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
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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ DelegatedResourceAccessRequestSummary

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :id (String)

    The value to assign to the #id property

  • :compartment_id (String)

    The value to assign to the #compartment_id property

  • :display_name (String)

    The value to assign to the #display_name property

  • :ticket_numbers (Array<String>)

    The value to assign to the #ticket_numbers property

  • :reason_for_request (String)

    The value to assign to the #reason_for_request property

  • :time_access_requested (DateTime)

    The value to assign to the #time_access_requested property

  • :resource_id (String)

    The value to assign to the #resource_id property

  • :resource_name (String)

    The value to assign to the #resource_name property

  • :resource_type (String)

    The value to assign to the #resource_type property

  • :requested_action_names (Array<String>)

    The value to assign to the #requested_action_names property

  • :requester_type (String)

    The value to assign to the #requester_type property

  • :delegation_control_id (String)

    The value to assign to the #delegation_control_id property

  • :severity (String)

    The value to assign to the #severity property

  • :duration_in_hours (Integer)

    The value to assign to the #duration_in_hours property

  • :extend_duration_in_hours (Integer)

    The value to assign to the #extend_duration_in_hours property

  • :is_auto_approved (BOOLEAN)

    The value to assign to the #is_auto_approved property

  • :lifecycle_state (String)

    The value to assign to the #lifecycle_state property

  • :lifecycle_state_details (String)

    The value to assign to the #lifecycle_state_details property

  • :request_status (String)

    The value to assign to the #request_status property

  • :time_created (DateTime)

    The value to assign to the #time_created property

  • :time_updated (DateTime)

    The value to assign to the #time_updated property

  • :freeform_tags (Hash<String, String>)

    The value to assign to the #freeform_tags property

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

    The value to assign to the #defined_tags property

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

    The value to assign to the #system_tags property



267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
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
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
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
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 267

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.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.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.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.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.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.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

#compartment_idString

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

Returns:

  • (String)


66
67
68
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 66

def compartment_id
  @compartment_id
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>>)


164
165
166
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 164

def defined_tags
  @defined_tags
end

#delegation_control_idString

[Required] The OCID of the Delegation Control governing the target resource.

Returns:

  • (String)


110
111
112
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 110

def delegation_control_id
  @delegation_control_id
end

#display_nameString

Display name. This is generated by the system automatically.

Returns:

  • (String)


70
71
72
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 70

def display_name
  @display_name
end

#duration_in_hoursInteger

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

Returns:

  • (Integer)


118
119
120
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 118

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)


122
123
124
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 122

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>)


156
157
158
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 156

def freeform_tags
  @freeform_tags
end

#idString

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

Returns:

  • (String)


62
63
64
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 62

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)


126
127
128
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 126

def is_auto_approved
  @is_auto_approved
end

#lifecycle_stateString

The current lifecycle state of the Delegated Resource Access Request.

Returns:

  • (String)


130
131
132
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 130

def lifecycle_state
  @lifecycle_state
end

#lifecycle_state_detailsString

Description of the current lifecycle state in more detail.

Returns:

  • (String)


134
135
136
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 134

def lifecycle_state_details
  @lifecycle_state_details
end

#reason_for_requestString

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

Returns:

  • (String)


78
79
80
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 78

def reason_for_request
  @reason_for_request
end

#request_statusString

The current status of the Delegated Resource Access Request.

Returns:

  • (String)


138
139
140
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 138

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>)


102
103
104
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 102

def requested_action_names
  @requested_action_names
end

#requester_typeString

Requester type

Returns:

  • (String)


106
107
108
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 106

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)


88
89
90
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 88

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)


94
95
96
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 94

def resource_name
  @resource_name
end

#resource_typeString

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

Returns:

  • (String)


98
99
100
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 98

def resource_type
  @resource_type
end

#severityString

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

Returns:

  • (String)


114
115
116
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 114

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>>)


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

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>)


74
75
76
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 74

def ticket_numbers
  @ticket_numbers
end

#time_access_requestedDateTime

Requested access start time in UTC.

Returns:

  • (DateTime)


82
83
84
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 82

def time_access_requested
  @time_access_requested
end

#time_createdDateTime

Time when the Delegated Resource Access Request was created by the support operator user in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'.

Returns:

  • (DateTime)


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

def time_created
  @time_created
end

#time_updatedDateTime

Time when the Delegated Resource Access Request was last modified in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'.

Returns:

  • (DateTime)


148
149
150
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 148

def time_updated
  @time_updated
end

Class Method Details

.attribute_mapObject

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



174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 174

def self.attribute_map
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'id',
    'compartment_id': :'compartmentId',
    'display_name': :'displayName',
    'ticket_numbers': :'ticketNumbers',
    'reason_for_request': :'reasonForRequest',
    'time_access_requested': :'timeAccessRequested',
    'resource_id': :'resourceId',
    'resource_name': :'resourceName',
    'resource_type': :'resourceType',
    'requested_action_names': :'requestedActionNames',
    'requester_type': :'requesterType',
    'delegation_control_id': :'delegationControlId',
    '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',
    'freeform_tags': :'freeformTags',
    'defined_tags': :'definedTags',
    'system_tags': :'systemTags'
    # rubocop:enable Style/SymbolLiteral
  }
end

.swagger_typesObject

Attribute type mapping.



206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 206

def self.swagger_types
  {
    # rubocop:disable Style/SymbolLiteral
    'id': :'String',
    'compartment_id': :'String',
    'display_name': :'String',
    'ticket_numbers': :'Array<String>',
    'reason_for_request': :'String',
    'time_access_requested': :'DateTime',
    'resource_id': :'String',
    'resource_name': :'String',
    'resource_type': :'String',
    'requested_action_names': :'Array<String>',
    'requester_type': :'String',
    'delegation_control_id': :'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',
    '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



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
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 469

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 &&
    time_access_requested == other.time_access_requested &&
    resource_id == other.resource_id &&
    resource_name == other.resource_name &&
    resource_type == other.resource_type &&
    requested_action_names == other.requested_action_names &&
    requester_type == other.requester_type &&
    delegation_control_id == other.delegation_control_id &&
    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 &&
    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



522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 522

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


502
503
504
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 502

def eql?(other)
  self == other
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



511
512
513
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 511

def hash
  [id, compartment_id, display_name, ticket_numbers, reason_for_request, time_access_requested, resource_id, resource_name, resource_type, requested_action_names, requester_type, delegation_control_id, severity, duration_in_hours, extend_duration_in_hours, is_auto_approved, lifecycle_state, lifecycle_state_details, request_status, time_created, time_updated, 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



555
556
557
558
559
560
561
562
563
564
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 555

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



549
550
551
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 549

def to_s
  to_hash.to_s
end