pnap_network_storage_api 1.0.0 → 1.0.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: 1dbf60ff5d211a65d2bf9a7fde2c7f425653919524fd8f6b2c5b5279c0716e53
4
- data.tar.gz: 60133f7d3deb4919e0a81f81520fdc2d69875a716786ecc762d3a8677fe62179
3
+ metadata.gz: 8f0449183e648db3081fc7c5f624565ec5bba72e17bc4f51f2c29bc700ae6f1f
4
+ data.tar.gz: 585150d1732fed839dc3a2acce947cac54ad080e775eb03877885d244562d3e1
5
5
  SHA512:
6
- metadata.gz: d83a67049fa097656a2577744a0a26c01d469a5b762766c3eaa5dd66748b061fbf3b10c6fbfa372700e38a7e8ce242bf8c1bbfb15b99c3601e4a520b53d9a137
7
- data.tar.gz: 1f84c9b0a8e4c70643066743d6bd469d0439b750eacb5c44b59ef432c28ed8a1c318b6813804ef3533ff9d7ea9a8efba738fe0a333462d95af4e8ee9098f1630
6
+ metadata.gz: 2956fa632df5263b1e0f360807b78fcc7fdd20673c238e1a96062312f6ceffe2445cc154803c09599e02eda46b743188eeb31d1ed91c2ba1301e0bcdd273a150
7
+ data.tar.gz: 4d4e3e2fabe648317c2eb3fae49baa35d9590b0cda800c9e1be55695439a6c9d84a9f1ed5605afc777f3b2860258698c90c28e6fadc185fd18e43ac3798ed2a8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.0.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
 
@@ -95,6 +95,7 @@ module NetworkStorageApi
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 NetworkStorageApi
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 NetworkStorageApi
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 NetworkStorageApi
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 NetworkStorageApi
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
 
@@ -159,6 +159,7 @@ module NetworkStorageApi
159
159
  # @return [Object] Returns the model itself
160
160
  def build_from_hash(attributes)
161
161
  return nil unless attributes.is_a?(Hash)
162
+ attributes = attributes.transform_keys(&:to_sym)
162
163
  self.class.openapi_types.each_pair do |key, type|
163
164
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
164
165
  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
 
@@ -108,6 +108,7 @@ module NetworkStorageApi
108
108
  # @return [Object] Returns the model itself
109
109
  def build_from_hash(attributes)
110
110
  return nil unless attributes.is_a?(Hash)
111
+ attributes = attributes.transform_keys(&:to_sym)
111
112
  self.class.openapi_types.each_pair do |key, type|
112
113
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
113
114
  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
 
@@ -192,6 +192,7 @@ module NetworkStorageApi
192
192
  # @return [Object] Returns the model itself
193
193
  def build_from_hash(attributes)
194
194
  return nil unless attributes.is_a?(Hash)
195
+ attributes = attributes.transform_keys(&:to_sym)
195
196
  self.class.openapi_types.each_pair do |key, type|
196
197
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
197
198
  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
 
@@ -227,6 +227,7 @@ module NetworkStorageApi
227
227
  # @return [Object] Returns the model itself
228
228
  def build_from_hash(attributes)
229
229
  return nil unless attributes.is_a?(Hash)
230
+ attributes = attributes.transform_keys(&:to_sym)
230
231
  self.class.openapi_types.each_pair do |key, type|
231
232
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
232
233
  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 NetworkStorageApi
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
 
@@ -196,6 +196,7 @@ module NetworkStorageApi
196
196
  # @return [Object] Returns the model itself
197
197
  def build_from_hash(attributes)
198
198
  return nil unless attributes.is_a?(Hash)
199
+ attributes = attributes.transform_keys(&:to_sym)
199
200
  self.class.openapi_types.each_pair do |key, type|
200
201
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
201
202
  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
 
@@ -246,6 +246,7 @@ module NetworkStorageApi
246
246
  # @return [Object] Returns the model itself
247
247
  def build_from_hash(attributes)
248
248
  return nil unless attributes.is_a?(Hash)
249
+ attributes = attributes.transform_keys(&:to_sym)
249
250
  self.class.openapi_types.each_pair do |key, type|
250
251
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
251
252
  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_storage_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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