occi-core 5.0.0.beta.11 → 5.0.0.beta.12
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7fac8305b97465339c2c6a44616f3ceb7fdd730f
|
4
|
+
data.tar.gz: 5f25b9057c15e7f2f652c7ee1c09c21f05f9bdc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37d60f5af4d17f5ffdfc9a1a086b97e26d4428ad29f376ba32cadf5ec48ce75c0d7ac7d039aa58c62b6ae19d45ea90fbebee453d28f1d1435332ac25c6fd70b5
|
7
|
+
data.tar.gz: 0c3e720535038f78c8ffcb2d1171706f337135513c7e8cc3ffe483472c43f35fea6a8f569f10c05b8f5973ffca8f97b69383e0a136211e5da0acac8279d1d8ee
|
data/lib/occi/core/version.rb
CHANGED
@@ -3,7 +3,7 @@ module Occi
|
|
3
3
|
MAJOR_VERSION = 5 # Major update constant
|
4
4
|
MINOR_VERSION = 0 # Minor update constant
|
5
5
|
PATCH_VERSION = 0 # Patch/Fix version constant
|
6
|
-
STAGE_VERSION = 'beta.
|
6
|
+
STAGE_VERSION = 'beta.12'.freeze # use `nil` for production releases
|
7
7
|
|
8
8
|
unless defined?(::Occi::Core::VERSION)
|
9
9
|
VERSION = [
|
@@ -16,6 +16,7 @@ module Occi
|
|
16
16
|
# Mixins
|
17
17
|
AVAILABILITY_ZONE_MIXIN = 'http://schemas.ogf.org/occi/infrastructure#availability_zone'.freeze
|
18
18
|
REGION_MIXIN = 'http://schemas.ogf.org/occi/infrastructure#region'.freeze
|
19
|
+
FLOATINGIPPOOL_MIXIN = 'http://schemas.openstack.org/network#floatingippool'.freeze
|
19
20
|
end
|
20
21
|
end
|
21
22
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Occi
|
2
|
+
module InfrastructureExt
|
3
|
+
module Mixins
|
4
|
+
# A helper class for manipulation with `floatingippool` parent mixin. Doesn't
|
5
|
+
# provide any additional functionality aside from the class name.
|
6
|
+
#
|
7
|
+
# @author Boris Parak <parak@cesnet.cz>
|
8
|
+
class Floatingippool < Occi::Core::Mixin
|
9
|
+
TITLE = 'OCCI Floatingippool mixin'.freeze
|
10
|
+
|
11
|
+
# See `Occi::Core::Mixin` and `Occi::Core::Category`
|
12
|
+
def initialize
|
13
|
+
schema, term = Occi::InfrastructureExt::Constants::FLOATINGIPPOOL_MIXIN.split('#')
|
14
|
+
super term: term, schema: "#{schema}#", title: TITLE
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -14,6 +14,7 @@ module Occi
|
|
14
14
|
Occi::InfrastructureExt::Warehouse.bootstrap! self
|
15
15
|
self << Occi::InfrastructureExt::Mixins::AvailabilityZone.new
|
16
16
|
self << Occi::InfrastructureExt::Mixins::Region.new
|
17
|
+
self << Occi::InfrastructureExt::Mixins::Floatingippool.new
|
17
18
|
nil
|
18
19
|
end
|
19
20
|
|
@@ -37,6 +38,13 @@ module Occi
|
|
37
38
|
def find_regions
|
38
39
|
find_dependent Occi::InfrastructureExt::Mixins::Region.new
|
39
40
|
end
|
41
|
+
|
42
|
+
# Returns all mixins dependent on the base `floatingippool` mixin defined by OGF.
|
43
|
+
#
|
44
|
+
# @return [Set] set of mixins dependent on `floatingippool`
|
45
|
+
def find_floatingippools
|
46
|
+
find_dependent Occi::InfrastructureExt::Mixins::Floatingippool.new
|
47
|
+
end
|
40
48
|
end
|
41
49
|
end
|
42
50
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: occi-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.0.beta.
|
4
|
+
version: 5.0.0.beta.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boris Parak
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-08-01 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -534,6 +534,7 @@ files:
|
|
534
534
|
- lib/occi/infrastructure_ext/mixins.rb
|
535
535
|
- lib/occi/infrastructure_ext/mixins/.gitkeep
|
536
536
|
- lib/occi/infrastructure_ext/mixins/availability_zone.rb
|
537
|
+
- lib/occi/infrastructure_ext/mixins/floatingippool.rb
|
537
538
|
- lib/occi/infrastructure_ext/mixins/region.rb
|
538
539
|
- lib/occi/infrastructure_ext/model.rb
|
539
540
|
- lib/occi/infrastructure_ext/securitygroup.rb
|