fog-brightbox 0.0.2 → 0.1.0.dev1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/fog/brightbox/compute.rb +3 -0
- data/lib/fog/brightbox/models/compute/event.rb +28 -0
- data/lib/fog/brightbox/models/compute/events.rb +19 -0
- data/lib/fog/brightbox/requests/compute/list_events.rb +19 -0
- data/lib/fog/brightbox/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4e4e8118a6b3a1f4ff00c8e2495689f3e7d92af
|
4
|
+
data.tar.gz: 836134a83b457a94ec52befd3e918f0de6a83661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f9fe1a948fd47c16613664d04c3514f4760468d8128ab62bd82083e8e164a8e0175bf19e8d887dba58ae9123de18fbb3882df01db2ff69ace214716e68fd6da
|
7
|
+
data.tar.gz: 964d6ac09c9c329d2debd970e7d793c4448b807679daa5c6dcc6057ecc484fbe6e048a30d0f416284b34921b19a8bfba8da37769eaaf1c206aa7a9ce06ff0984
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
### 0.1.0.dev1 / PRELEASE
|
2
|
+
|
3
|
+
This PRERELEASE version may contain functionality that is removed before the
|
4
|
+
next release so all APIs should be considered unstable and you should lock
|
5
|
+
to the exact version if used!
|
6
|
+
|
7
|
+
Enhancements:
|
8
|
+
|
9
|
+
* Add support for events feed
|
10
|
+
|
1
11
|
### 0.0.2 / 2014-04-10
|
2
12
|
|
3
13
|
Bug fixes:
|
@@ -37,6 +37,8 @@ module Fog
|
|
37
37
|
model :server
|
38
38
|
collection :server_groups
|
39
39
|
model :server_group
|
40
|
+
collection :events
|
41
|
+
model :event
|
40
42
|
collection :firewall_policies
|
41
43
|
model :firewall_policy
|
42
44
|
collection :firewall_rules
|
@@ -121,6 +123,7 @@ module Fog
|
|
121
123
|
request :list_applications
|
122
124
|
request :list_cloud_ips
|
123
125
|
request :list_collaborations
|
126
|
+
request :list_events
|
124
127
|
request :list_firewall_policies
|
125
128
|
request :list_images
|
126
129
|
request :list_load_balancers
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'fog/core/model'
|
2
|
+
|
3
|
+
module Fog
|
4
|
+
module Compute
|
5
|
+
class Brightbox
|
6
|
+
|
7
|
+
class Event < Fog::Model
|
8
|
+
|
9
|
+
identity :id
|
10
|
+
attribute :url
|
11
|
+
attribute :resource_type
|
12
|
+
|
13
|
+
attribute :action
|
14
|
+
attribute :message
|
15
|
+
attribute :short_message
|
16
|
+
|
17
|
+
# Times
|
18
|
+
attribute :created_at, :type => :time
|
19
|
+
|
20
|
+
# Links - to be replaced
|
21
|
+
attribute :resource
|
22
|
+
attribute :client
|
23
|
+
attribute :user
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'fog/core/collection'
|
2
|
+
require 'fog/brightbox/models/compute/event'
|
3
|
+
|
4
|
+
module Fog
|
5
|
+
module Compute
|
6
|
+
class Brightbox
|
7
|
+
|
8
|
+
class Events < Fog::Collection
|
9
|
+
|
10
|
+
model Fog::Compute::Brightbox::Event
|
11
|
+
|
12
|
+
def all
|
13
|
+
data = service.list_events
|
14
|
+
load(data)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Fog
|
2
|
+
module Compute
|
3
|
+
class Brightbox
|
4
|
+
class Real
|
5
|
+
# Lists events related to the account.
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# @return [Hash] if successful Hash version of JSON object
|
9
|
+
#
|
10
|
+
# @see https://api.gb1.brightbox.com/1.0/#event_list_events
|
11
|
+
#
|
12
|
+
def list_events
|
13
|
+
wrapped_request("get", "/1.0/events", [200])
|
14
|
+
end
|
15
|
+
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fog-brightbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.1.0.dev1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Thornthwaite
|
@@ -115,6 +115,8 @@ files:
|
|
115
115
|
- lib/fog/brightbox/models/compute/database_snapshots.rb
|
116
116
|
- lib/fog/brightbox/models/compute/database_type.rb
|
117
117
|
- lib/fog/brightbox/models/compute/database_types.rb
|
118
|
+
- lib/fog/brightbox/models/compute/event.rb
|
119
|
+
- lib/fog/brightbox/models/compute/events.rb
|
118
120
|
- lib/fog/brightbox/models/compute/firewall_policies.rb
|
119
121
|
- lib/fog/brightbox/models/compute/firewall_policy.rb
|
120
122
|
- lib/fog/brightbox/models/compute/firewall_rule.rb
|
@@ -195,6 +197,7 @@ files:
|
|
195
197
|
- lib/fog/brightbox/requests/compute/list_database_servers.rb
|
196
198
|
- lib/fog/brightbox/requests/compute/list_database_snapshots.rb
|
197
199
|
- lib/fog/brightbox/requests/compute/list_database_types.rb
|
200
|
+
- lib/fog/brightbox/requests/compute/list_events.rb
|
198
201
|
- lib/fog/brightbox/requests/compute/list_firewall_policies.rb
|
199
202
|
- lib/fog/brightbox/requests/compute/list_images.rb
|
200
203
|
- lib/fog/brightbox/requests/compute/list_load_balancers.rb
|
@@ -254,9 +257,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
254
257
|
version: '0'
|
255
258
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
256
259
|
requirements:
|
257
|
-
- - "
|
260
|
+
- - ">"
|
258
261
|
- !ruby/object:Gem::Version
|
259
|
-
version:
|
262
|
+
version: 1.3.1
|
260
263
|
requirements: []
|
261
264
|
rubyforge_project:
|
262
265
|
rubygems_version: 2.2.2
|