autosde_openapi_client 2.2.5 → 2.2.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b0e54f75ef6df26839e1e542cf363f85659f5ed795d85c772880941c5bab0ca2
4
- data.tar.gz: 844758e813f0e839fc9802a25bf11d61f88d0b07aecc6f3343ec6d3cdfac0be1
3
+ metadata.gz: d1f7dc8bbc0b1fb989a7d61639753a4a9049cc1d1c708d9384febcc6e1d7dba6
4
+ data.tar.gz: d919434746603eef0e930bbdaf7e97b7899fa0b05bc9a38ba0e8df0e213baef3
5
5
  SHA512:
6
- metadata.gz: 96c59bcc8b5fe1e44bac26b88c87af0ed7825c5b553b9945bccd9c1f487a7e6a921e2eb5a16d9b48e8192d261aa691d935ec7a6f9b7230d15889fc0d2a98c358
7
- data.tar.gz: cdcc67b6b4605dcf482010711d74d5b2c4a5ad39dffab84aa8471f99a60bd3b02be16ccd1479331fa0eb616589eae3a87027c35c8279d34d6d6ff1028c4e1c0c
6
+ metadata.gz: 1900acdeeff8292a4da6113d493d260fcdc7602a66e2e01bbfd61c5bb572606e2c0c4f4f2122dbaf041d726d33cc98674ac3f98bf8c81a6ddb08ce7709192a08
7
+ data.tar.gz: 87494a2c9d63a231925b83978e7e1837620a64b778aedecb58c1fef356e74d2156d7c6520ee498beda600151d90f0611319d93855d13859e791e524f859cf376
data/README.md CHANGED
@@ -200,6 +200,7 @@ Class | Method | HTTP request | Description
200
200
  *AutosdeOpenapiClient::VolumeApi* | [**volumes_pk_get**](docs/VolumeApi.md#volumes_pk_get) | **GET** /volumes/{pk} |
201
201
  *AutosdeOpenapiClient::VolumeApi* | [**volumes_pk_put**](docs/VolumeApi.md#volumes_pk_put) | **PUT** /volumes/{pk} |
202
202
  *AutosdeOpenapiClient::VolumeApi* | [**volumes_post**](docs/VolumeApi.md#volumes_post) | **POST** /volumes |
203
+ *AutosdeOpenapiClient::VolumeCloneApi* | [**volume_clone_post**](docs/VolumeCloneApi.md#volume_clone_post) | **POST** /volume-clone |
203
204
 
204
205
 
205
206
  ## Documentation for Models
@@ -271,6 +272,7 @@ Class | Method | HTTP request | Description
271
272
  - [AutosdeOpenapiClient::UserUpdate](docs/UserUpdate.md)
272
273
  - [AutosdeOpenapiClient::ValidateSystem](docs/ValidateSystem.md)
273
274
  - [AutosdeOpenapiClient::Volume](docs/Volume.md)
275
+ - [AutosdeOpenapiClient::VolumeClone](docs/VolumeClone.md)
274
276
  - [AutosdeOpenapiClient::VolumeCreate](docs/VolumeCreate.md)
275
277
  - [AutosdeOpenapiClient::VolumeResponse](docs/VolumeResponse.md)
276
278
  - [AutosdeOpenapiClient::VolumeUpdate](docs/VolumeUpdate.md)
@@ -0,0 +1,20 @@
1
+ # AutosdeOpenapiClient::VolumeClone
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | name | [optional] |
8
+ | **volume** | [**Volume**](Volume.md) | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'autosde_openapi_client'
14
+
15
+ instance = AutosdeOpenapiClient::VolumeClone.new(
16
+ name: null,
17
+ volume: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,75 @@
1
+ # AutosdeOpenapiClient::VolumeCloneApi
2
+
3
+ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**volume_clone_post**](VolumeCloneApi.md#volume_clone_post) | **POST** /volume-clone | |
8
+
9
+
10
+ ## volume_clone_post
11
+
12
+ > <VolumeClone> volume_clone_post(volume_clone)
13
+
14
+
15
+
16
+ ### Examples
17
+
18
+ ```ruby
19
+ require 'time'
20
+ require 'autosde_openapi_client'
21
+ # setup authorization
22
+ AutosdeOpenapiClient.configure do |config|
23
+ # Configure Bearer authorization: bearerAuth
24
+ config.access_token = 'YOUR_BEARER_TOKEN'
25
+ end
26
+
27
+ api_instance = AutosdeOpenapiClient::VolumeCloneApi.new
28
+ volume_clone = AutosdeOpenapiClient::VolumeClone.new # VolumeClone |
29
+
30
+ begin
31
+
32
+ result = api_instance.volume_clone_post(volume_clone)
33
+ p result
34
+ rescue AutosdeOpenapiClient::ApiError => e
35
+ puts "Error when calling VolumeCloneApi->volume_clone_post: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the volume_clone_post_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<VolumeClone>, Integer, Hash)> volume_clone_post_with_http_info(volume_clone)
44
+
45
+ ```ruby
46
+ begin
47
+
48
+ data, status_code, headers = api_instance.volume_clone_post_with_http_info(volume_clone)
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <VolumeClone>
52
+ rescue AutosdeOpenapiClient::ApiError => e
53
+ puts "Error when calling VolumeCloneApi->volume_clone_post_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ | Name | Type | Description | Notes |
60
+ | ---- | ---- | ----------- | ----- |
61
+ | **volume_clone** | [**VolumeClone**](VolumeClone.md) | | |
62
+
63
+ ### Return type
64
+
65
+ [**VolumeClone**](VolumeClone.md)
66
+
67
+ ### Authorization
68
+
69
+ [bearerAuth](../README.md#bearerAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: application/json
74
+ - **Accept**: */*
75
+
@@ -0,0 +1,83 @@
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 'cgi'
14
+
15
+ module AutosdeOpenapiClient
16
+ class VolumeCloneApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param volume_clone [VolumeClone]
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [VolumeClone]
25
+ def volume_clone_post(volume_clone, opts = {})
26
+ data, _status_code, _headers = volume_clone_post_with_http_info(volume_clone, opts)
27
+ data
28
+ end
29
+
30
+ # @param volume_clone [VolumeClone]
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(VolumeClone, Integer, Hash)>] VolumeClone data, response status code and response headers
33
+ def volume_clone_post_with_http_info(volume_clone, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: VolumeCloneApi.volume_clone_post ...'
36
+ end
37
+ # verify the required parameter 'volume_clone' is set
38
+ if @api_client.config.client_side_validation && volume_clone.nil?
39
+ fail ArgumentError, "Missing the required parameter 'volume_clone' when calling VolumeCloneApi.volume_clone_post"
40
+ end
41
+ # resource path
42
+ local_var_path = '/volume-clone'
43
+
44
+ # query parameters
45
+ query_params = opts[:query_params] || {}
46
+
47
+ # header parameters
48
+ header_params = opts[:header_params] || {}
49
+ # HTTP header 'Accept' (if needed)
50
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
51
+ # HTTP header 'Content-Type'
52
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
53
+
54
+ # form parameters
55
+ form_params = opts[:form_params] || {}
56
+
57
+ # http body (model)
58
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(volume_clone)
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'VolumeClone'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"VolumeCloneApi.volume_clone_post",
68
+ :header_params => header_params,
69
+ :query_params => query_params,
70
+ :form_params => form_params,
71
+ :body => post_body,
72
+ :auth_names => auth_names,
73
+ :return_type => return_type
74
+ )
75
+
76
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
77
+ if @api_client.config.debugging
78
+ @api_client.config.logger.debug "API called: VolumeCloneApi#volume_clone_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ end
83
+ end
@@ -200,7 +200,7 @@ module AutosdeOpenapiClient
200
200
  # Check to see if the all the properties in the model are valid
201
201
  # @return true if the model is valid
202
202
  def valid?
203
- component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
203
+ component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
204
204
  return false unless component_state_validator.valid?(@component_state)
205
205
  return false if !@component_state.nil? && @component_state.to_s.length > 32
206
206
  true
@@ -209,7 +209,7 @@ module AutosdeOpenapiClient
209
209
  # Custom attribute writer method checking allowed values (enum).
210
210
  # @param [Object] component_state Object to be assigned
211
211
  def component_state=(component_state)
212
- validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
212
+ validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
213
213
  unless validator.valid?(component_state)
214
214
  fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
215
215
  end
@@ -0,0 +1,229 @@
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
+ # this is a clone of a given volume
18
+ class VolumeClone
19
+ # name
20
+ attr_accessor :name
21
+
22
+ attr_accessor :volume
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'name' => :'name',
28
+ :'volume' => :'volume'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'name' => :'String',
41
+ :'volume' => :'Volume'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::VolumeClone` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::VolumeClone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'name')
67
+ self.name = attributes[:'name']
68
+ end
69
+
70
+ if attributes.key?(:'volume')
71
+ self.volume = attributes[:'volume']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ name == o.name &&
94
+ volume == o.volume
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [name, volume].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ self.class.openapi_types.each_pair do |key, type|
122
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
123
+ self.send("#{key}=", nil)
124
+ elsif type =~ /\AArray<(.*)>/i
125
+ # check to ensure the input is an array given that the attribute
126
+ # is documented as an array but the input is not
127
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
128
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
129
+ end
130
+ elsif !attributes[self.class.attribute_map[key]].nil?
131
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ end
133
+ end
134
+
135
+ self
136
+ end
137
+
138
+ # Deserializes the data based on type
139
+ # @param string type Data type
140
+ # @param string value Value to be deserialized
141
+ # @return [Object] Deserialized data
142
+ def _deserialize(type, value)
143
+ case type.to_sym
144
+ when :Time
145
+ Time.parse(value)
146
+ when :Date
147
+ Date.parse(value)
148
+ when :String
149
+ value.to_s
150
+ when :Integer
151
+ value.to_i
152
+ when :Float
153
+ value.to_f
154
+ when :Boolean
155
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
156
+ true
157
+ else
158
+ false
159
+ end
160
+ when :Object
161
+ # generic object (usually a Hash), return directly
162
+ value
163
+ when /\AArray<(?<inner_type>.+)>\z/
164
+ inner_type = Regexp.last_match[:inner_type]
165
+ value.map { |v| _deserialize(inner_type, v) }
166
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
167
+ k_type = Regexp.last_match[:k_type]
168
+ v_type = Regexp.last_match[:v_type]
169
+ {}.tap do |hash|
170
+ value.each do |k, v|
171
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
172
+ end
173
+ end
174
+ else # model
175
+ # models (e.g. Pet) or oneOf
176
+ klass = AutosdeOpenapiClient.const_get(type)
177
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
178
+ end
179
+ end
180
+
181
+ # Returns the string representation of the object
182
+ # @return [String] String presentation of the object
183
+ def to_s
184
+ to_hash.to_s
185
+ end
186
+
187
+ # to_body is an alias to to_hash (backward compatibility)
188
+ # @return [Hash] Returns the object in the form of hash
189
+ def to_body
190
+ to_hash
191
+ end
192
+
193
+ # Returns the object in the form of hash
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_hash
196
+ hash = {}
197
+ self.class.attribute_map.each_pair do |attr, param|
198
+ value = self.send(attr)
199
+ if value.nil?
200
+ is_nullable = self.class.openapi_nullable.include?(attr)
201
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
202
+ end
203
+
204
+ hash[param] = _to_hash(value)
205
+ end
206
+ hash
207
+ end
208
+
209
+ # Outputs non-array value in the form of hash
210
+ # For object, use to_hash. Otherwise, just return the value
211
+ # @param [Object] value Any valid value
212
+ # @return [Hash] Returns the value in the form of hash
213
+ def _to_hash(value)
214
+ if value.is_a?(Array)
215
+ value.compact.map { |v| _to_hash(v) }
216
+ elsif value.is_a?(Hash)
217
+ {}.tap do |hash|
218
+ value.each { |k, v| hash[k] = _to_hash(v) }
219
+ end
220
+ elsif value.respond_to? :to_hash
221
+ value.to_hash
222
+ else
223
+ value
224
+ end
225
+ end
226
+
227
+ end
228
+
229
+ end
@@ -217,7 +217,7 @@ module AutosdeOpenapiClient
217
217
  # Check to see if the all the properties in the model are valid
218
218
  # @return true if the model is valid
219
219
  def valid?
220
- component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
220
+ component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
221
221
  return false unless component_state_validator.valid?(@component_state)
222
222
  return false if !@component_state.nil? && @component_state.to_s.length > 32
223
223
  true
@@ -226,7 +226,7 @@ module AutosdeOpenapiClient
226
226
  # Custom attribute writer method checking allowed values (enum).
227
227
  # @param [Object] component_state Object to be assigned
228
228
  def component_state=(component_state)
229
- validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
229
+ validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
230
230
  unless validator.valid?(component_state)
231
231
  fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
232
232
  end
@@ -202,7 +202,7 @@ module AutosdeOpenapiClient
202
202
  # Check to see if the all the properties in the model are valid
203
203
  # @return true if the model is valid
204
204
  def valid?
205
- component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
205
+ component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
206
206
  return false unless component_state_validator.valid?(@component_state)
207
207
  return false if !@component_state.nil? && @component_state.to_s.length > 32
208
208
  true
@@ -211,7 +211,7 @@ module AutosdeOpenapiClient
211
211
  # Custom attribute writer method checking allowed values (enum).
212
212
  # @param [Object] component_state Object to be assigned
213
213
  def component_state=(component_state)
214
- validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
214
+ validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
215
215
  unless validator.valid?(component_state)
216
216
  fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
217
217
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 2.2.5
6
+ The version of the OpenAPI document: 2.2.6
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.5'
14
+ VERSION = '2.2.6'
15
15
  end
@@ -84,6 +84,7 @@ require 'autosde_openapi_client/models/user_create'
84
84
  require 'autosde_openapi_client/models/user_update'
85
85
  require 'autosde_openapi_client/models/validate_system'
86
86
  require 'autosde_openapi_client/models/volume'
87
+ require 'autosde_openapi_client/models/volume_clone'
87
88
  require 'autosde_openapi_client/models/volume_create'
88
89
  require 'autosde_openapi_client/models/volume_response'
89
90
  require 'autosde_openapi_client/models/volume_update'
@@ -121,6 +122,7 @@ require 'autosde_openapi_client/api/system_type_api'
121
122
  require 'autosde_openapi_client/api/user_api'
122
123
  require 'autosde_openapi_client/api/validate_system_api'
123
124
  require 'autosde_openapi_client/api/volume_api'
125
+ require 'autosde_openapi_client/api/volume_clone_api'
124
126
 
125
127
  module AutosdeOpenapiClient
126
128
  class << self
@@ -0,0 +1,45 @@
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
+
16
+ # Unit tests for AutosdeOpenapiClient::VolumeCloneApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'VolumeCloneApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = AutosdeOpenapiClient::VolumeCloneApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of VolumeCloneApi' do
30
+ it 'should create an instance of VolumeCloneApi' do
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::VolumeCloneApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for volume_clone_post
36
+ # @param volume_clone
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [VolumeClone]
39
+ describe 'volume_clone_post test' do
40
+ it 'should work' do
41
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
42
+ end
43
+ end
44
+
45
+ end
@@ -0,0 +1,40 @@
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::VolumeClone
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::VolumeClone do
21
+ let(:instance) { AutosdeOpenapiClient::VolumeClone.new }
22
+
23
+ describe 'test an instance of VolumeClone' do
24
+ it 'should create an instance of VolumeClone' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::VolumeClone)
26
+ end
27
+ end
28
+ describe 'test attribute "name"' 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 "volume"' 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
+ end
@@ -34,7 +34,7 @@ describe AutosdeOpenapiClient::VolumeCreate do
34
34
  describe 'test attribute "component_state"' do
35
35
  it 'should work' do
36
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
37
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
38
38
  # validator.allowable_values.each do |value|
39
39
  # expect { instance.component_state = value }.not_to raise_error
40
40
  # end
@@ -34,7 +34,7 @@ describe AutosdeOpenapiClient::VolumeResponse do
34
34
  describe 'test attribute "component_state"' do
35
35
  it 'should work' do
36
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
37
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
38
38
  # validator.allowable_values.each do |value|
39
39
  # expect { instance.component_state = value }.not_to raise_error
40
40
  # end
@@ -34,7 +34,7 @@ describe AutosdeOpenapiClient::Volume do
34
34
  describe 'test attribute "component_state"' do
35
35
  it 'should work' do
36
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
37
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION", "CLONING"])
38
38
  # validator.allowable_values.each do |value|
39
39
  # expect { instance.component_state = value }.not_to raise_error
40
40
  # end
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.5
4
+ version: 2.2.6
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-02-06 00:00:00.000000000 Z
11
+ date: 2023-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -161,6 +161,8 @@ files:
161
161
  - docs/ValidateSystemApi.md
162
162
  - docs/Volume.md
163
163
  - docs/VolumeApi.md
164
+ - docs/VolumeClone.md
165
+ - docs/VolumeCloneApi.md
164
166
  - docs/VolumeCreate.md
165
167
  - docs/VolumeResponse.md
166
168
  - docs/VolumeUpdate.md
@@ -198,6 +200,7 @@ files:
198
200
  - lib/autosde_openapi_client/api/user_api.rb
199
201
  - lib/autosde_openapi_client/api/validate_system_api.rb
200
202
  - lib/autosde_openapi_client/api/volume_api.rb
203
+ - lib/autosde_openapi_client/api/volume_clone_api.rb
201
204
  - lib/autosde_openapi_client/api_client.rb
202
205
  - lib/autosde_openapi_client/api_error.rb
203
206
  - lib/autosde_openapi_client/configuration.rb
@@ -268,6 +271,7 @@ files:
268
271
  - lib/autosde_openapi_client/models/user_update.rb
269
272
  - lib/autosde_openapi_client/models/validate_system.rb
270
273
  - lib/autosde_openapi_client/models/volume.rb
274
+ - lib/autosde_openapi_client/models/volume_clone.rb
271
275
  - lib/autosde_openapi_client/models/volume_create.rb
272
276
  - lib/autosde_openapi_client/models/volume_response.rb
273
277
  - lib/autosde_openapi_client/models/volume_update.rb
@@ -304,6 +308,7 @@ files:
304
308
  - spec/api/user_api_spec.rb
305
309
  - spec/api/validate_system_api_spec.rb
306
310
  - spec/api/volume_api_spec.rb
311
+ - spec/api/volume_clone_api_spec.rb
307
312
  - spec/api_client_spec.rb
308
313
  - spec/configuration_spec.rb
309
314
  - spec/models/abstract_capability_response_spec.rb
@@ -372,6 +377,7 @@ files:
372
377
  - spec/models/user_spec.rb
373
378
  - spec/models/user_update_spec.rb
374
379
  - spec/models/validate_system_spec.rb
380
+ - spec/models/volume_clone_spec.rb
375
381
  - spec/models/volume_create_spec.rb
376
382
  - spec/models/volume_response_spec.rb
377
383
  - spec/models/volume_spec.rb
@@ -401,108 +407,110 @@ signing_key:
401
407
  specification_version: 4
402
408
  summary: Site Manager API Ruby Gem
403
409
  test_files:
410
+ - spec/api/authentication_api_spec.rb
404
411
  - spec/api/storage_resource_api_spec.rb
405
- - spec/api/host_cluster_membership_api_spec.rb
406
- - spec/api/native_capability_api_spec.rb
407
- - spec/api/host_volume_connection_api_spec.rb
408
- - spec/api/refresh_system_api_spec.rb
412
+ - spec/api/abstract_capability_api_spec.rb
413
+ - spec/api/snapshot_api_spec.rb
409
414
  - spec/api/service_abstract_capability_value_api_spec.rb
410
- - spec/api/job_api_spec.rb
411
- - spec/api/host_cluster_api_spec.rb
415
+ - spec/api/storage_hosts_mapping_api_spec.rb
416
+ - spec/api/native_capability_api_spec.rb
417
+ - spec/api/host_cluster_volume_mapping_api_spec.rb
412
418
  - spec/api/profile_api_spec.rb
413
- - spec/api/snapshot_api_spec.rb
414
- - spec/api/storage_host_api_spec.rb
415
- - spec/api/event_api_spec.rb
419
+ - spec/api/capability_translation_api_spec.rb
420
+ - spec/api/service_api_spec.rb
421
+ - spec/api/auto_sde_role_api_spec.rb
422
+ - spec/api/volume_clone_api_spec.rb
423
+ - spec/api/host_cluster_membership_api_spec.rb
424
+ - spec/api/service_resource_attachment_api_spec.rb
425
+ - spec/api/user_api_spec.rb
426
+ - spec/api/job_api_spec.rb
427
+ - spec/api/volume_api_spec.rb
416
428
  - spec/api/auto_sde_project_api_spec.rb
417
- - spec/api/account_api_spec.rb
418
- - spec/api/address_api_spec.rb
419
429
  - spec/api/validate_system_api_spec.rb
420
- - spec/api/authentication_api_spec.rb
421
- - spec/api/host_api_spec.rb
422
- - spec/api/volume_api_spec.rb
423
- - spec/api/storage_system_api_spec.rb
424
- - spec/api/user_api_spec.rb
430
+ - spec/api/provisioning_strategy_api_spec.rb
425
431
  - spec/api/system_type_api_spec.rb
426
- - spec/api/capability_translation_api_spec.rb
432
+ - spec/api/storage_host_api_spec.rb
427
433
  - spec/api/storage_host_wwpn_candidates_api_spec.rb
428
- - spec/api/host_cluster_volume_mapping_api_spec.rb
429
- - spec/api/auto_sde_role_api_spec.rb
430
- - spec/api/abstract_capability_api_spec.rb
434
+ - spec/api/refresh_system_api_spec.rb
435
+ - spec/api/host_api_spec.rb
436
+ - spec/api/address_api_spec.rb
437
+ - spec/api/account_api_spec.rb
438
+ - spec/api/event_api_spec.rb
431
439
  - spec/api/celery_config_api_spec.rb
432
- - spec/api/provisioning_strategy_api_spec.rb
433
- - spec/api/storage_hosts_mapping_api_spec.rb
434
- - spec/api/service_api_spec.rb
435
- - spec/api/service_resource_attachment_api_spec.rb
440
+ - spec/api/storage_system_api_spec.rb
441
+ - spec/api/host_cluster_api_spec.rb
442
+ - spec/api/host_volume_connection_api_spec.rb
436
443
  - spec/api_client_spec.rb
437
444
  - spec/configuration_spec.rb
438
- - spec/models/service_spec.rb
439
- - spec/models/storage_hosts_mapping_response_spec.rb
440
- - spec/models/account_spec.rb
441
- - spec/models/service_create_spec.rb
442
- - spec/models/host_volume_connection_spec.rb
443
- - spec/models/snapshot_create_spec.rb
444
- - spec/models/auto_sde_role_spec.rb
445
- - spec/models/storage_host_create_spec.rb
446
- - spec/models/host_cluster_volume_mapping_create_spec.rb
447
- - spec/models/system_type_create_spec.rb
448
- - spec/models/storage_hosts_mapping_create_spec.rb
449
- - spec/models/auth_response_spec.rb
450
- - spec/models/capability_translation_spec.rb
451
- - spec/models/service_abstract_capability_value_spec.rb
452
- - spec/models/volume_response_spec.rb
453
- - spec/models/event_response_spec.rb
454
- - spec/models/profile_spec.rb
455
- - spec/models/async_response_spec.rb
456
- - spec/models/native_capability_spec.rb
457
- - spec/models/volume_create_spec.rb
458
- - spec/models/service_resource_attachment_response_spec.rb
459
- - spec/models/snapshot_spec.rb
460
- - spec/models/account_post_response_spec.rb
461
- - spec/models/system_type_response_spec.rb
462
- - spec/models/host_cluster_spec.rb
463
- - spec/models/refresh_system_spec.rb
464
- - spec/models/storage_hosts_mapping_spec.rb
465
- - spec/models/storage_system_spec.rb
466
- - spec/models/celery_config_spec.rb
467
- - spec/models/service_response_spec.rb
468
- - spec/models/event_spec.rb
469
445
  - spec/models/abstract_capability_response_spec.rb
470
- - spec/models/authentication_spec.rb
471
- - spec/models/account_post_request_spec.rb
472
- - spec/models/storage_system_response_spec.rb
473
- - spec/models/address_create_spec.rb
474
- - spec/models/storage_host_update_spec.rb
475
- - spec/models/user_spec.rb
476
- - spec/models/auto_sde_project_spec.rb
446
+ - spec/models/system_type_response_spec.rb
447
+ - spec/models/native_capability_spec.rb
448
+ - spec/models/storage_system_update_spec.rb
477
449
  - spec/models/storage_resource_spec.rb
450
+ - spec/models/async_response_spec.rb
451
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
478
452
  - spec/models/storage_resource_update_spec.rb
479
- - spec/models/host_cluster_membership_spec.rb
480
- - spec/models/volume_spec.rb
453
+ - spec/models/service_resource_attachment_spec.rb
454
+ - spec/models/storage_hosts_mapping_spec.rb
455
+ - spec/models/host_cluster_spec.rb
456
+ - spec/models/service_abstract_capability_value_response_spec.rb
481
457
  - spec/models/storage_host_wwpn_candidates_spec.rb
482
- - spec/models/abstract_capability_spec.rb
458
+ - spec/models/account_post_response_spec.rb
483
459
  - spec/models/user_create_spec.rb
484
- - spec/models/validate_system_spec.rb
485
- - spec/models/storage_system_update_spec.rb
486
- - spec/models/storage_resource_create_spec.rb
487
- - spec/models/job_spec.rb
460
+ - spec/models/storage_host_spec.rb
461
+ - spec/models/storage_system_response_spec.rb
462
+ - spec/models/service_abstract_capability_value_spec.rb
463
+ - spec/models/volume_spec.rb
464
+ - spec/models/auto_sde_role_spec.rb
465
+ - spec/models/service_response_spec.rb
488
466
  - spec/models/host_cluster_volume_mapping_response_spec.rb
467
+ - spec/models/event_response_spec.rb
468
+ - spec/models/user_spec.rb
469
+ - spec/models/host_create_spec.rb
470
+ - spec/models/event_spec.rb
489
471
  - spec/models/storage_system_create_spec.rb
490
- - spec/models/host_cluster_volume_mapping_spec.rb
491
- - spec/models/host_volume_connection_create_spec.rb
492
- - spec/models/job_create_spec.rb
493
- - spec/models/service_abstract_capability_value_response_spec.rb
494
- - spec/models/service_resource_attachment_spec.rb
495
- - spec/models/host_cluster_create_spec.rb
496
- - spec/models/storage_host_response_spec.rb
497
- - spec/models/storage_host_spec.rb
498
- - spec/models/volume_update_spec.rb
499
- - spec/models/user_update_spec.rb
472
+ - spec/models/authentication_spec.rb
500
473
  - spec/models/provisioning_strategy_spec.rb
501
- - spec/models/host_cluster_response_spec.rb
474
+ - spec/models/job_spec.rb
475
+ - spec/models/storage_resource_response_spec.rb
476
+ - spec/models/host_volume_connection_create_spec.rb
477
+ - spec/models/auto_sde_project_spec.rb
502
478
  - spec/models/system_type_spec.rb
503
- - spec/models/host_create_spec.rb
479
+ - spec/models/storage_resource_create_spec.rb
480
+ - spec/models/auth_response_spec.rb
481
+ - spec/models/capability_translation_spec.rb
482
+ - spec/models/service_resource_attachment_response_spec.rb
483
+ - spec/models/abstract_capability_spec.rb
484
+ - spec/models/host_cluster_response_spec.rb
485
+ - spec/models/storage_host_response_spec.rb
486
+ - spec/models/storage_host_create_spec.rb
487
+ - spec/models/validate_system_spec.rb
488
+ - spec/models/storage_hosts_mapping_response_spec.rb
489
+ - spec/models/host_volume_connection_spec.rb
490
+ - spec/models/volume_clone_spec.rb
504
491
  - spec/models/host_spec.rb
505
- - spec/models/storage_resource_response_spec.rb
506
- - spec/models/capability_translation_create_spec.rb
492
+ - spec/models/storage_hosts_mapping_create_spec.rb
493
+ - spec/models/profile_spec.rb
494
+ - spec/models/service_spec.rb
495
+ - spec/models/user_update_spec.rb
496
+ - spec/models/volume_update_spec.rb
497
+ - spec/models/celery_config_spec.rb
498
+ - spec/models/volume_create_spec.rb
507
499
  - spec/models/address_spec.rb
500
+ - spec/models/system_type_create_spec.rb
501
+ - spec/models/host_cluster_volume_mapping_spec.rb
502
+ - spec/models/snapshot_spec.rb
503
+ - spec/models/storage_host_update_spec.rb
504
+ - spec/models/account_spec.rb
505
+ - spec/models/address_create_spec.rb
506
+ - spec/models/capability_translation_create_spec.rb
507
+ - spec/models/host_cluster_membership_spec.rb
508
+ - spec/models/job_create_spec.rb
509
+ - spec/models/volume_response_spec.rb
510
+ - spec/models/host_cluster_create_spec.rb
511
+ - spec/models/refresh_system_spec.rb
512
+ - spec/models/snapshot_create_spec.rb
513
+ - spec/models/service_create_spec.rb
514
+ - spec/models/storage_system_spec.rb
515
+ - spec/models/account_post_request_spec.rb
508
516
  - spec/spec_helper.rb