File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ These APIs provide services for manipulating Harbor project.
77This SDK is automatically generated by the [ Swagger Codegen] ( https://github.com/swagger-api/swagger-codegen ) project:
88
99- API version: 2.0
10- - Package version: 2.3.3.0
10+ - Package version: 2.3.3.1
1111- Build package: io.swagger.codegen.languages.RubyClientCodegen
1212
1313## Installation
@@ -23,15 +23,15 @@ gem build harbor2_client.gemspec
2323Then either install the gem locally:
2424
2525``` shell
26- gem install ./harbor2_client-2.3.3.0 .gem
26+ gem install ./harbor2_client-2.3.3.1 .gem
2727```
28- (for development, run ` gem install --dev ./harbor2_client-2.3.3.0 .gem ` to install the development dependencies)
28+ (for development, run ` gem install --dev ./harbor2_client-2.3.3.1 .gem ` to install the development dependencies)
2929
3030or publish the gem to a gem hosting service, e.g. [ RubyGems] ( https://rubygems.org/ ) .
3131
3232Finally add this to the Gemfile:
3333
34- gem 'harbor2_client', '~> 2.3.3.0 '
34+ gem 'harbor2_client', '~> 2.3.3.1 '
3535
3636### Install from Git
3737
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # 1. Create a new git branch
3+ # 2. Clean out repo (delete everything except build_scripts folder and .git folder)
4+ # 3. Update version in swagger-codegen-cli-ruby-config.json
5+ # 4. Run this script from the root of the repo ( e.g. "build_scripts/generate.sh 2.3.3")
6+ # 5. Check previous commits to check required manual fixups (may or may not stil be required)
7+ version=$1
8+ docker run -u $( id -u) --rm -v ${PWD} :/local swaggerapi/swagger-codegen-cli generate -i " https://raw.githubusercontent.com/goharbor/harbor/v${version} /api/v2.0/swagger.yaml" -l ruby -c /local/build_scripts/swagger-codegen-cli-ruby-config.json -o /local/
Original file line number Diff line number Diff line change 1+ {
2+ "gemName" : " harbor2_client" ,
3+ "moduleName" : " Harbor2Client" ,
4+ "gemVersion" : " 2.3.3.1" ,
5+ "gemLicense" : " MIT" ,
6+ "gemRequiredRubyVersion" : " >= 1.9" ,
7+ "gemHomepage" : " https://github.com/liger1978/ruby-harbor2_client" ,
8+ "gemSummary" : " A ruby wrapper for the Harbor swagger APIs" ,
9+ "gemDescription" : " A ruby wrapper for the Harbor swagger APIs" ,
10+ "gemAuthor" : " Richard Grainger" ,
11+ "gemAuthorEmail" : " harbottle@room3d3.com"
12+ }
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ def self.attribute_map
3434 {
3535 :'architecture' => :'architecture' ,
3636 :'os' => :'os' ,
37- :'os_version' => :'' os . version ' ',
38- :'os_features' => :'' os . features ' ',
37+ :'os_version' => :'os.version' ,
38+ :'os_features' => :'os.features' ,
3939 :'variant' => :'variant'
4040 }
4141 end
@@ -67,12 +67,12 @@ def initialize(attributes = {})
6767 self . os = attributes [ :'os' ]
6868 end
6969
70- if attributes . has_key? ( :'' os . version ' ')
71- self . os_version = attributes [ :'' os . version ' ']
70+ if attributes . has_key? ( :'os.version' )
71+ self . os_version = attributes [ :'os.version' ]
7272 end
7373
74- if attributes . has_key? ( :'' os . features ' ')
75- if ( value = attributes [ :'' os . features ' '] ) . is_a? ( Array )
74+ if attributes . has_key? ( :'os.features' )
75+ if ( value = attributes [ :'os.features' ] ) . is_a? ( Array )
7676 self . os_features = value
7777 end
7878 end
Original file line number Diff line number Diff line change 1111=end
1212
1313module Harbor2Client
14- VERSION = '2.3.3.0 '
14+ VERSION = '2.3.3.1 '
1515end
You can’t perform that action at this time.
0 commit comments