autosde_openapi_client 3.2.7 → 3.2.8
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b25a41faa077c1f9513296aa8152850c3acf4bddd2372c3c29369ad33135acd0
|
4
|
+
data.tar.gz: a7d4c610994c04a2f66b9f42b56a5f4669a909b6b387d432e0f0ec7cf57356bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e6b509423d483652d046f052242c9d62e295a644aa5b28f6455b4ba360bb0c57c45d459c1f44be6a2ed03450e46adeb4b171c902f4b32fe0273f3bfb10bf9d34
|
7
|
+
data.tar.gz: 11f544fd07c49e595e6b9ded4bd72f9bf21cd881719ea18bc04cee91c4c82083d05bd7da19e6038c049d030d8bea9c45dd91a7676b4cfc1c857cda8f6f64c43e
|
data/docs/ServiceUpdate.md
CHANGED
@@ -5,14 +5,8 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **capability_id_list** | **Array<String>** | capability_id_list | [optional] |
|
8
|
-
| **
|
9
|
-
| **
|
10
|
-
| **name** | **String** | name | [optional] |
|
11
|
-
| **profile** | [**Profile**](Profile.md) | | [optional] |
|
12
|
-
| **project** | [**AutoSDEProject**](AutoSDEProject.md) | | [optional] |
|
13
|
-
| **provisioning_strategy** | [**ProvisioningStrategy**](ProvisioningStrategy.md) | | [optional] |
|
14
|
-
| **uuid** | **String** | uuid | [optional] |
|
15
|
-
| **version** | **Integer** | The version of the service | [optional][default to 1] |
|
8
|
+
| **description** | **String** | description | [optional][default to 'null'] |
|
9
|
+
| **name** | **String** | name | [optional][default to 'null'] |
|
16
10
|
|
17
11
|
## Example
|
18
12
|
|
@@ -21,14 +15,8 @@ require 'autosde_openapi_client'
|
|
21
15
|
|
22
16
|
instance = AutosdeOpenapiClient::ServiceUpdate.new(
|
23
17
|
capability_id_list: null,
|
24
|
-
component_state: null,
|
25
18
|
description: null,
|
26
|
-
name: null
|
27
|
-
profile: null,
|
28
|
-
project: null,
|
29
|
-
provisioning_strategy: null,
|
30
|
-
uuid: null,
|
31
|
-
version: null
|
19
|
+
name: null
|
32
20
|
)
|
33
21
|
```
|
34
22
|
|
@@ -19,61 +19,18 @@ module AutosdeOpenapiClient
|
|
19
19
|
# capability_id_list
|
20
20
|
attr_accessor :capability_id_list
|
21
21
|
|
22
|
-
# component_state
|
23
|
-
attr_accessor :component_state
|
24
|
-
|
25
22
|
# description
|
26
23
|
attr_accessor :description
|
27
24
|
|
28
25
|
# name
|
29
26
|
attr_accessor :name
|
30
27
|
|
31
|
-
attr_accessor :profile
|
32
|
-
|
33
|
-
attr_accessor :project
|
34
|
-
|
35
|
-
attr_accessor :provisioning_strategy
|
36
|
-
|
37
|
-
# uuid
|
38
|
-
attr_accessor :uuid
|
39
|
-
|
40
|
-
# The version of the service
|
41
|
-
attr_accessor :version
|
42
|
-
|
43
|
-
class EnumAttributeValidator
|
44
|
-
attr_reader :datatype
|
45
|
-
attr_reader :allowable_values
|
46
|
-
|
47
|
-
def initialize(datatype, allowable_values)
|
48
|
-
@allowable_values = allowable_values.map do |value|
|
49
|
-
case datatype.to_s
|
50
|
-
when /Integer/i
|
51
|
-
value.to_i
|
52
|
-
when /Float/i
|
53
|
-
value.to_f
|
54
|
-
else
|
55
|
-
value
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
|
60
|
-
def valid?(value)
|
61
|
-
!value || allowable_values.include?(value)
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
28
|
# Attribute mapping from ruby-style variable name to JSON key.
|
66
29
|
def self.attribute_map
|
67
30
|
{
|
68
31
|
:'capability_id_list' => :'capability_id_list',
|
69
|
-
:'component_state' => :'component_state',
|
70
32
|
:'description' => :'description',
|
71
|
-
:'name' => :'name'
|
72
|
-
:'profile' => :'profile',
|
73
|
-
:'project' => :'project',
|
74
|
-
:'provisioning_strategy' => :'provisioning_strategy',
|
75
|
-
:'uuid' => :'uuid',
|
76
|
-
:'version' => :'version'
|
33
|
+
:'name' => :'name'
|
77
34
|
}
|
78
35
|
end
|
79
36
|
|
@@ -86,14 +43,8 @@ module AutosdeOpenapiClient
|
|
86
43
|
def self.openapi_types
|
87
44
|
{
|
88
45
|
:'capability_id_list' => :'Array<String>',
|
89
|
-
:'component_state' => :'String',
|
90
46
|
:'description' => :'String',
|
91
|
-
:'name' => :'String'
|
92
|
-
:'profile' => :'Profile',
|
93
|
-
:'project' => :'AutoSDEProject',
|
94
|
-
:'provisioning_strategy' => :'ProvisioningStrategy',
|
95
|
-
:'uuid' => :'String',
|
96
|
-
:'version' => :'Integer'
|
47
|
+
:'name' => :'String'
|
97
48
|
}
|
98
49
|
end
|
99
50
|
|
@@ -124,40 +75,16 @@ module AutosdeOpenapiClient
|
|
124
75
|
end
|
125
76
|
end
|
126
77
|
|
127
|
-
if attributes.key?(:'component_state')
|
128
|
-
self.component_state = attributes[:'component_state']
|
129
|
-
end
|
130
|
-
|
131
78
|
if attributes.key?(:'description')
|
132
79
|
self.description = attributes[:'description']
|
133
80
|
else
|
134
|
-
self.description = ''
|
81
|
+
self.description = 'null'
|
135
82
|
end
|
136
83
|
|
137
84
|
if attributes.key?(:'name')
|
138
85
|
self.name = attributes[:'name']
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.key?(:'profile')
|
142
|
-
self.profile = attributes[:'profile']
|
143
|
-
end
|
144
|
-
|
145
|
-
if attributes.key?(:'project')
|
146
|
-
self.project = attributes[:'project']
|
147
|
-
end
|
148
|
-
|
149
|
-
if attributes.key?(:'provisioning_strategy')
|
150
|
-
self.provisioning_strategy = attributes[:'provisioning_strategy']
|
151
|
-
end
|
152
|
-
|
153
|
-
if attributes.key?(:'uuid')
|
154
|
-
self.uuid = attributes[:'uuid']
|
155
|
-
end
|
156
|
-
|
157
|
-
if attributes.key?(:'version')
|
158
|
-
self.version = attributes[:'version']
|
159
86
|
else
|
160
|
-
self.
|
87
|
+
self.name = 'null'
|
161
88
|
end
|
162
89
|
end
|
163
90
|
|
@@ -165,46 +92,23 @@ module AutosdeOpenapiClient
|
|
165
92
|
# @return Array for valid properties with the reasons
|
166
93
|
def list_invalid_properties
|
167
94
|
invalid_properties = Array.new
|
168
|
-
if !@component_state.nil? && @component_state.to_s.length > 32
|
169
|
-
invalid_properties.push('invalid value for "component_state", the character length must be smaller than or equal to 32.')
|
170
|
-
end
|
171
|
-
|
172
95
|
invalid_properties
|
173
96
|
end
|
174
97
|
|
175
98
|
# Check to see if the all the properties in the model are valid
|
176
99
|
# @return true if the model is valid
|
177
100
|
def valid?
|
178
|
-
component_state_validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
179
|
-
return false unless component_state_validator.valid?(@component_state)
|
180
|
-
return false if !@component_state.nil? && @component_state.to_s.length > 32
|
181
101
|
true
|
182
102
|
end
|
183
103
|
|
184
|
-
# Custom attribute writer method checking allowed values (enum).
|
185
|
-
# @param [Object] component_state Object to be assigned
|
186
|
-
def component_state=(component_state)
|
187
|
-
validator = EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
188
|
-
unless validator.valid?(component_state)
|
189
|
-
fail ArgumentError, "invalid value for \"component_state\", must be one of #{validator.allowable_values}."
|
190
|
-
end
|
191
|
-
@component_state = component_state
|
192
|
-
end
|
193
|
-
|
194
104
|
# Checks equality by comparing each attribute.
|
195
105
|
# @param [Object] Object to be compared
|
196
106
|
def ==(o)
|
197
107
|
return true if self.equal?(o)
|
198
108
|
self.class == o.class &&
|
199
109
|
capability_id_list == o.capability_id_list &&
|
200
|
-
component_state == o.component_state &&
|
201
110
|
description == o.description &&
|
202
|
-
name == o.name
|
203
|
-
profile == o.profile &&
|
204
|
-
project == o.project &&
|
205
|
-
provisioning_strategy == o.provisioning_strategy &&
|
206
|
-
uuid == o.uuid &&
|
207
|
-
version == o.version
|
111
|
+
name == o.name
|
208
112
|
end
|
209
113
|
|
210
114
|
# @see the `==` method
|
@@ -216,7 +120,7 @@ module AutosdeOpenapiClient
|
|
216
120
|
# Calculates hash code according to all attributes.
|
217
121
|
# @return [Integer] Hash code
|
218
122
|
def hash
|
219
|
-
[capability_id_list,
|
123
|
+
[capability_id_list, description, name].hash
|
220
124
|
end
|
221
125
|
|
222
126
|
# 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.
|
6
|
+
The version of the OpenAPI document: 3.2.8
|
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.
|
14
|
+
VERSION = '3.2.8'
|
15
15
|
end
|
@@ -31,16 +31,6 @@ describe AutosdeOpenapiClient::ServiceUpdate do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
describe 'test attribute "component_state"' do
|
35
|
-
it 'should work' do
|
36
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["PENDING_CREATION", "CREATED", "DELETED", "PENDING_DELETION", "MODIFICATION", "PENDING_MODIFICATION"])
|
38
|
-
# validator.allowable_values.each do |value|
|
39
|
-
# expect { instance.component_state = value }.not_to raise_error
|
40
|
-
# end
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
34
|
describe 'test attribute "description"' do
|
45
35
|
it 'should work' do
|
46
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -53,34 +43,4 @@ describe AutosdeOpenapiClient::ServiceUpdate do
|
|
53
43
|
end
|
54
44
|
end
|
55
45
|
|
56
|
-
describe 'test attribute "profile"' do
|
57
|
-
it 'should work' do
|
58
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
-
end
|
60
|
-
end
|
61
|
-
|
62
|
-
describe 'test attribute "project"' do
|
63
|
-
it 'should work' do
|
64
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
describe 'test attribute "provisioning_strategy"' do
|
69
|
-
it 'should work' do
|
70
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
describe 'test attribute "uuid"' do
|
75
|
-
it 'should work' do
|
76
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
describe 'test attribute "version"' do
|
81
|
-
it 'should work' do
|
82
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
-
end
|
84
|
-
end
|
85
|
-
|
86
46
|
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: 3.2.
|
4
|
+
version: 3.2.8
|
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-
|
11
|
+
date: 2023-03-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|