autosde_openapi_client 3.2.3 → 3.2.4

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: 235fabc41813b96bf7aab360e5ac58d7eb030409e7d9e81e515f2313315a26f8
4
- data.tar.gz: 6415af7c18cc95a23b53491daede23d074c876dfc18e9baa6e09f6bf36452b54
3
+ metadata.gz: a6fce167a21fcfc8a2f58828140c9be33c9076de1d511f9149e0f9e0e1828869
4
+ data.tar.gz: '0797290ac1cf940178693d5623ff6b700c801a71a011ccc9abc5d1bb1205028a'
5
5
  SHA512:
6
- metadata.gz: 4b1fa0fdbbf768eac482fdb74543adbe9a914d5d0eb3a591746521d9e941c9f7f8a93aa25b994fc5fb0089ff761ff776549a23f46c764f3b546e90b75cbf5930
7
- data.tar.gz: 3d8182b2aa4f4c884626d5d7e21e5e9526093929ce0b8dcd4e26831c1ebd365f81fab0f09a359c036c9c2e5a5c56a7dc780718ae3db90ba9e091c47e8380234a
6
+ metadata.gz: d31f5d102ea49fd2256102d289db74fb4142204df46a44ca7f624f7bf93f162867171aa7be6b19ee768124b60fa91569f19221ec26f27bd976b7a27e43383799
7
+ data.tar.gz: 1eed85f7e3d52a07b3bbdbebbcc20371e37815b16991ce0a65959e338b049329a34eddfd9b6e216c14f2c0cdc0d66fd6d8e1fba047014dc5811ecf8f57d90003
@@ -4,7 +4,6 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **component_state** | **String** | component_state | [optional] |
8
7
  | **name** | **String** | name | [optional] |
9
8
  | **short_version** | **String** | short_version | [optional] |
10
9
  | **super_type** | **Integer** | super_type | [optional] |
@@ -17,7 +16,6 @@
17
16
  require 'autosde_openapi_client'
18
17
 
19
18
  instance = AutosdeOpenapiClient::SystemTypeCreate.new(
20
- component_state: null,
21
19
  name: null,
22
20
  short_version: null,
23
21
  super_type: null,
@@ -16,9 +16,6 @@ require 'time'
16
16
  module AutosdeOpenapiClient
17
17
  # TODO add description
18
18
  class SystemTypeCreate
19
- # component_state
20
- attr_accessor :component_state
21
-
22
19
  # name
23
20
  attr_accessor :name
24
21
 
@@ -34,32 +31,9 @@ module AutosdeOpenapiClient
34
31
  # SystemType version
35
32
  attr_accessor :version
36
33
 
37
- class EnumAttributeValidator
38
- attr_reader :datatype
39
- attr_reader :allowable_values
40
-
41
- def initialize(datatype, allowable_values)
42
- @allowable_values = allowable_values.map do |value|
43
- case datatype.to_s
44
- when /Integer/i
45
- value.to_i
46
- when /Float/i
47
- value.to_f
48
- else
49
- value
50
- end
51
- end
52
- end
53
-
54
- def valid?(value)
55
- !value || allowable_values.include?(value)
56
- end
57
- end
58
-
59
34
  # Attribute mapping from ruby-style variable name to JSON key.
60
35
  def self.attribute_map
61
36
  {
62
- :'component_state' => :'component_state',
63
37
  :'name' => :'name',
64
38
  :'short_version' => :'short_version',
65
39
  :'super_type' => :'super_type',
@@ -76,7 +50,6 @@ module AutosdeOpenapiClient
76
50
  # Attribute type mapping.
77
51
  def self.openapi_types
78
52
  {
79
- :'component_state' => :'String',
80
53
  :'name' => :'String',
81
54
  :'short_version' => :'String',
82
55
  :'super_type' => :'Integer',
@@ -106,10 +79,6 @@ module AutosdeOpenapiClient
106
79
  h[k.to_sym] = v
107
80
  }
108
81
 
109
- if attributes.key?(:'component_state')
110
- self.component_state = attributes[:'component_state']
111
- end
112
-
113
82
  if attributes.key?(:'name')
114
83
  self.name = attributes[:'name']
115
84
  end
@@ -135,10 +104,6 @@ module AutosdeOpenapiClient
135
104
  # @return Array for valid properties with the reasons
136
105
  def list_invalid_properties
137
106
  invalid_properties = Array.new
138
- if !@component_state.nil? && @component_state.to_s.length > 32
139
- invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
140
- end
141
-
142
107
  if !@short_version.nil? && @short_version.to_s.length > 255
143
108
  invalid_properties.push('invalid value for "short_version", the character length must be smaller than or equal to 255.')
144
109
  end
@@ -149,23 +114,10 @@ module AutosdeOpenapiClient
149
114
  # Check to see if the all the properties in the model are valid
150
115
  # @return true if the model is valid
151
116
  def valid?
152
- component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
153
- return false unless component_state_validator.valid?(@component_state)
154
- return false if !@component_state.nil? && @component_state.to_s.length > 32
155
117
  return false if !@short_version.nil? && @short_version.to_s.length > 255
156
118
  true
157
119
  end
158
120
 
159
- # Custom attribute writer method checking allowed values (enum).
160
- # @param [Object] component_state Object to be assigned
161
- def component_state=(component_state)
162
- validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
163
- unless validator.valid?(component_state)
164
- fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
165
- end
166
- @component_state = component_state
167
- end
168
-
169
121
  # Custom attribute writer method with validation
170
122
  # @param [Object] short_version Value to be assigned
171
123
  def short_version=(short_version)
@@ -181,7 +133,6 @@ module AutosdeOpenapiClient
181
133
  def ==(o)
182
134
  return true if self.equal?(o)
183
135
  self.class == o.class &&
184
- component_state == o.component_state &&
185
136
  name == o.name &&
186
137
  short_version == o.short_version &&
187
138
  super_type == o.super_type &&
@@ -198,7 +149,7 @@ module AutosdeOpenapiClient
198
149
  # Calculates hash code according to all attributes.
199
150
  # @return [Integer] Hash code
200
151
  def hash
201
- [component_state, name, short_version, super_type, uuid, version].hash
152
+ [name, short_version, super_type, uuid, version].hash
202
153
  end
203
154
 
204
155
  # 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: 3.2.3
6
+ The version of the OpenAPI document: 3.2.4
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 = '3.2.3'
14
+ VERSION = '3.2.4'
15
15
  end
@@ -25,16 +25,6 @@ describe AutosdeOpenapiClient::SystemTypeCreate do
25
25
  expect(instance).to be_instance_of(AutosdeOpenapiClient::SystemTypeCreate)
26
26
  end
27
27
  end
28
- describe 'test attribute "component_state"' do
29
- it 'should work' do
30
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
- # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
32
- # validator.allowable_values.each do |value|
33
- # expect { instance.component_state = value }.not_to raise_error
34
- # end
35
- end
36
- end
37
-
38
28
  describe 'test attribute "name"' do
39
29
  it 'should work' do
40
30
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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: 3.2.3
4
+ version: 3.2.4
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-03-06 00:00:00.000000000 Z
11
+ date: 2023-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -428,117 +428,117 @@ signing_key:
428
428
  specification_version: 4
429
429
  summary: Site Manager API Ruby Gem
430
430
  test_files:
431
- - spec/api/service_resource_attachment_api_spec.rb
432
- - spec/api/celery_config_api_spec.rb
433
- - spec/api/volume_api_spec.rb
431
+ - spec/api/storage_host_api_spec.rb
434
432
  - spec/api/host_cluster_membership_api_spec.rb
435
- - spec/api/provisioning_strategy_api_spec.rb
436
- - spec/api/system_type_api_spec.rb
437
- - spec/api/storage_system_api_spec.rb
438
- - spec/api/host_volume_connection_api_spec.rb
439
- - spec/api/abstract_capability_api_spec.rb
440
- - spec/api/service_abstract_capability_value_api_spec.rb
441
- - spec/api/storage_hosts_mapping_api_spec.rb
433
+ - spec/api/service_resource_attachment_api_spec.rb
434
+ - spec/api/auto_sde_role_api_spec.rb
442
435
  - spec/api/snapshot_api_spec.rb
436
+ - spec/api/storage_hosts_mapping_api_spec.rb
443
437
  - spec/api/storage_host_wwpn_candidates_api_spec.rb
444
- - spec/api/authentication_api_spec.rb
438
+ - spec/api/validate_system_api_spec.rb
439
+ - spec/api/profile_api_spec.rb
440
+ - spec/api/provisioning_strategy_api_spec.rb
441
+ - spec/api/volume_migration_api_spec.rb
442
+ - spec/api/service_abstract_capability_value_api_spec.rb
445
443
  - spec/api/storage_resource_api_spec.rb
446
- - spec/api/auto_sde_role_api_spec.rb
444
+ - spec/api/address_api_spec.rb
445
+ - spec/api/service_api_spec.rb
446
+ - spec/api/host_api_spec.rb
447
+ - spec/api/volume_api_spec.rb
448
+ - spec/api/user_api_spec.rb
449
+ - spec/api/job_api_spec.rb
450
+ - spec/api/host_volume_connection_api_spec.rb
451
+ - spec/api/event_api_spec.rb
452
+ - spec/api/auto_sde_project_api_spec.rb
447
453
  - spec/api/host_cluster_volume_mapping_api_spec.rb
454
+ - spec/api/system_type_api_spec.rb
448
455
  - spec/api/capability_translation_api_spec.rb
449
456
  - spec/api/volume_clone_api_spec.rb
457
+ - spec/api/celery_config_api_spec.rb
458
+ - spec/api/abstract_capability_api_spec.rb
459
+ - spec/api/authentication_api_spec.rb
450
460
  - spec/api/native_capability_api_spec.rb
451
- - spec/api/storage_host_api_spec.rb
452
- - spec/api/auto_sde_project_api_spec.rb
453
- - spec/api/user_api_spec.rb
454
- - spec/api/job_api_spec.rb
455
- - spec/api/validate_system_api_spec.rb
456
- - spec/api/service_api_spec.rb
461
+ - spec/api/storage_system_api_spec.rb
462
+ - spec/api/account_api_spec.rb
457
463
  - spec/api/host_cluster_api_spec.rb
458
- - spec/api/volume_migration_api_spec.rb
459
- - spec/api/profile_api_spec.rb
460
464
  - spec/api/refresh_system_api_spec.rb
461
- - spec/api/address_api_spec.rb
462
- - spec/api/account_api_spec.rb
463
- - spec/api/host_api_spec.rb
464
- - spec/api/event_api_spec.rb
465
465
  - spec/api_client_spec.rb
466
466
  - spec/configuration_spec.rb
467
- - spec/models/auto_sde_role_spec.rb
468
- - spec/models/storage_resource_update_spec.rb
467
+ - spec/models/host_cluster_response_spec.rb
468
+ - spec/models/storage_host_spec.rb
469
+ - spec/models/storage_system_create_spec.rb
470
+ - spec/models/service_resource_attachment_spec.rb
469
471
  - spec/models/host_volume_connection_create_spec.rb
470
- - spec/models/validate_system_data_spec.rb
472
+ - spec/models/service_abstract_capability_value_response_spec.rb
473
+ - spec/models/host_spec.rb
474
+ - spec/models/address_create_spec.rb
475
+ - spec/models/storage_host_update_spec.rb
476
+ - spec/models/snapshot_response_spec.rb
471
477
  - spec/models/celery_config_spec.rb
478
+ - spec/models/storage_host_create_spec.rb
479
+ - spec/models/storage_resource_spec.rb
480
+ - spec/models/provisioning_strategy_spec.rb
472
481
  - spec/models/host_volume_connection_spec.rb
473
- - spec/models/service_resource_attachment_response_spec.rb
482
+ - spec/models/account_spec.rb
474
483
  - spec/models/host_cluster_membership_spec.rb
475
- - spec/models/storage_hosts_mapping_create_spec.rb
476
- - spec/models/service_create_spec.rb
477
- - spec/models/storage_resource_create_spec.rb
478
- - spec/models/auth_response_spec.rb
479
- - spec/models/volume_response_spec.rb
480
- - spec/models/provisioning_strategy_spec.rb
484
+ - spec/models/account_post_request_spec.rb
485
+ - spec/models/auto_sde_role_spec.rb
486
+ - spec/models/auto_sde_project_spec.rb
487
+ - spec/models/async_response_spec.rb
488
+ - spec/models/volume_update_spec.rb
489
+ - spec/models/storage_resource_update_spec.rb
490
+ - spec/models/snapshot_spec.rb
481
491
  - spec/models/storage_system_response_spec.rb
492
+ - spec/models/snapshot_create_spec.rb
493
+ - spec/models/host_cluster_spec.rb
494
+ - spec/models/host_cluster_volume_mapping_create_spec.rb
495
+ - spec/models/event_spec.rb
496
+ - spec/models/storage_hosts_mapping_create_spec.rb
497
+ - spec/models/host_create_spec.rb
498
+ - spec/models/system_type_response_spec.rb
499
+ - spec/models/volume_spec.rb
500
+ - spec/models/job_response_spec.rb
482
501
  - spec/models/service_abstract_capability_value_spec.rb
483
- - spec/models/account_spec.rb
484
- - spec/models/validate_system_spec.rb
485
- - spec/models/account_post_response_spec.rb
486
- - spec/models/host_cluster_response_spec.rb
487
- - spec/models/service_spec.rb
488
- - spec/models/account_post_request_spec.rb
502
+ - spec/models/abstract_capability_response_spec.rb
503
+ - spec/models/storage_host_response_spec.rb
504
+ - spec/models/volume_create_spec.rb
505
+ - spec/models/service_response_spec.rb
506
+ - spec/models/validate_system_data_spec.rb
489
507
  - spec/models/storage_hosts_mapping_spec.rb
490
- - spec/models/native_capability_spec.rb
491
- - spec/models/capability_translation_spec.rb
492
- - spec/models/storage_system_create_spec.rb
493
- - spec/models/host_create_spec.rb
494
- - spec/models/service_abstract_capability_value_response_spec.rb
495
- - spec/models/service_update_spec.rb
496
- - spec/models/host_cluster_volume_mapping_spec.rb
508
+ - spec/models/storage_host_wwpn_candidates_spec.rb
509
+ - spec/models/validate_system_spec.rb
510
+ - spec/models/host_cluster_create_spec.rb
497
511
  - spec/models/capability_translation_create_spec.rb
498
- - spec/models/authentication_spec.rb
499
- - spec/models/user_create_spec.rb
512
+ - spec/models/service_create_spec.rb
500
513
  - spec/models/address_spec.rb
501
- - spec/models/host_cluster_spec.rb
502
- - spec/models/event_spec.rb
503
- - spec/models/volume_update_spec.rb
504
- - spec/models/snapshot_response_spec.rb
505
- - spec/models/snapshot_create_spec.rb
506
- - spec/models/storage_host_response_spec.rb
507
- - spec/models/refresh_system_spec.rb
508
- - spec/models/snapshot_spec.rb
509
- - spec/models/storage_host_create_spec.rb
510
- - spec/models/profile_spec.rb
511
- - spec/models/abstract_capability_spec.rb
512
- - spec/models/abstract_capability_response_spec.rb
513
- - spec/models/system_type_create_spec.rb
514
- - spec/models/volume_migration_spec.rb
515
- - spec/models/storage_resource_response_spec.rb
516
- - spec/models/storage_resource_spec.rb
514
+ - spec/models/capability_translation_spec.rb
517
515
  - spec/models/host_cluster_volume_mapping_response_spec.rb
518
- - spec/models/host_spec.rb
519
- - spec/models/storage_host_spec.rb
516
+ - spec/models/user_update_spec.rb
517
+ - spec/models/authentication_spec.rb
518
+ - spec/models/host_cluster_volume_mapping_spec.rb
519
+ - spec/models/abstract_capability_spec.rb
520
+ - spec/models/volume_clone_spec.rb
521
+ - spec/models/volume_response_spec.rb
522
+ - spec/models/storage_system_spec.rb
523
+ - spec/models/service_update_spec.rb
524
+ - spec/models/native_capability_spec.rb
525
+ - spec/models/refresh_system_spec.rb
526
+ - spec/models/service_resource_attachment_response_spec.rb
520
527
  - spec/models/event_response_spec.rb
521
- - spec/models/storage_host_update_spec.rb
522
- - spec/models/service_resource_attachment_spec.rb
528
+ - spec/models/auth_response_spec.rb
529
+ - spec/models/service_spec.rb
523
530
  - spec/models/storage_system_update_spec.rb
524
- - spec/models/job_create_spec.rb
525
- - spec/models/storage_host_wwpn_candidates_spec.rb
526
- - spec/models/volume_clone_spec.rb
527
- - spec/models/service_response_spec.rb
528
- - spec/models/system_type_response_spec.rb
529
- - spec/models/user_update_spec.rb
530
- - spec/models/volume_spec.rb
531
531
  - spec/models/storage_hosts_mapping_response_spec.rb
532
- - spec/models/address_create_spec.rb
533
532
  - spec/models/system_type_spec.rb
534
- - spec/models/job_response_spec.rb
535
- - spec/models/volume_create_spec.rb
536
- - spec/models/storage_system_spec.rb
533
+ - spec/models/job_spec.rb
537
534
  - spec/models/user_spec.rb
538
- - spec/models/host_cluster_volume_mapping_create_spec.rb
535
+ - spec/models/storage_resource_response_spec.rb
539
536
  - spec/models/host_cluster_update_spec.rb
540
- - spec/models/host_cluster_create_spec.rb
541
- - spec/models/job_spec.rb
542
- - spec/models/auto_sde_project_spec.rb
543
- - spec/models/async_response_spec.rb
537
+ - spec/models/system_type_create_spec.rb
538
+ - spec/models/profile_spec.rb
539
+ - spec/models/account_post_response_spec.rb
540
+ - spec/models/user_create_spec.rb
541
+ - spec/models/job_create_spec.rb
542
+ - spec/models/volume_migration_spec.rb
543
+ - spec/models/storage_resource_create_spec.rb
544
544
  - spec/spec_helper.rb