Class: Purest::ProtectionGroup

Inherits:
APIMethods show all
Defined in:
lib/purest/protection_group.rb

Constant Summary collapse

GET_PARAMS =
%i[names pending pending_only retention schedule
snap source space target total transfer].freeze

Instance Method Summary collapse

Methods inherited from APIMethods

#append_path

Methods inherited from Rest

access_method?, #authenticated?, #concat_url, #initialize, #logout, method_missing, #use_named_parameter

Constructor Details

This class inherits a constructor from Purest::Rest

Instance Method Details

#create(options = nil) ⇒ Object



14
15
16
# File 'lib/purest/protection_group.rb', line 14

def create(options = nil)
  super(options, 'pgroup')
end

#delete(options = nil) ⇒ Object



22
23
24
# File 'lib/purest/protection_group.rb', line 22

def delete(options = nil)
  super(options, 'pgroup')
end

#get(options = nil) ⇒ Object



10
11
12
# File 'lib/purest/protection_group.rb', line 10

def get(options = nil)
  super(options, 'pgroup', GET_PARAMS)
end

#update(options = nil) ⇒ Object



18
19
20
# File 'lib/purest/protection_group.rb', line 18

def update(options = nil)
  super(options, 'pgroup')
end