lib/esp/resources/suppression.rb
# Deactivate the current suppression instance.
# The current object will be updated with the new status if successful.
# If not successful, populates its errors object.
# === Once deactivated the suppression cannot be reactivated.
#
# @return [Net::HTTPSuccess, false]
Deactivate the current suppression instance.
The current object will be updated with the new status if successful.
If not successful, populates its errors object.
Once deactivated the suppression cannot be reactivated.
Deactivate the current suppression instance . The current object will be updated with the new status if successful . If not successful populates its errors object . Once deactivated the suppression cannot be reactivated .
def deactivate
      patch(:deactivate).tap do |response|
        load_attributes_from_response(response)
      end
    rescue ActiveResource::BadRequest, ActiveResource::ResourceInvalid, ActiveResource::UnauthorizedAccess => error
      load_remote_errors(error, true)
      self.code = error.response.code
      false
    end
def deactivate patch ( :deactivate ) . tap do | response | load_attributes_from_response ( response ) end rescue ActiveResource :: BadRequest , ActiveResource :: ResourceInvalid , ActiveResource :: UnauthorizedAccess => error load_remote_errors ( error , true ) self . code = error . response . code false end
Deactivate the current suppression instance.
Deactivate the current suppression instance .
None
Net::HTTPSuccess, false