Class: SDM::SnapshotApprovalWorkflows

Inherits:
Object
  • Object
show all
Extended by:
Gem::Deprecate
Defined in:
lib/svc.rb

Overview

SnapshotApprovalWorkflows exposes the read only methods of the ApprovalWorkflows service for historical queries.

Instance Method Summary collapse

Constructor Details

#initialize(approval_workflows) ⇒ SnapshotApprovalWorkflows

Returns a new instance of SnapshotApprovalWorkflows.



1926
1927
1928
# File 'lib/svc.rb', line 1926

def initialize(approval_workflows)
  @approval_workflows = approval_workflows
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one approval workflow by ID.



1931
1932
1933
1934
1935
1936
1937
1938
1939
# File 'lib/svc.rb', line 1931

def get(
  id,
  deadline: nil
)
  return @approval_workflows.get(
           id,
           deadline: deadline,
         )
end

#list(filter, *args, deadline: nil) ⇒ Object

Lists existing approval workflows.



1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
# File 'lib/svc.rb', line 1942

def list(
  filter,
  *args,
  deadline: nil
)
  return @approval_workflows.list(
           filter,
                        *args,
                        deadline: deadline,
         )
end