pulp_ostree_client 2.0.0a6 → 2.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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -7
  3. data/docs/ContentCommitsApi.md +8 -8
  4. data/docs/ContentConfigsApi.md +8 -8
  5. data/docs/ContentContentApi.md +138 -0
  6. data/docs/ContentObjectsApi.md +8 -8
  7. data/docs/ContentRefsApi.md +8 -8
  8. data/docs/ContentSummariesApi.md +8 -8
  9. data/docs/DistributionsOstreeApi.md +18 -12
  10. data/docs/OstreeOstreeContentResponse.md +25 -0
  11. data/docs/OstreeOstreeDistribution.md +1 -1
  12. data/docs/OstreeOstreeDistributionResponse.md +1 -1
  13. data/docs/OstreeOstreeRemote.md +1 -1
  14. data/docs/OstreeOstreeRemoteResponse.md +3 -1
  15. data/docs/OstreeOstreeRemoteResponseHiddenFields.md +19 -0
  16. data/docs/OstreeOstreeRepository.md +5 -3
  17. data/docs/OstreeOstreeRepositoryResponse.md +5 -3
  18. data/docs/PaginatedostreeOstreeContentResponseList.md +23 -0
  19. data/docs/PatchedostreeOstreeDistribution.md +1 -1
  20. data/docs/PatchedostreeOstreeRemote.md +1 -1
  21. data/docs/PatchedostreeOstreeRepository.md +5 -3
  22. data/docs/RemotesOstreeApi.md +12 -12
  23. data/docs/RepositoriesOstreeApi.md +32 -14
  24. data/docs/RepositoriesOstreeVersionsApi.md +12 -12
  25. data/docs/RepositoryAddRemoveContent.md +21 -0
  26. data/lib/pulp_ostree_client/api/content_commits_api.rb +13 -13
  27. data/lib/pulp_ostree_client/api/content_configs_api.rb +12 -12
  28. data/lib/pulp_ostree_client/api/content_content_api.rb +174 -0
  29. data/lib/pulp_ostree_client/api/content_objects_api.rb +13 -13
  30. data/lib/pulp_ostree_client/api/content_refs_api.rb +13 -13
  31. data/lib/pulp_ostree_client/api/content_summaries_api.rb +12 -12
  32. data/lib/pulp_ostree_client/api/distributions_ostree_api.rb +26 -17
  33. data/lib/pulp_ostree_client/api/remotes_ostree_api.rb +17 -17
  34. data/lib/pulp_ostree_client/api/repositories_ostree_api.rb +51 -24
  35. data/lib/pulp_ostree_client/api/repositories_ostree_versions_api.rb +17 -17
  36. data/lib/pulp_ostree_client/api_client.rb +1 -1
  37. data/lib/pulp_ostree_client/models/ostree_ostree_content_response.rb +260 -0
  38. data/lib/pulp_ostree_client/models/ostree_ostree_distribution.rb +4 -2
  39. data/lib/pulp_ostree_client/models/ostree_ostree_distribution_response.rb +4 -2
  40. data/lib/pulp_ostree_client/models/ostree_ostree_remote.rb +4 -2
  41. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response.rb +17 -3
  42. data/lib/pulp_ostree_client/models/ostree_ostree_remote_response_hidden_fields.rb +215 -0
  43. data/lib/pulp_ostree_client/models/ostree_ostree_repository.rb +21 -8
  44. data/lib/pulp_ostree_client/models/ostree_ostree_repository_response.rb +21 -8
  45. data/lib/pulp_ostree_client/models/paginatedostree_ostree_content_response_list.rb +237 -0
  46. data/lib/pulp_ostree_client/models/patchedostree_ostree_distribution.rb +4 -2
  47. data/lib/pulp_ostree_client/models/patchedostree_ostree_remote.rb +4 -2
  48. data/lib/pulp_ostree_client/models/patchedostree_ostree_repository.rb +21 -8
  49. data/lib/pulp_ostree_client/models/{ostree_repository_add_remove_content.rb → repository_add_remove_content.rb} +6 -6
  50. data/lib/pulp_ostree_client/version.rb +1 -1
  51. data/lib/pulp_ostree_client.rb +5 -1
  52. data/pulp_ostree_client.gemspec +3 -3
  53. data/spec/api/content_commits_api_spec.rb +4 -4
  54. data/spec/api/content_configs_api_spec.rb +4 -4
  55. data/spec/api/content_content_api_spec.rb +68 -0
  56. data/spec/api/content_objects_api_spec.rb +4 -4
  57. data/spec/api/content_refs_api_spec.rb +4 -4
  58. data/spec/api/content_summaries_api_spec.rb +4 -4
  59. data/spec/api/distributions_ostree_api_spec.rb +9 -6
  60. data/spec/api/remotes_ostree_api_spec.rb +6 -6
  61. data/spec/api/repositories_ostree_api_spec.rb +15 -6
  62. data/spec/api/repositories_ostree_versions_api_spec.rb +6 -6
  63. data/spec/models/ostree_ostree_content_response_spec.rb +65 -0
  64. data/spec/models/ostree_ostree_remote_response_hidden_fields_spec.rb +47 -0
  65. data/spec/models/ostree_ostree_remote_response_spec.rb +6 -0
  66. data/spec/models/ostree_ostree_repository_response_spec.rb +6 -0
  67. data/spec/models/ostree_ostree_repository_spec.rb +6 -0
  68. data/spec/models/paginatedostree_ostree_content_response_list_spec.rb +59 -0
  69. data/spec/models/patchedostree_ostree_repository_spec.rb +6 -0
  70. data/spec/models/{ostree_repository_add_remove_content_spec.rb → repository_add_remove_content_spec.rb} +6 -6
  71. metadata +60 -45
  72. data/docs/OstreeRepositoryAddRemoveContent.md +0 -21
  73. data/git_push.sh +0 -58
@@ -70,6 +70,9 @@ module PulpOstreeClient
70
70
  # Limits requests per second for each concurrent downloader
71
71
  attr_accessor :rate_limit
72
72
 
73
+ # List of hidden (write only) fields
74
+ attr_accessor :hidden_fields
75
+
73
76
  # An option to specify how many commits to traverse.
74
77
  attr_accessor :depth
75
78
 
@@ -101,6 +104,7 @@ module PulpOstreeClient
101
104
  :'sock_read_timeout' => :'sock_read_timeout',
102
105
  :'headers' => :'headers',
103
106
  :'rate_limit' => :'rate_limit',
107
+ :'hidden_fields' => :'hidden_fields',
104
108
  :'depth' => :'depth',
105
109
  :'include_refs' => :'include_refs',
106
110
  :'exclude_refs' => :'exclude_refs'
@@ -118,7 +122,7 @@ module PulpOstreeClient
118
122
  :'client_cert' => :'String',
119
123
  :'tls_validation' => :'Boolean',
120
124
  :'proxy_url' => :'String',
121
- :'pulp_labels' => :'Object',
125
+ :'pulp_labels' => :'Hash<String, String>',
122
126
  :'pulp_last_updated' => :'DateTime',
123
127
  :'download_concurrency' => :'Integer',
124
128
  :'max_retries' => :'Integer',
@@ -129,6 +133,7 @@ module PulpOstreeClient
129
133
  :'sock_read_timeout' => :'Float',
130
134
  :'headers' => :'Array<Object>',
131
135
  :'rate_limit' => :'Integer',
136
+ :'hidden_fields' => :'Array<OstreeOstreeRemoteResponseHiddenFields>',
132
137
  :'depth' => :'Integer',
133
138
  :'include_refs' => :'Array<String>',
134
139
  :'exclude_refs' => :'Array<String>'
@@ -201,7 +206,9 @@ module PulpOstreeClient
201
206
  end
202
207
 
203
208
  if attributes.key?(:'pulp_labels')
204
- self.pulp_labels = attributes[:'pulp_labels']
209
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
210
+ self.pulp_labels = value
211
+ end
205
212
  end
206
213
 
207
214
  if attributes.key?(:'pulp_last_updated')
@@ -246,6 +253,12 @@ module PulpOstreeClient
246
253
  self.rate_limit = attributes[:'rate_limit']
247
254
  end
248
255
 
256
+ if attributes.key?(:'hidden_fields')
257
+ if (value = attributes[:'hidden_fields']).is_a?(Array)
258
+ self.hidden_fields = value
259
+ end
260
+ end
261
+
249
262
  if attributes.key?(:'depth')
250
263
  self.depth = attributes[:'depth']
251
264
  else
@@ -402,6 +415,7 @@ module PulpOstreeClient
402
415
  sock_read_timeout == o.sock_read_timeout &&
403
416
  headers == o.headers &&
404
417
  rate_limit == o.rate_limit &&
418
+ hidden_fields == o.hidden_fields &&
405
419
  depth == o.depth &&
406
420
  include_refs == o.include_refs &&
407
421
  exclude_refs == o.exclude_refs
@@ -416,7 +430,7 @@ module PulpOstreeClient
416
430
  # Calculates hash code according to all attributes.
417
431
  # @return [Integer] Hash code
418
432
  def hash
419
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, depth, include_refs, exclude_refs].hash
433
+ [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, depth, include_refs, exclude_refs].hash
420
434
  end
421
435
 
422
436
  # Builds the object from hash
@@ -0,0 +1,215 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpOstreeClient
16
+ class OstreeOstreeRemoteResponseHiddenFields
17
+ attr_accessor :name
18
+
19
+ attr_accessor :is_set
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'name' => :'name',
25
+ :'is_set' => :'is_set'
26
+ }
27
+ end
28
+
29
+ # Attribute type mapping.
30
+ def self.openapi_types
31
+ {
32
+ :'name' => :'String',
33
+ :'is_set' => :'Boolean'
34
+ }
35
+ end
36
+
37
+ # List of attributes with nullable: true
38
+ def self.openapi_nullable
39
+ Set.new([
40
+ ])
41
+ end
42
+
43
+ # Initializes the object
44
+ # @param [Hash] attributes Model attributes in the form of hash
45
+ def initialize(attributes = {})
46
+ if (!attributes.is_a?(Hash))
47
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields` initialize method"
48
+ end
49
+
50
+ # check to see if the attribute exists and convert string to symbol for hash key
51
+ attributes = attributes.each_with_object({}) { |(k, v), h|
52
+ if (!self.class.attribute_map.key?(k.to_sym))
53
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpOstreeClient::OstreeOstreeRemoteResponseHiddenFields`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
54
+ end
55
+ h[k.to_sym] = v
56
+ }
57
+
58
+ if attributes.key?(:'name')
59
+ self.name = attributes[:'name']
60
+ end
61
+
62
+ if attributes.key?(:'is_set')
63
+ self.is_set = attributes[:'is_set']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ name == o.name &&
86
+ is_set == o.is_set
87
+ end
88
+
89
+ # @see the `==` method
90
+ # @param [Object] Object to be compared
91
+ def eql?(o)
92
+ self == o
93
+ end
94
+
95
+ # Calculates hash code according to all attributes.
96
+ # @return [Integer] Hash code
97
+ def hash
98
+ [name, is_set].hash
99
+ end
100
+
101
+ # Builds the object from hash
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ # @return [Object] Returns the model itself
104
+ def self.build_from_hash(attributes)
105
+ new.build_from_hash(attributes)
106
+ end
107
+
108
+ # Builds the object from hash
109
+ # @param [Hash] attributes Model attributes in the form of hash
110
+ # @return [Object] Returns the model itself
111
+ def build_from_hash(attributes)
112
+ return nil unless attributes.is_a?(Hash)
113
+ self.class.openapi_types.each_pair do |key, type|
114
+ if type =~ /\AArray<(.*)>/i
115
+ # check to ensure the input is an array given that the attribute
116
+ # is documented as an array but the input is not
117
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
118
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
119
+ end
120
+ elsif !attributes[self.class.attribute_map[key]].nil?
121
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
122
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
123
+ end
124
+
125
+ self
126
+ end
127
+
128
+ # Deserializes the data based on type
129
+ # @param string type Data type
130
+ # @param string value Value to be deserialized
131
+ # @return [Object] Deserialized data
132
+ def _deserialize(type, value)
133
+ case type.to_sym
134
+ when :DateTime
135
+ DateTime.parse(value)
136
+ when :Date
137
+ Date.parse(value)
138
+ when :String
139
+ value.to_s
140
+ when :Integer
141
+ value.to_i
142
+ when :Float
143
+ value.to_f
144
+ when :Boolean
145
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
146
+ true
147
+ else
148
+ false
149
+ end
150
+ when :Object
151
+ # generic object (usually a Hash), return directly
152
+ value
153
+ when /\AArray<(?<inner_type>.+)>\z/
154
+ inner_type = Regexp.last_match[:inner_type]
155
+ value.map { |v| _deserialize(inner_type, v) }
156
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
157
+ k_type = Regexp.last_match[:k_type]
158
+ v_type = Regexp.last_match[:v_type]
159
+ {}.tap do |hash|
160
+ value.each do |k, v|
161
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
162
+ end
163
+ end
164
+ else # model
165
+ PulpOstreeClient.const_get(type).build_from_hash(value)
166
+ end
167
+ end
168
+
169
+ # Returns the string representation of the object
170
+ # @return [String] String presentation of the object
171
+ def to_s
172
+ to_hash.to_s
173
+ end
174
+
175
+ # to_body is an alias to to_hash (backward compatibility)
176
+ # @return [Hash] Returns the object in the form of hash
177
+ def to_body
178
+ to_hash
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ # Outputs non-array value in the form of hash
198
+ # For object, use to_hash. Otherwise, just return the value
199
+ # @param [Object] value Any valid value
200
+ # @return [Hash] Returns the value in the form of hash
201
+ def _to_hash(value)
202
+ if value.is_a?(Array)
203
+ value.compact.map { |v| _to_hash(v) }
204
+ elsif value.is_a?(Hash)
205
+ {}.tap do |hash|
206
+ value.each { |k, v| hash[k] = _to_hash(v) }
207
+ end
208
+ elsif value.respond_to? :to_hash
209
+ value.to_hash
210
+ else
211
+ value
212
+ end
213
+ end
214
+ end
215
+ end
@@ -23,12 +23,14 @@ module PulpOstreeClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
27
  attr_accessor :retain_repo_versions
28
28
 
29
29
  # An optional remote to use by default when syncing.
30
30
  attr_accessor :remote
31
31
 
32
+ attr_accessor :compute_delta
33
+
32
34
  # Attribute mapping from ruby-style variable name to JSON key.
33
35
  def self.attribute_map
34
36
  {
@@ -36,18 +38,20 @@ module PulpOstreeClient
36
38
  :'name' => :'name',
37
39
  :'description' => :'description',
38
40
  :'retain_repo_versions' => :'retain_repo_versions',
39
- :'remote' => :'remote'
41
+ :'remote' => :'remote',
42
+ :'compute_delta' => :'compute_delta'
40
43
  }
41
44
  end
42
45
 
43
46
  # Attribute type mapping.
44
47
  def self.openapi_types
45
48
  {
46
- :'pulp_labels' => :'Object',
49
+ :'pulp_labels' => :'Hash<String, String>',
47
50
  :'name' => :'String',
48
51
  :'description' => :'String',
49
52
  :'retain_repo_versions' => :'Integer',
50
- :'remote' => :'String'
53
+ :'remote' => :'String',
54
+ :'compute_delta' => :'Boolean'
51
55
  }
52
56
  end
53
57
 
@@ -56,7 +60,7 @@ module PulpOstreeClient
56
60
  Set.new([
57
61
  :'description',
58
62
  :'retain_repo_versions',
59
- :'remote'
63
+ :'remote',
60
64
  ])
61
65
  end
62
66
 
@@ -76,7 +80,9 @@ module PulpOstreeClient
76
80
  }
77
81
 
78
82
  if attributes.key?(:'pulp_labels')
79
- self.pulp_labels = attributes[:'pulp_labels']
83
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
84
+ self.pulp_labels = value
85
+ end
80
86
  end
81
87
 
82
88
  if attributes.key?(:'name')
@@ -94,6 +100,12 @@ module PulpOstreeClient
94
100
  if attributes.key?(:'remote')
95
101
  self.remote = attributes[:'remote']
96
102
  end
103
+
104
+ if attributes.key?(:'compute_delta')
105
+ self.compute_delta = attributes[:'compute_delta']
106
+ else
107
+ self.compute_delta = true
108
+ end
97
109
  end
98
110
 
99
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -172,7 +184,8 @@ module PulpOstreeClient
172
184
  name == o.name &&
173
185
  description == o.description &&
174
186
  retain_repo_versions == o.retain_repo_versions &&
175
- remote == o.remote
187
+ remote == o.remote &&
188
+ compute_delta == o.compute_delta
176
189
  end
177
190
 
178
191
  # @see the `==` method
@@ -184,7 +197,7 @@ module PulpOstreeClient
184
197
  # Calculates hash code according to all attributes.
185
198
  # @return [Integer] Hash code
186
199
  def hash
187
- [pulp_labels, name, description, retain_repo_versions, remote].hash
200
+ [pulp_labels, name, description, retain_repo_versions, remote, compute_delta].hash
188
201
  end
189
202
 
190
203
  # Builds the object from hash
@@ -32,12 +32,14 @@ module PulpOstreeClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
- # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
35
+ # Retain X versions of the repository. Default is null which retains all versions.
36
36
  attr_accessor :retain_repo_versions
37
37
 
38
38
  # An optional remote to use by default when syncing.
39
39
  attr_accessor :remote
40
40
 
41
+ attr_accessor :compute_delta
42
+
41
43
  # Attribute mapping from ruby-style variable name to JSON key.
42
44
  def self.attribute_map
43
45
  {
@@ -49,7 +51,8 @@ module PulpOstreeClient
49
51
  :'name' => :'name',
50
52
  :'description' => :'description',
51
53
  :'retain_repo_versions' => :'retain_repo_versions',
52
- :'remote' => :'remote'
54
+ :'remote' => :'remote',
55
+ :'compute_delta' => :'compute_delta'
53
56
  }
54
57
  end
55
58
 
@@ -59,12 +62,13 @@ module PulpOstreeClient
59
62
  :'pulp_href' => :'String',
60
63
  :'pulp_created' => :'DateTime',
61
64
  :'versions_href' => :'String',
62
- :'pulp_labels' => :'Object',
65
+ :'pulp_labels' => :'Hash<String, String>',
63
66
  :'latest_version_href' => :'String',
64
67
  :'name' => :'String',
65
68
  :'description' => :'String',
66
69
  :'retain_repo_versions' => :'Integer',
67
- :'remote' => :'String'
70
+ :'remote' => :'String',
71
+ :'compute_delta' => :'Boolean'
68
72
  }
69
73
  end
70
74
 
@@ -73,7 +77,7 @@ module PulpOstreeClient
73
77
  Set.new([
74
78
  :'description',
75
79
  :'retain_repo_versions',
76
- :'remote'
80
+ :'remote',
77
81
  ])
78
82
  end
79
83
 
@@ -105,7 +109,9 @@ module PulpOstreeClient
105
109
  end
106
110
 
107
111
  if attributes.key?(:'pulp_labels')
108
- self.pulp_labels = attributes[:'pulp_labels']
112
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
113
+ self.pulp_labels = value
114
+ end
109
115
  end
110
116
 
111
117
  if attributes.key?(:'latest_version_href')
@@ -127,6 +133,12 @@ module PulpOstreeClient
127
133
  if attributes.key?(:'remote')
128
134
  self.remote = attributes[:'remote']
129
135
  end
136
+
137
+ if attributes.key?(:'compute_delta')
138
+ self.compute_delta = attributes[:'compute_delta']
139
+ else
140
+ self.compute_delta = true
141
+ end
130
142
  end
131
143
 
132
144
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -175,7 +187,8 @@ module PulpOstreeClient
175
187
  name == o.name &&
176
188
  description == o.description &&
177
189
  retain_repo_versions == o.retain_repo_versions &&
178
- remote == o.remote
190
+ remote == o.remote &&
191
+ compute_delta == o.compute_delta
179
192
  end
180
193
 
181
194
  # @see the `==` method
@@ -187,7 +200,7 @@ module PulpOstreeClient
187
200
  # Calculates hash code according to all attributes.
188
201
  # @return [Integer] Hash code
189
202
  def hash
190
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote].hash
203
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, compute_delta].hash
191
204
  end
192
205
 
193
206
  # Builds the object from hash