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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b8d3c211f74b1fea50d3131fb6ce5eaa0477465ef18979ec5f4c302ec2854bcd
4
- data.tar.gz: e681b4f30dec394d7112d1117d9b27eb390a3d489501220c83f3737c5d53067e
3
+ metadata.gz: 4f1edaa0d412e706daac1bdb4553a149e8e02bc40ba83f322201dee93f9cd21c
4
+ data.tar.gz: 9bb3d582d4209203e09a9067865ee7c7361ec280363f52311553fa1425584b2f
5
5
  SHA512:
6
- metadata.gz: cb694126d526a8a7675363c05bf34d9e81985bae812632ee37b4ccb9725f349319a54111e997d4df5a5a06a777067837900e7e34a2604b74cdc4863a3e3e2210
7
- data.tar.gz: d6360cb4ceccf529fb505b76abc6a1cdbe53808846a67073232612bc4e78a663b60203a36aed2c2a7a4282fc2b598375e95b12ebd7c01837219518be9d721042
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.3
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
- ## How to generate code with OpenAPI Generator (and apply necessary patches to it)
32
- 1. To generate code run:
33
- ```shell
34
- docker run --rm -v ${PWD}:/local openapitools/openapi-generator-cli:v5.3.1 generate -i /local/intersight-openapi-v3-1.0.9.4870.yaml -g ruby -o /local/ --additional-properties=legacyDiscriminatorBehavior=false,gemAuthor=XLAB,gemHomepage=https://github.com/xlab-si/intersight-sdk-ruby,gemDescription="Gem for interaction with Cisco Intersight API",gemName=intersight_client,moduleName=IntersightClient,gemLicense="Apache-2.0",gemVersion=0.1.3 -t /local/bin/oas_generator/templates/
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
- 2. If needed, change ownership of files generated by the Docker container: `chown -R $USER:$USER .`
37
- 3. Run `bin/oas_generator/regex-syntax-fix.sh` to fix syntax of regular expressions
38
- 4. Run `bin/oas_generator/reorder-requires.sh` to fix the order of require instructions according to class inheritance
39
- 5. Patch `lib/openapi_client/api_client.rb` and `lib/openapi_client/configuration.rb` to include API key config + ECDSA signing auth by running `patch -p1 < bin/oas_generator/patch-auth.diff`
40
- 6. Run `bin/oas_generator/replace-discriminator-names.sh` to fix incorrect type discriminator names in model files
41
- 7. Before publishing the gem, verify the generated specification in `intersight_client.gemspec`
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.3.gem
69
+ gem install ./intersight_client-0.1.4.gem
69
70
  ```
70
71
 
71
- (for development, run `gem install --dev ./intersight_client-0.1.3.gem` to install the development dependencies)
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.3'
78
+ gem 'intersight_client', '~> 0.1.4'
78
79
 
79
80
  ### Install from Git
80
81
 
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.3.1
11
11
  =end
12
12
 
13
13
  module IntersightClient
14
- VERSION = '0.1.3'
14
+ VERSION = '0.1.4'
15
15
  end