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
@@ -40,6 +40,9 @@ module TopologicalInventoryApiClient
|
|
40
40
|
|
41
41
|
attr_accessor :power_state
|
42
42
|
|
43
|
+
# ID of the resource
|
44
|
+
attr_accessor :refresh_state_part_id
|
45
|
+
|
43
46
|
attr_accessor :source_created_at
|
44
47
|
|
45
48
|
attr_accessor :source_deleted_at
|
@@ -68,6 +71,7 @@ module TopologicalInventoryApiClient
|
|
68
71
|
:'memory' => :'memory',
|
69
72
|
:'name' => :'name',
|
70
73
|
:'power_state' => :'power_state',
|
74
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
71
75
|
:'source_created_at' => :'source_created_at',
|
72
76
|
:'source_deleted_at' => :'source_deleted_at',
|
73
77
|
:'source_id' => :'source_id',
|
@@ -92,6 +96,7 @@ module TopologicalInventoryApiClient
|
|
92
96
|
:'memory' => :'Integer',
|
93
97
|
:'name' => :'String',
|
94
98
|
:'power_state' => :'String',
|
99
|
+
:'refresh_state_part_id' => :'String',
|
95
100
|
:'source_created_at' => :'DateTime',
|
96
101
|
:'source_deleted_at' => :'DateTime',
|
97
102
|
:'source_id' => :'String',
|
@@ -170,6 +175,10 @@ module TopologicalInventoryApiClient
|
|
170
175
|
self.power_state = attributes[:'power_state']
|
171
176
|
end
|
172
177
|
|
178
|
+
if attributes.key?(:'refresh_state_part_id')
|
179
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
180
|
+
end
|
181
|
+
|
173
182
|
if attributes.key?(:'source_created_at')
|
174
183
|
self.source_created_at = attributes[:'source_created_at']
|
175
184
|
end
|
@@ -209,6 +218,11 @@ module TopologicalInventoryApiClient
|
|
209
218
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
210
219
|
end
|
211
220
|
|
221
|
+
pattern = Regexp.new(/^\d+$/)
|
222
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
223
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
224
|
+
end
|
225
|
+
|
212
226
|
pattern = Regexp.new(/^\d+$/)
|
213
227
|
if !@source_id.nil? && @source_id !~ pattern
|
214
228
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -222,6 +236,7 @@ module TopologicalInventoryApiClient
|
|
222
236
|
def valid?
|
223
237
|
return false if !@cluster_id.nil? && @cluster_id !~ Regexp.new(/^\d+$/)
|
224
238
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
239
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
225
240
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
226
241
|
true
|
227
242
|
end
|
@@ -248,6 +263,17 @@ module TopologicalInventoryApiClient
|
|
248
263
|
@id = id
|
249
264
|
end
|
250
265
|
|
266
|
+
# Custom attribute writer method with validation
|
267
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
268
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
269
|
+
pattern = Regexp.new(/^\d+$/)
|
270
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
271
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
272
|
+
end
|
273
|
+
|
274
|
+
@refresh_state_part_id = refresh_state_part_id
|
275
|
+
end
|
276
|
+
|
251
277
|
# Custom attribute writer method with validation
|
252
278
|
# @param [Object] source_id Value to be assigned
|
253
279
|
def source_id=(source_id)
|
@@ -276,6 +302,7 @@ module TopologicalInventoryApiClient
|
|
276
302
|
memory == o.memory &&
|
277
303
|
name == o.name &&
|
278
304
|
power_state == o.power_state &&
|
305
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
279
306
|
source_created_at == o.source_created_at &&
|
280
307
|
source_deleted_at == o.source_deleted_at &&
|
281
308
|
source_id == o.source_id &&
|
@@ -293,7 +320,7 @@ module TopologicalInventoryApiClient
|
|
293
320
|
# Calculates hash code according to all attributes.
|
294
321
|
# @return [Integer] Hash code
|
295
322
|
def hash
|
296
|
-
[archived_at, cluster_id, cpus, created_at, description, extra, hostname, id, last_seen_at, memory, name, power_state, source_created_at, source_deleted_at, source_id, source_ref, uid_ems, updated_at].hash
|
323
|
+
[archived_at, cluster_id, cpus, created_at, description, extra, hostname, id, last_seen_at, memory, name, power_state, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, uid_ems, updated_at].hash
|
297
324
|
end
|
298
325
|
|
299
326
|
# Builds the object from hash
|
@@ -35,6 +35,9 @@ module TopologicalInventoryApiClient
|
|
35
35
|
# ID of the resource
|
36
36
|
attr_accessor :orchestration_stack_id
|
37
37
|
|
38
|
+
# ID of the resource
|
39
|
+
attr_accessor :refresh_state_part_id
|
40
|
+
|
38
41
|
attr_accessor :source_created_at
|
39
42
|
|
40
43
|
attr_accessor :source_deleted_at
|
@@ -67,6 +70,7 @@ module TopologicalInventoryApiClient
|
|
67
70
|
:'last_seen_at' => :'last_seen_at',
|
68
71
|
:'network_adapter_id' => :'network_adapter_id',
|
69
72
|
:'orchestration_stack_id' => :'orchestration_stack_id',
|
73
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
70
74
|
:'source_created_at' => :'source_created_at',
|
71
75
|
:'source_deleted_at' => :'source_deleted_at',
|
72
76
|
:'source_id' => :'source_id',
|
@@ -90,6 +94,7 @@ module TopologicalInventoryApiClient
|
|
90
94
|
:'last_seen_at' => :'DateTime',
|
91
95
|
:'network_adapter_id' => :'String',
|
92
96
|
:'orchestration_stack_id' => :'String',
|
97
|
+
:'refresh_state_part_id' => :'String',
|
93
98
|
:'source_created_at' => :'DateTime',
|
94
99
|
:'source_deleted_at' => :'DateTime',
|
95
100
|
:'source_id' => :'String',
|
@@ -158,6 +163,10 @@ module TopologicalInventoryApiClient
|
|
158
163
|
self.orchestration_stack_id = attributes[:'orchestration_stack_id']
|
159
164
|
end
|
160
165
|
|
166
|
+
if attributes.key?(:'refresh_state_part_id')
|
167
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
168
|
+
end
|
169
|
+
|
161
170
|
if attributes.key?(:'source_created_at')
|
162
171
|
self.source_created_at = attributes[:'source_created_at']
|
163
172
|
end
|
@@ -210,6 +219,11 @@ module TopologicalInventoryApiClient
|
|
210
219
|
invalid_properties.push("invalid value for \"orchestration_stack_id\", must conform to the pattern #{pattern}.")
|
211
220
|
end
|
212
221
|
|
222
|
+
pattern = Regexp.new(/^\d+$/)
|
223
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
224
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
225
|
+
end
|
226
|
+
|
213
227
|
pattern = Regexp.new(/^\d+$/)
|
214
228
|
if !@source_id.nil? && @source_id !~ pattern
|
215
229
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -239,6 +253,7 @@ module TopologicalInventoryApiClient
|
|
239
253
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
240
254
|
return false if !@network_adapter_id.nil? && @network_adapter_id !~ Regexp.new(/^\d+$/)
|
241
255
|
return false if !@orchestration_stack_id.nil? && @orchestration_stack_id !~ Regexp.new(/^\d+$/)
|
256
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
242
257
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
243
258
|
return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
|
244
259
|
return false if !@subnet_id.nil? && @subnet_id !~ Regexp.new(/^\d+$/)
|
@@ -279,6 +294,17 @@ module TopologicalInventoryApiClient
|
|
279
294
|
@orchestration_stack_id = orchestration_stack_id
|
280
295
|
end
|
281
296
|
|
297
|
+
# Custom attribute writer method with validation
|
298
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
299
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
300
|
+
pattern = Regexp.new(/^\d+$/)
|
301
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
302
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
303
|
+
end
|
304
|
+
|
305
|
+
@refresh_state_part_id = refresh_state_part_id
|
306
|
+
end
|
307
|
+
|
282
308
|
# Custom attribute writer method with validation
|
283
309
|
# @param [Object] source_id Value to be assigned
|
284
310
|
def source_id=(source_id)
|
@@ -337,6 +363,7 @@ module TopologicalInventoryApiClient
|
|
337
363
|
last_seen_at == o.last_seen_at &&
|
338
364
|
network_adapter_id == o.network_adapter_id &&
|
339
365
|
orchestration_stack_id == o.orchestration_stack_id &&
|
366
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
340
367
|
source_created_at == o.source_created_at &&
|
341
368
|
source_deleted_at == o.source_deleted_at &&
|
342
369
|
source_id == o.source_id &&
|
@@ -356,7 +383,7 @@ module TopologicalInventoryApiClient
|
|
356
383
|
# Calculates hash code according to all attributes.
|
357
384
|
# @return [Integer] Hash code
|
358
385
|
def hash
|
359
|
-
[archived_at, created_at, extra, id, ipaddress, kind, last_seen_at, network_adapter_id, orchestration_stack_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subnet_id, subscription_id, updated_at].hash
|
386
|
+
[archived_at, created_at, extra, id, ipaddress, kind, last_seen_at, network_adapter_id, orchestration_stack_id, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subnet_id, subscription_id, updated_at].hash
|
360
387
|
end
|
361
388
|
|
362
389
|
# Builds the object from hash
|
@@ -32,6 +32,9 @@ module TopologicalInventoryApiClient
|
|
32
32
|
# ID of the resource
|
33
33
|
attr_accessor :orchestration_stack_id
|
34
34
|
|
35
|
+
# ID of the resource
|
36
|
+
attr_accessor :refresh_state_part_id
|
37
|
+
|
35
38
|
attr_accessor :source_created_at
|
36
39
|
|
37
40
|
attr_accessor :source_deleted_at
|
@@ -62,6 +65,7 @@ module TopologicalInventoryApiClient
|
|
62
65
|
:'last_seen_at' => :'last_seen_at',
|
63
66
|
:'name' => :'name',
|
64
67
|
:'orchestration_stack_id' => :'orchestration_stack_id',
|
68
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
65
69
|
:'source_created_at' => :'source_created_at',
|
66
70
|
:'source_deleted_at' => :'source_deleted_at',
|
67
71
|
:'source_id' => :'source_id',
|
@@ -84,6 +88,7 @@ module TopologicalInventoryApiClient
|
|
84
88
|
:'last_seen_at' => :'DateTime',
|
85
89
|
:'name' => :'String',
|
86
90
|
:'orchestration_stack_id' => :'String',
|
91
|
+
:'refresh_state_part_id' => :'String',
|
87
92
|
:'source_created_at' => :'DateTime',
|
88
93
|
:'source_deleted_at' => :'DateTime',
|
89
94
|
:'source_id' => :'String',
|
@@ -148,6 +153,10 @@ module TopologicalInventoryApiClient
|
|
148
153
|
self.orchestration_stack_id = attributes[:'orchestration_stack_id']
|
149
154
|
end
|
150
155
|
|
156
|
+
if attributes.key?(:'refresh_state_part_id')
|
157
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
158
|
+
end
|
159
|
+
|
151
160
|
if attributes.key?(:'source_created_at')
|
152
161
|
self.source_created_at = attributes[:'source_created_at']
|
153
162
|
end
|
@@ -195,6 +204,11 @@ module TopologicalInventoryApiClient
|
|
195
204
|
invalid_properties.push("invalid value for \"orchestration_stack_id\", must conform to the pattern #{pattern}.")
|
196
205
|
end
|
197
206
|
|
207
|
+
pattern = Regexp.new(/^\d+$/)
|
208
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
209
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
210
|
+
end
|
211
|
+
|
198
212
|
pattern = Regexp.new(/^\d+$/)
|
199
213
|
if !@source_id.nil? && @source_id !~ pattern
|
200
214
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -218,6 +232,7 @@ module TopologicalInventoryApiClient
|
|
218
232
|
def valid?
|
219
233
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
220
234
|
return false if !@orchestration_stack_id.nil? && @orchestration_stack_id !~ Regexp.new(/^\d+$/)
|
235
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
221
236
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
222
237
|
return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
|
223
238
|
return false if !@subscription_id.nil? && @subscription_id !~ Regexp.new(/^\d+$/)
|
@@ -246,6 +261,17 @@ module TopologicalInventoryApiClient
|
|
246
261
|
@orchestration_stack_id = orchestration_stack_id
|
247
262
|
end
|
248
263
|
|
264
|
+
# Custom attribute writer method with validation
|
265
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
266
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
267
|
+
pattern = Regexp.new(/^\d+$/)
|
268
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
269
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
270
|
+
end
|
271
|
+
|
272
|
+
@refresh_state_part_id = refresh_state_part_id
|
273
|
+
end
|
274
|
+
|
249
275
|
# Custom attribute writer method with validation
|
250
276
|
# @param [Object] source_id Value to be assigned
|
251
277
|
def source_id=(source_id)
|
@@ -292,6 +318,7 @@ module TopologicalInventoryApiClient
|
|
292
318
|
last_seen_at == o.last_seen_at &&
|
293
319
|
name == o.name &&
|
294
320
|
orchestration_stack_id == o.orchestration_stack_id &&
|
321
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
295
322
|
source_created_at == o.source_created_at &&
|
296
323
|
source_deleted_at == o.source_deleted_at &&
|
297
324
|
source_id == o.source_id &&
|
@@ -311,7 +338,7 @@ module TopologicalInventoryApiClient
|
|
311
338
|
# Calculates hash code according to all attributes.
|
312
339
|
# @return [Integer] Hash code
|
313
340
|
def hash
|
314
|
-
[archived_at, cidr, created_at, extra, id, last_seen_at, name, orchestration_stack_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, status, subscription_id, updated_at].hash
|
341
|
+
[archived_at, cidr, created_at, extra, id, last_seen_at, name, orchestration_stack_id, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, status, subscription_id, updated_at].hash
|
315
342
|
end
|
316
343
|
|
317
344
|
# Builds the object from hash
|
@@ -35,6 +35,9 @@ module TopologicalInventoryApiClient
|
|
35
35
|
# ID of the resource
|
36
36
|
attr_accessor :orchestration_stack_id
|
37
37
|
|
38
|
+
# ID of the resource
|
39
|
+
attr_accessor :refresh_state_part_id
|
40
|
+
|
38
41
|
attr_accessor :source_created_at
|
39
42
|
|
40
43
|
attr_accessor :source_deleted_at
|
@@ -64,6 +67,7 @@ module TopologicalInventoryApiClient
|
|
64
67
|
:'last_seen_at' => :'last_seen_at',
|
65
68
|
:'mac_address' => :'mac_address',
|
66
69
|
:'orchestration_stack_id' => :'orchestration_stack_id',
|
70
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
67
71
|
:'source_created_at' => :'source_created_at',
|
68
72
|
:'source_deleted_at' => :'source_deleted_at',
|
69
73
|
:'source_id' => :'source_id',
|
@@ -86,6 +90,7 @@ module TopologicalInventoryApiClient
|
|
86
90
|
:'last_seen_at' => :'DateTime',
|
87
91
|
:'mac_address' => :'String',
|
88
92
|
:'orchestration_stack_id' => :'String',
|
93
|
+
:'refresh_state_part_id' => :'String',
|
89
94
|
:'source_created_at' => :'DateTime',
|
90
95
|
:'source_deleted_at' => :'DateTime',
|
91
96
|
:'source_id' => :'String',
|
@@ -153,6 +158,10 @@ module TopologicalInventoryApiClient
|
|
153
158
|
self.orchestration_stack_id = attributes[:'orchestration_stack_id']
|
154
159
|
end
|
155
160
|
|
161
|
+
if attributes.key?(:'refresh_state_part_id')
|
162
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
163
|
+
end
|
164
|
+
|
156
165
|
if attributes.key?(:'source_created_at')
|
157
166
|
self.source_created_at = attributes[:'source_created_at']
|
158
167
|
end
|
@@ -201,6 +210,11 @@ module TopologicalInventoryApiClient
|
|
201
210
|
invalid_properties.push("invalid value for \"orchestration_stack_id\", must conform to the pattern #{pattern}.")
|
202
211
|
end
|
203
212
|
|
213
|
+
pattern = Regexp.new(/^\d+$/)
|
214
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
215
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
216
|
+
end
|
217
|
+
|
204
218
|
pattern = Regexp.new(/^\d+$/)
|
205
219
|
if !@source_id.nil? && @source_id !~ pattern
|
206
220
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -225,6 +239,7 @@ module TopologicalInventoryApiClient
|
|
225
239
|
return false if !@device_id.nil? && @device_id !~ Regexp.new(/^\d+$/)
|
226
240
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
227
241
|
return false if !@orchestration_stack_id.nil? && @orchestration_stack_id !~ Regexp.new(/^\d+$/)
|
242
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
228
243
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
229
244
|
return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
|
230
245
|
return false if !@subscription_id.nil? && @subscription_id !~ Regexp.new(/^\d+$/)
|
@@ -264,6 +279,17 @@ module TopologicalInventoryApiClient
|
|
264
279
|
@orchestration_stack_id = orchestration_stack_id
|
265
280
|
end
|
266
281
|
|
282
|
+
# Custom attribute writer method with validation
|
283
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
284
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
285
|
+
pattern = Regexp.new(/^\d+$/)
|
286
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
287
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
288
|
+
end
|
289
|
+
|
290
|
+
@refresh_state_part_id = refresh_state_part_id
|
291
|
+
end
|
292
|
+
|
267
293
|
# Custom attribute writer method with validation
|
268
294
|
# @param [Object] source_id Value to be assigned
|
269
295
|
def source_id=(source_id)
|
@@ -311,6 +337,7 @@ module TopologicalInventoryApiClient
|
|
311
337
|
last_seen_at == o.last_seen_at &&
|
312
338
|
mac_address == o.mac_address &&
|
313
339
|
orchestration_stack_id == o.orchestration_stack_id &&
|
340
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
314
341
|
source_created_at == o.source_created_at &&
|
315
342
|
source_deleted_at == o.source_deleted_at &&
|
316
343
|
source_id == o.source_id &&
|
@@ -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
|
-
[archived_at, created_at, device_id, device_type, extra, id, last_seen_at, mac_address, orchestration_stack_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
359
|
+
[archived_at, created_at, device_id, device_type, extra, id, last_seen_at, mac_address, orchestration_stack_id, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
333
360
|
end
|
334
361
|
|
335
362
|
# Builds the object from hash
|
@@ -31,6 +31,9 @@ module TopologicalInventoryApiClient
|
|
31
31
|
# ID of the resource
|
32
32
|
attr_accessor :parent_orchestration_stack_id
|
33
33
|
|
34
|
+
# ID of the resource
|
35
|
+
attr_accessor :refresh_state_part_id
|
36
|
+
|
34
37
|
attr_accessor :source_created_at
|
35
38
|
|
36
39
|
attr_accessor :source_deleted_at
|
@@ -58,6 +61,7 @@ module TopologicalInventoryApiClient
|
|
58
61
|
:'last_seen_at' => :'last_seen_at',
|
59
62
|
:'name' => :'name',
|
60
63
|
:'parent_orchestration_stack_id' => :'parent_orchestration_stack_id',
|
64
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
61
65
|
:'source_created_at' => :'source_created_at',
|
62
66
|
:'source_deleted_at' => :'source_deleted_at',
|
63
67
|
:'source_id' => :'source_id',
|
@@ -78,6 +82,7 @@ module TopologicalInventoryApiClient
|
|
78
82
|
:'last_seen_at' => :'DateTime',
|
79
83
|
:'name' => :'String',
|
80
84
|
:'parent_orchestration_stack_id' => :'String',
|
85
|
+
:'refresh_state_part_id' => :'String',
|
81
86
|
:'source_created_at' => :'DateTime',
|
82
87
|
:'source_deleted_at' => :'DateTime',
|
83
88
|
:'source_id' => :'String',
|
@@ -137,6 +142,10 @@ module TopologicalInventoryApiClient
|
|
137
142
|
self.parent_orchestration_stack_id = attributes[:'parent_orchestration_stack_id']
|
138
143
|
end
|
139
144
|
|
145
|
+
if attributes.key?(:'refresh_state_part_id')
|
146
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
147
|
+
end
|
148
|
+
|
140
149
|
if attributes.key?(:'source_created_at')
|
141
150
|
self.source_created_at = attributes[:'source_created_at']
|
142
151
|
end
|
@@ -180,6 +189,11 @@ module TopologicalInventoryApiClient
|
|
180
189
|
invalid_properties.push("invalid value for \"parent_orchestration_stack_id\", must conform to the pattern #{pattern}.")
|
181
190
|
end
|
182
191
|
|
192
|
+
pattern = Regexp.new(/^\d+$/)
|
193
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
194
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
195
|
+
end
|
196
|
+
|
183
197
|
pattern = Regexp.new(/^\d+$/)
|
184
198
|
if !@source_id.nil? && @source_id !~ pattern
|
185
199
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -203,6 +217,7 @@ module TopologicalInventoryApiClient
|
|
203
217
|
def valid?
|
204
218
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
205
219
|
return false if !@parent_orchestration_stack_id.nil? && @parent_orchestration_stack_id !~ Regexp.new(/^\d+$/)
|
220
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
206
221
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
207
222
|
return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
|
208
223
|
return false if !@subscription_id.nil? && @subscription_id !~ Regexp.new(/^\d+$/)
|
@@ -231,6 +246,17 @@ module TopologicalInventoryApiClient
|
|
231
246
|
@parent_orchestration_stack_id = parent_orchestration_stack_id
|
232
247
|
end
|
233
248
|
|
249
|
+
# Custom attribute writer method with validation
|
250
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
251
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
252
|
+
pattern = Regexp.new(/^\d+$/)
|
253
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
254
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
255
|
+
end
|
256
|
+
|
257
|
+
@refresh_state_part_id = refresh_state_part_id
|
258
|
+
end
|
259
|
+
|
234
260
|
# Custom attribute writer method with validation
|
235
261
|
# @param [Object] source_id Value to be assigned
|
236
262
|
def source_id=(source_id)
|
@@ -276,6 +302,7 @@ module TopologicalInventoryApiClient
|
|
276
302
|
last_seen_at == o.last_seen_at &&
|
277
303
|
name == o.name &&
|
278
304
|
parent_orchestration_stack_id == o.parent_orchestration_stack_id &&
|
305
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
279
306
|
source_created_at == o.source_created_at &&
|
280
307
|
source_deleted_at == o.source_deleted_at &&
|
281
308
|
source_id == o.source_id &&
|
@@ -294,7 +321,7 @@ module TopologicalInventoryApiClient
|
|
294
321
|
# Calculates hash code according to all attributes.
|
295
322
|
# @return [Integer] Hash code
|
296
323
|
def hash
|
297
|
-
[archived_at, created_at, description, id, last_seen_at, name, parent_orchestration_stack_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
324
|
+
[archived_at, created_at, description, id, last_seen_at, name, parent_orchestration_stack_id, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
298
325
|
end
|
299
326
|
|
300
327
|
# Builds the object from hash
|
@@ -35,6 +35,9 @@ module TopologicalInventoryApiClient
|
|
35
35
|
# ID of the resource
|
36
36
|
attr_accessor :orchestration_stack_id
|
37
37
|
|
38
|
+
# ID of the resource
|
39
|
+
attr_accessor :refresh_state_part_id
|
40
|
+
|
38
41
|
attr_accessor :source_created_at
|
39
42
|
|
40
43
|
attr_accessor :source_deleted_at
|
@@ -64,6 +67,7 @@ module TopologicalInventoryApiClient
|
|
64
67
|
:'name' => :'name',
|
65
68
|
:'network_id' => :'network_id',
|
66
69
|
:'orchestration_stack_id' => :'orchestration_stack_id',
|
70
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
67
71
|
:'source_created_at' => :'source_created_at',
|
68
72
|
:'source_deleted_at' => :'source_deleted_at',
|
69
73
|
:'source_id' => :'source_id',
|
@@ -86,6 +90,7 @@ module TopologicalInventoryApiClient
|
|
86
90
|
:'name' => :'String',
|
87
91
|
:'network_id' => :'String',
|
88
92
|
:'orchestration_stack_id' => :'String',
|
93
|
+
:'refresh_state_part_id' => :'String',
|
89
94
|
:'source_created_at' => :'DateTime',
|
90
95
|
:'source_deleted_at' => :'DateTime',
|
91
96
|
:'source_id' => :'String',
|
@@ -153,6 +158,10 @@ module TopologicalInventoryApiClient
|
|
153
158
|
self.orchestration_stack_id = attributes[:'orchestration_stack_id']
|
154
159
|
end
|
155
160
|
|
161
|
+
if attributes.key?(:'refresh_state_part_id')
|
162
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
163
|
+
end
|
164
|
+
|
156
165
|
if attributes.key?(:'source_created_at')
|
157
166
|
self.source_created_at = attributes[:'source_created_at']
|
158
167
|
end
|
@@ -201,6 +210,11 @@ module TopologicalInventoryApiClient
|
|
201
210
|
invalid_properties.push("invalid value for \"orchestration_stack_id\", must conform to the pattern #{pattern}.")
|
202
211
|
end
|
203
212
|
|
213
|
+
pattern = Regexp.new(/^\d+$/)
|
214
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
215
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
216
|
+
end
|
217
|
+
|
204
218
|
pattern = Regexp.new(/^\d+$/)
|
205
219
|
if !@source_id.nil? && @source_id !~ pattern
|
206
220
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -225,6 +239,7 @@ module TopologicalInventoryApiClient
|
|
225
239
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
226
240
|
return false if !@network_id.nil? && @network_id !~ Regexp.new(/^\d+$/)
|
227
241
|
return false if !@orchestration_stack_id.nil? && @orchestration_stack_id !~ Regexp.new(/^\d+$/)
|
242
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
228
243
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
229
244
|
return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
|
230
245
|
return false if !@subscription_id.nil? && @subscription_id !~ Regexp.new(/^\d+$/)
|
@@ -264,6 +279,17 @@ module TopologicalInventoryApiClient
|
|
264
279
|
@orchestration_stack_id = orchestration_stack_id
|
265
280
|
end
|
266
281
|
|
282
|
+
# Custom attribute writer method with validation
|
283
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
284
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
285
|
+
pattern = Regexp.new(/^\d+$/)
|
286
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
287
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
288
|
+
end
|
289
|
+
|
290
|
+
@refresh_state_part_id = refresh_state_part_id
|
291
|
+
end
|
292
|
+
|
267
293
|
# Custom attribute writer method with validation
|
268
294
|
# @param [Object] source_id Value to be assigned
|
269
295
|
def source_id=(source_id)
|
@@ -311,6 +337,7 @@ module TopologicalInventoryApiClient
|
|
311
337
|
name == o.name &&
|
312
338
|
network_id == o.network_id &&
|
313
339
|
orchestration_stack_id == o.orchestration_stack_id &&
|
340
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
314
341
|
source_created_at == o.source_created_at &&
|
315
342
|
source_deleted_at == o.source_deleted_at &&
|
316
343
|
source_id == o.source_id &&
|
@@ -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
|
-
[archived_at, created_at, description, extra, id, last_seen_at, name, network_id, orchestration_stack_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
359
|
+
[archived_at, created_at, description, extra, id, last_seen_at, name, network_id, orchestration_stack_id, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
333
360
|
end
|
334
361
|
|
335
362
|
# Builds the object from hash
|