Class: OCI::DelegateAccessControl::Models::DelegatedResourceAccessRequestSummary
- Inherits:
-
Object
- Object
- OCI::DelegateAccessControl::Models::DelegatedResourceAccessRequestSummary
- 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
-
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the Delegated Resource Access Request.
-
#defined_tags ⇒ Hash<String, Hash<String, Object>>
Defined tags for this resource.
-
#delegation_control_id ⇒ String
[Required] The OCID of the Delegation Control governing the target resource.
-
#display_name ⇒ String
Display name.
-
#duration_in_hours ⇒ Integer
Duration in hours for which access is sought on the target resource.
-
#extend_duration_in_hours ⇒ Integer
Duration in hours for which extension access is sought on the target resource.
-
#freeform_tags ⇒ Hash<String, String>
Free-form tags for this resource.
-
#id ⇒ String
[Required] The OCID of the Delegated Resource Access Request.
-
#is_auto_approved ⇒ BOOLEAN
Set to true if the request is approved automatically based on preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated Delegation Control.
-
#lifecycle_state ⇒ String
The current lifecycle state of the Delegated Resource Access Request.
-
#lifecycle_state_details ⇒ String
Description of the current lifecycle state in more detail.
-
#reason_for_request ⇒ String
[Required] A short description explaining why this Delegated Resource Access Request is needed by the support operator.
-
#request_status ⇒ String
The current status of the Delegated Resource Access Request.
-
#requested_action_names ⇒ Array<String>
List of Service Provider Action names for which approval is sought by the support operator user.
-
#requester_type ⇒ String
Requester type.
-
#resource_id ⇒ String
[Required] The OCID of the target resource associated with the Delegated Resource Access Request.
-
#resource_name ⇒ String
The name of the target resource associated with the Delegated Resource Access Request.
-
#resource_type ⇒ String
Resource type for which the associated Delegation Control is applicable to.
-
#severity ⇒ String
Priority assigned to the Delegated Resource Access Request by the support operator.
-
#system_tags ⇒ Hash<String, Hash<String, Object>>
System tags for this resource.
-
#ticket_numbers ⇒ Array<String>
A list of ticket numbers related to this Delegated Resource Access Request, e.g.
-
#time_access_requested ⇒ DateTime
Requested access start time in UTC.
-
#time_created ⇒ DateTime
Time when the Delegated Resource Access Request was created by the support operator user in RFC 3339 timestamp format, e.g.
-
#time_updated ⇒ DateTime
Time when the Delegated Resource Access Request was last modified in RFC 3339 timestamp format, e.g.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ DelegatedResourceAccessRequestSummary
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ DelegatedResourceAccessRequestSummary
Initializes the object
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. = attributes[:'freeformTags'] if attributes[:'freeformTags'] raise 'You cannot provide both :freeformTags and :freeform_tags' if attributes.key?(:'freeformTags') && attributes.key?(:'freeform_tags') self. = attributes[:'freeform_tags'] if attributes[:'freeform_tags'] self. = attributes[:'definedTags'] if attributes[:'definedTags'] raise 'You cannot provide both :definedTags and :defined_tags' if attributes.key?(:'definedTags') && attributes.key?(:'defined_tags') self. = attributes[:'defined_tags'] if attributes[:'defined_tags'] self. = attributes[:'systemTags'] if attributes[:'systemTags'] raise 'You cannot provide both :systemTags and :system_tags' if attributes.key?(:'systemTags') && attributes.key?(:'system_tags') self. = attributes[:'system_tags'] if attributes[:'system_tags'] end |
Instance Attribute Details
#compartment_id ⇒ String
[Required] The OCID of the compartment that contains the Delegated Resource Access Request.
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_tags ⇒ Hash<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\"}}
164 165 166 |
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 164 def @defined_tags end |
#delegation_control_id ⇒ String
[Required] The OCID of the Delegation Control governing the target resource.
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_name ⇒ String
Display name. This is generated by the system automatically.
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_hours ⇒ Integer
Duration in hours for which access is sought on the target resource.
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_hours ⇒ Integer
Duration in hours for which extension access is sought on the target resource.
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_tags ⇒ Hash<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\"}
156 157 158 |
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 156 def @freeform_tags end |
#id ⇒ String
[Required] The OCID of the Delegated Resource Access Request.
62 63 64 |
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 62 def id @id end |
#is_auto_approved ⇒ BOOLEAN
Set to true if the request is approved automatically based on preApprovedServiceProviderActionNames or isAutoApproveDuringMaintenance in the associated Delegation Control.
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_state ⇒ String
The current lifecycle state of the Delegated Resource Access Request.
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_details ⇒ String
Description of the current lifecycle state in more detail.
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_request ⇒ String
[Required] A short description explaining why this Delegated Resource Access Request is needed by the support operator.
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_status ⇒ String
The current status of the Delegated Resource Access Request.
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_names ⇒ Array<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.
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_type ⇒ String
Requester type
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_id ⇒ String
[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.
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_name ⇒ String
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.
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_type ⇒ String
Resource type for which the associated Delegation Control is applicable to.
98 99 100 |
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 98 def resource_type @resource_type end |
#severity ⇒ String
Priority assigned to the Delegated Resource Access Request by the support operator
114 115 116 |
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 114 def severity @severity end |
#system_tags ⇒ Hash<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\"}}
171 172 173 |
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 171 def @system_tags end |
#ticket_numbers ⇒ Array<String>
A list of ticket numbers related to this Delegated Resource Access Request, e.g. Service Request (SR) number and JIRA ticket number.
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_requested ⇒ DateTime
Requested access start time in UTC.
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_created ⇒ DateTime
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'.
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_updated ⇒ DateTime
Time when the Delegated Resource Access Request was last modified in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'.
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_map ⇒ Object
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_types ⇒ Object
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.
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 && == other. && == other. && == other. end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
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
502 503 504 |
# File 'lib/oci/delegate_access_control/models/delegated_resource_access_request_summary.rb', line 502 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
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, , , ].hash end |
#to_hash ⇒ 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_s ⇒ String
Returns the string representation 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 |