occi-core 5.0.0.beta.17 → 5.0.0.beta.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/occi/core/version.rb +1 -1
- data/lib/occi/infrastructure/compute.rb +21 -1
- data/lib/occi/infrastructure_ext/ipreservation.rb +6 -1
- data/lib/occi/infrastructure_ext/monkey_island.rb +1 -0
- data/lib/occi/infrastructure_ext/monkey_island/compute.rb +11 -0
- data/lib/occi/infrastructure_ext/monkey_island/entity.rb +26 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c064c21ee3c99c0797ec74cb93b1d82dee61ba14
|
4
|
+
data.tar.gz: 6231ff87a3764db6d9f636a653176d053ebbc6b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9aa796fe11dbba583d485e8647faf3035257a42d67345336dc72351c59e3ccb42810e8e80508446d7f219796747acfd091134a2e8daa415173cd551a62624e4
|
7
|
+
data.tar.gz: d5816e6ea5b08e1177782217aeaa678a4ef3746f52e0f80d88738e776f1ed1e0b8ba374885bf976fe7e5b3c6b0ec8d5aba6bebe2288e8840f28295fc9be7f827
|
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.18'.freeze # use `nil` for production releases
|
7
7
|
|
8
8
|
unless defined?(::Occi::Core::VERSION)
|
9
9
|
VERSION = [
|
@@ -4,6 +4,26 @@ module Occi
|
|
4
4
|
# of known instances of the given sub-class. Does not contain any functionality.
|
5
5
|
#
|
6
6
|
# @author Boris Parak <parak@cesnet.cz>
|
7
|
-
class Compute < Occi::Core::Resource
|
7
|
+
class Compute < Occi::Core::Resource
|
8
|
+
# @return [Enumerable] filtered set of links
|
9
|
+
def storagelinks
|
10
|
+
links_by_kind_identifier Occi::Infrastructure::Constants::STORAGELINK_KIND
|
11
|
+
end
|
12
|
+
|
13
|
+
# @return [Enumerable] filtered set of links
|
14
|
+
def networkinterfaces
|
15
|
+
links_by_kind_identifier Occi::Infrastructure::Constants::NETWORKINTERFACE_KIND
|
16
|
+
end
|
17
|
+
|
18
|
+
# @return [Occi::Core::Mixin, NilClass] filtered mixin
|
19
|
+
def os_tpl
|
20
|
+
select_mixin Occi::Infrastructure::Mixins::OsTpl.new
|
21
|
+
end
|
22
|
+
|
23
|
+
# @return [Occi::Core::Mixin, NilClass] filtered mixin
|
24
|
+
def resource_tpl
|
25
|
+
select_mixin Occi::Infrastructure::Mixins::ResourceTpl.new
|
26
|
+
end
|
27
|
+
end
|
8
28
|
end
|
9
29
|
end
|
@@ -4,6 +4,11 @@ module Occi
|
|
4
4
|
# of known instances of the given sub-class. Does not contain any functionality.
|
5
5
|
#
|
6
6
|
# @author Boris Parak <parak@cesnet.cz>
|
7
|
-
class IPReservation < Occi::Infrastructure::Network
|
7
|
+
class IPReservation < Occi::Infrastructure::Network
|
8
|
+
# @return [Occi::Core::Mixin, NilClass] filtered mixin
|
9
|
+
def floatingippool
|
10
|
+
select_mixin Occi::InfrastructureExt::Mixins::Floatingippool.new
|
11
|
+
end
|
12
|
+
end
|
8
13
|
end
|
9
14
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
Dir[File.join(File.dirname(__FILE__), 'monkey_island', '*.rb')].each { |file| require file.gsub('.rb', '') }
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Occi
|
2
|
+
module Infrastructure
|
3
|
+
# @see `Occi::Infrastructure::Compute`
|
4
|
+
class Compute
|
5
|
+
# @return [Enumerable] filtered set of links
|
6
|
+
def securitygrouplinks
|
7
|
+
links_by_kind_identifier Occi::InfrastructureExt::Constants::SECURITY_GROUP_LINK_KIND
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Occi
|
2
|
+
module Core
|
3
|
+
# @see `Occi::Core::Entity`
|
4
|
+
class Entity
|
5
|
+
# @return [Occi::Core::Mixin, NilClass] filtered mixin
|
6
|
+
def region
|
7
|
+
select_mixin Occi::InfrastructureExt::Mixins::Region.new
|
8
|
+
end
|
9
|
+
|
10
|
+
# @return [Set] filtered mixins
|
11
|
+
def regions
|
12
|
+
select_mixins Occi::InfrastructureExt::Mixins::Region.new
|
13
|
+
end
|
14
|
+
|
15
|
+
# @return [Occi::Core::Mixin, NilClass] filtered mixin
|
16
|
+
def availability_zone
|
17
|
+
select_mixin Occi::InfrastructureExt::Mixins::AvailabilityZone.new
|
18
|
+
end
|
19
|
+
|
20
|
+
# @return [Set] filtered mixins
|
21
|
+
def availability_zones
|
22
|
+
select_mixins Occi::InfrastructureExt::Mixins::AvailabilityZone.new
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
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.18
|
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-08-
|
13
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
@@ -540,6 +540,9 @@ files:
|
|
540
540
|
- lib/occi/infrastructure_ext/mixins/floatingippool.rb
|
541
541
|
- lib/occi/infrastructure_ext/mixins/region.rb
|
542
542
|
- lib/occi/infrastructure_ext/model.rb
|
543
|
+
- lib/occi/infrastructure_ext/monkey_island.rb
|
544
|
+
- lib/occi/infrastructure_ext/monkey_island/compute.rb
|
545
|
+
- lib/occi/infrastructure_ext/monkey_island/entity.rb
|
543
546
|
- lib/occi/infrastructure_ext/securitygroup.rb
|
544
547
|
- lib/occi/infrastructure_ext/securitygrouplink.rb
|
545
548
|
- lib/occi/infrastructure_ext/version.rb
|