pnap_rancher_api 1.0.6 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -4
- data/VERSION +1 -1
- data/docs/Cluster.md +3 -3
- data/docs/ClustersApi.md +6 -8
- data/docs/NodePool.md +2 -2
- data/docs/RancherClusterConfig.md +1 -1
- data/lib/pnap_rancher_api/api/clusters_api.rb +11 -7
- data/lib/pnap_rancher_api/api_client.rb +26 -23
- data/lib/pnap_rancher_api/api_error.rb +2 -1
- data/lib/pnap_rancher_api/configuration.rb +28 -9
- data/lib/pnap_rancher_api/models/cluster.rb +25 -24
- data/lib/pnap_rancher_api/models/delete_result.rb +18 -19
- data/lib/pnap_rancher_api/models/error.rb +16 -19
- data/lib/pnap_rancher_api/models/node.rb +14 -19
- data/lib/pnap_rancher_api/models/node_pool.rb +54 -20
- data/lib/pnap_rancher_api/models/rancher_cluster_certificates.rb +14 -19
- data/lib/pnap_rancher_api/models/rancher_cluster_config.rb +15 -20
- data/lib/pnap_rancher_api/models/rancher_server_metadata.rb +14 -19
- data/lib/pnap_rancher_api/models/ssh_config.rb +14 -19
- data/lib/pnap_rancher_api/models/workload_cluster_config.rb +16 -19
- data/lib/pnap_rancher_api/version.rb +1 -1
- data/lib/pnap_rancher_api.rb +1 -5
- data/pnap_rancher_api.gemspec +2 -2
- data/spec/api/clusters_api_spec.rb +7 -7
- data/spec/models/cluster_spec.rb +14 -12
- data/spec/models/delete_result_spec.rb +6 -4
- data/spec/models/error_spec.rb +6 -4
- data/spec/models/node_pool_spec.rb +9 -7
- data/spec/models/node_spec.rb +5 -3
- data/spec/models/rancher_cluster_certificates_spec.rb +7 -5
- data/spec/models/rancher_cluster_config_spec.rb +11 -9
- data/spec/models/rancher_server_metadata_spec.rb +7 -5
- data/spec/models/ssh_config_spec.rb +7 -5
- data/spec/models/workload_cluster_config_spec.rb +8 -6
- data/spec/spec_helper.rb +1 -1
- metadata +10 -30
- data/docs/ClusterConfiguration.md +0 -30
- data/docs/ClusterWorkloadConfiguration.md +0 -24
- data/docs/NodePoolSshConfig.md +0 -22
- data/docs/RancherClusterConfigCertificates.md +0 -22
- data/lib/pnap_rancher_api/models/cluster_configuration.rb +0 -290
- data/lib/pnap_rancher_api/models/cluster_workload_configuration.rb +0 -271
- data/lib/pnap_rancher_api/models/node_pool_ssh_config.rb +0 -253
- data/lib/pnap_rancher_api/models/rancher_cluster_config_certificates.rb +0 -247
- data/spec/api_client_spec.rb +0 -226
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/cluster_configuration_spec.rb +0 -70
- data/spec/models/cluster_workload_configuration_spec.rb +0 -52
- data/spec/models/node_pool_ssh_config_spec.rb +0 -46
- data/spec/models/rancher_cluster_config_certificates_spec.rb +0 -46
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -92,12 +92,15 @@ module RancherApi
|
|
92
92
|
|
93
93
|
if attributes.key?(:'location')
|
94
94
|
self.location = attributes[:'location']
|
95
|
+
else
|
96
|
+
self.location = nil
|
95
97
|
end
|
96
98
|
end
|
97
99
|
|
98
100
|
# Show invalid properties with the reasons. Usually used together with valid?
|
99
101
|
# @return Array for valid properties with the reasons
|
100
102
|
def list_invalid_properties
|
103
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
101
104
|
invalid_properties = Array.new
|
102
105
|
if @server_type.nil?
|
103
106
|
invalid_properties.push('invalid value for "server_type", server_type cannot be nil.')
|
@@ -113,6 +116,7 @@ module RancherApi
|
|
113
116
|
# Check to see if the all the properties in the model are valid
|
114
117
|
# @return true if the model is valid
|
115
118
|
def valid?
|
119
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
116
120
|
return false if @server_type.nil?
|
117
121
|
return false if @location.nil?
|
118
122
|
true
|
@@ -145,37 +149,30 @@ module RancherApi
|
|
145
149
|
# @param [Hash] attributes Model attributes in the form of hash
|
146
150
|
# @return [Object] Returns the model itself
|
147
151
|
def self.build_from_hash(attributes)
|
148
|
-
new.build_from_hash(attributes)
|
149
|
-
end
|
150
|
-
|
151
|
-
# Builds the object from hash
|
152
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
153
|
-
# @return [Object] Returns the model itself
|
154
|
-
def build_from_hash(attributes)
|
155
152
|
return nil unless attributes.is_a?(Hash)
|
156
153
|
attributes = attributes.transform_keys(&:to_sym)
|
157
|
-
|
158
|
-
|
159
|
-
|
154
|
+
transformed_hash = {}
|
155
|
+
openapi_types.each_pair do |key, type|
|
156
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
157
|
+
transformed_hash["#{key}"] = nil
|
160
158
|
elsif type =~ /\AArray<(.*)>/i
|
161
159
|
# check to ensure the input is an array given that the attribute
|
162
160
|
# is documented as an array but the input is not
|
163
|
-
if attributes[
|
164
|
-
|
161
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
162
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
165
163
|
end
|
166
|
-
elsif !attributes[
|
167
|
-
|
164
|
+
elsif !attributes[attribute_map[key]].nil?
|
165
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
168
166
|
end
|
169
167
|
end
|
170
|
-
|
171
|
-
self
|
168
|
+
new(transformed_hash)
|
172
169
|
end
|
173
170
|
|
174
171
|
# Deserializes the data based on type
|
175
172
|
# @param string type Data type
|
176
173
|
# @param string value Value to be deserialized
|
177
174
|
# @return [Object] Deserialized data
|
178
|
-
def _deserialize(type, value)
|
175
|
+
def self._deserialize(type, value)
|
179
176
|
case type.to_sym
|
180
177
|
when :Time
|
181
178
|
Time.parse(value)
|
@@ -210,7 +207,7 @@ module RancherApi
|
|
210
207
|
else # model
|
211
208
|
# models (e.g. Pet) or oneOf
|
212
209
|
klass = RancherApi.const_get(type)
|
213
|
-
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
210
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
214
211
|
end
|
215
212
|
end
|
216
213
|
|
data/lib/pnap_rancher_api.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -18,16 +18,12 @@ require 'pnap_rancher_api/configuration'
|
|
18
18
|
|
19
19
|
# Models
|
20
20
|
require 'pnap_rancher_api/models/cluster'
|
21
|
-
require 'pnap_rancher_api/models/cluster_configuration'
|
22
|
-
require 'pnap_rancher_api/models/cluster_workload_configuration'
|
23
21
|
require 'pnap_rancher_api/models/delete_result'
|
24
22
|
require 'pnap_rancher_api/models/error'
|
25
23
|
require 'pnap_rancher_api/models/node'
|
26
24
|
require 'pnap_rancher_api/models/node_pool'
|
27
|
-
require 'pnap_rancher_api/models/node_pool_ssh_config'
|
28
25
|
require 'pnap_rancher_api/models/rancher_cluster_certificates'
|
29
26
|
require 'pnap_rancher_api/models/rancher_cluster_config'
|
30
|
-
require 'pnap_rancher_api/models/rancher_cluster_config_certificates'
|
31
27
|
require 'pnap_rancher_api/models/rancher_server_metadata'
|
32
28
|
require 'pnap_rancher_api/models/ssh_config'
|
33
29
|
require 'pnap_rancher_api/models/workload_cluster_config'
|
data/pnap_rancher_api.gemspec
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
The version of the OpenAPI document: 0.1
|
9
9
|
Contact: support@phoenixnap.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version:
|
11
|
+
OpenAPI Generator version: 7.2.0
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.summary = "Rancher Solution API Ruby Gem"
|
26
26
|
s.description = "Rancher Solution API Ruby Gem"
|
27
27
|
s.license = "MPL-2.0"
|
28
|
-
s.required_ruby_version = ">= 2.
|
28
|
+
s.required_ruby_version = ">= 2.7"
|
29
29
|
s.metadata = { "source_code_uri" => "https://github.com/phoenixnap/ruby-sdk-bmc" }
|
30
30
|
|
31
31
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -39,7 +39,7 @@ describe 'ClustersApi' do
|
|
39
39
|
# @return [Array<Cluster>]
|
40
40
|
describe 'clusters_get test' do
|
41
41
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
@@ -51,7 +51,7 @@ describe 'ClustersApi' do
|
|
51
51
|
# @return [DeleteResult]
|
52
52
|
describe 'clusters_id_delete test' do
|
53
53
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
@@ -63,19 +63,19 @@ describe 'ClustersApi' do
|
|
63
63
|
# @return [Cluster]
|
64
64
|
describe 'clusters_id_get test' do
|
65
65
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
67
|
end
|
68
68
|
end
|
69
69
|
|
70
70
|
# unit tests for clusters_post
|
71
71
|
# Create a Rancher Server Deployment.
|
72
|
-
# Create a Rancher Server Deployment as described in <a href='https://rancher.com/docs/rancher/v2.5/en/overview/architecture/#rancher-server-architecture' target='_blank'>Rancher Docs Architecture</a>. Rancher Server allows the creation, import and management of multiple Downstream User Kubernetes Clusters. <b>This is not a Downstream User Cluster</b>.
|
72
|
+
# Create a Rancher Server Deployment as described in <a href='https://rancher.com/docs/rancher/v2.5/en/overview/architecture/#rancher-server-architecture' target='_blank'>Rancher Docs Architecture</a>. Rancher Server allows the creation, import and management of multiple Downstream User Kubernetes Clusters. <b>This is not a Downstream User Cluster</b>. Knowledge base article to help you can be found <a href='https://phoenixnap.com/kb/bmc-rancher-workload-cluster#ftoc-heading-5' target='_blank'>here</a>.
|
73
|
+
# @param cluster
|
73
74
|
# @param [Hash] opts the optional parameters
|
74
|
-
# @option opts [Cluster] :cluster
|
75
75
|
# @return [Cluster]
|
76
76
|
describe 'clusters_post test' do
|
77
77
|
it 'should work' do
|
78
|
-
# assertion here. ref: https://
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
data/spec/models/cluster_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,66 +22,68 @@ describe RancherApi::Cluster do
|
|
22
22
|
|
23
23
|
describe 'test an instance of Cluster' do
|
24
24
|
it 'should create an instance of Cluster' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::Cluster)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "id"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "name"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "description"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
46
48
|
describe 'test attribute "location"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "initial_cluster_version"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
60
|
describe 'test attribute "node_pools"' do
|
59
61
|
it 'should work' do
|
60
|
-
# assertion here. ref: https://
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
66
|
describe 'test attribute "configuration"' do
|
65
67
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
70
72
|
describe 'test attribute "metadata"' do
|
71
73
|
it 'should work' do
|
72
|
-
# assertion here. ref: https://
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
75
|
end
|
74
76
|
end
|
75
77
|
|
76
78
|
describe 'test attribute "workload_configuration"' do
|
77
79
|
it 'should work' do
|
78
|
-
# assertion here. ref: https://
|
80
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
81
|
end
|
80
82
|
end
|
81
83
|
|
82
84
|
describe 'test attribute "status_description"' do
|
83
85
|
it 'should work' do
|
84
|
-
# assertion here. ref: https://
|
86
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
87
|
end
|
86
88
|
end
|
87
89
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe RancherApi::DeleteResult do
|
|
22
22
|
|
23
23
|
describe 'test an instance of DeleteResult' do
|
24
24
|
it 'should create an instance of DeleteResult' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::DeleteResult)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "result"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "cluster_id"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
data/spec/models/error_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,18 +22,20 @@ describe RancherApi::Error do
|
|
22
22
|
|
23
23
|
describe 'test an instance of Error' do
|
24
24
|
it 'should create an instance of Error' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::Error)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "message"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "validation_errors"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,36 +22,38 @@ describe RancherApi::NodePool do
|
|
22
22
|
|
23
23
|
describe 'test an instance of NodePool' do
|
24
24
|
it 'should create an instance of NodePool' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::NodePool)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "name"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "node_count"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "server_type"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
46
48
|
describe 'test attribute "ssh_config"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "nodes"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
data/spec/models/node_spec.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,12 +22,14 @@ describe RancherApi::Node do
|
|
22
22
|
|
23
23
|
describe 'test an instance of Node' do
|
24
24
|
it 'should create an instance of Node' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::Node)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "server_id"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,24 +22,26 @@ describe RancherApi::RancherClusterCertificates do
|
|
22
22
|
|
23
23
|
describe 'test an instance of RancherClusterCertificates' do
|
24
24
|
it 'should create an instance of RancherClusterCertificates' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::RancherClusterCertificates)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "ca_certificate"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "certificate"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "certificate_key"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,48 +22,50 @@ describe RancherApi::RancherClusterConfig do
|
|
22
22
|
|
23
23
|
describe 'test an instance of RancherClusterConfig' do
|
24
24
|
it 'should create an instance of RancherClusterConfig' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::RancherClusterConfig)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "token"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "tls_san"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "etcd_snapshot_schedule_cron"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
46
48
|
describe 'test attribute "etcd_snapshot_retention"' do
|
47
49
|
it 'should work' do
|
48
|
-
# assertion here. ref: https://
|
50
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
51
|
end
|
50
52
|
end
|
51
53
|
|
52
54
|
describe 'test attribute "node_taint"' do
|
53
55
|
it 'should work' do
|
54
|
-
# assertion here. ref: https://
|
56
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
57
|
end
|
56
58
|
end
|
57
59
|
|
58
60
|
describe 'test attribute "cluster_domain"' do
|
59
61
|
it 'should work' do
|
60
|
-
# assertion here. ref: https://
|
62
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
63
|
end
|
62
64
|
end
|
63
65
|
|
64
66
|
describe 'test attribute "certificates"' do
|
65
67
|
it 'should work' do
|
66
|
-
# assertion here. ref: https://
|
68
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,24 +22,26 @@ describe RancherApi::RancherServerMetadata do
|
|
22
22
|
|
23
23
|
describe 'test an instance of RancherServerMetadata' do
|
24
24
|
it 'should create an instance of RancherServerMetadata' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::RancherServerMetadata)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "url"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "username"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "password"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1
|
7
7
|
Contact: support@phoenixnap.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 7.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -22,24 +22,26 @@ describe RancherApi::SshConfig do
|
|
22
22
|
|
23
23
|
describe 'test an instance of SshConfig' do
|
24
24
|
it 'should create an instance of SshConfig' do
|
25
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(RancherApi::SshConfig)
|
26
27
|
end
|
27
28
|
end
|
29
|
+
|
28
30
|
describe 'test attribute "install_default_keys"' do
|
29
31
|
it 'should work' do
|
30
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
33
|
end
|
32
34
|
end
|
33
35
|
|
34
36
|
describe 'test attribute "keys"' do
|
35
37
|
it 'should work' do
|
36
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
39
|
end
|
38
40
|
end
|
39
41
|
|
40
42
|
describe 'test attribute "key_ids"' do
|
41
43
|
it 'should work' do
|
42
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
45
|
end
|
44
46
|
end
|
45
47
|
|