def save
      body = { provider: to_hash }

      begin
        response = Atlas.client.put(url_builder.box_provider_url, body: body)
      rescue Atlas::Errors::NotFoundError
        response = Atlas.client.post("#{url_builder.box_version_url}/providers",
                                     body: body)
      end

      update_with_response(response)
    end
def save
      body = { provider: to_hash }

      begin
        response = Atlas.client.put(url_builder.box_provider_url, body: body)
      rescue Atlas::Errors::NotFoundError
        response = Atlas.client.post("#{url_builder.box_version_url}/providers",
                                     body: body)
      end

      update_with_response(response)
    end
Initialize a provider from a tag and object hash.

 @param [String] tag the tag which represents the origin on the provider.
 @param [Hash] hash the attributes for the box
 @param hash [String] :name The name of the provider.
 @param hash [String] :url An HTTP URL to the box file. Omit if uploading
   with Atlas.
 Save the provider.

 @return [Hash] Atlas response object.