fog-gridscale 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.gitignore +0 -1
- data/CHANGELOG.md +12 -5
- data/CONTRIBUTORS.md +2 -1
- data/lib/fog/compute/gridscale.rb +0 -11
- data/lib/fog/compute/gridscale/models/access_keys.rb +0 -1
- data/lib/fog/compute/gridscale/models/buckets.rb +0 -1
- data/lib/fog/compute/gridscale/models/server.rb +5 -0
- data/lib/fog/gridscale/version.rb +1 -1
- metadata +4 -12
- data/lib/fog/compute/gridscale/models/cas.rb +0 -51
- data/lib/fog/compute/gridscale/models/cass.rb +0 -27
- data/lib/fog/compute/gridscale/requests/cas_actions_get.rb +0 -17
- data/lib/fog/compute/gridscale/requests/cas_create.rb +0 -42
- data/lib/fog/compute/gridscale/requests/cas_delete.rb +0 -20
- data/lib/fog/compute/gridscale/requests/cas_events_get.rb +0 -17
- data/lib/fog/compute/gridscale/requests/cas_get.rb +0 -17
- data/lib/fog/compute/gridscale/requests/cas_update.rb +0 -23
- data/lib/fog/compute/gridscale/requests/cass_get.rb +0 -18
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 7274725ce42dd79a88b2adbfe4f0fde33914f46f
|
|
4
|
+
data.tar.gz: f40476a15f95c2085b4fd7902873c81a05e63147
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44f2c1a8bccbfda63ba729aa768cd4408b947baf77a49cc941604aff6e03bc2cacb982b93a6f88e9170c3060a066a05bccffee4e72cdd9d041fc9e4fe70d3b30
|
|
7
|
+
data.tar.gz: 9992a9420e4d5276ec53e2cdb2a512da159ac3acb5e3b14f6627cc23838ae308d63717037d2e20ac6ba6c0cf271f7dae433e2072ff910f0407d3611e4c2a7f96
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,24 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [vX.X.X] (Unreleased)
|
|
4
|
+
|
|
5
|
+
## [v0.1.5] (Aug 28, 2019)
|
|
6
|
+
|
|
7
|
+
- Remove CAS (GH-2)
|
|
8
|
+
- Add interfaces method to server model (GH-3)
|
|
9
|
+
|
|
10
|
+
## [v0.1.4] (Apr 29, 2019)
|
|
4
11
|
|
|
5
12
|
- Update descriptions and links to point to GitHub.
|
|
6
13
|
|
|
7
|
-
## [v0.1.3]
|
|
14
|
+
## [v0.1.3] (Feb 8, 2019)
|
|
8
15
|
|
|
9
16
|
- fixed empty sshkey handler for storage with private template creation in
|
|
10
17
|
server add
|
|
11
18
|
- Allowed creating host to choose isoimage which available in gridscale user account
|
|
12
19
|
|
|
13
|
-
## [v0.1.2]
|
|
20
|
+
## [v0.1.2] (Jan 5, 2019)
|
|
14
21
|
|
|
15
22
|
- Commented out publishing protection in gemfile.
|
|
16
23
|
|
|
17
|
-
## [v0.1.1]
|
|
24
|
+
## [v0.1.1] (Nov 22, 2018)
|
|
18
25
|
|
|
19
26
|
- Fix the interface collection and model.
|
|
20
27
|
|
|
21
|
-
## [v0.1.0]
|
|
28
|
+
## [v0.1.0] (Nov 19, 2018)
|
|
22
29
|
|
|
23
30
|
- Initial release of fog-gridscale.
|
|
24
31
|
|
data/CONTRIBUTORS.md
CHANGED
|
@@ -20,8 +20,6 @@ module Fog
|
|
|
20
20
|
collection :ips
|
|
21
21
|
model :interface
|
|
22
22
|
collection :interfaces
|
|
23
|
-
model :cas
|
|
24
|
-
collection :cass
|
|
25
23
|
model :loadbalancer
|
|
26
24
|
collection :loadbalancers
|
|
27
25
|
model :server_relation_storage
|
|
@@ -145,15 +143,6 @@ module Fog
|
|
|
145
143
|
request :isoimages_get
|
|
146
144
|
request :isoimage_update
|
|
147
145
|
|
|
148
|
-
#cas
|
|
149
|
-
request :cas_create
|
|
150
|
-
request :cass_get
|
|
151
|
-
request :cas_delete
|
|
152
|
-
request :cas_get
|
|
153
|
-
request :cas_update
|
|
154
|
-
request :cas_events_get
|
|
155
|
-
request :cas_actions_get
|
|
156
|
-
|
|
157
146
|
#snapshot
|
|
158
147
|
request :snapshot_create
|
|
159
148
|
request :snapshots_get
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fog-gridscale
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- aldemuro haris
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-
|
|
11
|
+
date: 2019-08-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -108,8 +108,6 @@ files:
|
|
|
108
108
|
- lib/fog/compute/gridscale/models/access_keys.rb
|
|
109
109
|
- lib/fog/compute/gridscale/models/bucket.rb
|
|
110
110
|
- lib/fog/compute/gridscale/models/buckets.rb
|
|
111
|
-
- lib/fog/compute/gridscale/models/cas.rb
|
|
112
|
-
- lib/fog/compute/gridscale/models/cass.rb
|
|
113
111
|
- lib/fog/compute/gridscale/models/deleted_ip.rb
|
|
114
112
|
- lib/fog/compute/gridscale/models/deleted_ips.rb
|
|
115
113
|
- lib/fog/compute/gridscale/models/deleted_isoimage.rb
|
|
@@ -173,13 +171,6 @@ files:
|
|
|
173
171
|
- lib/fog/compute/gridscale/requests/access_keys_get.rb
|
|
174
172
|
- lib/fog/compute/gridscale/requests/bucket_get.rb
|
|
175
173
|
- lib/fog/compute/gridscale/requests/buckets_get.rb
|
|
176
|
-
- lib/fog/compute/gridscale/requests/cas_actions_get.rb
|
|
177
|
-
- lib/fog/compute/gridscale/requests/cas_create.rb
|
|
178
|
-
- lib/fog/compute/gridscale/requests/cas_delete.rb
|
|
179
|
-
- lib/fog/compute/gridscale/requests/cas_events_get.rb
|
|
180
|
-
- lib/fog/compute/gridscale/requests/cas_get.rb
|
|
181
|
-
- lib/fog/compute/gridscale/requests/cas_update.rb
|
|
182
|
-
- lib/fog/compute/gridscale/requests/cass_get.rb
|
|
183
174
|
- lib/fog/compute/gridscale/requests/deleted_ips_get.rb
|
|
184
175
|
- lib/fog/compute/gridscale/requests/deleted_isoimages_get.rb
|
|
185
176
|
- lib/fog/compute/gridscale/requests/deleted_networks_get.rb
|
|
@@ -314,7 +305,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
314
305
|
- !ruby/object:Gem::Version
|
|
315
306
|
version: '0'
|
|
316
307
|
requirements: []
|
|
317
|
-
|
|
308
|
+
rubyforge_project:
|
|
309
|
+
rubygems_version: 2.5.2.3
|
|
318
310
|
signing_key:
|
|
319
311
|
specification_version: 4
|
|
320
312
|
summary: Module for the 'fog' gem to support gridscale cloud platform
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
require 'fog/compute/models/server'
|
|
2
|
-
require 'fog/core'
|
|
3
|
-
module Fog
|
|
4
|
-
module Compute
|
|
5
|
-
class Gridscale
|
|
6
|
-
class Cas < Fog::Model
|
|
7
|
-
identity :object_uuid
|
|
8
|
-
|
|
9
|
-
attribute :event_type
|
|
10
|
-
attribute :filters
|
|
11
|
-
attribute :name
|
|
12
|
-
attribute :executing_user_uuid
|
|
13
|
-
attribute :active
|
|
14
|
-
attribute :labels
|
|
15
|
-
attribute :action_type
|
|
16
|
-
attribute :executing_user_token
|
|
17
|
-
attribute :action_payload
|
|
18
|
-
attribute :change_time
|
|
19
|
-
attribute :create_time
|
|
20
|
-
attribute :object_uuid
|
|
21
|
-
attribute :location_uuid
|
|
22
|
-
|
|
23
|
-
def save
|
|
24
|
-
raise Fog::Errors::Error.new('Re-saving an existing object may create a duplicate') if persisted?
|
|
25
|
-
requires :name, :action_payload,:filters, :event_type, :action_type, :labels
|
|
26
|
-
|
|
27
|
-
options ={}
|
|
28
|
-
|
|
29
|
-
if attributes[:labels]
|
|
30
|
-
options[:labels] = labels
|
|
31
|
-
end
|
|
32
|
-
|
|
33
|
-
if attributes[:location_uuid]
|
|
34
|
-
options[:location_uuid] = labels
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
data = service.cas_create(name, action_payload,filters, event_type, action_type, options)
|
|
38
|
-
merge_attributes(data.body)
|
|
39
|
-
true
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
def destroy
|
|
43
|
-
requires :object_uuid
|
|
44
|
-
response = service.cas_delete object_uuid
|
|
45
|
-
response.body
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
end
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
require 'fog/core/collection'
|
|
2
|
-
require 'fog/compute/gridscale/models/cas'
|
|
3
|
-
require 'fog/compute/gridscale/models/paging_collection'
|
|
4
|
-
|
|
5
|
-
module Fog
|
|
6
|
-
module Compute
|
|
7
|
-
class Gridscale
|
|
8
|
-
class Cass < Fog::Compute::Gridscale::PagingCollection
|
|
9
|
-
model Fog::Compute::Gridscale::Cas
|
|
10
|
-
|
|
11
|
-
def all(filters={})
|
|
12
|
-
data = service.cass_get(filters)
|
|
13
|
-
droplets = data.body["tasks"].values
|
|
14
|
-
load(droplets)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
def get(object_uuid)
|
|
18
|
-
data = service.cas_get(object_uuid).body['task']
|
|
19
|
-
new(data) if data
|
|
20
|
-
rescue Fog::Errors::NotFound
|
|
21
|
-
nil
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
end
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
module Fog
|
|
2
|
-
module Compute
|
|
3
|
-
class Gridscale
|
|
4
|
-
class Real
|
|
5
|
-
|
|
6
|
-
def cas_create(name, action_payload,filters, event_type, action_type, options = {})
|
|
7
|
-
|
|
8
|
-
create_options = {
|
|
9
|
-
:name => name,
|
|
10
|
-
:action_payload => action_payload,
|
|
11
|
-
:filters => filters,
|
|
12
|
-
:event_type => event_type,
|
|
13
|
-
:action_type => action_type,
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
if options[:labels]
|
|
17
|
-
create_options[:labels] = options[:labels]
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if options[:location_uuid]
|
|
22
|
-
create_options[:location_uuid] = options[:location_uuid]
|
|
23
|
-
else
|
|
24
|
-
create_options[:location_uuid] = '45ed677b-3702-4b36-be2a-a2eab9827950'
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
encoded_body = Fog::JSON.encode(create_options)
|
|
28
|
-
|
|
29
|
-
request(
|
|
30
|
-
:expects => [202],
|
|
31
|
-
:headers => {
|
|
32
|
-
'Content-Type' => "application/json; charset=UTF-8",
|
|
33
|
-
},
|
|
34
|
-
:method => 'POST',
|
|
35
|
-
:path => "/objects/cas/tasks",
|
|
36
|
-
:body => encoded_body,
|
|
37
|
-
)
|
|
38
|
-
end
|
|
39
|
-
end
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
module Fog
|
|
2
|
-
module Compute
|
|
3
|
-
class Gridscale
|
|
4
|
-
class Real
|
|
5
|
-
|
|
6
|
-
def cas_delete(cas_uuid)
|
|
7
|
-
request(
|
|
8
|
-
:expects => [204],
|
|
9
|
-
:headers => {
|
|
10
|
-
'Content-Type' => "application/json; charset=UTF-8",
|
|
11
|
-
},
|
|
12
|
-
:method => 'DELETE',
|
|
13
|
-
:path => "objects/cas/tasks/#{cas_uuid}",
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
20
|
-
end
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
module Fog
|
|
2
|
-
module Compute
|
|
3
|
-
class Gridscale
|
|
4
|
-
class Real
|
|
5
|
-
|
|
6
|
-
def cas_update(cas_uuid, payload)
|
|
7
|
-
encoded_body = Fog::JSON.encode(payload)
|
|
8
|
-
|
|
9
|
-
request(
|
|
10
|
-
:expects => [202],
|
|
11
|
-
:headers => {
|
|
12
|
-
'Content-Type' => "application/json; charset=UTF-8",
|
|
13
|
-
},
|
|
14
|
-
:method => 'PATCH',
|
|
15
|
-
:path => "/objects/cas/tasks/#{cas_uuid}",
|
|
16
|
-
:body => encoded_body,
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
end
|