ionoscloud 6.0.0.beta.3 → 6.0.1

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