@@ -11,6 +11,10 @@ class TransformationTry
11
11
# It is deprecated. Use the `input` field with proper `type` instead to specify the transformation code.
12
12
attr_accessor :code
13
13
14
+ attr_accessor :type
15
+
16
+ attr_accessor :input
17
+
14
18
# The record to apply the given code to.
15
19
attr_accessor :sample_record
16
20
@@ -20,6 +24,8 @@ class TransformationTry
20
24
def self . attribute_map
21
25
{
22
26
:code => :code ,
27
+ :type => :type ,
28
+ :input => :input ,
23
29
:sample_record => :sampleRecord ,
24
30
:authentications => :authentications
25
31
}
@@ -29,6 +35,8 @@ def self.attribute_map
29
35
def self . types_mapping
30
36
{
31
37
:code => :"String" ,
38
+ :type => :"TransformationType" ,
39
+ :input => :"TransformationInput" ,
32
40
:sample_record => :"Object" ,
33
41
:authentications => :"Array<AuthenticationCreate>"
34
42
}
@@ -66,8 +74,14 @@ def initialize(attributes = {})
66
74
67
75
if attributes . key? ( :code )
68
76
self . code = attributes [ :code ]
69
- else
70
- self . code = nil
77
+ end
78
+
79
+ if attributes . key? ( :type )
80
+ self . type = attributes [ :type ]
81
+ end
82
+
83
+ if attributes . key? ( :input )
84
+ self . input = attributes [ :input ]
71
85
end
72
86
73
87
if attributes . key? ( :sample_record )
@@ -89,6 +103,8 @@ def ==(other)
89
103
return true if self . equal? ( other )
90
104
self . class == other . class &&
91
105
code == other . code &&
106
+ type == other . type &&
107
+ input == other . input &&
92
108
sample_record == other . sample_record &&
93
109
authentications == other . authentications
94
110
end
@@ -102,7 +118,7 @@ def eql?(other)
102
118
# Calculates hash code according to all attributes.
103
119
# @return [Integer] Hash code
104
120
def hash
105
- [ code , sample_record , authentications ] . hash
121
+ [ code , type , input , sample_record , authentications ] . hash
106
122
end
107
123
108
124
# Builds the object from hash
0 commit comments