autosde_openapi_client 2.0.3 → 2.0.5

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: 2520158a61bed01502955bd5b080d499182e7f302471b03b704ae92fb260ef92
4
- data.tar.gz: dfd9b4c9ba916f3c6591e51a477a4ebdb3c63ce1e03e5450294023c475fe1510
3
+ metadata.gz: cf939972afe56b5f95761a56cbb0a257a790c2b09d711a75224ca52fbf75ba70
4
+ data.tar.gz: a0b9fc47c3f6f375e67ca50640325231c5d7558ce09db9cfb28eb2ef76fb23c5
5
5
  SHA512:
6
- metadata.gz: 3d37171e3f6890caf6f26135cb86513d028d091269f2834dd2fdaceef8392039e1f4ba427d9fc05647996c1f8bbf28cf03beba24c1074042dd76be9b0e727f99
7
- data.tar.gz: fbca15894dd7aea04710e0a6412a6aa771cf563f37701baf0988d5a622b63b5b68442c89cb450def83c3e23799ccef1f1a86f5db94918b1aa0500f9a05f3529f
6
+ metadata.gz: 9c41e4cf956e8d2afd6ac9af605be25fcaf4122cde39c7afff2ff7fabd89d7f962359ab015ceab3bc8c86623331a751c9afe110c5f46ec0c9cc769f77e3c26e5
7
+ data.tar.gz: 3d3598e596f13f02e58992795092c7eecccf06d419899a305b0577c50374ca9a86ebc8fd4aa4b97cca7286166cdc914cc814987565bab2d7581281a22f9bc415
data/README.md CHANGED
@@ -200,10 +200,6 @@ 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::VolumeSafeDeleteApi* | [**safe_deletes_get**](docs/VolumeSafeDeleteApi.md#safe_deletes_get) | **GET** /safe-deletes |
204
- *AutosdeOpenapiClient::VolumeSafeDeleteApi* | [**safe_deletes_pk_delete**](docs/VolumeSafeDeleteApi.md#safe_deletes_pk_delete) | **DELETE** /safe-deletes/{pk} |
205
- *AutosdeOpenapiClient::VolumeSafeDeleteApi* | [**safe_deletes_pk_get**](docs/VolumeSafeDeleteApi.md#safe_deletes_pk_get) | **GET** /safe-deletes/{pk} |
206
- *AutosdeOpenapiClient::VolumeSafeDeleteApi* | [**safe_deletes_post**](docs/VolumeSafeDeleteApi.md#safe_deletes_post) | **POST** /safe-deletes |
207
203
 
208
204
 
209
205
  ## Documentation for Models
@@ -247,6 +243,7 @@ Class | Method | HTTP request | Description
247
243
  - [AutosdeOpenapiClient::ServiceAbstractCapabilityValueResponse](docs/ServiceAbstractCapabilityValueResponse.md)
248
244
  - [AutosdeOpenapiClient::ServiceCreate](docs/ServiceCreate.md)
249
245
  - [AutosdeOpenapiClient::ServiceResourceAttachment](docs/ServiceResourceAttachment.md)
246
+ - [AutosdeOpenapiClient::ServiceResponse](docs/ServiceResponse.md)
250
247
  - [AutosdeOpenapiClient::Snapshot](docs/Snapshot.md)
251
248
  - [AutosdeOpenapiClient::SnapshotCreate](docs/SnapshotCreate.md)
252
249
  - [AutosdeOpenapiClient::StorageHost](docs/StorageHost.md)
@@ -274,8 +271,6 @@ Class | Method | HTTP request | Description
274
271
  - [AutosdeOpenapiClient::Volume](docs/Volume.md)
275
272
  - [AutosdeOpenapiClient::VolumeCreate](docs/VolumeCreate.md)
276
273
  - [AutosdeOpenapiClient::VolumeResponse](docs/VolumeResponse.md)
277
- - [AutosdeOpenapiClient::VolumeSafeDelete](docs/VolumeSafeDelete.md)
278
- - [AutosdeOpenapiClient::VolumeSafeDeleteCreate](docs/VolumeSafeDeleteCreate.md)
279
274
  - [AutosdeOpenapiClient::VolumeUpdate](docs/VolumeUpdate.md)
280
275
 
281
276
 
@@ -4,7 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **uuid** | [**StorageSystem**](StorageSystem.md) | | [optional] |
7
+ | **resource_type** | **String** | resource_type | [optional] |
8
+ | **storage_system** | [**StorageSystem**](StorageSystem.md) | | [optional] |
8
9
 
9
10
  ## Example
10
11
 
@@ -12,7 +13,8 @@
12
13
  require 'autosde_openapi_client'
13
14
 
14
15
  instance = AutosdeOpenapiClient::RefreshSystem.new(
15
- uuid: null
16
+ resource_type: null,
17
+ storage_system: null
16
18
  )
17
19
  ```
18
20
 
data/docs/ServiceApi.md CHANGED
@@ -13,7 +13,7 @@ All URIs are relative to *http://localhost:9000/site-manager/api/v1/engine*
13
13
 
14
14
  ## services_get
15
15
 
16
- > <Array<Service>> services_get
16
+ > <Array<ServiceResponse>> services_get
17
17
 
18
18
 
19
19
 
@@ -43,7 +43,7 @@ end
43
43
 
44
44
  This returns an Array which contains the response data, status code and headers.
45
45
 
46
- > <Array(<Array<Service>>, Integer, Hash)> services_get_with_http_info
46
+ > <Array(<Array<ServiceResponse>>, Integer, Hash)> services_get_with_http_info
47
47
 
48
48
  ```ruby
49
49
  begin
@@ -51,7 +51,7 @@ begin
51
51
  data, status_code, headers = api_instance.services_get_with_http_info
52
52
  p status_code # => 2xx
53
53
  p headers # => { ... }
54
- p data # => <Array<Service>>
54
+ p data # => <Array<ServiceResponse>>
55
55
  rescue AutosdeOpenapiClient::ApiError => e
56
56
  puts "Error when calling ServiceApi->services_get_with_http_info: #{e}"
57
57
  end
@@ -63,7 +63,7 @@ This endpoint does not need any parameter.
63
63
 
64
64
  ### Return type
65
65
 
66
- [**Array&lt;Service&gt;**](Service.md)
66
+ [**Array&lt;ServiceResponse&gt;**](ServiceResponse.md)
67
67
 
68
68
  ### Authorization
69
69
 
@@ -77,7 +77,7 @@ This endpoint does not need any parameter.
77
77
 
78
78
  ## services_pk_delete
79
79
 
80
- > <AsyncResponse> services_pk_delete(pk)
80
+ > <Service> services_pk_delete(pk)
81
81
 
82
82
 
83
83
 
@@ -108,7 +108,7 @@ end
108
108
 
109
109
  This returns an Array which contains the response data, status code and headers.
110
110
 
111
- > <Array(<AsyncResponse>, Integer, Hash)> services_pk_delete_with_http_info(pk)
111
+ > <Array(<Service>, Integer, Hash)> services_pk_delete_with_http_info(pk)
112
112
 
113
113
  ```ruby
114
114
  begin
@@ -116,7 +116,7 @@ begin
116
116
  data, status_code, headers = api_instance.services_pk_delete_with_http_info(pk)
117
117
  p status_code # => 2xx
118
118
  p headers # => { ... }
119
- p data # => <AsyncResponse>
119
+ p data # => <Service>
120
120
  rescue AutosdeOpenapiClient::ApiError => e
121
121
  puts "Error when calling ServiceApi->services_pk_delete_with_http_info: #{e}"
122
122
  end
@@ -130,7 +130,7 @@ end
130
130
 
131
131
  ### Return type
132
132
 
133
- [**AsyncResponse**](AsyncResponse.md)
133
+ [**Service**](Service.md)
134
134
 
135
135
  ### Authorization
136
136
 
@@ -280,7 +280,7 @@ end
280
280
 
281
281
  ## services_post
282
282
 
283
- > <AsyncResponse> services_post(service_create)
283
+ > <ServiceResponse> services_post(service_create)
284
284
 
285
285
 
286
286
 
@@ -311,7 +311,7 @@ end
311
311
 
312
312
  This returns an Array which contains the response data, status code and headers.
313
313
 
314
- > <Array(<AsyncResponse>, Integer, Hash)> services_post_with_http_info(service_create)
314
+ > <Array(<ServiceResponse>, Integer, Hash)> services_post_with_http_info(service_create)
315
315
 
316
316
  ```ruby
317
317
  begin
@@ -319,7 +319,7 @@ begin
319
319
  data, status_code, headers = api_instance.services_post_with_http_info(service_create)
320
320
  p status_code # => 2xx
321
321
  p headers # => { ... }
322
- p data # => <AsyncResponse>
322
+ p data # => <ServiceResponse>
323
323
  rescue AutosdeOpenapiClient::ApiError => e
324
324
  puts "Error when calling ServiceApi->services_post_with_http_info: #{e}"
325
325
  end
@@ -333,7 +333,7 @@ end
333
333
 
334
334
  ### Return type
335
335
 
336
- [**AsyncResponse**](AsyncResponse.md)
336
+ [**ServiceResponse**](ServiceResponse.md)
337
337
 
338
338
  ### Authorization
339
339
 
@@ -0,0 +1,38 @@
1
+ # AutosdeOpenapiClient::ServiceResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **capability_values** | [**ServiceAbstractCapabilityValue**](ServiceAbstractCapabilityValue.md) | | [optional] |
8
+ | **capability_values_json** | **String** | capability_values_json | [optional] |
9
+ | **component_state** | **String** | component_state | [optional] |
10
+ | **description** | **String** | description | [optional][default to &#39;&#39;] |
11
+ | **name** | **String** | name | [optional] |
12
+ | **profile** | **String** | !!uuid of profile | [optional] |
13
+ | **project** | **String** | !!uuid of project | [optional] |
14
+ | **provisioning_strategy** | **String** | !!uuid of provisioning_strategy | [optional] |
15
+ | **resource_service** | **Boolean** | resource_service | [optional][default to false] |
16
+ | **uuid** | **String** | uuid | [optional] |
17
+ | **version** | **Integer** | The version of the service | [optional][default to 1] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'autosde_openapi_client'
23
+
24
+ instance = AutosdeOpenapiClient::ServiceResponse.new(
25
+ capability_values: null,
26
+ capability_values_json: null,
27
+ component_state: null,
28
+ description: null,
29
+ name: null,
30
+ profile: null,
31
+ project: null,
32
+ provisioning_strategy: null,
33
+ resource_service: null,
34
+ uuid: null,
35
+ version: null
36
+ )
37
+ ```
38
+
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **advanced_attributes_map** | **String** | advanced_attributes_map | [optional] |
8
+ | **capability_values_json** | **String** | capability_values_json | [optional] |
8
9
  | **component_state** | **String** | component_state | [optional] |
9
10
  | **logical_free** | **Integer** | logical_free | [optional][default to 0] |
10
11
  | **logical_total** | **Integer** | The Total logical capacity of this resource (gb) | [optional][default to 0] |
@@ -21,6 +22,7 @@ require 'autosde_openapi_client'
21
22
 
22
23
  instance = AutosdeOpenapiClient::StorageResourceResponse.new(
23
24
  advanced_attributes_map: null,
25
+ capability_values_json: null,
24
26
  component_state: null,
25
27
  logical_free: null,
26
28
  logical_total: null,
data/docs/VolumeCreate.md CHANGED
@@ -8,7 +8,9 @@
8
8
  | **component_state** | **String** | component_state | [optional] |
9
9
  | **count** | **Integer** | count | [optional][default to 1] |
10
10
  | **name** | **String** | name | [optional] |
11
- | **service** | **String** | !!uuid of service | [optional] |
11
+ | **resources** | **Array&lt;String&gt;** | resources | [optional] |
12
+ | **service** | [**Service**](Service.md) | | [optional] |
13
+ | **service_name** | **String** | service_name | [optional][default to &#39;null&#39;] |
12
14
  | **size** | **Integer** | size | [optional] |
13
15
  | **status** | **String** | status | [optional] |
14
16
  | **unmapped_since** | **Time** | unmapped_since | [optional] |
@@ -25,7 +27,9 @@ instance = AutosdeOpenapiClient::VolumeCreate.new(
25
27
  component_state: null,
26
28
  count: null,
27
29
  name: null,
30
+ resources: null,
28
31
  service: null,
32
+ service_name: null,
29
33
  size: null,
30
34
  status: null,
31
35
  unmapped_since: null,
@@ -20,14 +20,14 @@ module AutosdeOpenapiClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # @param [Hash] opts the optional parameters
23
- # @return [Array<Service>]
23
+ # @return [Array<ServiceResponse>]
24
24
  def services_get(opts = {})
25
25
  data, _status_code, _headers = services_get_with_http_info(opts)
26
26
  data
27
27
  end
28
28
 
29
29
  # @param [Hash] opts the optional parameters
30
- # @return [Array<(Array<Service>, Integer, Hash)>] Array<Service> data, response status code and response headers
30
+ # @return [Array<(Array<ServiceResponse>, Integer, Hash)>] Array<ServiceResponse> data, response status code and response headers
31
31
  def services_get_with_http_info(opts = {})
32
32
  if @api_client.config.debugging
33
33
  @api_client.config.logger.debug 'Calling API: ServiceApi.services_get ...'
@@ -50,7 +50,7 @@ module AutosdeOpenapiClient
50
50
  post_body = opts[:debug_body]
51
51
 
52
52
  # return_type
53
- return_type = opts[:debug_return_type] || 'Array<Service>'
53
+ return_type = opts[:debug_return_type] || 'Array<ServiceResponse>'
54
54
 
55
55
  # auth_names
56
56
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -74,7 +74,7 @@ module AutosdeOpenapiClient
74
74
 
75
75
  # @param pk [Integer]
76
76
  # @param [Hash] opts the optional parameters
77
- # @return [AsyncResponse]
77
+ # @return [Service]
78
78
  def services_pk_delete(pk, opts = {})
79
79
  data, _status_code, _headers = services_pk_delete_with_http_info(pk, opts)
80
80
  data
@@ -82,7 +82,7 @@ module AutosdeOpenapiClient
82
82
 
83
83
  # @param pk [Integer]
84
84
  # @param [Hash] opts the optional parameters
85
- # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
85
+ # @return [Array<(Service, Integer, Hash)>] Service data, response status code and response headers
86
86
  def services_pk_delete_with_http_info(pk, opts = {})
87
87
  if @api_client.config.debugging
88
88
  @api_client.config.logger.debug 'Calling API: ServiceApi.services_pk_delete ...'
@@ -109,7 +109,7 @@ module AutosdeOpenapiClient
109
109
  post_body = opts[:debug_body]
110
110
 
111
111
  # return_type
112
- return_type = opts[:debug_return_type] || 'AsyncResponse'
112
+ return_type = opts[:debug_return_type] || 'Service'
113
113
 
114
114
  # auth_names
115
115
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -259,7 +259,7 @@ module AutosdeOpenapiClient
259
259
 
260
260
  # @param service_create [ServiceCreate]
261
261
  # @param [Hash] opts the optional parameters
262
- # @return [AsyncResponse]
262
+ # @return [ServiceResponse]
263
263
  def services_post(service_create, opts = {})
264
264
  data, _status_code, _headers = services_post_with_http_info(service_create, opts)
265
265
  data
@@ -267,7 +267,7 @@ module AutosdeOpenapiClient
267
267
 
268
268
  # @param service_create [ServiceCreate]
269
269
  # @param [Hash] opts the optional parameters
270
- # @return [Array<(AsyncResponse, Integer, Hash)>] AsyncResponse data, response status code and response headers
270
+ # @return [Array<(ServiceResponse, Integer, Hash)>] ServiceResponse data, response status code and response headers
271
271
  def services_post_with_http_info(service_create, opts = {})
272
272
  if @api_client.config.debugging
273
273
  @api_client.config.logger.debug 'Calling API: ServiceApi.services_post ...'
@@ -296,7 +296,7 @@ module AutosdeOpenapiClient
296
296
  post_body = opts[:debug_body] || @api_client.object_to_http_body(service_create)
297
297
 
298
298
  # return_type
299
- return_type = opts[:debug_return_type] || 'AsyncResponse'
299
+ return_type = opts[:debug_return_type] || 'ServiceResponse'
300
300
 
301
301
  # auth_names
302
302
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
@@ -16,12 +16,38 @@ require 'time'
16
16
  module AutosdeOpenapiClient
17
17
  # RefreshSystem object represents refreshing of the storage system.
18
18
  class RefreshSystem
19
- attr_accessor :uuid
19
+ # resource_type
20
+ attr_accessor :resource_type
21
+
22
+ attr_accessor :storage_system
23
+
24
+ class EnumAttributeValidator
25
+ attr_reader :datatype
26
+ attr_reader :allowable_values
27
+
28
+ def initialize(datatype, allowable_values)
29
+ @allowable_values = allowable_values.map do |value|
30
+ case datatype.to_s
31
+ when /Integer/i
32
+ value.to_i
33
+ when /Float/i
34
+ value.to_f
35
+ else
36
+ value
37
+ end
38
+ end
39
+ end
40
+
41
+ def valid?(value)
42
+ !value || allowable_values.include?(value)
43
+ end
44
+ end
20
45
 
21
46
  # Attribute mapping from ruby-style variable name to JSON key.
22
47
  def self.attribute_map
23
48
  {
24
- :'uuid' => :'uuid'
49
+ :'resource_type' => :'resource_type',
50
+ :'storage_system' => :'storage_system'
25
51
  }
26
52
  end
27
53
 
@@ -33,7 +59,8 @@ module AutosdeOpenapiClient
33
59
  # Attribute type mapping.
34
60
  def self.openapi_types
35
61
  {
36
- :'uuid' => :'StorageSystem'
62
+ :'resource_type' => :'String',
63
+ :'storage_system' => :'StorageSystem'
37
64
  }
38
65
  end
39
66
 
@@ -58,8 +85,12 @@ module AutosdeOpenapiClient
58
85
  h[k.to_sym] = v
59
86
  }
60
87
 
61
- if attributes.key?(:'uuid')
62
- self.uuid = attributes[:'uuid']
88
+ if attributes.key?(:'resource_type')
89
+ self.resource_type = attributes[:'resource_type']
90
+ end
91
+
92
+ if attributes.key?(:'storage_system')
93
+ self.storage_system = attributes[:'storage_system']
63
94
  end
64
95
  end
65
96
 
@@ -73,15 +104,28 @@ module AutosdeOpenapiClient
73
104
  # Check to see if the all the properties in the model are valid
74
105
  # @return true if the model is valid
75
106
  def valid?
107
+ resource_type_validator = EnumAttributeValidator.new('String', ["system_resources", "volumes", "hosts", "events"])
108
+ return false unless resource_type_validator.valid?(@resource_type)
76
109
  true
77
110
  end
78
111
 
112
+ # Custom attribute writer method checking allowed values (enum).
113
+ # @param [Object] resource_type Object to be assigned
114
+ def resource_type=(resource_type)
115
+ validator = EnumAttributeValidator.new('String', ["system_resources", "volumes", "hosts", "events"])
116
+ unless validator.valid?(resource_type)
117
+ fail ArgumentError, "invalid value for \"resource_type\", must be one of #{validator.allowable_values}."
118
+ end
119
+ @resource_type = resource_type
120
+ end
121
+
79
122
  # Checks equality by comparing each attribute.
80
123
  # @param [Object] Object to be compared
81
124
  def ==(o)
82
125
  return true if self.equal?(o)
83
126
  self.class == o.class &&
84
- uuid == o.uuid
127
+ resource_type == o.resource_type &&
128
+ storage_system == o.storage_system
85
129
  end
86
130
 
87
131
  # @see the `==` method
@@ -93,7 +137,7 @@ module AutosdeOpenapiClient
93
137
  # Calculates hash code according to all attributes.
94
138
  # @return [Integer] Hash code
95
139
  def hash
96
- [uuid].hash
140
+ [resource_type, storage_system].hash
97
141
  end
98
142
 
99
143
  # Builds the object from hash
@@ -14,22 +14,76 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module AutosdeOpenapiClient
17
- # Volume safe delete api
18
- class VolumeSafeDelete
19
- # task_id
20
- attr_accessor :task_id
17
+ # TODO add description
18
+ class ServiceResponse
19
+ attr_accessor :capability_values
20
+
21
+ # capability_values_json
22
+ attr_accessor :capability_values_json
23
+
24
+ # component_state
25
+ attr_accessor :component_state
26
+
27
+ # description
28
+ attr_accessor :description
29
+
30
+ # name
31
+ attr_accessor :name
32
+
33
+ # !!uuid of profile
34
+ attr_accessor :profile
35
+
36
+ # !!uuid of project
37
+ attr_accessor :project
38
+
39
+ # !!uuid of provisioning_strategy
40
+ attr_accessor :provisioning_strategy
41
+
42
+ # resource_service
43
+ attr_accessor :resource_service
21
44
 
22
45
  # uuid
23
46
  attr_accessor :uuid
24
47
 
25
- attr_accessor :volume
48
+ # The version of the service
49
+ attr_accessor :version
50
+
51
+ class EnumAttributeValidator
52
+ attr_reader :datatype
53
+ attr_reader :allowable_values
54
+
55
+ def initialize(datatype, allowable_values)
56
+ @allowable_values = allowable_values.map do |value|
57
+ case datatype.to_s
58
+ when /Integer/i
59
+ value.to_i
60
+ when /Float/i
61
+ value.to_f
62
+ else
63
+ value
64
+ end
65
+ end
66
+ end
67
+
68
+ def valid?(value)
69
+ !value || allowable_values.include?(value)
70
+ end
71
+ end
26
72
 
27
73
  # Attribute mapping from ruby-style variable name to JSON key.
28
74
  def self.attribute_map
29
75
  {
30
- :'task_id' => :'task_id',
76
+ :'capability_values' => :'capability_values',
77
+ :'capability_values_json' => :'capability_values_json',
78
+ :'component_state' => :'component_state',
79
+ :'description' => :'description',
80
+ :'name' => :'name',
81
+ :'profile' => :'profile',
82
+ :'project' => :'project',
83
+ :'provisioning_strategy' => :'provisioning_strategy',
84
+ :'resource_service' => :'resource_service',
31
85
  :'uuid' => :'uuid',
32
- :'volume' => :'volume'
86
+ :'version' => :'version'
33
87
  }
34
88
  end
35
89
 
@@ -41,9 +95,17 @@ module AutosdeOpenapiClient
41
95
  # Attribute type mapping.
42
96
  def self.openapi_types
43
97
  {
44
- :'task_id' => :'String',
98
+ :'capability_values' => :'ServiceAbstractCapabilityValue',
99
+ :'capability_values_json' => :'String',
100
+ :'component_state' => :'String',
101
+ :'description' => :'String',
102
+ :'name' => :'String',
103
+ :'profile' => :'String',
104
+ :'project' => :'String',
105
+ :'provisioning_strategy' => :'String',
106
+ :'resource_service' => :'Boolean',
45
107
  :'uuid' => :'String',
46
- :'volume' => :'Volume'
108
+ :'version' => :'Integer'
47
109
  }
48
110
  end
49
111
 
@@ -57,27 +119,65 @@ module AutosdeOpenapiClient
57
119
  # @param [Hash] attributes Model attributes in the form of hash
58
120
  def initialize(attributes = {})
59
121
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::VolumeSafeDelete` initialize method"
122
+ fail ArgumentError, "The input argument (attributes) must be a hash in `AutosdeOpenapiClient::ServiceResponse` initialize method"
61
123
  end
62
124
 
63
125
  # check to see if the attribute exists and convert string to symbol for hash key
64
126
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
127
  if (!self.class.attribute_map.key?(k.to_sym))
66
- fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::VolumeSafeDelete`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
128
+ fail ArgumentError, "`#{k}` is not a valid attribute in `AutosdeOpenapiClient::ServiceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
129
  end
68
130
  h[k.to_sym] = v
69
131
  }
70
132
 
71
- if attributes.key?(:'task_id')
72
- self.task_id = attributes[:'task_id']
133
+ if attributes.key?(:'capability_values')
134
+ self.capability_values = attributes[:'capability_values']
135
+ end
136
+
137
+ if attributes.key?(:'capability_values_json')
138
+ self.capability_values_json = attributes[:'capability_values_json']
139
+ end
140
+
141
+ if attributes.key?(:'component_state')
142
+ self.component_state = attributes[:'component_state']
143
+ end
144
+
145
+ if attributes.key?(:'description')
146
+ self.description = attributes[:'description']
147
+ else
148
+ self.description = ''
149
+ end
150
+
151
+ if attributes.key?(:'name')
152
+ self.name = attributes[:'name']
153
+ end
154
+
155
+ if attributes.key?(:'profile')
156
+ self.profile = attributes[:'profile']
157
+ end
158
+
159
+ if attributes.key?(:'project')
160
+ self.project = attributes[:'project']
161
+ end
162
+
163
+ if attributes.key?(:'provisioning_strategy')
164
+ self.provisioning_strategy = attributes[:'provisioning_strategy']
165
+ end
166
+
167
+ if attributes.key?(:'resource_service')
168
+ self.resource_service = attributes[:'resource_service']
169
+ else
170
+ self.resource_service = false
73
171
  end
74
172
 
75
173
  if attributes.key?(:'uuid')
76
174
  self.uuid = attributes[:'uuid']
77
175
  end
78
176
 
79
- if attributes.key?(:'volume')
80
- self.volume = attributes[:'volume']
177
+ if attributes.key?(:'version')
178
+ self.version = attributes[:'version']
179
+ else
180
+ self.version = 1
81
181
  end
82
182
  end
83
183
 
@@ -85,23 +185,48 @@ module AutosdeOpenapiClient
85
185
  # @return Array for valid properties with the reasons
86
186
  def list_invalid_properties
87
187
  invalid_properties = Array.new
188
+ if !@component_state.nil? && @component_state.to_s.length > 32
189
+ invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
190
+ end
191
+
88
192
  invalid_properties
89
193
  end
90
194
 
91
195
  # Check to see if the all the properties in the model are valid
92
196
  # @return true if the model is valid
93
197
  def valid?
198
+ component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
199
+ return false unless component_state_validator.valid?(@component_state)
200
+ return false if !@component_state.nil? && @component_state.to_s.length > 32
94
201
  true
95
202
  end
96
203
 
204
+ # Custom attribute writer method checking allowed values (enum).
205
+ # @param [Object] component_state Object to be assigned
206
+ def component_state=(component_state)
207
+ validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
208
+ unless validator.valid?(component_state)
209
+ fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
210
+ end
211
+ @component_state = component_state
212
+ end
213
+
97
214
  # Checks equality by comparing each attribute.
98
215
  # @param [Object] Object to be compared
99
216
  def ==(o)
100
217
  return true if self.equal?(o)
101
218
  self.class == o.class &&
102
- task_id == o.task_id &&
219
+ capability_values == o.capability_values &&
220
+ capability_values_json == o.capability_values_json &&
221
+ component_state == o.component_state &&
222
+ description == o.description &&
223
+ name == o.name &&
224
+ profile == o.profile &&
225
+ project == o.project &&
226
+ provisioning_strategy == o.provisioning_strategy &&
227
+ resource_service == o.resource_service &&
103
228
  uuid == o.uuid &&
104
- volume == o.volume
229
+ version == o.version
105
230
  end
106
231
 
107
232
  # @see the `==` method
@@ -113,7 +238,7 @@ module AutosdeOpenapiClient
113
238
  # Calculates hash code according to all attributes.
114
239
  # @return [Integer] Hash code
115
240
  def hash
116
- [task_id, uuid, volume].hash
241
+ [capability_values, capability_values_json, component_state, description, name, profile, project, provisioning_strategy, resource_service, uuid, version].hash
117
242
  end
118
243
 
119
244
  # Builds the object from hash