{"id":19096673,"url":"https://github.com/sapcc/misty-limes","last_synced_at":"2025-06-22T18:07:03.452Z","repository":{"id":19628698,"uuid":"86571830","full_name":"sapcc/misty-limes","owner":"sapcc","description":"misty gem for limes api","archived":false,"fork":false,"pushed_at":"2023-12-15T02:34:20.000Z","size":69,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":51,"default_branch":"master","last_synced_at":"2025-02-19T18:47:24.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sapcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-03-29T11:00:42.000Z","updated_at":"2017-03-29T18:37:17.000Z","dependencies_parsed_at":"2024-11-09T03:37:28.902Z","dependency_job_id":"584ec6b5-a195-4d1d-ab76-08b9fcec784e","html_url":"https://github.com/sapcc/misty-limes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sapcc/misty-limes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fmisty-limes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fmisty-limes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fmisty-limes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fmisty-limes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sapcc","download_url":"https://codeload.github.com/sapcc/misty-limes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sapcc%2Fmisty-limes/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261338952,"owners_count":23143892,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T03:37:26.308Z","updated_at":"2025-06-22T18:06:58.423Z","avatar_url":"https://github.com/sapcc.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"Note: This gem is obsolete please use [misty-cc](https://github.com/sapcc/misty-cc) instead \n\n# Misty::Openstack::Limes\n\nThis is the plugin Gem to consume the OpenStack Limes API.\n\nThe main maintainer for the OpenStack limes section are [hgw77](https://github.com/hgw77), [majewsky](https://github.com/majewsky).\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'misty-limes', git: 'https://github.com/sapcc/misty-limes'\n```\n\nAnd then execute:\n\n    $ bundle\n\n### Initial Setup\n\nRequire the gem:\n\n```ruby\nrequire 'misty/openstack/limes'\n```\n\n## Usage\n\n```ruby\nrequire 'misty/openstack/limes'\n\nauth_v3 = {\n  :url              =\u003e \"http://localhost:5000\",\n  :user             =\u003e \"admin\",\n  :password         =\u003e \"secret\",\n  :project_id       =\u003e \"XXX\",\n  :domain_id        =\u003e \"XXX\",\n  :user_domain_id   =\u003e \"XXX\"\n}\n\ncloud = Misty::Cloud.new(:auth =\u003e auth_v3,  :region_id =\u003e \"staging\", :log_level =\u003e 2)\n\n# PROJECT SCOPE\ncloud.resources.get_project(\"DOMAIN_ID\",\"PROJECT_ID\")\ncloud.resources.get_service_for_project(\"DOMAIN_ID\",\"PROJECT_ID\",\"compute\")\ncloud.resources.get_service_resource_for_project(\"DOMAIN_ID\",\"PROJECT_ID\",\"compute\",\"cores\")\ncloud.resources.sync_project(\"DOMAIN_ID\",\"PROJECT_ID\")\n\n# DOMAIN SCOPE\ncloud.resources.discover_domain_projects(\"DOMAIN_ID\")\n\ncloud.resources.get_domain(\"DOMAIN_ID\")\ncloud.resources.get_service_for_domain(\"DOMAIN_ID\",\"compute\")\ncloud.resources.get_service_resource_for_domain(\"DOMAIN_ID\",\"compute\",\"cores\")\n\nnew_quota = {\n            \"services\": [\n              {\n                \"type\": \"compute\",\n                \"resources\": [\n                  {\n                    \"name\": \"instances\",\n                    \"quota\": 10\n                  },\n                  {\n                    \"name\": \"cores\",\n                    \"quota\": 10\n                  }\n                ]\n              }\n            ]\n          }\n\ncloud.resources.set_quota_for_domain(\"DOMAIN_ID\", \"domain\" =\u003e new_quota)\n\n```\n\n## Development\n\n1. Within the directory run `rvm use ruby-2.3.1@misty-limes`\n2. RUN gem install bundler\n3. Run `bundle install --with=development`\n4. Run the tests\n    1. rename dotenv to .env and run `bundle exec rake limes`\n    2. Note: if you need to rerun the tests without vcr tapes you need to set your env variables first, take a look to the dotenv file\n\n## License\n\nThe gem is available as open source under the terms of the enclosed Apache-2.0\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fmisty-limes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsapcc%2Fmisty-limes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsapcc%2Fmisty-limes/lists"}