Class: Rafflesia::ObjectGcRequest

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/objects/object_gc_request.rb

Constant Summary collapse

HASH_ATTRS =
{
  candidate_object_ids: :candidate_object_ids,
  delete: :delete,
  dry_run: :dry_run,
  max_candidates: :max_candidates,
  max_delete: :max_delete,
  max_scan_object_bytes: :max_scan_object_bytes,
  older_than_seconds: :older_than_seconds,
  protect_object_ids: :protect_object_ids,
  scan_object_contents: :scan_object_contents,
  scan_records: :scan_records
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ ObjectGcRequest

Returns a new instance of ObjectGcRequest.



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/rafflesia/objects/object_gc_request.rb', line 33

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @candidate_object_ids = (hash[:candidate_object_ids] || [])
  @delete = hash[:delete]
  @dry_run = hash[:dry_run]
  @max_candidates = hash[:max_candidates]
  @max_delete = hash[:max_delete]
  @max_scan_object_bytes = hash[:max_scan_object_bytes]
  @older_than_seconds = hash[:older_than_seconds]
  @protect_object_ids = (hash[:protect_object_ids] || [])
  @scan_object_contents = hash[:scan_object_contents]
  @scan_records = hash[:scan_records]
end

Instance Attribute Details

#candidate_object_idsObject

Returns the value of attribute candidate_object_ids.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def candidate_object_ids
  @candidate_object_ids
end

#deleteObject

Returns the value of attribute delete.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def delete
  @delete
end

#dry_runObject

Returns the value of attribute dry_run.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def dry_run
  @dry_run
end

#max_candidatesObject

Returns the value of attribute max_candidates.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def max_candidates
  @max_candidates
end

#max_deleteObject

Returns the value of attribute max_delete.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def max_delete
  @max_delete
end

#max_scan_object_bytesObject

Returns the value of attribute max_scan_object_bytes.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def max_scan_object_bytes
  @max_scan_object_bytes
end

#older_than_secondsObject

Returns the value of attribute older_than_seconds.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def older_than_seconds
  @older_than_seconds
end

#protect_object_idsObject

Returns the value of attribute protect_object_ids.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def protect_object_ids
  @protect_object_ids
end

#scan_object_contentsObject

Returns the value of attribute scan_object_contents.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def scan_object_contents
  @scan_object_contents
end

#scan_recordsObject

Returns the value of attribute scan_records.



21
22
23
# File 'lib/rafflesia/objects/object_gc_request.rb', line 21

def scan_records
  @scan_records
end