autosde_openapi_client 1.1.21 → 1.1.24

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: 71e4248fe17ad219a70e978ab617bee2c016ece02240dd60ced316e3f9042366
4
- data.tar.gz: 276fc3f01739bd4db44c0394f7e8fbc0e0707672d7beb7f904a176fbe59d8ae8
3
+ metadata.gz: db96910613537b2205a32202d6e1bd18cf54a9e6c528e32800321c82d00a03f2
4
+ data.tar.gz: 79699c8719e7bbedc32f8c5e4a2a6fc5d2a9e5c8e4a54b8a6e5d65de30a47ced
5
5
  SHA512:
6
- metadata.gz: 482d69165f8d1e7216b2e930f9466dbe8595b27e63b8d9b63cb953233552e35d95b360f1ebf33ac8b1856eb4e6c08df1967990f1a3c6e5ea6ff8670274114c32
7
- data.tar.gz: 454d953b769c1231575dfce8f0cc5d79c9c04378e48972bb96de37af3524dbfd9cd064ffb1bb16e91b01eddd35f7e085474bf68d253225b3c7c68634634f5d8b
6
+ metadata.gz: cd7e9eba4a4c78a7f7461e3caa353a4af8650b49b203c94bf1d584b521219a7acf4dd1ab6f5eeb8c932c3c17c52a99219751b06588ede19f7a86a1b7ceaccb7b
7
+ data.tar.gz: 4b5d74b1b6adb474698b44eaaaa897a040afec6ee96ee43c9d442777f2ea87760763a2fc6c89d9ac560a9abedff91debb1a61b03063814854403b7a75779035f
data/README.md CHANGED
@@ -143,6 +143,7 @@ Class | Method | HTTP request | Description
143
143
  *AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_pk_delete**](docs/ProvisioningStrategyApi.md#provisioning_strategy_pk_delete) | **DELETE** /provisioning-strategy/{pk} |
144
144
  *AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_pk_get**](docs/ProvisioningStrategyApi.md#provisioning_strategy_pk_get) | **GET** /provisioning-strategy/{pk} |
145
145
  *AutosdeOpenapiClient::ProvisioningStrategyApi* | [**provisioning_strategy_post**](docs/ProvisioningStrategyApi.md#provisioning_strategy_post) | **POST** /provisioning-strategy |
146
+ *AutosdeOpenapiClient::RefreshSystemApi* | [**refresh_system_post**](docs/RefreshSystemApi.md#refresh_system_post) | **POST** /refresh-system |
146
147
  *AutosdeOpenapiClient::ServiceApi* | [**services_get**](docs/ServiceApi.md#services_get) | **GET** /services |
147
148
  *AutosdeOpenapiClient::ServiceApi* | [**services_pk_delete**](docs/ServiceApi.md#services_pk_delete) | **DELETE** /services/{pk} |
148
149
  *AutosdeOpenapiClient::ServiceApi* | [**services_pk_get**](docs/ServiceApi.md#services_pk_get) | **GET** /services/{pk} |
@@ -228,6 +229,7 @@ Class | Method | HTTP request | Description
228
229
  - [AutosdeOpenapiClient::NativeCapability](docs/NativeCapability.md)
229
230
  - [AutosdeOpenapiClient::Profile](docs/Profile.md)
230
231
  - [AutosdeOpenapiClient::ProvisioningStrategy](docs/ProvisioningStrategy.md)
232
+ - [AutosdeOpenapiClient::RefreshSystem](docs/RefreshSystem.md)
231
233
  - [AutosdeOpenapiClient::Service](docs/Service.md)
232
234
  - [AutosdeOpenapiClient::ServiceAbstractCapabilityValue](docs/ServiceAbstractCapabilityValue.md)
233
235
  - [AutosdeOpenapiClient::ServiceCreate](docs/ServiceCreate.md)
data/docs/Event.md CHANGED
@@ -4,12 +4,14 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | created_at | [optional] |
7
8
  | **description** | **String** | description | [optional] |
8
9
  | **error_code** | **String** | error_code | [optional] |
9
10
  | **event_id** | **Integer** | event_id | [optional] |
10
11
  | **event_type** | **String** | event_type | [optional] |
11
12
  | **fixed** | **String** | fixed | [optional] |
12
13
  | **last_timestamp** | **Time** | last_timestamp | [optional] |
14
+ | **refresh_interval** | **Integer** | refresh_interval | [optional] |
13
15
  | **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
14
16
  | **uuid** | **String** | uuid | [optional] |
15
17
 
@@ -19,12 +21,14 @@
19
21
  require 'autosde_openapi_client'
20
22
 
21
23
  instance = AutosdeOpenapiClient::Event.new(
24
+ created_at: null,
22
25
  description: null,
23
26
  error_code: null,
24
27
  event_id: null,
25
28
  event_type: null,
26
29
  fixed: null,
27
30
  last_timestamp: null,
31
+ refresh_interval: null,
28
32
  storage_system: null,
29
33
  uuid: null
30
34
  )
@@ -0,0 +1,18 @@
1
+ # AutosdeOpenapiClient::RefreshSystem
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **uuid** | **String** | uuid | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'autosde_openapi_client'
13
+
14
+ instance = AutosdeOpenapiClient::RefreshSystem.new(
15
+ uuid: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,75 @@
1
+ # AutosdeOpenapiClient::RefreshSystemApi
2
+
3
+ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**refresh_system_post**](RefreshSystemApi.md#refresh_system_post) | **POST** /refresh-system | |
8
+
9
+
10
+ ## refresh_system_post
11
+
12
+ > <RefreshSystem> refresh_system_post(storage_system_create)
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::RefreshSystemApi.new
28
+ storage_system_create = AutosdeOpenapiClient::StorageSystemCreate.new # StorageSystemCreate |
29
+
30
+ begin
31
+
32
+ result = api_instance.refresh_system_post(storage_system_create)
33
+ p result
34
+ rescue AutosdeOpenapiClient::ApiError => e
35
+ puts "Error when calling RefreshSystemApi->refresh_system_post: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the refresh_system_post_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<RefreshSystem>, Integer, Hash)> refresh_system_post_with_http_info(storage_system_create)
44
+
45
+ ```ruby
46
+ begin
47
+
48
+ data, status_code, headers = api_instance.refresh_system_post_with_http_info(storage_system_create)
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <RefreshSystem>
52
+ rescue AutosdeOpenapiClient::ApiError => e
53
+ puts "Error when calling RefreshSystemApi->refresh_system_post_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ | Name | Type | Description | Notes |
60
+ | ---- | ---- | ----------- | ----- |
61
+ | **storage_system_create** | [**StorageSystemCreate**](StorageSystemCreate.md) | | |
62
+
63
+ ### Return type
64
+
65
+ [**RefreshSystem**](RefreshSystem.md)
66
+
67
+ ### Authorization
68
+
69
+ [bearerAuth](../README.md#bearerAuth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: application/json
74
+ - **Accept**: */*
75
+
@@ -9,7 +9,7 @@
9
9
  | **chap_name** | **String** | chap_name | [optional] |
10
10
  | **chap_secret** | **String** | chap_secret | [optional] |
11
11
  | **component_state** | **String** | component_state | [optional] |
12
- | **first_refresh_task** | **Boolean** | first_refresh_task | [optional][default to true] |
12
+ | **initial_refresh** | **Boolean** | initial_refresh | [optional][default to true] |
13
13
  | **iqn** | **String** | | [optional] |
14
14
  | **management_ip** | **String** | management_ip | [optional] |
15
15
  | **name** | **String** | name | [optional] |
@@ -35,7 +35,7 @@ instance = AutosdeOpenapiClient::StorageSystemCreate.new(
35
35
  chap_name: null,
36
36
  chap_secret: null,
37
37
  component_state: null,
38
- first_refresh_task: null,
38
+ initial_refresh: null,
39
39
  iqn: null,
40
40
  management_ip: null,
41
41
  name: null,
@@ -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 RefreshSystemApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param storage_system_create [StorageSystemCreate]
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [RefreshSystem]
25
+ def refresh_system_post(storage_system_create, opts = {})
26
+ data, _status_code, _headers = refresh_system_post_with_http_info(storage_system_create, opts)
27
+ data
28
+ end
29
+
30
+ # @param storage_system_create [StorageSystemCreate]
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(RefreshSystem, Integer, Hash)>] RefreshSystem data, response status code and response headers
33
+ def refresh_system_post_with_http_info(storage_system_create, opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: RefreshSystemApi.refresh_system_post ...'
36
+ end
37
+ # verify the required parameter 'storage_system_create' is set
38
+ if @api_client.config.client_side_validation && storage_system_create.nil?
39
+ fail ArgumentError, "Missing the required parameter 'storage_system_create' when calling RefreshSystemApi.refresh_system_post"
40
+ end
41
+ # resource path
42
+ local_var_path = '/refresh-system'
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(storage_system_create)
59
+
60
+ # return_type
61
+ return_type = opts[:debug_return_type] || 'RefreshSystem'
62
+
63
+ # auth_names
64
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
65
+
66
+ new_options = opts.merge(
67
+ :operation => :"RefreshSystemApi.refresh_system_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: RefreshSystemApi#refresh_system_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
+ end
80
+ return data, status_code, headers
81
+ end
82
+ end
83
+ end
@@ -16,6 +16,9 @@ require 'time'
16
16
  module AutosdeOpenapiClient
17
17
  # Event object represents storage system alerts and messages.
18
18
  class Event
19
+ # created_at
20
+ attr_accessor :created_at
21
+
19
22
  # description
20
23
  attr_accessor :description
21
24
 
@@ -34,6 +37,9 @@ module AutosdeOpenapiClient
34
37
  # last_timestamp
35
38
  attr_accessor :last_timestamp
36
39
 
40
+ # refresh_interval
41
+ attr_accessor :refresh_interval
42
+
37
43
  attr_accessor :storage_system
38
44
 
39
45
  # uuid
@@ -42,12 +48,14 @@ module AutosdeOpenapiClient
42
48
  # Attribute mapping from ruby-style variable name to JSON key.
43
49
  def self.attribute_map
44
50
  {
51
+ :'created_at' => :'created_at',
45
52
  :'description' => :'description',
46
53
  :'error_code' => :'error_code',
47
54
  :'event_id' => :'event_id',
48
55
  :'event_type' => :'event_type',
49
56
  :'fixed' => :'fixed',
50
57
  :'last_timestamp' => :'last_timestamp',
58
+ :'refresh_interval' => :'refresh_interval',
51
59
  :'storage_system' => :'storage_system',
52
60
  :'uuid' => :'uuid'
53
61
  }
@@ -61,12 +69,14 @@ module AutosdeOpenapiClient
61
69
  # Attribute type mapping.
62
70
  def self.openapi_types
63
71
  {
72
+ :'created_at' => :'Time',
64
73
  :'description' => :'String',
65
74
  :'error_code' => :'String',
66
75
  :'event_id' => :'Integer',
67
76
  :'event_type' => :'String',
68
77
  :'fixed' => :'String',
69
78
  :'last_timestamp' => :'Time',
79
+ :'refresh_interval' => :'Integer',
70
80
  :'storage_system' => :'StorageSystem',
71
81
  :'uuid' => :'String'
72
82
  }
@@ -93,6 +103,10 @@ module AutosdeOpenapiClient
93
103
  h[k.to_sym] = v
94
104
  }
95
105
 
106
+ if attributes.key?(:'created_at')
107
+ self.created_at = attributes[:'created_at']
108
+ end
109
+
96
110
  if attributes.key?(:'description')
97
111
  self.description = attributes[:'description']
98
112
  end
@@ -117,6 +131,10 @@ module AutosdeOpenapiClient
117
131
  self.last_timestamp = attributes[:'last_timestamp']
118
132
  end
119
133
 
134
+ if attributes.key?(:'refresh_interval')
135
+ self.refresh_interval = attributes[:'refresh_interval']
136
+ end
137
+
120
138
  if attributes.key?(:'storage_system')
121
139
  self.storage_system = attributes[:'storage_system']
122
140
  end
@@ -144,12 +162,14 @@ module AutosdeOpenapiClient
144
162
  def ==(o)
145
163
  return true if self.equal?(o)
146
164
  self.class == o.class &&
165
+ created_at == o.created_at &&
147
166
  description == o.description &&
148
167
  error_code == o.error_code &&
149
168
  event_id == o.event_id &&
150
169
  event_type == o.event_type &&
151
170
  fixed == o.fixed &&
152
171
  last_timestamp == o.last_timestamp &&
172
+ refresh_interval == o.refresh_interval &&
153
173
  storage_system == o.storage_system &&
154
174
  uuid == o.uuid
155
175
  end
@@ -163,7 +183,7 @@ module AutosdeOpenapiClient
163
183
  # Calculates hash code according to all attributes.
164
184
  # @return [Integer] Hash code
165
185
  def hash
166
- [description, error_code, event_id, event_type, fixed, last_timestamp, storage_system, uuid].hash
186
+ [created_at, description, error_code, event_id, event_type, fixed, last_timestamp, refresh_interval, storage_system, uuid].hash
167
187
  end
168
188
 
169
189
  # Builds the object from hash
@@ -0,0 +1,220 @@
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
+ # RefreshSystem object represents refreshing of the storage system.
18
+ class RefreshSystem
19
+ # uuid
20
+ attr_accessor :uuid
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'uuid' => :'uuid'
26
+ }
27
+ end
28
+
29
+ # Returns all the JSON keys this model knows about
30
+ def self.acceptable_attributes
31
+ attribute_map.values
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.openapi_types
36
+ {
37
+ :'uuid' => :'String'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::RefreshSystem` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::RefreshSystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'uuid')
63
+ self.uuid = attributes[:'uuid']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ invalid_properties
72
+ end
73
+
74
+ # Check to see if the all the properties in the model are valid
75
+ # @return true if the model is valid
76
+ def valid?
77
+ true
78
+ end
79
+
80
+ # Checks equality by comparing each attribute.
81
+ # @param [Object] Object to be compared
82
+ def ==(o)
83
+ return true if self.equal?(o)
84
+ self.class == o.class &&
85
+ uuid == o.uuid
86
+ end
87
+
88
+ # @see the `==` method
89
+ # @param [Object] Object to be compared
90
+ def eql?(o)
91
+ self == o
92
+ end
93
+
94
+ # Calculates hash code according to all attributes.
95
+ # @return [Integer] Hash code
96
+ def hash
97
+ [uuid].hash
98
+ end
99
+
100
+ # Builds the object from hash
101
+ # @param [Hash] attributes Model attributes in the form of hash
102
+ # @return [Object] Returns the model itself
103
+ def self.build_from_hash(attributes)
104
+ new.build_from_hash(attributes)
105
+ end
106
+
107
+ # Builds the object from hash
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ # @return [Object] Returns the model itself
110
+ def build_from_hash(attributes)
111
+ return nil unless attributes.is_a?(Hash)
112
+ self.class.openapi_types.each_pair do |key, type|
113
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
114
+ self.send("#{key}=", nil)
115
+ elsif type =~ /\AArray<(.*)>/i
116
+ # check to ensure the input is an array given that the attribute
117
+ # is documented as an array but the input is not
118
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
119
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
120
+ end
121
+ elsif !attributes[self.class.attribute_map[key]].nil?
122
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
123
+ end
124
+ end
125
+
126
+ self
127
+ end
128
+
129
+ # Deserializes the data based on type
130
+ # @param string type Data type
131
+ # @param string value Value to be deserialized
132
+ # @return [Object] Deserialized data
133
+ def _deserialize(type, value)
134
+ case type.to_sym
135
+ when :Time
136
+ Time.parse(value)
137
+ when :Date
138
+ Date.parse(value)
139
+ when :String
140
+ value.to_s
141
+ when :Integer
142
+ value.to_i
143
+ when :Float
144
+ value.to_f
145
+ when :Boolean
146
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
147
+ true
148
+ else
149
+ false
150
+ end
151
+ when :Object
152
+ # generic object (usually a Hash), return directly
153
+ value
154
+ when /\AArray<(?<inner_type>.+)>\z/
155
+ inner_type = Regexp.last_match[:inner_type]
156
+ value.map { |v| _deserialize(inner_type, v) }
157
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
158
+ k_type = Regexp.last_match[:k_type]
159
+ v_type = Regexp.last_match[:v_type]
160
+ {}.tap do |hash|
161
+ value.each do |k, v|
162
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
163
+ end
164
+ end
165
+ else # model
166
+ # models (e.g. Pet) or oneOf
167
+ klass = AutosdeOpenapiClient.const_get(type)
168
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
169
+ end
170
+ end
171
+
172
+ # Returns the string representation of the object
173
+ # @return [String] String presentation of the object
174
+ def to_s
175
+ to_hash.to_s
176
+ end
177
+
178
+ # to_body is an alias to to_hash (backward compatibility)
179
+ # @return [Hash] Returns the object in the form of hash
180
+ def to_body
181
+ to_hash
182
+ end
183
+
184
+ # Returns the object in the form of hash
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_hash
187
+ hash = {}
188
+ self.class.attribute_map.each_pair do |attr, param|
189
+ value = self.send(attr)
190
+ if value.nil?
191
+ is_nullable = self.class.openapi_nullable.include?(attr)
192
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
193
+ end
194
+
195
+ hash[param] = _to_hash(value)
196
+ end
197
+ hash
198
+ end
199
+
200
+ # Outputs non-array value in the form of hash
201
+ # For object, use to_hash. Otherwise, just return the value
202
+ # @param [Object] value Any valid value
203
+ # @return [Hash] Returns the value in the form of hash
204
+ def _to_hash(value)
205
+ if value.is_a?(Array)
206
+ value.compact.map { |v| _to_hash(v) }
207
+ elsif value.is_a?(Hash)
208
+ {}.tap do |hash|
209
+ value.each { |k, v| hash[k] = _to_hash(v) }
210
+ end
211
+ elsif value.respond_to? :to_hash
212
+ value.to_hash
213
+ else
214
+ value
215
+ end
216
+ end
217
+
218
+ end
219
+
220
+ end
@@ -31,8 +31,8 @@ module AutosdeOpenapiClient
31
31
  # component_state
32
32
  attr_accessor :component_state
33
33
 
34
- # first_refresh_task
35
- attr_accessor :first_refresh_task
34
+ # initial_refresh
35
+ attr_accessor :initial_refresh
36
36
 
37
37
  attr_accessor :iqn
38
38
 
@@ -101,7 +101,7 @@ module AutosdeOpenapiClient
101
101
  :'chap_name' => :'chap_name',
102
102
  :'chap_secret' => :'chap_secret',
103
103
  :'component_state' => :'component_state',
104
- :'first_refresh_task' => :'first_refresh_task',
104
+ :'initial_refresh' => :'initial_refresh',
105
105
  :'iqn' => :'iqn',
106
106
  :'management_ip' => :'management_ip',
107
107
  :'name' => :'name',
@@ -131,7 +131,7 @@ module AutosdeOpenapiClient
131
131
  :'chap_name' => :'String',
132
132
  :'chap_secret' => :'String',
133
133
  :'component_state' => :'String',
134
- :'first_refresh_task' => :'Boolean',
134
+ :'initial_refresh' => :'Boolean',
135
135
  :'iqn' => :'String',
136
136
  :'management_ip' => :'String',
137
137
  :'name' => :'String',
@@ -193,10 +193,10 @@ module AutosdeOpenapiClient
193
193
  self.component_state = attributes[:'component_state']
194
194
  end
195
195
 
196
- if attributes.key?(:'first_refresh_task')
197
- self.first_refresh_task = attributes[:'first_refresh_task']
196
+ if attributes.key?(:'initial_refresh')
197
+ self.initial_refresh = attributes[:'initial_refresh']
198
198
  else
199
- self.first_refresh_task = true
199
+ self.initial_refresh = true
200
200
  end
201
201
 
202
202
  if attributes.key?(:'iqn')
@@ -316,7 +316,7 @@ module AutosdeOpenapiClient
316
316
  chap_name == o.chap_name &&
317
317
  chap_secret == o.chap_secret &&
318
318
  component_state == o.component_state &&
319
- first_refresh_task == o.first_refresh_task &&
319
+ initial_refresh == o.initial_refresh &&
320
320
  iqn == o.iqn &&
321
321
  management_ip == o.management_ip &&
322
322
  name == o.name &&
@@ -341,7 +341,7 @@ module AutosdeOpenapiClient
341
341
  # Calculates hash code according to all attributes.
342
342
  # @return [Integer] Hash code
343
343
  def hash
344
- [auto_add_pools, auto_setup, chap_name, chap_secret, component_state, first_refresh_task, iqn, management_ip, name, password, port_type, secondary_ip, status, storage_array, storage_driver, storage_family, system_type, user, wwpn].hash
344
+ [auto_add_pools, auto_setup, chap_name, chap_secret, component_state, initial_refresh, iqn, management_ip, name, password, port_type, secondary_ip, status, storage_array, storage_driver, storage_family, system_type, user, wwpn].hash
345
345
  end
346
346
 
347
347
  # 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: 1.1.21
6
+ The version of the OpenAPI document: 1.1.24
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
11
11
  =end
12
12
 
13
13
  module AutosdeOpenapiClient
14
- VERSION = '1.1.21'
14
+ VERSION = '1.1.24'
15
15
  end
@@ -46,6 +46,7 @@ require 'autosde_openapi_client/models/job_create'
46
46
  require 'autosde_openapi_client/models/native_capability'
47
47
  require 'autosde_openapi_client/models/profile'
48
48
  require 'autosde_openapi_client/models/provisioning_strategy'
49
+ require 'autosde_openapi_client/models/refresh_system'
49
50
  require 'autosde_openapi_client/models/service'
50
51
  require 'autosde_openapi_client/models/service_abstract_capability_value'
51
52
  require 'autosde_openapi_client/models/service_create'
@@ -97,6 +98,7 @@ require 'autosde_openapi_client/api/job_api'
97
98
  require 'autosde_openapi_client/api/native_capability_api'
98
99
  require 'autosde_openapi_client/api/profile_api'
99
100
  require 'autosde_openapi_client/api/provisioning_strategy_api'
101
+ require 'autosde_openapi_client/api/refresh_system_api'
100
102
  require 'autosde_openapi_client/api/service_api'
101
103
  require 'autosde_openapi_client/api/service_resource_attachment_api'
102
104
  require 'autosde_openapi_client/api/snapshot_api'
@@ -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::RefreshSystemApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RefreshSystemApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = AutosdeOpenapiClient::RefreshSystemApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RefreshSystemApi' do
30
+ it 'should create an instance of RefreshSystemApi' do
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::RefreshSystemApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for refresh_system_post
36
+ # @param storage_system_create
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [RefreshSystem]
39
+ describe 'refresh_system_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
@@ -25,6 +25,12 @@ describe AutosdeOpenapiClient::Event do
25
25
  expect(instance).to be_instance_of(AutosdeOpenapiClient::Event)
26
26
  end
27
27
  end
28
+ describe 'test attribute "created_at"' 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
+
28
34
  describe 'test attribute "description"' do
29
35
  it 'should work' do
30
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -61,6 +67,12 @@ describe AutosdeOpenapiClient::Event do
61
67
  end
62
68
  end
63
69
 
70
+ describe 'test attribute "refresh_interval"' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
64
76
  describe 'test attribute "storage_system"' do
65
77
  it 'should work' do
66
78
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -0,0 +1,34 @@
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::RefreshSystem
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::RefreshSystem do
21
+ let(:instance) { AutosdeOpenapiClient::RefreshSystem.new }
22
+
23
+ describe 'test an instance of RefreshSystem' do
24
+ it 'should create an instance of RefreshSystem' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::RefreshSystem)
26
+ end
27
+ end
28
+ describe 'test attribute "uuid"' 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
+ end
@@ -59,7 +59,7 @@ describe AutosdeOpenapiClient::StorageSystemCreate do
59
59
  end
60
60
  end
61
61
 
62
- describe 'test attribute "first_refresh_task"' do
62
+ describe 'test attribute "initial_refresh"' do
63
63
  it 'should work' do
64
64
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
65
  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: 1.1.21
4
+ version: 1.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-07 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -108,6 +108,8 @@ files:
108
108
  - docs/ProfileApi.md
109
109
  - docs/ProvisioningStrategy.md
110
110
  - docs/ProvisioningStrategyApi.md
111
+ - docs/RefreshSystem.md
112
+ - docs/RefreshSystemApi.md
111
113
  - docs/Service.md
112
114
  - docs/ServiceAbstractCapabilityValue.md
113
115
  - docs/ServiceApi.md
@@ -172,6 +174,7 @@ files:
172
174
  - lib/autosde_openapi_client/api/native_capability_api.rb
173
175
  - lib/autosde_openapi_client/api/profile_api.rb
174
176
  - lib/autosde_openapi_client/api/provisioning_strategy_api.rb
177
+ - lib/autosde_openapi_client/api/refresh_system_api.rb
175
178
  - lib/autosde_openapi_client/api/service_api.rb
176
179
  - lib/autosde_openapi_client/api/service_resource_attachment_api.rb
177
180
  - lib/autosde_openapi_client/api/snapshot_api.rb
@@ -217,6 +220,7 @@ files:
217
220
  - lib/autosde_openapi_client/models/native_capability.rb
218
221
  - lib/autosde_openapi_client/models/profile.rb
219
222
  - lib/autosde_openapi_client/models/provisioning_strategy.rb
223
+ - lib/autosde_openapi_client/models/refresh_system.rb
220
224
  - lib/autosde_openapi_client/models/service.rb
221
225
  - lib/autosde_openapi_client/models/service_abstract_capability_value.rb
222
226
  - lib/autosde_openapi_client/models/service_create.rb
@@ -267,6 +271,7 @@ files:
267
271
  - spec/api/native_capability_api_spec.rb
268
272
  - spec/api/profile_api_spec.rb
269
273
  - spec/api/provisioning_strategy_api_spec.rb
274
+ - spec/api/refresh_system_api_spec.rb
270
275
  - spec/api/service_api_spec.rb
271
276
  - spec/api/service_resource_attachment_api_spec.rb
272
277
  - spec/api/snapshot_api_spec.rb
@@ -311,6 +316,7 @@ files:
311
316
  - spec/models/native_capability_spec.rb
312
317
  - spec/models/profile_spec.rb
313
318
  - spec/models/provisioning_strategy_spec.rb
319
+ - spec/models/refresh_system_spec.rb
314
320
  - spec/models/service_abstract_capability_value_spec.rb
315
321
  - spec/models/service_create_spec.rb
316
322
  - spec/models/service_resource_attachment_spec.rb
@@ -368,97 +374,99 @@ signing_key:
368
374
  specification_version: 4
369
375
  summary: Site Manager API Ruby Gem
370
376
  test_files:
377
+ - spec/api/capability_translation_api_spec.rb
378
+ - spec/api/auto_sde_project_api_spec.rb
379
+ - spec/api/job_api_spec.rb
380
+ - spec/api/validate_system_api_spec.rb
371
381
  - spec/api/storage_host_wwpn_candidates_api_spec.rb
372
- - spec/api/host_api_spec.rb
373
- - spec/api/account_api_spec.rb
374
382
  - spec/api/service_api_spec.rb
375
- - spec/api/storage_host_volume_mapping_api_spec.rb
383
+ - spec/api/host_cluster_membership_api_spec.rb
384
+ - spec/api/abstract_capability_api_spec.rb
376
385
  - spec/api/provisioning_strategy_api_spec.rb
377
- - spec/api/capability_translation_api_spec.rb
386
+ - spec/api/user_api_spec.rb
387
+ - spec/api/auto_sde_role_api_spec.rb
388
+ - spec/api/account_api_spec.rb
389
+ - spec/api/refresh_system_api_spec.rb
390
+ - spec/api/host_api_spec.rb
391
+ - spec/api/service_resource_attachment_api_spec.rb
392
+ - spec/api/storage_host_volume_mapping_api_spec.rb
393
+ - spec/api/volume_api_spec.rb
394
+ - spec/api/authentication_api_spec.rb
395
+ - spec/api/native_capability_api_spec.rb
396
+ - spec/api/host_cluster_volume_mapping_api_spec.rb
378
397
  - spec/api/profile_api_spec.rb
379
398
  - spec/api/volume_safe_delete_api_spec.rb
380
- - spec/api/volume_api_spec.rb
399
+ - spec/api/storage_resource_api_spec.rb
381
400
  - spec/api/address_api_spec.rb
382
- - spec/api/host_cluster_volume_mapping_api_spec.rb
383
- - spec/api/service_resource_attachment_api_spec.rb
401
+ - spec/api/host_cluster_api_spec.rb
402
+ - spec/api/host_volume_connection_api_spec.rb
384
403
  - spec/api/event_api_spec.rb
385
404
  - spec/api/storage_system_api_spec.rb
386
- - spec/api/auto_sde_project_api_spec.rb
405
+ - spec/api/snapshot_api_spec.rb
387
406
  - spec/api/system_type_api_spec.rb
388
- - spec/api/abstract_capability_api_spec.rb
389
407
  - spec/api/storage_host_api_spec.rb
390
- - spec/api/host_cluster_membership_api_spec.rb
391
- - spec/api/user_api_spec.rb
392
- - spec/api/snapshot_api_spec.rb
393
- - spec/api/host_volume_connection_api_spec.rb
394
- - spec/api/validate_system_api_spec.rb
395
- - spec/api/native_capability_api_spec.rb
396
- - spec/api/auto_sde_role_api_spec.rb
397
- - spec/api/authentication_api_spec.rb
398
- - spec/api/storage_resource_api_spec.rb
399
- - spec/api/host_cluster_api_spec.rb
400
- - spec/api/job_api_spec.rb
401
408
  - spec/api_client_spec.rb
402
409
  - spec/configuration_spec.rb
403
- - spec/models/account_post_request_spec.rb
410
+ - spec/models/volume_create_spec.rb
404
411
  - spec/models/system_type_spec.rb
405
- - spec/models/host_spec.rb
406
- - spec/models/storage_host_volume_mapping_create_spec.rb
407
- - spec/models/storage_host_create_spec.rb
408
- - spec/models/volume_response_spec.rb
409
- - spec/models/account_post_response_spec.rb
410
- - spec/models/host_cluster_volume_mapping_response_spec.rb
411
- - spec/models/provisioning_strategy_spec.rb
412
- - spec/models/event_spec.rb
412
+ - spec/models/volume_spec.rb
413
+ - spec/models/volume_safe_delete_spec.rb
414
+ - spec/models/capability_translation_create_spec.rb
415
+ - spec/models/storage_host_response_spec.rb
416
+ - spec/models/snapshot_create_spec.rb
417
+ - spec/models/storage_resource_create_spec.rb
418
+ - spec/models/service_resource_attachment_spec.rb
419
+ - spec/models/auto_sde_project_spec.rb
420
+ - spec/models/host_cluster_spec.rb
421
+ - spec/models/storage_host_wwpn_candidates_spec.rb
422
+ - spec/models/storage_resource_spec.rb
423
+ - spec/models/refresh_system_spec.rb
424
+ - spec/models/storage_system_update_spec.rb
425
+ - spec/models/storage_resource_response_spec.rb
426
+ - spec/models/job_create_spec.rb
427
+ - spec/models/native_capability_spec.rb
413
428
  - spec/models/host_cluster_membership_spec.rb
414
- - spec/models/validate_system_spec.rb
415
- - spec/models/capability_translation_spec.rb
429
+ - spec/models/host_spec.rb
430
+ - spec/models/storage_host_update_spec.rb
431
+ - spec/models/storage_host_spec.rb
416
432
  - spec/models/storage_host_volume_mapping_spec.rb
417
- - spec/models/volume_safe_delete_spec.rb
418
- - spec/models/host_create_spec.rb
419
433
  - spec/models/job_spec.rb
420
- - spec/models/host_cluster_create_spec.rb
421
434
  - spec/models/account_spec.rb
422
- - spec/models/storage_system_spec.rb
423
- - spec/models/storage_resource_create_spec.rb
435
+ - spec/models/capability_translation_spec.rb
436
+ - spec/models/service_abstract_capability_value_spec.rb
424
437
  - spec/models/auto_sde_role_spec.rb
425
- - spec/models/host_cluster_volume_mapping_create_spec.rb
426
- - spec/models/authentication_spec.rb
427
- - spec/models/user_create_spec.rb
428
- - spec/models/snapshot_create_spec.rb
429
- - spec/models/user_update_spec.rb
430
- - spec/models/auth_response_spec.rb
431
- - spec/models/native_capability_spec.rb
432
- - spec/models/job_create_spec.rb
433
- - spec/models/storage_resource_spec.rb
434
- - spec/models/storage_resource_response_spec.rb
438
+ - spec/models/host_cluster_volume_mapping_spec.rb
439
+ - spec/models/profile_spec.rb
435
440
  - spec/models/snapshot_spec.rb
436
- - spec/models/volume_safe_delete_create_spec.rb
437
- - spec/models/storage_host_update_spec.rb
441
+ - spec/models/event_spec.rb
442
+ - spec/models/address_create_spec.rb
438
443
  - spec/models/service_create_spec.rb
444
+ - spec/models/abstract_capability_spec.rb
445
+ - spec/models/authentication_spec.rb
446
+ - spec/models/system_type_create_spec.rb
447
+ - spec/models/host_create_spec.rb
448
+ - spec/models/user_spec.rb
449
+ - spec/models/storage_system_create_spec.rb
439
450
  - spec/models/host_cluster_response_spec.rb
440
- - spec/models/host_volume_connection_create_spec.rb
441
- - spec/models/capability_translation_create_spec.rb
451
+ - spec/models/storage_host_create_spec.rb
452
+ - spec/models/storage_host_volume_mapping_response_spec.rb
453
+ - spec/models/auth_response_spec.rb
454
+ - spec/models/account_post_request_spec.rb
455
+ - spec/models/account_post_response_spec.rb
456
+ - spec/models/provisioning_strategy_spec.rb
457
+ - spec/models/volume_safe_delete_create_spec.rb
458
+ - spec/models/host_volume_connection_spec.rb
459
+ - spec/models/host_cluster_create_spec.rb
442
460
  - spec/models/service_spec.rb
443
- - spec/models/address_create_spec.rb
444
- - spec/models/host_cluster_spec.rb
445
- - spec/models/storage_system_create_spec.rb
461
+ - spec/models/host_volume_connection_create_spec.rb
462
+ - spec/models/volume_response_spec.rb
463
+ - spec/models/storage_system_spec.rb
464
+ - spec/models/validate_system_spec.rb
465
+ - spec/models/storage_host_volume_mapping_create_spec.rb
466
+ - spec/models/host_cluster_volume_mapping_response_spec.rb
446
467
  - spec/models/volume_update_spec.rb
447
- - spec/models/user_spec.rb
448
468
  - spec/models/address_spec.rb
449
- - spec/models/host_cluster_volume_mapping_spec.rb
450
- - spec/models/system_type_create_spec.rb
451
- - spec/models/storage_host_wwpn_candidates_spec.rb
452
- - spec/models/auto_sde_project_spec.rb
453
- - spec/models/service_resource_attachment_spec.rb
454
- - spec/models/volume_spec.rb
455
- - spec/models/storage_system_update_spec.rb
456
- - spec/models/storage_host_spec.rb
457
- - spec/models/host_volume_connection_spec.rb
458
- - spec/models/storage_host_response_spec.rb
459
- - spec/models/service_abstract_capability_value_spec.rb
460
- - spec/models/abstract_capability_spec.rb
461
- - spec/models/storage_host_volume_mapping_response_spec.rb
462
- - spec/models/profile_spec.rb
463
- - spec/models/volume_create_spec.rb
469
+ - spec/models/user_create_spec.rb
470
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
471
+ - spec/models/user_update_spec.rb
464
472
  - spec/spec_helper.rb