nodeum_sdk 1.86.0 → 1.87.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 (101) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +32 -4
  3. data/docs/ByDateFacet.md +4 -4
  4. data/docs/ByMetadataBucket.md +17 -0
  5. data/docs/ByMetadataBucketAllOf.md +17 -0
  6. data/docs/ByMetadataFacet.md +17 -0
  7. data/docs/ByMetadataFacetAllOf.md +17 -0
  8. data/docs/ByMetadataKeyBucket.md +17 -0
  9. data/docs/ByMetadataKeyBucketAllOf.md +17 -0
  10. data/docs/ByMetadataKeyBuckets.md +17 -0
  11. data/docs/ByMetadataValueBuckets.md +17 -0
  12. data/docs/ByPrimaryStorageFacet.md +4 -4
  13. data/docs/ByPrimaryTypeFacet.md +4 -4
  14. data/docs/BySecondaryStorageFacet.md +4 -4
  15. data/docs/BySizeFacet.md +4 -4
  16. data/docs/ByTaskMetadataFacet.md +17 -0
  17. data/docs/ByTaskMetadataFacetAllOf.md +17 -0
  18. data/docs/ByTypeFacetBucket.md +1 -1
  19. data/docs/CloudBucket.md +3 -1
  20. data/docs/CloudBucketsApi.md +61 -0
  21. data/docs/CloudConnector.md +3 -1
  22. data/docs/DefaultFacet.md +1 -1
  23. data/docs/FileFacet.md +3 -3
  24. data/docs/FileFacetAllOf.md +3 -3
  25. data/docs/FileMetadataDefinition.md +16 -0
  26. data/docs/FileMetadataDefinitionCollection.md +19 -0
  27. data/docs/MetadataApi.md +252 -0
  28. data/docs/MetadataDefinition.md +27 -0
  29. data/docs/StatisticsApi.md +136 -0
  30. data/docs/StorageCloudBucketFacets.md +1 -1
  31. data/docs/StorageFacet.md +1 -1
  32. data/docs/StorageNasShareFacets.md +1 -1
  33. data/docs/StoragePoolFacets.md +1 -1
  34. data/docs/StorageTapeFacets.md +1 -1
  35. data/docs/SystemGroup.md +3 -3
  36. data/docs/SystemUser.md +4 -4
  37. data/docs/TaskFacet.md +11 -7
  38. data/docs/TaskFacetAllOf.md +11 -7
  39. data/docs/TaskFacetBucket.md +12 -8
  40. data/docs/TaskFacetMetadataBucket.md +35 -0
  41. data/docs/TaskFacetMetadataKeyBucket.md +17 -0
  42. data/docs/TaskFacetMetadataKeyBucketAllOf.md +17 -0
  43. data/docs/TaskFacetMetadataKeyBuckets.md +17 -0
  44. data/docs/TaskFacetMetadataValueBuckets.md +17 -0
  45. data/docs/TaskMetadataDefinition.md +25 -0
  46. data/docs/TaskMetadataDefinitionAllOf.md +25 -0
  47. data/docs/TaskMetadataDefinitionCollection.md +19 -0
  48. data/lib/nodeum_sdk.rb +22 -0
  49. data/lib/nodeum_sdk/api/cloud_buckets_api.rb +71 -0
  50. data/lib/nodeum_sdk/api/metadata_api.rb +270 -0
  51. data/lib/nodeum_sdk/api/statistics_api.rb +151 -0
  52. data/lib/nodeum_sdk/models/by_metadata_bucket.rb +218 -0
  53. data/lib/nodeum_sdk/models/by_metadata_bucket_all_of.rb +206 -0
  54. data/lib/nodeum_sdk/models/by_metadata_facet.rb +218 -0
  55. data/lib/nodeum_sdk/models/by_metadata_facet_all_of.rb +206 -0
  56. data/lib/nodeum_sdk/models/by_metadata_key_bucket.rb +218 -0
  57. data/lib/nodeum_sdk/models/by_metadata_key_bucket_all_of.rb +206 -0
  58. data/lib/nodeum_sdk/models/by_metadata_key_buckets.rb +208 -0
  59. data/lib/nodeum_sdk/models/by_metadata_value_buckets.rb +208 -0
  60. data/lib/nodeum_sdk/models/by_task_metadata_facet.rb +218 -0
  61. data/lib/nodeum_sdk/models/by_task_metadata_facet_all_of.rb +206 -0
  62. data/lib/nodeum_sdk/models/cloud_bucket.rb +14 -4
  63. data/lib/nodeum_sdk/models/cloud_connector.rb +16 -6
  64. data/lib/nodeum_sdk/models/file_metadata_definition.rb +230 -0
  65. data/lib/nodeum_sdk/models/file_metadata_definition_collection.rb +217 -0
  66. data/lib/nodeum_sdk/models/metadata_definition.rb +285 -0
  67. data/lib/nodeum_sdk/models/task_facet.rb +22 -4
  68. data/lib/nodeum_sdk/models/task_facet_all_of.rb +22 -4
  69. data/lib/nodeum_sdk/models/task_facet_bucket.rb +22 -4
  70. data/lib/nodeum_sdk/models/task_facet_metadata_bucket.rb +295 -0
  71. data/lib/nodeum_sdk/models/task_facet_metadata_key_bucket.rb +218 -0
  72. data/lib/nodeum_sdk/models/task_facet_metadata_key_bucket_all_of.rb +206 -0
  73. data/lib/nodeum_sdk/models/task_facet_metadata_key_buckets.rb +208 -0
  74. data/lib/nodeum_sdk/models/task_facet_metadata_value_buckets.rb +208 -0
  75. data/lib/nodeum_sdk/models/task_metadata_definition.rb +288 -0
  76. data/lib/nodeum_sdk/models/task_metadata_definition_all_of.rb +276 -0
  77. data/lib/nodeum_sdk/models/task_metadata_definition_collection.rb +217 -0
  78. data/lib/nodeum_sdk/version.rb +1 -1
  79. data/spec/api/metadata_api_spec.rb +85 -0
  80. data/spec/models/by_metadata_bucket_all_of_spec.rb +41 -0
  81. data/spec/models/by_metadata_bucket_spec.rb +41 -0
  82. data/spec/models/by_metadata_facet_all_of_spec.rb +41 -0
  83. data/spec/models/by_metadata_facet_spec.rb +41 -0
  84. data/spec/models/by_metadata_key_bucket_all_of_spec.rb +41 -0
  85. data/spec/models/by_metadata_key_bucket_spec.rb +41 -0
  86. data/spec/models/by_metadata_key_buckets_spec.rb +41 -0
  87. data/spec/models/by_metadata_value_buckets_spec.rb +41 -0
  88. data/spec/models/by_task_metadata_facet_all_of_spec.rb +41 -0
  89. data/spec/models/by_task_metadata_facet_spec.rb +41 -0
  90. data/spec/models/file_metadata_definition_collection_spec.rb +47 -0
  91. data/spec/models/file_metadata_definition_spec.rb +35 -0
  92. data/spec/models/metadata_definition_spec.rb +75 -0
  93. data/spec/models/task_facet_metadata_bucket_spec.rb +95 -0
  94. data/spec/models/task_facet_metadata_key_bucket_all_of_spec.rb +41 -0
  95. data/spec/models/task_facet_metadata_key_bucket_spec.rb +41 -0
  96. data/spec/models/task_facet_metadata_key_buckets_spec.rb +41 -0
  97. data/spec/models/task_facet_metadata_value_buckets_spec.rb +41 -0
  98. data/spec/models/task_metadata_definition_all_of_spec.rb +69 -0
  99. data/spec/models/task_metadata_definition_collection_spec.rb +47 -0
  100. data/spec/models/task_metadata_definition_spec.rb +69 -0
  101. metadata +245 -157
@@ -0,0 +1,285 @@
1
+ =begin
2
+ #Nodeum API
3
+
4
+ #The Nodeum API makes it easy to tap into the digital data mesh that runs across your organisation. Make requests to our API endpoints and we’ll give you everything you need to interconnect your business workflows with your storage. All production API requests are made to: http://nodeumhostname/api/ The current production version of the API is v1. **REST** The Nodeum API is a RESTful API. This means that the API is designed to allow you to get, create, update, & delete objects with the HTTP verbs GET, POST, PUT, PATCH, & DELETE. **JSON** The Nodeum API speaks exclusively in JSON. This means that you should always set the Content-Type header to application/json to ensure that your requests are properly accepted and processed by the API. **Authentication** All API calls require user-password authentication. **Cross-Origin Resource Sharing** The Nodeum API supports CORS for communicating from Javascript for these endpoints. You will need to specify an Origin URI when creating your application to allow for CORS to be whitelisted for your domain. **Pagination** Some endpoints such as File Listing return a potentially lengthy array of objects. In order to keep the response sizes manageable the API will take advantage of pagination. Pagination is a mechanism for returning a subset of the results for a request and allowing for subsequent requests to “page” through the rest of the results until the end is reached. Paginated endpoints follow a standard interface that accepts two query parameters, limit and offset, and return a payload that follows a standard form. These parameters names and their behavior are borrowed from SQL LIMIT and OFFSET keywords. **Versioning** The Nodeum API is constantly being worked on to add features, make improvements, and fix bugs. This means that you should expect changes to be introduced and documented. However, there are some changes or additions that are considered backwards-compatible and your applications should be flexible enough to handle them. These include: - Adding new endpoints to the API - Adding new attributes to the response of an existing endpoint - Changing the order of attributes of responses (JSON by definition is an object of unordered key/value pairs) **Filter parameters** When browsing a list of items, multiple filter parameters may be applied. Some operators can be added to the value as a prefix: - `=` value is equal. Default operator, may be omitted - `!=` value is different - `>` greater than - `>=` greater than or equal - `<` lower than - `>=` lower than or equal - `><` included in list, items should be separated by `|` - `!><` not included in list, items should be separated by `|` - `~` pattern matching, may include `%` (any characters) and `_` (one character) - `!~` pattern not matching, may include `%` (any characters) and `_` (one character)
5
+
6
+ The version of the OpenAPI document: 2.1.0
7
+ Contact: info@nodeum.io
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module Nodeum
16
+ class MetadataDefinition
17
+ attr_accessor :id
18
+
19
+ attr_accessor :key
20
+
21
+ attr_accessor :name
22
+
23
+ attr_accessor :mandatory
24
+
25
+ attr_accessor :type
26
+
27
+ attr_accessor :comment
28
+
29
+ class EnumAttributeValidator
30
+ attr_reader :datatype
31
+ attr_reader :allowable_values
32
+
33
+ def initialize(datatype, allowable_values)
34
+ @allowable_values = allowable_values.map do |value|
35
+ case datatype.to_s
36
+ when /Integer/i
37
+ value.to_i
38
+ when /Float/i
39
+ value.to_f
40
+ else
41
+ value
42
+ end
43
+ end
44
+ end
45
+
46
+ def valid?(value)
47
+ !value || allowable_values.include?(value)
48
+ end
49
+ end
50
+
51
+ # Attribute mapping from ruby-style variable name to JSON key.
52
+ def self.attribute_map
53
+ {
54
+ :'id' => :'id',
55
+ :'key' => :'key',
56
+ :'name' => :'name',
57
+ :'mandatory' => :'mandatory',
58
+ :'type' => :'type',
59
+ :'comment' => :'comment'
60
+ }
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.openapi_types
65
+ {
66
+ :'id' => :'Integer',
67
+ :'key' => :'String',
68
+ :'name' => :'String',
69
+ :'mandatory' => :'Boolean',
70
+ :'type' => :'String',
71
+ :'comment' => :'String'
72
+ }
73
+ end
74
+
75
+ # List of attributes with nullable: true
76
+ def self.openapi_nullable
77
+ Set.new([
78
+ ])
79
+ end
80
+
81
+ # Initializes the object
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ def initialize(attributes = {})
84
+ if (!attributes.is_a?(Hash))
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `Nodeum::MetadataDefinition` initialize method"
86
+ end
87
+
88
+ # check to see if the attribute exists and convert string to symbol for hash key
89
+ attributes = attributes.each_with_object({}) { |(k, v), h|
90
+ if (!self.class.attribute_map.key?(k.to_sym))
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `Nodeum::MetadataDefinition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ end
93
+ h[k.to_sym] = v
94
+ }
95
+
96
+ if attributes.key?(:'id')
97
+ self.id = attributes[:'id']
98
+ end
99
+
100
+ if attributes.key?(:'key')
101
+ self.key = attributes[:'key']
102
+ end
103
+
104
+ if attributes.key?(:'name')
105
+ self.name = attributes[:'name']
106
+ end
107
+
108
+ if attributes.key?(:'mandatory')
109
+ self.mandatory = attributes[:'mandatory']
110
+ end
111
+
112
+ if attributes.key?(:'type')
113
+ self.type = attributes[:'type']
114
+ end
115
+
116
+ if attributes.key?(:'comment')
117
+ self.comment = attributes[:'comment']
118
+ end
119
+ end
120
+
121
+ # Show invalid properties with the reasons. Usually used together with valid?
122
+ # @return Array for valid properties with the reasons
123
+ def list_invalid_properties
124
+ invalid_properties = Array.new
125
+ invalid_properties
126
+ end
127
+
128
+ # Check to see if the all the properties in the model are valid
129
+ # @return true if the model is valid
130
+ def valid?
131
+ type_validator = EnumAttributeValidator.new('String', ["input_text", "text_area", "checkbox", "radio", "multi_text"])
132
+ return false unless type_validator.valid?(@type)
133
+ true
134
+ end
135
+
136
+ # Custom attribute writer method checking allowed values (enum).
137
+ # @param [Object] type Object to be assigned
138
+ def type=(type)
139
+ validator = EnumAttributeValidator.new('String', ["input_text", "text_area", "checkbox", "radio", "multi_text"])
140
+ unless validator.valid?(type)
141
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
142
+ end
143
+ @type = type
144
+ end
145
+
146
+ # Checks equality by comparing each attribute.
147
+ # @param [Object] Object to be compared
148
+ def ==(o)
149
+ return true if self.equal?(o)
150
+ self.class == o.class &&
151
+ id == o.id &&
152
+ key == o.key &&
153
+ name == o.name &&
154
+ mandatory == o.mandatory &&
155
+ type == o.type &&
156
+ comment == o.comment
157
+ end
158
+
159
+ # @see the `==` method
160
+ # @param [Object] Object to be compared
161
+ def eql?(o)
162
+ self == o
163
+ end
164
+
165
+ # Calculates hash code according to all attributes.
166
+ # @return [Integer] Hash code
167
+ def hash
168
+ [id, key, name, mandatory, type, comment].hash
169
+ end
170
+
171
+ # Builds the object from hash
172
+ # @param [Hash] attributes Model attributes in the form of hash
173
+ # @return [Object] Returns the model itself
174
+ def self.build_from_hash(attributes)
175
+ new.build_from_hash(attributes)
176
+ end
177
+
178
+ # Builds the object from hash
179
+ # @param [Hash] attributes Model attributes in the form of hash
180
+ # @return [Object] Returns the model itself
181
+ def build_from_hash(attributes)
182
+ return nil unless attributes.is_a?(Hash)
183
+ self.class.openapi_types.each_pair do |key, type|
184
+ if type =~ /\AArray<(.*)>/i
185
+ # check to ensure the input is an array given that the attribute
186
+ # is documented as an array but the input is not
187
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
188
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
189
+ end
190
+ elsif !attributes[self.class.attribute_map[key]].nil?
191
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
192
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
193
+ end
194
+
195
+ self
196
+ end
197
+
198
+ # Deserializes the data based on type
199
+ # @param string type Data type
200
+ # @param string value Value to be deserialized
201
+ # @return [Object] Deserialized data
202
+ def _deserialize(type, value)
203
+ case type.to_sym
204
+ when :DateTime
205
+ DateTime.parse(value)
206
+ when :Date
207
+ Date.parse(value)
208
+ when :String
209
+ value.to_s
210
+ when :Integer
211
+ value.to_i
212
+ when :Float
213
+ value.to_f
214
+ when :Boolean
215
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
216
+ true
217
+ else
218
+ false
219
+ end
220
+ when :Object
221
+ # generic object (usually a Hash), return directly
222
+ value
223
+ when /\AArray<(?<inner_type>.+)>\z/
224
+ inner_type = Regexp.last_match[:inner_type]
225
+ value.map { |v| _deserialize(inner_type, v) }
226
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
227
+ k_type = Regexp.last_match[:k_type]
228
+ v_type = Regexp.last_match[:v_type]
229
+ {}.tap do |hash|
230
+ value.each do |k, v|
231
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
232
+ end
233
+ end
234
+ else # model
235
+ Nodeum.const_get(type).build_from_hash(value)
236
+ end
237
+ end
238
+
239
+ # Returns the string representation of the object
240
+ # @return [String] String presentation of the object
241
+ def to_s
242
+ to_hash.to_s
243
+ end
244
+
245
+ # to_body is an alias to to_hash (backward compatibility)
246
+ # @return [Hash] Returns the object in the form of hash
247
+ def to_body
248
+ to_hash
249
+ end
250
+
251
+ # Returns the object in the form of hash
252
+ # @return [Hash] Returns the object in the form of hash
253
+ def to_hash
254
+ hash = {}
255
+ self.class.attribute_map.each_pair do |attr, param|
256
+ value = self.send(attr)
257
+ if value.nil?
258
+ is_nullable = self.class.openapi_nullable.include?(attr)
259
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
260
+ end
261
+
262
+ hash[param] = _to_hash(value)
263
+ end
264
+ hash
265
+ end
266
+
267
+ # Outputs non-array value in the form of hash
268
+ # For object, use to_hash. Otherwise, just return the value
269
+ # @param [Object] value Any valid value
270
+ # @return [Hash] Returns the value in the form of hash
271
+ def _to_hash(value)
272
+ if value.is_a?(Array)
273
+ value.compact.map { |v| _to_hash(v) }
274
+ elsif value.is_a?(Hash)
275
+ {}.tap do |hash|
276
+ value.each { |k, v| hash[k] = _to_hash(v) }
277
+ end
278
+ elsif value.respond_to? :to_hash
279
+ value.to_hash
280
+ else
281
+ value
282
+ end
283
+ end
284
+ end
285
+ end
@@ -26,6 +26,10 @@ module Nodeum
26
26
 
27
27
  attr_accessor :bandwidth_avg
28
28
 
29
+ attr_accessor :bandwidth_count
30
+
31
+ attr_accessor :tasks_count
32
+
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
30
34
  def self.attribute_map
31
35
  {
@@ -34,7 +38,9 @@ module Nodeum
34
38
  :'to_process_files_sum' => :'to_process_files_sum',
35
39
  :'processed_files_sum' => :'processed_files_sum',
36
40
  :'finalized_files_sum' => :'finalized_files_sum',
37
- :'bandwidth_avg' => :'bandwidth_avg'
41
+ :'bandwidth_avg' => :'bandwidth_avg',
42
+ :'bandwidth_count' => :'bandwidth_count',
43
+ :'tasks_count' => :'tasks_count'
38
44
  }
39
45
  end
40
46
 
@@ -46,7 +52,9 @@ module Nodeum
46
52
  :'to_process_files_sum' => :'Integer',
47
53
  :'processed_files_sum' => :'Integer',
48
54
  :'finalized_files_sum' => :'Integer',
49
- :'bandwidth_avg' => :'Integer'
55
+ :'bandwidth_avg' => :'Integer',
56
+ :'bandwidth_count' => :'Integer',
57
+ :'tasks_count' => :'Integer'
50
58
  }
51
59
  end
52
60
 
@@ -105,6 +113,14 @@ module Nodeum
105
113
  if attributes.key?(:'bandwidth_avg')
106
114
  self.bandwidth_avg = attributes[:'bandwidth_avg']
107
115
  end
116
+
117
+ if attributes.key?(:'bandwidth_count')
118
+ self.bandwidth_count = attributes[:'bandwidth_count']
119
+ end
120
+
121
+ if attributes.key?(:'tasks_count')
122
+ self.tasks_count = attributes[:'tasks_count']
123
+ end
108
124
  end
109
125
 
110
126
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -130,7 +146,9 @@ module Nodeum
130
146
  to_process_files_sum == o.to_process_files_sum &&
131
147
  processed_files_sum == o.processed_files_sum &&
132
148
  finalized_files_sum == o.finalized_files_sum &&
133
- bandwidth_avg == o.bandwidth_avg && super(o)
149
+ bandwidth_avg == o.bandwidth_avg &&
150
+ bandwidth_count == o.bandwidth_count &&
151
+ tasks_count == o.tasks_count && super(o)
134
152
  end
135
153
 
136
154
  # @see the `==` method
@@ -142,7 +160,7 @@ module Nodeum
142
160
  # Calculates hash code according to all attributes.
143
161
  # @return [Integer] Hash code
144
162
  def hash
145
- [to_process_size_sum, processed_size_sum, to_process_files_sum, processed_files_sum, finalized_files_sum, bandwidth_avg].hash
163
+ [to_process_size_sum, processed_size_sum, to_process_files_sum, processed_files_sum, finalized_files_sum, bandwidth_avg, bandwidth_count, tasks_count].hash
146
164
  end
147
165
 
148
166
  # Builds the object from hash
@@ -26,6 +26,10 @@ module Nodeum
26
26
 
27
27
  attr_accessor :bandwidth_avg
28
28
 
29
+ attr_accessor :bandwidth_count
30
+
31
+ attr_accessor :tasks_count
32
+
29
33
  # Attribute mapping from ruby-style variable name to JSON key.
30
34
  def self.attribute_map
31
35
  {
@@ -34,7 +38,9 @@ module Nodeum
34
38
  :'to_process_files_sum' => :'to_process_files_sum',
35
39
  :'processed_files_sum' => :'processed_files_sum',
36
40
  :'finalized_files_sum' => :'finalized_files_sum',
37
- :'bandwidth_avg' => :'bandwidth_avg'
41
+ :'bandwidth_avg' => :'bandwidth_avg',
42
+ :'bandwidth_count' => :'bandwidth_count',
43
+ :'tasks_count' => :'tasks_count'
38
44
  }
39
45
  end
40
46
 
@@ -46,7 +52,9 @@ module Nodeum
46
52
  :'to_process_files_sum' => :'Integer',
47
53
  :'processed_files_sum' => :'Integer',
48
54
  :'finalized_files_sum' => :'Integer',
49
- :'bandwidth_avg' => :'Integer'
55
+ :'bandwidth_avg' => :'Integer',
56
+ :'bandwidth_count' => :'Integer',
57
+ :'tasks_count' => :'Integer'
50
58
  }
51
59
  end
52
60
 
@@ -94,6 +102,14 @@ module Nodeum
94
102
  if attributes.key?(:'bandwidth_avg')
95
103
  self.bandwidth_avg = attributes[:'bandwidth_avg']
96
104
  end
105
+
106
+ if attributes.key?(:'bandwidth_count')
107
+ self.bandwidth_count = attributes[:'bandwidth_count']
108
+ end
109
+
110
+ if attributes.key?(:'tasks_count')
111
+ self.tasks_count = attributes[:'tasks_count']
112
+ end
97
113
  end
98
114
 
99
115
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,7 +135,9 @@ module Nodeum
119
135
  to_process_files_sum == o.to_process_files_sum &&
120
136
  processed_files_sum == o.processed_files_sum &&
121
137
  finalized_files_sum == o.finalized_files_sum &&
122
- bandwidth_avg == o.bandwidth_avg
138
+ bandwidth_avg == o.bandwidth_avg &&
139
+ bandwidth_count == o.bandwidth_count &&
140
+ tasks_count == o.tasks_count
123
141
  end
124
142
 
125
143
  # @see the `==` method
@@ -131,7 +149,7 @@ module Nodeum
131
149
  # Calculates hash code according to all attributes.
132
150
  # @return [Integer] Hash code
133
151
  def hash
134
- [to_process_size_sum, processed_size_sum, to_process_files_sum, processed_files_sum, finalized_files_sum, bandwidth_avg].hash
152
+ [to_process_size_sum, processed_size_sum, to_process_files_sum, processed_files_sum, finalized_files_sum, bandwidth_avg, bandwidth_count, tasks_count].hash
135
153
  end
136
154
 
137
155
  # Builds the object from hash
@@ -30,6 +30,10 @@ module Nodeum
30
30
 
31
31
  attr_accessor :bandwidth_avg
32
32
 
33
+ attr_accessor :bandwidth_count
34
+
35
+ attr_accessor :tasks_count
36
+
33
37
  # Attribute mapping from ruby-style variable name to JSON key.
34
38
  def self.attribute_map
35
39
  {
@@ -40,7 +44,9 @@ module Nodeum
40
44
  :'to_process_files_sum' => :'to_process_files_sum',
41
45
  :'processed_files_sum' => :'processed_files_sum',
42
46
  :'finalized_files_sum' => :'finalized_files_sum',
43
- :'bandwidth_avg' => :'bandwidth_avg'
47
+ :'bandwidth_avg' => :'bandwidth_avg',
48
+ :'bandwidth_count' => :'bandwidth_count',
49
+ :'tasks_count' => :'tasks_count'
44
50
  }
45
51
  end
46
52
 
@@ -54,7 +60,9 @@ module Nodeum
54
60
  :'to_process_files_sum' => :'Integer',
55
61
  :'processed_files_sum' => :'Integer',
56
62
  :'finalized_files_sum' => :'Integer',
57
- :'bandwidth_avg' => :'Integer'
63
+ :'bandwidth_avg' => :'Integer',
64
+ :'bandwidth_count' => :'Integer',
65
+ :'tasks_count' => :'Integer'
58
66
  }
59
67
  end
60
68
 
@@ -118,6 +126,14 @@ module Nodeum
118
126
  if attributes.key?(:'bandwidth_avg')
119
127
  self.bandwidth_avg = attributes[:'bandwidth_avg']
120
128
  end
129
+
130
+ if attributes.key?(:'bandwidth_count')
131
+ self.bandwidth_count = attributes[:'bandwidth_count']
132
+ end
133
+
134
+ if attributes.key?(:'tasks_count')
135
+ self.tasks_count = attributes[:'tasks_count']
136
+ end
121
137
  end
122
138
 
123
139
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -145,7 +161,9 @@ module Nodeum
145
161
  to_process_files_sum == o.to_process_files_sum &&
146
162
  processed_files_sum == o.processed_files_sum &&
147
163
  finalized_files_sum == o.finalized_files_sum &&
148
- bandwidth_avg == o.bandwidth_avg
164
+ bandwidth_avg == o.bandwidth_avg &&
165
+ bandwidth_count == o.bandwidth_count &&
166
+ tasks_count == o.tasks_count
149
167
  end
150
168
 
151
169
  # @see the `==` method
@@ -157,7 +175,7 @@ module Nodeum
157
175
  # Calculates hash code according to all attributes.
158
176
  # @return [Integer] Hash code
159
177
  def hash
160
- [val, count, to_process_size_sum, processed_size_sum, to_process_files_sum, processed_files_sum, finalized_files_sum, bandwidth_avg].hash
178
+ [val, count, to_process_size_sum, processed_size_sum, to_process_files_sum, processed_files_sum, finalized_files_sum, bandwidth_avg, bandwidth_count, tasks_count].hash
161
179
  end
162
180
 
163
181
  # Builds the object from hash