topological_inventory-api-client 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/docs/Cluster.md +2 -0
  4. data/docs/Container.md +2 -0
  5. data/docs/ContainerGroup.md +2 -0
  6. data/docs/ContainerImage.md +2 -0
  7. data/docs/ContainerNode.md +2 -0
  8. data/docs/ContainerProject.md +2 -0
  9. data/docs/ContainerResourceQuota.md +2 -0
  10. data/docs/ContainerTemplate.md +2 -0
  11. data/docs/Datastore.md +2 -0
  12. data/docs/Flavor.md +2 -0
  13. data/docs/Host.md +2 -0
  14. data/docs/Ipaddress.md +2 -0
  15. data/docs/Network.md +2 -0
  16. data/docs/NetworkAdapter.md +2 -0
  17. data/docs/OrchestrationStack.md +2 -0
  18. data/docs/SecurityGroup.md +2 -0
  19. data/docs/ServiceCredential.md +2 -0
  20. data/docs/ServiceCredentialType.md +2 -0
  21. data/docs/ServiceInstance.md +2 -0
  22. data/docs/ServiceInstanceNode.md +2 -0
  23. data/docs/ServiceInventory.md +2 -0
  24. data/docs/ServiceOffering.md +2 -0
  25. data/docs/ServiceOfferingIcon.md +2 -0
  26. data/docs/ServiceOfferingNode.md +2 -0
  27. data/docs/ServicePlan.md +2 -0
  28. data/docs/SourceRegion.md +2 -0
  29. data/docs/Subnet.md +2 -0
  30. data/docs/Subscription.md +2 -0
  31. data/docs/Task.md +6 -0
  32. data/docs/Vm.md +2 -0
  33. data/docs/Volume.md +2 -0
  34. data/docs/VolumeAttachment.md +2 -0
  35. data/docs/VolumeType.md +2 -0
  36. data/lib/topological_inventory-api-client/models/cluster.rb +28 -1
  37. data/lib/topological_inventory-api-client/models/container.rb +28 -1
  38. data/lib/topological_inventory-api-client/models/container_group.rb +28 -1
  39. data/lib/topological_inventory-api-client/models/container_image.rb +28 -1
  40. data/lib/topological_inventory-api-client/models/container_node.rb +28 -1
  41. data/lib/topological_inventory-api-client/models/container_project.rb +28 -1
  42. data/lib/topological_inventory-api-client/models/container_resource_quota.rb +28 -1
  43. data/lib/topological_inventory-api-client/models/container_template.rb +28 -1
  44. data/lib/topological_inventory-api-client/models/datastore.rb +28 -1
  45. data/lib/topological_inventory-api-client/models/flavor.rb +28 -1
  46. data/lib/topological_inventory-api-client/models/host.rb +28 -1
  47. data/lib/topological_inventory-api-client/models/ipaddress.rb +28 -1
  48. data/lib/topological_inventory-api-client/models/network.rb +28 -1
  49. data/lib/topological_inventory-api-client/models/network_adapter.rb +28 -1
  50. data/lib/topological_inventory-api-client/models/orchestration_stack.rb +28 -1
  51. data/lib/topological_inventory-api-client/models/security_group.rb +28 -1
  52. data/lib/topological_inventory-api-client/models/service_credential.rb +28 -1
  53. data/lib/topological_inventory-api-client/models/service_credential_type.rb +28 -1
  54. data/lib/topological_inventory-api-client/models/service_instance.rb +28 -1
  55. data/lib/topological_inventory-api-client/models/service_instance_node.rb +28 -1
  56. data/lib/topological_inventory-api-client/models/service_inventory.rb +28 -1
  57. data/lib/topological_inventory-api-client/models/service_offering.rb +28 -1
  58. data/lib/topological_inventory-api-client/models/service_offering_icon.rb +28 -1
  59. data/lib/topological_inventory-api-client/models/service_offering_node.rb +28 -1
  60. data/lib/topological_inventory-api-client/models/service_plan.rb +28 -1
  61. data/lib/topological_inventory-api-client/models/source_region.rb +28 -1
  62. data/lib/topological_inventory-api-client/models/subnet.rb +28 -1
  63. data/lib/topological_inventory-api-client/models/subscription.rb +28 -1
  64. data/lib/topological_inventory-api-client/models/task.rb +46 -1
  65. data/lib/topological_inventory-api-client/models/vm.rb +28 -1
  66. data/lib/topological_inventory-api-client/models/volume.rb +28 -1
  67. data/lib/topological_inventory-api-client/models/volume_attachment.rb +28 -1
  68. data/lib/topological_inventory-api-client/models/volume_type.rb +28 -1
  69. data/lib/topological_inventory-api-client/version.rb +1 -1
  70. data/pkg/topological_inventory-api-client-3.0.0.gem +0 -0
  71. data/spec/models/cluster_spec.rb +6 -0
  72. data/spec/models/container_group_spec.rb +6 -0
  73. data/spec/models/container_image_spec.rb +6 -0
  74. data/spec/models/container_node_spec.rb +6 -0
  75. data/spec/models/container_project_spec.rb +6 -0
  76. data/spec/models/container_resource_quota_spec.rb +6 -0
  77. data/spec/models/container_spec.rb +6 -0
  78. data/spec/models/container_template_spec.rb +6 -0
  79. data/spec/models/datastore_spec.rb +6 -0
  80. data/spec/models/flavor_spec.rb +6 -0
  81. data/spec/models/host_spec.rb +6 -0
  82. data/spec/models/ipaddress_spec.rb +6 -0
  83. data/spec/models/network_adapter_spec.rb +6 -0
  84. data/spec/models/network_spec.rb +6 -0
  85. data/spec/models/orchestration_stack_spec.rb +6 -0
  86. data/spec/models/security_group_spec.rb +6 -0
  87. data/spec/models/service_credential_spec.rb +6 -0
  88. data/spec/models/service_credential_type_spec.rb +6 -0
  89. data/spec/models/service_instance_node_spec.rb +6 -0
  90. data/spec/models/service_instance_spec.rb +6 -0
  91. data/spec/models/service_inventory_spec.rb +6 -0
  92. data/spec/models/service_offering_icon_spec.rb +6 -0
  93. data/spec/models/service_offering_node_spec.rb +6 -0
  94. data/spec/models/service_offering_spec.rb +6 -0
  95. data/spec/models/service_plan_spec.rb +6 -0
  96. data/spec/models/source_region_spec.rb +6 -0
  97. data/spec/models/subnet_spec.rb +6 -0
  98. data/spec/models/subscription_spec.rb +6 -0
  99. data/spec/models/task_spec.rb +18 -0
  100. data/spec/models/vm_spec.rb +6 -0
  101. data/spec/models/volume_attachment_spec.rb +6 -0
  102. data/spec/models/volume_spec.rb +6 -0
  103. data/spec/models/volume_type_spec.rb +6 -0
  104. metadata +36 -35
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **id** | **String** | ID of the resource | [optional] [readonly]
11
11
  **last_seen_at** | **DateTime** | | [optional] [readonly]
12
12
  **name** | **String** | | [optional]
13
+ **refresh_state_part_id** | **String** | ID of the resource | [optional] [readonly]
13
14
  **source_id** | **String** | ID of the resource | [optional] [readonly]
14
15
  **source_ref** | **String** | | [optional]
15
16
  **updated_at** | **DateTime** | | [optional] [readonly]
@@ -25,6 +26,7 @@ instance = TopologicalInventoryApiClient::SourceRegion.new(archived_at: null,
25
26
  id: null,
26
27
  last_seen_at: null,
27
28
  name: null,
29
+ refresh_state_part_id: null,
28
30
  source_id: null,
29
31
  source_ref: null,
30
32
  updated_at: null)
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **name** | **String** | | [optional]
14
14
  **network_id** | **String** | ID of the resource | [optional] [readonly]
15
15
  **orchestration_stack_id** | **String** | ID of the resource | [optional] [readonly]
16
+ **refresh_state_part_id** | **String** | ID of the resource | [optional] [readonly]
16
17
  **source_created_at** | **DateTime** | | [optional]
17
18
  **source_deleted_at** | **DateTime** | | [optional]
18
19
  **source_id** | **String** | ID of the resource | [optional] [readonly]
@@ -36,6 +37,7 @@ instance = TopologicalInventoryApiClient::Subnet.new(archived_at: null,
36
37
  name: null,
37
38
  network_id: null,
38
39
  orchestration_stack_id: null,
40
+ refresh_state_part_id: null,
39
41
  source_created_at: null,
40
42
  source_deleted_at: null,
41
43
  source_id: null,
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
9
9
  **id** | **String** | ID of the resource | [optional] [readonly]
10
10
  **last_seen_at** | **DateTime** | | [optional] [readonly]
11
11
  **name** | **String** | | [optional]
12
+ **refresh_state_part_id** | **String** | ID of the resource | [optional] [readonly]
12
13
  **source_id** | **String** | ID of the resource | [optional] [readonly]
13
14
  **source_ref** | **String** | | [optional]
14
15
  **updated_at** | **DateTime** | | [optional] [readonly]
@@ -23,6 +24,7 @@ instance = TopologicalInventoryApiClient::Subscription.new(archived_at: null,
23
24
  id: null,
24
25
  last_seen_at: null,
25
26
  name: null,
27
+ refresh_state_part_id: null,
26
28
  source_id: null,
27
29
  source_ref: null,
28
30
  updated_at: null)
@@ -9,8 +9,11 @@ Name | Type | Description | Notes
9
9
  **created_at** | **DateTime** | | [optional] [readonly]
10
10
  **id** | **String** | ID of the resource | [optional] [readonly]
11
11
  **name** | **String** | | [optional]
12
+ **source_id** | **String** | ID of the resource | [optional] [readonly]
12
13
  **state** | **String** | | [optional]
13
14
  **status** | **String** | | [optional]
15
+ **target_source_ref** | **String** | | [optional]
16
+ **target_type** | **String** | | [optional]
14
17
  **updated_at** | **DateTime** | | [optional] [readonly]
15
18
 
16
19
  ## Code Sample
@@ -23,8 +26,11 @@ instance = TopologicalInventoryApiClient::Task.new(completed_at: null,
23
26
  created_at: null,
24
27
  id: null,
25
28
  name: Order Service Plan,
29
+ source_id: null,
26
30
  state: Running,
27
31
  status: Error,
32
+ target_source_ref: null,
33
+ target_type: null,
28
34
  updated_at: null)
29
35
  ```
30
36
 
data/docs/Vm.md CHANGED
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
20
20
  **name** | **String** | | [optional] [readonly]
21
21
  **orchestration_stack_id** | **String** | ID of the resource | [optional] [readonly]
22
22
  **power_state** | **String** | | [optional] [readonly]
23
+ **refresh_state_part_id** | **String** | ID of the resource | [optional] [readonly]
23
24
  **source_created_at** | **DateTime** | | [optional] [readonly]
24
25
  **source_deleted_at** | **DateTime** | | [optional] [readonly]
25
26
  **source_id** | **String** | ID of the resource | [optional] [readonly]
@@ -50,6 +51,7 @@ instance = TopologicalInventoryApiClient::Vm.new(archived_at: null,
50
51
  name: Sample Vm,
51
52
  orchestration_stack_id: null,
52
53
  power_state: running,
54
+ refresh_state_part_id: null,
53
55
  source_created_at: null,
54
56
  source_deleted_at: null,
55
57
  source_id: null,
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **last_seen_at** | **DateTime** | | [optional] [readonly]
12
12
  **name** | **String** | | [optional] [readonly]
13
13
  **orchestration_stack_id** | **String** | ID of the resource | [optional] [readonly]
14
+ **refresh_state_part_id** | **String** | ID of the resource | [optional] [readonly]
14
15
  **size** | **Integer** | Size of the volume in bytes | [optional] [readonly]
15
16
  **source_created_at** | **DateTime** | | [optional] [readonly]
16
17
  **source_deleted_at** | **DateTime** | | [optional] [readonly]
@@ -34,6 +35,7 @@ instance = TopologicalInventoryApiClient::Volume.new(archived_at: null,
34
35
  last_seen_at: null,
35
36
  name: vol-00627bf31217a7bc0,
36
37
  orchestration_stack_id: null,
38
+ refresh_state_part_id: null,
37
39
  size: 8589934592,
38
40
  source_created_at: null,
39
41
  source_deleted_at: null,
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **device** | **String** | | [optional] [readonly]
8
8
  **id** | **String** | ID of the resource | [optional] [readonly]
9
9
  **last_seen_at** | **DateTime** | | [optional] [readonly]
10
+ **refresh_state_part_id** | **String** | ID of the resource | [optional] [readonly]
10
11
  **state** | **String** | | [optional] [readonly]
11
12
  **vm_id** | **String** | ID of the resource | [optional] [readonly]
12
13
  **volume_id** | **String** | ID of the resource | [optional] [readonly]
@@ -19,6 +20,7 @@ require 'TopologicalInventoryApiClient'
19
20
  instance = TopologicalInventoryApiClient::VolumeAttachment.new(device: /dev/xvda,
20
21
  id: null,
21
22
  last_seen_at: null,
23
+ refresh_state_part_id: null,
22
24
  state: attached,
23
25
  vm_id: null,
24
26
  volume_id: null)
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **id** | **String** | ID of the resource | [optional] [readonly]
12
12
  **last_seen_at** | **DateTime** | | [optional] [readonly]
13
13
  **name** | **String** | | [optional] [readonly]
14
+ **refresh_state_part_id** | **String** | ID of the resource | [optional] [readonly]
14
15
  **source_id** | **String** | ID of the resource | [optional] [readonly]
15
16
  **source_ref** | **String** | | [optional] [readonly]
16
17
  **updated_at** | **DateTime** | | [optional] [readonly]
@@ -27,6 +28,7 @@ instance = TopologicalInventoryApiClient::VolumeType.new(archived_at: null,
27
28
  id: null,
28
29
  last_seen_at: null,
29
30
  name: standard,
31
+ refresh_state_part_id: null,
30
32
  source_id: null,
31
33
  source_ref: null,
32
34
  updated_at: null)
@@ -27,6 +27,9 @@ module TopologicalInventoryApiClient
27
27
 
28
28
  attr_accessor :name
29
29
 
30
+ # ID of the resource
31
+ attr_accessor :refresh_state_part_id
32
+
30
33
  attr_accessor :source_created_at
31
34
 
32
35
  attr_accessor :source_deleted_at
@@ -49,6 +52,7 @@ module TopologicalInventoryApiClient
49
52
  :'id' => :'id',
50
53
  :'last_seen_at' => :'last_seen_at',
51
54
  :'name' => :'name',
55
+ :'refresh_state_part_id' => :'refresh_state_part_id',
52
56
  :'source_created_at' => :'source_created_at',
53
57
  :'source_deleted_at' => :'source_deleted_at',
54
58
  :'source_id' => :'source_id',
@@ -67,6 +71,7 @@ module TopologicalInventoryApiClient
67
71
  :'id' => :'String',
68
72
  :'last_seen_at' => :'DateTime',
69
73
  :'name' => :'String',
74
+ :'refresh_state_part_id' => :'String',
70
75
  :'source_created_at' => :'DateTime',
71
76
  :'source_deleted_at' => :'DateTime',
72
77
  :'source_id' => :'String',
@@ -121,6 +126,10 @@ module TopologicalInventoryApiClient
121
126
  self.name = attributes[:'name']
122
127
  end
123
128
 
129
+ if attributes.key?(:'refresh_state_part_id')
130
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
131
+ end
132
+
124
133
  if attributes.key?(:'source_created_at')
125
134
  self.source_created_at = attributes[:'source_created_at']
126
135
  end
@@ -155,6 +164,11 @@ module TopologicalInventoryApiClient
155
164
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
156
165
  end
157
166
 
167
+ pattern = Regexp.new(/^\d+$/)
168
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
169
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
170
+ end
171
+
158
172
  pattern = Regexp.new(/^\d+$/)
159
173
  if !@source_id.nil? && @source_id !~ pattern
160
174
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -167,6 +181,7 @@ module TopologicalInventoryApiClient
167
181
  # @return true if the model is valid
168
182
  def valid?
169
183
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
184
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
170
185
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
171
186
  true
172
187
  end
@@ -182,6 +197,17 @@ module TopologicalInventoryApiClient
182
197
  @id = id
183
198
  end
184
199
 
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] refresh_state_part_id Value to be assigned
202
+ def refresh_state_part_id=(refresh_state_part_id)
203
+ pattern = Regexp.new(/^\d+$/)
204
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
205
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
206
+ end
207
+
208
+ @refresh_state_part_id = refresh_state_part_id
209
+ end
210
+
185
211
  # Custom attribute writer method with validation
186
212
  # @param [Object] source_id Value to be assigned
187
213
  def source_id=(source_id)
@@ -204,6 +230,7 @@ module TopologicalInventoryApiClient
204
230
  id == o.id &&
205
231
  last_seen_at == o.last_seen_at &&
206
232
  name == o.name &&
233
+ refresh_state_part_id == o.refresh_state_part_id &&
207
234
  source_created_at == o.source_created_at &&
208
235
  source_deleted_at == o.source_deleted_at &&
209
236
  source_id == o.source_id &&
@@ -221,7 +248,7 @@ module TopologicalInventoryApiClient
221
248
  # Calculates hash code according to all attributes.
222
249
  # @return [Integer] Hash code
223
250
  def hash
224
- [archived_at, created_at, extra, id, last_seen_at, name, source_created_at, source_deleted_at, source_id, source_ref, uid_ems, updated_at].hash
251
+ [archived_at, created_at, extra, id, last_seen_at, name, refresh_state_part_id, source_created_at, source_deleted_at, source_id, source_ref, uid_ems, updated_at].hash
225
252
  end
226
253
 
227
254
  # Builds the object from hash
@@ -39,6 +39,9 @@ module TopologicalInventoryApiClient
39
39
 
40
40
  attr_accessor :name
41
41
 
42
+ # ID of the resource
43
+ attr_accessor :refresh_state_part_id
44
+
42
45
  attr_accessor :updated_at
43
46
 
44
47
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -55,6 +58,7 @@ module TopologicalInventoryApiClient
55
58
  :'memory_limit' => :'memory_limit',
56
59
  :'memory_request' => :'memory_request',
57
60
  :'name' => :'name',
61
+ :'refresh_state_part_id' => :'refresh_state_part_id',
58
62
  :'updated_at' => :'updated_at'
59
63
  }
60
64
  end
@@ -73,6 +77,7 @@ module TopologicalInventoryApiClient
73
77
  :'memory_limit' => :'Integer',
74
78
  :'memory_request' => :'Integer',
75
79
  :'name' => :'String',
80
+ :'refresh_state_part_id' => :'String',
76
81
  :'updated_at' => :'DateTime'
77
82
  }
78
83
  end
@@ -142,6 +147,10 @@ module TopologicalInventoryApiClient
142
147
  self.name = attributes[:'name']
143
148
  end
144
149
 
150
+ if attributes.key?(:'refresh_state_part_id')
151
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
152
+ end
153
+
145
154
  if attributes.key?(:'updated_at')
146
155
  self.updated_at = attributes[:'updated_at']
147
156
  end
@@ -166,6 +175,11 @@ module TopologicalInventoryApiClient
166
175
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
167
176
  end
168
177
 
178
+ pattern = Regexp.new(/^\d+$/)
179
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
180
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
181
+ end
182
+
169
183
  invalid_properties
170
184
  end
171
185
 
@@ -175,6 +189,7 @@ module TopologicalInventoryApiClient
175
189
  return false if !@container_group_id.nil? && @container_group_id !~ Regexp.new(/^\d+$/)
176
190
  return false if !@container_image_id.nil? && @container_image_id !~ Regexp.new(/^\d+$/)
177
191
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
192
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
178
193
  true
179
194
  end
180
195
 
@@ -211,6 +226,17 @@ module TopologicalInventoryApiClient
211
226
  @id = id
212
227
  end
213
228
 
229
+ # Custom attribute writer method with validation
230
+ # @param [Object] refresh_state_part_id Value to be assigned
231
+ def refresh_state_part_id=(refresh_state_part_id)
232
+ pattern = Regexp.new(/^\d+$/)
233
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
234
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
235
+ end
236
+
237
+ @refresh_state_part_id = refresh_state_part_id
238
+ end
239
+
214
240
  # Checks equality by comparing each attribute.
215
241
  # @param [Object] Object to be compared
216
242
  def ==(o)
@@ -227,6 +253,7 @@ module TopologicalInventoryApiClient
227
253
  memory_limit == o.memory_limit &&
228
254
  memory_request == o.memory_request &&
229
255
  name == o.name &&
256
+ refresh_state_part_id == o.refresh_state_part_id &&
230
257
  updated_at == o.updated_at
231
258
  end
232
259
 
@@ -239,7 +266,7 @@ module TopologicalInventoryApiClient
239
266
  # Calculates hash code according to all attributes.
240
267
  # @return [Integer] Hash code
241
268
  def hash
242
- [archived_at, container_group_id, container_image_id, cpu_limit, cpu_request, created_at, id, last_seen_at, memory_limit, memory_request, name, updated_at].hash
269
+ [archived_at, container_group_id, container_image_id, cpu_limit, cpu_request, created_at, id, last_seen_at, memory_limit, memory_request, name, refresh_state_part_id, updated_at].hash
243
270
  end
244
271
 
245
272
  # Builds the object from hash
@@ -33,6 +33,9 @@ module TopologicalInventoryApiClient
33
33
 
34
34
  attr_accessor :name
35
35
 
36
+ # ID of the resource
37
+ attr_accessor :refresh_state_part_id
38
+
36
39
  attr_accessor :resource_version
37
40
 
38
41
  attr_accessor :source_created_at
@@ -57,6 +60,7 @@ module TopologicalInventoryApiClient
57
60
  :'ipaddress' => :'ipaddress',
58
61
  :'last_seen_at' => :'last_seen_at',
59
62
  :'name' => :'name',
63
+ :'refresh_state_part_id' => :'refresh_state_part_id',
60
64
  :'resource_version' => :'resource_version',
61
65
  :'source_created_at' => :'source_created_at',
62
66
  :'source_deleted_at' => :'source_deleted_at',
@@ -77,6 +81,7 @@ module TopologicalInventoryApiClient
77
81
  :'ipaddress' => :'String',
78
82
  :'last_seen_at' => :'DateTime',
79
83
  :'name' => :'String',
84
+ :'refresh_state_part_id' => :'String',
80
85
  :'resource_version' => :'String',
81
86
  :'source_created_at' => :'DateTime',
82
87
  :'source_deleted_at' => :'DateTime',
@@ -139,6 +144,10 @@ module TopologicalInventoryApiClient
139
144
  self.name = attributes[:'name']
140
145
  end
141
146
 
147
+ if attributes.key?(:'refresh_state_part_id')
148
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
149
+ end
150
+
142
151
  if attributes.key?(:'resource_version')
143
152
  self.resource_version = attributes[:'resource_version']
144
153
  end
@@ -183,6 +192,11 @@ module TopologicalInventoryApiClient
183
192
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
184
193
  end
185
194
 
195
+ pattern = Regexp.new(/^\d+$/)
196
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
197
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
198
+ end
199
+
186
200
  pattern = Regexp.new(/^\d+$/)
187
201
  if !@source_id.nil? && @source_id !~ pattern
188
202
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -197,6 +211,7 @@ module TopologicalInventoryApiClient
197
211
  return false if !@container_node_id.nil? && @container_node_id !~ Regexp.new(/^\d+$/)
198
212
  return false if !@container_project_id.nil? && @container_project_id !~ Regexp.new(/^\d+$/)
199
213
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
214
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
200
215
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
201
216
  true
202
217
  end
@@ -234,6 +249,17 @@ module TopologicalInventoryApiClient
234
249
  @id = id
235
250
  end
236
251
 
252
+ # Custom attribute writer method with validation
253
+ # @param [Object] refresh_state_part_id Value to be assigned
254
+ def refresh_state_part_id=(refresh_state_part_id)
255
+ pattern = Regexp.new(/^\d+$/)
256
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
257
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
258
+ end
259
+
260
+ @refresh_state_part_id = refresh_state_part_id
261
+ end
262
+
237
263
  # Custom attribute writer method with validation
238
264
  # @param [Object] source_id Value to be assigned
239
265
  def source_id=(source_id)
@@ -258,6 +284,7 @@ module TopologicalInventoryApiClient
258
284
  ipaddress == o.ipaddress &&
259
285
  last_seen_at == o.last_seen_at &&
260
286
  name == o.name &&
287
+ refresh_state_part_id == o.refresh_state_part_id &&
261
288
  resource_version == o.resource_version &&
262
289
  source_created_at == o.source_created_at &&
263
290
  source_deleted_at == o.source_deleted_at &&
@@ -275,7 +302,7 @@ module TopologicalInventoryApiClient
275
302
  # Calculates hash code according to all attributes.
276
303
  # @return [Integer] Hash code
277
304
  def hash
278
- [archived_at, container_node_id, container_project_id, created_at, id, ipaddress, last_seen_at, name, resource_version, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
305
+ [archived_at, container_node_id, container_project_id, created_at, id, ipaddress, last_seen_at, name, refresh_state_part_id, resource_version, source_created_at, source_deleted_at, source_id, source_ref, updated_at].hash
279
306
  end
280
307
 
281
308
  # Builds the object from hash
@@ -25,6 +25,9 @@ module TopologicalInventoryApiClient
25
25
 
26
26
  attr_accessor :name
27
27
 
28
+ # ID of the resource
29
+ attr_accessor :refresh_state_part_id
30
+
28
31
  attr_accessor :resource_version
29
32
 
30
33
  attr_accessor :source_created_at
@@ -48,6 +51,7 @@ module TopologicalInventoryApiClient
48
51
  :'id' => :'id',
49
52
  :'last_seen_at' => :'last_seen_at',
50
53
  :'name' => :'name',
54
+ :'refresh_state_part_id' => :'refresh_state_part_id',
51
55
  :'resource_version' => :'resource_version',
52
56
  :'source_created_at' => :'source_created_at',
53
57
  :'source_deleted_at' => :'source_deleted_at',
@@ -66,6 +70,7 @@ module TopologicalInventoryApiClient
66
70
  :'id' => :'String',
67
71
  :'last_seen_at' => :'DateTime',
68
72
  :'name' => :'String',
73
+ :'refresh_state_part_id' => :'String',
69
74
  :'resource_version' => :'String',
70
75
  :'source_created_at' => :'DateTime',
71
76
  :'source_deleted_at' => :'DateTime',
@@ -117,6 +122,10 @@ module TopologicalInventoryApiClient
117
122
  self.name = attributes[:'name']
118
123
  end
119
124
 
125
+ if attributes.key?(:'refresh_state_part_id')
126
+ self.refresh_state_part_id = attributes[:'refresh_state_part_id']
127
+ end
128
+
120
129
  if attributes.key?(:'resource_version')
121
130
  self.resource_version = attributes[:'resource_version']
122
131
  end
@@ -155,6 +164,11 @@ module TopologicalInventoryApiClient
155
164
  invalid_properties.push("invalid value for \"id\", must conform to the pattern #{pattern}.")
156
165
  end
157
166
 
167
+ pattern = Regexp.new(/^\d+$/)
168
+ if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ pattern
169
+ invalid_properties.push("invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}.")
170
+ end
171
+
158
172
  pattern = Regexp.new(/^\d+$/)
159
173
  if !@source_id.nil? && @source_id !~ pattern
160
174
  invalid_properties.push("invalid value for \"source_id\", must conform to the pattern #{pattern}.")
@@ -167,6 +181,7 @@ module TopologicalInventoryApiClient
167
181
  # @return true if the model is valid
168
182
  def valid?
169
183
  return false if !@id.nil? && @id !~ Regexp.new(/^\d+$/)
184
+ return false if !@refresh_state_part_id.nil? && @refresh_state_part_id !~ Regexp.new(/^\d+$/)
170
185
  return false if !@source_id.nil? && @source_id !~ Regexp.new(/^\d+$/)
171
186
  true
172
187
  end
@@ -182,6 +197,17 @@ module TopologicalInventoryApiClient
182
197
  @id = id
183
198
  end
184
199
 
200
+ # Custom attribute writer method with validation
201
+ # @param [Object] refresh_state_part_id Value to be assigned
202
+ def refresh_state_part_id=(refresh_state_part_id)
203
+ pattern = Regexp.new(/^\d+$/)
204
+ if !refresh_state_part_id.nil? && refresh_state_part_id !~ pattern
205
+ fail ArgumentError, "invalid value for \"refresh_state_part_id\", must conform to the pattern #{pattern}."
206
+ end
207
+
208
+ @refresh_state_part_id = refresh_state_part_id
209
+ end
210
+
185
211
  # Custom attribute writer method with validation
186
212
  # @param [Object] source_id Value to be assigned
187
213
  def source_id=(source_id)
@@ -203,6 +229,7 @@ module TopologicalInventoryApiClient
203
229
  id == o.id &&
204
230
  last_seen_at == o.last_seen_at &&
205
231
  name == o.name &&
232
+ refresh_state_part_id == o.refresh_state_part_id &&
206
233
  resource_version == o.resource_version &&
207
234
  source_created_at == o.source_created_at &&
208
235
  source_deleted_at == o.source_deleted_at &&
@@ -221,7 +248,7 @@ module TopologicalInventoryApiClient
221
248
  # Calculates hash code according to all attributes.
222
249
  # @return [Integer] Hash code
223
250
  def hash
224
- [archived_at, created_at, id, last_seen_at, name, resource_version, source_created_at, source_deleted_at, source_id, source_ref, tag, updated_at].hash
251
+ [archived_at, created_at, id, last_seen_at, name, refresh_state_part_id, resource_version, source_created_at, source_deleted_at, source_id, source_ref, tag, updated_at].hash
225
252
  end
226
253
 
227
254
  # Builds the object from hash