Sha256: 041a5059226fcd96c128f68a151e81ccf4101e5e6b74eacfdbdf5fe1f67cce01
Contents?: true
Size: 598 Bytes
Versions: 5
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true module Hcloud class Volume require 'hcloud/volume_resource' include EntryLoader schema( created: :time, location: Location ) protectable :delete updatable :name destructible has_actions def attach(server:, automount:) prepare_request('actions/attach', j: COLLECT_ARGS.call(__method__, binding)) end def detach prepare_request('actions/detach', method: :post) end def resize(size:) prepare_request('actions/resize', j: COLLECT_ARGS.call(__method__, binding)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
hcloud-1.1.0 | lib/hcloud/volume.rb |
hcloud-1.0.3 | lib/hcloud/volume.rb |
hcloud-1.0.2 | lib/hcloud/volume.rb |
hcloud-1.0.1 | lib/hcloud/volume.rb |
hcloud-1.0.0 | lib/hcloud/volume.rb |