Skip to content

Commit e84735a

Browse files
committed
Add OpenAPI generated IAM, Power, and VPC gems
1 parent b5c3596 commit e84735a

File tree

1,680 files changed

+292104
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,680 files changed

+292104
-0
lines changed

gems/ibm_cloud/.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status

gems/ibm_cloud/.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

gems/ibm_cloud/.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
language: ruby
3+
cache: bundler
4+
rvm:
5+
- 2.7.1
6+
before_install: gem install bundler -v 2.1.4

gems/ibm_cloud/Gemfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source "https://rubygems.org"
2+
3+
# Specify your gem's dependencies in ibm_cloud.gemspec
4+
gemspec
5+
6+
gem "rake", "~> 12.0"
7+
gem "rspec", "~> 3.0"

gems/ibm_cloud/README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# IbmCloud
2+
3+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/ibm_cloud`. To experiment with that code, run `bin/console` for an interactive prompt.
4+
5+
TODO: Delete this and the text above, and describe your gem
6+
7+
## Installation
8+
9+
Add this line to your application's Gemfile:
10+
11+
```ruby
12+
gem 'ibm_cloud'
13+
```
14+
15+
And then execute:
16+
17+
$ bundle install
18+
19+
Or install it yourself as:
20+
21+
$ gem install ibm_cloud
22+
23+
## Usage
24+
25+
TODO: Write usage instructions here
26+
27+
## Development
28+
29+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30+
31+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32+
33+
## Contributing
34+
35+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/ibm_cloud.
36+

gems/ibm_cloud/Rakefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require "bundler/gem_tasks"
2+
require "rspec/core/rake_task"
3+
4+
RSpec::Core::RakeTask.new(:spec)
5+
6+
task :default => :spec

gems/ibm_cloud/bin/console

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env ruby
2+
3+
require "bundler/setup"
4+
require "ibm_cloud"
5+
6+
# You can add fixtures and/or initialization code here to make experimenting
7+
# with your gem easier. You can also use a different console, if you like.
8+
9+
# (If you use this, don't forget to add pry to your Gemfile!)
10+
# require "pry"
11+
# Pry.start
12+
13+
require "irb"
14+
IRB.start(__FILE__)

gems/ibm_cloud/bin/setup

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
set -euo pipefail
3+
IFS=$'\n\t'
4+
set -vx
5+
6+
bundle install
7+
8+
# Do any other automated setup that you need to do here

gems/ibm_cloud/ibm_cloud.gemspec

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
require_relative 'lib/ibm_cloud/version'
2+
3+
Gem::Specification.new do |spec|
4+
spec.name = "ibm_cloud"
5+
spec.version = IbmCloud::VERSION
6+
spec.authors = ["Adam Grare"]
7+
spec.email = ["[email protected]"]
8+
9+
spec.summary = %q{Write a short summary, because RubyGems requires one.}
10+
spec.description = %q{Write a longer description or delete this line.}
11+
spec.homepage = "Put your gem's website or public repo URL here."
12+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
13+
14+
spec.metadata["allowed_push_host"] = "Set to 'http://mygemserver.com'"
15+
16+
spec.metadata["homepage_uri"] = spec.homepage
17+
spec.metadata["source_code_uri"] = "Put your gem's public repo URL here."
18+
spec.metadata["changelog_uri"] = "Put your gem's CHANGELOG.md URL here."
19+
20+
# Specify which files should be added to the gem when it is released.
21+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
23+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
24+
end
25+
spec.bindir = "exe"
26+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
27+
spec.require_paths = ["lib"]
28+
29+
spec.add_dependency("ibm_cloud_power_iaas")
30+
spec.add_dependency("ibm_cloud_vpc")
31+
end

gems/ibm_cloud/lib/ibm_cloud.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require "ibm_cloud/version"
2+
3+
module IbmCloud
4+
class Error < StandardError; end
5+
# Your code goes here...
6+
end
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module IbmCloud
2+
VERSION = "0.1.0"
3+
end

gems/ibm_cloud/spec/ibm_cloud_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
RSpec.describe IbmCloud do
2+
it "has a version number" do
3+
expect(IbmCloud::VERSION).not_to be nil
4+
end
5+
6+
it "does something useful" do
7+
expect(false).to eq(true)
8+
end
9+
end

gems/ibm_cloud/spec/spec_helper.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require "bundler/setup"
2+
require "ibm_cloud"
3+
4+
RSpec.configure do |config|
5+
# Enable flags like --only-failures and --next-failure
6+
config.example_status_persistence_file_path = ".rspec_status"
7+
8+
# Disable RSpec exposing methods globally on `Module` and `main`
9+
config.disable_monkey_patching!
10+
11+
config.expect_with :rspec do |c|
12+
c.syntax = :expect
13+
end
14+
end

gems/ibm_cloud_iam/.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Generated by: https://openapi-generator.tech
2+
#
3+
4+
*.gem
5+
*.rbc
6+
/.config
7+
/coverage/
8+
/InstalledFiles
9+
/pkg/
10+
/spec/reports/
11+
/spec/examples.txt
12+
/test/tmp/
13+
/test/version_tmp/
14+
/tmp/
15+
16+
## Specific to RubyMotion:
17+
.dat*
18+
.repl_history
19+
build/
20+
21+
## Documentation cache and generated files:
22+
/.yardoc/
23+
/_yardoc/
24+
/doc/
25+
/rdoc/
26+
27+
## Environment normalization:
28+
/.bundle/
29+
/vendor/bundle
30+
/lib/bundler/man/
31+
32+
# for a library or gem, you might want to ignore these files since the code is
33+
# intended to run in multiple environments; otherwise, check them in:
34+
# Gemfile.lock
35+
# .ruby-version
36+
# .ruby-gemset
37+
38+
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
39+
.rvmrc
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"gemName": "ibm_cloud_iam"
3+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.gitignore
2+
.rspec
3+
.rubocop.yml
4+
.travis.yml
5+
Gemfile
6+
README.md
7+
Rakefile
8+
docs/ApiKeyV1Response.md
9+
docs/CreateApiKeyV1Request.md
10+
docs/CreateServiceIdV1Request.md
11+
docs/EnityHistoryRecord.md
12+
docs/ErrorV1.md
13+
docs/ExceptionResponseContext.md
14+
docs/ExceptionResponseV1.md
15+
docs/IdentityOperationsApi.md
16+
docs/InlineObject.md
17+
docs/InlineObject1.md
18+
docs/InlineObject2.md
19+
docs/InlineObject3.md
20+
docs/ListApiKeysV1Response.md
21+
docs/ListServiceIdV1Response.md
22+
docs/MFARequirementsResponse.md
23+
docs/OidcExceptionResponse.md
24+
docs/ResponseContextV1.md
25+
docs/ServiceIdV1Response.md
26+
docs/TokenOperationsApi.md
27+
docs/TokenResponse.md
28+
docs/UpdateApiKeyV1Request.md
29+
docs/UpdateServiceIdV1Request.md
30+
git_push.sh
31+
ibm_cloud_iam.gemspec
32+
lib/ibm_cloud_iam.rb
33+
lib/ibm_cloud_iam/api/identity_operations_api.rb
34+
lib/ibm_cloud_iam/api/token_operations_api.rb
35+
lib/ibm_cloud_iam/api_client.rb
36+
lib/ibm_cloud_iam/api_error.rb
37+
lib/ibm_cloud_iam/configuration.rb
38+
lib/ibm_cloud_iam/configuration.rb
39+
lib/ibm_cloud_iam/models/api_key_v1_response.rb
40+
lib/ibm_cloud_iam/models/create_api_key_v1_request.rb
41+
lib/ibm_cloud_iam/models/create_service_id_v1_request.rb
42+
lib/ibm_cloud_iam/models/enity_history_record.rb
43+
lib/ibm_cloud_iam/models/error_v1.rb
44+
lib/ibm_cloud_iam/models/exception_response_context.rb
45+
lib/ibm_cloud_iam/models/exception_response_v1.rb
46+
lib/ibm_cloud_iam/models/inline_object.rb
47+
lib/ibm_cloud_iam/models/inline_object1.rb
48+
lib/ibm_cloud_iam/models/inline_object2.rb
49+
lib/ibm_cloud_iam/models/inline_object3.rb
50+
lib/ibm_cloud_iam/models/list_api_keys_v1_response.rb
51+
lib/ibm_cloud_iam/models/list_service_id_v1_response.rb
52+
lib/ibm_cloud_iam/models/mfa_requirements_response.rb
53+
lib/ibm_cloud_iam/models/oidc_exception_response.rb
54+
lib/ibm_cloud_iam/models/response_context_v1.rb
55+
lib/ibm_cloud_iam/models/service_id_v1_response.rb
56+
lib/ibm_cloud_iam/models/token_response.rb
57+
lib/ibm_cloud_iam/models/update_api_key_v1_request.rb
58+
lib/ibm_cloud_iam/models/update_service_id_v1_request.rb
59+
lib/ibm_cloud_iam/version.rb
60+
spec/api_client_spec.rb
61+
spec/configuration_spec.rb
62+
spec/spec_helper.rb
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5.0.0-beta2

gems/ibm_cloud_iam/.rspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

0 commit comments

Comments
 (0)