Class: Rafflesia::DatasetSourceSnapshotPreflightData

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb

Constant Summary collapse

HASH_ATTRS =
{
  accept_ranges: :accept_ranges,
  acquisition_working_bytes: :acquisition_working_bytes,
  additional_working_bytes: :additional_working_bytes,
  artifact_kind: :artifact_kind,
  available_local_bytes: :available_local_bytes,
  content_length_bytes: :content_length_bytes,
  has_capacity: :has_capacity,
  http_etag: :http_etag,
  http_last_modified: :http_last_modified,
  is_capacity_known: :is_capacity_known,
  is_content_length_known: :is_content_length_known,
  minimum_free_bytes: :minimum_free_bytes,
  profile: :profile,
  published_md5: :published_md_5,
  recommended_max_bytes: :recommended_max_bytes,
  release_metadata_url: :release_metadata_url,
  requested_url: :requested_url,
  required_local_bytes: :required_local_bytes,
  resolved_url: :resolved_url,
  source: :source,
  upstream_release: :upstream_release
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetSourceSnapshotPreflightData

Returns a new instance of DatasetSourceSnapshotPreflightData.



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 55

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @accept_ranges = hash[:accept_ranges]
  @acquisition_working_bytes = hash[:acquisition_working_bytes]
  @additional_working_bytes = hash[:additional_working_bytes]
  @artifact_kind = hash[:artifact_kind]
  @available_local_bytes = hash[:available_local_bytes]
  @content_length_bytes = hash[:content_length_bytes]
  @has_capacity = hash[:has_capacity]
  @http_etag = hash[:http_etag]
  @http_last_modified = hash[:http_last_modified]
  @is_capacity_known = hash[:is_capacity_known]
  @is_content_length_known = hash[:is_content_length_known]
  @minimum_free_bytes = hash[:minimum_free_bytes]
  @profile = hash[:profile] ? Rafflesia::DatasetSourceSnapshotArtifactProfile.new(hash[:profile]) : nil
  @published_md_5 = hash[:published_md5]
  @recommended_max_bytes = hash[:recommended_max_bytes]
  @release_metadata_url = hash[:release_metadata_url]
  @requested_url = hash[:requested_url]
  @required_local_bytes = hash[:required_local_bytes]
  @resolved_url = hash[:resolved_url]
  @source = hash[:source]
  @upstream_release = hash[:upstream_release]
end

Instance Attribute Details

#accept_rangesObject

Returns the value of attribute accept_ranges.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def accept_ranges
  @accept_ranges
end

#acquisition_working_bytesObject

Returns the value of attribute acquisition_working_bytes.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def acquisition_working_bytes
  @acquisition_working_bytes
end

#additional_working_bytesObject

Returns the value of attribute additional_working_bytes.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def additional_working_bytes
  @additional_working_bytes
end

#artifact_kindObject

Returns the value of attribute artifact_kind.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def artifact_kind
  @artifact_kind
end

#available_local_bytesObject

Returns the value of attribute available_local_bytes.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def available_local_bytes
  @available_local_bytes
end

#content_length_bytesObject

Returns the value of attribute content_length_bytes.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def content_length_bytes
  @content_length_bytes
end

#has_capacityObject

Returns the value of attribute has_capacity.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def has_capacity
  @has_capacity
end

#http_etagObject

Returns the value of attribute http_etag.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def http_etag
  @http_etag
end

#http_last_modifiedObject

Returns the value of attribute http_last_modified.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def http_last_modified
  @http_last_modified
end

#is_capacity_knownObject

Returns the value of attribute is_capacity_known.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def is_capacity_known
  @is_capacity_known
end

#is_content_length_knownObject

Returns the value of attribute is_content_length_known.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def is_content_length_known
  @is_content_length_known
end

#minimum_free_bytesObject

Returns the value of attribute minimum_free_bytes.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def minimum_free_bytes
  @minimum_free_bytes
end

#profileObject

Returns the value of attribute profile.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def profile
  @profile
end

#published_md_5Object

Returns the value of attribute published_md_5.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def published_md_5
  @published_md_5
end

Returns the value of attribute recommended_max_bytes.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def recommended_max_bytes
  @recommended_max_bytes
end

#release_metadata_urlObject

Returns the value of attribute release_metadata_url.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def 
  @release_metadata_url
end

#requested_urlObject

Returns the value of attribute requested_url.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def requested_url
  @requested_url
end

#required_local_bytesObject

Returns the value of attribute required_local_bytes.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def required_local_bytes
  @required_local_bytes
end

#resolved_urlObject

Returns the value of attribute resolved_url.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def resolved_url
  @resolved_url
end

#sourceObject

Returns the value of attribute source.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def source
  @source
end

#upstream_releaseObject

Returns the value of attribute upstream_release.



32
33
34
# File 'lib/rafflesia/datasets/dataset_source_snapshot_preflight_data.rb', line 32

def upstream_release
  @upstream_release
end