Method: OCI::ResourceManager::Models::ApplyJobPlanResolution#initialize

Defined in:
lib/oci/resource_manager/models/apply_job_plan_resolution.rb

#initialize(attributes = {}) ⇒ ApplyJobPlanResolution

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):

  • :plan_job_id (String)

    The value to assign to the #plan_job_id property

  • :is_use_latest_job_id (BOOLEAN)

    The value to assign to the #is_use_latest_job_id property

  • :is_auto_approved (BOOLEAN)

    The value to assign to the #is_auto_approved property



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/oci/resource_manager/models/apply_job_plan_resolution.rb', line 60

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.plan_job_id = attributes[:'planJobId'] if attributes[:'planJobId']

  raise 'You cannot provide both :planJobId and :plan_job_id' if attributes.key?(:'planJobId') && attributes.key?(:'plan_job_id')

  self.plan_job_id = attributes[:'plan_job_id'] if attributes[:'plan_job_id']

  self.is_use_latest_job_id = attributes[:'isUseLatestJobId'] unless attributes[:'isUseLatestJobId'].nil?

  raise 'You cannot provide both :isUseLatestJobId and :is_use_latest_job_id' if attributes.key?(:'isUseLatestJobId') && attributes.key?(:'is_use_latest_job_id')

  self.is_use_latest_job_id = attributes[:'is_use_latest_job_id'] unless attributes[:'is_use_latest_job_id'].nil?

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