/
account.rb
51 lines (42 loc) · 1.25 KB
/
account.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 :cloud_ips_limit
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