Class: Rafflesia::RegistryReconciliationReceipt

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/registry/registry_reconciliation_receipt.rb

Constant Summary collapse

HASH_ATTRS =
{
  cloud_run_execution: :cloud_run_execution,
  cloud_run_job: :cloud_run_job,
  compiled_snapshot_sha256: :compiled_snapshot_sha_256,
  environment: :environment,
  git_commit: :git_commit,
  immutable_snapshot_uri: :immutable_snapshot_uri,
  is_in_sync: :is_in_sync,
  reconciled_at: :reconciled_at,
  reconciler_image: :reconciler_image,
  schema_version: :schema_version,
  source_digest: :source_digest,
  verified_gcs_artifact_count: :verified_gcs_artifact_count
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RegistryReconciliationReceipt

Returns a new instance of RegistryReconciliationReceipt.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 37

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @cloud_run_execution = hash[:cloud_run_execution]
  @cloud_run_job = hash[:cloud_run_job]
  @compiled_snapshot_sha_256 = hash[:compiled_snapshot_sha256]
  @environment = hash[:environment]
  @git_commit = hash[:git_commit]
  @immutable_snapshot_uri = hash[:immutable_snapshot_uri]
  @is_in_sync = hash[:is_in_sync]
  @reconciled_at = hash[:reconciled_at]
  @reconciler_image = hash[:reconciler_image]
  @schema_version = hash[:schema_version]
  @source_digest = hash[:source_digest]
  @verified_gcs_artifact_count = hash[:verified_gcs_artifact_count]
end

Instance Attribute Details

#cloud_run_executionObject

Returns the value of attribute cloud_run_execution.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def cloud_run_execution
  @cloud_run_execution
end

#cloud_run_jobObject

Returns the value of attribute cloud_run_job.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def cloud_run_job
  @cloud_run_job
end

#compiled_snapshot_sha_256Object

Returns the value of attribute compiled_snapshot_sha_256.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def compiled_snapshot_sha_256
  @compiled_snapshot_sha_256
end

#environmentObject

Returns the value of attribute environment.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def environment
  @environment
end

#git_commitObject

Returns the value of attribute git_commit.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def git_commit
  @git_commit
end

#immutable_snapshot_uriObject

Returns the value of attribute immutable_snapshot_uri.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def immutable_snapshot_uri
  @immutable_snapshot_uri
end

#is_in_syncObject

Returns the value of attribute is_in_sync.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def is_in_sync
  @is_in_sync
end

#reconciled_atObject

Returns the value of attribute reconciled_at.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def reconciled_at
  @reconciled_at
end

#reconciler_imageObject

Returns the value of attribute reconciler_image.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def reconciler_image
  @reconciler_image
end

#schema_versionObject

Returns the value of attribute schema_version.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def schema_version
  @schema_version
end

#source_digestObject

Returns the value of attribute source_digest.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def source_digest
  @source_digest
end

#verified_gcs_artifact_countObject

Returns the value of attribute verified_gcs_artifact_count.



23
24
25
# File 'lib/rafflesia/registry/registry_reconciliation_receipt.rb', line 23

def verified_gcs_artifact_count
  @verified_gcs_artifact_count
end