Method: OCI::Devops::Models::InlineDeployArtifactSource#initialize

Defined in:
lib/oci/devops/models/inline_deploy_artifact_source.rb

#initialize(attributes = {}) ⇒ InlineDeployArtifactSource

Initializes the object

Parameters:

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

    Model attributes in the form of hash

Options Hash (attributes):



42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/oci/devops/models/inline_deploy_artifact_source.rb', line 42

def initialize(attributes = {})
  return unless attributes.is_a?(Hash)

  attributes['deployArtifactSourceType'] = 'INLINE'

  super(attributes)

  # convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }

  self.base64_encoded_content = attributes[:'base64EncodedContent'] if attributes[:'base64EncodedContent']

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

  self.base64_encoded_content = attributes[:'base64_encoded_content'] if attributes[:'base64_encoded_content']
end