topological_inventory-api-client 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/docs/Cluster.md +2 -0
  4. data/docs/Container.md +2 -0
  5. data/docs/ContainerGroup.md +2 -0
  6. data/docs/ContainerImage.md +2 -0
  7. data/docs/ContainerNode.md +2 -0
  8. data/docs/ContainerProject.md +2 -0
  9. data/docs/ContainerResourceQuota.md +2 -0
  10. data/docs/ContainerTemplate.md +2 -0
  11. data/docs/Datastore.md +2 -0
  12. data/docs/Flavor.md +2 -0
  13. data/docs/Host.md +2 -0
  14. data/docs/Ipaddress.md +2 -0
  15. data/docs/Network.md +2 -0
  16. data/docs/NetworkAdapter.md +2 -0
  17. data/docs/OrchestrationStack.md +2 -0
  18. data/docs/SecurityGroup.md +2 -0
  19. data/docs/ServiceCredential.md +2 -0
  20. data/docs/ServiceCredentialType.md +2 -0
  21. data/docs/ServiceInstance.md +2 -0
  22. data/docs/ServiceInstanceNode.md +2 -0
  23. data/docs/ServiceInventory.md +2 -0
  24. data/docs/ServiceOffering.md +2 -0
  25. data/docs/ServiceOfferingIcon.md +2 -0
  26. data/docs/ServiceOfferingNode.md +2 -0
  27. data/docs/ServicePlan.md +2 -0
  28. data/docs/SourceRegion.md +2 -0
  29. data/docs/Subnet.md +2 -0
  30. data/docs/Subscription.md +2 -0
  31. data/docs/Task.md +6 -0
  32. data/docs/Vm.md +2 -0
  33. data/docs/Volume.md +2 -0
  34. data/docs/VolumeAttachment.md +2 -0
  35. data/docs/VolumeType.md +2 -0
  36. data/lib/topological_inventory-api-client/models/cluster.rb +28 -1
  37. data/lib/topological_inventory-api-client/models/container.rb +28 -1
  38. data/lib/topological_inventory-api-client/models/container_group.rb +28 -1
  39. data/lib/topological_inventory-api-client/models/container_image.rb +28 -1
  40. data/lib/topological_inventory-api-client/models/container_node.rb +28 -1
  41. data/lib/topological_inventory-api-client/models/container_project.rb +28 -1
  42. data/lib/topological_inventory-api-client/models/container_resource_quota.rb +28 -1
  43. data/lib/topological_inventory-api-client/models/container_template.rb +28 -1
  44. data/lib/topological_inventory-api-client/models/datastore.rb +28 -1
  45. data/lib/topological_inventory-api-client/models/flavor.rb +28 -1
  46. data/lib/topological_inventory-api-client/models/host.rb +28 -1
  47. data/lib/topological_inventory-api-client/models/ipaddress.rb +28 -1
  48. data/lib/topological_inventory-api-client/models/network.rb +28 -1
  49. data/lib/topological_inventory-api-client/models/network_adapter.rb +28 -1
  50. data/lib/topological_inventory-api-client/models/orchestration_stack.rb +28 -1
  51. data/lib/topological_inventory-api-client/models/security_group.rb +28 -1
  52. data/lib/topological_inventory-api-client/models/service_credential.rb +28 -1
  53. data/lib/topological_inventory-api-client/models/service_credential_type.rb +28 -1
  54. data/lib/topological_inventory-api-client/models/service_instance.rb +28 -1
  55. data/lib/topological_inventory-api-client/models/service_instance_node.rb +28 -1
  56. data/lib/topological_inventory-api-client/models/service_inventory.rb +28 -1
  57. data/lib/topological_inventory-api-client/models/service_offering.rb +28 -1
  58. data/lib/topological_inventory-api-client/models/service_offering_icon.rb +28 -1
  59. data/lib/topological_inventory-api-client/models/service_offering_node.rb +28 -1
  60. data/lib/topological_inventory-api-client/models/service_plan.rb +28 -1
  61. data/lib/topological_inventory-api-client/models/source_region.rb +28 -1
  62. data/lib/topological_inventory-api-client/models/subnet.rb +28 -1
  63. data/lib/topological_inventory-api-client/models/subscription.rb +28 -1
  64. data/lib/topological_inventory-api-client/models/task.rb +46 -1
  65. data/lib/topological_inventory-api-client/models/vm.rb +28 -1
  66. data/lib/topological_inventory-api-client/models/volume.rb +28 -1
  67. data/lib/topological_inventory-api-client/models/volume_attachment.rb +28 -1
  68. data/lib/topological_inventory-api-client/models/volume_type.rb +28 -1
  69. data/lib/topological_inventory-api-client/version.rb +1 -1
  70. data/pkg/topological_inventory-api-client-3.0.0.gem +0 -0
  71. data/spec/models/cluster_spec.rb +6 -0
  72. data/spec/models/container_group_spec.rb +6 -0
  73. data/spec/models/container_image_spec.rb +6 -0
  74. data/spec/models/container_node_spec.rb +6 -0
  75. data/spec/models/container_project_spec.rb +6 -0
  76. data/spec/models/container_resource_quota_spec.rb +6 -0
  77. data/spec/models/container_spec.rb +6 -0
  78. data/spec/models/container_template_spec.rb +6 -0
  79. data/spec/models/datastore_spec.rb +6 -0
  80. data/spec/models/flavor_spec.rb +6 -0
  81. data/spec/models/host_spec.rb +6 -0
  82. data/spec/models/ipaddress_spec.rb +6 -0
  83. data/spec/models/network_adapter_spec.rb +6 -0
  84. data/spec/models/network_spec.rb +6 -0
  85. data/spec/models/orchestration_stack_spec.rb +6 -0
  86. data/spec/models/security_group_spec.rb +6 -0
  87. data/spec/models/service_credential_spec.rb +6 -0
  88. data/spec/models/service_credential_type_spec.rb +6 -0
  89. data/spec/models/service_instance_node_spec.rb +6 -0
  90. data/spec/models/service_instance_spec.rb +6 -0
  91. data/spec/models/service_inventory_spec.rb +6 -0
  92. data/spec/models/service_offering_icon_spec.rb +6 -0
  93. data/spec/models/service_offering_node_spec.rb +6 -0
  94. data/spec/models/service_offering_spec.rb +6 -0
  95. data/spec/models/service_plan_spec.rb +6 -0
  96. data/spec/models/source_region_spec.rb +6 -0
  97. data/spec/models/subnet_spec.rb +6 -0
  98. data/spec/models/subscription_spec.rb +6 -0
  99. data/spec/models/task_spec.rb +18 -0
  100. data/spec/models/vm_spec.rb +6 -0
  101. data/spec/models/volume_attachment_spec.rb +6 -0
  102. data/spec/models/volume_spec.rb +6 -0
  103. data/spec/models/volume_type_spec.rb +6 -0
  104. metadata +36 -35
@@ -48,6 +48,9 @@ module TopologicalInventoryApiClient
48
48
 
49
49
  attr_accessor :pods
50
50
 
51
+ # ID of the resource
52
+ attr_accessor :refresh_state_part_id
53
+
51
54
  attr_accessor :resource_version
52
55
 
53
56
  attr_accessor :source_created_at
@@ -80,6 +83,7 @@ module TopologicalInventoryApiClient
80
83
  :'name' => :'name',
81
84
  :'node_info' => :'node_info',
82
85
  :'pods' => :'pods',
86
+ :'refresh_state_part_id' => :'refresh_state_part_id',
83
87
  :'resource_version' => :'resource_version',
84
88
  :'source_created_at' => :'source_created_at',
85
89
  :'source_deleted_at' => :'source_deleted_at',
@@ -108,6 +112,7 @@ module TopologicalInventoryApiClient
108
112
  :'name' => :'String',
109
113
  :'node_info' => :'Object',
110
114
  :'pods' => :'Integer',
115
+ :'refresh_state_part_id' => :'String',
111
116
  :'resource_version' => :'String',
112
117
  :'source_created_at' => :'DateTime',
113
118
  :'source_deleted_at' => :'DateTime',
@@ -202,6 +207,10 @@ module TopologicalInventoryApiClient
202
207
  self.pods = attributes[:'pods']
203
208
  end
204
209
 
210
+ if attributes.key?(:'refresh_state_part_id')
211
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
212
+ end
213
+
205
214
  if attributes.key?(:'resource_version')
206
215
  self.resource_version = attributes[:'resource_version']
207
216
  end
@@ -241,6 +250,11 @@ module TopologicalInventoryApiClient
241
250
  invalid_properties.push("invalid value for \"lives_on_id\", must conform to the pattern #{pattern}.")
242
251
  end
243
252
 
253
+ pattern = Regexp.new(/^\d+$/)
254
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
255
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
256
+ end
257
+
244
258
  pattern = Regexp.new(/^\d+$/)
245
259
  if !@source_id.nil? && @source_id !~ pattern
246
260
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -254,6 +268,7 @@ module TopologicalInventoryApiClient
254
268
  def valid?
255
269
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
256
270
  return false if !@lives_on_id.nil? && @lives_on_id !~ Regexp.new(/^\d+$/)
271
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
257
272
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
258
273
  true
259
274
  end
@@ -280,6 +295,17 @@ module TopologicalInventoryApiClient
280
295
  @lives_on_id = lives_on_id
281
296
  end
282
297
 
298
+ # Custom attribute writer method with validation
299
+ # @param [Object] refresh_state_part_id Value to be assigned
300
+ def refresh_state_part_id=(refresh_state_part_id)
301
+ pattern = Regexp.new(/^\d+$/)
302
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
303
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
304
+ end
305
+
306
+ @refresh_state_part_id = refresh_state_part_id
307
+ end
308
+
283
309
  # Custom attribute writer method with validation
284
310
  # @param [Object] source_id Value to be assigned
285
311
  def source_id=(source_id)
@@ -312,6 +338,7 @@ module TopologicalInventoryApiClient
312
338
  name == o.name &&
313
339
  node_info == o.node_info &&
314
340
  pods == o.pods &&
341
+ refresh_state_part_id == o.refresh_state_part_id &&
315
342
  resource_version == o.resource_version &&
316
343
  source_created_at == o.source_created_at &&
317
344
  source_deleted_at == o.source_deleted_at &&
@@ -329,7 +356,7 @@ module TopologicalInventoryApiClient
329
356
  # Calculates hash code according to all attributes.
330
357
  # @return [Integer] Hash code
331
358
  def hash
332
- [addresses, allocatable_cpus, allocatable_memory, allocatable_pods, archived_at, conditions, cpus, created_at, id, last_seen_at, lives_on_id, lives_on_type, memory, name, node_info, pods, resource_version, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
359
+ [addresses, allocatable_cpus, allocatable_memory, allocatable_pods, archived_at, conditions, cpus, created_at, id, last_seen_at, lives_on_id, lives_on_type, memory, name, node_info, pods, refresh_state_part_id, resource_version, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
333
360
  end
334
361
 
335
362
  # Builds the object from hash
@@ -27,6 +27,9 @@ module TopologicalInventoryApiClient
27
27
 
28
28
  attr_accessor :name
29
29
 
30
+ # ID of the resource
31
+ attr_accessor :refresh_state_part_id
32
+
30
33
  attr_accessor :resource_version
31
34
 
32
35
  attr_accessor :source_created_at
@@ -51,6 +54,7 @@ module TopologicalInventoryApiClient
51
54
  :'id' => :'id',
52
55
  :'last_seen_at' => :'last_seen_at',
53
56
  :'name' => :'name',
57
+ :'refresh_state_part_id' => :'refresh_state_part_id',
54
58
  :'resource_version' => :'resource_version',
55
59
  :'source_created_at' => :'source_created_at',
56
60
  :'source_deleted_at' => :'source_deleted_at',
@@ -70,6 +74,7 @@ module TopologicalInventoryApiClient
70
74
  :'id' => :'String',
71
75
  :'last_seen_at' => :'DateTime',
72
76
  :'name' => :'String',
77
+ :'refresh_state_part_id' => :'String',
73
78
  :'resource_version' => :'String',
74
79
  :'source_created_at' => :'DateTime',
75
80
  :'source_deleted_at' => :'DateTime',
@@ -125,6 +130,10 @@ module TopologicalInventoryApiClient
125
130
  self.name = attributes[:'name']
126
131
  end
127
132
 
133
+ if attributes.key?(:'refresh_state_part_id')
134
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
135
+ end
136
+
128
137
  if attributes.key?(:'resource_version')
129
138
  self.resource_version = attributes[:'resource_version']
130
139
  end
@@ -163,6 +172,11 @@ module TopologicalInventoryApiClient
163
172
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
164
173
  end
165
174
 
175
+ pattern = Regexp.new(/^\d+$/)
176
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
177
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
178
+ end
179
+
166
180
  pattern = Regexp.new(/^\d+$/)
167
181
  if !@source_id.nil? && @source_id !~ pattern
168
182
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -175,6 +189,7 @@ module TopologicalInventoryApiClient
175
189
  # @return true if the model is valid
176
190
  def valid?
177
191
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
192
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
178
193
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
179
194
  true
180
195
  end
@@ -190,6 +205,17 @@ module TopologicalInventoryApiClient
190
205
  @id = id
191
206
  end
192
207
 
208
+ # Custom attribute writer method with validation
209
+ # @param [Object] refresh_state_part_id Value to be assigned
210
+ def refresh_state_part_id=(refresh_state_part_id)
211
+ pattern = Regexp.new(/^\d+$/)
212
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
213
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
214
+ end
215
+
216
+ @refresh_state_part_id = refresh_state_part_id
217
+ end
218
+
193
219
  # Custom attribute writer method with validation
194
220
  # @param [Object] source_id Value to be assigned
195
221
  def source_id=(source_id)
@@ -212,6 +238,7 @@ module TopologicalInventoryApiClient
212
238
  id == o.id &&
213
239
  last_seen_at == o.last_seen_at &&
214
240
  name == o.name &&
241
+ refresh_state_part_id == o.refresh_state_part_id &&
215
242
  resource_version == o.resource_version &&
216
243
  source_created_at == o.source_created_at &&
217
244
  source_deleted_at == o.source_deleted_at &&
@@ -230,7 +257,7 @@ module TopologicalInventoryApiClient
230
257
  # Calculates hash code according to all attributes.
231
258
  # @return [Integer] Hash code
232
259
  def hash
233
- [archived_at, created_at, display_name, id, last_seen_at, name, resource_version, source_created_at, source_deleted_at, source_id, source_ref, status_phase, updated_at].hash
260
+ [archived_at, created_at, display_name, id, last_seen_at, name, refresh_state_part_id, resource_version, source_created_at, source_deleted_at, source_id, source_ref, status_phase, updated_at].hash
234
261
  end
235
262
 
236
263
  # Builds the object from hash
@@ -28,6 +28,9 @@ module TopologicalInventoryApiClient
28
28
 
29
29
  attr_accessor :name
30
30
 
31
+ # ID of the resource
32
+ attr_accessor :refresh_state_part_id
33
+
31
34
  attr_accessor :resource_version
32
35
 
33
36
  attr_accessor :source_created_at
@@ -54,6 +57,7 @@ module TopologicalInventoryApiClient
54
57
  :'id' => :'id',
55
58
  :'last_seen_at' => :'last_seen_at',
56
59
  :'name' => :'name',
60
+ :'refresh_state_part_id' => :'refresh_state_part_id',
57
61
  :'resource_version' => :'resource_version',
58
62
  :'source_created_at' => :'source_created_at',
59
63
  :'source_deleted_at' => :'source_deleted_at',
@@ -74,6 +78,7 @@ module TopologicalInventoryApiClient
74
78
  :'id' => :'String',
75
79
  :'last_seen_at' => :'DateTime',
76
80
  :'name' => :'String',
81
+ :'refresh_state_part_id' => :'String',
77
82
  :'resource_version' => :'String',
78
83
  :'source_created_at' => :'DateTime',
79
84
  :'source_deleted_at' => :'DateTime',
@@ -130,6 +135,10 @@ module TopologicalInventoryApiClient
130
135
  self.name = attributes[:'name']
131
136
  end
132
137
 
138
+ if attributes.key?(:'refresh_state_part_id')
139
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
140
+ end
141
+
133
142
  if attributes.key?(:'resource_version')
134
143
  self.resource_version = attributes[:'resource_version']
135
144
  end
@@ -177,6 +186,11 @@ module TopologicalInventoryApiClient
177
186
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
178
187
  end
179
188
 
189
+ pattern = Regexp.new(/^\d+$/)
190
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
191
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
192
+ end
193
+
180
194
  pattern = Regexp.new(/^\d+$/)
181
195
  if !@source_id.nil? && @source_id !~ pattern
182
196
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -190,6 +204,7 @@ module TopologicalInventoryApiClient
190
204
  def valid?
191
205
  return false if !@container_project_id.nil? && @container_project_id !~ Regexp.new(/^\d+$/)
192
206
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
207
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
193
208
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
194
209
  true
195
210
  end
@@ -216,6 +231,17 @@ module TopologicalInventoryApiClient
216
231
  @id = id
217
232
  end
218
233
 
234
+ # Custom attribute writer method with validation
235
+ # @param [Object] refresh_state_part_id Value to be assigned
236
+ def refresh_state_part_id=(refresh_state_part_id)
237
+ pattern = Regexp.new(/^\d+$/)
238
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
239
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
240
+ end
241
+
242
+ @refresh_state_part_id = refresh_state_part_id
243
+ end
244
+
219
245
  # Custom attribute writer method with validation
220
246
  # @param [Object] source_id Value to be assigned
221
247
  def source_id=(source_id)
@@ -238,6 +264,7 @@ module TopologicalInventoryApiClient
238
264
  id == o.id &&
239
265
  last_seen_at == o.last_seen_at &&
240
266
  name == o.name &&
267
+ refresh_state_part_id == o.refresh_state_part_id &&
241
268
  resource_version == o.resource_version &&
242
269
  source_created_at == o.source_created_at &&
243
270
  source_deleted_at == o.source_deleted_at &&
@@ -257,7 +284,7 @@ module TopologicalInventoryApiClient
257
284
  # Calculates hash code according to all attributes.
258
285
  # @return [Integer] Hash code
259
286
  def hash
260
- [archived_at, container_project_id, created_at, id, last_seen_at, name, resource_version, source_created_at, source_deleted_at, source_id, source_ref, spec, status, updated_at].hash
287
+ [archived_at, container_project_id, created_at, id, last_seen_at, name, refresh_state_part_id, resource_version, source_created_at, source_deleted_at, source_id, source_ref, spec, status, updated_at].hash
261
288
  end
262
289
 
263
290
  # Builds the object from hash
@@ -28,6 +28,9 @@ module TopologicalInventoryApiClient
28
28
 
29
29
  attr_accessor :name
30
30
 
31
+ # ID of the resource
32
+ attr_accessor :refresh_state_part_id
33
+
31
34
  attr_accessor :resource_version
32
35
 
33
36
  attr_accessor :source_created_at
@@ -50,6 +53,7 @@ module TopologicalInventoryApiClient
50
53
  :'id' => :'id',
51
54
  :'last_seen_at' => :'last_seen_at',
52
55
  :'name' => :'name',
56
+ :'refresh_state_part_id' => :'refresh_state_part_id',
53
57
  :'resource_version' => :'resource_version',
54
58
  :'source_created_at' => :'source_created_at',
55
59
  :'source_deleted_at' => :'source_deleted_at',
@@ -68,6 +72,7 @@ module TopologicalInventoryApiClient
68
72
  :'id' => :'String',
69
73
  :'last_seen_at' => :'DateTime',
70
74
  :'name' => :'String',
75
+ :'refresh_state_part_id' => :'String',
71
76
  :'resource_version' => :'String',
72
77
  :'source_created_at' => :'DateTime',
73
78
  :'source_deleted_at' => :'DateTime',
@@ -122,6 +127,10 @@ module TopologicalInventoryApiClient
122
127
  self.name = attributes[:'name']
123
128
  end
124
129
 
130
+ if attributes.key?(:'refresh_state_part_id')
131
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
132
+ end
133
+
125
134
  if attributes.key?(:'resource_version')
126
135
  self.resource_version = attributes[:'resource_version']
127
136
  end
@@ -161,6 +170,11 @@ module TopologicalInventoryApiClient
161
170
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
162
171
  end
163
172
 
173
+ pattern = Regexp.new(/^\d+$/)
174
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
175
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
176
+ end
177
+
164
178
  pattern = Regexp.new(/^\d+$/)
165
179
  if !@source_id.nil? && @source_id !~ pattern
166
180
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -174,6 +188,7 @@ module TopologicalInventoryApiClient
174
188
  def valid?
175
189
  return false if !@container_project_id.nil? && @container_project_id !~ Regexp.new(/^\d+$/)
176
190
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
191
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
177
192
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
178
193
  true
179
194
  end
@@ -200,6 +215,17 @@ module TopologicalInventoryApiClient
200
215
  @id = id
201
216
  end
202
217
 
218
+ # Custom attribute writer method with validation
219
+ # @param [Object] refresh_state_part_id Value to be assigned
220
+ def refresh_state_part_id=(refresh_state_part_id)
221
+ pattern = Regexp.new(/^\d+$/)
222
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
223
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
224
+ end
225
+
226
+ @refresh_state_part_id = refresh_state_part_id
227
+ end
228
+
203
229
  # Custom attribute writer method with validation
204
230
  # @param [Object] source_id Value to be assigned
205
231
  def source_id=(source_id)
@@ -222,6 +248,7 @@ module TopologicalInventoryApiClient
222
248
  id == o.id &&
223
249
  last_seen_at == o.last_seen_at &&
224
250
  name == o.name &&
251
+ refresh_state_part_id == o.refresh_state_part_id &&
225
252
  resource_version == o.resource_version &&
226
253
  source_created_at == o.source_created_at &&
227
254
  source_deleted_at == o.source_deleted_at &&
@@ -239,7 +266,7 @@ module TopologicalInventoryApiClient
239
266
  # Calculates hash code according to all attributes.
240
267
  # @return [Integer] Hash code
241
268
  def hash
242
- [archived_at, container_project_id, created_at, id, last_seen_at, name, resource_version, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
269
+ [archived_at, container_project_id, created_at, id, last_seen_at, name, refresh_state_part_id, resource_version, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
243
270
  end
244
271
 
245
272
  # Builds the object from hash
@@ -33,6 +33,9 @@ module TopologicalInventoryApiClient
33
33
 
34
34
  attr_accessor :name
35
35
 
36
+ # ID of the resource
37
+ attr_accessor :refresh_state_part_id
38
+
36
39
  attr_accessor :source_created_at
37
40
 
38
41
  attr_accessor :source_deleted_at
@@ -60,6 +63,7 @@ module TopologicalInventoryApiClient
60
63
  :'last_seen_at' => :'last_seen_at',
61
64
  :'location' => :'location',
62
65
  :'name' => :'name',
66
+ :'refresh_state_part_id' => :'refresh_state_part_id',
63
67
  :'source_created_at' => :'source_created_at',
64
68
  :'source_deleted_at' => :'source_deleted_at',
65
69
  :'source_id' => :'source_id',
@@ -82,6 +86,7 @@ module TopologicalInventoryApiClient
82
86
  :'last_seen_at' => :'DateTime',
83
87
  :'location' => :'String',
84
88
  :'name' => :'String',
89
+ :'refresh_state_part_id' => :'String',
85
90
  :'source_created_at' => :'DateTime',
86
91
  :'source_deleted_at' => :'DateTime',
87
92
  :'source_id' => :'String',
@@ -149,6 +154,10 @@ module TopologicalInventoryApiClient
149
154
  self.name = attributes[:'name']
150
155
  end
151
156
 
157
+ if attributes.key?(:'refresh_state_part_id')
158
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
159
+ end
160
+
152
161
  if attributes.key?(:'source_created_at')
153
162
  self.source_created_at = attributes[:'source_created_at']
154
163
  end
@@ -187,6 +196,11 @@ module TopologicalInventoryApiClient
187
196
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
188
197
  end
189
198
 
199
+ pattern = Regexp.new(/^\d+$/)
200
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
201
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
202
+ end
203
+
190
204
  pattern = Regexp.new(/^\d+$/)
191
205
  if !@source_id.nil? && @source_id !~ pattern
192
206
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -199,6 +213,7 @@ module TopologicalInventoryApiClient
199
213
  # @return true if the model is valid
200
214
  def valid?
201
215
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
216
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
202
217
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
203
218
  true
204
219
  end
@@ -214,6 +229,17 @@ module TopologicalInventoryApiClient
214
229
  @id = id
215
230
  end
216
231
 
232
+ # Custom attribute writer method with validation
233
+ # @param [Object] refresh_state_part_id Value to be assigned
234
+ def refresh_state_part_id=(refresh_state_part_id)
235
+ pattern = Regexp.new(/^\d+$/)
236
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
237
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
238
+ end
239
+
240
+ @refresh_state_part_id = refresh_state_part_id
241
+ end
242
+
217
243
  # Custom attribute writer method with validation
218
244
  # @param [Object] source_id Value to be assigned
219
245
  def source_id=(source_id)
@@ -239,6 +265,7 @@ module TopologicalInventoryApiClient
239
265
  last_seen_at == o.last_seen_at &&
240
266
  location == o.location &&
241
267
  name == o.name &&
268
+ refresh_state_part_id == o.refresh_state_part_id &&
242
269
  source_created_at == o.source_created_at &&
243
270
  source_deleted_at == o.source_deleted_at &&
244
271
  source_id == o.source_id &&
@@ -257,7 +284,7 @@ module TopologicalInventoryApiClient
257
284
  # Calculates hash code according to all attributes.
258
285
  # @return [Integer] Hash code
259
286
  def hash
260
- [accessible, archived_at, created_at, extra, free_space, id, last_seen_at, location, name, source_created_at, source_deleted_at, source_id, source_ref, status, total_space, updated_at].hash
287
+ [accessible, archived_at, created_at, extra, free_space, id, last_seen_at, location, name, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, status, total_space, updated_at].hash
261
288
  end
262
289
 
263
290
  # Builds the object from hash
@@ -39,6 +39,9 @@ module TopologicalInventoryApiClient
39
39
 
40
40
  attr_accessor :name
41
41
 
42
+ # ID of the resource
43
+ attr_accessor :refresh_state_part_id
44
+
42
45
  # ID of the resource
43
46
  attr_accessor :source_id
44
47
 
@@ -59,6 +62,7 @@ module TopologicalInventoryApiClient
59
62
  :'last_seen_at' => :'last_seen_at',
60
63
  :'memory' => :'memory',
61
64
  :'name' => :'name',
65
+ :'refresh_state_part_id' => :'refresh_state_part_id',
62
66
  :'source_id' => :'source_id',
63
67
  :'source_ref' => :'source_ref',
64
68
  :'updated_at' => :'updated_at'
@@ -78,6 +82,7 @@ module TopologicalInventoryApiClient
78
82
  :'last_seen_at' => :'DateTime',
79
83
  :'memory' => :'Integer',
80
84
  :'name' => :'String',
85
+ :'refresh_state_part_id' => :'String',
81
86
  :'source_id' => :'String',
82
87
  :'source_ref' => :'String',
83
88
  :'updated_at' => :'DateTime'
@@ -145,6 +150,10 @@ module TopologicalInventoryApiClient
145
150
  self.name = attributes[:'name']
146
151
  end
147
152
 
153
+ if attributes.key?(:'refresh_state_part_id')
154
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
155
+ end
156
+
148
157
  if attributes.key?(:'source_id')
149
158
  self.source_id = attributes[:'source_id']
150
159
  end
@@ -167,6 +176,11 @@ module TopologicalInventoryApiClient
167
176
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
168
177
  end
169
178
 
179
+ pattern = Regexp.new(/^\d+$/)
180
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
181
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
182
+ end
183
+
170
184
  pattern = Regexp.new(/^\d+$/)
171
185
  if !@source_id.nil? && @source_id !~ pattern
172
186
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -179,6 +193,7 @@ module TopologicalInventoryApiClient
179
193
  # @return true if the model is valid
180
194
  def valid?
181
195
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
196
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
182
197
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
183
198
  true
184
199
  end
@@ -194,6 +209,17 @@ module TopologicalInventoryApiClient
194
209
  @id = id
195
210
  end
196
211
 
212
+ # Custom attribute writer method with validation
213
+ # @param [Object] refresh_state_part_id Value to be assigned
214
+ def refresh_state_part_id=(refresh_state_part_id)
215
+ pattern = Regexp.new(/^\d+$/)
216
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
217
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
218
+ end
219
+
220
+ @refresh_state_part_id = refresh_state_part_id
221
+ end
222
+
197
223
  # Custom attribute writer method with validation
198
224
  # @param [Object] source_id Value to be assigned
199
225
  def source_id=(source_id)
@@ -220,6 +246,7 @@ module TopologicalInventoryApiClient
220
246
  last_seen_at == o.last_seen_at &&
221
247
  memory == o.memory &&
222
248
  name == o.name &&
249
+ refresh_state_part_id == o.refresh_state_part_id &&
223
250
  source_id == o.source_id &&
224
251
  source_ref == o.source_ref &&
225
252
  updated_at == o.updated_at
@@ -234,7 +261,7 @@ module TopologicalInventoryApiClient
234
261
  # Calculates hash code according to all attributes.
235
262
  # @return [Integer] Hash code
236
263
  def hash
237
- [archived_at, cpus, created_at, disk_count, disk_size, extra, id, last_seen_at, memory, name, source_id, source_ref, updated_at].hash
264
+ [archived_at, cpus, created_at, disk_count, disk_size, extra, id, last_seen_at, memory, name, refresh_state_part_id, source_id, source_ref, updated_at].hash
238
265
  end
239
266
 
240
267
  # Builds the object from hash