autosde_openapi_client 2.1.1 → 2.1.2

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: f0a7b19be852b241a73fc9da1b825f58fbec245fdd51007c41601eda1ce70612
4
- data.tar.gz: 2aa1028f2a5c69a155cb45eea7814ff8357c134f3f44a53e5b6b7c3e5b86f26c
3
+ metadata.gz: 489bace58d81f5025197702fe1294f93c5c670f8a0ef47ea001792b0fceedbb6
4
+ data.tar.gz: 303783211658c054c4def2257fa24ba873b3db5793fd6663b46cf4ecc460eab4
5
5
  SHA512:
6
- metadata.gz: ca3acc394f94be6c40af3d63f2381a8c97fa041de38d785158c7e61d4af8f837b8ae3ad1ee6c9f17020a85f86443803d2255dd7ffe1b1de573ed562b435462af
7
- data.tar.gz: 84be160c29c7361f616fbf9dad920b4062579a67e3d2e7b34383abf683aa3e82496703a20e6d54bfde3bcb19fa64126847075ef1096af0f2b2c9d7465d0b6cb4
6
+ metadata.gz: 932da001bb150e283b0ac57654b8022b9691f7a23dbbce5e176225d4b9e5c20f1dcfd5a0b60951a1b93c262b83768ab2ff31701d24562b16e5526fe81db87bb0
7
+ data.tar.gz: 912cc41116263c386bd348100fc3696fadbe45b7d17ede158de4e586da97106159023a6bb725b97474915c7f1e1d75c472742e56a8dfcede2342762b0e91e769
data/docs/StorageHost.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **addresses** | [**Address**](Address.md) | | [optional] |
7
8
  | **component_state** | **String** | component_state | [optional] |
8
9
  | **description** | **String** | description | [optional] |
9
10
  | **host_cluster** | [**HostCluster**](HostCluster.md) | | [optional] |
@@ -21,6 +22,7 @@
21
22
  require 'autosde_openapi_client'
22
23
 
23
24
  instance = AutosdeOpenapiClient::StorageHost.new(
25
+ addresses: null,
24
26
  component_state: null,
25
27
  description: null,
26
28
  host_cluster: null,
@@ -5,9 +5,9 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **component_state** | **String** | component_state | [optional] |
8
- | **name** | **String** | name | [optional][default to 'IBM_FlashSystems'] |
8
+ | **name** | **String** | name | [optional] |
9
9
  | **short_version** | **String** | short_version | [optional] |
10
- | **super_type** | **String** | super_type | [optional][default to 'null'] |
10
+ | **super_type** | **Integer** | super_type | [optional] |
11
11
  | **uuid** | **String** | uuid | [optional] |
12
12
  | **version** | **String** | SystemType version | [optional] |
13
13
 
@@ -16,6 +16,8 @@ require 'time'
16
16
  module AutosdeOpenapiClient
17
17
  # StorageHost
18
18
  class StorageHost
19
+ attr_accessor :addresses
20
+
19
21
  # component_state
20
22
  attr_accessor :component_state
21
23
 
@@ -68,6 +70,7 @@ module AutosdeOpenapiClient
68
70
  # Attribute mapping from ruby-style variable name to JSON key.
69
71
  def self.attribute_map
70
72
  {
73
+ :'addresses' => :'addresses',
71
74
  :'component_state' => :'component_state',
72
75
  :'description' => :'description',
73
76
  :'host_cluster' => :'host_cluster',
@@ -89,6 +92,7 @@ module AutosdeOpenapiClient
89
92
  # Attribute type mapping.
90
93
  def self.openapi_types
91
94
  {
95
+ :'addresses' => :'Address',
92
96
  :'component_state' => :'String',
93
97
  :'description' => :'String',
94
98
  :'host_cluster' => :'HostCluster',
@@ -123,6 +127,10 @@ module AutosdeOpenapiClient
123
127
  h[k.to_sym] = v
124
128
  }
125
129
 
130
+ if attributes.key?(:'addresses')
131
+ self.addresses = attributes[:'addresses']
132
+ end
133
+
126
134
  if attributes.key?(:'component_state')
127
135
  self.component_state = attributes[:'component_state']
128
136
  end
@@ -199,6 +207,7 @@ module AutosdeOpenapiClient
199
207
  def ==(o)
200
208
  return true if self.equal?(o)
201
209
  self.class == o.class &&
210
+ addresses == o.addresses &&
202
211
  component_state == o.component_state &&
203
212
  description == o.description &&
204
213
  host_cluster == o.host_cluster &&
@@ -220,7 +229,7 @@ module AutosdeOpenapiClient
220
229
  # Calculates hash code according to all attributes.
221
230
  # @return [Integer] Hash code
222
231
  def hash
223
- [component_state, description, host_cluster, host_cluster_name, io_groups, name, status, storage_system, uuid, volumes].hash
232
+ [addresses, component_state, description, host_cluster, host_cluster_name, io_groups, name, status, storage_system, uuid, volumes].hash
224
233
  end
225
234
 
226
235
  # Builds the object from hash
@@ -79,7 +79,7 @@ module AutosdeOpenapiClient
79
79
  :'component_state' => :'String',
80
80
  :'name' => :'String',
81
81
  :'short_version' => :'String',
82
- :'super_type' => :'String',
82
+ :'super_type' => :'Integer',
83
83
  :'uuid' => :'String',
84
84
  :'version' => :'String'
85
85
  }
@@ -112,8 +112,6 @@ module AutosdeOpenapiClient
112
112
 
113
113
  if attributes.key?(:'name')
114
114
  self.name = attributes[:'name']
115
- else
116
- self.name = 'IBM_FlashSystems'
117
115
  end
118
116
 
119
117
  if attributes.key?(:'short_version')
@@ -122,8 +120,6 @@ module AutosdeOpenapiClient
122
120
 
123
121
  if attributes.key?(:'super_type')
124
122
  self.super_type = attributes[:'super_type']
125
- else
126
- self.super_type = 'null'
127
123
  end
128
124
 
129
125
  if attributes.key?(:'uuid')
@@ -143,10 +139,6 @@ module AutosdeOpenapiClient
143
139
  invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
144
140
  end
145
141
 
146
- if !@name.nil? && @name.to_s.length > 255
147
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 255.')
148
- end
149
-
150
142
  if !@short_version.nil? && @short_version.to_s.length > 255
151
143
  invalid_properties.push('invalid value for "short_version", the character length must be smaller than or equal to 255.')
152
144
  end
@@ -160,9 +152,6 @@ module AutosdeOpenapiClient
160
152
  component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
161
153
  return false unless component_state_validator.valid?(@component_state)
162
154
  return false if !@component_state.nil? && @component_state.to_s.length > 32
163
- name_validator = EnumAttributeValidator.new('String', ["IBM_FlashSystems", "a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00"])
164
- return false unless name_validator.valid?(@name)
165
- return false if !@name.nil? && @name.to_s.length > 255
166
155
  return false if !@short_version.nil? && @short_version.to_s.length > 255
167
156
  true
168
157
  end
@@ -177,16 +166,6 @@ module AutosdeOpenapiClient
177
166
  @component_state = component_state
178
167
  end
179
168
 
180
- # Custom attribute writer method checking allowed values (enum).
181
- # @param [Object] name Object to be assigned
182
- def name=(name)
183
- validator = EnumAttributeValidator.new('String', ["IBM_FlashSystems", "a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00"])
184
- unless validator.valid?(name)
185
- fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
186
- end
187
- @name = name
188
- end
189
-
190
169
  # Custom attribute writer method with validation
191
170
  # @param [Object] short_version Value to be assigned
192
171
  def short_version=(short_version)
@@ -3,7 +3,7 @@
3
3
 
4
4
  #Site Manager API
5
5
 
6
- The version of the OpenAPI document: 2.1.1
6
+ The version of the OpenAPI document: 2.1.2
7
7
  Contact: autosde@il.ibm.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 5.0.0
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.0
11
11
  =end
12
12
 
13
13
  module AutosdeOpenapiClient
14
- VERSION = '2.1.1'
14
+ VERSION = '2.1.2'
15
15
  end
@@ -25,6 +25,12 @@ describe AutosdeOpenapiClient::StorageHost do
25
25
  expect(instance).to be_instance_of(AutosdeOpenapiClient::StorageHost)
26
26
  end
27
27
  end
28
+ describe 'test attribute "addresses"' 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 "component_state"' do
29
35
  it 'should work' do
30
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -38,10 +38,6 @@ describe AutosdeOpenapiClient::SystemTypeCreate do
38
38
  describe 'test attribute "name"' do
39
39
  it 'should work' do
40
40
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["IBM_FlashSystems", "a_line", "xiv", "ds8000", "vmax", "netapp", "ds8x00"])
42
- # validator.allowable_values.each do |value|
43
- # expect { instance.name = value }.not_to raise_error
44
- # end
45
41
  end
46
42
  end
47
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: autosde_openapi_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -398,107 +398,107 @@ signing_key:
398
398
  specification_version: 4
399
399
  summary: Site Manager API Ruby Gem
400
400
  test_files:
401
+ - spec/api/auto_sde_project_api_spec.rb
402
+ - spec/api/volume_api_spec.rb
401
403
  - spec/api/host_volume_connection_api_spec.rb
402
- - spec/api/authentication_api_spec.rb
403
- - spec/api/address_api_spec.rb
404
- - spec/api/host_cluster_api_spec.rb
405
- - spec/api/host_api_spec.rb
406
- - spec/api/host_cluster_volume_mapping_api_spec.rb
407
- - spec/api/provisioning_strategy_api_spec.rb
408
404
  - spec/api/host_cluster_membership_api_spec.rb
409
405
  - spec/api/capability_translation_api_spec.rb
410
406
  - spec/api/service_abstract_capability_value_api_spec.rb
411
- - spec/api/service_api_spec.rb
412
- - spec/api/auto_sde_role_api_spec.rb
413
- - spec/api/service_resource_attachment_api_spec.rb
414
- - spec/api/storage_host_wwpn_candidates_api_spec.rb
415
- - spec/api/celery_config_api_spec.rb
416
- - spec/api/system_type_api_spec.rb
407
+ - spec/api/abstract_capability_api_spec.rb
408
+ - spec/api/storage_system_api_spec.rb
417
409
  - spec/api/refresh_system_api_spec.rb
410
+ - spec/api/user_api_spec.rb
411
+ - spec/api/host_api_spec.rb
412
+ - spec/api/authentication_api_spec.rb
418
413
  - spec/api/storage_resource_api_spec.rb
419
- - spec/api/job_api_spec.rb
420
- - spec/api/storage_hosts_mapping_api_spec.rb
421
- - spec/api/validate_system_api_spec.rb
422
- - spec/api/account_api_spec.rb
414
+ - spec/api/host_cluster_api_spec.rb
423
415
  - spec/api/native_capability_api_spec.rb
416
+ - spec/api/provisioning_strategy_api_spec.rb
417
+ - spec/api/address_api_spec.rb
418
+ - spec/api/account_api_spec.rb
419
+ - spec/api/auto_sde_role_api_spec.rb
420
+ - spec/api/system_type_api_spec.rb
421
+ - spec/api/host_cluster_volume_mapping_api_spec.rb
424
422
  - spec/api/event_api_spec.rb
425
- - spec/api/auto_sde_project_api_spec.rb
426
- - spec/api/snapshot_api_spec.rb
427
- - spec/api/storage_host_api_spec.rb
428
- - spec/api/abstract_capability_api_spec.rb
429
- - spec/api/user_api_spec.rb
430
- - spec/api/volume_api_spec.rb
423
+ - spec/api/storage_hosts_mapping_api_spec.rb
424
+ - spec/api/celery_config_api_spec.rb
425
+ - spec/api/job_api_spec.rb
431
426
  - spec/api/profile_api_spec.rb
432
- - spec/api/storage_system_api_spec.rb
427
+ - spec/api/storage_host_api_spec.rb
428
+ - spec/api/service_api_spec.rb
429
+ - spec/api/storage_host_wwpn_candidates_api_spec.rb
430
+ - spec/api/service_resource_attachment_api_spec.rb
431
+ - spec/api/validate_system_api_spec.rb
432
+ - spec/api/snapshot_api_spec.rb
433
433
  - spec/api_client_spec.rb
434
434
  - spec/configuration_spec.rb
435
- - spec/models/system_type_create_spec.rb
436
- - spec/models/event_response_spec.rb
437
- - spec/models/volume_response_spec.rb
438
- - spec/models/volume_spec.rb
435
+ - spec/models/storage_host_spec.rb
436
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
437
+ - spec/models/storage_hosts_mapping_create_spec.rb
438
+ - spec/models/service_create_spec.rb
439
439
  - spec/models/refresh_system_spec.rb
440
440
  - spec/models/async_response_spec.rb
441
- - spec/models/auto_sde_project_spec.rb
442
- - spec/models/host_cluster_response_spec.rb
443
- - spec/models/capability_translation_spec.rb
444
- - spec/models/auto_sde_role_spec.rb
445
- - spec/models/event_spec.rb
446
- - spec/models/address_create_spec.rb
441
+ - spec/models/user_spec.rb
447
442
  - spec/models/auth_response_spec.rb
443
+ - spec/models/storage_system_update_spec.rb
444
+ - spec/models/system_type_create_spec.rb
445
+ - spec/models/storage_system_response_spec.rb
446
+ - spec/models/volume_spec.rb
447
+ - spec/models/account_post_request_spec.rb
448
+ - spec/models/storage_system_create_spec.rb
449
+ - spec/models/storage_system_spec.rb
450
+ - spec/models/snapshot_spec.rb
451
+ - spec/models/address_create_spec.rb
452
+ - spec/models/storage_resource_update_spec.rb
453
+ - spec/models/host_cluster_create_spec.rb
448
454
  - spec/models/host_volume_connection_spec.rb
449
- - spec/models/host_spec.rb
455
+ - spec/models/job_create_spec.rb
456
+ - spec/models/snapshot_create_spec.rb
450
457
  - spec/models/storage_resource_response_spec.rb
451
- - spec/models/abstract_capability_response_spec.rb
452
- - spec/models/storage_resource_update_spec.rb
458
+ - spec/models/host_create_spec.rb
459
+ - spec/models/storage_host_wwpn_candidates_spec.rb
453
460
  - spec/models/service_abstract_capability_value_response_spec.rb
454
- - spec/models/service_spec.rb
455
- - spec/models/storage_hosts_mapping_response_spec.rb
456
- - spec/models/snapshot_spec.rb
457
- - spec/models/host_cluster_volume_mapping_spec.rb
458
- - spec/models/job_create_spec.rb
459
- - spec/models/service_create_spec.rb
460
461
  - spec/models/validate_system_spec.rb
461
- - spec/models/system_type_response_spec.rb
462
+ - spec/models/host_cluster_volume_mapping_spec.rb
462
463
  - spec/models/celery_config_spec.rb
463
- - spec/models/storage_hosts_mapping_create_spec.rb
464
- - spec/models/storage_system_response_spec.rb
465
- - spec/models/storage_system_spec.rb
466
- - spec/models/account_post_response_spec.rb
464
+ - spec/models/profile_spec.rb
465
+ - spec/models/user_update_spec.rb
466
+ - spec/models/native_capability_spec.rb
467
+ - spec/models/host_spec.rb
468
+ - spec/models/host_volume_connection_create_spec.rb
469
+ - spec/models/job_spec.rb
470
+ - spec/models/system_type_spec.rb
471
+ - spec/models/provisioning_strategy_spec.rb
472
+ - spec/models/address_spec.rb
473
+ - spec/models/capability_translation_spec.rb
474
+ - spec/models/storage_resource_spec.rb
475
+ - spec/models/user_create_spec.rb
476
+ - spec/models/volume_response_spec.rb
467
477
  - spec/models/storage_host_update_spec.rb
468
- - spec/models/user_spec.rb
469
- - spec/models/storage_host_spec.rb
478
+ - spec/models/abstract_capability_response_spec.rb
479
+ - spec/models/storage_resource_create_spec.rb
470
480
  - spec/models/volume_update_spec.rb
471
- - spec/models/job_spec.rb
472
- - spec/models/storage_system_create_spec.rb
473
- - spec/models/host_cluster_volume_mapping_create_spec.rb
474
- - spec/models/account_post_request_spec.rb
475
- - spec/models/host_volume_connection_create_spec.rb
476
- - spec/models/profile_spec.rb
477
- - spec/models/storage_host_wwpn_candidates_spec.rb
478
- - spec/models/abstract_capability_spec.rb
481
+ - spec/models/storage_hosts_mapping_response_spec.rb
482
+ - spec/models/service_response_spec.rb
479
483
  - spec/models/storage_hosts_mapping_spec.rb
480
- - spec/models/host_cluster_membership_spec.rb
484
+ - spec/models/storage_host_response_spec.rb
485
+ - spec/models/auto_sde_project_spec.rb
481
486
  - spec/models/authentication_spec.rb
482
- - spec/models/address_spec.rb
483
- - spec/models/service_response_spec.rb
484
- - spec/models/service_abstract_capability_value_spec.rb
485
- - spec/models/snapshot_create_spec.rb
486
- - spec/models/storage_resource_spec.rb
487
- - spec/models/system_type_spec.rb
488
487
  - spec/models/host_cluster_spec.rb
489
- - spec/models/host_create_spec.rb
490
- - spec/models/host_cluster_create_spec.rb
488
+ - spec/models/volume_create_spec.rb
491
489
  - spec/models/storage_host_create_spec.rb
492
- - spec/models/storage_system_update_spec.rb
493
490
  - spec/models/capability_translation_create_spec.rb
494
- - spec/models/native_capability_spec.rb
495
- - spec/models/host_cluster_volume_mapping_response_spec.rb
496
- - spec/models/volume_create_spec.rb
497
- - spec/models/user_update_spec.rb
498
- - spec/models/user_create_spec.rb
499
- - spec/models/provisioning_strategy_spec.rb
500
- - spec/models/storage_host_response_spec.rb
491
+ - spec/models/service_abstract_capability_value_spec.rb
492
+ - spec/models/auto_sde_role_spec.rb
493
+ - spec/models/event_spec.rb
494
+ - spec/models/system_type_response_spec.rb
495
+ - spec/models/service_spec.rb
501
496
  - spec/models/service_resource_attachment_spec.rb
502
- - spec/models/storage_resource_create_spec.rb
497
+ - spec/models/host_cluster_response_spec.rb
498
+ - spec/models/abstract_capability_spec.rb
499
+ - spec/models/host_cluster_volume_mapping_response_spec.rb
503
500
  - spec/models/account_spec.rb
501
+ - spec/models/account_post_response_spec.rb
502
+ - spec/models/host_cluster_membership_spec.rb
503
+ - spec/models/event_response_spec.rb
504
504
  - spec/spec_helper.rb