Sha256: fd648ab675771b218090531984eea5aad69afc6535b375f891872e5e01d84a42

Contents?: true

Size: 1.25 KB

Versions: 4

Compression:

Stored size: 1.25 KB

Contents

require 'fog/core/model'

module Fog
  module Compute
    class Brightbox

      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

4 entries across 4 versions & 2 rubygems

Version Path
fog-0.10.0 lib/fog/compute/models/brightbox/account.rb
fog4encbs-0.9.0.1 lib/fog/compute/models/brightbox/account.rb
fog4encbs-0.9.0 lib/fog/compute/models/brightbox/account.rb
fog-0.9.0 lib/fog/compute/models/brightbox/account.rb