topological_inventory-api-client 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (190) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +70 -0
  3. data/README.md +3 -3
  4. data/docs/DefaultApi.md +789 -301
  5. data/docs/ServiceCredential.md +41 -0
  6. data/docs/ServiceCredentialType.md +41 -0
  7. data/docs/ServiceCredentialTypesCollection.md +21 -0
  8. data/docs/ServiceCredentialsCollection.md +21 -0
  9. data/docs/ServiceInstance.md +0 -2
  10. data/docs/ServiceInstanceNode.md +0 -2
  11. data/docs/ServiceOffering.md +0 -2
  12. data/docs/ServiceOfferingNode.md +0 -2
  13. data/lib/topological_inventory-api-client/api/default_api.rb +1042 -384
  14. data/lib/topological_inventory-api-client/api_client.rb +2 -2
  15. data/lib/topological_inventory-api-client/api_error.rb +2 -2
  16. data/lib/topological_inventory-api-client/configuration.rb +8 -8
  17. data/lib/topological_inventory-api-client/models/applied_inventories_parameters_service_plan.rb +2 -2
  18. data/lib/topological_inventory-api-client/models/availabilities_collection.rb +2 -2
  19. data/lib/topological_inventory-api-client/models/availability.rb +2 -2
  20. data/lib/topological_inventory-api-client/models/cluster.rb +2 -2
  21. data/lib/topological_inventory-api-client/models/clusters_collection.rb +2 -2
  22. data/lib/topological_inventory-api-client/models/collection_links.rb +2 -2
  23. data/lib/topological_inventory-api-client/models/collection_metadata.rb +2 -2
  24. data/lib/topological_inventory-api-client/models/container.rb +2 -2
  25. data/lib/topological_inventory-api-client/models/container_group.rb +2 -2
  26. data/lib/topological_inventory-api-client/models/container_groups_collection.rb +2 -2
  27. data/lib/topological_inventory-api-client/models/container_image.rb +2 -2
  28. data/lib/topological_inventory-api-client/models/container_images_collection.rb +2 -2
  29. data/lib/topological_inventory-api-client/models/container_node.rb +2 -2
  30. data/lib/topological_inventory-api-client/models/container_nodes_collection.rb +2 -2
  31. data/lib/topological_inventory-api-client/models/container_project.rb +2 -2
  32. data/lib/topological_inventory-api-client/models/container_projects_collection.rb +2 -2
  33. data/lib/topological_inventory-api-client/models/container_resource_quota.rb +2 -2
  34. data/lib/topological_inventory-api-client/models/container_resource_quota_collection.rb +2 -2
  35. data/lib/topological_inventory-api-client/models/container_template.rb +2 -2
  36. data/lib/topological_inventory-api-client/models/container_templates_collection.rb +2 -2
  37. data/lib/topological_inventory-api-client/models/containers_collection.rb +2 -2
  38. data/lib/topological_inventory-api-client/models/datastore.rb +2 -2
  39. data/lib/topological_inventory-api-client/models/datastores_collection.rb +2 -2
  40. data/lib/topological_inventory-api-client/models/error_not_found.rb +2 -2
  41. data/lib/topological_inventory-api-client/models/error_not_found_errors.rb +2 -2
  42. data/lib/topological_inventory-api-client/models/flavor.rb +2 -2
  43. data/lib/topological_inventory-api-client/models/flavors_collection.rb +2 -2
  44. data/lib/topological_inventory-api-client/models/graph_ql_request.rb +2 -2
  45. data/lib/topological_inventory-api-client/models/graph_ql_response.rb +2 -2
  46. data/lib/topological_inventory-api-client/models/host.rb +2 -2
  47. data/lib/topological_inventory-api-client/models/hosts_collection.rb +2 -2
  48. data/lib/topological_inventory-api-client/models/inline_response200.rb +2 -2
  49. data/lib/topological_inventory-api-client/models/ipaddress.rb +2 -2
  50. data/lib/topological_inventory-api-client/models/ipaddresses_collection.rb +2 -2
  51. data/lib/topological_inventory-api-client/models/network.rb +2 -2
  52. data/lib/topological_inventory-api-client/models/network_adapter.rb +2 -2
  53. data/lib/topological_inventory-api-client/models/network_adapters_collection.rb +2 -2
  54. data/lib/topological_inventory-api-client/models/networks_collection.rb +2 -2
  55. data/lib/topological_inventory-api-client/models/orchestration_stack.rb +2 -2
  56. data/lib/topological_inventory-api-client/models/orchestration_stacks_collection.rb +2 -2
  57. data/lib/topological_inventory-api-client/models/order_parameters_service_offering.rb +2 -2
  58. data/lib/topological_inventory-api-client/models/order_parameters_service_plan.rb +2 -2
  59. data/lib/topological_inventory-api-client/models/security_group.rb +2 -2
  60. data/lib/topological_inventory-api-client/models/security_groups_collection.rb +2 -2
  61. data/lib/topological_inventory-api-client/models/service_credential.rb +368 -0
  62. data/lib/topological_inventory-api-client/models/service_credential_type.rb +350 -0
  63. data/lib/topological_inventory-api-client/models/service_credential_types_collection.rb +226 -0
  64. data/lib/topological_inventory-api-client/models/service_credentials_collection.rb +226 -0
  65. data/lib/topological_inventory-api-client/models/service_instance.rb +3 -30
  66. data/lib/topological_inventory-api-client/models/service_instance_node.rb +3 -30
  67. data/lib/topological_inventory-api-client/models/service_instance_nodes_collection.rb +2 -2
  68. data/lib/topological_inventory-api-client/models/service_instances_collection.rb +2 -2
  69. data/lib/topological_inventory-api-client/models/service_inventories_collection.rb +2 -2
  70. data/lib/topological_inventory-api-client/models/service_inventory.rb +2 -2
  71. data/lib/topological_inventory-api-client/models/service_offering.rb +3 -30
  72. data/lib/topological_inventory-api-client/models/service_offering_icon.rb +2 -2
  73. data/lib/topological_inventory-api-client/models/service_offering_icons_collection.rb +2 -2
  74. data/lib/topological_inventory-api-client/models/service_offering_node.rb +3 -30
  75. data/lib/topological_inventory-api-client/models/service_offering_nodes_collection.rb +2 -2
  76. data/lib/topological_inventory-api-client/models/service_offerings_collection.rb +2 -2
  77. data/lib/topological_inventory-api-client/models/service_plan.rb +2 -2
  78. data/lib/topological_inventory-api-client/models/service_plans_collection.rb +2 -2
  79. data/lib/topological_inventory-api-client/models/source.rb +2 -2
  80. data/lib/topological_inventory-api-client/models/source_region.rb +2 -2
  81. data/lib/topological_inventory-api-client/models/source_regions_collection.rb +2 -2
  82. data/lib/topological_inventory-api-client/models/sources_collection.rb +2 -2
  83. data/lib/topological_inventory-api-client/models/subnet.rb +2 -2
  84. data/lib/topological_inventory-api-client/models/subnets_collection.rb +2 -2
  85. data/lib/topological_inventory-api-client/models/subscription.rb +2 -2
  86. data/lib/topological_inventory-api-client/models/subscriptions_collection.rb +2 -2
  87. data/lib/topological_inventory-api-client/models/tag.rb +2 -2
  88. data/lib/topological_inventory-api-client/models/tags_collection.rb +2 -2
  89. data/lib/topological_inventory-api-client/models/task.rb +2 -2
  90. data/lib/topological_inventory-api-client/models/tasks_collection.rb +2 -2
  91. data/lib/topological_inventory-api-client/models/tenant.rb +2 -2
  92. data/lib/topological_inventory-api-client/models/vm.rb +2 -2
  93. data/lib/topological_inventory-api-client/models/vms_collection.rb +2 -2
  94. data/lib/topological_inventory-api-client/models/volume.rb +2 -2
  95. data/lib/topological_inventory-api-client/models/volume_attachment.rb +2 -2
  96. data/lib/topological_inventory-api-client/models/volume_attachments_collection.rb +2 -2
  97. data/lib/topological_inventory-api-client/models/volume_type.rb +2 -2
  98. data/lib/topological_inventory-api-client/models/volume_types_collection.rb +2 -2
  99. data/lib/topological_inventory-api-client/models/volumes_collection.rb +2 -2
  100. data/lib/topological_inventory-api-client/version.rb +3 -3
  101. data/lib/topological_inventory-api-client.rb +6 -2
  102. data/spec/api/default_api_spec.rb +270 -152
  103. data/spec/api_client_spec.rb +2 -2
  104. data/spec/configuration_spec.rb +5 -5
  105. data/spec/models/applied_inventories_parameters_service_plan_spec.rb +2 -2
  106. data/spec/models/availabilities_collection_spec.rb +2 -2
  107. data/spec/models/availability_spec.rb +2 -2
  108. data/spec/models/cluster_spec.rb +2 -2
  109. data/spec/models/clusters_collection_spec.rb +2 -2
  110. data/spec/models/collection_links_spec.rb +2 -2
  111. data/spec/models/collection_metadata_spec.rb +2 -2
  112. data/spec/models/container_group_spec.rb +2 -2
  113. data/spec/models/container_groups_collection_spec.rb +2 -2
  114. data/spec/models/container_image_spec.rb +2 -2
  115. data/spec/models/container_images_collection_spec.rb +2 -2
  116. data/spec/models/container_node_spec.rb +2 -2
  117. data/spec/models/container_nodes_collection_spec.rb +2 -2
  118. data/spec/models/container_project_spec.rb +2 -2
  119. data/spec/models/container_projects_collection_spec.rb +2 -2
  120. data/spec/models/container_resource_quota_collection_spec.rb +2 -2
  121. data/spec/models/container_resource_quota_spec.rb +2 -2
  122. data/spec/models/container_spec.rb +2 -2
  123. data/spec/models/container_template_spec.rb +2 -2
  124. data/spec/models/container_templates_collection_spec.rb +2 -2
  125. data/spec/models/containers_collection_spec.rb +2 -2
  126. data/spec/models/datastore_spec.rb +2 -2
  127. data/spec/models/datastores_collection_spec.rb +2 -2
  128. data/spec/models/error_not_found_errors_spec.rb +2 -2
  129. data/spec/models/error_not_found_spec.rb +2 -2
  130. data/spec/models/flavor_spec.rb +2 -2
  131. data/spec/models/flavors_collection_spec.rb +2 -2
  132. data/spec/models/graph_ql_request_spec.rb +2 -2
  133. data/spec/models/graph_ql_response_spec.rb +2 -2
  134. data/spec/models/host_spec.rb +2 -2
  135. data/spec/models/hosts_collection_spec.rb +2 -2
  136. data/spec/models/inline_response200_spec.rb +2 -2
  137. data/spec/models/ipaddress_spec.rb +2 -2
  138. data/spec/models/ipaddresses_collection_spec.rb +2 -2
  139. data/spec/models/network_adapter_spec.rb +2 -2
  140. data/spec/models/network_adapters_collection_spec.rb +2 -2
  141. data/spec/models/network_spec.rb +2 -2
  142. data/spec/models/networks_collection_spec.rb +2 -2
  143. data/spec/models/orchestration_stack_spec.rb +2 -2
  144. data/spec/models/orchestration_stacks_collection_spec.rb +2 -2
  145. data/spec/models/order_parameters_service_offering_spec.rb +2 -2
  146. data/spec/models/order_parameters_service_plan_spec.rb +2 -2
  147. data/spec/models/security_group_spec.rb +2 -2
  148. data/spec/models/security_groups_collection_spec.rb +2 -2
  149. data/spec/models/service_credential_spec.rb +113 -0
  150. data/spec/models/service_credential_type_spec.rb +113 -0
  151. data/spec/models/service_credential_types_collection_spec.rb +53 -0
  152. data/spec/models/service_credentials_collection_spec.rb +53 -0
  153. data/spec/models/service_instance_node_spec.rb +2 -8
  154. data/spec/models/service_instance_nodes_collection_spec.rb +2 -2
  155. data/spec/models/service_instance_spec.rb +2 -8
  156. data/spec/models/service_instances_collection_spec.rb +2 -2
  157. data/spec/models/service_inventories_collection_spec.rb +2 -2
  158. data/spec/models/service_inventory_spec.rb +2 -2
  159. data/spec/models/service_offering_icon_spec.rb +2 -2
  160. data/spec/models/service_offering_icons_collection_spec.rb +2 -2
  161. data/spec/models/service_offering_node_spec.rb +2 -8
  162. data/spec/models/service_offering_nodes_collection_spec.rb +2 -2
  163. data/spec/models/service_offering_spec.rb +2 -8
  164. data/spec/models/service_offerings_collection_spec.rb +2 -2
  165. data/spec/models/service_plan_spec.rb +2 -2
  166. data/spec/models/service_plans_collection_spec.rb +2 -2
  167. data/spec/models/source_region_spec.rb +2 -2
  168. data/spec/models/source_regions_collection_spec.rb +2 -2
  169. data/spec/models/source_spec.rb +2 -2
  170. data/spec/models/sources_collection_spec.rb +2 -2
  171. data/spec/models/subnet_spec.rb +2 -2
  172. data/spec/models/subnets_collection_spec.rb +2 -2
  173. data/spec/models/subscription_spec.rb +2 -2
  174. data/spec/models/subscriptions_collection_spec.rb +2 -2
  175. data/spec/models/tag_spec.rb +2 -2
  176. data/spec/models/tags_collection_spec.rb +2 -2
  177. data/spec/models/task_spec.rb +2 -2
  178. data/spec/models/tasks_collection_spec.rb +2 -2
  179. data/spec/models/tenant_spec.rb +2 -2
  180. data/spec/models/vm_spec.rb +2 -2
  181. data/spec/models/vms_collection_spec.rb +2 -2
  182. data/spec/models/volume_attachment_spec.rb +2 -2
  183. data/spec/models/volume_attachments_collection_spec.rb +2 -2
  184. data/spec/models/volume_spec.rb +2 -2
  185. data/spec/models/volume_type_spec.rb +2 -2
  186. data/spec/models/volume_types_collection_spec.rb +2 -2
  187. data/spec/models/volumes_collection_spec.rb +2 -2
  188. data/spec/spec_helper.rb +2 -2
  189. data/topological_inventory-api-client.gemspec +2 -2
  190. metadata +86 -69
@@ -0,0 +1,226 @@
1
+ =begin
2
+ #Topological Inventory
3
+
4
+ #Topological Inventory
5
+
6
+ The version of the OpenAPI document: 3.0.0
7
+ Contact: support@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module TopologicalInventoryApiClient
16
+ class ServiceCredentialsCollection
17
+ attr_accessor :meta
18
+
19
+ attr_accessor :links
20
+
21
+ attr_accessor :data
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'meta' => :'meta',
27
+ :'links' => :'links',
28
+ :'data' => :'data'
29
+ }
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'meta' => :'CollectionMetadata',
36
+ :'links' => :'CollectionLinks',
37
+ :'data' => :'Array<ServiceCredential>'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `TopologicalInventoryApiClient::ServiceCredentialsCollection` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `TopologicalInventoryApiClient::ServiceCredentialsCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'meta')
63
+ self.meta = attributes[:'meta']
64
+ end
65
+
66
+ if attributes.key?(:'links')
67
+ self.links = attributes[:'links']
68
+ end
69
+
70
+ if attributes.key?(:'data')
71
+ if (value = attributes[:'data']).is_a?(Array)
72
+ self.data = value
73
+ end
74
+ end
75
+ end
76
+
77
+ # Show invalid properties with the reasons. Usually used together with valid?
78
+ # @return Array for valid properties with the reasons
79
+ def list_invalid_properties
80
+ invalid_properties = Array.new
81
+ invalid_properties
82
+ end
83
+
84
+ # Check to see if the all the properties in the model are valid
85
+ # @return true if the model is valid
86
+ def valid?
87
+ true
88
+ end
89
+
90
+ # Checks equality by comparing each attribute.
91
+ # @param [Object] Object to be compared
92
+ def ==(o)
93
+ return true if self.equal?(o)
94
+ self.class == o.class &&
95
+ meta == o.meta &&
96
+ links == o.links &&
97
+ data == o.data
98
+ end
99
+
100
+ # @see the `==` method
101
+ # @param [Object] Object to be compared
102
+ def eql?(o)
103
+ self == o
104
+ end
105
+
106
+ # Calculates hash code according to all attributes.
107
+ # @return [Integer] Hash code
108
+ def hash
109
+ [meta, links, data].hash
110
+ end
111
+
112
+ # Builds the object from hash
113
+ # @param [Hash] attributes Model attributes in the form of hash
114
+ # @return [Object] Returns the model itself
115
+ def self.build_from_hash(attributes)
116
+ new.build_from_hash(attributes)
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ self.class.openapi_types.each_pair do |key, type|
125
+ if type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :DateTime
146
+ DateTime.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ TopologicalInventoryApiClient.const_get(type).build_from_hash(value)
177
+ end
178
+ end
179
+
180
+ # Returns the string representation of the object
181
+ # @return [String] String presentation of the object
182
+ def to_s
183
+ to_hash.to_s
184
+ end
185
+
186
+ # to_body is an alias to to_hash (backward compatibility)
187
+ # @return [Hash] Returns the object in the form of hash
188
+ def to_body
189
+ to_hash
190
+ end
191
+
192
+ # Returns the object in the form of hash
193
+ # @return [Hash] Returns the object in the form of hash
194
+ def to_hash
195
+ hash = {}
196
+ self.class.attribute_map.each_pair do |attr, param|
197
+ value = self.send(attr)
198
+ if value.nil?
199
+ is_nullable = self.class.openapi_nullable.include?(attr)
200
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
201
+ end
202
+
203
+ hash[param] = _to_hash(value)
204
+ end
205
+ hash
206
+ end
207
+
208
+ # Outputs non-array value in the form of hash
209
+ # For object, use to_hash. Otherwise, just return the value
210
+ # @param [Object] value Any valid value
211
+ # @return [Hash] Returns the value in the form of hash
212
+ def _to_hash(value)
213
+ if value.is_a?(Array)
214
+ value.compact.map { |v| _to_hash(v) }
215
+ elsif value.is_a?(Hash)
216
+ {}.tap do |hash|
217
+ value.each { |k, v| hash[k] = _to_hash(v) }
218
+ end
219
+ elsif value.respond_to? :to_hash
220
+ value.to_hash
221
+ else
222
+ value
223
+ end
224
+ end
225
+ end
226
+ end
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -33,9 +33,6 @@ 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
-
39
36
  # ID of the resource
40
37
  attr_accessor :service_inventory_id
41
38
 
@@ -73,7 +70,6 @@ module TopologicalInventoryApiClient
73
70
  :'last_seen_at' => :'last_seen_at',
74
71
  :'name' => :'name',
75
72
  :'root_service_instance_id' => :'root_service_instance_id',
76
- :'service_credential_id' => :'service_credential_id',
77
73
  :'service_inventory_id' => :'service_inventory_id',
78
74
  :'service_offering_id' => :'service_offering_id',
79
75
  :'service_plan_id' => :'service_plan_id',
@@ -98,7 +94,6 @@ module TopologicalInventoryApiClient
98
94
  :'last_seen_at' => :'DateTime',
99
95
  :'name' => :'String',
100
96
  :'root_service_instance_id' => :'String',
101
- :'service_credential_id' => :'String',
102
97
  :'service_inventory_id' => :'String',
103
98
  :'service_offering_id' => :'String',
104
99
  :'service_plan_id' => :'String',
@@ -165,10 +160,6 @@ module TopologicalInventoryApiClient
165
160
  self.root_service_instance_id = attributes[:'root_service_instance_id']
166
161
  end
167
162
 
168
- if attributes.key?(:'service_credential_id')
169
- self.service_credential_id = attributes[:'service_credential_id']
170
- end
171
-
172
163
  if attributes.key?(:'service_inventory_id')
173
164
  self.service_inventory_id = attributes[:'service_inventory_id']
174
165
  end
@@ -224,11 +215,6 @@ module TopologicalInventoryApiClient
224
215
  invalid_properties.push("invalid value for \"root_service_instance_id\", must conform to the pattern #{pattern}.")
225
216
  end
226
217
 
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
-
232
218
  pattern = Regexp.new(/^\d+$/)
233
219
  if !@service_inventory_id.nil? && @service_inventory_id !~ pattern
234
220
  invalid_properties.push("invalid value for \"service_inventory_id\", must conform to the pattern #{pattern}.")
@@ -267,7 +253,6 @@ module TopologicalInventoryApiClient
267
253
  def valid?
268
254
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
269
255
  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+$/)
271
256
  return false if !@service_inventory_id.nil? && @service_inventory_id !~ Regexp.new(/^\d+$/)
272
257
  return false if !@service_offering_id.nil? && @service_offering_id !~ Regexp.new(/^\d+$/)
273
258
  return false if !@service_plan_id.nil? && @service_plan_id !~ Regexp.new(/^\d+$/)
@@ -299,17 +284,6 @@ module TopologicalInventoryApiClient
299
284
  @root_service_instance_id = root_service_instance_id
300
285
  end
301
286
 
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
-
313
287
  # Custom attribute writer method with validation
314
288
  # @param [Object] service_inventory_id Value to be assigned
315
289
  def service_inventory_id=(service_inventory_id)
@@ -389,7 +363,6 @@ module TopologicalInventoryApiClient
389
363
  last_seen_at == o.last_seen_at &&
390
364
  name == o.name &&
391
365
  root_service_instance_id == o.root_service_instance_id &&
392
- service_credential_id == o.service_credential_id &&
393
366
  service_inventory_id == o.service_inventory_id &&
394
367
  service_offering_id == o.service_offering_id &&
395
368
  service_plan_id == o.service_plan_id &&
@@ -411,7 +384,7 @@ module TopologicalInventoryApiClient
411
384
  # Calculates hash code according to all attributes.
412
385
  # @return [Integer] Hash code
413
386
  def 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
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
415
388
  end
416
389
 
417
390
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -30,9 +30,6 @@ 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
-
36
33
  # ID of the resource
37
34
  attr_accessor :service_instance_id
38
35
 
@@ -60,7 +57,6 @@ module TopologicalInventoryApiClient
60
57
  :'last_seen_at' => :'last_seen_at',
61
58
  :'name' => :'name',
62
59
  :'root_service_instance_id' => :'root_service_instance_id',
63
- :'service_credential_id' => :'service_credential_id',
64
60
  :'service_instance_id' => :'service_instance_id',
65
61
  :'service_inventory_id' => :'service_inventory_id',
66
62
  :'source_created_at' => :'source_created_at',
@@ -81,7 +77,6 @@ module TopologicalInventoryApiClient
81
77
  :'last_seen_at' => :'DateTime',
82
78
  :'name' => :'String',
83
79
  :'root_service_instance_id' => :'String',
84
- :'service_credential_id' => :'String',
85
80
  :'service_instance_id' => :'String',
86
81
  :'service_inventory_id' => :'String',
87
82
  :'source_created_at' => :'DateTime',
@@ -141,10 +136,6 @@ module TopologicalInventoryApiClient
141
136
  self.root_service_instance_id = attributes[:'root_service_instance_id']
142
137
  end
143
138
 
144
- if attributes.key?(:'service_credential_id')
145
- self.service_credential_id = attributes[:'service_credential_id']
146
- end
147
-
148
139
  if attributes.key?(:'service_instance_id')
149
140
  self.service_instance_id = attributes[:'service_instance_id']
150
141
  end
@@ -188,11 +179,6 @@ module TopologicalInventoryApiClient
188
179
  invalid_properties.push("invalid value for \"root_service_instance_id\", must conform to the pattern #{pattern}.")
189
180
  end
190
181
 
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
-
196
182
  pattern = Regexp.new(/^\d+$/)
197
183
  if !@service_instance_id.nil? && @service_instance_id !~ pattern
198
184
  invalid_properties.push("invalid value for \"service_instance_id\", must conform to the pattern #{pattern}.")
@@ -216,7 +202,6 @@ module TopologicalInventoryApiClient
216
202
  def valid?
217
203
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
218
204
  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+$/)
220
205
  return false if !@service_instance_id.nil? && @service_instance_id !~ Regexp.new(/^\d+$/)
221
206
  return false if !@service_inventory_id.nil? && @service_inventory_id !~ Regexp.new(/^\d+$/)
222
207
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
@@ -245,17 +230,6 @@ module TopologicalInventoryApiClient
245
230
  @root_service_instance_id = root_service_instance_id
246
231
  end
247
232
 
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
-
259
233
  # Custom attribute writer method with validation
260
234
  # @param [Object] service_instance_id Value to be assigned
261
235
  def service_instance_id=(service_instance_id)
@@ -301,7 +275,6 @@ module TopologicalInventoryApiClient
301
275
  last_seen_at == o.last_seen_at &&
302
276
  name == o.name &&
303
277
  root_service_instance_id == o.root_service_instance_id &&
304
- service_credential_id == o.service_credential_id &&
305
278
  service_instance_id == o.service_instance_id &&
306
279
  service_inventory_id == o.service_inventory_id &&
307
280
  source_created_at == o.source_created_at &&
@@ -320,7 +293,7 @@ module TopologicalInventoryApiClient
320
293
  # Calculates hash code according to all attributes.
321
294
  # @return [Integer] Hash code
322
295
  def 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
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
324
297
  end
325
298
 
326
299
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -38,9 +38,6 @@ module TopologicalInventoryApiClient
38
38
 
39
39
  attr_accessor :name
40
40
 
41
- # ID of the resource
42
- attr_accessor :service_credential_id
43
-
44
41
  # ID of the resource
45
42
  attr_accessor :service_inventory_id
46
43
 
@@ -81,7 +78,6 @@ module TopologicalInventoryApiClient
81
78
  :'last_seen_at' => :'last_seen_at',
82
79
  :'long_description' => :'long_description',
83
80
  :'name' => :'name',
84
- :'service_credential_id' => :'service_credential_id',
85
81
  :'service_inventory_id' => :'service_inventory_id',
86
82
  :'service_offering_icon_id' => :'service_offering_icon_id',
87
83
  :'source_created_at' => :'source_created_at',
@@ -109,7 +105,6 @@ module TopologicalInventoryApiClient
109
105
  :'last_seen_at' => :'DateTime',
110
106
  :'long_description' => :'String',
111
107
  :'name' => :'String',
112
- :'service_credential_id' => :'String',
113
108
  :'service_inventory_id' => :'String',
114
109
  :'service_offering_icon_id' => :'String',
115
110
  :'source_created_at' => :'DateTime',
@@ -188,10 +183,6 @@ module TopologicalInventoryApiClient
188
183
  self.name = attributes[:'name']
189
184
  end
190
185
 
191
- if attributes.key?(:'service_credential_id')
192
- self.service_credential_id = attributes[:'service_credential_id']
193
- end
194
-
195
186
  if attributes.key?(:'service_inventory_id')
196
187
  self.service_inventory_id = attributes[:'service_inventory_id']
197
188
  end
@@ -242,11 +233,6 @@ module TopologicalInventoryApiClient
242
233
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
243
234
  end
244
235
 
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
-
250
236
  pattern = Regexp.new(/^\d+$/)
251
237
  if !@service_inventory_id.nil? && @service_inventory_id !~ pattern
252
238
  invalid_properties.push("invalid value for \"service_inventory_id\", must conform to the pattern #{pattern}.")
@@ -279,7 +265,6 @@ module TopologicalInventoryApiClient
279
265
  # @return true if the model is valid
280
266
  def valid?
281
267
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
282
- return false if !@service_credential_id.nil? && @service_credential_id !~ Regexp.new(/^\d+$/)
283
268
  return false if !@service_inventory_id.nil? && @service_inventory_id !~ Regexp.new(/^\d+$/)
284
269
  return false if !@service_offering_icon_id.nil? && @service_offering_icon_id !~ Regexp.new(/^\d+$/)
285
270
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
@@ -299,17 +284,6 @@ module TopologicalInventoryApiClient
299
284
  @id = id
300
285
  end
301
286
 
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
-
313
287
  # Custom attribute writer method with validation
314
288
  # @param [Object] service_inventory_id Value to be assigned
315
289
  def service_inventory_id=(service_inventory_id)
@@ -381,7 +355,6 @@ module TopologicalInventoryApiClient
381
355
  last_seen_at == o.last_seen_at &&
382
356
  long_description == o.long_description &&
383
357
  name == o.name &&
384
- service_credential_id == o.service_credential_id &&
385
358
  service_inventory_id == o.service_inventory_id &&
386
359
  service_offering_icon_id == o.service_offering_icon_id &&
387
360
  source_created_at == o.source_created_at &&
@@ -403,7 +376,7 @@ module TopologicalInventoryApiClient
403
376
  # Calculates hash code according to all attributes.
404
377
  # @return [Integer] Hash code
405
378
  def 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
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
407
380
  end
408
381
 
409
382
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #Topological Inventory
5
5
 
6
- The version of the OpenAPI document: 2.0.0
6
+ The version of the OpenAPI document: 3.0.0
7
7
  Contact: support@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.2.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12