vgs_api_client 0.0.27 → 0.0.28

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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/git_push.sh +3 -4
  4. data/lib/vgs_api_client/api/aliases_api.rb +9 -3
  5. data/lib/vgs_api_client/api_client.rb +11 -5
  6. data/lib/vgs_api_client/api_error.rb +1 -1
  7. data/lib/vgs_api_client/configuration.rb +3 -2
  8. data/lib/vgs_api_client/models/alias_format.rb +1 -1
  9. data/lib/vgs_api_client/models/api_error.rb +2 -1
  10. data/lib/vgs_api_client/models/create_aliases_request.rb +30 -1
  11. data/lib/vgs_api_client/models/create_aliases_request_existing.rb +2 -1
  12. data/lib/vgs_api_client/models/create_aliases_request_new.rb +2 -1
  13. data/lib/vgs_api_client/models/inline_response200.rb +2 -1
  14. data/lib/vgs_api_client/models/inline_response2001.rb +26 -1
  15. data/lib/vgs_api_client/models/inline_response201.rb +2 -1
  16. data/lib/vgs_api_client/models/inline_response_default.rb +17 -1
  17. data/lib/vgs_api_client/models/model_alias.rb +2 -1
  18. data/lib/vgs_api_client/models/revealed_data.rb +2 -1
  19. data/lib/vgs_api_client/models/update_alias_request.rb +2 -1
  20. data/lib/vgs_api_client/models/update_alias_request_data.rb +2 -1
  21. data/lib/vgs_api_client/version.rb +2 -2
  22. data/lib/vgs_api_client.rb +1 -1
  23. data/publish/Dockerfile +1 -1
  24. data/publish/build_and_publish.sh +2 -2
  25. data/spec/api/aliases_api_spec.rb +1 -1
  26. data/spec/api_client_spec.rb +3 -3
  27. data/spec/configuration_spec.rb +1 -1
  28. data/spec/models/alias_format_spec.rb +1 -1
  29. data/spec/models/api_error_spec.rb +1 -1
  30. data/spec/models/create_aliases_request_existing_spec.rb +1 -1
  31. data/spec/models/create_aliases_request_new_spec.rb +1 -1
  32. data/spec/models/create_aliases_request_spec.rb +1 -1
  33. data/spec/models/inline_response2001_spec.rb +1 -1
  34. data/spec/models/inline_response200_spec.rb +1 -1
  35. data/spec/models/inline_response201_spec.rb +1 -1
  36. data/spec/models/inline_response_default_spec.rb +1 -1
  37. data/spec/models/model_alias_spec.rb +1 -1
  38. data/spec/models/revealed_data_spec.rb +1 -1
  39. data/spec/models/update_alias_request_data_spec.rb +1 -1
  40. data/spec/models/update_alias_request_spec.rb +1 -1
  41. data/spec/spec_helper.rb +1 -1
  42. data/test/Dockerfile +1 -1
  43. data/vgs_api_client.gemspec +1 -1
  44. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a202336f7bf8ac294f42b228fa252932052b7eaca6a2a376206e98eaf94b3053
4
- data.tar.gz: ebbf5246ade60ef57cc938f5fba3ff8a9bc0de487644373be57c7d749c70847e
3
+ metadata.gz: d4cc643c2a6627e98519bafa8c54aa3079cb46d3be6615f2f5f0abee17a767e5
4
+ data.tar.gz: f54dd8caedcbe385fe03266f5156051463c4a7477c580c5203c0e4f61a65048c
5
5
  SHA512:
6
- metadata.gz: 3e0795189737b8213e67e8a71539a06ec88e271a214605b55ed1795d25cce5a2c44a6a8943c86ce274f0c1cb779a784cc18734b1fee1978ed1f9fa5e8f13d65d
7
- data.tar.gz: a499c1c304d6682a81a7970d0acbfc18183fe2e37fb8967d93457a9638e748cd8e67bd8eefaae915703c1e11a841253a7b21e957b3f1151a5c782340d4e14f07
6
+ metadata.gz: 5f8dae11a929faed2efc975f48c91f602c8e82616cd4abad80e0f8c4a59f6c3f4bd3a2e3e0df398f77910c8ecc326f9a6adc46d50845891036cfa7e27b77b06a
7
+ data.tar.gz: a112952314dda45f187f66df997e50c0d8f65b50552e2b36f6ab23124ac521a65b1068b440ab46162e65f20086a60aed39ed8f7be33923842d67c040dbcbe130
data/README.md CHANGED
@@ -127,7 +127,7 @@ following response:
127
127
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
128
128
 
129
129
  - API version: 1.0.0
130
- - Package version: 0.0.27
130
+ - Package version: 0.0.28
131
131
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
132
132
 
133
133
  ## Installation
@@ -143,16 +143,16 @@ gem build vgs_api_client.gemspec
143
143
  Then either install the gem locally:
144
144
 
145
145
  ```shell
146
- gem install ./vgs_api_client-0.0.27.gem
146
+ gem install ./vgs_api_client-0.0.28.gem
147
147
  ```
148
148
 
149
- (for development, run `gem install --dev ./vgs_api_client-0.0.27.gem` to install the development dependencies)
149
+ (for development, run `gem install --dev ./vgs_api_client-0.0.28.gem` to install the development dependencies)
150
150
 
151
151
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
152
152
 
153
153
  Finally add this to the Gemfile:
154
154
 
155
- gem 'vgs_api_client', '~> 0.0.27'
155
+ gem 'vgs_api_client', '~> 0.0.28'
156
156
 
157
157
  ### Install from Git
158
158
 
data/git_push.sh CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
3
  #
4
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
5
 
6
6
  git_user_id=$1
7
7
  git_repo_id=$2
@@ -38,14 +38,14 @@ git add .
38
38
  git commit -m "$release_note"
39
39
 
40
40
  # Sets the new remote
41
- git_remote=`git remote`
41
+ git_remote=$(git remote)
42
42
  if [ "$git_remote" = "" ]; then # git remote not defined
43
43
 
44
44
  if [ "$GIT_TOKEN" = "" ]; then
45
45
  echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
46
  git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
47
  else
48
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
48
+ git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git
49
49
  fi
50
50
 
51
51
  fi
@@ -55,4 +55,3 @@ git pull origin master
55
55
  # Pushes (Forces) the changes in the local repository up to the remote repository
56
56
  echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
57
  git push origin master 2>&1 | grep -v 'To https'
58
-
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -49,7 +49,10 @@ module VgsApiClient
49
49
  # HTTP header 'Accept' (if needed)
50
50
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
51
51
  # HTTP header 'Content-Type'
52
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
52
+ content_type = @api_client.select_header_content_type(['application/json'])
53
+ if !content_type.nil?
54
+ header_params['Content-Type'] = content_type
55
+ end
53
56
 
54
57
  # form parameters
55
58
  form_params = opts[:form_params] || {}
@@ -306,7 +309,10 @@ module VgsApiClient
306
309
  # HTTP header 'Accept' (if needed)
307
310
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
308
311
  # HTTP header 'Content-Type'
309
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
312
+ content_type = @api_client.select_header_content_type(['application/json'])
313
+ if !content_type.nil?
314
+ header_params['Content-Type'] = content_type
315
+ end
310
316
 
311
317
  # form parameters
312
318
  form_params = opts[:form_params] || {}
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -31,7 +31,7 @@ module VgsApiClient
31
31
  # @option config [Configuration] Configuration for initializing the object, default to Configuration.default
32
32
  def initialize(config = Configuration.default)
33
33
  @config = config
34
- @user_agent = "{{ user_agent_client_name }}{{ library_version }}{{ language_name }}/0.0.27/ruby"
34
+ @user_agent = "{{ user_agent_client_name }}{{ library_version }}{{ language_name }}/0.0.28/ruby"
35
35
  @default_headers = {
36
36
  'Content-Type' => 'application/json',
37
37
  'User-Agent' => @user_agent
@@ -217,6 +217,12 @@ module VgsApiClient
217
217
  # note that response body is empty when the file is written in chunks in request on_body callback
218
218
  return @tempfile if return_type == 'File'
219
219
 
220
+ # return byte stream for Binary return type
221
+ if return_type == 'Binary'
222
+ encoding = body.encoding
223
+ return @stream.join.force_encoding(encoding)
224
+ end
225
+
220
226
  return nil if body.nil? || body.empty?
221
227
 
222
228
  # return response body directly for String return type
@@ -296,7 +302,7 @@ module VgsApiClient
296
302
  @config.base_url(opts[:operation]) + path
297
303
  end
298
304
 
299
- # Update hearder and query params based on authentication settings.
305
+ # Update header and query params based on authentication settings.
300
306
  #
301
307
  # @param [Hash] header_params Header parameters
302
308
  # @param [Hash] query_params Query parameters
@@ -335,8 +341,8 @@ module VgsApiClient
335
341
  # @param [Array] content_types array for Content-Type
336
342
  # @return [String] the Content-Type header (e.g. application/json)
337
343
  def select_header_content_type(content_types)
338
- # use application/json by default
339
- return 'application/json' if content_types.nil? || content_types.empty?
344
+ # return nil by default
345
+ return if content_types.nil? || content_types.empty?
340
346
  # use JSON when present, otherwise use the first one
341
347
  json_content_type = content_types.find { |s| json_mime?(s) }
342
348
  json_content_type || content_types.first
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -147,13 +147,13 @@ module VgsApiClient
147
147
  @server_operation_variables = {}
148
148
  @api_key = {}
149
149
  @api_key_prefix = {}
150
- @timeout = 0
151
150
  @client_side_validation = true
152
151
  @verify_ssl = true
153
152
  @verify_ssl_host = true
154
153
  @params_encoding = nil
155
154
  @cert_file = nil
156
155
  @key_file = nil
156
+ @timeout = 0
157
157
  @debugging = false
158
158
  @inject_format = false
159
159
  @force_ending_format = false
@@ -281,5 +281,6 @@ module VgsApiClient
281
281
 
282
282
  url
283
283
  end
284
+
284
285
  end
285
286
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -138,6 +138,7 @@ module VgsApiClient
138
138
  # @return [Object] Returns the model itself
139
139
  def build_from_hash(attributes)
140
140
  return nil unless attributes.is_a?(Hash)
141
+ attributes = attributes.transform_keys(&:to_sym)
141
142
  self.class.openapi_types.each_pair do |key, type|
142
143
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
143
144
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -72,6 +72,14 @@ module VgsApiClient
72
72
  invalid_properties.push('invalid value for "data", data cannot be nil.')
73
73
  end
74
74
 
75
+ if @data.length > 20
76
+ invalid_properties.push('invalid value for "data", number of items must be less than or equal to 20.')
77
+ end
78
+
79
+ if @data.length < 1
80
+ invalid_properties.push('invalid value for "data", number of items must be greater than or equal to 1.')
81
+ end
82
+
75
83
  invalid_properties
76
84
  end
77
85
 
@@ -79,9 +87,29 @@ module VgsApiClient
79
87
  # @return true if the model is valid
80
88
  def valid?
81
89
  return false if @data.nil?
90
+ return false if @data.length > 20
91
+ return false if @data.length < 1
82
92
  true
83
93
  end
84
94
 
95
+ # Custom attribute writer method with validation
96
+ # @param [Object] data Value to be assigned
97
+ def data=(data)
98
+ if data.nil?
99
+ fail ArgumentError, 'data cannot be nil'
100
+ end
101
+
102
+ if data.length > 20
103
+ fail ArgumentError, 'invalid value for "data", number of items must be less than or equal to 20.'
104
+ end
105
+
106
+ if data.length < 1
107
+ fail ArgumentError, 'invalid value for "data", number of items must be greater than or equal to 1.'
108
+ end
109
+
110
+ @data = data
111
+ end
112
+
85
113
  # Checks equality by comparing each attribute.
86
114
  # @param [Object] Object to be compared
87
115
  def ==(o)
@@ -114,6 +142,7 @@ module VgsApiClient
114
142
  # @return [Object] Returns the model itself
115
143
  def build_from_hash(attributes)
116
144
  return nil unless attributes.is_a?(Hash)
145
+ attributes = attributes.transform_keys(&:to_sym)
117
146
  self.class.openapi_types.each_pair do |key, type|
118
147
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
119
148
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -127,6 +127,7 @@ module VgsApiClient
127
127
  # @return [Object] Returns the model itself
128
128
  def build_from_hash(attributes)
129
129
  return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
130
131
  self.class.openapi_types.each_pair do |key, type|
131
132
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
132
133
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -139,6 +139,7 @@ module VgsApiClient
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.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -109,6 +109,7 @@ module VgsApiClient
109
109
  # @return [Object] Returns the model itself
110
110
  def build_from_hash(attributes)
111
111
  return nil unless attributes.is_a?(Hash)
112
+ attributes = attributes.transform_keys(&:to_sym)
112
113
  self.class.openapi_types.each_pair do |key, type|
113
114
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
115
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -69,15 +69,39 @@ module VgsApiClient
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
71
  invalid_properties = Array.new
72
+ if !@data.nil? && @data.length > 1
73
+ invalid_properties.push('invalid value for "data", number of items must be less than or equal to 1.')
74
+ end
75
+
76
+ if !@data.nil? && @data.length < 1
77
+ invalid_properties.push('invalid value for "data", number of items must be greater than or equal to 1.')
78
+ end
79
+
72
80
  invalid_properties
73
81
  end
74
82
 
75
83
  # Check to see if the all the properties in the model are valid
76
84
  # @return true if the model is valid
77
85
  def valid?
86
+ return false if !@data.nil? && @data.length > 1
87
+ return false if !@data.nil? && @data.length < 1
78
88
  true
79
89
  end
80
90
 
91
+ # Custom attribute writer method with validation
92
+ # @param [Object] data Value to be assigned
93
+ def data=(data)
94
+ if !data.nil? && data.length > 1
95
+ fail ArgumentError, 'invalid value for "data", number of items must be less than or equal to 1.'
96
+ end
97
+
98
+ if !data.nil? && data.length < 1
99
+ fail ArgumentError, 'invalid value for "data", number of items must be greater than or equal to 1.'
100
+ end
101
+
102
+ @data = data
103
+ end
104
+
81
105
  # Checks equality by comparing each attribute.
82
106
  # @param [Object] Object to be compared
83
107
  def ==(o)
@@ -110,6 +134,7 @@ module VgsApiClient
110
134
  # @return [Object] Returns the model itself
111
135
  def build_from_hash(attributes)
112
136
  return nil unless attributes.is_a?(Hash)
137
+ attributes = attributes.transform_keys(&:to_sym)
113
138
  self.class.openapi_types.each_pair do |key, type|
114
139
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
140
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -110,6 +110,7 @@ module VgsApiClient
110
110
  # @return [Object] Returns the model itself
111
111
  def build_from_hash(attributes)
112
112
  return nil unless attributes.is_a?(Hash)
113
+ attributes = attributes.transform_keys(&:to_sym)
113
114
  self.class.openapi_types.each_pair do |key, type|
114
115
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
116
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -69,15 +69,30 @@ module VgsApiClient
69
69
  # @return Array for valid properties with the reasons
70
70
  def list_invalid_properties
71
71
  invalid_properties = Array.new
72
+ if !@errors.nil? && @errors.length < 1
73
+ invalid_properties.push('invalid value for "errors", number of items must be greater than or equal to 1.')
74
+ end
75
+
72
76
  invalid_properties
73
77
  end
74
78
 
75
79
  # Check to see if the all the properties in the model are valid
76
80
  # @return true if the model is valid
77
81
  def valid?
82
+ return false if !@errors.nil? && @errors.length < 1
78
83
  true
79
84
  end
80
85
 
86
+ # Custom attribute writer method with validation
87
+ # @param [Object] errors Value to be assigned
88
+ def errors=(errors)
89
+ if !errors.nil? && errors.length < 1
90
+ fail ArgumentError, 'invalid value for "errors", number of items must be greater than or equal to 1.'
91
+ end
92
+
93
+ @errors = errors
94
+ end
95
+
81
96
  # Checks equality by comparing each attribute.
82
97
  # @param [Object] Object to be compared
83
98
  def ==(o)
@@ -110,6 +125,7 @@ module VgsApiClient
110
125
  # @return [Object] Returns the model itself
111
126
  def build_from_hash(attributes)
112
127
  return nil unless attributes.is_a?(Hash)
128
+ attributes = attributes.transform_keys(&:to_sym)
113
129
  self.class.openapi_types.each_pair do |key, type|
114
130
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
115
131
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -117,6 +117,7 @@ module VgsApiClient
117
117
  # @return [Object] Returns the model itself
118
118
  def build_from_hash(attributes)
119
119
  return nil unless attributes.is_a?(Hash)
120
+ attributes = attributes.transform_keys(&:to_sym)
120
121
  self.class.openapi_types.each_pair do |key, type|
121
122
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
122
123
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -142,6 +142,7 @@ module VgsApiClient
142
142
  # @return [Object] Returns the model itself
143
143
  def build_from_hash(attributes)
144
144
  return nil unless attributes.is_a?(Hash)
145
+ attributes = attributes.transform_keys(&:to_sym)
145
146
  self.class.openapi_types.each_pair do |key, type|
146
147
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
147
148
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -112,6 +112,7 @@ module VgsApiClient
112
112
  # @return [Object] Returns the model itself
113
113
  def build_from_hash(attributes)
114
114
  return nil unless attributes.is_a?(Hash)
115
+ attributes = attributes.transform_keys(&:to_sym)
115
116
  self.class.openapi_types.each_pair do |key, type|
116
117
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
117
118
  self.send("#{key}=", nil)
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -115,6 +115,7 @@ module VgsApiClient
115
115
  # @return [Object] Returns the model itself
116
116
  def build_from_hash(attributes)
117
117
  return nil unless attributes.is_a?(Hash)
118
+ attributes = attributes.transform_keys(&:to_sym)
118
119
  self.class.openapi_types.each_pair do |key, type|
119
120
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
120
121
  self.send("#{key}=", nil)
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module VgsApiClient
14
- VERSION = '0.0.27'
14
+ VERSION = '0.0.28'
15
15
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
data/publish/Dockerfile CHANGED
@@ -8,4 +8,4 @@ ENV LIB_VERSION=$LIB_VERSION
8
8
 
9
9
  WORKDIR /src
10
10
 
11
- ENTRYPOINT ["sh", "publish/build_and_publish.sh"]
11
+ ENTRYPOINT ["sh", "publish/build_and_publish.sh"]
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- grep -rl 0.0.27 . | xargs sed -i "s/0.0.27/${LIB_VERSION}/g"
3
+ grep -rl 0.0.28 . | xargs sed -i "s/0.0.28/${LIB_VERSION}/g"
4
4
 
5
5
  # Build
6
6
  gem build vgs_api_client.gemspec
@@ -10,4 +10,4 @@ mkdir ~/.gem
10
10
  echo ":rubygems_api_key: ${GEM_VGS_PUBLISH_TOKEN}" > ~/.gem/credentials
11
11
  chmod 0600 ~/.gem/credentials
12
12
 
13
- gem push vgs_api_client-${LIB_VERSION}.gem
13
+ gem push vgs_api_client-${LIB_VERSION}.gem
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -197,8 +197,8 @@ describe VgsApiClient::ApiClient do
197
197
  let(:api_client) { VgsApiClient::ApiClient.new }
198
198
 
199
199
  it 'works' do
200
- expect(api_client.select_header_content_type(nil)).to eq('application/json')
201
- expect(api_client.select_header_content_type([])).to eq('application/json')
200
+ expect(api_client.select_header_content_type(nil)).to be_nil
201
+ expect(api_client.select_header_content_type([])).to be_nil
202
202
 
203
203
  expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
204
204
  expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
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.0
7
7
  Contact: support@verygoodsecurity.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 5.0.1-SNAPSHOT
9
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
data/test/Dockerfile CHANGED
@@ -3,7 +3,7 @@ FROM ruby:3.1.1-alpine3.15
3
3
  ADD . /src
4
4
 
5
5
  # set version valid version
6
- RUN grep -lr 0.0.27 ./src | xargs sed -i "s/0.0.27/0.0.1/g"
6
+ RUN grep -lr 0.0.28 ./src | xargs sed -i "s/0.0.28/0.0.1/g"
7
7
 
8
8
  WORKDIR /src
9
9
 
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: 1.0.0
9
9
  Contact: support@verygoodsecurity.com
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 5.0.1-SNAPSHOT
11
+ OpenAPI Generator version: 6.0.0-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vgs_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Very Good Security