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.
- checksums.yaml +4 -4
- data/docs/{models/AttachedVolumes.md → AttachedVolumes.md} +1 -1
- data/docs/{models/BackupUnit.md → BackupUnit.md} +0 -0
- data/docs/{models/BackupUnitProperties.md → BackupUnitProperties.md} +0 -0
- data/docs/{models/BackupUnitSSO.md → BackupUnitSSO.md} +0 -0
- data/docs/{models/BackupUnits.md → BackupUnits.md} +0 -0
- data/docs/{api/BackupUnitApi.md → BackupUnitsApi.md} +42 -42
- data/docs/{models/BalancedNics.md → BalancedNics.md} +0 -0
- data/docs/CHANGELOG.md +1 -0
- data/docs/{models/Cdroms.md → Cdroms.md} +1 -1
- data/docs/{models/ConnectableDatacenter.md → ConnectableDatacenter.md} +0 -0
- data/docs/{models/Contract.md → Contract.md} +0 -0
- data/docs/{models/ContractProperties.md → ContractProperties.md} +0 -0
- data/docs/{api/ContractApi.md → ContractResourcesApi.md} +11 -11
- data/docs/Contracts.md +24 -0
- data/docs/CpuArchitectureProperties.md +24 -0
- data/docs/{models/DataCenterEntities.md → DataCenterEntities.md} +5 -1
- data/docs/{api/DataCenterApi.md → DataCentersApi.md} +31 -31
- data/docs/{models/Datacenter.md → Datacenter.md} +0 -0
- data/docs/{models/DatacenterElementMetadata.md → DatacenterElementMetadata.md} +0 -0
- data/docs/{models/DatacenterProperties.md → DatacenterProperties.md} +3 -1
- data/docs/{models/Datacenters.md → Datacenters.md} +0 -0
- data/docs/{api/DefaultApi.md → DefaultApi.md} +2 -13
- data/docs/{models/Error.md → Error.md} +0 -0
- data/docs/{models/ErrorMessage.md → ErrorMessage.md} +0 -0
- data/docs/{models/FirewallRule.md → FirewallRule.md} +0 -0
- data/docs/{models/FirewallRules.md → FirewallRules.md} +0 -0
- data/docs/FirewallRulesApi.md +553 -0
- data/docs/{models/FirewallruleProperties.md → FirewallruleProperties.md} +3 -1
- data/docs/FlowLog.md +26 -0
- data/docs/FlowLogProperties.md +24 -0
- data/docs/FlowLogPut.md +24 -0
- data/docs/FlowLogs.md +30 -0
- data/docs/FlowLogsApi.md +541 -0
- data/docs/{models/Group.md → Group.md} +1 -1
- data/docs/{models/GroupEntities.md → GroupEntities.md} +0 -0
- data/docs/{models/GroupMembers.md → GroupMembers.md} +1 -1
- data/docs/{models/GroupProperties.md → GroupProperties.md} +5 -1
- data/docs/{models/GroupShare.md → GroupShare.md} +1 -1
- data/docs/{models/GroupShareProperties.md → GroupShareProperties.md} +0 -0
- data/docs/{models/GroupShares.md → GroupShares.md} +1 -1
- data/docs/{models/GroupUsers.md → GroupUsers.md} +1 -1
- data/docs/{models/Groups.md → Groups.md} +1 -1
- data/docs/{api/IPBlocksApi.md → IPBlocksApi.md} +7 -11
- data/docs/{models/IPFailover.md → IPFailover.md} +0 -0
- data/docs/{models/Image.md → Image.md} +0 -0
- data/docs/{models/ImageProperties.md → ImageProperties.md} +1 -5
- data/docs/{models/Images.md → Images.md} +0 -0
- data/docs/{api/ImageApi.md → ImagesApi.md} +25 -25
- data/docs/{models/Info.md → Info.md} +0 -0
- data/docs/{models/IpBlock.md → IpBlock.md} +0 -0
- data/docs/{models/IpBlockProperties.md → IpBlockProperties.md} +1 -1
- data/docs/IpBlocks.md +24 -0
- data/docs/{models/IpConsumer.md → IpConsumer.md} +1 -5
- data/docs/{api/KubernetesApi.md → KubernetesApi.md} +17 -93
- data/docs/{models/KubernetesAutoScaling.md → KubernetesAutoScaling.md} +2 -2
- data/docs/{models/KubernetesCluster.md → KubernetesCluster.md} +0 -0
- data/docs/{models/KubernetesClusterEntities.md → KubernetesClusterEntities.md} +0 -0
- data/docs/{models/KubernetesClusterForPost.md → KubernetesClusterForPost.md} +0 -0
- data/docs/{models/KubernetesClusterForPut.md → KubernetesClusterForPut.md} +0 -0
- data/docs/{models/KubernetesClusterProperties.md → KubernetesClusterProperties.md} +4 -4
- data/docs/{models/KubernetesClusterPropertiesForPost.md → KubernetesClusterPropertiesForPost.md} +4 -4
- data/docs/{models/KubernetesClusterPropertiesForPut.md → KubernetesClusterPropertiesForPut.md} +1 -5
- data/docs/{models/KubernetesClusters.md → KubernetesClusters.md} +1 -1
- data/docs/{models/KubernetesMaintenanceWindow.md → KubernetesMaintenanceWindow.md} +2 -2
- data/docs/{models/KubernetesNode.md → KubernetesNode.md} +0 -0
- data/docs/{models/KubernetesNodeMetadata.md → KubernetesNodeMetadata.md} +0 -0
- data/docs/{models/KubernetesNodePool.md → KubernetesNodePool.md} +0 -0
- data/docs/{models/KubernetesNodePoolForPost.md → KubernetesNodePoolForPost.md} +0 -0
- data/docs/{models/KubernetesNodePoolForPut.md → KubernetesNodePoolForPut.md} +0 -0
- data/docs/KubernetesNodePoolLan.md +22 -0
- data/docs/KubernetesNodePoolLanRoutes.md +20 -0
- data/docs/{models/KubernetesNodePoolProperties.md → KubernetesNodePoolProperties.md} +2 -1
- data/docs/{models/KubernetesNodePoolPropertiesForPost.md → KubernetesNodePoolPropertiesForPost.md} +2 -1
- data/docs/{models/KubernetesNodePoolPropertiesForPut.md → KubernetesNodePoolPropertiesForPut.md} +0 -0
- data/docs/{models/KubernetesNodePools.md → KubernetesNodePools.md} +1 -1
- data/docs/{models/KubernetesNodeProperties.md → KubernetesNodeProperties.md} +0 -0
- data/docs/{models/KubernetesNodes.md → KubernetesNodes.md} +0 -0
- data/docs/{models/Label.md → Label.md} +0 -0
- data/docs/{models/LabelProperties.md → LabelProperties.md} +0 -0
- data/docs/{models/LabelResource.md → LabelResource.md} +0 -0
- data/docs/{models/LabelResourceProperties.md → LabelResourceProperties.md} +0 -0
- data/docs/{models/LabelResources.md → LabelResources.md} +0 -0
- data/docs/{models/Labels.md → Labels.md} +0 -0
- data/docs/{api/LabelApi.md → LabelsApi.md} +128 -132
- data/docs/{models/Lan.md → Lan.md} +0 -0
- data/docs/{models/LanEntities.md → LanEntities.md} +0 -0
- data/docs/{models/LanNics.md → LanNics.md} +0 -0
- data/docs/{models/LanPost.md → LanPost.md} +0 -0
- data/docs/{models/LanProperties.md → LanProperties.md} +0 -0
- data/docs/{models/LanPropertiesPost.md → LanPropertiesPost.md} +0 -0
- data/docs/{models/Lans.md → Lans.md} +1 -1
- data/docs/{api/LanApi.md → LansApi.md} +55 -55
- data/docs/{api/LoadBalancerApi.md → LoadBalancersApi.md} +73 -69
- data/docs/{models/Loadbalancer.md → Loadbalancer.md} +0 -0
- data/docs/{models/LoadbalancerEntities.md → LoadbalancerEntities.md} +0 -0
- data/docs/{models/LoadbalancerProperties.md → LoadbalancerProperties.md} +0 -0
- data/docs/{models/Loadbalancers.md → Loadbalancers.md} +0 -0
- data/docs/{models/Location.md → Location.md} +0 -0
- data/docs/{models/LocationProperties.md → LocationProperties.md} +3 -1
- data/docs/{models/Locations.md → Locations.md} +0 -0
- data/docs/{api/LocationApi.md → LocationsApi.md} +14 -14
- data/docs/NATGatewaysApi.md +1581 -0
- data/docs/NatGateway.md +28 -0
- data/docs/NatGatewayEntities.md +20 -0
- data/docs/NatGatewayLanProperties.md +20 -0
- data/docs/NatGatewayProperties.md +22 -0
- data/docs/NatGatewayPut.md +24 -0
- data/docs/NatGatewayRule.md +26 -0
- data/docs/NatGatewayRuleProperties.md +30 -0
- data/docs/{models/S3Bucket.md → NatGatewayRuleProtocol.md} +2 -5
- data/docs/NatGatewayRulePut.md +24 -0
- data/docs/NatGatewayRuleType.md +15 -0
- data/docs/NatGatewayRules.md +24 -0
- data/docs/NatGateways.md +30 -0
- data/docs/NetworkInterfacesApi.md +541 -0
- data/docs/NetworkLoadBalancer.md +28 -0
- data/docs/NetworkLoadBalancerEntities.md +20 -0
- data/docs/NetworkLoadBalancerForwardingRule.md +26 -0
- data/docs/NetworkLoadBalancerForwardingRuleHealthCheck.md +26 -0
- data/docs/NetworkLoadBalancerForwardingRuleProperties.md +30 -0
- data/docs/NetworkLoadBalancerForwardingRulePut.md +24 -0
- data/docs/NetworkLoadBalancerForwardingRuleTarget.md +24 -0
- data/docs/NetworkLoadBalancerForwardingRuleTargetHealthCheck.md +22 -0
- data/docs/NetworkLoadBalancerForwardingRules.md +30 -0
- data/docs/NetworkLoadBalancerProperties.md +26 -0
- data/docs/NetworkLoadBalancerPut.md +24 -0
- data/docs/NetworkLoadBalancers.md +30 -0
- data/docs/NetworkLoadBalancersApi.md +1593 -0
- data/docs/{models/Nic.md → Nic.md} +0 -0
- data/docs/{models/NicEntities.md → NicEntities.md} +2 -0
- data/docs/{models/NicProperties.md → NicProperties.md} +6 -2
- data/docs/NicPut.md +24 -0
- data/docs/{models/Nics.md → Nics.md} +1 -1
- data/docs/{models/NoStateMetaData.md → NoStateMetaData.md} +0 -0
- data/docs/{models/PaginationLinks.md → PaginationLinks.md} +0 -0
- data/docs/{models/Peer.md → Peer.md} +0 -0
- data/docs/{models/PrivateCrossConnect.md → PrivateCrossConnect.md} +0 -0
- data/docs/{models/PrivateCrossConnectProperties.md → PrivateCrossConnectProperties.md} +0 -0
- data/docs/{models/PrivateCrossConnects.md → PrivateCrossConnects.md} +0 -0
- data/docs/{api/PrivateCrossConnectApi.md → PrivateCrossConnectsApi.md} +34 -30
- data/docs/README.md +4 -4
- data/docs/RemoteConsoleUrl.md +18 -0
- data/docs/{models/Request.md → Request.md} +0 -0
- data/docs/{models/RequestMetadata.md → RequestMetadata.md} +0 -0
- data/docs/{models/RequestProperties.md → RequestProperties.md} +0 -0
- data/docs/{models/RequestStatus.md → RequestStatus.md} +0 -0
- data/docs/{models/RequestStatusMetadata.md → RequestStatusMetadata.md} +0 -0
- data/docs/{models/RequestTarget.md → RequestTarget.md} +0 -0
- data/docs/{models/Requests.md → Requests.md} +1 -1
- data/docs/{api/RequestApi.md → RequestsApi.md} +24 -40
- data/docs/{models/Resource.md → Resource.md} +1 -1
- data/docs/{models/ResourceEntities.md → ResourceEntities.md} +0 -0
- data/docs/{models/ResourceGroups.md → ResourceGroups.md} +1 -1
- data/docs/{models/ResourceLimits.md → ResourceLimits.md} +11 -1
- data/docs/{models/ResourceProperties.md → ResourceProperties.md} +0 -0
- data/docs/{models/ResourceReference.md → ResourceReference.md} +0 -0
- data/docs/{models/Resources.md → Resources.md} +1 -1
- data/docs/{models/ResourcesUsers.md → ResourcesUsers.md} +1 -1
- data/docs/{models/S3Key.md → S3Key.md} +1 -1
- data/docs/{models/S3KeyMetadata.md → S3KeyMetadata.md} +0 -0
- data/docs/{models/S3KeyProperties.md → S3KeyProperties.md} +0 -0
- data/docs/{models/S3Keys.md → S3Keys.md} +1 -1
- data/docs/{models/S3ObjectStorageSSO.md → S3ObjectStorageSSO.md} +0 -0
- data/docs/{models/Server.md → Server.md} +0 -0
- data/docs/{models/ServerEntities.md → ServerEntities.md} +0 -0
- data/docs/{models/ServerProperties.md → ServerProperties.md} +6 -2
- data/docs/{models/Servers.md → Servers.md} +0 -0
- data/docs/{api/ServerApi.md → ServersApi.md} +430 -86
- data/docs/{models/Snapshot.md → Snapshot.md} +0 -0
- data/docs/{models/SnapshotProperties.md → SnapshotProperties.md} +0 -0
- data/docs/{models/Snapshots.md → Snapshots.md} +0 -0
- data/docs/{api/SnapshotApi.md → SnapshotsApi.md} +28 -28
- data/docs/TargetPortRange.md +20 -0
- data/docs/Template.md +26 -0
- data/docs/TemplateProperties.md +24 -0
- data/docs/Templates.md +24 -0
- data/docs/TemplatesApi.md +165 -0
- data/docs/Token.md +18 -0
- data/docs/{models/Type.md → Type.md} +0 -0
- data/docs/{models/User.md → User.md} +0 -0
- data/docs/{api/UserManagementApi.md → UserManagementApi.md} +12 -526
- data/docs/{models/UserMetadata.md → UserMetadata.md} +0 -0
- data/docs/{models/UserPost.md → UserPost.md} +0 -0
- data/docs/{models/UserProperties.md → UserProperties.md} +0 -0
- data/docs/{models/UserPropertiesPost.md → UserPropertiesPost.md} +0 -0
- data/docs/{models/UserPropertiesPut.md → UserPropertiesPut.md} +0 -0
- data/docs/{models/UserPut.md → UserPut.md} +0 -0
- data/docs/UserS3KeysApi.md +517 -0
- data/docs/Users.md +24 -0
- data/docs/{models/UsersEntities.md → UsersEntities.md} +0 -0
- data/docs/{models/Volume.md → Volume.md} +0 -0
- data/docs/{models/VolumeProperties.md → VolumeProperties.md} +5 -5
- data/docs/{models/Volumes.md → Volumes.md} +0 -0
- data/docs/{api/VolumeApi.md → VolumesApi.md} +42 -42
- data/docs/summary.md +386 -159
- data/ionoscloud.gemspec +2 -2
- data/lib/ionoscloud/api/_api.rb +3 -3
- data/lib/ionoscloud/api/{backup_unit_api.rb → backup_units_api.rb} +56 -56
- data/lib/ionoscloud/api/{contract_api.rb → contract_resources_api.rb} +13 -13
- data/lib/ionoscloud/api/{data_center_api.rb → data_centers_api.rb} +49 -49
- data/lib/ionoscloud/api/firewall_rules_api.rb +640 -0
- data/lib/ionoscloud/api/flow_logs_api.rb +622 -0
- data/lib/ionoscloud/api/{image_api.rb → images_api.rb} +36 -36
- data/lib/ionoscloud/api/ip_blocks_api.rb +12 -30
- data/lib/ionoscloud/api/kubernetes_api.rb +17 -80
- data/lib/ionoscloud/api/{label_api.rb → labels_api.rb} +245 -263
- data/lib/ionoscloud/api/{lan_api.rb → lans_api.rb} +101 -101
- data/lib/ionoscloud/api/{load_balancer_api.rb → load_balancers_api.rb} +144 -126
- data/lib/ionoscloud/api/{location_api.rb → locations_api.rb} +21 -21
- data/lib/ionoscloud/api/nat_gateways_api.rb +1690 -0
- data/lib/ionoscloud/api/network_interfaces_api.rb +604 -0
- data/lib/ionoscloud/api/network_load_balancers_api.rb +1708 -0
- data/lib/ionoscloud/api/{private_cross_connect_api.rb → private_cross_connects_api.rb} +57 -39
- data/lib/ionoscloud/api/{request_api.rb → requests_api.rb} +33 -57
- data/lib/ionoscloud/api/{server_api.rb → servers_api.rb} +501 -157
- data/lib/ionoscloud/api/{snapshot_api.rb → snapshots_api.rb} +42 -42
- data/lib/ionoscloud/api/templates_api.rb +164 -0
- data/lib/ionoscloud/api/user_management_api.rb +12 -525
- data/lib/ionoscloud/api/user_s3_keys_api.rb +517 -0
- data/lib/ionoscloud/api/{volume_api.rb → volumes_api.rb} +71 -71
- data/lib/ionoscloud/api_client.rb +21 -21
- data/lib/ionoscloud/api_error.rb +2 -2
- data/lib/ionoscloud/configuration.rb +6 -6
- data/lib/ionoscloud/models/attached_volumes.rb +13 -69
- data/lib/ionoscloud/models/backup_unit.rb +7 -49
- data/lib/ionoscloud/models/backup_unit_properties.rb +5 -31
- data/lib/ionoscloud/models/backup_unit_sso.rb +3 -13
- data/lib/ionoscloud/models/backup_units.rb +12 -44
- data/lib/ionoscloud/models/balanced_nics.rb +13 -69
- data/lib/ionoscloud/models/cdroms.rb +13 -69
- data/lib/ionoscloud/models/connectable_datacenter.rb +5 -31
- data/lib/ionoscloud/models/contract.rb +4 -22
- data/lib/ionoscloud/models/contract_properties.rb +7 -49
- data/lib/ionoscloud/models/contracts.rb +249 -0
- data/lib/ionoscloud/models/cpu_architecture_properties.rb +247 -0
- data/lib/ionoscloud/models/data_center_entities.rb +27 -43
- data/lib/ionoscloud/models/datacenter.rb +8 -58
- data/lib/ionoscloud/models/datacenter_element_metadata.rb +12 -78
- data/lib/ionoscloud/models/datacenter_properties.rb +49 -63
- data/lib/ionoscloud/models/datacenters.rb +13 -69
- data/lib/ionoscloud/models/error.rb +8 -24
- data/lib/ionoscloud/models/error_message.rb +4 -22
- data/lib/ionoscloud/models/firewall_rule.rb +7 -49
- data/lib/ionoscloud/models/firewall_rules.rb +13 -69
- data/lib/ionoscloud/models/firewallrule_properties.rb +57 -124
- data/lib/ionoscloud/models/flow_log.rb +260 -0
- data/lib/ionoscloud/models/flow_log_properties.rb +313 -0
- data/lib/ionoscloud/models/{kubernetes_config.rb → flow_log_put.rb} +13 -81
- data/lib/ionoscloud/models/flow_logs.rb +278 -0
- data/lib/ionoscloud/models/group.rb +7 -49
- data/lib/ionoscloud/models/group_entities.rb +4 -22
- data/lib/ionoscloud/models/group_members.rb +10 -42
- data/lib/ionoscloud/models/group_properties.rb +35 -97
- data/lib/ionoscloud/models/group_share.rb +6 -40
- data/lib/ionoscloud/models/group_share_properties.rb +4 -22
- data/lib/ionoscloud/models/group_shares.rb +10 -42
- data/lib/ionoscloud/models/group_users.rb +10 -42
- data/lib/ionoscloud/models/groups.rb +10 -42
- data/lib/ionoscloud/models/image.rb +7 -49
- data/lib/ionoscloud/models/image_properties.rb +24 -210
- data/lib/ionoscloud/models/images.rb +10 -42
- data/lib/ionoscloud/models/info.rb +5 -31
- data/lib/ionoscloud/models/ip_block.rb +7 -49
- data/lib/ionoscloud/models/ip_block_properties.rb +15 -53
- data/lib/ionoscloud/models/ip_blocks.rb +13 -98
- data/lib/ionoscloud/models/ip_consumer.rb +12 -104
- data/lib/ionoscloud/models/ip_failover.rb +4 -22
- data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +13 -21
- data/lib/ionoscloud/models/kubernetes_cluster.rb +8 -58
- data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +3 -13
- data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +8 -58
- data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +8 -58
- data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +32 -84
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +22 -62
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_put.rb +8 -70
- data/lib/ionoscloud/models/kubernetes_clusters.rb +11 -43
- data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +13 -21
- data/lib/ionoscloud/models/kubernetes_node.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_metadata.rb +9 -51
- data/lib/ionoscloud/models/kubernetes_node_pool.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_pool_for_post.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +7 -49
- data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +28 -21
- data/lib/ionoscloud/models/kubernetes_node_pool_lan_routes.rb +227 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +42 -170
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +37 -159
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +27 -93
- data/lib/ionoscloud/models/kubernetes_node_pools.rb +11 -43
- data/lib/ionoscloud/models/kubernetes_node_properties.rb +6 -40
- data/lib/ionoscloud/models/kubernetes_nodes.rb +10 -42
- data/lib/ionoscloud/models/label.rb +7 -49
- data/lib/ionoscloud/models/label_properties.rb +7 -49
- data/lib/ionoscloud/models/label_resource.rb +7 -49
- data/lib/ionoscloud/models/label_resource_properties.rb +4 -22
- data/lib/ionoscloud/models/label_resources.rb +15 -71
- data/lib/ionoscloud/models/labels.rb +12 -44
- data/lib/ionoscloud/models/lan.rb +8 -58
- data/lib/ionoscloud/models/lan_entities.rb +3 -13
- data/lib/ionoscloud/models/lan_nics.rb +13 -69
- data/lib/ionoscloud/models/lan_post.rb +8 -58
- data/lib/ionoscloud/models/lan_properties.rb +10 -42
- data/lib/ionoscloud/models/lan_properties_post.rb +10 -42
- data/lib/ionoscloud/models/lans.rb +14 -70
- data/lib/ionoscloud/models/loadbalancer.rb +8 -58
- data/lib/ionoscloud/models/loadbalancer_entities.rb +3 -13
- data/lib/ionoscloud/models/loadbalancer_properties.rb +34 -43
- data/lib/ionoscloud/models/loadbalancers.rb +13 -69
- data/lib/ionoscloud/models/location.rb +7 -49
- data/lib/ionoscloud/models/location_properties.rb +49 -37
- data/lib/ionoscloud/models/locations.rb +10 -42
- data/lib/ionoscloud/models/nat_gateway.rb +269 -0
- data/lib/ionoscloud/models/nat_gateway_entities.rb +225 -0
- data/lib/ionoscloud/models/nat_gateway_lan_properties.rb +234 -0
- data/lib/ionoscloud/models/nat_gateway_properties.rb +251 -0
- data/lib/ionoscloud/models/nat_gateway_put.rb +251 -0
- data/lib/ionoscloud/models/nat_gateway_rule.rb +260 -0
- data/lib/ionoscloud/models/nat_gateway_rule_properties.rb +291 -0
- data/lib/ionoscloud/models/nat_gateway_rule_protocol.rb +39 -0
- data/lib/ionoscloud/models/nat_gateway_rule_put.rb +251 -0
- data/lib/ionoscloud/models/nat_gateway_rule_type.rb +36 -0
- data/lib/ionoscloud/models/nat_gateway_rules.rb +249 -0
- data/lib/ionoscloud/models/nat_gateways.rb +278 -0
- data/lib/ionoscloud/models/network_load_balancer.rb +269 -0
- data/lib/ionoscloud/models/network_load_balancer_entities.rb +225 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule.rb +260 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_health_check.rb +257 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_properties.rb +354 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_put.rb +251 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target.rb +261 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rule_target_health_check.rb +237 -0
- data/lib/ionoscloud/models/network_load_balancer_forwarding_rules.rb +278 -0
- data/lib/ionoscloud/models/network_load_balancer_properties.rb +276 -0
- data/lib/ionoscloud/models/network_load_balancer_put.rb +251 -0
- data/lib/ionoscloud/models/network_load_balancers.rb +278 -0
- data/lib/ionoscloud/models/nic.rb +8 -58
- data/lib/ionoscloud/models/nic_entities.rb +13 -14
- data/lib/ionoscloud/models/nic_properties.rb +71 -73
- data/lib/ionoscloud/models/nic_put.rb +251 -0
- data/lib/ionoscloud/models/nics.rb +13 -69
- data/lib/ionoscloud/models/no_state_meta_data.rb +9 -67
- data/lib/ionoscloud/models/pagination_links.rb +5 -31
- data/lib/ionoscloud/models/peer.rb +7 -49
- data/lib/ionoscloud/models/private_cross_connect.rb +7 -49
- data/lib/ionoscloud/models/private_cross_connect_properties.rb +14 -44
- data/lib/ionoscloud/models/private_cross_connects.rb +10 -42
- data/lib/ionoscloud/models/{kubernetes_config_properties.rb → remote_console_url.rb} +13 -23
- data/lib/ionoscloud/models/request.rb +7 -49
- data/lib/ionoscloud/models/request_metadata.rb +6 -40
- data/lib/ionoscloud/models/request_properties.rb +10 -42
- data/lib/ionoscloud/models/request_status.rb +6 -40
- data/lib/ionoscloud/models/request_status_metadata.rb +10 -42
- data/lib/ionoscloud/models/request_target.rb +4 -22
- data/lib/ionoscloud/models/requests.rb +14 -70
- data/lib/ionoscloud/models/resource.rb +8 -58
- data/lib/ionoscloud/models/resource_entities.rb +3 -13
- data/lib/ionoscloud/models/resource_groups.rb +10 -42
- data/lib/ionoscloud/models/resource_limits.rb +94 -157
- data/lib/ionoscloud/models/resource_properties.rb +4 -22
- data/lib/ionoscloud/models/resource_reference.rb +5 -31
- data/lib/ionoscloud/models/resources.rb +10 -42
- data/lib/ionoscloud/models/resources_users.rb +10 -42
- data/lib/ionoscloud/models/s3_key.rb +7 -49
- data/lib/ionoscloud/models/s3_key_metadata.rb +4 -22
- data/lib/ionoscloud/models/s3_key_properties.rb +4 -22
- data/lib/ionoscloud/models/s3_keys.rb +10 -42
- data/lib/ionoscloud/models/s3_object_storage_sso.rb +3 -13
- data/lib/ionoscloud/models/server.rb +8 -58
- data/lib/ionoscloud/models/server_entities.rb +5 -31
- data/lib/ionoscloud/models/server_properties.rb +36 -82
- data/lib/ionoscloud/models/servers.rb +13 -69
- data/lib/ionoscloud/models/snapshot.rb +7 -49
- data/lib/ionoscloud/models/snapshot_properties.rb +18 -148
- data/lib/ionoscloud/models/snapshots.rb +10 -42
- data/lib/ionoscloud/models/target_port_range.rb +227 -0
- data/lib/ionoscloud/models/template.rb +260 -0
- data/lib/ionoscloud/models/template_properties.rb +267 -0
- data/lib/ionoscloud/models/templates.rb +249 -0
- data/lib/ionoscloud/models/{s3_bucket.rb → token.rb} +13 -28
- data/lib/ionoscloud/models/type.rb +10 -2
- data/lib/ionoscloud/models/user.rb +8 -58
- data/lib/ionoscloud/models/user_metadata.rb +5 -31
- data/lib/ionoscloud/models/user_post.rb +3 -13
- data/lib/ionoscloud/models/user_properties.rb +10 -76
- data/lib/ionoscloud/models/user_properties_post.rb +10 -76
- data/lib/ionoscloud/models/user_properties_put.rb +9 -67
- data/lib/ionoscloud/models/user_put.rb +4 -22
- data/lib/ionoscloud/models/users.rb +13 -98
- data/lib/ionoscloud/models/users_entities.rb +4 -22
- data/lib/ionoscloud/models/volume.rb +7 -49
- data/lib/ionoscloud/models/volume_properties.rb +40 -191
- data/lib/ionoscloud/models/volumes.rb +13 -69
- data/lib/ionoscloud/version.rb +3 -3
- data/lib/ionoscloud.rb +60 -19
- data/spec/api/_api_spec.rb +49 -0
- data/spec/api/backup_units_api_spec.rb +140 -0
- data/spec/api/contract_resources_api_spec.rb +49 -0
- data/spec/api/data_centers_api_spec.rb +128 -0
- data/spec/api/firewall_rules_api_spec.rb +146 -0
- data/spec/api/flow_logs_api_spec.rb +140 -0
- data/spec/api/images_api_spec.rb +111 -0
- data/spec/api/ip_blocks_api_spec.rb +126 -0
- data/spec/api/kubernetes_api_spec.rb +294 -0
- data/spec/api/labels_api_spec.rb +478 -0
- data/spec/api/lans_api_spec.rb +186 -0
- data/spec/api/load_balancers_api_spec.rb +205 -0
- data/spec/api/locations_api_spec.rb +80 -0
- data/spec/api/nat_gateways_api_spec.rb +336 -0
- data/spec/api/network_interfaces_api_spec.rb +140 -0
- data/spec/api/network_load_balancers_api_spec.rb +342 -0
- data/spec/api/private_cross_connects_api_spec.rb +112 -0
- data/spec/api/requests_api_spec.rb +84 -0
- data/spec/api/servers_api_spec.rb +401 -0
- data/spec/api/snapshots_api_spec.rb +111 -0
- data/spec/api/templates_api_spec.rb +60 -0
- data/spec/api/user_management_api_spec.rb +402 -0
- data/spec/api/user_s3_keys_api_spec.rb +128 -0
- data/spec/api/volumes_api_spec.rb +171 -0
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +5 -5
- data/spec/models/attached_volumes_spec.rb +70 -0
- data/spec/models/backup_unit_properties_spec.rb +46 -0
- data/spec/models/backup_unit_spec.rb +62 -0
- data/spec/models/backup_unit_sso_spec.rb +34 -0
- data/spec/models/backup_units_spec.rb +56 -0
- data/spec/models/balanced_nics_spec.rb +70 -0
- data/spec/models/cdroms_spec.rb +70 -0
- data/spec/models/connectable_datacenter_spec.rb +46 -0
- data/spec/models/contract_properties_spec.rb +58 -0
- data/spec/models/contract_spec.rb +40 -0
- data/spec/models/contracts_spec.rb +52 -0
- data/spec/models/cpu_architecture_properties_spec.rb +52 -0
- data/spec/models/data_center_entities_spec.rb +64 -0
- data/spec/models/datacenter_element_metadata_spec.rb +80 -0
- data/spec/models/datacenter_properties_spec.rb +74 -0
- data/spec/models/datacenter_spec.rb +64 -0
- data/spec/models/datacenters_spec.rb +70 -0
- data/spec/models/error_message_spec.rb +40 -0
- data/spec/models/error_spec.rb +40 -0
- data/spec/models/firewall_rule_spec.rb +58 -0
- data/spec/models/firewall_rules_spec.rb +70 -0
- data/spec/models/firewallrule_properties_spec.rb +108 -0
- data/spec/models/flow_log_properties_spec.rb +60 -0
- data/spec/models/flow_log_put_spec.rb +52 -0
- data/spec/models/flow_log_spec.rb +58 -0
- data/spec/models/flow_logs_spec.rb +70 -0
- data/spec/models/group_entities_spec.rb +40 -0
- data/spec/models/group_members_spec.rb +52 -0
- data/spec/models/group_properties_spec.rb +100 -0
- data/spec/models/group_share_properties_spec.rb +40 -0
- data/spec/models/group_share_spec.rb +52 -0
- data/spec/models/group_shares_spec.rb +52 -0
- data/spec/models/group_spec.rb +58 -0
- data/spec/models/group_users_spec.rb +52 -0
- data/spec/models/groups_spec.rb +52 -0
- data/spec/models/image_properties_spec.rb +138 -0
- data/spec/models/image_spec.rb +58 -0
- data/spec/models/images_spec.rb +52 -0
- data/spec/models/info_spec.rb +46 -0
- data/spec/models/ip_block_properties_spec.rb +58 -0
- data/spec/models/ip_block_spec.rb +58 -0
- data/spec/models/ip_blocks_spec.rb +52 -0
- data/spec/models/ip_consumer_spec.rb +70 -0
- data/spec/models/ip_failover_spec.rb +40 -0
- data/spec/models/kubernetes_auto_scaling_spec.rb +40 -0
- data/spec/models/kubernetes_cluster_entities_spec.rb +34 -0
- data/spec/models/kubernetes_cluster_for_post_spec.rb +68 -0
- data/spec/models/kubernetes_cluster_for_put_spec.rb +68 -0
- data/spec/models/kubernetes_cluster_properties_for_post_spec.rb +58 -0
- data/spec/models/kubernetes_cluster_properties_for_put_spec.rb +46 -0
- data/spec/models/kubernetes_cluster_properties_spec.rb +70 -0
- data/spec/models/kubernetes_cluster_spec.rb +68 -0
- data/spec/models/kubernetes_clusters_spec.rb +56 -0
- data/spec/models/kubernetes_maintenance_window_spec.rb +44 -0
- data/spec/models/kubernetes_node_metadata_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_for_post_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_for_put_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_lan_routes_spec.rb +40 -0
- data/spec/models/kubernetes_node_pool_lan_spec.rb +46 -0
- data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +132 -0
- data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +82 -0
- data/spec/models/kubernetes_node_pool_properties_spec.rb +138 -0
- data/spec/models/kubernetes_node_pool_spec.rb +62 -0
- data/spec/models/kubernetes_node_pools_spec.rb +56 -0
- data/spec/models/kubernetes_node_properties_spec.rb +52 -0
- data/spec/models/kubernetes_node_spec.rb +62 -0
- data/spec/models/kubernetes_nodes_spec.rb +56 -0
- data/spec/models/label_properties_spec.rb +58 -0
- data/spec/models/label_resource_properties_spec.rb +40 -0
- data/spec/models/label_resource_spec.rb +62 -0
- data/spec/models/label_resources_spec.rb +74 -0
- data/spec/models/label_spec.rb +62 -0
- data/spec/models/labels_spec.rb +56 -0
- data/spec/models/lan_entities_spec.rb +34 -0
- data/spec/models/lan_nics_spec.rb +70 -0
- data/spec/models/lan_post_spec.rb +64 -0
- data/spec/models/lan_properties_post_spec.rb +52 -0
- data/spec/models/lan_properties_spec.rb +52 -0
- data/spec/models/lan_spec.rb +64 -0
- data/spec/models/lans_spec.rb +70 -0
- data/spec/models/loadbalancer_entities_spec.rb +34 -0
- data/spec/models/loadbalancer_properties_spec.rb +50 -0
- data/spec/models/loadbalancer_spec.rb +64 -0
- data/spec/models/loadbalancers_spec.rb +70 -0
- data/spec/models/location_properties_spec.rb +56 -0
- data/spec/models/location_spec.rb +58 -0
- data/spec/models/locations_spec.rb +52 -0
- data/spec/models/nat_gateway_entities_spec.rb +40 -0
- data/spec/models/nat_gateway_lan_properties_spec.rb +40 -0
- data/spec/models/nat_gateway_properties_spec.rb +46 -0
- data/spec/models/nat_gateway_put_spec.rb +52 -0
- data/spec/models/nat_gateway_rule_properties_spec.rb +70 -0
- data/spec/models/nat_gateway_rule_protocol_spec.rb +28 -0
- data/spec/models/nat_gateway_rule_put_spec.rb +52 -0
- data/spec/models/nat_gateway_rule_spec.rb +58 -0
- data/spec/models/nat_gateway_rule_type_spec.rb +28 -0
- data/spec/models/nat_gateway_rules_spec.rb +52 -0
- data/spec/models/nat_gateway_spec.rb +64 -0
- data/spec/models/nat_gateways_spec.rb +70 -0
- data/spec/models/network_load_balancer_entities_spec.rb +40 -0
- data/spec/models/network_load_balancer_forwarding_rule_health_check_spec.rb +58 -0
- data/spec/models/network_load_balancer_forwarding_rule_properties_spec.rb +78 -0
- data/spec/models/network_load_balancer_forwarding_rule_put_spec.rb +52 -0
- data/spec/models/network_load_balancer_forwarding_rule_spec.rb +58 -0
- data/spec/models/network_load_balancer_forwarding_rule_target_health_check_spec.rb +46 -0
- data/spec/models/network_load_balancer_forwarding_rule_target_spec.rb +52 -0
- data/spec/models/network_load_balancer_forwarding_rules_spec.rb +70 -0
- data/spec/models/network_load_balancer_properties_spec.rb +58 -0
- data/spec/models/network_load_balancer_put_spec.rb +52 -0
- data/spec/models/network_load_balancer_spec.rb +64 -0
- data/spec/models/network_load_balancers_spec.rb +70 -0
- data/spec/models/nic_entities_spec.rb +40 -0
- data/spec/models/nic_properties_spec.rb +86 -0
- data/spec/models/nic_put_spec.rb +52 -0
- data/spec/models/nic_spec.rb +64 -0
- data/spec/models/nics_spec.rb +70 -0
- data/spec/models/no_state_meta_data_spec.rb +70 -0
- data/spec/models/pagination_links_spec.rb +46 -0
- data/spec/models/peer_spec.rb +58 -0
- data/spec/models/private_cross_connect_properties_spec.rb +52 -0
- data/spec/models/private_cross_connect_spec.rb +58 -0
- data/spec/models/private_cross_connects_spec.rb +52 -0
- data/spec/models/remote_console_url_spec.rb +34 -0
- data/spec/models/request_metadata_spec.rb +52 -0
- data/spec/models/request_properties_spec.rb +52 -0
- data/spec/models/request_spec.rb +58 -0
- data/spec/models/request_status_metadata_spec.rb +56 -0
- data/spec/models/request_status_spec.rb +52 -0
- data/spec/models/request_target_spec.rb +44 -0
- data/spec/models/requests_spec.rb +70 -0
- data/spec/models/resource_entities_spec.rb +34 -0
- data/spec/models/resource_groups_spec.rb +52 -0
- data/spec/models/resource_limits_spec.rb +160 -0
- data/spec/models/resource_properties_spec.rb +40 -0
- data/spec/models/resource_reference_spec.rb +46 -0
- data/spec/models/resource_spec.rb +64 -0
- data/spec/models/resources_spec.rb +52 -0
- data/spec/models/resources_users_spec.rb +52 -0
- data/spec/models/s3_key_metadata_spec.rb +40 -0
- data/spec/models/s3_key_properties_spec.rb +40 -0
- data/spec/models/s3_key_spec.rb +58 -0
- data/spec/models/s3_keys_spec.rb +52 -0
- data/spec/models/s3_object_storage_sso_spec.rb +34 -0
- data/spec/models/server_entities_spec.rb +46 -0
- data/spec/models/server_properties_spec.rb +96 -0
- data/spec/models/server_spec.rb +64 -0
- data/spec/models/servers_spec.rb +70 -0
- data/spec/models/snapshot_properties_spec.rb +128 -0
- data/spec/models/snapshot_spec.rb +58 -0
- data/spec/models/snapshots_spec.rb +52 -0
- data/spec/models/target_port_range_spec.rb +40 -0
- data/spec/models/template_properties_spec.rb +52 -0
- data/spec/models/template_spec.rb +58 -0
- data/spec/models/templates_spec.rb +52 -0
- data/spec/models/token_spec.rb +34 -0
- data/spec/models/type_spec.rb +28 -0
- data/spec/models/user_metadata_spec.rb +46 -0
- data/spec/models/user_post_spec.rb +34 -0
- data/spec/models/user_properties_post_spec.rb +76 -0
- data/spec/models/user_properties_put_spec.rb +70 -0
- data/spec/models/user_properties_spec.rb +76 -0
- data/spec/models/user_put_spec.rb +40 -0
- data/spec/models/user_spec.rb +64 -0
- data/spec/models/users_entities_spec.rb +40 -0
- data/spec/models/users_spec.rb +52 -0
- data/spec/models/volume_properties_spec.rb +158 -0
- data/spec/models/volume_spec.rb +58 -0
- data/spec/models/volumes_spec.rb +70 -0
- data/spec/spec_helper.rb +2 -2
- metadata +642 -179
- data/Gemfile.lock +0 -68
- data/LICENSE +0 -190
- data/README.md +0 -65
- data/docs/api/NicApi.md +0 -1087
- data/docs/models/IpBlocks.md +0 -30
- data/docs/models/KubernetesConfig.md +0 -24
- data/docs/models/KubernetesConfigProperties.md +0 -18
- data/docs/models/KubernetesNodePoolLan.md +0 -18
- data/docs/models/Users.md +0 -30
- data/lib/ionoscloud/api/nic_api.rb +0 -1222
- data/lib/test_driver.rb +0 -104
@@ -3,17 +3,17 @@
|
|
3
3
|
|
4
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
5
|
|
6
|
-
The version of the OpenAPI document:
|
6
|
+
The version of the OpenAPI document: 6.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.0.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'cgi'
|
14
14
|
|
15
15
|
module Ionoscloud
|
16
|
-
class
|
16
|
+
class LabelsApi
|
17
17
|
attr_accessor :api_client
|
18
18
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
@@ -44,22 +44,22 @@ module Ionoscloud
|
|
44
44
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
45
45
|
def datacenters_labels_delete_with_http_info(datacenter_id, key, opts = {})
|
46
46
|
if @api_client.config.debugging
|
47
|
-
@api_client.config.logger.debug 'Calling API:
|
47
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_labels_delete ...'
|
48
48
|
end
|
49
49
|
# verify the required parameter 'datacenter_id' is set
|
50
50
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
51
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
51
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_labels_delete"
|
52
52
|
end
|
53
53
|
# verify the required parameter 'key' is set
|
54
54
|
if @api_client.config.client_side_validation && key.nil?
|
55
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
55
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_labels_delete"
|
56
56
|
end
|
57
57
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
58
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
58
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_delete, must be smaller than or equal to 10.'
|
59
59
|
end
|
60
60
|
|
61
61
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
62
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
62
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_delete, must be greater than or equal to 0.'
|
63
63
|
end
|
64
64
|
|
65
65
|
# resource path
|
@@ -89,7 +89,7 @@ module Ionoscloud
|
|
89
89
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
90
90
|
|
91
91
|
new_options = opts.merge(
|
92
|
-
:operation => :"
|
92
|
+
:operation => :"LabelsApi.datacenters_labels_delete",
|
93
93
|
:header_params => header_params,
|
94
94
|
:query_params => query_params,
|
95
95
|
:form_params => form_params,
|
@@ -100,7 +100,7 @@ module Ionoscloud
|
|
100
100
|
|
101
101
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
102
102
|
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug "API called:
|
103
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_labels_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
104
104
|
end
|
105
105
|
return data, status_code, headers
|
106
106
|
end
|
@@ -113,6 +113,8 @@ module Ionoscloud
|
|
113
113
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
|
114
114
|
# @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)
|
115
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
|
+
# @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)
|
117
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination) (default to 1000)
|
116
118
|
# @return [LabelResource]
|
117
119
|
def datacenters_labels_find_by_key(datacenter_id, key, opts = {})
|
118
120
|
data, _status_code, _headers = datacenters_labels_find_by_key_with_http_info(datacenter_id, key, opts)
|
@@ -127,25 +129,39 @@ module Ionoscloud
|
|
127
129
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
128
130
|
# @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
|
129
131
|
# @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
|
132
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination)
|
133
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination)
|
130
134
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
131
135
|
def datacenters_labels_find_by_key_with_http_info(datacenter_id, key, opts = {})
|
132
136
|
if @api_client.config.debugging
|
133
|
-
@api_client.config.logger.debug 'Calling API:
|
137
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_labels_find_by_key ...'
|
134
138
|
end
|
135
139
|
# verify the required parameter 'datacenter_id' is set
|
136
140
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
137
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
141
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_labels_find_by_key"
|
138
142
|
end
|
139
143
|
# verify the required parameter 'key' is set
|
140
144
|
if @api_client.config.client_side_validation && key.nil?
|
141
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
145
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_labels_find_by_key"
|
142
146
|
end
|
143
147
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
144
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
148
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_find_by_key, must be smaller than or equal to 10.'
|
145
149
|
end
|
146
150
|
|
147
151
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
148
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
152
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_find_by_key, must be greater than or equal to 0.'
|
153
|
+
end
|
154
|
+
|
155
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
156
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling LabelsApi.datacenters_labels_find_by_key, must be greater than or equal to 0.'
|
157
|
+
end
|
158
|
+
|
159
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000
|
160
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelsApi.datacenters_labels_find_by_key, must be smaller than or equal to 10000.'
|
161
|
+
end
|
162
|
+
|
163
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
164
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelsApi.datacenters_labels_find_by_key, must be greater than or equal to 1.'
|
149
165
|
end
|
150
166
|
|
151
167
|
# resource path
|
@@ -155,6 +171,8 @@ module Ionoscloud
|
|
155
171
|
query_params = opts[:query_params] || {}
|
156
172
|
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
157
173
|
query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
|
174
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
175
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
158
176
|
|
159
177
|
# header parameters
|
160
178
|
header_params = opts[:header_params] || {}
|
@@ -175,7 +193,7 @@ module Ionoscloud
|
|
175
193
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
176
194
|
|
177
195
|
new_options = opts.merge(
|
178
|
-
:operation => :"
|
196
|
+
:operation => :"LabelsApi.datacenters_labels_find_by_key",
|
179
197
|
:header_params => header_params,
|
180
198
|
:query_params => query_params,
|
181
199
|
:form_params => form_params,
|
@@ -186,20 +204,18 @@ module Ionoscloud
|
|
186
204
|
|
187
205
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
188
206
|
if @api_client.config.debugging
|
189
|
-
@api_client.config.logger.debug "API called:
|
207
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_labels_find_by_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
190
208
|
end
|
191
209
|
return data, status_code, headers
|
192
210
|
end
|
193
211
|
|
194
212
|
# List all Data Center Labels
|
195
|
-
# You can retrieve a list of all labels associated with a data center
|
213
|
+
# You can retrieve a list of all labels associated with a data center.
|
196
214
|
# @param datacenter_id [String] The unique ID of the Data Center
|
197
215
|
# @param [Hash] opts the optional parameters
|
198
216
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
|
199
217
|
# @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)
|
200
218
|
# @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
|
201
|
-
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination) (default to 0)
|
202
|
-
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination) (default to 1000)
|
203
219
|
# @return [LabelResources]
|
204
220
|
def datacenters_labels_get(datacenter_id, opts = {})
|
205
221
|
data, _status_code, _headers = datacenters_labels_get_with_http_info(datacenter_id, opts)
|
@@ -207,41 +223,27 @@ module Ionoscloud
|
|
207
223
|
end
|
208
224
|
|
209
225
|
# List all Data Center Labels
|
210
|
-
# You can retrieve a list of all labels associated with a data center
|
226
|
+
# You can retrieve a list of all labels associated with a data center.
|
211
227
|
# @param datacenter_id [String] The unique ID of the Data Center
|
212
228
|
# @param [Hash] opts the optional parameters
|
213
229
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
214
230
|
# @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
|
215
231
|
# @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
|
216
|
-
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
217
|
-
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
218
232
|
# @return [Array<(LabelResources, Integer, Hash)>] LabelResources data, response status code and response headers
|
219
233
|
def datacenters_labels_get_with_http_info(datacenter_id, opts = {})
|
220
234
|
if @api_client.config.debugging
|
221
|
-
@api_client.config.logger.debug 'Calling API:
|
235
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_labels_get ...'
|
222
236
|
end
|
223
237
|
# verify the required parameter 'datacenter_id' is set
|
224
238
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
225
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
239
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_labels_get"
|
226
240
|
end
|
227
241
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
228
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
242
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_get, must be smaller than or equal to 10.'
|
229
243
|
end
|
230
244
|
|
231
245
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
232
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
233
|
-
end
|
234
|
-
|
235
|
-
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
236
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling LabelApi.datacenters_labels_get, must be greater than or equal to 0.'
|
237
|
-
end
|
238
|
-
|
239
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000
|
240
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelApi.datacenters_labels_get, must be smaller than or equal to 10000.'
|
241
|
-
end
|
242
|
-
|
243
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
244
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelApi.datacenters_labels_get, must be greater than or equal to 1.'
|
246
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_get, must be greater than or equal to 0.'
|
245
247
|
end
|
246
248
|
|
247
249
|
# resource path
|
@@ -251,8 +253,6 @@ module Ionoscloud
|
|
251
253
|
query_params = opts[:query_params] || {}
|
252
254
|
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
253
255
|
query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
|
254
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
255
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
256
256
|
|
257
257
|
# header parameters
|
258
258
|
header_params = opts[:header_params] || {}
|
@@ -273,7 +273,7 @@ module Ionoscloud
|
|
273
273
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
274
274
|
|
275
275
|
new_options = opts.merge(
|
276
|
-
:operation => :"
|
276
|
+
:operation => :"LabelsApi.datacenters_labels_get",
|
277
277
|
:header_params => header_params,
|
278
278
|
:query_params => query_params,
|
279
279
|
:form_params => form_params,
|
@@ -284,7 +284,7 @@ module Ionoscloud
|
|
284
284
|
|
285
285
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
286
286
|
if @api_client.config.debugging
|
287
|
-
@api_client.config.logger.debug "API called:
|
287
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_labels_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
288
288
|
end
|
289
289
|
return data, status_code, headers
|
290
290
|
end
|
@@ -314,22 +314,22 @@ module Ionoscloud
|
|
314
314
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
315
315
|
def datacenters_labels_post_with_http_info(datacenter_id, label, opts = {})
|
316
316
|
if @api_client.config.debugging
|
317
|
-
@api_client.config.logger.debug 'Calling API:
|
317
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_labels_post ...'
|
318
318
|
end
|
319
319
|
# verify the required parameter 'datacenter_id' is set
|
320
320
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
321
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
321
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_labels_post"
|
322
322
|
end
|
323
323
|
# verify the required parameter 'label' is set
|
324
324
|
if @api_client.config.client_side_validation && label.nil?
|
325
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
325
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.datacenters_labels_post"
|
326
326
|
end
|
327
327
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
328
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
328
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_post, must be smaller than or equal to 10.'
|
329
329
|
end
|
330
330
|
|
331
331
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
332
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
332
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_post, must be greater than or equal to 0.'
|
333
333
|
end
|
334
334
|
|
335
335
|
# resource path
|
@@ -361,7 +361,7 @@ module Ionoscloud
|
|
361
361
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
362
362
|
|
363
363
|
new_options = opts.merge(
|
364
|
-
:operation => :"
|
364
|
+
:operation => :"LabelsApi.datacenters_labels_post",
|
365
365
|
:header_params => header_params,
|
366
366
|
:query_params => query_params,
|
367
367
|
:form_params => form_params,
|
@@ -372,7 +372,7 @@ module Ionoscloud
|
|
372
372
|
|
373
373
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
374
374
|
if @api_client.config.debugging
|
375
|
-
@api_client.config.logger.debug "API called:
|
375
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_labels_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
376
376
|
end
|
377
377
|
return data, status_code, headers
|
378
378
|
end
|
@@ -404,26 +404,26 @@ module Ionoscloud
|
|
404
404
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
405
405
|
def datacenters_labels_put_with_http_info(datacenter_id, key, label, opts = {})
|
406
406
|
if @api_client.config.debugging
|
407
|
-
@api_client.config.logger.debug 'Calling API:
|
407
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_labels_put ...'
|
408
408
|
end
|
409
409
|
# verify the required parameter 'datacenter_id' is set
|
410
410
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
411
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
411
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_labels_put"
|
412
412
|
end
|
413
413
|
# verify the required parameter 'key' is set
|
414
414
|
if @api_client.config.client_side_validation && key.nil?
|
415
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
415
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_labels_put"
|
416
416
|
end
|
417
417
|
# verify the required parameter 'label' is set
|
418
418
|
if @api_client.config.client_side_validation && label.nil?
|
419
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
419
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.datacenters_labels_put"
|
420
420
|
end
|
421
421
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
422
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
422
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_put, must be smaller than or equal to 10.'
|
423
423
|
end
|
424
424
|
|
425
425
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
426
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
426
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_labels_put, must be greater than or equal to 0.'
|
427
427
|
end
|
428
428
|
|
429
429
|
# resource path
|
@@ -455,7 +455,7 @@ module Ionoscloud
|
|
455
455
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
456
456
|
|
457
457
|
new_options = opts.merge(
|
458
|
-
:operation => :"
|
458
|
+
:operation => :"LabelsApi.datacenters_labels_put",
|
459
459
|
:header_params => header_params,
|
460
460
|
:query_params => query_params,
|
461
461
|
:form_params => form_params,
|
@@ -466,7 +466,7 @@ module Ionoscloud
|
|
466
466
|
|
467
467
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
468
468
|
if @api_client.config.debugging
|
469
|
-
@api_client.config.logger.debug "API called:
|
469
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_labels_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
470
470
|
end
|
471
471
|
return data, status_code, headers
|
472
472
|
end
|
@@ -498,26 +498,26 @@ module Ionoscloud
|
|
498
498
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
499
499
|
def datacenters_servers_labels_delete_with_http_info(datacenter_id, server_id, key, opts = {})
|
500
500
|
if @api_client.config.debugging
|
501
|
-
@api_client.config.logger.debug 'Calling API:
|
501
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_servers_labels_delete ...'
|
502
502
|
end
|
503
503
|
# verify the required parameter 'datacenter_id' is set
|
504
504
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
505
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
505
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_servers_labels_delete"
|
506
506
|
end
|
507
507
|
# verify the required parameter 'server_id' is set
|
508
508
|
if @api_client.config.client_side_validation && server_id.nil?
|
509
|
-
fail ArgumentError, "Missing the required parameter 'server_id' when calling
|
509
|
+
fail ArgumentError, "Missing the required parameter 'server_id' when calling LabelsApi.datacenters_servers_labels_delete"
|
510
510
|
end
|
511
511
|
# verify the required parameter 'key' is set
|
512
512
|
if @api_client.config.client_side_validation && key.nil?
|
513
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
513
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_servers_labels_delete"
|
514
514
|
end
|
515
515
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
516
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
516
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_delete, must be smaller than or equal to 10.'
|
517
517
|
end
|
518
518
|
|
519
519
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
520
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
520
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_delete, must be greater than or equal to 0.'
|
521
521
|
end
|
522
522
|
|
523
523
|
# resource path
|
@@ -547,7 +547,7 @@ module Ionoscloud
|
|
547
547
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
548
548
|
|
549
549
|
new_options = opts.merge(
|
550
|
-
:operation => :"
|
550
|
+
:operation => :"LabelsApi.datacenters_servers_labels_delete",
|
551
551
|
:header_params => header_params,
|
552
552
|
:query_params => query_params,
|
553
553
|
:form_params => form_params,
|
@@ -558,7 +558,7 @@ module Ionoscloud
|
|
558
558
|
|
559
559
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
560
560
|
if @api_client.config.debugging
|
561
|
-
@api_client.config.logger.debug "API called:
|
561
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_servers_labels_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
562
562
|
end
|
563
563
|
return data, status_code, headers
|
564
564
|
end
|
@@ -590,26 +590,26 @@ module Ionoscloud
|
|
590
590
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
591
591
|
def datacenters_servers_labels_find_by_key_with_http_info(datacenter_id, server_id, key, opts = {})
|
592
592
|
if @api_client.config.debugging
|
593
|
-
@api_client.config.logger.debug 'Calling API:
|
593
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_servers_labels_find_by_key ...'
|
594
594
|
end
|
595
595
|
# verify the required parameter 'datacenter_id' is set
|
596
596
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
597
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
597
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_servers_labels_find_by_key"
|
598
598
|
end
|
599
599
|
# verify the required parameter 'server_id' is set
|
600
600
|
if @api_client.config.client_side_validation && server_id.nil?
|
601
|
-
fail ArgumentError, "Missing the required parameter 'server_id' when calling
|
601
|
+
fail ArgumentError, "Missing the required parameter 'server_id' when calling LabelsApi.datacenters_servers_labels_find_by_key"
|
602
602
|
end
|
603
603
|
# verify the required parameter 'key' is set
|
604
604
|
if @api_client.config.client_side_validation && key.nil?
|
605
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
605
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_servers_labels_find_by_key"
|
606
606
|
end
|
607
607
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
608
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
608
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_find_by_key, must be smaller than or equal to 10.'
|
609
609
|
end
|
610
610
|
|
611
611
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
612
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
612
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_find_by_key, must be greater than or equal to 0.'
|
613
613
|
end
|
614
614
|
|
615
615
|
# resource path
|
@@ -639,7 +639,7 @@ module Ionoscloud
|
|
639
639
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
640
640
|
|
641
641
|
new_options = opts.merge(
|
642
|
-
:operation => :"
|
642
|
+
:operation => :"LabelsApi.datacenters_servers_labels_find_by_key",
|
643
643
|
:header_params => header_params,
|
644
644
|
:query_params => query_params,
|
645
645
|
:form_params => form_params,
|
@@ -650,21 +650,19 @@ module Ionoscloud
|
|
650
650
|
|
651
651
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
652
652
|
if @api_client.config.debugging
|
653
|
-
@api_client.config.logger.debug "API called:
|
653
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_servers_labels_find_by_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
654
654
|
end
|
655
655
|
return data, status_code, headers
|
656
656
|
end
|
657
657
|
|
658
658
|
# List all Server Labels
|
659
|
-
# You can retrieve a list of all labels associated with a server
|
659
|
+
# You can retrieve a list of all labels associated with a server.
|
660
660
|
# @param datacenter_id [String] The unique ID of the Datacenter
|
661
661
|
# @param server_id [String] The unique ID of the Server
|
662
662
|
# @param [Hash] opts the optional parameters
|
663
663
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
|
664
664
|
# @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)
|
665
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
|
-
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination) (default to 0)
|
667
|
-
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination) (default to 1000)
|
668
666
|
# @return [LabelResources]
|
669
667
|
def datacenters_servers_labels_get(datacenter_id, server_id, opts = {})
|
670
668
|
data, _status_code, _headers = datacenters_servers_labels_get_with_http_info(datacenter_id, server_id, opts)
|
@@ -672,46 +670,32 @@ module Ionoscloud
|
|
672
670
|
end
|
673
671
|
|
674
672
|
# List all Server Labels
|
675
|
-
# You can retrieve a list of all labels associated with a server
|
673
|
+
# You can retrieve a list of all labels associated with a server.
|
676
674
|
# @param datacenter_id [String] The unique ID of the Datacenter
|
677
675
|
# @param server_id [String] The unique ID of the Server
|
678
676
|
# @param [Hash] opts the optional parameters
|
679
677
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
680
678
|
# @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
|
681
679
|
# @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
|
-
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
683
|
-
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
684
680
|
# @return [Array<(LabelResources, Integer, Hash)>] LabelResources data, response status code and response headers
|
685
681
|
def datacenters_servers_labels_get_with_http_info(datacenter_id, server_id, opts = {})
|
686
682
|
if @api_client.config.debugging
|
687
|
-
@api_client.config.logger.debug 'Calling API:
|
683
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_servers_labels_get ...'
|
688
684
|
end
|
689
685
|
# verify the required parameter 'datacenter_id' is set
|
690
686
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
691
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
687
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_servers_labels_get"
|
692
688
|
end
|
693
689
|
# verify the required parameter 'server_id' is set
|
694
690
|
if @api_client.config.client_side_validation && server_id.nil?
|
695
|
-
fail ArgumentError, "Missing the required parameter 'server_id' when calling
|
691
|
+
fail ArgumentError, "Missing the required parameter 'server_id' when calling LabelsApi.datacenters_servers_labels_get"
|
696
692
|
end
|
697
693
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
698
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
694
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_get, must be smaller than or equal to 10.'
|
699
695
|
end
|
700
696
|
|
701
697
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
702
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
703
|
-
end
|
704
|
-
|
705
|
-
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
706
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling LabelApi.datacenters_servers_labels_get, must be greater than or equal to 0.'
|
707
|
-
end
|
708
|
-
|
709
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000
|
710
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelApi.datacenters_servers_labels_get, must be smaller than or equal to 10000.'
|
711
|
-
end
|
712
|
-
|
713
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
714
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelApi.datacenters_servers_labels_get, must be greater than or equal to 1.'
|
698
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_get, must be greater than or equal to 0.'
|
715
699
|
end
|
716
700
|
|
717
701
|
# resource path
|
@@ -721,8 +705,6 @@ module Ionoscloud
|
|
721
705
|
query_params = opts[:query_params] || {}
|
722
706
|
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
723
707
|
query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
|
724
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
725
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
726
708
|
|
727
709
|
# header parameters
|
728
710
|
header_params = opts[:header_params] || {}
|
@@ -743,7 +725,7 @@ module Ionoscloud
|
|
743
725
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
744
726
|
|
745
727
|
new_options = opts.merge(
|
746
|
-
:operation => :"
|
728
|
+
:operation => :"LabelsApi.datacenters_servers_labels_get",
|
747
729
|
:header_params => header_params,
|
748
730
|
:query_params => query_params,
|
749
731
|
:form_params => form_params,
|
@@ -754,7 +736,7 @@ module Ionoscloud
|
|
754
736
|
|
755
737
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
756
738
|
if @api_client.config.debugging
|
757
|
-
@api_client.config.logger.debug "API called:
|
739
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_servers_labels_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
758
740
|
end
|
759
741
|
return data, status_code, headers
|
760
742
|
end
|
@@ -786,26 +768,26 @@ module Ionoscloud
|
|
786
768
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
787
769
|
def datacenters_servers_labels_post_with_http_info(datacenter_id, server_id, label, opts = {})
|
788
770
|
if @api_client.config.debugging
|
789
|
-
@api_client.config.logger.debug 'Calling API:
|
771
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_servers_labels_post ...'
|
790
772
|
end
|
791
773
|
# verify the required parameter 'datacenter_id' is set
|
792
774
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
793
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
775
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_servers_labels_post"
|
794
776
|
end
|
795
777
|
# verify the required parameter 'server_id' is set
|
796
778
|
if @api_client.config.client_side_validation && server_id.nil?
|
797
|
-
fail ArgumentError, "Missing the required parameter 'server_id' when calling
|
779
|
+
fail ArgumentError, "Missing the required parameter 'server_id' when calling LabelsApi.datacenters_servers_labels_post"
|
798
780
|
end
|
799
781
|
# verify the required parameter 'label' is set
|
800
782
|
if @api_client.config.client_side_validation && label.nil?
|
801
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
783
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.datacenters_servers_labels_post"
|
802
784
|
end
|
803
785
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
804
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
786
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_post, must be smaller than or equal to 10.'
|
805
787
|
end
|
806
788
|
|
807
789
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
808
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
790
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_post, must be greater than or equal to 0.'
|
809
791
|
end
|
810
792
|
|
811
793
|
# resource path
|
@@ -837,7 +819,7 @@ module Ionoscloud
|
|
837
819
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
838
820
|
|
839
821
|
new_options = opts.merge(
|
840
|
-
:operation => :"
|
822
|
+
:operation => :"LabelsApi.datacenters_servers_labels_post",
|
841
823
|
:header_params => header_params,
|
842
824
|
:query_params => query_params,
|
843
825
|
:form_params => form_params,
|
@@ -848,7 +830,7 @@ module Ionoscloud
|
|
848
830
|
|
849
831
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
850
832
|
if @api_client.config.debugging
|
851
|
-
@api_client.config.logger.debug "API called:
|
833
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_servers_labels_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
852
834
|
end
|
853
835
|
return data, status_code, headers
|
854
836
|
end
|
@@ -863,6 +845,8 @@ module Ionoscloud
|
|
863
845
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
|
864
846
|
# @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)
|
865
847
|
# @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
|
848
|
+
# @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)
|
849
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination) (default to 1000)
|
866
850
|
# @return [LabelResource]
|
867
851
|
def datacenters_servers_labels_put(datacenter_id, server_id, key, label, opts = {})
|
868
852
|
data, _status_code, _headers = datacenters_servers_labels_put_with_http_info(datacenter_id, server_id, key, label, opts)
|
@@ -879,33 +863,47 @@ module Ionoscloud
|
|
879
863
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
880
864
|
# @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
|
881
865
|
# @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
|
866
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with limit for pagination)
|
867
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with offset for pagination)
|
882
868
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
883
869
|
def datacenters_servers_labels_put_with_http_info(datacenter_id, server_id, key, label, opts = {})
|
884
870
|
if @api_client.config.debugging
|
885
|
-
@api_client.config.logger.debug 'Calling API:
|
871
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_servers_labels_put ...'
|
886
872
|
end
|
887
873
|
# verify the required parameter 'datacenter_id' is set
|
888
874
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
889
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
875
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_servers_labels_put"
|
890
876
|
end
|
891
877
|
# verify the required parameter 'server_id' is set
|
892
878
|
if @api_client.config.client_side_validation && server_id.nil?
|
893
|
-
fail ArgumentError, "Missing the required parameter 'server_id' when calling
|
879
|
+
fail ArgumentError, "Missing the required parameter 'server_id' when calling LabelsApi.datacenters_servers_labels_put"
|
894
880
|
end
|
895
881
|
# verify the required parameter 'key' is set
|
896
882
|
if @api_client.config.client_side_validation && key.nil?
|
897
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
883
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_servers_labels_put"
|
898
884
|
end
|
899
885
|
# verify the required parameter 'label' is set
|
900
886
|
if @api_client.config.client_side_validation && label.nil?
|
901
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
887
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.datacenters_servers_labels_put"
|
902
888
|
end
|
903
889
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
904
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
890
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_put, must be smaller than or equal to 10.'
|
905
891
|
end
|
906
892
|
|
907
893
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
908
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
894
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_servers_labels_put, must be greater than or equal to 0.'
|
895
|
+
end
|
896
|
+
|
897
|
+
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
898
|
+
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling LabelsApi.datacenters_servers_labels_put, must be greater than or equal to 0.'
|
899
|
+
end
|
900
|
+
|
901
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000
|
902
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelsApi.datacenters_servers_labels_put, must be smaller than or equal to 10000.'
|
903
|
+
end
|
904
|
+
|
905
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
906
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelsApi.datacenters_servers_labels_put, must be greater than or equal to 1.'
|
909
907
|
end
|
910
908
|
|
911
909
|
# resource path
|
@@ -915,6 +913,8 @@ module Ionoscloud
|
|
915
913
|
query_params = opts[:query_params] || {}
|
916
914
|
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
917
915
|
query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
|
916
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
917
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
918
918
|
|
919
919
|
# header parameters
|
920
920
|
header_params = opts[:header_params] || {}
|
@@ -937,7 +937,7 @@ module Ionoscloud
|
|
937
937
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
938
938
|
|
939
939
|
new_options = opts.merge(
|
940
|
-
:operation => :"
|
940
|
+
:operation => :"LabelsApi.datacenters_servers_labels_put",
|
941
941
|
:header_params => header_params,
|
942
942
|
:query_params => query_params,
|
943
943
|
:form_params => form_params,
|
@@ -948,7 +948,7 @@ module Ionoscloud
|
|
948
948
|
|
949
949
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
950
950
|
if @api_client.config.debugging
|
951
|
-
@api_client.config.logger.debug "API called:
|
951
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_servers_labels_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
952
952
|
end
|
953
953
|
return data, status_code, headers
|
954
954
|
end
|
@@ -980,26 +980,26 @@ module Ionoscloud
|
|
980
980
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
981
981
|
def datacenters_volumes_labels_delete_with_http_info(datacenter_id, volume_id, key, opts = {})
|
982
982
|
if @api_client.config.debugging
|
983
|
-
@api_client.config.logger.debug 'Calling API:
|
983
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_volumes_labels_delete ...'
|
984
984
|
end
|
985
985
|
# verify the required parameter 'datacenter_id' is set
|
986
986
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
987
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
987
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_volumes_labels_delete"
|
988
988
|
end
|
989
989
|
# verify the required parameter 'volume_id' is set
|
990
990
|
if @api_client.config.client_side_validation && volume_id.nil?
|
991
|
-
fail ArgumentError, "Missing the required parameter 'volume_id' when calling
|
991
|
+
fail ArgumentError, "Missing the required parameter 'volume_id' when calling LabelsApi.datacenters_volumes_labels_delete"
|
992
992
|
end
|
993
993
|
# verify the required parameter 'key' is set
|
994
994
|
if @api_client.config.client_side_validation && key.nil?
|
995
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
995
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_volumes_labels_delete"
|
996
996
|
end
|
997
997
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
998
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
998
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_delete, must be smaller than or equal to 10.'
|
999
999
|
end
|
1000
1000
|
|
1001
1001
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1002
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1002
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_delete, must be greater than or equal to 0.'
|
1003
1003
|
end
|
1004
1004
|
|
1005
1005
|
# resource path
|
@@ -1029,7 +1029,7 @@ module Ionoscloud
|
|
1029
1029
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1030
1030
|
|
1031
1031
|
new_options = opts.merge(
|
1032
|
-
:operation => :"
|
1032
|
+
:operation => :"LabelsApi.datacenters_volumes_labels_delete",
|
1033
1033
|
:header_params => header_params,
|
1034
1034
|
:query_params => query_params,
|
1035
1035
|
:form_params => form_params,
|
@@ -1040,7 +1040,7 @@ module Ionoscloud
|
|
1040
1040
|
|
1041
1041
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1042
1042
|
if @api_client.config.debugging
|
1043
|
-
@api_client.config.logger.debug "API called:
|
1043
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_volumes_labels_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1044
1044
|
end
|
1045
1045
|
return data, status_code, headers
|
1046
1046
|
end
|
@@ -1072,26 +1072,26 @@ module Ionoscloud
|
|
1072
1072
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
1073
1073
|
def datacenters_volumes_labels_find_by_key_with_http_info(datacenter_id, volume_id, key, opts = {})
|
1074
1074
|
if @api_client.config.debugging
|
1075
|
-
@api_client.config.logger.debug 'Calling API:
|
1075
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_volumes_labels_find_by_key ...'
|
1076
1076
|
end
|
1077
1077
|
# verify the required parameter 'datacenter_id' is set
|
1078
1078
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
1079
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
1079
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_volumes_labels_find_by_key"
|
1080
1080
|
end
|
1081
1081
|
# verify the required parameter 'volume_id' is set
|
1082
1082
|
if @api_client.config.client_side_validation && volume_id.nil?
|
1083
|
-
fail ArgumentError, "Missing the required parameter 'volume_id' when calling
|
1083
|
+
fail ArgumentError, "Missing the required parameter 'volume_id' when calling LabelsApi.datacenters_volumes_labels_find_by_key"
|
1084
1084
|
end
|
1085
1085
|
# verify the required parameter 'key' is set
|
1086
1086
|
if @api_client.config.client_side_validation && key.nil?
|
1087
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
1087
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_volumes_labels_find_by_key"
|
1088
1088
|
end
|
1089
1089
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1090
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1090
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_find_by_key, must be smaller than or equal to 10.'
|
1091
1091
|
end
|
1092
1092
|
|
1093
1093
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1094
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1094
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_find_by_key, must be greater than or equal to 0.'
|
1095
1095
|
end
|
1096
1096
|
|
1097
1097
|
# resource path
|
@@ -1121,7 +1121,7 @@ module Ionoscloud
|
|
1121
1121
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1122
1122
|
|
1123
1123
|
new_options = opts.merge(
|
1124
|
-
:operation => :"
|
1124
|
+
:operation => :"LabelsApi.datacenters_volumes_labels_find_by_key",
|
1125
1125
|
:header_params => header_params,
|
1126
1126
|
:query_params => query_params,
|
1127
1127
|
:form_params => form_params,
|
@@ -1132,21 +1132,19 @@ module Ionoscloud
|
|
1132
1132
|
|
1133
1133
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1134
1134
|
if @api_client.config.debugging
|
1135
|
-
@api_client.config.logger.debug "API called:
|
1135
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_volumes_labels_find_by_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1136
1136
|
end
|
1137
1137
|
return data, status_code, headers
|
1138
1138
|
end
|
1139
1139
|
|
1140
1140
|
# List all Volume Labels
|
1141
|
-
# You can retrieve a list of all labels associated with a volume
|
1141
|
+
# You can retrieve a list of all labels associated with a volume.
|
1142
1142
|
# @param datacenter_id [String] The unique ID of the Datacenter
|
1143
1143
|
# @param volume_id [String] The unique ID of the Volume
|
1144
1144
|
# @param [Hash] opts the optional parameters
|
1145
1145
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
|
1146
1146
|
# @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)
|
1147
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
|
-
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination) (default to 0)
|
1149
|
-
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination) (default to 1000)
|
1150
1148
|
# @return [LabelResources]
|
1151
1149
|
def datacenters_volumes_labels_get(datacenter_id, volume_id, opts = {})
|
1152
1150
|
data, _status_code, _headers = datacenters_volumes_labels_get_with_http_info(datacenter_id, volume_id, opts)
|
@@ -1154,46 +1152,32 @@ module Ionoscloud
|
|
1154
1152
|
end
|
1155
1153
|
|
1156
1154
|
# List all Volume Labels
|
1157
|
-
# You can retrieve a list of all labels associated with a volume
|
1155
|
+
# You can retrieve a list of all labels associated with a volume.
|
1158
1156
|
# @param datacenter_id [String] The unique ID of the Datacenter
|
1159
1157
|
# @param volume_id [String] The unique ID of the Volume
|
1160
1158
|
# @param [Hash] opts the optional parameters
|
1161
1159
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
1162
1160
|
# @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
|
1163
1161
|
# @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
|
1164
|
-
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
1165
|
-
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
1166
1162
|
# @return [Array<(LabelResources, Integer, Hash)>] LabelResources data, response status code and response headers
|
1167
1163
|
def datacenters_volumes_labels_get_with_http_info(datacenter_id, volume_id, opts = {})
|
1168
1164
|
if @api_client.config.debugging
|
1169
|
-
@api_client.config.logger.debug 'Calling API:
|
1165
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_volumes_labels_get ...'
|
1170
1166
|
end
|
1171
1167
|
# verify the required parameter 'datacenter_id' is set
|
1172
1168
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
1173
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
1169
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_volumes_labels_get"
|
1174
1170
|
end
|
1175
1171
|
# verify the required parameter 'volume_id' is set
|
1176
1172
|
if @api_client.config.client_side_validation && volume_id.nil?
|
1177
|
-
fail ArgumentError, "Missing the required parameter 'volume_id' when calling
|
1173
|
+
fail ArgumentError, "Missing the required parameter 'volume_id' when calling LabelsApi.datacenters_volumes_labels_get"
|
1178
1174
|
end
|
1179
1175
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1180
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1176
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_get, must be smaller than or equal to 10.'
|
1181
1177
|
end
|
1182
1178
|
|
1183
1179
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1184
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1185
|
-
end
|
1186
|
-
|
1187
|
-
if @api_client.config.client_side_validation && !opts[:'offset'].nil? && opts[:'offset'] < 0
|
1188
|
-
fail ArgumentError, 'invalid value for "opts[:"offset"]" when calling LabelApi.datacenters_volumes_labels_get, must be greater than or equal to 0.'
|
1189
|
-
end
|
1190
|
-
|
1191
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 10000
|
1192
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelApi.datacenters_volumes_labels_get, must be smaller than or equal to 10000.'
|
1193
|
-
end
|
1194
|
-
|
1195
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1196
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling LabelApi.datacenters_volumes_labels_get, must be greater than or equal to 1.'
|
1180
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_get, must be greater than or equal to 0.'
|
1197
1181
|
end
|
1198
1182
|
|
1199
1183
|
# resource path
|
@@ -1203,8 +1187,6 @@ module Ionoscloud
|
|
1203
1187
|
query_params = opts[:query_params] || {}
|
1204
1188
|
query_params[:'pretty'] = opts[:'pretty'] if !opts[:'pretty'].nil?
|
1205
1189
|
query_params[:'depth'] = opts[:'depth'] if !opts[:'depth'].nil?
|
1206
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
1207
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1208
1190
|
|
1209
1191
|
# header parameters
|
1210
1192
|
header_params = opts[:header_params] || {}
|
@@ -1225,7 +1207,7 @@ module Ionoscloud
|
|
1225
1207
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1226
1208
|
|
1227
1209
|
new_options = opts.merge(
|
1228
|
-
:operation => :"
|
1210
|
+
:operation => :"LabelsApi.datacenters_volumes_labels_get",
|
1229
1211
|
:header_params => header_params,
|
1230
1212
|
:query_params => query_params,
|
1231
1213
|
:form_params => form_params,
|
@@ -1236,7 +1218,7 @@ module Ionoscloud
|
|
1236
1218
|
|
1237
1219
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1238
1220
|
if @api_client.config.debugging
|
1239
|
-
@api_client.config.logger.debug "API called:
|
1221
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_volumes_labels_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1240
1222
|
end
|
1241
1223
|
return data, status_code, headers
|
1242
1224
|
end
|
@@ -1268,26 +1250,26 @@ module Ionoscloud
|
|
1268
1250
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
1269
1251
|
def datacenters_volumes_labels_post_with_http_info(datacenter_id, volume_id, label, opts = {})
|
1270
1252
|
if @api_client.config.debugging
|
1271
|
-
@api_client.config.logger.debug 'Calling API:
|
1253
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_volumes_labels_post ...'
|
1272
1254
|
end
|
1273
1255
|
# verify the required parameter 'datacenter_id' is set
|
1274
1256
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
1275
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
1257
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_volumes_labels_post"
|
1276
1258
|
end
|
1277
1259
|
# verify the required parameter 'volume_id' is set
|
1278
1260
|
if @api_client.config.client_side_validation && volume_id.nil?
|
1279
|
-
fail ArgumentError, "Missing the required parameter 'volume_id' when calling
|
1261
|
+
fail ArgumentError, "Missing the required parameter 'volume_id' when calling LabelsApi.datacenters_volumes_labels_post"
|
1280
1262
|
end
|
1281
1263
|
# verify the required parameter 'label' is set
|
1282
1264
|
if @api_client.config.client_side_validation && label.nil?
|
1283
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
1265
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.datacenters_volumes_labels_post"
|
1284
1266
|
end
|
1285
1267
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1286
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1268
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_post, must be smaller than or equal to 10.'
|
1287
1269
|
end
|
1288
1270
|
|
1289
1271
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1290
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1272
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_post, must be greater than or equal to 0.'
|
1291
1273
|
end
|
1292
1274
|
|
1293
1275
|
# resource path
|
@@ -1319,7 +1301,7 @@ module Ionoscloud
|
|
1319
1301
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1320
1302
|
|
1321
1303
|
new_options = opts.merge(
|
1322
|
-
:operation => :"
|
1304
|
+
:operation => :"LabelsApi.datacenters_volumes_labels_post",
|
1323
1305
|
:header_params => header_params,
|
1324
1306
|
:query_params => query_params,
|
1325
1307
|
:form_params => form_params,
|
@@ -1330,7 +1312,7 @@ module Ionoscloud
|
|
1330
1312
|
|
1331
1313
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1332
1314
|
if @api_client.config.debugging
|
1333
|
-
@api_client.config.logger.debug "API called:
|
1315
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_volumes_labels_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1334
1316
|
end
|
1335
1317
|
return data, status_code, headers
|
1336
1318
|
end
|
@@ -1364,30 +1346,30 @@ module Ionoscloud
|
|
1364
1346
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
1365
1347
|
def datacenters_volumes_labels_put_with_http_info(datacenter_id, volume_id, key, label, opts = {})
|
1366
1348
|
if @api_client.config.debugging
|
1367
|
-
@api_client.config.logger.debug 'Calling API:
|
1349
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.datacenters_volumes_labels_put ...'
|
1368
1350
|
end
|
1369
1351
|
# verify the required parameter 'datacenter_id' is set
|
1370
1352
|
if @api_client.config.client_side_validation && datacenter_id.nil?
|
1371
|
-
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling
|
1353
|
+
fail ArgumentError, "Missing the required parameter 'datacenter_id' when calling LabelsApi.datacenters_volumes_labels_put"
|
1372
1354
|
end
|
1373
1355
|
# verify the required parameter 'volume_id' is set
|
1374
1356
|
if @api_client.config.client_side_validation && volume_id.nil?
|
1375
|
-
fail ArgumentError, "Missing the required parameter 'volume_id' when calling
|
1357
|
+
fail ArgumentError, "Missing the required parameter 'volume_id' when calling LabelsApi.datacenters_volumes_labels_put"
|
1376
1358
|
end
|
1377
1359
|
# verify the required parameter 'key' is set
|
1378
1360
|
if @api_client.config.client_side_validation && key.nil?
|
1379
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
1361
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.datacenters_volumes_labels_put"
|
1380
1362
|
end
|
1381
1363
|
# verify the required parameter 'label' is set
|
1382
1364
|
if @api_client.config.client_side_validation && label.nil?
|
1383
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
1365
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.datacenters_volumes_labels_put"
|
1384
1366
|
end
|
1385
1367
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1386
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1368
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_put, must be smaller than or equal to 10.'
|
1387
1369
|
end
|
1388
1370
|
|
1389
1371
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1390
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1372
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.datacenters_volumes_labels_put, must be greater than or equal to 0.'
|
1391
1373
|
end
|
1392
1374
|
|
1393
1375
|
# resource path
|
@@ -1419,7 +1401,7 @@ module Ionoscloud
|
|
1419
1401
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1420
1402
|
|
1421
1403
|
new_options = opts.merge(
|
1422
|
-
:operation => :"
|
1404
|
+
:operation => :"LabelsApi.datacenters_volumes_labels_put",
|
1423
1405
|
:header_params => header_params,
|
1424
1406
|
:query_params => query_params,
|
1425
1407
|
:form_params => form_params,
|
@@ -1430,7 +1412,7 @@ module Ionoscloud
|
|
1430
1412
|
|
1431
1413
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1432
1414
|
if @api_client.config.debugging
|
1433
|
-
@api_client.config.logger.debug "API called:
|
1415
|
+
@api_client.config.logger.debug "API called: LabelsApi#datacenters_volumes_labels_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1434
1416
|
end
|
1435
1417
|
return data, status_code, headers
|
1436
1418
|
end
|
@@ -1460,22 +1442,22 @@ module Ionoscloud
|
|
1460
1442
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
1461
1443
|
def ipblocks_labels_delete_with_http_info(ipblock_id, key, opts = {})
|
1462
1444
|
if @api_client.config.debugging
|
1463
|
-
@api_client.config.logger.debug 'Calling API:
|
1445
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.ipblocks_labels_delete ...'
|
1464
1446
|
end
|
1465
1447
|
# verify the required parameter 'ipblock_id' is set
|
1466
1448
|
if @api_client.config.client_side_validation && ipblock_id.nil?
|
1467
|
-
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling
|
1449
|
+
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling LabelsApi.ipblocks_labels_delete"
|
1468
1450
|
end
|
1469
1451
|
# verify the required parameter 'key' is set
|
1470
1452
|
if @api_client.config.client_side_validation && key.nil?
|
1471
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
1453
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.ipblocks_labels_delete"
|
1472
1454
|
end
|
1473
1455
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1474
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1456
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_delete, must be smaller than or equal to 10.'
|
1475
1457
|
end
|
1476
1458
|
|
1477
1459
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1478
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1460
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_delete, must be greater than or equal to 0.'
|
1479
1461
|
end
|
1480
1462
|
|
1481
1463
|
# resource path
|
@@ -1505,7 +1487,7 @@ module Ionoscloud
|
|
1505
1487
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1506
1488
|
|
1507
1489
|
new_options = opts.merge(
|
1508
|
-
:operation => :"
|
1490
|
+
:operation => :"LabelsApi.ipblocks_labels_delete",
|
1509
1491
|
:header_params => header_params,
|
1510
1492
|
:query_params => query_params,
|
1511
1493
|
:form_params => form_params,
|
@@ -1516,7 +1498,7 @@ module Ionoscloud
|
|
1516
1498
|
|
1517
1499
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1518
1500
|
if @api_client.config.debugging
|
1519
|
-
@api_client.config.logger.debug "API called:
|
1501
|
+
@api_client.config.logger.debug "API called: LabelsApi#ipblocks_labels_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1520
1502
|
end
|
1521
1503
|
return data, status_code, headers
|
1522
1504
|
end
|
@@ -1546,22 +1528,22 @@ module Ionoscloud
|
|
1546
1528
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
1547
1529
|
def ipblocks_labels_find_by_key_with_http_info(ipblock_id, key, opts = {})
|
1548
1530
|
if @api_client.config.debugging
|
1549
|
-
@api_client.config.logger.debug 'Calling API:
|
1531
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.ipblocks_labels_find_by_key ...'
|
1550
1532
|
end
|
1551
1533
|
# verify the required parameter 'ipblock_id' is set
|
1552
1534
|
if @api_client.config.client_side_validation && ipblock_id.nil?
|
1553
|
-
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling
|
1535
|
+
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling LabelsApi.ipblocks_labels_find_by_key"
|
1554
1536
|
end
|
1555
1537
|
# verify the required parameter 'key' is set
|
1556
1538
|
if @api_client.config.client_side_validation && key.nil?
|
1557
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
1539
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.ipblocks_labels_find_by_key"
|
1558
1540
|
end
|
1559
1541
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1560
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1542
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_find_by_key, must be smaller than or equal to 10.'
|
1561
1543
|
end
|
1562
1544
|
|
1563
1545
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1564
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1546
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_find_by_key, must be greater than or equal to 0.'
|
1565
1547
|
end
|
1566
1548
|
|
1567
1549
|
# resource path
|
@@ -1591,7 +1573,7 @@ module Ionoscloud
|
|
1591
1573
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1592
1574
|
|
1593
1575
|
new_options = opts.merge(
|
1594
|
-
:operation => :"
|
1576
|
+
:operation => :"LabelsApi.ipblocks_labels_find_by_key",
|
1595
1577
|
:header_params => header_params,
|
1596
1578
|
:query_params => query_params,
|
1597
1579
|
:form_params => form_params,
|
@@ -1602,13 +1584,13 @@ module Ionoscloud
|
|
1602
1584
|
|
1603
1585
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1604
1586
|
if @api_client.config.debugging
|
1605
|
-
@api_client.config.logger.debug "API called:
|
1587
|
+
@api_client.config.logger.debug "API called: LabelsApi#ipblocks_labels_find_by_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1606
1588
|
end
|
1607
1589
|
return data, status_code, headers
|
1608
1590
|
end
|
1609
1591
|
|
1610
1592
|
# List all Ip Block Labels
|
1611
|
-
# You can retrieve a list of all labels associated with a IP Block
|
1593
|
+
# You can retrieve a list of all labels associated with a IP Block.
|
1612
1594
|
# @param ipblock_id [String] The unique ID of the Ip Block
|
1613
1595
|
# @param [Hash] opts the optional parameters
|
1614
1596
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
|
@@ -1621,7 +1603,7 @@ module Ionoscloud
|
|
1621
1603
|
end
|
1622
1604
|
|
1623
1605
|
# List all Ip Block Labels
|
1624
|
-
# You can retrieve a list of all labels associated with a IP Block
|
1606
|
+
# You can retrieve a list of all labels associated with a IP Block.
|
1625
1607
|
# @param ipblock_id [String] The unique ID of the Ip Block
|
1626
1608
|
# @param [Hash] opts the optional parameters
|
1627
1609
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
@@ -1630,18 +1612,18 @@ module Ionoscloud
|
|
1630
1612
|
# @return [Array<(LabelResources, Integer, Hash)>] LabelResources data, response status code and response headers
|
1631
1613
|
def ipblocks_labels_get_with_http_info(ipblock_id, opts = {})
|
1632
1614
|
if @api_client.config.debugging
|
1633
|
-
@api_client.config.logger.debug 'Calling API:
|
1615
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.ipblocks_labels_get ...'
|
1634
1616
|
end
|
1635
1617
|
# verify the required parameter 'ipblock_id' is set
|
1636
1618
|
if @api_client.config.client_side_validation && ipblock_id.nil?
|
1637
|
-
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling
|
1619
|
+
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling LabelsApi.ipblocks_labels_get"
|
1638
1620
|
end
|
1639
1621
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1640
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1622
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_get, must be smaller than or equal to 10.'
|
1641
1623
|
end
|
1642
1624
|
|
1643
1625
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1644
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1626
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_get, must be greater than or equal to 0.'
|
1645
1627
|
end
|
1646
1628
|
|
1647
1629
|
# resource path
|
@@ -1671,7 +1653,7 @@ module Ionoscloud
|
|
1671
1653
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1672
1654
|
|
1673
1655
|
new_options = opts.merge(
|
1674
|
-
:operation => :"
|
1656
|
+
:operation => :"LabelsApi.ipblocks_labels_get",
|
1675
1657
|
:header_params => header_params,
|
1676
1658
|
:query_params => query_params,
|
1677
1659
|
:form_params => form_params,
|
@@ -1682,7 +1664,7 @@ module Ionoscloud
|
|
1682
1664
|
|
1683
1665
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1684
1666
|
if @api_client.config.debugging
|
1685
|
-
@api_client.config.logger.debug "API called:
|
1667
|
+
@api_client.config.logger.debug "API called: LabelsApi#ipblocks_labels_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1686
1668
|
end
|
1687
1669
|
return data, status_code, headers
|
1688
1670
|
end
|
@@ -1712,22 +1694,22 @@ module Ionoscloud
|
|
1712
1694
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
1713
1695
|
def ipblocks_labels_post_with_http_info(ipblock_id, label, opts = {})
|
1714
1696
|
if @api_client.config.debugging
|
1715
|
-
@api_client.config.logger.debug 'Calling API:
|
1697
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.ipblocks_labels_post ...'
|
1716
1698
|
end
|
1717
1699
|
# verify the required parameter 'ipblock_id' is set
|
1718
1700
|
if @api_client.config.client_side_validation && ipblock_id.nil?
|
1719
|
-
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling
|
1701
|
+
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling LabelsApi.ipblocks_labels_post"
|
1720
1702
|
end
|
1721
1703
|
# verify the required parameter 'label' is set
|
1722
1704
|
if @api_client.config.client_side_validation && label.nil?
|
1723
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
1705
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.ipblocks_labels_post"
|
1724
1706
|
end
|
1725
1707
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1726
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1708
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_post, must be smaller than or equal to 10.'
|
1727
1709
|
end
|
1728
1710
|
|
1729
1711
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1730
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1712
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_post, must be greater than or equal to 0.'
|
1731
1713
|
end
|
1732
1714
|
|
1733
1715
|
# resource path
|
@@ -1759,7 +1741,7 @@ module Ionoscloud
|
|
1759
1741
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1760
1742
|
|
1761
1743
|
new_options = opts.merge(
|
1762
|
-
:operation => :"
|
1744
|
+
:operation => :"LabelsApi.ipblocks_labels_post",
|
1763
1745
|
:header_params => header_params,
|
1764
1746
|
:query_params => query_params,
|
1765
1747
|
:form_params => form_params,
|
@@ -1770,7 +1752,7 @@ module Ionoscloud
|
|
1770
1752
|
|
1771
1753
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1772
1754
|
if @api_client.config.debugging
|
1773
|
-
@api_client.config.logger.debug "API called:
|
1755
|
+
@api_client.config.logger.debug "API called: LabelsApi#ipblocks_labels_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1774
1756
|
end
|
1775
1757
|
return data, status_code, headers
|
1776
1758
|
end
|
@@ -1802,26 +1784,26 @@ module Ionoscloud
|
|
1802
1784
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
1803
1785
|
def ipblocks_labels_put_with_http_info(ipblock_id, key, label, opts = {})
|
1804
1786
|
if @api_client.config.debugging
|
1805
|
-
@api_client.config.logger.debug 'Calling API:
|
1787
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.ipblocks_labels_put ...'
|
1806
1788
|
end
|
1807
1789
|
# verify the required parameter 'ipblock_id' is set
|
1808
1790
|
if @api_client.config.client_side_validation && ipblock_id.nil?
|
1809
|
-
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling
|
1791
|
+
fail ArgumentError, "Missing the required parameter 'ipblock_id' when calling LabelsApi.ipblocks_labels_put"
|
1810
1792
|
end
|
1811
1793
|
# verify the required parameter 'key' is set
|
1812
1794
|
if @api_client.config.client_side_validation && key.nil?
|
1813
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
1795
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.ipblocks_labels_put"
|
1814
1796
|
end
|
1815
1797
|
# verify the required parameter 'label' is set
|
1816
1798
|
if @api_client.config.client_side_validation && label.nil?
|
1817
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
1799
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.ipblocks_labels_put"
|
1818
1800
|
end
|
1819
1801
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1820
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1802
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_put, must be smaller than or equal to 10.'
|
1821
1803
|
end
|
1822
1804
|
|
1823
1805
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1824
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1806
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.ipblocks_labels_put, must be greater than or equal to 0.'
|
1825
1807
|
end
|
1826
1808
|
|
1827
1809
|
# resource path
|
@@ -1853,7 +1835,7 @@ module Ionoscloud
|
|
1853
1835
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1854
1836
|
|
1855
1837
|
new_options = opts.merge(
|
1856
|
-
:operation => :"
|
1838
|
+
:operation => :"LabelsApi.ipblocks_labels_put",
|
1857
1839
|
:header_params => header_params,
|
1858
1840
|
:query_params => query_params,
|
1859
1841
|
:form_params => form_params,
|
@@ -1864,7 +1846,7 @@ module Ionoscloud
|
|
1864
1846
|
|
1865
1847
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1866
1848
|
if @api_client.config.debugging
|
1867
|
-
@api_client.config.logger.debug "API called:
|
1849
|
+
@api_client.config.logger.debug "API called: LabelsApi#ipblocks_labels_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1868
1850
|
end
|
1869
1851
|
return data, status_code, headers
|
1870
1852
|
end
|
@@ -1892,18 +1874,18 @@ module Ionoscloud
|
|
1892
1874
|
# @return [Array<(Label, Integer, Hash)>] Label data, response status code and response headers
|
1893
1875
|
def labels_find_by_urn_with_http_info(labelurn, opts = {})
|
1894
1876
|
if @api_client.config.debugging
|
1895
|
-
@api_client.config.logger.debug 'Calling API:
|
1877
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.labels_find_by_urn ...'
|
1896
1878
|
end
|
1897
1879
|
# verify the required parameter 'labelurn' is set
|
1898
1880
|
if @api_client.config.client_side_validation && labelurn.nil?
|
1899
|
-
fail ArgumentError, "Missing the required parameter 'labelurn' when calling
|
1881
|
+
fail ArgumentError, "Missing the required parameter 'labelurn' when calling LabelsApi.labels_find_by_urn"
|
1900
1882
|
end
|
1901
1883
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1902
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1884
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.labels_find_by_urn, must be smaller than or equal to 10.'
|
1903
1885
|
end
|
1904
1886
|
|
1905
1887
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1906
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1888
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.labels_find_by_urn, must be greater than or equal to 0.'
|
1907
1889
|
end
|
1908
1890
|
|
1909
1891
|
# resource path
|
@@ -1933,7 +1915,7 @@ module Ionoscloud
|
|
1933
1915
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
1934
1916
|
|
1935
1917
|
new_options = opts.merge(
|
1936
|
-
:operation => :"
|
1918
|
+
:operation => :"LabelsApi.labels_find_by_urn",
|
1937
1919
|
:header_params => header_params,
|
1938
1920
|
:query_params => query_params,
|
1939
1921
|
:form_params => form_params,
|
@@ -1944,7 +1926,7 @@ module Ionoscloud
|
|
1944
1926
|
|
1945
1927
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1946
1928
|
if @api_client.config.debugging
|
1947
|
-
@api_client.config.logger.debug "API called:
|
1929
|
+
@api_client.config.logger.debug "API called: LabelsApi#labels_find_by_urn\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1948
1930
|
end
|
1949
1931
|
return data, status_code, headers
|
1950
1932
|
end
|
@@ -1970,14 +1952,14 @@ module Ionoscloud
|
|
1970
1952
|
# @return [Array<(Labels, Integer, Hash)>] Labels data, response status code and response headers
|
1971
1953
|
def labels_get_with_http_info(opts = {})
|
1972
1954
|
if @api_client.config.debugging
|
1973
|
-
@api_client.config.logger.debug 'Calling API:
|
1955
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.labels_get ...'
|
1974
1956
|
end
|
1975
1957
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
1976
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1958
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.labels_get, must be smaller than or equal to 10.'
|
1977
1959
|
end
|
1978
1960
|
|
1979
1961
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
1980
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
1962
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.labels_get, must be greater than or equal to 0.'
|
1981
1963
|
end
|
1982
1964
|
|
1983
1965
|
# resource path
|
@@ -2007,7 +1989,7 @@ module Ionoscloud
|
|
2007
1989
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
2008
1990
|
|
2009
1991
|
new_options = opts.merge(
|
2010
|
-
:operation => :"
|
1992
|
+
:operation => :"LabelsApi.labels_get",
|
2011
1993
|
:header_params => header_params,
|
2012
1994
|
:query_params => query_params,
|
2013
1995
|
:form_params => form_params,
|
@@ -2018,7 +2000,7 @@ module Ionoscloud
|
|
2018
2000
|
|
2019
2001
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2020
2002
|
if @api_client.config.debugging
|
2021
|
-
@api_client.config.logger.debug "API called:
|
2003
|
+
@api_client.config.logger.debug "API called: LabelsApi#labels_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2022
2004
|
end
|
2023
2005
|
return data, status_code, headers
|
2024
2006
|
end
|
@@ -2048,22 +2030,22 @@ module Ionoscloud
|
|
2048
2030
|
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
2049
2031
|
def snapshots_labels_delete_with_http_info(snapshot_id, key, opts = {})
|
2050
2032
|
if @api_client.config.debugging
|
2051
|
-
@api_client.config.logger.debug 'Calling API:
|
2033
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.snapshots_labels_delete ...'
|
2052
2034
|
end
|
2053
2035
|
# verify the required parameter 'snapshot_id' is set
|
2054
2036
|
if @api_client.config.client_side_validation && snapshot_id.nil?
|
2055
|
-
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling
|
2037
|
+
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling LabelsApi.snapshots_labels_delete"
|
2056
2038
|
end
|
2057
2039
|
# verify the required parameter 'key' is set
|
2058
2040
|
if @api_client.config.client_side_validation && key.nil?
|
2059
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
2041
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.snapshots_labels_delete"
|
2060
2042
|
end
|
2061
2043
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
2062
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2044
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_delete, must be smaller than or equal to 10.'
|
2063
2045
|
end
|
2064
2046
|
|
2065
2047
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
2066
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2048
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_delete, must be greater than or equal to 0.'
|
2067
2049
|
end
|
2068
2050
|
|
2069
2051
|
# resource path
|
@@ -2093,7 +2075,7 @@ module Ionoscloud
|
|
2093
2075
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
2094
2076
|
|
2095
2077
|
new_options = opts.merge(
|
2096
|
-
:operation => :"
|
2078
|
+
:operation => :"LabelsApi.snapshots_labels_delete",
|
2097
2079
|
:header_params => header_params,
|
2098
2080
|
:query_params => query_params,
|
2099
2081
|
:form_params => form_params,
|
@@ -2104,7 +2086,7 @@ module Ionoscloud
|
|
2104
2086
|
|
2105
2087
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
2106
2088
|
if @api_client.config.debugging
|
2107
|
-
@api_client.config.logger.debug "API called:
|
2089
|
+
@api_client.config.logger.debug "API called: LabelsApi#snapshots_labels_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2108
2090
|
end
|
2109
2091
|
return data, status_code, headers
|
2110
2092
|
end
|
@@ -2134,22 +2116,22 @@ module Ionoscloud
|
|
2134
2116
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
2135
2117
|
def snapshots_labels_find_by_key_with_http_info(snapshot_id, key, opts = {})
|
2136
2118
|
if @api_client.config.debugging
|
2137
|
-
@api_client.config.logger.debug 'Calling API:
|
2119
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.snapshots_labels_find_by_key ...'
|
2138
2120
|
end
|
2139
2121
|
# verify the required parameter 'snapshot_id' is set
|
2140
2122
|
if @api_client.config.client_side_validation && snapshot_id.nil?
|
2141
|
-
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling
|
2123
|
+
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling LabelsApi.snapshots_labels_find_by_key"
|
2142
2124
|
end
|
2143
2125
|
# verify the required parameter 'key' is set
|
2144
2126
|
if @api_client.config.client_side_validation && key.nil?
|
2145
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
2127
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.snapshots_labels_find_by_key"
|
2146
2128
|
end
|
2147
2129
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
2148
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2130
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_find_by_key, must be smaller than or equal to 10.'
|
2149
2131
|
end
|
2150
2132
|
|
2151
2133
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
2152
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2134
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_find_by_key, must be greater than or equal to 0.'
|
2153
2135
|
end
|
2154
2136
|
|
2155
2137
|
# resource path
|
@@ -2179,7 +2161,7 @@ module Ionoscloud
|
|
2179
2161
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
2180
2162
|
|
2181
2163
|
new_options = opts.merge(
|
2182
|
-
:operation => :"
|
2164
|
+
:operation => :"LabelsApi.snapshots_labels_find_by_key",
|
2183
2165
|
:header_params => header_params,
|
2184
2166
|
:query_params => query_params,
|
2185
2167
|
:form_params => form_params,
|
@@ -2190,13 +2172,13 @@ module Ionoscloud
|
|
2190
2172
|
|
2191
2173
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2192
2174
|
if @api_client.config.debugging
|
2193
|
-
@api_client.config.logger.debug "API called:
|
2175
|
+
@api_client.config.logger.debug "API called: LabelsApi#snapshots_labels_find_by_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2194
2176
|
end
|
2195
2177
|
return data, status_code, headers
|
2196
2178
|
end
|
2197
2179
|
|
2198
2180
|
# List all Snapshot Labels
|
2199
|
-
# You can retrieve a list of all labels associated with a snapshot
|
2181
|
+
# You can retrieve a list of all labels associated with a snapshot.
|
2200
2182
|
# @param snapshot_id [String] The unique ID of the Snapshot
|
2201
2183
|
# @param [Hash] opts the optional parameters
|
2202
2184
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines) (default to true)
|
@@ -2209,7 +2191,7 @@ module Ionoscloud
|
|
2209
2191
|
end
|
2210
2192
|
|
2211
2193
|
# List all Snapshot Labels
|
2212
|
-
# You can retrieve a list of all labels associated with a snapshot
|
2194
|
+
# You can retrieve a list of all labels associated with a snapshot.
|
2213
2195
|
# @param snapshot_id [String] The unique ID of the Snapshot
|
2214
2196
|
# @param [Hash] opts the optional parameters
|
2215
2197
|
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
@@ -2218,18 +2200,18 @@ module Ionoscloud
|
|
2218
2200
|
# @return [Array<(LabelResources, Integer, Hash)>] LabelResources data, response status code and response headers
|
2219
2201
|
def snapshots_labels_get_with_http_info(snapshot_id, opts = {})
|
2220
2202
|
if @api_client.config.debugging
|
2221
|
-
@api_client.config.logger.debug 'Calling API:
|
2203
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.snapshots_labels_get ...'
|
2222
2204
|
end
|
2223
2205
|
# verify the required parameter 'snapshot_id' is set
|
2224
2206
|
if @api_client.config.client_side_validation && snapshot_id.nil?
|
2225
|
-
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling
|
2207
|
+
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling LabelsApi.snapshots_labels_get"
|
2226
2208
|
end
|
2227
2209
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
2228
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2210
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_get, must be smaller than or equal to 10.'
|
2229
2211
|
end
|
2230
2212
|
|
2231
2213
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
2232
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2214
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_get, must be greater than or equal to 0.'
|
2233
2215
|
end
|
2234
2216
|
|
2235
2217
|
# resource path
|
@@ -2259,7 +2241,7 @@ module Ionoscloud
|
|
2259
2241
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
2260
2242
|
|
2261
2243
|
new_options = opts.merge(
|
2262
|
-
:operation => :"
|
2244
|
+
:operation => :"LabelsApi.snapshots_labels_get",
|
2263
2245
|
:header_params => header_params,
|
2264
2246
|
:query_params => query_params,
|
2265
2247
|
:form_params => form_params,
|
@@ -2270,7 +2252,7 @@ module Ionoscloud
|
|
2270
2252
|
|
2271
2253
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2272
2254
|
if @api_client.config.debugging
|
2273
|
-
@api_client.config.logger.debug "API called:
|
2255
|
+
@api_client.config.logger.debug "API called: LabelsApi#snapshots_labels_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2274
2256
|
end
|
2275
2257
|
return data, status_code, headers
|
2276
2258
|
end
|
@@ -2300,22 +2282,22 @@ module Ionoscloud
|
|
2300
2282
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
2301
2283
|
def snapshots_labels_post_with_http_info(snapshot_id, label, opts = {})
|
2302
2284
|
if @api_client.config.debugging
|
2303
|
-
@api_client.config.logger.debug 'Calling API:
|
2285
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.snapshots_labels_post ...'
|
2304
2286
|
end
|
2305
2287
|
# verify the required parameter 'snapshot_id' is set
|
2306
2288
|
if @api_client.config.client_side_validation && snapshot_id.nil?
|
2307
|
-
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling
|
2289
|
+
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling LabelsApi.snapshots_labels_post"
|
2308
2290
|
end
|
2309
2291
|
# verify the required parameter 'label' is set
|
2310
2292
|
if @api_client.config.client_side_validation && label.nil?
|
2311
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
2293
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.snapshots_labels_post"
|
2312
2294
|
end
|
2313
2295
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
2314
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2296
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_post, must be smaller than or equal to 10.'
|
2315
2297
|
end
|
2316
2298
|
|
2317
2299
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
2318
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2300
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_post, must be greater than or equal to 0.'
|
2319
2301
|
end
|
2320
2302
|
|
2321
2303
|
# resource path
|
@@ -2347,7 +2329,7 @@ module Ionoscloud
|
|
2347
2329
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
2348
2330
|
|
2349
2331
|
new_options = opts.merge(
|
2350
|
-
:operation => :"
|
2332
|
+
:operation => :"LabelsApi.snapshots_labels_post",
|
2351
2333
|
:header_params => header_params,
|
2352
2334
|
:query_params => query_params,
|
2353
2335
|
:form_params => form_params,
|
@@ -2358,7 +2340,7 @@ module Ionoscloud
|
|
2358
2340
|
|
2359
2341
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2360
2342
|
if @api_client.config.debugging
|
2361
|
-
@api_client.config.logger.debug "API called:
|
2343
|
+
@api_client.config.logger.debug "API called: LabelsApi#snapshots_labels_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2362
2344
|
end
|
2363
2345
|
return data, status_code, headers
|
2364
2346
|
end
|
@@ -2390,26 +2372,26 @@ module Ionoscloud
|
|
2390
2372
|
# @return [Array<(LabelResource, Integer, Hash)>] LabelResource data, response status code and response headers
|
2391
2373
|
def snapshots_labels_put_with_http_info(snapshot_id, key, label, opts = {})
|
2392
2374
|
if @api_client.config.debugging
|
2393
|
-
@api_client.config.logger.debug 'Calling API:
|
2375
|
+
@api_client.config.logger.debug 'Calling API: LabelsApi.snapshots_labels_put ...'
|
2394
2376
|
end
|
2395
2377
|
# verify the required parameter 'snapshot_id' is set
|
2396
2378
|
if @api_client.config.client_side_validation && snapshot_id.nil?
|
2397
|
-
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling
|
2379
|
+
fail ArgumentError, "Missing the required parameter 'snapshot_id' when calling LabelsApi.snapshots_labels_put"
|
2398
2380
|
end
|
2399
2381
|
# verify the required parameter 'key' is set
|
2400
2382
|
if @api_client.config.client_side_validation && key.nil?
|
2401
|
-
fail ArgumentError, "Missing the required parameter 'key' when calling
|
2383
|
+
fail ArgumentError, "Missing the required parameter 'key' when calling LabelsApi.snapshots_labels_put"
|
2402
2384
|
end
|
2403
2385
|
# verify the required parameter 'label' is set
|
2404
2386
|
if @api_client.config.client_side_validation && label.nil?
|
2405
|
-
fail ArgumentError, "Missing the required parameter 'label' when calling
|
2387
|
+
fail ArgumentError, "Missing the required parameter 'label' when calling LabelsApi.snapshots_labels_put"
|
2406
2388
|
end
|
2407
2389
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] > 10
|
2408
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2390
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_put, must be smaller than or equal to 10.'
|
2409
2391
|
end
|
2410
2392
|
|
2411
2393
|
if @api_client.config.client_side_validation && !opts[:'depth'].nil? && opts[:'depth'] < 0
|
2412
|
-
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling
|
2394
|
+
fail ArgumentError, 'invalid value for "opts[:"depth"]" when calling LabelsApi.snapshots_labels_put, must be greater than or equal to 0.'
|
2413
2395
|
end
|
2414
2396
|
|
2415
2397
|
# resource path
|
@@ -2441,7 +2423,7 @@ module Ionoscloud
|
|
2441
2423
|
auth_names = opts[:debug_auth_names] || ['Basic Authentication', 'Token Authentication']
|
2442
2424
|
|
2443
2425
|
new_options = opts.merge(
|
2444
|
-
:operation => :"
|
2426
|
+
:operation => :"LabelsApi.snapshots_labels_put",
|
2445
2427
|
:header_params => header_params,
|
2446
2428
|
:query_params => query_params,
|
2447
2429
|
:form_params => form_params,
|
@@ -2452,7 +2434,7 @@ module Ionoscloud
|
|
2452
2434
|
|
2453
2435
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2454
2436
|
if @api_client.config.debugging
|
2455
|
-
@api_client.config.logger.debug "API called:
|
2437
|
+
@api_client.config.logger.debug "API called: LabelsApi#snapshots_labels_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2456
2438
|
end
|
2457
2439
|
return data, status_code, headers
|
2458
2440
|
end
|