ionoscloud 5.0.0 → 6.0.0.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (594) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/docs/AttachedVolumes.md +30 -0
  4. data/docs/BackupUnit.md +26 -0
  5. data/docs/BackupUnitProperties.md +22 -0
  6. data/docs/BackupUnitSSO.md +18 -0
  7. data/docs/BackupUnits.md +24 -0
  8. data/docs/BackupUnitsApi.md +594 -0
  9. data/docs/BalancedNics.md +30 -0
  10. data/docs/CHANGELOG.md +1 -0
  11. data/docs/Cdroms.md +30 -0
  12. data/docs/ConnectableDatacenter.md +22 -0
  13. data/docs/Contract.md +20 -0
  14. data/docs/ContractProperties.md +26 -0
  15. data/docs/ContractResourcesApi.md +89 -0
  16. data/docs/Contracts.md +24 -0
  17. data/docs/CpuArchitectureProperties.md +24 -0
  18. data/docs/DataCenterEntities.md +28 -0
  19. data/docs/DataCentersApi.md +516 -0
  20. data/docs/Datacenter.md +28 -0
  21. data/docs/DatacenterElementMetadata.md +32 -0
  22. data/docs/DatacenterProperties.md +30 -0
  23. data/docs/Datacenters.md +30 -0
  24. data/docs/DefaultApi.md +78 -0
  25. data/docs/Error.md +20 -0
  26. data/docs/ErrorMessage.md +20 -0
  27. data/docs/FirewallRule.md +26 -0
  28. data/docs/FirewallRules.md +30 -0
  29. data/docs/FirewallRulesApi.md +552 -0
  30. data/docs/FirewallruleProperties.md +36 -0
  31. data/docs/FlowLog.md +26 -0
  32. data/docs/FlowLogProperties.md +24 -0
  33. data/docs/FlowLogPut.md +24 -0
  34. data/docs/FlowLogs.md +30 -0
  35. data/docs/FlowLogsApi.md +540 -0
  36. data/docs/Group.md +26 -0
  37. data/docs/GroupEntities.md +20 -0
  38. data/docs/GroupMembers.md +24 -0
  39. data/docs/GroupProperties.md +42 -0
  40. data/docs/GroupShare.md +24 -0
  41. data/docs/GroupShareProperties.md +20 -0
  42. data/docs/GroupShares.md +24 -0
  43. data/docs/GroupUsers.md +24 -0
  44. data/docs/Groups.md +24 -0
  45. data/docs/IPBlocksApi.md +512 -0
  46. data/docs/IPFailover.md +20 -0
  47. data/docs/Image.md +26 -0
  48. data/docs/ImageProperties.md +54 -0
  49. data/docs/Images.md +24 -0
  50. data/docs/ImagesApi.md +428 -0
  51. data/docs/Info.md +22 -0
  52. data/docs/IpBlock.md +26 -0
  53. data/docs/IpBlockProperties.md +26 -0
  54. data/docs/IpBlocks.md +24 -0
  55. data/docs/IpConsumer.md +34 -0
  56. data/docs/KubernetesApi.md +1433 -0
  57. data/docs/KubernetesAutoScaling.md +20 -0
  58. data/docs/KubernetesCluster.md +28 -0
  59. data/docs/KubernetesClusterEntities.md +18 -0
  60. data/docs/KubernetesClusterForPost.md +28 -0
  61. data/docs/KubernetesClusterForPut.md +28 -0
  62. data/docs/KubernetesClusterProperties.md +30 -0
  63. data/docs/KubernetesClusterPropertiesForPost.md +26 -0
  64. data/docs/KubernetesClusterPropertiesForPut.md +22 -0
  65. data/docs/KubernetesClusters.md +24 -0
  66. data/docs/KubernetesMaintenanceWindow.md +20 -0
  67. data/docs/KubernetesNode.md +26 -0
  68. data/docs/KubernetesNodeMetadata.md +26 -0
  69. data/docs/KubernetesNodePool.md +26 -0
  70. data/docs/KubernetesNodePoolForPost.md +26 -0
  71. data/docs/KubernetesNodePoolForPut.md +26 -0
  72. data/docs/KubernetesNodePoolLan.md +22 -0
  73. data/docs/KubernetesNodePoolLanRoutes.md +20 -0
  74. data/docs/KubernetesNodePoolProperties.md +50 -0
  75. data/docs/KubernetesNodePoolPropertiesForPost.md +48 -0
  76. data/docs/KubernetesNodePoolPropertiesForPut.md +34 -0
  77. data/docs/KubernetesNodePools.md +24 -0
  78. data/docs/KubernetesNodeProperties.md +24 -0
  79. data/docs/KubernetesNodes.md +24 -0
  80. data/docs/Label.md +26 -0
  81. data/docs/LabelProperties.md +26 -0
  82. data/docs/LabelResource.md +26 -0
  83. data/docs/LabelResourceProperties.md +20 -0
  84. data/docs/LabelResources.md +30 -0
  85. data/docs/Labels.md +24 -0
  86. data/docs/LabelsApi.md +2346 -0
  87. data/docs/Lan.md +28 -0
  88. data/docs/LanEntities.md +18 -0
  89. data/docs/LanNics.md +30 -0
  90. data/docs/LanPost.md +28 -0
  91. data/docs/LanProperties.md +24 -0
  92. data/docs/LanPropertiesPost.md +24 -0
  93. data/docs/Lans.md +30 -0
  94. data/docs/LansApi.md +794 -0
  95. data/docs/LoadBalancersApi.md +885 -0
  96. data/docs/Loadbalancer.md +28 -0
  97. data/docs/LoadbalancerEntities.md +18 -0
  98. data/docs/LoadbalancerProperties.md +22 -0
  99. data/docs/Loadbalancers.md +30 -0
  100. data/docs/Location.md +26 -0
  101. data/docs/LocationProperties.md +24 -0
  102. data/docs/Locations.md +24 -0
  103. data/docs/LocationsApi.md +259 -0
  104. data/docs/NATGatewaysApi.md +1578 -0
  105. data/docs/NatGateway.md +28 -0
  106. data/docs/NatGatewayEntities.md +20 -0
  107. data/docs/NatGatewayLanProperties.md +20 -0
  108. data/docs/NatGatewayProperties.md +22 -0
  109. data/docs/NatGatewayPut.md +24 -0
  110. data/docs/NatGatewayRule.md +26 -0
  111. data/docs/NatGatewayRuleProperties.md +30 -0
  112. data/docs/NatGatewayRuleProtocol.md +15 -0
  113. data/docs/NatGatewayRulePut.md +24 -0
  114. data/docs/NatGatewayRuleType.md +15 -0
  115. data/docs/NatGatewayRules.md +24 -0
  116. data/docs/NatGateways.md +30 -0
  117. data/docs/NetworkInterfacesApi.md +540 -0
  118. data/docs/NetworkLoadBalancer.md +28 -0
  119. data/docs/NetworkLoadBalancerEntities.md +20 -0
  120. data/docs/NetworkLoadBalancerForwardingRule.md +26 -0
  121. data/docs/NetworkLoadBalancerForwardingRuleHealthCheck.md +26 -0
  122. data/docs/NetworkLoadBalancerForwardingRuleProperties.md +30 -0
  123. data/docs/NetworkLoadBalancerForwardingRulePut.md +24 -0
  124. data/docs/NetworkLoadBalancerForwardingRuleTarget.md +24 -0
  125. data/docs/NetworkLoadBalancerForwardingRuleTargetHealthCheck.md +22 -0
  126. data/docs/NetworkLoadBalancerForwardingRules.md +30 -0
  127. data/docs/NetworkLoadBalancerProperties.md +26 -0
  128. data/docs/NetworkLoadBalancerPut.md +24 -0
  129. data/docs/NetworkLoadBalancers.md +30 -0
  130. data/docs/NetworkLoadBalancersApi.md +1590 -0
  131. data/docs/Nic.md +28 -0
  132. data/docs/NicEntities.md +20 -0
  133. data/docs/NicProperties.md +34 -0
  134. data/docs/NicPut.md +24 -0
  135. data/docs/Nics.md +30 -0
  136. data/docs/NoStateMetaData.md +30 -0
  137. data/docs/PaginationLinks.md +22 -0
  138. data/docs/Peer.md +26 -0
  139. data/docs/PrivateCrossConnect.md +26 -0
  140. data/docs/PrivateCrossConnectProperties.md +24 -0
  141. data/docs/PrivateCrossConnects.md +24 -0
  142. data/docs/PrivateCrossConnectsApi.md +430 -0
  143. data/docs/README.md +111 -0
  144. data/docs/RemoteConsoleUrl.md +18 -0
  145. data/docs/Request.md +26 -0
  146. data/docs/RequestMetadata.md +24 -0
  147. data/docs/RequestProperties.md +24 -0
  148. data/docs/RequestStatus.md +24 -0
  149. data/docs/RequestStatusMetadata.md +24 -0
  150. data/docs/RequestTarget.md +20 -0
  151. data/docs/Requests.md +30 -0
  152. data/docs/RequestsApi.md +283 -0
  153. data/docs/Resource.md +28 -0
  154. data/docs/ResourceEntities.md +18 -0
  155. data/docs/ResourceGroups.md +24 -0
  156. data/docs/ResourceLimits.md +60 -0
  157. data/docs/ResourceProperties.md +20 -0
  158. data/docs/ResourceReference.md +22 -0
  159. data/docs/Resources.md +24 -0
  160. data/docs/ResourcesUsers.md +24 -0
  161. data/docs/S3Key.md +26 -0
  162. data/docs/S3KeyMetadata.md +20 -0
  163. data/docs/S3KeyProperties.md +20 -0
  164. data/docs/S3Keys.md +24 -0
  165. data/docs/S3ObjectStorageSSO.md +18 -0
  166. data/docs/Server.md +28 -0
  167. data/docs/ServerEntities.md +22 -0
  168. data/docs/ServerProperties.md +36 -0
  169. data/docs/Servers.md +30 -0
  170. data/docs/ServersApi.md +1908 -0
  171. data/docs/Snapshot.md +26 -0
  172. data/docs/SnapshotProperties.md +48 -0
  173. data/docs/Snapshots.md +24 -0
  174. data/docs/SnapshotsApi.md +428 -0
  175. data/docs/TargetPortRange.md +20 -0
  176. data/docs/Template.md +26 -0
  177. data/docs/TemplateProperties.md +24 -0
  178. data/docs/Templates.md +24 -0
  179. data/docs/TemplatesApi.md +165 -0
  180. data/docs/Token.md +18 -0
  181. data/docs/Type.md +15 -0
  182. data/docs/User.md +28 -0
  183. data/docs/UserManagementApi.md +2033 -0
  184. data/docs/UserMetadata.md +22 -0
  185. data/docs/UserPost.md +18 -0
  186. data/docs/UserProperties.md +32 -0
  187. data/docs/UserPropertiesPost.md +32 -0
  188. data/docs/UserPropertiesPut.md +30 -0
  189. data/docs/UserPut.md +20 -0
  190. data/docs/UserS3KeysApi.md +516 -0
  191. data/docs/Users.md +24 -0
  192. data/docs/UsersEntities.md +20 -0
  193. data/docs/Volume.md +26 -0
  194. data/docs/VolumeProperties.md +54 -0
  195. data/docs/Volumes.md +30 -0
  196. data/docs/VolumesApi.md +709 -0
  197. data/docs/summary.md +395 -0
  198. data/gitbook.yaml +4 -0
  199. data/ionoscloud.gemspec +1 -1
  200. data/lib/ionoscloud.rb +68 -18
  201. data/lib/ionoscloud/api/_api.rb +1 -1
  202. data/lib/ionoscloud/api/{backup_unit_api.rb → backup_units_api.rb} +60 -60
  203. data/lib/ionoscloud/api/{contract_api.rb → contract_resources_api.rb} +12 -12
  204. data/lib/ionoscloud/api/{data_center_api.rb → data_centers_api.rb} +51 -51
  205. data/lib/ionoscloud/api/firewall_rules_api.rb +640 -0
  206. data/lib/ionoscloud/api/flow_logs_api.rb +622 -0
  207. data/lib/ionoscloud/api/{image_api.rb → images_api.rb} +40 -40
  208. data/lib/ionoscloud/api/ip_blocks_api.rb +16 -16
  209. data/lib/ionoscloud/api/kubernetes_api.rb +33 -96
  210. data/lib/ionoscloud/api/{label_api.rb → labels_api.rb} +269 -287
  211. data/lib/ionoscloud/api/{lan_api.rb → lans_api.rb} +105 -105
  212. data/lib/ionoscloud/api/{load_balancer_api.rb → load_balancers_api.rb} +153 -135
  213. data/lib/ionoscloud/api/{location_api.rb → locations_api.rb} +20 -20
  214. data/lib/ionoscloud/api/nat_gateways_api.rb +1690 -0
  215. data/lib/ionoscloud/api/network_interfaces_api.rb +604 -0
  216. data/lib/ionoscloud/api/network_load_balancers_api.rb +1708 -0
  217. data/lib/ionoscloud/api/{private_cross_connect_api.rb → private_cross_connects_api.rb} +61 -43
  218. data/lib/ionoscloud/api/{request_api.rb → requests_api.rb} +56 -32
  219. data/lib/ionoscloud/api/{server_api.rb → servers_api.rb} +535 -191
  220. data/lib/ionoscloud/api/{snapshot_api.rb → snapshots_api.rb} +46 -46
  221. data/lib/ionoscloud/api/templates_api.rb +164 -0
  222. data/lib/ionoscloud/api/user_management_api.rb +29 -524
  223. data/lib/ionoscloud/api/user_s3_keys_api.rb +517 -0
  224. data/lib/ionoscloud/api/{volume_api.rb → volumes_api.rb} +80 -80
  225. data/lib/ionoscloud/api_client.rb +19 -23
  226. data/lib/ionoscloud/api_error.rb +1 -1
  227. data/lib/ionoscloud/configuration.rb +5 -5
  228. data/lib/ionoscloud/models/attached_volumes.rb +1 -1
  229. data/lib/ionoscloud/models/backup_unit.rb +1 -1
  230. data/lib/ionoscloud/models/backup_unit_properties.rb +1 -1
  231. data/lib/ionoscloud/models/backup_unit_sso.rb +1 -1
  232. data/lib/ionoscloud/models/backup_units.rb +3 -3
  233. data/lib/ionoscloud/models/balanced_nics.rb +1 -1
  234. data/lib/ionoscloud/models/cdroms.rb +1 -1
  235. data/lib/ionoscloud/models/connectable_datacenter.rb +1 -1
  236. data/lib/ionoscloud/models/contract.rb +1 -1
  237. data/lib/ionoscloud/models/contract_properties.rb +1 -1
  238. data/lib/ionoscloud/models/contracts.rb +249 -0
  239. data/lib/ionoscloud/models/cpu_architecture_properties.rb +247 -0
  240. data/lib/ionoscloud/models/data_center_entities.rb +23 -5
  241. data/lib/ionoscloud/models/datacenter.rb +1 -1
  242. data/lib/ionoscloud/models/datacenter_element_metadata.rb +1 -1
  243. data/lib/ionoscloud/models/datacenter_properties.rb +16 -26
  244. data/lib/ionoscloud/models/datacenters.rb +1 -1
  245. data/lib/ionoscloud/models/error.rb +1 -1
  246. data/lib/ionoscloud/models/error_message.rb +1 -1
  247. data/lib/ionoscloud/models/firewall_rule.rb +1 -1
  248. data/lib/ionoscloud/models/firewall_rules.rb +1 -1
  249. data/lib/ionoscloud/models/firewallrule_properties.rb +63 -26
  250. data/lib/ionoscloud/models/flow_log.rb +260 -0
  251. data/lib/ionoscloud/models/flow_log_properties.rb +313 -0
  252. data/lib/ionoscloud/models/flow_log_put.rb +251 -0
  253. data/lib/ionoscloud/models/flow_logs.rb +278 -0
  254. data/lib/ionoscloud/models/group.rb +1 -1
  255. data/lib/ionoscloud/models/group_entities.rb +1 -1
  256. data/lib/ionoscloud/models/group_members.rb +1 -1
  257. data/lib/ionoscloud/models/group_properties.rb +35 -5
  258. data/lib/ionoscloud/models/group_share.rb +1 -1
  259. data/lib/ionoscloud/models/group_share_properties.rb +1 -1
  260. data/lib/ionoscloud/models/group_shares.rb +1 -1
  261. data/lib/ionoscloud/models/group_users.rb +1 -1
  262. data/lib/ionoscloud/models/groups.rb +1 -1
  263. data/lib/ionoscloud/models/image.rb +1 -1
  264. data/lib/ionoscloud/models/image_properties.rb +39 -5
  265. data/lib/ionoscloud/models/images.rb +1 -1
  266. data/lib/ionoscloud/models/info.rb +1 -1
  267. data/lib/ionoscloud/models/ip_block.rb +1 -1
  268. data/lib/ionoscloud/models/ip_block_properties.rb +1 -1
  269. data/lib/ionoscloud/models/ip_blocks.rb +1 -1
  270. data/lib/ionoscloud/models/ip_consumer.rb +23 -5
  271. data/lib/ionoscloud/models/ip_failover.rb +1 -1
  272. data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +11 -1
  273. data/lib/ionoscloud/models/kubernetes_cluster.rb +1 -1
  274. data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +1 -1
  275. data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +303 -0
  276. data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +303 -0
  277. data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +27 -5
  278. data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +263 -0
  279. data/lib/ionoscloud/models/{kubernetes_cluster_properties_for_post_and_put.rb → kubernetes_cluster_properties_for_put.rb} +5 -5
  280. data/lib/ionoscloud/models/kubernetes_clusters.rb +2 -2
  281. data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +11 -1
  282. data/lib/ionoscloud/models/kubernetes_node.rb +3 -3
  283. data/lib/ionoscloud/models/kubernetes_node_metadata.rb +1 -1
  284. data/lib/ionoscloud/models/kubernetes_node_pool.rb +1 -1
  285. data/lib/ionoscloud/models/{kubernetes_config.rb → kubernetes_node_pool_for_post.rb} +17 -8
  286. data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +1 -1
  287. data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +27 -5
  288. data/lib/ionoscloud/models/kubernetes_node_pool_lan_routes.rb +227 -0
  289. data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +2 -2
  290. data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +2 -2
  291. data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +2 -153
  292. data/lib/ionoscloud/models/kubernetes_node_pools.rb +2 -2
  293. data/lib/ionoscloud/models/kubernetes_node_properties.rb +12 -7
  294. data/lib/ionoscloud/models/kubernetes_nodes.rb +3 -3
  295. data/lib/ionoscloud/models/label.rb +1 -1
  296. data/lib/ionoscloud/models/label_properties.rb +1 -1
  297. data/lib/ionoscloud/models/label_resource.rb +1 -1
  298. data/lib/ionoscloud/models/label_resource_properties.rb +1 -1
  299. data/lib/ionoscloud/models/label_resources.rb +3 -3
  300. data/lib/ionoscloud/models/labels.rb +3 -3
  301. data/lib/ionoscloud/models/lan.rb +1 -1
  302. data/lib/ionoscloud/models/lan_entities.rb +1 -1
  303. data/lib/ionoscloud/models/lan_nics.rb +1 -1
  304. data/lib/ionoscloud/models/lan_post.rb +1 -1
  305. data/lib/ionoscloud/models/lan_properties.rb +1 -1
  306. data/lib/ionoscloud/models/lan_properties_post.rb +1 -1
  307. data/lib/ionoscloud/models/lans.rb +2 -2
  308. data/lib/ionoscloud/models/loadbalancer.rb +1 -1
  309. data/lib/ionoscloud/models/loadbalancer_entities.rb +1 -1
  310. data/lib/ionoscloud/models/loadbalancer_properties.rb +13 -30
  311. data/lib/ionoscloud/models/loadbalancers.rb +1 -1
  312. data/lib/ionoscloud/models/location.rb +1 -1
  313. data/lib/ionoscloud/models/location_properties.rb +16 -26
  314. data/lib/ionoscloud/models/locations.rb +1 -1
  315. data/lib/ionoscloud/models/nat_gateway.rb +269 -0
  316. data/lib/ionoscloud/models/nat_gateway_entities.rb +225 -0
  317. data/lib/ionoscloud/models/nat_gateway_lan_properties.rb +234 -0
  318. data/lib/ionoscloud/models/nat_gateway_properties.rb +251 -0
  319. data/lib/ionoscloud/models/nat_gateway_put.rb +251 -0
  320. data/lib/ionoscloud/models/nat_gateway_rule.rb +260 -0
  321. data/lib/ionoscloud/models/nat_gateway_rule_properties.rb +291 -0
  322. data/lib/ionoscloud/models/nat_gateway_rule_protocol.rb +39 -0
  323. data/lib/ionoscloud/models/nat_gateway_rule_put.rb +251 -0
  324. data/lib/ionoscloud/models/nat_gateway_rule_type.rb +36 -0
  325. data/lib/ionoscloud/models/nat_gateway_rules.rb +249 -0
  326. data/lib/ionoscloud/models/nat_gateways.rb +278 -0
  327. data/lib/ionoscloud/models/network_load_balancer.rb +269 -0
  328. data/lib/ionoscloud/models/network_load_balancer_entities.rb +225 -0
  329. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule.rb +260 -0
  330. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_health_check.rb +257 -0
  331. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_properties.rb +354 -0
  332. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_put.rb +251 -0
  333. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target.rb +261 -0
  334. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target_health_check.rb +237 -0
  335. data/lib/ionoscloud/models/network_load_balancer_forwarding_rules.rb +278 -0
  336. data/lib/ionoscloud/models/network_load_balancer_properties.rb +276 -0
  337. data/lib/ionoscloud/models/network_load_balancer_put.rb +251 -0
  338. data/lib/ionoscloud/models/network_load_balancers.rb +278 -0
  339. data/lib/ionoscloud/models/nic.rb +1 -1
  340. data/lib/ionoscloud/models/nic_entities.rb +11 -2
  341. data/lib/ionoscloud/models/nic_properties.rb +63 -9
  342. data/lib/ionoscloud/models/nic_put.rb +251 -0
  343. data/lib/ionoscloud/models/nics.rb +1 -1
  344. data/lib/ionoscloud/models/no_state_meta_data.rb +1 -1
  345. data/lib/ionoscloud/models/pagination_links.rb +1 -1
  346. data/lib/ionoscloud/models/peer.rb +1 -1
  347. data/lib/ionoscloud/models/private_cross_connect.rb +1 -1
  348. data/lib/ionoscloud/models/private_cross_connect_properties.rb +1 -1
  349. data/lib/ionoscloud/models/private_cross_connects.rb +1 -1
  350. data/lib/ionoscloud/models/{kubernetes_config_properties.rb → remote_console_url.rb} +12 -12
  351. data/lib/ionoscloud/models/request.rb +1 -1
  352. data/lib/ionoscloud/models/request_metadata.rb +1 -1
  353. data/lib/ionoscloud/models/request_properties.rb +1 -1
  354. data/lib/ionoscloud/models/request_status.rb +1 -1
  355. data/lib/ionoscloud/models/request_status_metadata.rb +1 -1
  356. data/lib/ionoscloud/models/request_target.rb +1 -1
  357. data/lib/ionoscloud/models/requests.rb +1 -1
  358. data/lib/ionoscloud/models/resource.rb +1 -1
  359. data/lib/ionoscloud/models/resource_entities.rb +1 -1
  360. data/lib/ionoscloud/models/resource_groups.rb +1 -1
  361. data/lib/ionoscloud/models/resource_limits.rb +80 -5
  362. data/lib/ionoscloud/models/resource_properties.rb +1 -1
  363. data/lib/ionoscloud/models/resource_reference.rb +1 -1
  364. data/lib/ionoscloud/models/resources.rb +1 -1
  365. data/lib/ionoscloud/models/resources_users.rb +1 -1
  366. data/lib/ionoscloud/models/s3_key.rb +1 -1
  367. data/lib/ionoscloud/models/s3_key_metadata.rb +1 -1
  368. data/lib/ionoscloud/models/s3_key_properties.rb +3 -3
  369. data/lib/ionoscloud/models/s3_keys.rb +1 -1
  370. data/lib/ionoscloud/models/s3_object_storage_sso.rb +1 -1
  371. data/lib/ionoscloud/models/server.rb +1 -1
  372. data/lib/ionoscloud/models/server_entities.rb +1 -1
  373. data/lib/ionoscloud/models/server_properties.rb +28 -8
  374. data/lib/ionoscloud/models/servers.rb +1 -1
  375. data/lib/ionoscloud/models/snapshot.rb +1 -1
  376. data/lib/ionoscloud/models/snapshot_properties.rb +1 -1
  377. data/lib/ionoscloud/models/snapshots.rb +1 -1
  378. data/lib/ionoscloud/models/target_port_range.rb +227 -0
  379. data/lib/ionoscloud/models/template.rb +260 -0
  380. data/lib/ionoscloud/models/template_properties.rb +267 -0
  381. data/lib/ionoscloud/models/templates.rb +249 -0
  382. data/lib/ionoscloud/models/token.rb +217 -0
  383. data/lib/ionoscloud/models/type.rb +10 -1
  384. data/lib/ionoscloud/models/user.rb +1 -1
  385. data/lib/ionoscloud/models/user_metadata.rb +1 -1
  386. data/lib/ionoscloud/models/user_post.rb +221 -0
  387. data/lib/ionoscloud/models/user_properties.rb +2 -12
  388. data/lib/ionoscloud/models/user_properties_post.rb +287 -0
  389. data/lib/ionoscloud/models/user_properties_put.rb +277 -0
  390. data/lib/ionoscloud/models/user_put.rb +231 -0
  391. data/lib/ionoscloud/models/users.rb +1 -1
  392. data/lib/ionoscloud/models/users_entities.rb +1 -1
  393. data/lib/ionoscloud/models/volume.rb +1 -1
  394. data/lib/ionoscloud/models/volume_properties.rb +31 -20
  395. data/lib/ionoscloud/models/volumes.rb +1 -1
  396. data/lib/ionoscloud/version.rb +2 -2
  397. data/spec/api/_api_spec.rb +1 -1
  398. data/spec/api/{backup_unit_api_spec.rb → backup_units_api_spec.rb} +14 -14
  399. data/spec/api/{contract_api_spec.rb → contract_resources_api_spec.rb} +9 -9
  400. data/spec/api/{data_center_api_spec.rb → data_centers_api_spec.rb} +10 -10
  401. data/spec/api/firewall_rules_api_spec.rb +146 -0
  402. data/spec/api/flow_logs_api_spec.rb +140 -0
  403. data/spec/api/{image_api_spec.rb → images_api_spec.rb} +9 -9
  404. data/spec/api/ip_blocks_api_spec.rb +7 -7
  405. data/spec/api/kubernetes_api_spec.rb +10 -22
  406. data/spec/api/{label_api_spec.rb → labels_api_spec.rb} +21 -23
  407. data/spec/api/{lan_api_spec.rb → lans_api_spec.rb} +21 -21
  408. data/spec/api/{load_balancer_api_spec.rb → load_balancers_api_spec.rb} +27 -25
  409. data/spec/api/{location_api_spec.rb → locations_api_spec.rb} +7 -7
  410. data/spec/api/{nic_api_spec.rb → nat_gateways_api_spec.rb} +188 -103
  411. data/spec/api/network_interfaces_api_spec.rb +140 -0
  412. data/spec/api/network_load_balancers_api_spec.rb +342 -0
  413. data/spec/api/{private_cross_connect_api_spec.rb → private_cross_connects_api_spec.rb} +13 -11
  414. data/spec/api/{request_api_spec.rb → requests_api_spec.rb} +20 -12
  415. data/spec/api/{server_api_spec.rb → servers_api_spec.rb} +84 -20
  416. data/spec/api/{snapshot_api_spec.rb → snapshots_api_spec.rb} +12 -12
  417. data/spec/api/templates_api_spec.rb +60 -0
  418. data/spec/api/user_management_api_spec.rb +7 -100
  419. data/spec/api/user_s3_keys_api_spec.rb +128 -0
  420. data/spec/api/{volume_api_spec.rb → volumes_api_spec.rb} +13 -13
  421. data/spec/api_client_spec.rb +1 -1
  422. data/spec/configuration_spec.rb +4 -4
  423. data/spec/models/attached_volumes_spec.rb +1 -1
  424. data/spec/models/backup_unit_properties_spec.rb +1 -1
  425. data/spec/models/backup_unit_spec.rb +1 -1
  426. data/spec/models/backup_unit_sso_spec.rb +1 -1
  427. data/spec/models/backup_units_spec.rb +2 -2
  428. data/spec/models/balanced_nics_spec.rb +1 -1
  429. data/spec/models/cdroms_spec.rb +1 -1
  430. data/spec/models/connectable_datacenter_spec.rb +1 -1
  431. data/spec/models/contract_properties_spec.rb +1 -1
  432. data/spec/models/contract_spec.rb +1 -1
  433. data/spec/models/contracts_spec.rb +52 -0
  434. data/spec/models/cpu_architecture_properties_spec.rb +52 -0
  435. data/spec/models/data_center_entities_spec.rb +13 -1
  436. data/spec/models/datacenter_element_metadata_spec.rb +1 -1
  437. data/spec/models/datacenter_properties_spec.rb +7 -5
  438. data/spec/models/datacenter_spec.rb +1 -1
  439. data/spec/models/datacenters_spec.rb +1 -1
  440. data/spec/models/error_message_spec.rb +1 -1
  441. data/spec/models/error_spec.rb +1 -1
  442. data/spec/models/firewall_rule_spec.rb +1 -1
  443. data/spec/models/firewall_rules_spec.rb +1 -1
  444. data/spec/models/firewallrule_properties_spec.rb +11 -13
  445. data/spec/models/flow_log_properties_spec.rb +60 -0
  446. data/spec/models/flow_log_put_spec.rb +52 -0
  447. data/spec/models/flow_log_spec.rb +58 -0
  448. data/spec/models/flow_logs_spec.rb +70 -0
  449. data/spec/models/group_entities_spec.rb +1 -1
  450. data/spec/models/group_members_spec.rb +1 -1
  451. data/spec/models/group_properties_spec.rb +19 -1
  452. data/spec/models/group_share_properties_spec.rb +1 -1
  453. data/spec/models/group_share_spec.rb +1 -1
  454. data/spec/models/group_shares_spec.rb +1 -1
  455. data/spec/models/group_spec.rb +1 -1
  456. data/spec/models/group_users_spec.rb +1 -1
  457. data/spec/models/groups_spec.rb +1 -1
  458. data/spec/models/image_properties_spec.rb +17 -1
  459. data/spec/models/image_spec.rb +1 -1
  460. data/spec/models/images_spec.rb +1 -1
  461. data/spec/models/info_spec.rb +1 -1
  462. data/spec/models/ip_block_properties_spec.rb +1 -1
  463. data/spec/models/ip_block_spec.rb +1 -1
  464. data/spec/models/ip_blocks_spec.rb +1 -1
  465. data/spec/models/ip_consumer_spec.rb +13 -1
  466. data/spec/models/ip_failover_spec.rb +1 -1
  467. data/spec/models/kubernetes_auto_scaling_spec.rb +1 -1
  468. data/spec/models/kubernetes_cluster_entities_spec.rb +1 -1
  469. data/spec/models/kubernetes_cluster_for_post_spec.rb +68 -0
  470. data/spec/models/kubernetes_cluster_for_put_spec.rb +68 -0
  471. data/spec/models/kubernetes_cluster_properties_for_post_spec.rb +58 -0
  472. data/spec/models/{kubernetes_cluster_properties_for_post_and_put_spec.rb → kubernetes_cluster_properties_for_put_spec.rb} +7 -7
  473. data/spec/models/kubernetes_cluster_properties_spec.rb +13 -1
  474. data/spec/models/kubernetes_cluster_spec.rb +1 -1
  475. data/spec/models/kubernetes_clusters_spec.rb +1 -1
  476. data/spec/models/kubernetes_maintenance_window_spec.rb +1 -1
  477. data/spec/models/kubernetes_node_metadata_spec.rb +1 -1
  478. data/spec/models/{kubernetes_config_spec.rb → kubernetes_node_pool_for_post_spec.rb} +14 -8
  479. data/spec/models/kubernetes_node_pool_for_put_spec.rb +1 -1
  480. data/spec/models/kubernetes_node_pool_lan_routes_spec.rb +40 -0
  481. data/spec/models/kubernetes_node_pool_lan_spec.rb +13 -1
  482. data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +1 -1
  483. data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +1 -51
  484. data/spec/models/kubernetes_node_pool_properties_spec.rb +1 -1
  485. data/spec/models/kubernetes_node_pool_spec.rb +1 -1
  486. data/spec/models/kubernetes_node_pools_spec.rb +1 -1
  487. data/spec/models/kubernetes_node_properties_spec.rb +7 -1
  488. data/spec/models/kubernetes_node_spec.rb +2 -2
  489. data/spec/models/kubernetes_nodes_spec.rb +2 -2
  490. data/spec/models/label_properties_spec.rb +1 -1
  491. data/spec/models/label_resource_properties_spec.rb +1 -1
  492. data/spec/models/label_resource_spec.rb +1 -1
  493. data/spec/models/label_resources_spec.rb +2 -2
  494. data/spec/models/label_spec.rb +1 -1
  495. data/spec/models/labels_spec.rb +2 -2
  496. data/spec/models/lan_entities_spec.rb +1 -1
  497. data/spec/models/lan_nics_spec.rb +1 -1
  498. data/spec/models/lan_post_spec.rb +1 -1
  499. data/spec/models/lan_properties_post_spec.rb +1 -1
  500. data/spec/models/lan_properties_spec.rb +1 -1
  501. data/spec/models/lan_spec.rb +1 -1
  502. data/spec/models/lans_spec.rb +1 -1
  503. data/spec/models/loadbalancer_entities_spec.rb +1 -1
  504. data/spec/models/loadbalancer_properties_spec.rb +1 -5
  505. data/spec/models/loadbalancer_spec.rb +1 -1
  506. data/spec/models/loadbalancers_spec.rb +1 -1
  507. data/spec/models/location_properties_spec.rb +7 -5
  508. data/spec/models/location_spec.rb +1 -1
  509. data/spec/models/locations_spec.rb +1 -1
  510. data/spec/models/nat_gateway_entities_spec.rb +40 -0
  511. data/spec/models/nat_gateway_lan_properties_spec.rb +40 -0
  512. data/spec/models/nat_gateway_properties_spec.rb +46 -0
  513. data/spec/models/nat_gateway_put_spec.rb +52 -0
  514. data/spec/models/nat_gateway_rule_properties_spec.rb +70 -0
  515. data/spec/models/nat_gateway_rule_protocol_spec.rb +28 -0
  516. data/spec/models/nat_gateway_rule_put_spec.rb +52 -0
  517. data/spec/models/nat_gateway_rule_spec.rb +58 -0
  518. data/spec/models/nat_gateway_rule_type_spec.rb +28 -0
  519. data/spec/models/nat_gateway_rules_spec.rb +52 -0
  520. data/spec/models/nat_gateway_spec.rb +64 -0
  521. data/spec/models/nat_gateways_spec.rb +70 -0
  522. data/spec/models/network_load_balancer_entities_spec.rb +40 -0
  523. data/spec/models/network_load_balancer_forwarding_rule_health_check_spec.rb +58 -0
  524. data/spec/models/network_load_balancer_forwarding_rule_properties_spec.rb +78 -0
  525. data/spec/models/network_load_balancer_forwarding_rule_put_spec.rb +52 -0
  526. data/spec/models/network_load_balancer_forwarding_rule_spec.rb +58 -0
  527. data/spec/models/network_load_balancer_forwarding_rule_target_health_check_spec.rb +46 -0
  528. data/spec/models/network_load_balancer_forwarding_rule_target_spec.rb +52 -0
  529. data/spec/models/network_load_balancer_forwarding_rules_spec.rb +70 -0
  530. data/spec/models/network_load_balancer_properties_spec.rb +58 -0
  531. data/spec/models/network_load_balancer_put_spec.rb +52 -0
  532. data/spec/models/network_load_balancer_spec.rb +64 -0
  533. data/spec/models/network_load_balancers_spec.rb +70 -0
  534. data/spec/models/nic_entities_spec.rb +7 -1
  535. data/spec/models/nic_properties_spec.rb +18 -2
  536. data/spec/models/nic_put_spec.rb +52 -0
  537. data/spec/models/nic_spec.rb +1 -1
  538. data/spec/models/nics_spec.rb +1 -1
  539. data/spec/models/no_state_meta_data_spec.rb +1 -1
  540. data/spec/models/pagination_links_spec.rb +1 -1
  541. data/spec/models/peer_spec.rb +1 -1
  542. data/spec/models/private_cross_connect_properties_spec.rb +1 -1
  543. data/spec/models/private_cross_connect_spec.rb +1 -1
  544. data/spec/models/private_cross_connects_spec.rb +1 -1
  545. data/spec/models/{kubernetes_config_properties_spec.rb → remote_console_url_spec.rb} +8 -8
  546. data/spec/models/request_metadata_spec.rb +1 -1
  547. data/spec/models/request_properties_spec.rb +1 -1
  548. data/spec/models/request_spec.rb +1 -1
  549. data/spec/models/request_status_metadata_spec.rb +1 -1
  550. data/spec/models/request_status_spec.rb +1 -1
  551. data/spec/models/request_target_spec.rb +1 -1
  552. data/spec/models/requests_spec.rb +1 -1
  553. data/spec/models/resource_entities_spec.rb +1 -1
  554. data/spec/models/resource_groups_spec.rb +1 -1
  555. data/spec/models/resource_limits_spec.rb +31 -1
  556. data/spec/models/resource_properties_spec.rb +1 -1
  557. data/spec/models/resource_reference_spec.rb +1 -1
  558. data/spec/models/resource_spec.rb +1 -1
  559. data/spec/models/resources_spec.rb +1 -1
  560. data/spec/models/resources_users_spec.rb +1 -1
  561. data/spec/models/s3_key_metadata_spec.rb +1 -1
  562. data/spec/models/s3_key_properties_spec.rb +1 -1
  563. data/spec/models/s3_key_spec.rb +1 -1
  564. data/spec/models/s3_keys_spec.rb +1 -1
  565. data/spec/models/s3_object_storage_sso_spec.rb +1 -1
  566. data/spec/models/server_entities_spec.rb +1 -1
  567. data/spec/models/server_properties_spec.rb +14 -2
  568. data/spec/models/server_spec.rb +1 -1
  569. data/spec/models/servers_spec.rb +1 -1
  570. data/spec/models/snapshot_properties_spec.rb +1 -1
  571. data/spec/models/snapshot_spec.rb +1 -1
  572. data/spec/models/snapshots_spec.rb +1 -1
  573. data/spec/models/target_port_range_spec.rb +40 -0
  574. data/spec/models/template_properties_spec.rb +52 -0
  575. data/spec/models/template_spec.rb +58 -0
  576. data/spec/models/templates_spec.rb +52 -0
  577. data/spec/models/token_spec.rb +34 -0
  578. data/spec/models/type_spec.rb +1 -1
  579. data/spec/models/user_metadata_spec.rb +1 -1
  580. data/spec/models/user_post_spec.rb +34 -0
  581. data/spec/models/user_properties_post_spec.rb +76 -0
  582. data/spec/models/user_properties_put_spec.rb +70 -0
  583. data/spec/models/user_properties_spec.rb +1 -7
  584. data/spec/models/user_put_spec.rb +40 -0
  585. data/spec/models/user_spec.rb +1 -1
  586. data/spec/models/users_entities_spec.rb +1 -1
  587. data/spec/models/users_spec.rb +1 -1
  588. data/spec/models/volume_properties_spec.rb +14 -8
  589. data/spec/models/volume_spec.rb +1 -1
  590. data/spec/models/volumes_spec.rb +1 -1
  591. data/spec/spec_helper.rb +1 -1
  592. metadata +505 -160
  593. data/DOCS.md +0 -14618
  594. data/lib/ionoscloud/api/nic_api.rb +0 -1222
@@ -0,0 +1,50 @@
1
+ # KubernetesNodePoolProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | 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. | |
8
+ | **datacenter_id** | **String** | A valid uuid of the datacenter on which user has access | |
9
+ | **node_count** | **Integer** | Number of nodes part of the Node Pool | |
10
+ | **cpu_family** | **String** | A valid cpu family name | |
11
+ | **cores_count** | **Integer** | Number of cores for node | |
12
+ | **ram_size** | **Integer** | RAM size for node, minimum size is 2048MB. Ram size must be set to multiple of 1024MB. | |
13
+ | **availability_zone** | **String** | The availability zone in which the target VM should exist | |
14
+ | **storage_type** | **String** | Hardware type of the volume | |
15
+ | **storage_size** | **Integer** | The size of the volume in GB. The size should be greater than 10GB. | |
16
+ | **k8s_version** | **String** | 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. | [optional] |
17
+ | **maintenance_window** | [**KubernetesMaintenanceWindow**](KubernetesMaintenanceWindow.md) | | [optional] |
18
+ | **auto_scaling** | [**KubernetesAutoScaling**](KubernetesAutoScaling.md) | | [optional] |
19
+ | **lans** | [**Array<KubernetesNodePoolLan>**](KubernetesNodePoolLan.md) | array of additional LANs attached to worker nodes | [optional] |
20
+ | **labels** | **Hash<String, String>** | map of labels attached to node pool | [optional] |
21
+ | **annotations** | **Hash<String, String>** | map of annotations attached to node pool | [optional] |
22
+ | **public_ips** | **Array<String>** | 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. | [optional] |
23
+ | **available_upgrade_versions** | **Array<String>** | List of available versions for upgrading the node pool | [optional] |
24
+
25
+ ## Example
26
+
27
+ ```ruby
28
+ require 'ionoscloud'
29
+
30
+ instance = Ionoscloud::KubernetesNodePoolProperties.new(
31
+ name: k8s-node-pool,
32
+ datacenter_id: 1e072e52-2ed3-492f-b6b6-c6b116907521,
33
+ node_count: 2,
34
+ cpu_family: AMD_OPTERON,
35
+ cores_count: 4,
36
+ ram_size: 2048,
37
+ availability_zone: AUTO,
38
+ storage_type: HDD,
39
+ storage_size: 100,
40
+ k8s_version: 1.15.4,
41
+ maintenance_window: null,
42
+ auto_scaling: null,
43
+ lans: null,
44
+ labels: null,
45
+ annotations: null,
46
+ public_ips: [81.173.1.2, 82.231.2.5, 92.221.2.4],
47
+ available_upgrade_versions: [1.16.4, 1.17.7]
48
+ )
49
+ ```
50
+
@@ -0,0 +1,48 @@
1
+ # KubernetesNodePoolPropertiesForPost
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | 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. | |
8
+ | **datacenter_id** | **String** | A valid uuid of the datacenter on which user has access | |
9
+ | **node_count** | **Integer** | Number of nodes part of the Node Pool | |
10
+ | **cpu_family** | **String** | A valid cpu family name | |
11
+ | **cores_count** | **Integer** | Number of cores for node | |
12
+ | **ram_size** | **Integer** | RAM size for node, minimum size is 2048MB. Ram size must be set to multiple of 1024MB. | |
13
+ | **availability_zone** | **String** | The availability zone in which the target VM should exist | |
14
+ | **storage_type** | **String** | Hardware type of the volume | |
15
+ | **storage_size** | **Integer** | The size of the volume in GB. The size should be greater than 10GB. | |
16
+ | **k8s_version** | **String** | 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. | [optional] |
17
+ | **maintenance_window** | [**KubernetesMaintenanceWindow**](KubernetesMaintenanceWindow.md) | | [optional] |
18
+ | **auto_scaling** | [**KubernetesAutoScaling**](KubernetesAutoScaling.md) | | [optional] |
19
+ | **lans** | [**Array<KubernetesNodePoolLan>**](KubernetesNodePoolLan.md) | array of additional LANs attached to worker nodes | [optional] |
20
+ | **labels** | **Hash<String, String>** | map of labels attached to node pool | [optional] |
21
+ | **annotations** | **Hash<String, String>** | map of annotations attached to node pool | [optional] |
22
+ | **public_ips** | **Array<String>** | 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. | [optional] |
23
+
24
+ ## Example
25
+
26
+ ```ruby
27
+ require 'ionoscloud'
28
+
29
+ instance = Ionoscloud::KubernetesNodePoolPropertiesForPost.new(
30
+ name: k8s-node-pool,
31
+ datacenter_id: 1e072e52-2ed3-492f-b6b6-c6b116907521,
32
+ node_count: 2,
33
+ cpu_family: AMD_OPTERON,
34
+ cores_count: 4,
35
+ ram_size: 2048,
36
+ availability_zone: AUTO,
37
+ storage_type: HDD,
38
+ storage_size: 100,
39
+ k8s_version: 1.15.4,
40
+ maintenance_window: null,
41
+ auto_scaling: null,
42
+ lans: null,
43
+ labels: null,
44
+ annotations: null,
45
+ public_ips: [81.173.1.2, 82.231.2.5, 92.221.2.4]
46
+ )
47
+ ```
48
+
@@ -0,0 +1,34 @@
1
+ # KubernetesNodePoolPropertiesForPut
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | 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. | |
8
+ | **node_count** | **Integer** | Number of nodes part of the Node Pool | |
9
+ | **k8s_version** | **String** | 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. | [optional] |
10
+ | **maintenance_window** | [**KubernetesMaintenanceWindow**](KubernetesMaintenanceWindow.md) | | [optional] |
11
+ | **auto_scaling** | [**KubernetesAutoScaling**](KubernetesAutoScaling.md) | | [optional] |
12
+ | **lans** | [**Array<KubernetesNodePoolLan>**](KubernetesNodePoolLan.md) | array of additional LANs attached to worker nodes | [optional] |
13
+ | **labels** | **Hash<String, String>** | map of labels attached to node pool | [optional] |
14
+ | **annotations** | **Hash<String, String>** | map of annotations attached to node pool | [optional] |
15
+ | **public_ips** | **Array<String>** | 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. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'ionoscloud'
21
+
22
+ instance = Ionoscloud::KubernetesNodePoolPropertiesForPut.new(
23
+ name: k8s-node-pool,
24
+ node_count: 2,
25
+ k8s_version: 1.15.4,
26
+ maintenance_window: null,
27
+ auto_scaling: null,
28
+ lans: null,
29
+ labels: null,
30
+ annotations: null,
31
+ public_ips: [81.173.1.2, 82.231.2.5, 92.221.2.4]
32
+ )
33
+ ```
34
+
@@ -0,0 +1,24 @@
1
+ # KubernetesNodePools
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique representation for Kubernetes Node Pool as a collection on a resource. | [optional][readonly] |
8
+ | **type** | **String** | The type of resource within a collection | [optional][readonly] |
9
+ | **href** | **String** | URL to the collection representation (absolute path) | [optional][readonly] |
10
+ | **items** | [**Array<KubernetesNodePool>**](KubernetesNodePool.md) | Array of items in that collection | [optional][readonly] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud'
16
+
17
+ instance = Ionoscloud::KubernetesNodePools.new(
18
+ id: 1e072e52-2ed3-492f-b6b6-c6b116907527/nodepools,
19
+ type: collection,
20
+ href: <RESOURCE-URI>,
21
+ items: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # KubernetesNodeProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | A Kubernetes Node Name. | |
8
+ | **public_ip** | **String** | A valid public IP. | [optional] |
9
+ | **private_ip** | **String** | A valid private IP. | [optional] |
10
+ | **k8s_version** | **String** | The kubernetes version in which a nodepool is running. This imposes restrictions on what kubernetes versions can be run in a cluster&#39;s nodepools. Additionally, not all kubernetes versions are viable upgrade targets for all prior versions. | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud'
16
+
17
+ instance = Ionoscloud::KubernetesNodeProperties.new(
18
+ name: k8s-node,
19
+ public_ip: 192.168.23.2,
20
+ private_ip: 192.168.23.2,
21
+ k8s_version: 1.15.4
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # KubernetesNodes
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique representation for Kubernetes Node Pool as a collection on a resource. | [optional][readonly] |
8
+ | **type** | **String** | The type of resource within a collection | [optional][readonly] |
9
+ | **href** | **String** | URL to the collection representation (absolute path) | [optional][readonly] |
10
+ | **items** | [**Array&lt;KubernetesNode&gt;**](KubernetesNode.md) | Array of items in that collection | [optional][readonly] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud'
16
+
17
+ instance = Ionoscloud::KubernetesNodes.new(
18
+ id: 1e072e52-2ed3-492f-b6b6-c6b116907527/nodepools,
19
+ type: collection,
20
+ href: <RESOURCE-URI>,
21
+ items: null
22
+ )
23
+ ```
24
+
data/docs/Label.md ADDED
@@ -0,0 +1,26 @@
1
+ # Label
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Label is identified using standard URN. | [optional][readonly] |
8
+ | **type** | **String** | The type of object that has been created | [optional][readonly] |
9
+ | **href** | **String** | URL to the object representation (absolute path) | [optional][readonly] |
10
+ | **metadata** | [**NoStateMetaData**](NoStateMetaData.md) | | [optional] |
11
+ | **properties** | [**LabelProperties**](LabelProperties.md) | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud'
17
+
18
+ instance = Ionoscloud::Label.new(
19
+ id: urn:label:datacenter:700e1cab-99b2-4c30-ba8c-1d273ddba022:environment,
20
+ type: null,
21
+ href: <RESOURCE-URI>,
22
+ metadata: null,
23
+ properties: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # LabelProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | A Label Key | [optional] |
8
+ | **value** | **String** | A Label Value | [optional] |
9
+ | **resource_id** | **String** | The id of the resource | [optional] |
10
+ | **resource_type** | **String** | The type of the resource on which the label is applied. | [optional] |
11
+ | **resource_href** | **String** | URL to the Resource (absolute path) on which the label is applied. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud'
17
+
18
+ instance = Ionoscloud::LabelProperties.new(
19
+ key: environment,
20
+ value: production,
21
+ resource_id: 700e1cab-99b2-4c30-ba8c-1d273ddba022,
22
+ resource_type: datacenter,
23
+ resource_href: https://<hostname>/datacenters/700e1cab-99b2-4c30-ba8c-1d273ddba022
24
+ )
25
+ ```
26
+
@@ -0,0 +1,26 @@
1
+ # LabelResource
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Label on a resource is identified using label key. | [optional][readonly] |
8
+ | **type** | **String** | The type of object that has been created | [optional][readonly] |
9
+ | **href** | **String** | URL to the object representation (absolute path) | [optional][readonly] |
10
+ | **metadata** | [**NoStateMetaData**](NoStateMetaData.md) | | [optional] |
11
+ | **properties** | [**LabelResourceProperties**](LabelResourceProperties.md) | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud'
17
+
18
+ instance = Ionoscloud::LabelResource.new(
19
+ id: environment,
20
+ type: null,
21
+ href: <RESOURCE-URI>,
22
+ metadata: null,
23
+ properties: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # LabelResourceProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **key** | **String** | A Label Key | [optional] |
8
+ | **value** | **String** | A Label Value | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ionoscloud'
14
+
15
+ instance = Ionoscloud::LabelResourceProperties.new(
16
+ key: environment,
17
+ value: production
18
+ )
19
+ ```
20
+
@@ -0,0 +1,30 @@
1
+ # LabelResources
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique representation for Label as a collection on a resource. | [optional][readonly] |
8
+ | **type** | **String** | The type of resource within a collection | [optional][readonly] |
9
+ | **href** | **String** | URL to the collection representation (absolute path) | [optional][readonly] |
10
+ | **items** | [**Array&lt;LabelResource&gt;**](LabelResource.md) | Array of items in that collection | [optional][readonly] |
11
+ | **offset** | **Float** | the offset (if specified in the request) | [optional] |
12
+ | **limit** | **Float** | the limit (if specified in the request) | [optional] |
13
+ | **_links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'ionoscloud'
19
+
20
+ instance = Ionoscloud::LabelResources.new(
21
+ id: labels,
22
+ type: collection,
23
+ href: <RESOURCE-URI>,
24
+ items: null,
25
+ offset: 0,
26
+ limit: 1000,
27
+ _links: null
28
+ )
29
+ ```
30
+
data/docs/Labels.md ADDED
@@ -0,0 +1,24 @@
1
+ # Labels
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique representation for Label as a collection of resource. | [optional][readonly] |
8
+ | **type** | **String** | The type of resource within a collection | [optional][readonly] |
9
+ | **href** | **String** | URL to the collection representation (absolute path) | [optional][readonly] |
10
+ | **items** | [**Array&lt;Label&gt;**](Label.md) | Array of items in that collection | [optional][readonly] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud'
16
+
17
+ instance = Ionoscloud::Labels.new(
18
+ id: labels,
19
+ type: collection,
20
+ href: <RESOURCE-URI>,
21
+ items: null
22
+ )
23
+ ```
24
+
data/docs/LabelsApi.md ADDED
@@ -0,0 +1,2346 @@
1
+ # LabelsApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/cloudapi/v6*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**datacenters_labels_delete**](LabelsApi.md#datacenters_labels_delete) | **DELETE** /datacenters/{datacenterId}/labels/{key} | Delete a Label from Data Center |
8
+ | [**datacenters_labels_find_by_key**](LabelsApi.md#datacenters_labels_find_by_key) | **GET** /datacenters/{datacenterId}/labels/{key} | Retrieve a Label of Data Center |
9
+ | [**datacenters_labels_get**](LabelsApi.md#datacenters_labels_get) | **GET** /datacenters/{datacenterId}/labels | List all Data Center Labels |
10
+ | [**datacenters_labels_post**](LabelsApi.md#datacenters_labels_post) | **POST** /datacenters/{datacenterId}/labels | Add a Label to Data Center |
11
+ | [**datacenters_labels_put**](LabelsApi.md#datacenters_labels_put) | **PUT** /datacenters/{datacenterId}/labels/{key} | Modify a Label of Data Center |
12
+ | [**datacenters_servers_labels_delete**](LabelsApi.md#datacenters_servers_labels_delete) | **DELETE** /datacenters/{datacenterId}/servers/{serverId}/labels/{key} | Delete a Label from Server |
13
+ | [**datacenters_servers_labels_find_by_key**](LabelsApi.md#datacenters_servers_labels_find_by_key) | **GET** /datacenters/{datacenterId}/servers/{serverId}/labels/{key} | Retrieve a Label of Server |
14
+ | [**datacenters_servers_labels_get**](LabelsApi.md#datacenters_servers_labels_get) | **GET** /datacenters/{datacenterId}/servers/{serverId}/labels | List all Server Labels |
15
+ | [**datacenters_servers_labels_post**](LabelsApi.md#datacenters_servers_labels_post) | **POST** /datacenters/{datacenterId}/servers/{serverId}/labels | Add a Label to Server |
16
+ | [**datacenters_servers_labels_put**](LabelsApi.md#datacenters_servers_labels_put) | **PUT** /datacenters/{datacenterId}/servers/{serverId}/labels/{key} | Modify a Label of Server |
17
+ | [**datacenters_volumes_labels_delete**](LabelsApi.md#datacenters_volumes_labels_delete) | **DELETE** /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key} | Delete a Label from Volume |
18
+ | [**datacenters_volumes_labels_find_by_key**](LabelsApi.md#datacenters_volumes_labels_find_by_key) | **GET** /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key} | Retrieve a Label of Volume |
19
+ | [**datacenters_volumes_labels_get**](LabelsApi.md#datacenters_volumes_labels_get) | **GET** /datacenters/{datacenterId}/volumes/{volumeId}/labels | List all Volume Labels |
20
+ | [**datacenters_volumes_labels_post**](LabelsApi.md#datacenters_volumes_labels_post) | **POST** /datacenters/{datacenterId}/volumes/{volumeId}/labels | Add a Label to Volume |
21
+ | [**datacenters_volumes_labels_put**](LabelsApi.md#datacenters_volumes_labels_put) | **PUT** /datacenters/{datacenterId}/volumes/{volumeId}/labels/{key} | Modify a Label of Volume |
22
+ | [**ipblocks_labels_delete**](LabelsApi.md#ipblocks_labels_delete) | **DELETE** /ipblocks/{ipblockId}/labels/{key} | Delete a Label from IP Block |
23
+ | [**ipblocks_labels_find_by_key**](LabelsApi.md#ipblocks_labels_find_by_key) | **GET** /ipblocks/{ipblockId}/labels/{key} | Retrieve a Label of IP Block |
24
+ | [**ipblocks_labels_get**](LabelsApi.md#ipblocks_labels_get) | **GET** /ipblocks/{ipblockId}/labels | List all Ip Block Labels |
25
+ | [**ipblocks_labels_post**](LabelsApi.md#ipblocks_labels_post) | **POST** /ipblocks/{ipblockId}/labels | Add a Label to IP Block |
26
+ | [**ipblocks_labels_put**](LabelsApi.md#ipblocks_labels_put) | **PUT** /ipblocks/{ipblockId}/labels/{key} | Modify a Label of IP Block |
27
+ | [**labels_find_by_urn**](LabelsApi.md#labels_find_by_urn) | **GET** /labels/{labelurn} | Returns the label by its URN. |
28
+ | [**labels_get**](LabelsApi.md#labels_get) | **GET** /labels | List Labels |
29
+ | [**snapshots_labels_delete**](LabelsApi.md#snapshots_labels_delete) | **DELETE** /snapshots/{snapshotId}/labels/{key} | Delete a Label from Snapshot |
30
+ | [**snapshots_labels_find_by_key**](LabelsApi.md#snapshots_labels_find_by_key) | **GET** /snapshots/{snapshotId}/labels/{key} | Retrieve a Label of Snapshot |
31
+ | [**snapshots_labels_get**](LabelsApi.md#snapshots_labels_get) | **GET** /snapshots/{snapshotId}/labels | List all Snapshot Labels |
32
+ | [**snapshots_labels_post**](LabelsApi.md#snapshots_labels_post) | **POST** /snapshots/{snapshotId}/labels | Add a Label to Snapshot |
33
+ | [**snapshots_labels_put**](LabelsApi.md#snapshots_labels_put) | **PUT** /snapshots/{snapshotId}/labels/{key} | Modify a Label of Snapshot |
34
+
35
+
36
+ ## datacenters_labels_delete
37
+
38
+ > datacenters_labels_delete(datacenter_id, key, opts)
39
+
40
+ Delete a Label from Data Center
41
+
42
+ This will remove a label from the data center.
43
+
44
+ ### Examples
45
+
46
+ ```ruby
47
+ require 'time'
48
+ require 'ionoscloud'
49
+ # setup authorization
50
+ Ionoscloud.configure do |config|
51
+ # Configure HTTP basic authorization: Basic Authentication
52
+ config.username = 'YOUR USERNAME'
53
+ config.password = 'YOUR PASSWORD'
54
+
55
+ # Configure API key authorization: Token Authentication
56
+ config.api_key['Authorization'] = 'YOUR API KEY'
57
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
58
+ # config.api_key_prefix['Authorization'] = 'Bearer'
59
+ end
60
+
61
+ api_instance = Ionoscloud::LabelsApi.new
62
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Data Center
63
+ key = 'key_example' # String | The key of the Label
64
+ opts = {
65
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
66
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
67
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
68
+ }
69
+
70
+ begin
71
+ # Delete a Label from Data Center
72
+ api_instance.datacenters_labels_delete(datacenter_id, key, opts)
73
+ rescue Ionoscloud::ApiError => e
74
+ puts "Error when calling LabelsApi->datacenters_labels_delete: #{e}"
75
+ end
76
+ ```
77
+
78
+ #### Using the datacenters_labels_delete_with_http_info variant
79
+
80
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
81
+
82
+ > <Array(nil, Integer, Hash)> datacenters_labels_delete_with_http_info(datacenter_id, key, opts)
83
+
84
+ ```ruby
85
+ begin
86
+ # Delete a Label from Data Center
87
+ data, status_code, headers = api_instance.datacenters_labels_delete_with_http_info(datacenter_id, key, opts)
88
+ p status_code # => 2xx
89
+ p headers # => { ... }
90
+ p data # => nil
91
+ rescue Ionoscloud::ApiError => e
92
+ puts "Error when calling LabelsApi->datacenters_labels_delete_with_http_info: #{e}"
93
+ end
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ | Name | Type | Description | Notes |
99
+ | ---- | ---- | ----------- | ----- |
100
+ | **datacenter_id** | **String** | The unique ID of the Data Center | |
101
+ | **key** | **String** | The key of the Label | |
102
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
103
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
104
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
105
+
106
+ ### Return type
107
+
108
+ nil (empty response body)
109
+
110
+ ### Authorization
111
+
112
+ Basic Authentication, Token Authentication
113
+
114
+ ### HTTP request headers
115
+
116
+ - **Content-Type**: Not defined
117
+ - **Accept**: application/json
118
+
119
+
120
+ ## datacenters_labels_find_by_key
121
+
122
+ > <LabelResource> datacenters_labels_find_by_key(datacenter_id, key, opts)
123
+
124
+ Retrieve a Label of Data Center
125
+
126
+ This will retrieve the properties of a associated label to a data center.
127
+
128
+ ### Examples
129
+
130
+ ```ruby
131
+ require 'time'
132
+ require 'ionoscloud'
133
+ # setup authorization
134
+ Ionoscloud.configure do |config|
135
+ # Configure HTTP basic authorization: Basic Authentication
136
+ config.username = 'YOUR USERNAME'
137
+ config.password = 'YOUR PASSWORD'
138
+
139
+ # Configure API key authorization: Token Authentication
140
+ config.api_key['Authorization'] = 'YOUR API KEY'
141
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
142
+ # config.api_key_prefix['Authorization'] = 'Bearer'
143
+ end
144
+
145
+ api_instance = Ionoscloud::LabelsApi.new
146
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Data Center
147
+ key = 'key_example' # String | The key of the Label
148
+ opts = {
149
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
150
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
151
+ x_contract_number: 56, # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
152
+ offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with limit for pagination)
153
+ limit: 56 # Integer | the maximum number of elements to return (use together with offset for pagination)
154
+ }
155
+
156
+ begin
157
+ # Retrieve a Label of Data Center
158
+ result = api_instance.datacenters_labels_find_by_key(datacenter_id, key, opts)
159
+ p result
160
+ rescue Ionoscloud::ApiError => e
161
+ puts "Error when calling LabelsApi->datacenters_labels_find_by_key: #{e}"
162
+ end
163
+ ```
164
+
165
+ #### Using the datacenters_labels_find_by_key_with_http_info variant
166
+
167
+ This returns an Array which contains the response data, status code and headers.
168
+
169
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_labels_find_by_key_with_http_info(datacenter_id, key, opts)
170
+
171
+ ```ruby
172
+ begin
173
+ # Retrieve a Label of Data Center
174
+ data, status_code, headers = api_instance.datacenters_labels_find_by_key_with_http_info(datacenter_id, key, opts)
175
+ p status_code # => 2xx
176
+ p headers # => { ... }
177
+ p data # => <LabelResource>
178
+ rescue Ionoscloud::ApiError => e
179
+ puts "Error when calling LabelsApi->datacenters_labels_find_by_key_with_http_info: #{e}"
180
+ end
181
+ ```
182
+
183
+ ### Parameters
184
+
185
+ | Name | Type | Description | Notes |
186
+ | ---- | ---- | ----------- | ----- |
187
+ | **datacenter_id** | **String** | The unique ID of the Data Center | |
188
+ | **key** | **String** | The key of the Label | |
189
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
190
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
191
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
192
+ | **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with limit for pagination) | [optional][default to 0] |
193
+ | **limit** | **Integer** | the maximum number of elements to return (use together with offset for pagination) | [optional][default to 1000] |
194
+
195
+ ### Return type
196
+
197
+ [**LabelResource**](LabelResource.md)
198
+
199
+ ### Authorization
200
+
201
+ Basic Authentication, Token Authentication
202
+
203
+ ### HTTP request headers
204
+
205
+ - **Content-Type**: Not defined
206
+ - **Accept**: application/json
207
+
208
+
209
+ ## datacenters_labels_get
210
+
211
+ > <LabelResources> datacenters_labels_get(datacenter_id, opts)
212
+
213
+ List all Data Center Labels
214
+
215
+ You can retrieve a list of all labels associated with a data center.
216
+
217
+ ### Examples
218
+
219
+ ```ruby
220
+ require 'time'
221
+ require 'ionoscloud'
222
+ # setup authorization
223
+ Ionoscloud.configure do |config|
224
+ # Configure HTTP basic authorization: Basic Authentication
225
+ config.username = 'YOUR USERNAME'
226
+ config.password = 'YOUR PASSWORD'
227
+
228
+ # Configure API key authorization: Token Authentication
229
+ config.api_key['Authorization'] = 'YOUR API KEY'
230
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
231
+ # config.api_key_prefix['Authorization'] = 'Bearer'
232
+ end
233
+
234
+ api_instance = Ionoscloud::LabelsApi.new
235
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Data Center
236
+ opts = {
237
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
238
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
239
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
240
+ }
241
+
242
+ begin
243
+ # List all Data Center Labels
244
+ result = api_instance.datacenters_labels_get(datacenter_id, opts)
245
+ p result
246
+ rescue Ionoscloud::ApiError => e
247
+ puts "Error when calling LabelsApi->datacenters_labels_get: #{e}"
248
+ end
249
+ ```
250
+
251
+ #### Using the datacenters_labels_get_with_http_info variant
252
+
253
+ This returns an Array which contains the response data, status code and headers.
254
+
255
+ > <Array(<LabelResources>, Integer, Hash)> datacenters_labels_get_with_http_info(datacenter_id, opts)
256
+
257
+ ```ruby
258
+ begin
259
+ # List all Data Center Labels
260
+ data, status_code, headers = api_instance.datacenters_labels_get_with_http_info(datacenter_id, opts)
261
+ p status_code # => 2xx
262
+ p headers # => { ... }
263
+ p data # => <LabelResources>
264
+ rescue Ionoscloud::ApiError => e
265
+ puts "Error when calling LabelsApi->datacenters_labels_get_with_http_info: #{e}"
266
+ end
267
+ ```
268
+
269
+ ### Parameters
270
+
271
+ | Name | Type | Description | Notes |
272
+ | ---- | ---- | ----------- | ----- |
273
+ | **datacenter_id** | **String** | The unique ID of the Data Center | |
274
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
275
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
276
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
277
+
278
+ ### Return type
279
+
280
+ [**LabelResources**](LabelResources.md)
281
+
282
+ ### Authorization
283
+
284
+ Basic Authentication, Token Authentication
285
+
286
+ ### HTTP request headers
287
+
288
+ - **Content-Type**: Not defined
289
+ - **Accept**: application/json
290
+
291
+
292
+ ## datacenters_labels_post
293
+
294
+ > <LabelResource> datacenters_labels_post(datacenter_id, label, opts)
295
+
296
+ Add a Label to Data Center
297
+
298
+ This will add a label to the data center.
299
+
300
+ ### Examples
301
+
302
+ ```ruby
303
+ require 'time'
304
+ require 'ionoscloud'
305
+ # setup authorization
306
+ Ionoscloud.configure do |config|
307
+ # Configure HTTP basic authorization: Basic Authentication
308
+ config.username = 'YOUR USERNAME'
309
+ config.password = 'YOUR PASSWORD'
310
+
311
+ # Configure API key authorization: Token Authentication
312
+ config.api_key['Authorization'] = 'YOUR API KEY'
313
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
314
+ # config.api_key_prefix['Authorization'] = 'Bearer'
315
+ end
316
+
317
+ api_instance = Ionoscloud::LabelsApi.new
318
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Data Center
319
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Label to be added
320
+ opts = {
321
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
322
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
323
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
324
+ }
325
+
326
+ begin
327
+ # Add a Label to Data Center
328
+ result = api_instance.datacenters_labels_post(datacenter_id, label, opts)
329
+ p result
330
+ rescue Ionoscloud::ApiError => e
331
+ puts "Error when calling LabelsApi->datacenters_labels_post: #{e}"
332
+ end
333
+ ```
334
+
335
+ #### Using the datacenters_labels_post_with_http_info variant
336
+
337
+ This returns an Array which contains the response data, status code and headers.
338
+
339
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_labels_post_with_http_info(datacenter_id, label, opts)
340
+
341
+ ```ruby
342
+ begin
343
+ # Add a Label to Data Center
344
+ data, status_code, headers = api_instance.datacenters_labels_post_with_http_info(datacenter_id, label, opts)
345
+ p status_code # => 2xx
346
+ p headers # => { ... }
347
+ p data # => <LabelResource>
348
+ rescue Ionoscloud::ApiError => e
349
+ puts "Error when calling LabelsApi->datacenters_labels_post_with_http_info: #{e}"
350
+ end
351
+ ```
352
+
353
+ ### Parameters
354
+
355
+ | Name | Type | Description | Notes |
356
+ | ---- | ---- | ----------- | ----- |
357
+ | **datacenter_id** | **String** | The unique ID of the Data Center | |
358
+ | **label** | [**LabelResource**](LabelResource.md) | Label to be added | |
359
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
360
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
361
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
362
+
363
+ ### Return type
364
+
365
+ [**LabelResource**](LabelResource.md)
366
+
367
+ ### Authorization
368
+
369
+ Basic Authentication, Token Authentication
370
+
371
+ ### HTTP request headers
372
+
373
+ - **Content-Type**: application/json
374
+ - **Accept**: application/json
375
+
376
+
377
+ ## datacenters_labels_put
378
+
379
+ > <LabelResource> datacenters_labels_put(datacenter_id, key, label, opts)
380
+
381
+ Modify a Label of Data Center
382
+
383
+ This will modify the value of the label on a data center.
384
+
385
+ ### Examples
386
+
387
+ ```ruby
388
+ require 'time'
389
+ require 'ionoscloud'
390
+ # setup authorization
391
+ Ionoscloud.configure do |config|
392
+ # Configure HTTP basic authorization: Basic Authentication
393
+ config.username = 'YOUR USERNAME'
394
+ config.password = 'YOUR PASSWORD'
395
+
396
+ # Configure API key authorization: Token Authentication
397
+ config.api_key['Authorization'] = 'YOUR API KEY'
398
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
399
+ # config.api_key_prefix['Authorization'] = 'Bearer'
400
+ end
401
+
402
+ api_instance = Ionoscloud::LabelsApi.new
403
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Data Center
404
+ key = 'key_example' # String | The key of the Label
405
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Modified Label
406
+ opts = {
407
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
408
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
409
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
410
+ }
411
+
412
+ begin
413
+ # Modify a Label of Data Center
414
+ result = api_instance.datacenters_labels_put(datacenter_id, key, label, opts)
415
+ p result
416
+ rescue Ionoscloud::ApiError => e
417
+ puts "Error when calling LabelsApi->datacenters_labels_put: #{e}"
418
+ end
419
+ ```
420
+
421
+ #### Using the datacenters_labels_put_with_http_info variant
422
+
423
+ This returns an Array which contains the response data, status code and headers.
424
+
425
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_labels_put_with_http_info(datacenter_id, key, label, opts)
426
+
427
+ ```ruby
428
+ begin
429
+ # Modify a Label of Data Center
430
+ data, status_code, headers = api_instance.datacenters_labels_put_with_http_info(datacenter_id, key, label, opts)
431
+ p status_code # => 2xx
432
+ p headers # => { ... }
433
+ p data # => <LabelResource>
434
+ rescue Ionoscloud::ApiError => e
435
+ puts "Error when calling LabelsApi->datacenters_labels_put_with_http_info: #{e}"
436
+ end
437
+ ```
438
+
439
+ ### Parameters
440
+
441
+ | Name | Type | Description | Notes |
442
+ | ---- | ---- | ----------- | ----- |
443
+ | **datacenter_id** | **String** | The unique ID of the Data Center | |
444
+ | **key** | **String** | The key of the Label | |
445
+ | **label** | [**LabelResource**](LabelResource.md) | Modified Label | |
446
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
447
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
448
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
449
+
450
+ ### Return type
451
+
452
+ [**LabelResource**](LabelResource.md)
453
+
454
+ ### Authorization
455
+
456
+ Basic Authentication, Token Authentication
457
+
458
+ ### HTTP request headers
459
+
460
+ - **Content-Type**: application/json
461
+ - **Accept**: application/json
462
+
463
+
464
+ ## datacenters_servers_labels_delete
465
+
466
+ > datacenters_servers_labels_delete(datacenter_id, server_id, key, opts)
467
+
468
+ Delete a Label from Server
469
+
470
+ This will remove a label from the server.
471
+
472
+ ### Examples
473
+
474
+ ```ruby
475
+ require 'time'
476
+ require 'ionoscloud'
477
+ # setup authorization
478
+ Ionoscloud.configure do |config|
479
+ # Configure HTTP basic authorization: Basic Authentication
480
+ config.username = 'YOUR USERNAME'
481
+ config.password = 'YOUR PASSWORD'
482
+
483
+ # Configure API key authorization: Token Authentication
484
+ config.api_key['Authorization'] = 'YOUR API KEY'
485
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
486
+ # config.api_key_prefix['Authorization'] = 'Bearer'
487
+ end
488
+
489
+ api_instance = Ionoscloud::LabelsApi.new
490
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
491
+ server_id = 'server_id_example' # String | The unique ID of the Server
492
+ key = 'key_example' # String | The key of the Label
493
+ opts = {
494
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
495
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
496
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
497
+ }
498
+
499
+ begin
500
+ # Delete a Label from Server
501
+ api_instance.datacenters_servers_labels_delete(datacenter_id, server_id, key, opts)
502
+ rescue Ionoscloud::ApiError => e
503
+ puts "Error when calling LabelsApi->datacenters_servers_labels_delete: #{e}"
504
+ end
505
+ ```
506
+
507
+ #### Using the datacenters_servers_labels_delete_with_http_info variant
508
+
509
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
510
+
511
+ > <Array(nil, Integer, Hash)> datacenters_servers_labels_delete_with_http_info(datacenter_id, server_id, key, opts)
512
+
513
+ ```ruby
514
+ begin
515
+ # Delete a Label from Server
516
+ data, status_code, headers = api_instance.datacenters_servers_labels_delete_with_http_info(datacenter_id, server_id, key, opts)
517
+ p status_code # => 2xx
518
+ p headers # => { ... }
519
+ p data # => nil
520
+ rescue Ionoscloud::ApiError => e
521
+ puts "Error when calling LabelsApi->datacenters_servers_labels_delete_with_http_info: #{e}"
522
+ end
523
+ ```
524
+
525
+ ### Parameters
526
+
527
+ | Name | Type | Description | Notes |
528
+ | ---- | ---- | ----------- | ----- |
529
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
530
+ | **server_id** | **String** | The unique ID of the Server | |
531
+ | **key** | **String** | The key of the Label | |
532
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
533
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
534
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
535
+
536
+ ### Return type
537
+
538
+ nil (empty response body)
539
+
540
+ ### Authorization
541
+
542
+ Basic Authentication, Token Authentication
543
+
544
+ ### HTTP request headers
545
+
546
+ - **Content-Type**: Not defined
547
+ - **Accept**: application/json
548
+
549
+
550
+ ## datacenters_servers_labels_find_by_key
551
+
552
+ > <LabelResource> datacenters_servers_labels_find_by_key(datacenter_id, server_id, key, opts)
553
+
554
+ Retrieve a Label of Server
555
+
556
+ This will retrieve the properties of a associated label to a server.
557
+
558
+ ### Examples
559
+
560
+ ```ruby
561
+ require 'time'
562
+ require 'ionoscloud'
563
+ # setup authorization
564
+ Ionoscloud.configure do |config|
565
+ # Configure HTTP basic authorization: Basic Authentication
566
+ config.username = 'YOUR USERNAME'
567
+ config.password = 'YOUR PASSWORD'
568
+
569
+ # Configure API key authorization: Token Authentication
570
+ config.api_key['Authorization'] = 'YOUR API KEY'
571
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
572
+ # config.api_key_prefix['Authorization'] = 'Bearer'
573
+ end
574
+
575
+ api_instance = Ionoscloud::LabelsApi.new
576
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
577
+ server_id = 'server_id_example' # String | The unique ID of the Server
578
+ key = 'key_example' # String | The key of the Label
579
+ opts = {
580
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
581
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
582
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
583
+ }
584
+
585
+ begin
586
+ # Retrieve a Label of Server
587
+ result = api_instance.datacenters_servers_labels_find_by_key(datacenter_id, server_id, key, opts)
588
+ p result
589
+ rescue Ionoscloud::ApiError => e
590
+ puts "Error when calling LabelsApi->datacenters_servers_labels_find_by_key: #{e}"
591
+ end
592
+ ```
593
+
594
+ #### Using the datacenters_servers_labels_find_by_key_with_http_info variant
595
+
596
+ This returns an Array which contains the response data, status code and headers.
597
+
598
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_servers_labels_find_by_key_with_http_info(datacenter_id, server_id, key, opts)
599
+
600
+ ```ruby
601
+ begin
602
+ # Retrieve a Label of Server
603
+ data, status_code, headers = api_instance.datacenters_servers_labels_find_by_key_with_http_info(datacenter_id, server_id, key, opts)
604
+ p status_code # => 2xx
605
+ p headers # => { ... }
606
+ p data # => <LabelResource>
607
+ rescue Ionoscloud::ApiError => e
608
+ puts "Error when calling LabelsApi->datacenters_servers_labels_find_by_key_with_http_info: #{e}"
609
+ end
610
+ ```
611
+
612
+ ### Parameters
613
+
614
+ | Name | Type | Description | Notes |
615
+ | ---- | ---- | ----------- | ----- |
616
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
617
+ | **server_id** | **String** | The unique ID of the Server | |
618
+ | **key** | **String** | The key of the Label | |
619
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
620
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
621
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
622
+
623
+ ### Return type
624
+
625
+ [**LabelResource**](LabelResource.md)
626
+
627
+ ### Authorization
628
+
629
+ Basic Authentication, Token Authentication
630
+
631
+ ### HTTP request headers
632
+
633
+ - **Content-Type**: Not defined
634
+ - **Accept**: application/json
635
+
636
+
637
+ ## datacenters_servers_labels_get
638
+
639
+ > <LabelResources> datacenters_servers_labels_get(datacenter_id, server_id, opts)
640
+
641
+ List all Server Labels
642
+
643
+ You can retrieve a list of all labels associated with a server.
644
+
645
+ ### Examples
646
+
647
+ ```ruby
648
+ require 'time'
649
+ require 'ionoscloud'
650
+ # setup authorization
651
+ Ionoscloud.configure do |config|
652
+ # Configure HTTP basic authorization: Basic Authentication
653
+ config.username = 'YOUR USERNAME'
654
+ config.password = 'YOUR PASSWORD'
655
+
656
+ # Configure API key authorization: Token Authentication
657
+ config.api_key['Authorization'] = 'YOUR API KEY'
658
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
659
+ # config.api_key_prefix['Authorization'] = 'Bearer'
660
+ end
661
+
662
+ api_instance = Ionoscloud::LabelsApi.new
663
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
664
+ server_id = 'server_id_example' # String | The unique ID of the Server
665
+ opts = {
666
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
667
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
668
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
669
+ }
670
+
671
+ begin
672
+ # List all Server Labels
673
+ result = api_instance.datacenters_servers_labels_get(datacenter_id, server_id, opts)
674
+ p result
675
+ rescue Ionoscloud::ApiError => e
676
+ puts "Error when calling LabelsApi->datacenters_servers_labels_get: #{e}"
677
+ end
678
+ ```
679
+
680
+ #### Using the datacenters_servers_labels_get_with_http_info variant
681
+
682
+ This returns an Array which contains the response data, status code and headers.
683
+
684
+ > <Array(<LabelResources>, Integer, Hash)> datacenters_servers_labels_get_with_http_info(datacenter_id, server_id, opts)
685
+
686
+ ```ruby
687
+ begin
688
+ # List all Server Labels
689
+ data, status_code, headers = api_instance.datacenters_servers_labels_get_with_http_info(datacenter_id, server_id, opts)
690
+ p status_code # => 2xx
691
+ p headers # => { ... }
692
+ p data # => <LabelResources>
693
+ rescue Ionoscloud::ApiError => e
694
+ puts "Error when calling LabelsApi->datacenters_servers_labels_get_with_http_info: #{e}"
695
+ end
696
+ ```
697
+
698
+ ### Parameters
699
+
700
+ | Name | Type | Description | Notes |
701
+ | ---- | ---- | ----------- | ----- |
702
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
703
+ | **server_id** | **String** | The unique ID of the Server | |
704
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
705
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
706
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
707
+
708
+ ### Return type
709
+
710
+ [**LabelResources**](LabelResources.md)
711
+
712
+ ### Authorization
713
+
714
+ Basic Authentication, Token Authentication
715
+
716
+ ### HTTP request headers
717
+
718
+ - **Content-Type**: Not defined
719
+ - **Accept**: application/json
720
+
721
+
722
+ ## datacenters_servers_labels_post
723
+
724
+ > <LabelResource> datacenters_servers_labels_post(datacenter_id, server_id, label, opts)
725
+
726
+ Add a Label to Server
727
+
728
+ This will add a label to the server.
729
+
730
+ ### Examples
731
+
732
+ ```ruby
733
+ require 'time'
734
+ require 'ionoscloud'
735
+ # setup authorization
736
+ Ionoscloud.configure do |config|
737
+ # Configure HTTP basic authorization: Basic Authentication
738
+ config.username = 'YOUR USERNAME'
739
+ config.password = 'YOUR PASSWORD'
740
+
741
+ # Configure API key authorization: Token Authentication
742
+ config.api_key['Authorization'] = 'YOUR API KEY'
743
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
744
+ # config.api_key_prefix['Authorization'] = 'Bearer'
745
+ end
746
+
747
+ api_instance = Ionoscloud::LabelsApi.new
748
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
749
+ server_id = 'server_id_example' # String | The unique ID of the Server
750
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Label to be added
751
+ opts = {
752
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
753
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
754
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
755
+ }
756
+
757
+ begin
758
+ # Add a Label to Server
759
+ result = api_instance.datacenters_servers_labels_post(datacenter_id, server_id, label, opts)
760
+ p result
761
+ rescue Ionoscloud::ApiError => e
762
+ puts "Error when calling LabelsApi->datacenters_servers_labels_post: #{e}"
763
+ end
764
+ ```
765
+
766
+ #### Using the datacenters_servers_labels_post_with_http_info variant
767
+
768
+ This returns an Array which contains the response data, status code and headers.
769
+
770
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_servers_labels_post_with_http_info(datacenter_id, server_id, label, opts)
771
+
772
+ ```ruby
773
+ begin
774
+ # Add a Label to Server
775
+ data, status_code, headers = api_instance.datacenters_servers_labels_post_with_http_info(datacenter_id, server_id, label, opts)
776
+ p status_code # => 2xx
777
+ p headers # => { ... }
778
+ p data # => <LabelResource>
779
+ rescue Ionoscloud::ApiError => e
780
+ puts "Error when calling LabelsApi->datacenters_servers_labels_post_with_http_info: #{e}"
781
+ end
782
+ ```
783
+
784
+ ### Parameters
785
+
786
+ | Name | Type | Description | Notes |
787
+ | ---- | ---- | ----------- | ----- |
788
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
789
+ | **server_id** | **String** | The unique ID of the Server | |
790
+ | **label** | [**LabelResource**](LabelResource.md) | Label to be added | |
791
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
792
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
793
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
794
+
795
+ ### Return type
796
+
797
+ [**LabelResource**](LabelResource.md)
798
+
799
+ ### Authorization
800
+
801
+ Basic Authentication, Token Authentication
802
+
803
+ ### HTTP request headers
804
+
805
+ - **Content-Type**: application/json
806
+ - **Accept**: application/json
807
+
808
+
809
+ ## datacenters_servers_labels_put
810
+
811
+ > <LabelResource> datacenters_servers_labels_put(datacenter_id, server_id, key, label, opts)
812
+
813
+ Modify a Label of Server
814
+
815
+ This will modify the value of the label on a server.
816
+
817
+ ### Examples
818
+
819
+ ```ruby
820
+ require 'time'
821
+ require 'ionoscloud'
822
+ # setup authorization
823
+ Ionoscloud.configure do |config|
824
+ # Configure HTTP basic authorization: Basic Authentication
825
+ config.username = 'YOUR USERNAME'
826
+ config.password = 'YOUR PASSWORD'
827
+
828
+ # Configure API key authorization: Token Authentication
829
+ config.api_key['Authorization'] = 'YOUR API KEY'
830
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
831
+ # config.api_key_prefix['Authorization'] = 'Bearer'
832
+ end
833
+
834
+ api_instance = Ionoscloud::LabelsApi.new
835
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
836
+ server_id = 'server_id_example' # String | The unique ID of the Server
837
+ key = 'key_example' # String | The key of the Label
838
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Modified Label
839
+ opts = {
840
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
841
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
842
+ x_contract_number: 56, # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
843
+ offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with limit for pagination)
844
+ limit: 56 # Integer | the maximum number of elements to return (use together with offset for pagination)
845
+ }
846
+
847
+ begin
848
+ # Modify a Label of Server
849
+ result = api_instance.datacenters_servers_labels_put(datacenter_id, server_id, key, label, opts)
850
+ p result
851
+ rescue Ionoscloud::ApiError => e
852
+ puts "Error when calling LabelsApi->datacenters_servers_labels_put: #{e}"
853
+ end
854
+ ```
855
+
856
+ #### Using the datacenters_servers_labels_put_with_http_info variant
857
+
858
+ This returns an Array which contains the response data, status code and headers.
859
+
860
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_servers_labels_put_with_http_info(datacenter_id, server_id, key, label, opts)
861
+
862
+ ```ruby
863
+ begin
864
+ # Modify a Label of Server
865
+ data, status_code, headers = api_instance.datacenters_servers_labels_put_with_http_info(datacenter_id, server_id, key, label, opts)
866
+ p status_code # => 2xx
867
+ p headers # => { ... }
868
+ p data # => <LabelResource>
869
+ rescue Ionoscloud::ApiError => e
870
+ puts "Error when calling LabelsApi->datacenters_servers_labels_put_with_http_info: #{e}"
871
+ end
872
+ ```
873
+
874
+ ### Parameters
875
+
876
+ | Name | Type | Description | Notes |
877
+ | ---- | ---- | ----------- | ----- |
878
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
879
+ | **server_id** | **String** | The unique ID of the Server | |
880
+ | **key** | **String** | The key of the Label | |
881
+ | **label** | [**LabelResource**](LabelResource.md) | Modified Label | |
882
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
883
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
884
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
885
+ | **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with limit for pagination) | [optional][default to 0] |
886
+ | **limit** | **Integer** | the maximum number of elements to return (use together with offset for pagination) | [optional][default to 1000] |
887
+
888
+ ### Return type
889
+
890
+ [**LabelResource**](LabelResource.md)
891
+
892
+ ### Authorization
893
+
894
+ Basic Authentication, Token Authentication
895
+
896
+ ### HTTP request headers
897
+
898
+ - **Content-Type**: application/json
899
+ - **Accept**: application/json
900
+
901
+
902
+ ## datacenters_volumes_labels_delete
903
+
904
+ > datacenters_volumes_labels_delete(datacenter_id, volume_id, key, opts)
905
+
906
+ Delete a Label from Volume
907
+
908
+ This will remove a label from the volume.
909
+
910
+ ### Examples
911
+
912
+ ```ruby
913
+ require 'time'
914
+ require 'ionoscloud'
915
+ # setup authorization
916
+ Ionoscloud.configure do |config|
917
+ # Configure HTTP basic authorization: Basic Authentication
918
+ config.username = 'YOUR USERNAME'
919
+ config.password = 'YOUR PASSWORD'
920
+
921
+ # Configure API key authorization: Token Authentication
922
+ config.api_key['Authorization'] = 'YOUR API KEY'
923
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
924
+ # config.api_key_prefix['Authorization'] = 'Bearer'
925
+ end
926
+
927
+ api_instance = Ionoscloud::LabelsApi.new
928
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
929
+ volume_id = 'volume_id_example' # String | The unique ID of the Volume
930
+ key = 'key_example' # String | The key of the Label
931
+ opts = {
932
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
933
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
934
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
935
+ }
936
+
937
+ begin
938
+ # Delete a Label from Volume
939
+ api_instance.datacenters_volumes_labels_delete(datacenter_id, volume_id, key, opts)
940
+ rescue Ionoscloud::ApiError => e
941
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_delete: #{e}"
942
+ end
943
+ ```
944
+
945
+ #### Using the datacenters_volumes_labels_delete_with_http_info variant
946
+
947
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
948
+
949
+ > <Array(nil, Integer, Hash)> datacenters_volumes_labels_delete_with_http_info(datacenter_id, volume_id, key, opts)
950
+
951
+ ```ruby
952
+ begin
953
+ # Delete a Label from Volume
954
+ data, status_code, headers = api_instance.datacenters_volumes_labels_delete_with_http_info(datacenter_id, volume_id, key, opts)
955
+ p status_code # => 2xx
956
+ p headers # => { ... }
957
+ p data # => nil
958
+ rescue Ionoscloud::ApiError => e
959
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_delete_with_http_info: #{e}"
960
+ end
961
+ ```
962
+
963
+ ### Parameters
964
+
965
+ | Name | Type | Description | Notes |
966
+ | ---- | ---- | ----------- | ----- |
967
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
968
+ | **volume_id** | **String** | The unique ID of the Volume | |
969
+ | **key** | **String** | The key of the Label | |
970
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
971
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
972
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
973
+
974
+ ### Return type
975
+
976
+ nil (empty response body)
977
+
978
+ ### Authorization
979
+
980
+ Basic Authentication, Token Authentication
981
+
982
+ ### HTTP request headers
983
+
984
+ - **Content-Type**: Not defined
985
+ - **Accept**: application/json
986
+
987
+
988
+ ## datacenters_volumes_labels_find_by_key
989
+
990
+ > <LabelResource> datacenters_volumes_labels_find_by_key(datacenter_id, volume_id, key, opts)
991
+
992
+ Retrieve a Label of Volume
993
+
994
+ This will retrieve the properties of a associated label to a volume.
995
+
996
+ ### Examples
997
+
998
+ ```ruby
999
+ require 'time'
1000
+ require 'ionoscloud'
1001
+ # setup authorization
1002
+ Ionoscloud.configure do |config|
1003
+ # Configure HTTP basic authorization: Basic Authentication
1004
+ config.username = 'YOUR USERNAME'
1005
+ config.password = 'YOUR PASSWORD'
1006
+
1007
+ # Configure API key authorization: Token Authentication
1008
+ config.api_key['Authorization'] = 'YOUR API KEY'
1009
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1010
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1011
+ end
1012
+
1013
+ api_instance = Ionoscloud::LabelsApi.new
1014
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
1015
+ volume_id = 'volume_id_example' # String | The unique ID of the Volume
1016
+ key = 'key_example' # String | The key of the Label
1017
+ opts = {
1018
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1019
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1020
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1021
+ }
1022
+
1023
+ begin
1024
+ # Retrieve a Label of Volume
1025
+ result = api_instance.datacenters_volumes_labels_find_by_key(datacenter_id, volume_id, key, opts)
1026
+ p result
1027
+ rescue Ionoscloud::ApiError => e
1028
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_find_by_key: #{e}"
1029
+ end
1030
+ ```
1031
+
1032
+ #### Using the datacenters_volumes_labels_find_by_key_with_http_info variant
1033
+
1034
+ This returns an Array which contains the response data, status code and headers.
1035
+
1036
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_volumes_labels_find_by_key_with_http_info(datacenter_id, volume_id, key, opts)
1037
+
1038
+ ```ruby
1039
+ begin
1040
+ # Retrieve a Label of Volume
1041
+ data, status_code, headers = api_instance.datacenters_volumes_labels_find_by_key_with_http_info(datacenter_id, volume_id, key, opts)
1042
+ p status_code # => 2xx
1043
+ p headers # => { ... }
1044
+ p data # => <LabelResource>
1045
+ rescue Ionoscloud::ApiError => e
1046
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_find_by_key_with_http_info: #{e}"
1047
+ end
1048
+ ```
1049
+
1050
+ ### Parameters
1051
+
1052
+ | Name | Type | Description | Notes |
1053
+ | ---- | ---- | ----------- | ----- |
1054
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
1055
+ | **volume_id** | **String** | The unique ID of the Volume | |
1056
+ | **key** | **String** | The key of the Label | |
1057
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1058
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1059
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1060
+
1061
+ ### Return type
1062
+
1063
+ [**LabelResource**](LabelResource.md)
1064
+
1065
+ ### Authorization
1066
+
1067
+ Basic Authentication, Token Authentication
1068
+
1069
+ ### HTTP request headers
1070
+
1071
+ - **Content-Type**: Not defined
1072
+ - **Accept**: application/json
1073
+
1074
+
1075
+ ## datacenters_volumes_labels_get
1076
+
1077
+ > <LabelResources> datacenters_volumes_labels_get(datacenter_id, volume_id, opts)
1078
+
1079
+ List all Volume Labels
1080
+
1081
+ You can retrieve a list of all labels associated with a volume.
1082
+
1083
+ ### Examples
1084
+
1085
+ ```ruby
1086
+ require 'time'
1087
+ require 'ionoscloud'
1088
+ # setup authorization
1089
+ Ionoscloud.configure do |config|
1090
+ # Configure HTTP basic authorization: Basic Authentication
1091
+ config.username = 'YOUR USERNAME'
1092
+ config.password = 'YOUR PASSWORD'
1093
+
1094
+ # Configure API key authorization: Token Authentication
1095
+ config.api_key['Authorization'] = 'YOUR API KEY'
1096
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1097
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1098
+ end
1099
+
1100
+ api_instance = Ionoscloud::LabelsApi.new
1101
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
1102
+ volume_id = 'volume_id_example' # String | The unique ID of the Volume
1103
+ opts = {
1104
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1105
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1106
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1107
+ }
1108
+
1109
+ begin
1110
+ # List all Volume Labels
1111
+ result = api_instance.datacenters_volumes_labels_get(datacenter_id, volume_id, opts)
1112
+ p result
1113
+ rescue Ionoscloud::ApiError => e
1114
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_get: #{e}"
1115
+ end
1116
+ ```
1117
+
1118
+ #### Using the datacenters_volumes_labels_get_with_http_info variant
1119
+
1120
+ This returns an Array which contains the response data, status code and headers.
1121
+
1122
+ > <Array(<LabelResources>, Integer, Hash)> datacenters_volumes_labels_get_with_http_info(datacenter_id, volume_id, opts)
1123
+
1124
+ ```ruby
1125
+ begin
1126
+ # List all Volume Labels
1127
+ data, status_code, headers = api_instance.datacenters_volumes_labels_get_with_http_info(datacenter_id, volume_id, opts)
1128
+ p status_code # => 2xx
1129
+ p headers # => { ... }
1130
+ p data # => <LabelResources>
1131
+ rescue Ionoscloud::ApiError => e
1132
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_get_with_http_info: #{e}"
1133
+ end
1134
+ ```
1135
+
1136
+ ### Parameters
1137
+
1138
+ | Name | Type | Description | Notes |
1139
+ | ---- | ---- | ----------- | ----- |
1140
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
1141
+ | **volume_id** | **String** | The unique ID of the Volume | |
1142
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1143
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1144
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1145
+
1146
+ ### Return type
1147
+
1148
+ [**LabelResources**](LabelResources.md)
1149
+
1150
+ ### Authorization
1151
+
1152
+ Basic Authentication, Token Authentication
1153
+
1154
+ ### HTTP request headers
1155
+
1156
+ - **Content-Type**: Not defined
1157
+ - **Accept**: application/json
1158
+
1159
+
1160
+ ## datacenters_volumes_labels_post
1161
+
1162
+ > <LabelResource> datacenters_volumes_labels_post(datacenter_id, volume_id, label, opts)
1163
+
1164
+ Add a Label to Volume
1165
+
1166
+ This will add a label to the volume.
1167
+
1168
+ ### Examples
1169
+
1170
+ ```ruby
1171
+ require 'time'
1172
+ require 'ionoscloud'
1173
+ # setup authorization
1174
+ Ionoscloud.configure do |config|
1175
+ # Configure HTTP basic authorization: Basic Authentication
1176
+ config.username = 'YOUR USERNAME'
1177
+ config.password = 'YOUR PASSWORD'
1178
+
1179
+ # Configure API key authorization: Token Authentication
1180
+ config.api_key['Authorization'] = 'YOUR API KEY'
1181
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1182
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1183
+ end
1184
+
1185
+ api_instance = Ionoscloud::LabelsApi.new
1186
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
1187
+ volume_id = 'volume_id_example' # String | The unique ID of the Volume
1188
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Label to be added
1189
+ opts = {
1190
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1191
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1192
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1193
+ }
1194
+
1195
+ begin
1196
+ # Add a Label to Volume
1197
+ result = api_instance.datacenters_volumes_labels_post(datacenter_id, volume_id, label, opts)
1198
+ p result
1199
+ rescue Ionoscloud::ApiError => e
1200
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_post: #{e}"
1201
+ end
1202
+ ```
1203
+
1204
+ #### Using the datacenters_volumes_labels_post_with_http_info variant
1205
+
1206
+ This returns an Array which contains the response data, status code and headers.
1207
+
1208
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_volumes_labels_post_with_http_info(datacenter_id, volume_id, label, opts)
1209
+
1210
+ ```ruby
1211
+ begin
1212
+ # Add a Label to Volume
1213
+ data, status_code, headers = api_instance.datacenters_volumes_labels_post_with_http_info(datacenter_id, volume_id, label, opts)
1214
+ p status_code # => 2xx
1215
+ p headers # => { ... }
1216
+ p data # => <LabelResource>
1217
+ rescue Ionoscloud::ApiError => e
1218
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_post_with_http_info: #{e}"
1219
+ end
1220
+ ```
1221
+
1222
+ ### Parameters
1223
+
1224
+ | Name | Type | Description | Notes |
1225
+ | ---- | ---- | ----------- | ----- |
1226
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
1227
+ | **volume_id** | **String** | The unique ID of the Volume | |
1228
+ | **label** | [**LabelResource**](LabelResource.md) | Label to be added | |
1229
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1230
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1231
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1232
+
1233
+ ### Return type
1234
+
1235
+ [**LabelResource**](LabelResource.md)
1236
+
1237
+ ### Authorization
1238
+
1239
+ Basic Authentication, Token Authentication
1240
+
1241
+ ### HTTP request headers
1242
+
1243
+ - **Content-Type**: application/json
1244
+ - **Accept**: application/json
1245
+
1246
+
1247
+ ## datacenters_volumes_labels_put
1248
+
1249
+ > <LabelResource> datacenters_volumes_labels_put(datacenter_id, volume_id, key, label, opts)
1250
+
1251
+ Modify a Label of Volume
1252
+
1253
+ This will modify the value of the label on a volume.
1254
+
1255
+ ### Examples
1256
+
1257
+ ```ruby
1258
+ require 'time'
1259
+ require 'ionoscloud'
1260
+ # setup authorization
1261
+ Ionoscloud.configure do |config|
1262
+ # Configure HTTP basic authorization: Basic Authentication
1263
+ config.username = 'YOUR USERNAME'
1264
+ config.password = 'YOUR PASSWORD'
1265
+
1266
+ # Configure API key authorization: Token Authentication
1267
+ config.api_key['Authorization'] = 'YOUR API KEY'
1268
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1269
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1270
+ end
1271
+
1272
+ api_instance = Ionoscloud::LabelsApi.new
1273
+ datacenter_id = 'datacenter_id_example' # String | The unique ID of the Datacenter
1274
+ volume_id = 'volume_id_example' # String | The unique ID of the Volume
1275
+ key = 'key_example' # String | The key of the Label
1276
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Modified Label
1277
+ opts = {
1278
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1279
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1280
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1281
+ }
1282
+
1283
+ begin
1284
+ # Modify a Label of Volume
1285
+ result = api_instance.datacenters_volumes_labels_put(datacenter_id, volume_id, key, label, opts)
1286
+ p result
1287
+ rescue Ionoscloud::ApiError => e
1288
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_put: #{e}"
1289
+ end
1290
+ ```
1291
+
1292
+ #### Using the datacenters_volumes_labels_put_with_http_info variant
1293
+
1294
+ This returns an Array which contains the response data, status code and headers.
1295
+
1296
+ > <Array(<LabelResource>, Integer, Hash)> datacenters_volumes_labels_put_with_http_info(datacenter_id, volume_id, key, label, opts)
1297
+
1298
+ ```ruby
1299
+ begin
1300
+ # Modify a Label of Volume
1301
+ data, status_code, headers = api_instance.datacenters_volumes_labels_put_with_http_info(datacenter_id, volume_id, key, label, opts)
1302
+ p status_code # => 2xx
1303
+ p headers # => { ... }
1304
+ p data # => <LabelResource>
1305
+ rescue Ionoscloud::ApiError => e
1306
+ puts "Error when calling LabelsApi->datacenters_volumes_labels_put_with_http_info: #{e}"
1307
+ end
1308
+ ```
1309
+
1310
+ ### Parameters
1311
+
1312
+ | Name | Type | Description | Notes |
1313
+ | ---- | ---- | ----------- | ----- |
1314
+ | **datacenter_id** | **String** | The unique ID of the Datacenter | |
1315
+ | **volume_id** | **String** | The unique ID of the Volume | |
1316
+ | **key** | **String** | The key of the Label | |
1317
+ | **label** | [**LabelResource**](LabelResource.md) | Modified Label | |
1318
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1319
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1320
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1321
+
1322
+ ### Return type
1323
+
1324
+ [**LabelResource**](LabelResource.md)
1325
+
1326
+ ### Authorization
1327
+
1328
+ Basic Authentication, Token Authentication
1329
+
1330
+ ### HTTP request headers
1331
+
1332
+ - **Content-Type**: application/json
1333
+ - **Accept**: application/json
1334
+
1335
+
1336
+ ## ipblocks_labels_delete
1337
+
1338
+ > ipblocks_labels_delete(ipblock_id, key, opts)
1339
+
1340
+ Delete a Label from IP Block
1341
+
1342
+ This will remove a label from the Ip Block.
1343
+
1344
+ ### Examples
1345
+
1346
+ ```ruby
1347
+ require 'time'
1348
+ require 'ionoscloud'
1349
+ # setup authorization
1350
+ Ionoscloud.configure do |config|
1351
+ # Configure HTTP basic authorization: Basic Authentication
1352
+ config.username = 'YOUR USERNAME'
1353
+ config.password = 'YOUR PASSWORD'
1354
+
1355
+ # Configure API key authorization: Token Authentication
1356
+ config.api_key['Authorization'] = 'YOUR API KEY'
1357
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1358
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1359
+ end
1360
+
1361
+ api_instance = Ionoscloud::LabelsApi.new
1362
+ ipblock_id = 'ipblock_id_example' # String | The unique ID of the Ip Block
1363
+ key = 'key_example' # String | The key of the Label
1364
+ opts = {
1365
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1366
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1367
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1368
+ }
1369
+
1370
+ begin
1371
+ # Delete a Label from IP Block
1372
+ api_instance.ipblocks_labels_delete(ipblock_id, key, opts)
1373
+ rescue Ionoscloud::ApiError => e
1374
+ puts "Error when calling LabelsApi->ipblocks_labels_delete: #{e}"
1375
+ end
1376
+ ```
1377
+
1378
+ #### Using the ipblocks_labels_delete_with_http_info variant
1379
+
1380
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1381
+
1382
+ > <Array(nil, Integer, Hash)> ipblocks_labels_delete_with_http_info(ipblock_id, key, opts)
1383
+
1384
+ ```ruby
1385
+ begin
1386
+ # Delete a Label from IP Block
1387
+ data, status_code, headers = api_instance.ipblocks_labels_delete_with_http_info(ipblock_id, key, opts)
1388
+ p status_code # => 2xx
1389
+ p headers # => { ... }
1390
+ p data # => nil
1391
+ rescue Ionoscloud::ApiError => e
1392
+ puts "Error when calling LabelsApi->ipblocks_labels_delete_with_http_info: #{e}"
1393
+ end
1394
+ ```
1395
+
1396
+ ### Parameters
1397
+
1398
+ | Name | Type | Description | Notes |
1399
+ | ---- | ---- | ----------- | ----- |
1400
+ | **ipblock_id** | **String** | The unique ID of the Ip Block | |
1401
+ | **key** | **String** | The key of the Label | |
1402
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1403
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1404
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1405
+
1406
+ ### Return type
1407
+
1408
+ nil (empty response body)
1409
+
1410
+ ### Authorization
1411
+
1412
+ Basic Authentication, Token Authentication
1413
+
1414
+ ### HTTP request headers
1415
+
1416
+ - **Content-Type**: Not defined
1417
+ - **Accept**: application/json
1418
+
1419
+
1420
+ ## ipblocks_labels_find_by_key
1421
+
1422
+ > <LabelResource> ipblocks_labels_find_by_key(ipblock_id, key, opts)
1423
+
1424
+ Retrieve a Label of IP Block
1425
+
1426
+ This will retrieve the properties of a associated label to a Ip Block.
1427
+
1428
+ ### Examples
1429
+
1430
+ ```ruby
1431
+ require 'time'
1432
+ require 'ionoscloud'
1433
+ # setup authorization
1434
+ Ionoscloud.configure do |config|
1435
+ # Configure HTTP basic authorization: Basic Authentication
1436
+ config.username = 'YOUR USERNAME'
1437
+ config.password = 'YOUR PASSWORD'
1438
+
1439
+ # Configure API key authorization: Token Authentication
1440
+ config.api_key['Authorization'] = 'YOUR API KEY'
1441
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1442
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1443
+ end
1444
+
1445
+ api_instance = Ionoscloud::LabelsApi.new
1446
+ ipblock_id = 'ipblock_id_example' # String | The unique ID of the Ip Block
1447
+ key = 'key_example' # String | The key of the Label
1448
+ opts = {
1449
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1450
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1451
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1452
+ }
1453
+
1454
+ begin
1455
+ # Retrieve a Label of IP Block
1456
+ result = api_instance.ipblocks_labels_find_by_key(ipblock_id, key, opts)
1457
+ p result
1458
+ rescue Ionoscloud::ApiError => e
1459
+ puts "Error when calling LabelsApi->ipblocks_labels_find_by_key: #{e}"
1460
+ end
1461
+ ```
1462
+
1463
+ #### Using the ipblocks_labels_find_by_key_with_http_info variant
1464
+
1465
+ This returns an Array which contains the response data, status code and headers.
1466
+
1467
+ > <Array(<LabelResource>, Integer, Hash)> ipblocks_labels_find_by_key_with_http_info(ipblock_id, key, opts)
1468
+
1469
+ ```ruby
1470
+ begin
1471
+ # Retrieve a Label of IP Block
1472
+ data, status_code, headers = api_instance.ipblocks_labels_find_by_key_with_http_info(ipblock_id, key, opts)
1473
+ p status_code # => 2xx
1474
+ p headers # => { ... }
1475
+ p data # => <LabelResource>
1476
+ rescue Ionoscloud::ApiError => e
1477
+ puts "Error when calling LabelsApi->ipblocks_labels_find_by_key_with_http_info: #{e}"
1478
+ end
1479
+ ```
1480
+
1481
+ ### Parameters
1482
+
1483
+ | Name | Type | Description | Notes |
1484
+ | ---- | ---- | ----------- | ----- |
1485
+ | **ipblock_id** | **String** | The unique ID of the Ip Block | |
1486
+ | **key** | **String** | The key of the Label | |
1487
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1488
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1489
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1490
+
1491
+ ### Return type
1492
+
1493
+ [**LabelResource**](LabelResource.md)
1494
+
1495
+ ### Authorization
1496
+
1497
+ Basic Authentication, Token Authentication
1498
+
1499
+ ### HTTP request headers
1500
+
1501
+ - **Content-Type**: Not defined
1502
+ - **Accept**: application/json
1503
+
1504
+
1505
+ ## ipblocks_labels_get
1506
+
1507
+ > <LabelResources> ipblocks_labels_get(ipblock_id, opts)
1508
+
1509
+ List all Ip Block Labels
1510
+
1511
+ You can retrieve a list of all labels associated with a IP Block.
1512
+
1513
+ ### Examples
1514
+
1515
+ ```ruby
1516
+ require 'time'
1517
+ require 'ionoscloud'
1518
+ # setup authorization
1519
+ Ionoscloud.configure do |config|
1520
+ # Configure HTTP basic authorization: Basic Authentication
1521
+ config.username = 'YOUR USERNAME'
1522
+ config.password = 'YOUR PASSWORD'
1523
+
1524
+ # Configure API key authorization: Token Authentication
1525
+ config.api_key['Authorization'] = 'YOUR API KEY'
1526
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1527
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1528
+ end
1529
+
1530
+ api_instance = Ionoscloud::LabelsApi.new
1531
+ ipblock_id = 'ipblock_id_example' # String | The unique ID of the Ip Block
1532
+ opts = {
1533
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1534
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1535
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1536
+ }
1537
+
1538
+ begin
1539
+ # List all Ip Block Labels
1540
+ result = api_instance.ipblocks_labels_get(ipblock_id, opts)
1541
+ p result
1542
+ rescue Ionoscloud::ApiError => e
1543
+ puts "Error when calling LabelsApi->ipblocks_labels_get: #{e}"
1544
+ end
1545
+ ```
1546
+
1547
+ #### Using the ipblocks_labels_get_with_http_info variant
1548
+
1549
+ This returns an Array which contains the response data, status code and headers.
1550
+
1551
+ > <Array(<LabelResources>, Integer, Hash)> ipblocks_labels_get_with_http_info(ipblock_id, opts)
1552
+
1553
+ ```ruby
1554
+ begin
1555
+ # List all Ip Block Labels
1556
+ data, status_code, headers = api_instance.ipblocks_labels_get_with_http_info(ipblock_id, opts)
1557
+ p status_code # => 2xx
1558
+ p headers # => { ... }
1559
+ p data # => <LabelResources>
1560
+ rescue Ionoscloud::ApiError => e
1561
+ puts "Error when calling LabelsApi->ipblocks_labels_get_with_http_info: #{e}"
1562
+ end
1563
+ ```
1564
+
1565
+ ### Parameters
1566
+
1567
+ | Name | Type | Description | Notes |
1568
+ | ---- | ---- | ----------- | ----- |
1569
+ | **ipblock_id** | **String** | The unique ID of the Ip Block | |
1570
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1571
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1572
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1573
+
1574
+ ### Return type
1575
+
1576
+ [**LabelResources**](LabelResources.md)
1577
+
1578
+ ### Authorization
1579
+
1580
+ Basic Authentication, Token Authentication
1581
+
1582
+ ### HTTP request headers
1583
+
1584
+ - **Content-Type**: Not defined
1585
+ - **Accept**: application/json
1586
+
1587
+
1588
+ ## ipblocks_labels_post
1589
+
1590
+ > <LabelResource> ipblocks_labels_post(ipblock_id, label, opts)
1591
+
1592
+ Add a Label to IP Block
1593
+
1594
+ This will add a label to the Ip Block.
1595
+
1596
+ ### Examples
1597
+
1598
+ ```ruby
1599
+ require 'time'
1600
+ require 'ionoscloud'
1601
+ # setup authorization
1602
+ Ionoscloud.configure do |config|
1603
+ # Configure HTTP basic authorization: Basic Authentication
1604
+ config.username = 'YOUR USERNAME'
1605
+ config.password = 'YOUR PASSWORD'
1606
+
1607
+ # Configure API key authorization: Token Authentication
1608
+ config.api_key['Authorization'] = 'YOUR API KEY'
1609
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1610
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1611
+ end
1612
+
1613
+ api_instance = Ionoscloud::LabelsApi.new
1614
+ ipblock_id = 'ipblock_id_example' # String | The unique ID of the Ip Block
1615
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Label to be added
1616
+ opts = {
1617
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1618
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1619
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1620
+ }
1621
+
1622
+ begin
1623
+ # Add a Label to IP Block
1624
+ result = api_instance.ipblocks_labels_post(ipblock_id, label, opts)
1625
+ p result
1626
+ rescue Ionoscloud::ApiError => e
1627
+ puts "Error when calling LabelsApi->ipblocks_labels_post: #{e}"
1628
+ end
1629
+ ```
1630
+
1631
+ #### Using the ipblocks_labels_post_with_http_info variant
1632
+
1633
+ This returns an Array which contains the response data, status code and headers.
1634
+
1635
+ > <Array(<LabelResource>, Integer, Hash)> ipblocks_labels_post_with_http_info(ipblock_id, label, opts)
1636
+
1637
+ ```ruby
1638
+ begin
1639
+ # Add a Label to IP Block
1640
+ data, status_code, headers = api_instance.ipblocks_labels_post_with_http_info(ipblock_id, label, opts)
1641
+ p status_code # => 2xx
1642
+ p headers # => { ... }
1643
+ p data # => <LabelResource>
1644
+ rescue Ionoscloud::ApiError => e
1645
+ puts "Error when calling LabelsApi->ipblocks_labels_post_with_http_info: #{e}"
1646
+ end
1647
+ ```
1648
+
1649
+ ### Parameters
1650
+
1651
+ | Name | Type | Description | Notes |
1652
+ | ---- | ---- | ----------- | ----- |
1653
+ | **ipblock_id** | **String** | The unique ID of the Ip Block | |
1654
+ | **label** | [**LabelResource**](LabelResource.md) | Label to be added | |
1655
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1656
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1657
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1658
+
1659
+ ### Return type
1660
+
1661
+ [**LabelResource**](LabelResource.md)
1662
+
1663
+ ### Authorization
1664
+
1665
+ Basic Authentication, Token Authentication
1666
+
1667
+ ### HTTP request headers
1668
+
1669
+ - **Content-Type**: application/json
1670
+ - **Accept**: application/json
1671
+
1672
+
1673
+ ## ipblocks_labels_put
1674
+
1675
+ > <LabelResource> ipblocks_labels_put(ipblock_id, key, label, opts)
1676
+
1677
+ Modify a Label of IP Block
1678
+
1679
+ This will modify the value of the label on a Ip Block.
1680
+
1681
+ ### Examples
1682
+
1683
+ ```ruby
1684
+ require 'time'
1685
+ require 'ionoscloud'
1686
+ # setup authorization
1687
+ Ionoscloud.configure do |config|
1688
+ # Configure HTTP basic authorization: Basic Authentication
1689
+ config.username = 'YOUR USERNAME'
1690
+ config.password = 'YOUR PASSWORD'
1691
+
1692
+ # Configure API key authorization: Token Authentication
1693
+ config.api_key['Authorization'] = 'YOUR API KEY'
1694
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1695
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1696
+ end
1697
+
1698
+ api_instance = Ionoscloud::LabelsApi.new
1699
+ ipblock_id = 'ipblock_id_example' # String | The unique ID of the Ip Block
1700
+ key = 'key_example' # String | The key of the Label
1701
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Modified Label
1702
+ opts = {
1703
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1704
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1705
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1706
+ }
1707
+
1708
+ begin
1709
+ # Modify a Label of IP Block
1710
+ result = api_instance.ipblocks_labels_put(ipblock_id, key, label, opts)
1711
+ p result
1712
+ rescue Ionoscloud::ApiError => e
1713
+ puts "Error when calling LabelsApi->ipblocks_labels_put: #{e}"
1714
+ end
1715
+ ```
1716
+
1717
+ #### Using the ipblocks_labels_put_with_http_info variant
1718
+
1719
+ This returns an Array which contains the response data, status code and headers.
1720
+
1721
+ > <Array(<LabelResource>, Integer, Hash)> ipblocks_labels_put_with_http_info(ipblock_id, key, label, opts)
1722
+
1723
+ ```ruby
1724
+ begin
1725
+ # Modify a Label of IP Block
1726
+ data, status_code, headers = api_instance.ipblocks_labels_put_with_http_info(ipblock_id, key, label, opts)
1727
+ p status_code # => 2xx
1728
+ p headers # => { ... }
1729
+ p data # => <LabelResource>
1730
+ rescue Ionoscloud::ApiError => e
1731
+ puts "Error when calling LabelsApi->ipblocks_labels_put_with_http_info: #{e}"
1732
+ end
1733
+ ```
1734
+
1735
+ ### Parameters
1736
+
1737
+ | Name | Type | Description | Notes |
1738
+ | ---- | ---- | ----------- | ----- |
1739
+ | **ipblock_id** | **String** | The unique ID of the Ip Block | |
1740
+ | **key** | **String** | The key of the Label | |
1741
+ | **label** | [**LabelResource**](LabelResource.md) | Modified Label | |
1742
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1743
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1744
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1745
+
1746
+ ### Return type
1747
+
1748
+ [**LabelResource**](LabelResource.md)
1749
+
1750
+ ### Authorization
1751
+
1752
+ Basic Authentication, Token Authentication
1753
+
1754
+ ### HTTP request headers
1755
+
1756
+ - **Content-Type**: application/json
1757
+ - **Accept**: application/json
1758
+
1759
+
1760
+ ## labels_find_by_urn
1761
+
1762
+ > <Label> labels_find_by_urn(labelurn, opts)
1763
+
1764
+ Returns the label by its URN.
1765
+
1766
+ You can retrieve the details of a specific label using its URN. A URN is for uniqueness of a Label and composed using urn:label:<resource_type>:<resource_uuid>:<key>
1767
+
1768
+ ### Examples
1769
+
1770
+ ```ruby
1771
+ require 'time'
1772
+ require 'ionoscloud'
1773
+ # setup authorization
1774
+ Ionoscloud.configure do |config|
1775
+ # Configure HTTP basic authorization: Basic Authentication
1776
+ config.username = 'YOUR USERNAME'
1777
+ config.password = 'YOUR PASSWORD'
1778
+
1779
+ # Configure API key authorization: Token Authentication
1780
+ config.api_key['Authorization'] = 'YOUR API KEY'
1781
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1782
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1783
+ end
1784
+
1785
+ api_instance = Ionoscloud::LabelsApi.new
1786
+ labelurn = 'labelurn_example' # String | The URN representing the unique ID of the label. A URN is for uniqueness of a Label and composed using urn:label:<resource_type>:<resource_uuid>:<key>
1787
+ opts = {
1788
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1789
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1790
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1791
+ }
1792
+
1793
+ begin
1794
+ # Returns the label by its URN.
1795
+ result = api_instance.labels_find_by_urn(labelurn, opts)
1796
+ p result
1797
+ rescue Ionoscloud::ApiError => e
1798
+ puts "Error when calling LabelsApi->labels_find_by_urn: #{e}"
1799
+ end
1800
+ ```
1801
+
1802
+ #### Using the labels_find_by_urn_with_http_info variant
1803
+
1804
+ This returns an Array which contains the response data, status code and headers.
1805
+
1806
+ > <Array(<Label>, Integer, Hash)> labels_find_by_urn_with_http_info(labelurn, opts)
1807
+
1808
+ ```ruby
1809
+ begin
1810
+ # Returns the label by its URN.
1811
+ data, status_code, headers = api_instance.labels_find_by_urn_with_http_info(labelurn, opts)
1812
+ p status_code # => 2xx
1813
+ p headers # => { ... }
1814
+ p data # => <Label>
1815
+ rescue Ionoscloud::ApiError => e
1816
+ puts "Error when calling LabelsApi->labels_find_by_urn_with_http_info: #{e}"
1817
+ end
1818
+ ```
1819
+
1820
+ ### Parameters
1821
+
1822
+ | Name | Type | Description | Notes |
1823
+ | ---- | ---- | ----------- | ----- |
1824
+ | **labelurn** | **String** | The URN representing the unique ID of the label. A URN is for uniqueness of a Label and composed using urn:label:&lt;resource_type&gt;:&lt;resource_uuid&gt;:&lt;key&gt; | |
1825
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1826
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1827
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1828
+
1829
+ ### Return type
1830
+
1831
+ [**Label**](Label.md)
1832
+
1833
+ ### Authorization
1834
+
1835
+ Basic Authentication, Token Authentication
1836
+
1837
+ ### HTTP request headers
1838
+
1839
+ - **Content-Type**: Not defined
1840
+ - **Accept**: application/json
1841
+
1842
+
1843
+ ## labels_get
1844
+
1845
+ > <Labels> labels_get(opts)
1846
+
1847
+ List Labels
1848
+
1849
+ You can retrieve a complete list of labels that you have access to.
1850
+
1851
+ ### Examples
1852
+
1853
+ ```ruby
1854
+ require 'time'
1855
+ require 'ionoscloud'
1856
+ # setup authorization
1857
+ Ionoscloud.configure do |config|
1858
+ # Configure HTTP basic authorization: Basic Authentication
1859
+ config.username = 'YOUR USERNAME'
1860
+ config.password = 'YOUR PASSWORD'
1861
+
1862
+ # Configure API key authorization: Token Authentication
1863
+ config.api_key['Authorization'] = 'YOUR API KEY'
1864
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1865
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1866
+ end
1867
+
1868
+ api_instance = Ionoscloud::LabelsApi.new
1869
+ opts = {
1870
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1871
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1872
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1873
+ }
1874
+
1875
+ begin
1876
+ # List Labels
1877
+ result = api_instance.labels_get(opts)
1878
+ p result
1879
+ rescue Ionoscloud::ApiError => e
1880
+ puts "Error when calling LabelsApi->labels_get: #{e}"
1881
+ end
1882
+ ```
1883
+
1884
+ #### Using the labels_get_with_http_info variant
1885
+
1886
+ This returns an Array which contains the response data, status code and headers.
1887
+
1888
+ > <Array(<Labels>, Integer, Hash)> labels_get_with_http_info(opts)
1889
+
1890
+ ```ruby
1891
+ begin
1892
+ # List Labels
1893
+ data, status_code, headers = api_instance.labels_get_with_http_info(opts)
1894
+ p status_code # => 2xx
1895
+ p headers # => { ... }
1896
+ p data # => <Labels>
1897
+ rescue Ionoscloud::ApiError => e
1898
+ puts "Error when calling LabelsApi->labels_get_with_http_info: #{e}"
1899
+ end
1900
+ ```
1901
+
1902
+ ### Parameters
1903
+
1904
+ | Name | Type | Description | Notes |
1905
+ | ---- | ---- | ----------- | ----- |
1906
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1907
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1908
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1909
+
1910
+ ### Return type
1911
+
1912
+ [**Labels**](Labels.md)
1913
+
1914
+ ### Authorization
1915
+
1916
+ Basic Authentication, Token Authentication
1917
+
1918
+ ### HTTP request headers
1919
+
1920
+ - **Content-Type**: Not defined
1921
+ - **Accept**: application/json
1922
+
1923
+
1924
+ ## snapshots_labels_delete
1925
+
1926
+ > snapshots_labels_delete(snapshot_id, key, opts)
1927
+
1928
+ Delete a Label from Snapshot
1929
+
1930
+ This will remove a label from the snapshot.
1931
+
1932
+ ### Examples
1933
+
1934
+ ```ruby
1935
+ require 'time'
1936
+ require 'ionoscloud'
1937
+ # setup authorization
1938
+ Ionoscloud.configure do |config|
1939
+ # Configure HTTP basic authorization: Basic Authentication
1940
+ config.username = 'YOUR USERNAME'
1941
+ config.password = 'YOUR PASSWORD'
1942
+
1943
+ # Configure API key authorization: Token Authentication
1944
+ config.api_key['Authorization'] = 'YOUR API KEY'
1945
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1946
+ # config.api_key_prefix['Authorization'] = 'Bearer'
1947
+ end
1948
+
1949
+ api_instance = Ionoscloud::LabelsApi.new
1950
+ snapshot_id = 'snapshot_id_example' # String | The unique ID of the Snapshot
1951
+ key = 'key_example' # String | The key of the Label
1952
+ opts = {
1953
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
1954
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
1955
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1956
+ }
1957
+
1958
+ begin
1959
+ # Delete a Label from Snapshot
1960
+ api_instance.snapshots_labels_delete(snapshot_id, key, opts)
1961
+ rescue Ionoscloud::ApiError => e
1962
+ puts "Error when calling LabelsApi->snapshots_labels_delete: #{e}"
1963
+ end
1964
+ ```
1965
+
1966
+ #### Using the snapshots_labels_delete_with_http_info variant
1967
+
1968
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
1969
+
1970
+ > <Array(nil, Integer, Hash)> snapshots_labels_delete_with_http_info(snapshot_id, key, opts)
1971
+
1972
+ ```ruby
1973
+ begin
1974
+ # Delete a Label from Snapshot
1975
+ data, status_code, headers = api_instance.snapshots_labels_delete_with_http_info(snapshot_id, key, opts)
1976
+ p status_code # => 2xx
1977
+ p headers # => { ... }
1978
+ p data # => nil
1979
+ rescue Ionoscloud::ApiError => e
1980
+ puts "Error when calling LabelsApi->snapshots_labels_delete_with_http_info: #{e}"
1981
+ end
1982
+ ```
1983
+
1984
+ ### Parameters
1985
+
1986
+ | Name | Type | Description | Notes |
1987
+ | ---- | ---- | ----------- | ----- |
1988
+ | **snapshot_id** | **String** | The unique ID of the Snapshot | |
1989
+ | **key** | **String** | The key of the Label | |
1990
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
1991
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
1992
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
1993
+
1994
+ ### Return type
1995
+
1996
+ nil (empty response body)
1997
+
1998
+ ### Authorization
1999
+
2000
+ Basic Authentication, Token Authentication
2001
+
2002
+ ### HTTP request headers
2003
+
2004
+ - **Content-Type**: Not defined
2005
+ - **Accept**: application/json
2006
+
2007
+
2008
+ ## snapshots_labels_find_by_key
2009
+
2010
+ > <LabelResource> snapshots_labels_find_by_key(snapshot_id, key, opts)
2011
+
2012
+ Retrieve a Label of Snapshot
2013
+
2014
+ This will retrieve the properties of a associated label to a snapshot.
2015
+
2016
+ ### Examples
2017
+
2018
+ ```ruby
2019
+ require 'time'
2020
+ require 'ionoscloud'
2021
+ # setup authorization
2022
+ Ionoscloud.configure do |config|
2023
+ # Configure HTTP basic authorization: Basic Authentication
2024
+ config.username = 'YOUR USERNAME'
2025
+ config.password = 'YOUR PASSWORD'
2026
+
2027
+ # Configure API key authorization: Token Authentication
2028
+ config.api_key['Authorization'] = 'YOUR API KEY'
2029
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2030
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2031
+ end
2032
+
2033
+ api_instance = Ionoscloud::LabelsApi.new
2034
+ snapshot_id = 'snapshot_id_example' # String | The unique ID of the Snapshot
2035
+ key = 'key_example' # String | The key of the Label
2036
+ opts = {
2037
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
2038
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
2039
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
2040
+ }
2041
+
2042
+ begin
2043
+ # Retrieve a Label of Snapshot
2044
+ result = api_instance.snapshots_labels_find_by_key(snapshot_id, key, opts)
2045
+ p result
2046
+ rescue Ionoscloud::ApiError => e
2047
+ puts "Error when calling LabelsApi->snapshots_labels_find_by_key: #{e}"
2048
+ end
2049
+ ```
2050
+
2051
+ #### Using the snapshots_labels_find_by_key_with_http_info variant
2052
+
2053
+ This returns an Array which contains the response data, status code and headers.
2054
+
2055
+ > <Array(<LabelResource>, Integer, Hash)> snapshots_labels_find_by_key_with_http_info(snapshot_id, key, opts)
2056
+
2057
+ ```ruby
2058
+ begin
2059
+ # Retrieve a Label of Snapshot
2060
+ data, status_code, headers = api_instance.snapshots_labels_find_by_key_with_http_info(snapshot_id, key, opts)
2061
+ p status_code # => 2xx
2062
+ p headers # => { ... }
2063
+ p data # => <LabelResource>
2064
+ rescue Ionoscloud::ApiError => e
2065
+ puts "Error when calling LabelsApi->snapshots_labels_find_by_key_with_http_info: #{e}"
2066
+ end
2067
+ ```
2068
+
2069
+ ### Parameters
2070
+
2071
+ | Name | Type | Description | Notes |
2072
+ | ---- | ---- | ----------- | ----- |
2073
+ | **snapshot_id** | **String** | The unique ID of the Snapshot | |
2074
+ | **key** | **String** | The key of the Label | |
2075
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
2076
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
2077
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
2078
+
2079
+ ### Return type
2080
+
2081
+ [**LabelResource**](LabelResource.md)
2082
+
2083
+ ### Authorization
2084
+
2085
+ Basic Authentication, Token Authentication
2086
+
2087
+ ### HTTP request headers
2088
+
2089
+ - **Content-Type**: Not defined
2090
+ - **Accept**: application/json
2091
+
2092
+
2093
+ ## snapshots_labels_get
2094
+
2095
+ > <LabelResources> snapshots_labels_get(snapshot_id, opts)
2096
+
2097
+ List all Snapshot Labels
2098
+
2099
+ You can retrieve a list of all labels associated with a snapshot.
2100
+
2101
+ ### Examples
2102
+
2103
+ ```ruby
2104
+ require 'time'
2105
+ require 'ionoscloud'
2106
+ # setup authorization
2107
+ Ionoscloud.configure do |config|
2108
+ # Configure HTTP basic authorization: Basic Authentication
2109
+ config.username = 'YOUR USERNAME'
2110
+ config.password = 'YOUR PASSWORD'
2111
+
2112
+ # Configure API key authorization: Token Authentication
2113
+ config.api_key['Authorization'] = 'YOUR API KEY'
2114
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2115
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2116
+ end
2117
+
2118
+ api_instance = Ionoscloud::LabelsApi.new
2119
+ snapshot_id = 'snapshot_id_example' # String | The unique ID of the Snapshot
2120
+ opts = {
2121
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
2122
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
2123
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
2124
+ }
2125
+
2126
+ begin
2127
+ # List all Snapshot Labels
2128
+ result = api_instance.snapshots_labels_get(snapshot_id, opts)
2129
+ p result
2130
+ rescue Ionoscloud::ApiError => e
2131
+ puts "Error when calling LabelsApi->snapshots_labels_get: #{e}"
2132
+ end
2133
+ ```
2134
+
2135
+ #### Using the snapshots_labels_get_with_http_info variant
2136
+
2137
+ This returns an Array which contains the response data, status code and headers.
2138
+
2139
+ > <Array(<LabelResources>, Integer, Hash)> snapshots_labels_get_with_http_info(snapshot_id, opts)
2140
+
2141
+ ```ruby
2142
+ begin
2143
+ # List all Snapshot Labels
2144
+ data, status_code, headers = api_instance.snapshots_labels_get_with_http_info(snapshot_id, opts)
2145
+ p status_code # => 2xx
2146
+ p headers # => { ... }
2147
+ p data # => <LabelResources>
2148
+ rescue Ionoscloud::ApiError => e
2149
+ puts "Error when calling LabelsApi->snapshots_labels_get_with_http_info: #{e}"
2150
+ end
2151
+ ```
2152
+
2153
+ ### Parameters
2154
+
2155
+ | Name | Type | Description | Notes |
2156
+ | ---- | ---- | ----------- | ----- |
2157
+ | **snapshot_id** | **String** | The unique ID of the Snapshot | |
2158
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
2159
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
2160
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
2161
+
2162
+ ### Return type
2163
+
2164
+ [**LabelResources**](LabelResources.md)
2165
+
2166
+ ### Authorization
2167
+
2168
+ Basic Authentication, Token Authentication
2169
+
2170
+ ### HTTP request headers
2171
+
2172
+ - **Content-Type**: Not defined
2173
+ - **Accept**: application/json
2174
+
2175
+
2176
+ ## snapshots_labels_post
2177
+
2178
+ > <LabelResource> snapshots_labels_post(snapshot_id, label, opts)
2179
+
2180
+ Add a Label to Snapshot
2181
+
2182
+ This will add a label to the snapshot.
2183
+
2184
+ ### Examples
2185
+
2186
+ ```ruby
2187
+ require 'time'
2188
+ require 'ionoscloud'
2189
+ # setup authorization
2190
+ Ionoscloud.configure do |config|
2191
+ # Configure HTTP basic authorization: Basic Authentication
2192
+ config.username = 'YOUR USERNAME'
2193
+ config.password = 'YOUR PASSWORD'
2194
+
2195
+ # Configure API key authorization: Token Authentication
2196
+ config.api_key['Authorization'] = 'YOUR API KEY'
2197
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2198
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2199
+ end
2200
+
2201
+ api_instance = Ionoscloud::LabelsApi.new
2202
+ snapshot_id = 'snapshot_id_example' # String | The unique ID of the Snapshot
2203
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Label to be added
2204
+ opts = {
2205
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
2206
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
2207
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
2208
+ }
2209
+
2210
+ begin
2211
+ # Add a Label to Snapshot
2212
+ result = api_instance.snapshots_labels_post(snapshot_id, label, opts)
2213
+ p result
2214
+ rescue Ionoscloud::ApiError => e
2215
+ puts "Error when calling LabelsApi->snapshots_labels_post: #{e}"
2216
+ end
2217
+ ```
2218
+
2219
+ #### Using the snapshots_labels_post_with_http_info variant
2220
+
2221
+ This returns an Array which contains the response data, status code and headers.
2222
+
2223
+ > <Array(<LabelResource>, Integer, Hash)> snapshots_labels_post_with_http_info(snapshot_id, label, opts)
2224
+
2225
+ ```ruby
2226
+ begin
2227
+ # Add a Label to Snapshot
2228
+ data, status_code, headers = api_instance.snapshots_labels_post_with_http_info(snapshot_id, label, opts)
2229
+ p status_code # => 2xx
2230
+ p headers # => { ... }
2231
+ p data # => <LabelResource>
2232
+ rescue Ionoscloud::ApiError => e
2233
+ puts "Error when calling LabelsApi->snapshots_labels_post_with_http_info: #{e}"
2234
+ end
2235
+ ```
2236
+
2237
+ ### Parameters
2238
+
2239
+ | Name | Type | Description | Notes |
2240
+ | ---- | ---- | ----------- | ----- |
2241
+ | **snapshot_id** | **String** | The unique ID of the Snapshot | |
2242
+ | **label** | [**LabelResource**](LabelResource.md) | Label to be added | |
2243
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
2244
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
2245
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
2246
+
2247
+ ### Return type
2248
+
2249
+ [**LabelResource**](LabelResource.md)
2250
+
2251
+ ### Authorization
2252
+
2253
+ Basic Authentication, Token Authentication
2254
+
2255
+ ### HTTP request headers
2256
+
2257
+ - **Content-Type**: application/json
2258
+ - **Accept**: application/json
2259
+
2260
+
2261
+ ## snapshots_labels_put
2262
+
2263
+ > <LabelResource> snapshots_labels_put(snapshot_id, key, label, opts)
2264
+
2265
+ Modify a Label of Snapshot
2266
+
2267
+ This will modify the value of the label on a snapshot.
2268
+
2269
+ ### Examples
2270
+
2271
+ ```ruby
2272
+ require 'time'
2273
+ require 'ionoscloud'
2274
+ # setup authorization
2275
+ Ionoscloud.configure do |config|
2276
+ # Configure HTTP basic authorization: Basic Authentication
2277
+ config.username = 'YOUR USERNAME'
2278
+ config.password = 'YOUR PASSWORD'
2279
+
2280
+ # Configure API key authorization: Token Authentication
2281
+ config.api_key['Authorization'] = 'YOUR API KEY'
2282
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2283
+ # config.api_key_prefix['Authorization'] = 'Bearer'
2284
+ end
2285
+
2286
+ api_instance = Ionoscloud::LabelsApi.new
2287
+ snapshot_id = 'snapshot_id_example' # String | The unique ID of the Snapshot
2288
+ key = 'key_example' # String | The key of the Label
2289
+ label = Ionoscloud::LabelResource.new({properties: Ionoscloud::LabelResourceProperties.new}) # LabelResource | Modified Label
2290
+ opts = {
2291
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
2292
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
2293
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
2294
+ }
2295
+
2296
+ begin
2297
+ # Modify a Label of Snapshot
2298
+ result = api_instance.snapshots_labels_put(snapshot_id, key, label, opts)
2299
+ p result
2300
+ rescue Ionoscloud::ApiError => e
2301
+ puts "Error when calling LabelsApi->snapshots_labels_put: #{e}"
2302
+ end
2303
+ ```
2304
+
2305
+ #### Using the snapshots_labels_put_with_http_info variant
2306
+
2307
+ This returns an Array which contains the response data, status code and headers.
2308
+
2309
+ > <Array(<LabelResource>, Integer, Hash)> snapshots_labels_put_with_http_info(snapshot_id, key, label, opts)
2310
+
2311
+ ```ruby
2312
+ begin
2313
+ # Modify a Label of Snapshot
2314
+ data, status_code, headers = api_instance.snapshots_labels_put_with_http_info(snapshot_id, key, label, opts)
2315
+ p status_code # => 2xx
2316
+ p headers # => { ... }
2317
+ p data # => <LabelResource>
2318
+ rescue Ionoscloud::ApiError => e
2319
+ puts "Error when calling LabelsApi->snapshots_labels_put_with_http_info: #{e}"
2320
+ end
2321
+ ```
2322
+
2323
+ ### Parameters
2324
+
2325
+ | Name | Type | Description | Notes |
2326
+ | ---- | ---- | ----------- | ----- |
2327
+ | **snapshot_id** | **String** | The unique ID of the Snapshot | |
2328
+ | **key** | **String** | The key of the Label | |
2329
+ | **label** | [**LabelResource**](LabelResource.md) | Modified Label | |
2330
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
2331
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
2332
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
2333
+
2334
+ ### Return type
2335
+
2336
+ [**LabelResource**](LabelResource.md)
2337
+
2338
+ ### Authorization
2339
+
2340
+ Basic Authentication, Token Authentication
2341
+
2342
+ ### HTTP request headers
2343
+
2344
+ - **Content-Type**: application/json
2345
+ - **Accept**: application/json
2346
+