ionoscloud 5.1.1 → 5.1.2

Sign up to get free protection for your applications and to get access to all the features.
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,17 +15,22 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesNodePoolForPut
18
+
18
19
  # The resource's unique identifier.
19
20
  attr_accessor :id
20
21
 
22
+
21
23
  # The type of object
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
  attr_accessor :metadata
28
32
 
33
+
29
34
  attr_accessor :properties
30
35
 
31
36
  class EnumAttributeValidator
@@ -53,10 +58,15 @@ module Ionoscloud
53
58
  # Attribute mapping from ruby-style variable name to JSON key.
54
59
  def self.attribute_map
55
60
  {
61
+
56
62
  :'id' => :'id',
63
+
57
64
  :'type' => :'type',
65
+
58
66
  :'href' => :'href',
67
+
59
68
  :'metadata' => :'metadata',
69
+
60
70
  :'properties' => :'properties'
61
71
  }
62
72
  end
@@ -69,10 +79,15 @@ module Ionoscloud
69
79
  # Attribute type mapping.
70
80
  def self.openapi_types
71
81
  {
82
+
72
83
  :'id' => :'String',
84
+
73
85
  :'type' => :'String',
86
+
74
87
  :'href' => :'String',
88
+
75
89
  :'metadata' => :'DatacenterElementMetadata',
90
+
76
91
  :'properties' => :'KubernetesNodePoolPropertiesForPut'
77
92
  }
78
93
  end
@@ -80,6 +95,11 @@ module Ionoscloud
80
95
  # List of attributes with nullable: true
81
96
  def self.openapi_nullable
82
97
  Set.new([
98
+
99
+
100
+
101
+
102
+
83
103
  ])
84
104
  end
85
105
 
@@ -97,23 +117,28 @@ module Ionoscloud
97
117
  end
98
118
  h[k.to_sym] = v
99
119
  }
120
+
100
121
 
101
122
  if attributes.key?(:'id')
102
123
  self.id = attributes[:'id']
103
124
  end
104
125
 
126
+
105
127
  if attributes.key?(:'type')
106
128
  self.type = attributes[:'type']
107
129
  end
108
130
 
131
+
109
132
  if attributes.key?(:'href')
110
133
  self.href = attributes[:'href']
111
134
  end
112
135
 
136
+
113
137
  if attributes.key?(:'metadata')
114
138
  self.metadata = attributes[:'metadata']
115
139
  end
116
140
 
141
+
117
142
  if attributes.key?(:'properties')
118
143
  self.properties = attributes[:'properties']
119
144
  end
@@ -123,6 +148,11 @@ module Ionoscloud
123
148
  # @return Array for valid properties with the reasons
124
149
  def list_invalid_properties
125
150
  invalid_properties = Array.new
151
+
152
+
153
+
154
+
155
+
126
156
  if @properties.nil?
127
157
  invalid_properties.push('invalid value for "properties", properties cannot be nil.')
128
158
  end
@@ -133,12 +163,19 @@ module Ionoscloud
133
163
  # Check to see if the all the properties in the model are valid
134
164
  # @return true if the model is valid
135
165
  def valid?
166
+
167
+
136
168
  type_validator = EnumAttributeValidator.new('String', ["nodepool"])
137
169
  return false unless type_validator.valid?(@type)
170
+
171
+
172
+
138
173
  return false if @properties.nil?
139
174
  true
140
175
  end
141
176
 
177
+
178
+
142
179
  # Custom attribute writer method checking allowed values (enum).
143
180
  # @param [Object] type Object to be assigned
144
181
  def type=(type)
@@ -149,16 +186,19 @@ module Ionoscloud
149
186
  @type = type
150
187
  end
151
188
 
189
+
190
+
191
+
152
192
  # Checks equality by comparing each attribute.
153
193
  # @param [Object] Object to be compared
154
194
  def ==(o)
155
195
  return true if self.equal?(o)
156
196
  self.class == o.class &&
157
- id == o.id &&
158
- type == o.type &&
159
- href == o.href &&
160
- metadata == o.metadata &&
161
- properties == o.properties
197
+ id == o.id &&
198
+ type == o.type &&
199
+ href == o.href &&
200
+ metadata == o.metadata &&
201
+ properties == o.properties
162
202
  end
163
203
 
164
204
  # @see the `==` method
@@ -15,12 +15,14 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesNodePoolLan
18
+
18
19
  # The LAN ID of an existing LAN at the related datacenter
19
20
  attr_accessor :id
20
21
 
21
22
  # Attribute mapping from ruby-style variable name to JSON key.
22
23
  def self.attribute_map
23
24
  {
25
+
24
26
  :'id' => :'id'
25
27
  }
26
28
  end
@@ -33,6 +35,7 @@ module Ionoscloud
33
35
  # Attribute type mapping.
34
36
  def self.openapi_types
35
37
  {
38
+
36
39
  :'id' => :'Integer'
37
40
  }
38
41
  end
@@ -40,6 +43,7 @@ module Ionoscloud
40
43
  # List of attributes with nullable: true
41
44
  def self.openapi_nullable
42
45
  Set.new([
46
+
43
47
  ])
44
48
  end
45
49
 
@@ -57,6 +61,7 @@ module Ionoscloud
57
61
  end
58
62
  h[k.to_sym] = v
59
63
  }
64
+
60
65
 
61
66
  if attributes.key?(:'id')
62
67
  self.id = attributes[:'id']
@@ -67,6 +72,7 @@ module Ionoscloud
67
72
  # @return Array for valid properties with the reasons
68
73
  def list_invalid_properties
69
74
  invalid_properties = Array.new
75
+
70
76
  if @id.nil?
71
77
  invalid_properties.push('invalid value for "id", id cannot be nil.')
72
78
  end
@@ -77,16 +83,18 @@ module Ionoscloud
77
83
  # Check to see if the all the properties in the model are valid
78
84
  # @return true if the model is valid
79
85
  def valid?
86
+
80
87
  return false if @id.nil?
81
88
  true
82
89
  end
83
90
 
91
+
84
92
  # Checks equality by comparing each attribute.
85
93
  # @param [Object] Object to be compared
86
94
  def ==(o)
87
95
  return true if self.equal?(o)
88
96
  self.class == o.class &&
89
- id == o.id
97
+ id == o.id
90
98
  end
91
99
 
92
100
  # @see the `==` method
@@ -15,58 +15,72 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesNodePoolProperties
18
+
18
19
  # A Kubernetes Node Pool Name. Valid Kubernetes Node Pool name must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between.
19
20
  attr_accessor :name
20
21
 
22
+
21
23
  # A valid uuid of the datacenter on which user has access
22
24
  attr_accessor :datacenter_id
23
25
 
26
+
24
27
  # Number of nodes part of the Node Pool
25
28
  attr_accessor :node_count
26
29
 
30
+
27
31
  # A valid cpu family name
28
32
  attr_accessor :cpu_family
29
33
 
34
+
30
35
  # Number of cores for node
31
36
  attr_accessor :cores_count
32
37
 
38
+
33
39
  # RAM size for node, minimum size is 2048MB. Ram size must be set to multiple of 1024MB.
34
40
  attr_accessor :ram_size
35
41
 
42
+
36
43
  # The availability zone in which the target VM should exist
37
44
  attr_accessor :availability_zone
38
45
 
46
+
39
47
  # Hardware type of the volume
40
48
  attr_accessor :storage_type
41
49
 
50
+
42
51
  # The size of the volume in GB. The size should be greater than 10GB.
43
52
  attr_accessor :storage_size
44
53
 
54
+
45
55
  # The kubernetes version in which a nodepool is running. This imposes restrictions on what kubernetes versions can be run in a cluster's nodepools. Additionally, not all kubernetes versions are viable upgrade targets for all prior versions.
46
56
  attr_accessor :k8s_version
47
57
 
58
+
48
59
  attr_accessor :maintenance_window
49
60
 
61
+
50
62
  attr_accessor :auto_scaling
51
63
 
64
+
52
65
  # array of additional LANs attached to worker nodes
53
66
  attr_accessor :lans
54
67
 
68
+
55
69
  # map of labels attached to node pool
56
70
  attr_accessor :labels
57
71
 
72
+
58
73
  # map of annotations attached to node pool
59
74
  attr_accessor :annotations
60
75
 
76
+
61
77
  # Optional array of reserved public IP addresses to be used by the nodes. IPs must be from same location as the data center used for the node pool. The array must contain one extra IP than maximum number of nodes could be. (nodeCount+1 if fixed node amount or maxNodeCount+1 if auto scaling is used) The extra provided IP Will be used during rebuilding of nodes.
62
78
  attr_accessor :public_ips
63
79
 
80
+
64
81
  # List of available versions for upgrading the node pool
65
82
  attr_accessor :available_upgrade_versions
66
83
 
67
- # Public IP address for the gateway performing source NAT for the node pool's nodes belonging to a private cluster. Required only if the node pool belongs to a private cluster.
68
- attr_accessor :gateway_ip
69
-
70
84
  class EnumAttributeValidator
71
85
  attr_reader :datatype
72
86
  attr_reader :allowable_values
@@ -92,24 +106,40 @@ module Ionoscloud
92
106
  # Attribute mapping from ruby-style variable name to JSON key.
93
107
  def self.attribute_map
94
108
  {
109
+
95
110
  :'name' => :'name',
111
+
96
112
  :'datacenter_id' => :'datacenterId',
113
+
97
114
  :'node_count' => :'nodeCount',
115
+
98
116
  :'cpu_family' => :'cpuFamily',
117
+
99
118
  :'cores_count' => :'coresCount',
119
+
100
120
  :'ram_size' => :'ramSize',
121
+
101
122
  :'availability_zone' => :'availabilityZone',
123
+
102
124
  :'storage_type' => :'storageType',
125
+
103
126
  :'storage_size' => :'storageSize',
127
+
104
128
  :'k8s_version' => :'k8sVersion',
129
+
105
130
  :'maintenance_window' => :'maintenanceWindow',
131
+
106
132
  :'auto_scaling' => :'autoScaling',
133
+
107
134
  :'lans' => :'lans',
135
+
108
136
  :'labels' => :'labels',
137
+
109
138
  :'annotations' => :'annotations',
139
+
110
140
  :'public_ips' => :'publicIps',
141
+
111
142
  :'available_upgrade_versions' => :'availableUpgradeVersions',
112
- :'gateway_ip' => :'gatewayIp'
113
143
  }
114
144
  end
115
145
 
@@ -121,30 +151,63 @@ module Ionoscloud
121
151
  # Attribute type mapping.
122
152
  def self.openapi_types
123
153
  {
154
+
124
155
  :'name' => :'String',
156
+
125
157
  :'datacenter_id' => :'String',
158
+
126
159
  :'node_count' => :'Integer',
160
+
127
161
  :'cpu_family' => :'String',
162
+
128
163
  :'cores_count' => :'Integer',
164
+
129
165
  :'ram_size' => :'Integer',
166
+
130
167
  :'availability_zone' => :'String',
168
+
131
169
  :'storage_type' => :'String',
170
+
132
171
  :'storage_size' => :'Integer',
172
+
133
173
  :'k8s_version' => :'String',
174
+
134
175
  :'maintenance_window' => :'KubernetesMaintenanceWindow',
176
+
135
177
  :'auto_scaling' => :'KubernetesAutoScaling',
178
+
136
179
  :'lans' => :'Array<KubernetesNodePoolLan>',
180
+
137
181
  :'labels' => :'Hash<String, String>',
182
+
138
183
  :'annotations' => :'Hash<String, String>',
184
+
139
185
  :'public_ips' => :'Array<String>',
186
+
140
187
  :'available_upgrade_versions' => :'Array<String>',
141
- :'gateway_ip' => :'String'
142
188
  }
143
189
  end
144
190
 
145
191
  # List of attributes with nullable: true
146
192
  def self.openapi_nullable
147
193
  Set.new([
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+
148
211
  ])
149
212
  end
150
213
 
@@ -162,87 +225,90 @@ module Ionoscloud
162
225
  end
163
226
  h[k.to_sym] = v
164
227
  }
228
+
165
229
 
166
230
  if attributes.key?(:'name')
167
231
  self.name = attributes[:'name']
168
232
  end
169
233
 
234
+
170
235
  if attributes.key?(:'datacenter_id')
171
236
  self.datacenter_id = attributes[:'datacenter_id']
172
237
  end
173
238
 
239
+
174
240
  if attributes.key?(:'node_count')
175
241
  self.node_count = attributes[:'node_count']
176
242
  end
177
243
 
244
+
178
245
  if attributes.key?(:'cpu_family')
179
246
  self.cpu_family = attributes[:'cpu_family']
180
247
  end
181
248
 
249
+
182
250
  if attributes.key?(:'cores_count')
183
251
  self.cores_count = attributes[:'cores_count']
184
252
  end
185
253
 
254
+
186
255
  if attributes.key?(:'ram_size')
187
256
  self.ram_size = attributes[:'ram_size']
188
257
  end
189
258
 
259
+
190
260
  if attributes.key?(:'availability_zone')
191
261
  self.availability_zone = attributes[:'availability_zone']
192
262
  end
193
263
 
264
+
194
265
  if attributes.key?(:'storage_type')
195
266
  self.storage_type = attributes[:'storage_type']
196
267
  end
197
268
 
269
+
198
270
  if attributes.key?(:'storage_size')
199
271
  self.storage_size = attributes[:'storage_size']
200
272
  end
201
273
 
274
+
202
275
  if attributes.key?(:'k8s_version')
203
276
  self.k8s_version = attributes[:'k8s_version']
204
277
  end
205
278
 
279
+
206
280
  if attributes.key?(:'maintenance_window')
207
281
  self.maintenance_window = attributes[:'maintenance_window']
208
282
  end
209
283
 
284
+
210
285
  if attributes.key?(:'auto_scaling')
211
286
  self.auto_scaling = attributes[:'auto_scaling']
212
287
  end
213
288
 
214
- if attributes.key?(:'lans')
215
- if (value = attributes[:'lans']).is_a?(Array)
216
- self.lans = value
217
- end
218
- end
219
289
 
220
- if attributes.key?(:'labels')
221
- if (value = attributes[:'labels']).is_a?(Hash)
222
- self.labels = value
223
- end
290
+ if attributes.key?(:'lans') && (value = attributes[:'lans']).is_a?(Array)
291
+ self.lans = value
224
292
  end
225
293
 
226
- if attributes.key?(:'annotations')
227
- if (value = attributes[:'annotations']).is_a?(Hash)
228
- self.annotations = value
229
- end
294
+
295
+ if attributes.key?(:'labels') && (value = attributes[:'labels']).is_a?(Hash)
296
+ self.labels = value
230
297
  end
231
298
 
232
- if attributes.key?(:'public_ips')
233
- if (value = attributes[:'public_ips']).is_a?(Array)
234
- self.public_ips = value
235
- end
299
+
300
+ if attributes.key?(:'annotations') && (value = attributes[:'annotations']).is_a?(Hash)
301
+ self.annotations = value
236
302
  end
237
303
 
238
- if attributes.key?(:'available_upgrade_versions')
239
- if (value = attributes[:'available_upgrade_versions']).is_a?(Array)
240
- self.available_upgrade_versions = value
241
- end
304
+
305
+ if attributes.key?(:'public_ips') && (value = attributes[:'public_ips']).is_a?(Array)
306
+ self.public_ips = value
242
307
  end
243
308
 
244
- if attributes.key?(:'gateway_ip')
245
- self.gateway_ip = attributes[:'gateway_ip']
309
+
310
+ if attributes.key?(:'available_upgrade_versions') && (value = attributes[:'available_upgrade_versions']).is_a?(Array)
311
+ self.available_upgrade_versions = value
246
312
  end
247
313
  end
248
314
 
@@ -250,64 +316,105 @@ module Ionoscloud
250
316
  # @return Array for valid properties with the reasons
251
317
  def list_invalid_properties
252
318
  invalid_properties = Array.new
319
+
253
320
  if @name.nil?
254
321
  invalid_properties.push('invalid value for "name", name cannot be nil.')
255
322
  end
256
323
 
324
+
257
325
  if @datacenter_id.nil?
258
326
  invalid_properties.push('invalid value for "datacenter_id", datacenter_id cannot be nil.')
259
327
  end
260
328
 
329
+
261
330
  if @node_count.nil?
262
331
  invalid_properties.push('invalid value for "node_count", node_count cannot be nil.')
263
332
  end
264
333
 
334
+
265
335
  if @cpu_family.nil?
266
336
  invalid_properties.push('invalid value for "cpu_family", cpu_family cannot be nil.')
267
337
  end
268
338
 
339
+
269
340
  if @cores_count.nil?
270
341
  invalid_properties.push('invalid value for "cores_count", cores_count cannot be nil.')
271
342
  end
272
343
 
344
+
273
345
  if @ram_size.nil?
274
346
  invalid_properties.push('invalid value for "ram_size", ram_size cannot be nil.')
275
347
  end
276
348
 
349
+
277
350
  if @availability_zone.nil?
278
351
  invalid_properties.push('invalid value for "availability_zone", availability_zone cannot be nil.')
279
352
  end
280
353
 
354
+
281
355
  if @storage_type.nil?
282
356
  invalid_properties.push('invalid value for "storage_type", storage_type cannot be nil.')
283
357
  end
284
358
 
359
+
285
360
  if @storage_size.nil?
286
361
  invalid_properties.push('invalid value for "storage_size", storage_size cannot be nil.')
287
362
  end
288
363
 
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
289
372
  invalid_properties
290
373
  end
291
374
 
292
375
  # Check to see if the all the properties in the model are valid
293
376
  # @return true if the model is valid
294
377
  def valid?
378
+
295
379
  return false if @name.nil?
380
+
296
381
  return false if @datacenter_id.nil?
382
+
297
383
  return false if @node_count.nil?
384
+
298
385
  return false if @cpu_family.nil?
386
+
299
387
  return false if @cores_count.nil?
388
+
300
389
  return false if @ram_size.nil?
390
+
301
391
  return false if @availability_zone.nil?
302
392
  availability_zone_validator = EnumAttributeValidator.new('String', ["AUTO", "ZONE_1", "ZONE_2"])
303
393
  return false unless availability_zone_validator.valid?(@availability_zone)
394
+
304
395
  return false if @storage_type.nil?
305
396
  storage_type_validator = EnumAttributeValidator.new('String', ["HDD", "SSD"])
306
397
  return false unless storage_type_validator.valid?(@storage_type)
398
+
307
399
  return false if @storage_size.nil?
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
308
408
  true
309
409
  end
310
410
 
411
+
412
+
413
+
414
+
415
+
416
+
417
+
311
418
  # Custom attribute writer method checking allowed values (enum).
312
419
  # @param [Object] availability_zone Object to be assigned
313
420
  def availability_zone=(availability_zone)
@@ -318,6 +425,7 @@ module Ionoscloud
318
425
  @availability_zone = availability_zone
319
426
  end
320
427
 
428
+
321
429
  # Custom attribute writer method checking allowed values (enum).
322
430
  # @param [Object] storage_type Object to be assigned
323
431
  def storage_type=(storage_type)
@@ -328,29 +436,37 @@ module Ionoscloud
328
436
  @storage_type = storage_type
329
437
  end
330
438
 
439
+
440
+
441
+
442
+
443
+
444
+
445
+
446
+
447
+
331
448
  # Checks equality by comparing each attribute.
332
449
  # @param [Object] Object to be compared
333
450
  def ==(o)
334
451
  return true if self.equal?(o)
335
452
  self.class == o.class &&
336
- name == o.name &&
337
- datacenter_id == o.datacenter_id &&
338
- node_count == o.node_count &&
339
- cpu_family == o.cpu_family &&
340
- cores_count == o.cores_count &&
341
- ram_size == o.ram_size &&
342
- availability_zone == o.availability_zone &&
343
- storage_type == o.storage_type &&
344
- storage_size == o.storage_size &&
345
- k8s_version == o.k8s_version &&
346
- maintenance_window == o.maintenance_window &&
347
- auto_scaling == o.auto_scaling &&
348
- lans == o.lans &&
349
- labels == o.labels &&
350
- annotations == o.annotations &&
351
- public_ips == o.public_ips &&
352
- available_upgrade_versions == o.available_upgrade_versions &&
353
- gateway_ip == o.gateway_ip
453
+ name == o.name &&
454
+ datacenter_id == o.datacenter_id &&
455
+ node_count == o.node_count &&
456
+ cpu_family == o.cpu_family &&
457
+ cores_count == o.cores_count &&
458
+ ram_size == o.ram_size &&
459
+ availability_zone == o.availability_zone &&
460
+ storage_type == o.storage_type &&
461
+ storage_size == o.storage_size &&
462
+ k8s_version == o.k8s_version &&
463
+ maintenance_window == o.maintenance_window &&
464
+ auto_scaling == o.auto_scaling &&
465
+ lans == o.lans &&
466
+ labels == o.labels &&
467
+ annotations == o.annotations &&
468
+ public_ips == o.public_ips &&
469
+ available_upgrade_versions == o.available_upgrade_versions
354
470
  end
355
471
 
356
472
  # @see the `==` method
@@ -362,7 +478,7 @@ module Ionoscloud
362
478
  # Calculates hash code according to all attributes.
363
479
  # @return [Integer] Hash code
364
480
  def hash
365
- [name, datacenter_id, node_count, cpu_family, cores_count, ram_size, availability_zone, storage_type, storage_size, k8s_version, maintenance_window, auto_scaling, lans, labels, annotations, public_ips, available_upgrade_versions, gateway_ip].hash
481
+ [name, datacenter_id, node_count, cpu_family, cores_count, ram_size, availability_zone, storage_type, storage_size, k8s_version, maintenance_window, auto_scaling, lans, labels, annotations, public_ips, available_upgrade_versions, ].hash
366
482
  end
367
483
 
368
484
  # Builds the object from hash