ionoscloud 5.0.0.beta.1 → 5.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -0
- data/LICENSE +190 -0
- data/README.md +18 -8
- data/docs/README.md +111 -0
- data/docs/api/BackupUnitApi.md +595 -0
- data/docs/api/ContractApi.md +89 -0
- data/docs/api/DataCenterApi.md +517 -0
- data/docs/api/DefaultApi.md +89 -0
- data/docs/api/IPBlocksApi.md +517 -0
- data/docs/api/ImageApi.md +429 -0
- data/docs/api/KubernetesApi.md +1513 -0
- data/docs/api/LabelApi.md +2355 -0
- data/docs/api/LanApi.md +795 -0
- data/docs/api/LoadBalancerApi.md +883 -0
- data/docs/api/LocationApi.md +259 -0
- data/docs/api/NicApi.md +1087 -0
- data/docs/api/PrivateCrossConnectApi.md +427 -0
- data/docs/api/RequestApi.md +283 -0
- data/docs/api/ServerApi.md +1573 -0
- data/docs/api/SnapshotApi.md +429 -0
- data/docs/api/UserManagementApi.md +2551 -0
- data/docs/api/VolumeApi.md +711 -0
- data/docs/models/AttachedVolumes.md +30 -0
- data/docs/models/BackupUnit.md +26 -0
- data/docs/models/BackupUnitProperties.md +22 -0
- data/docs/models/BackupUnitSSO.md +18 -0
- data/docs/models/BackupUnits.md +24 -0
- data/docs/models/BalancedNics.md +30 -0
- data/docs/models/Cdroms.md +30 -0
- data/docs/models/ConnectableDatacenter.md +22 -0
- data/docs/models/Contract.md +20 -0
- data/docs/models/ContractProperties.md +26 -0
- data/docs/models/DataCenterEntities.md +24 -0
- data/docs/models/Datacenter.md +28 -0
- data/docs/models/DatacenterElementMetadata.md +32 -0
- data/docs/models/DatacenterProperties.md +28 -0
- data/docs/models/Datacenters.md +30 -0
- data/docs/models/Error.md +20 -0
- data/docs/models/ErrorMessage.md +20 -0
- data/docs/models/FirewallRule.md +26 -0
- data/docs/models/FirewallRules.md +30 -0
- data/docs/models/FirewallruleProperties.md +34 -0
- data/docs/models/Group.md +26 -0
- data/docs/models/GroupEntities.md +20 -0
- data/docs/models/GroupMembers.md +24 -0
- data/docs/models/GroupProperties.md +36 -0
- data/docs/models/GroupShare.md +24 -0
- data/docs/models/GroupShareProperties.md +20 -0
- data/docs/models/GroupShares.md +24 -0
- data/docs/models/GroupUsers.md +24 -0
- data/docs/models/Groups.md +24 -0
- data/docs/models/IPFailover.md +20 -0
- data/docs/models/Image.md +26 -0
- data/docs/models/ImageProperties.md +54 -0
- data/docs/models/Images.md +24 -0
- data/docs/models/Info.md +22 -0
- data/docs/models/IpBlock.md +26 -0
- data/docs/models/IpBlockProperties.md +26 -0
- data/docs/models/IpBlocks.md +30 -0
- data/docs/models/IpConsumer.md +34 -0
- data/docs/models/KubernetesAutoScaling.md +20 -0
- data/docs/models/KubernetesCluster.md +28 -0
- data/docs/models/KubernetesClusterEntities.md +18 -0
- data/docs/models/KubernetesClusterForPost.md +28 -0
- data/docs/models/KubernetesClusterForPut.md +28 -0
- data/docs/models/KubernetesClusterProperties.md +32 -0
- data/docs/models/KubernetesClusterPropertiesForPost.md +28 -0
- data/docs/models/KubernetesClusterPropertiesForPut.md +26 -0
- data/docs/models/KubernetesClusters.md +24 -0
- data/docs/models/KubernetesConfig.md +24 -0
- data/docs/models/KubernetesConfigProperties.md +18 -0
- data/docs/models/KubernetesMaintenanceWindow.md +20 -0
- data/docs/models/KubernetesNode.md +26 -0
- data/docs/models/KubernetesNodeMetadata.md +26 -0
- data/docs/models/KubernetesNodePool.md +26 -0
- data/docs/models/KubernetesNodePoolForPost.md +26 -0
- data/docs/models/KubernetesNodePoolForPut.md +26 -0
- data/docs/models/KubernetesNodePoolLan.md +18 -0
- data/docs/models/KubernetesNodePoolProperties.md +52 -0
- data/docs/models/KubernetesNodePoolPropertiesForPost.md +50 -0
- data/docs/models/KubernetesNodePoolPropertiesForPut.md +34 -0
- data/docs/models/KubernetesNodePools.md +24 -0
- data/docs/models/KubernetesNodeProperties.md +24 -0
- data/docs/models/KubernetesNodes.md +24 -0
- data/docs/models/Label.md +26 -0
- data/docs/models/LabelProperties.md +26 -0
- data/docs/models/LabelResource.md +26 -0
- data/docs/models/LabelResourceProperties.md +20 -0
- data/docs/models/LabelResources.md +30 -0
- data/docs/models/Labels.md +24 -0
- data/docs/models/Lan.md +28 -0
- data/docs/models/LanEntities.md +18 -0
- data/docs/models/LanNics.md +30 -0
- data/docs/models/LanPost.md +28 -0
- data/docs/models/LanProperties.md +24 -0
- data/docs/models/LanPropertiesPost.md +24 -0
- data/docs/models/Lans.md +30 -0
- data/docs/models/Loadbalancer.md +28 -0
- data/docs/models/LoadbalancerEntities.md +18 -0
- data/docs/models/LoadbalancerProperties.md +22 -0
- data/docs/models/Loadbalancers.md +30 -0
- data/docs/models/Location.md +26 -0
- data/docs/models/LocationProperties.md +22 -0
- data/docs/models/Locations.md +24 -0
- data/docs/models/Nic.md +28 -0
- data/docs/models/NicEntities.md +18 -0
- data/docs/models/NicProperties.md +30 -0
- data/docs/models/Nics.md +30 -0
- data/docs/models/NoStateMetaData.md +30 -0
- data/docs/models/PaginationLinks.md +22 -0
- data/docs/models/Peer.md +26 -0
- data/docs/models/PrivateCrossConnect.md +26 -0
- data/docs/models/PrivateCrossConnectProperties.md +24 -0
- data/docs/models/PrivateCrossConnects.md +24 -0
- data/docs/models/Request.md +26 -0
- data/docs/models/RequestMetadata.md +24 -0
- data/docs/models/RequestProperties.md +24 -0
- data/docs/models/RequestStatus.md +24 -0
- data/docs/models/RequestStatusMetadata.md +24 -0
- data/docs/models/RequestTarget.md +20 -0
- data/docs/models/Requests.md +30 -0
- data/docs/models/Resource.md +28 -0
- data/docs/models/ResourceEntities.md +18 -0
- data/docs/models/ResourceGroups.md +24 -0
- data/docs/models/ResourceLimits.md +50 -0
- data/docs/models/ResourceProperties.md +20 -0
- data/docs/models/ResourceReference.md +22 -0
- data/docs/models/Resources.md +24 -0
- data/docs/models/ResourcesUsers.md +24 -0
- data/docs/models/S3Bucket.md +18 -0
- data/docs/models/S3Key.md +26 -0
- data/docs/models/S3KeyMetadata.md +20 -0
- data/docs/models/S3KeyProperties.md +20 -0
- data/docs/models/S3Keys.md +24 -0
- data/docs/models/S3ObjectStorageSSO.md +18 -0
- data/docs/models/Server.md +28 -0
- data/docs/models/ServerEntities.md +22 -0
- data/docs/models/ServerProperties.md +32 -0
- data/docs/models/Servers.md +30 -0
- data/docs/models/Snapshot.md +26 -0
- data/docs/models/SnapshotProperties.md +48 -0
- data/docs/models/Snapshots.md +24 -0
- data/docs/models/Type.md +15 -0
- data/docs/models/User.md +28 -0
- data/docs/models/UserMetadata.md +22 -0
- data/docs/models/UserPost.md +18 -0
- data/docs/models/UserProperties.md +32 -0
- data/docs/models/UserPropertiesPost.md +32 -0
- data/docs/models/UserPropertiesPut.md +30 -0
- data/docs/models/UserPut.md +20 -0
- data/docs/models/Users.md +30 -0
- data/docs/models/UsersEntities.md +20 -0
- data/docs/models/Volume.md +26 -0
- data/docs/models/VolumeProperties.md +54 -0
- data/docs/models/Volumes.md +30 -0
- data/docs/summary.md +168 -0
- data/gitbook.yaml +4 -0
- data/ionoscloud.gemspec +1 -1
- data/lib/ionoscloud/api/_api.rb +2 -2
- data/lib/ionoscloud/api/backup_unit_api.rb +1 -1
- data/lib/ionoscloud/api/contract_api.rb +1 -1
- data/lib/ionoscloud/api/data_center_api.rb +3 -3
- data/lib/ionoscloud/api/image_api.rb +1 -1
- data/lib/ionoscloud/api/ip_blocks_api.rb +19 -1
- data/lib/ionoscloud/api/kubernetes_api.rb +12 -12
- data/lib/ionoscloud/api/label_api.rb +1 -1
- data/lib/ionoscloud/api/lan_api.rb +1 -1
- data/lib/ionoscloud/api/load_balancer_api.rb +1 -1
- data/lib/ionoscloud/api/location_api.rb +1 -1
- data/lib/ionoscloud/api/nic_api.rb +1 -1
- data/lib/ionoscloud/api/private_cross_connect_api.rb +1 -1
- data/lib/ionoscloud/api/request_api.rb +31 -7
- data/lib/ionoscloud/api/server_api.rb +1 -1
- data/lib/ionoscloud/api/snapshot_api.rb +1 -1
- data/lib/ionoscloud/api/user_management_api.rb +27 -9
- data/lib/ionoscloud/api/volume_api.rb +1 -1
- data/lib/ionoscloud/api_client.rb +19 -22
- data/lib/ionoscloud/api_error.rb +1 -1
- data/lib/ionoscloud/configuration.rb +3 -3
- data/lib/ionoscloud/models/attached_volumes.rb +3 -1
- data/lib/ionoscloud/models/backup_unit.rb +3 -1
- data/lib/ionoscloud/models/backup_unit_properties.rb +3 -1
- data/lib/ionoscloud/models/backup_unit_sso.rb +3 -1
- data/lib/ionoscloud/models/backup_units.rb +5 -3
- data/lib/ionoscloud/models/balanced_nics.rb +3 -1
- data/lib/ionoscloud/models/cdroms.rb +3 -1
- data/lib/ionoscloud/models/connectable_datacenter.rb +3 -1
- data/lib/ionoscloud/models/contract.rb +3 -1
- data/lib/ionoscloud/models/contract_properties.rb +3 -1
- data/lib/ionoscloud/models/data_center_entities.rb +3 -1
- data/lib/ionoscloud/models/datacenter.rb +3 -1
- data/lib/ionoscloud/models/datacenter_element_metadata.rb +5 -3
- data/lib/ionoscloud/models/datacenter_properties.rb +3 -23
- data/lib/ionoscloud/models/datacenters.rb +3 -1
- data/lib/ionoscloud/models/error.rb +3 -1
- data/lib/ionoscloud/models/error_message.rb +3 -1
- data/lib/ionoscloud/models/firewall_rule.rb +3 -1
- data/lib/ionoscloud/models/firewall_rules.rb +3 -1
- data/lib/ionoscloud/models/firewallrule_properties.rb +39 -22
- data/lib/ionoscloud/models/group.rb +3 -1
- data/lib/ionoscloud/models/group_entities.rb +3 -1
- data/lib/ionoscloud/models/group_members.rb +3 -1
- data/lib/ionoscloud/models/group_properties.rb +3 -1
- data/lib/ionoscloud/models/group_share.rb +3 -1
- data/lib/ionoscloud/models/group_share_properties.rb +3 -1
- data/lib/ionoscloud/models/group_shares.rb +3 -1
- data/lib/ionoscloud/models/group_users.rb +3 -1
- data/lib/ionoscloud/models/groups.rb +3 -1
- data/lib/ionoscloud/models/image.rb +3 -1
- data/lib/ionoscloud/models/image_properties.rb +43 -7
- data/lib/ionoscloud/models/images.rb +3 -1
- data/lib/ionoscloud/models/info.rb +3 -1
- data/lib/ionoscloud/models/ip_block.rb +3 -1
- data/lib/ionoscloud/models/ip_block_properties.rb +3 -1
- data/lib/ionoscloud/models/ip_blocks.rb +36 -5
- data/lib/ionoscloud/models/ip_consumer.rb +25 -5
- data/lib/ionoscloud/models/ip_failover.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_cluster.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +305 -0
- data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +305 -0
- data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +43 -5
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +279 -0
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_put.rb +267 -0
- data/lib/ionoscloud/models/kubernetes_clusters.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_config.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_config_properties.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_node.rb +5 -3
- data/lib/ionoscloud/models/kubernetes_node_metadata.rb +5 -3
- data/lib/ionoscloud/models/kubernetes_node_pool.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_node_pool_for_post.rb +296 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +8 -1
- data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +18 -6
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +18 -6
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +4 -153
- data/lib/ionoscloud/models/kubernetes_node_pools.rb +3 -1
- data/lib/ionoscloud/models/kubernetes_node_properties.rb +14 -7
- data/lib/ionoscloud/models/kubernetes_nodes.rb +5 -3
- data/lib/ionoscloud/models/label.rb +3 -1
- data/lib/ionoscloud/models/label_properties.rb +3 -1
- data/lib/ionoscloud/models/label_resource.rb +3 -1
- data/lib/ionoscloud/models/label_resource_properties.rb +3 -1
- data/lib/ionoscloud/models/label_resources.rb +5 -3
- data/lib/ionoscloud/models/labels.rb +5 -3
- data/lib/ionoscloud/models/lan.rb +3 -1
- data/lib/ionoscloud/models/lan_entities.rb +3 -1
- data/lib/ionoscloud/models/lan_nics.rb +3 -1
- data/lib/ionoscloud/models/lan_post.rb +3 -1
- data/lib/ionoscloud/models/lan_properties.rb +3 -1
- data/lib/ionoscloud/models/lan_properties_post.rb +3 -1
- data/lib/ionoscloud/models/lans.rb +3 -1
- data/lib/ionoscloud/models/loadbalancer.rb +3 -1
- data/lib/ionoscloud/models/loadbalancer_entities.rb +3 -1
- data/lib/ionoscloud/models/loadbalancer_properties.rb +15 -30
- data/lib/ionoscloud/models/loadbalancers.rb +3 -1
- data/lib/ionoscloud/models/location.rb +3 -1
- data/lib/ionoscloud/models/location_properties.rb +3 -23
- data/lib/ionoscloud/models/locations.rb +3 -1
- data/lib/ionoscloud/models/nic.rb +3 -1
- data/lib/ionoscloud/models/nic_entities.rb +3 -1
- data/lib/ionoscloud/models/nic_properties.rb +3 -1
- data/lib/ionoscloud/models/nics.rb +3 -1
- data/lib/ionoscloud/models/no_state_meta_data.rb +3 -1
- data/lib/ionoscloud/models/pagination_links.rb +3 -1
- data/lib/ionoscloud/models/peer.rb +3 -1
- data/lib/ionoscloud/models/private_cross_connect.rb +3 -1
- data/lib/ionoscloud/models/private_cross_connect_properties.rb +3 -1
- data/lib/ionoscloud/models/private_cross_connects.rb +3 -1
- data/lib/ionoscloud/models/request.rb +3 -1
- data/lib/ionoscloud/models/request_metadata.rb +3 -1
- data/lib/ionoscloud/models/request_properties.rb +3 -1
- data/lib/ionoscloud/models/request_status.rb +3 -1
- data/lib/ionoscloud/models/request_status_metadata.rb +3 -1
- data/lib/ionoscloud/models/request_target.rb +3 -1
- data/lib/ionoscloud/models/requests.rb +4 -2
- data/lib/ionoscloud/models/resource.rb +3 -1
- data/lib/ionoscloud/models/resource_entities.rb +3 -1
- data/lib/ionoscloud/models/resource_groups.rb +3 -1
- data/lib/ionoscloud/models/resource_limits.rb +3 -1
- data/lib/ionoscloud/models/resource_properties.rb +3 -1
- data/lib/ionoscloud/models/resource_reference.rb +3 -1
- data/lib/ionoscloud/models/resources.rb +3 -1
- data/lib/ionoscloud/models/resources_users.rb +3 -1
- data/lib/ionoscloud/models/{kubernetes_cluster_properties_for_post_and_put.rb → s3_bucket.rb} +11 -28
- data/lib/ionoscloud/models/s3_key.rb +3 -1
- data/lib/ionoscloud/models/s3_key_metadata.rb +3 -1
- data/lib/ionoscloud/models/s3_key_properties.rb +5 -3
- data/lib/ionoscloud/models/s3_keys.rb +3 -1
- data/lib/ionoscloud/models/s3_object_storage_sso.rb +3 -1
- data/lib/ionoscloud/models/server.rb +3 -1
- data/lib/ionoscloud/models/server_entities.rb +3 -1
- data/lib/ionoscloud/models/server_properties.rb +5 -3
- data/lib/ionoscloud/models/servers.rb +3 -1
- data/lib/ionoscloud/models/snapshot.rb +3 -1
- data/lib/ionoscloud/models/snapshot_properties.rb +3 -1
- data/lib/ionoscloud/models/snapshots.rb +3 -1
- data/lib/ionoscloud/models/type.rb +2 -1
- data/lib/ionoscloud/models/user.rb +3 -1
- data/lib/ionoscloud/models/user_metadata.rb +3 -1
- data/lib/ionoscloud/models/user_post.rb +223 -0
- data/lib/ionoscloud/models/user_properties.rb +4 -12
- data/lib/ionoscloud/models/user_properties_post.rb +289 -0
- data/lib/ionoscloud/models/user_properties_put.rb +279 -0
- data/lib/ionoscloud/models/user_put.rb +233 -0
- data/lib/ionoscloud/models/users.rb +36 -5
- data/lib/ionoscloud/models/users_entities.rb +3 -1
- data/lib/ionoscloud/models/volume.rb +3 -1
- data/lib/ionoscloud/models/volume_properties.rb +22 -10
- data/lib/ionoscloud/models/volumes.rb +3 -1
- data/lib/ionoscloud/version.rb +2 -2
- data/lib/ionoscloud.rb +11 -2
- data/lib/test_driver.rb +104 -0
- data/spec/api/_api_spec.rb +1 -1
- data/spec/api/backup_unit_api_spec.rb +1 -1
- data/spec/api/contract_api_spec.rb +1 -1
- data/spec/api/data_center_api_spec.rb +2 -2
- data/spec/api/image_api_spec.rb +1 -1
- data/spec/api/ip_blocks_api_spec.rb +3 -1
- data/spec/api/kubernetes_api_spec.rb +5 -5
- data/spec/api/label_api_spec.rb +1 -1
- data/spec/api/lan_api_spec.rb +1 -1
- data/spec/api/load_balancer_api_spec.rb +1 -1
- data/spec/api/location_api_spec.rb +1 -1
- data/spec/api/nic_api_spec.rb +1 -1
- data/spec/api/private_cross_connect_api_spec.rb +1 -1
- data/spec/api/request_api_spec.rb +12 -4
- data/spec/api/server_api_spec.rb +1 -1
- data/spec/api/snapshot_api_spec.rb +1 -1
- data/spec/api/user_management_api_spec.rb +5 -3
- data/spec/api/volume_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/attached_volumes_spec.rb +1 -1
- data/spec/models/backup_unit_properties_spec.rb +1 -1
- data/spec/models/backup_unit_spec.rb +1 -1
- data/spec/models/backup_unit_sso_spec.rb +1 -1
- data/spec/models/backup_units_spec.rb +2 -2
- data/spec/models/balanced_nics_spec.rb +1 -1
- data/spec/models/cdroms_spec.rb +1 -1
- data/spec/models/connectable_datacenter_spec.rb +1 -1
- data/spec/models/contract_properties_spec.rb +1 -1
- data/spec/models/contract_spec.rb +1 -1
- data/spec/models/data_center_entities_spec.rb +1 -1
- data/spec/models/datacenter_element_metadata_spec.rb +2 -2
- data/spec/models/datacenter_properties_spec.rb +1 -5
- data/spec/models/datacenter_spec.rb +1 -1
- data/spec/models/datacenters_spec.rb +1 -1
- data/spec/models/error_message_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/firewall_rule_spec.rb +1 -1
- data/spec/models/firewall_rules_spec.rb +1 -1
- data/spec/models/firewallrule_properties_spec.rb +1 -13
- data/spec/models/group_entities_spec.rb +1 -1
- data/spec/models/group_members_spec.rb +1 -1
- data/spec/models/group_properties_spec.rb +1 -1
- data/spec/models/group_share_properties_spec.rb +1 -1
- data/spec/models/group_share_spec.rb +1 -1
- data/spec/models/group_shares_spec.rb +1 -1
- data/spec/models/group_spec.rb +1 -1
- data/spec/models/group_users_spec.rb +1 -1
- data/spec/models/groups_spec.rb +1 -1
- data/spec/models/image_properties_spec.rb +18 -2
- data/spec/models/image_spec.rb +1 -1
- data/spec/models/images_spec.rb +1 -1
- data/spec/models/info_spec.rb +1 -1
- data/spec/models/ip_block_properties_spec.rb +1 -1
- data/spec/models/ip_block_spec.rb +1 -1
- data/spec/models/ip_blocks_spec.rb +19 -1
- data/spec/models/ip_consumer_spec.rb +13 -1
- data/spec/models/ip_failover_spec.rb +1 -1
- data/spec/models/kubernetes_auto_scaling_spec.rb +1 -1
- data/spec/models/kubernetes_cluster_entities_spec.rb +1 -1
- 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 +64 -0
- data/spec/models/{kubernetes_cluster_properties_for_post_and_put_spec.rb → kubernetes_cluster_properties_for_put_spec.rb} +19 -7
- data/spec/models/kubernetes_cluster_properties_spec.rb +19 -1
- data/spec/models/kubernetes_cluster_spec.rb +1 -1
- data/spec/models/kubernetes_clusters_spec.rb +1 -1
- data/spec/models/kubernetes_config_properties_spec.rb +1 -1
- data/spec/models/kubernetes_config_spec.rb +1 -1
- data/spec/models/kubernetes_maintenance_window_spec.rb +1 -1
- data/spec/models/kubernetes_node_metadata_spec.rb +2 -2
- data/spec/models/kubernetes_node_pool_for_post_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_for_put_spec.rb +1 -1
- data/spec/models/kubernetes_node_pool_lan_spec.rb +1 -1
- data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +7 -1
- data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +1 -51
- data/spec/models/kubernetes_node_pool_properties_spec.rb +7 -1
- data/spec/models/kubernetes_node_pool_spec.rb +1 -1
- data/spec/models/kubernetes_node_pools_spec.rb +1 -1
- data/spec/models/kubernetes_node_properties_spec.rb +7 -1
- data/spec/models/kubernetes_node_spec.rb +2 -2
- data/spec/models/kubernetes_nodes_spec.rb +2 -2
- data/spec/models/label_properties_spec.rb +1 -1
- data/spec/models/label_resource_properties_spec.rb +1 -1
- data/spec/models/label_resource_spec.rb +1 -1
- data/spec/models/label_resources_spec.rb +2 -2
- data/spec/models/label_spec.rb +1 -1
- data/spec/models/labels_spec.rb +2 -2
- data/spec/models/lan_entities_spec.rb +1 -1
- data/spec/models/lan_nics_spec.rb +1 -1
- data/spec/models/lan_post_spec.rb +1 -1
- data/spec/models/lan_properties_post_spec.rb +1 -1
- data/spec/models/lan_properties_spec.rb +1 -1
- data/spec/models/lan_spec.rb +1 -1
- data/spec/models/lans_spec.rb +1 -1
- data/spec/models/loadbalancer_entities_spec.rb +1 -1
- data/spec/models/loadbalancer_properties_spec.rb +1 -5
- data/spec/models/loadbalancer_spec.rb +1 -1
- data/spec/models/loadbalancers_spec.rb +1 -1
- data/spec/models/location_properties_spec.rb +1 -5
- data/spec/models/location_spec.rb +1 -1
- data/spec/models/locations_spec.rb +1 -1
- data/spec/models/nic_entities_spec.rb +1 -1
- data/spec/models/nic_properties_spec.rb +1 -1
- data/spec/models/nic_spec.rb +1 -1
- data/spec/models/nics_spec.rb +1 -1
- data/spec/models/no_state_meta_data_spec.rb +1 -1
- data/spec/models/pagination_links_spec.rb +1 -1
- data/spec/models/peer_spec.rb +1 -1
- data/spec/models/private_cross_connect_properties_spec.rb +1 -1
- data/spec/models/private_cross_connect_spec.rb +1 -1
- data/spec/models/private_cross_connects_spec.rb +1 -1
- data/spec/models/request_metadata_spec.rb +1 -1
- data/spec/models/request_properties_spec.rb +1 -1
- data/spec/models/request_spec.rb +1 -1
- data/spec/models/request_status_metadata_spec.rb +1 -1
- data/spec/models/request_status_spec.rb +1 -1
- data/spec/models/request_target_spec.rb +1 -1
- data/spec/models/requests_spec.rb +1 -1
- data/spec/models/resource_entities_spec.rb +1 -1
- data/spec/models/resource_groups_spec.rb +1 -1
- data/spec/models/resource_limits_spec.rb +1 -1
- data/spec/models/resource_properties_spec.rb +1 -1
- data/spec/models/resource_reference_spec.rb +1 -1
- data/spec/models/resource_spec.rb +1 -1
- data/spec/models/resources_spec.rb +1 -1
- data/spec/models/resources_users_spec.rb +1 -1
- data/spec/models/s3_bucket_spec.rb +34 -0
- data/spec/models/s3_key_metadata_spec.rb +1 -1
- data/spec/models/s3_key_properties_spec.rb +1 -1
- data/spec/models/s3_key_spec.rb +1 -1
- data/spec/models/s3_keys_spec.rb +1 -1
- data/spec/models/s3_object_storage_sso_spec.rb +1 -1
- data/spec/models/server_entities_spec.rb +1 -1
- data/spec/models/server_properties_spec.rb +2 -2
- data/spec/models/server_spec.rb +1 -1
- data/spec/models/servers_spec.rb +1 -1
- data/spec/models/snapshot_properties_spec.rb +1 -1
- data/spec/models/snapshot_spec.rb +1 -1
- data/spec/models/snapshots_spec.rb +1 -1
- data/spec/models/type_spec.rb +1 -1
- data/spec/models/user_metadata_spec.rb +1 -1
- 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 +1 -7
- data/spec/models/user_put_spec.rb +40 -0
- data/spec/models/user_spec.rb +1 -1
- data/spec/models/users_entities_spec.rb +1 -1
- data/spec/models/users_spec.rb +19 -1
- data/spec/models/volume_properties_spec.rb +9 -3
- data/spec/models/volume_spec.rb +1 -1
- data/spec/models/volumes_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +311 -128
- data/DOCS.md +0 -14618
@@ -0,0 +1,305 @@
|
|
1
|
+
=begin
|
2
|
+
#CLOUD API
|
3
|
+
|
4
|
+
#An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 5.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Ionoscloud
|
17
|
+
class KubernetesClusterForPost
|
18
|
+
# The resource's unique identifier.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# The type of object
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# URL to the object representation (absolute path)
|
25
|
+
attr_accessor :href
|
26
|
+
|
27
|
+
attr_accessor :metadata
|
28
|
+
|
29
|
+
attr_accessor :properties
|
30
|
+
|
31
|
+
attr_accessor :entities
|
32
|
+
|
33
|
+
class EnumAttributeValidator
|
34
|
+
attr_reader :datatype
|
35
|
+
attr_reader :allowable_values
|
36
|
+
|
37
|
+
def initialize(datatype, allowable_values)
|
38
|
+
@allowable_values = allowable_values.map do |value|
|
39
|
+
case datatype.to_s
|
40
|
+
when /Integer/i
|
41
|
+
value.to_i
|
42
|
+
when /Float/i
|
43
|
+
value.to_f
|
44
|
+
else
|
45
|
+
value
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def valid?(value)
|
51
|
+
!value || allowable_values.include?(value)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
56
|
+
def self.attribute_map
|
57
|
+
{
|
58
|
+
:'id' => :'id',
|
59
|
+
:'type' => :'type',
|
60
|
+
:'href' => :'href',
|
61
|
+
:'metadata' => :'metadata',
|
62
|
+
:'properties' => :'properties',
|
63
|
+
:'entities' => :'entities'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Returns all the JSON keys this model knows about
|
68
|
+
def self.acceptable_attributes
|
69
|
+
attribute_map.values
|
70
|
+
end
|
71
|
+
|
72
|
+
# Attribute type mapping.
|
73
|
+
def self.openapi_types
|
74
|
+
{
|
75
|
+
:'id' => :'String',
|
76
|
+
:'type' => :'String',
|
77
|
+
:'href' => :'String',
|
78
|
+
:'metadata' => :'DatacenterElementMetadata',
|
79
|
+
:'properties' => :'KubernetesClusterPropertiesForPost',
|
80
|
+
:'entities' => :'KubernetesClusterEntities'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# List of attributes with nullable: true
|
85
|
+
def self.openapi_nullable
|
86
|
+
Set.new([
|
87
|
+
])
|
88
|
+
end
|
89
|
+
|
90
|
+
# Initializes the object
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
def initialize(attributes = {})
|
93
|
+
if (!attributes.is_a?(Hash))
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Ionoscloud::KubernetesClusterForPost` initialize method"
|
95
|
+
end
|
96
|
+
|
97
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
98
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::KubernetesClusterForPost`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
|
+
end
|
102
|
+
h[k.to_sym] = v
|
103
|
+
}
|
104
|
+
|
105
|
+
if attributes.key?(:'id')
|
106
|
+
self.id = attributes[:'id']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'type')
|
110
|
+
self.type = attributes[:'type']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'href')
|
114
|
+
self.href = attributes[:'href']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'metadata')
|
118
|
+
self.metadata = attributes[:'metadata']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'properties')
|
122
|
+
self.properties = attributes[:'properties']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'entities')
|
126
|
+
self.entities = attributes[:'entities']
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
131
|
+
# @return Array for valid properties with the reasons
|
132
|
+
def list_invalid_properties
|
133
|
+
invalid_properties = Array.new
|
134
|
+
if @properties.nil?
|
135
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
136
|
+
end
|
137
|
+
|
138
|
+
invalid_properties
|
139
|
+
end
|
140
|
+
|
141
|
+
# Check to see if the all the properties in the model are valid
|
142
|
+
# @return true if the model is valid
|
143
|
+
def valid?
|
144
|
+
type_validator = EnumAttributeValidator.new('String', ["k8s"])
|
145
|
+
return false unless type_validator.valid?(@type)
|
146
|
+
return false if @properties.nil?
|
147
|
+
true
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method checking allowed values (enum).
|
151
|
+
# @param [Object] type Object to be assigned
|
152
|
+
def type=(type)
|
153
|
+
validator = EnumAttributeValidator.new('String', ["k8s"])
|
154
|
+
unless validator.valid?(type)
|
155
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
156
|
+
end
|
157
|
+
@type = type
|
158
|
+
end
|
159
|
+
|
160
|
+
# Checks equality by comparing each attribute.
|
161
|
+
# @param [Object] Object to be compared
|
162
|
+
def ==(o)
|
163
|
+
return true if self.equal?(o)
|
164
|
+
self.class == o.class &&
|
165
|
+
id == o.id &&
|
166
|
+
type == o.type &&
|
167
|
+
href == o.href &&
|
168
|
+
metadata == o.metadata &&
|
169
|
+
properties == o.properties &&
|
170
|
+
entities == o.entities
|
171
|
+
end
|
172
|
+
|
173
|
+
# @see the `==` method
|
174
|
+
# @param [Object] Object to be compared
|
175
|
+
def eql?(o)
|
176
|
+
self == o
|
177
|
+
end
|
178
|
+
|
179
|
+
# Calculates hash code according to all attributes.
|
180
|
+
# @return [Integer] Hash code
|
181
|
+
def hash
|
182
|
+
[id, type, href, metadata, properties, entities].hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Builds the object from hash
|
186
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
187
|
+
# @return [Object] Returns the model itself
|
188
|
+
def self.build_from_hash(attributes)
|
189
|
+
new.build_from_hash(attributes)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Builds the object from hash
|
193
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
194
|
+
# @return [Object] Returns the model itself
|
195
|
+
def build_from_hash(attributes)
|
196
|
+
return nil unless attributes.is_a?(Hash)
|
197
|
+
self.class.openapi_types.each_pair do |key, type|
|
198
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
199
|
+
self.send("#{key}=", nil)
|
200
|
+
elsif type =~ /\AArray<(.*)>/i
|
201
|
+
# check to ensure the input is an array given that the attribute
|
202
|
+
# is documented as an array but the input is not
|
203
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
204
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
205
|
+
end
|
206
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
207
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
self
|
212
|
+
end
|
213
|
+
|
214
|
+
# Deserializes the data based on type
|
215
|
+
# @param string type Data type
|
216
|
+
# @param string value Value to be deserialized
|
217
|
+
# @return [Object] Deserialized data
|
218
|
+
def _deserialize(type, value)
|
219
|
+
case type.to_sym
|
220
|
+
when :Time
|
221
|
+
Time.parse(value)
|
222
|
+
when :Date
|
223
|
+
Date.parse(value)
|
224
|
+
when :String
|
225
|
+
value.to_s
|
226
|
+
when :Integer
|
227
|
+
value.to_i
|
228
|
+
when :Float
|
229
|
+
value.to_f
|
230
|
+
when :Boolean
|
231
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
232
|
+
true
|
233
|
+
else
|
234
|
+
false
|
235
|
+
end
|
236
|
+
when :Object
|
237
|
+
# generic object (usually a Hash), return directly
|
238
|
+
value
|
239
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
240
|
+
inner_type = Regexp.last_match[:inner_type]
|
241
|
+
value.map { |v| _deserialize(inner_type, v) }
|
242
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
243
|
+
k_type = Regexp.last_match[:k_type]
|
244
|
+
v_type = Regexp.last_match[:v_type]
|
245
|
+
{}.tap do |hash|
|
246
|
+
value.each do |k, v|
|
247
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
248
|
+
end
|
249
|
+
end
|
250
|
+
else # model
|
251
|
+
# models (e.g. Pet) or oneOf
|
252
|
+
klass = Ionoscloud.const_get(type)
|
253
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# Returns the string representation of the object
|
258
|
+
# @return [String] String presentation of the object
|
259
|
+
def to_s
|
260
|
+
to_hash.to_s
|
261
|
+
end
|
262
|
+
|
263
|
+
# to_body is an alias to to_hash (backward compatibility)
|
264
|
+
# @return [Hash] Returns the object in the form of hash
|
265
|
+
def to_body
|
266
|
+
to_hash
|
267
|
+
end
|
268
|
+
|
269
|
+
# Returns the object in the form of hash
|
270
|
+
# @return [Hash] Returns the object in the form of hash
|
271
|
+
def to_hash
|
272
|
+
hash = {}
|
273
|
+
self.class.attribute_map.each_pair do |attr, param|
|
274
|
+
value = self.send(attr)
|
275
|
+
if value.nil?
|
276
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
277
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
278
|
+
end
|
279
|
+
|
280
|
+
hash[param] = _to_hash(value)
|
281
|
+
end
|
282
|
+
hash
|
283
|
+
end
|
284
|
+
|
285
|
+
# Outputs non-array value in the form of hash
|
286
|
+
# For object, use to_hash. Otherwise, just return the value
|
287
|
+
# @param [Object] value Any valid value
|
288
|
+
# @return [Hash] Returns the value in the form of hash
|
289
|
+
def _to_hash(value)
|
290
|
+
if value.is_a?(Array)
|
291
|
+
value.compact.map { |v| _to_hash(v) }
|
292
|
+
elsif value.is_a?(Hash)
|
293
|
+
{}.tap do |hash|
|
294
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
295
|
+
end
|
296
|
+
elsif value.respond_to? :to_hash
|
297
|
+
value.to_hash
|
298
|
+
else
|
299
|
+
value
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
end
|
304
|
+
|
305
|
+
end
|
@@ -0,0 +1,305 @@
|
|
1
|
+
=begin
|
2
|
+
#CLOUD API
|
3
|
+
|
4
|
+
#An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 5.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Ionoscloud
|
17
|
+
class KubernetesClusterForPut
|
18
|
+
# The resource's unique identifier.
|
19
|
+
attr_accessor :id
|
20
|
+
|
21
|
+
# The type of object
|
22
|
+
attr_accessor :type
|
23
|
+
|
24
|
+
# URL to the object representation (absolute path)
|
25
|
+
attr_accessor :href
|
26
|
+
|
27
|
+
attr_accessor :metadata
|
28
|
+
|
29
|
+
attr_accessor :properties
|
30
|
+
|
31
|
+
attr_accessor :entities
|
32
|
+
|
33
|
+
class EnumAttributeValidator
|
34
|
+
attr_reader :datatype
|
35
|
+
attr_reader :allowable_values
|
36
|
+
|
37
|
+
def initialize(datatype, allowable_values)
|
38
|
+
@allowable_values = allowable_values.map do |value|
|
39
|
+
case datatype.to_s
|
40
|
+
when /Integer/i
|
41
|
+
value.to_i
|
42
|
+
when /Float/i
|
43
|
+
value.to_f
|
44
|
+
else
|
45
|
+
value
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
def valid?(value)
|
51
|
+
!value || allowable_values.include?(value)
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
56
|
+
def self.attribute_map
|
57
|
+
{
|
58
|
+
:'id' => :'id',
|
59
|
+
:'type' => :'type',
|
60
|
+
:'href' => :'href',
|
61
|
+
:'metadata' => :'metadata',
|
62
|
+
:'properties' => :'properties',
|
63
|
+
:'entities' => :'entities'
|
64
|
+
}
|
65
|
+
end
|
66
|
+
|
67
|
+
# Returns all the JSON keys this model knows about
|
68
|
+
def self.acceptable_attributes
|
69
|
+
attribute_map.values
|
70
|
+
end
|
71
|
+
|
72
|
+
# Attribute type mapping.
|
73
|
+
def self.openapi_types
|
74
|
+
{
|
75
|
+
:'id' => :'String',
|
76
|
+
:'type' => :'String',
|
77
|
+
:'href' => :'String',
|
78
|
+
:'metadata' => :'DatacenterElementMetadata',
|
79
|
+
:'properties' => :'KubernetesClusterPropertiesForPut',
|
80
|
+
:'entities' => :'KubernetesClusterEntities'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# List of attributes with nullable: true
|
85
|
+
def self.openapi_nullable
|
86
|
+
Set.new([
|
87
|
+
])
|
88
|
+
end
|
89
|
+
|
90
|
+
# Initializes the object
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
def initialize(attributes = {})
|
93
|
+
if (!attributes.is_a?(Hash))
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Ionoscloud::KubernetesClusterForPut` initialize method"
|
95
|
+
end
|
96
|
+
|
97
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
98
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Ionoscloud::KubernetesClusterForPut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
|
+
end
|
102
|
+
h[k.to_sym] = v
|
103
|
+
}
|
104
|
+
|
105
|
+
if attributes.key?(:'id')
|
106
|
+
self.id = attributes[:'id']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'type')
|
110
|
+
self.type = attributes[:'type']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'href')
|
114
|
+
self.href = attributes[:'href']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'metadata')
|
118
|
+
self.metadata = attributes[:'metadata']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'properties')
|
122
|
+
self.properties = attributes[:'properties']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'entities')
|
126
|
+
self.entities = attributes[:'entities']
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
131
|
+
# @return Array for valid properties with the reasons
|
132
|
+
def list_invalid_properties
|
133
|
+
invalid_properties = Array.new
|
134
|
+
if @properties.nil?
|
135
|
+
invalid_properties.push('invalid value for "properties", properties cannot be nil.')
|
136
|
+
end
|
137
|
+
|
138
|
+
invalid_properties
|
139
|
+
end
|
140
|
+
|
141
|
+
# Check to see if the all the properties in the model are valid
|
142
|
+
# @return true if the model is valid
|
143
|
+
def valid?
|
144
|
+
type_validator = EnumAttributeValidator.new('String', ["k8s"])
|
145
|
+
return false unless type_validator.valid?(@type)
|
146
|
+
return false if @properties.nil?
|
147
|
+
true
|
148
|
+
end
|
149
|
+
|
150
|
+
# Custom attribute writer method checking allowed values (enum).
|
151
|
+
# @param [Object] type Object to be assigned
|
152
|
+
def type=(type)
|
153
|
+
validator = EnumAttributeValidator.new('String', ["k8s"])
|
154
|
+
unless validator.valid?(type)
|
155
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
|
156
|
+
end
|
157
|
+
@type = type
|
158
|
+
end
|
159
|
+
|
160
|
+
# Checks equality by comparing each attribute.
|
161
|
+
# @param [Object] Object to be compared
|
162
|
+
def ==(o)
|
163
|
+
return true if self.equal?(o)
|
164
|
+
self.class == o.class &&
|
165
|
+
id == o.id &&
|
166
|
+
type == o.type &&
|
167
|
+
href == o.href &&
|
168
|
+
metadata == o.metadata &&
|
169
|
+
properties == o.properties &&
|
170
|
+
entities == o.entities
|
171
|
+
end
|
172
|
+
|
173
|
+
# @see the `==` method
|
174
|
+
# @param [Object] Object to be compared
|
175
|
+
def eql?(o)
|
176
|
+
self == o
|
177
|
+
end
|
178
|
+
|
179
|
+
# Calculates hash code according to all attributes.
|
180
|
+
# @return [Integer] Hash code
|
181
|
+
def hash
|
182
|
+
[id, type, href, metadata, properties, entities].hash
|
183
|
+
end
|
184
|
+
|
185
|
+
# Builds the object from hash
|
186
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
187
|
+
# @return [Object] Returns the model itself
|
188
|
+
def self.build_from_hash(attributes)
|
189
|
+
new.build_from_hash(attributes)
|
190
|
+
end
|
191
|
+
|
192
|
+
# Builds the object from hash
|
193
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
194
|
+
# @return [Object] Returns the model itself
|
195
|
+
def build_from_hash(attributes)
|
196
|
+
return nil unless attributes.is_a?(Hash)
|
197
|
+
self.class.openapi_types.each_pair do |key, type|
|
198
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
199
|
+
self.send("#{key}=", nil)
|
200
|
+
elsif type =~ /\AArray<(.*)>/i
|
201
|
+
# check to ensure the input is an array given that the attribute
|
202
|
+
# is documented as an array but the input is not
|
203
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
204
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
205
|
+
end
|
206
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
207
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
self
|
212
|
+
end
|
213
|
+
|
214
|
+
# Deserializes the data based on type
|
215
|
+
# @param string type Data type
|
216
|
+
# @param string value Value to be deserialized
|
217
|
+
# @return [Object] Deserialized data
|
218
|
+
def _deserialize(type, value)
|
219
|
+
case type.to_sym
|
220
|
+
when :Time
|
221
|
+
Time.parse(value)
|
222
|
+
when :Date
|
223
|
+
Date.parse(value)
|
224
|
+
when :String
|
225
|
+
value.to_s
|
226
|
+
when :Integer
|
227
|
+
value.to_i
|
228
|
+
when :Float
|
229
|
+
value.to_f
|
230
|
+
when :Boolean
|
231
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
232
|
+
true
|
233
|
+
else
|
234
|
+
false
|
235
|
+
end
|
236
|
+
when :Object
|
237
|
+
# generic object (usually a Hash), return directly
|
238
|
+
value
|
239
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
240
|
+
inner_type = Regexp.last_match[:inner_type]
|
241
|
+
value.map { |v| _deserialize(inner_type, v) }
|
242
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
243
|
+
k_type = Regexp.last_match[:k_type]
|
244
|
+
v_type = Regexp.last_match[:v_type]
|
245
|
+
{}.tap do |hash|
|
246
|
+
value.each do |k, v|
|
247
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
248
|
+
end
|
249
|
+
end
|
250
|
+
else # model
|
251
|
+
# models (e.g. Pet) or oneOf
|
252
|
+
klass = Ionoscloud.const_get(type)
|
253
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
# Returns the string representation of the object
|
258
|
+
# @return [String] String presentation of the object
|
259
|
+
def to_s
|
260
|
+
to_hash.to_s
|
261
|
+
end
|
262
|
+
|
263
|
+
# to_body is an alias to to_hash (backward compatibility)
|
264
|
+
# @return [Hash] Returns the object in the form of hash
|
265
|
+
def to_body
|
266
|
+
to_hash
|
267
|
+
end
|
268
|
+
|
269
|
+
# Returns the object in the form of hash
|
270
|
+
# @return [Hash] Returns the object in the form of hash
|
271
|
+
def to_hash
|
272
|
+
hash = {}
|
273
|
+
self.class.attribute_map.each_pair do |attr, param|
|
274
|
+
value = self.send(attr)
|
275
|
+
if value.nil?
|
276
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
277
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
278
|
+
end
|
279
|
+
|
280
|
+
hash[param] = _to_hash(value)
|
281
|
+
end
|
282
|
+
hash
|
283
|
+
end
|
284
|
+
|
285
|
+
# Outputs non-array value in the form of hash
|
286
|
+
# For object, use to_hash. Otherwise, just return the value
|
287
|
+
# @param [Object] value Any valid value
|
288
|
+
# @return [Hash] Returns the value in the form of hash
|
289
|
+
def _to_hash(value)
|
290
|
+
if value.is_a?(Array)
|
291
|
+
value.compact.map { |v| _to_hash(v) }
|
292
|
+
elsif value.is_a?(Hash)
|
293
|
+
{}.tap do |hash|
|
294
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
295
|
+
end
|
296
|
+
elsif value.respond_to? :to_hash
|
297
|
+
value.to_hash
|
298
|
+
else
|
299
|
+
value
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
end
|
304
|
+
|
305
|
+
end
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 5.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -29,6 +29,15 @@ module Ionoscloud
|
|
29
29
|
# List of versions that may be used for node pools under this cluster
|
30
30
|
attr_accessor :viable_node_pool_versions
|
31
31
|
|
32
|
+
# The indicator if the cluster is public or private. Be aware that setting it to false is currently in beta phase.
|
33
|
+
attr_accessor :public
|
34
|
+
|
35
|
+
# Access to the K8s API server is restricted to these CIDRs. Cluster-internal traffic is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value will be used: 32 for IPv4 and 128 for IPv6.
|
36
|
+
attr_accessor :api_subnet_allow_list
|
37
|
+
|
38
|
+
# List of S3 bucket configured for K8s usage. For now it contains only one S3 bucket used to store K8s API audit logs
|
39
|
+
attr_accessor :s3_buckets
|
40
|
+
|
32
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
33
42
|
def self.attribute_map
|
34
43
|
{
|
@@ -36,7 +45,10 @@ module Ionoscloud
|
|
36
45
|
:'k8s_version' => :'k8sVersion',
|
37
46
|
:'maintenance_window' => :'maintenanceWindow',
|
38
47
|
:'available_upgrade_versions' => :'availableUpgradeVersions',
|
39
|
-
:'viable_node_pool_versions' => :'viableNodePoolVersions'
|
48
|
+
:'viable_node_pool_versions' => :'viableNodePoolVersions',
|
49
|
+
:'public' => :'public',
|
50
|
+
:'api_subnet_allow_list' => :'apiSubnetAllowList',
|
51
|
+
:'s3_buckets' => :'s3Buckets'
|
40
52
|
}
|
41
53
|
end
|
42
54
|
|
@@ -52,7 +64,10 @@ module Ionoscloud
|
|
52
64
|
:'k8s_version' => :'String',
|
53
65
|
:'maintenance_window' => :'KubernetesMaintenanceWindow',
|
54
66
|
:'available_upgrade_versions' => :'Array<String>',
|
55
|
-
:'viable_node_pool_versions' => :'Array<String>'
|
67
|
+
:'viable_node_pool_versions' => :'Array<String>',
|
68
|
+
:'public' => :'Boolean',
|
69
|
+
:'api_subnet_allow_list' => :'Array<String>',
|
70
|
+
:'s3_buckets' => :'Array<S3Bucket>'
|
56
71
|
}
|
57
72
|
end
|
58
73
|
|
@@ -100,6 +115,24 @@ module Ionoscloud
|
|
100
115
|
self.viable_node_pool_versions = value
|
101
116
|
end
|
102
117
|
end
|
118
|
+
|
119
|
+
if attributes.key?(:'public')
|
120
|
+
self.public = attributes[:'public']
|
121
|
+
else
|
122
|
+
self.public = true
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'api_subnet_allow_list')
|
126
|
+
if (value = attributes[:'api_subnet_allow_list']).is_a?(Array)
|
127
|
+
self.api_subnet_allow_list = value
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
if attributes.key?(:'s3_buckets')
|
132
|
+
if (value = attributes[:'s3_buckets']).is_a?(Array)
|
133
|
+
self.s3_buckets = value
|
134
|
+
end
|
135
|
+
end
|
103
136
|
end
|
104
137
|
|
105
138
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -129,7 +162,10 @@ module Ionoscloud
|
|
129
162
|
k8s_version == o.k8s_version &&
|
130
163
|
maintenance_window == o.maintenance_window &&
|
131
164
|
available_upgrade_versions == o.available_upgrade_versions &&
|
132
|
-
viable_node_pool_versions == o.viable_node_pool_versions
|
165
|
+
viable_node_pool_versions == o.viable_node_pool_versions &&
|
166
|
+
public == o.public &&
|
167
|
+
api_subnet_allow_list == o.api_subnet_allow_list &&
|
168
|
+
s3_buckets == o.s3_buckets
|
133
169
|
end
|
134
170
|
|
135
171
|
# @see the `==` method
|
@@ -141,7 +177,7 @@ module Ionoscloud
|
|
141
177
|
# Calculates hash code according to all attributes.
|
142
178
|
# @return [Integer] Hash code
|
143
179
|
def hash
|
144
|
-
[name, k8s_version, maintenance_window, available_upgrade_versions, viable_node_pool_versions].hash
|
180
|
+
[name, k8s_version, maintenance_window, available_upgrade_versions, viable_node_pool_versions, public, api_subnet_allow_list, s3_buckets].hash
|
145
181
|
end
|
146
182
|
|
147
183
|
# Builds the object from hash
|
@@ -261,5 +297,7 @@ module Ionoscloud
|
|
261
297
|
value
|
262
298
|
end
|
263
299
|
end
|
300
|
+
|
264
301
|
end
|
302
|
+
|
265
303
|
end
|