ionoscloud 6.0.0.beta.1 → 6.0.0

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