Sha256: ac98023277bd0cff65b1b36d8bfa43ee403ee5faace935071f4a6506d014b028

Contents?: true

Size: 1.25 KB

Versions: 38

Compression:

Stored size: 1.25 KB

Contents

require 'fog/core/model'

module Fog
  module Brightbox
    class Compute

      class Account < Fog::Model

        identity :id
        attribute :resource_type
        attribute :url
        attribute :name
        attribute :status
        attribute :address_1
        attribute :address_2
        attribute :city
        attribute :county
        attribute :postcode
        attribute :country_code
        attribute :country_name
        attribute :vat_registration_number
        attribute :telephone_number
        attribute :telephone_verified
        attribute :ram_limit
        attribute :ram_used
        attribute :limits_cloudips
        attribute :library_ftp_host
        attribute :library_ftp_user
        # This is always returned as null/nil unless performing a reset_ftp_password request
        attribute :library_ftp_password
        attribute :created_at, :type => :time



        attribute :owner_id, :aliases => "owner", :squash => "id"
        attribute :clients
        attribute :images
        attribute :servers
        attribute :users
        attribute :zones

        def reset_ftp_password
          requires :identity
          connection.reset_ftp_password_account(identity)["library_ftp_password"]
        end

      end

    end
  end
end

Version data entries

38 entries across 38 versions & 3 rubygems

Version Path
fog-0.8.2 lib/fog/compute/models/brightbox/account.rb
fog-0.8.1 lib/fog/compute/models/brightbox/account.rb
fog-0.8.0 lib/fog/compute/models/brightbox/account.rb
fog-0.7.2 lib/fog/compute/models/brightbox/account.rb
fog-0.7.1 lib/fog/compute/models/brightbox/account.rb
fog-0.7.0 lib/fog/compute/models/brightbox/account.rb
bbcloud-0.11.2 lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/account.rb
bbcloud-0.11.1 lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/account.rb
bbcloud-0.11.0 lib/bbcloud/vendor/fog/lib/fog/compute/models/brightbox/account.rb
fog-0.6.0 lib/fog/compute/models/brightbox/account.rb
fog-0.5.3 lib/fog/compute/models/brightbox/account.rb
fog-0.5.2 lib/fog/compute/models/brightbox/account.rb
fog-0.5.1 lib/fog/compute/models/brightbox/account.rb
fog-0.5.0 lib/fog/compute/models/brightbox/account.rb
phpfog-fog-0.4.1.3 lib/fog/compute/models/brightbox/account.rb
phpfog-fog-0.4.1.2 lib/fog/compute/models/brightbox/account.rb
phpfog-fog-0.4.1.1 lib/fog/compute/models/brightbox/account.rb
phpfog-fog-0.4.1 lib/fog/compute/models/brightbox/account.rb
fog-0.4.1 lib/fog/compute/models/brightbox/account.rb
fog-0.4.0 lib/fog/brightbox/models/compute/account.rb