pulp_container_client 2.27.11 → 2.27.12

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 (34) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -6
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +16 -16
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +16 -16
  7. data/docs/ContainerContainerPushRepository.md +8 -8
  8. data/docs/ContainerContainerPushRepositoryResponse.md +16 -16
  9. data/docs/DistributionsPullThroughApi.md +10 -10
  10. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  12. data/docs/PatchedcontainerContainerPushRepository.md +8 -8
  13. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +4 -8
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +69 -69
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +31 -31
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +70 -70
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +62 -62
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +70 -70
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +28 -28
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +28 -28
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +62 -62
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/api/distributions_pull_through_api_spec.rb +2 -4
  25. data/spec/models/container_container_distribution_response_spec.rb +13 -13
  26. data/spec/models/container_container_distribution_spec.rb +7 -7
  27. data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
  28. data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
  29. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  30. data/spec/models/container_container_push_repository_spec.rb +6 -6
  31. data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
  32. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
  33. data/spec/models/patchedcontainer_container_push_repository_spec.rb +6 -6
  34. metadata +59 -59
@@ -16,26 +16,26 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class ContainerContainerDistribution
19
+ # An optional content-guard. If none is specified, a default one will be used.
20
+ attr_accessor :content_guard
21
+
19
22
  # Whether this distribution should be shown in the content app.
20
23
  attr_accessor :hidden
21
24
 
25
+ # A unique name. Ex, `rawhide` and `stable`.
26
+ attr_accessor :name
27
+
22
28
  attr_accessor :pulp_labels
23
29
 
24
30
  # The latest RepositoryVersion for this Repository will be served.
25
31
  attr_accessor :repository
26
32
 
27
- # A unique name. Ex, `rawhide` and `stable`.
28
- attr_accessor :name
33
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
34
+ attr_accessor :base_path
29
35
 
30
36
  # RepositoryVersion to be served
31
37
  attr_accessor :repository_version
32
38
 
33
- # An optional content-guard. If none is specified, a default one will be used.
34
- attr_accessor :content_guard
35
-
36
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
37
- attr_accessor :base_path
38
-
39
39
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
40
40
  attr_accessor :private
41
41
 
@@ -45,13 +45,13 @@ module PulpContainerClient
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
+ :'content_guard' => :'content_guard',
48
49
  :'hidden' => :'hidden',
50
+ :'name' => :'name',
49
51
  :'pulp_labels' => :'pulp_labels',
50
52
  :'repository' => :'repository',
51
- :'name' => :'name',
52
- :'repository_version' => :'repository_version',
53
- :'content_guard' => :'content_guard',
54
53
  :'base_path' => :'base_path',
54
+ :'repository_version' => :'repository_version',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
57
57
  }
@@ -65,13 +65,13 @@ module PulpContainerClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
+ :'content_guard' => :'String',
68
69
  :'hidden' => :'Boolean',
70
+ :'name' => :'String',
69
71
  :'pulp_labels' => :'Hash<String, String>',
70
72
  :'repository' => :'String',
71
- :'name' => :'String',
72
- :'repository_version' => :'String',
73
- :'content_guard' => :'String',
74
73
  :'base_path' => :'String',
74
+ :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
77
77
  }
@@ -101,12 +101,22 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
+ if attributes.key?(:'content_guard')
105
+ self.content_guard = attributes[:'content_guard']
106
+ end
107
+
104
108
  if attributes.key?(:'hidden')
105
109
  self.hidden = attributes[:'hidden']
106
110
  else
107
111
  self.hidden = false
108
112
  end
109
113
 
114
+ if attributes.key?(:'name')
115
+ self.name = attributes[:'name']
116
+ else
117
+ self.name = nil
118
+ end
119
+
110
120
  if attributes.key?(:'pulp_labels')
111
121
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
112
122
  self.pulp_labels = value
@@ -117,26 +127,16 @@ module PulpContainerClient
117
127
  self.repository = attributes[:'repository']
118
128
  end
119
129
 
120
- if attributes.key?(:'name')
121
- self.name = attributes[:'name']
130
+ if attributes.key?(:'base_path')
131
+ self.base_path = attributes[:'base_path']
122
132
  else
123
- self.name = nil
133
+ self.base_path = nil
124
134
  end
125
135
 
126
136
  if attributes.key?(:'repository_version')
127
137
  self.repository_version = attributes[:'repository_version']
128
138
  end
129
139
 
130
- if attributes.key?(:'content_guard')
131
- self.content_guard = attributes[:'content_guard']
132
- end
133
-
134
- if attributes.key?(:'base_path')
135
- self.base_path = attributes[:'base_path']
136
- else
137
- self.base_path = nil
138
- end
139
-
140
140
  if attributes.key?(:'private')
141
141
  self.private = attributes[:'private']
142
142
  end
@@ -229,13 +229,13 @@ module PulpContainerClient
229
229
  def ==(o)
230
230
  return true if self.equal?(o)
231
231
  self.class == o.class &&
232
+ content_guard == o.content_guard &&
232
233
  hidden == o.hidden &&
234
+ name == o.name &&
233
235
  pulp_labels == o.pulp_labels &&
234
236
  repository == o.repository &&
235
- name == o.name &&
236
- repository_version == o.repository_version &&
237
- content_guard == o.content_guard &&
238
237
  base_path == o.base_path &&
238
+ repository_version == o.repository_version &&
239
239
  private == o.private &&
240
240
  description == o.description
241
241
  end
@@ -249,7 +249,7 @@ module PulpContainerClient
249
249
  # Calculates hash code according to all attributes.
250
250
  # @return [Integer] Hash code
251
251
  def hash
252
- [hidden, pulp_labels, repository, name, repository_version, content_guard, base_path, private, description].hash
252
+ [content_guard, hidden, name, pulp_labels, repository, base_path, repository_version, private, description].hash
253
253
  end
254
254
 
255
255
  # Builds the object from hash
@@ -16,43 +16,43 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class ContainerContainerDistributionResponse
19
- # Whether this distribution should be shown in the content app.
20
- attr_accessor :hidden
21
-
22
- attr_accessor :pulp_labels
23
-
24
19
  attr_accessor :pulp_href
25
20
 
26
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
27
- attr_accessor :no_content_change_since
21
+ # Timestamp of creation.
22
+ attr_accessor :pulp_created
28
23
 
29
- # The Pulp Resource Name (PRN) of the associated optional content guard.
30
- attr_accessor :content_guard_prn
24
+ # An optional content-guard. If none is specified, a default one will be used.
25
+ attr_accessor :content_guard
26
+
27
+ # Whether this distribution should be shown in the content app.
28
+ attr_accessor :hidden
31
29
 
32
30
  # The Pulp Resource Name (PRN).
33
31
  attr_accessor :prn
34
32
 
35
- # The latest RepositoryVersion for this Repository will be served.
36
- attr_accessor :repository
37
-
38
- # Timestamp of creation.
39
- attr_accessor :pulp_created
33
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
34
+ attr_accessor :content_guard_prn
40
35
 
41
36
  # A unique name. Ex, `rawhide` and `stable`.
42
37
  attr_accessor :name
43
38
 
44
- # RepositoryVersion to be served
45
- attr_accessor :repository_version
39
+ attr_accessor :pulp_labels
46
40
 
47
- # An optional content-guard. If none is specified, a default one will be used.
48
- attr_accessor :content_guard
41
+ # The latest RepositoryVersion for this Repository will be served.
42
+ attr_accessor :repository
49
43
 
50
44
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
51
45
  attr_accessor :base_path
52
46
 
47
+ # RepositoryVersion to be served
48
+ attr_accessor :repository_version
49
+
53
50
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
54
51
  attr_accessor :pulp_last_updated
55
52
 
53
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
54
+ attr_accessor :no_content_change_since
55
+
56
56
  # The Registry hostname/name/ to use with docker pull command defined by this distribution.
57
57
  attr_accessor :registry_path
58
58
 
@@ -71,19 +71,19 @@ module PulpContainerClient
71
71
  # Attribute mapping from ruby-style variable name to JSON key.
72
72
  def self.attribute_map
73
73
  {
74
- :'hidden' => :'hidden',
75
- :'pulp_labels' => :'pulp_labels',
76
74
  :'pulp_href' => :'pulp_href',
77
- :'no_content_change_since' => :'no_content_change_since',
78
- :'content_guard_prn' => :'content_guard_prn',
79
- :'prn' => :'prn',
80
- :'repository' => :'repository',
81
75
  :'pulp_created' => :'pulp_created',
82
- :'name' => :'name',
83
- :'repository_version' => :'repository_version',
84
76
  :'content_guard' => :'content_guard',
77
+ :'hidden' => :'hidden',
78
+ :'prn' => :'prn',
79
+ :'content_guard_prn' => :'content_guard_prn',
80
+ :'name' => :'name',
81
+ :'pulp_labels' => :'pulp_labels',
82
+ :'repository' => :'repository',
85
83
  :'base_path' => :'base_path',
84
+ :'repository_version' => :'repository_version',
86
85
  :'pulp_last_updated' => :'pulp_last_updated',
86
+ :'no_content_change_since' => :'no_content_change_since',
87
87
  :'registry_path' => :'registry_path',
88
88
  :'remote' => :'remote',
89
89
  :'namespace' => :'namespace',
@@ -100,19 +100,19 @@ module PulpContainerClient
100
100
  # Attribute type mapping.
101
101
  def self.openapi_types
102
102
  {
103
- :'hidden' => :'Boolean',
104
- :'pulp_labels' => :'Hash<String, String>',
105
103
  :'pulp_href' => :'String',
106
- :'no_content_change_since' => :'String',
107
- :'content_guard_prn' => :'String',
108
- :'prn' => :'String',
109
- :'repository' => :'String',
110
104
  :'pulp_created' => :'Time',
111
- :'name' => :'String',
112
- :'repository_version' => :'String',
113
105
  :'content_guard' => :'String',
106
+ :'hidden' => :'Boolean',
107
+ :'prn' => :'String',
108
+ :'content_guard_prn' => :'String',
109
+ :'name' => :'String',
110
+ :'pulp_labels' => :'Hash<String, String>',
111
+ :'repository' => :'String',
114
112
  :'base_path' => :'String',
113
+ :'repository_version' => :'String',
115
114
  :'pulp_last_updated' => :'Time',
115
+ :'no_content_change_since' => :'String',
116
116
  :'registry_path' => :'String',
117
117
  :'remote' => :'String',
118
118
  :'namespace' => :'String',
@@ -145,40 +145,30 @@ module PulpContainerClient
145
145
  h[k.to_sym] = v
146
146
  }
147
147
 
148
- if attributes.key?(:'hidden')
149
- self.hidden = attributes[:'hidden']
150
- else
151
- self.hidden = false
152
- end
153
-
154
- if attributes.key?(:'pulp_labels')
155
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
156
- self.pulp_labels = value
157
- end
158
- end
159
-
160
148
  if attributes.key?(:'pulp_href')
161
149
  self.pulp_href = attributes[:'pulp_href']
162
150
  end
163
151
 
164
- if attributes.key?(:'no_content_change_since')
165
- self.no_content_change_since = attributes[:'no_content_change_since']
152
+ if attributes.key?(:'pulp_created')
153
+ self.pulp_created = attributes[:'pulp_created']
166
154
  end
167
155
 
168
- if attributes.key?(:'content_guard_prn')
169
- self.content_guard_prn = attributes[:'content_guard_prn']
156
+ if attributes.key?(:'content_guard')
157
+ self.content_guard = attributes[:'content_guard']
170
158
  end
171
159
 
172
- if attributes.key?(:'prn')
173
- self.prn = attributes[:'prn']
160
+ if attributes.key?(:'hidden')
161
+ self.hidden = attributes[:'hidden']
162
+ else
163
+ self.hidden = false
174
164
  end
175
165
 
176
- if attributes.key?(:'repository')
177
- self.repository = attributes[:'repository']
166
+ if attributes.key?(:'prn')
167
+ self.prn = attributes[:'prn']
178
168
  end
179
169
 
180
- if attributes.key?(:'pulp_created')
181
- self.pulp_created = attributes[:'pulp_created']
170
+ if attributes.key?(:'content_guard_prn')
171
+ self.content_guard_prn = attributes[:'content_guard_prn']
182
172
  end
183
173
 
184
174
  if attributes.key?(:'name')
@@ -187,12 +177,14 @@ module PulpContainerClient
187
177
  self.name = nil
188
178
  end
189
179
 
190
- if attributes.key?(:'repository_version')
191
- self.repository_version = attributes[:'repository_version']
180
+ if attributes.key?(:'pulp_labels')
181
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
182
+ self.pulp_labels = value
183
+ end
192
184
  end
193
185
 
194
- if attributes.key?(:'content_guard')
195
- self.content_guard = attributes[:'content_guard']
186
+ if attributes.key?(:'repository')
187
+ self.repository = attributes[:'repository']
196
188
  end
197
189
 
198
190
  if attributes.key?(:'base_path')
@@ -201,10 +193,18 @@ module PulpContainerClient
201
193
  self.base_path = nil
202
194
  end
203
195
 
196
+ if attributes.key?(:'repository_version')
197
+ self.repository_version = attributes[:'repository_version']
198
+ end
199
+
204
200
  if attributes.key?(:'pulp_last_updated')
205
201
  self.pulp_last_updated = attributes[:'pulp_last_updated']
206
202
  end
207
203
 
204
+ if attributes.key?(:'no_content_change_since')
205
+ self.no_content_change_since = attributes[:'no_content_change_since']
206
+ end
207
+
208
208
  if attributes.key?(:'registry_path')
209
209
  self.registry_path = attributes[:'registry_path']
210
210
  end
@@ -256,19 +256,19 @@ module PulpContainerClient
256
256
  def ==(o)
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
- hidden == o.hidden &&
260
- pulp_labels == o.pulp_labels &&
261
259
  pulp_href == o.pulp_href &&
262
- no_content_change_since == o.no_content_change_since &&
263
- content_guard_prn == o.content_guard_prn &&
264
- prn == o.prn &&
265
- repository == o.repository &&
266
260
  pulp_created == o.pulp_created &&
267
- name == o.name &&
268
- repository_version == o.repository_version &&
269
261
  content_guard == o.content_guard &&
262
+ hidden == o.hidden &&
263
+ prn == o.prn &&
264
+ content_guard_prn == o.content_guard_prn &&
265
+ name == o.name &&
266
+ pulp_labels == o.pulp_labels &&
267
+ repository == o.repository &&
270
268
  base_path == o.base_path &&
269
+ repository_version == o.repository_version &&
271
270
  pulp_last_updated == o.pulp_last_updated &&
271
+ no_content_change_since == o.no_content_change_since &&
272
272
  registry_path == o.registry_path &&
273
273
  remote == o.remote &&
274
274
  namespace == o.namespace &&
@@ -285,7 +285,7 @@ module PulpContainerClient
285
285
  # Calculates hash code according to all attributes.
286
286
  # @return [Integer] Hash code
287
287
  def hash
288
- [hidden, pulp_labels, pulp_href, no_content_change_since, content_guard_prn, prn, repository, pulp_created, name, repository_version, content_guard, base_path, pulp_last_updated, registry_path, remote, namespace, private, description].hash
288
+ [pulp_href, pulp_created, content_guard, hidden, prn, content_guard_prn, name, pulp_labels, repository, base_path, repository_version, pulp_last_updated, no_content_change_since, registry_path, remote, namespace, private, description].hash
289
289
  end
290
290
 
291
291
  # Builds the object from hash
@@ -16,26 +16,26 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistribution
19
+ # An optional content-guard. If none is specified, a default one will be used.
20
+ attr_accessor :content_guard
21
+
19
22
  # Whether this distribution should be shown in the content app.
20
23
  attr_accessor :hidden
21
24
 
25
+ # A unique name. Ex, `rawhide` and `stable`.
26
+ attr_accessor :name
27
+
22
28
  attr_accessor :pulp_labels
23
29
 
24
30
  # The latest RepositoryVersion for this Repository will be served.
25
31
  attr_accessor :repository
26
32
 
27
- # A unique name. Ex, `rawhide` and `stable`.
28
- attr_accessor :name
33
+ # The registry path exposed by this pull-through distribution.
34
+ attr_accessor :base_path
29
35
 
30
36
  # RepositoryVersion to be served
31
37
  attr_accessor :repository_version
32
38
 
33
- # An optional content-guard. If none is specified, a default one will be used.
34
- attr_accessor :content_guard
35
-
36
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
37
- attr_accessor :base_path
38
-
39
39
  # Remote that can be used to fetch content when using pull-through caching.
40
40
  attr_accessor :remote
41
41
 
@@ -51,13 +51,13 @@ module PulpContainerClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
+ :'content_guard' => :'content_guard',
54
55
  :'hidden' => :'hidden',
56
+ :'name' => :'name',
55
57
  :'pulp_labels' => :'pulp_labels',
56
58
  :'repository' => :'repository',
57
- :'name' => :'name',
58
- :'repository_version' => :'repository_version',
59
- :'content_guard' => :'content_guard',
60
59
  :'base_path' => :'base_path',
60
+ :'repository_version' => :'repository_version',
61
61
  :'remote' => :'remote',
62
62
  :'distributions' => :'distributions',
63
63
  :'private' => :'private',
@@ -73,13 +73,13 @@ module PulpContainerClient
73
73
  # Attribute type mapping.
74
74
  def self.openapi_types
75
75
  {
76
+ :'content_guard' => :'String',
76
77
  :'hidden' => :'Boolean',
78
+ :'name' => :'String',
77
79
  :'pulp_labels' => :'Hash<String, String>',
78
80
  :'repository' => :'String',
79
- :'name' => :'String',
80
- :'repository_version' => :'String',
81
- :'content_guard' => :'String',
82
81
  :'base_path' => :'String',
82
+ :'repository_version' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -111,12 +111,22 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
+ if attributes.key?(:'content_guard')
115
+ self.content_guard = attributes[:'content_guard']
116
+ end
117
+
114
118
  if attributes.key?(:'hidden')
115
119
  self.hidden = attributes[:'hidden']
116
120
  else
117
121
  self.hidden = false
118
122
  end
119
123
 
124
+ if attributes.key?(:'name')
125
+ self.name = attributes[:'name']
126
+ else
127
+ self.name = nil
128
+ end
129
+
120
130
  if attributes.key?(:'pulp_labels')
121
131
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
132
  self.pulp_labels = value
@@ -127,26 +137,16 @@ module PulpContainerClient
127
137
  self.repository = attributes[:'repository']
128
138
  end
129
139
 
130
- if attributes.key?(:'name')
131
- self.name = attributes[:'name']
140
+ if attributes.key?(:'base_path')
141
+ self.base_path = attributes[:'base_path']
132
142
  else
133
- self.name = nil
143
+ self.base_path = nil
134
144
  end
135
145
 
136
146
  if attributes.key?(:'repository_version')
137
147
  self.repository_version = attributes[:'repository_version']
138
148
  end
139
149
 
140
- if attributes.key?(:'content_guard')
141
- self.content_guard = attributes[:'content_guard']
142
- end
143
-
144
- if attributes.key?(:'base_path')
145
- self.base_path = attributes[:'base_path']
146
- else
147
- self.base_path = nil
148
- end
149
-
150
150
  if attributes.key?(:'remote')
151
151
  self.remote = attributes[:'remote']
152
152
  else
@@ -256,13 +256,13 @@ module PulpContainerClient
256
256
  def ==(o)
257
257
  return true if self.equal?(o)
258
258
  self.class == o.class &&
259
+ content_guard == o.content_guard &&
259
260
  hidden == o.hidden &&
261
+ name == o.name &&
260
262
  pulp_labels == o.pulp_labels &&
261
263
  repository == o.repository &&
262
- name == o.name &&
263
- repository_version == o.repository_version &&
264
- content_guard == o.content_guard &&
265
264
  base_path == o.base_path &&
265
+ repository_version == o.repository_version &&
266
266
  remote == o.remote &&
267
267
  distributions == o.distributions &&
268
268
  private == o.private &&
@@ -278,7 +278,7 @@ module PulpContainerClient
278
278
  # Calculates hash code according to all attributes.
279
279
  # @return [Integer] Hash code
280
280
  def hash
281
- [hidden, pulp_labels, repository, name, repository_version, content_guard, base_path, remote, distributions, private, description].hash
281
+ [content_guard, hidden, name, pulp_labels, repository, base_path, repository_version, remote, distributions, private, description].hash
282
282
  end
283
283
 
284
284
  # Builds the object from hash