Class: Code42::StorePoint

Inherits:
Resource show all
Defined in:
lib/code42/store_point.rb

Instance Attribute Summary

Attributes inherited from Resource

#attributes, #client

Instance Method Summary collapse

Methods inherited from Resource

attribute, collection_from_response, deserialize, deserialize_and_initialize, from_response, #initialize, serialize, #serialize, serializer

Constructor Details

This class inherits a constructor from Code42::Resource

Instance Method Details

#accept_new_devices ⇒ Object



55
56
57
# File 'lib/code42/store_point.rb', line 55

def accept_new_devices
  client.update_store_point id, accepting_new_computers: true
end

#disable_balancing ⇒ Object



43
44
45
# File 'lib/code42/store_point.rb', line 43

def disable_balancing
  client.update_store_point id, balancing_data: false
end

#disable_inbound_backup ⇒ Object



51
52
53
# File 'lib/code42/store_point.rb', line 51

def disable_inbound_backup
  client.update_store_point id, accepting_inbound_backup: false
end

#enable_balancing ⇒ Object



39
40
41
# File 'lib/code42/store_point.rb', line 39

def enable_balancing
  client.update_store_point id, balancing_data: true
end

#enable_inbound_backup ⇒ Object



47
48
49
# File 'lib/code42/store_point.rb', line 47

def enable_inbound_backup
  client.update_store_point id, accepting_inbound_backup: true
end

#reject_new_devices ⇒ Object



59
60
61
# File 'lib/code42/store_point.rb', line 59

def reject_new_devices
  client.update_store_point id, accepting_new_computers: false
end