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
@@ -24,6 +24,9 @@ module TopologicalInventoryApiClient
24
24
 
25
25
  attr_accessor :last_seen_at
26
26
 
27
+ # ID of the resource
28
+ attr_accessor :refresh_state_part_id
29
+
27
30
  # ID of the resource
28
31
  attr_accessor :source_id
29
32
 
@@ -38,6 +41,7 @@ module TopologicalInventoryApiClient
38
41
  :'data' => :'data',
39
42
  :'id' => :'id',
40
43
  :'last_seen_at' => :'last_seen_at',
44
+ :'refresh_state_part_id' => :'refresh_state_part_id',
41
45
  :'source_id' => :'source_id',
42
46
  :'source_ref' => :'source_ref',
43
47
  :'updated_at' => :'updated_at'
@@ -51,6 +55,7 @@ module TopologicalInventoryApiClient
51
55
  :'data' => :'String',
52
56
  :'id' => :'String',
53
57
  :'last_seen_at' => :'DateTime',
58
+ :'refresh_state_part_id' => :'String',
54
59
  :'source_id' => :'String',
55
60
  :'source_ref' => :'String',
56
61
  :'updated_at' => :'DateTime'
@@ -94,6 +99,10 @@ module TopologicalInventoryApiClient
94
99
  self.last_seen_at = attributes[:'last_seen_at']
95
100
  end
96
101
 
102
+ if attributes.key?(:'refresh_state_part_id')
103
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
104
+ end
105
+
97
106
  if attributes.key?(:'source_id')
98
107
  self.source_id = attributes[:'source_id']
99
108
  end
@@ -116,6 +125,11 @@ module TopologicalInventoryApiClient
116
125
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
117
126
  end
118
127
 
128
+ pattern = Regexp.new(/^\d+$/)
129
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
130
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
131
+ end
132
+
119
133
  pattern = Regexp.new(/^\d+$/)
120
134
  if !@source_id.nil? && @source_id !~ pattern
121
135
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -128,6 +142,7 @@ module TopologicalInventoryApiClient
128
142
  # @return true if the model is valid
129
143
  def valid?
130
144
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
145
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
131
146
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
132
147
  true
133
148
  end
@@ -143,6 +158,17 @@ module TopologicalInventoryApiClient
143
158
  @id = id
144
159
  end
145
160
 
161
+ # Custom attribute writer method with validation
162
+ # @param [Object] refresh_state_part_id Value to be assigned
163
+ def refresh_state_part_id=(refresh_state_part_id)
164
+ pattern = Regexp.new(/^\d+$/)
165
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
166
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
167
+ end
168
+
169
+ @refresh_state_part_id = refresh_state_part_id
170
+ end
171
+
146
172
  # Custom attribute writer method with validation
147
173
  # @param [Object] source_id Value to be assigned
148
174
  def source_id=(source_id)
@@ -163,6 +189,7 @@ module TopologicalInventoryApiClient
163
189
  data == o.data &&
164
190
  id == o.id &&
165
191
  last_seen_at == o.last_seen_at &&
192
+ refresh_state_part_id == o.refresh_state_part_id &&
166
193
  source_id == o.source_id &&
167
194
  source_ref == o.source_ref &&
168
195
  updated_at == o.updated_at
@@ -177,7 +204,7 @@ module TopologicalInventoryApiClient
177
204
  # Calculates hash code according to all attributes.
178
205
  # @return [Integer] Hash code
179
206
  def hash
180
- [created_at, data, id, last_seen_at, source_id, source_ref, updated_at].hash
207
+ [created_at, data, id, last_seen_at, refresh_state_part_id, source_id, source_ref, updated_at].hash
181
208
  end
182
209
 
183
210
  # 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
  # ID of the resource
31
34
  attr_accessor :root_service_offering_id
32
35
 
@@ -56,6 +59,7 @@ module TopologicalInventoryApiClient
56
59
  :'id' => :'id',
57
60
  :'last_seen_at' => :'last_seen_at',
58
61
  :'name' => :'name',
62
+ :'refresh_state_part_id' => :'refresh_state_part_id',
59
63
  :'root_service_offering_id' => :'root_service_offering_id',
60
64
  :'service_inventory_id' => :'service_inventory_id',
61
65
  :'service_offering_id' => :'service_offering_id',
@@ -76,6 +80,7 @@ module TopologicalInventoryApiClient
76
80
  :'id' => :'String',
77
81
  :'last_seen_at' => :'DateTime',
78
82
  :'name' => :'String',
83
+ :'refresh_state_part_id' => :'String',
79
84
  :'root_service_offering_id' => :'String',
80
85
  :'service_inventory_id' => :'String',
81
86
  :'service_offering_id' => :'String',
@@ -132,6 +137,10 @@ module TopologicalInventoryApiClient
132
137
  self.name = attributes[:'name']
133
138
  end
134
139
 
140
+ if attributes.key?(:'refresh_state_part_id')
141
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
142
+ end
143
+
135
144
  if attributes.key?(:'root_service_offering_id')
136
145
  self.root_service_offering_id = attributes[:'root_service_offering_id']
137
146
  end
@@ -174,6 +183,11 @@ module TopologicalInventoryApiClient
174
183
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
175
184
  end
176
185
 
186
+ pattern = Regexp.new(/^\d+$/)
187
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
188
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
189
+ end
190
+
177
191
  pattern = Regexp.new(/^\d+$/)
178
192
  if !@root_service_offering_id.nil? && @root_service_offering_id !~ pattern
179
193
  invalid_properties.push("invalid value for \"root_service_offering_id\", must conform to the pattern #{pattern}.")
@@ -201,6 +215,7 @@ module TopologicalInventoryApiClient
201
215
  # @return true if the model is valid
202
216
  def valid?
203
217
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
218
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
204
219
  return false if !@root_service_offering_id.nil? && @root_service_offering_id !~ Regexp.new(/^\d+$/)
205
220
  return false if !@service_inventory_id.nil? && @service_inventory_id !~ Regexp.new(/^\d+$/)
206
221
  return false if !@service_offering_id.nil? && @service_offering_id !~ Regexp.new(/^\d+$/)
@@ -219,6 +234,17 @@ module TopologicalInventoryApiClient
219
234
  @id = id
220
235
  end
221
236
 
237
+ # Custom attribute writer method with validation
238
+ # @param [Object] refresh_state_part_id Value to be assigned
239
+ def refresh_state_part_id=(refresh_state_part_id)
240
+ pattern = Regexp.new(/^\d+$/)
241
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
242
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
243
+ end
244
+
245
+ @refresh_state_part_id = refresh_state_part_id
246
+ end
247
+
222
248
  # Custom attribute writer method with validation
223
249
  # @param [Object] root_service_offering_id Value to be assigned
224
250
  def root_service_offering_id=(root_service_offering_id)
@@ -274,6 +300,7 @@ module TopologicalInventoryApiClient
274
300
  id == o.id &&
275
301
  last_seen_at == o.last_seen_at &&
276
302
  name == o.name &&
303
+ refresh_state_part_id == o.refresh_state_part_id &&
277
304
  root_service_offering_id == o.root_service_offering_id &&
278
305
  service_inventory_id == o.service_inventory_id &&
279
306
  service_offering_id == o.service_offering_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, created_at, extra, id, last_seen_at, name, root_service_offering_id, service_inventory_id, service_offering_id, source_created_at, source_id, source_ref, source_updated_at, updated_at].hash
323
+ [archived_at, created_at, extra, id, last_seen_at, name, refresh_state_part_id, root_service_offering_id, service_inventory_id, service_offering_id, source_created_at, source_id, source_ref, source_updated_at, updated_at].hash
297
324
  end
298
325
 
299
326
  # Builds the object from hash
@@ -32,6 +32,9 @@ module TopologicalInventoryApiClient
32
32
 
33
33
  attr_accessor :name
34
34
 
35
+ # ID of the resource
36
+ attr_accessor :refresh_state_part_id
37
+
35
38
  attr_accessor :resource_version
36
39
 
37
40
  # ID of the resource
@@ -67,6 +70,7 @@ module TopologicalInventoryApiClient
67
70
  :'id' => :'id',
68
71
  :'last_seen_at' => :'last_seen_at',
69
72
  :'name' => :'name',
73
+ :'refresh_state_part_id' => :'refresh_state_part_id',
70
74
  :'resource_version' => :'resource_version',
71
75
  :'service_offering_id' => :'service_offering_id',
72
76
  :'source_created_at' => :'source_created_at',
@@ -91,6 +95,7 @@ module TopologicalInventoryApiClient
91
95
  :'id' => :'String',
92
96
  :'last_seen_at' => :'DateTime',
93
97
  :'name' => :'String',
98
+ :'refresh_state_part_id' => :'String',
94
99
  :'resource_version' => :'String',
95
100
  :'service_offering_id' => :'String',
96
101
  :'source_created_at' => :'DateTime',
@@ -157,6 +162,10 @@ module TopologicalInventoryApiClient
157
162
  self.name = attributes[:'name']
158
163
  end
159
164
 
165
+ if attributes.key?(:'refresh_state_part_id')
166
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
167
+ end
168
+
160
169
  if attributes.key?(:'resource_version')
161
170
  self.resource_version = attributes[:'resource_version']
162
171
  end
@@ -207,6 +216,11 @@ module TopologicalInventoryApiClient
207
216
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
208
217
  end
209
218
 
219
+ pattern = Regexp.new(/^\d+$/)
220
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
221
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
222
+ end
223
+
210
224
  pattern = Regexp.new(/^\d+$/)
211
225
  if !@service_offering_id.nil? && @service_offering_id !~ pattern
212
226
  invalid_properties.push("invalid value for \"service_offering_id\", must conform to the pattern #{pattern}.")
@@ -234,6 +248,7 @@ module TopologicalInventoryApiClient
234
248
  # @return true if the model is valid
235
249
  def valid?
236
250
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
251
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
237
252
  return false if !@service_offering_id.nil? && @service_offering_id !~ Regexp.new(/^\d+$/)
238
253
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
239
254
  return false if !@source_region_id.nil? && @source_region_id !~ Regexp.new(/^\d+$/)
@@ -252,6 +267,17 @@ module TopologicalInventoryApiClient
252
267
  @id = id
253
268
  end
254
269
 
270
+ # Custom attribute writer method with validation
271
+ # @param [Object] refresh_state_part_id Value to be assigned
272
+ def refresh_state_part_id=(refresh_state_part_id)
273
+ pattern = Regexp.new(/^\d+$/)
274
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
275
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
276
+ end
277
+
278
+ @refresh_state_part_id = refresh_state_part_id
279
+ end
280
+
255
281
  # Custom attribute writer method with validation
256
282
  # @param [Object] service_offering_id Value to be assigned
257
283
  def service_offering_id=(service_offering_id)
@@ -309,6 +335,7 @@ module TopologicalInventoryApiClient
309
335
  id == o.id &&
310
336
  last_seen_at == o.last_seen_at &&
311
337
  name == o.name &&
338
+ refresh_state_part_id == o.refresh_state_part_id &&
312
339
  resource_version == o.resource_version &&
313
340
  service_offering_id == o.service_offering_id &&
314
341
  source_created_at == o.source_created_at &&
@@ -330,7 +357,7 @@ module TopologicalInventoryApiClient
330
357
  # Calculates hash code according to all attributes.
331
358
  # @return [Integer] Hash code
332
359
  def hash
333
- [archived_at, create_json_schema, created_at, description, extra, id, last_seen_at, name, resource_version, service_offering_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, update_json_schema, updated_at].hash
360
+ [archived_at, create_json_schema, created_at, description, extra, id, last_seen_at, name, refresh_state_part_id, resource_version, service_offering_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, update_json_schema, updated_at].hash
334
361
  end
335
362
 
336
363
  # 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
  # ID of the resource
31
34
  attr_accessor :source_id
32
35
 
@@ -43,6 +46,7 @@ module TopologicalInventoryApiClient
43
46
  :'id' => :'id',
44
47
  :'last_seen_at' => :'last_seen_at',
45
48
  :'name' => :'name',
49
+ :'refresh_state_part_id' => :'refresh_state_part_id',
46
50
  :'source_id' => :'source_id',
47
51
  :'source_ref' => :'source_ref',
48
52
  :'updated_at' => :'updated_at'
@@ -58,6 +62,7 @@ module TopologicalInventoryApiClient
58
62
  :'id' => :'String',
59
63
  :'last_seen_at' => :'DateTime',
60
64
  :'name' => :'String',
65
+ :'refresh_state_part_id' => :'String',
61
66
  :'source_id' => :'String',
62
67
  :'source_ref' => :'String',
63
68
  :'updated_at' => :'DateTime'
@@ -109,6 +114,10 @@ module TopologicalInventoryApiClient
109
114
  self.name = attributes[:'name']
110
115
  end
111
116
 
117
+ if attributes.key?(:'refresh_state_part_id')
118
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
119
+ end
120
+
112
121
  if attributes.key?(:'source_id')
113
122
  self.source_id = attributes[:'source_id']
114
123
  end
@@ -131,6 +140,11 @@ module TopologicalInventoryApiClient
131
140
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
132
141
  end
133
142
 
143
+ pattern = Regexp.new(/^\d+$/)
144
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
145
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
146
+ end
147
+
134
148
  pattern = Regexp.new(/^\d+$/)
135
149
  if !@source_id.nil? && @source_id !~ pattern
136
150
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -143,6 +157,7 @@ module TopologicalInventoryApiClient
143
157
  # @return true if the model is valid
144
158
  def valid?
145
159
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
160
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
146
161
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
147
162
  true
148
163
  end
@@ -158,6 +173,17 @@ module TopologicalInventoryApiClient
158
173
  @id = id
159
174
  end
160
175
 
176
+ # Custom attribute writer method with validation
177
+ # @param [Object] refresh_state_part_id Value to be assigned
178
+ def refresh_state_part_id=(refresh_state_part_id)
179
+ pattern = Regexp.new(/^\d+$/)
180
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
181
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
182
+ end
183
+
184
+ @refresh_state_part_id = refresh_state_part_id
185
+ end
186
+
161
187
  # Custom attribute writer method with validation
162
188
  # @param [Object] source_id Value to be assigned
163
189
  def source_id=(source_id)
@@ -180,6 +206,7 @@ module TopologicalInventoryApiClient
180
206
  id == o.id &&
181
207
  last_seen_at == o.last_seen_at &&
182
208
  name == o.name &&
209
+ refresh_state_part_id == o.refresh_state_part_id &&
183
210
  source_id == o.source_id &&
184
211
  source_ref == o.source_ref &&
185
212
  updated_at == o.updated_at
@@ -194,7 +221,7 @@ module TopologicalInventoryApiClient
194
221
  # Calculates hash code according to all attributes.
195
222
  # @return [Integer] Hash code
196
223
  def hash
197
- [archived_at, created_at, endpoint, id, last_seen_at, name, source_id, source_ref, updated_at].hash
224
+ [archived_at, created_at, endpoint, id, last_seen_at, name, refresh_state_part_id, source_id, source_ref, updated_at].hash
198
225
  end
199
226
 
200
227
  # 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
@@ -66,6 +69,7 @@ module TopologicalInventoryApiClient
66
69
  :'name' => :'name',
67
70
  :'network_id' => :'network_id',
68
71
  :'orchestration_stack_id' => :'orchestration_stack_id',
72
+ :'refresh_state_part_id' => :'refresh_state_part_id',
69
73
  :'source_created_at' => :'source_created_at',
70
74
  :'source_deleted_at' => :'source_deleted_at',
71
75
  :'source_id' => :'source_id',
@@ -89,6 +93,7 @@ module TopologicalInventoryApiClient
89
93
  :'name' => :'String',
90
94
  :'network_id' => :'String',
91
95
  :'orchestration_stack_id' => :'String',
96
+ :'refresh_state_part_id' => :'String',
92
97
  :'source_created_at' => :'DateTime',
93
98
  :'source_deleted_at' => :'DateTime',
94
99
  :'source_id' => :'String',
@@ -157,6 +162,10 @@ module TopologicalInventoryApiClient
157
162
  self.orchestration_stack_id = attributes[:'orchestration_stack_id']
158
163
  end
159
164
 
165
+ if attributes.key?(:'refresh_state_part_id')
166
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
167
+ end
168
+
160
169
  if attributes.key?(:'source_created_at')
161
170
  self.source_created_at = attributes[:'source_created_at']
162
171
  end
@@ -209,6 +218,11 @@ module TopologicalInventoryApiClient
209
218
  invalid_properties.push("invalid value for \"orchestration_stack_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}.")
@@ -233,6 +247,7 @@ module TopologicalInventoryApiClient
233
247
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
234
248
  return false if !@network_id.nil? && @network_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+$/)
@@ -272,6 +287,17 @@ module TopologicalInventoryApiClient
272
287
  @orchestration_stack_id = orchestration_stack_id
273
288
  end
274
289
 
290
+ # Custom attribute writer method with validation
291
+ # @param [Object] refresh_state_part_id Value to be assigned
292
+ def refresh_state_part_id=(refresh_state_part_id)
293
+ pattern = Regexp.new(/^\d+$/)
294
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
295
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
296
+ end
297
+
298
+ @refresh_state_part_id = refresh_state_part_id
299
+ end
300
+
275
301
  # Custom attribute writer method with validation
276
302
  # @param [Object] source_id Value to be assigned
277
303
  def source_id=(source_id)
@@ -319,6 +345,7 @@ module TopologicalInventoryApiClient
319
345
  name == o.name &&
320
346
  network_id == o.network_id &&
321
347
  orchestration_stack_id == o.orchestration_stack_id &&
348
+ refresh_state_part_id == o.refresh_state_part_id &&
322
349
  source_created_at == o.source_created_at &&
323
350
  source_deleted_at == o.source_deleted_at &&
324
351
  source_id == o.source_id &&
@@ -338,7 +365,7 @@ module TopologicalInventoryApiClient
338
365
  # Calculates hash code according to all attributes.
339
366
  # @return [Integer] Hash code
340
367
  def hash
341
- [archived_at, cidr, created_at, extra, id, last_seen_at, name, network_id, orchestration_stack_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, status, subscription_id, updated_at].hash
368
+ [archived_at, cidr, created_at, 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, status, subscription_id, updated_at].hash
342
369
  end
343
370
 
344
371
  # Builds the object from hash
@@ -25,6 +25,9 @@ module TopologicalInventoryApiClient
25
25
 
26
26
  attr_accessor :name
27
27
 
28
+ # ID of the resource
29
+ attr_accessor :refresh_state_part_id
30
+
28
31
  # ID of the resource
29
32
  attr_accessor :source_id
30
33
 
@@ -40,6 +43,7 @@ module TopologicalInventoryApiClient
40
43
  :'id' => :'id',
41
44
  :'last_seen_at' => :'last_seen_at',
42
45
  :'name' => :'name',
46
+ :'refresh_state_part_id' => :'refresh_state_part_id',
43
47
  :'source_id' => :'source_id',
44
48
  :'source_ref' => :'source_ref',
45
49
  :'updated_at' => :'updated_at'
@@ -54,6 +58,7 @@ module TopologicalInventoryApiClient
54
58
  :'id' => :'String',
55
59
  :'last_seen_at' => :'DateTime',
56
60
  :'name' => :'String',
61
+ :'refresh_state_part_id' => :'String',
57
62
  :'source_id' => :'String',
58
63
  :'source_ref' => :'String',
59
64
  :'updated_at' => :'DateTime'
@@ -101,6 +106,10 @@ module TopologicalInventoryApiClient
101
106
  self.name = attributes[:'name']
102
107
  end
103
108
 
109
+ if attributes.key?(:'refresh_state_part_id')
110
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
111
+ end
112
+
104
113
  if attributes.key?(:'source_id')
105
114
  self.source_id = attributes[:'source_id']
106
115
  end
@@ -123,6 +132,11 @@ module TopologicalInventoryApiClient
123
132
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
124
133
  end
125
134
 
135
+ pattern = Regexp.new(/^\d+$/)
136
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
137
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
138
+ end
139
+
126
140
  pattern = Regexp.new(/^\d+$/)
127
141
  if !@source_id.nil? && @source_id !~ pattern
128
142
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -135,6 +149,7 @@ module TopologicalInventoryApiClient
135
149
  # @return true if the model is valid
136
150
  def valid?
137
151
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
152
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
138
153
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
139
154
  true
140
155
  end
@@ -150,6 +165,17 @@ module TopologicalInventoryApiClient
150
165
  @id = id
151
166
  end
152
167
 
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] refresh_state_part_id Value to be assigned
170
+ def refresh_state_part_id=(refresh_state_part_id)
171
+ pattern = Regexp.new(/^\d+$/)
172
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
173
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
174
+ end
175
+
176
+ @refresh_state_part_id = refresh_state_part_id
177
+ end
178
+
153
179
  # Custom attribute writer method with validation
154
180
  # @param [Object] source_id Value to be assigned
155
181
  def source_id=(source_id)
@@ -171,6 +197,7 @@ module TopologicalInventoryApiClient
171
197
  id == o.id &&
172
198
  last_seen_at == o.last_seen_at &&
173
199
  name == o.name &&
200
+ refresh_state_part_id == o.refresh_state_part_id &&
174
201
  source_id == o.source_id &&
175
202
  source_ref == o.source_ref &&
176
203
  updated_at == o.updated_at
@@ -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
- [archived_at, created_at, id, last_seen_at, name, source_id, source_ref, updated_at].hash
215
+ [archived_at, created_at, id, last_seen_at, name, refresh_state_part_id, source_id, source_ref, updated_at].hash
189
216
  end
190
217
 
191
218
  # Builds the object from hash