occi-core 4.3.6 → 5.0.0.alpha.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.fasterer.yml +3 -0
- data/.gitignore +9 -16
- data/.rspec +1 -1
- data/.rubocop.yml +69 -0
- data/.travis.yml +27 -0
- data/AUTHORS +8 -6
- data/CHANGELOG.md +0 -0
- data/Gemfile +1 -1
- data/LICENSE +1 -1
- data/README.md +25 -170
- data/Rakefile +25 -17
- data/examples/initialize_model.rb +10 -0
- data/examples/parse_action_instance_json.rb +15 -0
- data/examples/parse_action_instance_text.rb +15 -0
- data/examples/parse_categories_json.rb +15 -0
- data/examples/parse_categories_text.rb +15 -0
- data/examples/parse_instance_json.rb +15 -0
- data/examples/parse_instance_text.rb +15 -0
- data/examples/parse_model_json.rb +9 -0
- data/examples/parse_model_text.rb +9 -0
- data/examples/render_action_instance_json.rb +17 -0
- data/examples/render_action_instance_text.rb +17 -0
- data/examples/render_instance_json.rb +20 -0
- data/examples/render_instance_text.rb +20 -0
- data/examples/render_model_json.rb +12 -0
- data/examples/render_model_text.rb +12 -0
- data/examples/rendering/action_instance.json +6 -0
- data/examples/rendering/action_instance.txt +2 -0
- data/examples/rendering/categories.json +78 -0
- data/examples/rendering/categories.txt +4 -0
- data/examples/rendering/instance.json +70 -0
- data/examples/rendering/instance.txt +12 -0
- data/examples/rendering/model.alt.json +1716 -0
- data/examples/rendering/model.json +785 -0
- data/examples/rendering/model.txt +68 -0
- data/lib/occi/core/action.rb +12 -26
- data/lib/occi/core/action_instance.rb +109 -65
- data/lib/occi/core/attribute.rb +136 -0
- data/lib/occi/core/attribute_definition.rb +269 -0
- data/lib/occi/core/category.rb +110 -83
- data/lib/occi/core/collection.rb +255 -0
- data/lib/occi/core/constants.rb +14 -0
- data/lib/occi/core/entity.rb +301 -195
- data/lib/occi/core/errors/.gitkeep +0 -0
- data/lib/occi/core/errors/attribute_definition_error.rb +11 -0
- data/lib/occi/core/errors/attribute_validation_error.rb +13 -0
- data/lib/occi/core/errors/category_validation_error.rb +13 -0
- data/lib/occi/core/errors/collection_lookup_error.rb +11 -0
- data/lib/occi/core/errors/instance_validation_error.rb +13 -0
- data/lib/occi/core/errors/mandatory_argument_error.rb +11 -0
- data/lib/occi/core/errors/model_lookup_error.rb +11 -0
- data/lib/occi/core/errors/parser_error.rb +11 -0
- data/lib/occi/core/errors/parsing_error.rb +11 -0
- data/lib/occi/core/errors/renderer_error.rb +11 -0
- data/lib/occi/core/errors/rendering_error.rb +11 -0
- data/lib/occi/core/errors/validation_error.rb +11 -0
- data/lib/occi/core/errors.rb +9 -0
- data/lib/occi/core/helpers/.gitkeep +0 -0
- data/lib/occi/core/helpers/argument_validator.rb +27 -0
- data/lib/occi/core/helpers/attributes_accessor.rb +22 -0
- data/lib/occi/core/helpers/error_handler.rb +29 -0
- data/lib/occi/core/helpers/hash_dereferencer.rb +149 -0
- data/lib/occi/core/helpers/identifier_validator.rb +135 -0
- data/lib/occi/core/helpers/instance_attribute_resetter.rb +131 -0
- data/lib/occi/core/helpers/instance_attributes_accessor.rb +30 -0
- data/lib/occi/core/helpers/locatable.rb +40 -0
- data/lib/occi/core/helpers/parser_dereferencer.rb +96 -0
- data/lib/occi/core/helpers/raw_json_parser.rb +18 -0
- data/lib/occi/core/helpers/renderable.rb +93 -0
- data/lib/occi/core/helpers/yaml_summoner.rb +44 -0
- data/lib/occi/core/helpers.rb +13 -0
- data/lib/occi/core/instance_builder.rb +162 -0
- data/lib/occi/core/kind.rb +100 -132
- data/lib/occi/core/link.rb +47 -72
- data/lib/occi/core/mixin.rb +76 -61
- data/lib/occi/core/model.rb +341 -0
- data/lib/occi/core/parsers/.gitkeep +0 -0
- data/lib/occi/core/parsers/base_parser.rb +168 -0
- data/lib/occi/core/parsers/json/.gitkeep +0 -0
- data/lib/occi/core/parsers/json/action_instance.rb +36 -0
- data/lib/occi/core/parsers/json/category.rb +113 -0
- data/lib/occi/core/parsers/json/entity.rb +156 -0
- data/lib/occi/core/parsers/json/validator/.gitkeep +0 -0
- data/lib/occi/core/parsers/json/validator/action-instance.json +3 -0
- data/lib/occi/core/parsers/json/validator/entity-collection.json +3 -0
- data/lib/occi/core/parsers/json/validator/link-collection.json +3 -0
- data/lib/occi/core/parsers/json/validator/link.json +3 -0
- data/lib/occi/core/parsers/json/validator/locations.json +3 -0
- data/lib/occi/core/parsers/json/validator/mixin-collection.json +3 -0
- data/lib/occi/core/parsers/json/validator/model.json +3 -0
- data/lib/occi/core/parsers/json/validator/occi-schema.json +277 -0
- data/lib/occi/core/parsers/json/validator/resource-collection.json +3 -0
- data/lib/occi/core/parsers/json/validator/resource.json +3 -0
- data/lib/occi/core/parsers/json/validator.rb +87 -0
- data/lib/occi/core/parsers/json_parser.rb +128 -0
- data/lib/occi/core/parsers/text/.gitkeep +0 -0
- data/lib/occi/core/parsers/text/category.rb +183 -0
- data/lib/occi/core/parsers/text/constants.rb +89 -0
- data/lib/occi/core/parsers/text/entity.rb +257 -0
- data/lib/occi/core/parsers/text/location.rb +48 -0
- data/lib/occi/core/parsers/text_parser.rb +257 -0
- data/lib/occi/core/parsers.rb +18 -0
- data/lib/occi/core/renderer_factory.rb +213 -0
- data/lib/occi/core/renderers/.gitkeep +0 -0
- data/lib/occi/core/renderers/base_renderer.rb +81 -0
- data/lib/occi/core/renderers/json/.gitkeep +0 -0
- data/lib/occi/core/renderers/json/action_instance.rb +24 -0
- data/lib/occi/core/renderers/json/attributes.rb +50 -0
- data/lib/occi/core/renderers/json/base.rb +46 -0
- data/lib/occi/core/renderers/json/category.rb +85 -0
- data/lib/occi/core/renderers/json/collection.rb +52 -0
- data/lib/occi/core/renderers/json/instance.rb +39 -0
- data/lib/occi/core/renderers/json/link.rb +48 -0
- data/lib/occi/core/renderers/json/model.rb +26 -0
- data/lib/occi/core/renderers/json/resource.rb +27 -0
- data/lib/occi/core/renderers/json_renderer.rb +72 -0
- data/lib/occi/core/renderers/text/.gitkeep +0 -0
- data/lib/occi/core/renderers/text/action_instance.rb +36 -0
- data/lib/occi/core/renderers/text/attributes.rb +87 -0
- data/lib/occi/core/renderers/text/base.rb +82 -0
- data/lib/occi/core/renderers/text/category.rb +183 -0
- data/lib/occi/core/renderers/text/collection.rb +65 -0
- data/lib/occi/core/renderers/text/instance.rb +44 -0
- data/lib/occi/core/renderers/text/link.rb +40 -0
- data/lib/occi/core/renderers/text/model.rb +41 -0
- data/lib/occi/core/renderers/text/resource.rb +109 -0
- data/lib/occi/core/renderers/text_renderer.rb +72 -0
- data/lib/occi/core/renderers.rb +20 -0
- data/lib/occi/core/resource.rb +93 -57
- data/lib/occi/core/utils/.gitkeep +0 -0
- data/lib/occi/core/version.rb +17 -0
- data/lib/occi/core/warehouse/actions/.gitkeep +0 -0
- data/lib/occi/core/warehouse/actions/attributes/.gitkeep +0 -0
- data/lib/occi/core/warehouse/kinds/.gitkeep +0 -0
- data/lib/occi/core/warehouse/kinds/attributes/.gitkeep +0 -0
- data/lib/occi/core/warehouse/kinds/attributes/occi.core.id.yml +7 -0
- data/lib/occi/core/warehouse/kinds/attributes/occi.core.source.yml +7 -0
- data/lib/occi/core/warehouse/kinds/attributes/occi.core.summary.yml +7 -0
- data/lib/occi/core/warehouse/kinds/attributes/occi.core.target.yml +7 -0
- data/lib/occi/core/warehouse/kinds/attributes/occi.core.title.yml +7 -0
- data/lib/occi/core/warehouse/kinds/entity.yml +10 -0
- data/lib/occi/core/warehouse/kinds/link.yml +10 -0
- data/lib/occi/core/warehouse/kinds/resource.yml +9 -0
- data/lib/occi/core/warehouse/mixins/.gitkeep +0 -0
- data/lib/occi/core/warehouse/mixins/attributes/.gitkeep +0 -0
- data/lib/occi/core/warehouse.rb +115 -0
- data/lib/occi/core.rb +59 -23
- data/lib/occi/infrastructure/compute.rb +5 -122
- data/lib/occi/infrastructure/constants.rb +25 -0
- data/lib/occi/infrastructure/instance_builder.rb +24 -0
- data/lib/occi/infrastructure/mixins/.gitkeep +0 -0
- data/lib/occi/infrastructure/mixins/os_tpl.rb +19 -0
- data/lib/occi/infrastructure/mixins/resource_tpl.rb +19 -0
- data/lib/occi/infrastructure/mixins.rb +12 -0
- data/lib/occi/infrastructure/model.rb +27 -0
- data/lib/occi/infrastructure/network.rb +5 -104
- data/lib/occi/infrastructure/networkinterface.rb +5 -100
- data/lib/occi/infrastructure/storage.rb +5 -59
- data/lib/occi/infrastructure/storagelink.rb +5 -54
- data/lib/occi/infrastructure/version.rb +5 -0
- data/lib/occi/infrastructure/warehouse/actions/.gitkeep +0 -0
- data/lib/occi/infrastructure/warehouse/actions/attributes/.gitkeep +0 -0
- data/lib/occi/infrastructure/warehouse/actions/compute_restart.yml +12 -0
- data/lib/occi/infrastructure/warehouse/actions/compute_save.yml +19 -0
- data/lib/occi/infrastructure/warehouse/actions/compute_start.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/compute_stop.yml +12 -0
- data/lib/occi/infrastructure/warehouse/actions/compute_suspend.yml +12 -0
- data/lib/occi/infrastructure/warehouse/actions/network_down.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/network_up.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/networkinterface_down.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/networkinterface_up.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/storage_backup.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/storage_offline.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/storage_online.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/storage_resize.yml +12 -0
- data/lib/occi/infrastructure/warehouse/actions/storage_snapshot.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/storagelink_offline.yml +4 -0
- data/lib/occi/infrastructure/warehouse/actions/storagelink_online.yml +4 -0
- data/lib/occi/infrastructure/warehouse/kinds/.gitkeep +0 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/.gitkeep +0 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.architecture.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.cores.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.hostname.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.memory.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.speed.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.state.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.network.label.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.network.state.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.network.vlan.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.networkinterface.interface.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.networkinterface.mac.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.networkinterface.state.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.storage.size.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.storage.state.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.storagelink.deviceid.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.storagelink.mountpoint.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/attributes/occi.storagelink.state.yml +7 -0
- data/lib/occi/infrastructure/warehouse/kinds/compute.yml +19 -0
- data/lib/occi/infrastructure/warehouse/kinds/network.yml +13 -0
- data/lib/occi/infrastructure/warehouse/kinds/networkinterface.yml +13 -0
- data/lib/occi/infrastructure/warehouse/kinds/storage.yml +15 -0
- data/lib/occi/infrastructure/warehouse/kinds/storagelink.yml +13 -0
- data/lib/occi/infrastructure/warehouse/mixins/.gitkeep +0 -0
- data/lib/occi/infrastructure/warehouse/mixins/attributes/.gitkeep +0 -0
- data/lib/occi/infrastructure/warehouse/mixins/attributes/occi.network.address.yml +7 -0
- data/lib/occi/infrastructure/warehouse/mixins/attributes/occi.network.allocation.yml +7 -0
- data/lib/occi/infrastructure/warehouse/mixins/attributes/occi.network.gateway.yml +7 -0
- data/lib/occi/infrastructure/warehouse/mixins/attributes/occi.networkinterface.address.yml +7 -0
- data/lib/occi/infrastructure/warehouse/mixins/attributes/occi.networkinterface.allocation.yml +7 -0
- data/lib/occi/infrastructure/warehouse/mixins/attributes/occi.networkinterface.gateway.yml +7 -0
- data/lib/occi/infrastructure/warehouse/mixins/ipnetwork.yml +11 -0
- data/lib/occi/infrastructure/warehouse/mixins/ipnetworkinterface.yml +11 -0
- data/lib/occi/infrastructure/warehouse.rb +20 -0
- data/lib/occi/infrastructure-ext.rb +35 -0
- data/lib/occi/infrastructure.rb +34 -19
- data/lib/occi/infrastructure_ext/constants.rb +20 -0
- data/lib/occi/infrastructure_ext/instance_builder.rb +22 -0
- data/lib/occi/infrastructure_ext/ipreservation.rb +9 -0
- data/lib/occi/infrastructure_ext/mixins/.gitkeep +0 -0
- data/lib/occi/infrastructure_ext/mixins/availability_zone.rb +19 -0
- data/lib/occi/infrastructure_ext/mixins.rb +12 -0
- data/lib/occi/infrastructure_ext/model.rb +26 -0
- data/lib/occi/infrastructure_ext/securitygroup.rb +9 -0
- data/lib/occi/infrastructure_ext/securitygrouplink.rb +9 -0
- data/lib/occi/infrastructure_ext/version.rb +5 -0
- data/lib/occi/infrastructure_ext/warehouse/actions/.gitkeep +0 -0
- data/lib/occi/infrastructure_ext/warehouse/actions/attributes/.gitkeep +0 -0
- data/lib/occi/infrastructure_ext/warehouse/actions/ipreservation_down.yml +4 -0
- data/lib/occi/infrastructure_ext/warehouse/actions/ipreservation_up.yml +4 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/.gitkeep +0 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/attributes/.gitkeep +0 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.ipreservation.address.yml +7 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.ipreservation.state.yml +7 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.ipreservation.used.yml +7 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.securitygroup.rules.yml +7 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.securitygroup.state.yml +7 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.securitygrouplink.state.yml +7 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/ipreservation.yml +13 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/securitygroup.yml +9 -0
- data/lib/occi/infrastructure_ext/warehouse/kinds/securitygrouplink.yml +8 -0
- data/lib/occi/infrastructure_ext/warehouse/mixins/.gitkeep +0 -0
- data/lib/occi/infrastructure_ext/warehouse/mixins/attributes/.gitkeep +0 -0
- data/lib/occi/infrastructure_ext/warehouse.rb +20 -0
- data/lib/occi/monkey_island/boolean.rb +6 -0
- data/lib/occi/monkey_island/hash.rb +4 -0
- data/occi-core.gemspec +26 -26
- metadata +312 -243
- data/.yardopts +0 -1
- data/config/occi.yml +0 -4
- data/lib/occi/collection.rb +0 -265
- data/lib/occi/core/actions.rb +0 -21
- data/lib/occi/core/attributes.rb +0 -411
- data/lib/occi/core/categories.rb +0 -64
- data/lib/occi/core/dependencies.rb +0 -7
- data/lib/occi/core/entities.rb +0 -48
- data/lib/occi/core/kinds.rb +0 -22
- data/lib/occi/core/links.rb +0 -37
- data/lib/occi/core/mixins.rb +0 -37
- data/lib/occi/core/properties.rb +0 -108
- data/lib/occi/core/resources.rb +0 -14
- data/lib/occi/errors/attribute_definitions_converted_error.rb +0 -5
- data/lib/occi/errors/attribute_missing_error.rb +0 -5
- data/lib/occi/errors/attribute_name_invalid_error.rb +0 -5
- data/lib/occi/errors/attribute_not_defined_error.rb +0 -5
- data/lib/occi/errors/attribute_property_type_error.rb +0 -5
- data/lib/occi/errors/attribute_type_error.rb +0 -5
- data/lib/occi/errors/category_not_defined_error.rb +0 -5
- data/lib/occi/errors/kind_not_defined_error.rb +0 -5
- data/lib/occi/errors/parser_input_error.rb +0 -5
- data/lib/occi/errors/parser_type_error.rb +0 -5
- data/lib/occi/errors.rb +0 -1
- data/lib/occi/extensions/hashie.rb +0 -25
- data/lib/occi/helpers/comparators/action_instance.rb +0 -22
- data/lib/occi/helpers/comparators/attributes.rb +0 -22
- data/lib/occi/helpers/comparators/categories.rb +0 -22
- data/lib/occi/helpers/comparators/category.rb +0 -22
- data/lib/occi/helpers/comparators/collection.rb +0 -40
- data/lib/occi/helpers/comparators/entities.rb +0 -22
- data/lib/occi/helpers/comparators/entity.rb +0 -22
- data/lib/occi/helpers/comparators/properties.rb +0 -26
- data/lib/occi/helpers/comparators.rb +0 -1
- data/lib/occi/helpers/inspect.rb +0 -12
- data/lib/occi/infrastructure/network/ipnetwork.rb +0 -28
- data/lib/occi/infrastructure/networkinterface/ipnetworkinterface.rb +0 -28
- data/lib/occi/infrastructure/os_tpl.rb +0 -20
- data/lib/occi/infrastructure/resource_tpl.rb +0 -20
- data/lib/occi/log.rb +0 -71
- data/lib/occi/model.rb +0 -87
- data/lib/occi/parser/json.rb +0 -38
- data/lib/occi/parser/text/constants.rb +0 -89
- data/lib/occi/parser/text.rb +0 -280
- data/lib/occi/parser.rb +0 -144
- data/lib/occi/settings.rb +0 -10
- data/lib/occi/version.rb +0 -3
- data/lib/occi-core.rb +0 -53
- data/spec/helpers/to_plain.rb +0 -39
- data/spec/helpers/yaml_hash.rb +0 -32
- data/spec/occi/collection_samples/collection1.json +0 -1
- data/spec/occi/collection_samples/directory2/collection2.json +0 -1
- data/spec/occi/collection_spec.rb +0 -1003
- data/spec/occi/core/action_instance_spec.rb +0 -317
- data/spec/occi/core/action_spec.rb +0 -71
- data/spec/occi/core/attributes_spec.rb +0 -665
- data/spec/occi/core/categories_spec.rb +0 -28
- data/spec/occi/core/category_spec.rb +0 -216
- data/spec/occi/core/entities_spec.rb +0 -160
- data/spec/occi/core/entity_spec.rb +0 -374
- data/spec/occi/core/kind_spec.rb +0 -182
- data/spec/occi/core/link_spec.rb +0 -52
- data/spec/occi/core/links_spec.rb +0 -132
- data/spec/occi/core/mixin_spec.rb +0 -38
- data/spec/occi/core/mixins_spec.rb +0 -107
- data/spec/occi/core/properties_spec.rb +0 -171
- data/spec/occi/core/resource_spec.rb +0 -42
- data/spec/occi/core_spec.rb +0 -12
- data/spec/occi/infrastructure/compute_spec.rb +0 -229
- data/spec/occi/infrastructure/network_spec.rb +0 -96
- data/spec/occi/infrastructure/networkinterface_spec.rb +0 -96
- data/spec/occi/infrastructure/storage_spec.rb +0 -33
- data/spec/occi/infrastructure/storagelink_spec.rb +0 -45
- data/spec/occi/log_spec.rb +0 -117
- data/spec/occi/model_spec.rb +0 -256
- data/spec/occi/parser/json_samples/test.json +0 -49
- data/spec/occi/parser/text_samples/occi_categories.body_plain.expected +0 -2
- data/spec/occi/parser/text_samples/occi_categories.expected +0 -2
- data/spec/occi/parser/text_samples/occi_categories.parse_headers.expected +0 -2
- data/spec/occi/parser/text_samples/occi_categories.text +0 -2
- data/spec/occi/parser/text_samples/occi_compute_rocci_server.expected +0 -11
- data/spec/occi/parser/text_samples/occi_compute_rocci_server.text +0 -10
- data/spec/occi/parser/text_samples/occi_link_resource_instance.body_plain.expected +0 -7
- data/spec/occi/parser/text_samples/occi_link_resource_instance.expected +0 -7
- data/spec/occi/parser/text_samples/occi_link_resource_instance.parse.expected +0 -7
- data/spec/occi/parser/text_samples/occi_link_resource_instance.text +0 -7
- data/spec/occi/parser/text_samples/occi_link_simple.expected +0 -7
- data/spec/occi/parser/text_samples/occi_link_simple.text +0 -1
- data/spec/occi/parser/text_samples/occi_link_w_attributes.expected +0 -7
- data/spec/occi/parser/text_samples/occi_link_w_attributes.text +0 -7
- data/spec/occi/parser/text_samples/occi_link_w_category.expected +0 -7
- data/spec/occi/parser/text_samples/occi_link_w_category.text +0 -3
- data/spec/occi/parser/text_samples/occi_model_categories.expected +0 -3
- data/spec/occi/parser/text_samples/occi_model_rocci_server.text +0 -51
- data/spec/occi/parser/text_samples/occi_network_rocci_server.body_plain.expected +0 -11
- data/spec/occi/parser/text_samples/occi_network_rocci_server.expected +0 -11
- data/spec/occi/parser/text_samples/occi_network_rocci_server.resource.header.expected +0 -9
- data/spec/occi/parser/text_samples/occi_network_rocci_server.resource.rack.expected +0 -9
- data/spec/occi/parser/text_samples/occi_network_rocci_server.text +0 -11
- data/spec/occi/parser/text_samples/occi_resource_custom_class_w_attributes.parse.expected +0 -15
- data/spec/occi/parser/text_samples/occi_resource_custom_class_w_attributes.text +0 -15
- data/spec/occi/parser/text_samples/occi_resource_w_attributes.text +0 -11
- data/spec/occi/parser/text_samples/occi_resource_w_inline_links.expected +0 -1
- data/spec/occi/parser/text_samples/occi_resource_w_inline_links.text +0 -16
- data/spec/occi/parser/text_samples/occi_resource_w_inline_links_only.text +0 -13
- data/spec/occi/parser/text_samples/occi_storage_rocci_server.expected +0 -9
- data/spec/occi/parser/text_samples/occi_storage_rocci_server.text +0 -9
- data/spec/occi/parser/text_spec.rb +0 -320
- data/spec/occi/parser_spec.rb +0 -259
- data/spec/occi-core_spec.rb +0 -31
- data/spec/spec_helper.rb +0 -18
metadata
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: occi-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.0.alpha.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Boris Parak
|
7
8
|
- Florian Feldhaus
|
8
9
|
- Piotr Kasprzak
|
9
|
-
- Boris Parak
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-05-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: ox
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
19
|
- - ">="
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: '2.4'
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
24
|
version: '3'
|
@@ -28,77 +28,77 @@ dependencies:
|
|
28
28
|
requirements:
|
29
29
|
- - ">="
|
30
30
|
- !ruby/object:Gem::Version
|
31
|
-
version:
|
31
|
+
version: '2.4'
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '3'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
36
|
+
name: json
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: '1.8'
|
42
42
|
- - "<"
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: '3
|
44
|
+
version: '3'
|
45
45
|
type: :runtime
|
46
46
|
prerelease: false
|
47
47
|
version_requirements: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
49
|
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
51
|
+
version: '1.8'
|
52
52
|
- - "<"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3
|
54
|
+
version: '3'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: activesupport
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: '4.0'
|
62
62
|
- - "<"
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
64
|
+
version: '6'
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
69
|
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
|
-
version:
|
71
|
+
version: '4.0'
|
72
72
|
- - "<"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
74
|
+
version: '6'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
|
-
name:
|
76
|
+
name: json-schema
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: '2.5'
|
82
82
|
- - "<"
|
83
83
|
- !ruby/object:Gem::Version
|
84
|
-
version: '
|
84
|
+
version: '3'
|
85
85
|
type: :runtime
|
86
86
|
prerelease: false
|
87
87
|
version_requirements: !ruby/object:Gem::Requirement
|
88
88
|
requirements:
|
89
89
|
- - ">="
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
91
|
+
version: '2.5'
|
92
92
|
- - "<"
|
93
93
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
94
|
+
version: '3'
|
95
95
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
96
|
+
name: yell
|
97
97
|
requirement: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
|
-
version: 2.0
|
101
|
+
version: '2.0'
|
102
102
|
- - "<"
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '3'
|
@@ -108,57 +108,57 @@ dependencies:
|
|
108
108
|
requirements:
|
109
109
|
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
|
-
version: 2.0
|
111
|
+
version: '2.0'
|
112
112
|
- - "<"
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '3'
|
115
115
|
- !ruby/object:Gem::Dependency
|
116
|
-
name:
|
116
|
+
name: bundler
|
117
117
|
requirement: !ruby/object:Gem::Requirement
|
118
118
|
requirements:
|
119
119
|
- - ">="
|
120
120
|
- !ruby/object:Gem::Version
|
121
|
-
version:
|
121
|
+
version: '1.12'
|
122
122
|
- - "<"
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '
|
124
|
+
version: '2'
|
125
125
|
type: :development
|
126
126
|
prerelease: false
|
127
127
|
version_requirements: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
129
|
- - ">="
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
131
|
+
version: '1.12'
|
132
132
|
- - "<"
|
133
133
|
- !ruby/object:Gem::Version
|
134
|
-
version: '
|
134
|
+
version: '2'
|
135
135
|
- !ruby/object:Gem::Dependency
|
136
|
-
name:
|
136
|
+
name: rake
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
138
138
|
requirements:
|
139
139
|
- - ">="
|
140
140
|
- !ruby/object:Gem::Version
|
141
|
-
version:
|
141
|
+
version: '11.0'
|
142
142
|
- - "<"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '
|
144
|
+
version: '13'
|
145
145
|
type: :development
|
146
146
|
prerelease: false
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version:
|
151
|
+
version: '11.0'
|
152
152
|
- - "<"
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version: '
|
154
|
+
version: '13'
|
155
155
|
- !ruby/object:Gem::Dependency
|
156
156
|
name: rspec
|
157
157
|
requirement: !ruby/object:Gem::Requirement
|
158
158
|
requirements:
|
159
159
|
- - ">="
|
160
160
|
- !ruby/object:Gem::Version
|
161
|
-
version: 3.
|
161
|
+
version: '3.4'
|
162
162
|
- - "<"
|
163
163
|
- !ruby/object:Gem::Version
|
164
164
|
version: '4'
|
@@ -168,57 +168,57 @@ dependencies:
|
|
168
168
|
requirements:
|
169
169
|
- - ">="
|
170
170
|
- !ruby/object:Gem::Version
|
171
|
-
version: 3.
|
171
|
+
version: '3.4'
|
172
172
|
- - "<"
|
173
173
|
- !ruby/object:Gem::Version
|
174
174
|
version: '4'
|
175
175
|
- !ruby/object:Gem::Dependency
|
176
|
-
name:
|
176
|
+
name: simplecov
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
179
|
- - ">="
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version: '
|
181
|
+
version: '0.11'
|
182
182
|
- - "<"
|
183
183
|
- !ruby/object:Gem::Version
|
184
|
-
version: '
|
184
|
+
version: '1'
|
185
185
|
type: :development
|
186
186
|
prerelease: false
|
187
187
|
version_requirements: !ruby/object:Gem::Requirement
|
188
188
|
requirements:
|
189
189
|
- - ">="
|
190
190
|
- !ruby/object:Gem::Version
|
191
|
-
version: '
|
191
|
+
version: '0.11'
|
192
192
|
- - "<"
|
193
193
|
- !ruby/object:Gem::Version
|
194
|
-
version: '
|
194
|
+
version: '1'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
-
name:
|
196
|
+
name: pry
|
197
197
|
requirement: !ruby/object:Gem::Requirement
|
198
198
|
requirements:
|
199
199
|
- - ">="
|
200
200
|
- !ruby/object:Gem::Version
|
201
|
-
version:
|
201
|
+
version: '0.10'
|
202
202
|
- - "<"
|
203
203
|
- !ruby/object:Gem::Version
|
204
|
-
version: '
|
204
|
+
version: '1'
|
205
205
|
type: :development
|
206
206
|
prerelease: false
|
207
207
|
version_requirements: !ruby/object:Gem::Requirement
|
208
208
|
requirements:
|
209
209
|
- - ">="
|
210
210
|
- !ruby/object:Gem::Version
|
211
|
-
version:
|
211
|
+
version: '0.10'
|
212
212
|
- - "<"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '
|
214
|
+
version: '1'
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
|
-
name:
|
216
|
+
name: rubocop
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
218
218
|
requirements:
|
219
219
|
- - ">="
|
220
220
|
- !ruby/object:Gem::Version
|
221
|
-
version: '0.
|
221
|
+
version: '0.32'
|
222
222
|
- - "<"
|
223
223
|
- !ruby/object:Gem::Version
|
224
224
|
version: '1'
|
@@ -228,37 +228,37 @@ dependencies:
|
|
228
228
|
requirements:
|
229
229
|
- - ">="
|
230
230
|
- !ruby/object:Gem::Version
|
231
|
-
version: '0.
|
231
|
+
version: '0.32'
|
232
232
|
- - "<"
|
233
233
|
- !ruby/object:Gem::Version
|
234
234
|
version: '1'
|
235
235
|
- !ruby/object:Gem::Dependency
|
236
|
-
name:
|
236
|
+
name: rubocop-rspec
|
237
237
|
requirement: !ruby/object:Gem::Requirement
|
238
238
|
requirements:
|
239
239
|
- - ">="
|
240
240
|
- !ruby/object:Gem::Version
|
241
|
-
version:
|
241
|
+
version: '1.5'
|
242
242
|
- - "<"
|
243
243
|
- !ruby/object:Gem::Version
|
244
|
-
version: '
|
244
|
+
version: '2'
|
245
245
|
type: :development
|
246
246
|
prerelease: false
|
247
247
|
version_requirements: !ruby/object:Gem::Requirement
|
248
248
|
requirements:
|
249
249
|
- - ">="
|
250
250
|
- !ruby/object:Gem::Version
|
251
|
-
version:
|
251
|
+
version: '1.5'
|
252
252
|
- - "<"
|
253
253
|
- !ruby/object:Gem::Version
|
254
|
-
version: '
|
254
|
+
version: '2'
|
255
255
|
- !ruby/object:Gem::Dependency
|
256
|
-
name:
|
256
|
+
name: rubygems-tasks
|
257
257
|
requirement: !ruby/object:Gem::Requirement
|
258
258
|
requirements:
|
259
259
|
- - ">="
|
260
260
|
- !ruby/object:Gem::Version
|
261
|
-
version: '0.
|
261
|
+
version: '0.2'
|
262
262
|
- - "<"
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '1'
|
@@ -268,17 +268,17 @@ dependencies:
|
|
268
268
|
requirements:
|
269
269
|
- - ">="
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version: '0.
|
271
|
+
version: '0.2'
|
272
272
|
- - "<"
|
273
273
|
- !ruby/object:Gem::Version
|
274
274
|
version: '1'
|
275
275
|
- !ruby/object:Gem::Dependency
|
276
|
-
name:
|
276
|
+
name: yard
|
277
277
|
requirement: !ruby/object:Gem::Requirement
|
278
278
|
requirements:
|
279
279
|
- - ">="
|
280
280
|
- !ruby/object:Gem::Version
|
281
|
-
version: 0.
|
281
|
+
version: '0.8'
|
282
282
|
- - "<"
|
283
283
|
- !ruby/object:Gem::Version
|
284
284
|
version: '1'
|
@@ -288,154 +288,286 @@ dependencies:
|
|
288
288
|
requirements:
|
289
289
|
- - ">="
|
290
290
|
- !ruby/object:Gem::Version
|
291
|
-
version: 0.
|
291
|
+
version: '0.8'
|
292
292
|
- - "<"
|
293
293
|
- !ruby/object:Gem::Version
|
294
294
|
version: '1'
|
295
|
-
|
296
|
-
|
295
|
+
- !ruby/object:Gem::Dependency
|
296
|
+
name: fasterer
|
297
|
+
requirement: !ruby/object:Gem::Requirement
|
298
|
+
requirements:
|
299
|
+
- - ">="
|
300
|
+
- !ruby/object:Gem::Version
|
301
|
+
version: 0.3.2
|
302
|
+
- - "<"
|
303
|
+
- !ruby/object:Gem::Version
|
304
|
+
version: '0.4'
|
305
|
+
type: :development
|
306
|
+
prerelease: false
|
307
|
+
version_requirements: !ruby/object:Gem::Requirement
|
308
|
+
requirements:
|
309
|
+
- - ">="
|
310
|
+
- !ruby/object:Gem::Version
|
311
|
+
version: 0.3.2
|
312
|
+
- - "<"
|
313
|
+
- !ruby/object:Gem::Version
|
314
|
+
version: '0.4'
|
315
|
+
description: The rOCCI toolkit is a collection of classes simplifying implementation
|
316
|
+
of Open Cloud Computing Interface in Ruby
|
297
317
|
email:
|
318
|
+
- parak@cesnet.cz
|
298
319
|
- florian.feldhaus@gmail.com
|
299
320
|
- piotr.kasprzak@gwdg.de
|
300
|
-
- parak@cesnet.cz
|
301
321
|
executables: []
|
302
322
|
extensions: []
|
303
323
|
extra_rdoc_files: []
|
304
324
|
files:
|
325
|
+
- ".fasterer.yml"
|
305
326
|
- ".gitignore"
|
306
327
|
- ".rspec"
|
307
|
-
- ".
|
328
|
+
- ".rubocop.yml"
|
329
|
+
- ".travis.yml"
|
308
330
|
- AUTHORS
|
331
|
+
- CHANGELOG.md
|
309
332
|
- Gemfile
|
310
333
|
- LICENSE
|
311
334
|
- README.md
|
312
335
|
- Rakefile
|
313
|
-
-
|
314
|
-
-
|
315
|
-
-
|
336
|
+
- examples/initialize_model.rb
|
337
|
+
- examples/parse_action_instance_json.rb
|
338
|
+
- examples/parse_action_instance_text.rb
|
339
|
+
- examples/parse_categories_json.rb
|
340
|
+
- examples/parse_categories_text.rb
|
341
|
+
- examples/parse_instance_json.rb
|
342
|
+
- examples/parse_instance_text.rb
|
343
|
+
- examples/parse_model_json.rb
|
344
|
+
- examples/parse_model_text.rb
|
345
|
+
- examples/render_action_instance_json.rb
|
346
|
+
- examples/render_action_instance_text.rb
|
347
|
+
- examples/render_instance_json.rb
|
348
|
+
- examples/render_instance_text.rb
|
349
|
+
- examples/render_model_json.rb
|
350
|
+
- examples/render_model_text.rb
|
351
|
+
- examples/rendering/action_instance.json
|
352
|
+
- examples/rendering/action_instance.txt
|
353
|
+
- examples/rendering/categories.json
|
354
|
+
- examples/rendering/categories.txt
|
355
|
+
- examples/rendering/instance.json
|
356
|
+
- examples/rendering/instance.txt
|
357
|
+
- examples/rendering/model.alt.json
|
358
|
+
- examples/rendering/model.json
|
359
|
+
- examples/rendering/model.txt
|
316
360
|
- lib/occi/core.rb
|
317
361
|
- lib/occi/core/action.rb
|
318
362
|
- lib/occi/core/action_instance.rb
|
319
|
-
- lib/occi/core/
|
320
|
-
- lib/occi/core/
|
321
|
-
- lib/occi/core/categories.rb
|
363
|
+
- lib/occi/core/attribute.rb
|
364
|
+
- lib/occi/core/attribute_definition.rb
|
322
365
|
- lib/occi/core/category.rb
|
323
|
-
- lib/occi/core/
|
324
|
-
- lib/occi/core/
|
366
|
+
- lib/occi/core/collection.rb
|
367
|
+
- lib/occi/core/constants.rb
|
325
368
|
- lib/occi/core/entity.rb
|
369
|
+
- lib/occi/core/errors.rb
|
370
|
+
- lib/occi/core/errors/.gitkeep
|
371
|
+
- lib/occi/core/errors/attribute_definition_error.rb
|
372
|
+
- lib/occi/core/errors/attribute_validation_error.rb
|
373
|
+
- lib/occi/core/errors/category_validation_error.rb
|
374
|
+
- lib/occi/core/errors/collection_lookup_error.rb
|
375
|
+
- lib/occi/core/errors/instance_validation_error.rb
|
376
|
+
- lib/occi/core/errors/mandatory_argument_error.rb
|
377
|
+
- lib/occi/core/errors/model_lookup_error.rb
|
378
|
+
- lib/occi/core/errors/parser_error.rb
|
379
|
+
- lib/occi/core/errors/parsing_error.rb
|
380
|
+
- lib/occi/core/errors/renderer_error.rb
|
381
|
+
- lib/occi/core/errors/rendering_error.rb
|
382
|
+
- lib/occi/core/errors/validation_error.rb
|
383
|
+
- lib/occi/core/helpers.rb
|
384
|
+
- lib/occi/core/helpers/.gitkeep
|
385
|
+
- lib/occi/core/helpers/argument_validator.rb
|
386
|
+
- lib/occi/core/helpers/attributes_accessor.rb
|
387
|
+
- lib/occi/core/helpers/error_handler.rb
|
388
|
+
- lib/occi/core/helpers/hash_dereferencer.rb
|
389
|
+
- lib/occi/core/helpers/identifier_validator.rb
|
390
|
+
- lib/occi/core/helpers/instance_attribute_resetter.rb
|
391
|
+
- lib/occi/core/helpers/instance_attributes_accessor.rb
|
392
|
+
- lib/occi/core/helpers/locatable.rb
|
393
|
+
- lib/occi/core/helpers/parser_dereferencer.rb
|
394
|
+
- lib/occi/core/helpers/raw_json_parser.rb
|
395
|
+
- lib/occi/core/helpers/renderable.rb
|
396
|
+
- lib/occi/core/helpers/yaml_summoner.rb
|
397
|
+
- lib/occi/core/instance_builder.rb
|
326
398
|
- lib/occi/core/kind.rb
|
327
|
-
- lib/occi/core/kinds.rb
|
328
399
|
- lib/occi/core/link.rb
|
329
|
-
- lib/occi/core/links.rb
|
330
400
|
- lib/occi/core/mixin.rb
|
331
|
-
- lib/occi/core/
|
332
|
-
- lib/occi/core/
|
401
|
+
- lib/occi/core/model.rb
|
402
|
+
- lib/occi/core/parsers.rb
|
403
|
+
- lib/occi/core/parsers/.gitkeep
|
404
|
+
- lib/occi/core/parsers/base_parser.rb
|
405
|
+
- lib/occi/core/parsers/json/.gitkeep
|
406
|
+
- lib/occi/core/parsers/json/action_instance.rb
|
407
|
+
- lib/occi/core/parsers/json/category.rb
|
408
|
+
- lib/occi/core/parsers/json/entity.rb
|
409
|
+
- lib/occi/core/parsers/json/validator.rb
|
410
|
+
- lib/occi/core/parsers/json/validator/.gitkeep
|
411
|
+
- lib/occi/core/parsers/json/validator/action-instance.json
|
412
|
+
- lib/occi/core/parsers/json/validator/entity-collection.json
|
413
|
+
- lib/occi/core/parsers/json/validator/link-collection.json
|
414
|
+
- lib/occi/core/parsers/json/validator/link.json
|
415
|
+
- lib/occi/core/parsers/json/validator/locations.json
|
416
|
+
- lib/occi/core/parsers/json/validator/mixin-collection.json
|
417
|
+
- lib/occi/core/parsers/json/validator/model.json
|
418
|
+
- lib/occi/core/parsers/json/validator/occi-schema.json
|
419
|
+
- lib/occi/core/parsers/json/validator/resource-collection.json
|
420
|
+
- lib/occi/core/parsers/json/validator/resource.json
|
421
|
+
- lib/occi/core/parsers/json_parser.rb
|
422
|
+
- lib/occi/core/parsers/text/.gitkeep
|
423
|
+
- lib/occi/core/parsers/text/category.rb
|
424
|
+
- lib/occi/core/parsers/text/constants.rb
|
425
|
+
- lib/occi/core/parsers/text/entity.rb
|
426
|
+
- lib/occi/core/parsers/text/location.rb
|
427
|
+
- lib/occi/core/parsers/text_parser.rb
|
428
|
+
- lib/occi/core/renderer_factory.rb
|
429
|
+
- lib/occi/core/renderers.rb
|
430
|
+
- lib/occi/core/renderers/.gitkeep
|
431
|
+
- lib/occi/core/renderers/base_renderer.rb
|
432
|
+
- lib/occi/core/renderers/json/.gitkeep
|
433
|
+
- lib/occi/core/renderers/json/action_instance.rb
|
434
|
+
- lib/occi/core/renderers/json/attributes.rb
|
435
|
+
- lib/occi/core/renderers/json/base.rb
|
436
|
+
- lib/occi/core/renderers/json/category.rb
|
437
|
+
- lib/occi/core/renderers/json/collection.rb
|
438
|
+
- lib/occi/core/renderers/json/instance.rb
|
439
|
+
- lib/occi/core/renderers/json/link.rb
|
440
|
+
- lib/occi/core/renderers/json/model.rb
|
441
|
+
- lib/occi/core/renderers/json/resource.rb
|
442
|
+
- lib/occi/core/renderers/json_renderer.rb
|
443
|
+
- lib/occi/core/renderers/text/.gitkeep
|
444
|
+
- lib/occi/core/renderers/text/action_instance.rb
|
445
|
+
- lib/occi/core/renderers/text/attributes.rb
|
446
|
+
- lib/occi/core/renderers/text/base.rb
|
447
|
+
- lib/occi/core/renderers/text/category.rb
|
448
|
+
- lib/occi/core/renderers/text/collection.rb
|
449
|
+
- lib/occi/core/renderers/text/instance.rb
|
450
|
+
- lib/occi/core/renderers/text/link.rb
|
451
|
+
- lib/occi/core/renderers/text/model.rb
|
452
|
+
- lib/occi/core/renderers/text/resource.rb
|
453
|
+
- lib/occi/core/renderers/text_renderer.rb
|
333
454
|
- lib/occi/core/resource.rb
|
334
|
-
- lib/occi/core/
|
335
|
-
- lib/occi/
|
336
|
-
- lib/occi/
|
337
|
-
- lib/occi/
|
338
|
-
- lib/occi/
|
339
|
-
- lib/occi/
|
340
|
-
- lib/occi/
|
341
|
-
- lib/occi/
|
342
|
-
- lib/occi/
|
343
|
-
- lib/occi/
|
344
|
-
- lib/occi/
|
345
|
-
- lib/occi/
|
346
|
-
- lib/occi/
|
347
|
-
- lib/occi/
|
348
|
-
- lib/occi/
|
349
|
-
- lib/occi/
|
350
|
-
- lib/occi/
|
351
|
-
- lib/occi/
|
352
|
-
- lib/occi/helpers/comparators/collection.rb
|
353
|
-
- lib/occi/helpers/comparators/entities.rb
|
354
|
-
- lib/occi/helpers/comparators/entity.rb
|
355
|
-
- lib/occi/helpers/comparators/properties.rb
|
356
|
-
- lib/occi/helpers/inspect.rb
|
455
|
+
- lib/occi/core/utils/.gitkeep
|
456
|
+
- lib/occi/core/version.rb
|
457
|
+
- lib/occi/core/warehouse.rb
|
458
|
+
- lib/occi/core/warehouse/actions/.gitkeep
|
459
|
+
- lib/occi/core/warehouse/actions/attributes/.gitkeep
|
460
|
+
- lib/occi/core/warehouse/kinds/.gitkeep
|
461
|
+
- lib/occi/core/warehouse/kinds/attributes/.gitkeep
|
462
|
+
- lib/occi/core/warehouse/kinds/attributes/occi.core.id.yml
|
463
|
+
- lib/occi/core/warehouse/kinds/attributes/occi.core.source.yml
|
464
|
+
- lib/occi/core/warehouse/kinds/attributes/occi.core.summary.yml
|
465
|
+
- lib/occi/core/warehouse/kinds/attributes/occi.core.target.yml
|
466
|
+
- lib/occi/core/warehouse/kinds/attributes/occi.core.title.yml
|
467
|
+
- lib/occi/core/warehouse/kinds/entity.yml
|
468
|
+
- lib/occi/core/warehouse/kinds/link.yml
|
469
|
+
- lib/occi/core/warehouse/kinds/resource.yml
|
470
|
+
- lib/occi/core/warehouse/mixins/.gitkeep
|
471
|
+
- lib/occi/core/warehouse/mixins/attributes/.gitkeep
|
472
|
+
- lib/occi/infrastructure-ext.rb
|
357
473
|
- lib/occi/infrastructure.rb
|
358
474
|
- lib/occi/infrastructure/compute.rb
|
475
|
+
- lib/occi/infrastructure/constants.rb
|
476
|
+
- lib/occi/infrastructure/instance_builder.rb
|
477
|
+
- lib/occi/infrastructure/mixins.rb
|
478
|
+
- lib/occi/infrastructure/mixins/.gitkeep
|
479
|
+
- lib/occi/infrastructure/mixins/os_tpl.rb
|
480
|
+
- lib/occi/infrastructure/mixins/resource_tpl.rb
|
481
|
+
- lib/occi/infrastructure/model.rb
|
359
482
|
- lib/occi/infrastructure/network.rb
|
360
|
-
- lib/occi/infrastructure/network/ipnetwork.rb
|
361
483
|
- lib/occi/infrastructure/networkinterface.rb
|
362
|
-
- lib/occi/infrastructure/networkinterface/ipnetworkinterface.rb
|
363
|
-
- lib/occi/infrastructure/os_tpl.rb
|
364
|
-
- lib/occi/infrastructure/resource_tpl.rb
|
365
484
|
- lib/occi/infrastructure/storage.rb
|
366
485
|
- lib/occi/infrastructure/storagelink.rb
|
367
|
-
- lib/occi/
|
368
|
-
- lib/occi/
|
369
|
-
- lib/occi/
|
370
|
-
- lib/occi/
|
371
|
-
- lib/occi/
|
372
|
-
- lib/occi/
|
373
|
-
- lib/occi/
|
374
|
-
- lib/occi/
|
486
|
+
- lib/occi/infrastructure/version.rb
|
487
|
+
- lib/occi/infrastructure/warehouse.rb
|
488
|
+
- lib/occi/infrastructure/warehouse/actions/.gitkeep
|
489
|
+
- lib/occi/infrastructure/warehouse/actions/attributes/.gitkeep
|
490
|
+
- lib/occi/infrastructure/warehouse/actions/compute_restart.yml
|
491
|
+
- lib/occi/infrastructure/warehouse/actions/compute_save.yml
|
492
|
+
- lib/occi/infrastructure/warehouse/actions/compute_start.yml
|
493
|
+
- lib/occi/infrastructure/warehouse/actions/compute_stop.yml
|
494
|
+
- lib/occi/infrastructure/warehouse/actions/compute_suspend.yml
|
495
|
+
- lib/occi/infrastructure/warehouse/actions/network_down.yml
|
496
|
+
- lib/occi/infrastructure/warehouse/actions/network_up.yml
|
497
|
+
- lib/occi/infrastructure/warehouse/actions/networkinterface_down.yml
|
498
|
+
- lib/occi/infrastructure/warehouse/actions/networkinterface_up.yml
|
499
|
+
- lib/occi/infrastructure/warehouse/actions/storage_backup.yml
|
500
|
+
- lib/occi/infrastructure/warehouse/actions/storage_offline.yml
|
501
|
+
- lib/occi/infrastructure/warehouse/actions/storage_online.yml
|
502
|
+
- lib/occi/infrastructure/warehouse/actions/storage_resize.yml
|
503
|
+
- lib/occi/infrastructure/warehouse/actions/storage_snapshot.yml
|
504
|
+
- lib/occi/infrastructure/warehouse/actions/storagelink_offline.yml
|
505
|
+
- lib/occi/infrastructure/warehouse/actions/storagelink_online.yml
|
506
|
+
- lib/occi/infrastructure/warehouse/kinds/.gitkeep
|
507
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/.gitkeep
|
508
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.architecture.yml
|
509
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.cores.yml
|
510
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.hostname.yml
|
511
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.memory.yml
|
512
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.speed.yml
|
513
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.compute.state.yml
|
514
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.network.label.yml
|
515
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.network.state.yml
|
516
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.network.vlan.yml
|
517
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.networkinterface.interface.yml
|
518
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.networkinterface.mac.yml
|
519
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.networkinterface.state.yml
|
520
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.storage.size.yml
|
521
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.storage.state.yml
|
522
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.storagelink.deviceid.yml
|
523
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.storagelink.mountpoint.yml
|
524
|
+
- lib/occi/infrastructure/warehouse/kinds/attributes/occi.storagelink.state.yml
|
525
|
+
- lib/occi/infrastructure/warehouse/kinds/compute.yml
|
526
|
+
- lib/occi/infrastructure/warehouse/kinds/network.yml
|
527
|
+
- lib/occi/infrastructure/warehouse/kinds/networkinterface.yml
|
528
|
+
- lib/occi/infrastructure/warehouse/kinds/storage.yml
|
529
|
+
- lib/occi/infrastructure/warehouse/kinds/storagelink.yml
|
530
|
+
- lib/occi/infrastructure/warehouse/mixins/.gitkeep
|
531
|
+
- lib/occi/infrastructure/warehouse/mixins/attributes/.gitkeep
|
532
|
+
- lib/occi/infrastructure/warehouse/mixins/attributes/occi.network.address.yml
|
533
|
+
- lib/occi/infrastructure/warehouse/mixins/attributes/occi.network.allocation.yml
|
534
|
+
- lib/occi/infrastructure/warehouse/mixins/attributes/occi.network.gateway.yml
|
535
|
+
- lib/occi/infrastructure/warehouse/mixins/attributes/occi.networkinterface.address.yml
|
536
|
+
- lib/occi/infrastructure/warehouse/mixins/attributes/occi.networkinterface.allocation.yml
|
537
|
+
- lib/occi/infrastructure/warehouse/mixins/attributes/occi.networkinterface.gateway.yml
|
538
|
+
- lib/occi/infrastructure/warehouse/mixins/ipnetwork.yml
|
539
|
+
- lib/occi/infrastructure/warehouse/mixins/ipnetworkinterface.yml
|
540
|
+
- lib/occi/infrastructure_ext/constants.rb
|
541
|
+
- lib/occi/infrastructure_ext/instance_builder.rb
|
542
|
+
- lib/occi/infrastructure_ext/ipreservation.rb
|
543
|
+
- lib/occi/infrastructure_ext/mixins.rb
|
544
|
+
- lib/occi/infrastructure_ext/mixins/.gitkeep
|
545
|
+
- lib/occi/infrastructure_ext/mixins/availability_zone.rb
|
546
|
+
- lib/occi/infrastructure_ext/model.rb
|
547
|
+
- lib/occi/infrastructure_ext/securitygroup.rb
|
548
|
+
- lib/occi/infrastructure_ext/securitygrouplink.rb
|
549
|
+
- lib/occi/infrastructure_ext/version.rb
|
550
|
+
- lib/occi/infrastructure_ext/warehouse.rb
|
551
|
+
- lib/occi/infrastructure_ext/warehouse/actions/.gitkeep
|
552
|
+
- lib/occi/infrastructure_ext/warehouse/actions/attributes/.gitkeep
|
553
|
+
- lib/occi/infrastructure_ext/warehouse/actions/ipreservation_down.yml
|
554
|
+
- lib/occi/infrastructure_ext/warehouse/actions/ipreservation_up.yml
|
555
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/.gitkeep
|
556
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/attributes/.gitkeep
|
557
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.ipreservation.address.yml
|
558
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.ipreservation.state.yml
|
559
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.ipreservation.used.yml
|
560
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.securitygroup.rules.yml
|
561
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.securitygroup.state.yml
|
562
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/attributes/occi.securitygrouplink.state.yml
|
563
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/ipreservation.yml
|
564
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/securitygroup.yml
|
565
|
+
- lib/occi/infrastructure_ext/warehouse/kinds/securitygrouplink.yml
|
566
|
+
- lib/occi/infrastructure_ext/warehouse/mixins/.gitkeep
|
567
|
+
- lib/occi/infrastructure_ext/warehouse/mixins/attributes/.gitkeep
|
568
|
+
- lib/occi/monkey_island/boolean.rb
|
569
|
+
- lib/occi/monkey_island/hash.rb
|
375
570
|
- occi-core.gemspec
|
376
|
-
- spec/helpers/to_plain.rb
|
377
|
-
- spec/helpers/yaml_hash.rb
|
378
|
-
- spec/occi-core_spec.rb
|
379
|
-
- spec/occi/collection_samples/collection1.json
|
380
|
-
- spec/occi/collection_samples/directory2/collection2.json
|
381
|
-
- spec/occi/collection_spec.rb
|
382
|
-
- spec/occi/core/action_instance_spec.rb
|
383
|
-
- spec/occi/core/action_spec.rb
|
384
|
-
- spec/occi/core/attributes_spec.rb
|
385
|
-
- spec/occi/core/categories_spec.rb
|
386
|
-
- spec/occi/core/category_spec.rb
|
387
|
-
- spec/occi/core/entities_spec.rb
|
388
|
-
- spec/occi/core/entity_spec.rb
|
389
|
-
- spec/occi/core/kind_spec.rb
|
390
|
-
- spec/occi/core/link_spec.rb
|
391
|
-
- spec/occi/core/links_spec.rb
|
392
|
-
- spec/occi/core/mixin_spec.rb
|
393
|
-
- spec/occi/core/mixins_spec.rb
|
394
|
-
- spec/occi/core/properties_spec.rb
|
395
|
-
- spec/occi/core/resource_spec.rb
|
396
|
-
- spec/occi/core_spec.rb
|
397
|
-
- spec/occi/infrastructure/compute_spec.rb
|
398
|
-
- spec/occi/infrastructure/network_spec.rb
|
399
|
-
- spec/occi/infrastructure/networkinterface_spec.rb
|
400
|
-
- spec/occi/infrastructure/storage_spec.rb
|
401
|
-
- spec/occi/infrastructure/storagelink_spec.rb
|
402
|
-
- spec/occi/log_spec.rb
|
403
|
-
- spec/occi/model_spec.rb
|
404
|
-
- spec/occi/parser/json_samples/test.json
|
405
|
-
- spec/occi/parser/text_samples/occi_categories.body_plain.expected
|
406
|
-
- spec/occi/parser/text_samples/occi_categories.expected
|
407
|
-
- spec/occi/parser/text_samples/occi_categories.parse_headers.expected
|
408
|
-
- spec/occi/parser/text_samples/occi_categories.text
|
409
|
-
- spec/occi/parser/text_samples/occi_compute_rocci_server.expected
|
410
|
-
- spec/occi/parser/text_samples/occi_compute_rocci_server.text
|
411
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.body_plain.expected
|
412
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.expected
|
413
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.parse.expected
|
414
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.text
|
415
|
-
- spec/occi/parser/text_samples/occi_link_simple.expected
|
416
|
-
- spec/occi/parser/text_samples/occi_link_simple.text
|
417
|
-
- spec/occi/parser/text_samples/occi_link_w_attributes.expected
|
418
|
-
- spec/occi/parser/text_samples/occi_link_w_attributes.text
|
419
|
-
- spec/occi/parser/text_samples/occi_link_w_category.expected
|
420
|
-
- spec/occi/parser/text_samples/occi_link_w_category.text
|
421
|
-
- spec/occi/parser/text_samples/occi_model_categories.expected
|
422
|
-
- spec/occi/parser/text_samples/occi_model_rocci_server.text
|
423
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.body_plain.expected
|
424
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.expected
|
425
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.resource.header.expected
|
426
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.resource.rack.expected
|
427
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.text
|
428
|
-
- spec/occi/parser/text_samples/occi_resource_custom_class_w_attributes.parse.expected
|
429
|
-
- spec/occi/parser/text_samples/occi_resource_custom_class_w_attributes.text
|
430
|
-
- spec/occi/parser/text_samples/occi_resource_w_attributes.text
|
431
|
-
- spec/occi/parser/text_samples/occi_resource_w_inline_links.expected
|
432
|
-
- spec/occi/parser/text_samples/occi_resource_w_inline_links.text
|
433
|
-
- spec/occi/parser/text_samples/occi_resource_w_inline_links_only.text
|
434
|
-
- spec/occi/parser/text_samples/occi_storage_rocci_server.expected
|
435
|
-
- spec/occi/parser/text_samples/occi_storage_rocci_server.text
|
436
|
-
- spec/occi/parser/text_spec.rb
|
437
|
-
- spec/occi/parser_spec.rb
|
438
|
-
- spec/spec_helper.rb
|
439
571
|
homepage: https://github.com/EGI-FCTF/rOCCI-core
|
440
572
|
licenses:
|
441
573
|
- Apache License, Version 2.0
|
@@ -448,79 +580,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
448
580
|
requirements:
|
449
581
|
- - ">="
|
450
582
|
- !ruby/object:Gem::Version
|
451
|
-
version:
|
583
|
+
version: 2.2.2
|
452
584
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
453
585
|
requirements:
|
454
|
-
- - "
|
586
|
+
- - ">"
|
455
587
|
- !ruby/object:Gem::Version
|
456
|
-
version:
|
588
|
+
version: 1.3.1
|
457
589
|
requirements: []
|
458
590
|
rubyforge_project:
|
459
|
-
rubygems_version: 2.6.
|
591
|
+
rubygems_version: 2.6.10
|
460
592
|
signing_key:
|
461
593
|
specification_version: 4
|
462
|
-
summary:
|
463
|
-
test_files:
|
464
|
-
- spec/helpers/to_plain.rb
|
465
|
-
- spec/helpers/yaml_hash.rb
|
466
|
-
- spec/occi-core_spec.rb
|
467
|
-
- spec/occi/collection_samples/collection1.json
|
468
|
-
- spec/occi/collection_samples/directory2/collection2.json
|
469
|
-
- spec/occi/collection_spec.rb
|
470
|
-
- spec/occi/core/action_instance_spec.rb
|
471
|
-
- spec/occi/core/action_spec.rb
|
472
|
-
- spec/occi/core/attributes_spec.rb
|
473
|
-
- spec/occi/core/categories_spec.rb
|
474
|
-
- spec/occi/core/category_spec.rb
|
475
|
-
- spec/occi/core/entities_spec.rb
|
476
|
-
- spec/occi/core/entity_spec.rb
|
477
|
-
- spec/occi/core/kind_spec.rb
|
478
|
-
- spec/occi/core/link_spec.rb
|
479
|
-
- spec/occi/core/links_spec.rb
|
480
|
-
- spec/occi/core/mixin_spec.rb
|
481
|
-
- spec/occi/core/mixins_spec.rb
|
482
|
-
- spec/occi/core/properties_spec.rb
|
483
|
-
- spec/occi/core/resource_spec.rb
|
484
|
-
- spec/occi/core_spec.rb
|
485
|
-
- spec/occi/infrastructure/compute_spec.rb
|
486
|
-
- spec/occi/infrastructure/network_spec.rb
|
487
|
-
- spec/occi/infrastructure/networkinterface_spec.rb
|
488
|
-
- spec/occi/infrastructure/storage_spec.rb
|
489
|
-
- spec/occi/infrastructure/storagelink_spec.rb
|
490
|
-
- spec/occi/log_spec.rb
|
491
|
-
- spec/occi/model_spec.rb
|
492
|
-
- spec/occi/parser/json_samples/test.json
|
493
|
-
- spec/occi/parser/text_samples/occi_categories.body_plain.expected
|
494
|
-
- spec/occi/parser/text_samples/occi_categories.expected
|
495
|
-
- spec/occi/parser/text_samples/occi_categories.parse_headers.expected
|
496
|
-
- spec/occi/parser/text_samples/occi_categories.text
|
497
|
-
- spec/occi/parser/text_samples/occi_compute_rocci_server.expected
|
498
|
-
- spec/occi/parser/text_samples/occi_compute_rocci_server.text
|
499
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.body_plain.expected
|
500
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.expected
|
501
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.parse.expected
|
502
|
-
- spec/occi/parser/text_samples/occi_link_resource_instance.text
|
503
|
-
- spec/occi/parser/text_samples/occi_link_simple.expected
|
504
|
-
- spec/occi/parser/text_samples/occi_link_simple.text
|
505
|
-
- spec/occi/parser/text_samples/occi_link_w_attributes.expected
|
506
|
-
- spec/occi/parser/text_samples/occi_link_w_attributes.text
|
507
|
-
- spec/occi/parser/text_samples/occi_link_w_category.expected
|
508
|
-
- spec/occi/parser/text_samples/occi_link_w_category.text
|
509
|
-
- spec/occi/parser/text_samples/occi_model_categories.expected
|
510
|
-
- spec/occi/parser/text_samples/occi_model_rocci_server.text
|
511
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.body_plain.expected
|
512
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.expected
|
513
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.resource.header.expected
|
514
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.resource.rack.expected
|
515
|
-
- spec/occi/parser/text_samples/occi_network_rocci_server.text
|
516
|
-
- spec/occi/parser/text_samples/occi_resource_custom_class_w_attributes.parse.expected
|
517
|
-
- spec/occi/parser/text_samples/occi_resource_custom_class_w_attributes.text
|
518
|
-
- spec/occi/parser/text_samples/occi_resource_w_attributes.text
|
519
|
-
- spec/occi/parser/text_samples/occi_resource_w_inline_links.expected
|
520
|
-
- spec/occi/parser/text_samples/occi_resource_w_inline_links.text
|
521
|
-
- spec/occi/parser/text_samples/occi_resource_w_inline_links_only.text
|
522
|
-
- spec/occi/parser/text_samples/occi_storage_rocci_server.expected
|
523
|
-
- spec/occi/parser/text_samples/occi_storage_rocci_server.text
|
524
|
-
- spec/occi/parser/text_spec.rb
|
525
|
-
- spec/occi/parser_spec.rb
|
526
|
-
- spec/spec_helper.rb
|
594
|
+
summary: The rOCCI toolkit
|
595
|
+
test_files: []
|