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,27 +15,37 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesClusterPropertiesForPut
18
+
18
19
  # A Kubernetes Cluster Name. Valid Kubernetes Cluster 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
  # The kubernetes version in which a cluster 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.
22
24
  attr_accessor :k8s_version
23
25
 
26
+
24
27
  attr_accessor :maintenance_window
25
28
 
29
+
26
30
  # Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
27
31
  attr_accessor :api_subnet_allow_list
28
32
 
33
+
29
34
  # List of S3 bucket configured for K8s usage. For now it contains only one S3 bucket used to store K8s API audit logs
30
35
  attr_accessor :s3_buckets
31
36
 
32
37
  # Attribute mapping from ruby-style variable name to JSON key.
33
38
  def self.attribute_map
34
39
  {
40
+
35
41
  :'name' => :'name',
42
+
36
43
  :'k8s_version' => :'k8sVersion',
44
+
37
45
  :'maintenance_window' => :'maintenanceWindow',
46
+
38
47
  :'api_subnet_allow_list' => :'apiSubnetAllowList',
48
+
39
49
  :'s3_buckets' => :'s3Buckets'
40
50
  }
41
51
  end
@@ -48,10 +58,15 @@ module Ionoscloud
48
58
  # Attribute type mapping.
49
59
  def self.openapi_types
50
60
  {
61
+
51
62
  :'name' => :'String',
63
+
52
64
  :'k8s_version' => :'String',
65
+
53
66
  :'maintenance_window' => :'KubernetesMaintenanceWindow',
67
+
54
68
  :'api_subnet_allow_list' => :'Array<String>',
69
+
55
70
  :'s3_buckets' => :'Array<S3Bucket>'
56
71
  }
57
72
  end
@@ -59,6 +74,11 @@ module Ionoscloud
59
74
  # List of attributes with nullable: true
60
75
  def self.openapi_nullable
61
76
  Set.new([
77
+
78
+
79
+
80
+
81
+
62
82
  ])
63
83
  end
64
84
 
@@ -76,29 +96,30 @@ module Ionoscloud
76
96
  end
77
97
  h[k.to_sym] = v
78
98
  }
99
+
79
100
 
80
101
  if attributes.key?(:'name')
81
102
  self.name = attributes[:'name']
82
103
  end
83
104
 
105
+
84
106
  if attributes.key?(:'k8s_version')
85
107
  self.k8s_version = attributes[:'k8s_version']
86
108
  end
87
109
 
110
+
88
111
  if attributes.key?(:'maintenance_window')
89
112
  self.maintenance_window = attributes[:'maintenance_window']
90
113
  end
91
114
 
92
- if attributes.key?(:'api_subnet_allow_list')
93
- if (value = attributes[:'api_subnet_allow_list']).is_a?(Array)
94
- self.api_subnet_allow_list = value
95
- end
115
+
116
+ if attributes.key?(:'api_subnet_allow_list') && (value = attributes[:'api_subnet_allow_list']).is_a?(Array)
117
+ self.api_subnet_allow_list = value
96
118
  end
97
119
 
98
- if attributes.key?(:'s3_buckets')
99
- if (value = attributes[:'s3_buckets']).is_a?(Array)
100
- self.s3_buckets = value
101
- end
120
+
121
+ if attributes.key?(:'s3_buckets') && (value = attributes[:'s3_buckets']).is_a?(Array)
122
+ self.s3_buckets = value
102
123
  end
103
124
  end
104
125
 
@@ -106,30 +127,45 @@ module Ionoscloud
106
127
  # @return Array for valid properties with the reasons
107
128
  def list_invalid_properties
108
129
  invalid_properties = Array.new
130
+
109
131
  if @name.nil?
110
132
  invalid_properties.push('invalid value for "name", name cannot be nil.')
111
133
  end
112
134
 
135
+
136
+
137
+
138
+
113
139
  invalid_properties
114
140
  end
115
141
 
116
142
  # Check to see if the all the properties in the model are valid
117
143
  # @return true if the model is valid
118
144
  def valid?
145
+
119
146
  return false if @name.nil?
147
+
148
+
149
+
150
+
120
151
  true
121
152
  end
122
153
 
154
+
155
+
156
+
157
+
158
+
123
159
  # Checks equality by comparing each attribute.
124
160
  # @param [Object] Object to be compared
125
161
  def ==(o)
126
162
  return true if self.equal?(o)
127
163
  self.class == o.class &&
128
- name == o.name &&
129
- k8s_version == o.k8s_version &&
130
- maintenance_window == o.maintenance_window &&
131
- api_subnet_allow_list == o.api_subnet_allow_list &&
132
- s3_buckets == o.s3_buckets
164
+ name == o.name &&
165
+ k8s_version == o.k8s_version &&
166
+ maintenance_window == o.maintenance_window &&
167
+ api_subnet_allow_list == o.api_subnet_allow_list &&
168
+ s3_buckets == o.s3_buckets
133
169
  end
134
170
 
135
171
  # @see the `==` method
@@ -15,15 +15,19 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesClusters
18
+
18
19
  # Unique representation for Kubernetes Cluster as a collection on a resource.
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 collection 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
 
@@ -52,9 +56,13 @@ module Ionoscloud
52
56
  # Attribute mapping from ruby-style variable name to JSON key.
53
57
  def self.attribute_map
54
58
  {
59
+
55
60
  :'id' => :'id',
61
+
56
62
  :'type' => :'type',
63
+
57
64
  :'href' => :'href',
65
+
58
66
  :'items' => :'items'
59
67
  }
60
68
  end
@@ -67,9 +75,13 @@ module Ionoscloud
67
75
  # Attribute type mapping.
68
76
  def self.openapi_types
69
77
  {
78
+
70
79
  :'id' => :'String',
80
+
71
81
  :'type' => :'String',
82
+
72
83
  :'href' => :'String',
84
+
73
85
  :'items' => :'Array<KubernetesCluster>'
74
86
  }
75
87
  end
@@ -77,6 +89,10 @@ module Ionoscloud
77
89
  # List of attributes with nullable: true
78
90
  def self.openapi_nullable
79
91
  Set.new([
92
+
93
+
94
+
95
+
80
96
  ])
81
97
  end
82
98
 
@@ -94,23 +110,25 @@ module Ionoscloud
94
110
  end
95
111
  h[k.to_sym] = v
96
112
  }
113
+
97
114
 
98
115
  if attributes.key?(:'id')
99
116
  self.id = attributes[:'id']
100
117
  end
101
118
 
119
+
102
120
  if attributes.key?(:'type')
103
121
  self.type = attributes[:'type']
104
122
  end
105
123
 
124
+
106
125
  if attributes.key?(:'href')
107
126
  self.href = attributes[:'href']
108
127
  end
109
128
 
110
- if attributes.key?(:'items')
111
- if (value = attributes[:'items']).is_a?(Array)
112
- self.items = value
113
- end
129
+
130
+ if attributes.key?(:'items') && (value = attributes[:'items']).is_a?(Array)
131
+ self.items = value
114
132
  end
115
133
  end
116
134
 
@@ -118,17 +136,27 @@ module Ionoscloud
118
136
  # @return Array for valid properties with the reasons
119
137
  def list_invalid_properties
120
138
  invalid_properties = Array.new
139
+
140
+
141
+
142
+
121
143
  invalid_properties
122
144
  end
123
145
 
124
146
  # Check to see if the all the properties in the model are valid
125
147
  # @return true if the model is valid
126
148
  def valid?
149
+
150
+
127
151
  type_validator = EnumAttributeValidator.new('String', ["collection"])
128
152
  return false unless type_validator.valid?(@type)
153
+
154
+
129
155
  true
130
156
  end
131
157
 
158
+
159
+
132
160
  # Custom attribute writer method checking allowed values (enum).
133
161
  # @param [Object] type Object to be assigned
134
162
  def type=(type)
@@ -139,15 +167,17 @@ module Ionoscloud
139
167
  @type = type
140
168
  end
141
169
 
170
+
171
+
142
172
  # Checks equality by comparing each attribute.
143
173
  # @param [Object] Object to be compared
144
174
  def ==(o)
145
175
  return true if self.equal?(o)
146
176
  self.class == o.class &&
147
- id == o.id &&
148
- type == o.type &&
149
- href == o.href &&
150
- items == o.items
177
+ id == o.id &&
178
+ type == o.type &&
179
+ href == o.href &&
180
+ items == o.items
151
181
  end
152
182
 
153
183
  # @see the `==` method
@@ -15,15 +15,19 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesConfig
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 :properties
28
32
 
29
33
  class EnumAttributeValidator
@@ -51,9 +55,13 @@ module Ionoscloud
51
55
  # Attribute mapping from ruby-style variable name to JSON key.
52
56
  def self.attribute_map
53
57
  {
58
+
54
59
  :'id' => :'id',
60
+
55
61
  :'type' => :'type',
62
+
56
63
  :'href' => :'href',
64
+
57
65
  :'properties' => :'properties'
58
66
  }
59
67
  end
@@ -66,9 +74,13 @@ module Ionoscloud
66
74
  # Attribute type mapping.
67
75
  def self.openapi_types
68
76
  {
77
+
69
78
  :'id' => :'String',
79
+
70
80
  :'type' => :'String',
81
+
71
82
  :'href' => :'String',
83
+
72
84
  :'properties' => :'KubernetesConfigProperties'
73
85
  }
74
86
  end
@@ -76,6 +88,10 @@ module Ionoscloud
76
88
  # List of attributes with nullable: true
77
89
  def self.openapi_nullable
78
90
  Set.new([
91
+
92
+
93
+
94
+
79
95
  ])
80
96
  end
81
97
 
@@ -93,19 +109,23 @@ module Ionoscloud
93
109
  end
94
110
  h[k.to_sym] = v
95
111
  }
112
+
96
113
 
97
114
  if attributes.key?(:'id')
98
115
  self.id = attributes[:'id']
99
116
  end
100
117
 
118
+
101
119
  if attributes.key?(:'type')
102
120
  self.type = attributes[:'type']
103
121
  end
104
122
 
123
+
105
124
  if attributes.key?(:'href')
106
125
  self.href = attributes[:'href']
107
126
  end
108
127
 
128
+
109
129
  if attributes.key?(:'properties')
110
130
  self.properties = attributes[:'properties']
111
131
  end
@@ -115,6 +135,10 @@ module Ionoscloud
115
135
  # @return Array for valid properties with the reasons
116
136
  def list_invalid_properties
117
137
  invalid_properties = Array.new
138
+
139
+
140
+
141
+
118
142
  if @properties.nil?
119
143
  invalid_properties.push('invalid value for "properties", properties cannot be nil.')
120
144
  end
@@ -125,12 +149,18 @@ module Ionoscloud
125
149
  # Check to see if the all the properties in the model are valid
126
150
  # @return true if the model is valid
127
151
  def valid?
152
+
153
+
128
154
  type_validator = EnumAttributeValidator.new('String', ["kubeconfig"])
129
155
  return false unless type_validator.valid?(@type)
156
+
157
+
130
158
  return false if @properties.nil?
131
159
  true
132
160
  end
133
161
 
162
+
163
+
134
164
  # Custom attribute writer method checking allowed values (enum).
135
165
  # @param [Object] type Object to be assigned
136
166
  def type=(type)
@@ -141,15 +171,17 @@ module Ionoscloud
141
171
  @type = type
142
172
  end
143
173
 
174
+
175
+
144
176
  # Checks equality by comparing each attribute.
145
177
  # @param [Object] Object to be compared
146
178
  def ==(o)
147
179
  return true if self.equal?(o)
148
180
  self.class == o.class &&
149
- id == o.id &&
150
- type == o.type &&
151
- href == o.href &&
152
- properties == o.properties
181
+ id == o.id &&
182
+ type == o.type &&
183
+ href == o.href &&
184
+ properties == o.properties
153
185
  end
154
186
 
155
187
  # @see the `==` method
@@ -15,12 +15,14 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesConfigProperties
18
+
18
19
  # A Kubernetes Config file data
19
20
  attr_accessor :kubeconfig
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
  :'kubeconfig' => :'kubeconfig'
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
  :'kubeconfig' => :'String'
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?(:'kubeconfig')
62
67
  self.kubeconfig = attributes[:'kubeconfig']
@@ -67,21 +72,24 @@ 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
  invalid_properties
71
77
  end
72
78
 
73
79
  # Check to see if the all the properties in the model are valid
74
80
  # @return true if the model is valid
75
81
  def valid?
82
+
76
83
  true
77
84
  end
78
85
 
86
+
79
87
  # Checks equality by comparing each attribute.
80
88
  # @param [Object] Object to be compared
81
89
  def ==(o)
82
90
  return true if self.equal?(o)
83
91
  self.class == o.class &&
84
- kubeconfig == o.kubeconfig
92
+ kubeconfig == o.kubeconfig
85
93
  end
86
94
 
87
95
  # @see the `==` method
@@ -15,9 +15,11 @@ require 'time'
15
15
 
16
16
  module Ionoscloud
17
17
  class KubernetesMaintenanceWindow
18
+
18
19
  # The day of the week for a maintenance window.
19
20
  attr_accessor :day_of_the_week
20
21
 
22
+
21
23
  # The time to use for a maintenance window. Accepted formats are: HH:mm:ss; HH:mm:ss\"Z\"; HH:mm:ssZ. This time may varies by 15 minutes.
22
24
  attr_accessor :time
23
25
 
@@ -46,7 +48,9 @@ module Ionoscloud
46
48
  # Attribute mapping from ruby-style variable name to JSON key.
47
49
  def self.attribute_map
48
50
  {
51
+
49
52
  :'day_of_the_week' => :'dayOfTheWeek',
53
+
50
54
  :'time' => :'time'
51
55
  }
52
56
  end
@@ -59,7 +63,9 @@ module Ionoscloud
59
63
  # Attribute type mapping.
60
64
  def self.openapi_types
61
65
  {
66
+
62
67
  :'day_of_the_week' => :'String',
68
+
63
69
  :'time' => :'String'
64
70
  }
65
71
  end
@@ -67,6 +73,8 @@ module Ionoscloud
67
73
  # List of attributes with nullable: true
68
74
  def self.openapi_nullable
69
75
  Set.new([
76
+
77
+
70
78
  ])
71
79
  end
72
80
 
@@ -84,11 +92,13 @@ module Ionoscloud
84
92
  end
85
93
  h[k.to_sym] = v
86
94
  }
95
+
87
96
 
88
97
  if attributes.key?(:'day_of_the_week')
89
98
  self.day_of_the_week = attributes[:'day_of_the_week']
90
99
  end
91
100
 
101
+
92
102
  if attributes.key?(:'time')
93
103
  self.time = attributes[:'time']
94
104
  end
@@ -98,17 +108,22 @@ module Ionoscloud
98
108
  # @return Array for valid properties with the reasons
99
109
  def list_invalid_properties
100
110
  invalid_properties = Array.new
111
+
112
+
101
113
  invalid_properties
102
114
  end
103
115
 
104
116
  # Check to see if the all the properties in the model are valid
105
117
  # @return true if the model is valid
106
118
  def valid?
119
+
107
120
  day_of_the_week_validator = EnumAttributeValidator.new('String', ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"])
108
121
  return false unless day_of_the_week_validator.valid?(@day_of_the_week)
122
+
109
123
  true
110
124
  end
111
125
 
126
+
112
127
  # Custom attribute writer method checking allowed values (enum).
113
128
  # @param [Object] day_of_the_week Object to be assigned
114
129
  def day_of_the_week=(day_of_the_week)
@@ -119,13 +134,14 @@ module Ionoscloud
119
134
  @day_of_the_week = day_of_the_week
120
135
  end
121
136
 
137
+
122
138
  # Checks equality by comparing each attribute.
123
139
  # @param [Object] Object to be compared
124
140
  def ==(o)
125
141
  return true if self.equal?(o)
126
142
  self.class == o.class &&
127
- day_of_the_week == o.day_of_the_week &&
128
- time == o.time
143
+ day_of_the_week == o.day_of_the_week &&
144
+ time == o.time
129
145
  end
130
146
 
131
147
  # @see the `==` method