pnap_network_api 1.1.0 → 1.1.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: fed5342265483dbe49bda94d48dda2c5cba9409082b8f68404667c15dbcef88d
4
- data.tar.gz: 110ec3b7beeea62c621943c3019886757ecdb22c1fdfe22fc799c26d44eec604
3
+ metadata.gz: c06c353b308f28f82070f0cf8ad710908265e3e34ce32d4f97e4a73d49d0092e
4
+ data.tar.gz: 6232a6388512978c71a5adb5c65f1ff8af1c1978258b41f3db594674f3e3a08c
5
5
  SHA512:
6
- metadata.gz: 70d9dfcb1c734266da2fbdd981781228c2729a04eeac7d4604451c19a6c2e3d007804867944cfa614fb2c406f62fd3c75dbb7ad0fbdc11e2cef3b4ffa27684c4
7
- data.tar.gz: 40257eb3c0b9294c92f3d162db4600d3f6953a11001b8e56eb118df70137eb0e8a7032ac45d7c8a2f19b4be4aa9432ad247a028323018a219806fdf7a0f46cb4
6
+ metadata.gz: a9e7667be380283d21f7aa923f43c70e7f1b17cc40847193fa98fcd206ebd2ac63abcc7a8955b1546073e6dd76575881ef9c09744f65f4c43f721bfbf77a4cef
7
+ data.tar.gz: 38f14f5ad05197c064788f9d628f8028cb7785e6e4544ad964b24fb8bf7d0b2e4d03f6c0677fdabe5372a1831e52d40f1453d3cf83a9dcd1e25a86a3c94360d4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -95,6 +95,7 @@ module NetworkApi
95
95
  header_params = @default_headers.merge(opts[:header_params] || {})
96
96
  query_params = opts[:query_params] || {}
97
97
  form_params = opts[:form_params] || {}
98
+ follow_location = opts[:follow_location] || true
98
99
 
99
100
  update_params_for_auth! header_params, query_params, opts[:auth_names]
100
101
 
@@ -111,7 +112,8 @@ module NetworkApi
111
112
  :ssl_verifyhost => _verify_ssl_host,
112
113
  :sslcert => @config.cert_file,
113
114
  :sslkey => @config.key_file,
114
- :verbose => @config.debugging
115
+ :verbose => @config.debugging,
116
+ :followlocation => follow_location
115
117
  }
116
118
 
117
119
  # set custom cert, if provided
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -133,6 +133,7 @@ module NetworkApi
133
133
  # https://github.com/typhoeus/ethon/blob/master/lib/ethon/easy/queryable.rb#L96
134
134
  attr_accessor :params_encoding
135
135
 
136
+
136
137
  attr_accessor :inject_format
137
138
 
138
139
  attr_accessor :force_ending_format
@@ -150,10 +151,10 @@ module NetworkApi
150
151
  @client_side_validation = true
151
152
  @verify_ssl = true
152
153
  @verify_ssl_host = true
153
- @params_encoding = nil
154
154
  @cert_file = nil
155
155
  @key_file = nil
156
156
  @timeout = 0
157
+ @params_encoding = nil
157
158
  @debugging = false
158
159
  @inject_format = false
159
160
  @force_ending_format = false
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -125,6 +125,7 @@ module NetworkApi
125
125
  # @return [Object] Returns the model itself
126
126
  def build_from_hash(attributes)
127
127
  return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
128
129
  self.class.openapi_types.each_pair do |key, type|
129
130
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
130
131
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -146,6 +146,7 @@ module NetworkApi
146
146
  # @return [Object] Returns the model itself
147
147
  def build_from_hash(attributes)
148
148
  return nil unless attributes.is_a?(Hash)
149
+ attributes = attributes.transform_keys(&:to_sym)
149
150
  self.class.openapi_types.each_pair do |key, type|
150
151
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
151
152
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -320,6 +320,7 @@ module NetworkApi
320
320
  # @return [Object] Returns the model itself
321
321
  def build_from_hash(attributes)
322
322
  return nil unless attributes.is_a?(Hash)
323
+ attributes = attributes.transform_keys(&:to_sym)
323
324
  self.class.openapi_types.each_pair do |key, type|
324
325
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
325
326
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -209,6 +209,7 @@ module NetworkApi
209
209
  # @return [Object] Returns the model itself
210
210
  def build_from_hash(attributes)
211
211
  return nil unless attributes.is_a?(Hash)
212
+ attributes = attributes.transform_keys(&:to_sym)
212
213
  self.class.openapi_types.each_pair do |key, type|
213
214
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
214
215
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -182,6 +182,7 @@ module NetworkApi
182
182
  # @return [Object] Returns the model itself
183
183
  def build_from_hash(attributes)
184
184
  return nil unless attributes.is_a?(Hash)
185
+ attributes = attributes.transform_keys(&:to_sym)
185
186
  self.class.openapi_types.each_pair do |key, type|
186
187
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
187
188
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -131,6 +131,7 @@ module NetworkApi
131
131
  # @return [Object] Returns the model itself
132
132
  def build_from_hash(attributes)
133
133
  return nil unless attributes.is_a?(Hash)
134
+ attributes = attributes.transform_keys(&:to_sym)
134
135
  self.class.openapi_types.each_pair do |key, type|
135
136
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
136
137
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -276,6 +276,7 @@ module NetworkApi
276
276
  # @return [Object] Returns the model itself
277
277
  def build_from_hash(attributes)
278
278
  return nil unless attributes.is_a?(Hash)
279
+ attributes = attributes.transform_keys(&:to_sym)
279
280
  self.class.openapi_types.each_pair do |key, type|
280
281
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
281
282
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -209,6 +209,7 @@ module NetworkApi
209
209
  # @return [Object] Returns the model itself
210
210
  def build_from_hash(attributes)
211
211
  return nil unless attributes.is_a?(Hash)
212
+ attributes = attributes.transform_keys(&:to_sym)
212
213
  self.class.openapi_types.each_pair do |key, type|
213
214
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
214
215
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -114,6 +114,7 @@ module NetworkApi
114
114
  # @return [Object] Returns the model itself
115
115
  def build_from_hash(attributes)
116
116
  return nil unless attributes.is_a?(Hash)
117
+ attributes = attributes.transform_keys(&:to_sym)
117
118
  self.class.openapi_types.each_pair do |key, type|
118
119
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
119
120
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -158,6 +158,7 @@ module NetworkApi
158
158
  # @return [Object] Returns the model itself
159
159
  def build_from_hash(attributes)
160
160
  return nil unless attributes.is_a?(Hash)
161
+ attributes = attributes.transform_keys(&:to_sym)
161
162
  self.class.openapi_types.each_pair do |key, type|
162
163
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
163
164
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 1.0
9
9
  Contact: support@phoenixnap.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.4.0
11
+ OpenAPI Generator version: 6.1.0
12
12
 
13
13
  =end
14
14
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
data/spec/spec_helper.rb CHANGED
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@phoenixnap.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.4.0
9
+ OpenAPI Generator version: 6.1.0
10
10
 
11
11
  =end
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pnap_network_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PhoenixNAP
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-27 00:00:00.000000000 Z
11
+ date: 2022-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus