ionoscloud 5.0.0 → 5.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. checksums.yaml +4 -4
  2. data/docs/AttachedVolumes.md +30 -0
  3. data/docs/BackupUnit.md +26 -0
  4. data/docs/BackupUnitApi.md +595 -0
  5. data/docs/BackupUnitProperties.md +22 -0
  6. data/docs/BackupUnitSSO.md +18 -0
  7. data/docs/BackupUnits.md +24 -0
  8. data/docs/BalancedNics.md +30 -0
  9. data/docs/CHANGELOG.md +1 -0
  10. data/docs/Cdroms.md +30 -0
  11. data/docs/ConnectableDatacenter.md +22 -0
  12. data/docs/Contract.md +20 -0
  13. data/docs/ContractApi.md +89 -0
  14. data/docs/ContractProperties.md +26 -0
  15. data/docs/DataCenterApi.md +517 -0
  16. data/docs/DataCenterEntities.md +24 -0
  17. data/docs/Datacenter.md +28 -0
  18. data/docs/DatacenterElementMetadata.md +32 -0
  19. data/docs/DatacenterProperties.md +28 -0
  20. data/docs/Datacenters.md +30 -0
  21. data/docs/DefaultApi.md +84 -0
  22. data/docs/Error.md +20 -0
  23. data/docs/ErrorMessage.md +20 -0
  24. data/docs/FirewallRule.md +26 -0
  25. data/docs/FirewallRules.md +30 -0
  26. data/docs/FirewallruleProperties.md +34 -0
  27. data/docs/Group.md +26 -0
  28. data/docs/GroupEntities.md +20 -0
  29. data/docs/GroupMembers.md +24 -0
  30. data/docs/GroupProperties.md +36 -0
  31. data/docs/GroupShare.md +24 -0
  32. data/docs/GroupShareProperties.md +20 -0
  33. data/docs/GroupShares.md +24 -0
  34. data/docs/GroupUsers.md +24 -0
  35. data/docs/Groups.md +24 -0
  36. data/docs/IPBlocksApi.md +513 -0
  37. data/docs/IPFailover.md +20 -0
  38. data/docs/Image.md +26 -0
  39. data/docs/ImageApi.md +429 -0
  40. data/docs/ImageProperties.md +50 -0
  41. data/docs/Images.md +24 -0
  42. data/docs/Info.md +22 -0
  43. data/docs/IpBlock.md +26 -0
  44. data/docs/IpBlockProperties.md +26 -0
  45. data/docs/IpBlocks.md +24 -0
  46. data/docs/IpConsumer.md +30 -0
  47. data/docs/KubernetesApi.md +1513 -0
  48. data/docs/KubernetesAutoScaling.md +20 -0
  49. data/docs/KubernetesCluster.md +28 -0
  50. data/docs/KubernetesClusterEntities.md +18 -0
  51. data/docs/KubernetesClusterProperties.md +26 -0
  52. data/docs/KubernetesClusterPropertiesForPostAndPut.md +22 -0
  53. data/docs/KubernetesClusters.md +24 -0
  54. data/docs/KubernetesConfig.md +24 -0
  55. data/docs/KubernetesConfigProperties.md +18 -0
  56. data/docs/KubernetesMaintenanceWindow.md +20 -0
  57. data/docs/KubernetesNode.md +26 -0
  58. data/docs/KubernetesNodeMetadata.md +26 -0
  59. data/docs/KubernetesNodePool.md +26 -0
  60. data/docs/KubernetesNodePoolForPut.md +26 -0
  61. data/docs/KubernetesNodePoolLan.md +18 -0
  62. data/docs/KubernetesNodePoolProperties.md +50 -0
  63. data/docs/KubernetesNodePoolPropertiesForPost.md +48 -0
  64. data/docs/KubernetesNodePoolPropertiesForPut.md +48 -0
  65. data/docs/KubernetesNodePools.md +24 -0
  66. data/docs/KubernetesNodeProperties.md +22 -0
  67. data/docs/KubernetesNodes.md +24 -0
  68. data/docs/Label.md +26 -0
  69. data/docs/LabelApi.md +2355 -0
  70. data/docs/LabelProperties.md +26 -0
  71. data/docs/LabelResource.md +26 -0
  72. data/docs/LabelResourceProperties.md +20 -0
  73. data/docs/LabelResources.md +30 -0
  74. data/docs/Labels.md +24 -0
  75. data/docs/Lan.md +28 -0
  76. data/docs/LanApi.md +795 -0
  77. data/docs/LanEntities.md +18 -0
  78. data/docs/LanNics.md +30 -0
  79. data/docs/LanPost.md +28 -0
  80. data/docs/LanProperties.md +24 -0
  81. data/docs/LanPropertiesPost.md +24 -0
  82. data/docs/Lans.md +30 -0
  83. data/docs/LoadBalancerApi.md +883 -0
  84. data/docs/Loadbalancer.md +28 -0
  85. data/docs/LoadbalancerEntities.md +18 -0
  86. data/docs/LoadbalancerProperties.md +22 -0
  87. data/docs/Loadbalancers.md +30 -0
  88. data/docs/Location.md +26 -0
  89. data/docs/LocationApi.md +259 -0
  90. data/docs/LocationProperties.md +22 -0
  91. data/docs/Locations.md +24 -0
  92. data/docs/Nic.md +28 -0
  93. data/docs/NicApi.md +1087 -0
  94. data/docs/NicEntities.md +18 -0
  95. data/docs/NicProperties.md +30 -0
  96. data/docs/Nics.md +30 -0
  97. data/docs/NoStateMetaData.md +30 -0
  98. data/docs/PaginationLinks.md +22 -0
  99. data/docs/Peer.md +26 -0
  100. data/docs/PrivateCrossConnect.md +26 -0
  101. data/docs/PrivateCrossConnectApi.md +427 -0
  102. data/docs/PrivateCrossConnectProperties.md +24 -0
  103. data/docs/PrivateCrossConnects.md +24 -0
  104. data/docs/README.md +111 -0
  105. data/docs/Request.md +26 -0
  106. data/docs/RequestApi.md +267 -0
  107. data/docs/RequestMetadata.md +24 -0
  108. data/docs/RequestProperties.md +24 -0
  109. data/docs/RequestStatus.md +24 -0
  110. data/docs/RequestStatusMetadata.md +24 -0
  111. data/docs/RequestTarget.md +20 -0
  112. data/docs/Requests.md +30 -0
  113. data/docs/Resource.md +28 -0
  114. data/docs/ResourceEntities.md +18 -0
  115. data/docs/ResourceGroups.md +24 -0
  116. data/docs/ResourceLimits.md +50 -0
  117. data/docs/ResourceProperties.md +20 -0
  118. data/docs/ResourceReference.md +22 -0
  119. data/docs/Resources.md +24 -0
  120. data/docs/ResourcesUsers.md +24 -0
  121. data/docs/S3Key.md +26 -0
  122. data/docs/S3KeyMetadata.md +20 -0
  123. data/docs/S3KeyProperties.md +20 -0
  124. data/docs/S3Keys.md +24 -0
  125. data/docs/S3ObjectStorageSSO.md +18 -0
  126. data/docs/Server.md +28 -0
  127. data/docs/ServerApi.md +1573 -0
  128. data/docs/ServerEntities.md +22 -0
  129. data/docs/ServerProperties.md +32 -0
  130. data/docs/Servers.md +30 -0
  131. data/docs/Snapshot.md +26 -0
  132. data/docs/SnapshotApi.md +429 -0
  133. data/docs/SnapshotProperties.md +48 -0
  134. data/docs/Snapshots.md +24 -0
  135. data/docs/Type.md +15 -0
  136. data/docs/User.md +28 -0
  137. data/docs/UserManagementApi.md +2547 -0
  138. data/docs/UserMetadata.md +22 -0
  139. data/docs/UserProperties.md +34 -0
  140. data/docs/Users.md +24 -0
  141. data/docs/UsersEntities.md +20 -0
  142. data/docs/Volume.md +26 -0
  143. data/docs/VolumeApi.md +711 -0
  144. data/docs/VolumeProperties.md +54 -0
  145. data/docs/Volumes.md +30 -0
  146. data/docs/summary.md +295 -0
  147. data/gitbook.yaml +4 -0
  148. data/lib/ionoscloud/api/_api.rb +1 -1
  149. data/lib/ionoscloud/api_client.rb +1 -4
  150. data/lib/ionoscloud/models/backup_units.rb +2 -2
  151. data/lib/ionoscloud/models/datacenter_element_metadata.rb +2 -2
  152. data/lib/ionoscloud/models/firewallrule_properties.rb +36 -21
  153. data/lib/ionoscloud/models/kubernetes_node.rb +2 -2
  154. data/lib/ionoscloud/models/kubernetes_node_metadata.rb +2 -2
  155. data/lib/ionoscloud/models/kubernetes_nodes.rb +2 -2
  156. data/lib/ionoscloud/models/label_resources.rb +2 -2
  157. data/lib/ionoscloud/models/labels.rb +2 -2
  158. data/lib/ionoscloud/models/loadbalancer_properties.rb +12 -29
  159. data/lib/ionoscloud/models/type.rb +1 -0
  160. data/lib/ionoscloud/models/volume_properties.rb +14 -4
  161. data/lib/ionoscloud/version.rb +1 -1
  162. data/spec/models/backup_units_spec.rb +1 -1
  163. data/spec/models/datacenter_element_metadata_spec.rb +1 -1
  164. data/spec/models/firewallrule_properties_spec.rb +0 -12
  165. data/spec/models/kubernetes_node_metadata_spec.rb +1 -1
  166. data/spec/models/kubernetes_node_spec.rb +1 -1
  167. data/spec/models/kubernetes_nodes_spec.rb +1 -1
  168. data/spec/models/label_resources_spec.rb +1 -1
  169. data/spec/models/labels_spec.rb +1 -1
  170. data/spec/models/loadbalancer_properties_spec.rb +0 -4
  171. data/spec/models/volume_properties_spec.rb +6 -0
  172. metadata +264 -120
  173. data/DOCS.md +0 -14618
  174. data/README.md +0 -55
@@ -0,0 +1,24 @@
1
+ # PrivateCrossConnectProperties
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | A name of that resource | [optional] |
8
+ | **description** | **String** | Human readable description | [optional] |
9
+ | **peers** | [**Array<Peer>**](Peer.md) | Read-Only attribute. Lists LAN's joined to this private cross connect | [optional][readonly] |
10
+ | **connectable_datacenters** | [**Array<ConnectableDatacenter>**](ConnectableDatacenter.md) | Read-Only attribute. Lists datacenters that can be joined to this private cross connect | [optional][readonly] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud'
16
+
17
+ instance = Ionoscloud::PrivateCrossConnectProperties.new(
18
+ name: My resource,
19
+ description: Private Cross-Connect between datacenter 'A' and datacenter 'B' ,
20
+ peers: { "peers": [ { "id": "<lan-id>", "name": "<lan-name>", "datacenterId": "<dc-uuid>", "datacenterName": "<dc-name>", "location": "<de/fra>"} ] },
21
+ connectable_datacenters: { "connectableDatacenters": [ { "id": "<dc-id>", "name": "<dc-name>", "location": "<de/fra>"} ] }
22
+ )
23
+ ```
24
+
@@ -0,0 +1,24 @@
1
+ # PrivateCrossConnects
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The resource&#39;s unique identifier | [optional][readonly] |
8
+ | **type** | [**Type**](Type.md) | The type of object that has been created | [optional] |
9
+ | **href** | **String** | URL to the object representation (absolute path) | [optional][readonly] |
10
+ | **items** | [**Array&lt;PrivateCrossConnect&gt;**](PrivateCrossConnect.md) | Array of items in that collection | [optional][readonly] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'ionoscloud'
16
+
17
+ instance = Ionoscloud::PrivateCrossConnects.new(
18
+ id: 15f67991-0f51-4efc-a8ad-ef1fb31a480c,
19
+ type: "collection",
20
+ href: <RESOURCE-URI>,
21
+ items: null
22
+ )
23
+ ```
24
+
data/docs/README.md ADDED
@@ -0,0 +1,111 @@
1
+ # Introduction
2
+
3
+ ![CI](https://github.com/ionos-cloud/sdk-resources/workflows/CI/badge.svg) [![Gem Version](https://badge.fury.io/rb/ionoscloud.svg)](https://badge.fury.io/rb/ionoscloud) [![Gitter](https://badges.gitter.im/ionos-cloud/sdk-general.png)](https://gitter.im/ionos-cloud/sdk-general)
4
+
5
+ ## Overview
6
+
7
+ The IONOS Cloud SDK for Ruby provides you with access to the IONOS Cloud API. The client library supports both simple and complex requests. It is designed for developers who are building applications in Ruby. The SDK for Ruby wraps the IONOS Cloud API. All API operations are performed over SSL and authenticated using your IONOS Cloud portal credentials. The API can be accessed within an instance running in IONOS Cloud or directly over the Internet from any application that can send an HTTPS request and receive an HTTPS response.
8
+
9
+ ## Getting Started
10
+
11
+ ### Instalation
12
+
13
+ ### 1. Build a gem
14
+
15
+ To build the Ruby code into a gem:
16
+
17
+ ```text
18
+ gem build ionoscloud.gemspec
19
+ ```
20
+
21
+ Then either install the gem locally:
22
+
23
+ ```text
24
+ gem install ./ionoscloud-<gem-version>.gem
25
+ ```
26
+
27
+ \(for development, run `gem install --dev ./ionoscloud-<gem-version>.gem` to install the development dependencies\)
28
+
29
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
30
+
31
+ Finally add this to the Gemfile:
32
+
33
+ ```text
34
+ gem 'ionoscloud', '~> <gem-version>'
35
+ ```
36
+
37
+ ### 2. Install from Git
38
+
39
+ If the Ruby gem is hosted at a git repository: [https://github.com/ionos-cloud/sdk-ruby](https://github.com/ionos-cloud/sdk-ruby), then add the following in the Gemfile:
40
+
41
+ ```text
42
+ gem 'ionoscloud', :git => 'https://github.com/ionos-cloud/sdk-ruby.git'
43
+ ```
44
+
45
+ ### 3. Include the Ruby code directly
46
+
47
+ Include the Ruby code directly using `-I` as follows:
48
+
49
+ ```text
50
+ ruby -Ilib script.rb
51
+ ```
52
+
53
+ ### 4. Install from RubyGems
54
+
55
+ Just add this to the Gemfile:
56
+
57
+ ```text
58
+ gem 'ionoscloud', '~> <gem-version>'
59
+ ```
60
+
61
+ ### After installing please run the following code:
62
+
63
+ ```ruby
64
+ # Load the gem
65
+ require 'ionoscloud'
66
+
67
+ # Setup authorization
68
+ Ionoscloud.configure do |config|
69
+ # Configure HTTP basic authorization: Basic Authentication
70
+ config.username = 'YOUR_USERNAME'
71
+ config.password = 'YOUR_PASSWORD'
72
+
73
+ # Configure API key authorization: Token Authentication
74
+ config.api_key['Authorization'] = 'YOUR API KEY'
75
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
76
+ #config.api_key_prefix['Authorization'] = 'Bearer'
77
+ end
78
+
79
+ api_instance = Ionoscloud::DefaultApi.new
80
+ opts = {
81
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
82
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
83
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
84
+ }
85
+
86
+ begin
87
+ #Display API information
88
+ result = api_instance.api_info_get(opts)
89
+ p result
90
+ rescue Ionoscloud::ApiError => e
91
+ puts "Exception when calling DefaultApi->api_info_get: #{e}"
92
+ end
93
+ ```
94
+
95
+ ## Feature Reference
96
+
97
+ The IONOS Cloud SDK for Ruby aims to offer access to all resources in the IONOS Cloud API and also offers some additional features that make the integration easier:
98
+
99
+ * authentication for API calls
100
+ * handling of asynchronous requests
101
+
102
+ ## FAQ
103
+
104
+ 1. How can I open a bug/feature request?
105
+
106
+ Bugs & feature requests can be open on the repository issues: [https://github.com/ionos-cloud/sdk-ruby/issues/new/choose](https://github.com/ionos-cloud/sdk-ruby/issues/new/choose)
107
+
108
+ 1. Can I contribute to the Ruby SDK?
109
+
110
+ Pure SDKs are automatically generated using OpenAPI Generator and don’t support manual changes. If you need changes please open an issue and we’ll try to take care of it.
111
+
data/docs/Request.md ADDED
@@ -0,0 +1,26 @@
1
+ # Request
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | The resource&#39;s unique identifier | [optional][readonly] |
8
+ | **type** | [**Type**](Type.md) | The type of object that has been created | [optional] |
9
+ | **href** | **String** | URL to the object representation (absolute path) | [optional][readonly] |
10
+ | **metadata** | [**RequestMetadata**](RequestMetadata.md) | | [optional] |
11
+ | **properties** | [**RequestProperties**](RequestProperties.md) | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ionoscloud'
17
+
18
+ instance = Ionoscloud::Request.new(
19
+ id: 15f67991-0f51-4efc-a8ad-ef1fb31a480c,
20
+ type: "request",
21
+ href: <RESOURCE-URI>,
22
+ metadata: null,
23
+ properties: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,267 @@
1
+ # RequestApi
2
+
3
+ All URIs are relative to *https://api.ionos.com/cloudapi/v5*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**requests_find_by_id**](RequestApi.md#requests_find_by_id) | **GET** /requests/{requestId} | Retrieve a Request |
8
+ | [**requests_get**](RequestApi.md#requests_get) | **GET** /requests | List Requests |
9
+ | [**requests_status_get**](RequestApi.md#requests_status_get) | **GET** /requests/{requestId}/status | Retrieve Request Status |
10
+
11
+
12
+ ## requests_find_by_id
13
+
14
+ > <Request> requests_find_by_id(request_id, opts)
15
+
16
+ Retrieve a Request
17
+
18
+ Retrieves the attributes of a given request.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'ionoscloud'
25
+ # setup authorization
26
+ Ionoscloud.configure do |config|
27
+ # Configure HTTP basic authorization: Basic Authentication
28
+ config.username = 'YOUR USERNAME'
29
+ config.password = 'YOUR PASSWORD'
30
+
31
+ # Configure API key authorization: Token Authentication
32
+ config.api_key['Authorization'] = 'YOUR API KEY'
33
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
34
+ # config.api_key_prefix['Authorization'] = 'Bearer'
35
+ end
36
+
37
+ api_instance = Ionoscloud::RequestApi.new
38
+ request_id = 'request_id_example' # String |
39
+ opts = {
40
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
41
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
42
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
43
+ }
44
+
45
+ begin
46
+ # Retrieve a Request
47
+ result = api_instance.requests_find_by_id(request_id, opts)
48
+ p result
49
+ rescue Ionoscloud::ApiError => e
50
+ puts "Error when calling RequestApi->requests_find_by_id: #{e}"
51
+ end
52
+ ```
53
+
54
+ #### Using the requests_find_by_id_with_http_info variant
55
+
56
+ This returns an Array which contains the response data, status code and headers.
57
+
58
+ > <Array(<Request>, Integer, Hash)> requests_find_by_id_with_http_info(request_id, opts)
59
+
60
+ ```ruby
61
+ begin
62
+ # Retrieve a Request
63
+ data, status_code, headers = api_instance.requests_find_by_id_with_http_info(request_id, opts)
64
+ p status_code # => 2xx
65
+ p headers # => { ... }
66
+ p data # => <Request>
67
+ rescue Ionoscloud::ApiError => e
68
+ puts "Error when calling RequestApi->requests_find_by_id_with_http_info: #{e}"
69
+ end
70
+ ```
71
+
72
+ ### Parameters
73
+
74
+ | Name | Type | Description | Notes |
75
+ | ---- | ---- | ----------- | ----- |
76
+ | **request_id** | **String** | | |
77
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
78
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
79
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
80
+
81
+ ### Return type
82
+
83
+ [**Request**](Request.md)
84
+
85
+ ### Authorization
86
+
87
+ Basic Authentication, Token Authentication
88
+
89
+ ### HTTP request headers
90
+
91
+ - **Content-Type**: Not defined
92
+ - **Accept**: application/json
93
+
94
+
95
+ ## requests_get
96
+
97
+ > <Requests> requests_get(opts)
98
+
99
+ List Requests
100
+
101
+ Retrieve a list of API requests.
102
+
103
+ ### Examples
104
+
105
+ ```ruby
106
+ require 'time'
107
+ require 'ionoscloud'
108
+ # setup authorization
109
+ Ionoscloud.configure do |config|
110
+ # Configure HTTP basic authorization: Basic Authentication
111
+ config.username = 'YOUR USERNAME'
112
+ config.password = 'YOUR PASSWORD'
113
+
114
+ # Configure API key authorization: Token Authentication
115
+ config.api_key['Authorization'] = 'YOUR API KEY'
116
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
117
+ # config.api_key_prefix['Authorization'] = 'Bearer'
118
+ end
119
+
120
+ api_instance = Ionoscloud::RequestApi.new
121
+ opts = {
122
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
123
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
124
+ x_contract_number: 56, # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
125
+ filter_status: 'filter_status_example', # String | Request status filter to fetch all the request based on a particular status [QUEUED, RUNNING, DONE, FAILED]
126
+ filter_created_after: 'filter_created_after_example', # String | Filter all the requests after the created date
127
+ filter_created_before: 'filter_created_before_example', # String | Filter all the requests before the created date
128
+ offset: 56, # Integer | the first element (of the total list of elements) to include in the response (use together with <code>limit</code> for pagination)
129
+ limit: 56 # Integer | the maximum number of elements to return (use together with <code>offset</code> for pagination)
130
+ }
131
+
132
+ begin
133
+ # List Requests
134
+ result = api_instance.requests_get(opts)
135
+ p result
136
+ rescue Ionoscloud::ApiError => e
137
+ puts "Error when calling RequestApi->requests_get: #{e}"
138
+ end
139
+ ```
140
+
141
+ #### Using the requests_get_with_http_info variant
142
+
143
+ This returns an Array which contains the response data, status code and headers.
144
+
145
+ > <Array(<Requests>, Integer, Hash)> requests_get_with_http_info(opts)
146
+
147
+ ```ruby
148
+ begin
149
+ # List Requests
150
+ data, status_code, headers = api_instance.requests_get_with_http_info(opts)
151
+ p status_code # => 2xx
152
+ p headers # => { ... }
153
+ p data # => <Requests>
154
+ rescue Ionoscloud::ApiError => e
155
+ puts "Error when calling RequestApi->requests_get_with_http_info: #{e}"
156
+ end
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+ | Name | Type | Description | Notes |
162
+ | ---- | ---- | ----------- | ----- |
163
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
164
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
165
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
166
+ | **filter_status** | **String** | Request status filter to fetch all the request based on a particular status [QUEUED, RUNNING, DONE, FAILED] | [optional] |
167
+ | **filter_created_after** | **String** | Filter all the requests after the created date | [optional] |
168
+ | **filter_created_before** | **String** | Filter all the requests before the created date | [optional] |
169
+ | **offset** | **Integer** | the first element (of the total list of elements) to include in the response (use together with &lt;code&gt;limit&lt;/code&gt; for pagination) | [optional][default to 0] |
170
+ | **limit** | **Integer** | the maximum number of elements to return (use together with &lt;code&gt;offset&lt;/code&gt; for pagination) | [optional][default to 1000] |
171
+
172
+ ### Return type
173
+
174
+ [**Requests**](Requests.md)
175
+
176
+ ### Authorization
177
+
178
+ Basic Authentication, Token Authentication
179
+
180
+ ### HTTP request headers
181
+
182
+ - **Content-Type**: Not defined
183
+ - **Accept**: application/json
184
+
185
+
186
+ ## requests_status_get
187
+
188
+ > <RequestStatus> requests_status_get(request_id, opts)
189
+
190
+ Retrieve Request Status
191
+
192
+ Retrieves the status of a given request.
193
+
194
+ ### Examples
195
+
196
+ ```ruby
197
+ require 'time'
198
+ require 'ionoscloud'
199
+ # setup authorization
200
+ Ionoscloud.configure do |config|
201
+ # Configure HTTP basic authorization: Basic Authentication
202
+ config.username = 'YOUR USERNAME'
203
+ config.password = 'YOUR PASSWORD'
204
+
205
+ # Configure API key authorization: Token Authentication
206
+ config.api_key['Authorization'] = 'YOUR API KEY'
207
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
208
+ # config.api_key_prefix['Authorization'] = 'Bearer'
209
+ end
210
+
211
+ api_instance = Ionoscloud::RequestApi.new
212
+ request_id = 'request_id_example' # String |
213
+ opts = {
214
+ pretty: true, # Boolean | Controls whether response is pretty-printed (with indentation and new lines)
215
+ depth: 56, # Integer | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth=0: only direct properties are included. Children (servers etc.) are not included - depth=1: direct properties and children references are included - depth=2: direct properties and children properties are included - depth=3: direct properties and children properties and children's children are included - depth=... and so on
216
+ x_contract_number: 56 # Integer | Users having more than 1 contract need to provide contract number, against which all API requests should be executed
217
+ }
218
+
219
+ begin
220
+ # Retrieve Request Status
221
+ result = api_instance.requests_status_get(request_id, opts)
222
+ p result
223
+ rescue Ionoscloud::ApiError => e
224
+ puts "Error when calling RequestApi->requests_status_get: #{e}"
225
+ end
226
+ ```
227
+
228
+ #### Using the requests_status_get_with_http_info variant
229
+
230
+ This returns an Array which contains the response data, status code and headers.
231
+
232
+ > <Array(<RequestStatus>, Integer, Hash)> requests_status_get_with_http_info(request_id, opts)
233
+
234
+ ```ruby
235
+ begin
236
+ # Retrieve Request Status
237
+ data, status_code, headers = api_instance.requests_status_get_with_http_info(request_id, opts)
238
+ p status_code # => 2xx
239
+ p headers # => { ... }
240
+ p data # => <RequestStatus>
241
+ rescue Ionoscloud::ApiError => e
242
+ puts "Error when calling RequestApi->requests_status_get_with_http_info: #{e}"
243
+ end
244
+ ```
245
+
246
+ ### Parameters
247
+
248
+ | Name | Type | Description | Notes |
249
+ | ---- | ---- | ----------- | ----- |
250
+ | **request_id** | **String** | | |
251
+ | **pretty** | **Boolean** | Controls whether response is pretty-printed (with indentation and new lines) | [optional][default to true] |
252
+ | **depth** | **Integer** | Controls the details depth of response objects. Eg. GET /datacenters/[ID] - depth&#x3D;0: only direct properties are included. Children (servers etc.) are not included - depth&#x3D;1: direct properties and children references are included - depth&#x3D;2: direct properties and children properties are included - depth&#x3D;3: direct properties and children properties and children&#39;s children are included - depth&#x3D;... and so on | [optional][default to 0] |
253
+ | **x_contract_number** | **Integer** | Users having more than 1 contract need to provide contract number, against which all API requests should be executed | [optional] |
254
+
255
+ ### Return type
256
+
257
+ [**RequestStatus**](RequestStatus.md)
258
+
259
+ ### Authorization
260
+
261
+ Basic Authentication, Token Authentication
262
+
263
+ ### HTTP request headers
264
+
265
+ - **Content-Type**: Not defined
266
+ - **Accept**: application/json
267
+