mx-platform-ruby 1.10.1 → 1.11.0
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 +4 -4
- data/Gemfile.lock +1 -1
- data/docs/ImageOptionResponse.md +2 -0
- data/docs/OptionResponse.md +2 -0
- data/lib/mx-platform-ruby/models/image_option_response.rb +11 -1
- data/lib/mx-platform-ruby/models/option_response.rb +11 -1
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/openapi/config.yml +1 -1
- data/spec/models/image_option_response_spec.rb +6 -0
- data/spec/models/option_response_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f594a6f5c52b8b3becea78fa9a072af58b40bc3a670aade5798dbe507418c479
|
|
4
|
+
data.tar.gz: a2049e85dd823acfb56e10513e9d3c9f8b32d4824c5ed091f7c88f9da00e84cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 65d2b07b45594467a2175adb586726ecaa02353ce453994c11363e68ae5a5a02446f1db20dc313dc39bc1267242ee65b779e763e3c7cb69d9b12dd407353c31d
|
|
7
|
+
data.tar.gz: 29ae392bca227e488aa43f5acc8bbc68c992c990ccc88798514f516a2051296c2b821c2e6faca634a17a0269dfca7d40d2adfc19212c5b813d89fcf8b1760815
|
data/Gemfile.lock
CHANGED
data/docs/ImageOptionResponse.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **data_uri** | **String** | | [optional] |
|
|
8
|
+
| **guid** | **String** | | [optional] |
|
|
8
9
|
| **label** | **String** | | [optional] |
|
|
9
10
|
| **value** | **String** | | [optional] |
|
|
10
11
|
|
|
@@ -15,6 +16,7 @@ require 'mx-platform-ruby'
|
|
|
15
16
|
|
|
16
17
|
instance = MxPlatformRuby::ImageOptionResponse.new(
|
|
17
18
|
data_uri: data:image/png;base64,iVBORw0KGgoAAAANSUh ... more image data ...,
|
|
19
|
+
guid: CRD-ce76d2e3-86bd-ec4a-ec52-eb53b5194bf5,
|
|
18
20
|
label: IMAGE_1,
|
|
19
21
|
value: image_data
|
|
20
22
|
)
|
data/docs/OptionResponse.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **guid** | **String** | | [optional] |
|
|
7
8
|
| **label** | **String** | | [optional] |
|
|
8
9
|
| **value** | **String** | | [optional] |
|
|
9
10
|
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
require 'mx-platform-ruby'
|
|
14
15
|
|
|
15
16
|
instance = MxPlatformRuby::OptionResponse.new(
|
|
17
|
+
guid: CRD-ce76d2e3-86bd-ec4a-ec52-eb53b5194bf5,
|
|
16
18
|
label: IMAGE_1,
|
|
17
19
|
value: image_data
|
|
18
20
|
)
|
|
@@ -17,6 +17,8 @@ module MxPlatformRuby
|
|
|
17
17
|
class ImageOptionResponse
|
|
18
18
|
attr_accessor :data_uri
|
|
19
19
|
|
|
20
|
+
attr_accessor :guid
|
|
21
|
+
|
|
20
22
|
attr_accessor :label
|
|
21
23
|
|
|
22
24
|
attr_accessor :value
|
|
@@ -25,6 +27,7 @@ module MxPlatformRuby
|
|
|
25
27
|
def self.attribute_map
|
|
26
28
|
{
|
|
27
29
|
:'data_uri' => :'data_uri',
|
|
30
|
+
:'guid' => :'guid',
|
|
28
31
|
:'label' => :'label',
|
|
29
32
|
:'value' => :'value'
|
|
30
33
|
}
|
|
@@ -39,6 +42,7 @@ module MxPlatformRuby
|
|
|
39
42
|
def self.openapi_types
|
|
40
43
|
{
|
|
41
44
|
:'data_uri' => :'String',
|
|
45
|
+
:'guid' => :'String',
|
|
42
46
|
:'label' => :'String',
|
|
43
47
|
:'value' => :'String'
|
|
44
48
|
}
|
|
@@ -48,6 +52,7 @@ module MxPlatformRuby
|
|
|
48
52
|
def self.openapi_nullable
|
|
49
53
|
Set.new([
|
|
50
54
|
:'data_uri',
|
|
55
|
+
:'guid',
|
|
51
56
|
:'label',
|
|
52
57
|
:'value'
|
|
53
58
|
])
|
|
@@ -72,6 +77,10 @@ module MxPlatformRuby
|
|
|
72
77
|
self.data_uri = attributes[:'data_uri']
|
|
73
78
|
end
|
|
74
79
|
|
|
80
|
+
if attributes.key?(:'guid')
|
|
81
|
+
self.guid = attributes[:'guid']
|
|
82
|
+
end
|
|
83
|
+
|
|
75
84
|
if attributes.key?(:'label')
|
|
76
85
|
self.label = attributes[:'label']
|
|
77
86
|
end
|
|
@@ -102,6 +111,7 @@ module MxPlatformRuby
|
|
|
102
111
|
return true if self.equal?(o)
|
|
103
112
|
self.class == o.class &&
|
|
104
113
|
data_uri == o.data_uri &&
|
|
114
|
+
guid == o.guid &&
|
|
105
115
|
label == o.label &&
|
|
106
116
|
value == o.value
|
|
107
117
|
end
|
|
@@ -115,7 +125,7 @@ module MxPlatformRuby
|
|
|
115
125
|
# Calculates hash code according to all attributes.
|
|
116
126
|
# @return [Integer] Hash code
|
|
117
127
|
def hash
|
|
118
|
-
[data_uri, label, value].hash
|
|
128
|
+
[data_uri, guid, label, value].hash
|
|
119
129
|
end
|
|
120
130
|
|
|
121
131
|
# Builds the object from hash
|
|
@@ -15,6 +15,8 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module MxPlatformRuby
|
|
17
17
|
class OptionResponse
|
|
18
|
+
attr_accessor :guid
|
|
19
|
+
|
|
18
20
|
attr_accessor :label
|
|
19
21
|
|
|
20
22
|
attr_accessor :value
|
|
@@ -22,6 +24,7 @@ module MxPlatformRuby
|
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
23
25
|
def self.attribute_map
|
|
24
26
|
{
|
|
27
|
+
:'guid' => :'guid',
|
|
25
28
|
:'label' => :'label',
|
|
26
29
|
:'value' => :'value'
|
|
27
30
|
}
|
|
@@ -35,6 +38,7 @@ module MxPlatformRuby
|
|
|
35
38
|
# Attribute type mapping.
|
|
36
39
|
def self.openapi_types
|
|
37
40
|
{
|
|
41
|
+
:'guid' => :'String',
|
|
38
42
|
:'label' => :'String',
|
|
39
43
|
:'value' => :'String'
|
|
40
44
|
}
|
|
@@ -43,6 +47,7 @@ module MxPlatformRuby
|
|
|
43
47
|
# List of attributes with nullable: true
|
|
44
48
|
def self.openapi_nullable
|
|
45
49
|
Set.new([
|
|
50
|
+
:'guid',
|
|
46
51
|
:'label',
|
|
47
52
|
:'value'
|
|
48
53
|
])
|
|
@@ -63,6 +68,10 @@ module MxPlatformRuby
|
|
|
63
68
|
h[k.to_sym] = v
|
|
64
69
|
}
|
|
65
70
|
|
|
71
|
+
if attributes.key?(:'guid')
|
|
72
|
+
self.guid = attributes[:'guid']
|
|
73
|
+
end
|
|
74
|
+
|
|
66
75
|
if attributes.key?(:'label')
|
|
67
76
|
self.label = attributes[:'label']
|
|
68
77
|
end
|
|
@@ -92,6 +101,7 @@ module MxPlatformRuby
|
|
|
92
101
|
def ==(o)
|
|
93
102
|
return true if self.equal?(o)
|
|
94
103
|
self.class == o.class &&
|
|
104
|
+
guid == o.guid &&
|
|
95
105
|
label == o.label &&
|
|
96
106
|
value == o.value
|
|
97
107
|
end
|
|
@@ -105,7 +115,7 @@ module MxPlatformRuby
|
|
|
105
115
|
# Calculates hash code according to all attributes.
|
|
106
116
|
# @return [Integer] Hash code
|
|
107
117
|
def hash
|
|
108
|
-
[label, value].hash
|
|
118
|
+
[guid, label, value].hash
|
|
109
119
|
end
|
|
110
120
|
|
|
111
121
|
# Builds the object from hash
|
data/openapi/config.yml
CHANGED
|
@@ -33,6 +33,12 @@ describe MxPlatformRuby::ImageOptionResponse do
|
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
+
describe 'test attribute "guid"' do
|
|
37
|
+
it 'should work' do
|
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
|
|
36
42
|
describe 'test attribute "label"' do
|
|
37
43
|
it 'should work' do
|
|
38
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
@@ -27,6 +27,12 @@ describe MxPlatformRuby::OptionResponse do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
+
describe 'test attribute "guid"' do
|
|
31
|
+
it 'should work' do
|
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
30
36
|
describe 'test attribute "label"' do
|
|
31
37
|
it 'should work' do
|
|
32
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|