autosde_openapi_client 3.2.2 → 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: 6c045f9c766a82cc721442d45405d2b689ed42f2b68f74c6052176d8fefb39e3
4
- data.tar.gz: cbddd6eb16b53a9b6160a5ddc2aec6117fa48342e034e2b51b431127c5e62080
3
+ metadata.gz: a6fce167a21fcfc8a2f58828140c9be33c9076de1d511f9149e0f9e0e1828869
4
+ data.tar.gz: '0797290ac1cf940178693d5623ff6b700c801a71a011ccc9abc5d1bb1205028a'
5
5
  SHA512:
6
- metadata.gz: ae81f05dc077b3cc0b422f2759e1a628cc7c2b483fe7ef10f973de8110f90223a5e7df2460b02e64448d724f4de3f3148d1f327115207d3e0e23405f618520da
7
- data.tar.gz: da314202513f002f33b3863956d588427095acd2aeac8467a2c1c536ca3af2c0477d59ae4a47eecf6eb13100cc75adc4a9f3bab0d52d23fdf4324f9c36b0c92c
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,
@@ -164,10 +164,6 @@ module AutosdeOpenapiClient
164
164
  invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
165
165
  end
166
166
 
167
- if !@name.nil? && @name.to_s.length > 15
168
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
169
- end
170
-
171
167
  if !@owner_id.nil? && @owner_id.to_s.length > 15
172
168
  invalid_properties.push('invalid value for "owner_id", the character length must be smaller than or equal to 15.')
173
169
  end
@@ -189,7 +185,6 @@ module AutosdeOpenapiClient
189
185
  component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
190
186
  return false unless component_state_validator.valid?(@component_state)
191
187
  return false if !@component_state.nil? && @component_state.to_s.length > 32
192
- return false if !@name.nil? && @name.to_s.length > 15
193
188
  return false if !@owner_id.nil? && @owner_id.to_s.length > 15
194
189
  return false if !@owner_name.nil? && @owner_name.to_s.length > 15
195
190
  return false if !@protocol.nil? && @protocol.to_s.length > 15
@@ -206,16 +201,6 @@ module AutosdeOpenapiClient
206
201
  @component_state = component_state
207
202
  end
208
203
 
209
- # Custom attribute writer method with validation
210
- # @param [Object] name Value to be assigned
211
- def name=(name)
212
- if !name.nil? && name.to_s.length > 15
213
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
214
- end
215
-
216
- @name = name
217
- end
218
-
219
204
  # Custom attribute writer method with validation
220
205
  # @param [Object] owner_id Value to be assigned
221
206
  def owner_id=(owner_id)
@@ -120,10 +120,6 @@ module AutosdeOpenapiClient
120
120
  # @return Array for valid properties with the reasons
121
121
  def list_invalid_properties
122
122
  invalid_properties = Array.new
123
- if !@name.nil? && @name.to_s.length > 15
124
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
125
- end
126
-
127
123
  if !@owner_id.nil? && @owner_id.to_s.length > 15
128
124
  invalid_properties.push('invalid value for "owner_id", the character length must be smaller than or equal to 15.')
129
125
  end
@@ -142,23 +138,12 @@ module AutosdeOpenapiClient
142
138
  # Check to see if the all the properties in the model are valid
143
139
  # @return true if the model is valid
144
140
  def valid?
145
- return false if !@name.nil? && @name.to_s.length > 15
146
141
  return false if !@owner_id.nil? && @owner_id.to_s.length > 15
147
142
  return false if !@owner_name.nil? && @owner_name.to_s.length > 15
148
143
  return false if !@protocol.nil? && @protocol.to_s.length > 15
149
144
  true
150
145
  end
151
146
 
152
- # Custom attribute writer method with validation
153
- # @param [Object] name Value to be assigned
154
- def name=(name)
155
- if !name.nil? && name.to_s.length > 15
156
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
157
- end
158
-
159
- @name = name
160
- end
161
-
162
147
  # Custom attribute writer method with validation
163
148
  # @param [Object] owner_id Value to be assigned
164
149
  def owner_id=(owner_id)
@@ -165,10 +165,6 @@ module AutosdeOpenapiClient
165
165
  invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
166
166
  end
167
167
 
168
- if !@name.nil? && @name.to_s.length > 15
169
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
170
- end
171
-
172
168
  if !@owner_id.nil? && @owner_id.to_s.length > 15
173
169
  invalid_properties.push('invalid value for "owner_id", the character length must be smaller than or equal to 15.')
174
170
  end
@@ -190,7 +186,6 @@ module AutosdeOpenapiClient
190
186
  component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
191
187
  return false unless component_state_validator.valid?(@component_state)
192
188
  return false if !@component_state.nil? && @component_state.to_s.length > 32
193
- return false if !@name.nil? && @name.to_s.length > 15
194
189
  return false if !@owner_id.nil? && @owner_id.to_s.length > 15
195
190
  return false if !@owner_name.nil? && @owner_name.to_s.length > 15
196
191
  return false if !@protocol.nil? && @protocol.to_s.length > 15
@@ -207,16 +202,6 @@ module AutosdeOpenapiClient
207
202
  @component_state = component_state
208
203
  end
209
204
 
210
- # Custom attribute writer method with validation
211
- # @param [Object] name Value to be assigned
212
- def name=(name)
213
- if !name.nil? && name.to_s.length > 15
214
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
215
- end
216
-
217
- @name = name
218
- end
219
-
220
205
  # Custom attribute writer method with validation
221
206
  # @param [Object] owner_id Value to be assigned
222
207
  def owner_id=(owner_id)
@@ -112,10 +112,6 @@ module AutosdeOpenapiClient
112
112
  # @return Array for valid properties with the reasons
113
113
  def list_invalid_properties
114
114
  invalid_properties = Array.new
115
- if !@name.nil? && @name.to_s.length > 15
116
- invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 15.')
117
- end
118
-
119
115
  if !@owner_id.nil? && @owner_id.to_s.length > 15
120
116
  invalid_properties.push('invalid value for "owner_id", the character length must be smaller than or equal to 15.')
121
117
  end
@@ -134,23 +130,12 @@ module AutosdeOpenapiClient
134
130
  # Check to see if the all the properties in the model are valid
135
131
  # @return true if the model is valid
136
132
  def valid?
137
- return false if !@name.nil? && @name.to_s.length > 15
138
133
  return false if !@owner_id.nil? && @owner_id.to_s.length > 15
139
134
  return false if !@owner_name.nil? && @owner_name.to_s.length > 15
140
135
  return false if !@protocol.nil? && @protocol.to_s.length > 15
141
136
  true
142
137
  end
143
138
 
144
- # Custom attribute writer method with validation
145
- # @param [Object] name Value to be assigned
146
- def name=(name)
147
- if !name.nil? && name.to_s.length > 15
148
- fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 15.'
149
- end
150
-
151
- @name = name
152
- end
153
-
154
139
  # Custom attribute writer method with validation
155
140
  # @param [Object] owner_id Value to be assigned
156
141
  def owner_id=(owner_id)
@@ -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.2
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.2'
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.2
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-02 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