fog-gridscale 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 194cc15d76b0a723ef94ad3b6177dba825012077fca0b980be824fd7d956c591
4
- data.tar.gz: 1d7c347d84a0f13f0c90f8892205eb14d15ed30b8d39317a1e80e39b911a25a2
2
+ SHA1:
3
+ metadata.gz: 7274725ce42dd79a88b2adbfe4f0fde33914f46f
4
+ data.tar.gz: f40476a15f95c2085b4fd7902873c81a05e63147
5
5
  SHA512:
6
- metadata.gz: 284afd1d48416b9b96a9c66123a0ca4911717b6a2fb8ddd5da89770f9815ad1093eea95da4fb34647a39ea5b4379bb6f20f58ccdd660cb681cebbc15cef8f393
7
- data.tar.gz: ced32cdd60e16cee60132eb35d747eca46e3aadf1ddac58523baccfa76bf20987696bb17736f6f3e63906d3ee5202c326413210d51bdf3d0ae76f61ee44a080d
6
+ metadata.gz: 44f2c1a8bccbfda63ba729aa768cd4408b947baf77a49cc941604aff6e03bc2cacb982b93a6f88e9170c3060a066a05bccffee4e72cdd9d041fc9e4fe70d3b30
7
+ data.tar.gz: 9992a9420e4d5276ec53e2cdb2a512da159ac3acb5e3b14f6627cc23838ae308d63717037d2e20ac6ba6c0cf271f7dae433e2072ff910f0407d3611e4c2a7f96
data/.gitignore CHANGED
@@ -7,4 +7,3 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /.idea/
10
- Dockerfile
@@ -1,24 +1,31 @@
1
1
  # Changelog
2
2
 
3
- ## [v0.1.4]
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
 
@@ -1,2 +1,3 @@
1
1
  * Aldemuro Haris <aldemuro@gridscale.io>
2
- * Wouter Wijsman <wouter@gridscale.io>
2
+ * Wouter Wijsman <wouter@gridscale.io>
3
+ * Ruben Schuller <schuller@bytemine.net>
@@ -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
@@ -1,5 +1,4 @@
1
1
  require 'fog/core/collection'
2
- require 'fog/compute/gridscale/models/cas'
3
2
  require 'fog/compute/gridscale/models/paging_collection'
4
3
 
5
4
  module Fog
@@ -1,5 +1,4 @@
1
1
  require 'fog/core/collection'
2
- require 'fog/compute/gridscale/models/cas'
3
2
  require 'fog/compute/gridscale/models/paging_collection'
4
3
 
5
4
  module Fog
@@ -77,6 +77,11 @@ module Fog
77
77
  end
78
78
  end
79
79
 
80
+ def interfaces
81
+ requires :object_uuid
82
+ service.server_relation_networks.all(object_uuid)
83
+ end
84
+
80
85
  def ipv6_address
81
86
  if (net = relations['public_ips'].find {|n|n['family']==6})
82
87
  net['ip']
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Gridscale
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
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
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-05-07 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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,17 +0,0 @@
1
- module Fog
2
- module Compute
3
- class Gridscale
4
- class Real
5
-
6
- def cas_actions_get()
7
- request(
8
- :expects => [200],
9
- :method => 'GET',
10
- :path => "objects/cas/actions"
11
- )
12
- end
13
-
14
- end
15
- end
16
- end
17
- 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,17 +0,0 @@
1
- module Fog
2
- module Compute
3
- class Gridscale
4
- class Real
5
-
6
- def cas_events_get()
7
- request(
8
- :expects => [200],
9
- :method => 'GET',
10
- :path => "objects/cas/events"
11
- )
12
- end
13
-
14
- end
15
- end
16
- end
17
- end
@@ -1,17 +0,0 @@
1
- module Fog
2
- module Compute
3
- class Gridscale
4
- class Real
5
-
6
- def cas_get(cas_uuid)
7
- request(
8
- :expects => [200],
9
- :method => 'GET',
10
- :path => "objects/cas/tasks/#{cas_uuid}"
11
- )
12
- end
13
-
14
- end
15
- end
16
- end
17
- 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
@@ -1,18 +0,0 @@
1
- module Fog
2
- module Compute
3
- class Gridscale
4
- class Real
5
-
6
- def cass_get(filters={})
7
- request(
8
- :expects => [200],
9
- :method => 'GET',
10
- :path => "objects/cas/tasks",
11
- :query => filters
12
- )
13
- end
14
-
15
- end
16
- end
17
- end
18
- end