ionoscloud 5.1.1 → 5.1.2

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 (293) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +1 -1
  4. data/docs/models/KubernetesClusterProperties.md +0 -2
  5. data/docs/models/KubernetesClusterPropertiesForPost.md +0 -2
  6. data/docs/models/KubernetesNodePoolProperties.md +0 -3
  7. data/docs/models/KubernetesNodePoolPropertiesForPost.md +0 -3
  8. data/lib/ionoscloud/api_client.rb +2 -2
  9. data/lib/ionoscloud/models/attached_volumes.rb +65 -11
  10. data/lib/ionoscloud/models/backup_unit.rb +45 -5
  11. data/lib/ionoscloud/models/backup_unit_properties.rb +27 -3
  12. data/lib/ionoscloud/models/backup_unit_sso.rb +9 -1
  13. data/lib/ionoscloud/models/backup_units.rb +38 -8
  14. data/lib/ionoscloud/models/balanced_nics.rb +65 -11
  15. data/lib/ionoscloud/models/cdroms.rb +65 -11
  16. data/lib/ionoscloud/models/connectable_datacenter.rb +27 -3
  17. data/lib/ionoscloud/models/contract.rb +18 -2
  18. data/lib/ionoscloud/models/contract_properties.rb +45 -5
  19. data/lib/ionoscloud/models/data_center_entities.rb +36 -4
  20. data/lib/ionoscloud/models/datacenter.rb +54 -6
  21. data/lib/ionoscloud/models/datacenter_element_metadata.rb +72 -8
  22. data/lib/ionoscloud/models/datacenter_properties.rb +56 -10
  23. data/lib/ionoscloud/models/datacenters.rb +65 -11
  24. data/lib/ionoscloud/models/error.rb +20 -6
  25. data/lib/ionoscloud/models/error_message.rb +18 -2
  26. data/lib/ionoscloud/models/firewall_rule.rb +45 -5
  27. data/lib/ionoscloud/models/firewall_rules.rb +65 -11
  28. data/lib/ionoscloud/models/firewallrule_properties.rb +81 -9
  29. data/lib/ionoscloud/models/group.rb +45 -5
  30. data/lib/ionoscloud/models/group_entities.rb +18 -2
  31. data/lib/ionoscloud/models/group_members.rb +38 -8
  32. data/lib/ionoscloud/models/group_properties.rb +90 -10
  33. data/lib/ionoscloud/models/group_share.rb +36 -4
  34. data/lib/ionoscloud/models/group_share_properties.rb +18 -2
  35. data/lib/ionoscloud/models/group_shares.rb +38 -8
  36. data/lib/ionoscloud/models/group_users.rb +38 -8
  37. data/lib/ionoscloud/models/groups.rb +38 -8
  38. data/lib/ionoscloud/models/image.rb +45 -5
  39. data/lib/ionoscloud/models/image_properties.rb +173 -23
  40. data/lib/ionoscloud/models/images.rb +38 -8
  41. data/lib/ionoscloud/models/info.rb +27 -3
  42. data/lib/ionoscloud/models/ip_block.rb +45 -5
  43. data/lib/ionoscloud/models/ip_block_properties.rb +49 -13
  44. data/lib/ionoscloud/models/ip_blocks.rb +65 -11
  45. data/lib/ionoscloud/models/ip_consumer.rb +81 -9
  46. data/lib/ionoscloud/models/ip_failover.rb +18 -2
  47. data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +18 -2
  48. data/lib/ionoscloud/models/kubernetes_cluster.rb +54 -6
  49. data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +9 -1
  50. data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +54 -6
  51. data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +54 -6
  52. data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +70 -34
  53. data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +48 -24
  54. data/lib/ionoscloud/models/kubernetes_cluster_properties_for_put.rb +49 -13
  55. data/lib/ionoscloud/models/kubernetes_clusters.rb +38 -8
  56. data/lib/ionoscloud/models/kubernetes_config.rb +36 -4
  57. data/lib/ionoscloud/models/kubernetes_config_properties.rb +9 -1
  58. data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +18 -2
  59. data/lib/ionoscloud/models/kubernetes_node.rb +45 -5
  60. data/lib/ionoscloud/models/kubernetes_node_metadata.rb +45 -5
  61. data/lib/ionoscloud/models/kubernetes_node_pool.rb +45 -5
  62. data/lib/ionoscloud/models/kubernetes_node_pool_for_post.rb +45 -5
  63. data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +45 -5
  64. data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +9 -1
  65. data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +163 -47
  66. data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +152 -42
  67. data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +89 -25
  68. data/lib/ionoscloud/models/kubernetes_node_pools.rb +38 -8
  69. data/lib/ionoscloud/models/kubernetes_node_properties.rb +36 -4
  70. data/lib/ionoscloud/models/kubernetes_nodes.rb +38 -8
  71. data/lib/ionoscloud/models/label.rb +45 -5
  72. data/lib/ionoscloud/models/label_properties.rb +45 -5
  73. data/lib/ionoscloud/models/label_resource.rb +45 -5
  74. data/lib/ionoscloud/models/label_resource_properties.rb +18 -2
  75. data/lib/ionoscloud/models/label_resources.rb +65 -11
  76. data/lib/ionoscloud/models/labels.rb +38 -8
  77. data/lib/ionoscloud/models/lan.rb +54 -6
  78. data/lib/ionoscloud/models/lan_entities.rb +9 -1
  79. data/lib/ionoscloud/models/lan_nics.rb +65 -11
  80. data/lib/ionoscloud/models/lan_post.rb +54 -6
  81. data/lib/ionoscloud/models/lan_properties.rb +38 -8
  82. data/lib/ionoscloud/models/lan_properties_post.rb +38 -8
  83. data/lib/ionoscloud/models/lans.rb +65 -11
  84. data/lib/ionoscloud/models/loadbalancer.rb +54 -6
  85. data/lib/ionoscloud/models/loadbalancer_entities.rb +9 -1
  86. data/lib/ionoscloud/models/loadbalancer_properties.rb +27 -3
  87. data/lib/ionoscloud/models/loadbalancers.rb +65 -11
  88. data/lib/ionoscloud/models/location.rb +45 -5
  89. data/lib/ionoscloud/models/location_properties.rb +31 -11
  90. data/lib/ionoscloud/models/locations.rb +38 -8
  91. data/lib/ionoscloud/models/nic.rb +54 -6
  92. data/lib/ionoscloud/models/nic_entities.rb +9 -1
  93. data/lib/ionoscloud/models/nic_properties.rb +65 -11
  94. data/lib/ionoscloud/models/nics.rb +65 -11
  95. data/lib/ionoscloud/models/no_state_meta_data.rb +63 -7
  96. data/lib/ionoscloud/models/pagination_links.rb +27 -3
  97. data/lib/ionoscloud/models/peer.rb +45 -5
  98. data/lib/ionoscloud/models/private_cross_connect.rb +45 -5
  99. data/lib/ionoscloud/models/private_cross_connect_properties.rb +40 -12
  100. data/lib/ionoscloud/models/private_cross_connects.rb +38 -8
  101. data/lib/ionoscloud/models/request.rb +45 -5
  102. data/lib/ionoscloud/models/request_metadata.rb +36 -4
  103. data/lib/ionoscloud/models/request_properties.rb +38 -8
  104. data/lib/ionoscloud/models/request_status.rb +36 -4
  105. data/lib/ionoscloud/models/request_status_metadata.rb +38 -8
  106. data/lib/ionoscloud/models/request_target.rb +18 -2
  107. data/lib/ionoscloud/models/requests.rb +65 -11
  108. data/lib/ionoscloud/models/resource.rb +54 -6
  109. data/lib/ionoscloud/models/resource_entities.rb +9 -1
  110. data/lib/ionoscloud/models/resource_groups.rb +38 -8
  111. data/lib/ionoscloud/models/resource_limits.rb +153 -17
  112. data/lib/ionoscloud/models/resource_properties.rb +18 -2
  113. data/lib/ionoscloud/models/resource_reference.rb +27 -3
  114. data/lib/ionoscloud/models/resources.rb +38 -8
  115. data/lib/ionoscloud/models/resources_users.rb +38 -8
  116. data/lib/ionoscloud/models/s3_bucket.rb +9 -1
  117. data/lib/ionoscloud/models/s3_key.rb +45 -5
  118. data/lib/ionoscloud/models/s3_key_metadata.rb +18 -2
  119. data/lib/ionoscloud/models/s3_key_properties.rb +18 -2
  120. data/lib/ionoscloud/models/s3_keys.rb +38 -8
  121. data/lib/ionoscloud/models/s3_object_storage_sso.rb +9 -1
  122. data/lib/ionoscloud/models/server.rb +54 -6
  123. data/lib/ionoscloud/models/server_entities.rb +27 -3
  124. data/lib/ionoscloud/models/server_properties.rb +72 -8
  125. data/lib/ionoscloud/models/servers.rb +65 -11
  126. data/lib/ionoscloud/models/snapshot.rb +45 -5
  127. data/lib/ionoscloud/models/snapshot_properties.rb +144 -16
  128. data/lib/ionoscloud/models/snapshots.rb +38 -8
  129. data/lib/ionoscloud/models/user.rb +54 -6
  130. data/lib/ionoscloud/models/user_metadata.rb +27 -3
  131. data/lib/ionoscloud/models/user_post.rb +9 -1
  132. data/lib/ionoscloud/models/user_properties.rb +72 -8
  133. data/lib/ionoscloud/models/user_properties_post.rb +72 -8
  134. data/lib/ionoscloud/models/user_properties_put.rb +63 -7
  135. data/lib/ionoscloud/models/user_put.rb +18 -2
  136. data/lib/ionoscloud/models/users.rb +65 -11
  137. data/lib/ionoscloud/models/users_entities.rb +18 -2
  138. data/lib/ionoscloud/models/volume.rb +45 -5
  139. data/lib/ionoscloud/models/volume_properties.rb +173 -23
  140. data/lib/ionoscloud/models/volumes.rb +65 -11
  141. data/lib/ionoscloud/version.rb +1 -1
  142. metadata +2 -304
  143. data/spec/api/_api_spec.rb +0 -49
  144. data/spec/api/backup_unit_api_spec.rb +0 -140
  145. data/spec/api/contract_api_spec.rb +0 -49
  146. data/spec/api/data_center_api_spec.rb +0 -128
  147. data/spec/api/image_api_spec.rb +0 -111
  148. data/spec/api/ip_blocks_api_spec.rb +0 -128
  149. data/spec/api/kubernetes_api_spec.rb +0 -306
  150. data/spec/api/label_api_spec.rb +0 -480
  151. data/spec/api/lan_api_spec.rb +0 -186
  152. data/spec/api/load_balancer_api_spec.rb +0 -203
  153. data/spec/api/location_api_spec.rb +0 -80
  154. data/spec/api/nic_api_spec.rb +0 -251
  155. data/spec/api/private_cross_connect_api_spec.rb +0 -110
  156. data/spec/api/request_api_spec.rb +0 -92
  157. data/spec/api/server_api_spec.rb +0 -337
  158. data/spec/api/snapshot_api_spec.rb +0 -111
  159. data/spec/api/user_management_api_spec.rb +0 -497
  160. data/spec/api/volume_api_spec.rb +0 -171
  161. data/spec/models/attached_volumes_spec.rb +0 -70
  162. data/spec/models/backup_unit_properties_spec.rb +0 -46
  163. data/spec/models/backup_unit_spec.rb +0 -62
  164. data/spec/models/backup_unit_sso_spec.rb +0 -34
  165. data/spec/models/backup_units_spec.rb +0 -56
  166. data/spec/models/balanced_nics_spec.rb +0 -70
  167. data/spec/models/cdroms_spec.rb +0 -70
  168. data/spec/models/connectable_datacenter_spec.rb +0 -46
  169. data/spec/models/contract_properties_spec.rb +0 -58
  170. data/spec/models/contract_spec.rb +0 -40
  171. data/spec/models/data_center_entities_spec.rb +0 -52
  172. data/spec/models/datacenter_element_metadata_spec.rb +0 -80
  173. data/spec/models/datacenter_properties_spec.rb +0 -64
  174. data/spec/models/datacenter_spec.rb +0 -64
  175. data/spec/models/datacenters_spec.rb +0 -70
  176. data/spec/models/error_message_spec.rb +0 -40
  177. data/spec/models/error_spec.rb +0 -40
  178. data/spec/models/firewall_rule_spec.rb +0 -58
  179. data/spec/models/firewall_rules_spec.rb +0 -70
  180. data/spec/models/firewallrule_properties_spec.rb +0 -86
  181. data/spec/models/group_entities_spec.rb +0 -40
  182. data/spec/models/group_members_spec.rb +0 -52
  183. data/spec/models/group_properties_spec.rb +0 -88
  184. data/spec/models/group_share_properties_spec.rb +0 -40
  185. data/spec/models/group_share_spec.rb +0 -52
  186. data/spec/models/group_shares_spec.rb +0 -52
  187. data/spec/models/group_spec.rb +0 -58
  188. data/spec/models/group_users_spec.rb +0 -52
  189. data/spec/models/groups_spec.rb +0 -52
  190. data/spec/models/image_properties_spec.rb +0 -154
  191. data/spec/models/image_spec.rb +0 -58
  192. data/spec/models/images_spec.rb +0 -52
  193. data/spec/models/info_spec.rb +0 -46
  194. data/spec/models/ip_block_properties_spec.rb +0 -58
  195. data/spec/models/ip_block_spec.rb +0 -58
  196. data/spec/models/ip_blocks_spec.rb +0 -70
  197. data/spec/models/ip_consumer_spec.rb +0 -82
  198. data/spec/models/ip_failover_spec.rb +0 -40
  199. data/spec/models/kubernetes_auto_scaling_spec.rb +0 -40
  200. data/spec/models/kubernetes_cluster_entities_spec.rb +0 -34
  201. data/spec/models/kubernetes_cluster_for_post_spec.rb +0 -68
  202. data/spec/models/kubernetes_cluster_for_put_spec.rb +0 -68
  203. data/spec/models/kubernetes_cluster_properties_for_post_spec.rb +0 -64
  204. data/spec/models/kubernetes_cluster_properties_for_put_spec.rb +0 -58
  205. data/spec/models/kubernetes_cluster_properties_spec.rb +0 -76
  206. data/spec/models/kubernetes_cluster_spec.rb +0 -68
  207. data/spec/models/kubernetes_clusters_spec.rb +0 -56
  208. data/spec/models/kubernetes_config_properties_spec.rb +0 -34
  209. data/spec/models/kubernetes_config_spec.rb +0 -56
  210. data/spec/models/kubernetes_maintenance_window_spec.rb +0 -44
  211. data/spec/models/kubernetes_node_metadata_spec.rb +0 -62
  212. data/spec/models/kubernetes_node_pool_for_post_spec.rb +0 -62
  213. data/spec/models/kubernetes_node_pool_for_put_spec.rb +0 -62
  214. data/spec/models/kubernetes_node_pool_lan_spec.rb +0 -34
  215. data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +0 -138
  216. data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +0 -82
  217. data/spec/models/kubernetes_node_pool_properties_spec.rb +0 -144
  218. data/spec/models/kubernetes_node_pool_spec.rb +0 -62
  219. data/spec/models/kubernetes_node_pools_spec.rb +0 -56
  220. data/spec/models/kubernetes_node_properties_spec.rb +0 -52
  221. data/spec/models/kubernetes_node_spec.rb +0 -62
  222. data/spec/models/kubernetes_nodes_spec.rb +0 -56
  223. data/spec/models/label_properties_spec.rb +0 -58
  224. data/spec/models/label_resource_properties_spec.rb +0 -40
  225. data/spec/models/label_resource_spec.rb +0 -62
  226. data/spec/models/label_resources_spec.rb +0 -74
  227. data/spec/models/label_spec.rb +0 -62
  228. data/spec/models/labels_spec.rb +0 -56
  229. data/spec/models/lan_entities_spec.rb +0 -34
  230. data/spec/models/lan_nics_spec.rb +0 -70
  231. data/spec/models/lan_post_spec.rb +0 -64
  232. data/spec/models/lan_properties_post_spec.rb +0 -52
  233. data/spec/models/lan_properties_spec.rb +0 -52
  234. data/spec/models/lan_spec.rb +0 -64
  235. data/spec/models/lans_spec.rb +0 -70
  236. data/spec/models/loadbalancer_entities_spec.rb +0 -34
  237. data/spec/models/loadbalancer_properties_spec.rb +0 -46
  238. data/spec/models/loadbalancer_spec.rb +0 -64
  239. data/spec/models/loadbalancers_spec.rb +0 -70
  240. data/spec/models/location_properties_spec.rb +0 -46
  241. data/spec/models/location_spec.rb +0 -58
  242. data/spec/models/locations_spec.rb +0 -52
  243. data/spec/models/nic_entities_spec.rb +0 -34
  244. data/spec/models/nic_properties_spec.rb +0 -70
  245. data/spec/models/nic_spec.rb +0 -64
  246. data/spec/models/nics_spec.rb +0 -70
  247. data/spec/models/no_state_meta_data_spec.rb +0 -70
  248. data/spec/models/pagination_links_spec.rb +0 -46
  249. data/spec/models/peer_spec.rb +0 -58
  250. data/spec/models/private_cross_connect_properties_spec.rb +0 -52
  251. data/spec/models/private_cross_connect_spec.rb +0 -58
  252. data/spec/models/private_cross_connects_spec.rb +0 -52
  253. data/spec/models/request_metadata_spec.rb +0 -52
  254. data/spec/models/request_properties_spec.rb +0 -52
  255. data/spec/models/request_spec.rb +0 -58
  256. data/spec/models/request_status_metadata_spec.rb +0 -56
  257. data/spec/models/request_status_spec.rb +0 -52
  258. data/spec/models/request_target_spec.rb +0 -44
  259. data/spec/models/requests_spec.rb +0 -70
  260. data/spec/models/resource_entities_spec.rb +0 -34
  261. data/spec/models/resource_groups_spec.rb +0 -52
  262. data/spec/models/resource_limits_spec.rb +0 -130
  263. data/spec/models/resource_properties_spec.rb +0 -40
  264. data/spec/models/resource_reference_spec.rb +0 -46
  265. data/spec/models/resource_spec.rb +0 -64
  266. data/spec/models/resources_spec.rb +0 -52
  267. data/spec/models/resources_users_spec.rb +0 -52
  268. data/spec/models/s3_bucket_spec.rb +0 -34
  269. data/spec/models/s3_key_metadata_spec.rb +0 -40
  270. data/spec/models/s3_key_properties_spec.rb +0 -40
  271. data/spec/models/s3_key_spec.rb +0 -58
  272. data/spec/models/s3_keys_spec.rb +0 -52
  273. data/spec/models/s3_object_storage_sso_spec.rb +0 -34
  274. data/spec/models/server_entities_spec.rb +0 -46
  275. data/spec/models/server_properties_spec.rb +0 -84
  276. data/spec/models/server_spec.rb +0 -64
  277. data/spec/models/servers_spec.rb +0 -70
  278. data/spec/models/snapshot_properties_spec.rb +0 -128
  279. data/spec/models/snapshot_spec.rb +0 -58
  280. data/spec/models/snapshots_spec.rb +0 -52
  281. data/spec/models/type_spec.rb +0 -28
  282. data/spec/models/user_metadata_spec.rb +0 -46
  283. data/spec/models/user_post_spec.rb +0 -34
  284. data/spec/models/user_properties_post_spec.rb +0 -76
  285. data/spec/models/user_properties_put_spec.rb +0 -70
  286. data/spec/models/user_properties_spec.rb +0 -76
  287. data/spec/models/user_put_spec.rb +0 -40
  288. data/spec/models/user_spec.rb +0 -64
  289. data/spec/models/users_entities_spec.rb +0 -40
  290. data/spec/models/users_spec.rb +0 -70
  291. data/spec/models/volume_properties_spec.rb +0 -158
  292. data/spec/models/volume_spec.rb +0 -58
  293. data/spec/models/volumes_spec.rb +0 -70
@@ -15,13 +15,17 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class RequestStatusMetadata
18
+
18
19
  attr_accessor :status
19
20
 
21
+
20
22
  attr_accessor :message
21
23
 
24
+
22
25
  # Resource's Entity Tag as defined in http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.11 . Entity Tag is also added as an 'ETag response header to requests which don't use 'depth' parameter.
23
26
  attr_accessor :etag
24
27
 
28
+
25
29
  attr_accessor :targets
26
30
 
27
31
  class EnumAttributeValidator
@@ -49,9 +53,13 @@ module Ionoscloud
49
53
  # Attribute mapping from ruby-style variable name to JSON key.
50
54
  def self.attribute_map
51
55
  {
56
+
52
57
  :'status' => :'status',
58
+
53
59
  :'message' => :'message',
60
+
54
61
  :'etag' => :'etag',
62
+
55
63
  :'targets' => :'targets'
56
64
  }
57
65
  end
@@ -64,9 +72,13 @@ module Ionoscloud
64
72
  # Attribute type mapping.
65
73
  def self.openapi_types
66
74
  {
75
+
67
76
  :'status' => :'String',
77
+
68
78
  :'message' => :'String',
79
+
69
80
  :'etag' => :'String',
81
+
70
82
  :'targets' => :'Array<RequestTarget>'
71
83
  }
72
84
  end
@@ -74,6 +86,10 @@ module Ionoscloud
74
86
  # List of attributes with nullable: true
75
87
  def self.openapi_nullable
76
88
  Set.new([
89
+
90
+
91
+
92
+
77
93
  ])
78
94
  end
79
95
 
@@ -91,23 +107,25 @@ module Ionoscloud
91
107
  end
92
108
  h[k.to_sym] = v
93
109
  }
110
+
94
111
 
95
112
  if attributes.key?(:'status')
96
113
  self.status = attributes[:'status']
97
114
  end
98
115
 
116
+
99
117
  if attributes.key?(:'message')
100
118
  self.message = attributes[:'message']
101
119
  end
102
120
 
121
+
103
122
  if attributes.key?(:'etag')
104
123
  self.etag = attributes[:'etag']
105
124
  end
106
125
 
107
- if attributes.key?(:'targets')
108
- if (value = attributes[:'targets']).is_a?(Array)
109
- self.targets = value
110
- end
126
+
127
+ if attributes.key?(:'targets') && (value = attributes[:'targets']).is_a?(Array)
128
+ self.targets = value
111
129
  end
112
130
  end
113
131
 
@@ -115,17 +133,26 @@ module Ionoscloud
115
133
  # @return Array for valid properties with the reasons
116
134
  def list_invalid_properties
117
135
  invalid_properties = Array.new
136
+
137
+
138
+
139
+
118
140
  invalid_properties
119
141
  end
120
142
 
121
143
  # Check to see if the all the properties in the model are valid
122
144
  # @return true if the model is valid
123
145
  def valid?
146
+
124
147
  status_validator = EnumAttributeValidator.new('String', ["QUEUED", "RUNNING", "DONE", "FAILED"])
125
148
  return false unless status_validator.valid?(@status)
149
+
150
+
151
+
126
152
  true
127
153
  end
128
154
 
155
+
129
156
  # Custom attribute writer method checking allowed values (enum).
130
157
  # @param [Object] status Object to be assigned
131
158
  def status=(status)
@@ -136,15 +163,18 @@ module Ionoscloud
136
163
  @status = status
137
164
  end
138
165
 
166
+
167
+
168
+
139
169
  # Checks equality by comparing each attribute.
140
170
  # @param [Object] Object to be compared
141
171
  def ==(o)
142
172
  return true if self.equal?(o)
143
173
  self.class == o.class &&
144
- status == o.status &&
145
- message == o.message &&
146
- etag == o.etag &&
147
- targets == o.targets
174
+ status == o.status &&
175
+ message == o.message &&
176
+ etag == o.etag &&
177
+ targets == o.targets
148
178
  end
149
179
 
150
180
  # @see the `==` method
@@ -15,8 +15,10 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class RequestTarget
18
+
18
19
  attr_accessor :target
19
20
 
21
+
20
22
  attr_accessor :status
21
23
 
22
24
  class EnumAttributeValidator
@@ -44,7 +46,9 @@ module Ionoscloud
44
46
  # Attribute mapping from ruby-style variable name to JSON key.
45
47
  def self.attribute_map
46
48
  {
49
+
47
50
  :'target' => :'target',
51
+
48
52
  :'status' => :'status'
49
53
  }
50
54
  end
@@ -57,7 +61,9 @@ module Ionoscloud
57
61
  # Attribute type mapping.
58
62
  def self.openapi_types
59
63
  {
64
+
60
65
  :'target' => :'ResourceReference',
66
+
61
67
  :'status' => :'String'
62
68
  }
63
69
  end
@@ -65,6 +71,8 @@ module Ionoscloud
65
71
  # List of attributes with nullable: true
66
72
  def self.openapi_nullable
67
73
  Set.new([
74
+
75
+
68
76
  ])
69
77
  end
70
78
 
@@ -82,11 +90,13 @@ module Ionoscloud
82
90
  end
83
91
  h[k.to_sym] = v
84
92
  }
93
+
85
94
 
86
95
  if attributes.key?(:'target')
87
96
  self.target = attributes[:'target']
88
97
  end
89
98
 
99
+
90
100
  if attributes.key?(:'status')
91
101
  self.status = attributes[:'status']
92
102
  end
@@ -96,17 +106,23 @@ module Ionoscloud
96
106
  # @return Array for valid properties with the reasons
97
107
  def list_invalid_properties
98
108
  invalid_properties = Array.new
109
+
110
+
99
111
  invalid_properties
100
112
  end
101
113
 
102
114
  # Check to see if the all the properties in the model are valid
103
115
  # @return true if the model is valid
104
116
  def valid?
117
+
118
+
105
119
  status_validator = EnumAttributeValidator.new('String', ["QUEUED", "RUNNING", "DONE", "FAILED"])
106
120
  return false unless status_validator.valid?(@status)
107
121
  true
108
122
  end
109
123
 
124
+
125
+
110
126
  # Custom attribute writer method checking allowed values (enum).
111
127
  # @param [Object] status Object to be assigned
112
128
  def status=(status)
@@ -122,8 +138,8 @@ module Ionoscloud
122
138
  def ==(o)
123
139
  return true if self.equal?(o)
124
140
  self.class == o.class &&
125
- target == o.target &&
126
- status == o.status
141
+ target == o.target &&
142
+ status == o.status
127
143
  end
128
144
 
129
145
  # @see the `==` method
@@ -15,35 +15,49 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class Requests
18
+
18
19
  # The resource's unique identifier
19
20
  attr_accessor :id
20
21
 
22
+
21
23
  # The type of object that has been created
22
24
  attr_accessor :type
23
25
 
26
+
24
27
  # URL to the object representation (absolute path)
25
28
  attr_accessor :href
26
29
 
30
+
27
31
  # Array of items in that collection
28
32
  attr_accessor :items
29
33
 
34
+
30
35
  # the offset specified in the request (or, if none was specified, the default offset of 0)
31
36
  attr_accessor :offset
32
37
 
38
+
33
39
  # the limit specified in the request (or, if none was specified use the endpoint's default pagination limit)
34
40
  attr_accessor :limit
35
41
 
42
+
36
43
  attr_accessor :_links
37
44
 
38
45
  # Attribute mapping from ruby-style variable name to JSON key.
39
46
  def self.attribute_map
40
47
  {
48
+
41
49
  :'id' => :'id',
50
+
42
51
  :'type' => :'type',
52
+
43
53
  :'href' => :'href',
54
+
44
55
  :'items' => :'items',
56
+
45
57
  :'offset' => :'offset',
58
+
46
59
  :'limit' => :'limit',
60
+
47
61
  :'_links' => :'_links'
48
62
  }
49
63
  end
@@ -56,12 +70,19 @@ module Ionoscloud
56
70
  # Attribute type mapping.
57
71
  def self.openapi_types
58
72
  {
73
+
59
74
  :'id' => :'String',
75
+
60
76
  :'type' => :'Type',
77
+
61
78
  :'href' => :'String',
79
+
62
80
  :'items' => :'Array<Request>',
81
+
63
82
  :'offset' => :'Float',
83
+
64
84
  :'limit' => :'Float',
85
+
65
86
  :'_links' => :'PaginationLinks'
66
87
  }
67
88
  end
@@ -69,6 +90,13 @@ module Ionoscloud
69
90
  # List of attributes with nullable: true
70
91
  def self.openapi_nullable
71
92
  Set.new([
93
+
94
+
95
+
96
+
97
+
98
+
99
+
72
100
  ])
73
101
  end
74
102
 
@@ -86,33 +114,38 @@ module Ionoscloud
86
114
  end
87
115
  h[k.to_sym] = v
88
116
  }
117
+
89
118
 
90
119
  if attributes.key?(:'id')
91
120
  self.id = attributes[:'id']
92
121
  end
93
122
 
123
+
94
124
  if attributes.key?(:'type')
95
125
  self.type = attributes[:'type']
96
126
  end
97
127
 
128
+
98
129
  if attributes.key?(:'href')
99
130
  self.href = attributes[:'href']
100
131
  end
101
132
 
102
- if attributes.key?(:'items')
103
- if (value = attributes[:'items']).is_a?(Array)
104
- self.items = value
105
- end
133
+
134
+ if attributes.key?(:'items') && (value = attributes[:'items']).is_a?(Array)
135
+ self.items = value
106
136
  end
107
137
 
138
+
108
139
  if attributes.key?(:'offset')
109
140
  self.offset = attributes[:'offset']
110
141
  end
111
142
 
143
+
112
144
  if attributes.key?(:'limit')
113
145
  self.limit = attributes[:'limit']
114
146
  end
115
147
 
148
+
116
149
  if attributes.key?(:'_links')
117
150
  self._links = attributes[:'_links']
118
151
  end
@@ -122,14 +155,21 @@ module Ionoscloud
122
155
  # @return Array for valid properties with the reasons
123
156
  def list_invalid_properties
124
157
  invalid_properties = Array.new
158
+
159
+
160
+
161
+
162
+
125
163
  if @offset.nil?
126
164
  invalid_properties.push('invalid value for "offset", offset cannot be nil.')
127
165
  end
128
166
 
167
+
129
168
  if @limit.nil?
130
169
  invalid_properties.push('invalid value for "limit", limit cannot be nil.')
131
170
  end
132
171
 
172
+
133
173
  if @_links.nil?
134
174
  invalid_properties.push('invalid value for "_links", _links cannot be nil.')
135
175
  end
@@ -140,24 +180,38 @@ module Ionoscloud
140
180
  # Check to see if the all the properties in the model are valid
141
181
  # @return true if the model is valid
142
182
  def valid?
183
+
184
+
185
+
186
+
187
+
143
188
  return false if @offset.nil?
189
+
144
190
  return false if @limit.nil?
191
+
145
192
  return false if @_links.nil?
146
193
  true
147
194
  end
148
195
 
196
+
197
+
198
+
199
+
200
+
201
+
202
+
149
203
  # Checks equality by comparing each attribute.
150
204
  # @param [Object] Object to be compared
151
205
  def ==(o)
152
206
  return true if self.equal?(o)
153
207
  self.class == o.class &&
154
- id == o.id &&
155
- type == o.type &&
156
- href == o.href &&
157
- items == o.items &&
158
- offset == o.offset &&
159
- limit == o.limit &&
160
- _links == o._links
208
+ id == o.id &&
209
+ type == o.type &&
210
+ href == o.href &&
211
+ items == o.items &&
212
+ offset == o.offset &&
213
+ limit == o.limit &&
214
+ _links == o._links
161
215
  end
162
216
 
163
217
  # @see the `==` method
@@ -16,29 +16,41 @@ require 'time'
16
16
  module Ionoscloud
17
17
  # datacenter resource representation
18
18
  class Resource
19
+
19
20
  # The resource's unique identifier
20
21
  attr_accessor :id
21
22
 
23
+
22
24
  # The type of the resource
23
25
  attr_accessor :type
24
26
 
27
+
25
28
  # URL to the object representation (absolute path)
26
29
  attr_accessor :href
27
30
 
31
+
28
32
  attr_accessor :metadata
29
33
 
34
+
30
35
  attr_accessor :properties
31
36
 
37
+
32
38
  attr_accessor :entities
33
39
 
34
40
  # Attribute mapping from ruby-style variable name to JSON key.
35
41
  def self.attribute_map
36
42
  {
43
+
37
44
  :'id' => :'id',
45
+
38
46
  :'type' => :'type',
47
+
39
48
  :'href' => :'href',
49
+
40
50
  :'metadata' => :'metadata',
51
+
41
52
  :'properties' => :'properties',
53
+
42
54
  :'entities' => :'entities'
43
55
  }
44
56
  end
@@ -51,11 +63,17 @@ module Ionoscloud
51
63
  # Attribute type mapping.
52
64
  def self.openapi_types
53
65
  {
66
+
54
67
  :'id' => :'String',
68
+
55
69
  :'type' => :'Type',
70
+
56
71
  :'href' => :'String',
72
+
57
73
  :'metadata' => :'DatacenterElementMetadata',
74
+
58
75
  :'properties' => :'ResourceProperties',
76
+
59
77
  :'entities' => :'ResourceEntities'
60
78
  }
61
79
  end
@@ -63,6 +81,12 @@ module Ionoscloud
63
81
  # List of attributes with nullable: true
64
82
  def self.openapi_nullable
65
83
  Set.new([
84
+
85
+
86
+
87
+
88
+
89
+
66
90
  ])
67
91
  end
68
92
 
@@ -80,27 +104,33 @@ module Ionoscloud
80
104
  end
81
105
  h[k.to_sym] = v
82
106
  }
107
+
83
108
 
84
109
  if attributes.key?(:'id')
85
110
  self.id = attributes[:'id']
86
111
  end
87
112
 
113
+
88
114
  if attributes.key?(:'type')
89
115
  self.type = attributes[:'type']
90
116
  end
91
117
 
118
+
92
119
  if attributes.key?(:'href')
93
120
  self.href = attributes[:'href']
94
121
  end
95
122
 
123
+
96
124
  if attributes.key?(:'metadata')
97
125
  self.metadata = attributes[:'metadata']
98
126
  end
99
127
 
128
+
100
129
  if attributes.key?(:'properties')
101
130
  self.properties = attributes[:'properties']
102
131
  end
103
132
 
133
+
104
134
  if attributes.key?(:'entities')
105
135
  self.entities = attributes[:'entities']
106
136
  end
@@ -110,26 +140,44 @@ module Ionoscloud
110
140
  # @return Array for valid properties with the reasons
111
141
  def list_invalid_properties
112
142
  invalid_properties = Array.new
143
+
144
+
145
+
146
+
147
+
148
+
113
149
  invalid_properties
114
150
  end
115
151
 
116
152
  # Check to see if the all the properties in the model are valid
117
153
  # @return true if the model is valid
118
154
  def valid?
155
+
156
+
157
+
158
+
159
+
160
+
119
161
  true
120
162
  end
121
163
 
164
+
165
+
166
+
167
+
168
+
169
+
122
170
  # Checks equality by comparing each attribute.
123
171
  # @param [Object] Object to be compared
124
172
  def ==(o)
125
173
  return true if self.equal?(o)
126
174
  self.class == o.class &&
127
- id == o.id &&
128
- type == o.type &&
129
- href == o.href &&
130
- metadata == o.metadata &&
131
- properties == o.properties &&
132
- entities == o.entities
175
+ id == o.id &&
176
+ type == o.type &&
177
+ href == o.href &&
178
+ metadata == o.metadata &&
179
+ properties == o.properties &&
180
+ entities == o.entities
133
181
  end
134
182
 
135
183
  # @see the `==` method
@@ -15,11 +15,13 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class ResourceEntities
18
+
18
19
  attr_accessor :groups
19
20
 
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
21
22
  def self.attribute_map
22
23
  {
24
+
23
25
  :'groups' => :'groups'
24
26
  }
25
27
  end
@@ -32,6 +34,7 @@ module Ionoscloud
32
34
  # Attribute type mapping.
33
35
  def self.openapi_types
34
36
  {
37
+
35
38
  :'groups' => :'ResourceGroups'
36
39
  }
37
40
  end
@@ -39,6 +42,7 @@ module Ionoscloud
39
42
  # List of attributes with nullable: true
40
43
  def self.openapi_nullable
41
44
  Set.new([
45
+
42
46
  ])
43
47
  end
44
48
 
@@ -56,6 +60,7 @@ module Ionoscloud
56
60
  end
57
61
  h[k.to_sym] = v
58
62
  }
63
+
59
64
 
60
65
  if attributes.key?(:'groups')
61
66
  self.groups = attributes[:'groups']
@@ -66,21 +71,24 @@ module Ionoscloud
66
71
  # @return Array for valid properties with the reasons
67
72
  def list_invalid_properties
68
73
  invalid_properties = Array.new
74
+
69
75
  invalid_properties
70
76
  end
71
77
 
72
78
  # Check to see if the all the properties in the model are valid
73
79
  # @return true if the model is valid
74
80
  def valid?
81
+
75
82
  true
76
83
  end
77
84
 
85
+
78
86
  # Checks equality by comparing each attribute.
79
87
  # @param [Object] Object to be compared
80
88
  def ==(o)
81
89
  return true if self.equal?(o)
82
90
  self.class == o.class &&
83
- groups == o.groups
91
+ groups == o.groups
84
92
  end
85
93
 
86
94
  # @see the `==` method