autosde_openapi_client 2.2.3 → 2.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98cd4e7915378b6a0a9b99add127ebc29b9467f268745cbb6e636b2427697bda
4
- data.tar.gz: fec083cb0abb7648d3fbb7d2b63e5314c3e40e96284229b70a5b71c93ab1894d
3
+ metadata.gz: b0e54f75ef6df26839e1e542cf363f85659f5ed795d85c772880941c5bab0ca2
4
+ data.tar.gz: 844758e813f0e839fc9802a25bf11d61f88d0b07aecc6f3343ec6d3cdfac0be1
5
5
  SHA512:
6
- metadata.gz: fa4957c77adfb7c6c595401d8c636e4dc629354b731745171e64b5b57c294834cf8abbe71b0da87cff23659a320768427661f20307f8e782aa807b061fed428d
7
- data.tar.gz: c98d5c536e6302fc4a2e17504c1bd0515282fb25d13a209c4b1a9d661ea3dcb9dc93d521d93c875b37191bfa28531d9133584d9a538b4755c136164d452aa787
6
+ metadata.gz: 96c59bcc8b5fe1e44bac26b88c87af0ed7825c5b553b9945bccd9c1f487a7e6a921e2eb5a16d9b48e8192d261aa691d935ec7a6f9b7230d15889fc0d2a98c358
7
+ data.tar.gz: cdcc67b6b4605dcf482010711d74d5b2c4a5ad39dffab84aa8471f99a60bd3b02be16ccd1479331fa0eb616589eae3a87027c35c8279d34d6d6ff1028c4e1c0c
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<ServiceResourceAttachment>> service_resource_attachment_get
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<ServiceResourceAttachment>>, Integer, Hash)> service_resource_attachment_get_with_http_info
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<ServiceResourceAttachment>>
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&lt;ServiceResourceAttachment&gt;**](ServiceResourceAttachment.md)
65
+ [**Array&lt;ServiceResourceAttachmentResponse&gt;**](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
- > <ServiceResourceAttachment> service_resource_attachment_pk_get(pk)
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(<ServiceResourceAttachment>, Integer, Hash)> service_resource_attachment_pk_get_with_http_info(pk)
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 # => <ServiceResourceAttachment>
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
- [**ServiceResourceAttachment**](ServiceResourceAttachment.md)
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
+
data/docs/Volume.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **compliant** | **Boolean** | compliant | [optional][default to false] |
8
8
  | **component_state** | **String** | component_state | [optional] |
9
+ | **fc_map_count** | **Integer** | fc_map_count | [optional][default to 0] |
9
10
  | **historical_service** | [**Service**](Service.md) | | [optional] |
10
11
  | **name** | **String** | name | [optional] |
11
12
  | **service** | [**Service**](Service.md) | | [optional] |
@@ -24,6 +25,7 @@ require 'autosde_openapi_client'
24
25
  instance = AutosdeOpenapiClient::Volume.new(
25
26
  compliant: null,
26
27
  component_state: null,
28
+ fc_map_count: null,
27
29
  historical_service: null,
28
30
  name: null,
29
31
  service: null,
data/docs/VolumeCreate.md CHANGED
@@ -7,6 +7,7 @@
7
7
  | **compliant** | **Boolean** | compliant | [optional][default to false] |
8
8
  | **component_state** | **String** | component_state | [optional] |
9
9
  | **count** | **Integer** | count | [optional][default to 1] |
10
+ | **fc_map_count** | **Integer** | fc_map_count | [optional][default to 0] |
10
11
  | **name** | **String** | name | [optional] |
11
12
  | **resources** | **Array&lt;String&gt;** | resources | [optional] |
12
13
  | **service** | [**Service**](Service.md) | | [optional] |
@@ -26,6 +27,7 @@ instance = AutosdeOpenapiClient::VolumeCreate.new(
26
27
  compliant: null,
27
28
  component_state: null,
28
29
  count: null,
30
+ fc_map_count: null,
29
31
  name: null,
30
32
  resources: null,
31
33
  service: null,
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **compliant** | **Boolean** | compliant | [optional][default to false] |
8
8
  | **component_state** | **String** | component_state | [optional] |
9
+ | **fc_map_count** | **Integer** | fc_map_count | [optional][default to 0] |
9
10
  | **historical_service** | [**Service**](Service.md) | | [optional] |
10
11
  | **name** | **String** | name | [optional] |
11
12
  | **service** | **String** | !!uuid of service | [optional] |
@@ -24,6 +25,7 @@ require 'autosde_openapi_client'
24
25
  instance = AutosdeOpenapiClient::VolumeResponse.new(
25
26
  compliant: null,
26
27
  component_state: null,
28
+ fc_map_count: null,
27
29
  historical_service: null,
28
30
  name: null,
29
31
  service: null,
@@ -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<ServiceResourceAttachment>]
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<ServiceResourceAttachment>, Integer, Hash)>] Array<ServiceResourceAttachment> data, response status code and response headers
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<ServiceResourceAttachment>'
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 [ServiceResourceAttachment]
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<(ServiceResourceAttachment, Integer, Hash)>] ServiceResourceAttachment data, response status code and response headers
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] || 'ServiceResourceAttachment'
171
+ return_type = opts[:debug_return_type] || 'ServiceResourceAttachmentResponse'
172
172
 
173
173
  # auth_names
174
174
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -104,7 +104,7 @@ module AutosdeOpenapiClient
104
104
  # Check to see if the all the properties in the model are valid
105
105
  # @return true if the model is valid
106
106
  def valid?
107
- resource_type_validator = EnumAttributeValidator.new('String', ["system_resources", "volumes", "hosts", "events"])
107
+ resource_type_validator = EnumAttributeValidator.new('String', ["system_resources", "volumes_and_snapshots", "hosts", "events"])
108
108
  return false unless resource_type_validator.valid?(@resource_type)
109
109
  true
110
110
  end
@@ -112,7 +112,7 @@ module AutosdeOpenapiClient
112
112
  # Custom attribute writer method checking allowed values (enum).
113
113
  # @param [Object] resource_type Object to be assigned
114
114
  def resource_type=(resource_type)
115
- validator = EnumAttributeValidator.new('String', ["system_resources", "volumes", "hosts", "events"])
115
+ validator = EnumAttributeValidator.new('String', ["system_resources", "volumes_and_snapshots", "hosts", "events"])
116
116
  unless validator.valid?(resource_type)
117
117
  fail ArgumentError, "invalid value for \"resource_type\", must be one of #{validator.allowable_values}."
118
118
  end
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module AutosdeOpenapiClient
17
- # ServiceResourceAttachment
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
@@ -22,6 +22,9 @@ module AutosdeOpenapiClient
22
22
  # component_state
23
23
  attr_accessor :component_state
24
24
 
25
+ # fc_map_count
26
+ attr_accessor :fc_map_count
27
+
25
28
  attr_accessor :historical_service
26
29
 
27
30
  # name
@@ -73,6 +76,7 @@ module AutosdeOpenapiClient
73
76
  {
74
77
  :'compliant' => :'compliant',
75
78
  :'component_state' => :'component_state',
79
+ :'fc_map_count' => :'fc_map_count',
76
80
  :'historical_service' => :'historical_service',
77
81
  :'name' => :'name',
78
82
  :'service' => :'service',
@@ -95,6 +99,7 @@ module AutosdeOpenapiClient
95
99
  {
96
100
  :'compliant' => :'Boolean',
97
101
  :'component_state' => :'String',
102
+ :'fc_map_count' => :'Integer',
98
103
  :'historical_service' => :'Service',
99
104
  :'name' => :'String',
100
105
  :'service' => :'Service',
@@ -138,6 +143,12 @@ module AutosdeOpenapiClient
138
143
  self.component_state = attributes[:'component_state']
139
144
  end
140
145
 
146
+ if attributes.key?(:'fc_map_count')
147
+ self.fc_map_count = attributes[:'fc_map_count']
148
+ else
149
+ self.fc_map_count = 0
150
+ end
151
+
141
152
  if attributes.key?(:'historical_service')
142
153
  self.historical_service = attributes[:'historical_service']
143
154
  end
@@ -212,6 +223,7 @@ module AutosdeOpenapiClient
212
223
  self.class == o.class &&
213
224
  compliant == o.compliant &&
214
225
  component_state == o.component_state &&
226
+ fc_map_count == o.fc_map_count &&
215
227
  historical_service == o.historical_service &&
216
228
  name == o.name &&
217
229
  service == o.service &&
@@ -232,7 +244,7 @@ module AutosdeOpenapiClient
232
244
  # Calculates hash code according to all attributes.
233
245
  # @return [Integer] Hash code
234
246
  def hash
235
- [compliant, component_state, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
247
+ [compliant, component_state, fc_map_count, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
236
248
  end
237
249
 
238
250
  # Builds the object from hash
@@ -25,6 +25,9 @@ module AutosdeOpenapiClient
25
25
  # count
26
26
  attr_accessor :count
27
27
 
28
+ # fc_map_count
29
+ attr_accessor :fc_map_count
30
+
28
31
  # name
29
32
  attr_accessor :name
30
33
 
@@ -79,6 +82,7 @@ module AutosdeOpenapiClient
79
82
  :'compliant' => :'compliant',
80
83
  :'component_state' => :'component_state',
81
84
  :'count' => :'count',
85
+ :'fc_map_count' => :'fc_map_count',
82
86
  :'name' => :'name',
83
87
  :'resources' => :'resources',
84
88
  :'service' => :'service',
@@ -102,6 +106,7 @@ module AutosdeOpenapiClient
102
106
  :'compliant' => :'Boolean',
103
107
  :'component_state' => :'String',
104
108
  :'count' => :'Integer',
109
+ :'fc_map_count' => :'Integer',
105
110
  :'name' => :'String',
106
111
  :'resources' => :'Array<String>',
107
112
  :'service' => :'Service',
@@ -151,6 +156,12 @@ module AutosdeOpenapiClient
151
156
  self.count = 1
152
157
  end
153
158
 
159
+ if attributes.key?(:'fc_map_count')
160
+ self.fc_map_count = attributes[:'fc_map_count']
161
+ else
162
+ self.fc_map_count = 0
163
+ end
164
+
154
165
  if attributes.key?(:'name')
155
166
  self.name = attributes[:'name']
156
167
  end
@@ -230,6 +241,7 @@ module AutosdeOpenapiClient
230
241
  compliant == o.compliant &&
231
242
  component_state == o.component_state &&
232
243
  count == o.count &&
244
+ fc_map_count == o.fc_map_count &&
233
245
  name == o.name &&
234
246
  resources == o.resources &&
235
247
  service == o.service &&
@@ -250,7 +262,7 @@ module AutosdeOpenapiClient
250
262
  # Calculates hash code according to all attributes.
251
263
  # @return [Integer] Hash code
252
264
  def hash
253
- [compliant, component_state, count, name, resources, service, service_name, size, status, unmapped_since, uuid, volume_name].hash
265
+ [compliant, component_state, count, fc_map_count, name, resources, service, service_name, size, status, unmapped_since, uuid, volume_name].hash
254
266
  end
255
267
 
256
268
  # Builds the object from hash
@@ -22,6 +22,9 @@ module AutosdeOpenapiClient
22
22
  # component_state
23
23
  attr_accessor :component_state
24
24
 
25
+ # fc_map_count
26
+ attr_accessor :fc_map_count
27
+
25
28
  attr_accessor :historical_service
26
29
 
27
30
  # name
@@ -75,6 +78,7 @@ module AutosdeOpenapiClient
75
78
  {
76
79
  :'compliant' => :'compliant',
77
80
  :'component_state' => :'component_state',
81
+ :'fc_map_count' => :'fc_map_count',
78
82
  :'historical_service' => :'historical_service',
79
83
  :'name' => :'name',
80
84
  :'service' => :'service',
@@ -97,6 +101,7 @@ module AutosdeOpenapiClient
97
101
  {
98
102
  :'compliant' => :'Boolean',
99
103
  :'component_state' => :'String',
104
+ :'fc_map_count' => :'Integer',
100
105
  :'historical_service' => :'Service',
101
106
  :'name' => :'String',
102
107
  :'service' => :'String',
@@ -140,6 +145,12 @@ module AutosdeOpenapiClient
140
145
  self.component_state = attributes[:'component_state']
141
146
  end
142
147
 
148
+ if attributes.key?(:'fc_map_count')
149
+ self.fc_map_count = attributes[:'fc_map_count']
150
+ else
151
+ self.fc_map_count = 0
152
+ end
153
+
143
154
  if attributes.key?(:'historical_service')
144
155
  self.historical_service = attributes[:'historical_service']
145
156
  end
@@ -214,6 +225,7 @@ module AutosdeOpenapiClient
214
225
  self.class == o.class &&
215
226
  compliant == o.compliant &&
216
227
  component_state == o.component_state &&
228
+ fc_map_count == o.fc_map_count &&
217
229
  historical_service == o.historical_service &&
218
230
  name == o.name &&
219
231
  service == o.service &&
@@ -234,7 +246,7 @@ module AutosdeOpenapiClient
234
246
  # Calculates hash code according to all attributes.
235
247
  # @return [Integer] Hash code
236
248
  def hash
237
- [compliant, component_state, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
249
+ [compliant, component_state, fc_map_count, historical_service, name, service, size, status, storage_resource, unmapped_since, uuid, volume_name].hash
238
250
  end
239
251
 
240
252
  # 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: 2.2.3
6
+ The version of the OpenAPI document: 2.2.5
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.3'
14
+ VERSION = '2.2.5'
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<ServiceResourceAttachment>]
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 [ServiceResourceAttachment]
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
@@ -28,7 +28,7 @@ describe AutosdeOpenapiClient::RefreshSystem do
28
28
  describe 'test attribute "resource_type"' do
29
29
  it 'should work' do
30
30
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_resources", "volumes", "hosts", "events"])
31
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["system_resources", "volumes_and_snapshots", "hosts", "events"])
32
32
  # validator.allowable_values.each do |value|
33
33
  # expect { instance.resource_type = value }.not_to raise_error
34
34
  # end
@@ -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
@@ -47,6 +47,12 @@ describe AutosdeOpenapiClient::VolumeCreate do
47
47
  end
48
48
  end
49
49
 
50
+ describe 'test attribute "fc_map_count"' 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
+
50
56
  describe 'test attribute "name"' do
51
57
  it 'should work' do
52
58
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -41,6 +41,12 @@ describe AutosdeOpenapiClient::VolumeResponse do
41
41
  end
42
42
  end
43
43
 
44
+ describe 'test attribute "fc_map_count"' 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
+
44
50
  describe 'test attribute "historical_service"' do
45
51
  it 'should work' do
46
52
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -41,6 +41,12 @@ describe AutosdeOpenapiClient::Volume do
41
41
  end
42
42
  end
43
43
 
44
+ describe 'test attribute "fc_map_count"' 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
+
44
50
  describe 'test attribute "historical_service"' do
45
51
  it 'should work' do
46
52
  # 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: 2.2.3
4
+ version: 2.2.5
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-01-31 00:00:00.000000000 Z
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -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
@@ -452,6 +455,7 @@ test_files:
452
455
  - spec/models/async_response_spec.rb
453
456
  - spec/models/native_capability_spec.rb
454
457
  - spec/models/volume_create_spec.rb
458
+ - spec/models/service_resource_attachment_response_spec.rb
455
459
  - spec/models/snapshot_spec.rb
456
460
  - spec/models/account_post_response_spec.rb
457
461
  - spec/models/system_type_response_spec.rb