class Google::Cloud::Storage::HmacKey::List
def self.from_gapi gapi_list, service, service_account_email: nil,
- Private: - New HmacKey::List from a Google API Client
def self.from_gapi gapi_list, service, service_account_email: nil, show_deleted_keys: nil, max: nil, user_project: nil hmac_keys = new(Array(gapi_list.items).map do |gapi_object| HmacKey.from_gapi_metadata gapi_object, service, user_project: user_project end) hmac_keys.instance_variable_set :@token, gapi_list.next_page_token hmac_keys.instance_variable_set :@service, service hmac_keys.instance_variable_set :@service_account_email, service_account_email hmac_keys.instance_variable_set :@show_deleted_keys, show_deleted_keys hmac_keys.instance_variable_set :@max, max hmac_keys.instance_variable_set :@user_project, user_project hmac_keys end