Method: Google::Cloud::Storage::HmacKey#inactive!

Defined in:
lib/google/cloud/storage/hmac_key.rb

#inactive!Google::Cloud::Storage::HmacKey

Updates the state of the HMAC key to INACTIVE.

Examples:

require "google/cloud/storage"

storage = Google::Cloud::Storage.new

hmac_key = storage.hmac_keys.first

hmac_key.inactive!
hmac_key.state # "INACTIVE"

Returns:



211
212
213
214
# File 'lib/google/cloud/storage/hmac_key.rb', line 211

def inactive!
  put_gapi! "INACTIVE"
  self
end