Sha256: 0e4a1e9fb1283102951eca022bb8f4b8f19a7dd4069fdec923efc8b35d391283

Contents?: true

Size: 891 Bytes

Versions: 8

Compression:

Stored size: 891 Bytes

Contents

# frozen_string_literal: true

module Fog
  module Compute
    class Aliyun
      class Real
        # {Aliyun API Reference}[https://docs.aliyun.com/?spm=5176.100054.3.1.DGkmH7#/pub/ecs/open-api/network&releaseeipaddress]
        def release_eip_address(allocationId)
          _action = 'ReleaseEipAddress'
          _sigNonce = randonStr
          _time = Time.new.utc

          _parameters = defalutParameters(_action, _sigNonce, _time)
          _pathURL = defaultAliyunUri(_action, _sigNonce, _time)

          _parameters['AllocationId'] = allocationId
          _pathURL += '&AllocationId=' + allocationId

          _signature = sign(@aliyun_accesskey_secret, _parameters)
          _pathURL += '&Signature=' + _signature

          request(
            expects: [200, 204],
            method: 'GET',
            path: _pathURL
          )
        end
      end
    end
  end
end

Version data entries

8 entries across 6 versions & 2 rubygems

Version Path
fog-aliyun-0.3.5 lib/fog/aliyun/requests/compute/release_eip_address.rb
fog-aliyun-0.3.4 lib/fog/aliyun/requests/compute/release_eip_address.rb
fog-aliyun-0.3.3 lib/fog/aliyun/requests/compute/release_eip_address.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/requests/compute/release_eip_address.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/requests/compute/release_eip_address.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-aliyun-0.3.2/lib/fog/aliyun/requests/compute/release_eip_address.rb
fog-aliyun-0.3.2 lib/fog/aliyun/requests/compute/release_eip_address.rb
fog-aliyun-0.3.1 lib/fog/aliyun/requests/compute/release_eip_address.rb