openapi_azureipranges 0.10.0 → 1.0.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 +92 -23
- data/README.md +7 -7
- data/bin/byebug +2 -15
- data/bin/coderay +2 -15
- data/bin/htmldiff +2 -15
- data/bin/ldiff +2 -15
- data/bin/pry +2 -15
- data/bin/racc +2 -15
- data/bin/rake +2 -15
- data/bin/rspec +2 -15
- data/bin/rubocop +2 -15
- data/bin/ruby-parse +2 -15
- data/bin/ruby-rewrite +2 -15
- data/docs/DefaultApi.md +2 -2
- data/lib/openapi_azureipranges/api/default_api.rb +3 -3
- data/lib/openapi_azureipranges/api_client.rb +17 -12
- data/lib/openapi_azureipranges/api_error.rb +2 -2
- data/lib/openapi_azureipranges/api_model_base.rb +88 -0
- data/lib/openapi_azureipranges/configuration.rb +4 -4
- data/lib/openapi_azureipranges/models/change.rb +12 -79
- data/lib/openapi_azureipranges/models/value.rb +12 -79
- data/lib/openapi_azureipranges/models/value_properties.rb +12 -79
- data/lib/openapi_azureipranges/version.rb +3 -3
- data/lib/openapi_azureipranges.rb +3 -2
- data/openapi_azureipranges.gemspec +2 -2
- data/spec/api/default_api_spec.rb +2 -2
- data/spec/models/change_spec.rb +3 -3
- data/spec/models/value_properties_spec.rb +3 -3
- data/spec/models/value_spec.rb +3 -3
- data/spec/spec_helper.rb +2 -2
- metadata +8 -8
- data/bin/bundle +0 -114
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Azure IP Ranges and Service Tags - Public Cloud
|
|
3
|
+
|
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: blah+oapicf@cliffano.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.18.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module OpenApiAzureIpRangesClient
|
|
14
|
+
class ApiModelBase
|
|
15
|
+
# Deserializes the data based on type
|
|
16
|
+
# @param string type Data type
|
|
17
|
+
# @param string value Value to be deserialized
|
|
18
|
+
# @return [Object] Deserialized data
|
|
19
|
+
def self._deserialize(type, value)
|
|
20
|
+
case type.to_sym
|
|
21
|
+
when :Time
|
|
22
|
+
Time.parse(value)
|
|
23
|
+
when :Date
|
|
24
|
+
Date.parse(value)
|
|
25
|
+
when :String
|
|
26
|
+
value.to_s
|
|
27
|
+
when :Integer
|
|
28
|
+
value.to_i
|
|
29
|
+
when :Float
|
|
30
|
+
value.to_f
|
|
31
|
+
when :Boolean
|
|
32
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
33
|
+
true
|
|
34
|
+
else
|
|
35
|
+
false
|
|
36
|
+
end
|
|
37
|
+
when :Object
|
|
38
|
+
# generic object (usually a Hash), return directly
|
|
39
|
+
value
|
|
40
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
41
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
42
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
43
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
44
|
+
k_type = Regexp.last_match[:k_type]
|
|
45
|
+
v_type = Regexp.last_match[:v_type]
|
|
46
|
+
{}.tap do |hash|
|
|
47
|
+
value.each do |k, v|
|
|
48
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
else # model
|
|
52
|
+
# models (e.g. Pet) or oneOf
|
|
53
|
+
klass = OpenApiAzureIpRangesClient.const_get(type)
|
|
54
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns the string representation of the object
|
|
59
|
+
# @return [String] String presentation of the object
|
|
60
|
+
def to_s
|
|
61
|
+
to_hash.to_s
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
65
|
+
# @return [Hash] Returns the object in the form of hash
|
|
66
|
+
def to_body
|
|
67
|
+
to_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Outputs non-array value in the form of hash
|
|
71
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
72
|
+
# @param [Object] value Any valid value
|
|
73
|
+
# @return [Hash] Returns the value in the form of hash
|
|
74
|
+
def _to_hash(value)
|
|
75
|
+
if value.is_a?(Array)
|
|
76
|
+
value.compact.map { |v| _to_hash(v) }
|
|
77
|
+
elsif value.is_a?(Hash)
|
|
78
|
+
{}.tap do |hash|
|
|
79
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
80
|
+
end
|
|
81
|
+
elsif value.respond_to? :to_hash
|
|
82
|
+
value.to_hash
|
|
83
|
+
else
|
|
84
|
+
value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -159,7 +159,7 @@ module OpenApiAzureIpRangesClient
|
|
|
159
159
|
def initialize
|
|
160
160
|
@scheme = 'https'
|
|
161
161
|
@host = 'download.microsoft.com'
|
|
162
|
-
@base_path = '/download/7/1/
|
|
162
|
+
@base_path = '/download/7/1/d/71d86715-5596-4529-9b13-da13a5de5b63'
|
|
163
163
|
@server_index = nil
|
|
164
164
|
@server_operation_index = {}
|
|
165
165
|
@server_variables = {}
|
|
@@ -251,7 +251,7 @@ module OpenApiAzureIpRangesClient
|
|
|
251
251
|
def server_settings
|
|
252
252
|
[
|
|
253
253
|
{
|
|
254
|
-
url: "https://download.microsoft.com/download/7/1/
|
|
254
|
+
url: "https://download.microsoft.com/download/7/1/d/71d86715-5596-4529-9b13-da13a5de5b63",
|
|
255
255
|
description: "No description provided",
|
|
256
256
|
}
|
|
257
257
|
]
|
|
@@ -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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OpenApiAzureIpRangesClient
|
|
17
|
-
class Change
|
|
17
|
+
class Change < ApiModelBase
|
|
18
18
|
# The number associated with the change.
|
|
19
19
|
attr_accessor :change_number
|
|
20
20
|
|
|
@@ -32,9 +32,14 @@ module OpenApiAzureIpRangesClient
|
|
|
32
32
|
}
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# Returns attribute mapping this model knows about
|
|
36
|
+
def self.acceptable_attribute_map
|
|
37
|
+
attribute_map
|
|
38
|
+
end
|
|
39
|
+
|
|
35
40
|
# Returns all the JSON keys this model knows about
|
|
36
41
|
def self.acceptable_attributes
|
|
37
|
-
|
|
42
|
+
acceptable_attribute_map.values
|
|
38
43
|
end
|
|
39
44
|
|
|
40
45
|
# Attribute type mapping.
|
|
@@ -60,9 +65,10 @@ module OpenApiAzureIpRangesClient
|
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
-
if (!
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiAzureIpRangesClient::Change`. Please check the name to make sure it's valid. List of attributes: " +
|
|
70
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiAzureIpRangesClient::Change`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
72
|
end
|
|
67
73
|
h[k.to_sym] = v
|
|
68
74
|
}
|
|
@@ -142,61 +148,6 @@ module OpenApiAzureIpRangesClient
|
|
|
142
148
|
new(transformed_hash)
|
|
143
149
|
end
|
|
144
150
|
|
|
145
|
-
# Deserializes the data based on type
|
|
146
|
-
# @param string type Data type
|
|
147
|
-
# @param string value Value to be deserialized
|
|
148
|
-
# @return [Object] Deserialized data
|
|
149
|
-
def self._deserialize(type, value)
|
|
150
|
-
case type.to_sym
|
|
151
|
-
when :Time
|
|
152
|
-
Time.parse(value)
|
|
153
|
-
when :Date
|
|
154
|
-
Date.parse(value)
|
|
155
|
-
when :String
|
|
156
|
-
value.to_s
|
|
157
|
-
when :Integer
|
|
158
|
-
value.to_i
|
|
159
|
-
when :Float
|
|
160
|
-
value.to_f
|
|
161
|
-
when :Boolean
|
|
162
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
163
|
-
true
|
|
164
|
-
else
|
|
165
|
-
false
|
|
166
|
-
end
|
|
167
|
-
when :Object
|
|
168
|
-
# generic object (usually a Hash), return directly
|
|
169
|
-
value
|
|
170
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
171
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
172
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
173
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
174
|
-
k_type = Regexp.last_match[:k_type]
|
|
175
|
-
v_type = Regexp.last_match[:v_type]
|
|
176
|
-
{}.tap do |hash|
|
|
177
|
-
value.each do |k, v|
|
|
178
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
179
|
-
end
|
|
180
|
-
end
|
|
181
|
-
else # model
|
|
182
|
-
# models (e.g. Pet) or oneOf
|
|
183
|
-
klass = OpenApiAzureIpRangesClient.const_get(type)
|
|
184
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
185
|
-
end
|
|
186
|
-
end
|
|
187
|
-
|
|
188
|
-
# Returns the string representation of the object
|
|
189
|
-
# @return [String] String presentation of the object
|
|
190
|
-
def to_s
|
|
191
|
-
to_hash.to_s
|
|
192
|
-
end
|
|
193
|
-
|
|
194
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
195
|
-
# @return [Hash] Returns the object in the form of hash
|
|
196
|
-
def to_body
|
|
197
|
-
to_hash
|
|
198
|
-
end
|
|
199
|
-
|
|
200
151
|
# Returns the object in the form of hash
|
|
201
152
|
# @return [Hash] Returns the object in the form of hash
|
|
202
153
|
def to_hash
|
|
@@ -213,24 +164,6 @@ module OpenApiAzureIpRangesClient
|
|
|
213
164
|
hash
|
|
214
165
|
end
|
|
215
166
|
|
|
216
|
-
# Outputs non-array value in the form of hash
|
|
217
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
218
|
-
# @param [Object] value Any valid value
|
|
219
|
-
# @return [Hash] Returns the value in the form of hash
|
|
220
|
-
def _to_hash(value)
|
|
221
|
-
if value.is_a?(Array)
|
|
222
|
-
value.compact.map { |v| _to_hash(v) }
|
|
223
|
-
elsif value.is_a?(Hash)
|
|
224
|
-
{}.tap do |hash|
|
|
225
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
226
|
-
end
|
|
227
|
-
elsif value.respond_to? :to_hash
|
|
228
|
-
value.to_hash
|
|
229
|
-
else
|
|
230
|
-
value
|
|
231
|
-
end
|
|
232
|
-
end
|
|
233
|
-
|
|
234
167
|
end
|
|
235
168
|
|
|
236
169
|
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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OpenApiAzureIpRangesClient
|
|
17
|
-
class Value
|
|
17
|
+
class Value < ApiModelBase
|
|
18
18
|
# The name of the value.
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
@@ -32,9 +32,14 @@ module OpenApiAzureIpRangesClient
|
|
|
32
32
|
}
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# Returns attribute mapping this model knows about
|
|
36
|
+
def self.acceptable_attribute_map
|
|
37
|
+
attribute_map
|
|
38
|
+
end
|
|
39
|
+
|
|
35
40
|
# Returns all the JSON keys this model knows about
|
|
36
41
|
def self.acceptable_attributes
|
|
37
|
-
|
|
42
|
+
acceptable_attribute_map.values
|
|
38
43
|
end
|
|
39
44
|
|
|
40
45
|
# Attribute type mapping.
|
|
@@ -60,9 +65,10 @@ module OpenApiAzureIpRangesClient
|
|
|
60
65
|
end
|
|
61
66
|
|
|
62
67
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
68
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
63
69
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
64
|
-
if (!
|
|
65
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiAzureIpRangesClient::Value`. Please check the name to make sure it's valid. List of attributes: " +
|
|
70
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiAzureIpRangesClient::Value`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
66
72
|
end
|
|
67
73
|
h[k.to_sym] = v
|
|
68
74
|
}
|
|
@@ -140,61 +146,6 @@ module OpenApiAzureIpRangesClient
|
|
|
140
146
|
new(transformed_hash)
|
|
141
147
|
end
|
|
142
148
|
|
|
143
|
-
# Deserializes the data based on type
|
|
144
|
-
# @param string type Data type
|
|
145
|
-
# @param string value Value to be deserialized
|
|
146
|
-
# @return [Object] Deserialized data
|
|
147
|
-
def self._deserialize(type, value)
|
|
148
|
-
case type.to_sym
|
|
149
|
-
when :Time
|
|
150
|
-
Time.parse(value)
|
|
151
|
-
when :Date
|
|
152
|
-
Date.parse(value)
|
|
153
|
-
when :String
|
|
154
|
-
value.to_s
|
|
155
|
-
when :Integer
|
|
156
|
-
value.to_i
|
|
157
|
-
when :Float
|
|
158
|
-
value.to_f
|
|
159
|
-
when :Boolean
|
|
160
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
161
|
-
true
|
|
162
|
-
else
|
|
163
|
-
false
|
|
164
|
-
end
|
|
165
|
-
when :Object
|
|
166
|
-
# generic object (usually a Hash), return directly
|
|
167
|
-
value
|
|
168
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
169
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
170
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
171
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
172
|
-
k_type = Regexp.last_match[:k_type]
|
|
173
|
-
v_type = Regexp.last_match[:v_type]
|
|
174
|
-
{}.tap do |hash|
|
|
175
|
-
value.each do |k, v|
|
|
176
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
177
|
-
end
|
|
178
|
-
end
|
|
179
|
-
else # model
|
|
180
|
-
# models (e.g. Pet) or oneOf
|
|
181
|
-
klass = OpenApiAzureIpRangesClient.const_get(type)
|
|
182
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
|
|
186
|
-
# Returns the string representation of the object
|
|
187
|
-
# @return [String] String presentation of the object
|
|
188
|
-
def to_s
|
|
189
|
-
to_hash.to_s
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
193
|
-
# @return [Hash] Returns the object in the form of hash
|
|
194
|
-
def to_body
|
|
195
|
-
to_hash
|
|
196
|
-
end
|
|
197
|
-
|
|
198
149
|
# Returns the object in the form of hash
|
|
199
150
|
# @return [Hash] Returns the object in the form of hash
|
|
200
151
|
def to_hash
|
|
@@ -211,24 +162,6 @@ module OpenApiAzureIpRangesClient
|
|
|
211
162
|
hash
|
|
212
163
|
end
|
|
213
164
|
|
|
214
|
-
# Outputs non-array value in the form of hash
|
|
215
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
216
|
-
# @param [Object] value Any valid value
|
|
217
|
-
# @return [Hash] Returns the value in the form of hash
|
|
218
|
-
def _to_hash(value)
|
|
219
|
-
if value.is_a?(Array)
|
|
220
|
-
value.compact.map { |v| _to_hash(v) }
|
|
221
|
-
elsif value.is_a?(Hash)
|
|
222
|
-
{}.tap do |hash|
|
|
223
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
224
|
-
end
|
|
225
|
-
elsif value.respond_to? :to_hash
|
|
226
|
-
value.to_hash
|
|
227
|
-
else
|
|
228
|
-
value
|
|
229
|
-
end
|
|
230
|
-
end
|
|
231
|
-
|
|
232
165
|
end
|
|
233
166
|
|
|
234
167
|
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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module OpenApiAzureIpRangesClient
|
|
17
|
-
class ValueProperties
|
|
17
|
+
class ValueProperties < ApiModelBase
|
|
18
18
|
# The number associated with the change.
|
|
19
19
|
attr_accessor :change_number
|
|
20
20
|
|
|
@@ -49,9 +49,14 @@ module OpenApiAzureIpRangesClient
|
|
|
49
49
|
}
|
|
50
50
|
end
|
|
51
51
|
|
|
52
|
+
# Returns attribute mapping this model knows about
|
|
53
|
+
def self.acceptable_attribute_map
|
|
54
|
+
attribute_map
|
|
55
|
+
end
|
|
56
|
+
|
|
52
57
|
# Returns all the JSON keys this model knows about
|
|
53
58
|
def self.acceptable_attributes
|
|
54
|
-
|
|
59
|
+
acceptable_attribute_map.values
|
|
55
60
|
end
|
|
56
61
|
|
|
57
62
|
# Attribute type mapping.
|
|
@@ -81,9 +86,10 @@ module OpenApiAzureIpRangesClient
|
|
|
81
86
|
end
|
|
82
87
|
|
|
83
88
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
84
90
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
85
|
-
if (!
|
|
86
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiAzureIpRangesClient::ValueProperties`. Please check the name to make sure it's valid. List of attributes: " +
|
|
91
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
92
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `OpenApiAzureIpRangesClient::ValueProperties`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
87
93
|
end
|
|
88
94
|
h[k.to_sym] = v
|
|
89
95
|
}
|
|
@@ -185,61 +191,6 @@ module OpenApiAzureIpRangesClient
|
|
|
185
191
|
new(transformed_hash)
|
|
186
192
|
end
|
|
187
193
|
|
|
188
|
-
# Deserializes the data based on type
|
|
189
|
-
# @param string type Data type
|
|
190
|
-
# @param string value Value to be deserialized
|
|
191
|
-
# @return [Object] Deserialized data
|
|
192
|
-
def self._deserialize(type, value)
|
|
193
|
-
case type.to_sym
|
|
194
|
-
when :Time
|
|
195
|
-
Time.parse(value)
|
|
196
|
-
when :Date
|
|
197
|
-
Date.parse(value)
|
|
198
|
-
when :String
|
|
199
|
-
value.to_s
|
|
200
|
-
when :Integer
|
|
201
|
-
value.to_i
|
|
202
|
-
when :Float
|
|
203
|
-
value.to_f
|
|
204
|
-
when :Boolean
|
|
205
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
206
|
-
true
|
|
207
|
-
else
|
|
208
|
-
false
|
|
209
|
-
end
|
|
210
|
-
when :Object
|
|
211
|
-
# generic object (usually a Hash), return directly
|
|
212
|
-
value
|
|
213
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
214
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
215
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
216
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
217
|
-
k_type = Regexp.last_match[:k_type]
|
|
218
|
-
v_type = Regexp.last_match[:v_type]
|
|
219
|
-
{}.tap do |hash|
|
|
220
|
-
value.each do |k, v|
|
|
221
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
222
|
-
end
|
|
223
|
-
end
|
|
224
|
-
else # model
|
|
225
|
-
# models (e.g. Pet) or oneOf
|
|
226
|
-
klass = OpenApiAzureIpRangesClient.const_get(type)
|
|
227
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
228
|
-
end
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
# Returns the string representation of the object
|
|
232
|
-
# @return [String] String presentation of the object
|
|
233
|
-
def to_s
|
|
234
|
-
to_hash.to_s
|
|
235
|
-
end
|
|
236
|
-
|
|
237
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
238
|
-
# @return [Hash] Returns the object in the form of hash
|
|
239
|
-
def to_body
|
|
240
|
-
to_hash
|
|
241
|
-
end
|
|
242
|
-
|
|
243
194
|
# Returns the object in the form of hash
|
|
244
195
|
# @return [Hash] Returns the object in the form of hash
|
|
245
196
|
def to_hash
|
|
@@ -256,24 +207,6 @@ module OpenApiAzureIpRangesClient
|
|
|
256
207
|
hash
|
|
257
208
|
end
|
|
258
209
|
|
|
259
|
-
# Outputs non-array value in the form of hash
|
|
260
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
261
|
-
# @param [Object] value Any valid value
|
|
262
|
-
# @return [Hash] Returns the value in the form of hash
|
|
263
|
-
def _to_hash(value)
|
|
264
|
-
if value.is_a?(Array)
|
|
265
|
-
value.compact.map { |v| _to_hash(v) }
|
|
266
|
-
elsif value.is_a?(Hash)
|
|
267
|
-
{}.tap do |hash|
|
|
268
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
269
|
-
end
|
|
270
|
-
elsif value.respond_to? :to_hash
|
|
271
|
-
value.to_hash
|
|
272
|
-
else
|
|
273
|
-
value
|
|
274
|
-
end
|
|
275
|
-
end
|
|
276
|
-
|
|
277
210
|
end
|
|
278
211
|
|
|
279
212
|
end
|
|
@@ -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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module OpenApiAzureIpRangesClient
|
|
14
|
-
VERSION = '0.
|
|
14
|
+
VERSION = '1.0.0'
|
|
15
15
|
end
|
|
@@ -3,16 +3,17 @@
|
|
|
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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
# Common files
|
|
14
14
|
require 'openapi_azureipranges/api_client'
|
|
15
15
|
require 'openapi_azureipranges/api_error'
|
|
16
|
+
require 'openapi_azureipranges/api_model_base'
|
|
16
17
|
require 'openapi_azureipranges/version'
|
|
17
18
|
require 'openapi_azureipranges/configuration'
|
|
18
19
|
|
|
@@ -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: 0.
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
9
|
Contact: blah+oapicf@cliffano.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
|
-
Generator version: 7.
|
|
11
|
+
Generator version: 7.18.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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe OpenApiAzureIpRangesClient::Change do
|
|
21
|
-
let(:instance) { OpenApiAzureIpRangesClient::Change.new }
|
|
21
|
+
#let(:instance) { OpenApiAzureIpRangesClient::Change.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Change' do
|
|
24
24
|
it 'should create an instance of Change' do
|
|
@@ -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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe OpenApiAzureIpRangesClient::ValueProperties do
|
|
21
|
-
let(:instance) { OpenApiAzureIpRangesClient::ValueProperties.new }
|
|
21
|
+
#let(:instance) { OpenApiAzureIpRangesClient::ValueProperties.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of ValueProperties' do
|
|
24
24
|
it 'should create an instance of ValueProperties' do
|
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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ require 'date'
|
|
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
19
19
|
# Please update as you see appropriate
|
|
20
20
|
describe OpenApiAzureIpRangesClient::Value do
|
|
21
|
-
let(:instance) { OpenApiAzureIpRangesClient::Value.new }
|
|
21
|
+
#let(:instance) { OpenApiAzureIpRangesClient::Value.new }
|
|
22
22
|
|
|
23
23
|
describe 'test an instance of Value' do
|
|
24
24
|
it 'should create an instance of Value' do
|
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: 0.
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: blah+oapicf@cliffano.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.18.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|