autosde_openapi_client 3.2.12 → 3.2.14
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 +1 -0
- data/docs/ServiceResourceAttachmentApi.md +6 -6
- data/docs/ServiceResourceAttachmentCreate.md +22 -0
- data/docs/StorageResource.md +0 -2
- data/docs/StorageResourceCreate.md +0 -2
- data/docs/StorageResourceResponse.md +0 -2
- data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +9 -9
- data/lib/autosde_openapi_client/models/service_resource_attachment_create.rb +242 -0
- data/lib/autosde_openapi_client/models/storage_resource.rb +1 -13
- data/lib/autosde_openapi_client/models/storage_resource_create.rb +1 -13
- data/lib/autosde_openapi_client/models/storage_resource_response.rb +1 -13
- data/lib/autosde_openapi_client/version.rb +2 -2
- data/lib/autosde_openapi_client.rb +1 -0
- data/spec/api/service_resource_attachment_api_spec.rb +1 -1
- data/spec/models/service_resource_attachment_create_spec.rb +46 -0
- data/spec/models/storage_resource_create_spec.rb +0 -6
- data/spec/models/storage_resource_response_spec.rb +0 -6
- data/spec/models/storage_resource_spec.rb +0 -6
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '079e2bef096ff360f8e45418e9859dd8a77125034b4e3b3adbb536fd1fde558b'
|
4
|
+
data.tar.gz: a3ae257b835a5b434c97c895c02b40c5534f6c0108ebbc097cb5f3fbb1189803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '034048c64dfb4301e5c3d29e015213daadb67d351a596062d8aa60c3841cab4b7a5c325fcf82e11b9708caecdbc302a2d7a174472c6a78ea3052d6d3cf999bc0'
|
7
|
+
data.tar.gz: 575adb777ca2491b694b798a3f4d4b817b01028c6c903f43b8fa502bc95d0de120ee234084bf2b319f9885bf57174302567f982ff0b16abe6f733f656190aaf0
|
data/README.md
CHANGED
@@ -249,6 +249,7 @@ Class | Method | HTTP request | Description
|
|
249
249
|
- [AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse](docs/ServiceAbstractCapabilityValueResponse.md)
|
250
250
|
- [AutosdeOpenapiClient::ServiceCreate](docs/ServiceCreate.md)
|
251
251
|
- [AutosdeOpenapiClient::ServiceResourceAttachment](docs/ServiceResourceAttachment.md)
|
252
|
+
- [AutosdeOpenapiClient::ServiceResourceAttachmentCreate](docs/ServiceResourceAttachmentCreate.md)
|
252
253
|
- [AutosdeOpenapiClient::ServiceResourceAttachmentResponse](docs/ServiceResourceAttachmentResponse.md)
|
253
254
|
- [AutosdeOpenapiClient::ServiceResourcesCompliance](docs/ServiceResourcesCompliance.md)
|
254
255
|
- [AutosdeOpenapiClient::ServiceResourcesComplianceResponse](docs/ServiceResourcesComplianceResponse.md)
|
@@ -210,7 +210,7 @@ end
|
|
210
210
|
|
211
211
|
## service_resource_attachment_post
|
212
212
|
|
213
|
-
> <AsyncResponse> service_resource_attachment_post(
|
213
|
+
> <AsyncResponse> service_resource_attachment_post(service_resource_attachment_create)
|
214
214
|
|
215
215
|
|
216
216
|
|
@@ -226,11 +226,11 @@ AutosdeOpenapiClient.configure do |config|
|
|
226
226
|
end
|
227
227
|
|
228
228
|
api_instance = AutosdeOpenapiClient::ServiceResourceAttachmentApi.new
|
229
|
-
|
229
|
+
service_resource_attachment_create = AutosdeOpenapiClient::ServiceResourceAttachmentCreate.new # ServiceResourceAttachmentCreate |
|
230
230
|
|
231
231
|
begin
|
232
232
|
|
233
|
-
result = api_instance.service_resource_attachment_post(
|
233
|
+
result = api_instance.service_resource_attachment_post(service_resource_attachment_create)
|
234
234
|
p result
|
235
235
|
rescue AutosdeOpenapiClient::ApiError => e
|
236
236
|
puts "Error when calling ServiceResourceAttachmentApi->service_resource_attachment_post: #{e}"
|
@@ -241,12 +241,12 @@ end
|
|
241
241
|
|
242
242
|
This returns an Array which contains the response data, status code and headers.
|
243
243
|
|
244
|
-
> <Array(<AsyncResponse>, Integer, Hash)> service_resource_attachment_post_with_http_info(
|
244
|
+
> <Array(<AsyncResponse>, Integer, Hash)> service_resource_attachment_post_with_http_info(service_resource_attachment_create)
|
245
245
|
|
246
246
|
```ruby
|
247
247
|
begin
|
248
248
|
|
249
|
-
data, status_code, headers = api_instance.service_resource_attachment_post_with_http_info(
|
249
|
+
data, status_code, headers = api_instance.service_resource_attachment_post_with_http_info(service_resource_attachment_create)
|
250
250
|
p status_code # => 2xx
|
251
251
|
p headers # => { ... }
|
252
252
|
p data # => <AsyncResponse>
|
@@ -259,7 +259,7 @@ end
|
|
259
259
|
|
260
260
|
| Name | Type | Description | Notes |
|
261
261
|
| ---- | ---- | ----------- | ----- |
|
262
|
-
| **
|
262
|
+
| **service_resource_attachment_create** | [**ServiceResourceAttachmentCreate**](ServiceResourceAttachmentCreate.md) | | |
|
263
263
|
|
264
264
|
### Return type
|
265
265
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# AutosdeOpenapiClient::ServiceResourceAttachmentCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **compliant** | **Boolean** | compliant | [optional][default to false] |
|
8
|
+
| **service** | **String** | !!uuid of service | [optional] |
|
9
|
+
| **storage_resource** | **String** | !!uuid of storage_resource | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'autosde_openapi_client'
|
15
|
+
|
16
|
+
instance = AutosdeOpenapiClient::ServiceResourceAttachmentCreate.new(
|
17
|
+
compliant: null,
|
18
|
+
service: null,
|
19
|
+
storage_resource: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
data/docs/StorageResource.md
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
9
|
-
| **data_reduction** | **Boolean** | data_reduction | [optional][default to false] |
|
10
9
|
| **extent_size** | **Integer** | extent_size | [optional][default to 1024] |
|
11
10
|
| **logical_free** | **Integer** | logical_free | [optional][default to 0] |
|
12
11
|
| **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
|
@@ -24,7 +23,6 @@ require 'autosde_openapi_client'
|
|
24
23
|
instance = AutosdeOpenapiClient::StorageResource.new(
|
25
24
|
advanced_attributes_map: null,
|
26
25
|
component_state: null,
|
27
|
-
data_reduction: null,
|
28
26
|
extent_size: null,
|
29
27
|
logical_free: null,
|
30
28
|
logical_total: null,
|
@@ -6,7 +6,6 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
|
8
8
|
| **component_state** | **String** | component_state | [optional] |
|
9
|
-
| **data_reduction** | **Boolean** | data_reduction | [optional][default to false] |
|
10
9
|
| **extent_size** | **Integer** | extent_size | [optional][default to 1024] |
|
11
10
|
| **logical_free** | **Integer** | logical_free | [optional][default to 0] |
|
12
11
|
| **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
|
@@ -23,7 +22,6 @@ require 'autosde_openapi_client'
|
|
23
22
|
instance = AutosdeOpenapiClient::StorageResourceCreate.new(
|
24
23
|
advanced_attributes_map: null,
|
25
24
|
component_state: null,
|
26
|
-
data_reduction: null,
|
27
25
|
extent_size: null,
|
28
26
|
logical_free: null,
|
29
27
|
logical_total: null,
|
@@ -7,7 +7,6 @@
|
|
7
7
|
| **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
|
8
8
|
| **capability_values_json** | **String** | capability_values_json | [optional] |
|
9
9
|
| **component_state** | **String** | component_state | [optional] |
|
10
|
-
| **data_reduction** | **Boolean** | data_reduction | [optional][default to false] |
|
11
10
|
| **extent_size** | **Integer** | extent_size | [optional][default to 1024] |
|
12
11
|
| **logical_free** | **Integer** | logical_free | [optional][default to 0] |
|
13
12
|
| **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
|
@@ -26,7 +25,6 @@ instance = AutosdeOpenapiClient::StorageResourceResponse.new(
|
|
26
25
|
advanced_attributes_map: null,
|
27
26
|
capability_values_json: null,
|
28
27
|
component_state: null,
|
29
|
-
data_reduction: null,
|
30
28
|
extent_size: null,
|
31
29
|
logical_free: null,
|
32
30
|
logical_total: null,
|
@@ -190,24 +190,24 @@ module AutosdeOpenapiClient
|
|
190
190
|
return data, status_code, headers
|
191
191
|
end
|
192
192
|
|
193
|
-
# @param
|
193
|
+
# @param service_resource_attachment_create [ServiceResourceAttachmentCreate]
|
194
194
|
# @param [Hash] opts the optional parameters
|
195
195
|
# @return [AsyncResponse]
|
196
|
-
def service_resource_attachment_post(
|
197
|
-
data, _status_code, _headers = service_resource_attachment_post_with_http_info(
|
196
|
+
def service_resource_attachment_post(service_resource_attachment_create, opts = {})
|
197
|
+
data, _status_code, _headers = service_resource_attachment_post_with_http_info(service_resource_attachment_create, opts)
|
198
198
|
data
|
199
199
|
end
|
200
200
|
|
201
|
-
# @param
|
201
|
+
# @param service_resource_attachment_create [ServiceResourceAttachmentCreate]
|
202
202
|
# @param [Hash] opts the optional parameters
|
203
203
|
# @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
|
204
|
-
def service_resource_attachment_post_with_http_info(
|
204
|
+
def service_resource_attachment_post_with_http_info(service_resource_attachment_create, opts = {})
|
205
205
|
if @api_client.config.debugging
|
206
206
|
@api_client.config.logger.debug 'Calling API: ServiceResourceAttachmentApi.service_resource_attachment_post ...'
|
207
207
|
end
|
208
|
-
# verify the required parameter '
|
209
|
-
if @api_client.config.client_side_validation &&
|
210
|
-
fail ArgumentError, "Missing the required parameter '
|
208
|
+
# verify the required parameter 'service_resource_attachment_create' is set
|
209
|
+
if @api_client.config.client_side_validation && service_resource_attachment_create.nil?
|
210
|
+
fail ArgumentError, "Missing the required parameter 'service_resource_attachment_create' when calling ServiceResourceAttachmentApi.service_resource_attachment_post"
|
211
211
|
end
|
212
212
|
# resource path
|
213
213
|
local_var_path = '/service-resource-attachment'
|
@@ -226,7 +226,7 @@ module AutosdeOpenapiClient
|
|
226
226
|
form_params = opts[:form_params] || {}
|
227
227
|
|
228
228
|
# http body (model)
|
229
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
229
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(service_resource_attachment_create)
|
230
230
|
|
231
231
|
# return_type
|
232
232
|
return_type = opts[:debug_return_type] || 'AsyncResponse'
|
@@ -0,0 +1,242 @@
|
|
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
|
+
# TODO add description
|
18
|
+
class ServiceResourceAttachmentCreate
|
19
|
+
# compliant
|
20
|
+
attr_accessor :compliant
|
21
|
+
|
22
|
+
# !!uuid of service
|
23
|
+
attr_accessor :service
|
24
|
+
|
25
|
+
# !!uuid of storage_resource
|
26
|
+
attr_accessor :storage_resource
|
27
|
+
|
28
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
29
|
+
def self.attribute_map
|
30
|
+
{
|
31
|
+
:'compliant' => :'compliant',
|
32
|
+
:'service' => :'service',
|
33
|
+
:'storage_resource' => :'storage_resource'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'compliant' => :'Boolean',
|
46
|
+
:'service' => :'String',
|
47
|
+
:'storage_resource' => :'String'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# List of attributes with nullable: true
|
52
|
+
def self.openapi_nullable
|
53
|
+
Set.new([
|
54
|
+
])
|
55
|
+
end
|
56
|
+
|
57
|
+
# Initializes the object
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
59
|
+
def initialize(attributes = {})
|
60
|
+
if (!attributes.is_a?(Hash))
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceResourceAttachmentCreate` initialize method"
|
62
|
+
end
|
63
|
+
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
65
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
66
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
67
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceResourceAttachmentCreate`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
68
|
+
end
|
69
|
+
h[k.to_sym] = v
|
70
|
+
}
|
71
|
+
|
72
|
+
if attributes.key?(:'compliant')
|
73
|
+
self.compliant = attributes[:'compliant']
|
74
|
+
else
|
75
|
+
self.compliant = false
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'service')
|
79
|
+
self.service = attributes[:'service']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'storage_resource')
|
83
|
+
self.storage_resource = attributes[:'storage_resource']
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
88
|
+
# @return Array for valid properties with the reasons
|
89
|
+
def list_invalid_properties
|
90
|
+
invalid_properties = Array.new
|
91
|
+
invalid_properties
|
92
|
+
end
|
93
|
+
|
94
|
+
# Check to see if the all the properties in the model are valid
|
95
|
+
# @return true if the model is valid
|
96
|
+
def valid?
|
97
|
+
true
|
98
|
+
end
|
99
|
+
|
100
|
+
# Checks equality by comparing each attribute.
|
101
|
+
# @param [Object] Object to be compared
|
102
|
+
def ==(o)
|
103
|
+
return true if self.equal?(o)
|
104
|
+
self.class == o.class &&
|
105
|
+
compliant == o.compliant &&
|
106
|
+
service == o.service &&
|
107
|
+
storage_resource == o.storage_resource
|
108
|
+
end
|
109
|
+
|
110
|
+
# @see the `==` method
|
111
|
+
# @param [Object] Object to be compared
|
112
|
+
def eql?(o)
|
113
|
+
self == o
|
114
|
+
end
|
115
|
+
|
116
|
+
# Calculates hash code according to all attributes.
|
117
|
+
# @return [Integer] Hash code
|
118
|
+
def hash
|
119
|
+
[compliant, service, storage_resource].hash
|
120
|
+
end
|
121
|
+
|
122
|
+
# Builds the object from hash
|
123
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
124
|
+
# @return [Object] Returns the model itself
|
125
|
+
def self.build_from_hash(attributes)
|
126
|
+
new.build_from_hash(attributes)
|
127
|
+
end
|
128
|
+
|
129
|
+
# Builds the object from hash
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
131
|
+
# @return [Object] Returns the model itself
|
132
|
+
def build_from_hash(attributes)
|
133
|
+
return nil unless attributes.is_a?(Hash)
|
134
|
+
self.class.openapi_types.each_pair do |key, type|
|
135
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
136
|
+
self.send("#{key}=", nil)
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
138
|
+
# check to ensure the input is an array given that the attribute
|
139
|
+
# is documented as an array but the input is not
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
142
|
+
end
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
144
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
self
|
149
|
+
end
|
150
|
+
|
151
|
+
# Deserializes the data based on type
|
152
|
+
# @param string type Data type
|
153
|
+
# @param string value Value to be deserialized
|
154
|
+
# @return [Object] Deserialized data
|
155
|
+
def _deserialize(type, value)
|
156
|
+
case type.to_sym
|
157
|
+
when :Time
|
158
|
+
Time.parse(value)
|
159
|
+
when :Date
|
160
|
+
Date.parse(value)
|
161
|
+
when :String
|
162
|
+
value.to_s
|
163
|
+
when :Integer
|
164
|
+
value.to_i
|
165
|
+
when :Float
|
166
|
+
value.to_f
|
167
|
+
when :Boolean
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
169
|
+
true
|
170
|
+
else
|
171
|
+
false
|
172
|
+
end
|
173
|
+
when :Object
|
174
|
+
# generic object (usually a Hash), return directly
|
175
|
+
value
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
182
|
+
{}.tap do |hash|
|
183
|
+
value.each do |k, v|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
else # model
|
188
|
+
# models (e.g. Pet) or oneOf
|
189
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
190
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
191
|
+
end
|
192
|
+
end
|
193
|
+
|
194
|
+
# Returns the string representation of the object
|
195
|
+
# @return [String] String presentation of the object
|
196
|
+
def to_s
|
197
|
+
to_hash.to_s
|
198
|
+
end
|
199
|
+
|
200
|
+
# to_body is an alias to to_hash (backward compatibility)
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
202
|
+
def to_body
|
203
|
+
to_hash
|
204
|
+
end
|
205
|
+
|
206
|
+
# Returns the object in the form of hash
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
208
|
+
def to_hash
|
209
|
+
hash = {}
|
210
|
+
self.class.attribute_map.each_pair do |attr, param|
|
211
|
+
value = self.send(attr)
|
212
|
+
if value.nil?
|
213
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
214
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
215
|
+
end
|
216
|
+
|
217
|
+
hash[param] = _to_hash(value)
|
218
|
+
end
|
219
|
+
hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Outputs non-array value in the form of hash
|
223
|
+
# For object, use to_hash. Otherwise, just return the value
|
224
|
+
# @param [Object] value Any valid value
|
225
|
+
# @return [Hash] Returns the value in the form of hash
|
226
|
+
def _to_hash(value)
|
227
|
+
if value.is_a?(Array)
|
228
|
+
value.compact.map { |v| _to_hash(v) }
|
229
|
+
elsif value.is_a?(Hash)
|
230
|
+
{}.tap do |hash|
|
231
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
232
|
+
end
|
233
|
+
elsif value.respond_to? :to_hash
|
234
|
+
value.to_hash
|
235
|
+
else
|
236
|
+
value
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
end
|
241
|
+
|
242
|
+
end
|
@@ -22,9 +22,6 @@ module AutosdeOpenapiClient
|
|
22
22
|
# component_state
|
23
23
|
attr_accessor :component_state
|
24
24
|
|
25
|
-
# data_reduction
|
26
|
-
attr_accessor :data_reduction
|
27
|
-
|
28
25
|
# extent_size
|
29
26
|
attr_accessor :extent_size
|
30
27
|
|
@@ -75,7 +72,6 @@ module AutosdeOpenapiClient
|
|
75
72
|
{
|
76
73
|
:'advanced_attributes_map' => :'advanced_attributes_map',
|
77
74
|
:'component_state' => :'component_state',
|
78
|
-
:'data_reduction' => :'data_reduction',
|
79
75
|
:'extent_size' => :'extent_size',
|
80
76
|
:'logical_free' => :'logical_free',
|
81
77
|
:'logical_total' => :'logical_total',
|
@@ -97,7 +93,6 @@ module AutosdeOpenapiClient
|
|
97
93
|
{
|
98
94
|
:'advanced_attributes_map' => :'String',
|
99
95
|
:'component_state' => :'String',
|
100
|
-
:'data_reduction' => :'Boolean',
|
101
96
|
:'extent_size' => :'Integer',
|
102
97
|
:'logical_free' => :'Integer',
|
103
98
|
:'logical_total' => :'Integer',
|
@@ -138,12 +133,6 @@ module AutosdeOpenapiClient
|
|
138
133
|
self.component_state = attributes[:'component_state']
|
139
134
|
end
|
140
135
|
|
141
|
-
if attributes.key?(:'data_reduction')
|
142
|
-
self.data_reduction = attributes[:'data_reduction']
|
143
|
-
else
|
144
|
-
self.data_reduction = false
|
145
|
-
end
|
146
|
-
|
147
136
|
if attributes.key?(:'extent_size')
|
148
137
|
self.extent_size = attributes[:'extent_size']
|
149
138
|
else
|
@@ -232,7 +221,6 @@ module AutosdeOpenapiClient
|
|
232
221
|
self.class == o.class &&
|
233
222
|
advanced_attributes_map == o.advanced_attributes_map &&
|
234
223
|
component_state == o.component_state &&
|
235
|
-
data_reduction == o.data_reduction &&
|
236
224
|
extent_size == o.extent_size &&
|
237
225
|
logical_free == o.logical_free &&
|
238
226
|
logical_total == o.logical_total &&
|
@@ -252,7 +240,7 @@ module AutosdeOpenapiClient
|
|
252
240
|
# Calculates hash code according to all attributes.
|
253
241
|
# @return [Integer] Hash code
|
254
242
|
def hash
|
255
|
-
[advanced_attributes_map, component_state,
|
243
|
+
[advanced_attributes_map, component_state, extent_size, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
256
244
|
end
|
257
245
|
|
258
246
|
# Builds the object from hash
|
@@ -22,9 +22,6 @@ module AutosdeOpenapiClient
|
|
22
22
|
# component_state
|
23
23
|
attr_accessor :component_state
|
24
24
|
|
25
|
-
# data_reduction
|
26
|
-
attr_accessor :data_reduction
|
27
|
-
|
28
25
|
# extent_size
|
29
26
|
attr_accessor :extent_size
|
30
27
|
|
@@ -73,7 +70,6 @@ module AutosdeOpenapiClient
|
|
73
70
|
{
|
74
71
|
:'advanced_attributes_map' => :'advanced_attributes_map',
|
75
72
|
:'component_state' => :'component_state',
|
76
|
-
:'data_reduction' => :'data_reduction',
|
77
73
|
:'extent_size' => :'extent_size',
|
78
74
|
:'logical_free' => :'logical_free',
|
79
75
|
:'logical_total' => :'logical_total',
|
@@ -94,7 +90,6 @@ module AutosdeOpenapiClient
|
|
94
90
|
{
|
95
91
|
:'advanced_attributes_map' => :'String',
|
96
92
|
:'component_state' => :'String',
|
97
|
-
:'data_reduction' => :'Boolean',
|
98
93
|
:'extent_size' => :'Integer',
|
99
94
|
:'logical_free' => :'Integer',
|
100
95
|
:'logical_total' => :'Integer',
|
@@ -134,12 +129,6 @@ module AutosdeOpenapiClient
|
|
134
129
|
self.component_state = attributes[:'component_state']
|
135
130
|
end
|
136
131
|
|
137
|
-
if attributes.key?(:'data_reduction')
|
138
|
-
self.data_reduction = attributes[:'data_reduction']
|
139
|
-
else
|
140
|
-
self.data_reduction = false
|
141
|
-
end
|
142
|
-
|
143
132
|
if attributes.key?(:'extent_size')
|
144
133
|
self.extent_size = attributes[:'extent_size']
|
145
134
|
else
|
@@ -224,7 +213,6 @@ module AutosdeOpenapiClient
|
|
224
213
|
self.class == o.class &&
|
225
214
|
advanced_attributes_map == o.advanced_attributes_map &&
|
226
215
|
component_state == o.component_state &&
|
227
|
-
data_reduction == o.data_reduction &&
|
228
216
|
extent_size == o.extent_size &&
|
229
217
|
logical_free == o.logical_free &&
|
230
218
|
logical_total == o.logical_total &&
|
@@ -243,7 +231,7 @@ module AutosdeOpenapiClient
|
|
243
231
|
# Calculates hash code according to all attributes.
|
244
232
|
# @return [Integer] Hash code
|
245
233
|
def hash
|
246
|
-
[advanced_attributes_map, component_state,
|
234
|
+
[advanced_attributes_map, component_state, extent_size, logical_free, logical_total, name, pool_name, protocol, storage_system].hash
|
247
235
|
end
|
248
236
|
|
249
237
|
# Builds the object from hash
|
@@ -25,9 +25,6 @@ module AutosdeOpenapiClient
|
|
25
25
|
# component_state
|
26
26
|
attr_accessor :component_state
|
27
27
|
|
28
|
-
# data_reduction
|
29
|
-
attr_accessor :data_reduction
|
30
|
-
|
31
28
|
# extent_size
|
32
29
|
attr_accessor :extent_size
|
33
30
|
|
@@ -80,7 +77,6 @@ module AutosdeOpenapiClient
|
|
80
77
|
:'advanced_attributes_map' => :'advanced_attributes_map',
|
81
78
|
:'capability_values_json' => :'capability_values_json',
|
82
79
|
:'component_state' => :'component_state',
|
83
|
-
:'data_reduction' => :'data_reduction',
|
84
80
|
:'extent_size' => :'extent_size',
|
85
81
|
:'logical_free' => :'logical_free',
|
86
82
|
:'logical_total' => :'logical_total',
|
@@ -103,7 +99,6 @@ module AutosdeOpenapiClient
|
|
103
99
|
:'advanced_attributes_map' => :'String',
|
104
100
|
:'capability_values_json' => :'String',
|
105
101
|
:'component_state' => :'String',
|
106
|
-
:'data_reduction' => :'Boolean',
|
107
102
|
:'extent_size' => :'Integer',
|
108
103
|
:'logical_free' => :'Integer',
|
109
104
|
:'logical_total' => :'Integer',
|
@@ -148,12 +143,6 @@ module AutosdeOpenapiClient
|
|
148
143
|
self.component_state = attributes[:'component_state']
|
149
144
|
end
|
150
145
|
|
151
|
-
if attributes.key?(:'data_reduction')
|
152
|
-
self.data_reduction = attributes[:'data_reduction']
|
153
|
-
else
|
154
|
-
self.data_reduction = false
|
155
|
-
end
|
156
|
-
|
157
146
|
if attributes.key?(:'extent_size')
|
158
147
|
self.extent_size = attributes[:'extent_size']
|
159
148
|
else
|
@@ -243,7 +232,6 @@ module AutosdeOpenapiClient
|
|
243
232
|
advanced_attributes_map == o.advanced_attributes_map &&
|
244
233
|
capability_values_json == o.capability_values_json &&
|
245
234
|
component_state == o.component_state &&
|
246
|
-
data_reduction == o.data_reduction &&
|
247
235
|
extent_size == o.extent_size &&
|
248
236
|
logical_free == o.logical_free &&
|
249
237
|
logical_total == o.logical_total &&
|
@@ -263,7 +251,7 @@ module AutosdeOpenapiClient
|
|
263
251
|
# Calculates hash code according to all attributes.
|
264
252
|
# @return [Integer] Hash code
|
265
253
|
def hash
|
266
|
-
[advanced_attributes_map, capability_values_json, component_state,
|
254
|
+
[advanced_attributes_map, capability_values_json, component_state, extent_size, logical_free, logical_total, name, pool_name, protocol, storage_system, uuid].hash
|
267
255
|
end
|
268
256
|
|
269
257
|
# Builds the object from hash
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 3.2.
|
6
|
+
The version of the OpenAPI document: 3.2.14
|
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 = '3.2.
|
14
|
+
VERSION = '3.2.14'
|
15
15
|
end
|
@@ -58,6 +58,7 @@ require 'autosde_openapi_client/models/service_abstract_capability_value'
|
|
58
58
|
require 'autosde_openapi_client/models/service_abstract_capability_value_response'
|
59
59
|
require 'autosde_openapi_client/models/service_create'
|
60
60
|
require 'autosde_openapi_client/models/service_resource_attachment'
|
61
|
+
require 'autosde_openapi_client/models/service_resource_attachment_create'
|
61
62
|
require 'autosde_openapi_client/models/service_resource_attachment_response'
|
62
63
|
require 'autosde_openapi_client/models/service_resources_compliance'
|
63
64
|
require 'autosde_openapi_client/models/service_resources_compliance_response'
|
@@ -62,7 +62,7 @@ describe 'ServiceResourceAttachmentApi' do
|
|
62
62
|
end
|
63
63
|
|
64
64
|
# unit tests for service_resource_attachment_post
|
65
|
-
# @param
|
65
|
+
# @param service_resource_attachment_create
|
66
66
|
# @param [Hash] opts the optional parameters
|
67
67
|
# @return [AsyncResponse]
|
68
68
|
describe 'service_resource_attachment_post test' do
|
@@ -0,0 +1,46 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for AutosdeOpenapiClient::ServiceResourceAttachmentCreate
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::ServiceResourceAttachmentCreate do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::ServiceResourceAttachmentCreate.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ServiceResourceAttachmentCreate' do
|
24
|
+
it 'should create an instance of ServiceResourceAttachmentCreate' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::ServiceResourceAttachmentCreate)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "compliant"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "service"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "storage_resource"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
@@ -41,12 +41,6 @@ describe AutosdeOpenapiClient::StorageResourceCreate do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
describe 'test attribute "data_reduction"' do
|
45
|
-
it 'should work' do
|
46
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
44
|
describe 'test attribute "extent_size"' do
|
51
45
|
it 'should work' do
|
52
46
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -47,12 +47,6 @@ describe AutosdeOpenapiClient::StorageResourceResponse do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
-
describe 'test attribute "data_reduction"' do
|
51
|
-
it 'should work' do
|
52
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
-
end
|
54
|
-
end
|
55
|
-
|
56
50
|
describe 'test attribute "extent_size"' do
|
57
51
|
it 'should work' do
|
58
52
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -41,12 +41,6 @@ describe AutosdeOpenapiClient::StorageResource do
|
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
|
-
describe 'test attribute "data_reduction"' do
|
45
|
-
it 'should work' do
|
46
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
-
end
|
48
|
-
end
|
49
|
-
|
50
44
|
describe 'test attribute "extent_size"' do
|
51
45
|
it 'should work' do
|
52
46
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosde_openapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- docs/ServiceCreate.md
|
126
126
|
- docs/ServiceResourceAttachment.md
|
127
127
|
- docs/ServiceResourceAttachmentApi.md
|
128
|
+
- docs/ServiceResourceAttachmentCreate.md
|
128
129
|
- docs/ServiceResourceAttachmentResponse.md
|
129
130
|
- docs/ServiceResourcesCompliance.md
|
130
131
|
- docs/ServiceResourcesComplianceApi.md
|
@@ -257,6 +258,7 @@ files:
|
|
257
258
|
- lib/autosde_openapi_client/models/service_abstract_capability_value_response.rb
|
258
259
|
- lib/autosde_openapi_client/models/service_create.rb
|
259
260
|
- lib/autosde_openapi_client/models/service_resource_attachment.rb
|
261
|
+
- lib/autosde_openapi_client/models/service_resource_attachment_create.rb
|
260
262
|
- lib/autosde_openapi_client/models/service_resource_attachment_response.rb
|
261
263
|
- lib/autosde_openapi_client/models/service_resources_compliance.rb
|
262
264
|
- lib/autosde_openapi_client/models/service_resources_compliance_response.rb
|
@@ -372,6 +374,7 @@ files:
|
|
372
374
|
- spec/models/service_abstract_capability_value_response_spec.rb
|
373
375
|
- spec/models/service_abstract_capability_value_spec.rb
|
374
376
|
- spec/models/service_create_spec.rb
|
377
|
+
- spec/models/service_resource_attachment_create_spec.rb
|
375
378
|
- spec/models/service_resource_attachment_response_spec.rb
|
376
379
|
- spec/models/service_resource_attachment_spec.rb
|
377
380
|
- spec/models/service_resources_compliance_response_spec.rb
|
@@ -484,6 +487,7 @@ test_files:
|
|
484
487
|
- spec/models/address_create_spec.rb
|
485
488
|
- spec/models/storage_host_update_spec.rb
|
486
489
|
- spec/models/snapshot_response_spec.rb
|
490
|
+
- spec/models/service_resource_attachment_create_spec.rb
|
487
491
|
- spec/models/celery_config_spec.rb
|
488
492
|
- spec/models/storage_host_create_spec.rb
|
489
493
|
- spec/models/storage_resource_spec.rb
|