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,171 @@
|
|
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::VolumeApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'VolumeApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = Ionoscloud::VolumeApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of VolumeApi' do
|
30
|
+
it 'should create an instance of VolumeApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(Ionoscloud::VolumeApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for datacenters_volumes_create_snapshot_post
|
36
|
+
# Create Volume Snapshot
|
37
|
+
# Creates a snapshot of a volume within the datacenter. You can use a snapshot to create a new storage volume or to restore a storage volume.
|
38
|
+
# @param datacenter_id The unique ID of the datacenter
|
39
|
+
# @param volume_id The unique ID of the Volume
|
40
|
+
# @param [Hash] opts the optional parameters
|
41
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
42
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
43
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
44
|
+
# @option opts [String] :name The name of the snapshot
|
45
|
+
# @option opts [String] :description The description of the snapshot
|
46
|
+
# @option opts [Boolean] :sec_auth_protection Flag representing if extra protection is enabled on snapshot e.g. Two Factor protection etc.
|
47
|
+
# @option opts [String] :licence_type The OS type of this Snapshot
|
48
|
+
# @return [Snapshot]
|
49
|
+
describe 'datacenters_volumes_create_snapshot_post test' do
|
50
|
+
it 'should work' do
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# unit tests for datacenters_volumes_delete
|
56
|
+
# Delete a Volume
|
57
|
+
# Deletes the specified volume. This will result in the volume being removed from your datacenter. Use this with caution.
|
58
|
+
# @param datacenter_id The unique ID of the datacenter
|
59
|
+
# @param volume_id The unique ID of the Volume
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
62
|
+
# @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
|
63
|
+
# @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
|
64
|
+
# @return [Object]
|
65
|
+
describe 'datacenters_volumes_delete test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for datacenters_volumes_find_by_id
|
72
|
+
# Retrieve a Volume
|
73
|
+
# Retrieves the attributes of a given Volume
|
74
|
+
# @param datacenter_id The unique ID of the datacenter
|
75
|
+
# @param volume_id The unique ID of the Volume
|
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 [Volume]
|
81
|
+
describe 'datacenters_volumes_find_by_id 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_volumes_get
|
88
|
+
# List Volumes
|
89
|
+
# Retrieves a list of Volumes.
|
90
|
+
# @param datacenter_id The unique ID of the datacenter
|
91
|
+
# @param [Hash] opts the optional parameters
|
92
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
93
|
+
# @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
|
94
|
+
# @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
|
95
|
+
# @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)
|
96
|
+
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
97
|
+
# @return [Volumes]
|
98
|
+
describe 'datacenters_volumes_get 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_volumes_patch
|
105
|
+
# Partially modify a Volume
|
106
|
+
# You can use update attributes of a Volume
|
107
|
+
# @param datacenter_id The unique ID of the datacenter
|
108
|
+
# @param volume_id The unique ID of the Volume
|
109
|
+
# @param volume Modified properties of Volume
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
112
|
+
# @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
|
113
|
+
# @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
|
114
|
+
# @return [Volume]
|
115
|
+
describe 'datacenters_volumes_patch test' do
|
116
|
+
it 'should work' do
|
117
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
# unit tests for datacenters_volumes_post
|
122
|
+
# Create a Volume
|
123
|
+
# Creates a volume within the datacenter. This will not attach the volume to a server. Please see the Servers section for details on how to attach storage volumes
|
124
|
+
# @param datacenter_id The unique ID of the datacenter
|
125
|
+
# @param volume Volume to be created
|
126
|
+
# @param [Hash] opts the optional parameters
|
127
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
128
|
+
# @option opts [Integer] :depth Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
|
129
|
+
# @option opts [Integer] :x_contract_number Users having more than 1 contract need to provide contract number, against which all API requests should be executed
|
130
|
+
# @return [Volume]
|
131
|
+
describe 'datacenters_volumes_post test' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
# unit tests for datacenters_volumes_put
|
138
|
+
# Modify a Volume
|
139
|
+
# You can use update attributes of a Volume
|
140
|
+
# @param datacenter_id The unique ID of the datacenter
|
141
|
+
# @param volume_id The unique ID of the Volume
|
142
|
+
# @param volume Modified Volume
|
143
|
+
# @param [Hash] opts the optional parameters
|
144
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
145
|
+
# @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
|
146
|
+
# @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
|
147
|
+
# @return [Volume]
|
148
|
+
describe 'datacenters_volumes_put 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_volumes_restore_snapshot_post
|
155
|
+
# Restore Volume Snapshot
|
156
|
+
# This will restore a snapshot onto a volume. A snapshot is created as just another image that can be used to create subsequent volumes if you want or to restore an existing volume.
|
157
|
+
# @param datacenter_id The unique ID of the datacenter
|
158
|
+
# @param volume_id The unique ID of the Volume
|
159
|
+
# @param [Hash] opts the optional parameters
|
160
|
+
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
161
|
+
# @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
|
162
|
+
# @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
|
163
|
+
# @option opts [String] :snapshot_id This is the ID of the snapshot
|
164
|
+
# @return [Object]
|
165
|
+
describe 'datacenters_volumes_restore_snapshot_post 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
|
+
end
|
@@ -0,0 +1,226 @@
|
|
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
|
+
|
15
|
+
describe Ionoscloud::ApiClient do
|
16
|
+
context 'initialization' do
|
17
|
+
context 'URL stuff' do
|
18
|
+
context 'host' do
|
19
|
+
it 'removes http from host' do
|
20
|
+
Ionoscloud.configure { |c| c.host = 'http://example.com' }
|
21
|
+
expect(Ionoscloud::Configuration.default.host).to eq('example.com')
|
22
|
+
end
|
23
|
+
|
24
|
+
it 'removes https from host' do
|
25
|
+
Ionoscloud.configure { |c| c.host = 'https://wookiee.com' }
|
26
|
+
expect(Ionoscloud::ApiClient.default.config.host).to eq('wookiee.com')
|
27
|
+
end
|
28
|
+
|
29
|
+
it 'removes trailing path from host' do
|
30
|
+
Ionoscloud.configure { |c| c.host = 'hobo.com/v4' }
|
31
|
+
expect(Ionoscloud::Configuration.default.host).to eq('hobo.com')
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
context 'base_path' do
|
36
|
+
it "prepends a slash to base_path" do
|
37
|
+
Ionoscloud.configure { |c| c.base_path = 'v4/dog' }
|
38
|
+
expect(Ionoscloud::Configuration.default.base_path).to eq('/v4/dog')
|
39
|
+
end
|
40
|
+
|
41
|
+
it "doesn't prepend a slash if one is already there" do
|
42
|
+
Ionoscloud.configure { |c| c.base_path = '/v4/dog' }
|
43
|
+
expect(Ionoscloud::Configuration.default.base_path).to eq('/v4/dog')
|
44
|
+
end
|
45
|
+
|
46
|
+
it "ends up as a blank string if nil" do
|
47
|
+
Ionoscloud.configure { |c| c.base_path = nil }
|
48
|
+
expect(Ionoscloud::Configuration.default.base_path).to eq('')
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'params_encoding in #build_request' do
|
55
|
+
let(:config) { Ionoscloud::Configuration.new }
|
56
|
+
let(:api_client) { Ionoscloud::ApiClient.new(config) }
|
57
|
+
|
58
|
+
it 'defaults to nil' do
|
59
|
+
expect(Ionoscloud::Configuration.default.params_encoding).to eq(nil)
|
60
|
+
expect(config.params_encoding).to eq(nil)
|
61
|
+
|
62
|
+
request = api_client.build_request(:get, '/test')
|
63
|
+
expect(request.options[:params_encoding]).to eq(nil)
|
64
|
+
end
|
65
|
+
|
66
|
+
it 'can be customized' do
|
67
|
+
config.params_encoding = :multi
|
68
|
+
request = api_client.build_request(:get, '/test')
|
69
|
+
expect(request.options[:params_encoding]).to eq(:multi)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
describe 'timeout in #build_request' do
|
74
|
+
let(:config) { Ionoscloud::Configuration.new }
|
75
|
+
let(:api_client) { Ionoscloud::ApiClient.new(config) }
|
76
|
+
|
77
|
+
it 'defaults to 0' do
|
78
|
+
expect(Ionoscloud::Configuration.default.timeout).to eq(0)
|
79
|
+
expect(config.timeout).to eq(0)
|
80
|
+
|
81
|
+
request = api_client.build_request(:get, '/test')
|
82
|
+
expect(request.options[:timeout]).to eq(0)
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'can be customized' do
|
86
|
+
config.timeout = 100
|
87
|
+
request = api_client.build_request(:get, '/test')
|
88
|
+
expect(request.options[:timeout]).to eq(100)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe '#deserialize' do
|
93
|
+
it "handles Array<Integer>" do
|
94
|
+
api_client = Ionoscloud::ApiClient.new
|
95
|
+
headers = { 'Content-Type' => 'application/json' }
|
96
|
+
response = double('response', headers: headers, body: '[12, 34]')
|
97
|
+
data = api_client.deserialize(response, 'Array<Integer>')
|
98
|
+
expect(data).to be_instance_of(Array)
|
99
|
+
expect(data).to eq([12, 34])
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'handles Array<Array<Integer>>' do
|
103
|
+
api_client = Ionoscloud::ApiClient.new
|
104
|
+
headers = { 'Content-Type' => 'application/json' }
|
105
|
+
response = double('response', headers: headers, body: '[[12, 34], [56]]')
|
106
|
+
data = api_client.deserialize(response, 'Array<Array<Integer>>')
|
107
|
+
expect(data).to be_instance_of(Array)
|
108
|
+
expect(data).to eq([[12, 34], [56]])
|
109
|
+
end
|
110
|
+
|
111
|
+
it 'handles Hash<String, String>' do
|
112
|
+
api_client = Ionoscloud::ApiClient.new
|
113
|
+
headers = { 'Content-Type' => 'application/json' }
|
114
|
+
response = double('response', headers: headers, body: '{"message": "Hello"}')
|
115
|
+
data = api_client.deserialize(response, 'Hash<String, String>')
|
116
|
+
expect(data).to be_instance_of(Hash)
|
117
|
+
expect(data).to eq(:message => 'Hello')
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
121
|
+
describe "#object_to_hash" do
|
122
|
+
it 'ignores nils and includes empty arrays' do
|
123
|
+
# uncomment below to test object_to_hash for model
|
124
|
+
# api_client = Ionoscloud::ApiClient.new
|
125
|
+
# _model = Ionoscloud::ModelName.new
|
126
|
+
# update the model attribute below
|
127
|
+
# _model.id = 1
|
128
|
+
# update the expected value (hash) below
|
129
|
+
# expected = {id: 1, name: '', tags: []}
|
130
|
+
# expect(api_client.object_to_hash(_model)).to eq(expected)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
describe '#build_collection_param' do
|
135
|
+
let(:param) { ['aa', 'bb', 'cc'] }
|
136
|
+
let(:api_client) { Ionoscloud::ApiClient.new }
|
137
|
+
|
138
|
+
it 'works for csv' do
|
139
|
+
expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
|
140
|
+
end
|
141
|
+
|
142
|
+
it 'works for ssv' do
|
143
|
+
expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
|
144
|
+
end
|
145
|
+
|
146
|
+
it 'works for tsv' do
|
147
|
+
expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
|
148
|
+
end
|
149
|
+
|
150
|
+
it 'works for pipes' do
|
151
|
+
expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
|
152
|
+
end
|
153
|
+
|
154
|
+
it 'works for multi' do
|
155
|
+
expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
|
156
|
+
end
|
157
|
+
|
158
|
+
it 'fails for invalid collection format' do
|
159
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
describe '#json_mime?' do
|
164
|
+
let(:api_client) { Ionoscloud::ApiClient.new }
|
165
|
+
|
166
|
+
it 'works' do
|
167
|
+
expect(api_client.json_mime?(nil)).to eq false
|
168
|
+
expect(api_client.json_mime?('')).to eq false
|
169
|
+
|
170
|
+
expect(api_client.json_mime?('application/json')).to eq true
|
171
|
+
expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
|
172
|
+
expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
|
173
|
+
|
174
|
+
expect(api_client.json_mime?('application/xml')).to eq false
|
175
|
+
expect(api_client.json_mime?('text/plain')).to eq false
|
176
|
+
expect(api_client.json_mime?('application/jsonp')).to eq false
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
describe '#select_header_accept' do
|
181
|
+
let(:api_client) { Ionoscloud::ApiClient.new }
|
182
|
+
|
183
|
+
it 'works' do
|
184
|
+
expect(api_client.select_header_accept(nil)).to be_nil
|
185
|
+
expect(api_client.select_header_accept([])).to be_nil
|
186
|
+
|
187
|
+
expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
|
188
|
+
expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
189
|
+
expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
190
|
+
|
191
|
+
expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
|
192
|
+
expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
describe '#select_header_content_type' do
|
197
|
+
let(:api_client) { Ionoscloud::ApiClient.new }
|
198
|
+
|
199
|
+
it 'works' do
|
200
|
+
expect(api_client.select_header_content_type(nil)).to eq('application/json')
|
201
|
+
expect(api_client.select_header_content_type([])).to eq('application/json')
|
202
|
+
|
203
|
+
expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
|
204
|
+
expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
|
205
|
+
expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
|
206
|
+
expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
|
207
|
+
expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
|
208
|
+
end
|
209
|
+
end
|
210
|
+
|
211
|
+
describe '#sanitize_filename' do
|
212
|
+
let(:api_client) { Ionoscloud::ApiClient.new }
|
213
|
+
|
214
|
+
it 'works' do
|
215
|
+
expect(api_client.sanitize_filename('sun')).to eq('sun')
|
216
|
+
expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
|
217
|
+
expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
|
218
|
+
expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
|
219
|
+
expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
|
220
|
+
expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
|
221
|
+
expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
|
222
|
+
expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
|
223
|
+
expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
|
224
|
+
end
|
225
|
+
end
|
226
|
+
end
|
@@ -0,0 +1,42 @@
|
|
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
|
+
|
15
|
+
describe Ionoscloud::Configuration do
|
16
|
+
let(:config) { Ionoscloud::Configuration.default }
|
17
|
+
|
18
|
+
before(:each) do
|
19
|
+
# uncomment below to setup host and base_path
|
20
|
+
# require 'URI'
|
21
|
+
# uri = URI.parse("https://api.ionos.com/cloudapi/v5")
|
22
|
+
# Ionoscloud.configure do |c|
|
23
|
+
# c.host = uri.host
|
24
|
+
# c.base_path = uri.path
|
25
|
+
# end
|
26
|
+
end
|
27
|
+
|
28
|
+
describe '#base_url' do
|
29
|
+
it 'should have the default value' do
|
30
|
+
# uncomment below to test default value of the base path
|
31
|
+
# expect(config.base_url).to eq("https://api.ionos.com/cloudapi/v5")
|
32
|
+
end
|
33
|
+
|
34
|
+
it 'should remove trailing slashes' do
|
35
|
+
[nil, '', '/', '//'].each do |base_path|
|
36
|
+
config.base_path = base_path
|
37
|
+
# uncomment below to test trailing slashes
|
38
|
+
# expect(config.base_url).to eq("https://api.ionos.com/cloudapi/v5")
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,70 @@
|
|
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
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for Ionoscloud::AttachedVolumes
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe Ionoscloud::AttachedVolumes do
|
21
|
+
let(:instance) { Ionoscloud::AttachedVolumes.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AttachedVolumes' do
|
24
|
+
it 'should create an instance of AttachedVolumes' do
|
25
|
+
expect(instance).to be_instance_of(Ionoscloud::AttachedVolumes)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "type"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "href"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "items"' 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
|
+
describe 'test attribute "offset"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "limit"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "_links"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|