Class: SDM::ManagedSecretLogsRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/models/porcelain.rb

Overview

ManagedSecretLogsRequest specifies criteria for retrieving a log of Managed Secrets actions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter: nil) ⇒ ManagedSecretLogsRequest

Returns a new instance of ManagedSecretLogsRequest.



11404
11405
11406
11407
11408
# File 'lib/models/porcelain.rb', line 11404

def initialize(
  filter: nil
)
  @filter = filter == nil ? "" : filter
end

Instance Attribute Details

#filter ⇒ Object

A human-readable filter query string.



11402
11403
11404
# File 'lib/models/porcelain.rb', line 11402

def filter
  @filter
end

Instance Method Details

#to_json(options = {}) ⇒ Object



11410
11411
11412
11413
11414
11415
11416
# File 'lib/models/porcelain.rb', line 11410

def to_json(options = {})
  hash = {}
  self.instance_variables.each do |var|
    hash[var.id2name.delete_prefix("@")] = self.instance_variable_get var
  end
  hash.to_json
end