ionoscloud 6.0.0.beta.1 → 6.0.0

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