ionoscloud 5.1.1 → 5.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +1 -1
- data/docs/models/KubernetesClusterProperties.md +0 -2
- data/docs/models/KubernetesClusterPropertiesForPost.md +0 -2
- data/docs/models/KubernetesNodePoolProperties.md +0 -3
- data/docs/models/KubernetesNodePoolPropertiesForPost.md +0 -3
- data/lib/ionoscloud/api_client.rb +2 -2
- data/lib/ionoscloud/models/attached_volumes.rb +65 -11
- data/lib/ionoscloud/models/backup_unit.rb +45 -5
- data/lib/ionoscloud/models/backup_unit_properties.rb +27 -3
- data/lib/ionoscloud/models/backup_unit_sso.rb +9 -1
- data/lib/ionoscloud/models/backup_units.rb +38 -8
- data/lib/ionoscloud/models/balanced_nics.rb +65 -11
- data/lib/ionoscloud/models/cdroms.rb +65 -11
- data/lib/ionoscloud/models/connectable_datacenter.rb +27 -3
- data/lib/ionoscloud/models/contract.rb +18 -2
- data/lib/ionoscloud/models/contract_properties.rb +45 -5
- data/lib/ionoscloud/models/data_center_entities.rb +36 -4
- data/lib/ionoscloud/models/datacenter.rb +54 -6
- data/lib/ionoscloud/models/datacenter_element_metadata.rb +72 -8
- data/lib/ionoscloud/models/datacenter_properties.rb +56 -10
- data/lib/ionoscloud/models/datacenters.rb +65 -11
- data/lib/ionoscloud/models/error.rb +20 -6
- data/lib/ionoscloud/models/error_message.rb +18 -2
- data/lib/ionoscloud/models/firewall_rule.rb +45 -5
- data/lib/ionoscloud/models/firewall_rules.rb +65 -11
- data/lib/ionoscloud/models/firewallrule_properties.rb +81 -9
- data/lib/ionoscloud/models/group.rb +45 -5
- data/lib/ionoscloud/models/group_entities.rb +18 -2
- data/lib/ionoscloud/models/group_members.rb +38 -8
- data/lib/ionoscloud/models/group_properties.rb +90 -10
- data/lib/ionoscloud/models/group_share.rb +36 -4
- data/lib/ionoscloud/models/group_share_properties.rb +18 -2
- data/lib/ionoscloud/models/group_shares.rb +38 -8
- data/lib/ionoscloud/models/group_users.rb +38 -8
- data/lib/ionoscloud/models/groups.rb +38 -8
- data/lib/ionoscloud/models/image.rb +45 -5
- data/lib/ionoscloud/models/image_properties.rb +173 -23
- data/lib/ionoscloud/models/images.rb +38 -8
- data/lib/ionoscloud/models/info.rb +27 -3
- data/lib/ionoscloud/models/ip_block.rb +45 -5
- data/lib/ionoscloud/models/ip_block_properties.rb +49 -13
- data/lib/ionoscloud/models/ip_blocks.rb +65 -11
- data/lib/ionoscloud/models/ip_consumer.rb +81 -9
- data/lib/ionoscloud/models/ip_failover.rb +18 -2
- data/lib/ionoscloud/models/kubernetes_auto_scaling.rb +18 -2
- data/lib/ionoscloud/models/kubernetes_cluster.rb +54 -6
- data/lib/ionoscloud/models/kubernetes_cluster_entities.rb +9 -1
- data/lib/ionoscloud/models/kubernetes_cluster_for_post.rb +54 -6
- data/lib/ionoscloud/models/kubernetes_cluster_for_put.rb +54 -6
- data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +70 -34
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +48 -24
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_put.rb +49 -13
- data/lib/ionoscloud/models/kubernetes_clusters.rb +38 -8
- data/lib/ionoscloud/models/kubernetes_config.rb +36 -4
- data/lib/ionoscloud/models/kubernetes_config_properties.rb +9 -1
- data/lib/ionoscloud/models/kubernetes_maintenance_window.rb +18 -2
- data/lib/ionoscloud/models/kubernetes_node.rb +45 -5
- data/lib/ionoscloud/models/kubernetes_node_metadata.rb +45 -5
- data/lib/ionoscloud/models/kubernetes_node_pool.rb +45 -5
- data/lib/ionoscloud/models/kubernetes_node_pool_for_post.rb +45 -5
- data/lib/ionoscloud/models/kubernetes_node_pool_for_put.rb +45 -5
- data/lib/ionoscloud/models/kubernetes_node_pool_lan.rb +9 -1
- data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +163 -47
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +152 -42
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_put.rb +89 -25
- data/lib/ionoscloud/models/kubernetes_node_pools.rb +38 -8
- data/lib/ionoscloud/models/kubernetes_node_properties.rb +36 -4
- data/lib/ionoscloud/models/kubernetes_nodes.rb +38 -8
- data/lib/ionoscloud/models/label.rb +45 -5
- data/lib/ionoscloud/models/label_properties.rb +45 -5
- data/lib/ionoscloud/models/label_resource.rb +45 -5
- data/lib/ionoscloud/models/label_resource_properties.rb +18 -2
- data/lib/ionoscloud/models/label_resources.rb +65 -11
- data/lib/ionoscloud/models/labels.rb +38 -8
- data/lib/ionoscloud/models/lan.rb +54 -6
- data/lib/ionoscloud/models/lan_entities.rb +9 -1
- data/lib/ionoscloud/models/lan_nics.rb +65 -11
- data/lib/ionoscloud/models/lan_post.rb +54 -6
- data/lib/ionoscloud/models/lan_properties.rb +38 -8
- data/lib/ionoscloud/models/lan_properties_post.rb +38 -8
- data/lib/ionoscloud/models/lans.rb +65 -11
- data/lib/ionoscloud/models/loadbalancer.rb +54 -6
- data/lib/ionoscloud/models/loadbalancer_entities.rb +9 -1
- data/lib/ionoscloud/models/loadbalancer_properties.rb +27 -3
- data/lib/ionoscloud/models/loadbalancers.rb +65 -11
- data/lib/ionoscloud/models/location.rb +45 -5
- data/lib/ionoscloud/models/location_properties.rb +31 -11
- data/lib/ionoscloud/models/locations.rb +38 -8
- data/lib/ionoscloud/models/nic.rb +54 -6
- data/lib/ionoscloud/models/nic_entities.rb +9 -1
- data/lib/ionoscloud/models/nic_properties.rb +65 -11
- data/lib/ionoscloud/models/nics.rb +65 -11
- data/lib/ionoscloud/models/no_state_meta_data.rb +63 -7
- data/lib/ionoscloud/models/pagination_links.rb +27 -3
- data/lib/ionoscloud/models/peer.rb +45 -5
- data/lib/ionoscloud/models/private_cross_connect.rb +45 -5
- data/lib/ionoscloud/models/private_cross_connect_properties.rb +40 -12
- data/lib/ionoscloud/models/private_cross_connects.rb +38 -8
- data/lib/ionoscloud/models/request.rb +45 -5
- data/lib/ionoscloud/models/request_metadata.rb +36 -4
- data/lib/ionoscloud/models/request_properties.rb +38 -8
- data/lib/ionoscloud/models/request_status.rb +36 -4
- data/lib/ionoscloud/models/request_status_metadata.rb +38 -8
- data/lib/ionoscloud/models/request_target.rb +18 -2
- data/lib/ionoscloud/models/requests.rb +65 -11
- data/lib/ionoscloud/models/resource.rb +54 -6
- data/lib/ionoscloud/models/resource_entities.rb +9 -1
- data/lib/ionoscloud/models/resource_groups.rb +38 -8
- data/lib/ionoscloud/models/resource_limits.rb +153 -17
- data/lib/ionoscloud/models/resource_properties.rb +18 -2
- data/lib/ionoscloud/models/resource_reference.rb +27 -3
- data/lib/ionoscloud/models/resources.rb +38 -8
- data/lib/ionoscloud/models/resources_users.rb +38 -8
- data/lib/ionoscloud/models/s3_bucket.rb +9 -1
- data/lib/ionoscloud/models/s3_key.rb +45 -5
- data/lib/ionoscloud/models/s3_key_metadata.rb +18 -2
- data/lib/ionoscloud/models/s3_key_properties.rb +18 -2
- data/lib/ionoscloud/models/s3_keys.rb +38 -8
- data/lib/ionoscloud/models/s3_object_storage_sso.rb +9 -1
- data/lib/ionoscloud/models/server.rb +54 -6
- data/lib/ionoscloud/models/server_entities.rb +27 -3
- data/lib/ionoscloud/models/server_properties.rb +72 -8
- data/lib/ionoscloud/models/servers.rb +65 -11
- data/lib/ionoscloud/models/snapshot.rb +45 -5
- data/lib/ionoscloud/models/snapshot_properties.rb +144 -16
- data/lib/ionoscloud/models/snapshots.rb +38 -8
- data/lib/ionoscloud/models/user.rb +54 -6
- data/lib/ionoscloud/models/user_metadata.rb +27 -3
- data/lib/ionoscloud/models/user_post.rb +9 -1
- data/lib/ionoscloud/models/user_properties.rb +72 -8
- data/lib/ionoscloud/models/user_properties_post.rb +72 -8
- data/lib/ionoscloud/models/user_properties_put.rb +63 -7
- data/lib/ionoscloud/models/user_put.rb +18 -2
- data/lib/ionoscloud/models/users.rb +65 -11
- data/lib/ionoscloud/models/users_entities.rb +18 -2
- data/lib/ionoscloud/models/volume.rb +45 -5
- data/lib/ionoscloud/models/volume_properties.rb +173 -23
- data/lib/ionoscloud/models/volumes.rb +65 -11
- data/lib/ionoscloud/version.rb +1 -1
- metadata +2 -304
- data/spec/api/_api_spec.rb +0 -49
- data/spec/api/backup_unit_api_spec.rb +0 -140
- data/spec/api/contract_api_spec.rb +0 -49
- data/spec/api/data_center_api_spec.rb +0 -128
- data/spec/api/image_api_spec.rb +0 -111
- data/spec/api/ip_blocks_api_spec.rb +0 -128
- data/spec/api/kubernetes_api_spec.rb +0 -306
- data/spec/api/label_api_spec.rb +0 -480
- data/spec/api/lan_api_spec.rb +0 -186
- data/spec/api/load_balancer_api_spec.rb +0 -203
- data/spec/api/location_api_spec.rb +0 -80
- data/spec/api/nic_api_spec.rb +0 -251
- data/spec/api/private_cross_connect_api_spec.rb +0 -110
- data/spec/api/request_api_spec.rb +0 -92
- data/spec/api/server_api_spec.rb +0 -337
- data/spec/api/snapshot_api_spec.rb +0 -111
- data/spec/api/user_management_api_spec.rb +0 -497
- data/spec/api/volume_api_spec.rb +0 -171
- data/spec/models/attached_volumes_spec.rb +0 -70
- data/spec/models/backup_unit_properties_spec.rb +0 -46
- data/spec/models/backup_unit_spec.rb +0 -62
- data/spec/models/backup_unit_sso_spec.rb +0 -34
- data/spec/models/backup_units_spec.rb +0 -56
- data/spec/models/balanced_nics_spec.rb +0 -70
- data/spec/models/cdroms_spec.rb +0 -70
- data/spec/models/connectable_datacenter_spec.rb +0 -46
- data/spec/models/contract_properties_spec.rb +0 -58
- data/spec/models/contract_spec.rb +0 -40
- data/spec/models/data_center_entities_spec.rb +0 -52
- data/spec/models/datacenter_element_metadata_spec.rb +0 -80
- data/spec/models/datacenter_properties_spec.rb +0 -64
- data/spec/models/datacenter_spec.rb +0 -64
- data/spec/models/datacenters_spec.rb +0 -70
- data/spec/models/error_message_spec.rb +0 -40
- data/spec/models/error_spec.rb +0 -40
- data/spec/models/firewall_rule_spec.rb +0 -58
- data/spec/models/firewall_rules_spec.rb +0 -70
- data/spec/models/firewallrule_properties_spec.rb +0 -86
- data/spec/models/group_entities_spec.rb +0 -40
- data/spec/models/group_members_spec.rb +0 -52
- data/spec/models/group_properties_spec.rb +0 -88
- data/spec/models/group_share_properties_spec.rb +0 -40
- data/spec/models/group_share_spec.rb +0 -52
- data/spec/models/group_shares_spec.rb +0 -52
- data/spec/models/group_spec.rb +0 -58
- data/spec/models/group_users_spec.rb +0 -52
- data/spec/models/groups_spec.rb +0 -52
- data/spec/models/image_properties_spec.rb +0 -154
- data/spec/models/image_spec.rb +0 -58
- data/spec/models/images_spec.rb +0 -52
- data/spec/models/info_spec.rb +0 -46
- data/spec/models/ip_block_properties_spec.rb +0 -58
- data/spec/models/ip_block_spec.rb +0 -58
- data/spec/models/ip_blocks_spec.rb +0 -70
- data/spec/models/ip_consumer_spec.rb +0 -82
- data/spec/models/ip_failover_spec.rb +0 -40
- data/spec/models/kubernetes_auto_scaling_spec.rb +0 -40
- data/spec/models/kubernetes_cluster_entities_spec.rb +0 -34
- data/spec/models/kubernetes_cluster_for_post_spec.rb +0 -68
- data/spec/models/kubernetes_cluster_for_put_spec.rb +0 -68
- data/spec/models/kubernetes_cluster_properties_for_post_spec.rb +0 -64
- data/spec/models/kubernetes_cluster_properties_for_put_spec.rb +0 -58
- data/spec/models/kubernetes_cluster_properties_spec.rb +0 -76
- data/spec/models/kubernetes_cluster_spec.rb +0 -68
- data/spec/models/kubernetes_clusters_spec.rb +0 -56
- data/spec/models/kubernetes_config_properties_spec.rb +0 -34
- data/spec/models/kubernetes_config_spec.rb +0 -56
- data/spec/models/kubernetes_maintenance_window_spec.rb +0 -44
- data/spec/models/kubernetes_node_metadata_spec.rb +0 -62
- data/spec/models/kubernetes_node_pool_for_post_spec.rb +0 -62
- data/spec/models/kubernetes_node_pool_for_put_spec.rb +0 -62
- data/spec/models/kubernetes_node_pool_lan_spec.rb +0 -34
- data/spec/models/kubernetes_node_pool_properties_for_post_spec.rb +0 -138
- data/spec/models/kubernetes_node_pool_properties_for_put_spec.rb +0 -82
- data/spec/models/kubernetes_node_pool_properties_spec.rb +0 -144
- data/spec/models/kubernetes_node_pool_spec.rb +0 -62
- data/spec/models/kubernetes_node_pools_spec.rb +0 -56
- data/spec/models/kubernetes_node_properties_spec.rb +0 -52
- data/spec/models/kubernetes_node_spec.rb +0 -62
- data/spec/models/kubernetes_nodes_spec.rb +0 -56
- data/spec/models/label_properties_spec.rb +0 -58
- data/spec/models/label_resource_properties_spec.rb +0 -40
- data/spec/models/label_resource_spec.rb +0 -62
- data/spec/models/label_resources_spec.rb +0 -74
- data/spec/models/label_spec.rb +0 -62
- data/spec/models/labels_spec.rb +0 -56
- data/spec/models/lan_entities_spec.rb +0 -34
- data/spec/models/lan_nics_spec.rb +0 -70
- data/spec/models/lan_post_spec.rb +0 -64
- data/spec/models/lan_properties_post_spec.rb +0 -52
- data/spec/models/lan_properties_spec.rb +0 -52
- data/spec/models/lan_spec.rb +0 -64
- data/spec/models/lans_spec.rb +0 -70
- data/spec/models/loadbalancer_entities_spec.rb +0 -34
- data/spec/models/loadbalancer_properties_spec.rb +0 -46
- data/spec/models/loadbalancer_spec.rb +0 -64
- data/spec/models/loadbalancers_spec.rb +0 -70
- data/spec/models/location_properties_spec.rb +0 -46
- data/spec/models/location_spec.rb +0 -58
- data/spec/models/locations_spec.rb +0 -52
- data/spec/models/nic_entities_spec.rb +0 -34
- data/spec/models/nic_properties_spec.rb +0 -70
- data/spec/models/nic_spec.rb +0 -64
- data/spec/models/nics_spec.rb +0 -70
- data/spec/models/no_state_meta_data_spec.rb +0 -70
- data/spec/models/pagination_links_spec.rb +0 -46
- data/spec/models/peer_spec.rb +0 -58
- data/spec/models/private_cross_connect_properties_spec.rb +0 -52
- data/spec/models/private_cross_connect_spec.rb +0 -58
- data/spec/models/private_cross_connects_spec.rb +0 -52
- data/spec/models/request_metadata_spec.rb +0 -52
- data/spec/models/request_properties_spec.rb +0 -52
- data/spec/models/request_spec.rb +0 -58
- data/spec/models/request_status_metadata_spec.rb +0 -56
- data/spec/models/request_status_spec.rb +0 -52
- data/spec/models/request_target_spec.rb +0 -44
- data/spec/models/requests_spec.rb +0 -70
- data/spec/models/resource_entities_spec.rb +0 -34
- data/spec/models/resource_groups_spec.rb +0 -52
- data/spec/models/resource_limits_spec.rb +0 -130
- data/spec/models/resource_properties_spec.rb +0 -40
- data/spec/models/resource_reference_spec.rb +0 -46
- data/spec/models/resource_spec.rb +0 -64
- data/spec/models/resources_spec.rb +0 -52
- data/spec/models/resources_users_spec.rb +0 -52
- data/spec/models/s3_bucket_spec.rb +0 -34
- data/spec/models/s3_key_metadata_spec.rb +0 -40
- data/spec/models/s3_key_properties_spec.rb +0 -40
- data/spec/models/s3_key_spec.rb +0 -58
- data/spec/models/s3_keys_spec.rb +0 -52
- data/spec/models/s3_object_storage_sso_spec.rb +0 -34
- data/spec/models/server_entities_spec.rb +0 -46
- data/spec/models/server_properties_spec.rb +0 -84
- data/spec/models/server_spec.rb +0 -64
- data/spec/models/servers_spec.rb +0 -70
- data/spec/models/snapshot_properties_spec.rb +0 -128
- data/spec/models/snapshot_spec.rb +0 -58
- data/spec/models/snapshots_spec.rb +0 -52
- data/spec/models/type_spec.rb +0 -28
- data/spec/models/user_metadata_spec.rb +0 -46
- data/spec/models/user_post_spec.rb +0 -34
- data/spec/models/user_properties_post_spec.rb +0 -76
- data/spec/models/user_properties_put_spec.rb +0 -70
- data/spec/models/user_properties_spec.rb +0 -76
- data/spec/models/user_put_spec.rb +0 -40
- data/spec/models/user_spec.rb +0 -64
- data/spec/models/users_entities_spec.rb +0 -40
- data/spec/models/users_spec.rb +0 -70
- data/spec/models/volume_properties_spec.rb +0 -158
- data/spec/models/volume_spec.rb +0 -58
- data/spec/models/volumes_spec.rb +0 -70
data/spec/api/nic_api_spec.rb
DELETED
@@ -1,251 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#CLOUD API
|
3
|
-
|
4
|
-
#An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 5.0
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require '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
|
@@ -1,110 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#CLOUD API
|
3
|
-
|
4
|
-
#An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 5.0
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require '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
|
@@ -1,92 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#CLOUD API
|
3
|
-
|
4
|
-
#An enterprise-grade Infrastructure is provided as a Service (IaaS) solution that can be managed through a browser-based \"Data Center Designer\" (DCD) tool or via an easy to use API. The API allows you to perform a variety of management tasks such as spinning up additional servers, adding volumes, adjusting networking, and so forth. It is designed to allow users to leverage the same power and flexibility found within the DCD visual tool. Both tools are consistent with their concepts and lend well to making the experience smooth and intuitive.
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 5.0
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.2.1-SNAPSHOT
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require '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 filter to fetch all requests based on a particular status [QUEUED, RUNNING, DONE, FAILED]. It doesn't depend on depth query parameter
|
58
|
-
# @option opts [String] :filter_created_after Request filter to fetch all requests created after the specified date. It doesn't depend on depth query parameter. Date format e.g. 2021-01-01+00:00:00
|
59
|
-
# @option opts [String] :filter_created_before Request filter to fetch all requests created before the specified date. It doesn't depend on depth query parameter. Date format e.g. 2021-01-01+00:00:00
|
60
|
-
# @option opts [String] :filter_created_date Response filter to select and display only the requests that contains the specified createdDate. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0. Date format e.g. 2020-11-16T17:42:59Z
|
61
|
-
# @option opts [String] :filter_created_by Response filter to select and display only the requests that contains the specified createdBy. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0.
|
62
|
-
# @option opts [String] :filter_etag Response filter to select and display only the requests that contains the specified etag. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0.
|
63
|
-
# @option opts [String] :filter_request_status Response filter to select and display only the requests that contains the specified requestStatus. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0.
|
64
|
-
# @option opts [String] :filter_method Response filter to select and display only the requests that contains the specified method. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0.
|
65
|
-
# @option opts [String] :filter_headers Response filter to select and display only the requests that contains the specified headers. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0.
|
66
|
-
# @option opts [String] :filter_body Response filter to select and display only the requests that contains the specified body. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0.
|
67
|
-
# @option opts [String] :filter_url Response filter to select and display only the requests that contains the specified url. The value is case insensitive and it depends on depth query parameter that should have a value greater than 0.
|
68
|
-
# @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)
|
69
|
-
# @option opts [Integer] :limit the maximum number of elements to return (use together with <code>offset</code> for pagination)
|
70
|
-
# @return [Requests]
|
71
|
-
describe 'requests_get test' do
|
72
|
-
it 'should work' do
|
73
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
-
end
|
75
|
-
end
|
76
|
-
|
77
|
-
# unit tests for requests_status_get
|
78
|
-
# Retrieve Request Status
|
79
|
-
# Retrieves the status of a given request.
|
80
|
-
# @param request_id
|
81
|
-
# @param [Hash] opts the optional parameters
|
82
|
-
# @option opts [Boolean] :pretty Controls whether response is pretty-printed (with indentation and new lines)
|
83
|
-
# @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
|
84
|
-
# @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
|
85
|
-
# @return [RequestStatus]
|
86
|
-
describe 'requests_status_get test' do
|
87
|
-
it 'should work' do
|
88
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
89
|
-
end
|
90
|
-
end
|
91
|
-
|
92
|
-
end
|