intersight_client 0.1.3 → 0.1.4
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 +4 -4
- data/README.md +18 -17
- data/lib/intersight_client/version.rb +1 -1
- data/lib/intersight_client.rb +5926 -5926
- metadata +2 -15
- data/Gemfile.lock +0 -68
- data/bin/console +0 -10
- data/bin/oas_generator/patch-auth.diff +0 -207
- data/bin/oas_generator/regex-syntax-fix.sh +0 -5
- data/bin/oas_generator/reorder-requires.sh +0 -47
- data/bin/oas_generator/replace-discriminator-names.sh +0 -8
- data/bin/oas_generator/templates/base_object.mustache +0 -120
- data/bin/oas_generator/templates/partial_model_generic.mustache +0 -381
- data/bin/setup +0 -8
- data/git_push.sh +0 -57
- data/intersight-openapi-v3-1.0.9.4870.yaml +0 -345393
- data/intersight_client-0.1.2.gem +0 -0
- data/intersight_client.gemspec +0 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f1edaa0d412e706daac1bdb4553a149e8e02bc40ba83f322201dee93f9cd21c
|
4
|
+
data.tar.gz: 9bb3d582d4209203e09a9067865ee7c7361ec280363f52311553fa1425584b2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b2844f95f38513596667b07ac15bdc9acfc0b43b29af5af012e08d96fa48a6a34f4d578821e245e8564c2dc930c7a73556d63fee734389571198385652d2697
|
7
|
+
data.tar.gz: 27de2f6e804da08127a724e41e82ae0c0893f26f75a5a9d54f4aa972973f27c9f1940a39b9afb4f258f19b58fc385d060609ff60b081ee4076bf76381bb7f4a2
|
data/README.md
CHANGED
@@ -24,23 +24,26 @@ This document was created on 2021-10-20T11:22:53Z.
|
|
24
24
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
25
25
|
|
26
26
|
- API version: 1.0.9-4870
|
27
|
-
- Package version: 0.1.
|
27
|
+
- Package version: 0.1.4
|
28
28
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
29
29
|
For more information, please visit [https://intersight.com/help](https://intersight.com/help)
|
30
30
|
|
31
|
-
##
|
32
|
-
|
33
|
-
|
34
|
-
|
31
|
+
## Build
|
32
|
+
|
33
|
+
In order to generate code with OpenAPI Generator (and apply necessary patches to it), run `bin/build`
|
34
|
+
|
35
35
|
```
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
36
|
+
Usage: bin/build [--yaml <openapi-yaml>] [--version <gem-version>] [--skip-generate] [--local-cli]
|
37
|
+
|
38
|
+
Options:
|
39
|
+
-y, --yaml The OpenAPI yaml file to process. (default: latest intersight-openapi-*.yaml in the current directory)
|
40
|
+
-v, --version The gem version to generate. (default: value in lib/intersight_client/version.rb)
|
41
|
+
--skip-generate Skip the openapi-generator step and continue on applying the patches.
|
42
|
+
--local-cli Use a locally installed openapi-generator instead of the docker based one.
|
43
|
+
```
|
44
|
+
|
45
|
+
Before publishing the gem, verify the generated specification in `intersight_client.gemspec`.
|
42
46
|
|
43
|
-
---
|
44
47
|
**NOTE**
|
45
48
|
|
46
49
|
Modified openapi-generator templates for `base_object` and `partial_model_generic` are included in `bin/oas_generator/templates/` to fix the problem of ignoring inherited properties when instantiating or (de)serializing objects.
|
@@ -50,8 +53,6 @@ The original Mustache templates can be retrieved from the generator with (output
|
|
50
53
|
docker run --rm -v ${PWD}:/out openapitools/openapi-generator-cli:v5.3.1 author template -g ruby
|
51
54
|
```
|
52
55
|
|
53
|
-
---
|
54
|
-
|
55
56
|
## Installation
|
56
57
|
|
57
58
|
### Build a gem
|
@@ -65,16 +66,16 @@ gem build intersight_client.gemspec
|
|
65
66
|
Then either install the gem locally:
|
66
67
|
|
67
68
|
```shell
|
68
|
-
gem install ./intersight_client-0.1.
|
69
|
+
gem install ./intersight_client-0.1.4.gem
|
69
70
|
```
|
70
71
|
|
71
|
-
(for development, run `gem install --dev ./intersight_client-0.1.
|
72
|
+
(for development, run `gem install --dev ./intersight_client-0.1.4.gem` to install the development dependencies)
|
72
73
|
|
73
74
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
74
75
|
|
75
76
|
Finally add this to the Gemfile:
|
76
77
|
|
77
|
-
gem 'intersight_client', '~> 0.1.
|
78
|
+
gem 'intersight_client', '~> 0.1.4'
|
78
79
|
|
79
80
|
### Install from Git
|
80
81
|
|