ionoscloud 5.1.2 → 6.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (601) hide show
  1. checksums.yaml +4 -4
  2. data/docs/{models/AttachedVolumes.md → AttachedVolumes.md} +1 -1
  3. data/docs/{models/BackupUnit.md → BackupUnit.md} +0 -0
  4. data/docs/{models/BackupUnitProperties.md → BackupUnitProperties.md} +0 -0
  5. data/docs/{models/BackupUnitSSO.md → BackupUnitSSO.md} +0 -0
  6. data/docs/{models/BackupUnits.md → BackupUnits.md} +0 -0
  7. data/docs/{api/BackupUnitApi.md → BackupUnitsApi.md} +42 -42
  8. data/docs/{models/BalancedNics.md → BalancedNics.md} +0 -0
  9. data/docs/CHANGELOG.md +1 -0
  10. data/docs/{models/Cdroms.md → Cdroms.md} +1 -1
  11. data/docs/{models/ConnectableDatacenter.md → ConnectableDatacenter.md} +0 -0
  12. data/docs/{models/Contract.md → Contract.md} +0 -0
  13. data/docs/{models/ContractProperties.md → ContractProperties.md} +0 -0
  14. data/docs/{api/ContractApi.md → ContractResourcesApi.md} +11 -11
  15. data/docs/Contracts.md +24 -0
  16. data/docs/CpuArchitectureProperties.md +24 -0
  17. data/docs/{models/DataCenterEntities.md → DataCenterEntities.md} +5 -1
  18. data/docs/{api/DataCenterApi.md → DataCentersApi.md} +31 -31
  19. data/docs/{models/Datacenter.md → Datacenter.md} +0 -0
  20. data/docs/{models/DatacenterElementMetadata.md → DatacenterElementMetadata.md} +0 -0
  21. data/docs/{models/DatacenterProperties.md → DatacenterProperties.md} +3 -1
  22. data/docs/{models/Datacenters.md → Datacenters.md} +0 -0
  23. data/docs/{api/DefaultApi.md → DefaultApi.md} +2 -13
  24. data/docs/{models/Error.md → Error.md} +0 -0
  25. data/docs/{models/ErrorMessage.md → ErrorMessage.md} +0 -0
  26. data/docs/{models/FirewallRule.md → FirewallRule.md} +0 -0
  27. data/docs/{models/FirewallRules.md → FirewallRules.md} +0 -0
  28. data/docs/FirewallRulesApi.md +553 -0
  29. data/docs/{models/FirewallruleProperties.md → FirewallruleProperties.md} +3 -1
  30. data/docs/FlowLog.md +26 -0
  31. data/docs/FlowLogProperties.md +24 -0
  32. data/docs/FlowLogPut.md +24 -0
  33. data/docs/FlowLogs.md +30 -0
  34. data/docs/FlowLogsApi.md +541 -0
  35. data/docs/{models/Group.md → Group.md} +1 -1
  36. data/docs/{models/GroupEntities.md → GroupEntities.md} +0 -0
  37. data/docs/{models/GroupMembers.md → GroupMembers.md} +1 -1
  38. data/docs/{models/GroupProperties.md → GroupProperties.md} +5 -1
  39. data/docs/{models/GroupShare.md → GroupShare.md} +1 -1
  40. data/docs/{models/GroupShareProperties.md → GroupShareProperties.md} +0 -0
  41. data/docs/{models/GroupShares.md → GroupShares.md} +1 -1
  42. data/docs/{models/GroupUsers.md → GroupUsers.md} +1 -1
  43. data/docs/{models/Groups.md → Groups.md} +1 -1
  44. data/docs/{api/IPBlocksApi.md → IPBlocksApi.md} +7 -11
  45. data/docs/{models/IPFailover.md → IPFailover.md} +0 -0
  46. data/docs/{models/Image.md → Image.md} +0 -0
  47. data/docs/{models/ImageProperties.md → ImageProperties.md} +1 -5
  48. data/docs/{models/Images.md → Images.md} +0 -0
  49. data/docs/{api/ImageApi.md → ImagesApi.md} +25 -25
  50. data/docs/{models/Info.md → Info.md} +0 -0
  51. data/docs/{models/IpBlock.md → IpBlock.md} +0 -0
  52. data/docs/{models/IpBlockProperties.md → IpBlockProperties.md} +1 -1
  53. data/docs/IpBlocks.md +24 -0
  54. data/docs/{models/IpConsumer.md → IpConsumer.md} +1 -5
  55. data/docs/{api/KubernetesApi.md → KubernetesApi.md} +17 -93
  56. data/docs/{models/KubernetesAutoScaling.md → KubernetesAutoScaling.md} +2 -2
  57. data/docs/{models/KubernetesCluster.md → KubernetesCluster.md} +0 -0
  58. data/docs/{models/KubernetesClusterEntities.md → KubernetesClusterEntities.md} +0 -0
  59. data/docs/{models/KubernetesClusterForPost.md → KubernetesClusterForPost.md} +0 -0
  60. data/docs/{models/KubernetesClusterForPut.md → KubernetesClusterForPut.md} +0 -0
  61. data/docs/{models/KubernetesClusterProperties.md → KubernetesClusterProperties.md} +4 -4
  62. data/docs/{models/KubernetesClusterPropertiesForPost.md → KubernetesClusterPropertiesForPost.md} +4 -4
  63. data/docs/{models/KubernetesClusterPropertiesForPut.md → KubernetesClusterPropertiesForPut.md} +1 -5
  64. data/docs/{models/KubernetesClusters.md → KubernetesClusters.md} +1 -1
  65. data/docs/{models/KubernetesMaintenanceWindow.md → KubernetesMaintenanceWindow.md} +2 -2
  66. data/docs/{models/KubernetesNode.md → KubernetesNode.md} +0 -0
  67. data/docs/{models/KubernetesNodeMetadata.md → KubernetesNodeMetadata.md} +0 -0
  68. data/docs/{models/KubernetesNodePool.md → KubernetesNodePool.md} +0 -0
  69. data/docs/{models/KubernetesNodePoolForPost.md → KubernetesNodePoolForPost.md} +0 -0
  70. data/docs/{models/KubernetesNodePoolForPut.md → KubernetesNodePoolForPut.md} +0 -0
  71. data/docs/KubernetesNodePoolLan.md +22 -0
  72. data/docs/KubernetesNodePoolLanRoutes.md +20 -0
  73. data/docs/{models/KubernetesNodePoolProperties.md → KubernetesNodePoolProperties.md} +2 -1
  74. data/docs/{models/KubernetesNodePoolPropertiesForPost.md → KubernetesNodePoolPropertiesForPost.md} +2 -1
  75. data/docs/{models/KubernetesNodePoolPropertiesForPut.md → KubernetesNodePoolPropertiesForPut.md} +0 -0
  76. data/docs/{models/KubernetesNodePools.md → KubernetesNodePools.md} +1 -1
  77. data/docs/{models/KubernetesNodeProperties.md → KubernetesNodeProperties.md} +0 -0
  78. data/docs/{models/KubernetesNodes.md → KubernetesNodes.md} +0 -0
  79. data/docs/{models/Label.md → Label.md} +0 -0
  80. data/docs/{models/LabelProperties.md → LabelProperties.md} +0 -0
  81. data/docs/{models/LabelResource.md → LabelResource.md} +0 -0
  82. data/docs/{models/LabelResourceProperties.md → LabelResourceProperties.md} +0 -0
  83. data/docs/{models/LabelResources.md → LabelResources.md} +0 -0
  84. data/docs/{models/Labels.md → Labels.md} +0 -0
  85. data/docs/{api/LabelApi.md → LabelsApi.md} +128 -132
  86. data/docs/{models/Lan.md → Lan.md} +0 -0
  87. data/docs/{models/LanEntities.md → LanEntities.md} +0 -0
  88. data/docs/{models/LanNics.md → LanNics.md} +0 -0
  89. data/docs/{models/LanPost.md → LanPost.md} +0 -0
  90. data/docs/{models/LanProperties.md → LanProperties.md} +0 -0
  91. data/docs/{models/LanPropertiesPost.md → LanPropertiesPost.md} +0 -0
  92. data/docs/{models/Lans.md → Lans.md} +1 -1
  93. data/docs/{api/LanApi.md → LansApi.md} +55 -55
  94. data/docs/{api/LoadBalancerApi.md → LoadBalancersApi.md} +73 -69
  95. data/docs/{models/Loadbalancer.md → Loadbalancer.md} +0 -0
  96. data/docs/{models/LoadbalancerEntities.md → LoadbalancerEntities.md} +0 -0
  97. data/docs/{models/LoadbalancerProperties.md → LoadbalancerProperties.md} +0 -0
  98. data/docs/{models/Loadbalancers.md → Loadbalancers.md} +0 -0
  99. data/docs/{models/Location.md → Location.md} +0 -0
  100. data/docs/{models/LocationProperties.md → LocationProperties.md} +3 -1
  101. data/docs/{models/Locations.md → Locations.md} +0 -0
  102. data/docs/{api/LocationApi.md → LocationsApi.md} +14 -14
  103. data/docs/NATGatewaysApi.md +1581 -0
  104. data/docs/NatGateway.md +28 -0
  105. data/docs/NatGatewayEntities.md +20 -0
  106. data/docs/NatGatewayLanProperties.md +20 -0
  107. data/docs/NatGatewayProperties.md +22 -0
  108. data/docs/NatGatewayPut.md +24 -0
  109. data/docs/NatGatewayRule.md +26 -0
  110. data/docs/NatGatewayRuleProperties.md +30 -0
  111. data/docs/{models/S3Bucket.md → NatGatewayRuleProtocol.md} +2 -5
  112. data/docs/NatGatewayRulePut.md +24 -0
  113. data/docs/NatGatewayRuleType.md +15 -0
  114. data/docs/NatGatewayRules.md +24 -0
  115. data/docs/NatGateways.md +30 -0
  116. data/docs/NetworkInterfacesApi.md +541 -0
  117. data/docs/NetworkLoadBalancer.md +28 -0
  118. data/docs/NetworkLoadBalancerEntities.md +20 -0
  119. data/docs/NetworkLoadBalancerForwardingRule.md +26 -0
  120. data/docs/NetworkLoadBalancerForwardingRuleHealthCheck.md +26 -0
  121. data/docs/NetworkLoadBalancerForwardingRuleProperties.md +30 -0
  122. data/docs/NetworkLoadBalancerForwardingRulePut.md +24 -0
  123. data/docs/NetworkLoadBalancerForwardingRuleTarget.md +24 -0
  124. data/docs/NetworkLoadBalancerForwardingRuleTargetHealthCheck.md +22 -0
  125. data/docs/NetworkLoadBalancerForwardingRules.md +30 -0
  126. data/docs/NetworkLoadBalancerProperties.md +26 -0
  127. data/docs/NetworkLoadBalancerPut.md +24 -0
  128. data/docs/NetworkLoadBalancers.md +30 -0
  129. data/docs/NetworkLoadBalancersApi.md +1593 -0
  130. data/docs/{models/Nic.md → Nic.md} +0 -0
  131. data/docs/{models/NicEntities.md → NicEntities.md} +2 -0
  132. data/docs/{models/NicProperties.md → NicProperties.md} +6 -2
  133. data/docs/NicPut.md +24 -0
  134. data/docs/{models/Nics.md → Nics.md} +1 -1
  135. data/docs/{models/NoStateMetaData.md → NoStateMetaData.md} +0 -0
  136. data/docs/{models/PaginationLinks.md → PaginationLinks.md} +0 -0
  137. data/docs/{models/Peer.md → Peer.md} +0 -0
  138. data/docs/{models/PrivateCrossConnect.md → PrivateCrossConnect.md} +0 -0
  139. data/docs/{models/PrivateCrossConnectProperties.md → PrivateCrossConnectProperties.md} +0 -0
  140. data/docs/{models/PrivateCrossConnects.md → PrivateCrossConnects.md} +0 -0
  141. data/docs/{api/PrivateCrossConnectApi.md → PrivateCrossConnectsApi.md} +34 -30
  142. data/docs/README.md +4 -4
  143. data/docs/RemoteConsoleUrl.md +18 -0
  144. data/docs/{models/Request.md → Request.md} +0 -0
  145. data/docs/{models/RequestMetadata.md → RequestMetadata.md} +0 -0
  146. data/docs/{models/RequestProperties.md → RequestProperties.md} +0 -0
  147. data/docs/{models/RequestStatus.md → RequestStatus.md} +0 -0
  148. data/docs/{models/RequestStatusMetadata.md → RequestStatusMetadata.md} +0 -0
  149. data/docs/{models/RequestTarget.md → RequestTarget.md} +0 -0
  150. data/docs/{models/Requests.md → Requests.md} +1 -1
  151. data/docs/{api/RequestApi.md → RequestsApi.md} +24 -40
  152. data/docs/{models/Resource.md → Resource.md} +1 -1
  153. data/docs/{models/ResourceEntities.md → ResourceEntities.md} +0 -0
  154. data/docs/{models/ResourceGroups.md → ResourceGroups.md} +1 -1
  155. data/docs/{models/ResourceLimits.md → ResourceLimits.md} +11 -1
  156. data/docs/{models/ResourceProperties.md → ResourceProperties.md} +0 -0
  157. data/docs/{models/ResourceReference.md → ResourceReference.md} +0 -0
  158. data/docs/{models/Resources.md → Resources.md} +1 -1
  159. data/docs/{models/ResourcesUsers.md → ResourcesUsers.md} +1 -1
  160. data/docs/{models/S3Key.md → S3Key.md} +1 -1
  161. data/docs/{models/S3KeyMetadata.md → S3KeyMetadata.md} +0 -0
  162. data/docs/{models/S3KeyProperties.md → S3KeyProperties.md} +0 -0
  163. data/docs/{models/S3Keys.md → S3Keys.md} +1 -1
  164. data/docs/{models/S3ObjectStorageSSO.md → S3ObjectStorageSSO.md} +0 -0
  165. data/docs/{models/Server.md → Server.md} +0 -0
  166. data/docs/{models/ServerEntities.md → ServerEntities.md} +0 -0
  167. data/docs/{models/ServerProperties.md → ServerProperties.md} +6 -2
  168. data/docs/{models/Servers.md → Servers.md} +0 -0
  169. data/docs/{api/ServerApi.md → ServersApi.md} +430 -86
  170. data/docs/{models/Snapshot.md → Snapshot.md} +0 -0
  171. data/docs/{models/SnapshotProperties.md → SnapshotProperties.md} +0 -0
  172. data/docs/{models/Snapshots.md → Snapshots.md} +0 -0
  173. data/docs/{api/SnapshotApi.md → SnapshotsApi.md} +28 -28
  174. data/docs/TargetPortRange.md +20 -0
  175. data/docs/Template.md +26 -0
  176. data/docs/TemplateProperties.md +24 -0
  177. data/docs/Templates.md +24 -0
  178. data/docs/TemplatesApi.md +165 -0
  179. data/docs/Token.md +18 -0
  180. data/docs/{models/Type.md → Type.md} +0 -0
  181. data/docs/{models/User.md → User.md} +0 -0
  182. data/docs/{api/UserManagementApi.md → UserManagementApi.md} +12 -526
  183. data/docs/{models/UserMetadata.md → UserMetadata.md} +0 -0
  184. data/docs/{models/UserPost.md → UserPost.md} +0 -0
  185. data/docs/{models/UserProperties.md → UserProperties.md} +0 -0
  186. data/docs/{models/UserPropertiesPost.md → UserPropertiesPost.md} +0 -0
  187. data/docs/{models/UserPropertiesPut.md → UserPropertiesPut.md} +0 -0
  188. data/docs/{models/UserPut.md → UserPut.md} +0 -0
  189. data/docs/UserS3KeysApi.md +517 -0
  190. data/docs/Users.md +24 -0
  191. data/docs/{models/UsersEntities.md → UsersEntities.md} +0 -0
  192. data/docs/{models/Volume.md → Volume.md} +0 -0
  193. data/docs/{models/VolumeProperties.md → VolumeProperties.md} +5 -5
  194. data/docs/{models/Volumes.md → Volumes.md} +0 -0
  195. data/docs/{api/VolumeApi.md → VolumesApi.md} +42 -42
  196. data/docs/summary.md +386 -159
  197. data/ionoscloud.gemspec +2 -2
  198. data/lib/ionoscloud/api/_api.rb +3 -3
  199. data/lib/ionoscloud/api/{backup_unit_api.rb → backup_units_api.rb} +56 -56
  200. data/lib/ionoscloud/api/{contract_api.rb → contract_resources_api.rb} +13 -13
  201. data/lib/ionoscloud/api/{data_center_api.rb → data_centers_api.rb} +49 -49
  202. data/lib/ionoscloud/api/firewall_rules_api.rb +640 -0
  203. data/lib/ionoscloud/api/flow_logs_api.rb +622 -0
  204. data/lib/ionoscloud/api/{image_api.rb → images_api.rb} +36 -36
  205. data/lib/ionoscloud/api/ip_blocks_api.rb +12 -30
  206. data/lib/ionoscloud/api/kubernetes_api.rb +17 -80
  207. data/lib/ionoscloud/api/{label_api.rb → labels_api.rb} +245 -263
  208. data/lib/ionoscloud/api/{lan_api.rb → lans_api.rb} +101 -101
  209. data/lib/ionoscloud/api/{load_balancer_api.rb → load_balancers_api.rb} +144 -126
  210. data/lib/ionoscloud/api/{location_api.rb → locations_api.rb} +21 -21
  211. data/lib/ionoscloud/api/nat_gateways_api.rb +1690 -0
  212. data/lib/ionoscloud/api/network_interfaces_api.rb +604 -0
  213. data/lib/ionoscloud/api/network_load_balancers_api.rb +1708 -0
  214. data/lib/ionoscloud/api/{private_cross_connect_api.rb → private_cross_connects_api.rb} +57 -39
  215. data/lib/ionoscloud/api/{request_api.rb → requests_api.rb} +33 -57
  216. data/lib/ionoscloud/api/{server_api.rb → servers_api.rb} +501 -157
  217. data/lib/ionoscloud/api/{snapshot_api.rb → snapshots_api.rb} +42 -42
  218. data/lib/ionoscloud/api/templates_api.rb +164 -0
  219. data/lib/ionoscloud/api/user_management_api.rb +12 -525
  220. data/lib/ionoscloud/api/user_s3_keys_api.rb +517 -0
  221. data/lib/ionoscloud/api/{volume_api.rb → volumes_api.rb} +71 -71
  222. data/lib/ionoscloud/api_client.rb +21 -21
  223. data/lib/ionoscloud/api_error.rb +2 -2
  224. data/lib/ionoscloud/configuration.rb +6 -6
  225. data/lib/ionoscloud/models/attached_volumes.rb +13 -69
  226. data/lib/ionoscloud/models/backup_unit.rb +7 -49
  227. data/lib/ionoscloud/models/backup_unit_properties.rb +5 -31
  228. data/lib/ionoscloud/models/backup_unit_sso.rb +3 -13
  229. data/lib/ionoscloud/models/backup_units.rb +12 -44
  230. data/lib/ionoscloud/models/balanced_nics.rb +13 -69
  231. data/lib/ionoscloud/models/cdroms.rb +13 -69
  232. data/lib/ionoscloud/models/connectable_datacenter.rb +5 -31
  233. data/lib/ionoscloud/models/contract.rb +4 -22
  234. data/lib/ionoscloud/models/contract_properties.rb +7 -49
  235. data/lib/ionoscloud/models/contracts.rb +249 -0
  236. data/lib/ionoscloud/models/cpu_architecture_properties.rb +247 -0
  237. data/lib/ionoscloud/models/data_center_entities.rb +27 -43
  238. data/lib/ionoscloud/models/datacenter.rb +8 -58
  239. data/lib/ionoscloud/models/datacenter_element_metadata.rb +12 -78
  240. data/lib/ionoscloud/models/datacenter_properties.rb +49 -63
  241. data/lib/ionoscloud/models/datacenters.rb +13 -69
  242. data/lib/ionoscloud/models/error.rb +8 -24
  243. data/lib/ionoscloud/models/error_message.rb +4 -22
  244. data/lib/ionoscloud/models/firewall_rule.rb +7 -49
  245. data/lib/ionoscloud/models/firewall_rules.rb +13 -69
  246. data/lib/ionoscloud/models/firewallrule_properties.rb +57 -124
  247. data/lib/ionoscloud/models/flow_log.rb +260 -0
  248. data/lib/ionoscloud/models/flow_log_properties.rb +313 -0
  249. data/lib/ionoscloud/models/{kubernetes_config.rb → flow_log_put.rb} +13 -81
  250. data/lib/ionoscloud/models/flow_logs.rb +278 -0
  251. data/lib/ionoscloud/models/group.rb +7 -49
  252. data/lib/ionoscloud/models/group_entities.rb +4 -22
  253. data/lib/ionoscloud/models/group_members.rb +10 -42
  254. data/lib/ionoscloud/models/group_properties.rb +35 -97
  255. data/lib/ionoscloud/models/group_share.rb +6 -40
  256. data/lib/ionoscloud/models/group_share_properties.rb +4 -22
  257. data/lib/ionoscloud/models/group_shares.rb +10 -42
  258. data/lib/ionoscloud/models/group_users.rb +10 -42
  259. data/lib/ionoscloud/models/groups.rb +10 -42
  260. data/lib/ionoscloud/models/image.rb +7 -49
  261. data/lib/ionoscloud/models/image_properties.rb +24 -210
  262. data/lib/ionoscloud/models/images.rb +10 -42
  263. data/lib/ionoscloud/models/info.rb +5 -31
  264. data/lib/ionoscloud/models/ip_block.rb +7 -49
  265. data/lib/ionoscloud/models/ip_block_properties.rb +15 -53
  266. data/lib/ionoscloud/models/ip_blocks.rb +13 -98
  267. data/lib/ionoscloud/models/ip_consumer.rb +12 -104
  268. data/lib/ionoscloud/models/ip_failover.rb +4 -22
  269. data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +13 -21
  270. data/lib/ionoscloud/models/kubernetes_cluster.rb +8 -58
  271. data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +3 -13
  272. data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +8 -58
  273. data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +8 -58
  274. data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +32 -84
  275. data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +22 -62
  276. data/lib/ionoscloud/models/kubernetes_cluster_properties_for_put.rb +8 -70
  277. data/lib/ionoscloud/models/kubernetes_clusters.rb +11 -43
  278. data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +13 -21
  279. data/lib/ionoscloud/models/kubernetes_node.rb +7 -49
  280. data/lib/ionoscloud/models/kubernetes_node_metadata.rb +9 -51
  281. data/lib/ionoscloud/models/kubernetes_node_pool.rb +7 -49
  282. data/lib/ionoscloud/models/kubernetes_node_pool_for_post.rb +7 -49
  283. data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +7 -49
  284. data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +28 -21
  285. data/lib/ionoscloud/models/kubernetes_node_pool_lan_routes.rb +227 -0
  286. data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +42 -170
  287. data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +37 -159
  288. data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +27 -93
  289. data/lib/ionoscloud/models/kubernetes_node_pools.rb +11 -43
  290. data/lib/ionoscloud/models/kubernetes_node_properties.rb +6 -40
  291. data/lib/ionoscloud/models/kubernetes_nodes.rb +10 -42
  292. data/lib/ionoscloud/models/label.rb +7 -49
  293. data/lib/ionoscloud/models/label_properties.rb +7 -49
  294. data/lib/ionoscloud/models/label_resource.rb +7 -49
  295. data/lib/ionoscloud/models/label_resource_properties.rb +4 -22
  296. data/lib/ionoscloud/models/label_resources.rb +15 -71
  297. data/lib/ionoscloud/models/labels.rb +12 -44
  298. data/lib/ionoscloud/models/lan.rb +8 -58
  299. data/lib/ionoscloud/models/lan_entities.rb +3 -13
  300. data/lib/ionoscloud/models/lan_nics.rb +13 -69
  301. data/lib/ionoscloud/models/lan_post.rb +8 -58
  302. data/lib/ionoscloud/models/lan_properties.rb +10 -42
  303. data/lib/ionoscloud/models/lan_properties_post.rb +10 -42
  304. data/lib/ionoscloud/models/lans.rb +14 -70
  305. data/lib/ionoscloud/models/loadbalancer.rb +8 -58
  306. data/lib/ionoscloud/models/loadbalancer_entities.rb +3 -13
  307. data/lib/ionoscloud/models/loadbalancer_properties.rb +34 -43
  308. data/lib/ionoscloud/models/loadbalancers.rb +13 -69
  309. data/lib/ionoscloud/models/location.rb +7 -49
  310. data/lib/ionoscloud/models/location_properties.rb +49 -37
  311. data/lib/ionoscloud/models/locations.rb +10 -42
  312. data/lib/ionoscloud/models/nat_gateway.rb +269 -0
  313. data/lib/ionoscloud/models/nat_gateway_entities.rb +225 -0
  314. data/lib/ionoscloud/models/nat_gateway_lan_properties.rb +234 -0
  315. data/lib/ionoscloud/models/nat_gateway_properties.rb +251 -0
  316. data/lib/ionoscloud/models/nat_gateway_put.rb +251 -0
  317. data/lib/ionoscloud/models/nat_gateway_rule.rb +260 -0
  318. data/lib/ionoscloud/models/nat_gateway_rule_properties.rb +291 -0
  319. data/lib/ionoscloud/models/nat_gateway_rule_protocol.rb +39 -0
  320. data/lib/ionoscloud/models/nat_gateway_rule_put.rb +251 -0
  321. data/lib/ionoscloud/models/nat_gateway_rule_type.rb +36 -0
  322. data/lib/ionoscloud/models/nat_gateway_rules.rb +249 -0
  323. data/lib/ionoscloud/models/nat_gateways.rb +278 -0
  324. data/lib/ionoscloud/models/network_load_balancer.rb +269 -0
  325. data/lib/ionoscloud/models/network_load_balancer_entities.rb +225 -0
  326. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule.rb +260 -0
  327. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_health_check.rb +257 -0
  328. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_properties.rb +354 -0
  329. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_put.rb +251 -0
  330. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target.rb +261 -0
  331. data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target_health_check.rb +237 -0
  332. data/lib/ionoscloud/models/network_load_balancer_forwarding_rules.rb +278 -0
  333. data/lib/ionoscloud/models/network_load_balancer_properties.rb +276 -0
  334. data/lib/ionoscloud/models/network_load_balancer_put.rb +251 -0
  335. data/lib/ionoscloud/models/network_load_balancers.rb +278 -0
  336. data/lib/ionoscloud/models/nic.rb +8 -58
  337. data/lib/ionoscloud/models/nic_entities.rb +13 -14
  338. data/lib/ionoscloud/models/nic_properties.rb +71 -73
  339. data/lib/ionoscloud/models/nic_put.rb +251 -0
  340. data/lib/ionoscloud/models/nics.rb +13 -69
  341. data/lib/ionoscloud/models/no_state_meta_data.rb +9 -67
  342. data/lib/ionoscloud/models/pagination_links.rb +5 -31
  343. data/lib/ionoscloud/models/peer.rb +7 -49
  344. data/lib/ionoscloud/models/private_cross_connect.rb +7 -49
  345. data/lib/ionoscloud/models/private_cross_connect_properties.rb +14 -44
  346. data/lib/ionoscloud/models/private_cross_connects.rb +10 -42
  347. data/lib/ionoscloud/models/{kubernetes_config_properties.rb → remote_console_url.rb} +13 -23
  348. data/lib/ionoscloud/models/request.rb +7 -49
  349. data/lib/ionoscloud/models/request_metadata.rb +6 -40
  350. data/lib/ionoscloud/models/request_properties.rb +10 -42
  351. data/lib/ionoscloud/models/request_status.rb +6 -40
  352. data/lib/ionoscloud/models/request_status_metadata.rb +10 -42
  353. data/lib/ionoscloud/models/request_target.rb +4 -22
  354. data/lib/ionoscloud/models/requests.rb +14 -70
  355. data/lib/ionoscloud/models/resource.rb +8 -58
  356. data/lib/ionoscloud/models/resource_entities.rb +3 -13
  357. data/lib/ionoscloud/models/resource_groups.rb +10 -42
  358. data/lib/ionoscloud/models/resource_limits.rb +94 -157
  359. data/lib/ionoscloud/models/resource_properties.rb +4 -22
  360. data/lib/ionoscloud/models/resource_reference.rb +5 -31
  361. data/lib/ionoscloud/models/resources.rb +10 -42
  362. data/lib/ionoscloud/models/resources_users.rb +10 -42
  363. data/lib/ionoscloud/models/s3_key.rb +7 -49
  364. data/lib/ionoscloud/models/s3_key_metadata.rb +4 -22
  365. data/lib/ionoscloud/models/s3_key_properties.rb +4 -22
  366. data/lib/ionoscloud/models/s3_keys.rb +10 -42
  367. data/lib/ionoscloud/models/s3_object_storage_sso.rb +3 -13
  368. data/lib/ionoscloud/models/server.rb +8 -58
  369. data/lib/ionoscloud/models/server_entities.rb +5 -31
  370. data/lib/ionoscloud/models/server_properties.rb +36 -82
  371. data/lib/ionoscloud/models/servers.rb +13 -69
  372. data/lib/ionoscloud/models/snapshot.rb +7 -49
  373. data/lib/ionoscloud/models/snapshot_properties.rb +18 -148
  374. data/lib/ionoscloud/models/snapshots.rb +10 -42
  375. data/lib/ionoscloud/models/target_port_range.rb +227 -0
  376. data/lib/ionoscloud/models/template.rb +260 -0
  377. data/lib/ionoscloud/models/template_properties.rb +267 -0
  378. data/lib/ionoscloud/models/templates.rb +249 -0
  379. data/lib/ionoscloud/models/{s3_bucket.rb → token.rb} +13 -28
  380. data/lib/ionoscloud/models/type.rb +10 -2
  381. data/lib/ionoscloud/models/user.rb +8 -58
  382. data/lib/ionoscloud/models/user_metadata.rb +5 -31
  383. data/lib/ionoscloud/models/user_post.rb +3 -13
  384. data/lib/ionoscloud/models/user_properties.rb +10 -76
  385. data/lib/ionoscloud/models/user_properties_post.rb +10 -76
  386. data/lib/ionoscloud/models/user_properties_put.rb +9 -67
  387. data/lib/ionoscloud/models/user_put.rb +4 -22
  388. data/lib/ionoscloud/models/users.rb +13 -98
  389. data/lib/ionoscloud/models/users_entities.rb +4 -22
  390. data/lib/ionoscloud/models/volume.rb +7 -49
  391. data/lib/ionoscloud/models/volume_properties.rb +40 -191
  392. data/lib/ionoscloud/models/volumes.rb +13 -69
  393. data/lib/ionoscloud/version.rb +3 -3
  394. data/lib/ionoscloud.rb +60 -19
  395. data/spec/api/_api_spec.rb +49 -0
  396. data/spec/api/backup_units_api_spec.rb +140 -0
  397. data/spec/api/contract_resources_api_spec.rb +49 -0
  398. data/spec/api/data_centers_api_spec.rb +128 -0
  399. data/spec/api/firewall_rules_api_spec.rb +146 -0
  400. data/spec/api/flow_logs_api_spec.rb +140 -0
  401. data/spec/api/images_api_spec.rb +111 -0
  402. data/spec/api/ip_blocks_api_spec.rb +126 -0
  403. data/spec/api/kubernetes_api_spec.rb +294 -0
  404. data/spec/api/labels_api_spec.rb +478 -0
  405. data/spec/api/lans_api_spec.rb +186 -0
  406. data/spec/api/load_balancers_api_spec.rb +205 -0
  407. data/spec/api/locations_api_spec.rb +80 -0
  408. data/spec/api/nat_gateways_api_spec.rb +336 -0
  409. data/spec/api/network_interfaces_api_spec.rb +140 -0
  410. data/spec/api/network_load_balancers_api_spec.rb +342 -0
  411. data/spec/api/private_cross_connects_api_spec.rb +112 -0
  412. data/spec/api/requests_api_spec.rb +84 -0
  413. data/spec/api/servers_api_spec.rb +401 -0
  414. data/spec/api/snapshots_api_spec.rb +111 -0
  415. data/spec/api/templates_api_spec.rb +60 -0
  416. data/spec/api/user_management_api_spec.rb +402 -0
  417. data/spec/api/user_s3_keys_api_spec.rb +128 -0
  418. data/spec/api/volumes_api_spec.rb +171 -0
  419. data/spec/api_client_spec.rb +2 -2
  420. data/spec/configuration_spec.rb +5 -5
  421. data/spec/models/attached_volumes_spec.rb +70 -0
  422. data/spec/models/backup_unit_properties_spec.rb +46 -0
  423. data/spec/models/backup_unit_spec.rb +62 -0
  424. data/spec/models/backup_unit_sso_spec.rb +34 -0
  425. data/spec/models/backup_units_spec.rb +56 -0
  426. data/spec/models/balanced_nics_spec.rb +70 -0
  427. data/spec/models/cdroms_spec.rb +70 -0
  428. data/spec/models/connectable_datacenter_spec.rb +46 -0
  429. data/spec/models/contract_properties_spec.rb +58 -0
  430. data/spec/models/contract_spec.rb +40 -0
  431. data/spec/models/contracts_spec.rb +52 -0
  432. data/spec/models/cpu_architecture_properties_spec.rb +52 -0
  433. data/spec/models/data_center_entities_spec.rb +64 -0
  434. data/spec/models/datacenter_element_metadata_spec.rb +80 -0
  435. data/spec/models/datacenter_properties_spec.rb +74 -0
  436. data/spec/models/datacenter_spec.rb +64 -0
  437. data/spec/models/datacenters_spec.rb +70 -0
  438. data/spec/models/error_message_spec.rb +40 -0
  439. data/spec/models/error_spec.rb +40 -0
  440. data/spec/models/firewall_rule_spec.rb +58 -0
  441. data/spec/models/firewall_rules_spec.rb +70 -0
  442. data/spec/models/firewallrule_properties_spec.rb +108 -0
  443. data/spec/models/flow_log_properties_spec.rb +60 -0
  444. data/spec/models/flow_log_put_spec.rb +52 -0
  445. data/spec/models/flow_log_spec.rb +58 -0
  446. data/spec/models/flow_logs_spec.rb +70 -0
  447. data/spec/models/group_entities_spec.rb +40 -0
  448. data/spec/models/group_members_spec.rb +52 -0
  449. data/spec/models/group_properties_spec.rb +100 -0
  450. data/spec/models/group_share_properties_spec.rb +40 -0
  451. data/spec/models/group_share_spec.rb +52 -0
  452. data/spec/models/group_shares_spec.rb +52 -0
  453. data/spec/models/group_spec.rb +58 -0
  454. data/spec/models/group_users_spec.rb +52 -0
  455. data/spec/models/groups_spec.rb +52 -0
  456. data/spec/models/image_properties_spec.rb +138 -0
  457. data/spec/models/image_spec.rb +58 -0
  458. data/spec/models/images_spec.rb +52 -0
  459. data/spec/models/info_spec.rb +46 -0
  460. data/spec/models/ip_block_properties_spec.rb +58 -0
  461. data/spec/models/ip_block_spec.rb +58 -0
  462. data/spec/models/ip_blocks_spec.rb +52 -0
  463. data/spec/models/ip_consumer_spec.rb +70 -0
  464. data/spec/models/ip_failover_spec.rb +40 -0
  465. data/spec/models/kubernetes_auto_scaling_spec.rb +40 -0
  466. data/spec/models/kubernetes_cluster_entities_spec.rb +34 -0
  467. data/spec/models/kubernetes_cluster_for_post_spec.rb +68 -0
  468. data/spec/models/kubernetes_cluster_for_put_spec.rb +68 -0
  469. data/spec/models/kubernetes_cluster_properties_for_post_spec.rb +58 -0
  470. data/spec/models/kubernetes_cluster_properties_for_put_spec.rb +46 -0
  471. data/spec/models/kubernetes_cluster_properties_spec.rb +70 -0
  472. data/spec/models/kubernetes_cluster_spec.rb +68 -0
  473. data/spec/models/kubernetes_clusters_spec.rb +56 -0
  474. data/spec/models/kubernetes_maintenance_window_spec.rb +44 -0
  475. data/spec/models/kubernetes_node_metadata_spec.rb +62 -0
  476. data/spec/models/kubernetes_node_pool_for_post_spec.rb +62 -0
  477. data/spec/models/kubernetes_node_pool_for_put_spec.rb +62 -0
  478. data/spec/models/kubernetes_node_pool_lan_routes_spec.rb +40 -0
  479. data/spec/models/kubernetes_node_pool_lan_spec.rb +46 -0
  480. data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +132 -0
  481. data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +82 -0
  482. data/spec/models/kubernetes_node_pool_properties_spec.rb +138 -0
  483. data/spec/models/kubernetes_node_pool_spec.rb +62 -0
  484. data/spec/models/kubernetes_node_pools_spec.rb +56 -0
  485. data/spec/models/kubernetes_node_properties_spec.rb +52 -0
  486. data/spec/models/kubernetes_node_spec.rb +62 -0
  487. data/spec/models/kubernetes_nodes_spec.rb +56 -0
  488. data/spec/models/label_properties_spec.rb +58 -0
  489. data/spec/models/label_resource_properties_spec.rb +40 -0
  490. data/spec/models/label_resource_spec.rb +62 -0
  491. data/spec/models/label_resources_spec.rb +74 -0
  492. data/spec/models/label_spec.rb +62 -0
  493. data/spec/models/labels_spec.rb +56 -0
  494. data/spec/models/lan_entities_spec.rb +34 -0
  495. data/spec/models/lan_nics_spec.rb +70 -0
  496. data/spec/models/lan_post_spec.rb +64 -0
  497. data/spec/models/lan_properties_post_spec.rb +52 -0
  498. data/spec/models/lan_properties_spec.rb +52 -0
  499. data/spec/models/lan_spec.rb +64 -0
  500. data/spec/models/lans_spec.rb +70 -0
  501. data/spec/models/loadbalancer_entities_spec.rb +34 -0
  502. data/spec/models/loadbalancer_properties_spec.rb +50 -0
  503. data/spec/models/loadbalancer_spec.rb +64 -0
  504. data/spec/models/loadbalancers_spec.rb +70 -0
  505. data/spec/models/location_properties_spec.rb +56 -0
  506. data/spec/models/location_spec.rb +58 -0
  507. data/spec/models/locations_spec.rb +52 -0
  508. data/spec/models/nat_gateway_entities_spec.rb +40 -0
  509. data/spec/models/nat_gateway_lan_properties_spec.rb +40 -0
  510. data/spec/models/nat_gateway_properties_spec.rb +46 -0
  511. data/spec/models/nat_gateway_put_spec.rb +52 -0
  512. data/spec/models/nat_gateway_rule_properties_spec.rb +70 -0
  513. data/spec/models/nat_gateway_rule_protocol_spec.rb +28 -0
  514. data/spec/models/nat_gateway_rule_put_spec.rb +52 -0
  515. data/spec/models/nat_gateway_rule_spec.rb +58 -0
  516. data/spec/models/nat_gateway_rule_type_spec.rb +28 -0
  517. data/spec/models/nat_gateway_rules_spec.rb +52 -0
  518. data/spec/models/nat_gateway_spec.rb +64 -0
  519. data/spec/models/nat_gateways_spec.rb +70 -0
  520. data/spec/models/network_load_balancer_entities_spec.rb +40 -0
  521. data/spec/models/network_load_balancer_forwarding_rule_health_check_spec.rb +58 -0
  522. data/spec/models/network_load_balancer_forwarding_rule_properties_spec.rb +78 -0
  523. data/spec/models/network_load_balancer_forwarding_rule_put_spec.rb +52 -0
  524. data/spec/models/network_load_balancer_forwarding_rule_spec.rb +58 -0
  525. data/spec/models/network_load_balancer_forwarding_rule_target_health_check_spec.rb +46 -0
  526. data/spec/models/network_load_balancer_forwarding_rule_target_spec.rb +52 -0
  527. data/spec/models/network_load_balancer_forwarding_rules_spec.rb +70 -0
  528. data/spec/models/network_load_balancer_properties_spec.rb +58 -0
  529. data/spec/models/network_load_balancer_put_spec.rb +52 -0
  530. data/spec/models/network_load_balancer_spec.rb +64 -0
  531. data/spec/models/network_load_balancers_spec.rb +70 -0
  532. data/spec/models/nic_entities_spec.rb +40 -0
  533. data/spec/models/nic_properties_spec.rb +86 -0
  534. data/spec/models/nic_put_spec.rb +52 -0
  535. data/spec/models/nic_spec.rb +64 -0
  536. data/spec/models/nics_spec.rb +70 -0
  537. data/spec/models/no_state_meta_data_spec.rb +70 -0
  538. data/spec/models/pagination_links_spec.rb +46 -0
  539. data/spec/models/peer_spec.rb +58 -0
  540. data/spec/models/private_cross_connect_properties_spec.rb +52 -0
  541. data/spec/models/private_cross_connect_spec.rb +58 -0
  542. data/spec/models/private_cross_connects_spec.rb +52 -0
  543. data/spec/models/remote_console_url_spec.rb +34 -0
  544. data/spec/models/request_metadata_spec.rb +52 -0
  545. data/spec/models/request_properties_spec.rb +52 -0
  546. data/spec/models/request_spec.rb +58 -0
  547. data/spec/models/request_status_metadata_spec.rb +56 -0
  548. data/spec/models/request_status_spec.rb +52 -0
  549. data/spec/models/request_target_spec.rb +44 -0
  550. data/spec/models/requests_spec.rb +70 -0
  551. data/spec/models/resource_entities_spec.rb +34 -0
  552. data/spec/models/resource_groups_spec.rb +52 -0
  553. data/spec/models/resource_limits_spec.rb +160 -0
  554. data/spec/models/resource_properties_spec.rb +40 -0
  555. data/spec/models/resource_reference_spec.rb +46 -0
  556. data/spec/models/resource_spec.rb +64 -0
  557. data/spec/models/resources_spec.rb +52 -0
  558. data/spec/models/resources_users_spec.rb +52 -0
  559. data/spec/models/s3_key_metadata_spec.rb +40 -0
  560. data/spec/models/s3_key_properties_spec.rb +40 -0
  561. data/spec/models/s3_key_spec.rb +58 -0
  562. data/spec/models/s3_keys_spec.rb +52 -0
  563. data/spec/models/s3_object_storage_sso_spec.rb +34 -0
  564. data/spec/models/server_entities_spec.rb +46 -0
  565. data/spec/models/server_properties_spec.rb +96 -0
  566. data/spec/models/server_spec.rb +64 -0
  567. data/spec/models/servers_spec.rb +70 -0
  568. data/spec/models/snapshot_properties_spec.rb +128 -0
  569. data/spec/models/snapshot_spec.rb +58 -0
  570. data/spec/models/snapshots_spec.rb +52 -0
  571. data/spec/models/target_port_range_spec.rb +40 -0
  572. data/spec/models/template_properties_spec.rb +52 -0
  573. data/spec/models/template_spec.rb +58 -0
  574. data/spec/models/templates_spec.rb +52 -0
  575. data/spec/models/token_spec.rb +34 -0
  576. data/spec/models/type_spec.rb +28 -0
  577. data/spec/models/user_metadata_spec.rb +46 -0
  578. data/spec/models/user_post_spec.rb +34 -0
  579. data/spec/models/user_properties_post_spec.rb +76 -0
  580. data/spec/models/user_properties_put_spec.rb +70 -0
  581. data/spec/models/user_properties_spec.rb +76 -0
  582. data/spec/models/user_put_spec.rb +40 -0
  583. data/spec/models/user_spec.rb +64 -0
  584. data/spec/models/users_entities_spec.rb +40 -0
  585. data/spec/models/users_spec.rb +52 -0
  586. data/spec/models/volume_properties_spec.rb +158 -0
  587. data/spec/models/volume_spec.rb +58 -0
  588. data/spec/models/volumes_spec.rb +70 -0
  589. data/spec/spec_helper.rb +2 -2
  590. metadata +642 -179
  591. data/Gemfile.lock +0 -68
  592. data/LICENSE +0 -190
  593. data/README.md +0 -65
  594. data/docs/api/NicApi.md +0 -1087
  595. data/docs/models/IpBlocks.md +0 -30
  596. data/docs/models/KubernetesConfig.md +0 -24
  597. data/docs/models/KubernetesConfigProperties.md +0 -18
  598. data/docs/models/KubernetesNodePoolLan.md +0 -18
  599. data/docs/models/Users.md +0 -30
  600. data/lib/ionoscloud/api/nic_api.rb +0 -1222
  601. data/lib/test_driver.rb +0 -104
@@ -0,0 +1,1708 @@
1
+ =begin
2
+ #CLOUD API
3
+
4
+ #An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
5
+
6
+ The version of the OpenAPI document: 6.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 5.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module Ionoscloud
16
+ class NetworkLoadBalancersApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Remove an Network Load Balancer
23
+ # Removes the specified Network Load Balancer.
24
+ # @param datacenter_id [String] The unique ID of the datacenter
25
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
28
+ # @option opts [Integer] :depth 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 (default to 0)
29
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
30
+ # @return [Object]
31
+ def datacenters_networkloadbalancers_delete(datacenter_id, network_load_balancer_id, opts = {})
32
+ data, _status_code, _headers = datacenters_networkloadbalancers_delete_with_http_info(datacenter_id, network_load_balancer_id, opts)
33
+ data
34
+ end
35
+
36
+ # Remove an Network Load Balancer
37
+ # Removes the specified Network Load Balancer.
38
+ # @param datacenter_id [String] The unique ID of the datacenter
39
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
40
+ # @param [Hash] opts the optional parameters
41
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
42
+ # @option opts [Integer] :depth 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
43
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
44
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
45
+ def datacenters_networkloadbalancers_delete_with_http_info(datacenter_id, network_load_balancer_id, opts = {})
46
+ if @api_client.config.debugging
47
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_delete ...'
48
+ end
49
+ # verify the required parameter 'datacenter_id' is set
50
+ if @api_client.config.client_side_validation && datacenter_id.nil?
51
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_delete"
52
+ end
53
+ # verify the required parameter 'network_load_balancer_id' is set
54
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
55
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_delete"
56
+ end
57
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
58
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_delete, must be smaller than or equal to 10.'
59
+ end
60
+
61
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
62
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_delete, must be greater than or equal to 0.'
63
+ end
64
+
65
+ # resource path
66
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
67
+
68
+ # query parameters
69
+ query_params = opts[:query_params] || {}
70
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
71
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
72
+
73
+ # header parameters
74
+ header_params = opts[:header_params] || {}
75
+ # HTTP header 'Accept' (if needed)
76
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
77
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
78
+
79
+ # form parameters
80
+ form_params = opts[:form_params] || {}
81
+
82
+ # http body (model)
83
+ post_body = opts[:debug_body]
84
+
85
+ # return_type
86
+ return_type = opts[:debug_return_type] || 'Object'
87
+
88
+ # auth_names
89
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
90
+
91
+ new_options = opts.merge(
92
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_delete",
93
+ :header_params => header_params,
94
+ :query_params => query_params,
95
+ :form_params => form_params,
96
+ :body => post_body,
97
+ :auth_names => auth_names,
98
+ :return_type => return_type
99
+ )
100
+
101
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
104
+ end
105
+ return data, status_code, headers
106
+ end
107
+
108
+ # Retrieve an Network Load Balancer
109
+ # Retrieves the attributes of a given Network Load Balancer.
110
+ # @param datacenter_id [String] The unique ID of the datacenter
111
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
112
+ # @param [Hash] opts the optional parameters
113
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
114
+ # @option opts [Integer] :depth 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 (default to 0)
115
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
116
+ # @return [NetworkLoadBalancer]
117
+ def datacenters_networkloadbalancers_find_by_network_load_balancer_id(datacenter_id, network_load_balancer_id, opts = {})
118
+ data, _status_code, _headers = datacenters_networkloadbalancers_find_by_network_load_balancer_id_with_http_info(datacenter_id, network_load_balancer_id, opts)
119
+ data
120
+ end
121
+
122
+ # Retrieve an Network Load Balancer
123
+ # Retrieves the attributes of a given Network Load Balancer.
124
+ # @param datacenter_id [String] The unique ID of the datacenter
125
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
126
+ # @param [Hash] opts the optional parameters
127
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
128
+ # @option opts [Integer] :depth 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
129
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
130
+ # @return [Array<(NetworkLoadBalancer, Integer, Hash)>] NetworkLoadBalancer data, response status code and response headers
131
+ def datacenters_networkloadbalancers_find_by_network_load_balancer_id_with_http_info(datacenter_id, network_load_balancer_id, opts = {})
132
+ if @api_client.config.debugging
133
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_find_by_network_load_balancer_id ...'
134
+ end
135
+ # verify the required parameter 'datacenter_id' is set
136
+ if @api_client.config.client_side_validation && datacenter_id.nil?
137
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_find_by_network_load_balancer_id"
138
+ end
139
+ # verify the required parameter 'network_load_balancer_id' is set
140
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
141
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_find_by_network_load_balancer_id"
142
+ end
143
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
144
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_find_by_network_load_balancer_id, must be smaller than or equal to 10.'
145
+ end
146
+
147
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
148
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_find_by_network_load_balancer_id, must be greater than or equal to 0.'
149
+ end
150
+
151
+ # resource path
152
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
153
+
154
+ # query parameters
155
+ query_params = opts[:query_params] || {}
156
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
157
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
158
+
159
+ # header parameters
160
+ header_params = opts[:header_params] || {}
161
+ # HTTP header 'Accept' (if needed)
162
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
163
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
164
+
165
+ # form parameters
166
+ form_params = opts[:form_params] || {}
167
+
168
+ # http body (model)
169
+ post_body = opts[:debug_body]
170
+
171
+ # return_type
172
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancer'
173
+
174
+ # auth_names
175
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
176
+
177
+ new_options = opts.merge(
178
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_find_by_network_load_balancer_id",
179
+ :header_params => header_params,
180
+ :query_params => query_params,
181
+ :form_params => form_params,
182
+ :body => post_body,
183
+ :auth_names => auth_names,
184
+ :return_type => return_type
185
+ )
186
+
187
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_find_by_network_load_balancer_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
+ end
191
+ return data, status_code, headers
192
+ end
193
+
194
+ # Remove Flow Log from Network Load Balancer
195
+ # This will remove a flow log from the network load balancer.
196
+ # @param datacenter_id [String] The unique ID of the datacenter
197
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
198
+ # @param flow_log_id [String] The unique ID of the flow log
199
+ # @param [Hash] opts the optional parameters
200
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
201
+ # @option opts [Integer] :depth 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 (default to 0)
202
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
203
+ # @return [Object]
204
+ def datacenters_networkloadbalancers_flowlogs_delete(datacenter_id, network_load_balancer_id, flow_log_id, opts = {})
205
+ data, _status_code, _headers = datacenters_networkloadbalancers_flowlogs_delete_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, opts)
206
+ data
207
+ end
208
+
209
+ # Remove Flow Log from Network Load Balancer
210
+ # This will remove a flow log from the network load balancer.
211
+ # @param datacenter_id [String] The unique ID of the datacenter
212
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
213
+ # @param flow_log_id [String] The unique ID of the flow log
214
+ # @param [Hash] opts the optional parameters
215
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
216
+ # @option opts [Integer] :depth 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
217
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
218
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
219
+ def datacenters_networkloadbalancers_flowlogs_delete_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, opts = {})
220
+ if @api_client.config.debugging
221
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_delete ...'
222
+ end
223
+ # verify the required parameter 'datacenter_id' is set
224
+ if @api_client.config.client_side_validation && datacenter_id.nil?
225
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_delete"
226
+ end
227
+ # verify the required parameter 'network_load_balancer_id' is set
228
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
229
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_delete"
230
+ end
231
+ # verify the required parameter 'flow_log_id' is set
232
+ if @api_client.config.client_side_validation && flow_log_id.nil?
233
+ fail ArgumentError, "Missing the required parameter 'flow_log_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_delete"
234
+ end
235
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
236
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_delete, must be smaller than or equal to 10.'
237
+ end
238
+
239
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
240
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_delete, must be greater than or equal to 0.'
241
+ end
242
+
243
+ # resource path
244
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'flowLogId' + '}', CGI.escape(flow_log_id.to_s))
245
+
246
+ # query parameters
247
+ query_params = opts[:query_params] || {}
248
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
249
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
250
+
251
+ # header parameters
252
+ header_params = opts[:header_params] || {}
253
+ # HTTP header 'Accept' (if needed)
254
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
255
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
256
+
257
+ # form parameters
258
+ form_params = opts[:form_params] || {}
259
+
260
+ # http body (model)
261
+ post_body = opts[:debug_body]
262
+
263
+ # return_type
264
+ return_type = opts[:debug_return_type] || 'Object'
265
+
266
+ # auth_names
267
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
268
+
269
+ new_options = opts.merge(
270
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_delete",
271
+ :header_params => header_params,
272
+ :query_params => query_params,
273
+ :form_params => form_params,
274
+ :body => post_body,
275
+ :auth_names => auth_names,
276
+ :return_type => return_type
277
+ )
278
+
279
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_flowlogs_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
282
+ end
283
+ return data, status_code, headers
284
+ end
285
+
286
+ # Retrieve a Flow Log of the Network Load Balancer
287
+ # This will return a Flow Log of the Network Load Balancer.
288
+ # @param datacenter_id [String] The unique ID of the datacenter
289
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
290
+ # @param flow_log_id [String] The unique ID of the Flow Log
291
+ # @param [Hash] opts the optional parameters
292
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
293
+ # @option opts [Integer] :depth 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 (default to 0)
294
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
295
+ # @return [FlowLog]
296
+ def datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id(datacenter_id, network_load_balancer_id, flow_log_id, opts = {})
297
+ data, _status_code, _headers = datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, opts)
298
+ data
299
+ end
300
+
301
+ # Retrieve a Flow Log of the Network Load Balancer
302
+ # This will return a Flow Log of the Network Load Balancer.
303
+ # @param datacenter_id [String] The unique ID of the datacenter
304
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
305
+ # @param flow_log_id [String] The unique ID of the Flow Log
306
+ # @param [Hash] opts the optional parameters
307
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
308
+ # @option opts [Integer] :depth 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
309
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
310
+ # @return [Array<(FlowLog, Integer, Hash)>] FlowLog data, response status code and response headers
311
+ def datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, opts = {})
312
+ if @api_client.config.debugging
313
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id ...'
314
+ end
315
+ # verify the required parameter 'datacenter_id' is set
316
+ if @api_client.config.client_side_validation && datacenter_id.nil?
317
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id"
318
+ end
319
+ # verify the required parameter 'network_load_balancer_id' is set
320
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
321
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id"
322
+ end
323
+ # verify the required parameter 'flow_log_id' is set
324
+ if @api_client.config.client_side_validation && flow_log_id.nil?
325
+ fail ArgumentError, "Missing the required parameter 'flow_log_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id"
326
+ end
327
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
328
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id, must be smaller than or equal to 10.'
329
+ end
330
+
331
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
332
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id, must be greater than or equal to 0.'
333
+ end
334
+
335
+ # resource path
336
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'flowLogId' + '}', CGI.escape(flow_log_id.to_s))
337
+
338
+ # query parameters
339
+ query_params = opts[:query_params] || {}
340
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
341
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
342
+
343
+ # header parameters
344
+ header_params = opts[:header_params] || {}
345
+ # HTTP header 'Accept' (if needed)
346
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
347
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
348
+
349
+ # form parameters
350
+ form_params = opts[:form_params] || {}
351
+
352
+ # http body (model)
353
+ post_body = opts[:debug_body]
354
+
355
+ # return_type
356
+ return_type = opts[:debug_return_type] || 'FlowLog'
357
+
358
+ # auth_names
359
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
360
+
361
+ new_options = opts.merge(
362
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id",
363
+ :header_params => header_params,
364
+ :query_params => query_params,
365
+ :form_params => form_params,
366
+ :body => post_body,
367
+ :auth_names => auth_names,
368
+ :return_type => return_type
369
+ )
370
+
371
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
372
+ if @api_client.config.debugging
373
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_flowlogs_find_by_flow_log_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
374
+ end
375
+ return data, status_code, headers
376
+ end
377
+
378
+ # List Network Load Balancer Flow Logs
379
+ # You can retrieve a list of Flow Logs of the Network Load Balancer.
380
+ # @param datacenter_id [String] The unique ID of the datacenter
381
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
382
+ # @param [Hash] opts the optional parameters
383
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
384
+ # @option opts [Integer] :depth 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 (default to 0)
385
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
386
+ # @return [FlowLogs]
387
+ def datacenters_networkloadbalancers_flowlogs_get(datacenter_id, network_load_balancer_id, opts = {})
388
+ data, _status_code, _headers = datacenters_networkloadbalancers_flowlogs_get_with_http_info(datacenter_id, network_load_balancer_id, opts)
389
+ data
390
+ end
391
+
392
+ # List Network Load Balancer Flow Logs
393
+ # You can retrieve a list of Flow Logs of the Network Load Balancer.
394
+ # @param datacenter_id [String] The unique ID of the datacenter
395
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
396
+ # @param [Hash] opts the optional parameters
397
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
398
+ # @option opts [Integer] :depth 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
399
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
400
+ # @return [Array<(FlowLogs, Integer, Hash)>] FlowLogs data, response status code and response headers
401
+ def datacenters_networkloadbalancers_flowlogs_get_with_http_info(datacenter_id, network_load_balancer_id, opts = {})
402
+ if @api_client.config.debugging
403
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_get ...'
404
+ end
405
+ # verify the required parameter 'datacenter_id' is set
406
+ if @api_client.config.client_side_validation && datacenter_id.nil?
407
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_get"
408
+ end
409
+ # verify the required parameter 'network_load_balancer_id' is set
410
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
411
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_get"
412
+ end
413
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
414
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_get, must be smaller than or equal to 10.'
415
+ end
416
+
417
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
418
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_get, must be greater than or equal to 0.'
419
+ end
420
+
421
+ # resource path
422
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
423
+
424
+ # query parameters
425
+ query_params = opts[:query_params] || {}
426
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
427
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
428
+
429
+ # header parameters
430
+ header_params = opts[:header_params] || {}
431
+ # HTTP header 'Accept' (if needed)
432
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
433
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
434
+
435
+ # form parameters
436
+ form_params = opts[:form_params] || {}
437
+
438
+ # http body (model)
439
+ post_body = opts[:debug_body]
440
+
441
+ # return_type
442
+ return_type = opts[:debug_return_type] || 'FlowLogs'
443
+
444
+ # auth_names
445
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
446
+
447
+ new_options = opts.merge(
448
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_get",
449
+ :header_params => header_params,
450
+ :query_params => query_params,
451
+ :form_params => form_params,
452
+ :body => post_body,
453
+ :auth_names => auth_names,
454
+ :return_type => return_type
455
+ )
456
+
457
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_flowlogs_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
463
+
464
+ # Partially modify a Flow Log of the Network Load Balancer
465
+ # You can use to partially update a Flow Log of a Network Load Balancer.
466
+ # @param datacenter_id [String] The unique ID of the datacenter
467
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
468
+ # @param flow_log_id [String] The unique ID of the Flow Log
469
+ # @param network_load_balancer_flow_log_properties [FlowLogProperties] Properties of a Flow Log to be updated
470
+ # @param [Hash] opts the optional parameters
471
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
472
+ # @option opts [Integer] :depth 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 (default to 0)
473
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
474
+ # @return [FlowLog]
475
+ def datacenters_networkloadbalancers_flowlogs_patch(datacenter_id, network_load_balancer_id, flow_log_id, network_load_balancer_flow_log_properties, opts = {})
476
+ data, _status_code, _headers = datacenters_networkloadbalancers_flowlogs_patch_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, network_load_balancer_flow_log_properties, opts)
477
+ data
478
+ end
479
+
480
+ # Partially modify a Flow Log of the Network Load Balancer
481
+ # You can use to partially update a Flow Log of a Network Load Balancer.
482
+ # @param datacenter_id [String] The unique ID of the datacenter
483
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
484
+ # @param flow_log_id [String] The unique ID of the Flow Log
485
+ # @param network_load_balancer_flow_log_properties [FlowLogProperties] Properties of a Flow Log to be updated
486
+ # @param [Hash] opts the optional parameters
487
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
488
+ # @option opts [Integer] :depth 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
489
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
490
+ # @return [Array<(FlowLog, Integer, Hash)>] FlowLog data, response status code and response headers
491
+ def datacenters_networkloadbalancers_flowlogs_patch_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, network_load_balancer_flow_log_properties, opts = {})
492
+ if @api_client.config.debugging
493
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch ...'
494
+ end
495
+ # verify the required parameter 'datacenter_id' is set
496
+ if @api_client.config.client_side_validation && datacenter_id.nil?
497
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch"
498
+ end
499
+ # verify the required parameter 'network_load_balancer_id' is set
500
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
501
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch"
502
+ end
503
+ # verify the required parameter 'flow_log_id' is set
504
+ if @api_client.config.client_side_validation && flow_log_id.nil?
505
+ fail ArgumentError, "Missing the required parameter 'flow_log_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch"
506
+ end
507
+ # verify the required parameter 'network_load_balancer_flow_log_properties' is set
508
+ if @api_client.config.client_side_validation && network_load_balancer_flow_log_properties.nil?
509
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_flow_log_properties' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch"
510
+ end
511
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
512
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch, must be smaller than or equal to 10.'
513
+ end
514
+
515
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
516
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch, must be greater than or equal to 0.'
517
+ end
518
+
519
+ # resource path
520
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'flowLogId' + '}', CGI.escape(flow_log_id.to_s))
521
+
522
+ # query parameters
523
+ query_params = opts[:query_params] || {}
524
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
525
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
526
+
527
+ # header parameters
528
+ header_params = opts[:header_params] || {}
529
+ # HTTP header 'Accept' (if needed)
530
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
531
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
532
+
533
+ # form parameters
534
+ form_params = opts[:form_params] || {}
535
+
536
+ # http body (model)
537
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer_flow_log_properties)
538
+
539
+ # return_type
540
+ return_type = opts[:debug_return_type] || 'FlowLog'
541
+
542
+ # auth_names
543
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
544
+
545
+ new_options = opts.merge(
546
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_patch",
547
+ :header_params => header_params,
548
+ :query_params => query_params,
549
+ :form_params => form_params,
550
+ :body => post_body,
551
+ :auth_names => auth_names,
552
+ :return_type => return_type
553
+ )
554
+
555
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
556
+ if @api_client.config.debugging
557
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_flowlogs_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
558
+ end
559
+ return data, status_code, headers
560
+ end
561
+
562
+ # Add a Network Load Balancer Flow Log
563
+ # This will add a new Flow Log to the Network Load Balancer.
564
+ # @param datacenter_id [String] The unique ID of the datacenter
565
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
566
+ # @param network_load_balancer_flow_log [FlowLog] Flow Log to add
567
+ # @param [Hash] opts the optional parameters
568
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
569
+ # @option opts [Integer] :depth 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 (default to 0)
570
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
571
+ # @return [FlowLog]
572
+ def datacenters_networkloadbalancers_flowlogs_post(datacenter_id, network_load_balancer_id, network_load_balancer_flow_log, opts = {})
573
+ data, _status_code, _headers = datacenters_networkloadbalancers_flowlogs_post_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer_flow_log, opts)
574
+ data
575
+ end
576
+
577
+ # Add a Network Load Balancer Flow Log
578
+ # This will add a new Flow Log to the Network Load Balancer.
579
+ # @param datacenter_id [String] The unique ID of the datacenter
580
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
581
+ # @param network_load_balancer_flow_log [FlowLog] Flow Log to add
582
+ # @param [Hash] opts the optional parameters
583
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
584
+ # @option opts [Integer] :depth 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
585
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
586
+ # @return [Array<(FlowLog, Integer, Hash)>] FlowLog data, response status code and response headers
587
+ def datacenters_networkloadbalancers_flowlogs_post_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer_flow_log, opts = {})
588
+ if @api_client.config.debugging
589
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_post ...'
590
+ end
591
+ # verify the required parameter 'datacenter_id' is set
592
+ if @api_client.config.client_side_validation && datacenter_id.nil?
593
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_post"
594
+ end
595
+ # verify the required parameter 'network_load_balancer_id' is set
596
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
597
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_post"
598
+ end
599
+ # verify the required parameter 'network_load_balancer_flow_log' is set
600
+ if @api_client.config.client_side_validation && network_load_balancer_flow_log.nil?
601
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_flow_log' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_post"
602
+ end
603
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
604
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_post, must be smaller than or equal to 10.'
605
+ end
606
+
607
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
608
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_post, must be greater than or equal to 0.'
609
+ end
610
+
611
+ # resource path
612
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
613
+
614
+ # query parameters
615
+ query_params = opts[:query_params] || {}
616
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
617
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
618
+
619
+ # header parameters
620
+ header_params = opts[:header_params] || {}
621
+ # HTTP header 'Accept' (if needed)
622
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
623
+ # HTTP header 'Content-Type'
624
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
625
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
626
+
627
+ # form parameters
628
+ form_params = opts[:form_params] || {}
629
+
630
+ # http body (model)
631
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer_flow_log)
632
+
633
+ # return_type
634
+ return_type = opts[:debug_return_type] || 'FlowLog'
635
+
636
+ # auth_names
637
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
638
+
639
+ new_options = opts.merge(
640
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_post",
641
+ :header_params => header_params,
642
+ :query_params => query_params,
643
+ :form_params => form_params,
644
+ :body => post_body,
645
+ :auth_names => auth_names,
646
+ :return_type => return_type
647
+ )
648
+
649
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
650
+ if @api_client.config.debugging
651
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_flowlogs_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
652
+ end
653
+ return data, status_code, headers
654
+ end
655
+
656
+ # Modify a Flow Log of the Network Load Balancer
657
+ # You can use to update a Flow Log of the Network Load Balancer.
658
+ # @param datacenter_id [String] The unique ID of the datacenter
659
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
660
+ # @param flow_log_id [String] The unique ID of the Flow Log
661
+ # @param network_load_balancer_flow_log [FlowLogPut] Modified Network Load Balancer Flow Log
662
+ # @param [Hash] opts the optional parameters
663
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
664
+ # @option opts [Integer] :depth 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 (default to 0)
665
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
666
+ # @return [FlowLog]
667
+ def datacenters_networkloadbalancers_flowlogs_put(datacenter_id, network_load_balancer_id, flow_log_id, network_load_balancer_flow_log, opts = {})
668
+ data, _status_code, _headers = datacenters_networkloadbalancers_flowlogs_put_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, network_load_balancer_flow_log, opts)
669
+ data
670
+ end
671
+
672
+ # Modify a Flow Log of the Network Load Balancer
673
+ # You can use to update a Flow Log of the Network Load Balancer.
674
+ # @param datacenter_id [String] The unique ID of the datacenter
675
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
676
+ # @param flow_log_id [String] The unique ID of the Flow Log
677
+ # @param network_load_balancer_flow_log [FlowLogPut] Modified Network Load Balancer Flow Log
678
+ # @param [Hash] opts the optional parameters
679
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
680
+ # @option opts [Integer] :depth 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
681
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
682
+ # @return [Array<(FlowLog, Integer, Hash)>] FlowLog data, response status code and response headers
683
+ def datacenters_networkloadbalancers_flowlogs_put_with_http_info(datacenter_id, network_load_balancer_id, flow_log_id, network_load_balancer_flow_log, opts = {})
684
+ if @api_client.config.debugging
685
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put ...'
686
+ end
687
+ # verify the required parameter 'datacenter_id' is set
688
+ if @api_client.config.client_side_validation && datacenter_id.nil?
689
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put"
690
+ end
691
+ # verify the required parameter 'network_load_balancer_id' is set
692
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
693
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put"
694
+ end
695
+ # verify the required parameter 'flow_log_id' is set
696
+ if @api_client.config.client_side_validation && flow_log_id.nil?
697
+ fail ArgumentError, "Missing the required parameter 'flow_log_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put"
698
+ end
699
+ # verify the required parameter 'network_load_balancer_flow_log' is set
700
+ if @api_client.config.client_side_validation && network_load_balancer_flow_log.nil?
701
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_flow_log' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put"
702
+ end
703
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
704
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put, must be smaller than or equal to 10.'
705
+ end
706
+
707
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
708
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put, must be greater than or equal to 0.'
709
+ end
710
+
711
+ # resource path
712
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/flowlogs/{flowLogId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'flowLogId' + '}', CGI.escape(flow_log_id.to_s))
713
+
714
+ # query parameters
715
+ query_params = opts[:query_params] || {}
716
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
717
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
718
+
719
+ # header parameters
720
+ header_params = opts[:header_params] || {}
721
+ # HTTP header 'Accept' (if needed)
722
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
723
+ # HTTP header 'Content-Type'
724
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
725
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
726
+
727
+ # form parameters
728
+ form_params = opts[:form_params] || {}
729
+
730
+ # http body (model)
731
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer_flow_log)
732
+
733
+ # return_type
734
+ return_type = opts[:debug_return_type] || 'FlowLog'
735
+
736
+ # auth_names
737
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
738
+
739
+ new_options = opts.merge(
740
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_flowlogs_put",
741
+ :header_params => header_params,
742
+ :query_params => query_params,
743
+ :form_params => form_params,
744
+ :body => post_body,
745
+ :auth_names => auth_names,
746
+ :return_type => return_type
747
+ )
748
+
749
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
750
+ if @api_client.config.debugging
751
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_flowlogs_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
752
+ end
753
+ return data, status_code, headers
754
+ end
755
+
756
+ # Remove Forwarding Rule from Network Load Balancer
757
+ # This will remove a forwarding rule from the Network Load Balancer.
758
+ # @param datacenter_id [String] The unique ID of the datacenter
759
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
760
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
761
+ # @param [Hash] opts the optional parameters
762
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
763
+ # @option opts [Integer] :depth 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 (default to 0)
764
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
765
+ # @return [Object]
766
+ def datacenters_networkloadbalancers_forwardingrules_delete(datacenter_id, network_load_balancer_id, forwarding_rule_id, opts = {})
767
+ data, _status_code, _headers = datacenters_networkloadbalancers_forwardingrules_delete_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, opts)
768
+ data
769
+ end
770
+
771
+ # Remove Forwarding Rule from Network Load Balancer
772
+ # This will remove a forwarding rule from the Network Load Balancer.
773
+ # @param datacenter_id [String] The unique ID of the datacenter
774
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
775
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
776
+ # @param [Hash] opts the optional parameters
777
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
778
+ # @option opts [Integer] :depth 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
779
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
780
+ # @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
781
+ def datacenters_networkloadbalancers_forwardingrules_delete_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, opts = {})
782
+ if @api_client.config.debugging
783
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_delete ...'
784
+ end
785
+ # verify the required parameter 'datacenter_id' is set
786
+ if @api_client.config.client_side_validation && datacenter_id.nil?
787
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_delete"
788
+ end
789
+ # verify the required parameter 'network_load_balancer_id' is set
790
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
791
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_delete"
792
+ end
793
+ # verify the required parameter 'forwarding_rule_id' is set
794
+ if @api_client.config.client_side_validation && forwarding_rule_id.nil?
795
+ fail ArgumentError, "Missing the required parameter 'forwarding_rule_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_delete"
796
+ end
797
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
798
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_delete, must be smaller than or equal to 10.'
799
+ end
800
+
801
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
802
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_delete, must be greater than or equal to 0.'
803
+ end
804
+
805
+ # resource path
806
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'forwardingRuleId' + '}', CGI.escape(forwarding_rule_id.to_s))
807
+
808
+ # query parameters
809
+ query_params = opts[:query_params] || {}
810
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
811
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
812
+
813
+ # header parameters
814
+ header_params = opts[:header_params] || {}
815
+ # HTTP header 'Accept' (if needed)
816
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
817
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
818
+
819
+ # form parameters
820
+ form_params = opts[:form_params] || {}
821
+
822
+ # http body (model)
823
+ post_body = opts[:debug_body]
824
+
825
+ # return_type
826
+ return_type = opts[:debug_return_type] || 'Object'
827
+
828
+ # auth_names
829
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
830
+
831
+ new_options = opts.merge(
832
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_delete",
833
+ :header_params => header_params,
834
+ :query_params => query_params,
835
+ :form_params => form_params,
836
+ :body => post_body,
837
+ :auth_names => auth_names,
838
+ :return_type => return_type
839
+ )
840
+
841
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
842
+ if @api_client.config.debugging
843
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_forwardingrules_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
844
+ end
845
+ return data, status_code, headers
846
+ end
847
+
848
+ # Retrieve a Forwarding Rule of the Network Load Balancer
849
+ # This will a forwarding rule of the Network Load Balancer.
850
+ # @param datacenter_id [String] The unique ID of the datacenter
851
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
852
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
853
+ # @param [Hash] opts the optional parameters
854
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
855
+ # @option opts [Integer] :depth 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 (default to 0)
856
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
857
+ # @return [NetworkLoadBalancerForwardingRule]
858
+ def datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id(datacenter_id, network_load_balancer_id, forwarding_rule_id, opts = {})
859
+ data, _status_code, _headers = datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, opts)
860
+ data
861
+ end
862
+
863
+ # Retrieve a Forwarding Rule of the Network Load Balancer
864
+ # This will a forwarding rule of the Network Load Balancer.
865
+ # @param datacenter_id [String] The unique ID of the datacenter
866
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
867
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
868
+ # @param [Hash] opts the optional parameters
869
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
870
+ # @option opts [Integer] :depth 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
871
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
872
+ # @return [Array<(NetworkLoadBalancerForwardingRule, Integer, Hash)>] NetworkLoadBalancerForwardingRule data, response status code and response headers
873
+ def datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, opts = {})
874
+ if @api_client.config.debugging
875
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id ...'
876
+ end
877
+ # verify the required parameter 'datacenter_id' is set
878
+ if @api_client.config.client_side_validation && datacenter_id.nil?
879
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id"
880
+ end
881
+ # verify the required parameter 'network_load_balancer_id' is set
882
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
883
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id"
884
+ end
885
+ # verify the required parameter 'forwarding_rule_id' is set
886
+ if @api_client.config.client_side_validation && forwarding_rule_id.nil?
887
+ fail ArgumentError, "Missing the required parameter 'forwarding_rule_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id"
888
+ end
889
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
890
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id, must be smaller than or equal to 10.'
891
+ end
892
+
893
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
894
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id, must be greater than or equal to 0.'
895
+ end
896
+
897
+ # resource path
898
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'forwardingRuleId' + '}', CGI.escape(forwarding_rule_id.to_s))
899
+
900
+ # query parameters
901
+ query_params = opts[:query_params] || {}
902
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
903
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
904
+
905
+ # header parameters
906
+ header_params = opts[:header_params] || {}
907
+ # HTTP header 'Accept' (if needed)
908
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
909
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
910
+
911
+ # form parameters
912
+ form_params = opts[:form_params] || {}
913
+
914
+ # http body (model)
915
+ post_body = opts[:debug_body]
916
+
917
+ # return_type
918
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancerForwardingRule'
919
+
920
+ # auth_names
921
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
922
+
923
+ new_options = opts.merge(
924
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id",
925
+ :header_params => header_params,
926
+ :query_params => query_params,
927
+ :form_params => form_params,
928
+ :body => post_body,
929
+ :auth_names => auth_names,
930
+ :return_type => return_type
931
+ )
932
+
933
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
934
+ if @api_client.config.debugging
935
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_forwardingrules_find_by_forwarding_rule_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
936
+ end
937
+ return data, status_code, headers
938
+ end
939
+
940
+ # List Network Load Balancer Forwarding Rules
941
+ # You can retrieve a list of forwarding rules of the Network Load Balancer.
942
+ # @param datacenter_id [String] The unique ID of the datacenter
943
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
944
+ # @param [Hash] opts the optional parameters
945
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
946
+ # @option opts [Integer] :depth 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 (default to 0)
947
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
948
+ # @return [NetworkLoadBalancerForwardingRules]
949
+ def datacenters_networkloadbalancers_forwardingrules_get(datacenter_id, network_load_balancer_id, opts = {})
950
+ data, _status_code, _headers = datacenters_networkloadbalancers_forwardingrules_get_with_http_info(datacenter_id, network_load_balancer_id, opts)
951
+ data
952
+ end
953
+
954
+ # List Network Load Balancer Forwarding Rules
955
+ # You can retrieve a list of forwarding rules of the Network Load Balancer.
956
+ # @param datacenter_id [String] The unique ID of the datacenter
957
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
958
+ # @param [Hash] opts the optional parameters
959
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
960
+ # @option opts [Integer] :depth 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
961
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
962
+ # @return [Array<(NetworkLoadBalancerForwardingRules, Integer, Hash)>] NetworkLoadBalancerForwardingRules data, response status code and response headers
963
+ def datacenters_networkloadbalancers_forwardingrules_get_with_http_info(datacenter_id, network_load_balancer_id, opts = {})
964
+ if @api_client.config.debugging
965
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_get ...'
966
+ end
967
+ # verify the required parameter 'datacenter_id' is set
968
+ if @api_client.config.client_side_validation && datacenter_id.nil?
969
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_get"
970
+ end
971
+ # verify the required parameter 'network_load_balancer_id' is set
972
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
973
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_get"
974
+ end
975
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
976
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_get, must be smaller than or equal to 10.'
977
+ end
978
+
979
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
980
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_get, must be greater than or equal to 0.'
981
+ end
982
+
983
+ # resource path
984
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
985
+
986
+ # query parameters
987
+ query_params = opts[:query_params] || {}
988
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
989
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
990
+
991
+ # header parameters
992
+ header_params = opts[:header_params] || {}
993
+ # HTTP header 'Accept' (if needed)
994
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
995
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
996
+
997
+ # form parameters
998
+ form_params = opts[:form_params] || {}
999
+
1000
+ # http body (model)
1001
+ post_body = opts[:debug_body]
1002
+
1003
+ # return_type
1004
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancerForwardingRules'
1005
+
1006
+ # auth_names
1007
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1008
+
1009
+ new_options = opts.merge(
1010
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_get",
1011
+ :header_params => header_params,
1012
+ :query_params => query_params,
1013
+ :form_params => form_params,
1014
+ :body => post_body,
1015
+ :auth_names => auth_names,
1016
+ :return_type => return_type
1017
+ )
1018
+
1019
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1020
+ if @api_client.config.debugging
1021
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_forwardingrules_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1022
+ end
1023
+ return data, status_code, headers
1024
+ end
1025
+
1026
+ # Partially modify a forwarding rule of the Network Load Balancer
1027
+ # You can use to partially update a forwarding rule of a Network Load Balancer.
1028
+ # @param datacenter_id [String] The unique ID of the datacenter
1029
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1030
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
1031
+ # @param network_load_balancer_forwarding_rule_properties [NetworkLoadBalancerForwardingRuleProperties] Properties of a forwarding rule to be updated
1032
+ # @param [Hash] opts the optional parameters
1033
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
1034
+ # @option opts [Integer] :depth 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 (default to 0)
1035
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1036
+ # @return [NetworkLoadBalancerForwardingRule]
1037
+ def datacenters_networkloadbalancers_forwardingrules_patch(datacenter_id, network_load_balancer_id, forwarding_rule_id, network_load_balancer_forwarding_rule_properties, opts = {})
1038
+ data, _status_code, _headers = datacenters_networkloadbalancers_forwardingrules_patch_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, network_load_balancer_forwarding_rule_properties, opts)
1039
+ data
1040
+ end
1041
+
1042
+ # Partially modify a forwarding rule of the Network Load Balancer
1043
+ # You can use to partially update a forwarding rule of a Network Load Balancer.
1044
+ # @param datacenter_id [String] The unique ID of the datacenter
1045
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1046
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
1047
+ # @param network_load_balancer_forwarding_rule_properties [NetworkLoadBalancerForwardingRuleProperties] Properties of a forwarding rule to be updated
1048
+ # @param [Hash] opts the optional parameters
1049
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
1050
+ # @option opts [Integer] :depth 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
1051
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1052
+ # @return [Array<(NetworkLoadBalancerForwardingRule, Integer, Hash)>] NetworkLoadBalancerForwardingRule data, response status code and response headers
1053
+ def datacenters_networkloadbalancers_forwardingrules_patch_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, network_load_balancer_forwarding_rule_properties, opts = {})
1054
+ if @api_client.config.debugging
1055
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch ...'
1056
+ end
1057
+ # verify the required parameter 'datacenter_id' is set
1058
+ if @api_client.config.client_side_validation && datacenter_id.nil?
1059
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch"
1060
+ end
1061
+ # verify the required parameter 'network_load_balancer_id' is set
1062
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
1063
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch"
1064
+ end
1065
+ # verify the required parameter 'forwarding_rule_id' is set
1066
+ if @api_client.config.client_side_validation && forwarding_rule_id.nil?
1067
+ fail ArgumentError, "Missing the required parameter 'forwarding_rule_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch"
1068
+ end
1069
+ # verify the required parameter 'network_load_balancer_forwarding_rule_properties' is set
1070
+ if @api_client.config.client_side_validation && network_load_balancer_forwarding_rule_properties.nil?
1071
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_forwarding_rule_properties' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch"
1072
+ end
1073
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
1074
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch, must be smaller than or equal to 10.'
1075
+ end
1076
+
1077
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
1078
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch, must be greater than or equal to 0.'
1079
+ end
1080
+
1081
+ # resource path
1082
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'forwardingRuleId' + '}', CGI.escape(forwarding_rule_id.to_s))
1083
+
1084
+ # query parameters
1085
+ query_params = opts[:query_params] || {}
1086
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1087
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
1088
+
1089
+ # header parameters
1090
+ header_params = opts[:header_params] || {}
1091
+ # HTTP header 'Accept' (if needed)
1092
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1093
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
1094
+
1095
+ # form parameters
1096
+ form_params = opts[:form_params] || {}
1097
+
1098
+ # http body (model)
1099
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer_forwarding_rule_properties)
1100
+
1101
+ # return_type
1102
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancerForwardingRule'
1103
+
1104
+ # auth_names
1105
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1106
+
1107
+ new_options = opts.merge(
1108
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_patch",
1109
+ :header_params => header_params,
1110
+ :query_params => query_params,
1111
+ :form_params => form_params,
1112
+ :body => post_body,
1113
+ :auth_names => auth_names,
1114
+ :return_type => return_type
1115
+ )
1116
+
1117
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1118
+ if @api_client.config.debugging
1119
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_forwardingrules_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1120
+ end
1121
+ return data, status_code, headers
1122
+ end
1123
+
1124
+ # Add a Network Load Balancer Forwarding Rule
1125
+ # This will add a new forwarding rule to the Network Load Balancer.
1126
+ # @param datacenter_id [String] The unique ID of the datacenter
1127
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1128
+ # @param network_load_balancer_forwarding_rule [NetworkLoadBalancerForwardingRule] forwarding rule to add
1129
+ # @param [Hash] opts the optional parameters
1130
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
1131
+ # @option opts [Integer] :depth 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 (default to 0)
1132
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1133
+ # @return [NetworkLoadBalancerForwardingRule]
1134
+ def datacenters_networkloadbalancers_forwardingrules_post(datacenter_id, network_load_balancer_id, network_load_balancer_forwarding_rule, opts = {})
1135
+ data, _status_code, _headers = datacenters_networkloadbalancers_forwardingrules_post_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer_forwarding_rule, opts)
1136
+ data
1137
+ end
1138
+
1139
+ # Add a Network Load Balancer Forwarding Rule
1140
+ # This will add a new forwarding rule to the Network Load Balancer.
1141
+ # @param datacenter_id [String] The unique ID of the datacenter
1142
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1143
+ # @param network_load_balancer_forwarding_rule [NetworkLoadBalancerForwardingRule] forwarding rule to add
1144
+ # @param [Hash] opts the optional parameters
1145
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
1146
+ # @option opts [Integer] :depth 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
1147
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1148
+ # @return [Array<(NetworkLoadBalancerForwardingRule, Integer, Hash)>] NetworkLoadBalancerForwardingRule data, response status code and response headers
1149
+ def datacenters_networkloadbalancers_forwardingrules_post_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer_forwarding_rule, opts = {})
1150
+ if @api_client.config.debugging
1151
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_post ...'
1152
+ end
1153
+ # verify the required parameter 'datacenter_id' is set
1154
+ if @api_client.config.client_side_validation && datacenter_id.nil?
1155
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_post"
1156
+ end
1157
+ # verify the required parameter 'network_load_balancer_id' is set
1158
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
1159
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_post"
1160
+ end
1161
+ # verify the required parameter 'network_load_balancer_forwarding_rule' is set
1162
+ if @api_client.config.client_side_validation && network_load_balancer_forwarding_rule.nil?
1163
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_forwarding_rule' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_post"
1164
+ end
1165
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
1166
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_post, must be smaller than or equal to 10.'
1167
+ end
1168
+
1169
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
1170
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_post, must be greater than or equal to 0.'
1171
+ end
1172
+
1173
+ # resource path
1174
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
1175
+
1176
+ # query parameters
1177
+ query_params = opts[:query_params] || {}
1178
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1179
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
1180
+
1181
+ # header parameters
1182
+ header_params = opts[:header_params] || {}
1183
+ # HTTP header 'Accept' (if needed)
1184
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1185
+ # HTTP header 'Content-Type'
1186
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1187
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
1188
+
1189
+ # form parameters
1190
+ form_params = opts[:form_params] || {}
1191
+
1192
+ # http body (model)
1193
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer_forwarding_rule)
1194
+
1195
+ # return_type
1196
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancerForwardingRule'
1197
+
1198
+ # auth_names
1199
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1200
+
1201
+ new_options = opts.merge(
1202
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_post",
1203
+ :header_params => header_params,
1204
+ :query_params => query_params,
1205
+ :form_params => form_params,
1206
+ :body => post_body,
1207
+ :auth_names => auth_names,
1208
+ :return_type => return_type
1209
+ )
1210
+
1211
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1212
+ if @api_client.config.debugging
1213
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_forwardingrules_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1214
+ end
1215
+ return data, status_code, headers
1216
+ end
1217
+
1218
+ # Modify a forwarding rule of the Network Load Balancer
1219
+ # You can use to update a forwarding rule of the Network Load Balancer.
1220
+ # @param datacenter_id [String] The unique ID of the datacenter
1221
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1222
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
1223
+ # @param network_load_balancer_forwarding_rule [NetworkLoadBalancerForwardingRulePut] Modified Network Load Balancer Forwarding Rule
1224
+ # @param [Hash] opts the optional parameters
1225
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
1226
+ # @option opts [Integer] :depth 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 (default to 0)
1227
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1228
+ # @return [NetworkLoadBalancerForwardingRule]
1229
+ def datacenters_networkloadbalancers_forwardingrules_put(datacenter_id, network_load_balancer_id, forwarding_rule_id, network_load_balancer_forwarding_rule, opts = {})
1230
+ data, _status_code, _headers = datacenters_networkloadbalancers_forwardingrules_put_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, network_load_balancer_forwarding_rule, opts)
1231
+ data
1232
+ end
1233
+
1234
+ # Modify a forwarding rule of the Network Load Balancer
1235
+ # You can use to update a forwarding rule of the Network Load Balancer.
1236
+ # @param datacenter_id [String] The unique ID of the datacenter
1237
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1238
+ # @param forwarding_rule_id [String] The unique ID of the forwarding rule
1239
+ # @param network_load_balancer_forwarding_rule [NetworkLoadBalancerForwardingRulePut] Modified Network Load Balancer Forwarding Rule
1240
+ # @param [Hash] opts the optional parameters
1241
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
1242
+ # @option opts [Integer] :depth 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
1243
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1244
+ # @return [Array<(NetworkLoadBalancerForwardingRule, Integer, Hash)>] NetworkLoadBalancerForwardingRule data, response status code and response headers
1245
+ def datacenters_networkloadbalancers_forwardingrules_put_with_http_info(datacenter_id, network_load_balancer_id, forwarding_rule_id, network_load_balancer_forwarding_rule, opts = {})
1246
+ if @api_client.config.debugging
1247
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put ...'
1248
+ end
1249
+ # verify the required parameter 'datacenter_id' is set
1250
+ if @api_client.config.client_side_validation && datacenter_id.nil?
1251
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put"
1252
+ end
1253
+ # verify the required parameter 'network_load_balancer_id' is set
1254
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
1255
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put"
1256
+ end
1257
+ # verify the required parameter 'forwarding_rule_id' is set
1258
+ if @api_client.config.client_side_validation && forwarding_rule_id.nil?
1259
+ fail ArgumentError, "Missing the required parameter 'forwarding_rule_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put"
1260
+ end
1261
+ # verify the required parameter 'network_load_balancer_forwarding_rule' is set
1262
+ if @api_client.config.client_side_validation && network_load_balancer_forwarding_rule.nil?
1263
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_forwarding_rule' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put"
1264
+ end
1265
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
1266
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put, must be smaller than or equal to 10.'
1267
+ end
1268
+
1269
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
1270
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put, must be greater than or equal to 0.'
1271
+ end
1272
+
1273
+ # resource path
1274
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}/forwardingrules/{forwardingRuleId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s)).sub('{' + 'forwardingRuleId' + '}', CGI.escape(forwarding_rule_id.to_s))
1275
+
1276
+ # query parameters
1277
+ query_params = opts[:query_params] || {}
1278
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1279
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
1280
+
1281
+ # header parameters
1282
+ header_params = opts[:header_params] || {}
1283
+ # HTTP header 'Accept' (if needed)
1284
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1285
+ # HTTP header 'Content-Type'
1286
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1287
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
1288
+
1289
+ # form parameters
1290
+ form_params = opts[:form_params] || {}
1291
+
1292
+ # http body (model)
1293
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer_forwarding_rule)
1294
+
1295
+ # return_type
1296
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancerForwardingRule'
1297
+
1298
+ # auth_names
1299
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1300
+
1301
+ new_options = opts.merge(
1302
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_forwardingrules_put",
1303
+ :header_params => header_params,
1304
+ :query_params => query_params,
1305
+ :form_params => form_params,
1306
+ :body => post_body,
1307
+ :auth_names => auth_names,
1308
+ :return_type => return_type
1309
+ )
1310
+
1311
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1312
+ if @api_client.config.debugging
1313
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_forwardingrules_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1314
+ end
1315
+ return data, status_code, headers
1316
+ end
1317
+
1318
+ # List Network Load Balancers
1319
+ # Retrieve a list of Network Load Balancers within the datacenter.
1320
+ # @param datacenter_id [String] The unique ID of the datacenter
1321
+ # @param [Hash] opts the optional parameters
1322
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
1323
+ # @option opts [Integer] :depth 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 (default to 0)
1324
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1325
+ # @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination) (default to 0)
1326
+ # @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination) (default to 1000)
1327
+ # @return [NetworkLoadBalancers]
1328
+ def datacenters_networkloadbalancers_get(datacenter_id, opts = {})
1329
+ data, _status_code, _headers = datacenters_networkloadbalancers_get_with_http_info(datacenter_id, opts)
1330
+ data
1331
+ end
1332
+
1333
+ # List Network Load Balancers
1334
+ # Retrieve a list of Network Load Balancers within the datacenter.
1335
+ # @param datacenter_id [String] The unique ID of the datacenter
1336
+ # @param [Hash] opts the optional parameters
1337
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
1338
+ # @option opts [Integer] :depth 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
1339
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1340
+ # @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination)
1341
+ # @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination)
1342
+ # @return [Array<(NetworkLoadBalancers, Integer, Hash)>] NetworkLoadBalancers data, response status code and response headers
1343
+ def datacenters_networkloadbalancers_get_with_http_info(datacenter_id, opts = {})
1344
+ if @api_client.config.debugging
1345
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_get ...'
1346
+ end
1347
+ # verify the required parameter 'datacenter_id' is set
1348
+ if @api_client.config.client_side_validation && datacenter_id.nil?
1349
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_get"
1350
+ end
1351
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
1352
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_get, must be smaller than or equal to 10.'
1353
+ end
1354
+
1355
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
1356
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_get, must be greater than or equal to 0.'
1357
+ end
1358
+
1359
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
1360
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_get, must be greater than or equal to 0.'
1361
+ end
1362
+
1363
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000
1364
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_get, must be smaller than or equal to 10000.'
1365
+ end
1366
+
1367
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1368
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_get, must be greater than or equal to 1.'
1369
+ end
1370
+
1371
+ # resource path
1372
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s))
1373
+
1374
+ # query parameters
1375
+ query_params = opts[:query_params] || {}
1376
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1377
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
1378
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1379
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1380
+
1381
+ # header parameters
1382
+ header_params = opts[:header_params] || {}
1383
+ # HTTP header 'Accept' (if needed)
1384
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1385
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
1386
+
1387
+ # form parameters
1388
+ form_params = opts[:form_params] || {}
1389
+
1390
+ # http body (model)
1391
+ post_body = opts[:debug_body]
1392
+
1393
+ # return_type
1394
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancers'
1395
+
1396
+ # auth_names
1397
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1398
+
1399
+ new_options = opts.merge(
1400
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_get",
1401
+ :header_params => header_params,
1402
+ :query_params => query_params,
1403
+ :form_params => form_params,
1404
+ :body => post_body,
1405
+ :auth_names => auth_names,
1406
+ :return_type => return_type
1407
+ )
1408
+
1409
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1410
+ if @api_client.config.debugging
1411
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1412
+ end
1413
+ return data, status_code, headers
1414
+ end
1415
+
1416
+ # Partially update an Network Load Balancer
1417
+ # Partially update the attributes of a given Network Load Balancer
1418
+ # @param datacenter_id [String] The unique ID of the datacenter
1419
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1420
+ # @param network_load_balancer_properties [NetworkLoadBalancerProperties] Network Load Balancer properties to be updated
1421
+ # @param [Hash] opts the optional parameters
1422
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
1423
+ # @option opts [Integer] :depth 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 (default to 0)
1424
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1425
+ # @return [NetworkLoadBalancer]
1426
+ def datacenters_networkloadbalancers_patch(datacenter_id, network_load_balancer_id, network_load_balancer_properties, opts = {})
1427
+ data, _status_code, _headers = datacenters_networkloadbalancers_patch_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer_properties, opts)
1428
+ data
1429
+ end
1430
+
1431
+ # Partially update an Network Load Balancer
1432
+ # Partially update the attributes of a given Network Load Balancer
1433
+ # @param datacenter_id [String] The unique ID of the datacenter
1434
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1435
+ # @param network_load_balancer_properties [NetworkLoadBalancerProperties] Network Load Balancer properties to be updated
1436
+ # @param [Hash] opts the optional parameters
1437
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
1438
+ # @option opts [Integer] :depth 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
1439
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1440
+ # @return [Array<(NetworkLoadBalancer, Integer, Hash)>] NetworkLoadBalancer data, response status code and response headers
1441
+ def datacenters_networkloadbalancers_patch_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer_properties, opts = {})
1442
+ if @api_client.config.debugging
1443
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_patch ...'
1444
+ end
1445
+ # verify the required parameter 'datacenter_id' is set
1446
+ if @api_client.config.client_side_validation && datacenter_id.nil?
1447
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_patch"
1448
+ end
1449
+ # verify the required parameter 'network_load_balancer_id' is set
1450
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
1451
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_patch"
1452
+ end
1453
+ # verify the required parameter 'network_load_balancer_properties' is set
1454
+ if @api_client.config.client_side_validation && network_load_balancer_properties.nil?
1455
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_properties' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_patch"
1456
+ end
1457
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
1458
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_patch, must be smaller than or equal to 10.'
1459
+ end
1460
+
1461
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
1462
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_patch, must be greater than or equal to 0.'
1463
+ end
1464
+
1465
+ # resource path
1466
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
1467
+
1468
+ # query parameters
1469
+ query_params = opts[:query_params] || {}
1470
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1471
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
1472
+
1473
+ # header parameters
1474
+ header_params = opts[:header_params] || {}
1475
+ # HTTP header 'Accept' (if needed)
1476
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1477
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
1478
+
1479
+ # form parameters
1480
+ form_params = opts[:form_params] || {}
1481
+
1482
+ # http body (model)
1483
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer_properties)
1484
+
1485
+ # return_type
1486
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancer'
1487
+
1488
+ # auth_names
1489
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1490
+
1491
+ new_options = opts.merge(
1492
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_patch",
1493
+ :header_params => header_params,
1494
+ :query_params => query_params,
1495
+ :form_params => form_params,
1496
+ :body => post_body,
1497
+ :auth_names => auth_names,
1498
+ :return_type => return_type
1499
+ )
1500
+
1501
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1502
+ if @api_client.config.debugging
1503
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1504
+ end
1505
+ return data, status_code, headers
1506
+ end
1507
+
1508
+ # Create an Network Load Balancer
1509
+ # Creates an Network Load Balancer within the datacenter.
1510
+ # @param datacenter_id [String] The unique ID of the datacenter
1511
+ # @param network_load_balancer [NetworkLoadBalancer] Network Load Balancer to be created
1512
+ # @param [Hash] opts the optional parameters
1513
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
1514
+ # @option opts [Integer] :depth 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 (default to 0)
1515
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1516
+ # @return [NetworkLoadBalancer]
1517
+ def datacenters_networkloadbalancers_post(datacenter_id, network_load_balancer, opts = {})
1518
+ data, _status_code, _headers = datacenters_networkloadbalancers_post_with_http_info(datacenter_id, network_load_balancer, opts)
1519
+ data
1520
+ end
1521
+
1522
+ # Create an Network Load Balancer
1523
+ # Creates an Network Load Balancer within the datacenter.
1524
+ # @param datacenter_id [String] The unique ID of the datacenter
1525
+ # @param network_load_balancer [NetworkLoadBalancer] Network Load Balancer to be created
1526
+ # @param [Hash] opts the optional parameters
1527
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
1528
+ # @option opts [Integer] :depth 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
1529
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1530
+ # @return [Array<(NetworkLoadBalancer, Integer, Hash)>] NetworkLoadBalancer data, response status code and response headers
1531
+ def datacenters_networkloadbalancers_post_with_http_info(datacenter_id, network_load_balancer, opts = {})
1532
+ if @api_client.config.debugging
1533
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_post ...'
1534
+ end
1535
+ # verify the required parameter 'datacenter_id' is set
1536
+ if @api_client.config.client_side_validation && datacenter_id.nil?
1537
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_post"
1538
+ end
1539
+ # verify the required parameter 'network_load_balancer' is set
1540
+ if @api_client.config.client_side_validation && network_load_balancer.nil?
1541
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_post"
1542
+ end
1543
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
1544
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_post, must be smaller than or equal to 10.'
1545
+ end
1546
+
1547
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
1548
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_post, must be greater than or equal to 0.'
1549
+ end
1550
+
1551
+ # resource path
1552
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s))
1553
+
1554
+ # query parameters
1555
+ query_params = opts[:query_params] || {}
1556
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1557
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
1558
+
1559
+ # header parameters
1560
+ header_params = opts[:header_params] || {}
1561
+ # HTTP header 'Accept' (if needed)
1562
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1563
+ # HTTP header 'Content-Type'
1564
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1565
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
1566
+
1567
+ # form parameters
1568
+ form_params = opts[:form_params] || {}
1569
+
1570
+ # http body (model)
1571
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer)
1572
+
1573
+ # return_type
1574
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancer'
1575
+
1576
+ # auth_names
1577
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1578
+
1579
+ new_options = opts.merge(
1580
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_post",
1581
+ :header_params => header_params,
1582
+ :query_params => query_params,
1583
+ :form_params => form_params,
1584
+ :body => post_body,
1585
+ :auth_names => auth_names,
1586
+ :return_type => return_type
1587
+ )
1588
+
1589
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1590
+ if @api_client.config.debugging
1591
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1592
+ end
1593
+ return data, status_code, headers
1594
+ end
1595
+
1596
+ # Update an Network Load Balancer
1597
+ # Update the attributes of a given Network Load Balancer
1598
+ # @param datacenter_id [String] The unique ID of the datacenter
1599
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1600
+ # @param network_load_balancer [NetworkLoadBalancerPut] Modified Network Load Balancer
1601
+ # @param [Hash] opts the optional parameters
1602
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
1603
+ # @option opts [Integer] :depth 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 (default to 0)
1604
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1605
+ # @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination) (default to 0)
1606
+ # @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination) (default to 1000)
1607
+ # @return [NetworkLoadBalancer]
1608
+ def datacenters_networkloadbalancers_put(datacenter_id, network_load_balancer_id, network_load_balancer, opts = {})
1609
+ data, _status_code, _headers = datacenters_networkloadbalancers_put_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer, opts)
1610
+ data
1611
+ end
1612
+
1613
+ # Update an Network Load Balancer
1614
+ # Update the attributes of a given Network Load Balancer
1615
+ # @param datacenter_id [String] The unique ID of the datacenter
1616
+ # @param network_load_balancer_id [String] The unique ID of the Network Load Balancer
1617
+ # @param network_load_balancer [NetworkLoadBalancerPut] Modified Network Load Balancer
1618
+ # @param [Hash] opts the optional parameters
1619
+ # @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
1620
+ # @option opts [Integer] :depth 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
1621
+ # @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
1622
+ # @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination)
1623
+ # @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination)
1624
+ # @return [Array<(NetworkLoadBalancer, Integer, Hash)>] NetworkLoadBalancer data, response status code and response headers
1625
+ def datacenters_networkloadbalancers_put_with_http_info(datacenter_id, network_load_balancer_id, network_load_balancer, opts = {})
1626
+ if @api_client.config.debugging
1627
+ @api_client.config.logger.debug 'Calling API: NetworkLoadBalancersApi.datacenters_networkloadbalancers_put ...'
1628
+ end
1629
+ # verify the required parameter 'datacenter_id' is set
1630
+ if @api_client.config.client_side_validation && datacenter_id.nil?
1631
+ fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put"
1632
+ end
1633
+ # verify the required parameter 'network_load_balancer_id' is set
1634
+ if @api_client.config.client_side_validation && network_load_balancer_id.nil?
1635
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer_id' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put"
1636
+ end
1637
+ # verify the required parameter 'network_load_balancer' is set
1638
+ if @api_client.config.client_side_validation && network_load_balancer.nil?
1639
+ fail ArgumentError, "Missing the required parameter 'network_load_balancer' when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put"
1640
+ end
1641
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
1642
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put, must be smaller than or equal to 10.'
1643
+ end
1644
+
1645
+ if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
1646
+ fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put, must be greater than or equal to 0.'
1647
+ end
1648
+
1649
+ if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
1650
+ fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put, must be greater than or equal to 0.'
1651
+ end
1652
+
1653
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000
1654
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put, must be smaller than or equal to 10000.'
1655
+ end
1656
+
1657
+ if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
1658
+ fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling NetworkLoadBalancersApi.datacenters_networkloadbalancers_put, must be greater than or equal to 1.'
1659
+ end
1660
+
1661
+ # resource path
1662
+ local_var_path = '/datacenters/{datacenterId}/networkloadbalancers/{networkLoadBalancerId}'.sub('{' + 'datacenterId' + '}', CGI.escape(datacenter_id.to_s)).sub('{' + 'networkLoadBalancerId' + '}', CGI.escape(network_load_balancer_id.to_s))
1663
+
1664
+ # query parameters
1665
+ query_params = opts[:query_params] || {}
1666
+ query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
1667
+ query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
1668
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
1669
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1670
+
1671
+ # header parameters
1672
+ header_params = opts[:header_params] || {}
1673
+ # HTTP header 'Accept' (if needed)
1674
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1675
+ # HTTP header 'Content-Type'
1676
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1677
+ header_params[:'X-Contract-Number'] = opts[:'x_contract_number'] if !opts[:'x_contract_number'].nil?
1678
+
1679
+ # form parameters
1680
+ form_params = opts[:form_params] || {}
1681
+
1682
+ # http body (model)
1683
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(network_load_balancer)
1684
+
1685
+ # return_type
1686
+ return_type = opts[:debug_return_type] || 'NetworkLoadBalancer'
1687
+
1688
+ # auth_names
1689
+ auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
1690
+
1691
+ new_options = opts.merge(
1692
+ :operation => :"NetworkLoadBalancersApi.datacenters_networkloadbalancers_put",
1693
+ :header_params => header_params,
1694
+ :query_params => query_params,
1695
+ :form_params => form_params,
1696
+ :body => post_body,
1697
+ :auth_names => auth_names,
1698
+ :return_type => return_type
1699
+ )
1700
+
1701
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1702
+ if @api_client.config.debugging
1703
+ @api_client.config.logger.debug "API called: NetworkLoadBalancersApi#datacenters_networkloadbalancers_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1704
+ end
1705
+ return data, status_code, headers
1706
+ end
1707
+ end
1708
+ end