harbor2_client 2.3.3.0 → 2.3.3.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8a172a6e2159b6da58d36feb86c570836d3d924c03665a8edc8cab22c5136c4
|
4
|
+
data.tar.gz: eaba5f3a4b88d5a812d94b4a3922adb166684e5205d35f45e94e2350ce6162d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b176daac2402045f266f9582273589238239fb405fb634c2cb9e0797688e196faf234d7ba2f5bfac23440d423e4b5d9bf914ed8dceb76f9fb966517d6e6d6f4b
|
7
|
+
data.tar.gz: 6ebf5695e1d8d112e3c1146f79efc71b5524db5493f2af3132b2b8fd386dc0dbe00a61b5f20d87fef9b2282d4e0c92951cd59ea4c3b9765e4ea4e4c333860333
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ These APIs provide services for manipulating Harbor project.
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0
|
10
|
-
- Package version: 2.3.3.
|
10
|
+
- Package version: 2.3.3.1
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
|
13
13
|
## Installation
|
@@ -23,15 +23,15 @@ gem build harbor2_client.gemspec
|
|
23
23
|
Then either install the gem locally:
|
24
24
|
|
25
25
|
```shell
|
26
|
-
gem install ./harbor2_client-2.3.3.
|
26
|
+
gem install ./harbor2_client-2.3.3.1.gem
|
27
27
|
```
|
28
|
-
(for development, run `gem install --dev ./harbor2_client-2.3.3.
|
28
|
+
(for development, run `gem install --dev ./harbor2_client-2.3.3.1.gem` to install the development dependencies)
|
29
29
|
|
30
30
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
31
31
|
|
32
32
|
Finally add this to the Gemfile:
|
33
33
|
|
34
|
-
gem 'harbor2_client', '~> 2.3.3.
|
34
|
+
gem 'harbor2_client', '~> 2.3.3.1'
|
35
35
|
|
36
36
|
### Install from Git
|
37
37
|
|
@@ -0,0 +1,8 @@
|
|
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/
|
@@ -34,8 +34,8 @@ module Harbor2Client
|
|
34
34
|
{
|
35
35
|
:'architecture' => :'architecture',
|
36
36
|
:'os' => :'os',
|
37
|
-
:'os_version' => :'
|
38
|
-
:'os_features' => :'
|
37
|
+
:'os_version' => :'os.version',
|
38
|
+
:'os_features' => :'os.features',
|
39
39
|
:'variant' => :'variant'
|
40
40
|
}
|
41
41
|
end
|
@@ -67,12 +67,12 @@ module Harbor2Client
|
|
67
67
|
self.os = attributes[:'os']
|
68
68
|
end
|
69
69
|
|
70
|
-
if attributes.has_key?(:'
|
71
|
-
self.os_version = attributes[:'
|
70
|
+
if attributes.has_key?(:'os.version')
|
71
|
+
self.os_version = attributes[:'os.version']
|
72
72
|
end
|
73
73
|
|
74
|
-
if attributes.has_key?(:'
|
75
|
-
if (value = attributes[:'
|
74
|
+
if attributes.has_key?(:'os.features')
|
75
|
+
if (value = attributes[:'os.features']).is_a?(Array)
|
76
76
|
self.os_features = value
|
77
77
|
end
|
78
78
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: harbor2_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.3.
|
4
|
+
version: 2.3.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Grainger
|
@@ -220,8 +220,8 @@ files:
|
|
220
220
|
- Gemfile
|
221
221
|
- README.md
|
222
222
|
- Rakefile
|
223
|
-
-
|
224
|
-
-
|
223
|
+
- build_scripts/generate.sh
|
224
|
+
- build_scripts/swagger-codegen-cli-ruby-config.json
|
225
225
|
- docs/Access.md
|
226
226
|
- docs/AdditionLink.md
|
227
227
|
- docs/AdditionLinks.md
|
data/build/generate.sh
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
# 1. Create a new git branch
|
3
|
-
# 2. Clean out repo (delete everything except build 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/generate.sh 2.3.3")
|
6
|
-
# Clean out repo (remove everything except )
|
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/swagger-codegen-cli-ruby-config.json -o /local/
|