openapi_azureipranges 1.1.0 → 1.2.0
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/Gemfile.lock +25 -25
- data/README.md +6 -6
- data/bin/byebug +1 -1
- data/bin/coderay +1 -1
- data/bin/htmldiff +1 -1
- data/bin/ldiff +1 -1
- data/bin/pry +1 -1
- data/bin/racc +1 -1
- data/bin/rake +1 -1
- data/bin/rspec +1 -1
- data/bin/rubocop +1 -1
- data/bin/ruby-parse +1 -1
- data/bin/ruby-rewrite +1 -1
- data/git_push.sh +14 -17
- data/lib/openapi_azureipranges/api/default_api.rb +2 -2
- data/lib/openapi_azureipranges/api_client.rb +2 -2
- data/lib/openapi_azureipranges/api_error.rb +2 -2
- data/lib/openapi_azureipranges/api_model_base.rb +2 -2
- data/lib/openapi_azureipranges/configuration.rb +2 -2
- data/lib/openapi_azureipranges/models/change.rb +23 -10
- data/lib/openapi_azureipranges/models/value.rb +23 -10
- data/lib/openapi_azureipranges/models/value_properties.rb +23 -10
- data/lib/openapi_azureipranges/version.rb +3 -3
- data/lib/openapi_azureipranges.rb +2 -2
- data/openapi_azureipranges.gemspec +2 -2
- data/spec/api/default_api_spec.rb +2 -2
- data/spec/models/change_spec.rb +2 -2
- data/spec/models/value_properties_spec.rb +2 -2
- data/spec/models/value_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ac0a1c0a718e6f725cb8e3f2f366c0c055c1ad608ce9335ff90f60ccba04fcad
|
|
4
|
+
data.tar.gz: 7a6844f40399604383bc549e0f51785e51321484993e738feeec3a23253dddc2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af406d715dfcc7d1a877887189bee5d8cdf93d38e40b5bc8d1391131275e814f3946693e31d089489d201fd8674eaff4ccf7caeb790f717e398bab7bac19a821
|
|
7
|
+
data.tar.gz: a597962afa10e91e41387761ccfd1ef075ce7ce284bfd281d5e721a34575dbb2f4895137f25001debbc727288ae59f1cb873808c631f45136103931a37b2aa81
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
openapi_azureipranges (1.
|
|
4
|
+
openapi_azureipranges (1.2.0)
|
|
5
5
|
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -11,9 +11,9 @@ GEM
|
|
|
11
11
|
byebug (13.0.0)
|
|
12
12
|
reline (>= 0.6.0)
|
|
13
13
|
coderay (1.1.3)
|
|
14
|
-
date (3.
|
|
14
|
+
date (3.6.0)
|
|
15
15
|
diff-lcs (1.6.2)
|
|
16
|
-
ethon (0.
|
|
16
|
+
ethon (0.19.1)
|
|
17
17
|
ffi (>= 1.15.0)
|
|
18
18
|
logger
|
|
19
19
|
ffi (1.17.4)
|
|
@@ -27,15 +27,15 @@ GEM
|
|
|
27
27
|
ffi (1.17.4-x86_64-darwin)
|
|
28
28
|
ffi (1.17.4-x86_64-linux-gnu)
|
|
29
29
|
ffi (1.17.4-x86_64-linux-musl)
|
|
30
|
-
io-console (0.9.
|
|
30
|
+
io-console (0.9.5)
|
|
31
31
|
jaro_winkler (1.5.6)
|
|
32
32
|
logger (1.7.0)
|
|
33
33
|
method_source (1.1.0)
|
|
34
34
|
parallel (1.28.0)
|
|
35
|
-
parser (3.3.
|
|
35
|
+
parser (3.3.13.0)
|
|
36
36
|
ast (~> 2.4.1)
|
|
37
37
|
racc
|
|
38
|
-
pry (0.16.
|
|
38
|
+
pry (0.16.1)
|
|
39
39
|
coderay (~> 1.1)
|
|
40
40
|
method_source (~> 1.0)
|
|
41
41
|
reline (>= 0.6.0)
|
|
@@ -54,15 +54,15 @@ GEM
|
|
|
54
54
|
rspec-core (~> 3.13.0)
|
|
55
55
|
rspec-expectations (~> 3.13.0)
|
|
56
56
|
rspec-mocks (~> 3.13.0)
|
|
57
|
-
rspec-core (3.13.
|
|
57
|
+
rspec-core (3.13.7)
|
|
58
58
|
rspec-support (~> 3.13.0)
|
|
59
|
-
rspec-expectations (3.13.
|
|
59
|
+
rspec-expectations (3.13.6)
|
|
60
60
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
61
61
|
rspec-support (~> 3.13.0)
|
|
62
|
-
rspec-mocks (3.13.
|
|
62
|
+
rspec-mocks (3.13.9)
|
|
63
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
64
64
|
rspec-support (~> 3.13.0)
|
|
65
|
-
rspec-support (3.13.
|
|
65
|
+
rspec-support (3.13.8)
|
|
66
66
|
rubocop (0.66.0)
|
|
67
67
|
jaro_winkler (~> 1.5.1)
|
|
68
68
|
parallel (~> 1.10)
|
|
@@ -73,8 +73,8 @@ GEM
|
|
|
73
73
|
unicode-display_width (>= 1.4.0, < 1.6)
|
|
74
74
|
ruby-progressbar (1.13.0)
|
|
75
75
|
stringio (3.2.0)
|
|
76
|
-
typhoeus (1.
|
|
77
|
-
ethon (>= 0.
|
|
76
|
+
typhoeus (1.7.1)
|
|
77
|
+
ethon (>= 0.19.1, < 0.20.0)
|
|
78
78
|
unicode-display_width (1.5.0)
|
|
79
79
|
|
|
80
80
|
PLATFORMS
|
|
@@ -99,12 +99,12 @@ DEPENDENCIES
|
|
|
99
99
|
|
|
100
100
|
CHECKSUMS
|
|
101
101
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
102
|
-
bundler (4.0.
|
|
102
|
+
bundler (4.0.24) sha256=16ca64e20816a0cf151a948fb141d788602996d2b4d73577b74388fe84fa98bc
|
|
103
103
|
byebug (13.0.0) sha256=d2263efe751941ca520fa29744b71972d39cbc41839496706f5d9b22e92ae05d
|
|
104
104
|
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
105
|
-
date (3.
|
|
105
|
+
date (3.6.0) sha256=18ac945c4e24ebd93534f8eab8c2fd8c5604b3e977105b3798d62a1e8d27b580
|
|
106
106
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
107
|
-
ethon (0.
|
|
107
|
+
ethon (0.19.1) sha256=f309dec67cfdefaf96b3d1ee0ed4f186eac518f131340f607bb3df3b4e13ddc4
|
|
108
108
|
ffi (1.17.4) sha256=bcd1642e06f0d16fc9e09ac6d49c3a7298b9789bcb58127302f934e437d60acf
|
|
109
109
|
ffi (1.17.4-aarch64-linux-gnu) sha256=b208f06f91ffd8f5e1193da3cae3d2ccfc27fc36fba577baf698d26d91c080df
|
|
110
110
|
ffi (1.17.4-aarch64-linux-musl) sha256=9286b7a615f2676245283aef0a0a3b475ae3aae2bb5448baace630bb77b91f39
|
|
@@ -116,14 +116,14 @@ CHECKSUMS
|
|
|
116
116
|
ffi (1.17.4-x86_64-darwin) sha256=aa70390523cf3235096cf64962b709b4cfbd5c082a2cb2ae714eb0fe2ccda496
|
|
117
117
|
ffi (1.17.4-x86_64-linux-gnu) sha256=9d3db14c2eae074b382fa9c083fe95aec6e0a1451da249eab096c34002bc752d
|
|
118
118
|
ffi (1.17.4-x86_64-linux-musl) sha256=3fdf9888483de005f8ef8d1cf2d3b20d86626af206cbf780f6a6a12439a9c49e
|
|
119
|
-
io-console (0.9.
|
|
119
|
+
io-console (0.9.5) sha256=83dd9bbf4c4680416629245b39cd4212eb5f4d9a4ea91804870c1f6b846414d5
|
|
120
120
|
jaro_winkler (1.5.6) sha256=007db7805527ada1cc12f2547676181d63b0a504ec4dd7a9a2eb2424521ccd81
|
|
121
121
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
122
122
|
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
123
|
-
openapi_azureipranges (1.
|
|
123
|
+
openapi_azureipranges (1.2.0)
|
|
124
124
|
parallel (1.28.0) sha256=33e6de1484baf2524792d178b0913fc8eb94c628d6cfe45599ad4458c638c970
|
|
125
|
-
parser (3.3.
|
|
126
|
-
pry (0.16.
|
|
125
|
+
parser (3.3.13.0) sha256=e02f9b63c2fe05b0c68f692ba4df89b3cb113b663964f75d988fbebfd6c3deca
|
|
126
|
+
pry (0.16.1) sha256=d92d82c86e7f2dc34beec6d2892d5cf5ea517eea22eed3ceabb38ee62a98accc
|
|
127
127
|
pry-byebug (3.12.0) sha256=594e094ae8a8390a7ad4c7b36ae36e13304ed02664c67417d108dc5f7213d1b7
|
|
128
128
|
psych (5.5.0) sha256=4b245bbbd0f3238df8ccee766ebc1a6b062b10e4ee1d3284eb588739ba156a0a
|
|
129
129
|
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
@@ -131,15 +131,15 @@ CHECKSUMS
|
|
|
131
131
|
rake (13.0.6) sha256=5ce4bf5037b4196c24ac62834d8db1ce175470391026bd9e557d669beeb19097
|
|
132
132
|
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
133
133
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
134
|
-
rspec-core (3.13.
|
|
135
|
-
rspec-expectations (3.13.
|
|
136
|
-
rspec-mocks (3.13.
|
|
137
|
-
rspec-support (3.13.
|
|
134
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
135
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
136
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
137
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
138
138
|
rubocop (0.66.0) sha256=f05a6896f367765b3f0fba663d0add120444f8de604dada405662b10a0860f5a
|
|
139
139
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
140
140
|
stringio (3.2.0) sha256=c37cb2e58b4ffbd33fe5cd948c05934af997b36e0b6ca6fdf43afa234cf222e1
|
|
141
|
-
typhoeus (1.
|
|
141
|
+
typhoeus (1.7.1) sha256=86dcb6d787ee08e34947c9436b24af3c4b02880dc83c466b6ca4dbfc53c2ee7f
|
|
142
142
|
unicode-display_width (1.5.0) sha256=9890eebd24feb4cb0e0542c9b8c6beecb40cda27be8c7afe49312625b36156eb
|
|
143
143
|
|
|
144
144
|
BUNDLED WITH
|
|
145
|
-
4.0.
|
|
145
|
+
4.0.24
|
data/README.md
CHANGED
|
@@ -6,9 +6,9 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
6
6
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
|
-
- API version: 1.
|
|
10
|
-
- Package version: 1.
|
|
11
|
-
- Generator version: 7.
|
|
9
|
+
- API version: 1.2.0
|
|
10
|
+
- Package version: 1.2.0
|
|
11
|
+
- Generator version: 7.26.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://github.com/oapicf/openapi-azureipranges](https://github.com/oapicf/openapi-azureipranges)
|
|
14
14
|
|
|
@@ -25,16 +25,16 @@ gem build openapi_azureipranges.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./openapi_azureipranges-1.
|
|
28
|
+
gem install ./openapi_azureipranges-1.2.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./openapi_azureipranges-1.
|
|
31
|
+
(for development, run `gem install --dev ./openapi_azureipranges-1.2.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'openapi_azureipranges', '~> 1.
|
|
37
|
+
gem 'openapi_azureipranges', '~> 1.2.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
data/bin/byebug
CHANGED
data/bin/coderay
CHANGED
data/bin/htmldiff
CHANGED
data/bin/ldiff
CHANGED
data/bin/pry
CHANGED
data/bin/racc
CHANGED
data/bin/rake
CHANGED
data/bin/rspec
CHANGED
data/bin/rubocop
CHANGED
data/bin/ruby-parse
CHANGED
data/bin/ruby-rewrite
CHANGED
data/git_push.sh
CHANGED
|
@@ -8,24 +8,24 @@ git_repo_id=$2
|
|
|
8
8
|
release_note=$3
|
|
9
9
|
git_host=$4
|
|
10
10
|
|
|
11
|
-
if [ "$git_host"
|
|
11
|
+
if [ -z "${git_host}" ]; then
|
|
12
12
|
git_host="github.com"
|
|
13
|
-
echo "[INFO] No command line input provided. Set \$git_host to $git_host"
|
|
13
|
+
echo "[INFO] No command line input provided. Set \${git_host} to ${git_host}"
|
|
14
14
|
fi
|
|
15
15
|
|
|
16
|
-
if [ "$git_user_id"
|
|
16
|
+
if [ -z "${git_user_id}" ]; then
|
|
17
17
|
git_user_id="oapicf"
|
|
18
|
-
echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
|
|
18
|
+
echo "[INFO] No command line input provided. Set \${git_user_id} to ${git_user_id}"
|
|
19
19
|
fi
|
|
20
20
|
|
|
21
|
-
if [ "$git_repo_id"
|
|
21
|
+
if [ -z "${git_repo_id}" ]; then
|
|
22
22
|
git_repo_id="openapi-azureipranges"
|
|
23
|
-
echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
|
|
23
|
+
echo "[INFO] No command line input provided. Set \${git_repo_id} to ${git_repo_id}"
|
|
24
24
|
fi
|
|
25
25
|
|
|
26
|
-
if [ "$release_note"
|
|
26
|
+
if [ -z "${release_note}" ]; then
|
|
27
27
|
release_note="Minor update"
|
|
28
|
-
echo "[INFO] No command line input provided. Set \$release_note to $release_note"
|
|
28
|
+
echo "[INFO] No command line input provided. Set \${release_note} to ${release_note}"
|
|
29
29
|
fi
|
|
30
30
|
|
|
31
31
|
# Initialize the local directory as a Git repository
|
|
@@ -35,19 +35,16 @@ git init
|
|
|
35
35
|
git add .
|
|
36
36
|
|
|
37
37
|
# Commits the tracked changes and prepares them to be pushed to a remote repository.
|
|
38
|
-
git commit -m "$release_note"
|
|
38
|
+
git commit -m "${release_note}"
|
|
39
39
|
|
|
40
40
|
# Sets the new remote
|
|
41
|
-
|
|
42
|
-
if [ "$
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
|
|
46
|
-
git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
|
|
41
|
+
if [ -z "$(git remote)" ]; then # git remote not defined
|
|
42
|
+
if [ -z "${GIT_TOKEN:-}" ]; then
|
|
43
|
+
echo "[INFO] \${GIT_TOKEN} (environment variable) is not set. Using the git credential in your environment."
|
|
44
|
+
git remote add origin "https://${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
47
45
|
else
|
|
48
|
-
git remote add origin https://${git_user_id}
|
|
46
|
+
git remote add origin "https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git"
|
|
49
47
|
fi
|
|
50
|
-
|
|
51
48
|
fi
|
|
52
49
|
|
|
53
50
|
git pull origin master
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -57,6 +57,16 @@ module OpenApiAzureIpRangesClient
|
|
|
57
57
|
])
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# Returns attribute type mapping
|
|
61
|
+
def self.acceptable_openapi_types
|
|
62
|
+
openapi_types
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Returns the nullable attributes
|
|
66
|
+
def self.acceptable_openapi_nullable
|
|
67
|
+
openapi_nullable
|
|
68
|
+
end
|
|
69
|
+
|
|
60
70
|
# Initializes the object
|
|
61
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
72
|
def initialize(attributes = {})
|
|
@@ -131,18 +141,20 @@ module OpenApiAzureIpRangesClient
|
|
|
131
141
|
def self.build_from_hash(attributes)
|
|
132
142
|
return nil unless attributes.is_a?(Hash)
|
|
133
143
|
attributes = attributes.transform_keys(&:to_sym)
|
|
144
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
145
|
+
map = acceptable_attribute_map
|
|
134
146
|
transformed_hash = {}
|
|
135
|
-
|
|
136
|
-
if attributes.key?(
|
|
147
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
148
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
137
149
|
transformed_hash["#{key}"] = nil
|
|
138
150
|
elsif type =~ /\AArray<(.*)>/i
|
|
139
151
|
# check to ensure the input is an array given that the attribute
|
|
140
152
|
# is documented as an array but the input is not
|
|
141
|
-
if attributes[
|
|
142
|
-
transformed_hash["#{key}"] = attributes[
|
|
153
|
+
if attributes[map[key]].is_a?(Array)
|
|
154
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
143
155
|
end
|
|
144
|
-
elsif !attributes[
|
|
145
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[
|
|
156
|
+
elsif !attributes[map[key]].nil?
|
|
157
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
146
158
|
end
|
|
147
159
|
end
|
|
148
160
|
new(transformed_hash)
|
|
@@ -152,10 +164,11 @@ module OpenApiAzureIpRangesClient
|
|
|
152
164
|
# @return [Hash] Returns the object in the form of hash
|
|
153
165
|
def to_hash
|
|
154
166
|
hash = {}
|
|
155
|
-
|
|
167
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
168
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
156
169
|
value = self.send(attr)
|
|
157
170
|
if value.nil?
|
|
158
|
-
is_nullable = self.class.
|
|
171
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
159
172
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
160
173
|
end
|
|
161
174
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -57,6 +57,16 @@ module OpenApiAzureIpRangesClient
|
|
|
57
57
|
])
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
# Returns attribute type mapping
|
|
61
|
+
def self.acceptable_openapi_types
|
|
62
|
+
openapi_types
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# Returns the nullable attributes
|
|
66
|
+
def self.acceptable_openapi_nullable
|
|
67
|
+
openapi_nullable
|
|
68
|
+
end
|
|
69
|
+
|
|
60
70
|
# Initializes the object
|
|
61
71
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
62
72
|
def initialize(attributes = {})
|
|
@@ -129,18 +139,20 @@ module OpenApiAzureIpRangesClient
|
|
|
129
139
|
def self.build_from_hash(attributes)
|
|
130
140
|
return nil unless attributes.is_a?(Hash)
|
|
131
141
|
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
143
|
+
map = acceptable_attribute_map
|
|
132
144
|
transformed_hash = {}
|
|
133
|
-
|
|
134
|
-
if attributes.key?(
|
|
145
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
146
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
135
147
|
transformed_hash["#{key}"] = nil
|
|
136
148
|
elsif type =~ /\AArray<(.*)>/i
|
|
137
149
|
# check to ensure the input is an array given that the attribute
|
|
138
150
|
# is documented as an array but the input is not
|
|
139
|
-
if attributes[
|
|
140
|
-
transformed_hash["#{key}"] = attributes[
|
|
151
|
+
if attributes[map[key]].is_a?(Array)
|
|
152
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
141
153
|
end
|
|
142
|
-
elsif !attributes[
|
|
143
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[
|
|
154
|
+
elsif !attributes[map[key]].nil?
|
|
155
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
144
156
|
end
|
|
145
157
|
end
|
|
146
158
|
new(transformed_hash)
|
|
@@ -150,10 +162,11 @@ module OpenApiAzureIpRangesClient
|
|
|
150
162
|
# @return [Hash] Returns the object in the form of hash
|
|
151
163
|
def to_hash
|
|
152
164
|
hash = {}
|
|
153
|
-
|
|
165
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
166
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
154
167
|
value = self.send(attr)
|
|
155
168
|
if value.nil?
|
|
156
|
-
is_nullable = self.class.
|
|
169
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
157
170
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
158
171
|
end
|
|
159
172
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -78,6 +78,16 @@ module OpenApiAzureIpRangesClient
|
|
|
78
78
|
])
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
+
# Returns attribute type mapping
|
|
82
|
+
def self.acceptable_openapi_types
|
|
83
|
+
openapi_types
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Returns the nullable attributes
|
|
87
|
+
def self.acceptable_openapi_nullable
|
|
88
|
+
openapi_nullable
|
|
89
|
+
end
|
|
90
|
+
|
|
81
91
|
# Initializes the object
|
|
82
92
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
93
|
def initialize(attributes = {})
|
|
@@ -174,18 +184,20 @@ module OpenApiAzureIpRangesClient
|
|
|
174
184
|
def self.build_from_hash(attributes)
|
|
175
185
|
return nil unless attributes.is_a?(Hash)
|
|
176
186
|
attributes = attributes.transform_keys(&:to_sym)
|
|
187
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
188
|
+
map = acceptable_attribute_map
|
|
177
189
|
transformed_hash = {}
|
|
178
|
-
|
|
179
|
-
if attributes.key?(
|
|
190
|
+
acceptable_openapi_types.each_pair do |key, type|
|
|
191
|
+
if attributes.key?(map[key]) && attributes[map[key]].nil?
|
|
180
192
|
transformed_hash["#{key}"] = nil
|
|
181
193
|
elsif type =~ /\AArray<(.*)>/i
|
|
182
194
|
# check to ensure the input is an array given that the attribute
|
|
183
195
|
# is documented as an array but the input is not
|
|
184
|
-
if attributes[
|
|
185
|
-
transformed_hash["#{key}"] = attributes[
|
|
196
|
+
if attributes[map[key]].is_a?(Array)
|
|
197
|
+
transformed_hash["#{key}"] = attributes[map[key]].map { |v| _deserialize($1, v) }
|
|
186
198
|
end
|
|
187
|
-
elsif !attributes[
|
|
188
|
-
transformed_hash["#{key}"] = _deserialize(type, attributes[
|
|
199
|
+
elsif !attributes[map[key]].nil?
|
|
200
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[map[key]])
|
|
189
201
|
end
|
|
190
202
|
end
|
|
191
203
|
new(transformed_hash)
|
|
@@ -195,10 +207,11 @@ module OpenApiAzureIpRangesClient
|
|
|
195
207
|
# @return [Hash] Returns the object in the form of hash
|
|
196
208
|
def to_hash
|
|
197
209
|
hash = {}
|
|
198
|
-
|
|
210
|
+
# include attributes inherited from allOf parents (the nearest declaration wins)
|
|
211
|
+
self.class.acceptable_attribute_map.each_pair do |attr, param|
|
|
199
212
|
value = self.send(attr)
|
|
200
213
|
if value.nil?
|
|
201
|
-
is_nullable = self.class.
|
|
214
|
+
is_nullable = self.class.acceptable_openapi_nullable.include?(attr)
|
|
202
215
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
203
216
|
end
|
|
204
217
|
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module OpenApiAzureIpRangesClient
|
|
14
|
-
VERSION = '1.
|
|
14
|
+
VERSION = '1.2.0'
|
|
15
15
|
end
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 1.
|
|
8
|
+
The version of the OpenAPI document: 1.2.0
|
|
9
9
|
Contact: blah+oapicf@cliffano.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
|
-
Generator version: 7.
|
|
11
|
+
Generator version: 7.26.0
|
|
12
12
|
|
|
13
13
|
=end
|
|
14
14
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
data/spec/models/change_spec.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
data/spec/models/value_spec.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.
|
|
6
|
+
The version of the OpenAPI document: 1.2.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.26.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openapi_azureipranges
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenAPI Clients Factory
|
|
@@ -110,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
110
110
|
- !ruby/object:Gem::Version
|
|
111
111
|
version: '0'
|
|
112
112
|
requirements: []
|
|
113
|
-
rubygems_version:
|
|
113
|
+
rubygems_version: 4.0.20
|
|
114
114
|
specification_version: 4
|
|
115
115
|
summary: Azure IP Ranges and Service Tags - Public Cloud Ruby Gem
|
|
116
116
|
test_files:
|