topological_inventory-api-client 1.0.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/DefaultApi.md +1444 -1
- data/docs/ServiceInstance.md +2 -0
- data/docs/ServiceInstanceNode.md +2 -0
- data/docs/ServiceOffering.md +2 -0
- data/docs/ServiceOfferingNode.md +2 -0
- data/docs/Tag.md +2 -14
- data/docs/Vm.md +2 -0
- data/lib/topological_inventory-api-client.rb +1 -2
- data/lib/topological_inventory-api-client/api/default_api.rb +1925 -1
- data/lib/topological_inventory-api-client/api_client.rb +1 -1
- data/lib/topological_inventory-api-client/api_error.rb +1 -1
- data/lib/topological_inventory-api-client/configuration.rb +4 -4
- data/lib/topological_inventory-api-client/models/applied_inventories_parameters_service_plan.rb +1 -1
- data/lib/topological_inventory-api-client/models/availabilities_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/availability.rb +1 -1
- data/lib/topological_inventory-api-client/models/cluster.rb +1 -1
- data/lib/topological_inventory-api-client/models/clusters_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/collection_links.rb +1 -1
- data/lib/topological_inventory-api-client/models/collection_metadata.rb +1 -1
- data/lib/topological_inventory-api-client/models/container.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_group.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_groups_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_image.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_images_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_node.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_nodes_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_project.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_projects_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_resource_quota.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_resource_quota_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_template.rb +1 -1
- data/lib/topological_inventory-api-client/models/container_templates_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/containers_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/datastore.rb +1 -1
- data/lib/topological_inventory-api-client/models/datastores_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/error_not_found.rb +1 -1
- data/lib/topological_inventory-api-client/models/error_not_found_errors.rb +1 -1
- data/lib/topological_inventory-api-client/models/flavor.rb +1 -1
- data/lib/topological_inventory-api-client/models/flavors_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/graph_ql_request.rb +1 -1
- data/lib/topological_inventory-api-client/models/graph_ql_response.rb +1 -1
- data/lib/topological_inventory-api-client/models/host.rb +1 -1
- data/lib/topological_inventory-api-client/models/hosts_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/inline_response200.rb +1 -1
- data/lib/topological_inventory-api-client/models/ipaddress.rb +1 -1
- data/lib/topological_inventory-api-client/models/ipaddresses_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/network.rb +1 -1
- data/lib/topological_inventory-api-client/models/network_adapter.rb +1 -1
- data/lib/topological_inventory-api-client/models/network_adapters_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/networks_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/orchestration_stack.rb +1 -1
- data/lib/topological_inventory-api-client/models/orchestration_stacks_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/order_parameters_service_offering.rb +1 -1
- data/lib/topological_inventory-api-client/models/order_parameters_service_plan.rb +1 -1
- data/lib/topological_inventory-api-client/models/security_group.rb +1 -1
- data/lib/topological_inventory-api-client/models/security_groups_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_instance.rb +29 -2
- data/lib/topological_inventory-api-client/models/service_instance_node.rb +29 -2
- data/lib/topological_inventory-api-client/models/service_instance_nodes_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_instances_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_inventories_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_inventory.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_offering.rb +29 -2
- data/lib/topological_inventory-api-client/models/service_offering_icon.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_offering_icons_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_offering_node.rb +29 -2
- data/lib/topological_inventory-api-client/models/service_offering_nodes_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_offerings_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_plan.rb +1 -1
- data/lib/topological_inventory-api-client/models/service_plans_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/source.rb +1 -1
- data/lib/topological_inventory-api-client/models/source_region.rb +1 -1
- data/lib/topological_inventory-api-client/models/source_regions_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/sources_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/subnet.rb +1 -1
- data/lib/topological_inventory-api-client/models/subnets_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/subscription.rb +1 -1
- data/lib/topological_inventory-api-client/models/subscriptions_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/tag.rb +8 -80
- data/lib/topological_inventory-api-client/models/tags_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/task.rb +1 -1
- data/lib/topological_inventory-api-client/models/tasks_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/tenant.rb +1 -1
- data/lib/topological_inventory-api-client/models/vm.rb +29 -2
- data/lib/topological_inventory-api-client/models/vms_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/volume.rb +1 -1
- data/lib/topological_inventory-api-client/models/volume_attachment.rb +1 -1
- data/lib/topological_inventory-api-client/models/volume_attachments_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/volume_type.rb +1 -1
- data/lib/topological_inventory-api-client/models/volume_types_collection.rb +1 -1
- data/lib/topological_inventory-api-client/models/volumes_collection.rb +1 -1
- data/lib/topological_inventory-api-client/version.rb +2 -2
- data/spec/api/default_api_spec.rb +339 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/applied_inventories_parameters_service_plan_spec.rb +1 -1
- data/spec/models/availabilities_collection_spec.rb +1 -1
- data/spec/models/availability_spec.rb +1 -1
- data/spec/models/cluster_spec.rb +1 -1
- data/spec/models/clusters_collection_spec.rb +1 -1
- data/spec/models/collection_links_spec.rb +1 -1
- data/spec/models/collection_metadata_spec.rb +1 -1
- data/spec/models/container_group_spec.rb +1 -1
- data/spec/models/container_groups_collection_spec.rb +1 -1
- data/spec/models/container_image_spec.rb +1 -1
- data/spec/models/container_images_collection_spec.rb +1 -1
- data/spec/models/container_node_spec.rb +1 -1
- data/spec/models/container_nodes_collection_spec.rb +1 -1
- data/spec/models/container_project_spec.rb +1 -1
- data/spec/models/container_projects_collection_spec.rb +1 -1
- data/spec/models/container_resource_quota_collection_spec.rb +1 -1
- data/spec/models/container_resource_quota_spec.rb +1 -1
- data/spec/models/container_spec.rb +1 -1
- data/spec/models/container_template_spec.rb +1 -1
- data/spec/models/container_templates_collection_spec.rb +1 -1
- data/spec/models/containers_collection_spec.rb +1 -1
- data/spec/models/datastore_spec.rb +1 -1
- data/spec/models/datastores_collection_spec.rb +1 -1
- data/spec/models/error_not_found_errors_spec.rb +1 -1
- data/spec/models/error_not_found_spec.rb +1 -1
- data/spec/models/flavor_spec.rb +1 -1
- data/spec/models/flavors_collection_spec.rb +1 -1
- data/spec/models/graph_ql_request_spec.rb +1 -1
- data/spec/models/graph_ql_response_spec.rb +1 -1
- data/spec/models/host_spec.rb +1 -1
- data/spec/models/hosts_collection_spec.rb +1 -1
- data/spec/models/inline_response200_spec.rb +1 -1
- data/spec/models/ipaddress_spec.rb +1 -1
- data/spec/models/ipaddresses_collection_spec.rb +1 -1
- data/spec/models/network_adapter_spec.rb +1 -1
- data/spec/models/network_adapters_collection_spec.rb +1 -1
- data/spec/models/network_spec.rb +1 -1
- data/spec/models/networks_collection_spec.rb +1 -1
- data/spec/models/orchestration_stack_spec.rb +1 -1
- data/spec/models/orchestration_stacks_collection_spec.rb +1 -1
- data/spec/models/order_parameters_service_offering_spec.rb +1 -1
- data/spec/models/order_parameters_service_plan_spec.rb +1 -1
- data/spec/models/security_group_spec.rb +1 -1
- data/spec/models/security_groups_collection_spec.rb +1 -1
- data/spec/models/service_instance_node_spec.rb +7 -1
- data/spec/models/service_instance_nodes_collection_spec.rb +1 -1
- data/spec/models/service_instance_spec.rb +7 -1
- data/spec/models/service_instances_collection_spec.rb +1 -1
- data/spec/models/service_inventories_collection_spec.rb +1 -1
- data/spec/models/service_inventory_spec.rb +1 -1
- data/spec/models/service_offering_icon_spec.rb +1 -1
- data/spec/models/service_offering_icons_collection_spec.rb +1 -1
- data/spec/models/service_offering_node_spec.rb +7 -1
- data/spec/models/service_offering_nodes_collection_spec.rb +1 -1
- data/spec/models/service_offering_spec.rb +7 -1
- data/spec/models/service_offerings_collection_spec.rb +1 -1
- data/spec/models/service_plan_spec.rb +1 -1
- data/spec/models/service_plans_collection_spec.rb +1 -1
- data/spec/models/source_region_spec.rb +1 -1
- data/spec/models/source_regions_collection_spec.rb +1 -1
- data/spec/models/source_spec.rb +1 -1
- data/spec/models/sources_collection_spec.rb +1 -1
- data/spec/models/subnet_spec.rb +1 -1
- data/spec/models/subnets_collection_spec.rb +1 -1
- data/spec/models/subscription_spec.rb +1 -1
- data/spec/models/subscriptions_collection_spec.rb +1 -1
- data/spec/models/tag_spec.rb +2 -38
- data/spec/models/tags_collection_spec.rb +1 -1
- data/spec/models/task_spec.rb +1 -1
- data/spec/models/tasks_collection_spec.rb +1 -1
- data/spec/models/tenant_spec.rb +1 -1
- data/spec/models/vm_spec.rb +7 -1
- data/spec/models/vms_collection_spec.rb +1 -1
- data/spec/models/volume_attachment_spec.rb +1 -1
- data/spec/models/volume_attachments_collection_spec.rb +1 -1
- data/spec/models/volume_spec.rb +1 -1
- data/spec/models/volume_type_spec.rb +1 -1
- data/spec/models/volume_types_collection_spec.rb +1 -1
- data/spec/models/volumes_collection_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- data/topological_inventory-api-client.gemspec +1 -1
- metadata +2 -8
- data/docs/Tagging.md +0 -21
- data/lib/topological_inventory-api-client/models/tagging.rb +0 -242
- data/pkg/topological_inventory-api-client-1.0.0.gem +0 -0
- data/spec/models/tagging_spec.rb +0 -53
- data/topological_inventory-api-client-2.0.0.gem +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Topological Inventory
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: support@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.1
|
@@ -33,6 +33,9 @@ module TopologicalInventoryApiClient
|
|
33
33
|
# ID of the resource
|
34
34
|
attr_accessor :root_service_instance_id
|
35
35
|
|
36
|
+
# ID of the resource
|
37
|
+
attr_accessor :service_credential_id
|
38
|
+
|
36
39
|
# ID of the resource
|
37
40
|
attr_accessor :service_inventory_id
|
38
41
|
|
@@ -70,6 +73,7 @@ module TopologicalInventoryApiClient
|
|
70
73
|
:'last_seen_at' => :'last_seen_at',
|
71
74
|
:'name' => :'name',
|
72
75
|
:'root_service_instance_id' => :'root_service_instance_id',
|
76
|
+
:'service_credential_id' => :'service_credential_id',
|
73
77
|
:'service_inventory_id' => :'service_inventory_id',
|
74
78
|
:'service_offering_id' => :'service_offering_id',
|
75
79
|
:'service_plan_id' => :'service_plan_id',
|
@@ -94,6 +98,7 @@ module TopologicalInventoryApiClient
|
|
94
98
|
:'last_seen_at' => :'DateTime',
|
95
99
|
:'name' => :'String',
|
96
100
|
:'root_service_instance_id' => :'String',
|
101
|
+
:'service_credential_id' => :'String',
|
97
102
|
:'service_inventory_id' => :'String',
|
98
103
|
:'service_offering_id' => :'String',
|
99
104
|
:'service_plan_id' => :'String',
|
@@ -160,6 +165,10 @@ module TopologicalInventoryApiClient
|
|
160
165
|
self.root_service_instance_id = attributes[:'root_service_instance_id']
|
161
166
|
end
|
162
167
|
|
168
|
+
if attributes.key?(:'service_credential_id')
|
169
|
+
self.service_credential_id = attributes[:'service_credential_id']
|
170
|
+
end
|
171
|
+
|
163
172
|
if attributes.key?(:'service_inventory_id')
|
164
173
|
self.service_inventory_id = attributes[:'service_inventory_id']
|
165
174
|
end
|
@@ -215,6 +224,11 @@ module TopologicalInventoryApiClient
|
|
215
224
|
invalid_properties.push("invalid value for \"root_service_instance_id\", must conform to the pattern #{pattern}.")
|
216
225
|
end
|
217
226
|
|
227
|
+
pattern = Regexp.new(/^\d+$/)
|
228
|
+
if !@service_credential_id.nil? && @service_credential_id !~ pattern
|
229
|
+
invalid_properties.push("invalid value for \"service_credential_id\", must conform to the pattern #{pattern}.")
|
230
|
+
end
|
231
|
+
|
218
232
|
pattern = Regexp.new(/^\d+$/)
|
219
233
|
if !@service_inventory_id.nil? && @service_inventory_id !~ pattern
|
220
234
|
invalid_properties.push("invalid value for \"service_inventory_id\", must conform to the pattern #{pattern}.")
|
@@ -253,6 +267,7 @@ module TopologicalInventoryApiClient
|
|
253
267
|
def valid?
|
254
268
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
255
269
|
return false if !@root_service_instance_id.nil? && @root_service_instance_id !~ Regexp.new(/^\d+$/)
|
270
|
+
return false if !@service_credential_id.nil? && @service_credential_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+$/)
|
258
273
|
return false if !@service_plan_id.nil? && @service_plan_id !~ Regexp.new(/^\d+$/)
|
@@ -284,6 +299,17 @@ module TopologicalInventoryApiClient
|
|
284
299
|
@root_service_instance_id = root_service_instance_id
|
285
300
|
end
|
286
301
|
|
302
|
+
# Custom attribute writer method with validation
|
303
|
+
# @param [Object] service_credential_id Value to be assigned
|
304
|
+
def service_credential_id=(service_credential_id)
|
305
|
+
pattern = Regexp.new(/^\d+$/)
|
306
|
+
if !service_credential_id.nil? && service_credential_id !~ pattern
|
307
|
+
fail ArgumentError, "invalid value for \"service_credential_id\", must conform to the pattern #{pattern}."
|
308
|
+
end
|
309
|
+
|
310
|
+
@service_credential_id = service_credential_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)
|
@@ -363,6 +389,7 @@ module TopologicalInventoryApiClient
|
|
363
389
|
last_seen_at == o.last_seen_at &&
|
364
390
|
name == o.name &&
|
365
391
|
root_service_instance_id == o.root_service_instance_id &&
|
392
|
+
service_credential_id == o.service_credential_id &&
|
366
393
|
service_inventory_id == o.service_inventory_id &&
|
367
394
|
service_offering_id == o.service_offering_id &&
|
368
395
|
service_plan_id == o.service_plan_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, root_service_instance_id, service_credential_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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Topological Inventory
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: support@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.1
|
@@ -30,6 +30,9 @@ module TopologicalInventoryApiClient
|
|
30
30
|
# ID of the resource
|
31
31
|
attr_accessor :root_service_instance_id
|
32
32
|
|
33
|
+
# ID of the resource
|
34
|
+
attr_accessor :service_credential_id
|
35
|
+
|
33
36
|
# ID of the resource
|
34
37
|
attr_accessor :service_instance_id
|
35
38
|
|
@@ -57,6 +60,7 @@ module TopologicalInventoryApiClient
|
|
57
60
|
:'last_seen_at' => :'last_seen_at',
|
58
61
|
:'name' => :'name',
|
59
62
|
:'root_service_instance_id' => :'root_service_instance_id',
|
63
|
+
:'service_credential_id' => :'service_credential_id',
|
60
64
|
:'service_instance_id' => :'service_instance_id',
|
61
65
|
:'service_inventory_id' => :'service_inventory_id',
|
62
66
|
:'source_created_at' => :'source_created_at',
|
@@ -77,6 +81,7 @@ module TopologicalInventoryApiClient
|
|
77
81
|
:'last_seen_at' => :'DateTime',
|
78
82
|
:'name' => :'String',
|
79
83
|
:'root_service_instance_id' => :'String',
|
84
|
+
:'service_credential_id' => :'String',
|
80
85
|
:'service_instance_id' => :'String',
|
81
86
|
:'service_inventory_id' => :'String',
|
82
87
|
:'source_created_at' => :'DateTime',
|
@@ -136,6 +141,10 @@ module TopologicalInventoryApiClient
|
|
136
141
|
self.root_service_instance_id = attributes[:'root_service_instance_id']
|
137
142
|
end
|
138
143
|
|
144
|
+
if attributes.key?(:'service_credential_id')
|
145
|
+
self.service_credential_id = attributes[:'service_credential_id']
|
146
|
+
end
|
147
|
+
|
139
148
|
if attributes.key?(:'service_instance_id')
|
140
149
|
self.service_instance_id = attributes[:'service_instance_id']
|
141
150
|
end
|
@@ -179,6 +188,11 @@ module TopologicalInventoryApiClient
|
|
179
188
|
invalid_properties.push("invalid value for \"root_service_instance_id\", must conform to the pattern #{pattern}.")
|
180
189
|
end
|
181
190
|
|
191
|
+
pattern = Regexp.new(/^\d+$/)
|
192
|
+
if !@service_credential_id.nil? && @service_credential_id !~ pattern
|
193
|
+
invalid_properties.push("invalid value for \"service_credential_id\", must conform to the pattern #{pattern}.")
|
194
|
+
end
|
195
|
+
|
182
196
|
pattern = Regexp.new(/^\d+$/)
|
183
197
|
if !@service_instance_id.nil? && @service_instance_id !~ pattern
|
184
198
|
invalid_properties.push("invalid value for \"service_instance_id\", must conform to the pattern #{pattern}.")
|
@@ -202,6 +216,7 @@ module TopologicalInventoryApiClient
|
|
202
216
|
def valid?
|
203
217
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
204
218
|
return false if !@root_service_instance_id.nil? && @root_service_instance_id !~ Regexp.new(/^\d+$/)
|
219
|
+
return false if !@service_credential_id.nil? && @service_credential_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+$/)
|
207
222
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
@@ -230,6 +245,17 @@ module TopologicalInventoryApiClient
|
|
230
245
|
@root_service_instance_id = root_service_instance_id
|
231
246
|
end
|
232
247
|
|
248
|
+
# Custom attribute writer method with validation
|
249
|
+
# @param [Object] service_credential_id Value to be assigned
|
250
|
+
def service_credential_id=(service_credential_id)
|
251
|
+
pattern = Regexp.new(/^\d+$/)
|
252
|
+
if !service_credential_id.nil? && service_credential_id !~ pattern
|
253
|
+
fail ArgumentError, "invalid value for \"service_credential_id\", must conform to the pattern #{pattern}."
|
254
|
+
end
|
255
|
+
|
256
|
+
@service_credential_id = service_credential_id
|
257
|
+
end
|
258
|
+
|
233
259
|
# Custom attribute writer method with validation
|
234
260
|
# @param [Object] service_instance_id Value to be assigned
|
235
261
|
def service_instance_id=(service_instance_id)
|
@@ -275,6 +301,7 @@ module TopologicalInventoryApiClient
|
|
275
301
|
last_seen_at == o.last_seen_at &&
|
276
302
|
name == o.name &&
|
277
303
|
root_service_instance_id == o.root_service_instance_id &&
|
304
|
+
service_credential_id == o.service_credential_id &&
|
278
305
|
service_instance_id == o.service_instance_id &&
|
279
306
|
service_inventory_id == o.service_inventory_id &&
|
280
307
|
source_created_at == o.source_created_at &&
|
@@ -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, root_service_instance_id, service_credential_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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Topological Inventory
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: support@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.1
|
@@ -38,6 +38,9 @@ module TopologicalInventoryApiClient
|
|
38
38
|
|
39
39
|
attr_accessor :name
|
40
40
|
|
41
|
+
# ID of the resource
|
42
|
+
attr_accessor :service_credential_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
|
+
:'service_credential_id' => :'service_credential_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
|
+
:'service_credential_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?(:'service_credential_id')
|
192
|
+
self.service_credential_id = attributes[:'service_credential_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 !@service_credential_id.nil? && @service_credential_id !~ pattern
|
247
|
+
invalid_properties.push("invalid value for \"service_credential_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 !@service_credential_id.nil? && @service_credential_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] service_credential_id Value to be assigned
|
304
|
+
def service_credential_id=(service_credential_id)
|
305
|
+
pattern = Regexp.new(/^\d+$/)
|
306
|
+
if !service_credential_id.nil? && service_credential_id !~ pattern
|
307
|
+
fail ArgumentError, "invalid value for \"service_credential_id\", must conform to the pattern #{pattern}."
|
308
|
+
end
|
309
|
+
|
310
|
+
@service_credential_id = service_credential_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
|
+
service_credential_id == o.service_credential_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, service_credential_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
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Topological Inventory
|
5
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
7
|
Contact: support@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 4.2.1
|
@@ -30,6 +30,9 @@ module TopologicalInventoryApiClient
|
|
30
30
|
# ID of the resource
|
31
31
|
attr_accessor :root_service_offering_id
|
32
32
|
|
33
|
+
# ID of the resource
|
34
|
+
attr_accessor :service_credential_id
|
35
|
+
|
33
36
|
# ID of the resource
|
34
37
|
attr_accessor :service_inventory_id
|
35
38
|
|
@@ -57,6 +60,7 @@ module TopologicalInventoryApiClient
|
|
57
60
|
:'last_seen_at' => :'last_seen_at',
|
58
61
|
:'name' => :'name',
|
59
62
|
:'root_service_offering_id' => :'root_service_offering_id',
|
63
|
+
:'service_credential_id' => :'service_credential_id',
|
60
64
|
:'service_inventory_id' => :'service_inventory_id',
|
61
65
|
:'service_offering_id' => :'service_offering_id',
|
62
66
|
:'source_created_at' => :'source_created_at',
|
@@ -77,6 +81,7 @@ module TopologicalInventoryApiClient
|
|
77
81
|
:'last_seen_at' => :'DateTime',
|
78
82
|
:'name' => :'String',
|
79
83
|
:'root_service_offering_id' => :'String',
|
84
|
+
:'service_credential_id' => :'String',
|
80
85
|
:'service_inventory_id' => :'String',
|
81
86
|
:'service_offering_id' => :'String',
|
82
87
|
:'source_created_at' => :'DateTime',
|
@@ -136,6 +141,10 @@ module TopologicalInventoryApiClient
|
|
136
141
|
self.root_service_offering_id = attributes[:'root_service_offering_id']
|
137
142
|
end
|
138
143
|
|
144
|
+
if attributes.key?(:'service_credential_id')
|
145
|
+
self.service_credential_id = attributes[:'service_credential_id']
|
146
|
+
end
|
147
|
+
|
139
148
|
if attributes.key?(:'service_inventory_id')
|
140
149
|
self.service_inventory_id = attributes[:'service_inventory_id']
|
141
150
|
end
|
@@ -179,6 +188,11 @@ module TopologicalInventoryApiClient
|
|
179
188
|
invalid_properties.push("invalid value for \"root_service_offering_id\", must conform to the pattern #{pattern}.")
|
180
189
|
end
|
181
190
|
|
191
|
+
pattern = Regexp.new(/^\d+$/)
|
192
|
+
if !@service_credential_id.nil? && @service_credential_id !~ pattern
|
193
|
+
invalid_properties.push("invalid value for \"service_credential_id\", must conform to the pattern #{pattern}.")
|
194
|
+
end
|
195
|
+
|
182
196
|
pattern = Regexp.new(/^\d+$/)
|
183
197
|
if !@service_inventory_id.nil? && @service_inventory_id !~ pattern
|
184
198
|
invalid_properties.push("invalid value for \"service_inventory_id\", must conform to the pattern #{pattern}.")
|
@@ -202,6 +216,7 @@ module TopologicalInventoryApiClient
|
|
202
216
|
def valid?
|
203
217
|
return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
|
204
218
|
return false if !@root_service_offering_id.nil? && @root_service_offering_id !~ Regexp.new(/^\d+$/)
|
219
|
+
return false if !@service_credential_id.nil? && @service_credential_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+$/)
|
207
222
|
return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
|
@@ -230,6 +245,17 @@ module TopologicalInventoryApiClient
|
|
230
245
|
@root_service_offering_id = root_service_offering_id
|
231
246
|
end
|
232
247
|
|
248
|
+
# Custom attribute writer method with validation
|
249
|
+
# @param [Object] service_credential_id Value to be assigned
|
250
|
+
def service_credential_id=(service_credential_id)
|
251
|
+
pattern = Regexp.new(/^\d+$/)
|
252
|
+
if !service_credential_id.nil? && service_credential_id !~ pattern
|
253
|
+
fail ArgumentError, "invalid value for \"service_credential_id\", must conform to the pattern #{pattern}."
|
254
|
+
end
|
255
|
+
|
256
|
+
@service_credential_id = service_credential_id
|
257
|
+
end
|
258
|
+
|
233
259
|
# Custom attribute writer method with validation
|
234
260
|
# @param [Object] service_inventory_id Value to be assigned
|
235
261
|
def service_inventory_id=(service_inventory_id)
|
@@ -275,6 +301,7 @@ module TopologicalInventoryApiClient
|
|
275
301
|
last_seen_at == o.last_seen_at &&
|
276
302
|
name == o.name &&
|
277
303
|
root_service_offering_id == o.root_service_offering_id &&
|
304
|
+
service_credential_id == o.service_credential_id &&
|
278
305
|
service_inventory_id == o.service_inventory_id &&
|
279
306
|
service_offering_id == o.service_offering_id &&
|
280
307
|
source_created_at == o.source_created_at &&
|
@@ -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, root_service_offering_id, service_credential_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
|