topological_inventory-api-client 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/docs/DefaultApi.md +1444 -1
  3. data/docs/ServiceInstance.md +2 -0
  4. data/docs/ServiceInstanceNode.md +2 -0
  5. data/docs/ServiceOffering.md +2 -0
  6. data/docs/ServiceOfferingNode.md +2 -0
  7. data/docs/Tag.md +2 -14
  8. data/docs/Vm.md +2 -0
  9. data/lib/topological_inventory-api-client.rb +1 -2
  10. data/lib/topological_inventory-api-client/api/default_api.rb +1925 -1
  11. data/lib/topological_inventory-api-client/api_client.rb +1 -1
  12. data/lib/topological_inventory-api-client/api_error.rb +1 -1
  13. data/lib/topological_inventory-api-client/configuration.rb +4 -4
  14. data/lib/topological_inventory-api-client/models/applied_inventories_parameters_service_plan.rb +1 -1
  15. data/lib/topological_inventory-api-client/models/availabilities_collection.rb +1 -1
  16. data/lib/topological_inventory-api-client/models/availability.rb +1 -1
  17. data/lib/topological_inventory-api-client/models/cluster.rb +1 -1
  18. data/lib/topological_inventory-api-client/models/clusters_collection.rb +1 -1
  19. data/lib/topological_inventory-api-client/models/collection_links.rb +1 -1
  20. data/lib/topological_inventory-api-client/models/collection_metadata.rb +1 -1
  21. data/lib/topological_inventory-api-client/models/container.rb +1 -1
  22. data/lib/topological_inventory-api-client/models/container_group.rb +1 -1
  23. data/lib/topological_inventory-api-client/models/container_groups_collection.rb +1 -1
  24. data/lib/topological_inventory-api-client/models/container_image.rb +1 -1
  25. data/lib/topological_inventory-api-client/models/container_images_collection.rb +1 -1
  26. data/lib/topological_inventory-api-client/models/container_node.rb +1 -1
  27. data/lib/topological_inventory-api-client/models/container_nodes_collection.rb +1 -1
  28. data/lib/topological_inventory-api-client/models/container_project.rb +1 -1
  29. data/lib/topological_inventory-api-client/models/container_projects_collection.rb +1 -1
  30. data/lib/topological_inventory-api-client/models/container_resource_quota.rb +1 -1
  31. data/lib/topological_inventory-api-client/models/container_resource_quota_collection.rb +1 -1
  32. data/lib/topological_inventory-api-client/models/container_template.rb +1 -1
  33. data/lib/topological_inventory-api-client/models/container_templates_collection.rb +1 -1
  34. data/lib/topological_inventory-api-client/models/containers_collection.rb +1 -1
  35. data/lib/topological_inventory-api-client/models/datastore.rb +1 -1
  36. data/lib/topological_inventory-api-client/models/datastores_collection.rb +1 -1
  37. data/lib/topological_inventory-api-client/models/error_not_found.rb +1 -1
  38. data/lib/topological_inventory-api-client/models/error_not_found_errors.rb +1 -1
  39. data/lib/topological_inventory-api-client/models/flavor.rb +1 -1
  40. data/lib/topological_inventory-api-client/models/flavors_collection.rb +1 -1
  41. data/lib/topological_inventory-api-client/models/graph_ql_request.rb +1 -1
  42. data/lib/topological_inventory-api-client/models/graph_ql_response.rb +1 -1
  43. data/lib/topological_inventory-api-client/models/host.rb +1 -1
  44. data/lib/topological_inventory-api-client/models/hosts_collection.rb +1 -1
  45. data/lib/topological_inventory-api-client/models/inline_response200.rb +1 -1
  46. data/lib/topological_inventory-api-client/models/ipaddress.rb +1 -1
  47. data/lib/topological_inventory-api-client/models/ipaddresses_collection.rb +1 -1
  48. data/lib/topological_inventory-api-client/models/network.rb +1 -1
  49. data/lib/topological_inventory-api-client/models/network_adapter.rb +1 -1
  50. data/lib/topological_inventory-api-client/models/network_adapters_collection.rb +1 -1
  51. data/lib/topological_inventory-api-client/models/networks_collection.rb +1 -1
  52. data/lib/topological_inventory-api-client/models/orchestration_stack.rb +1 -1
  53. data/lib/topological_inventory-api-client/models/orchestration_stacks_collection.rb +1 -1
  54. data/lib/topological_inventory-api-client/models/order_parameters_service_offering.rb +1 -1
  55. data/lib/topological_inventory-api-client/models/order_parameters_service_plan.rb +1 -1
  56. data/lib/topological_inventory-api-client/models/security_group.rb +1 -1
  57. data/lib/topological_inventory-api-client/models/security_groups_collection.rb +1 -1
  58. data/lib/topological_inventory-api-client/models/service_instance.rb +29 -2
  59. data/lib/topological_inventory-api-client/models/service_instance_node.rb +29 -2
  60. data/lib/topological_inventory-api-client/models/service_instance_nodes_collection.rb +1 -1
  61. data/lib/topological_inventory-api-client/models/service_instances_collection.rb +1 -1
  62. data/lib/topological_inventory-api-client/models/service_inventories_collection.rb +1 -1
  63. data/lib/topological_inventory-api-client/models/service_inventory.rb +1 -1
  64. data/lib/topological_inventory-api-client/models/service_offering.rb +29 -2
  65. data/lib/topological_inventory-api-client/models/service_offering_icon.rb +1 -1
  66. data/lib/topological_inventory-api-client/models/service_offering_icons_collection.rb +1 -1
  67. data/lib/topological_inventory-api-client/models/service_offering_node.rb +29 -2
  68. data/lib/topological_inventory-api-client/models/service_offering_nodes_collection.rb +1 -1
  69. data/lib/topological_inventory-api-client/models/service_offerings_collection.rb +1 -1
  70. data/lib/topological_inventory-api-client/models/service_plan.rb +1 -1
  71. data/lib/topological_inventory-api-client/models/service_plans_collection.rb +1 -1
  72. data/lib/topological_inventory-api-client/models/source.rb +1 -1
  73. data/lib/topological_inventory-api-client/models/source_region.rb +1 -1
  74. data/lib/topological_inventory-api-client/models/source_regions_collection.rb +1 -1
  75. data/lib/topological_inventory-api-client/models/sources_collection.rb +1 -1
  76. data/lib/topological_inventory-api-client/models/subnet.rb +1 -1
  77. data/lib/topological_inventory-api-client/models/subnets_collection.rb +1 -1
  78. data/lib/topological_inventory-api-client/models/subscription.rb +1 -1
  79. data/lib/topological_inventory-api-client/models/subscriptions_collection.rb +1 -1
  80. data/lib/topological_inventory-api-client/models/tag.rb +8 -80
  81. data/lib/topological_inventory-api-client/models/tags_collection.rb +1 -1
  82. data/lib/topological_inventory-api-client/models/task.rb +1 -1
  83. data/lib/topological_inventory-api-client/models/tasks_collection.rb +1 -1
  84. data/lib/topological_inventory-api-client/models/tenant.rb +1 -1
  85. data/lib/topological_inventory-api-client/models/vm.rb +29 -2
  86. data/lib/topological_inventory-api-client/models/vms_collection.rb +1 -1
  87. data/lib/topological_inventory-api-client/models/volume.rb +1 -1
  88. data/lib/topological_inventory-api-client/models/volume_attachment.rb +1 -1
  89. data/lib/topological_inventory-api-client/models/volume_attachments_collection.rb +1 -1
  90. data/lib/topological_inventory-api-client/models/volume_type.rb +1 -1
  91. data/lib/topological_inventory-api-client/models/volume_types_collection.rb +1 -1
  92. data/lib/topological_inventory-api-client/models/volumes_collection.rb +1 -1
  93. data/lib/topological_inventory-api-client/version.rb +2 -2
  94. data/spec/api/default_api_spec.rb +339 -1
  95. data/spec/api_client_spec.rb +1 -1
  96. data/spec/configuration_spec.rb +4 -4
  97. data/spec/models/applied_inventories_parameters_service_plan_spec.rb +1 -1
  98. data/spec/models/availabilities_collection_spec.rb +1 -1
  99. data/spec/models/availability_spec.rb +1 -1
  100. data/spec/models/cluster_spec.rb +1 -1
  101. data/spec/models/clusters_collection_spec.rb +1 -1
  102. data/spec/models/collection_links_spec.rb +1 -1
  103. data/spec/models/collection_metadata_spec.rb +1 -1
  104. data/spec/models/container_group_spec.rb +1 -1
  105. data/spec/models/container_groups_collection_spec.rb +1 -1
  106. data/spec/models/container_image_spec.rb +1 -1
  107. data/spec/models/container_images_collection_spec.rb +1 -1
  108. data/spec/models/container_node_spec.rb +1 -1
  109. data/spec/models/container_nodes_collection_spec.rb +1 -1
  110. data/spec/models/container_project_spec.rb +1 -1
  111. data/spec/models/container_projects_collection_spec.rb +1 -1
  112. data/spec/models/container_resource_quota_collection_spec.rb +1 -1
  113. data/spec/models/container_resource_quota_spec.rb +1 -1
  114. data/spec/models/container_spec.rb +1 -1
  115. data/spec/models/container_template_spec.rb +1 -1
  116. data/spec/models/container_templates_collection_spec.rb +1 -1
  117. data/spec/models/containers_collection_spec.rb +1 -1
  118. data/spec/models/datastore_spec.rb +1 -1
  119. data/spec/models/datastores_collection_spec.rb +1 -1
  120. data/spec/models/error_not_found_errors_spec.rb +1 -1
  121. data/spec/models/error_not_found_spec.rb +1 -1
  122. data/spec/models/flavor_spec.rb +1 -1
  123. data/spec/models/flavors_collection_spec.rb +1 -1
  124. data/spec/models/graph_ql_request_spec.rb +1 -1
  125. data/spec/models/graph_ql_response_spec.rb +1 -1
  126. data/spec/models/host_spec.rb +1 -1
  127. data/spec/models/hosts_collection_spec.rb +1 -1
  128. data/spec/models/inline_response200_spec.rb +1 -1
  129. data/spec/models/ipaddress_spec.rb +1 -1
  130. data/spec/models/ipaddresses_collection_spec.rb +1 -1
  131. data/spec/models/network_adapter_spec.rb +1 -1
  132. data/spec/models/network_adapters_collection_spec.rb +1 -1
  133. data/spec/models/network_spec.rb +1 -1
  134. data/spec/models/networks_collection_spec.rb +1 -1
  135. data/spec/models/orchestration_stack_spec.rb +1 -1
  136. data/spec/models/orchestration_stacks_collection_spec.rb +1 -1
  137. data/spec/models/order_parameters_service_offering_spec.rb +1 -1
  138. data/spec/models/order_parameters_service_plan_spec.rb +1 -1
  139. data/spec/models/security_group_spec.rb +1 -1
  140. data/spec/models/security_groups_collection_spec.rb +1 -1
  141. data/spec/models/service_instance_node_spec.rb +7 -1
  142. data/spec/models/service_instance_nodes_collection_spec.rb +1 -1
  143. data/spec/models/service_instance_spec.rb +7 -1
  144. data/spec/models/service_instances_collection_spec.rb +1 -1
  145. data/spec/models/service_inventories_collection_spec.rb +1 -1
  146. data/spec/models/service_inventory_spec.rb +1 -1
  147. data/spec/models/service_offering_icon_spec.rb +1 -1
  148. data/spec/models/service_offering_icons_collection_spec.rb +1 -1
  149. data/spec/models/service_offering_node_spec.rb +7 -1
  150. data/spec/models/service_offering_nodes_collection_spec.rb +1 -1
  151. data/spec/models/service_offering_spec.rb +7 -1
  152. data/spec/models/service_offerings_collection_spec.rb +1 -1
  153. data/spec/models/service_plan_spec.rb +1 -1
  154. data/spec/models/service_plans_collection_spec.rb +1 -1
  155. data/spec/models/source_region_spec.rb +1 -1
  156. data/spec/models/source_regions_collection_spec.rb +1 -1
  157. data/spec/models/source_spec.rb +1 -1
  158. data/spec/models/sources_collection_spec.rb +1 -1
  159. data/spec/models/subnet_spec.rb +1 -1
  160. data/spec/models/subnets_collection_spec.rb +1 -1
  161. data/spec/models/subscription_spec.rb +1 -1
  162. data/spec/models/subscriptions_collection_spec.rb +1 -1
  163. data/spec/models/tag_spec.rb +2 -38
  164. data/spec/models/tags_collection_spec.rb +1 -1
  165. data/spec/models/task_spec.rb +1 -1
  166. data/spec/models/tasks_collection_spec.rb +1 -1
  167. data/spec/models/tenant_spec.rb +1 -1
  168. data/spec/models/vm_spec.rb +7 -1
  169. data/spec/models/vms_collection_spec.rb +1 -1
  170. data/spec/models/volume_attachment_spec.rb +1 -1
  171. data/spec/models/volume_attachments_collection_spec.rb +1 -1
  172. data/spec/models/volume_spec.rb +1 -1
  173. data/spec/models/volume_type_spec.rb +1 -1
  174. data/spec/models/volume_types_collection_spec.rb +1 -1
  175. data/spec/models/volumes_collection_spec.rb +1 -1
  176. data/spec/spec_helper.rb +1 -1
  177. data/topological_inventory-api-client.gemspec +1 -1
  178. metadata +2 -8
  179. data/docs/Tagging.md +0 -21
  180. data/lib/topological_inventory-api-client/models/tagging.rb +0 -242
  181. data/pkg/topological_inventory-api-client-1.0.0.gem +0 -0
  182. data/spec/models/tagging_spec.rb +0 -53
  183. 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: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -14,44 +14,19 @@ require 'date'
14
14
 
15
15
  module TopologicalInventoryApiClient
16
16
  class Tag
17
- attr_accessor :created_at
18
-
19
- attr_accessor :description
20
-
21
- # ID of the resource
22
- attr_accessor :id
23
-
24
- attr_accessor :last_seen_at
25
-
26
- attr_accessor :name
27
-
28
- attr_accessor :namespace
29
-
30
- attr_accessor :value
17
+ attr_accessor :tag
31
18
 
32
19
  # Attribute mapping from ruby-style variable name to JSON key.
33
20
  def self.attribute_map
34
21
  {
35
- :'created_at' => :'created_at',
36
- :'description' => :'description',
37
- :'id' => :'id',
38
- :'last_seen_at' => :'last_seen_at',
39
- :'name' => :'name',
40
- :'namespace' => :'namespace',
41
- :'value' => :'value'
22
+ :'tag' => :'tag'
42
23
  }
43
24
  end
44
25
 
45
26
  # Attribute type mapping.
46
27
  def self.openapi_types
47
28
  {
48
- :'created_at' => :'DateTime',
49
- :'description' => :'String',
50
- :'id' => :'String',
51
- :'last_seen_at' => :'DateTime',
52
- :'name' => :'String',
53
- :'namespace' => :'String',
54
- :'value' => :'String'
29
+ :'tag' => :'String'
55
30
  }
56
31
  end
57
32
 
@@ -76,32 +51,8 @@ module TopologicalInventoryApiClient
76
51
  h[k.to_sym] = v
77
52
  }
78
53
 
79
- if attributes.key?(:'created_at')
80
- self.created_at = attributes[:'created_at']
81
- end
82
-
83
- if attributes.key?(:'description')
84
- self.description = attributes[:'description']
85
- end
86
-
87
- if attributes.key?(:'id')
88
- self.id = attributes[:'id']
89
- end
90
-
91
- if attributes.key?(:'last_seen_at')
92
- self.last_seen_at = attributes[:'last_seen_at']
93
- end
94
-
95
- if attributes.key?(:'name')
96
- self.name = attributes[:'name']
97
- end
98
-
99
- if attributes.key?(:'namespace')
100
- self.namespace = attributes[:'namespace']
101
- end
102
-
103
- if attributes.key?(:'value')
104
- self.value = attributes[:'value']
54
+ if attributes.key?(:'tag')
55
+ self.tag = attributes[:'tag']
105
56
  end
106
57
  end
107
58
 
@@ -109,44 +60,21 @@ module TopologicalInventoryApiClient
109
60
  # @return Array for valid properties with the reasons
110
61
  def list_invalid_properties
111
62
  invalid_properties = Array.new
112
- pattern = Regexp.new(/^\d+$/)
113
- if !@id.nil? && @id !~ pattern
114
- invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
115
- end
116
-
117
63
  invalid_properties
118
64
  end
119
65
 
120
66
  # Check to see if the all the properties in the model are valid
121
67
  # @return true if the model is valid
122
68
  def valid?
123
- return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
124
69
  true
125
70
  end
126
71
 
127
- # Custom attribute writer method with validation
128
- # @param [Object] id Value to be assigned
129
- def id=(id)
130
- pattern = Regexp.new(/^\d+$/)
131
- if !id.nil? && id !~ pattern
132
- fail ArgumentError, "invalid value for \"id\", must conform to the pattern #{pattern}."
133
- end
134
-
135
- @id = id
136
- end
137
-
138
72
  # Checks equality by comparing each attribute.
139
73
  # @param [Object] Object to be compared
140
74
  def ==(o)
141
75
  return true if self.equal?(o)
142
76
  self.class == o.class &&
143
- created_at == o.created_at &&
144
- description == o.description &&
145
- id == o.id &&
146
- last_seen_at == o.last_seen_at &&
147
- name == o.name &&
148
- namespace == o.namespace &&
149
- value == o.value
77
+ tag == o.tag
150
78
  end
151
79
 
152
80
  # @see the `==` method
@@ -158,7 +86,7 @@ module TopologicalInventoryApiClient
158
86
  # Calculates hash code according to all attributes.
159
87
  # @return [Integer] Hash code
160
88
  def hash
161
- [created_at, description, id, last_seen_at, name, namespace, value].hash
89
+ [tag].hash
162
90
  end
163
91
 
164
92
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -29,6 +29,9 @@ module TopologicalInventoryApiClient
29
29
  # ID of the resource
30
30
  attr_accessor :flavor_id
31
31
 
32
+ # ID of the resource
33
+ attr_accessor :host_id
34
+
32
35
  attr_accessor :host_inventory_uuid
33
36
 
34
37
  attr_accessor :hostname
@@ -79,6 +82,7 @@ module TopologicalInventoryApiClient
79
82
  :'description' => :'description',
80
83
  :'extra' => :'extra',
81
84
  :'flavor_id' => :'flavor_id',
85
+ :'host_id' => :'host_id',
82
86
  :'host_inventory_uuid' => :'host_inventory_uuid',
83
87
  :'hostname' => :'hostname',
84
88
  :'id' => :'id',
@@ -108,6 +112,7 @@ module TopologicalInventoryApiClient
108
112
  :'description' => :'String',
109
113
  :'extra' => :'Object',
110
114
  :'flavor_id' => :'String',
115
+ :'host_id' => :'String',
111
116
  :'host_inventory_uuid' => :'String',
112
117
  :'hostname' => :'String',
113
118
  :'id' => :'String',
@@ -173,6 +178,10 @@ module TopologicalInventoryApiClient
173
178
  self.flavor_id = attributes[:'flavor_id']
174
179
  end
175
180
 
181
+ if attributes.key?(:'host_id')
182
+ self.host_id = attributes[:'host_id']
183
+ end
184
+
176
185
  if attributes.key?(:'host_inventory_uuid')
177
186
  self.host_inventory_uuid = attributes[:'host_inventory_uuid']
178
187
  end
@@ -253,6 +262,11 @@ module TopologicalInventoryApiClient
253
262
  invalid_properties.push("invalid value for \"flavor_id\", must conform to the pattern #{pattern}.")
254
263
  end
255
264
 
265
+ pattern = Regexp.new(/^\d+$/)
266
+ if !@host_id.nil? && @host_id !~ pattern
267
+ invalid_properties.push("invalid value for \"host_id\", must conform to the pattern #{pattern}.")
268
+ end
269
+
256
270
  pattern = Regexp.new(/^\d+$/)
257
271
  if !@id.nil? && @id !~ pattern
258
272
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
@@ -285,6 +299,7 @@ module TopologicalInventoryApiClient
285
299
  # @return true if the model is valid
286
300
  def valid?
287
301
  return false if !@flavor_id.nil? && @flavor_id !~ Regexp.new(/^\d+$/)
302
+ return false if !@host_id.nil? && @host_id !~ Regexp.new(/^\d+$/)
288
303
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
289
304
  return false if !@orchestration_stack_id.nil? && @orchestration_stack_id !~ Regexp.new(/^\d+$/)
290
305
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
@@ -304,6 +319,17 @@ module TopologicalInventoryApiClient
304
319
  @flavor_id = flavor_id
305
320
  end
306
321
 
322
+ # Custom attribute writer method with validation
323
+ # @param [Object] host_id Value to be assigned
324
+ def host_id=(host_id)
325
+ pattern = Regexp.new(/^\d+$/)
326
+ if !host_id.nil? && host_id !~ pattern
327
+ fail ArgumentError, "invalid value for \"host_id\", must conform to the pattern #{pattern}."
328
+ end
329
+
330
+ @host_id = host_id
331
+ end
332
+
307
333
  # Custom attribute writer method with validation
308
334
  # @param [Object] id Value to be assigned
309
335
  def id=(id)
@@ -370,6 +396,7 @@ module TopologicalInventoryApiClient
370
396
  description == o.description &&
371
397
  extra == o.extra &&
372
398
  flavor_id == o.flavor_id &&
399
+ host_id == o.host_id &&
373
400
  host_inventory_uuid == o.host_inventory_uuid &&
374
401
  hostname == o.hostname &&
375
402
  id == o.id &&
@@ -398,7 +425,7 @@ module TopologicalInventoryApiClient
398
425
  # Calculates hash code according to all attributes.
399
426
  # @return [Integer] Hash code
400
427
  def hash
401
- [archived_at, cpus, created_at, description, extra, flavor_id, host_inventory_uuid, hostname, id, last_seen_at, mac_addresses, memory, name, orchestration_stack_id, power_state, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, uid_ems, updated_at].hash
428
+ [archived_at, cpus, created_at, description, extra, flavor_id, host_id, host_inventory_uuid, hostname, id, last_seen_at, mac_addresses, memory, name, orchestration_stack_id, power_state, source_created_at, source_deleted_at, source_id, source_ref, source_region_id, subscription_id, uid_ems, updated_at].hash
402
429
  end
403
430
 
404
431
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 1.0.0
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