Class: SDM::SnapshotPolicies
- Inherits:
-
Object
- Object
- SDM::SnapshotPolicies
- Extended by:
- Gem::Deprecate
- Defined in:
- lib/svc.rb
Overview
SnapshotPolicies exposes the read only methods of the Policies service for historical queries.
Instance Method Summary collapse
-
#get(id, deadline: nil) ⇒ Object
Get reads one Policy by ID.
-
#initialize(policies) ⇒ SnapshotPolicies
constructor
A new instance of SnapshotPolicies.
-
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Policy matching a given set of criteria.
Constructor Details
#initialize(policies) ⇒ SnapshotPolicies
Returns a new instance of SnapshotPolicies.
3746 3747 3748 |
# File 'lib/svc.rb', line 3746 def initialize(policies) @policies = policies end |
Instance Method Details
#get(id, deadline: nil) ⇒ Object
Get reads one Policy by ID.
3751 3752 3753 3754 3755 3756 3757 3758 3759 |
# File 'lib/svc.rb', line 3751 def get( id, deadline: nil ) return @policies.get( id, deadline: deadline, ) end |
#list(filter, *args, deadline: nil) ⇒ Object
List gets a list of Policy matching a given set of criteria
3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 |
# File 'lib/svc.rb', line 3762 def list( filter, *args, deadline: nil ) return @policies.list( filter, *args, deadline: deadline, ) end |