autosde_openapi_client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +32 -7
- data/docs/AbstractCapabilityApi.md +6 -6
- data/docs/AccountApi.md +9 -9
- data/docs/AddressApi.md +6 -6
- data/docs/AuthenticationApi.md +1 -1
- data/docs/AutoSDEProjectApi.md +6 -6
- data/docs/AutoSDERoleApi.md +6 -6
- data/docs/CapabilityTranslationApi.md +6 -6
- data/docs/HostApi.md +6 -6
- data/docs/HostVolumeConnectionApi.md +6 -6
- data/docs/Job.md +29 -0
- data/docs/JobApi.md +104 -0
- data/docs/JobCreate.md +19 -0
- data/docs/NativeCapabilityApi.md +6 -6
- data/docs/ProfileApi.md +6 -6
- data/docs/ProvisioningStrategyApi.md +6 -6
- data/docs/ServiceApi.md +9 -9
- data/docs/ServiceResourceAttachmentApi.md +6 -6
- data/docs/Snapshot.md +25 -0
- data/docs/SnapshotApi.md +204 -0
- data/docs/SnapshotCreate.md +23 -0
- data/docs/StorageHost.md +29 -0
- data/docs/StorageHostApi.md +256 -0
- data/docs/StorageHostCreate.md +37 -0
- data/docs/StorageHostResponse.md +31 -0
- data/docs/StorageHostUpdate.md +21 -0
- data/docs/StorageHostVolumeMapping.md +25 -0
- data/docs/StorageHostVolumeMappingApi.md +204 -0
- data/docs/StorageHostVolumeMappingCreate.md +23 -0
- data/docs/StorageResourceApi.md +9 -9
- data/docs/StorageSystemApi.md +6 -6
- data/docs/SystemTypeApi.md +6 -6
- data/docs/Volume.md +2 -0
- data/docs/VolumeApi.md +9 -9
- data/docs/VolumeCreate.md +2 -0
- data/docs/VolumeResponse.md +2 -0
- data/docs/VolumeSafeDeleteApi.md +6 -6
- data/docs/VolumeUpdate.md +3 -1
- data/lib/openapi_client.rb +108 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/abstract_capability_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/account_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/address_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/authentication_api.rb +5 -4
- data/lib/{autosde_openapi_client → openapi_client}/api/auto_sde_project_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/auto_sde_role_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/capability_translation_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/host_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/host_volume_connection_api.rb +19 -15
- data/lib/openapi_client/api/job_api.rb +136 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/native_capability_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/profile_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/provisioning_strategy_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/service_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/service_resource_attachment_api.rb +19 -15
- data/lib/openapi_client/api/snapshot_api.rb +254 -0
- data/lib/openapi_client/api/storage_host_api.rb +321 -0
- data/lib/openapi_client/api/storage_host_volume_mapping_api.rb +254 -0
- data/lib/{autosde_openapi_client → openapi_client}/api/storage_resource_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/storage_system_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/system_type_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api/volume_api.rb +25 -20
- data/lib/{autosde_openapi_client → openapi_client}/api/volume_safe_delete_api.rb +19 -15
- data/lib/{autosde_openapi_client → openapi_client}/api_client.rb +46 -45
- data/lib/{autosde_openapi_client → openapi_client}/api_error.rb +1 -1
- data/lib/{autosde_openapi_client → openapi_client}/configuration.rb +34 -7
- data/lib/{autosde_openapi_client → openapi_client}/models/abstract_capability.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account_post_request.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/account_post_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/address.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/address_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auth_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/authentication.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auto_sde_project.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/auto_sde_role.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/capability_translation.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/capability_translation_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_volume_connection.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/host_volume_connection_create.rb +9 -5
- data/lib/openapi_client/models/job.rb +272 -0
- data/lib/openapi_client/models/job_create.rb +222 -0
- data/lib/{autosde_openapi_client → openapi_client}/models/native_capability.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/profile.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/provisioning_strategy.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_abstract_capability_value.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/service_resource_attachment.rb +9 -5
- data/lib/openapi_client/models/snapshot.rb +290 -0
- data/lib/openapi_client/models/snapshot_create.rb +280 -0
- data/lib/openapi_client/models/storage_host.rb +309 -0
- data/lib/openapi_client/models/storage_host_create.rb +360 -0
- data/lib/openapi_client/models/storage_host_response.rb +325 -0
- data/lib/openapi_client/models/storage_host_update.rb +293 -0
- data/lib/openapi_client/models/storage_host_volume_mapping.rb +291 -0
- data/lib/openapi_client/models/storage_host_volume_mapping_create.rb +283 -0
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_resource_response.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_system.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/storage_system_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/system_type.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/system_type_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_create.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_response.rb +20 -6
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_safe_delete.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_safe_delete_create.rb +9 -5
- data/lib/{autosde_openapi_client → openapi_client}/models/volume_update.rb +22 -6
- data/lib/{autosde_openapi_client → openapi_client}/version.rb +2 -2
- data/{autosde_openapi_client.gemspec → openapi_client.gemspec} +3 -4
- data/spec/api/abstract_capability_api_spec.rb +1 -1
- data/spec/api/account_api_spec.rb +1 -1
- data/spec/api/address_api_spec.rb +1 -1
- data/spec/api/authentication_api_spec.rb +1 -1
- data/spec/api/auto_sde_project_api_spec.rb +1 -1
- data/spec/api/auto_sde_role_api_spec.rb +1 -1
- data/spec/api/capability_translation_api_spec.rb +1 -1
- data/spec/api/host_api_spec.rb +1 -1
- data/spec/api/host_volume_connection_api_spec.rb +1 -1
- data/spec/api/job_api_spec.rb +54 -0
- data/spec/api/native_capability_api_spec.rb +1 -1
- data/spec/api/profile_api_spec.rb +1 -1
- data/spec/api/provisioning_strategy_api_spec.rb +1 -1
- data/spec/api/service_api_spec.rb +1 -1
- data/spec/api/service_resource_attachment_api_spec.rb +1 -1
- data/spec/api/snapshot_api_spec.rb +74 -0
- data/spec/api/storage_host_api_spec.rb +74 -0
- data/spec/api/storage_host_volume_mapping_api_spec.rb +74 -0
- data/spec/api/storage_resource_api_spec.rb +1 -1
- data/spec/api/storage_system_api_spec.rb +1 -1
- data/spec/api/system_type_api_spec.rb +1 -1
- data/spec/api/volume_api_spec.rb +1 -1
- data/spec/api/volume_safe_delete_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/abstract_capability_spec.rb +1 -1
- data/spec/models/account_post_request_spec.rb +1 -1
- data/spec/models/account_post_response_spec.rb +1 -1
- data/spec/models/account_spec.rb +1 -1
- data/spec/models/address_create_spec.rb +1 -1
- data/spec/models/address_spec.rb +1 -1
- data/spec/models/auth_response_spec.rb +1 -1
- data/spec/models/authentication_spec.rb +1 -1
- data/spec/models/auto_sde_project_spec.rb +1 -1
- data/spec/models/auto_sde_role_spec.rb +1 -1
- data/spec/models/capability_translation_create_spec.rb +1 -1
- data/spec/models/capability_translation_spec.rb +1 -1
- data/spec/models/host_create_spec.rb +1 -1
- data/spec/models/host_spec.rb +1 -1
- data/spec/models/host_volume_connection_create_spec.rb +1 -1
- data/spec/models/host_volume_connection_spec.rb +1 -1
- data/spec/models/job_create_spec.rb +47 -0
- data/spec/models/job_spec.rb +77 -0
- data/spec/models/native_capability_spec.rb +1 -1
- data/spec/models/profile_spec.rb +1 -1
- data/spec/models/provisioning_strategy_spec.rb +1 -1
- data/spec/models/service_abstract_capability_value_spec.rb +1 -1
- data/spec/models/service_create_spec.rb +1 -1
- data/spec/models/service_resource_attachment_spec.rb +1 -1
- data/spec/models/service_spec.rb +1 -1
- data/spec/models/snapshot_create_spec.rb +63 -0
- data/spec/models/snapshot_spec.rb +69 -0
- data/spec/models/storage_host_create_spec.rb +109 -0
- data/spec/models/storage_host_response_spec.rb +87 -0
- data/spec/models/storage_host_spec.rb +81 -0
- data/spec/models/storage_host_update_spec.rb +61 -0
- data/spec/models/storage_host_volume_mapping_create_spec.rb +63 -0
- data/spec/models/storage_host_volume_mapping_spec.rb +69 -0
- data/spec/models/storage_resource_create_spec.rb +1 -1
- data/spec/models/storage_resource_response_spec.rb +1 -1
- data/spec/models/storage_resource_spec.rb +1 -1
- data/spec/models/storage_system_create_spec.rb +1 -1
- data/spec/models/storage_system_spec.rb +1 -1
- data/spec/models/system_type_create_spec.rb +1 -1
- data/spec/models/system_type_spec.rb +1 -1
- data/spec/models/volume_create_spec.rb +1 -1
- data/spec/models/volume_response_spec.rb +1 -1
- data/spec/models/volume_safe_delete_create_spec.rb +1 -1
- data/spec/models/volume_safe_delete_spec.rb +1 -1
- data/spec/models/volume_spec.rb +1 -1
- data/spec/models/volume_update_spec.rb +7 -1
- data/spec/spec_helper.rb +2 -2
- metadata +142 -106
- data/lib/autosde_openapi_client.rb +0 -94
- data/site_manager_oas.json +0 -3992
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# Volume safe delete api
|
@@ -123,7 +124,9 @@ module OpenapiClient
|
|
123
124
|
def build_from_hash(attributes)
|
124
125
|
return nil unless attributes.is_a?(Hash)
|
125
126
|
self.class.openapi_types.each_pair do |key, type|
|
126
|
-
if
|
127
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
128
|
+
self.send("#{key}=", nil)
|
129
|
+
elsif type =~ /\AArray<(.*)>/i
|
127
130
|
# check to ensure the input is an array given that the attribute
|
128
131
|
# is documented as an array but the input is not
|
129
132
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -131,7 +134,7 @@ module OpenapiClient
|
|
131
134
|
end
|
132
135
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
133
136
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
134
|
-
end
|
137
|
+
end
|
135
138
|
end
|
136
139
|
|
137
140
|
self
|
@@ -143,8 +146,8 @@ module OpenapiClient
|
|
143
146
|
# @return [Object] Deserialized data
|
144
147
|
def _deserialize(type, value)
|
145
148
|
case type.to_sym
|
146
|
-
when :
|
147
|
-
|
149
|
+
when :Time
|
150
|
+
Time.parse(value)
|
148
151
|
when :Date
|
149
152
|
Date.parse(value)
|
150
153
|
when :String
|
@@ -223,5 +226,6 @@ module OpenapiClient
|
|
223
226
|
value
|
224
227
|
end
|
225
228
|
end
|
229
|
+
|
226
230
|
end
|
227
231
|
end
|
@@ -6,11 +6,12 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# TODO add description
|
@@ -103,7 +104,9 @@ module OpenapiClient
|
|
103
104
|
def build_from_hash(attributes)
|
104
105
|
return nil unless attributes.is_a?(Hash)
|
105
106
|
self.class.openapi_types.each_pair do |key, type|
|
106
|
-
if
|
107
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
108
|
+
self.send("#{key}=", nil)
|
109
|
+
elsif type =~ /\AArray<(.*)>/i
|
107
110
|
# check to ensure the input is an array given that the attribute
|
108
111
|
# is documented as an array but the input is not
|
109
112
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -111,7 +114,7 @@ module OpenapiClient
|
|
111
114
|
end
|
112
115
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
113
116
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
114
|
-
end
|
117
|
+
end
|
115
118
|
end
|
116
119
|
|
117
120
|
self
|
@@ -123,8 +126,8 @@ module OpenapiClient
|
|
123
126
|
# @return [Object] Deserialized data
|
124
127
|
def _deserialize(type, value)
|
125
128
|
case type.to_sym
|
126
|
-
when :
|
127
|
-
|
129
|
+
when :Time
|
130
|
+
Time.parse(value)
|
128
131
|
when :Date
|
129
132
|
Date.parse(value)
|
130
133
|
when :String
|
@@ -203,5 +206,6 @@ module OpenapiClient
|
|
203
206
|
value
|
204
207
|
end
|
205
208
|
end
|
209
|
+
|
206
210
|
end
|
207
211
|
end
|
@@ -6,21 +6,26 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
require 'date'
|
14
|
+
require 'time'
|
14
15
|
|
15
16
|
module OpenapiClient
|
16
17
|
# TODO add description
|
17
18
|
class VolumeUpdate
|
19
|
+
# name
|
20
|
+
attr_accessor :name
|
21
|
+
|
18
22
|
# size
|
19
23
|
attr_accessor :size
|
20
24
|
|
21
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
26
|
def self.attribute_map
|
23
27
|
{
|
28
|
+
:'name' => :'name',
|
24
29
|
:'size' => :'size'
|
25
30
|
}
|
26
31
|
end
|
@@ -28,6 +33,7 @@ module OpenapiClient
|
|
28
33
|
# Attribute type mapping.
|
29
34
|
def self.openapi_types
|
30
35
|
{
|
36
|
+
:'name' => :'String',
|
31
37
|
:'size' => :'Integer'
|
32
38
|
}
|
33
39
|
end
|
@@ -53,6 +59,12 @@ module OpenapiClient
|
|
53
59
|
h[k.to_sym] = v
|
54
60
|
}
|
55
61
|
|
62
|
+
if attributes.key?(:'name')
|
63
|
+
self.name = attributes[:'name']
|
64
|
+
else
|
65
|
+
self.name = 'null'
|
66
|
+
end
|
67
|
+
|
56
68
|
if attributes.key?(:'size')
|
57
69
|
self.size = attributes[:'size']
|
58
70
|
end
|
@@ -76,6 +88,7 @@ module OpenapiClient
|
|
76
88
|
def ==(o)
|
77
89
|
return true if self.equal?(o)
|
78
90
|
self.class == o.class &&
|
91
|
+
name == o.name &&
|
79
92
|
size == o.size
|
80
93
|
end
|
81
94
|
|
@@ -88,7 +101,7 @@ module OpenapiClient
|
|
88
101
|
# Calculates hash code according to all attributes.
|
89
102
|
# @return [Integer] Hash code
|
90
103
|
def hash
|
91
|
-
[size].hash
|
104
|
+
[name, size].hash
|
92
105
|
end
|
93
106
|
|
94
107
|
# Builds the object from hash
|
@@ -104,7 +117,9 @@ module OpenapiClient
|
|
104
117
|
def build_from_hash(attributes)
|
105
118
|
return nil unless attributes.is_a?(Hash)
|
106
119
|
self.class.openapi_types.each_pair do |key, type|
|
107
|
-
if
|
120
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
121
|
+
self.send("#{key}=", nil)
|
122
|
+
elsif type =~ /\AArray<(.*)>/i
|
108
123
|
# check to ensure the input is an array given that the attribute
|
109
124
|
# is documented as an array but the input is not
|
110
125
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -112,7 +127,7 @@ module OpenapiClient
|
|
112
127
|
end
|
113
128
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
114
129
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
115
|
-
end
|
130
|
+
end
|
116
131
|
end
|
117
132
|
|
118
133
|
self
|
@@ -124,8 +139,8 @@ module OpenapiClient
|
|
124
139
|
# @return [Object] Deserialized data
|
125
140
|
def _deserialize(type, value)
|
126
141
|
case type.to_sym
|
127
|
-
when :
|
128
|
-
|
142
|
+
when :Time
|
143
|
+
Time.parse(value)
|
129
144
|
when :Date
|
130
145
|
Date.parse(value)
|
131
146
|
when :String
|
@@ -204,5 +219,6 @@ module OpenapiClient
|
|
204
219
|
value
|
205
220
|
end
|
206
221
|
end
|
222
|
+
|
207
223
|
end
|
208
224
|
end
|
@@ -6,10 +6,10 @@
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
7
7
|
Contact: autosde@il.ibm.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version:
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
13
13
|
module OpenapiClient
|
14
|
-
VERSION = '1.0.
|
14
|
+
VERSION = '1.0.1'
|
15
15
|
end
|
@@ -8,12 +8,12 @@
|
|
8
8
|
The version of the OpenAPI document: 1.0.0
|
9
9
|
Contact: autosde@il.ibm.com
|
10
10
|
Generated by: https://openapi-generator.tech
|
11
|
-
OpenAPI Generator version:
|
11
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
12
12
|
|
13
13
|
=end
|
14
14
|
|
15
15
|
$:.push File.expand_path("../lib", __FILE__)
|
16
|
-
require "
|
16
|
+
require "openapi_client/version"
|
17
17
|
|
18
18
|
Gem::Specification.new do |s|
|
19
19
|
s.name = "autosde_openapi_client"
|
@@ -25,10 +25,9 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.summary = "Site Manager API Ruby Gem"
|
26
26
|
s.description = "Site Manager API"
|
27
27
|
s.license = "Unlicense"
|
28
|
-
s.required_ruby_version = ">=
|
28
|
+
s.required_ruby_version = ">= 2.4"
|
29
29
|
|
30
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
31
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
32
31
|
|
33
32
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
34
33
|
|
data/spec/api/host_api_spec.rb
CHANGED
@@ -0,0 +1,54 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for OpenapiClient::JobApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'JobApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = OpenapiClient::JobApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of JobApi' do
|
30
|
+
it 'should create an instance of JobApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::JobApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for jobs_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<Job>]
|
38
|
+
describe 'jobs_get test' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# unit tests for jobs_post
|
45
|
+
# @param job_create
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [Array<Job>]
|
48
|
+
describe 'jobs_post test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
@@ -0,0 +1,74 @@
|
|
1
|
+
=begin
|
2
|
+
#Site Manager API
|
3
|
+
|
4
|
+
#Site Manager API
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
Contact: autosde@il.ibm.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for OpenapiClient::SnapshotApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SnapshotApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = OpenapiClient::SnapshotApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SnapshotApi' do
|
30
|
+
it 'should create an instance of SnapshotApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(OpenapiClient::SnapshotApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for snapshots_get
|
36
|
+
# @param [Hash] opts the optional parameters
|
37
|
+
# @return [Array<Snapshot>]
|
38
|
+
describe 'snapshots_get test' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# unit tests for snapshots_pk_delete
|
45
|
+
# @param pk
|
46
|
+
# @param [Hash] opts the optional parameters
|
47
|
+
# @return [Array<Snapshot>]
|
48
|
+
describe 'snapshots_pk_delete test' do
|
49
|
+
it 'should work' do
|
50
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# unit tests for snapshots_pk_get
|
55
|
+
# @param pk
|
56
|
+
# @param [Hash] opts the optional parameters
|
57
|
+
# @return [Array<Snapshot>]
|
58
|
+
describe 'snapshots_pk_get test' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
# unit tests for snapshots_post
|
65
|
+
# @param snapshot_create
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @return [Array<Snapshot>]
|
68
|
+
describe 'snapshots_post test' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|