ionoscloud 5.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/DOCS.md +14618 -0
- data/Gemfile +9 -0
- data/README.md +55 -0
- data/Rakefile +10 -0
- data/git_push.sh +58 -0
- data/ionoscloud.gemspec +38 -0
- data/lib/ionoscloud.rb +181 -0
- data/lib/ionoscloud/api/_api.rb +96 -0
- data/lib/ionoscloud/api/backup_unit_api.rb +583 -0
- data/lib/ionoscloud/api/contract_api.rb +96 -0
- data/lib/ionoscloud/api/data_center_api.rb +532 -0
- data/lib/ionoscloud/api/image_api.rb +432 -0
- data/lib/ionoscloud/api/ip_blocks_api.rb +514 -0
- data/lib/ionoscloud/api/kubernetes_api.rb +1479 -0
- data/lib/ionoscloud/api/label_api.rb +2460 -0
- data/lib/ionoscloud/api/lan_api.rb +858 -0
- data/lib/ionoscloud/api/load_balancer_api.rb +950 -0
- data/lib/ionoscloud/api/location_api.rb +262 -0
- data/lib/ionoscloud/api/nic_api.rb +1222 -0
- data/lib/ionoscloud/api/private_cross_connect_api.rb +426 -0
- data/lib/ionoscloud/api/request_api.rb +283 -0
- data/lib/ionoscloud/api/server_api.rb +1679 -0
- data/lib/ionoscloud/api/snapshot_api.rb +432 -0
- data/lib/ionoscloud/api/user_management_api.rb +2495 -0
- data/lib/ionoscloud/api/volume_api.rb +763 -0
- data/lib/ionoscloud/api_client.rb +521 -0
- data/lib/ionoscloud/api_error.rb +57 -0
- data/lib/ionoscloud/configuration.rb +291 -0
- data/lib/ionoscloud/models/attached_volumes.rb +278 -0
- data/lib/ionoscloud/models/backup_unit.rb +294 -0
- data/lib/ionoscloud/models/backup_unit_properties.rb +242 -0
- data/lib/ionoscloud/models/backup_unit_sso.rb +217 -0
- data/lib/ionoscloud/models/backup_units.rb +283 -0
- data/lib/ionoscloud/models/balanced_nics.rb +278 -0
- data/lib/ionoscloud/models/cdroms.rb +278 -0
- data/lib/ionoscloud/models/connectable_datacenter.rb +234 -0
- data/lib/ionoscloud/models/contract.rb +231 -0
- data/lib/ionoscloud/models/contract_properties.rb +256 -0
- data/lib/ionoscloud/models/data_center_entities.rb +243 -0
- data/lib/ionoscloud/models/datacenter.rb +269 -0
- data/lib/ionoscloud/models/datacenter_element_metadata.rb +321 -0
- data/lib/ionoscloud/models/datacenter_properties.rb +296 -0
- data/lib/ionoscloud/models/datacenters.rb +278 -0
- data/lib/ionoscloud/models/error.rb +228 -0
- data/lib/ionoscloud/models/error_message.rb +227 -0
- data/lib/ionoscloud/models/firewall_rule.rb +260 -0
- data/lib/ionoscloud/models/firewall_rules.rb +278 -0
- data/lib/ionoscloud/models/firewallrule_properties.rb +468 -0
- data/lib/ionoscloud/models/group.rb +260 -0
- data/lib/ionoscloud/models/group_entities.rb +225 -0
- data/lib/ionoscloud/models/group_members.rb +249 -0
- data/lib/ionoscloud/models/group_properties.rb +307 -0
- data/lib/ionoscloud/models/group_share.rb +251 -0
- data/lib/ionoscloud/models/group_share_properties.rb +227 -0
- data/lib/ionoscloud/models/group_shares.rb +249 -0
- data/lib/ionoscloud/models/group_users.rb +250 -0
- data/lib/ionoscloud/models/groups.rb +249 -0
- data/lib/ionoscloud/models/image.rb +260 -0
- data/lib/ionoscloud/models/image_properties.rb +428 -0
- data/lib/ionoscloud/models/images.rb +249 -0
- data/lib/ionoscloud/models/info.rb +237 -0
- data/lib/ionoscloud/models/ip_block.rb +260 -0
- data/lib/ionoscloud/models/ip_block_properties.rb +271 -0
- data/lib/ionoscloud/models/ip_blocks.rb +249 -0
- data/lib/ionoscloud/models/ip_consumer.rb +270 -0
- data/lib/ionoscloud/models/ip_failover.rb +225 -0
- data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +227 -0
- data/lib/ionoscloud/models/kubernetes_cluster.rb +303 -0
- data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +216 -0
- data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +265 -0
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post_and_put.rb +241 -0
- data/lib/ionoscloud/models/kubernetes_clusters.rb +283 -0
- data/lib/ionoscloud/models/kubernetes_config.rb +285 -0
- data/lib/ionoscloud/models/kubernetes_config_properties.rb +217 -0
- data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +261 -0
- data/lib/ionoscloud/models/kubernetes_node.rb +294 -0
- data/lib/ionoscloud/models/kubernetes_node_metadata.rb +291 -0
- data/lib/ionoscloud/models/kubernetes_node_pool.rb +294 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +294 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +217 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +476 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +464 -0
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +464 -0
- data/lib/ionoscloud/models/kubernetes_node_pools.rb +283 -0
- data/lib/ionoscloud/models/kubernetes_node_properties.rb +252 -0
- data/lib/ionoscloud/models/kubernetes_nodes.rb +283 -0
- data/lib/ionoscloud/models/label.rb +294 -0
- data/lib/ionoscloud/models/label_properties.rb +257 -0
- data/lib/ionoscloud/models/label_resource.rb +294 -0
- data/lib/ionoscloud/models/label_resource_properties.rb +227 -0
- data/lib/ionoscloud/models/label_resources.rb +312 -0
- data/lib/ionoscloud/models/labels.rb +283 -0
- data/lib/ionoscloud/models/lan.rb +269 -0
- data/lib/ionoscloud/models/lan_entities.rb +216 -0
- data/lib/ionoscloud/models/lan_nics.rb +278 -0
- data/lib/ionoscloud/models/lan_post.rb +269 -0
- data/lib/ionoscloud/models/lan_properties.rb +249 -0
- data/lib/ionoscloud/models/lan_properties_post.rb +249 -0
- data/lib/ionoscloud/models/lans.rb +278 -0
- data/lib/ionoscloud/models/loadbalancer.rb +269 -0
- data/lib/ionoscloud/models/loadbalancer_entities.rb +216 -0
- data/lib/ionoscloud/models/loadbalancer_properties.rb +271 -0
- data/lib/ionoscloud/models/loadbalancers.rb +278 -0
- data/lib/ionoscloud/models/location.rb +260 -0
- data/lib/ionoscloud/models/location_properties.rb +263 -0
- data/lib/ionoscloud/models/locations.rb +249 -0
- data/lib/ionoscloud/models/nic.rb +269 -0
- data/lib/ionoscloud/models/nic_entities.rb +216 -0
- data/lib/ionoscloud/models/nic_properties.rb +284 -0
- data/lib/ionoscloud/models/nics.rb +278 -0
- data/lib/ionoscloud/models/no_state_meta_data.rb +277 -0
- data/lib/ionoscloud/models/pagination_links.rb +237 -0
- data/lib/ionoscloud/models/peer.rb +252 -0
- data/lib/ionoscloud/models/private_cross_connect.rb +260 -0
- data/lib/ionoscloud/models/private_cross_connect_properties.rb +251 -0
- data/lib/ionoscloud/models/private_cross_connects.rb +249 -0
- data/lib/ionoscloud/models/request.rb +260 -0
- data/lib/ionoscloud/models/request_metadata.rb +246 -0
- data/lib/ionoscloud/models/request_properties.rb +245 -0
- data/lib/ionoscloud/models/request_status.rb +246 -0
- data/lib/ionoscloud/models/request_status_metadata.rb +280 -0
- data/lib/ionoscloud/models/request_target.rb +259 -0
- data/lib/ionoscloud/models/requests.rb +293 -0
- data/lib/ionoscloud/models/resource.rb +265 -0
- data/lib/ionoscloud/models/resource_entities.rb +216 -0
- data/lib/ionoscloud/models/resource_groups.rb +250 -0
- data/lib/ionoscloud/models/resource_limits.rb +462 -0
- data/lib/ionoscloud/models/resource_properties.rb +227 -0
- data/lib/ionoscloud/models/resource_reference.rb +242 -0
- data/lib/ionoscloud/models/resources.rb +250 -0
- data/lib/ionoscloud/models/resources_users.rb +250 -0
- data/lib/ionoscloud/models/s3_key.rb +260 -0
- data/lib/ionoscloud/models/s3_key_metadata.rb +227 -0
- data/lib/ionoscloud/models/s3_key_properties.rb +227 -0
- data/lib/ionoscloud/models/s3_keys.rb +249 -0
- data/lib/ionoscloud/models/s3_object_storage_sso.rb +217 -0
- data/lib/ionoscloud/models/server.rb +269 -0
- data/lib/ionoscloud/models/server_entities.rb +234 -0
- data/lib/ionoscloud/models/server_properties.rb +341 -0
- data/lib/ionoscloud/models/servers.rb +278 -0
- data/lib/ionoscloud/models/snapshot.rb +260 -0
- data/lib/ionoscloud/models/snapshot_properties.rb +401 -0
- data/lib/ionoscloud/models/snapshots.rb +249 -0
- data/lib/ionoscloud/models/type.rb +59 -0
- data/lib/ionoscloud/models/user.rb +269 -0
- data/lib/ionoscloud/models/user_metadata.rb +237 -0
- data/lib/ionoscloud/models/user_properties.rb +297 -0
- data/lib/ionoscloud/models/users.rb +249 -0
- data/lib/ionoscloud/models/users_entities.rb +225 -0
- data/lib/ionoscloud/models/volume.rb +260 -0
- data/lib/ionoscloud/models/volume_properties.rb +463 -0
- data/lib/ionoscloud/models/volumes.rb +278 -0
- data/lib/ionoscloud/version.rb +15 -0
- data/spec/api/_api_spec.rb +49 -0
- data/spec/api/backup_unit_api_spec.rb +140 -0
- data/spec/api/contract_api_spec.rb +49 -0
- data/spec/api/data_center_api_spec.rb +128 -0
- data/spec/api/image_api_spec.rb +111 -0
- data/spec/api/ip_blocks_api_spec.rb +126 -0
- data/spec/api/kubernetes_api_spec.rb +306 -0
- data/spec/api/label_api_spec.rb +480 -0
- data/spec/api/lan_api_spec.rb +186 -0
- data/spec/api/load_balancer_api_spec.rb +203 -0
- data/spec/api/location_api_spec.rb +80 -0
- data/spec/api/nic_api_spec.rb +251 -0
- data/spec/api/private_cross_connect_api_spec.rb +110 -0
- data/spec/api/request_api_spec.rb +84 -0
- data/spec/api/server_api_spec.rb +337 -0
- data/spec/api/snapshot_api_spec.rb +111 -0
- data/spec/api/user_management_api_spec.rb +495 -0
- data/spec/api/volume_api_spec.rb +171 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/attached_volumes_spec.rb +70 -0
- data/spec/models/backup_unit_properties_spec.rb +46 -0
- data/spec/models/backup_unit_spec.rb +62 -0
- data/spec/models/backup_unit_sso_spec.rb +34 -0
- data/spec/models/backup_units_spec.rb +56 -0
- data/spec/models/balanced_nics_spec.rb +70 -0
- data/spec/models/cdroms_spec.rb +70 -0
- data/spec/models/connectable_datacenter_spec.rb +46 -0
- data/spec/models/contract_properties_spec.rb +58 -0
- data/spec/models/contract_spec.rb +40 -0
- data/spec/models/data_center_entities_spec.rb +52 -0
- data/spec/models/datacenter_element_metadata_spec.rb +80 -0
- data/spec/models/datacenter_properties_spec.rb +68 -0
- data/spec/models/datacenter_spec.rb +64 -0
- data/spec/models/datacenters_spec.rb +70 -0
- data/spec/models/error_message_spec.rb +40 -0
- data/spec/models/error_spec.rb +40 -0
- data/spec/models/firewall_rule_spec.rb +58 -0
- data/spec/models/firewall_rules_spec.rb +70 -0
- data/spec/models/firewallrule_properties_spec.rb +98 -0
- data/spec/models/group_entities_spec.rb +40 -0
- data/spec/models/group_members_spec.rb +52 -0
- data/spec/models/group_properties_spec.rb +88 -0
- data/spec/models/group_share_properties_spec.rb +40 -0
- data/spec/models/group_share_spec.rb +52 -0
- data/spec/models/group_shares_spec.rb +52 -0
- data/spec/models/group_spec.rb +58 -0
- data/spec/models/group_users_spec.rb +52 -0
- data/spec/models/groups_spec.rb +52 -0
- data/spec/models/image_properties_spec.rb +138 -0
- data/spec/models/image_spec.rb +58 -0
- data/spec/models/images_spec.rb +52 -0
- data/spec/models/info_spec.rb +46 -0
- data/spec/models/ip_block_properties_spec.rb +58 -0
- data/spec/models/ip_block_spec.rb +58 -0
- data/spec/models/ip_blocks_spec.rb +52 -0
- data/spec/models/ip_consumer_spec.rb +70 -0
- data/spec/models/ip_failover_spec.rb +40 -0
- data/spec/models/kubernetes_auto_scaling_spec.rb +40 -0
- data/spec/models/kubernetes_cluster_entities_spec.rb +34 -0
- data/spec/models/kubernetes_cluster_properties_for_post_and_put_spec.rb +46 -0
- data/spec/models/kubernetes_cluster_properties_spec.rb +58 -0
- data/spec/models/kubernetes_cluster_spec.rb +68 -0
- data/spec/models/kubernetes_clusters_spec.rb +56 -0
- data/spec/models/kubernetes_config_properties_spec.rb +34 -0
- data/spec/models/kubernetes_config_spec.rb +56 -0
- data/spec/models/kubernetes_maintenance_window_spec.rb +44 -0
- data/spec/models/kubernetes_node_metadata_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_for_put_spec.rb +62 -0
- data/spec/models/kubernetes_node_pool_lan_spec.rb +34 -0
- data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +132 -0
- data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +132 -0
- data/spec/models/kubernetes_node_pool_properties_spec.rb +138 -0
- data/spec/models/kubernetes_node_pool_spec.rb +62 -0
- data/spec/models/kubernetes_node_pools_spec.rb +56 -0
- data/spec/models/kubernetes_node_properties_spec.rb +46 -0
- data/spec/models/kubernetes_node_spec.rb +62 -0
- data/spec/models/kubernetes_nodes_spec.rb +56 -0
- data/spec/models/label_properties_spec.rb +58 -0
- data/spec/models/label_resource_properties_spec.rb +40 -0
- data/spec/models/label_resource_spec.rb +62 -0
- data/spec/models/label_resources_spec.rb +74 -0
- data/spec/models/label_spec.rb +62 -0
- data/spec/models/labels_spec.rb +56 -0
- data/spec/models/lan_entities_spec.rb +34 -0
- data/spec/models/lan_nics_spec.rb +70 -0
- data/spec/models/lan_post_spec.rb +64 -0
- data/spec/models/lan_properties_post_spec.rb +52 -0
- data/spec/models/lan_properties_spec.rb +52 -0
- data/spec/models/lan_spec.rb +64 -0
- data/spec/models/lans_spec.rb +70 -0
- data/spec/models/loadbalancer_entities_spec.rb +34 -0
- data/spec/models/loadbalancer_properties_spec.rb +50 -0
- data/spec/models/loadbalancer_spec.rb +64 -0
- data/spec/models/loadbalancers_spec.rb +70 -0
- data/spec/models/location_properties_spec.rb +50 -0
- data/spec/models/location_spec.rb +58 -0
- data/spec/models/locations_spec.rb +52 -0
- data/spec/models/nic_entities_spec.rb +34 -0
- data/spec/models/nic_properties_spec.rb +70 -0
- data/spec/models/nic_spec.rb +64 -0
- data/spec/models/nics_spec.rb +70 -0
- data/spec/models/no_state_meta_data_spec.rb +70 -0
- data/spec/models/pagination_links_spec.rb +46 -0
- data/spec/models/peer_spec.rb +58 -0
- data/spec/models/private_cross_connect_properties_spec.rb +52 -0
- data/spec/models/private_cross_connect_spec.rb +58 -0
- data/spec/models/private_cross_connects_spec.rb +52 -0
- data/spec/models/request_metadata_spec.rb +52 -0
- data/spec/models/request_properties_spec.rb +52 -0
- data/spec/models/request_spec.rb +58 -0
- data/spec/models/request_status_metadata_spec.rb +56 -0
- data/spec/models/request_status_spec.rb +52 -0
- data/spec/models/request_target_spec.rb +44 -0
- data/spec/models/requests_spec.rb +70 -0
- data/spec/models/resource_entities_spec.rb +34 -0
- data/spec/models/resource_groups_spec.rb +52 -0
- data/spec/models/resource_limits_spec.rb +130 -0
- data/spec/models/resource_properties_spec.rb +40 -0
- data/spec/models/resource_reference_spec.rb +46 -0
- data/spec/models/resource_spec.rb +64 -0
- data/spec/models/resources_spec.rb +52 -0
- data/spec/models/resources_users_spec.rb +52 -0
- data/spec/models/s3_key_metadata_spec.rb +40 -0
- data/spec/models/s3_key_properties_spec.rb +40 -0
- data/spec/models/s3_key_spec.rb +58 -0
- data/spec/models/s3_keys_spec.rb +52 -0
- data/spec/models/s3_object_storage_sso_spec.rb +34 -0
- data/spec/models/server_entities_spec.rb +46 -0
- data/spec/models/server_properties_spec.rb +84 -0
- data/spec/models/server_spec.rb +64 -0
- data/spec/models/servers_spec.rb +70 -0
- data/spec/models/snapshot_properties_spec.rb +128 -0
- data/spec/models/snapshot_spec.rb +58 -0
- data/spec/models/snapshots_spec.rb +52 -0
- data/spec/models/type_spec.rb +28 -0
- data/spec/models/user_metadata_spec.rb +46 -0
- data/spec/models/user_properties_spec.rb +82 -0
- data/spec/models/user_spec.rb +64 -0
- data/spec/models/users_entities_spec.rb +40 -0
- data/spec/models/users_spec.rb +52 -0
- data/spec/models/volume_properties_spec.rb +152 -0
- data/spec/models/volume_spec.rb +58 -0
- data/spec/models/volumes_spec.rb +70 -0
- data/spec/spec_helper.rb +111 -0
- metadata +532 -0
@@ -0,0 +1,251 @@
|
|
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.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Ionoscloud::NicApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'NicApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Ionoscloud::NicApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of NicApi' do
|
30
|
+
it 'should create an instance of NicApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Ionoscloud::NicApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for datacenters_servers_nics_delete
|
36
|
+
# Delete a Nic
|
37
|
+
# Deletes the specified NIC.
|
38
|
+
# @param datacenter_id The unique ID of the datacenter
|
39
|
+
# @param server_id The unique ID of the Server
|
40
|
+
# @param nic_id The unique ID of the NIC
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
43
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
44
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
45
|
+
# @return [Object]
|
46
|
+
describe 'datacenters_servers_nics_delete test' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# unit tests for datacenters_servers_nics_find_by_id
|
53
|
+
# Retrieve a Nic
|
54
|
+
# Retrieves the attributes of a given NIC
|
55
|
+
# @param datacenter_id The unique ID of the datacenter
|
56
|
+
# @param server_id The unique ID of the Server
|
57
|
+
# @param nic_id The unique ID of the NIC
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
60
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
61
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
62
|
+
# @return [Nic]
|
63
|
+
describe 'datacenters_servers_nics_find_by_id test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for datacenters_servers_nics_firewallrules_delete
|
70
|
+
# Delete a Firewall Rule
|
71
|
+
# Removes the specific Firewall Rule
|
72
|
+
# @param datacenter_id The unique ID of the datacenter
|
73
|
+
# @param server_id The unique ID of the Server
|
74
|
+
# @param nic_id The unique ID of the NIC
|
75
|
+
# @param firewallrule_id The unique ID of the Firewall Rule
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
78
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
79
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
80
|
+
# @return [Object]
|
81
|
+
describe 'datacenters_servers_nics_firewallrules_delete test' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for datacenters_servers_nics_firewallrules_find_by_id
|
88
|
+
# Retrieve a Firewall Rule
|
89
|
+
# Retrieves the attributes of a given Firewall Rule.
|
90
|
+
# @param datacenter_id The unique ID of the datacenter
|
91
|
+
# @param server_id The unique ID of the Server
|
92
|
+
# @param nic_id The unique ID of the NIC
|
93
|
+
# @param firewallrule_id The unique ID of the Firewall Rule
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
96
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
97
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
98
|
+
# @return [FirewallRule]
|
99
|
+
describe 'datacenters_servers_nics_firewallrules_find_by_id test' do
|
100
|
+
it 'should work' do
|
101
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
102
|
+
end
|
103
|
+
end
|
104
|
+
|
105
|
+
# unit tests for datacenters_servers_nics_firewallrules_get
|
106
|
+
# List Firewall Rules
|
107
|
+
# Retrieves a list of firewall rules associated with a particular NIC
|
108
|
+
# @param datacenter_id The unique ID of the datacenter
|
109
|
+
# @param server_id The unique ID of the Server
|
110
|
+
# @param nic_id The unique ID of the NIC
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
113
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
114
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
115
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
116
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
117
|
+
# @return [FirewallRules]
|
118
|
+
describe 'datacenters_servers_nics_firewallrules_get test' do
|
119
|
+
it 'should work' do
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
# unit tests for datacenters_servers_nics_firewallrules_patch
|
125
|
+
# Partially modify a Firewall Rule
|
126
|
+
# You can use update attributes of a resource
|
127
|
+
# @param datacenter_id The unique ID of the datacenter
|
128
|
+
# @param server_id The unique ID of the Server
|
129
|
+
# @param nic_id The unique ID of the NIC
|
130
|
+
# @param firewallrule_id The unique ID of the Firewall Rule
|
131
|
+
# @param firewallrule Modified Firewall Rule
|
132
|
+
# @param [Hash] opts the optional parameters
|
133
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
134
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
135
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
136
|
+
# @return [FirewallRule]
|
137
|
+
describe 'datacenters_servers_nics_firewallrules_patch test' do
|
138
|
+
it 'should work' do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# unit tests for datacenters_servers_nics_firewallrules_post
|
144
|
+
# Create a Firewall Rule
|
145
|
+
# This will add a Firewall Rule to the NIC
|
146
|
+
# @param datacenter_id The unique ID of the datacenter
|
147
|
+
# @param server_id The unique ID of the server
|
148
|
+
# @param nic_id The unique ID of the NIC
|
149
|
+
# @param firewallrule Firewall Rule to be created
|
150
|
+
# @param [Hash] opts the optional parameters
|
151
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
152
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
153
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
154
|
+
# @return [FirewallRule]
|
155
|
+
describe 'datacenters_servers_nics_firewallrules_post test' do
|
156
|
+
it 'should work' do
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
# unit tests for datacenters_servers_nics_firewallrules_put
|
162
|
+
# Modify a Firewall Rule
|
163
|
+
# You can use update attributes of a resource
|
164
|
+
# @param datacenter_id The unique ID of the datacenter
|
165
|
+
# @param server_id The unique ID of the Server
|
166
|
+
# @param nic_id The unique ID of the NIC
|
167
|
+
# @param firewallrule_id The unique ID of the Firewall Rule
|
168
|
+
# @param firewallrule Modified Firewall Rule
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
171
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
172
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
173
|
+
# @return [FirewallRule]
|
174
|
+
describe 'datacenters_servers_nics_firewallrules_put test' do
|
175
|
+
it 'should work' do
|
176
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# unit tests for datacenters_servers_nics_get
|
181
|
+
# List Nics
|
182
|
+
# Retrieves a list of NICs.
|
183
|
+
# @param datacenter_id The unique ID of the datacenter
|
184
|
+
# @param server_id The unique ID of the Server
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
187
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
188
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
189
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
190
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
191
|
+
# @return [Nics]
|
192
|
+
describe 'datacenters_servers_nics_get test' do
|
193
|
+
it 'should work' do
|
194
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# unit tests for datacenters_servers_nics_patch
|
199
|
+
# Partially modify a Nic
|
200
|
+
# You can use update attributes of a Nic
|
201
|
+
# @param datacenter_id The unique ID of the datacenter
|
202
|
+
# @param server_id The unique ID of the Server
|
203
|
+
# @param nic_id The unique ID of the NIC
|
204
|
+
# @param nic Modified properties of Nic
|
205
|
+
# @param [Hash] opts the optional parameters
|
206
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
207
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
208
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
209
|
+
# @return [Nic]
|
210
|
+
describe 'datacenters_servers_nics_patch test' do
|
211
|
+
it 'should work' do
|
212
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
# unit tests for datacenters_servers_nics_post
|
217
|
+
# Create a Nic
|
218
|
+
# Adds a NIC to the target server. Combine count of Nics and volumes attached to the server should not exceed size 24.
|
219
|
+
# @param datacenter_id The unique ID of the datacenter
|
220
|
+
# @param server_id The unique ID of the Server
|
221
|
+
# @param nic Nic to be created
|
222
|
+
# @param [Hash] opts the optional parameters
|
223
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
224
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
225
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
226
|
+
# @return [Nic]
|
227
|
+
describe 'datacenters_servers_nics_post test' do
|
228
|
+
it 'should work' do
|
229
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
# unit tests for datacenters_servers_nics_put
|
234
|
+
# Modify a Nic
|
235
|
+
# You can use update attributes of a Nic
|
236
|
+
# @param datacenter_id The unique ID of the datacenter
|
237
|
+
# @param server_id The unique ID of the Server
|
238
|
+
# @param nic_id The unique ID of the NIC
|
239
|
+
# @param nic Modified Nic
|
240
|
+
# @param [Hash] opts the optional parameters
|
241
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
242
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
243
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
244
|
+
# @return [Nic]
|
245
|
+
describe 'datacenters_servers_nics_put test' do
|
246
|
+
it 'should work' do
|
247
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
end
|
@@ -0,0 +1,110 @@
|
|
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.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Ionoscloud::PrivateCrossConnectApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PrivateCrossConnectApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Ionoscloud::PrivateCrossConnectApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PrivateCrossConnectApi' do
|
30
|
+
it 'should create an instance of PrivateCrossConnectApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Ionoscloud::PrivateCrossConnectApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for pccs_delete
|
36
|
+
# Delete a Private Cross-Connect
|
37
|
+
# Delete a private cross-connect if no datacenters are joined to the given PCC
|
38
|
+
# @param pcc_id The unique ID of the private cross-connect
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
41
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
42
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
43
|
+
# @return [Object]
|
44
|
+
describe 'pccs_delete test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for pccs_find_by_id
|
51
|
+
# Retrieve a Private Cross-Connect
|
52
|
+
# You can retrieve a private cross-connect by using the resource's ID. This value can be found in the response body when a private cross-connect is created or when you GET a list of private cross-connects.
|
53
|
+
# @param pcc_id The unique ID of the private cross-connect
|
54
|
+
# @param [Hash] opts the optional parameters
|
55
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
56
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
57
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
58
|
+
# @return [PrivateCrossConnect]
|
59
|
+
describe 'pccs_find_by_id test' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# unit tests for pccs_get
|
66
|
+
# List Private Cross-Connects
|
67
|
+
# You can retrieve a complete list of private cross-connects provisioned under your account
|
68
|
+
# @param [Hash] opts the optional parameters
|
69
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
70
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
71
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
72
|
+
# @return [PrivateCrossConnects]
|
73
|
+
describe 'pccs_get test' do
|
74
|
+
it 'should work' do
|
75
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
# unit tests for pccs_patch
|
80
|
+
# Partially modify a private cross-connect
|
81
|
+
# You can use update private cross-connect to re-name or update its description
|
82
|
+
# @param pcc_id The unique ID of the private cross-connect
|
83
|
+
# @param pcc Modified properties of private cross-connect
|
84
|
+
# @param [Hash] opts the optional parameters
|
85
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
86
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
87
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
88
|
+
# @return [PrivateCrossConnect]
|
89
|
+
describe 'pccs_patch test' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# unit tests for pccs_post
|
96
|
+
# Create a Private Cross-Connect
|
97
|
+
# You can use this POST method to create a private cross-connect
|
98
|
+
# @param pcc Private Cross-Connect to be created
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
101
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
102
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
103
|
+
# @return [PrivateCrossConnect]
|
104
|
+
describe 'pccs_post test' do
|
105
|
+
it 'should work' do
|
106
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
end
|
@@ -0,0 +1,84 @@
|
|
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.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Ionoscloud::RequestApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RequestApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Ionoscloud::RequestApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of RequestApi' do
|
30
|
+
it 'should create an instance of RequestApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Ionoscloud::RequestApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for requests_find_by_id
|
36
|
+
# Retrieve a Request
|
37
|
+
# Retrieves the attributes of a given request.
|
38
|
+
# @param request_id
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
41
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
42
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
43
|
+
# @return [Request]
|
44
|
+
describe 'requests_find_by_id test' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
# unit tests for requests_get
|
51
|
+
# List Requests
|
52
|
+
# Retrieve a list of API requests.
|
53
|
+
# @param [Hash] opts the optional parameters
|
54
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
55
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
56
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
57
|
+
# @option opts [String] :filter_status Request status filter to fetch all the request based on a particular status [QUEUED, RUNNING, DONE, FAILED]
|
58
|
+
# @option opts [String] :filter_created_after Filter all the requests after the created date
|
59
|
+
# @option opts [String] :filter_created_before Filter all the requests before the created date
|
60
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
61
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
62
|
+
# @return [Requests]
|
63
|
+
describe 'requests_get test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for requests_status_get
|
70
|
+
# Retrieve Request Status
|
71
|
+
# Retrieves the status of a given request.
|
72
|
+
# @param request_id
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
75
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
76
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
77
|
+
# @return [RequestStatus]
|
78
|
+
describe 'requests_status_get test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
end
|
@@ -0,0 +1,337 @@
|
|
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.0.1-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Ionoscloud::ServerApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'ServerApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Ionoscloud::ServerApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of ServerApi' do
|
30
|
+
it 'should create an instance of ServerApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Ionoscloud::ServerApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for datacenters_servers_cdroms_delete
|
36
|
+
# Detach a CD-ROM
|
37
|
+
# This will detach a CD-ROM from the server
|
38
|
+
# @param datacenter_id The unique ID of the Datacenter
|
39
|
+
# @param server_id The unique ID of the Server
|
40
|
+
# @param cdrom_id The unique ID of the CD-ROM
|
41
|
+
# @param [Hash] opts the optional parameters
|
42
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
43
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
44
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
45
|
+
# @return [Object]
|
46
|
+
describe 'datacenters_servers_cdroms_delete test' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# unit tests for datacenters_servers_cdroms_find_by_id
|
53
|
+
# Retrieve an attached CD-ROM
|
54
|
+
# You can retrieve a specific CD-ROM attached to the server
|
55
|
+
# @param datacenter_id The unique ID of the Datacenter
|
56
|
+
# @param server_id The unique ID of the Server
|
57
|
+
# @param cdrom_id The unique ID of the CD-ROM
|
58
|
+
# @param [Hash] opts the optional parameters
|
59
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
60
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
61
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
62
|
+
# @return [Image]
|
63
|
+
describe 'datacenters_servers_cdroms_find_by_id test' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
# unit tests for datacenters_servers_cdroms_get
|
70
|
+
# List attached CD-ROMs
|
71
|
+
# You can retrieve a list of CD-ROMs attached to the server.
|
72
|
+
# @param datacenter_id The unique ID of the Datacenter
|
73
|
+
# @param server_id The unique ID of the Server
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
76
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
77
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
78
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
79
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
80
|
+
# @return [Cdroms]
|
81
|
+
describe 'datacenters_servers_cdroms_get test' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for datacenters_servers_cdroms_post
|
88
|
+
# Attach a CD-ROM
|
89
|
+
# You can attach a CD-ROM to an existing server. You can attach up to 2 CD-ROMs to one server.
|
90
|
+
# @param datacenter_id The unique ID of the Datacenter
|
91
|
+
# @param server_id The unique ID of the Server
|
92
|
+
# @param cdrom CD-ROM to be attached
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
95
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
96
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
97
|
+
# @return [Image]
|
98
|
+
describe 'datacenters_servers_cdroms_post test' do
|
99
|
+
it 'should work' do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# unit tests for datacenters_servers_delete
|
105
|
+
# Delete a Server
|
106
|
+
# This will remove a server from your datacenter; however, it will not remove the storage volumes attached to the server. You will need to make a separate API call to perform that action
|
107
|
+
# @param datacenter_id The unique ID of the datacenter
|
108
|
+
# @param server_id The unique ID of the Server
|
109
|
+
# @param [Hash] opts the optional parameters
|
110
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
111
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
112
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
113
|
+
# @return [Object]
|
114
|
+
describe 'datacenters_servers_delete test' do
|
115
|
+
it 'should work' do
|
116
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
# unit tests for datacenters_servers_find_by_id
|
121
|
+
# Retrieve a Server
|
122
|
+
# Returns information about a server such as its configuration, provisioning status, etc.
|
123
|
+
# @param datacenter_id The unique ID of the datacenter
|
124
|
+
# @param server_id The unique ID of the Server
|
125
|
+
# @param [Hash] opts the optional parameters
|
126
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
127
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
128
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
129
|
+
# @return [Server]
|
130
|
+
describe 'datacenters_servers_find_by_id test' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# unit tests for datacenters_servers_get
|
137
|
+
# List Servers
|
138
|
+
# You can retrieve a list of servers within a datacenter
|
139
|
+
# @param datacenter_id The unique ID of the datacenter
|
140
|
+
# @param [Hash] opts the optional parameters
|
141
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
142
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
143
|
+
# @option opts [Boolean] :upgrade_needed It can be used to filter which servers can be upgraded which can not be upgraded.
|
144
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
145
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
146
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
147
|
+
# @return [Servers]
|
148
|
+
describe 'datacenters_servers_get test' do
|
149
|
+
it 'should work' do
|
150
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
# unit tests for datacenters_servers_patch
|
155
|
+
# Partially modify a Server
|
156
|
+
# You can use update attributes of a server
|
157
|
+
# @param datacenter_id The unique ID of the datacenter
|
158
|
+
# @param server_id The unique ID of the server
|
159
|
+
# @param server Modified properties of Server
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
162
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
163
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
164
|
+
# @return [Server]
|
165
|
+
describe 'datacenters_servers_patch test' do
|
166
|
+
it 'should work' do
|
167
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
# unit tests for datacenters_servers_post
|
172
|
+
# Create a Server
|
173
|
+
# Creates a server within an existing datacenter. You can configure the boot volume and connect the server to an existing LAN.
|
174
|
+
# @param datacenter_id The unique ID of the datacenter
|
175
|
+
# @param server Server to be created
|
176
|
+
# @param [Hash] opts the optional parameters
|
177
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
178
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
179
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
180
|
+
# @return [Server]
|
181
|
+
describe 'datacenters_servers_post test' do
|
182
|
+
it 'should work' do
|
183
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# unit tests for datacenters_servers_put
|
188
|
+
# Modify a Server
|
189
|
+
# Allows to modify the attributes of a Server. From v5 onwards 'allowReboot' attribute will no longer be available. For certain server property change it was earlier forced to be provided. Now this behaviour is implicit and backend will do this automatically e.g. in earlier versions, when CPU family changes, the 'allowReboot' property was required to be set to true which will no longer be the case and the server will be rebooted automatically
|
190
|
+
# @param datacenter_id The unique ID of the datacenter
|
191
|
+
# @param server_id The unique ID of the server
|
192
|
+
# @param server Modified Server
|
193
|
+
# @param [Hash] opts the optional parameters
|
194
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
195
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
196
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
197
|
+
# @return [Server]
|
198
|
+
describe 'datacenters_servers_put test' do
|
199
|
+
it 'should work' do
|
200
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# unit tests for datacenters_servers_reboot_post
|
205
|
+
# Reboot a Server
|
206
|
+
# This will force a hard reboot of the server. Do not use this method if you want to gracefully reboot the machine. This is the equivalent of powering off the machine and turning it back on.
|
207
|
+
# @param datacenter_id The unique ID of the datacenter
|
208
|
+
# @param server_id The unique ID of the Server
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
211
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
212
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
213
|
+
# @return [Object]
|
214
|
+
describe 'datacenters_servers_reboot_post test' do
|
215
|
+
it 'should work' do
|
216
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# unit tests for datacenters_servers_start_post
|
221
|
+
# Start a Server
|
222
|
+
# This will start a server. If the server's public IP was deallocated then a new IP will be assigned
|
223
|
+
# @param datacenter_id The unique ID of the datacenter
|
224
|
+
# @param server_id The unique ID of the Server
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
227
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
228
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
229
|
+
# @return [Object]
|
230
|
+
describe 'datacenters_servers_start_post test' do
|
231
|
+
it 'should work' do
|
232
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# unit tests for datacenters_servers_stop_post
|
237
|
+
# Stop a Server
|
238
|
+
# This will stop a server. The machine will be forcefully powered off, billing will cease, and the public IP, if one is allocated, will be deallocated. The operation is not supported for Cube servers.
|
239
|
+
# @param datacenter_id The unique ID of the datacenter
|
240
|
+
# @param server_id The unique ID of the Server
|
241
|
+
# @param [Hash] opts the optional parameters
|
242
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
243
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
244
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
245
|
+
# @return [Object]
|
246
|
+
describe 'datacenters_servers_stop_post test' do
|
247
|
+
it 'should work' do
|
248
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
# unit tests for datacenters_servers_upgrade_post
|
253
|
+
# Upgrade a Server
|
254
|
+
# This will upgrade the version of the server, if needed. To verify if there is an upgrade available for a server, call '/datacenters/{datacenterId}/servers?upgradeNeeded=true'
|
255
|
+
# @param datacenter_id The unique ID of the datacenter
|
256
|
+
# @param server_id The unique ID of the Server
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
259
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
260
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
261
|
+
# @return [Object]
|
262
|
+
describe 'datacenters_servers_upgrade_post test' do
|
263
|
+
it 'should work' do
|
264
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
# unit tests for datacenters_servers_volumes_delete
|
269
|
+
# Detach a volume
|
270
|
+
# This will detach the volume from the server. This will not delete the volume from your datacenter. You will need to make a separate request to perform a deletion
|
271
|
+
# @param datacenter_id The unique ID of the Datacenter
|
272
|
+
# @param server_id The unique ID of the Server
|
273
|
+
# @param volume_id The unique ID of the Volume
|
274
|
+
# @param [Hash] opts the optional parameters
|
275
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
276
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
277
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
278
|
+
# @return [Object]
|
279
|
+
describe 'datacenters_servers_volumes_delete test' do
|
280
|
+
it 'should work' do
|
281
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# unit tests for datacenters_servers_volumes_find_by_id
|
286
|
+
# Retrieve an attached volume
|
287
|
+
# This will retrieve the properties of an attached volume.
|
288
|
+
# @param datacenter_id The unique ID of the Datacenter
|
289
|
+
# @param server_id The unique ID of the Server
|
290
|
+
# @param volume_id The unique ID of the Volume
|
291
|
+
# @param [Hash] opts the optional parameters
|
292
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
293
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
294
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
295
|
+
# @return [Volume]
|
296
|
+
describe 'datacenters_servers_volumes_find_by_id test' do
|
297
|
+
it 'should work' do
|
298
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
302
|
+
# unit tests for datacenters_servers_volumes_get
|
303
|
+
# List Attached Volumes
|
304
|
+
# You can retrieve a list of volumes attached to the server
|
305
|
+
# @param datacenter_id The unique ID of the Datacenter
|
306
|
+
# @param server_id The unique ID of the Server
|
307
|
+
# @param [Hash] opts the optional parameters
|
308
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
309
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
310
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
311
|
+
# @option opts [Integer] :offset the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
|
312
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
313
|
+
# @return [AttachedVolumes]
|
314
|
+
describe 'datacenters_servers_volumes_get test' do
|
315
|
+
it 'should work' do
|
316
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
# unit tests for datacenters_servers_volumes_post
|
321
|
+
# Attach a volume
|
322
|
+
# This will attach a pre-existing storage volume to the server. It is also possible to create and attach a volume in one step just by providing a new volume description as payload. Combine count of Nics and volumes attached to the server should not exceed size 24.
|
323
|
+
# @param datacenter_id The unique ID of the Datacenter
|
324
|
+
# @param server_id The unique ID of the Server
|
325
|
+
# @param volume Volume to be attached (created and attached)
|
326
|
+
# @param [Hash] opts the optional parameters
|
327
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
328
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
329
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
330
|
+
# @return [Volume]
|
331
|
+
describe 'datacenters_servers_volumes_post test' do
|
332
|
+
it 'should work' do
|
333
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
334
|
+
end
|
335
|
+
end
|
336
|
+
|
337
|
+
end
|