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
@@ -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 :service_credential_type_id
|
32
35
|
|
@@ -52,6 +55,7 @@ module TopologicalInventoryApiClient
|
|
52
55
|
:'id' => :'id',
|
53
56
|
:'last_seen_at' => :'last_seen_at',
|
54
57
|
:'name' => :'name',
|
58
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
55
59
|
:'service_credential_type_id' => :'service_credential_type_id',
|
56
60
|
:'source_created_at' => :'source_created_at',
|
57
61
|
:'source_id' => :'source_id',
|
@@ -71,6 +75,7 @@ module TopologicalInventoryApiClient
|
|
71
75
|
:'id' => :'String',
|
72
76
|
:'last_seen_at' => :'DateTime',
|
73
77
|
:'name' => :'String',
|
78
|
+
:'refresh_state_part_id' => :'String',
|
74
79
|
:'service_credential_type_id' => :'String',
|
75
80
|
:'source_created_at' => :'DateTime',
|
76
81
|
:'source_id' => :'String',
|
@@ -126,6 +131,10 @@ module TopologicalInventoryApiClient
|
|
126
131
|
self.name = attributes[:'name']
|
127
132
|
end
|
128
133
|
|
134
|
+
if attributes.key?(:'refresh_state_part_id')
|
135
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
136
|
+
end
|
137
|
+
|
129
138
|
if attributes.key?(:'service_credential_type_id')
|
130
139
|
self.service_credential_type_id = attributes[:'service_credential_type_id']
|
131
140
|
end
|
@@ -164,6 +173,11 @@ module TopologicalInventoryApiClient
|
|
164
173
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
165
174
|
end
|
166
175
|
|
176
|
+
pattern = Regexp.new(/^\d+$/)
|
177
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
178
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
179
|
+
end
|
180
|
+
|
167
181
|
pattern = Regexp.new(/^\d+$/)
|
168
182
|
if !@service_credential_type_id.nil? && @service_credential_type_id !~ pattern
|
169
183
|
invalid_properties.push("invalid value for \"service_credential_type_id\", must conform to the pattern #{pattern}.")
|
@@ -181,6 +195,7 @@ module TopologicalInventoryApiClient
|
|
181
195
|
# @return true if the model is valid
|
182
196
|
def valid?
|
183
197
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
198
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
184
199
|
return false if !@service_credential_type_id.nil? && @service_credential_type_id !~ Regexp.new(/^\d+$/)
|
185
200
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
186
201
|
true
|
@@ -197,6 +212,17 @@ module TopologicalInventoryApiClient
|
|
197
212
|
@id = id
|
198
213
|
end
|
199
214
|
|
215
|
+
# Custom attribute writer method with validation
|
216
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
217
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
218
|
+
pattern = Regexp.new(/^\d+$/)
|
219
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
220
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
221
|
+
end
|
222
|
+
|
223
|
+
@refresh_state_part_id = refresh_state_part_id
|
224
|
+
end
|
225
|
+
|
200
226
|
# Custom attribute writer method with validation
|
201
227
|
# @param [Object] service_credential_type_id Value to be assigned
|
202
228
|
def service_credential_type_id=(service_credential_type_id)
|
@@ -230,6 +256,7 @@ module TopologicalInventoryApiClient
|
|
230
256
|
id == o.id &&
|
231
257
|
last_seen_at == o.last_seen_at &&
|
232
258
|
name == o.name &&
|
259
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
233
260
|
service_credential_type_id == o.service_credential_type_id &&
|
234
261
|
source_created_at == o.source_created_at &&
|
235
262
|
source_id == o.source_id &&
|
@@ -248,7 +275,7 @@ module TopologicalInventoryApiClient
|
|
248
275
|
# Calculates hash code according to all attributes.
|
249
276
|
# @return [Integer] Hash code
|
250
277
|
def hash
|
251
|
-
[archived_at, created_at, description, id, last_seen_at, name, service_credential_type_id, source_created_at, source_id, source_ref, source_updated_at, type_name, updated_at].hash
|
278
|
+
[archived_at, created_at, description, id, last_seen_at, name, refresh_state_part_id, service_credential_type_id, source_created_at, source_id, source_ref, source_updated_at, type_name, updated_at].hash
|
252
279
|
end
|
253
280
|
|
254
281
|
# Builds the object from hash
|
@@ -31,6 +31,9 @@ module TopologicalInventoryApiClient
|
|
31
31
|
|
32
32
|
attr_accessor :namespace
|
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
|
@@ -53,6 +56,7 @@ module TopologicalInventoryApiClient
|
|
53
56
|
:'last_seen_at' => :'last_seen_at',
|
54
57
|
:'name' => :'name',
|
55
58
|
:'namespace' => :'namespace',
|
59
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
56
60
|
:'source_created_at' => :'source_created_at',
|
57
61
|
:'source_deleted_at' => :'source_deleted_at',
|
58
62
|
:'source_id' => :'source_id',
|
@@ -72,6 +76,7 @@ module TopologicalInventoryApiClient
|
|
72
76
|
:'last_seen_at' => :'DateTime',
|
73
77
|
:'name' => :'String',
|
74
78
|
:'namespace' => :'String',
|
79
|
+
:'refresh_state_part_id' => :'String',
|
75
80
|
:'source_created_at' => :'DateTime',
|
76
81
|
:'source_deleted_at' => :'DateTime',
|
77
82
|
:'source_id' => :'String',
|
@@ -133,6 +138,10 @@ module TopologicalInventoryApiClient
|
|
133
138
|
self.namespace = attributes[:'namespace']
|
134
139
|
end
|
135
140
|
|
141
|
+
if attributes.key?(:'refresh_state_part_id')
|
142
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
143
|
+
end
|
144
|
+
|
136
145
|
if attributes.key?(:'source_created_at')
|
137
146
|
self.source_created_at = attributes[:'source_created_at']
|
138
147
|
end
|
@@ -163,6 +172,11 @@ module TopologicalInventoryApiClient
|
|
163
172
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
164
173
|
end
|
165
174
|
|
175
|
+
pattern = Regexp.new(/^\d+$/)
|
176
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
177
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
178
|
+
end
|
179
|
+
|
166
180
|
pattern = Regexp.new(/^\d+$/)
|
167
181
|
if !@source_id.nil? && @source_id !~ pattern
|
168
182
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -175,6 +189,7 @@ module TopologicalInventoryApiClient
|
|
175
189
|
# @return true if the model is valid
|
176
190
|
def valid?
|
177
191
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
192
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
178
193
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
179
194
|
true
|
180
195
|
end
|
@@ -190,6 +205,17 @@ module TopologicalInventoryApiClient
|
|
190
205
|
@id = id
|
191
206
|
end
|
192
207
|
|
208
|
+
# Custom attribute writer method with validation
|
209
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
210
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
211
|
+
pattern = Regexp.new(/^\d+$/)
|
212
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
213
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
214
|
+
end
|
215
|
+
|
216
|
+
@refresh_state_part_id = refresh_state_part_id
|
217
|
+
end
|
218
|
+
|
193
219
|
# Custom attribute writer method with validation
|
194
220
|
# @param [Object] source_id Value to be assigned
|
195
221
|
def source_id=(source_id)
|
@@ -214,6 +240,7 @@ module TopologicalInventoryApiClient
|
|
214
240
|
last_seen_at == o.last_seen_at &&
|
215
241
|
name == o.name &&
|
216
242
|
namespace == o.namespace &&
|
243
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
217
244
|
source_created_at == o.source_created_at &&
|
218
245
|
source_deleted_at == o.source_deleted_at &&
|
219
246
|
source_id == o.source_id &&
|
@@ -230,7 +257,7 @@ module TopologicalInventoryApiClient
|
|
230
257
|
# Calculates hash code according to all attributes.
|
231
258
|
# @return [Integer] Hash code
|
232
259
|
def hash
|
233
|
-
[archived_at, created_at, description, id, kind, last_seen_at, name, namespace, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
|
260
|
+
[archived_at, created_at, description, id, kind, last_seen_at, name, namespace, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
|
234
261
|
end
|
235
262
|
|
236
263
|
# Builds the object from hash
|
@@ -30,6 +30,9 @@ module TopologicalInventoryApiClient
|
|
30
30
|
|
31
31
|
attr_accessor :name
|
32
32
|
|
33
|
+
# ID of the resource
|
34
|
+
attr_accessor :refresh_state_part_id
|
35
|
+
|
33
36
|
# ID of the resource
|
34
37
|
attr_accessor :root_service_instance_id
|
35
38
|
|
@@ -69,6 +72,7 @@ module TopologicalInventoryApiClient
|
|
69
72
|
:'id' => :'id',
|
70
73
|
:'last_seen_at' => :'last_seen_at',
|
71
74
|
:'name' => :'name',
|
75
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
72
76
|
:'root_service_instance_id' => :'root_service_instance_id',
|
73
77
|
:'service_inventory_id' => :'service_inventory_id',
|
74
78
|
:'service_offering_id' => :'service_offering_id',
|
@@ -93,6 +97,7 @@ module TopologicalInventoryApiClient
|
|
93
97
|
:'id' => :'String',
|
94
98
|
:'last_seen_at' => :'DateTime',
|
95
99
|
:'name' => :'String',
|
100
|
+
:'refresh_state_part_id' => :'String',
|
96
101
|
:'root_service_instance_id' => :'String',
|
97
102
|
:'service_inventory_id' => :'String',
|
98
103
|
:'service_offering_id' => :'String',
|
@@ -156,6 +161,10 @@ module TopologicalInventoryApiClient
|
|
156
161
|
self.name = attributes[:'name']
|
157
162
|
end
|
158
163
|
|
164
|
+
if attributes.key?(:'refresh_state_part_id')
|
165
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
166
|
+
end
|
167
|
+
|
159
168
|
if attributes.key?(:'root_service_instance_id')
|
160
169
|
self.root_service_instance_id = attributes[:'root_service_instance_id']
|
161
170
|
end
|
@@ -210,6 +219,11 @@ module TopologicalInventoryApiClient
|
|
210
219
|
invalid_properties.push("invalid value for \"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 !@root_service_instance_id.nil? && @root_service_instance_id !~ pattern
|
215
229
|
invalid_properties.push("invalid value for \"root_service_instance_id\", must conform to the pattern #{pattern}.")
|
@@ -252,6 +266,7 @@ module TopologicalInventoryApiClient
|
|
252
266
|
# @return true if the model is valid
|
253
267
|
def valid?
|
254
268
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
269
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
255
270
|
return false if !@root_service_instance_id.nil? && @root_service_instance_id !~ Regexp.new(/^\d+$/)
|
256
271
|
return false if !@service_inventory_id.nil? && @service_inventory_id !~ Regexp.new(/^\d+$/)
|
257
272
|
return false if !@service_offering_id.nil? && @service_offering_id !~ Regexp.new(/^\d+$/)
|
@@ -273,6 +288,17 @@ module TopologicalInventoryApiClient
|
|
273
288
|
@id = id
|
274
289
|
end
|
275
290
|
|
291
|
+
# Custom attribute writer method with validation
|
292
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
293
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
294
|
+
pattern = Regexp.new(/^\d+$/)
|
295
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
296
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
297
|
+
end
|
298
|
+
|
299
|
+
@refresh_state_part_id = refresh_state_part_id
|
300
|
+
end
|
301
|
+
|
276
302
|
# Custom attribute writer method with validation
|
277
303
|
# @param [Object] root_service_instance_id Value to be assigned
|
278
304
|
def root_service_instance_id=(root_service_instance_id)
|
@@ -362,6 +388,7 @@ module TopologicalInventoryApiClient
|
|
362
388
|
id == o.id &&
|
363
389
|
last_seen_at == o.last_seen_at &&
|
364
390
|
name == o.name &&
|
391
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
365
392
|
root_service_instance_id == o.root_service_instance_id &&
|
366
393
|
service_inventory_id == o.service_inventory_id &&
|
367
394
|
service_offering_id == o.service_offering_id &&
|
@@ -384,7 +411,7 @@ module TopologicalInventoryApiClient
|
|
384
411
|
# Calculates hash code according to all attributes.
|
385
412
|
# @return [Integer] Hash code
|
386
413
|
def hash
|
387
|
-
[archived_at, created_at, external_url, extra, id, last_seen_at, name, root_service_instance_id, service_inventory_id, service_offering_id, service_plan_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
414
|
+
[archived_at, created_at, external_url, extra, id, last_seen_at, name, refresh_state_part_id, root_service_instance_id, service_inventory_id, service_offering_id, service_plan_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, updated_at].hash
|
388
415
|
end
|
389
416
|
|
390
417
|
# 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_instance_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_instance_id' => :'root_service_instance_id',
|
60
64
|
:'service_instance_id' => :'service_instance_id',
|
61
65
|
:'service_inventory_id' => :'service_inventory_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_instance_id' => :'String',
|
80
85
|
:'service_instance_id' => :'String',
|
81
86
|
:'service_inventory_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_instance_id')
|
136
145
|
self.root_service_instance_id = attributes[:'root_service_instance_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_instance_id.nil? && @root_service_instance_id !~ pattern
|
179
193
|
invalid_properties.push("invalid value for \"root_service_instance_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_instance_id.nil? && @root_service_instance_id !~ Regexp.new(/^\d+$/)
|
205
220
|
return false if !@service_instance_id.nil? && @service_instance_id !~ Regexp.new(/^\d+$/)
|
206
221
|
return false if !@service_inventory_id.nil? && @service_inventory_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_instance_id Value to be assigned
|
224
250
|
def root_service_instance_id=(root_service_instance_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_instance_id == o.root_service_instance_id &&
|
278
305
|
service_instance_id == o.service_instance_id &&
|
279
306
|
service_inventory_id == o.service_inventory_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_instance_id, service_instance_id, service_inventory_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_instance_id, service_instance_id, service_inventory_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
|
@@ -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
|
attr_accessor :source_created_at
|
33
36
|
|
34
37
|
# ID of the resource
|
@@ -50,6 +53,7 @@ module TopologicalInventoryApiClient
|
|
50
53
|
:'id' => :'id',
|
51
54
|
:'last_seen_at' => :'last_seen_at',
|
52
55
|
:'name' => :'name',
|
56
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
53
57
|
:'source_created_at' => :'source_created_at',
|
54
58
|
:'source_id' => :'source_id',
|
55
59
|
:'source_ref' => :'source_ref',
|
@@ -68,6 +72,7 @@ module TopologicalInventoryApiClient
|
|
68
72
|
:'id' => :'String',
|
69
73
|
:'last_seen_at' => :'DateTime',
|
70
74
|
:'name' => :'String',
|
75
|
+
:'refresh_state_part_id' => :'String',
|
71
76
|
:'source_created_at' => :'DateTime',
|
72
77
|
:'source_id' => :'String',
|
73
78
|
:'source_ref' => :'String',
|
@@ -125,6 +130,10 @@ module TopologicalInventoryApiClient
|
|
125
130
|
self.name = attributes[:'name']
|
126
131
|
end
|
127
132
|
|
133
|
+
if attributes.key?(:'refresh_state_part_id')
|
134
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
135
|
+
end
|
136
|
+
|
128
137
|
if attributes.key?(:'source_created_at')
|
129
138
|
self.source_created_at = attributes[:'source_created_at']
|
130
139
|
end
|
@@ -155,6 +164,11 @@ module TopologicalInventoryApiClient
|
|
155
164
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
156
165
|
end
|
157
166
|
|
167
|
+
pattern = Regexp.new(/^\d+$/)
|
168
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
169
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
170
|
+
end
|
171
|
+
|
158
172
|
pattern = Regexp.new(/^\d+$/)
|
159
173
|
if !@source_id.nil? && @source_id !~ pattern
|
160
174
|
invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
|
@@ -167,6 +181,7 @@ module TopologicalInventoryApiClient
|
|
167
181
|
# @return true if the model is valid
|
168
182
|
def valid?
|
169
183
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
184
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
170
185
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
171
186
|
true
|
172
187
|
end
|
@@ -182,6 +197,17 @@ module TopologicalInventoryApiClient
|
|
182
197
|
@id = id
|
183
198
|
end
|
184
199
|
|
200
|
+
# Custom attribute writer method with validation
|
201
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
202
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
203
|
+
pattern = Regexp.new(/^\d+$/)
|
204
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
205
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
206
|
+
end
|
207
|
+
|
208
|
+
@refresh_state_part_id = refresh_state_part_id
|
209
|
+
end
|
210
|
+
|
185
211
|
# Custom attribute writer method with validation
|
186
212
|
# @param [Object] source_id Value to be assigned
|
187
213
|
def source_id=(source_id)
|
@@ -205,6 +231,7 @@ module TopologicalInventoryApiClient
|
|
205
231
|
id == o.id &&
|
206
232
|
last_seen_at == o.last_seen_at &&
|
207
233
|
name == o.name &&
|
234
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
208
235
|
source_created_at == o.source_created_at &&
|
209
236
|
source_id == o.source_id &&
|
210
237
|
source_ref == o.source_ref &&
|
@@ -221,7 +248,7 @@ module TopologicalInventoryApiClient
|
|
221
248
|
# Calculates hash code according to all attributes.
|
222
249
|
# @return [Integer] Hash code
|
223
250
|
def hash
|
224
|
-
[archived_at, created_at, description, extra, id, last_seen_at, name, source_created_at, source_id, source_ref, source_updated_at, updated_at].hash
|
251
|
+
[archived_at, created_at, description, extra, id, last_seen_at, name, refresh_state_part_id, source_created_at, source_id, source_ref, source_updated_at, updated_at].hash
|
225
252
|
end
|
226
253
|
|
227
254
|
# Builds the object from hash
|
@@ -38,6 +38,9 @@ module TopologicalInventoryApiClient
|
|
38
38
|
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
+
# ID of the resource
|
42
|
+
attr_accessor :refresh_state_part_id
|
43
|
+
|
41
44
|
# ID of the resource
|
42
45
|
attr_accessor :service_inventory_id
|
43
46
|
|
@@ -78,6 +81,7 @@ module TopologicalInventoryApiClient
|
|
78
81
|
:'last_seen_at' => :'last_seen_at',
|
79
82
|
:'long_description' => :'long_description',
|
80
83
|
:'name' => :'name',
|
84
|
+
:'refresh_state_part_id' => :'refresh_state_part_id',
|
81
85
|
:'service_inventory_id' => :'service_inventory_id',
|
82
86
|
:'service_offering_icon_id' => :'service_offering_icon_id',
|
83
87
|
:'source_created_at' => :'source_created_at',
|
@@ -105,6 +109,7 @@ module TopologicalInventoryApiClient
|
|
105
109
|
:'last_seen_at' => :'DateTime',
|
106
110
|
:'long_description' => :'String',
|
107
111
|
:'name' => :'String',
|
112
|
+
:'refresh_state_part_id' => :'String',
|
108
113
|
:'service_inventory_id' => :'String',
|
109
114
|
:'service_offering_icon_id' => :'String',
|
110
115
|
:'source_created_at' => :'DateTime',
|
@@ -183,6 +188,10 @@ module TopologicalInventoryApiClient
|
|
183
188
|
self.name = attributes[:'name']
|
184
189
|
end
|
185
190
|
|
191
|
+
if attributes.key?(:'refresh_state_part_id')
|
192
|
+
self.refresh_state_part_id = attributes[:'refresh_state_part_id']
|
193
|
+
end
|
194
|
+
|
186
195
|
if attributes.key?(:'service_inventory_id')
|
187
196
|
self.service_inventory_id = attributes[:'service_inventory_id']
|
188
197
|
end
|
@@ -233,6 +242,11 @@ module TopologicalInventoryApiClient
|
|
233
242
|
invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
|
234
243
|
end
|
235
244
|
|
245
|
+
pattern = Regexp.new(/^\d+$/)
|
246
|
+
if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
|
247
|
+
invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
|
248
|
+
end
|
249
|
+
|
236
250
|
pattern = Regexp.new(/^\d+$/)
|
237
251
|
if !@service_inventory_id.nil? && @service_inventory_id !~ pattern
|
238
252
|
invalid_properties.push("invalid value for \"service_inventory_id\", must conform to the pattern #{pattern}.")
|
@@ -265,6 +279,7 @@ module TopologicalInventoryApiClient
|
|
265
279
|
# @return true if the model is valid
|
266
280
|
def valid?
|
267
281
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
282
|
+
return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
|
268
283
|
return false if !@service_inventory_id.nil? && @service_inventory_id !~ Regexp.new(/^\d+$/)
|
269
284
|
return false if !@service_offering_icon_id.nil? && @service_offering_icon_id !~ Regexp.new(/^\d+$/)
|
270
285
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
@@ -284,6 +299,17 @@ module TopologicalInventoryApiClient
|
|
284
299
|
@id = id
|
285
300
|
end
|
286
301
|
|
302
|
+
# Custom attribute writer method with validation
|
303
|
+
# @param [Object] refresh_state_part_id Value to be assigned
|
304
|
+
def refresh_state_part_id=(refresh_state_part_id)
|
305
|
+
pattern = Regexp.new(/^\d+$/)
|
306
|
+
if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
|
307
|
+
fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
|
308
|
+
end
|
309
|
+
|
310
|
+
@refresh_state_part_id = refresh_state_part_id
|
311
|
+
end
|
312
|
+
|
287
313
|
# Custom attribute writer method with validation
|
288
314
|
# @param [Object] service_inventory_id Value to be assigned
|
289
315
|
def service_inventory_id=(service_inventory_id)
|
@@ -355,6 +381,7 @@ module TopologicalInventoryApiClient
|
|
355
381
|
last_seen_at == o.last_seen_at &&
|
356
382
|
long_description == o.long_description &&
|
357
383
|
name == o.name &&
|
384
|
+
refresh_state_part_id == o.refresh_state_part_id &&
|
358
385
|
service_inventory_id == o.service_inventory_id &&
|
359
386
|
service_offering_icon_id == o.service_offering_icon_id &&
|
360
387
|
source_created_at == o.source_created_at &&
|
@@ -376,7 +403,7 @@ module TopologicalInventoryApiClient
|
|
376
403
|
# Calculates hash code according to all attributes.
|
377
404
|
# @return [Integer] Hash code
|
378
405
|
def hash
|
379
|
-
[archived_at, created_at, description, display_name, distributor, documentation_url, extra, id, last_seen_at, long_description, name, service_inventory_id, service_offering_icon_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, support_url, updated_at].hash
|
406
|
+
[archived_at, created_at, description, display_name, distributor, documentation_url, extra, id, last_seen_at, long_description, name, refresh_state_part_id, service_inventory_id, service_offering_icon_id, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, support_url, updated_at].hash
|
380
407
|
end
|
381
408
|
|
382
409
|
# Builds the object from hash
|