pnap_tag_api 1.0.0 → 1.0.2
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/VERSION +1 -1
- data/lib/pnap_tag_api/api/tags_api.rb +1 -1
- data/lib/pnap_tag_api/api_client.rb +4 -2
- data/lib/pnap_tag_api/api_error.rb +1 -1
- data/lib/pnap_tag_api/configuration.rb +3 -2
- data/lib/pnap_tag_api/models/delete_result.rb +2 -1
- data/lib/pnap_tag_api/models/error.rb +2 -1
- data/lib/pnap_tag_api/models/resource_assignment.rb +2 -1
- data/lib/pnap_tag_api/models/tag.rb +2 -1
- data/lib/pnap_tag_api/models/tag_create.rb +2 -1
- data/lib/pnap_tag_api/models/tag_update.rb +2 -1
- data/lib/pnap_tag_api/version.rb +1 -1
- data/lib/pnap_tag_api.rb +1 -1
- data/pnap_tag_api.gemspec +2 -2
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62515981401552054a25abbda774728907405c23bbe9523094ad518095d06aa8
|
4
|
+
data.tar.gz: 9b8d3f828e717d10ab061e660463f0ebea73e1d1d345ef14f1dcc6f150fbea2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09e57c677228328e17f43c219fca65b2f42da45e8c2125e2f4a22a13bb6d43150b34cf06b04e7f0e8b348246838f3cc04a4b1e564f9ab71cc63795382e7c4897'
|
7
|
+
data.tar.gz: '08878ee2bb4cebd2582a7db42c6675c16ba09ca995501495d01942bbf8a7f3f67d5fd9a5c4fc5f7c73e8fbe5b9ce88d026a4314bdfb899cf90dadba7be3c0acc'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
@@ -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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -95,6 +95,7 @@ module TagApi
|
|
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 TagApi
|
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -133,6 +133,7 @@ module TagApi
|
|
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 TagApi
|
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -129,6 +129,7 @@ module TagApi
|
|
129
129
|
# @return [Object] Returns the model itself
|
130
130
|
def build_from_hash(attributes)
|
131
131
|
return nil unless attributes.is_a?(Hash)
|
132
|
+
attributes = attributes.transform_keys(&:to_sym)
|
132
133
|
self.class.openapi_types.each_pair do |key, type|
|
133
134
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
134
135
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -125,6 +125,7 @@ module TagApi
|
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -124,6 +124,7 @@ module TagApi
|
|
124
124
|
# @return [Object] Returns the model itself
|
125
125
|
def build_from_hash(attributes)
|
126
126
|
return nil unless attributes.is_a?(Hash)
|
127
|
+
attributes = attributes.transform_keys(&:to_sym)
|
127
128
|
self.class.openapi_types.each_pair do |key, type|
|
128
129
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
129
130
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -224,6 +224,7 @@ module TagApi
|
|
224
224
|
# @return [Object] Returns the model itself
|
225
225
|
def build_from_hash(attributes)
|
226
226
|
return nil unless attributes.is_a?(Hash)
|
227
|
+
attributes = attributes.transform_keys(&:to_sym)
|
227
228
|
self.class.openapi_types.each_pair do |key, type|
|
228
229
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
229
230
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -139,6 +139,7 @@ module TagApi
|
|
139
139
|
# @return [Object] Returns the model itself
|
140
140
|
def build_from_hash(attributes)
|
141
141
|
return nil unless attributes.is_a?(Hash)
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
142
143
|
self.class.openapi_types.each_pair do |key, type|
|
143
144
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
144
145
|
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:
|
9
|
+
OpenAPI Generator version: 6.1.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -139,6 +139,7 @@ module TagApi
|
|
139
139
|
# @return [Object] Returns the model itself
|
140
140
|
def build_from_hash(attributes)
|
141
141
|
return nil unless attributes.is_a?(Hash)
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
142
143
|
self.class.openapi_types.each_pair do |key, type|
|
143
144
|
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
144
145
|
self.send("#{key}=", nil)
|
data/lib/pnap_tag_api/version.rb
CHANGED
data/lib/pnap_tag_api.rb
CHANGED
data/pnap_tag_api.gemspec
CHANGED
@@ -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:
|
11
|
+
OpenAPI Generator version: 6.1.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.description = "Tags API Ruby Gem"
|
27
27
|
s.license = "MPL-2.0"
|
28
28
|
s.required_ruby_version = ">= 2.4"
|
29
|
-
s.metadata = { "source_code_uri" => "https://github.com/phoenixnap/ruby-sdk-bmc
|
29
|
+
s.metadata = { "source_code_uri" => "https://github.com/phoenixnap/ruby-sdk-bmc" }
|
30
30
|
|
31
31
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
32
32
|
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pnap_tag_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PhoenixNAP
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -95,7 +95,7 @@ homepage: https://phoenixnap.com/bare-metal-cloud
|
|
95
95
|
licenses:
|
96
96
|
- MPL-2.0
|
97
97
|
metadata:
|
98
|
-
source_code_uri: https://github.com/phoenixnap/ruby-sdk-bmc
|
98
|
+
source_code_uri: https://github.com/phoenixnap/ruby-sdk-bmc
|
99
99
|
post_install_message:
|
100
100
|
rdoc_options: []
|
101
101
|
require_paths:
|
@@ -119,10 +119,10 @@ test_files:
|
|
119
119
|
- spec/api/tags_api_spec.rb
|
120
120
|
- spec/api_client_spec.rb
|
121
121
|
- spec/configuration_spec.rb
|
122
|
-
- spec/models/tag_update_spec.rb
|
123
|
-
- spec/models/tag_create_spec.rb
|
124
|
-
- spec/models/error_spec.rb
|
125
|
-
- spec/models/delete_result_spec.rb
|
126
122
|
- spec/models/resource_assignment_spec.rb
|
127
123
|
- spec/models/tag_spec.rb
|
124
|
+
- spec/models/error_spec.rb
|
125
|
+
- spec/models/delete_result_spec.rb
|
126
|
+
- spec/models/tag_update_spec.rb
|
127
|
+
- spec/models/tag_create_spec.rb
|
128
128
|
- spec/spec_helper.rb
|