occi-core 5.0.0.beta.17 → 5.0.0.beta.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12e316bc3ef9174ebf47ea762c64444bf481b3b9
4
- data.tar.gz: a372534fbfbea3aa689e76483725fed437476714
3
+ metadata.gz: c064c21ee3c99c0797ec74cb93b1d82dee61ba14
4
+ data.tar.gz: 6231ff87a3764db6d9f636a653176d053ebbc6b7
5
5
  SHA512:
6
- metadata.gz: 90ccde6b8820e0be6cc5d3cf595ce75456c2990604aecfbeddec367c56af0811b5877c9a1de23483765df4c4abeb57684e8f82b957841144f1726d1033b4d559
7
- data.tar.gz: d42a2e5157c338648adc4c1d16ce8a86724f4d00e155221baedbdf39bfb326f9b3bdaba7d9646210cf29f45e33a3040ff6b74336bdd3a04fd43323c43eec925f
6
+ metadata.gz: b9aa796fe11dbba583d485e8647faf3035257a42d67345336dc72351c59e3ccb42810e8e80508446d7f219796747acfd091134a2e8daa415173cd551a62624e4
7
+ data.tar.gz: d5816e6ea5b08e1177782217aeaa678a4ef3746f52e0f80d88738e776f1ed1e0b8ba374885bf976fe7e5b3c6b0ec8d5aba6bebe2288e8840f28295fc9be7f827
@@ -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.17'.freeze # use `nil` for production releases
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; end
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; end
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.17
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-15 00:00:00.000000000 Z
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