Class: OCI::OperatorAccessControl::Models::ApproverDetail
- Inherits:
- 
      Object
      
        - Object
- OCI::OperatorAccessControl::Models::ApproverDetail
 
- Defined in:
- lib/oci/operator_access_control/models/approver_detail.rb
Overview
details of Approver Detail.
Instance Attribute Summary collapse
- 
  
    
      #approval_action  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The action done by the approver. 
- 
  
    
      #approval_additional_message  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Additional message specified by the approver of the request. 
- 
  
    
      #approval_comment  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Comment specified by the approver of the request. 
- 
  
    
      #approver_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The userId of the approver. 
- 
  
    
      #time_approved_for_access  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time for when the access request should start that is authorized by the customer in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'. 
- 
  
    
      #time_of_authorization  ⇒ DateTime 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Time when the access request was authorized by the customer in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'. 
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 = {})  ⇒ ApproverDetail 
    
    
  
  
  
    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 = {}) ⇒ ApproverDetail
Initializes the object
| 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 77 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.approver_id = attributes[:'approverId'] if attributes[:'approverId'] raise 'You cannot provide both :approverId and :approver_id' if attributes.key?(:'approverId') && attributes.key?(:'approver_id') self.approver_id = attributes[:'approver_id'] if attributes[:'approver_id'] self.approval_action = attributes[:'approvalAction'] if attributes[:'approvalAction'] raise 'You cannot provide both :approvalAction and :approval_action' if attributes.key?(:'approvalAction') && attributes.key?(:'approval_action') self.approval_action = attributes[:'approval_action'] if attributes[:'approval_action'] self.approval_comment = attributes[:'approvalComment'] if attributes[:'approvalComment'] raise 'You cannot provide both :approvalComment and :approval_comment' if attributes.key?(:'approvalComment') && attributes.key?(:'approval_comment') self.approval_comment = attributes[:'approval_comment'] if attributes[:'approval_comment'] self. = attributes[:'approvalAdditionalMessage'] if attributes[:'approvalAdditionalMessage'] raise 'You cannot provide both :approvalAdditionalMessage and :approval_additional_message' if attributes.key?(:'approvalAdditionalMessage') && attributes.key?(:'approval_additional_message') self. = attributes[:'approval_additional_message'] if attributes[:'approval_additional_message'] self. = attributes[:'timeOfAuthorization'] if attributes[:'timeOfAuthorization'] raise 'You cannot provide both :timeOfAuthorization and :time_of_authorization' if attributes.key?(:'timeOfAuthorization') && attributes.key?(:'time_of_authorization') self. = attributes[:'time_of_authorization'] if attributes[:'time_of_authorization'] self.time_approved_for_access = attributes[:'timeApprovedForAccess'] if attributes[:'timeApprovedForAccess'] raise 'You cannot provide both :timeApprovedForAccess and :time_approved_for_access' if attributes.key?(:'timeApprovedForAccess') && attributes.key?(:'time_approved_for_access') self.time_approved_for_access = attributes[:'time_approved_for_access'] if attributes[:'time_approved_for_access'] end | 
Instance Attribute Details
#approval_action ⇒ String
The action done by the approver.
| 17 18 19 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 17 def approval_action @approval_action end | 
#approval_additional_message ⇒ String
Additional message specified by the approver of the request.
| 25 26 27 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 25 def @approval_additional_message end | 
#approval_comment ⇒ String
Comment specified by the approver of the request.
| 21 22 23 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 21 def approval_comment @approval_comment end | 
#approver_id ⇒ String
The userId of the approver.
| 13 14 15 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 13 def approver_id @approver_id end | 
#time_approved_for_access ⇒ DateTime
Time for when the access request should start that is authorized by the customer in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
| 35 36 37 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 35 def time_approved_for_access @time_approved_for_access end | 
#time_of_authorization ⇒ DateTime
Time when the access request was authorized by the customer in RFC 3339 timestamp format.Example: '2020-05-22T21:10:29.600Z'
| 30 31 32 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 30 def @time_of_authorization end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 38 39 40 41 42 43 44 45 46 47 48 49 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 38 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'approver_id': :'approverId', 'approval_action': :'approvalAction', 'approval_comment': :'approvalComment', 'approval_additional_message': :'approvalAdditionalMessage', 'time_of_authorization': :'timeOfAuthorization', 'time_approved_for_access': :'timeApprovedForAccess' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 52 53 54 55 56 57 58 59 60 61 62 63 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 52 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'approver_id': :'String', 'approval_action': :'String', 'approval_comment': :'String', 'approval_additional_message': :'String', 'time_of_authorization': :'DateTime', 'time_approved_for_access': :'DateTime' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 127 128 129 130 131 132 133 134 135 136 137 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 127 def ==(other) return true if equal?(other) self.class == other.class && approver_id == other.approver_id && approval_action == other.approval_action && approval_comment == other.approval_comment && == other. && == other. && time_approved_for_access == other.time_approved_for_access end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 162 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
| 142 143 144 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 142 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 151 152 153 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 151 def hash [approver_id, approval_action, approval_comment, , , time_approved_for_access].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 195 196 197 198 199 200 201 202 203 204 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 195 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
| 189 190 191 | # File 'lib/oci/operator_access_control/models/approver_detail.rb', line 189 def to_s to_hash.to_s end |