autosde_openapi_client 1.1.27 → 1.1.28

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: eb75de6ca7c68e3a0229facd745a56e9855fc45f62b631ae0536934a7abaeee4
4
- data.tar.gz: 11f8cb84ea4a20f4b0cfcc6d8c989a24128d7a002473e71dd75a2fa21193f85d
3
+ metadata.gz: 1b7b7a4a0d645d8f61447d7e07c37fe790fc4614d15ba2d55ff3d030360c9120
4
+ data.tar.gz: c0ff7a1e374919b6d1ec7b3b5206061616a6e564bed4ec442a11c49fd125304d
5
5
  SHA512:
6
- metadata.gz: 6bcd76249df96c52a36ee59ff4f54b3927284d1ad75e3c482fa8526c4ed2174131436dd229004adfa9da6ec8ae9814d6b3f3366de2f615634103c010514f90b0
7
- data.tar.gz: ff64efd3555876f898b0b1abc96182b5531bc8d468402595186f366380213feb869c1c7a40be5d26805d491d3399e5ee10709d27e219fe5f98c1c0635dbf990c
6
+ metadata.gz: f9096afb3b4aaf93e777c8fe6df95ff7d9a8faa4d8eb2e012e56ff331a6ac39f784df0f155f435d17783e9a6cc9556aa50a8c6e19fbae77368b94170cdd2252a
7
+ data.tar.gz: 81abe4013358b1f28cc7daefce64f4f569fc7d25eaba75bddf501f9216b6bdfd72113a42a05dc760809ecb8ef00c4c6dca65452ac42ee797f4962b581d3c8d6e
data/README.md CHANGED
@@ -105,6 +105,8 @@ Class | Method | HTTP request | Description
105
105
  *AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_pk_delete**](docs/CapabilityTranslationApi.md#capability_translations_pk_delete) | **DELETE** /capability-translations/{pk} |
106
106
  *AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_pk_get**](docs/CapabilityTranslationApi.md#capability_translations_pk_get) | **GET** /capability-translations/{pk} |
107
107
  *AutosdeOpenapiClient::CapabilityTranslationApi* | [**capability_translations_post**](docs/CapabilityTranslationApi.md#capability_translations_post) | **POST** /capability-translations |
108
+ *AutosdeOpenapiClient::CeleryConfigApi* | [**celery_config_get**](docs/CeleryConfigApi.md#celery_config_get) | **GET** /celery-config |
109
+ *AutosdeOpenapiClient::CeleryConfigApi* | [**celery_config_post**](docs/CeleryConfigApi.md#celery_config_post) | **POST** /celery-config |
108
110
  *AutosdeOpenapiClient::EventApi* | [**events_get**](docs/EventApi.md#events_get) | **GET** /events |
109
111
  *AutosdeOpenapiClient::EventApi* | [**events_pk_delete**](docs/EventApi.md#events_pk_delete) | **DELETE** /events/{pk} |
110
112
  *AutosdeOpenapiClient::EventApi* | [**events_pk_get**](docs/EventApi.md#events_pk_get) | **GET** /events/{pk} |
@@ -214,6 +216,7 @@ Class | Method | HTTP request | Description
214
216
  - [AutosdeOpenapiClient::AutoSDERole](docs/AutoSDERole.md)
215
217
  - [AutosdeOpenapiClient::CapabilityTranslation](docs/CapabilityTranslation.md)
216
218
  - [AutosdeOpenapiClient::CapabilityTranslationCreate](docs/CapabilityTranslationCreate.md)
219
+ - [AutosdeOpenapiClient::CeleryConfig](docs/CeleryConfig.md)
217
220
  - [AutosdeOpenapiClient::Event](docs/Event.md)
218
221
  - [AutosdeOpenapiClient::Host](docs/Host.md)
219
222
  - [AutosdeOpenapiClient::HostCluster](docs/HostCluster.md)
@@ -0,0 +1,20 @@
1
+ # AutosdeOpenapiClient::CeleryConfig
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **celery_beat_enabled** | **Boolean** | celery_beat_enabled | [optional] |
8
+ | **interval_sec** | **Integer** | interval_sec | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'autosde_openapi_client'
14
+
15
+ instance = AutosdeOpenapiClient::CeleryConfig.new(
16
+ celery_beat_enabled: null,
17
+ interval_sec: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,140 @@
1
+ # AutosdeOpenapiClient::CeleryConfigApi
2
+
3
+ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**celery_config_get**](CeleryConfigApi.md#celery_config_get) | **GET** /celery-config | |
8
+ | [**celery_config_post**](CeleryConfigApi.md#celery_config_post) | **POST** /celery-config | |
9
+
10
+
11
+ ## celery_config_get
12
+
13
+ > <Array<CeleryConfig>> celery_config_get
14
+
15
+
16
+
17
+ ### Examples
18
+
19
+ ```ruby
20
+ require 'time'
21
+ require 'autosde_openapi_client'
22
+ # setup authorization
23
+ AutosdeOpenapiClient.configure do |config|
24
+ # Configure Bearer authorization: bearerAuth
25
+ config.access_token = 'YOUR_BEARER_TOKEN'
26
+ end
27
+
28
+ api_instance = AutosdeOpenapiClient::CeleryConfigApi.new
29
+
30
+ begin
31
+
32
+ result = api_instance.celery_config_get
33
+ p result
34
+ rescue AutosdeOpenapiClient::ApiError => e
35
+ puts "Error when calling CeleryConfigApi->celery_config_get: #{e}"
36
+ end
37
+ ```
38
+
39
+ #### Using the celery_config_get_with_http_info variant
40
+
41
+ This returns an Array which contains the response data, status code and headers.
42
+
43
+ > <Array(<Array<CeleryConfig>>, Integer, Hash)> celery_config_get_with_http_info
44
+
45
+ ```ruby
46
+ begin
47
+
48
+ data, status_code, headers = api_instance.celery_config_get_with_http_info
49
+ p status_code # => 2xx
50
+ p headers # => { ... }
51
+ p data # => <Array<CeleryConfig>>
52
+ rescue AutosdeOpenapiClient::ApiError => e
53
+ puts "Error when calling CeleryConfigApi->celery_config_get_with_http_info: #{e}"
54
+ end
55
+ ```
56
+
57
+ ### Parameters
58
+
59
+ This endpoint does not need any parameter.
60
+
61
+ ### Return type
62
+
63
+ [**Array&lt;CeleryConfig&gt;**](CeleryConfig.md)
64
+
65
+ ### Authorization
66
+
67
+ [bearerAuth](../README.md#bearerAuth)
68
+
69
+ ### HTTP request headers
70
+
71
+ - **Content-Type**: Not defined
72
+ - **Accept**: */*
73
+
74
+
75
+ ## celery_config_post
76
+
77
+ > <CeleryConfig> celery_config_post(celery_config)
78
+
79
+
80
+
81
+ ### Examples
82
+
83
+ ```ruby
84
+ require 'time'
85
+ require 'autosde_openapi_client'
86
+ # setup authorization
87
+ AutosdeOpenapiClient.configure do |config|
88
+ # Configure Bearer authorization: bearerAuth
89
+ config.access_token = 'YOUR_BEARER_TOKEN'
90
+ end
91
+
92
+ api_instance = AutosdeOpenapiClient::CeleryConfigApi.new
93
+ celery_config = AutosdeOpenapiClient::CeleryConfig.new # CeleryConfig |
94
+
95
+ begin
96
+
97
+ result = api_instance.celery_config_post(celery_config)
98
+ p result
99
+ rescue AutosdeOpenapiClient::ApiError => e
100
+ puts "Error when calling CeleryConfigApi->celery_config_post: #{e}"
101
+ end
102
+ ```
103
+
104
+ #### Using the celery_config_post_with_http_info variant
105
+
106
+ This returns an Array which contains the response data, status code and headers.
107
+
108
+ > <Array(<CeleryConfig>, Integer, Hash)> celery_config_post_with_http_info(celery_config)
109
+
110
+ ```ruby
111
+ begin
112
+
113
+ data, status_code, headers = api_instance.celery_config_post_with_http_info(celery_config)
114
+ p status_code # => 2xx
115
+ p headers # => { ... }
116
+ p data # => <CeleryConfig>
117
+ rescue AutosdeOpenapiClient::ApiError => e
118
+ puts "Error when calling CeleryConfigApi->celery_config_post_with_http_info: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+ | Name | Type | Description | Notes |
125
+ | ---- | ---- | ----------- | ----- |
126
+ | **celery_config** | [**CeleryConfig**](CeleryConfig.md) | | |
127
+
128
+ ### Return type
129
+
130
+ [**CeleryConfig**](CeleryConfig.md)
131
+
132
+ ### Authorization
133
+
134
+ [bearerAuth](../README.md#bearerAuth)
135
+
136
+ ### HTTP request headers
137
+
138
+ - **Content-Type**: application/json
139
+ - **Accept**: */*
140
+
@@ -9,7 +9,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
9
9
 
10
10
  ## refresh_system_post
11
11
 
12
- > <RefreshSystem> refresh_system_post(storage_system_create)
12
+ > <RefreshSystem> refresh_system_post(refresh_system)
13
13
 
14
14
 
15
15
 
@@ -25,11 +25,11 @@ AutosdeOpenapiClient.configure do |config|
25
25
  end
26
26
 
27
27
  api_instance = AutosdeOpenapiClient::RefreshSystemApi.new
28
- storage_system_create = AutosdeOpenapiClient::StorageSystemCreate.new # StorageSystemCreate |
28
+ refresh_system = AutosdeOpenapiClient::RefreshSystem.new # RefreshSystem |
29
29
 
30
30
  begin
31
31
 
32
- result = api_instance.refresh_system_post(storage_system_create)
32
+ result = api_instance.refresh_system_post(refresh_system)
33
33
  p result
34
34
  rescue AutosdeOpenapiClient::ApiError => e
35
35
  puts "Error when calling RefreshSystemApi->refresh_system_post: #{e}"
@@ -40,12 +40,12 @@ end
40
40
 
41
41
  This returns an Array which contains the response data, status code and headers.
42
42
 
43
- > <Array(<RefreshSystem>, Integer, Hash)> refresh_system_post_with_http_info(storage_system_create)
43
+ > <Array(<RefreshSystem>, Integer, Hash)> refresh_system_post_with_http_info(refresh_system)
44
44
 
45
45
  ```ruby
46
46
  begin
47
47
 
48
- data, status_code, headers = api_instance.refresh_system_post_with_http_info(storage_system_create)
48
+ data, status_code, headers = api_instance.refresh_system_post_with_http_info(refresh_system)
49
49
  p status_code # => 2xx
50
50
  p headers # => { ... }
51
51
  p data # => <RefreshSystem>
@@ -58,7 +58,7 @@ end
58
58
 
59
59
  | Name | Type | Description | Notes |
60
60
  | ---- | ---- | ----------- | ----- |
61
- | **storage_system_create** | [**StorageSystemCreate**](StorageSystemCreate.md) | | |
61
+ | **refresh_system** | [**RefreshSystem**](RefreshSystem.md) | | |
62
62
 
63
63
  ### Return type
64
64
 
@@ -0,0 +1,136 @@
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 CeleryConfigApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # @param [Hash] opts the optional parameters
23
+ # @return [Array<CeleryConfig>]
24
+ def celery_config_get(opts = {})
25
+ data, _status_code, _headers = celery_config_get_with_http_info(opts)
26
+ data
27
+ end
28
+
29
+ # @param [Hash] opts the optional parameters
30
+ # @return [Array<(Array<CeleryConfig>, Integer, Hash)>] Array<CeleryConfig> data, response status code and response headers
31
+ def celery_config_get_with_http_info(opts = {})
32
+ if @api_client.config.debugging
33
+ @api_client.config.logger.debug 'Calling API: CeleryConfigApi.celery_config_get ...'
34
+ end
35
+ # resource path
36
+ local_var_path = '/celery-config'
37
+
38
+ # query parameters
39
+ query_params = opts[:query_params] || {}
40
+
41
+ # header parameters
42
+ header_params = opts[:header_params] || {}
43
+ # HTTP header 'Accept' (if needed)
44
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
45
+
46
+ # form parameters
47
+ form_params = opts[:form_params] || {}
48
+
49
+ # http body (model)
50
+ post_body = opts[:debug_body]
51
+
52
+ # return_type
53
+ return_type = opts[:debug_return_type] || 'Array<CeleryConfig>'
54
+
55
+ # auth_names
56
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
57
+
58
+ new_options = opts.merge(
59
+ :operation => :"CeleryConfigApi.celery_config_get",
60
+ :header_params => header_params,
61
+ :query_params => query_params,
62
+ :form_params => form_params,
63
+ :body => post_body,
64
+ :auth_names => auth_names,
65
+ :return_type => return_type
66
+ )
67
+
68
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug "API called: CeleryConfigApi#celery_config_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
+ end
72
+ return data, status_code, headers
73
+ end
74
+
75
+ # @param celery_config [CeleryConfig]
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [CeleryConfig]
78
+ def celery_config_post(celery_config, opts = {})
79
+ data, _status_code, _headers = celery_config_post_with_http_info(celery_config, opts)
80
+ data
81
+ end
82
+
83
+ # @param celery_config [CeleryConfig]
84
+ # @param [Hash] opts the optional parameters
85
+ # @return [Array<(CeleryConfig, Integer, Hash)>] CeleryConfig data, response status code and response headers
86
+ def celery_config_post_with_http_info(celery_config, opts = {})
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug 'Calling API: CeleryConfigApi.celery_config_post ...'
89
+ end
90
+ # verify the required parameter 'celery_config' is set
91
+ if @api_client.config.client_side_validation && celery_config.nil?
92
+ fail ArgumentError, "Missing the required parameter 'celery_config' when calling CeleryConfigApi.celery_config_post"
93
+ end
94
+ # resource path
95
+ local_var_path = '/celery-config'
96
+
97
+ # query parameters
98
+ query_params = opts[:query_params] || {}
99
+
100
+ # header parameters
101
+ header_params = opts[:header_params] || {}
102
+ # HTTP header 'Accept' (if needed)
103
+ header_params['Accept'] = @api_client.select_header_accept(['*/*'])
104
+ # HTTP header 'Content-Type'
105
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
106
+
107
+ # form parameters
108
+ form_params = opts[:form_params] || {}
109
+
110
+ # http body (model)
111
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(celery_config)
112
+
113
+ # return_type
114
+ return_type = opts[:debug_return_type] || 'CeleryConfig'
115
+
116
+ # auth_names
117
+ auth_names = opts[:debug_auth_names] || ['bearerAuth']
118
+
119
+ new_options = opts.merge(
120
+ :operation => :"CeleryConfigApi.celery_config_post",
121
+ :header_params => header_params,
122
+ :query_params => query_params,
123
+ :form_params => form_params,
124
+ :body => post_body,
125
+ :auth_names => auth_names,
126
+ :return_type => return_type
127
+ )
128
+
129
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
130
+ if @api_client.config.debugging
131
+ @api_client.config.logger.debug "API called: CeleryConfigApi#celery_config_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
132
+ end
133
+ return data, status_code, headers
134
+ end
135
+ end
136
+ end
@@ -19,24 +19,24 @@ module AutosdeOpenapiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # @param storage_system_create [StorageSystemCreate]
22
+ # @param refresh_system [RefreshSystem]
23
23
  # @param [Hash] opts the optional parameters
24
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)
25
+ def refresh_system_post(refresh_system, opts = {})
26
+ data, _status_code, _headers = refresh_system_post_with_http_info(refresh_system, opts)
27
27
  data
28
28
  end
29
29
 
30
- # @param storage_system_create [StorageSystemCreate]
30
+ # @param refresh_system [RefreshSystem]
31
31
  # @param [Hash] opts the optional parameters
32
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 = {})
33
+ def refresh_system_post_with_http_info(refresh_system, opts = {})
34
34
  if @api_client.config.debugging
35
35
  @api_client.config.logger.debug 'Calling API: RefreshSystemApi.refresh_system_post ...'
36
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"
37
+ # verify the required parameter 'refresh_system' is set
38
+ if @api_client.config.client_side_validation && refresh_system.nil?
39
+ fail ArgumentError, "Missing the required parameter 'refresh_system' when calling RefreshSystemApi.refresh_system_post"
40
40
  end
41
41
  # resource path
42
42
  local_var_path = '/refresh-system'
@@ -55,7 +55,7 @@ module AutosdeOpenapiClient
55
55
  form_params = opts[:form_params] || {}
56
56
 
57
57
  # http body (model)
58
- post_body = opts[:debug_body] || @api_client.object_to_http_body(storage_system_create)
58
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(refresh_system)
59
59
 
60
60
  # return_type
61
61
  return_type = opts[:debug_return_type] || 'RefreshSystem'
@@ -0,0 +1,230 @@
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
+ # CeleryBeatConfig object represents celery-beat (refresh params
18
+ class CeleryConfig
19
+ # celery_beat_enabled
20
+ attr_accessor :celery_beat_enabled
21
+
22
+ # interval_sec
23
+ attr_accessor :interval_sec
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'celery_beat_enabled' => :'celery_beat_enabled',
29
+ :'interval_sec' => :'interval_sec'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'celery_beat_enabled' => :'Boolean',
42
+ :'interval_sec' => :'Integer'
43
+ }
44
+ end
45
+
46
+ # List of attributes with nullable: true
47
+ def self.openapi_nullable
48
+ Set.new([
49
+ ])
50
+ end
51
+
52
+ # Initializes the object
53
+ # @param [Hash] attributes Model attributes in the form of hash
54
+ def initialize(attributes = {})
55
+ if (!attributes.is_a?(Hash))
56
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::CeleryConfig` initialize method"
57
+ end
58
+
59
+ # check to see if the attribute exists and convert string to symbol for hash key
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!self.class.attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::CeleryConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'celery_beat_enabled')
68
+ self.celery_beat_enabled = attributes[:'celery_beat_enabled']
69
+ end
70
+
71
+ if attributes.key?(:'interval_sec')
72
+ self.interval_sec = attributes[:'interval_sec']
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ invalid_properties = Array.new
80
+ invalid_properties
81
+ end
82
+
83
+ # Check to see if the all the properties in the model are valid
84
+ # @return true if the model is valid
85
+ def valid?
86
+ true
87
+ end
88
+
89
+ # Checks equality by comparing each attribute.
90
+ # @param [Object] Object to be compared
91
+ def ==(o)
92
+ return true if self.equal?(o)
93
+ self.class == o.class &&
94
+ celery_beat_enabled == o.celery_beat_enabled &&
95
+ interval_sec == o.interval_sec
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(o)
101
+ self == o
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Integer] Hash code
106
+ def hash
107
+ [celery_beat_enabled, interval_sec].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def self.build_from_hash(attributes)
114
+ new.build_from_hash(attributes)
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
+ self.send("#{key}=", nil)
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :Time
146
+ Time.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ # models (e.g. Pet) or oneOf
177
+ klass = AutosdeOpenapiClient.const_get(type)
178
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ end
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 1.1.27
6
+ The version of the OpenAPI document: 1.1.28
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.27'
14
+ VERSION = '1.1.28'
15
15
  end
@@ -29,6 +29,7 @@ require 'autosde_openapi_client/models/auto_sde_project'
29
29
  require 'autosde_openapi_client/models/auto_sde_role'
30
30
  require 'autosde_openapi_client/models/capability_translation'
31
31
  require 'autosde_openapi_client/models/capability_translation_create'
32
+ require 'autosde_openapi_client/models/celery_config'
32
33
  require 'autosde_openapi_client/models/event'
33
34
  require 'autosde_openapi_client/models/host'
34
35
  require 'autosde_openapi_client/models/host_cluster'
@@ -88,6 +89,7 @@ require 'autosde_openapi_client/api/authentication_api'
88
89
  require 'autosde_openapi_client/api/auto_sde_project_api'
89
90
  require 'autosde_openapi_client/api/auto_sde_role_api'
90
91
  require 'autosde_openapi_client/api/capability_translation_api'
92
+ require 'autosde_openapi_client/api/celery_config_api'
91
93
  require 'autosde_openapi_client/api/event_api'
92
94
  require 'autosde_openapi_client/api/host_api'
93
95
  require 'autosde_openapi_client/api/host_cluster_api'
@@ -0,0 +1,54 @@
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::CeleryConfigApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'CeleryConfigApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = AutosdeOpenapiClient::CeleryConfigApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CeleryConfigApi' do
30
+ it 'should create an instance of CeleryConfigApi' do
31
+ expect(@api_instance).to be_instance_of(AutosdeOpenapiClient::CeleryConfigApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for celery_config_get
36
+ # @param [Hash] opts the optional parameters
37
+ # @return [Array<CeleryConfig>]
38
+ describe 'celery_config_get test' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ # unit tests for celery_config_post
45
+ # @param celery_config
46
+ # @param [Hash] opts the optional parameters
47
+ # @return [CeleryConfig]
48
+ describe 'celery_config_post test' do
49
+ it 'should work' do
50
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
51
+ end
52
+ end
53
+
54
+ end
@@ -33,7 +33,7 @@ describe 'RefreshSystemApi' do
33
33
  end
34
34
 
35
35
  # unit tests for refresh_system_post
36
- # @param storage_system_create
36
+ # @param refresh_system
37
37
  # @param [Hash] opts the optional parameters
38
38
  # @return [RefreshSystem]
39
39
  describe 'refresh_system_post test' do
@@ -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::CeleryConfig
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe AutosdeOpenapiClient::CeleryConfig do
21
+ let(:instance) { AutosdeOpenapiClient::CeleryConfig.new }
22
+
23
+ describe 'test an instance of CeleryConfig' do
24
+ it 'should create an instance of CeleryConfig' do
25
+ expect(instance).to be_instance_of(AutosdeOpenapiClient::CeleryConfig)
26
+ end
27
+ end
28
+ describe 'test attribute "celery_beat_enabled"' 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 "interval_sec"' 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
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.27
4
+ version: 1.1.28
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-12 00:00:00.000000000 Z
11
+ date: 2022-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -81,6 +81,8 @@ files:
81
81
  - docs/CapabilityTranslation.md
82
82
  - docs/CapabilityTranslationApi.md
83
83
  - docs/CapabilityTranslationCreate.md
84
+ - docs/CeleryConfig.md
85
+ - docs/CeleryConfigApi.md
84
86
  - docs/Event.md
85
87
  - docs/EventApi.md
86
88
  - docs/Host.md
@@ -164,6 +166,7 @@ files:
164
166
  - lib/autosde_openapi_client/api/auto_sde_project_api.rb
165
167
  - lib/autosde_openapi_client/api/auto_sde_role_api.rb
166
168
  - lib/autosde_openapi_client/api/capability_translation_api.rb
169
+ - lib/autosde_openapi_client/api/celery_config_api.rb
167
170
  - lib/autosde_openapi_client/api/event_api.rb
168
171
  - lib/autosde_openapi_client/api/host_api.rb
169
172
  - lib/autosde_openapi_client/api/host_cluster_api.rb
@@ -203,6 +206,7 @@ files:
203
206
  - lib/autosde_openapi_client/models/auto_sde_role.rb
204
207
  - lib/autosde_openapi_client/models/capability_translation.rb
205
208
  - lib/autosde_openapi_client/models/capability_translation_create.rb
209
+ - lib/autosde_openapi_client/models/celery_config.rb
206
210
  - lib/autosde_openapi_client/models/event.rb
207
211
  - lib/autosde_openapi_client/models/host.rb
208
212
  - lib/autosde_openapi_client/models/host_cluster.rb
@@ -261,6 +265,7 @@ files:
261
265
  - spec/api/auto_sde_project_api_spec.rb
262
266
  - spec/api/auto_sde_role_api_spec.rb
263
267
  - spec/api/capability_translation_api_spec.rb
268
+ - spec/api/celery_config_api_spec.rb
264
269
  - spec/api/event_api_spec.rb
265
270
  - spec/api/host_api_spec.rb
266
271
  - spec/api/host_cluster_api_spec.rb
@@ -299,6 +304,7 @@ files:
299
304
  - spec/models/auto_sde_role_spec.rb
300
305
  - spec/models/capability_translation_create_spec.rb
301
306
  - spec/models/capability_translation_spec.rb
307
+ - spec/models/celery_config_spec.rb
302
308
  - spec/models/event_spec.rb
303
309
  - spec/models/host_cluster_create_spec.rb
304
310
  - spec/models/host_cluster_membership_spec.rb
@@ -374,99 +380,101 @@ signing_key:
374
380
  specification_version: 4
375
381
  summary: Site Manager API Ruby Gem
376
382
  test_files:
377
- - spec/api/volume_safe_delete_api_spec.rb
378
- - spec/api/auto_sde_project_api_spec.rb
379
- - spec/api/job_api_spec.rb
380
- - spec/api/profile_api_spec.rb
381
- - spec/api/refresh_system_api_spec.rb
382
- - spec/api/account_api_spec.rb
383
- - spec/api/validate_system_api_spec.rb
384
- - spec/api/capability_translation_api_spec.rb
385
- - spec/api/storage_host_api_spec.rb
386
383
  - spec/api/host_volume_connection_api_spec.rb
387
- - spec/api/storage_resource_api_spec.rb
388
- - spec/api/volume_api_spec.rb
389
- - spec/api/storage_host_wwpn_candidates_api_spec.rb
390
- - spec/api/authentication_api_spec.rb
391
- - spec/api/service_api_spec.rb
392
- - spec/api/native_capability_api_spec.rb
384
+ - spec/api/system_type_api_spec.rb
393
385
  - spec/api/snapshot_api_spec.rb
394
- - spec/api/host_api_spec.rb
395
- - spec/api/abstract_capability_api_spec.rb
386
+ - spec/api/host_cluster_volume_mapping_api_spec.rb
396
387
  - spec/api/service_resource_attachment_api_spec.rb
397
- - spec/api/event_api_spec.rb
388
+ - spec/api/abstract_capability_api_spec.rb
398
389
  - spec/api/user_api_spec.rb
399
- - spec/api/system_type_api_spec.rb
390
+ - spec/api/volume_safe_delete_api_spec.rb
400
391
  - spec/api/provisioning_strategy_api_spec.rb
401
- - spec/api/auto_sde_role_api_spec.rb
392
+ - spec/api/host_api_spec.rb
393
+ - spec/api/account_api_spec.rb
402
394
  - spec/api/host_cluster_membership_api_spec.rb
403
- - spec/api/host_cluster_api_spec.rb
395
+ - spec/api/storage_system_api_spec.rb
396
+ - spec/api/storage_host_api_spec.rb
397
+ - spec/api/job_api_spec.rb
398
+ - spec/api/capability_translation_api_spec.rb
399
+ - spec/api/authentication_api_spec.rb
400
+ - spec/api/storage_resource_api_spec.rb
404
401
  - spec/api/storage_host_volume_mapping_api_spec.rb
402
+ - spec/api/profile_api_spec.rb
403
+ - spec/api/service_api_spec.rb
404
+ - spec/api/celery_config_api_spec.rb
405
+ - spec/api/auto_sde_role_api_spec.rb
406
+ - spec/api/host_cluster_api_spec.rb
407
+ - spec/api/volume_api_spec.rb
408
+ - spec/api/auto_sde_project_api_spec.rb
409
+ - spec/api/event_api_spec.rb
405
410
  - spec/api/address_api_spec.rb
406
- - spec/api/storage_system_api_spec.rb
407
- - spec/api/host_cluster_volume_mapping_api_spec.rb
411
+ - spec/api/native_capability_api_spec.rb
412
+ - spec/api/validate_system_api_spec.rb
413
+ - spec/api/storage_host_wwpn_candidates_api_spec.rb
414
+ - spec/api/refresh_system_api_spec.rb
408
415
  - spec/api_client_spec.rb
409
416
  - spec/configuration_spec.rb
410
- - spec/models/auth_response_spec.rb
411
- - spec/models/service_spec.rb
412
- - spec/models/snapshot_spec.rb
413
- - spec/models/host_cluster_membership_spec.rb
417
+ - spec/models/storage_host_volume_mapping_spec.rb
418
+ - spec/models/service_resource_attachment_spec.rb
419
+ - spec/models/user_spec.rb
420
+ - spec/models/storage_host_spec.rb
421
+ - spec/models/storage_host_volume_mapping_create_spec.rb
422
+ - spec/models/refresh_system_spec.rb
423
+ - spec/models/capability_translation_create_spec.rb
414
424
  - spec/models/system_type_create_spec.rb
415
- - spec/models/job_create_spec.rb
416
- - spec/models/abstract_capability_spec.rb
417
- - spec/models/storage_resource_create_spec.rb
418
- - spec/models/host_cluster_create_spec.rb
425
+ - spec/models/host_cluster_response_spec.rb
426
+ - spec/models/host_cluster_spec.rb
427
+ - spec/models/service_create_spec.rb
428
+ - spec/models/storage_resource_spec.rb
419
429
  - spec/models/host_spec.rb
420
- - spec/models/auto_sde_project_spec.rb
430
+ - spec/models/auth_response_spec.rb
431
+ - spec/models/job_spec.rb
432
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
433
+ - spec/models/volume_create_spec.rb
421
434
  - spec/models/native_capability_spec.rb
422
- - spec/models/service_create_spec.rb
423
- - spec/models/auto_sde_role_spec.rb
424
435
  - spec/models/storage_system_update_spec.rb
425
- - spec/models/storage_host_volume_mapping_response_spec.rb
426
- - spec/models/host_cluster_spec.rb
427
- - spec/models/storage_host_volume_mapping_create_spec.rb
428
- - spec/models/host_volume_connection_create_spec.rb
436
+ - spec/models/host_cluster_membership_spec.rb
437
+ - spec/models/host_cluster_create_spec.rb
429
438
  - spec/models/system_type_spec.rb
430
- - spec/models/service_resource_attachment_spec.rb
431
- - spec/models/capability_translation_spec.rb
432
- - spec/models/account_post_request_spec.rb
433
- - spec/models/address_spec.rb
434
439
  - spec/models/provisioning_strategy_spec.rb
435
- - spec/models/refresh_system_spec.rb
436
- - spec/models/profile_spec.rb
437
- - spec/models/volume_create_spec.rb
438
- - spec/models/volume_update_spec.rb
439
- - spec/models/volume_safe_delete_create_spec.rb
440
+ - spec/models/event_spec.rb
441
+ - spec/models/host_volume_connection_spec.rb
440
442
  - spec/models/storage_system_create_spec.rb
441
- - spec/models/storage_resource_response_spec.rb
442
- - spec/models/snapshot_create_spec.rb
443
- - spec/models/storage_host_volume_mapping_spec.rb
443
+ - spec/models/volume_spec.rb
444
+ - spec/models/celery_config_spec.rb
445
+ - spec/models/volume_safe_delete_create_spec.rb
446
+ - spec/models/service_spec.rb
444
447
  - spec/models/authentication_spec.rb
445
- - spec/models/volume_response_spec.rb
446
- - spec/models/host_cluster_volume_mapping_spec.rb
447
- - spec/models/host_create_spec.rb
448
- - spec/models/event_spec.rb
449
- - spec/models/capability_translation_create_spec.rb
448
+ - spec/models/abstract_capability_spec.rb
450
449
  - spec/models/storage_host_response_spec.rb
451
- - spec/models/host_volume_connection_spec.rb
452
- - spec/models/storage_system_spec.rb
453
- - spec/models/storage_host_create_spec.rb
454
- - spec/models/service_abstract_capability_value_spec.rb
455
- - spec/models/user_spec.rb
456
- - spec/models/job_spec.rb
457
450
  - spec/models/account_post_response_spec.rb
458
- - spec/models/host_cluster_response_spec.rb
459
- - spec/models/storage_host_wwpn_candidates_spec.rb
460
- - spec/models/user_update_spec.rb
451
+ - spec/models/snapshot_spec.rb
461
452
  - spec/models/user_create_spec.rb
462
- - spec/models/address_create_spec.rb
463
- - spec/models/host_cluster_volume_mapping_response_spec.rb
464
- - spec/models/storage_host_spec.rb
465
- - spec/models/volume_spec.rb
466
- - spec/models/host_cluster_volume_mapping_create_spec.rb
467
- - spec/models/storage_resource_spec.rb
453
+ - spec/models/storage_system_spec.rb
454
+ - spec/models/account_post_request_spec.rb
455
+ - spec/models/job_create_spec.rb
456
+ - spec/models/auto_sde_project_spec.rb
457
+ - spec/models/storage_host_volume_mapping_response_spec.rb
458
+ - spec/models/storage_resource_response_spec.rb
468
459
  - spec/models/account_spec.rb
469
460
  - spec/models/validate_system_spec.rb
461
+ - spec/models/volume_update_spec.rb
462
+ - spec/models/profile_spec.rb
463
+ - spec/models/host_cluster_volume_mapping_spec.rb
464
+ - spec/models/capability_translation_spec.rb
465
+ - spec/models/storage_resource_create_spec.rb
466
+ - spec/models/address_create_spec.rb
467
+ - spec/models/storage_host_create_spec.rb
470
468
  - spec/models/volume_safe_delete_spec.rb
469
+ - spec/models/volume_response_spec.rb
470
+ - spec/models/host_create_spec.rb
471
471
  - spec/models/storage_host_update_spec.rb
472
+ - spec/models/user_update_spec.rb
473
+ - spec/models/address_spec.rb
474
+ - spec/models/service_abstract_capability_value_spec.rb
475
+ - spec/models/snapshot_create_spec.rb
476
+ - spec/models/auto_sde_role_spec.rb
477
+ - spec/models/host_volume_connection_create_spec.rb
478
+ - spec/models/storage_host_wwpn_candidates_spec.rb
479
+ - spec/models/host_cluster_volume_mapping_response_spec.rb
472
480
  - spec/spec_helper.rb