Class: OCI::Cims::Models::IncidentSummary
- Inherits:
- 
      Object
      
        - Object
- OCI::Cims::Models::IncidentSummary
 
- Defined in:
- lib/oci/cims/models/incident_summary.rb
Overview
Details about the support ticket.
Constant Summary collapse
- PROBLEM_TYPE_ENUM =
- [ PROBLEM_TYPE_LIMIT = 'LIMIT'.freeze, PROBLEM_TYPE_LEGACY_LIMIT = 'LEGACY_LIMIT'.freeze, PROBLEM_TYPE_TECH = 'TECH'.freeze, PROBLEM_TYPE_ACCOUNT = 'ACCOUNT'.freeze, PROBLEM_TYPE_TAXONOMY = 'TAXONOMY'.freeze, PROBLEM_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze 
Instance Attribute Summary collapse
- 
  
    
      #compartment_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The OCID of the tenancy. 
- #contact_list ⇒ OCI::Cims::Models::ContactList
- #incident_type ⇒ OCI::Cims::Models::IncidentResourceType
- 
  
    
      #key  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] Unique identifier of the incident. 
- 
  
    
      #problem_type  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    [Required] The kind of support ticket, such as a technical support request or a limit increase request. 
- #tenancy_information ⇒ OCI::Cims::Models::TenancyInformation
- #ticket ⇒ OCI::Cims::Models::Ticket
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 = {})  ⇒ IncidentSummary 
    
    
  
  
  
    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 = {}) ⇒ IncidentSummary
Initializes the object
| 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 119 120 121 122 123 124 125 126 127 | # File 'lib/oci/cims/models/incident_summary.rb', line 88 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.key = attributes[:'key'] if attributes[:'key'] 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.contact_list = attributes[:'contactList'] if attributes[:'contactList'] raise 'You cannot provide both :contactList and :contact_list' if attributes.key?(:'contactList') && attributes.key?(:'contact_list') self.contact_list = attributes[:'contact_list'] if attributes[:'contact_list'] self.tenancy_information = attributes[:'tenancyInformation'] if attributes[:'tenancyInformation'] raise 'You cannot provide both :tenancyInformation and :tenancy_information' if attributes.key?(:'tenancyInformation') && attributes.key?(:'tenancy_information') self.tenancy_information = attributes[:'tenancy_information'] if attributes[:'tenancy_information'] self.ticket = attributes[:'ticket'] if attributes[:'ticket'] self.incident_type = attributes[:'incidentType'] if attributes[:'incidentType'] raise 'You cannot provide both :incidentType and :incident_type' if attributes.key?(:'incidentType') && attributes.key?(:'incident_type') self.incident_type = attributes[:'incident_type'] if attributes[:'incident_type'] self.problem_type = attributes[:'problemType'] if attributes[:'problemType'] raise 'You cannot provide both :problemType and :problem_type' if attributes.key?(:'problemType') && attributes.key?(:'problem_type') self.problem_type = attributes[:'problem_type'] if attributes[:'problem_type'] end | 
Instance Attribute Details
#compartment_id ⇒ String
The OCID of the tenancy.
| 27 28 29 | # File 'lib/oci/cims/models/incident_summary.rb', line 27 def compartment_id @compartment_id end | 
#contact_list ⇒ OCI::Cims::Models::ContactList
| 30 31 32 | # File 'lib/oci/cims/models/incident_summary.rb', line 30 def contact_list @contact_list end | 
#incident_type ⇒ OCI::Cims::Models::IncidentResourceType
| 39 40 41 | # File 'lib/oci/cims/models/incident_summary.rb', line 39 def incident_type @incident_type end | 
#key ⇒ String
[Required] Unique identifier of the incident.
| 23 24 25 | # File 'lib/oci/cims/models/incident_summary.rb', line 23 def key @key end | 
#problem_type ⇒ String
[Required] The kind of support ticket, such as a technical support request or a limit increase request.
| 43 44 45 | # File 'lib/oci/cims/models/incident_summary.rb', line 43 def problem_type @problem_type end | 
#tenancy_information ⇒ OCI::Cims::Models::TenancyInformation
| 33 34 35 | # File 'lib/oci/cims/models/incident_summary.rb', line 33 def tenancy_information @tenancy_information end | 
#ticket ⇒ OCI::Cims::Models::Ticket
| 36 37 38 | # File 'lib/oci/cims/models/incident_summary.rb', line 36 def ticket @ticket end | 
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
| 46 47 48 49 50 51 52 53 54 55 56 57 58 | # File 'lib/oci/cims/models/incident_summary.rb', line 46 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'key': :'key', 'compartment_id': :'compartmentId', 'contact_list': :'contactList', 'tenancy_information': :'tenancyInformation', 'ticket': :'ticket', 'incident_type': :'incidentType', 'problem_type': :'problemType' # rubocop:enable Style/SymbolLiteral } end | 
.swagger_types ⇒ Object
Attribute type mapping.
| 61 62 63 64 65 66 67 68 69 70 71 72 73 | # File 'lib/oci/cims/models/incident_summary.rb', line 61 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'key': :'String', 'compartment_id': :'String', 'contact_list': :'OCI::Cims::Models::ContactList', 'tenancy_information': :'OCI::Cims::Models::TenancyInformation', 'ticket': :'OCI::Cims::Models::Ticket', 'incident_type': :'OCI::Cims::Models::IncidentResourceType', 'problem_type': :'String' # rubocop:enable Style/SymbolLiteral } end | 
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
| 149 150 151 152 153 154 155 156 157 158 159 160 | # File 'lib/oci/cims/models/incident_summary.rb', line 149 def ==(other) return true if equal?(other) self.class == other.class && key == other.key && compartment_id == other.compartment_id && contact_list == other.contact_list && tenancy_information == other.tenancy_information && ticket == other.ticket && incident_type == other.incident_type && problem_type == other.problem_type end | 
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
| 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 | # File 'lib/oci/cims/models/incident_summary.rb', line 185 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
| 165 166 167 | # File 'lib/oci/cims/models/incident_summary.rb', line 165 def eql?(other) self == other end | 
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
| 174 175 176 | # File 'lib/oci/cims/models/incident_summary.rb', line 174 def hash [key, compartment_id, contact_list, tenancy_information, ticket, incident_type, problem_type].hash end | 
#to_hash ⇒ Hash
Returns the object in the form of hash
| 218 219 220 221 222 223 224 225 226 227 | # File 'lib/oci/cims/models/incident_summary.rb', line 218 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
| 212 213 214 | # File 'lib/oci/cims/models/incident_summary.rb', line 212 def to_s to_hash.to_s end |