ionoscloud 6.0.1 → 6.0.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 +2 -2
- data/docs/CHANGELOG.md +14 -0
- 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 +1 -1
- data/lib/ionoscloud/configuration.rb +11 -26
- data/lib/ionoscloud/models/kubernetes_cluster_properties.rb +1 -21
- data/lib/ionoscloud/models/kubernetes_cluster_properties_for_post.rb +1 -21
- data/lib/ionoscloud/models/kubernetes_node_pool_properties.rb +2 -20
- data/lib/ionoscloud/models/kubernetes_node_pool_properties_for_post.rb +2 -20
- data/lib/ionoscloud/version.rb +1 -1
- metadata +2 -3
- data/lib/test_driver.rb +0 -119
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3da2dd1e5ade7fcada7df32eafa695acccb7ee53697945f3042228e5554a26c1
|
4
|
+
data.tar.gz: dcf1e1ad5590859c32f25f58691dce8055fc57cca6cb3f09e8b9e9ce12571fc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a43d69e3f4a081004bf7ba0da3269b43e9f3b8d46fe9d993d71087321d9b7716add781073f87c025b269885ee179ca739c271a77e5f85b77647826a8e206be9
|
7
|
+
data.tar.gz: a3e364306cdb09d16d3a6a472e12d0d16869137423c4b9eb63b696177e6f77c0ac74fcb2b3496aca75bcf4921a259fda0736b6f4741ef04cf5ce07a7dfe3518a
|
data/Gemfile.lock
CHANGED
data/docs/CHANGELOG.md
CHANGED
@@ -1 +1,15 @@
|
|
1
1
|
# CHANGELOG
|
2
|
+
|
3
|
+
## 6.0.1 \(March 15th, 2022\)
|
4
|
+
|
5
|
+
### Enhancements:
|
6
|
+
|
7
|
+
* new licence type: `WINDOWS2022`
|
8
|
+
* new parameter on **KubernetesClusterProperties**, **KubernetesClusterPropertiesForPost** models: `public`
|
9
|
+
* new parameter on **KubernetesNodePoolProperties** model: `gateway_ip`
|
10
|
+
* new read-only parameter on **VolumeProperties** model: `boot_server`
|
11
|
+
|
12
|
+
|
13
|
+
## 6.0.0 \(December 22nd, 2021\)
|
14
|
+
|
15
|
+
* First v6 stable release
|
@@ -9,7 +9,6 @@
|
|
9
9
|
| **maintenance_window** | [**KubernetesMaintenanceWindow**](KubernetesMaintenanceWindow.md) | | [optional] |
|
10
10
|
| **available_upgrade_versions** | **Array<String>** | List of available versions for upgrading the cluster | [optional] |
|
11
11
|
| **viable_node_pool_versions** | **Array<String>** | List of versions that may be used for node pools under this cluster | [optional] |
|
12
|
-
| **public** | **Boolean** | The indicator if the cluster is public or private. Be aware that setting it to false is currently in beta phase. | [optional][default to true] |
|
13
12
|
| **api_subnet_allow_list** | **Array<String>** | Access to the K8s API server is restricted to these CIDRs. Traffic, internal to the cluster, is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value is used: 32 for IPv4 and 128 for IPv6. | [optional] |
|
14
13
|
| **s3_buckets** | [**Array<S3Bucket>**](S3Bucket.md) | List of S3 bucket configured for K8s usage. For now it contains only an S3 bucket used to store K8s API audit logs | [optional] |
|
15
14
|
|
@@ -24,7 +23,6 @@ instance = Ionoscloud::KubernetesClusterProperties.new(
|
|
24
23
|
maintenance_window: null,
|
25
24
|
available_upgrade_versions: [1.16.4, 1.17.7],
|
26
25
|
viable_node_pool_versions: [1.17.7, 1.18.2],
|
27
|
-
public: null,
|
28
26
|
api_subnet_allow_list: [1.2.3.4/32, 2002::1234:abcd:ffff:c0a8:101/64, 1.2.3.4, 2002::1234:abcd:ffff:c0a8:101],
|
29
27
|
s3_buckets: null
|
30
28
|
)
|
@@ -7,7 +7,6 @@
|
|
7
7
|
| **name** | **String** | A Kubernetes cluster name. Valid Kubernetes cluster name must be 63 characters or less and must be empty or begin and end with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics between. | |
|
8
8
|
| **k8s_version** | **String** | The Kubernetes version the cluster is running. This imposes restrictions on what Kubernetes versions can be run in a cluster's nodepools. Additionally, not all Kubernetes versions are viable upgrade targets for all prior versions. | [optional] |
|
9
9
|
| **maintenance_window** | [**KubernetesMaintenanceWindow**](KubernetesMaintenanceWindow.md) | | [optional] |
|
10
|
-
| **public** | **Boolean** | The indicator if the cluster is public or private. Be aware that setting it to false is currently in beta phase. | [optional][default to true] |
|
11
10
|
| **api_subnet_allow_list** | **Array<String>** | Access to the K8s API server is restricted to these CIDRs. Traffic, internal to the cluster, is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value is used: 32 for IPv4 and 128 for IPv6. | [optional] |
|
12
11
|
| **s3_buckets** | [**Array<S3Bucket>**](S3Bucket.md) | List of S3 bucket configured for K8s usage. For now it contains only an S3 bucket used to store K8s API audit logs | [optional] |
|
13
12
|
|
@@ -20,7 +19,6 @@ instance = Ionoscloud::KubernetesClusterPropertiesForPost.new(
|
|
20
19
|
name: k8s,
|
21
20
|
k8s_version: 1.15.4,
|
22
21
|
maintenance_window: null,
|
23
|
-
public: null,
|
24
22
|
api_subnet_allow_list: [1.2.3.4/32, 2002::1234:abcd:ffff:c0a8:101/64, 1.2.3.4, 2002::1234:abcd:ffff:c0a8:101],
|
25
23
|
s3_buckets: null
|
26
24
|
)
|
@@ -21,7 +21,6 @@
|
|
21
21
|
| **annotations** | **Hash<String, String>** | map of annotations attached to node pool. | [optional] |
|
22
22
|
| **public_ips** | **Array<String>** | Optional array of reserved public IP addresses to be used by the nodes. IPs must be from same location as the data center used for the node pool. The array must contain one more IP than maximum number possible number of nodes (nodeCount+1 for fixed number of nodes or maxNodeCount+1 when auto scaling is used). The extra IP is used when the nodes are rebuilt. | [optional] |
|
23
23
|
| **available_upgrade_versions** | **Array<String>** | List of available versions for upgrading the node pool. | [optional] |
|
24
|
-
| **gateway_ip** | **String** | Public IP address for the gateway performing source NAT for the node pool's nodes belonging to a private cluster. Required only if the node pool belongs to a private cluster. | [optional] |
|
25
24
|
|
26
25
|
## Example
|
27
26
|
|
@@ -46,7 +45,5 @@ instance = Ionoscloud::KubernetesNodePoolProperties.new(
|
|
46
45
|
annotations: null,
|
47
46
|
public_ips: [81.173.1.2, 82.231.2.5, 92.221.2.4],
|
48
47
|
available_upgrade_versions: [1.16.4, 1.17.7],
|
49
|
-
gateway_ip: 198.51.100.100
|
50
|
-
)
|
51
48
|
```
|
52
49
|
|
@@ -20,7 +20,6 @@
|
|
20
20
|
| **labels** | **Hash<String, String>** | map of labels attached to node pool. | [optional] |
|
21
21
|
| **annotations** | **Hash<String, String>** | map of annotations attached to node pool. | [optional] |
|
22
22
|
| **public_ips** | **Array<String>** | Optional array of reserved public IP addresses to be used by the nodes. IPs must be from same location as the data center used for the node pool. The array must contain one more IP than the maximum possible number of nodes (nodeCount+1 for fixed number of nodes or maxNodeCount+1 when auto scaling is used). The extra IP is used when the nodes are rebuilt. | [optional] |
|
23
|
-
| **gateway_ip** | **String** | Public IP address for the gateway performing source NAT for the node pool's nodes belonging to a private cluster. Required only if the node pool belongs to a private cluster. | [optional] |
|
24
23
|
|
25
24
|
## Example
|
26
25
|
|
@@ -44,7 +43,5 @@ instance = Ionoscloud::KubernetesNodePoolPropertiesForPost.new(
|
|
44
43
|
labels: null,
|
45
44
|
annotations: null,
|
46
45
|
public_ips: [81.173.1.2, 82.231.2.5, 92.221.2.4],
|
47
|
-
gateway_ip: 198.51.100.100
|
48
|
-
)
|
49
46
|
```
|
50
47
|
|
@@ -38,7 +38,7 @@ module Ionoscloud
|
|
38
38
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
39
39
|
def initialize(config = Configuration.default)
|
40
40
|
@config = config
|
41
|
-
@user_agent = "ionos-cloud-sdk-ruby/
|
41
|
+
@user_agent = "ionos-cloud-sdk-ruby/v6.0.2"
|
42
42
|
@default_headers = {
|
43
43
|
'Content-Type' => 'application/json',
|
44
44
|
'User-Agent' => @user_agent
|
@@ -33,21 +33,16 @@ module Ionoscloud
|
|
33
33
|
# Default server operation variables
|
34
34
|
attr_accessor :server_operation_variables
|
35
35
|
|
36
|
-
# Defines
|
36
|
+
# Defines Tokens used with Token authentications.
|
37
37
|
#
|
38
|
-
# @return [
|
39
|
-
|
40
|
-
# @example parameter name is "api_key", API key is "xxx" (e.g. "api_key=xxx" in query string)
|
41
|
-
# config.api_key['api_key'] = 'xxx'
|
42
|
-
attr_accessor :api_key
|
38
|
+
# @return [String]
|
39
|
+
attr_accessor :token
|
43
40
|
|
44
|
-
# Defines
|
41
|
+
# Defines Token prefixes used with Token authentications.
|
42
|
+
# Default to 'Bearer'.
|
45
43
|
#
|
46
|
-
# @return [
|
47
|
-
|
48
|
-
# @example parameter name is "Authorization", API key prefix is "Token" (e.g. "Authorization: Token xxx" in headers)
|
49
|
-
# config.api_key_prefix['api_key'] = 'Token'
|
50
|
-
attr_accessor :api_key_prefix
|
44
|
+
# @return [String]
|
45
|
+
attr_accessor :token_prefix
|
51
46
|
|
52
47
|
# Defines the username used with HTTP basic authentication.
|
53
48
|
#
|
@@ -151,8 +146,8 @@ module Ionoscloud
|
|
151
146
|
@server_operation_index = {}
|
152
147
|
@server_variables = {}
|
153
148
|
@server_operation_variables = {}
|
154
|
-
@
|
155
|
-
@
|
149
|
+
@token = nil
|
150
|
+
@token_prefix = 'Bearer'
|
156
151
|
@timeout = 0
|
157
152
|
@client_side_validation = true
|
158
153
|
@verify_ssl = true
|
@@ -204,16 +199,6 @@ module Ionoscloud
|
|
204
199
|
server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation])
|
205
200
|
end
|
206
201
|
|
207
|
-
# Gets API key (with prefix if set).
|
208
|
-
# @param [String] param_name the parameter name of API key auth
|
209
|
-
def api_key_with_prefix(param_name)
|
210
|
-
if @api_key_prefix[param_name]
|
211
|
-
"#{@api_key_prefix[param_name]} #{@api_key[param_name]}"
|
212
|
-
else
|
213
|
-
@api_key[param_name]
|
214
|
-
end
|
215
|
-
end
|
216
|
-
|
217
202
|
# Gets Basic Auth token string
|
218
203
|
def basic_auth_token
|
219
204
|
'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n")
|
@@ -231,10 +216,10 @@ module Ionoscloud
|
|
231
216
|
},
|
232
217
|
'Token Authentication' =>
|
233
218
|
{
|
234
|
-
type: '
|
219
|
+
type: 'token',
|
235
220
|
in: 'header',
|
236
221
|
key: 'Authorization',
|
237
|
-
value:
|
222
|
+
value: token.nil? ? nil : "#{token_prefix} #{token}"
|
238
223
|
},
|
239
224
|
}
|
240
225
|
end
|
@@ -35,10 +35,6 @@ module Ionoscloud
|
|
35
35
|
attr_accessor :viable_node_pool_versions
|
36
36
|
|
37
37
|
|
38
|
-
# The indicator if the cluster is public or private. Be aware that setting it to false is currently in beta phase.
|
39
|
-
attr_accessor :public
|
40
|
-
|
41
|
-
|
42
38
|
# Access to the K8s API server is restricted to these CIDRs. Traffic, internal to the cluster, is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value is used: 32 for IPv4 and 128 for IPv6.
|
43
39
|
attr_accessor :api_subnet_allow_list
|
44
40
|
|
@@ -60,8 +56,6 @@ module Ionoscloud
|
|
60
56
|
|
61
57
|
:'viable_node_pool_versions' => :'viableNodePoolVersions',
|
62
58
|
|
63
|
-
:'public' => :'public',
|
64
|
-
|
65
59
|
:'api_subnet_allow_list' => :'apiSubnetAllowList',
|
66
60
|
|
67
61
|
:'s3_buckets' => :'s3Buckets'
|
@@ -87,8 +81,6 @@ module Ionoscloud
|
|
87
81
|
|
88
82
|
:'viable_node_pool_versions' => :'Array<String>',
|
89
83
|
|
90
|
-
:'public' => :'Boolean',
|
91
|
-
|
92
84
|
:'api_subnet_allow_list' => :'Array<String>',
|
93
85
|
|
94
86
|
:'s3_buckets' => :'Array<S3Bucket>'
|
@@ -105,7 +97,6 @@ module Ionoscloud
|
|
105
97
|
|
106
98
|
|
107
99
|
|
108
|
-
|
109
100
|
])
|
110
101
|
end
|
111
102
|
|
@@ -150,13 +141,6 @@ module Ionoscloud
|
|
150
141
|
end
|
151
142
|
|
152
143
|
|
153
|
-
if attributes.key?(:'public')
|
154
|
-
self.public = attributes[:'public']
|
155
|
-
else
|
156
|
-
self.public = true
|
157
|
-
end
|
158
|
-
|
159
|
-
|
160
144
|
if attributes.key?(:'api_subnet_allow_list') && (value = attributes[:'api_subnet_allow_list']).is_a?(Array)
|
161
145
|
self.api_subnet_allow_list = value
|
162
146
|
end
|
@@ -182,7 +166,6 @@ module Ionoscloud
|
|
182
166
|
|
183
167
|
|
184
168
|
|
185
|
-
|
186
169
|
invalid_properties
|
187
170
|
end
|
188
171
|
|
@@ -197,7 +180,6 @@ module Ionoscloud
|
|
197
180
|
|
198
181
|
|
199
182
|
|
200
|
-
|
201
183
|
true
|
202
184
|
end
|
203
185
|
|
@@ -208,7 +190,6 @@ module Ionoscloud
|
|
208
190
|
|
209
191
|
|
210
192
|
|
211
|
-
|
212
193
|
# Checks equality by comparing each attribute.
|
213
194
|
# @param [Object] Object to be compared
|
214
195
|
def ==(o)
|
@@ -219,7 +200,6 @@ module Ionoscloud
|
|
219
200
|
maintenance_window == o.maintenance_window &&
|
220
201
|
available_upgrade_versions == o.available_upgrade_versions &&
|
221
202
|
viable_node_pool_versions == o.viable_node_pool_versions &&
|
222
|
-
public == o.public &&
|
223
203
|
api_subnet_allow_list == o.api_subnet_allow_list &&
|
224
204
|
s3_buckets == o.s3_buckets
|
225
205
|
end
|
@@ -233,7 +213,7 @@ module Ionoscloud
|
|
233
213
|
# Calculates hash code according to all attributes.
|
234
214
|
# @return [Integer] Hash code
|
235
215
|
def hash
|
236
|
-
[name, k8s_version, maintenance_window, available_upgrade_versions, viable_node_pool_versions,
|
216
|
+
[name, k8s_version, maintenance_window, available_upgrade_versions, viable_node_pool_versions, api_subnet_allow_list, s3_buckets].hash
|
237
217
|
end
|
238
218
|
|
239
219
|
# Builds the object from hash
|
@@ -27,10 +27,6 @@ module Ionoscloud
|
|
27
27
|
attr_accessor :maintenance_window
|
28
28
|
|
29
29
|
|
30
|
-
# The indicator if the cluster is public or private. Be aware that setting it to false is currently in beta phase.
|
31
|
-
attr_accessor :public
|
32
|
-
|
33
|
-
|
34
30
|
# Access to the K8s API server is restricted to these CIDRs. Traffic, internal to the cluster, is not affected by this restriction. If no allowlist is specified, access is not restricted. If an IP without subnet mask is provided, the default value is used: 32 for IPv4 and 128 for IPv6.
|
35
31
|
attr_accessor :api_subnet_allow_list
|
36
32
|
|
@@ -48,8 +44,6 @@ module Ionoscloud
|
|
48
44
|
|
49
45
|
:'maintenance_window' => :'maintenanceWindow',
|
50
46
|
|
51
|
-
:'public' => :'public',
|
52
|
-
|
53
47
|
:'api_subnet_allow_list' => :'apiSubnetAllowList',
|
54
48
|
|
55
49
|
:'s3_buckets' => :'s3Buckets'
|
@@ -71,8 +65,6 @@ module Ionoscloud
|
|
71
65
|
|
72
66
|
:'maintenance_window' => :'KubernetesMaintenanceWindow',
|
73
67
|
|
74
|
-
:'public' => :'Boolean',
|
75
|
-
|
76
68
|
:'api_subnet_allow_list' => :'Array<String>',
|
77
69
|
|
78
70
|
:'s3_buckets' => :'Array<S3Bucket>'
|
@@ -87,7 +79,6 @@ module Ionoscloud
|
|
87
79
|
|
88
80
|
|
89
81
|
|
90
|
-
|
91
82
|
])
|
92
83
|
end
|
93
84
|
|
@@ -122,13 +113,6 @@ module Ionoscloud
|
|
122
113
|
end
|
123
114
|
|
124
115
|
|
125
|
-
if attributes.key?(:'public')
|
126
|
-
self.public = attributes[:'public']
|
127
|
-
else
|
128
|
-
self.public = true
|
129
|
-
end
|
130
|
-
|
131
|
-
|
132
116
|
if attributes.key?(:'api_subnet_allow_list') && (value = attributes[:'api_subnet_allow_list']).is_a?(Array)
|
133
117
|
self.api_subnet_allow_list = value
|
134
118
|
end
|
@@ -152,7 +136,6 @@ module Ionoscloud
|
|
152
136
|
|
153
137
|
|
154
138
|
|
155
|
-
|
156
139
|
invalid_properties
|
157
140
|
end
|
158
141
|
|
@@ -165,7 +148,6 @@ module Ionoscloud
|
|
165
148
|
|
166
149
|
|
167
150
|
|
168
|
-
|
169
151
|
true
|
170
152
|
end
|
171
153
|
|
@@ -174,7 +156,6 @@ module Ionoscloud
|
|
174
156
|
|
175
157
|
|
176
158
|
|
177
|
-
|
178
159
|
# Checks equality by comparing each attribute.
|
179
160
|
# @param [Object] Object to be compared
|
180
161
|
def ==(o)
|
@@ -183,7 +164,6 @@ module Ionoscloud
|
|
183
164
|
name == o.name &&
|
184
165
|
k8s_version == o.k8s_version &&
|
185
166
|
maintenance_window == o.maintenance_window &&
|
186
|
-
public == o.public &&
|
187
167
|
api_subnet_allow_list == o.api_subnet_allow_list &&
|
188
168
|
s3_buckets == o.s3_buckets
|
189
169
|
end
|
@@ -197,7 +177,7 @@ module Ionoscloud
|
|
197
177
|
# Calculates hash code according to all attributes.
|
198
178
|
# @return [Integer] Hash code
|
199
179
|
def hash
|
200
|
-
[name, k8s_version, maintenance_window,
|
180
|
+
[name, k8s_version, maintenance_window, api_subnet_allow_list, s3_buckets].hash
|
201
181
|
end
|
202
182
|
|
203
183
|
# Builds the object from hash
|
@@ -81,10 +81,6 @@ module Ionoscloud
|
|
81
81
|
# List of available versions for upgrading the node pool.
|
82
82
|
attr_accessor :available_upgrade_versions
|
83
83
|
|
84
|
-
|
85
|
-
# Public IP address for the gateway performing source NAT for the node pool's nodes belonging to a private cluster. Required only if the node pool belongs to a private cluster.
|
86
|
-
attr_accessor :gateway_ip
|
87
|
-
|
88
84
|
class EnumAttributeValidator
|
89
85
|
attr_reader :datatype
|
90
86
|
attr_reader :allowable_values
|
@@ -144,8 +140,6 @@ module Ionoscloud
|
|
144
140
|
:'public_ips' => :'publicIps',
|
145
141
|
|
146
142
|
:'available_upgrade_versions' => :'availableUpgradeVersions',
|
147
|
-
|
148
|
-
:'gateway_ip' => :'gatewayIp'
|
149
143
|
}
|
150
144
|
end
|
151
145
|
|
@@ -191,8 +185,6 @@ module Ionoscloud
|
|
191
185
|
:'public_ips' => :'Array<String>',
|
192
186
|
|
193
187
|
:'available_upgrade_versions' => :'Array<String>',
|
194
|
-
|
195
|
-
:'gateway_ip' => :'String'
|
196
188
|
}
|
197
189
|
end
|
198
190
|
|
@@ -216,7 +208,6 @@ module Ionoscloud
|
|
216
208
|
|
217
209
|
|
218
210
|
|
219
|
-
|
220
211
|
])
|
221
212
|
end
|
222
213
|
|
@@ -319,11 +310,6 @@ module Ionoscloud
|
|
319
310
|
if attributes.key?(:'available_upgrade_versions') && (value = attributes[:'available_upgrade_versions']).is_a?(Array)
|
320
311
|
self.available_upgrade_versions = value
|
321
312
|
end
|
322
|
-
|
323
|
-
|
324
|
-
if attributes.key?(:'gateway_ip')
|
325
|
-
self.gateway_ip = attributes[:'gateway_ip']
|
326
|
-
end
|
327
313
|
end
|
328
314
|
|
329
315
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -383,7 +369,6 @@ module Ionoscloud
|
|
383
369
|
|
384
370
|
|
385
371
|
|
386
|
-
|
387
372
|
invalid_properties
|
388
373
|
end
|
389
374
|
|
@@ -420,7 +405,6 @@ module Ionoscloud
|
|
420
405
|
|
421
406
|
|
422
407
|
|
423
|
-
|
424
408
|
true
|
425
409
|
end
|
426
410
|
|
@@ -461,7 +445,6 @@ module Ionoscloud
|
|
461
445
|
|
462
446
|
|
463
447
|
|
464
|
-
|
465
448
|
# Checks equality by comparing each attribute.
|
466
449
|
# @param [Object] Object to be compared
|
467
450
|
def ==(o)
|
@@ -483,8 +466,7 @@ module Ionoscloud
|
|
483
466
|
labels == o.labels &&
|
484
467
|
annotations == o.annotations &&
|
485
468
|
public_ips == o.public_ips &&
|
486
|
-
available_upgrade_versions == o.available_upgrade_versions
|
487
|
-
gateway_ip == o.gateway_ip
|
469
|
+
available_upgrade_versions == o.available_upgrade_versions
|
488
470
|
end
|
489
471
|
|
490
472
|
# @see the `==` method
|
@@ -496,7 +478,7 @@ module Ionoscloud
|
|
496
478
|
# Calculates hash code according to all attributes.
|
497
479
|
# @return [Integer] Hash code
|
498
480
|
def hash
|
499
|
-
[name, datacenter_id, node_count, cpu_family, cores_count, ram_size, availability_zone, storage_type, storage_size, k8s_version, maintenance_window, auto_scaling, lans, labels, annotations, public_ips, available_upgrade_versions,
|
481
|
+
[name, datacenter_id, node_count, cpu_family, cores_count, ram_size, availability_zone, storage_type, storage_size, k8s_version, maintenance_window, auto_scaling, lans, labels, annotations, public_ips, available_upgrade_versions, ].hash
|
500
482
|
end
|
501
483
|
|
502
484
|
# Builds the object from hash
|
@@ -77,10 +77,6 @@ module Ionoscloud
|
|
77
77
|
# Optional array of reserved public IP addresses to be used by the nodes. IPs must be from same location as the data center used for the node pool. The array must contain one more IP than the maximum possible number of nodes (nodeCount+1 for fixed number of nodes or maxNodeCount+1 when auto scaling is used). The extra IP is used when the nodes are rebuilt.
|
78
78
|
attr_accessor :public_ips
|
79
79
|
|
80
|
-
|
81
|
-
# Public IP address for the gateway performing source NAT for the node pool's nodes belonging to a private cluster. Required only if the node pool belongs to a private cluster.
|
82
|
-
attr_accessor :gateway_ip
|
83
|
-
|
84
80
|
class EnumAttributeValidator
|
85
81
|
attr_reader :datatype
|
86
82
|
attr_reader :allowable_values
|
@@ -138,8 +134,6 @@ module Ionoscloud
|
|
138
134
|
:'annotations' => :'annotations',
|
139
135
|
|
140
136
|
:'public_ips' => :'publicIps',
|
141
|
-
|
142
|
-
:'gateway_ip' => :'gatewayIp'
|
143
137
|
}
|
144
138
|
end
|
145
139
|
|
@@ -183,8 +177,6 @@ module Ionoscloud
|
|
183
177
|
:'annotations' => :'Hash<String, String>',
|
184
178
|
|
185
179
|
:'public_ips' => :'Array<String>',
|
186
|
-
|
187
|
-
:'gateway_ip' => :'String'
|
188
180
|
}
|
189
181
|
end
|
190
182
|
|
@@ -207,7 +199,6 @@ module Ionoscloud
|
|
207
199
|
|
208
200
|
|
209
201
|
|
210
|
-
|
211
202
|
])
|
212
203
|
end
|
213
204
|
|
@@ -305,11 +296,6 @@ module Ionoscloud
|
|
305
296
|
if attributes.key?(:'public_ips') && (value = attributes[:'public_ips']).is_a?(Array)
|
306
297
|
self.public_ips = value
|
307
298
|
end
|
308
|
-
|
309
|
-
|
310
|
-
if attributes.key?(:'gateway_ip')
|
311
|
-
self.gateway_ip = attributes[:'gateway_ip']
|
312
|
-
end
|
313
299
|
end
|
314
300
|
|
315
301
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -368,7 +354,6 @@ module Ionoscloud
|
|
368
354
|
|
369
355
|
|
370
356
|
|
371
|
-
|
372
357
|
invalid_properties
|
373
358
|
end
|
374
359
|
|
@@ -404,7 +389,6 @@ module Ionoscloud
|
|
404
389
|
|
405
390
|
|
406
391
|
|
407
|
-
|
408
392
|
true
|
409
393
|
end
|
410
394
|
|
@@ -444,7 +428,6 @@ module Ionoscloud
|
|
444
428
|
|
445
429
|
|
446
430
|
|
447
|
-
|
448
431
|
# Checks equality by comparing each attribute.
|
449
432
|
# @param [Object] Object to be compared
|
450
433
|
def ==(o)
|
@@ -465,8 +448,7 @@ module Ionoscloud
|
|
465
448
|
lans == o.lans &&
|
466
449
|
labels == o.labels &&
|
467
450
|
annotations == o.annotations &&
|
468
|
-
public_ips == o.public_ips
|
469
|
-
gateway_ip == o.gateway_ip
|
451
|
+
public_ips == o.public_ips
|
470
452
|
end
|
471
453
|
|
472
454
|
# @see the `==` method
|
@@ -478,7 +460,7 @@ module Ionoscloud
|
|
478
460
|
# Calculates hash code according to all attributes.
|
479
461
|
# @return [Integer] Hash code
|
480
462
|
def hash
|
481
|
-
[name, datacenter_id, node_count, cpu_family, cores_count, ram_size, availability_zone, storage_type, storage_size, k8s_version, maintenance_window, auto_scaling, lans, labels, annotations, public_ips,
|
463
|
+
[name, datacenter_id, node_count, cpu_family, cores_count, ram_size, availability_zone, storage_type, storage_size, k8s_version, maintenance_window, auto_scaling, lans, labels, annotations, public_ips, ].hash
|
482
464
|
end
|
483
465
|
|
484
466
|
# Builds the object from hash
|
data/lib/ionoscloud/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ionoscloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -464,7 +464,6 @@ files:
|
|
464
464
|
- lib/ionoscloud/models/volume_properties.rb
|
465
465
|
- lib/ionoscloud/models/volumes.rb
|
466
466
|
- lib/ionoscloud/version.rb
|
467
|
-
- lib/test_driver.rb
|
468
467
|
- sonar-project.properties
|
469
468
|
- spec/api_client_spec.rb
|
470
469
|
- spec/configuration_spec.rb
|
data/lib/test_driver.rb
DELETED
@@ -1,119 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
$LOAD_PATH << '.'
|
4
|
-
|
5
|
-
require 'json'
|
6
|
-
|
7
|
-
{
|
8
|
-
'ionoscloud' => 'Ionoscloud',
|
9
|
-
'ionoscloud-autoscaling' => 'IonoscloudAutoscaling',
|
10
|
-
'ionoscloud-dbaas-postgres' => 'IonoscloudDbaasPostgres',
|
11
|
-
}.each do |module_name, namespace|
|
12
|
-
begin
|
13
|
-
require module_name
|
14
|
-
Ionoscloud = Object.const_get(namespace)
|
15
|
-
break
|
16
|
-
rescue LoadError
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
config = Ionoscloud::Configuration.new
|
21
|
-
|
22
|
-
config.username = ENV['IONOS_USERNAME']
|
23
|
-
config.password = ENV['IONOS_PASSWORD']
|
24
|
-
|
25
|
-
api_client = Ionoscloud::ApiClient.new(config)
|
26
|
-
|
27
|
-
def underscore_string(str)
|
28
|
-
str.gsub(/::/, '/')
|
29
|
-
.gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2')
|
30
|
-
.gsub(/([a-z\d])([A-Z])/, '\1_\2')
|
31
|
-
.tr('-', '_')
|
32
|
-
.downcase
|
33
|
-
end
|
34
|
-
|
35
|
-
def get_class(operation)
|
36
|
-
Ionoscloud.constants.select do |c|
|
37
|
-
Ionoscloud.const_get(c).is_a? Class and Ionoscloud.const_get(c).name.end_with? 'Api'
|
38
|
-
end.each do |class_symbol|
|
39
|
-
class_name = class_symbol.to_s
|
40
|
-
methods = Ionoscloud.const_get(class_name).new.methods - Object.methods
|
41
|
-
return Ionoscloud.const_get(class_name) if methods.map(&:to_s).include? operation
|
42
|
-
end
|
43
|
-
nil
|
44
|
-
end
|
45
|
-
|
46
|
-
input = gets.chomp
|
47
|
-
testing_data = JSON.parse(input.gsub('\"', '"'))
|
48
|
-
|
49
|
-
operation = testing_data['operation']
|
50
|
-
|
51
|
-
begin
|
52
|
-
if operation == 'waitForRequest'
|
53
|
-
request_id = testing_data['params'][0]['value'].scan(%r{/requests/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)}).last.first
|
54
|
-
api_client.wait_for_completion(request_id)
|
55
|
-
puts JSON[{}]
|
56
|
-
else
|
57
|
-
method_name = "#{underscore_string(operation)}_with_http_info"
|
58
|
-
|
59
|
-
cls = get_class method_name
|
60
|
-
|
61
|
-
special_params_names = %w[pretty depth XContractNumber contractNumber offset limit start end]
|
62
|
-
|
63
|
-
normal_params, special_params = (testing_data['params'].nil? ? [] : testing_data['params']).partition do |el|
|
64
|
-
special_params_names.none? do |special_param_name|
|
65
|
-
special_param_name == el['name']
|
66
|
-
end
|
67
|
-
end
|
68
|
-
|
69
|
-
normal_params = normal_params.map { |el| el['value'] }
|
70
|
-
|
71
|
-
special_params = special_params.each_with_object({}) do |current, total|
|
72
|
-
total[current['name'].to_sym] = current['value']
|
73
|
-
end
|
74
|
-
|
75
|
-
response, status_code, headers = cls.new(api_client).public_send(
|
76
|
-
method_name.to_sym,
|
77
|
-
*normal_params,
|
78
|
-
special_params
|
79
|
-
)
|
80
|
-
|
81
|
-
begin
|
82
|
-
response = response.to_hash
|
83
|
-
rescue NoMethodError
|
84
|
-
end
|
85
|
-
|
86
|
-
headers = headers.transform_values do |value|
|
87
|
-
value.split(',', -1)
|
88
|
-
end
|
89
|
-
|
90
|
-
puts JSON[{
|
91
|
-
'result' => response,
|
92
|
-
'httpResponse' => {
|
93
|
-
'statusCode' => status_code,
|
94
|
-
'headers' => headers.transform_keys(&:downcase),
|
95
|
-
'body' => response,
|
96
|
-
}
|
97
|
-
}]
|
98
|
-
end
|
99
|
-
rescue Ionoscloud::ApiError => e
|
100
|
-
puts JSON[{
|
101
|
-
'result' => 'ApiException occured',
|
102
|
-
'httpResponse' => {
|
103
|
-
'statusCode' => e.code,
|
104
|
-
'headers' => e.response_headers,
|
105
|
-
'body' => JSON.parse(e.response_body),
|
106
|
-
},
|
107
|
-
'error' => JSON.parse(e.response_body),
|
108
|
-
}]
|
109
|
-
rescue StandardError => e
|
110
|
-
puts JSON[{
|
111
|
-
'result' => 'GeneralException occured',
|
112
|
-
'httpResponse' => {
|
113
|
-
'statusCode' => nil,
|
114
|
-
'headers' => nil,
|
115
|
-
'body' => nil,
|
116
|
-
},
|
117
|
-
'error' => e.inspect,
|
118
|
-
}]
|
119
|
-
end
|