Class: SDM::SnapshotPolicies

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(policies) ⇒ SnapshotPolicies

Returns a new instance of SnapshotPolicies.



3803
3804
3805
# File 'lib/svc.rb', line 3803

def initialize(policies)
  @policies = policies
end

Instance Method Details

#get(id, deadline: nil) ⇒ Object

Get reads one Policy by ID.



3808
3809
3810
3811
3812
3813
3814
3815
3816
# File 'lib/svc.rb', line 3808

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



3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
# File 'lib/svc.rb', line 3819

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