Class: OCI::Cims::Models::Incident
- Inherits:
-
Object
- Object
- OCI::Cims::Models::Incident
- Defined in:
- lib/oci/cims/models/incident.rb
Overview
Details about the support request.
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::IncidentType
-
#is_write_permitted ⇒ BOOLEAN
Technical support type (
TECH) only: Allows update of the support request in My Oracle Cloud Support portal, when the user has write permission to the support request's user group. -
#key ⇒ String
[Required] Unique identifier for the support request.
-
#migrated_sr_number ⇒ String
Technical support type (
TECH) only: The pre-migration identifier of the support request in My Oracle Support (MOS). -
#primary_contact_party_id ⇒ String
Technical support type (
TECH) only: The identifier of the support request's primary contact (primaryContactPartyName) in My Oracle Cloud Support portal. -
#primary_contact_party_name ⇒ String
Technical support type (
TECH) only: The name of the support request's primary contact in My Oracle Cloud Support portal. -
#problem_type ⇒ String
The kind of support request (type of support request).
-
#referrer ⇒ String
The incident referrer.
- #tenancy_information ⇒ OCI::Cims::Models::TenancyInformation
- #ticket ⇒ OCI::Cims::Models::Ticket
-
#user_group_id ⇒ String
Technical support type (
TECH) only: The identifier of the support request's user group in My Oracle Cloud Support portal. -
#user_group_name ⇒ String
Technical support type (
TECH) only: Name of the support request's user group in My Oracle Cloud Support portal. -
#warn_message ⇒ String
Technical support type (
TECH) only: Message indicating the user group (userGroupId) that was auto-selected for a new support request.
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 = {}) ⇒ Incident
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 = {}) ⇒ Incident
Initializes the object
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 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 204 205 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 236 237 238 239 240 241 242 |
# File 'lib/oci/cims/models/incident.rb', line 159 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.migrated_sr_number = attributes[:'migratedSrNumber'] if attributes[:'migratedSrNumber'] raise 'You cannot provide both :migratedSrNumber and :migrated_sr_number' if attributes.key?(:'migratedSrNumber') && attributes.key?(:'migrated_sr_number') self.migrated_sr_number = attributes[:'migrated_sr_number'] if attributes[:'migrated_sr_number'] self.user_group_id = attributes[:'userGroupId'] if attributes[:'userGroupId'] raise 'You cannot provide both :userGroupId and :user_group_id' if attributes.key?(:'userGroupId') && attributes.key?(:'user_group_id') self.user_group_id = attributes[:'user_group_id'] if attributes[:'user_group_id'] self.user_group_name = attributes[:'userGroupName'] if attributes[:'userGroupName'] raise 'You cannot provide both :userGroupName and :user_group_name' if attributes.key?(:'userGroupName') && attributes.key?(:'user_group_name') self.user_group_name = attributes[:'user_group_name'] if attributes[:'user_group_name'] self.primary_contact_party_id = attributes[:'primaryContactPartyId'] if attributes[:'primaryContactPartyId'] raise 'You cannot provide both :primaryContactPartyId and :primary_contact_party_id' if attributes.key?(:'primaryContactPartyId') && attributes.key?(:'primary_contact_party_id') self.primary_contact_party_id = attributes[:'primary_contact_party_id'] if attributes[:'primary_contact_party_id'] self.primary_contact_party_name = attributes[:'primaryContactPartyName'] if attributes[:'primaryContactPartyName'] raise 'You cannot provide both :primaryContactPartyName and :primary_contact_party_name' if attributes.key?(:'primaryContactPartyName') && attributes.key?(:'primary_contact_party_name') self.primary_contact_party_name = attributes[:'primary_contact_party_name'] if attributes[:'primary_contact_party_name'] self.is_write_permitted = attributes[:'isWritePermitted'] unless attributes[:'isWritePermitted'].nil? raise 'You cannot provide both :isWritePermitted and :is_write_permitted' if attributes.key?(:'isWritePermitted') && attributes.key?(:'is_write_permitted') self.is_write_permitted = attributes[:'is_write_permitted'] unless attributes[:'is_write_permitted'].nil? self. = attributes[:'warnMessage'] if attributes[:'warnMessage'] raise 'You cannot provide both :warnMessage and :warn_message' if attributes.key?(:'warnMessage') && attributes.key?(:'warn_message') self. = attributes[:'warn_message'] if attributes[:'warn_message'] 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'] self.referrer = attributes[:'referrer'] if attributes[:'referrer'] end |
Instance Attribute Details
#compartment_id ⇒ String
The OCID of the tenancy.
27 28 29 |
# File 'lib/oci/cims/models/incident.rb', line 27 def compartment_id @compartment_id end |
#contact_list ⇒ OCI::Cims::Models::ContactList
30 31 32 |
# File 'lib/oci/cims/models/incident.rb', line 30 def contact_list @contact_list end |
#incident_type ⇒ OCI::Cims::Models::IncidentType
39 40 41 |
# File 'lib/oci/cims/models/incident.rb', line 39 def incident_type @incident_type end |
#is_write_permitted ⇒ BOOLEAN
Technical support type (TECH) only: Allows update of the support request in My Oracle Cloud Support portal, when the user has write permission to the support request's user group.
70 71 72 |
# File 'lib/oci/cims/models/incident.rb', line 70 def is_write_permitted @is_write_permitted end |
#key ⇒ String
[Required] Unique identifier for the support request.
23 24 25 |
# File 'lib/oci/cims/models/incident.rb', line 23 def key @key end |
#migrated_sr_number ⇒ String
Technical support type (TECH) only: The pre-migration identifier of the support request in My Oracle Support (MOS).
44 45 46 |
# File 'lib/oci/cims/models/incident.rb', line 44 def migrated_sr_number @migrated_sr_number end |
#primary_contact_party_id ⇒ String
Technical support type (TECH) only: The identifier of the support request's primary contact (primaryContactPartyName) in My Oracle Cloud Support portal.
59 60 61 |
# File 'lib/oci/cims/models/incident.rb', line 59 def primary_contact_party_id @primary_contact_party_id end |
#primary_contact_party_name ⇒ String
Technical support type (TECH) only: The name of the support request's primary contact in My Oracle Cloud Support portal.
64 65 66 |
# File 'lib/oci/cims/models/incident.rb', line 64 def primary_contact_party_name @primary_contact_party_name end |
#problem_type ⇒ String
The kind of support request (type of support request). For information about ACCOUNT support requests, see Creating a Billing Support Request. For information about LIMIT support requests, see Creating a Service Limit Increase Request. For information about TECH support requests, see Creating a Technical Support Request.
86 87 88 |
# File 'lib/oci/cims/models/incident.rb', line 86 def problem_type @problem_type end |
#referrer ⇒ String
The incident referrer. This value is often the URL that the customer used when creating the support request.
90 91 92 |
# File 'lib/oci/cims/models/incident.rb', line 90 def referrer @referrer end |
#tenancy_information ⇒ OCI::Cims::Models::TenancyInformation
33 34 35 |
# File 'lib/oci/cims/models/incident.rb', line 33 def tenancy_information @tenancy_information end |
#ticket ⇒ OCI::Cims::Models::Ticket
36 37 38 |
# File 'lib/oci/cims/models/incident.rb', line 36 def ticket @ticket end |
#user_group_id ⇒ String
Technical support type (TECH) only: The identifier of the support request's user group in My Oracle Cloud Support portal.
49 50 51 |
# File 'lib/oci/cims/models/incident.rb', line 49 def user_group_id @user_group_id end |
#user_group_name ⇒ String
Technical support type (TECH) only: Name of the support request's user group in My Oracle Cloud Support portal.
54 55 56 |
# File 'lib/oci/cims/models/incident.rb', line 54 def user_group_name @user_group_name end |
#warn_message ⇒ String
Technical support type (TECH) only: Message indicating the user group (userGroupId) that was auto-selected for a new support request. This message appears when no user group was specified in the create request for a new technical support request.
75 76 77 |
# File 'lib/oci/cims/models/incident.rb', line 75 def @warn_message end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 |
# File 'lib/oci/cims/models/incident.rb', line 93 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'key': :'key', 'compartment_id': :'compartmentId', 'contact_list': :'contactList', 'tenancy_information': :'tenancyInformation', 'ticket': :'ticket', 'incident_type': :'incidentType', 'migrated_sr_number': :'migratedSrNumber', 'user_group_id': :'userGroupId', 'user_group_name': :'userGroupName', 'primary_contact_party_id': :'primaryContactPartyId', 'primary_contact_party_name': :'primaryContactPartyName', 'is_write_permitted': :'isWritePermitted', 'warn_message': :'warnMessage', 'problem_type': :'problemType', 'referrer': :'referrer' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# File 'lib/oci/cims/models/incident.rb', line 116 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::IncidentType', 'migrated_sr_number': :'String', 'user_group_id': :'String', 'user_group_name': :'String', 'primary_contact_party_id': :'String', 'primary_contact_party_name': :'String', 'is_write_permitted': :'BOOLEAN', 'warn_message': :'String', 'problem_type': :'String', 'referrer': :'String' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 |
# File 'lib/oci/cims/models/incident.rb', line 264 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 && migrated_sr_number == other.migrated_sr_number && user_group_id == other.user_group_id && user_group_name == other.user_group_name && primary_contact_party_id == other.primary_contact_party_id && primary_contact_party_name == other.primary_contact_party_name && is_write_permitted == other.is_write_permitted && == other. && problem_type == other.problem_type && referrer == other.referrer end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
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/cims/models/incident.rb', line 308 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
288 289 290 |
# File 'lib/oci/cims/models/incident.rb', line 288 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
297 298 299 |
# File 'lib/oci/cims/models/incident.rb', line 297 def hash [key, compartment_id, contact_list, tenancy_information, ticket, incident_type, migrated_sr_number, user_group_id, user_group_name, primary_contact_party_id, primary_contact_party_name, is_write_permitted, , problem_type, referrer].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
341 342 343 344 345 346 347 348 349 350 |
# File 'lib/oci/cims/models/incident.rb', line 341 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
335 336 337 |
# File 'lib/oci/cims/models/incident.rb', line 335 def to_s to_hash.to_s end |