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.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/docs/Cluster.md +2 -0
- data/docs/Container.md +2 -0
- data/docs/ContainerGroup.md +2 -0
- data/docs/ContainerImage.md +2 -0
- data/docs/ContainerNode.md +2 -0
- data/docs/ContainerProject.md +2 -0
- data/docs/ContainerResourceQuota.md +2 -0
- data/docs/ContainerTemplate.md +2 -0
- data/docs/Datastore.md +2 -0
- data/docs/Flavor.md +2 -0
- data/docs/Host.md +2 -0
- data/docs/Ipaddress.md +2 -0
- data/docs/Network.md +2 -0
- data/docs/NetworkAdapter.md +2 -0
- data/docs/OrchestrationStack.md +2 -0
- data/docs/SecurityGroup.md +2 -0
- data/docs/ServiceCredential.md +2 -0
- data/docs/ServiceCredentialType.md +2 -0
- data/docs/ServiceInstance.md +2 -0
- data/docs/ServiceInstanceNode.md +2 -0
- data/docs/ServiceInventory.md +2 -0
- data/docs/ServiceOffering.md +2 -0
- data/docs/ServiceOfferingIcon.md +2 -0
- data/docs/ServiceOfferingNode.md +2 -0
- data/docs/ServicePlan.md +2 -0
- data/docs/SourceRegion.md +2 -0
- data/docs/Subnet.md +2 -0
- data/docs/Subscription.md +2 -0
- data/docs/Task.md +6 -0
- data/docs/Vm.md +2 -0
- data/docs/Volume.md +2 -0
- data/docs/VolumeAttachment.md +2 -0
- data/docs/VolumeType.md +2 -0
- data/lib/topological_inventory-api-client/models/cluster.rb +28 -1
- data/lib/topological_inventory-api-client/models/container.rb +28 -1
- data/lib/topological_inventory-api-client/models/container_group.rb +28 -1
- data/lib/topological_inventory-api-client/models/container_image.rb +28 -1
- data/lib/topological_inventory-api-client/models/container_node.rb +28 -1
- data/lib/topological_inventory-api-client/models/container_project.rb +28 -1
- data/lib/topological_inventory-api-client/models/container_resource_quota.rb +28 -1
- data/lib/topological_inventory-api-client/models/container_template.rb +28 -1
- data/lib/topological_inventory-api-client/models/datastore.rb +28 -1
- data/lib/topological_inventory-api-client/models/flavor.rb +28 -1
- data/lib/topological_inventory-api-client/models/host.rb +28 -1
- data/lib/topological_inventory-api-client/models/ipaddress.rb +28 -1
- data/lib/topological_inventory-api-client/models/network.rb +28 -1
- data/lib/topological_inventory-api-client/models/network_adapter.rb +28 -1
- data/lib/topological_inventory-api-client/models/orchestration_stack.rb +28 -1
- data/lib/topological_inventory-api-client/models/security_group.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_credential.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_credential_type.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_instance.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_instance_node.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_inventory.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_offering.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_offering_icon.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_offering_node.rb +28 -1
- data/lib/topological_inventory-api-client/models/service_plan.rb +28 -1
- data/lib/topological_inventory-api-client/models/source_region.rb +28 -1
- data/lib/topological_inventory-api-client/models/subnet.rb +28 -1
- data/lib/topological_inventory-api-client/models/subscription.rb +28 -1
- data/lib/topological_inventory-api-client/models/task.rb +46 -1
- data/lib/topological_inventory-api-client/models/vm.rb +28 -1
- data/lib/topological_inventory-api-client/models/volume.rb +28 -1
- data/lib/topological_inventory-api-client/models/volume_attachment.rb +28 -1
- data/lib/topological_inventory-api-client/models/volume_type.rb +28 -1
- data/lib/topological_inventory-api-client/version.rb +1 -1
- data/pkg/topological_inventory-api-client-3.0.0.gem +0 -0
- data/spec/models/cluster_spec.rb +6 -0
- data/spec/models/container_group_spec.rb +6 -0
- data/spec/models/container_image_spec.rb +6 -0
- data/spec/models/container_node_spec.rb +6 -0
- data/spec/models/container_project_spec.rb +6 -0
- data/spec/models/container_resource_quota_spec.rb +6 -0
- data/spec/models/container_spec.rb +6 -0
- data/spec/models/container_template_spec.rb +6 -0
- data/spec/models/datastore_spec.rb +6 -0
- data/spec/models/flavor_spec.rb +6 -0
- data/spec/models/host_spec.rb +6 -0
- data/spec/models/ipaddress_spec.rb +6 -0
- data/spec/models/network_adapter_spec.rb +6 -0
- data/spec/models/network_spec.rb +6 -0
- data/spec/models/orchestration_stack_spec.rb +6 -0
- data/spec/models/security_group_spec.rb +6 -0
- data/spec/models/service_credential_spec.rb +6 -0
- data/spec/models/service_credential_type_spec.rb +6 -0
- data/spec/models/service_instance_node_spec.rb +6 -0
- data/spec/models/service_instance_spec.rb +6 -0
- data/spec/models/service_inventory_spec.rb +6 -0
- data/spec/models/service_offering_icon_spec.rb +6 -0
- data/spec/models/service_offering_node_spec.rb +6 -0
- data/spec/models/service_offering_spec.rb +6 -0
- data/spec/models/service_plan_spec.rb +6 -0
- data/spec/models/source_region_spec.rb +6 -0
- data/spec/models/subnet_spec.rb +6 -0
- data/spec/models/subscription_spec.rb +6 -0
- data/spec/models/task_spec.rb +18 -0
- data/spec/models/vm_spec.rb +6 -0
- data/spec/models/volume_attachment_spec.rb +6 -0
- data/spec/models/volume_spec.rb +6 -0
- data/spec/models/volume_type_spec.rb +6 -0
- metadata +36 -35
@@ -25,10 +25,17 @@ module TopologicalInventoryApiClient
|
|
25
25
|
|
26
26
|
attr_accessor :name
|
27
27
|
|
28
|
+
# ID of the resource
|
29
|
+
attr_accessor :source_id
|
30
|
+
|
28
31
|
attr_accessor :state
|
29
32
|
|
30
33
|
attr_accessor :status
|
31
34
|
|
35
|
+
attr_accessor :target_source_ref
|
36
|
+
|
37
|
+
attr_accessor :target_type
|
38
|
+
|
32
39
|
attr_accessor :updated_at
|
33
40
|
|
34
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -39,8 +46,11 @@ module TopologicalInventoryApiClient
|
|
39
46
|
:'created_at' => :'created_at',
|
40
47
|
:'id' => :'id',
|
41
48
|
:'name' => :'name',
|
49
|
+
:'source_id' => :'source_id',
|
42
50
|
:'state' => :'state',
|
43
51
|
:'status' => :'status',
|
52
|
+
:'target_source_ref' => :'target_source_ref',
|
53
|
+
:'target_type' => :'target_type',
|
44
54
|
:'updated_at' => :'updated_at'
|
45
55
|
}
|
46
56
|
end
|
@@ -53,8 +63,11 @@ module TopologicalInventoryApiClient
|
|
53
63
|
:'created_at' => :'DateTime',
|
54
64
|
:'id' => :'String',
|
55
65
|
:'name' => :'String',
|
66
|
+
:'source_id' => :'String',
|
56
67
|
:'state' => :'String',
|
57
68
|
:'status' => :'String',
|
69
|
+
:'target_source_ref' => :'String',
|
70
|
+
:'target_type' => :'String',
|
58
71
|
:'updated_at' => :'DateTime'
|
59
72
|
}
|
60
73
|
end
|
@@ -100,6 +113,10 @@ module TopologicalInventoryApiClient
|
|
100
113
|
self.name = attributes[:'name']
|
101
114
|
end
|
102
115
|
|
116
|
+
if attributes.key?(:'source_id')
|
117
|
+
self.source_id = attributes[:'source_id']
|
118
|
+
end
|
119
|
+
|
103
120
|
if attributes.key?(:'state')
|
104
121
|
self.state = attributes[:'state']
|
105
122
|
end
|
@@ -108,6 +125,14 @@ module TopologicalInventoryApiClient
|
|
108
125
|
self.status = attributes[:'status']
|
109
126
|
end
|
110
127
|
|
128
|
+
if attributes.key?(:'target_source_ref')
|
129
|
+
self.target_source_ref = attributes[:'target_source_ref']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'target_type')
|
133
|
+
self.target_type = attributes[:'target_type']
|
134
|
+
end
|
135
|
+
|
111
136
|
if attributes.key?(:'updated_at')
|
112
137
|
self.updated_at = attributes[:'updated_at']
|
113
138
|
end
|
@@ -122,6 +147,11 @@ module TopologicalInventoryApiClient
|
|
122
147
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
123
148
|
end
|
124
149
|
|
150
|
+
pattern = Regexp.new(/^\d+$/)
|
151
|
+
if !@source_id.nil? && @source_id !~ pattern
|
152
|
+
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
153
|
+
end
|
154
|
+
|
125
155
|
invalid_properties
|
126
156
|
end
|
127
157
|
|
@@ -129,6 +159,7 @@ module TopologicalInventoryApiClient
|
|
129
159
|
# @return true if the model is valid
|
130
160
|
def valid?
|
131
161
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
162
|
+
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
132
163
|
true
|
133
164
|
end
|
134
165
|
|
@@ -143,6 +174,17 @@ module TopologicalInventoryApiClient
|
|
143
174
|
@id = id
|
144
175
|
end
|
145
176
|
|
177
|
+
# Custom attribute writer method with validation
|
178
|
+
# @param [Object] source_id Value to be assigned
|
179
|
+
def source_id=(source_id)
|
180
|
+
pattern = Regexp.new(/^\d+$/)
|
181
|
+
if !source_id.nil? && source_id !~ pattern
|
182
|
+
fail ArgumentError, "invalid value for \"source_id\", must conform to the pattern #{pattern}."
|
183
|
+
end
|
184
|
+
|
185
|
+
@source_id = source_id
|
186
|
+
end
|
187
|
+
|
146
188
|
# Checks equality by comparing each attribute.
|
147
189
|
# @param [Object] Object to be compared
|
148
190
|
def ==(o)
|
@@ -153,8 +195,11 @@ module TopologicalInventoryApiClient
|
|
153
195
|
created_at == o.created_at &&
|
154
196
|
id == o.id &&
|
155
197
|
name == o.name &&
|
198
|
+
source_id == o.source_id &&
|
156
199
|
state == o.state &&
|
157
200
|
status == o.status &&
|
201
|
+
target_source_ref == o.target_source_ref &&
|
202
|
+
target_type == o.target_type &&
|
158
203
|
updated_at == o.updated_at
|
159
204
|
end
|
160
205
|
|
@@ -167,7 +212,7 @@ module TopologicalInventoryApiClient
|
|
167
212
|
# Calculates hash code according to all attributes.
|
168
213
|
# @return [Integer] Hash code
|
169
214
|
def hash
|
170
|
-
[completed_at, context, created_at, id, name, state, status, updated_at].hash
|
215
|
+
[completed_at, context, created_at, id, name, source_id, state, status, target_source_ref, target_type, updated_at].hash
|
171
216
|
end
|
172
217
|
|
173
218
|
# Builds the object from hash
|
@@ -53,6 +53,9 @@ module TopologicalInventoryApiClient
|
|
53
53
|
|
54
54
|
attr_accessor :power_state
|
55
55
|
|
56
|
+
# ID of the resource
|
57
|
+
attr_accessor :refresh_state_part_id
|
58
|
+
|
56
59
|
attr_accessor :source_created_at
|
57
60
|
|
58
61
|
attr_accessor :source_deleted_at
|
@@ -92,6 +95,7 @@ module TopologicalInventoryApiClient
|
|
92
95
|
:'name' => :'name',
|
93
96
|
:'orchestration_stack_id' => :'orchestration_stack_id',
|
94
97
|
:'power_state' => :'power_state',
|
98
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
95
99
|
:'source_created_at' => :'source_created_at',
|
96
100
|
:'source_deleted_at' => :'source_deleted_at',
|
97
101
|
:'source_id' => :'source_id',
|
@@ -122,6 +126,7 @@ module TopologicalInventoryApiClient
|
|
122
126
|
:'name' => :'String',
|
123
127
|
:'orchestration_stack_id' => :'String',
|
124
128
|
:'power_state' => :'String',
|
129
|
+
:'refresh_state_part_id' => :'String',
|
125
130
|
:'source_created_at' => :'DateTime',
|
126
131
|
:'source_deleted_at' => :'DateTime',
|
127
132
|
:'source_id' => :'String',
|
@@ -220,6 +225,10 @@ module TopologicalInventoryApiClient
|
|
220
225
|
self.power_state = attributes[:'power_state']
|
221
226
|
end
|
222
227
|
|
228
|
+
if attributes.key?(:'refresh_state_part_id')
|
229
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
230
|
+
end
|
231
|
+
|
223
232
|
if attributes.key?(:'source_created_at')
|
224
233
|
self.source_created_at = attributes[:'source_created_at']
|
225
234
|
end
|
@@ -277,6 +286,11 @@ module TopologicalInventoryApiClient
|
|
277
286
|
invalid_properties.push("invalid value for \"orchestration_stack_id\", must conform to the pattern #{pattern}.")
|
278
287
|
end
|
279
288
|
|
289
|
+
pattern = Regexp.new(/^\d+$/)
|
290
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
291
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
292
|
+
end
|
293
|
+
|
280
294
|
pattern = Regexp.new(/^\d+$/)
|
281
295
|
if !@source_id.nil? && @source_id !~ pattern
|
282
296
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -302,6 +316,7 @@ module TopologicalInventoryApiClient
|
|
302
316
|
return false if !@host_id.nil? && @host_id !~ Regexp.new(/^\d+$/)
|
303
317
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
304
318
|
return false if !@orchestration_stack_id.nil? && @orchestration_stack_id !~ Regexp.new(/^\d+$/)
|
319
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
305
320
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
306
321
|
return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
|
307
322
|
return false if !@subscription_id.nil? && @subscription_id !~ Regexp.new(/^\d+$/)
|
@@ -352,6 +367,17 @@ module TopologicalInventoryApiClient
|
|
352
367
|
@orchestration_stack_id = orchestration_stack_id
|
353
368
|
end
|
354
369
|
|
370
|
+
# Custom attribute writer method with validation
|
371
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
372
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
373
|
+
pattern = Regexp.new(/^\d+$/)
|
374
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
375
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
376
|
+
end
|
377
|
+
|
378
|
+
@refresh_state_part_id = refresh_state_part_id
|
379
|
+
end
|
380
|
+
|
355
381
|
# Custom attribute writer method with validation
|
356
382
|
# @param [Object] source_id Value to be assigned
|
357
383
|
def source_id=(source_id)
|
@@ -406,6 +432,7 @@ module TopologicalInventoryApiClient
|
|
406
432
|
name == o.name &&
|
407
433
|
orchestration_stack_id == o.orchestration_stack_id &&
|
408
434
|
power_state == o.power_state &&
|
435
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
409
436
|
source_created_at == o.source_created_at &&
|
410
437
|
source_deleted_at == o.source_deleted_at &&
|
411
438
|
source_id == o.source_id &&
|
@@ -425,7 +452,7 @@ module TopologicalInventoryApiClient
|
|
425
452
|
# Calculates hash code according to all attributes.
|
426
453
|
# @return [Integer] Hash code
|
427
454
|
def hash
|
428
|
-
[archived_at, cpus, created_at, description, extra, flavor_id, host_id, host_inventory_uuid, hostname, id, last_seen_at, mac_addresses, memory, name, orchestration_stack_id, power_state, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, uid_ems, updated_at].hash
|
455
|
+
[archived_at, cpus, created_at, description, extra, flavor_id, host_id, host_inventory_uuid, hostname, id, last_seen_at, mac_addresses, memory, name, orchestration_stack_id, power_state, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, uid_ems, updated_at].hash
|
429
456
|
end
|
430
457
|
|
431
458
|
# Builds the object from hash
|
@@ -30,6 +30,9 @@ module TopologicalInventoryApiClient
|
|
30
30
|
# ID of the resource
|
31
31
|
attr_accessor :orchestration_stack_id
|
32
32
|
|
33
|
+
# ID of the resource
|
34
|
+
attr_accessor :refresh_state_part_id
|
35
|
+
|
33
36
|
# Size of the volume in bytes
|
34
37
|
attr_accessor :size
|
35
38
|
|
@@ -65,6 +68,7 @@ module TopologicalInventoryApiClient
|
|
65
68
|
:'last_seen_at' => :'last_seen_at',
|
66
69
|
:'name' => :'name',
|
67
70
|
:'orchestration_stack_id' => :'orchestration_stack_id',
|
71
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
68
72
|
:'size' => :'size',
|
69
73
|
:'source_created_at' => :'source_created_at',
|
70
74
|
:'source_deleted_at' => :'source_deleted_at',
|
@@ -88,6 +92,7 @@ module TopologicalInventoryApiClient
|
|
88
92
|
:'last_seen_at' => :'DateTime',
|
89
93
|
:'name' => :'String',
|
90
94
|
:'orchestration_stack_id' => :'String',
|
95
|
+
:'refresh_state_part_id' => :'String',
|
91
96
|
:'size' => :'Integer',
|
92
97
|
:'source_created_at' => :'DateTime',
|
93
98
|
:'source_deleted_at' => :'DateTime',
|
@@ -150,6 +155,10 @@ module TopologicalInventoryApiClient
|
|
150
155
|
self.orchestration_stack_id = attributes[:'orchestration_stack_id']
|
151
156
|
end
|
152
157
|
|
158
|
+
if attributes.key?(:'refresh_state_part_id')
|
159
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
160
|
+
end
|
161
|
+
|
153
162
|
if attributes.key?(:'size')
|
154
163
|
self.size = attributes[:'size']
|
155
164
|
end
|
@@ -205,6 +214,11 @@ module TopologicalInventoryApiClient
|
|
205
214
|
invalid_properties.push("invalid value for \"orchestration_stack_id\", must conform to the pattern #{pattern}.")
|
206
215
|
end
|
207
216
|
|
217
|
+
pattern = Regexp.new(/^\d+$/)
|
218
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
219
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
220
|
+
end
|
221
|
+
|
208
222
|
pattern = Regexp.new(/^\d+$/)
|
209
223
|
if !@source_id.nil? && @source_id !~ pattern
|
210
224
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -233,6 +247,7 @@ module TopologicalInventoryApiClient
|
|
233
247
|
def valid?
|
234
248
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
235
249
|
return false if !@orchestration_stack_id.nil? && @orchestration_stack_id !~ Regexp.new(/^\d+$/)
|
250
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
236
251
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
237
252
|
return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
|
238
253
|
return false if !@subscription_id.nil? && @subscription_id !~ Regexp.new(/^\d+$/)
|
@@ -262,6 +277,17 @@ module TopologicalInventoryApiClient
|
|
262
277
|
@orchestration_stack_id = orchestration_stack_id
|
263
278
|
end
|
264
279
|
|
280
|
+
# Custom attribute writer method with validation
|
281
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
282
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
283
|
+
pattern = Regexp.new(/^\d+$/)
|
284
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
285
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
286
|
+
end
|
287
|
+
|
288
|
+
@refresh_state_part_id = refresh_state_part_id
|
289
|
+
end
|
290
|
+
|
265
291
|
# Custom attribute writer method with validation
|
266
292
|
# @param [Object] source_id Value to be assigned
|
267
293
|
def source_id=(source_id)
|
@@ -318,6 +344,7 @@ module TopologicalInventoryApiClient
|
|
318
344
|
last_seen_at == o.last_seen_at &&
|
319
345
|
name == o.name &&
|
320
346
|
orchestration_stack_id == o.orchestration_stack_id &&
|
347
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
321
348
|
size == o.size &&
|
322
349
|
source_created_at == o.source_created_at &&
|
323
350
|
source_deleted_at == o.source_deleted_at &&
|
@@ -339,7 +366,7 @@ module TopologicalInventoryApiClient
|
|
339
366
|
# Calculates hash code according to all attributes.
|
340
367
|
# @return [Integer] Hash code
|
341
368
|
def hash
|
342
|
-
[archived_at, created_at, extra, id, last_seen_at, name, orchestration_stack_id, size, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, state, subscription_id, updated_at, volume_type_id].hash
|
369
|
+
[archived_at, created_at, extra, id, last_seen_at, name, orchestration_stack_id, refresh_state_part_id, size, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, state, subscription_id, updated_at, volume_type_id].hash
|
343
370
|
end
|
344
371
|
|
345
372
|
# Builds the object from hash
|
@@ -21,6 +21,9 @@ module TopologicalInventoryApiClient
|
|
21
21
|
|
22
22
|
attr_accessor :last_seen_at
|
23
23
|
|
24
|
+
# ID of the resource
|
25
|
+
attr_accessor :refresh_state_part_id
|
26
|
+
|
24
27
|
attr_accessor :state
|
25
28
|
|
26
29
|
# ID of the resource
|
@@ -35,6 +38,7 @@ module TopologicalInventoryApiClient
|
|
35
38
|
:'device' => :'device',
|
36
39
|
:'id' => :'id',
|
37
40
|
:'last_seen_at' => :'last_seen_at',
|
41
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
38
42
|
:'state' => :'state',
|
39
43
|
:'vm_id' => :'vm_id',
|
40
44
|
:'volume_id' => :'volume_id'
|
@@ -47,6 +51,7 @@ module TopologicalInventoryApiClient
|
|
47
51
|
:'device' => :'String',
|
48
52
|
:'id' => :'String',
|
49
53
|
:'last_seen_at' => :'DateTime',
|
54
|
+
:'refresh_state_part_id' => :'String',
|
50
55
|
:'state' => :'String',
|
51
56
|
:'vm_id' => :'String',
|
52
57
|
:'volume_id' => :'String'
|
@@ -86,6 +91,10 @@ module TopologicalInventoryApiClient
|
|
86
91
|
self.last_seen_at = attributes[:'last_seen_at']
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.key?(:'refresh_state_part_id')
|
95
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
96
|
+
end
|
97
|
+
|
89
98
|
if attributes.key?(:'state')
|
90
99
|
self.state = attributes[:'state']
|
91
100
|
end
|
@@ -108,6 +117,11 @@ module TopologicalInventoryApiClient
|
|
108
117
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
109
118
|
end
|
110
119
|
|
120
|
+
pattern = Regexp.new(/^\d+$/)
|
121
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
122
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
123
|
+
end
|
124
|
+
|
111
125
|
pattern = Regexp.new(/^\d+$/)
|
112
126
|
if !@vm_id.nil? && @vm_id !~ pattern
|
113
127
|
invalid_properties.push("invalid value for \"vm_id\", must conform to the pattern #{pattern}.")
|
@@ -125,6 +139,7 @@ module TopologicalInventoryApiClient
|
|
125
139
|
# @return true if the model is valid
|
126
140
|
def valid?
|
127
141
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
142
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
128
143
|
return false if !@vm_id.nil? && @vm_id !~ Regexp.new(/^\d+$/)
|
129
144
|
return false if !@volume_id.nil? && @volume_id !~ Regexp.new(/^\d+$/)
|
130
145
|
true
|
@@ -141,6 +156,17 @@ module TopologicalInventoryApiClient
|
|
141
156
|
@id = id
|
142
157
|
end
|
143
158
|
|
159
|
+
# Custom attribute writer method with validation
|
160
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
161
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
162
|
+
pattern = Regexp.new(/^\d+$/)
|
163
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
164
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
165
|
+
end
|
166
|
+
|
167
|
+
@refresh_state_part_id = refresh_state_part_id
|
168
|
+
end
|
169
|
+
|
144
170
|
# Custom attribute writer method with validation
|
145
171
|
# @param [Object] vm_id Value to be assigned
|
146
172
|
def vm_id=(vm_id)
|
@@ -171,6 +197,7 @@ module TopologicalInventoryApiClient
|
|
171
197
|
device == o.device &&
|
172
198
|
id == o.id &&
|
173
199
|
last_seen_at == o.last_seen_at &&
|
200
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
174
201
|
state == o.state &&
|
175
202
|
vm_id == o.vm_id &&
|
176
203
|
volume_id == o.volume_id
|
@@ -185,7 +212,7 @@ module TopologicalInventoryApiClient
|
|
185
212
|
# Calculates hash code according to all attributes.
|
186
213
|
# @return [Integer] Hash code
|
187
214
|
def hash
|
188
|
-
[device, id, last_seen_at, state, vm_id, volume_id].hash
|
215
|
+
[device, id, last_seen_at, refresh_state_part_id, state, vm_id, volume_id].hash
|
189
216
|
end
|
190
217
|
|
191
218
|
# Builds the object from hash
|
@@ -29,6 +29,9 @@ module TopologicalInventoryApiClient
|
|
29
29
|
|
30
30
|
attr_accessor :name
|
31
31
|
|
32
|
+
# ID of the resource
|
33
|
+
attr_accessor :refresh_state_part_id
|
34
|
+
|
32
35
|
# ID of the resource
|
33
36
|
attr_accessor :source_id
|
34
37
|
|
@@ -46,6 +49,7 @@ module TopologicalInventoryApiClient
|
|
46
49
|
:'id' => :'id',
|
47
50
|
:'last_seen_at' => :'last_seen_at',
|
48
51
|
:'name' => :'name',
|
52
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
49
53
|
:'source_id' => :'source_id',
|
50
54
|
:'source_ref' => :'source_ref',
|
51
55
|
:'updated_at' => :'updated_at'
|
@@ -62,6 +66,7 @@ module TopologicalInventoryApiClient
|
|
62
66
|
:'id' => :'String',
|
63
67
|
:'last_seen_at' => :'DateTime',
|
64
68
|
:'name' => :'String',
|
69
|
+
:'refresh_state_part_id' => :'String',
|
65
70
|
:'source_id' => :'String',
|
66
71
|
:'source_ref' => :'String',
|
67
72
|
:'updated_at' => :'DateTime'
|
@@ -117,6 +122,10 @@ module TopologicalInventoryApiClient
|
|
117
122
|
self.name = attributes[:'name']
|
118
123
|
end
|
119
124
|
|
125
|
+
if attributes.key?(:'refresh_state_part_id')
|
126
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
127
|
+
end
|
128
|
+
|
120
129
|
if attributes.key?(:'source_id')
|
121
130
|
self.source_id = attributes[:'source_id']
|
122
131
|
end
|
@@ -139,6 +148,11 @@ module TopologicalInventoryApiClient
|
|
139
148
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
140
149
|
end
|
141
150
|
|
151
|
+
pattern = Regexp.new(/^\d+$/)
|
152
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
153
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
154
|
+
end
|
155
|
+
|
142
156
|
pattern = Regexp.new(/^\d+$/)
|
143
157
|
if !@source_id.nil? && @source_id !~ pattern
|
144
158
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -151,6 +165,7 @@ module TopologicalInventoryApiClient
|
|
151
165
|
# @return true if the model is valid
|
152
166
|
def valid?
|
153
167
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
168
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
154
169
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
155
170
|
true
|
156
171
|
end
|
@@ -166,6 +181,17 @@ module TopologicalInventoryApiClient
|
|
166
181
|
@id = id
|
167
182
|
end
|
168
183
|
|
184
|
+
# Custom attribute writer method with validation
|
185
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
186
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
187
|
+
pattern = Regexp.new(/^\d+$/)
|
188
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
189
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
190
|
+
end
|
191
|
+
|
192
|
+
@refresh_state_part_id = refresh_state_part_id
|
193
|
+
end
|
194
|
+
|
169
195
|
# Custom attribute writer method with validation
|
170
196
|
# @param [Object] source_id Value to be assigned
|
171
197
|
def source_id=(source_id)
|
@@ -189,6 +215,7 @@ module TopologicalInventoryApiClient
|
|
189
215
|
id == o.id &&
|
190
216
|
last_seen_at == o.last_seen_at &&
|
191
217
|
name == o.name &&
|
218
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
192
219
|
source_id == o.source_id &&
|
193
220
|
source_ref == o.source_ref &&
|
194
221
|
updated_at == o.updated_at
|
@@ -203,7 +230,7 @@ module TopologicalInventoryApiClient
|
|
203
230
|
# Calculates hash code according to all attributes.
|
204
231
|
# @return [Integer] Hash code
|
205
232
|
def hash
|
206
|
-
[archived_at, created_at, description, extra, id, last_seen_at, name, source_id, source_ref, updated_at].hash
|
233
|
+
[archived_at, created_at, description, extra, id, last_seen_at, name, refresh_state_part_id, source_id, source_ref, updated_at].hash
|
207
234
|
end
|
208
235
|
|
209
236
|
# Builds the object from hash
|