autosde_openapi_client 2.2.2 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/docs/ServiceResourceAttachmentApi.md +8 -8
- data/docs/ServiceResourceAttachmentResponse.md +24 -0
- data/lib/autosde_openapi_client/api/service_resource_attachment_api.rb +6 -6
- data/lib/autosde_openapi_client/models/service_resource_attachment.rb +1 -1
- data/lib/autosde_openapi_client/models/service_resource_attachment_response.rb +252 -0
- 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 +2 -2
- data/spec/models/service_resource_attachment_response_spec.rb +52 -0
- metadata +84 -80
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b63cce030201a8012377e0607e0e6a3bc4dc86b98098158319ea0861b78ffd2d
|
4
|
+
data.tar.gz: 19c8a56778cd492cf02fe8ca6f59d8b1f6b5db6d81580e27e630938754080e28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6353b57f482fc4ae842148da53af24c39a84f7b02c949aa85bba906d898ca1985032d5f134528ef5ec707d8e28fad2989cfa1db8d3ebfd2b919b73d3ad3c4a13
|
7
|
+
data.tar.gz: e7306e60aae0b504687becba372e531dad231b84ac201287bfb9f71169baf5071e913f1764b5fbbff7af1108db789c8432dbe9d4f7a7ccab2ee74e5e3cf2d890
|
data/README.md
CHANGED
@@ -243,6 +243,7 @@ Class | Method | HTTP request | Description
|
|
243
243
|
- [AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse](docs/ServiceAbstractCapabilityValueResponse.md)
|
244
244
|
- [AutosdeOpenapiClient::ServiceCreate](docs/ServiceCreate.md)
|
245
245
|
- [AutosdeOpenapiClient::ServiceResourceAttachment](docs/ServiceResourceAttachment.md)
|
246
|
+
- [AutosdeOpenapiClient::ServiceResourceAttachmentResponse](docs/ServiceResourceAttachmentResponse.md)
|
246
247
|
- [AutosdeOpenapiClient::ServiceResponse](docs/ServiceResponse.md)
|
247
248
|
- [AutosdeOpenapiClient::Snapshot](docs/Snapshot.md)
|
248
249
|
- [AutosdeOpenapiClient::SnapshotCreate](docs/SnapshotCreate.md)
|
@@ -12,7 +12,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
|
|
12
12
|
|
13
13
|
## service_resource_attachment_get
|
14
14
|
|
15
|
-
> <Array<
|
15
|
+
> <Array<ServiceResourceAttachmentResponse>> service_resource_attachment_get
|
16
16
|
|
17
17
|
|
18
18
|
|
@@ -42,7 +42,7 @@ end
|
|
42
42
|
|
43
43
|
This returns an Array which contains the response data, status code and headers.
|
44
44
|
|
45
|
-
> <Array(<Array<
|
45
|
+
> <Array(<Array<ServiceResourceAttachmentResponse>>, Integer, Hash)> service_resource_attachment_get_with_http_info
|
46
46
|
|
47
47
|
```ruby
|
48
48
|
begin
|
@@ -50,7 +50,7 @@ begin
|
|
50
50
|
data, status_code, headers = api_instance.service_resource_attachment_get_with_http_info
|
51
51
|
p status_code # => 2xx
|
52
52
|
p headers # => { ... }
|
53
|
-
p data # => <Array<
|
53
|
+
p data # => <Array<ServiceResourceAttachmentResponse>>
|
54
54
|
rescue AutosdeOpenapiClient::ApiError => e
|
55
55
|
puts "Error when calling ServiceResourceAttachmentApi->service_resource_attachment_get_with_http_info: #{e}"
|
56
56
|
end
|
@@ -62,7 +62,7 @@ This endpoint does not need any parameter.
|
|
62
62
|
|
63
63
|
### Return type
|
64
64
|
|
65
|
-
[**Array<
|
65
|
+
[**Array<ServiceResourceAttachmentResponse>**](ServiceResourceAttachmentResponse.md)
|
66
66
|
|
67
67
|
### Authorization
|
68
68
|
|
@@ -143,7 +143,7 @@ end
|
|
143
143
|
|
144
144
|
## service_resource_attachment_pk_get
|
145
145
|
|
146
|
-
> <
|
146
|
+
> <ServiceResourceAttachmentResponse> service_resource_attachment_pk_get(pk)
|
147
147
|
|
148
148
|
|
149
149
|
|
@@ -174,7 +174,7 @@ end
|
|
174
174
|
|
175
175
|
This returns an Array which contains the response data, status code and headers.
|
176
176
|
|
177
|
-
> <Array(<
|
177
|
+
> <Array(<ServiceResourceAttachmentResponse>, Integer, Hash)> service_resource_attachment_pk_get_with_http_info(pk)
|
178
178
|
|
179
179
|
```ruby
|
180
180
|
begin
|
@@ -182,7 +182,7 @@ begin
|
|
182
182
|
data, status_code, headers = api_instance.service_resource_attachment_pk_get_with_http_info(pk)
|
183
183
|
p status_code # => 2xx
|
184
184
|
p headers # => { ... }
|
185
|
-
p data # => <
|
185
|
+
p data # => <ServiceResourceAttachmentResponse>
|
186
186
|
rescue AutosdeOpenapiClient::ApiError => e
|
187
187
|
puts "Error when calling ServiceResourceAttachmentApi->service_resource_attachment_pk_get_with_http_info: #{e}"
|
188
188
|
end
|
@@ -196,7 +196,7 @@ end
|
|
196
196
|
|
197
197
|
### Return type
|
198
198
|
|
199
|
-
[**
|
199
|
+
[**ServiceResourceAttachmentResponse**](ServiceResourceAttachmentResponse.md)
|
200
200
|
|
201
201
|
### Authorization
|
202
202
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# AutosdeOpenapiClient::ServiceResourceAttachmentResponse
|
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
|
+
| **uuid** | **String** | uuid | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'autosde_openapi_client'
|
16
|
+
|
17
|
+
instance = AutosdeOpenapiClient::ServiceResourceAttachmentResponse.new(
|
18
|
+
compliant: null,
|
19
|
+
service: null,
|
20
|
+
storage_resource: null,
|
21
|
+
uuid: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -20,14 +20,14 @@ module AutosdeOpenapiClient
|
|
20
20
|
@api_client = api_client
|
21
21
|
end
|
22
22
|
# @param [Hash] opts the optional parameters
|
23
|
-
# @return [Array<
|
23
|
+
# @return [Array<ServiceResourceAttachmentResponse>]
|
24
24
|
def service_resource_attachment_get(opts = {})
|
25
25
|
data, _status_code, _headers = service_resource_attachment_get_with_http_info(opts)
|
26
26
|
data
|
27
27
|
end
|
28
28
|
|
29
29
|
# @param [Hash] opts the optional parameters
|
30
|
-
# @return [Array<(Array<
|
30
|
+
# @return [Array<(Array<ServiceResourceAttachmentResponse>, Integer, Hash)>] Array<ServiceResourceAttachmentResponse> data, response status code and response headers
|
31
31
|
def service_resource_attachment_get_with_http_info(opts = {})
|
32
32
|
if @api_client.config.debugging
|
33
33
|
@api_client.config.logger.debug 'Calling API: ServiceResourceAttachmentApi.service_resource_attachment_get ...'
|
@@ -50,7 +50,7 @@ module AutosdeOpenapiClient
|
|
50
50
|
post_body = opts[:debug_body]
|
51
51
|
|
52
52
|
# return_type
|
53
|
-
return_type = opts[:debug_return_type] || 'Array<
|
53
|
+
return_type = opts[:debug_return_type] || 'Array<ServiceResourceAttachmentResponse>'
|
54
54
|
|
55
55
|
# auth_names
|
56
56
|
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 [ServiceResourceAttachmentResponse]
|
137
137
|
def service_resource_attachment_pk_get(pk, opts = {})
|
138
138
|
data, _status_code, _headers = service_resource_attachment_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<(ServiceResourceAttachmentResponse, Integer, Hash)>] ServiceResourceAttachmentResponse data, response status code and response headers
|
145
145
|
def service_resource_attachment_pk_get_with_http_info(pk, opts = {})
|
146
146
|
if @api_client.config.debugging
|
147
147
|
@api_client.config.logger.debug 'Calling API: ServiceResourceAttachmentApi.service_resource_attachment_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] || 'ServiceResourceAttachmentResponse'
|
172
172
|
|
173
173
|
# auth_names
|
174
174
|
auth_names = opts[:debug_auth_names] || ['bearerAuth']
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module AutosdeOpenapiClient
|
17
|
-
#
|
17
|
+
# A Service Resource Attachment is a many2many mapping between services and resources
|
18
18
|
class ServiceResourceAttachment
|
19
19
|
# compliant
|
20
20
|
attr_accessor :compliant
|
@@ -0,0 +1,252 @@
|
|
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 ServiceResourceAttachmentResponse
|
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
|
+
# uuid
|
29
|
+
attr_accessor :uuid
|
30
|
+
|
31
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
32
|
+
def self.attribute_map
|
33
|
+
{
|
34
|
+
:'compliant' => :'compliant',
|
35
|
+
:'service' => :'service',
|
36
|
+
:'storage_resource' => :'storage_resource',
|
37
|
+
:'uuid' => :'uuid'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Returns all the JSON keys this model knows about
|
42
|
+
def self.acceptable_attributes
|
43
|
+
attribute_map.values
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.openapi_types
|
48
|
+
{
|
49
|
+
:'compliant' => :'Boolean',
|
50
|
+
:'service' => :'String',
|
51
|
+
:'storage_resource' => :'String',
|
52
|
+
:'uuid' => :'String'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceResourceAttachmentResponse` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceResourceAttachmentResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'compliant')
|
78
|
+
self.compliant = attributes[:'compliant']
|
79
|
+
else
|
80
|
+
self.compliant = false
|
81
|
+
end
|
82
|
+
|
83
|
+
if attributes.key?(:'service')
|
84
|
+
self.service = attributes[:'service']
|
85
|
+
end
|
86
|
+
|
87
|
+
if attributes.key?(:'storage_resource')
|
88
|
+
self.storage_resource = attributes[:'storage_resource']
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'uuid')
|
92
|
+
self.uuid = attributes[:'uuid']
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
+
# @return Array for valid properties with the reasons
|
98
|
+
def list_invalid_properties
|
99
|
+
invalid_properties = Array.new
|
100
|
+
invalid_properties
|
101
|
+
end
|
102
|
+
|
103
|
+
# Check to see if the all the properties in the model are valid
|
104
|
+
# @return true if the model is valid
|
105
|
+
def valid?
|
106
|
+
true
|
107
|
+
end
|
108
|
+
|
109
|
+
# Checks equality by comparing each attribute.
|
110
|
+
# @param [Object] Object to be compared
|
111
|
+
def ==(o)
|
112
|
+
return true if self.equal?(o)
|
113
|
+
self.class == o.class &&
|
114
|
+
compliant == o.compliant &&
|
115
|
+
service == o.service &&
|
116
|
+
storage_resource == o.storage_resource &&
|
117
|
+
uuid == o.uuid
|
118
|
+
end
|
119
|
+
|
120
|
+
# @see the `==` method
|
121
|
+
# @param [Object] Object to be compared
|
122
|
+
def eql?(o)
|
123
|
+
self == o
|
124
|
+
end
|
125
|
+
|
126
|
+
# Calculates hash code according to all attributes.
|
127
|
+
# @return [Integer] Hash code
|
128
|
+
def hash
|
129
|
+
[compliant, service, storage_resource, uuid].hash
|
130
|
+
end
|
131
|
+
|
132
|
+
# Builds the object from hash
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
134
|
+
# @return [Object] Returns the model itself
|
135
|
+
def self.build_from_hash(attributes)
|
136
|
+
new.build_from_hash(attributes)
|
137
|
+
end
|
138
|
+
|
139
|
+
# Builds the object from hash
|
140
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
141
|
+
# @return [Object] Returns the model itself
|
142
|
+
def build_from_hash(attributes)
|
143
|
+
return nil unless attributes.is_a?(Hash)
|
144
|
+
self.class.openapi_types.each_pair do |key, type|
|
145
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
146
|
+
self.send("#{key}=", nil)
|
147
|
+
elsif type =~ /\AArray<(.*)>/i
|
148
|
+
# check to ensure the input is an array given that the attribute
|
149
|
+
# is documented as an array but the input is not
|
150
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
151
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
152
|
+
end
|
153
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
154
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
self
|
159
|
+
end
|
160
|
+
|
161
|
+
# Deserializes the data based on type
|
162
|
+
# @param string type Data type
|
163
|
+
# @param string value Value to be deserialized
|
164
|
+
# @return [Object] Deserialized data
|
165
|
+
def _deserialize(type, value)
|
166
|
+
case type.to_sym
|
167
|
+
when :Time
|
168
|
+
Time.parse(value)
|
169
|
+
when :Date
|
170
|
+
Date.parse(value)
|
171
|
+
when :String
|
172
|
+
value.to_s
|
173
|
+
when :Integer
|
174
|
+
value.to_i
|
175
|
+
when :Float
|
176
|
+
value.to_f
|
177
|
+
when :Boolean
|
178
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
179
|
+
true
|
180
|
+
else
|
181
|
+
false
|
182
|
+
end
|
183
|
+
when :Object
|
184
|
+
# generic object (usually a Hash), return directly
|
185
|
+
value
|
186
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
187
|
+
inner_type = Regexp.last_match[:inner_type]
|
188
|
+
value.map { |v| _deserialize(inner_type, v) }
|
189
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
190
|
+
k_type = Regexp.last_match[:k_type]
|
191
|
+
v_type = Regexp.last_match[:v_type]
|
192
|
+
{}.tap do |hash|
|
193
|
+
value.each do |k, v|
|
194
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
195
|
+
end
|
196
|
+
end
|
197
|
+
else # model
|
198
|
+
# models (e.g. Pet) or oneOf
|
199
|
+
klass = AutosdeOpenapiClient.const_get(type)
|
200
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
|
204
|
+
# Returns the string representation of the object
|
205
|
+
# @return [String] String presentation of the object
|
206
|
+
def to_s
|
207
|
+
to_hash.to_s
|
208
|
+
end
|
209
|
+
|
210
|
+
# to_body is an alias to to_hash (backward compatibility)
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
212
|
+
def to_body
|
213
|
+
to_hash
|
214
|
+
end
|
215
|
+
|
216
|
+
# Returns the object in the form of hash
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_hash
|
219
|
+
hash = {}
|
220
|
+
self.class.attribute_map.each_pair do |attr, param|
|
221
|
+
value = self.send(attr)
|
222
|
+
if value.nil?
|
223
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
224
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
225
|
+
end
|
226
|
+
|
227
|
+
hash[param] = _to_hash(value)
|
228
|
+
end
|
229
|
+
hash
|
230
|
+
end
|
231
|
+
|
232
|
+
# Outputs non-array value in the form of hash
|
233
|
+
# For object, use to_hash. Otherwise, just return the value
|
234
|
+
# @param [Object] value Any valid value
|
235
|
+
# @return [Hash] Returns the value in the form of hash
|
236
|
+
def _to_hash(value)
|
237
|
+
if value.is_a?(Array)
|
238
|
+
value.compact.map { |v| _to_hash(v) }
|
239
|
+
elsif value.is_a?(Hash)
|
240
|
+
{}.tap do |hash|
|
241
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
242
|
+
end
|
243
|
+
elsif value.respond_to? :to_hash
|
244
|
+
value.to_hash
|
245
|
+
else
|
246
|
+
value
|
247
|
+
end
|
248
|
+
end
|
249
|
+
|
250
|
+
end
|
251
|
+
|
252
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
|
4
4
|
#Site Manager API
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.2.
|
6
|
+
The version of the OpenAPI document: 2.2.4
|
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 = '2.2.
|
14
|
+
VERSION = '2.2.4'
|
15
15
|
end
|
@@ -56,6 +56,7 @@ require 'autosde_openapi_client/models/service_abstract_capability_value'
|
|
56
56
|
require 'autosde_openapi_client/models/service_abstract_capability_value_response'
|
57
57
|
require 'autosde_openapi_client/models/service_create'
|
58
58
|
require 'autosde_openapi_client/models/service_resource_attachment'
|
59
|
+
require 'autosde_openapi_client/models/service_resource_attachment_response'
|
59
60
|
require 'autosde_openapi_client/models/service_response'
|
60
61
|
require 'autosde_openapi_client/models/snapshot'
|
61
62
|
require 'autosde_openapi_client/models/snapshot_create'
|
@@ -34,7 +34,7 @@ describe 'ServiceResourceAttachmentApi' do
|
|
34
34
|
|
35
35
|
# unit tests for service_resource_attachment_get
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
|
-
# @return [Array<
|
37
|
+
# @return [Array<ServiceResourceAttachmentResponse>]
|
38
38
|
describe 'service_resource_attachment_get test' do
|
39
39
|
it 'should work' do
|
40
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -54,7 +54,7 @@ describe 'ServiceResourceAttachmentApi' do
|
|
54
54
|
# unit tests for service_resource_attachment_pk_get
|
55
55
|
# @param pk
|
56
56
|
# @param [Hash] opts the optional parameters
|
57
|
-
# @return [
|
57
|
+
# @return [ServiceResourceAttachmentResponse]
|
58
58
|
describe 'service_resource_attachment_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
|
@@ -0,0 +1,52 @@
|
|
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::ServiceResourceAttachmentResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe AutosdeOpenapiClient::ServiceResourceAttachmentResponse do
|
21
|
+
let(:instance) { AutosdeOpenapiClient::ServiceResourceAttachmentResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ServiceResourceAttachmentResponse' do
|
24
|
+
it 'should create an instance of ServiceResourceAttachmentResponse' do
|
25
|
+
expect(instance).to be_instance_of(AutosdeOpenapiClient::ServiceResourceAttachmentResponse)
|
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
|
+
describe 'test attribute "uuid"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autosde_openapi_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenAPI-Generator
|
@@ -123,6 +123,7 @@ files:
|
|
123
123
|
- docs/ServiceCreate.md
|
124
124
|
- docs/ServiceResourceAttachment.md
|
125
125
|
- docs/ServiceResourceAttachmentApi.md
|
126
|
+
- docs/ServiceResourceAttachmentResponse.md
|
126
127
|
- docs/ServiceResponse.md
|
127
128
|
- docs/Snapshot.md
|
128
129
|
- docs/SnapshotApi.md
|
@@ -239,6 +240,7 @@ files:
|
|
239
240
|
- lib/autosde_openapi_client/models/service_abstract_capability_value_response.rb
|
240
241
|
- lib/autosde_openapi_client/models/service_create.rb
|
241
242
|
- lib/autosde_openapi_client/models/service_resource_attachment.rb
|
243
|
+
- lib/autosde_openapi_client/models/service_resource_attachment_response.rb
|
242
244
|
- lib/autosde_openapi_client/models/service_response.rb
|
243
245
|
- lib/autosde_openapi_client/models/snapshot.rb
|
244
246
|
- lib/autosde_openapi_client/models/snapshot_create.rb
|
@@ -341,6 +343,7 @@ files:
|
|
341
343
|
- spec/models/service_abstract_capability_value_response_spec.rb
|
342
344
|
- spec/models/service_abstract_capability_value_spec.rb
|
343
345
|
- spec/models/service_create_spec.rb
|
346
|
+
- spec/models/service_resource_attachment_response_spec.rb
|
344
347
|
- spec/models/service_resource_attachment_spec.rb
|
345
348
|
- spec/models/service_response_spec.rb
|
346
349
|
- spec/models/service_spec.rb
|
@@ -398,107 +401,108 @@ signing_key:
|
|
398
401
|
specification_version: 4
|
399
402
|
summary: Site Manager API Ruby Gem
|
400
403
|
test_files:
|
401
|
-
- spec/api/
|
402
|
-
- spec/api/
|
403
|
-
- spec/api/native_capability_api_spec.rb
|
404
|
-
- spec/api/host_volume_connection_api_spec.rb
|
405
|
-
- spec/api/refresh_system_api_spec.rb
|
406
|
-
- spec/api/service_abstract_capability_value_api_spec.rb
|
407
|
-
- spec/api/job_api_spec.rb
|
408
|
-
- spec/api/host_cluster_api_spec.rb
|
404
|
+
- spec/api/volume_api_spec.rb
|
405
|
+
- spec/api/host_api_spec.rb
|
409
406
|
- spec/api/profile_api_spec.rb
|
407
|
+
- spec/api/service_abstract_capability_value_api_spec.rb
|
408
|
+
- spec/api/storage_hosts_mapping_api_spec.rb
|
409
|
+
- spec/api/celery_config_api_spec.rb
|
410
|
+
- spec/api/auto_sde_project_api_spec.rb
|
411
|
+
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
410
412
|
- spec/api/snapshot_api_spec.rb
|
411
|
-
- spec/api/
|
413
|
+
- spec/api/refresh_system_api_spec.rb
|
412
414
|
- spec/api/event_api_spec.rb
|
413
|
-
- spec/api/
|
414
|
-
- spec/api/
|
415
|
-
- spec/api/address_api_spec.rb
|
415
|
+
- spec/api/storage_host_api_spec.rb
|
416
|
+
- spec/api/auto_sde_role_api_spec.rb
|
416
417
|
- spec/api/validate_system_api_spec.rb
|
417
|
-
- spec/api/authentication_api_spec.rb
|
418
|
-
- spec/api/host_api_spec.rb
|
419
|
-
- spec/api/volume_api_spec.rb
|
420
|
-
- spec/api/storage_system_api_spec.rb
|
421
418
|
- spec/api/user_api_spec.rb
|
422
|
-
- spec/api/system_type_api_spec.rb
|
423
|
-
- spec/api/capability_translation_api_spec.rb
|
424
|
-
- spec/api/storage_host_wwpn_candidates_api_spec.rb
|
425
|
-
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
426
|
-
- spec/api/auto_sde_role_api_spec.rb
|
427
419
|
- spec/api/abstract_capability_api_spec.rb
|
428
|
-
- spec/api/
|
429
|
-
- spec/api/
|
430
|
-
- spec/api/
|
420
|
+
- spec/api/storage_system_api_spec.rb
|
421
|
+
- spec/api/capability_translation_api_spec.rb
|
422
|
+
- spec/api/host_cluster_membership_api_spec.rb
|
423
|
+
- spec/api/authentication_api_spec.rb
|
431
424
|
- spec/api/service_api_spec.rb
|
425
|
+
- spec/api/host_cluster_api_spec.rb
|
426
|
+
- spec/api/native_capability_api_spec.rb
|
427
|
+
- spec/api/system_type_api_spec.rb
|
428
|
+
- spec/api/address_api_spec.rb
|
432
429
|
- spec/api/service_resource_attachment_api_spec.rb
|
430
|
+
- spec/api/host_volume_connection_api_spec.rb
|
431
|
+
- spec/api/provisioning_strategy_api_spec.rb
|
432
|
+
- spec/api/job_api_spec.rb
|
433
|
+
- spec/api/account_api_spec.rb
|
434
|
+
- spec/api/host_cluster_volume_mapping_api_spec.rb
|
435
|
+
- spec/api/storage_resource_api_spec.rb
|
433
436
|
- spec/api_client_spec.rb
|
434
437
|
- spec/configuration_spec.rb
|
435
|
-
- spec/models/service_spec.rb
|
436
|
-
- spec/models/storage_hosts_mapping_response_spec.rb
|
437
|
-
- spec/models/account_spec.rb
|
438
|
-
- spec/models/service_create_spec.rb
|
439
|
-
- spec/models/host_volume_connection_spec.rb
|
440
|
-
- spec/models/snapshot_create_spec.rb
|
441
|
-
- spec/models/auto_sde_role_spec.rb
|
442
|
-
- spec/models/storage_host_create_spec.rb
|
443
|
-
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
444
|
-
- spec/models/system_type_create_spec.rb
|
445
438
|
- spec/models/storage_hosts_mapping_create_spec.rb
|
446
|
-
- spec/models/auth_response_spec.rb
|
447
|
-
- spec/models/capability_translation_spec.rb
|
448
|
-
- spec/models/service_abstract_capability_value_spec.rb
|
449
|
-
- spec/models/volume_response_spec.rb
|
450
439
|
- spec/models/event_response_spec.rb
|
451
|
-
- spec/models/
|
452
|
-
- spec/models/
|
453
|
-
- spec/models/
|
454
|
-
- spec/models/
|
455
|
-
- spec/models/
|
456
|
-
- spec/models/
|
457
|
-
- spec/models/
|
440
|
+
- spec/models/account_spec.rb
|
441
|
+
- spec/models/volume_update_spec.rb
|
442
|
+
- spec/models/storage_system_create_spec.rb
|
443
|
+
- spec/models/system_type_create_spec.rb
|
444
|
+
- spec/models/storage_hosts_mapping_response_spec.rb
|
445
|
+
- spec/models/user_spec.rb
|
446
|
+
- spec/models/storage_resource_spec.rb
|
447
|
+
- spec/models/storage_system_update_spec.rb
|
448
|
+
- spec/models/service_resource_attachment_spec.rb
|
449
|
+
- spec/models/service_resource_attachment_response_spec.rb
|
458
450
|
- spec/models/host_cluster_spec.rb
|
459
|
-
- spec/models/refresh_system_spec.rb
|
460
451
|
- spec/models/storage_hosts_mapping_spec.rb
|
461
|
-
- spec/models/
|
462
|
-
- spec/models/
|
463
|
-
- spec/models/
|
464
|
-
- spec/models/
|
465
|
-
- spec/models/
|
452
|
+
- spec/models/storage_resource_create_spec.rb
|
453
|
+
- spec/models/host_cluster_volume_mapping_create_spec.rb
|
454
|
+
- spec/models/user_create_spec.rb
|
455
|
+
- spec/models/host_volume_connection_create_spec.rb
|
456
|
+
- spec/models/refresh_system_spec.rb
|
457
|
+
- spec/models/volume_spec.rb
|
458
|
+
- spec/models/auth_response_spec.rb
|
459
|
+
- spec/models/storage_host_create_spec.rb
|
460
|
+
- spec/models/auto_sde_role_spec.rb
|
466
461
|
- spec/models/authentication_spec.rb
|
462
|
+
- spec/models/address_spec.rb
|
463
|
+
- spec/models/celery_config_spec.rb
|
467
464
|
- spec/models/account_post_request_spec.rb
|
468
|
-
- spec/models/
|
469
|
-
- spec/models/address_create_spec.rb
|
470
|
-
- spec/models/storage_host_update_spec.rb
|
471
|
-
- spec/models/user_spec.rb
|
472
|
-
- spec/models/auto_sde_project_spec.rb
|
473
|
-
- spec/models/storage_resource_spec.rb
|
474
|
-
- spec/models/storage_resource_update_spec.rb
|
465
|
+
- spec/models/host_cluster_response_spec.rb
|
475
466
|
- spec/models/host_cluster_membership_spec.rb
|
476
|
-
- spec/models/
|
477
|
-
- spec/models/
|
467
|
+
- spec/models/system_type_response_spec.rb
|
468
|
+
- spec/models/storage_host_update_spec.rb
|
469
|
+
- spec/models/event_spec.rb
|
470
|
+
- spec/models/host_cluster_create_spec.rb
|
478
471
|
- spec/models/abstract_capability_spec.rb
|
479
|
-
- spec/models/
|
480
|
-
- spec/models/
|
481
|
-
- spec/models/
|
482
|
-
- spec/models/
|
483
|
-
- spec/models/
|
484
|
-
- spec/models/
|
485
|
-
- spec/models/storage_system_create_spec.rb
|
486
|
-
- spec/models/host_cluster_volume_mapping_spec.rb
|
487
|
-
- spec/models/host_volume_connection_create_spec.rb
|
472
|
+
- spec/models/account_post_response_spec.rb
|
473
|
+
- spec/models/capability_translation_spec.rb
|
474
|
+
- spec/models/service_response_spec.rb
|
475
|
+
- spec/models/storage_host_response_spec.rb
|
476
|
+
- spec/models/user_update_spec.rb
|
477
|
+
- spec/models/profile_spec.rb
|
488
478
|
- spec/models/job_create_spec.rb
|
479
|
+
- spec/models/host_volume_connection_spec.rb
|
480
|
+
- spec/models/snapshot_create_spec.rb
|
489
481
|
- spec/models/service_abstract_capability_value_response_spec.rb
|
490
|
-
- spec/models/
|
491
|
-
- spec/models/
|
492
|
-
- spec/models/
|
482
|
+
- spec/models/snapshot_spec.rb
|
483
|
+
- spec/models/auto_sde_project_spec.rb
|
484
|
+
- spec/models/async_response_spec.rb
|
485
|
+
- spec/models/service_create_spec.rb
|
486
|
+
- spec/models/validate_system_spec.rb
|
487
|
+
- spec/models/service_spec.rb
|
488
|
+
- spec/models/host_cluster_volume_mapping_response_spec.rb
|
489
|
+
- spec/models/storage_host_wwpn_candidates_spec.rb
|
490
|
+
- spec/models/storage_resource_update_spec.rb
|
491
|
+
- spec/models/volume_create_spec.rb
|
492
|
+
- spec/models/volume_response_spec.rb
|
493
493
|
- spec/models/storage_host_spec.rb
|
494
|
-
- spec/models/
|
495
|
-
- spec/models/
|
494
|
+
- spec/models/storage_system_response_spec.rb
|
495
|
+
- spec/models/storage_resource_response_spec.rb
|
496
496
|
- spec/models/provisioning_strategy_spec.rb
|
497
|
-
- spec/models/
|
498
|
-
- spec/models/
|
497
|
+
- spec/models/storage_system_spec.rb
|
498
|
+
- spec/models/abstract_capability_response_spec.rb
|
499
|
+
- spec/models/capability_translation_create_spec.rb
|
500
|
+
- spec/models/host_cluster_volume_mapping_spec.rb
|
499
501
|
- spec/models/host_create_spec.rb
|
502
|
+
- spec/models/address_create_spec.rb
|
503
|
+
- spec/models/job_spec.rb
|
500
504
|
- spec/models/host_spec.rb
|
501
|
-
- spec/models/
|
502
|
-
- spec/models/
|
503
|
-
- spec/models/
|
505
|
+
- spec/models/system_type_spec.rb
|
506
|
+
- spec/models/service_abstract_capability_value_spec.rb
|
507
|
+
- spec/models/native_capability_spec.rb
|
504
508
|
- spec/spec_helper.rb
|