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

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

#active!Google::Cloud::Storage::HmacKey

Updates the state of the HMAC key to ACTIVE.

Examples:

require "google/cloud/storage"

storage = Google::Cloud::Storage.new

hmac_key = storage.hmac_keys.first

hmac_key.active!
hmac_key.state # "ACTIVE"

Returns:



181
182
183
184
# File 'lib/google/cloud/storage/hmac_key.rb', line 181

def active!
  put_gapi! "ACTIVE"
  self
end