autosde_openapi_client 1.2 → 1.2.3
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 +5 -4
- data/docs/AbstractCapabilityApi.md +8 -8
- data/docs/AccountApi.md +8 -8
- data/docs/AddressApi.md +8 -8
- data/docs/AsyncResponse.md +20 -0
- data/docs/AutoSDEProjectApi.md +8 -8
- data/docs/AutoSDERoleApi.md +8 -8
- data/docs/CapabilityTranslationApi.md +8 -8
- data/docs/EventApi.md +8 -8
- data/docs/HostApi.md +8 -8
- data/docs/HostClusterApi.md +8 -8
- data/docs/HostClusterMembershipApi.md +8 -8
- data/docs/HostClusterVolumeMappingApi.md +8 -8
- data/docs/HostVolumeConnectionApi.md +8 -8
- data/docs/JobApi.md +8 -8
- data/docs/NativeCapabilityApi.md +8 -8
- data/docs/ProfileApi.md +8 -8
- data/docs/ProvisioningStrategyApi.md +8 -8
- data/docs/ServiceApi.md +8 -8
- data/docs/ServiceResourceAttachmentApi.md +40 -40
- data/docs/SnapshotApi.md +8 -8
- data/docs/StorageHostApi.md +12 -12
- data/docs/StorageHostsMappingApi.md +8 -8
- data/docs/StorageResourceApi.md +12 -12
- data/docs/StorageSystemApi.md +12 -12
- data/docs/SystemTypeApi.md +8 -8
- data/docs/UserApi.md +8 -8
- data/docs/VolumeApi.md +12 -12
- data/docs/VolumeSafeDeleteApi.md +8 -8
- data/lib/autosde_openapi_client/api/abstract_capability_api.rb +6 -6
- data/lib/autosde_openapi_client/api/account_api.rb +6 -6
- data/lib/autosde_openapi_client/api/address_api.rb +6 -6
- data/lib/autosde_openapi_client/api/auto_sde_project_api.rb +6 -6
- data/lib/autosde_openapi_client/api/auto_sde_role_api.rb +6 -6
- data/lib/autosde_openapi_client/api/capability_translation_api.rb +6 -6
- data/lib/autosde_openapi_client/api/event_api.rb +6 -6
- data/lib/autosde_openapi_client/api/host_api.rb +6 -6
- data/lib/autosde_openapi_client/api/host_cluster_api.rb +6 -6
- data/lib/autosde_openapi_client/api/host_cluster_membership_api.rb +6 -6
- data/lib/autosde_openapi_client/api/host_cluster_volume_mapping_api.rb +6 -6
- data/lib/autosde_openapi_client/api/host_volume_connection_api.rb +6 -6
- data/lib/autosde_openapi_client/api/job_api.rb +6 -6
- data/lib/autosde_openapi_client/api/native_capability_api.rb +6 -6
- data/lib/autosde_openapi_client/api/profile_api.rb +6 -6
- data/lib/autosde_openapi_client/api/provisioning_strategy_api.rb +6 -6
- data/lib/autosde_openapi_client/api/service_api.rb +6 -6
- data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +37 -37
- data/lib/autosde_openapi_client/api/snapshot_api.rb +6 -6
- data/lib/autosde_openapi_client/api/storage_host_api.rb +9 -9
- data/lib/autosde_openapi_client/api/storage_hosts_mapping_api.rb +6 -6
- data/lib/autosde_openapi_client/api/storage_resource_api.rb +9 -9
- data/lib/autosde_openapi_client/api/storage_system_api.rb +9 -9
- data/lib/autosde_openapi_client/api/system_type_api.rb +6 -6
- data/lib/autosde_openapi_client/api/user_api.rb +6 -6
- data/lib/autosde_openapi_client/api/volume_api.rb +9 -9
- data/lib/autosde_openapi_client/api/volume_safe_delete_api.rb +6 -6
- data/lib/autosde_openapi_client/models/async_response.rb +230 -0
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/abstract_capability_api_spec.rb +2 -2
- data/spec/api/account_api_spec.rb +2 -2
- data/spec/api/address_api_spec.rb +2 -2
- data/spec/api/auto_sde_project_api_spec.rb +2 -2
- data/spec/api/auto_sde_role_api_spec.rb +2 -2
- data/spec/api/capability_translation_api_spec.rb +2 -2
- data/spec/api/event_api_spec.rb +2 -2
- data/spec/api/host_api_spec.rb +2 -2
- data/spec/api/host_cluster_api_spec.rb +2 -2
- data/spec/api/host_cluster_membership_api_spec.rb +2 -2
- data/spec/api/host_cluster_volume_mapping_api_spec.rb +2 -2
- data/spec/api/host_volume_connection_api_spec.rb +2 -2
- data/spec/api/job_api_spec.rb +2 -2
- data/spec/api/native_capability_api_spec.rb +2 -2
- data/spec/api/profile_api_spec.rb +2 -2
- data/spec/api/provisioning_strategy_api_spec.rb +2 -2
- data/spec/api/service_api_spec.rb +2 -2
- data/spec/api/service_resource_attachment_api_spec.rb +10 -10
- data/spec/api/snapshot_api_spec.rb +2 -2
- data/spec/api/storage_host_api_spec.rb +3 -3
- data/spec/api/storage_hosts_mapping_api_spec.rb +2 -2
- data/spec/api/storage_resource_api_spec.rb +3 -3
- data/spec/api/storage_system_api_spec.rb +3 -3
- data/spec/api/system_type_api_spec.rb +2 -2
- data/spec/api/user_api_spec.rb +2 -2
- data/spec/api/volume_api_spec.rb +3 -3
- data/spec/api/volume_safe_delete_api_spec.rb +2 -2
- data/spec/models/async_response_spec.rb +40 -0
- metadata +82 -78
|
@@ -74,7 +74,7 @@ module AutosdeOpenapiClient
|
|
|
74
74
|
|
|
75
75
|
# @param pk [Integer]
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
|
77
|
-
# @return [
|
|
77
|
+
# @return [AsyncResponse]
|
|
78
78
|
def volumes_pk_delete(pk, opts = {})
|
|
79
79
|
data, _status_code, _headers = volumes_pk_delete_with_http_info(pk, opts)
|
|
80
80
|
data
|
|
@@ -82,7 +82,7 @@ module AutosdeOpenapiClient
|
|
|
82
82
|
|
|
83
83
|
# @param pk [Integer]
|
|
84
84
|
# @param [Hash] opts the optional parameters
|
|
85
|
-
# @return [Array<(
|
|
85
|
+
# @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
|
|
86
86
|
def volumes_pk_delete_with_http_info(pk, opts = {})
|
|
87
87
|
if @api_client.config.debugging
|
|
88
88
|
@api_client.config.logger.debug 'Calling API: VolumeApi.volumes_pk_delete ...'
|
|
@@ -109,7 +109,7 @@ module AutosdeOpenapiClient
|
|
|
109
109
|
post_body = opts[:debug_body]
|
|
110
110
|
|
|
111
111
|
# return_type
|
|
112
|
-
return_type = opts[:debug_return_type] || '
|
|
112
|
+
return_type = opts[:debug_return_type] || 'AsyncResponse'
|
|
113
113
|
|
|
114
114
|
# auth_names
|
|
115
115
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -133,7 +133,7 @@ module AutosdeOpenapiClient
|
|
|
133
133
|
|
|
134
134
|
# @param pk [Integer]
|
|
135
135
|
# @param [Hash] opts the optional parameters
|
|
136
|
-
# @return [
|
|
136
|
+
# @return [VolumeResponse]
|
|
137
137
|
def volumes_pk_get(pk, opts = {})
|
|
138
138
|
data, _status_code, _headers = volumes_pk_get_with_http_info(pk, opts)
|
|
139
139
|
data
|
|
@@ -141,7 +141,7 @@ module AutosdeOpenapiClient
|
|
|
141
141
|
|
|
142
142
|
# @param pk [Integer]
|
|
143
143
|
# @param [Hash] opts the optional parameters
|
|
144
|
-
# @return [Array<(
|
|
144
|
+
# @return [Array<(VolumeResponse, Integer, Hash)>] VolumeResponse data, response status code and response headers
|
|
145
145
|
def volumes_pk_get_with_http_info(pk, opts = {})
|
|
146
146
|
if @api_client.config.debugging
|
|
147
147
|
@api_client.config.logger.debug 'Calling API: VolumeApi.volumes_pk_get ...'
|
|
@@ -168,7 +168,7 @@ module AutosdeOpenapiClient
|
|
|
168
168
|
post_body = opts[:debug_body]
|
|
169
169
|
|
|
170
170
|
# return_type
|
|
171
|
-
return_type = opts[:debug_return_type] || '
|
|
171
|
+
return_type = opts[:debug_return_type] || 'VolumeResponse'
|
|
172
172
|
|
|
173
173
|
# auth_names
|
|
174
174
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -193,7 +193,7 @@ module AutosdeOpenapiClient
|
|
|
193
193
|
# @param pk [Integer]
|
|
194
194
|
# @param volume_update [VolumeUpdate]
|
|
195
195
|
# @param [Hash] opts the optional parameters
|
|
196
|
-
# @return [
|
|
196
|
+
# @return [AsyncResponse]
|
|
197
197
|
def volumes_pk_put(pk, volume_update, opts = {})
|
|
198
198
|
data, _status_code, _headers = volumes_pk_put_with_http_info(pk, volume_update, opts)
|
|
199
199
|
data
|
|
@@ -202,7 +202,7 @@ module AutosdeOpenapiClient
|
|
|
202
202
|
# @param pk [Integer]
|
|
203
203
|
# @param volume_update [VolumeUpdate]
|
|
204
204
|
# @param [Hash] opts the optional parameters
|
|
205
|
-
# @return [Array<(
|
|
205
|
+
# @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
|
|
206
206
|
def volumes_pk_put_with_http_info(pk, volume_update, opts = {})
|
|
207
207
|
if @api_client.config.debugging
|
|
208
208
|
@api_client.config.logger.debug 'Calling API: VolumeApi.volumes_pk_put ...'
|
|
@@ -235,7 +235,7 @@ module AutosdeOpenapiClient
|
|
|
235
235
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(volume_update)
|
|
236
236
|
|
|
237
237
|
# return_type
|
|
238
|
-
return_type = opts[:debug_return_type] || '
|
|
238
|
+
return_type = opts[:debug_return_type] || 'AsyncResponse'
|
|
239
239
|
|
|
240
240
|
# auth_names
|
|
241
241
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -74,7 +74,7 @@ module AutosdeOpenapiClient
|
|
|
74
74
|
|
|
75
75
|
# @param pk [Integer]
|
|
76
76
|
# @param [Hash] opts the optional parameters
|
|
77
|
-
# @return [
|
|
77
|
+
# @return [VolumeSafeDelete]
|
|
78
78
|
def safe_deletes_pk_delete(pk, opts = {})
|
|
79
79
|
data, _status_code, _headers = safe_deletes_pk_delete_with_http_info(pk, opts)
|
|
80
80
|
data
|
|
@@ -82,7 +82,7 @@ module AutosdeOpenapiClient
|
|
|
82
82
|
|
|
83
83
|
# @param pk [Integer]
|
|
84
84
|
# @param [Hash] opts the optional parameters
|
|
85
|
-
# @return [Array<(
|
|
85
|
+
# @return [Array<(VolumeSafeDelete, Integer, Hash)>] VolumeSafeDelete data, response status code and response headers
|
|
86
86
|
def safe_deletes_pk_delete_with_http_info(pk, opts = {})
|
|
87
87
|
if @api_client.config.debugging
|
|
88
88
|
@api_client.config.logger.debug 'Calling API: VolumeSafeDeleteApi.safe_deletes_pk_delete ...'
|
|
@@ -109,7 +109,7 @@ module AutosdeOpenapiClient
|
|
|
109
109
|
post_body = opts[:debug_body]
|
|
110
110
|
|
|
111
111
|
# return_type
|
|
112
|
-
return_type = opts[:debug_return_type] || '
|
|
112
|
+
return_type = opts[:debug_return_type] || 'VolumeSafeDelete'
|
|
113
113
|
|
|
114
114
|
# auth_names
|
|
115
115
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -133,7 +133,7 @@ module AutosdeOpenapiClient
|
|
|
133
133
|
|
|
134
134
|
# @param pk [Integer]
|
|
135
135
|
# @param [Hash] opts the optional parameters
|
|
136
|
-
# @return [
|
|
136
|
+
# @return [VolumeSafeDelete]
|
|
137
137
|
def safe_deletes_pk_get(pk, opts = {})
|
|
138
138
|
data, _status_code, _headers = safe_deletes_pk_get_with_http_info(pk, opts)
|
|
139
139
|
data
|
|
@@ -141,7 +141,7 @@ module AutosdeOpenapiClient
|
|
|
141
141
|
|
|
142
142
|
# @param pk [Integer]
|
|
143
143
|
# @param [Hash] opts the optional parameters
|
|
144
|
-
# @return [Array<(
|
|
144
|
+
# @return [Array<(VolumeSafeDelete, Integer, Hash)>] VolumeSafeDelete data, response status code and response headers
|
|
145
145
|
def safe_deletes_pk_get_with_http_info(pk, opts = {})
|
|
146
146
|
if @api_client.config.debugging
|
|
147
147
|
@api_client.config.logger.debug 'Calling API: VolumeSafeDeleteApi.safe_deletes_pk_get ...'
|
|
@@ -168,7 +168,7 @@ module AutosdeOpenapiClient
|
|
|
168
168
|
post_body = opts[:debug_body]
|
|
169
169
|
|
|
170
170
|
# return_type
|
|
171
|
-
return_type = opts[:debug_return_type] || '
|
|
171
|
+
return_type = opts[:debug_return_type] || 'VolumeSafeDelete'
|
|
172
172
|
|
|
173
173
|
# auth_names
|
|
174
174
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
|
@@ -0,0 +1,230 @@
|
|
|
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
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module AutosdeOpenapiClient
|
|
17
|
+
# response from async operations
|
|
18
|
+
class AsyncResponse
|
|
19
|
+
# info
|
|
20
|
+
attr_accessor :info
|
|
21
|
+
|
|
22
|
+
# task_id
|
|
23
|
+
attr_accessor :task_id
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'info' => :'info',
|
|
29
|
+
:'task_id' => :'task_id'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns all the JSON keys this model knows about
|
|
34
|
+
def self.acceptable_attributes
|
|
35
|
+
attribute_map.values
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.openapi_types
|
|
40
|
+
{
|
|
41
|
+
:'info' => :'String',
|
|
42
|
+
:'task_id' => :'String'
|
|
43
|
+
}
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# List of attributes with nullable: true
|
|
47
|
+
def self.openapi_nullable
|
|
48
|
+
Set.new([
|
|
49
|
+
])
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Initializes the object
|
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
54
|
+
def initialize(attributes = {})
|
|
55
|
+
if (!attributes.is_a?(Hash))
|
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::AsyncResponse` initialize method"
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::AsyncResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
63
|
+
end
|
|
64
|
+
h[k.to_sym] = v
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if attributes.key?(:'info')
|
|
68
|
+
self.info = attributes[:'info']
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'task_id')
|
|
72
|
+
self.task_id = attributes[:'task_id']
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
77
|
+
# @return Array for valid properties with the reasons
|
|
78
|
+
def list_invalid_properties
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
invalid_properties
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Check to see if the all the properties in the model are valid
|
|
84
|
+
# @return true if the model is valid
|
|
85
|
+
def valid?
|
|
86
|
+
true
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Checks equality by comparing each attribute.
|
|
90
|
+
# @param [Object] Object to be compared
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
info == o.info &&
|
|
95
|
+
task_id == o.task_id
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @see the `==` method
|
|
99
|
+
# @param [Object] Object to be compared
|
|
100
|
+
def eql?(o)
|
|
101
|
+
self == o
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Calculates hash code according to all attributes.
|
|
105
|
+
# @return [Integer] Hash code
|
|
106
|
+
def hash
|
|
107
|
+
[info, task_id].hash
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Builds the object from hash
|
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
+
# @return [Object] Returns the model itself
|
|
113
|
+
def self.build_from_hash(attributes)
|
|
114
|
+
new.build_from_hash(attributes)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Builds the object from hash
|
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
|
+
# @return [Object] Returns the model itself
|
|
120
|
+
def build_from_hash(attributes)
|
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
|
122
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
123
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
124
|
+
self.send("#{key}=", nil)
|
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
126
|
+
# check to ensure the input is an array given that the attribute
|
|
127
|
+
# is documented as an array but the input is not
|
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
130
|
+
end
|
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
self
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Deserializes the data based on type
|
|
140
|
+
# @param string type Data type
|
|
141
|
+
# @param string value Value to be deserialized
|
|
142
|
+
# @return [Object] Deserialized data
|
|
143
|
+
def _deserialize(type, value)
|
|
144
|
+
case type.to_sym
|
|
145
|
+
when :Time
|
|
146
|
+
Time.parse(value)
|
|
147
|
+
when :Date
|
|
148
|
+
Date.parse(value)
|
|
149
|
+
when :String
|
|
150
|
+
value.to_s
|
|
151
|
+
when :Integer
|
|
152
|
+
value.to_i
|
|
153
|
+
when :Float
|
|
154
|
+
value.to_f
|
|
155
|
+
when :Boolean
|
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
157
|
+
true
|
|
158
|
+
else
|
|
159
|
+
false
|
|
160
|
+
end
|
|
161
|
+
when :Object
|
|
162
|
+
# generic object (usually a Hash), return directly
|
|
163
|
+
value
|
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
|
170
|
+
{}.tap do |hash|
|
|
171
|
+
value.each do |k, v|
|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
else # model
|
|
176
|
+
# models (e.g. Pet) or oneOf
|
|
177
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
|
178
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the string representation of the object
|
|
183
|
+
# @return [String] String presentation of the object
|
|
184
|
+
def to_s
|
|
185
|
+
to_hash.to_s
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
|
190
|
+
def to_body
|
|
191
|
+
to_hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the object in the form of hash
|
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
|
196
|
+
def to_hash
|
|
197
|
+
hash = {}
|
|
198
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
199
|
+
value = self.send(attr)
|
|
200
|
+
if value.nil?
|
|
201
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
202
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
hash[param] = _to_hash(value)
|
|
206
|
+
end
|
|
207
|
+
hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Outputs non-array value in the form of hash
|
|
211
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
212
|
+
# @param [Object] value Any valid value
|
|
213
|
+
# @return [Hash] Returns the value in the form of hash
|
|
214
|
+
def _to_hash(value)
|
|
215
|
+
if value.is_a?(Array)
|
|
216
|
+
value.compact.map { |v| _to_hash(v) }
|
|
217
|
+
elsif value.is_a?(Hash)
|
|
218
|
+
{}.tap do |hash|
|
|
219
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
220
|
+
end
|
|
221
|
+
elsif value.respond_to? :to_hash
|
|
222
|
+
value.to_hash
|
|
223
|
+
else
|
|
224
|
+
value
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#Site Manager API
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 1.2
|
|
6
|
+
The version of the OpenAPI document: 1.2.3
|
|
7
7
|
Contact: autosde@il.ibm.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0
|
|
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
13
13
|
module AutosdeOpenapiClient
|
|
14
|
-
VERSION = '1.2'
|
|
14
|
+
VERSION = '1.2.3'
|
|
15
15
|
end
|
|
@@ -23,6 +23,7 @@ require 'autosde_openapi_client/models/account_post_request'
|
|
|
23
23
|
require 'autosde_openapi_client/models/account_post_response'
|
|
24
24
|
require 'autosde_openapi_client/models/address'
|
|
25
25
|
require 'autosde_openapi_client/models/address_create'
|
|
26
|
+
require 'autosde_openapi_client/models/async_response'
|
|
26
27
|
require 'autosde_openapi_client/models/auth_response'
|
|
27
28
|
require 'autosde_openapi_client/models/authentication'
|
|
28
29
|
require 'autosde_openapi_client/models/auto_sde_project'
|
|
@@ -44,7 +44,7 @@ describe 'AbstractCapabilityApi' do
|
|
|
44
44
|
# unit tests for abstract_capabilities_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AbstractCapability]
|
|
48
48
|
describe 'abstract_capabilities_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'AbstractCapabilityApi' do
|
|
|
54
54
|
# unit tests for abstract_capabilities_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [AbstractCapability]
|
|
58
58
|
describe 'abstract_capabilities_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'AccountApi' do
|
|
|
44
44
|
# unit tests for accounts_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AccountPostResponse]
|
|
48
48
|
describe 'accounts_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'AccountApi' do
|
|
|
54
54
|
# unit tests for accounts_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [AccountPostResponse]
|
|
58
58
|
describe 'accounts_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'AddressApi' do
|
|
|
44
44
|
# unit tests for addresses_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AsyncResponse]
|
|
48
48
|
describe 'addresses_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'AddressApi' do
|
|
|
54
54
|
# unit tests for addresses_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [Address]
|
|
58
58
|
describe 'addresses_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'AutoSDEProjectApi' do
|
|
|
44
44
|
# unit tests for autosde_projects_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AutoSDEProject]
|
|
48
48
|
describe 'autosde_projects_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'AutoSDEProjectApi' do
|
|
|
54
54
|
# unit tests for autosde_projects_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [AutoSDEProject]
|
|
58
58
|
describe 'autosde_projects_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'AutoSDERoleApi' do
|
|
|
44
44
|
# unit tests for autosde_roles_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AutoSDERole]
|
|
48
48
|
describe 'autosde_roles_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'AutoSDERoleApi' do
|
|
|
54
54
|
# unit tests for autosde_roles_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [AutoSDERole]
|
|
58
58
|
describe 'autosde_roles_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'CapabilityTranslationApi' do
|
|
|
44
44
|
# unit tests for capability_translations_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [CapabilityTranslation]
|
|
48
48
|
describe 'capability_translations_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'CapabilityTranslationApi' do
|
|
|
54
54
|
# unit tests for capability_translations_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [CapabilityTranslation]
|
|
58
58
|
describe 'capability_translations_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/event_api_spec.rb
CHANGED
|
@@ -44,7 +44,7 @@ describe 'EventApi' do
|
|
|
44
44
|
# unit tests for events_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AsyncResponse]
|
|
48
48
|
describe 'events_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'EventApi' do
|
|
|
54
54
|
# unit tests for events_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [EventResponse]
|
|
58
58
|
describe 'events_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/host_api_spec.rb
CHANGED
|
@@ -44,7 +44,7 @@ describe 'HostApi' do
|
|
|
44
44
|
# unit tests for hosts_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AsyncResponse]
|
|
48
48
|
describe 'hosts_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'HostApi' do
|
|
|
54
54
|
# unit tests for hosts_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [Host]
|
|
58
58
|
describe 'hosts_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'HostClusterApi' do
|
|
|
44
44
|
# unit tests for host_clusters_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AsyncResponse]
|
|
48
48
|
describe 'host_clusters_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'HostClusterApi' do
|
|
|
54
54
|
# unit tests for host_clusters_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [HostCluster]
|
|
58
58
|
describe 'host_clusters_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'HostClusterMembershipApi' do
|
|
|
44
44
|
# unit tests for host_cluster_membership_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AsyncResponse]
|
|
48
48
|
describe 'host_cluster_membership_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'HostClusterMembershipApi' do
|
|
|
54
54
|
# unit tests for host_cluster_membership_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [HostClusterMembership]
|
|
58
58
|
describe 'host_cluster_membership_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'HostClusterVolumeMappingApi' do
|
|
|
44
44
|
# unit tests for host_clusters_mapping_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [HostClusterVolumeMappingResponse]
|
|
48
48
|
describe 'host_clusters_mapping_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'HostClusterVolumeMappingApi' do
|
|
|
54
54
|
# unit tests for host_clusters_mapping_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [HostClusterVolumeMappingResponse]
|
|
58
58
|
describe 'host_clusters_mapping_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'HostVolumeConnectionApi' do
|
|
|
44
44
|
# unit tests for host_volume_connection_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [AsyncResponse]
|
|
48
48
|
describe 'host_volume_connection_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'HostVolumeConnectionApi' do
|
|
|
54
54
|
# unit tests for host_volume_connection_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [HostVolumeConnection]
|
|
58
58
|
describe 'host_volume_connection_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
data/spec/api/job_api_spec.rb
CHANGED
|
@@ -44,7 +44,7 @@ describe 'JobApi' do
|
|
|
44
44
|
# unit tests for jobs_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [Job]
|
|
48
48
|
describe 'jobs_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'JobApi' do
|
|
|
54
54
|
# unit tests for jobs_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [Job]
|
|
58
58
|
describe 'jobs_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'NativeCapabilityApi' do
|
|
|
44
44
|
# unit tests for native_capabilities_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [NativeCapability]
|
|
48
48
|
describe 'native_capabilities_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'NativeCapabilityApi' do
|
|
|
54
54
|
# unit tests for native_capabilities_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [NativeCapability]
|
|
58
58
|
describe 'native_capabilities_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -44,7 +44,7 @@ describe 'ProfileApi' do
|
|
|
44
44
|
# unit tests for profiles_pk_delete
|
|
45
45
|
# @param pk
|
|
46
46
|
# @param [Hash] opts the optional parameters
|
|
47
|
-
# @return [
|
|
47
|
+
# @return [Profile]
|
|
48
48
|
describe 'profiles_pk_delete test' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -54,7 +54,7 @@ describe 'ProfileApi' do
|
|
|
54
54
|
# unit tests for profiles_pk_get
|
|
55
55
|
# @param pk
|
|
56
56
|
# @param [Hash] opts the optional parameters
|
|
57
|
-
# @return [
|
|
57
|
+
# @return [Profile]
|
|
58
58
|
describe 'profiles_pk_get test' do
|
|
59
59
|
it 'should work' do
|
|
60
60
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|