ionoscloud 5.0.0 → 5.1.2
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 +14 -4
- 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 +30 -0
- data/docs/models/KubernetesClusterPropertiesForPost.md +26 -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 +49 -0
- data/docs/models/KubernetesNodePoolPropertiesForPost.md +47 -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 +18 -21
- data/lib/ionoscloud/api_error.rb +1 -1
- data/lib/ionoscloud/configuration.rb +3 -3
- data/lib/ionoscloud/models/attached_volumes.rb +68 -12
- data/lib/ionoscloud/models/backup_unit.rb +48 -6
- data/lib/ionoscloud/models/backup_unit_properties.rb +30 -4
- data/lib/ionoscloud/models/backup_unit_sso.rb +12 -2
- data/lib/ionoscloud/models/backup_units.rb +43 -11
- data/lib/ionoscloud/models/balanced_nics.rb +68 -12
- data/lib/ionoscloud/models/cdroms.rb +68 -12
- data/lib/ionoscloud/models/connectable_datacenter.rb +30 -4
- data/lib/ionoscloud/models/contract.rb +21 -3
- data/lib/ionoscloud/models/contract_properties.rb +48 -6
- data/lib/ionoscloud/models/data_center_entities.rb +39 -5
- data/lib/ionoscloud/models/datacenter.rb +57 -7
- data/lib/ionoscloud/models/datacenter_element_metadata.rb +77 -11
- data/lib/ionoscloud/models/datacenter_properties.rb +59 -33
- data/lib/ionoscloud/models/datacenters.rb +68 -12
- data/lib/ionoscloud/models/error.rb +23 -7
- data/lib/ionoscloud/models/error_message.rb +21 -3
- data/lib/ionoscloud/models/firewall_rule.rb +48 -6
- data/lib/ionoscloud/models/firewall_rules.rb +68 -12
- data/lib/ionoscloud/models/firewallrule_properties.rb +120 -31
- data/lib/ionoscloud/models/group.rb +48 -6
- data/lib/ionoscloud/models/group_entities.rb +21 -3
- data/lib/ionoscloud/models/group_members.rb +41 -9
- data/lib/ionoscloud/models/group_properties.rb +93 -11
- data/lib/ionoscloud/models/group_share.rb +39 -5
- data/lib/ionoscloud/models/group_share_properties.rb +21 -3
- data/lib/ionoscloud/models/group_shares.rb +41 -9
- data/lib/ionoscloud/models/group_users.rb +41 -9
- data/lib/ionoscloud/models/groups.rb +41 -9
- data/lib/ionoscloud/models/image.rb +48 -6
- data/lib/ionoscloud/models/image_properties.rb +209 -23
- data/lib/ionoscloud/models/images.rb +41 -9
- data/lib/ionoscloud/models/info.rb +30 -4
- data/lib/ionoscloud/models/ip_block.rb +48 -6
- data/lib/ionoscloud/models/ip_block_properties.rb +52 -14
- data/lib/ionoscloud/models/ip_blocks.rb +97 -12
- data/lib/ionoscloud/models/ip_consumer.rb +103 -11
- data/lib/ionoscloud/models/ip_failover.rb +21 -3
- data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +21 -3
- data/lib/ionoscloud/models/kubernetes_cluster.rb +57 -7
- data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +12 -2
- data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +353 -0
- data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +353 -0
- data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +91 -17
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +303 -0
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_put.rb +303 -0
- data/lib/ionoscloud/models/kubernetes_clusters.rb +41 -9
- data/lib/ionoscloud/models/kubernetes_config.rb +39 -5
- data/lib/ionoscloud/models/kubernetes_config_properties.rb +12 -2
- data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +21 -3
- data/lib/ionoscloud/models/kubernetes_node.rb +50 -8
- data/lib/ionoscloud/models/kubernetes_node_metadata.rb +50 -8
- data/lib/ionoscloud/models/kubernetes_node_pool.rb +48 -6
- data/lib/ionoscloud/models/kubernetes_node_pool_for_post.rb +336 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +48 -6
- data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +17 -2
- data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +170 -42
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +159 -37
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +80 -165
- data/lib/ionoscloud/models/kubernetes_node_pools.rb +41 -9
- data/lib/ionoscloud/models/kubernetes_node_properties.rb +48 -9
- data/lib/ionoscloud/models/kubernetes_nodes.rb +43 -11
- data/lib/ionoscloud/models/label.rb +48 -6
- data/lib/ionoscloud/models/label_properties.rb +48 -6
- data/lib/ionoscloud/models/label_resource.rb +48 -6
- data/lib/ionoscloud/models/label_resource_properties.rb +21 -3
- data/lib/ionoscloud/models/label_resources.rb +70 -14
- data/lib/ionoscloud/models/labels.rb +43 -11
- data/lib/ionoscloud/models/lan.rb +57 -7
- data/lib/ionoscloud/models/lan_entities.rb +12 -2
- data/lib/ionoscloud/models/lan_nics.rb +68 -12
- data/lib/ionoscloud/models/lan_post.rb +57 -7
- data/lib/ionoscloud/models/lan_properties.rb +41 -9
- data/lib/ionoscloud/models/lan_properties_post.rb +41 -9
- data/lib/ionoscloud/models/lans.rb +68 -12
- data/lib/ionoscloud/models/loadbalancer.rb +57 -7
- data/lib/ionoscloud/models/loadbalancer_entities.rb +12 -2
- data/lib/ionoscloud/models/loadbalancer_properties.rb +42 -33
- data/lib/ionoscloud/models/loadbalancers.rb +68 -12
- data/lib/ionoscloud/models/location.rb +48 -6
- data/lib/ionoscloud/models/location_properties.rb +34 -34
- data/lib/ionoscloud/models/locations.rb +41 -9
- data/lib/ionoscloud/models/nic.rb +57 -7
- data/lib/ionoscloud/models/nic_entities.rb +12 -2
- data/lib/ionoscloud/models/nic_properties.rb +68 -12
- data/lib/ionoscloud/models/nics.rb +68 -12
- data/lib/ionoscloud/models/no_state_meta_data.rb +66 -8
- data/lib/ionoscloud/models/pagination_links.rb +30 -4
- data/lib/ionoscloud/models/peer.rb +48 -6
- data/lib/ionoscloud/models/private_cross_connect.rb +48 -6
- data/lib/ionoscloud/models/private_cross_connect_properties.rb +43 -13
- data/lib/ionoscloud/models/private_cross_connects.rb +41 -9
- data/lib/ionoscloud/models/request.rb +48 -6
- data/lib/ionoscloud/models/request_metadata.rb +39 -5
- data/lib/ionoscloud/models/request_properties.rb +41 -9
- data/lib/ionoscloud/models/request_status.rb +39 -5
- data/lib/ionoscloud/models/request_status_metadata.rb +41 -9
- data/lib/ionoscloud/models/request_target.rb +21 -3
- data/lib/ionoscloud/models/requests.rb +69 -13
- data/lib/ionoscloud/models/resource.rb +57 -7
- data/lib/ionoscloud/models/resource_entities.rb +12 -2
- data/lib/ionoscloud/models/resource_groups.rb +41 -9
- data/lib/ionoscloud/models/resource_limits.rb +156 -18
- data/lib/ionoscloud/models/resource_properties.rb +21 -3
- data/lib/ionoscloud/models/resource_reference.rb +30 -4
- data/lib/ionoscloud/models/resources.rb +41 -9
- data/lib/ionoscloud/models/resources_users.rb +41 -9
- data/lib/ionoscloud/models/{kubernetes_cluster_properties_for_post_and_put.rb → s3_bucket.rb} +19 -28
- data/lib/ionoscloud/models/s3_key.rb +48 -6
- data/lib/ionoscloud/models/s3_key_metadata.rb +21 -3
- data/lib/ionoscloud/models/s3_key_properties.rb +23 -5
- data/lib/ionoscloud/models/s3_keys.rb +41 -9
- data/lib/ionoscloud/models/s3_object_storage_sso.rb +12 -2
- data/lib/ionoscloud/models/server.rb +57 -7
- data/lib/ionoscloud/models/server_entities.rb +30 -4
- data/lib/ionoscloud/models/server_properties.rb +77 -11
- data/lib/ionoscloud/models/servers.rb +68 -12
- data/lib/ionoscloud/models/snapshot.rb +48 -6
- data/lib/ionoscloud/models/snapshot_properties.rb +147 -17
- data/lib/ionoscloud/models/snapshots.rb +41 -9
- data/lib/ionoscloud/models/type.rb +2 -1
- data/lib/ionoscloud/models/user.rb +57 -7
- data/lib/ionoscloud/models/user_metadata.rb +30 -4
- data/lib/ionoscloud/models/user_post.rb +231 -0
- data/lib/ionoscloud/models/user_properties.rb +74 -18
- data/lib/ionoscloud/models/user_properties_post.rb +353 -0
- data/lib/ionoscloud/models/user_properties_put.rb +335 -0
- data/lib/ionoscloud/models/user_put.rb +249 -0
- data/lib/ionoscloud/models/users.rb +97 -12
- data/lib/ionoscloud/models/users_entities.rb +21 -3
- data/lib/ionoscloud/models/volume.rb +48 -6
- data/lib/ionoscloud/models/volume_properties.rb +193 -31
- data/lib/ionoscloud/models/volumes.rb +68 -12
- data/lib/ionoscloud/version.rb +2 -2
- data/lib/ionoscloud.rb +11 -2
- data/lib/test_driver.rb +104 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +172 -291
- data/DOCS.md +0 -14618
- data/spec/api/_api_spec.rb +0 -49
- data/spec/api/backup_unit_api_spec.rb +0 -140
- data/spec/api/contract_api_spec.rb +0 -49
- data/spec/api/data_center_api_spec.rb +0 -128
- data/spec/api/image_api_spec.rb +0 -111
- data/spec/api/ip_blocks_api_spec.rb +0 -126
- data/spec/api/kubernetes_api_spec.rb +0 -306
- data/spec/api/label_api_spec.rb +0 -480
- data/spec/api/lan_api_spec.rb +0 -186
- data/spec/api/load_balancer_api_spec.rb +0 -203
- data/spec/api/location_api_spec.rb +0 -80
- data/spec/api/nic_api_spec.rb +0 -251
- data/spec/api/private_cross_connect_api_spec.rb +0 -110
- data/spec/api/request_api_spec.rb +0 -84
- data/spec/api/server_api_spec.rb +0 -337
- data/spec/api/snapshot_api_spec.rb +0 -111
- data/spec/api/user_management_api_spec.rb +0 -495
- data/spec/api/volume_api_spec.rb +0 -171
- data/spec/models/attached_volumes_spec.rb +0 -70
- data/spec/models/backup_unit_properties_spec.rb +0 -46
- data/spec/models/backup_unit_spec.rb +0 -62
- data/spec/models/backup_unit_sso_spec.rb +0 -34
- data/spec/models/backup_units_spec.rb +0 -56
- data/spec/models/balanced_nics_spec.rb +0 -70
- data/spec/models/cdroms_spec.rb +0 -70
- data/spec/models/connectable_datacenter_spec.rb +0 -46
- data/spec/models/contract_properties_spec.rb +0 -58
- data/spec/models/contract_spec.rb +0 -40
- data/spec/models/data_center_entities_spec.rb +0 -52
- data/spec/models/datacenter_element_metadata_spec.rb +0 -80
- data/spec/models/datacenter_properties_spec.rb +0 -68
- data/spec/models/datacenter_spec.rb +0 -64
- data/spec/models/datacenters_spec.rb +0 -70
- data/spec/models/error_message_spec.rb +0 -40
- data/spec/models/error_spec.rb +0 -40
- data/spec/models/firewall_rule_spec.rb +0 -58
- data/spec/models/firewall_rules_spec.rb +0 -70
- data/spec/models/firewallrule_properties_spec.rb +0 -98
- data/spec/models/group_entities_spec.rb +0 -40
- data/spec/models/group_members_spec.rb +0 -52
- data/spec/models/group_properties_spec.rb +0 -88
- data/spec/models/group_share_properties_spec.rb +0 -40
- data/spec/models/group_share_spec.rb +0 -52
- data/spec/models/group_shares_spec.rb +0 -52
- data/spec/models/group_spec.rb +0 -58
- data/spec/models/group_users_spec.rb +0 -52
- data/spec/models/groups_spec.rb +0 -52
- data/spec/models/image_properties_spec.rb +0 -138
- data/spec/models/image_spec.rb +0 -58
- data/spec/models/images_spec.rb +0 -52
- data/spec/models/info_spec.rb +0 -46
- data/spec/models/ip_block_properties_spec.rb +0 -58
- data/spec/models/ip_block_spec.rb +0 -58
- data/spec/models/ip_blocks_spec.rb +0 -52
- data/spec/models/ip_consumer_spec.rb +0 -70
- data/spec/models/ip_failover_spec.rb +0 -40
- data/spec/models/kubernetes_auto_scaling_spec.rb +0 -40
- data/spec/models/kubernetes_cluster_entities_spec.rb +0 -34
- data/spec/models/kubernetes_cluster_properties_for_post_and_put_spec.rb +0 -46
- data/spec/models/kubernetes_cluster_properties_spec.rb +0 -58
- data/spec/models/kubernetes_cluster_spec.rb +0 -68
- data/spec/models/kubernetes_clusters_spec.rb +0 -56
- data/spec/models/kubernetes_config_properties_spec.rb +0 -34
- data/spec/models/kubernetes_config_spec.rb +0 -56
- data/spec/models/kubernetes_maintenance_window_spec.rb +0 -44
- data/spec/models/kubernetes_node_metadata_spec.rb +0 -62
- data/spec/models/kubernetes_node_pool_for_put_spec.rb +0 -62
- data/spec/models/kubernetes_node_pool_lan_spec.rb +0 -34
- data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +0 -132
- data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +0 -132
- data/spec/models/kubernetes_node_pool_properties_spec.rb +0 -138
- data/spec/models/kubernetes_node_pool_spec.rb +0 -62
- data/spec/models/kubernetes_node_pools_spec.rb +0 -56
- data/spec/models/kubernetes_node_properties_spec.rb +0 -46
- data/spec/models/kubernetes_node_spec.rb +0 -62
- data/spec/models/kubernetes_nodes_spec.rb +0 -56
- data/spec/models/label_properties_spec.rb +0 -58
- data/spec/models/label_resource_properties_spec.rb +0 -40
- data/spec/models/label_resource_spec.rb +0 -62
- data/spec/models/label_resources_spec.rb +0 -74
- data/spec/models/label_spec.rb +0 -62
- data/spec/models/labels_spec.rb +0 -56
- data/spec/models/lan_entities_spec.rb +0 -34
- data/spec/models/lan_nics_spec.rb +0 -70
- data/spec/models/lan_post_spec.rb +0 -64
- data/spec/models/lan_properties_post_spec.rb +0 -52
- data/spec/models/lan_properties_spec.rb +0 -52
- data/spec/models/lan_spec.rb +0 -64
- data/spec/models/lans_spec.rb +0 -70
- data/spec/models/loadbalancer_entities_spec.rb +0 -34
- data/spec/models/loadbalancer_properties_spec.rb +0 -50
- data/spec/models/loadbalancer_spec.rb +0 -64
- data/spec/models/loadbalancers_spec.rb +0 -70
- data/spec/models/location_properties_spec.rb +0 -50
- data/spec/models/location_spec.rb +0 -58
- data/spec/models/locations_spec.rb +0 -52
- data/spec/models/nic_entities_spec.rb +0 -34
- data/spec/models/nic_properties_spec.rb +0 -70
- data/spec/models/nic_spec.rb +0 -64
- data/spec/models/nics_spec.rb +0 -70
- data/spec/models/no_state_meta_data_spec.rb +0 -70
- data/spec/models/pagination_links_spec.rb +0 -46
- data/spec/models/peer_spec.rb +0 -58
- data/spec/models/private_cross_connect_properties_spec.rb +0 -52
- data/spec/models/private_cross_connect_spec.rb +0 -58
- data/spec/models/private_cross_connects_spec.rb +0 -52
- data/spec/models/request_metadata_spec.rb +0 -52
- data/spec/models/request_properties_spec.rb +0 -52
- data/spec/models/request_spec.rb +0 -58
- data/spec/models/request_status_metadata_spec.rb +0 -56
- data/spec/models/request_status_spec.rb +0 -52
- data/spec/models/request_target_spec.rb +0 -44
- data/spec/models/requests_spec.rb +0 -70
- data/spec/models/resource_entities_spec.rb +0 -34
- data/spec/models/resource_groups_spec.rb +0 -52
- data/spec/models/resource_limits_spec.rb +0 -130
- data/spec/models/resource_properties_spec.rb +0 -40
- data/spec/models/resource_reference_spec.rb +0 -46
- data/spec/models/resource_spec.rb +0 -64
- data/spec/models/resources_spec.rb +0 -52
- data/spec/models/resources_users_spec.rb +0 -52
- data/spec/models/s3_key_metadata_spec.rb +0 -40
- data/spec/models/s3_key_properties_spec.rb +0 -40
- data/spec/models/s3_key_spec.rb +0 -58
- data/spec/models/s3_keys_spec.rb +0 -52
- data/spec/models/s3_object_storage_sso_spec.rb +0 -34
- data/spec/models/server_entities_spec.rb +0 -46
- data/spec/models/server_properties_spec.rb +0 -84
- data/spec/models/server_spec.rb +0 -64
- data/spec/models/servers_spec.rb +0 -70
- data/spec/models/snapshot_properties_spec.rb +0 -128
- data/spec/models/snapshot_spec.rb +0 -58
- data/spec/models/snapshots_spec.rb +0 -52
- data/spec/models/type_spec.rb +0 -28
- data/spec/models/user_metadata_spec.rb +0 -46
- data/spec/models/user_properties_spec.rb +0 -82
- data/spec/models/user_spec.rb +0 -64
- data/spec/models/users_entities_spec.rb +0 -40
- data/spec/models/users_spec.rb +0 -52
- data/spec/models/volume_properties_spec.rb +0 -152
- data/spec/models/volume_spec.rb +0 -58
- data/spec/models/volumes_spec.rb +0 -70
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbda77bf31f4728c7c75d871902d0dcfaad37f0e4af13bc1b3591ab61b47f5ee
|
4
|
+
data.tar.gz: 00f70f0d7b25de8d2e3c4e446d804c7eb0ab221dfb983854c370fca0067d7ce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3729855717707fde3d36d110683fb29cfa7d7a604d80399bbfe1ac5adc193b1802fbceae49272810e7faff01efc74cae773580813758c39c88c4d13ec7d006b0
|
7
|
+
data.tar.gz: dcb98eb7d7e3ac4e1293701c3f3ed1e450d3983e009bf37df4be542bb243f42332b57c6a7ba6c8562b9ab2f32cc21bc725a475141abbf49d7c3e5b0abd63fa0b
|
data/Gemfile.lock
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ionoscloud (5.1.2)
|
5
|
+
typhoeus (~> 1.0, >= 1.0.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
ast (2.4.2)
|
11
|
+
byebug (11.1.3)
|
12
|
+
coderay (1.1.3)
|
13
|
+
diff-lcs (1.4.4)
|
14
|
+
ethon (0.15.0)
|
15
|
+
ffi (>= 1.15.0)
|
16
|
+
ffi (1.15.4)
|
17
|
+
jaro_winkler (1.5.4)
|
18
|
+
method_source (1.0.0)
|
19
|
+
parallel (1.21.0)
|
20
|
+
parser (3.0.2.0)
|
21
|
+
ast (~> 2.4.1)
|
22
|
+
pry (0.13.1)
|
23
|
+
coderay (~> 1.1)
|
24
|
+
method_source (~> 1.0)
|
25
|
+
pry-byebug (3.9.0)
|
26
|
+
byebug (~> 11.0)
|
27
|
+
pry (~> 0.13.0)
|
28
|
+
psych (4.0.1)
|
29
|
+
rainbow (3.0.0)
|
30
|
+
rake (13.0.6)
|
31
|
+
rspec (3.10.0)
|
32
|
+
rspec-core (~> 3.10.0)
|
33
|
+
rspec-expectations (~> 3.10.0)
|
34
|
+
rspec-mocks (~> 3.10.0)
|
35
|
+
rspec-core (3.10.1)
|
36
|
+
rspec-support (~> 3.10.0)
|
37
|
+
rspec-expectations (3.10.1)
|
38
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
39
|
+
rspec-support (~> 3.10.0)
|
40
|
+
rspec-mocks (3.10.2)
|
41
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
42
|
+
rspec-support (~> 3.10.0)
|
43
|
+
rspec-support (3.10.2)
|
44
|
+
rubocop (0.66.0)
|
45
|
+
jaro_winkler (~> 1.5.1)
|
46
|
+
parallel (~> 1.10)
|
47
|
+
parser (>= 2.5, != 2.5.1.1)
|
48
|
+
psych (>= 3.1.0)
|
49
|
+
rainbow (>= 2.2.2, < 4.0)
|
50
|
+
ruby-progressbar (~> 1.7)
|
51
|
+
unicode-display_width (>= 1.4.0, < 1.6)
|
52
|
+
ruby-progressbar (1.11.0)
|
53
|
+
typhoeus (1.4.0)
|
54
|
+
ethon (>= 0.9.0)
|
55
|
+
unicode-display_width (1.5.0)
|
56
|
+
|
57
|
+
PLATFORMS
|
58
|
+
x86_64-linux
|
59
|
+
|
60
|
+
DEPENDENCIES
|
61
|
+
ionoscloud!
|
62
|
+
pry-byebug
|
63
|
+
rake (~> 13.0.1)
|
64
|
+
rspec (~> 3.6, >= 3.6.0)
|
65
|
+
rubocop (~> 0.66.0)
|
66
|
+
|
67
|
+
BUNDLED WITH
|
68
|
+
2.2.29
|
data/LICENSE
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
Apache License
|
2
|
+
Version 2.0, January 2004
|
3
|
+
http://www.apache.org/licenses/
|
4
|
+
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
6
|
+
|
7
|
+
1. Definitions.
|
8
|
+
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
11
|
+
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
13
|
+
the copyright owner that is granting the License.
|
14
|
+
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
16
|
+
other entities that control, are controlled by, or are under common
|
17
|
+
control with that entity. For the purposes of this definition,
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
19
|
+
direction or management of such entity, whether by contract or
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
22
|
+
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
24
|
+
exercising permissions granted by this License.
|
25
|
+
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
27
|
+
including but not limited to software source code, documentation
|
28
|
+
source, and configuration files.
|
29
|
+
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
31
|
+
transformation or translation of a Source form, including but
|
32
|
+
not limited to compiled object code, generated documentation,
|
33
|
+
and conversions to other media types.
|
34
|
+
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
36
|
+
Object form, made available under the License, as indicated by a
|
37
|
+
copyright notice that is included in or attached to the work
|
38
|
+
(an example is provided in the Appendix below).
|
39
|
+
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
46
|
+
the Work and Derivative Works thereof.
|
47
|
+
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
49
|
+
the original version of the Work and any modifications or additions
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
61
|
+
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
64
|
+
subsequently incorporated within the Work.
|
65
|
+
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
72
|
+
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
78
|
+
where such license applies only to those patent claims licensable
|
79
|
+
by such Contributor that are necessarily infringed by their
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
82
|
+
institute patent litigation against any entity (including a
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
85
|
+
or contributory patent infringement, then any patent licenses
|
86
|
+
granted to You under this License for that Work shall terminate
|
87
|
+
as of the date such litigation is filed.
|
88
|
+
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
91
|
+
modifications, and in Source or Object form, provided that You
|
92
|
+
meet the following conditions:
|
93
|
+
|
94
|
+
(a) You must give any other recipients of the Work or
|
95
|
+
Derivative Works a copy of this License; and
|
96
|
+
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
98
|
+
stating that You changed the files; and
|
99
|
+
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
102
|
+
attribution notices from the Source form of the Work,
|
103
|
+
excluding those notices that do not pertain to any part of
|
104
|
+
the Derivative Works; and
|
105
|
+
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
108
|
+
include a readable copy of the attribution notices contained
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
111
|
+
of the following places: within a NOTICE text file distributed
|
112
|
+
as part of the Derivative Works; within the Source form or
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
114
|
+
within a display generated by the Derivative Works, if and
|
115
|
+
wherever such third-party notices normally appear. The contents
|
116
|
+
of the NOTICE file are for informational purposes only and
|
117
|
+
do not modify the License. You may add Your own attribution
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
120
|
+
that such additional attribution notices cannot be construed
|
121
|
+
as modifying the License.
|
122
|
+
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
124
|
+
may provide additional or different license terms and conditions
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
128
|
+
the conditions stated in this License.
|
129
|
+
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
133
|
+
this License, without any additional terms or conditions.
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
135
|
+
the terms of any separate license agreement you may have executed
|
136
|
+
with Licensor regarding such Contributions.
|
137
|
+
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
140
|
+
except as required for reasonable and customary use in describing the
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
142
|
+
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
152
|
+
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
158
|
+
incidental, or consequential damages of any character arising as a
|
159
|
+
result of this License or out of the use or inability to use the
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
162
|
+
other commercial damages or losses), even if such Contributor
|
163
|
+
has been advised of the possibility of such damages.
|
164
|
+
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
168
|
+
or other liability obligations and/or rights consistent with this
|
169
|
+
License. However, in accepting such obligations, You may act only
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
174
|
+
of your accepting any such warranty or additional liability.
|
175
|
+
|
176
|
+
END OF TERMS AND CONDITIONS
|
177
|
+
|
178
|
+
Copyright 2021 IONOS
|
179
|
+
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
181
|
+
you may not use this file except in compliance with the License.
|
182
|
+
You may obtain a copy of the License at
|
183
|
+
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
185
|
+
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
189
|
+
See the License for the specific language governing permissions and
|
190
|
+
limitations under the License.
|
data/README.md
CHANGED
@@ -1,8 +1,18 @@
|
|
1
|
-
[![Gitter](https://img.shields.io/gitter/room/ionos-cloud/sdk-general)](https://gitter.im/ionos-cloud/sdk-general)
|
2
1
|
|
3
|
-
|
2
|
+
![CI](https://github.com/ionos-cloud/sdk-resources/workflows/%5B%20CI%20%5D%20CloudApi%20V5%20/%20Ruby/badge.svg)
|
3
|
+
[![Gem Version](https://img.shields.io/gem/v/ionoscloud)](https://rubygems.org/gems/ionoscloud)
|
4
|
+
[![Gitter](https://badges.gitter.im/ionos-cloud/sdk-general.png)](https://gitter.im/ionos-cloud/sdk-general)
|
5
|
+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ionos-cloud_sdk-ruby&metric=alert_status)](https://sonarcloud.io/dashboard?id=ionos-cloud_sdk-ruby)
|
6
|
+
[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=ionos-cloud_sdk-ruby&metric=bugs)](https://sonarcloud.io/dashboard?id=ionos-cloud_sdk-ruby)
|
7
|
+
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=ionos-cloud_sdk-ruby&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=ionos-cloud_sdk-ruby)
|
8
|
+
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=ionos-cloud_sdk-ruby&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=ionos-cloud_sdk-ruby)
|
9
|
+
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=ionos-cloud_sdk-ruby&metric=security_rating)](https://sonarcloud.io/dashboard?id=ionos-cloud_sdk-ruby)
|
10
|
+
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=ionos-cloud_sdk-ruby&metric=vulnerabilities)](https://sonarcloud.io/dashboard?id=ionos-cloud_sdk-ruby)
|
4
11
|
|
5
|
-
|
12
|
+
![Alt text](.github/IONOS.CLOUD.BLU.svg?raw=true "Title")
|
13
|
+
|
14
|
+
|
15
|
+
# Ruby API Client For IONOS Cloud
|
6
16
|
|
7
17
|
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.
|
8
18
|
|
@@ -52,4 +62,4 @@ Include the Ruby code directly using `-I` as follows:
|
|
52
62
|
ruby -Ilib script.rb
|
53
63
|
```
|
54
64
|
|
55
|
-
## Our latest, most up to date documentation is available [here](https://
|
65
|
+
## Our latest, most up to date usage documentation is available [here](https://docs.ionos.com/ruby-sdk/)
|
data/docs/README.md
ADDED
@@ -0,0 +1,111 @@
|
|
1
|
+
# Ruby SDK
|
2
|
+
|
3
|
+
## Overview
|
4
|
+
|
5
|
+
The IONOS Cloud SDK for Ruby provides you with access to the IONOS Cloud API. The client library supports both simple and complex requests. It is designed for developers who are building applications in Ruby. The SDK for Ruby wraps the IONOS Cloud API. All API operations are performed over SSL and authenticated using your IONOS Cloud portal credentials. The API can be accessed within an instance running in IONOS Cloud or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.
|
6
|
+
|
7
|
+
## Getting Started
|
8
|
+
|
9
|
+
An IONOS account is required for access to the Cloud API; credentials from your registration are used to authenticate against the IONOS Cloud API.
|
10
|
+
|
11
|
+
### Installation
|
12
|
+
|
13
|
+
### 1. Build a gem
|
14
|
+
|
15
|
+
To build the Ruby code into a gem:
|
16
|
+
|
17
|
+
```text
|
18
|
+
gem build ionoscloud.gemspec
|
19
|
+
```
|
20
|
+
|
21
|
+
Then either install the gem locally:
|
22
|
+
|
23
|
+
```text
|
24
|
+
gem install ./ionoscloud-<gem-version>.gem
|
25
|
+
```
|
26
|
+
|
27
|
+
\(for development, run `gem install --dev ./ionoscloud-<gem-version>.gem` to install the development dependencies\)
|
28
|
+
|
29
|
+
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
30
|
+
|
31
|
+
Finally add this to the Gemfile:
|
32
|
+
|
33
|
+
```text
|
34
|
+
gem 'ionoscloud', '~> <gem-version>'
|
35
|
+
```
|
36
|
+
|
37
|
+
### 2. Install from Git
|
38
|
+
|
39
|
+
If the Ruby gem is hosted at a git repository: [https://github.com/ionos-cloud/sdk-ruby](https://github.com/ionos-cloud/sdk-ruby), then add the following in the Gemfile:
|
40
|
+
|
41
|
+
```text
|
42
|
+
gem 'ionoscloud', :git => 'https://github.com/ionos-cloud/sdk-ruby.git'
|
43
|
+
```
|
44
|
+
|
45
|
+
### 3. Include the Ruby code directly
|
46
|
+
|
47
|
+
Include the Ruby code directly using `-I` as follows:
|
48
|
+
|
49
|
+
```text
|
50
|
+
ruby -Ilib script.rb
|
51
|
+
```
|
52
|
+
|
53
|
+
### 4. Install from RubyGems
|
54
|
+
|
55
|
+
Just add this to the Gemfile:
|
56
|
+
|
57
|
+
```text
|
58
|
+
gem 'ionoscloud', '~> <gem-version>'
|
59
|
+
```
|
60
|
+
|
61
|
+
### After installing please run the following code:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
# Load the gem
|
65
|
+
require 'ionoscloud'
|
66
|
+
|
67
|
+
# Setup authorization
|
68
|
+
Ionoscloud.configure do |config|
|
69
|
+
# Configure HTTP basic authorization: Basic Authentication
|
70
|
+
config.username = 'YOUR_USERNAME'
|
71
|
+
config.password = 'YOUR_PASSWORD'
|
72
|
+
|
73
|
+
# Configure API key authorization: Token Authentication
|
74
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
75
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
76
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
77
|
+
end
|
78
|
+
|
79
|
+
api_instance = Ionoscloud::DefaultApi.new
|
80
|
+
opts = {
|
81
|
+
pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
|
82
|
+
depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
83
|
+
x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
84
|
+
}
|
85
|
+
|
86
|
+
begin
|
87
|
+
#Display API information
|
88
|
+
result = api_instance.api_info_get(opts)
|
89
|
+
p result
|
90
|
+
rescue Ionoscloud::ApiError => e
|
91
|
+
puts "Exception when calling DefaultApi->api_info_get: #{e}"
|
92
|
+
end
|
93
|
+
```
|
94
|
+
|
95
|
+
## Feature Reference
|
96
|
+
|
97
|
+
The IONOS Cloud SDK for Ruby aims to offer access to all resources in the IONOS Cloud API and also offers some additional features that make the integration easier:
|
98
|
+
|
99
|
+
* authentication for API calls
|
100
|
+
* handling of asynchronous requests
|
101
|
+
|
102
|
+
## FAQ
|
103
|
+
|
104
|
+
1. How can I open a bug/feature request?
|
105
|
+
|
106
|
+
Bugs & feature requests can be open on the repository issues: [https://github.com/ionos-cloud/sdk-ruby/issues/new/choose](https://github.com/ionos-cloud/sdk-ruby/issues/new/choose)
|
107
|
+
|
108
|
+
1. Can I contribute to the Ruby SDK?
|
109
|
+
|
110
|
+
Pure SDKs are automatically generated using OpenAPI Generator and don’t support manual changes. If you need changes please open an issue and we’ll try to take care of it.
|
111
|
+
|