docusign_maestro 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +230 -0
  4. data/docusign_maestro.gemspec +48 -0
  5. data/lib/docusign_maestro/api/workflow_instance_management_api.rb +248 -0
  6. data/lib/docusign_maestro/api/workflow_management_api.rb +440 -0
  7. data/lib/docusign_maestro/api/workflow_trigger_api.rb +95 -0
  8. data/lib/docusign_maestro/client/api_client.rb +600 -0
  9. data/lib/docusign_maestro/client/api_error.rb +37 -0
  10. data/lib/docusign_maestro/client/auth/oauth.rb +1061 -0
  11. data/lib/docusign_maestro/configuration.rb +203 -0
  12. data/lib/docusign_maestro/models/access_token_response.rb +204 -0
  13. data/lib/docusign_maestro/models/access_token_token_types.rb +30 -0
  14. data/lib/docusign_maestro/models/account_id.rb +175 -0
  15. data/lib/docusign_maestro/models/aow_uuid.rb +174 -0
  16. data/lib/docusign_maestro/models/aow_uuid_string.rb +174 -0
  17. data/lib/docusign_maestro/models/cancel_response.rb +197 -0
  18. data/lib/docusign_maestro/models/create_or_update_workflow_definition_request_body.rb +184 -0
  19. data/lib/docusign_maestro/models/deploy_request.rb +188 -0
  20. data/lib/docusign_maestro/models/deploy_response.rb +220 -0
  21. data/lib/docusign_maestro/models/deploy_status.rb +30 -0
  22. data/lib/docusign_maestro/models/deployment_status.rb +33 -0
  23. data/lib/docusign_maestro/models/ds_do_until_step.rb +247 -0
  24. data/lib/docusign_maestro/models/ds_doc_gen_step.rb +261 -0
  25. data/lib/docusign_maestro/models/ds_doc_gen_step_input.rb +246 -0
  26. data/lib/docusign_maestro/models/ds_idv_step.rb +261 -0
  27. data/lib/docusign_maestro/models/ds_idv_step_input.rb +234 -0
  28. data/lib/docusign_maestro/models/ds_if_else_step.rb +264 -0
  29. data/lib/docusign_maestro/models/ds_loop_step.rb +247 -0
  30. data/lib/docusign_maestro/models/ds_parallel_step.rb +246 -0
  31. data/lib/docusign_maestro/models/ds_service_step.rb +175 -0
  32. data/lib/docusign_maestro/models/ds_sign_step.rb +261 -0
  33. data/lib/docusign_maestro/models/ds_sign_step_input.rb +241 -0
  34. data/lib/docusign_maestro/models/ds_step_id.rb +175 -0
  35. data/lib/docusign_maestro/models/ds_transformation_step.rb +279 -0
  36. data/lib/docusign_maestro/models/ds_web_forms_step.rb +265 -0
  37. data/lib/docusign_maestro/models/ds_web_forms_step_config.rb +188 -0
  38. data/lib/docusign_maestro/models/ds_workflow_boolean_expression.rb +219 -0
  39. data/lib/docusign_maestro/models/ds_workflow_comparison_expression.rb +232 -0
  40. data/lib/docusign_maestro/models/ds_workflow_comparison_operator_types.rb +39 -0
  41. data/lib/docusign_maestro/models/ds_workflow_concat_expression.rb +200 -0
  42. data/lib/docusign_maestro/models/ds_workflow_doc_gen_doc_output_format.rb +29 -0
  43. data/lib/docusign_maestro/models/ds_workflow_expression_types_boolean_expression.rb +28 -0
  44. data/lib/docusign_maestro/models/ds_workflow_expression_types_comparison_expression.rb +28 -0
  45. data/lib/docusign_maestro/models/ds_workflow_expression_types_parallel_expression.rb +28 -0
  46. data/lib/docusign_maestro/models/ds_workflow_index_of_expression.rb +218 -0
  47. data/lib/docusign_maestro/models/ds_workflow_lane.rb +205 -0
  48. data/lib/docusign_maestro/models/ds_workflow_lanes_record.rb +174 -0
  49. data/lib/docusign_maestro/models/ds_workflow_last_index_of_expression.rb +218 -0
  50. data/lib/docusign_maestro/models/ds_workflow_logical_operator_types.rb +29 -0
  51. data/lib/docusign_maestro/models/ds_workflow_parallel_expression.rb +204 -0
  52. data/lib/docusign_maestro/models/ds_workflow_participant_record.rb +175 -0
  53. data/lib/docusign_maestro/models/ds_workflow_replace_expression.rb +233 -0
  54. data/lib/docusign_maestro/models/ds_workflow_step.rb +175 -0
  55. data/lib/docusign_maestro/models/ds_workflow_step_types_do_until.rb +28 -0
  56. data/lib/docusign_maestro/models/ds_workflow_step_types_ds_doc_gen.rb +28 -0
  57. data/lib/docusign_maestro/models/ds_workflow_step_types_ds_idv.rb +28 -0
  58. data/lib/docusign_maestro/models/ds_workflow_step_types_ds_if_else.rb +28 -0
  59. data/lib/docusign_maestro/models/ds_workflow_step_types_ds_sign.rb +28 -0
  60. data/lib/docusign_maestro/models/ds_workflow_step_types_ds_transformation.rb +28 -0
  61. data/lib/docusign_maestro/models/ds_workflow_step_types_ds_web_forms.rb +28 -0
  62. data/lib/docusign_maestro/models/ds_workflow_step_types_loop.rb +28 -0
  63. data/lib/docusign_maestro/models/ds_workflow_step_types_parallel.rb +28 -0
  64. data/lib/docusign_maestro/models/ds_workflow_substring_expression.rb +228 -0
  65. data/lib/docusign_maestro/models/ds_workflow_to_lower_expression.rb +203 -0
  66. data/lib/docusign_maestro/models/ds_workflow_to_upper_expression.rb +203 -0
  67. data/lib/docusign_maestro/models/ds_workflow_transformation_expression.rb +175 -0
  68. data/lib/docusign_maestro/models/ds_workflow_transformation_expression_types_concat_expression.rb +28 -0
  69. data/lib/docusign_maestro/models/ds_workflow_transformation_expression_types_index_of_expression.rb +28 -0
  70. data/lib/docusign_maestro/models/ds_workflow_transformation_expression_types_last_index_of_expression.rb +28 -0
  71. data/lib/docusign_maestro/models/ds_workflow_transformation_expression_types_replace_expression.rb +28 -0
  72. data/lib/docusign_maestro/models/ds_workflow_transformation_expression_types_substring_expression.rb +28 -0
  73. data/lib/docusign_maestro/models/ds_workflow_transformation_expression_types_to_lower_expression.rb +28 -0
  74. data/lib/docusign_maestro/models/ds_workflow_transformation_expression_types_to_upper_expression.rb +28 -0
  75. data/lib/docusign_maestro/models/ds_workflow_trigger.rb +274 -0
  76. data/lib/docusign_maestro/models/ds_workflow_trigger_types.rb +29 -0
  77. data/lib/docusign_maestro/models/ds_workflow_variable.rb +175 -0
  78. data/lib/docusign_maestro/models/ds_workflow_variable_from_participant.rb +217 -0
  79. data/lib/docusign_maestro/models/ds_workflow_variable_from_step.rb +231 -0
  80. data/lib/docusign_maestro/models/ds_workflow_variable_from_variable.rb +231 -0
  81. data/lib/docusign_maestro/models/ds_workflow_variable_record.rb +175 -0
  82. data/lib/docusign_maestro/models/ds_workflow_variable_source_types_participant.rb +28 -0
  83. data/lib/docusign_maestro/models/ds_workflow_variable_source_types_step.rb +28 -0
  84. data/lib/docusign_maestro/models/ds_workflow_variable_source_types_variable.rb +28 -0
  85. data/lib/docusign_maestro/models/e_sign_document_from_e_sign_template.rb +231 -0
  86. data/lib/docusign_maestro/models/e_sign_document_from_previous_step.rb +232 -0
  87. data/lib/docusign_maestro/models/e_sign_document_types_from_ds_template.rb +28 -0
  88. data/lib/docusign_maestro/models/e_sign_document_types_from_previous_step.rb +28 -0
  89. data/lib/docusign_maestro/models/e_sign_documents.rb +175 -0
  90. data/lib/docusign_maestro/models/e_sign_locale_policy.rb +174 -0
  91. data/lib/docusign_maestro/models/e_sign_signer.rb +247 -0
  92. data/lib/docusign_maestro/models/e_sign_tabs.rb +416 -0
  93. data/lib/docusign_maestro/models/e_sign_tabs_record.rb +251 -0
  94. data/lib/docusign_maestro/models/error_codes.rb +44 -0
  95. data/lib/docusign_maestro/models/error_response.rb +193 -0
  96. data/lib/docusign_maestro/models/event_types.rb +31 -0
  97. data/lib/docusign_maestro/models/get_configuration_instance_response.rb +201 -0
  98. data/lib/docusign_maestro/models/get_configuration_instances_response.rb +203 -0
  99. data/lib/docusign_maestro/models/get_configuration_instances_response_config_instances.rb +192 -0
  100. data/lib/docusign_maestro/models/http_types.rb +31 -0
  101. data/lib/docusign_maestro/models/invalid_workflow_response.rb +204 -0
  102. data/lib/docusign_maestro/models/last_deployed_id.rb +174 -0
  103. data/lib/docusign_maestro/models/new_or_updated_workflow_definition_response.rb +232 -0
  104. data/lib/docusign_maestro/models/number_or_variable.rb +175 -0
  105. data/lib/docusign_maestro/models/participant.rb +231 -0
  106. data/lib/docusign_maestro/models/participant_keys.rb +30 -0
  107. data/lib/docusign_maestro/models/progress_instance.rb +205 -0
  108. data/lib/docusign_maestro/models/record_string_boolean.rb +174 -0
  109. data/lib/docusign_maestro/models/record_string_or_variable_or_transformation.rb +175 -0
  110. data/lib/docusign_maestro/models/record_to_never.rb +174 -0
  111. data/lib/docusign_maestro/models/replication_status.rb +37 -0
  112. data/lib/docusign_maestro/models/started_by_instance.rb +237 -0
  113. data/lib/docusign_maestro/models/string_or_variable_or_transformation.rb +175 -0
  114. data/lib/docusign_maestro/models/success_message_response.rb +184 -0
  115. data/lib/docusign_maestro/models/template_id.rb +175 -0
  116. data/lib/docusign_maestro/models/trigger_payload.rb +211 -0
  117. data/lib/docusign_maestro/models/trigger_workflow_via_post_response.rb +194 -0
  118. data/lib/docusign_maestro/models/user_id.rb +175 -0
  119. data/lib/docusign_maestro/models/validation_errors.rb +202 -0
  120. data/lib/docusign_maestro/models/version_string.rb +174 -0
  121. data/lib/docusign_maestro/models/workflow_creator_id.rb +175 -0
  122. data/lib/docusign_maestro/models/workflow_date_time.rb +174 -0
  123. data/lib/docusign_maestro/models/workflow_definition.rb +315 -0
  124. data/lib/docusign_maestro/models/workflow_definition_list.rb +197 -0
  125. data/lib/docusign_maestro/models/workflow_definition_metadata.rb +272 -0
  126. data/lib/docusign_maestro/models/workflow_definition_with_id.rb +292 -0
  127. data/lib/docusign_maestro/models/workflow_delete_response.rb +202 -0
  128. data/lib/docusign_maestro/models/workflow_instance.rb +304 -0
  129. data/lib/docusign_maestro/models/workflow_instance_id.rb +175 -0
  130. data/lib/docusign_maestro/models/workflow_instance_map.rb +174 -0
  131. data/lib/docusign_maestro/models/workflow_instance_state.rb +30 -0
  132. data/lib/docusign_maestro/models/workflow_instances_list.rb +175 -0
  133. data/lib/docusign_maestro/models/workflow_metadata_status.rb +33 -0
  134. data/lib/docusign_maestro/models/workflow_step_error.rb +224 -0
  135. data/lib/docusign_maestro/models/workflow_step_error_error.rb +194 -0
  136. data/lib/docusign_maestro/models/workflow_step_history.rb +298 -0
  137. data/lib/docusign_maestro/models/workflow_step_history_list.rb +175 -0
  138. data/lib/docusign_maestro/models/workflow_step_history_state.rb +30 -0
  139. data/lib/docusign_maestro/version.rb +14 -0
  140. data/lib/docusign_maestro.rb +160 -0
  141. data/runLinter.sh +1 -0
  142. metadata +446 -0
@@ -0,0 +1,298 @@
1
+ =begin
2
+ #Maestro API
3
+
4
+ #Maestro authors and executes experiences that allow non-coders the ability to define Simple Business Process without having to write code and to deploy them seamlessly without having to have development expertise
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module DocuSign_Maestro
15
+ # Details (history) of a Workflow Instance Step
16
+ class WorkflowStepHistory
17
+ attr_accessor :account_id
18
+
19
+ attr_accessor :dac_id
20
+
21
+ attr_accessor :ds_step_id
22
+
23
+ # Track the End time of the Workflow Step
24
+ attr_accessor :end_date
25
+
26
+ attr_accessor :error
27
+
28
+ attr_accessor :output_module_properties
29
+
30
+ # Track the Start time of the Workflow Step
31
+ attr_accessor :start_date
32
+
33
+ # The Step Id of the workflow step in the workflow instance
34
+ attr_accessor :step_id
35
+
36
+ # Name of the workflow step (DS Scope)
37
+ attr_accessor :step_name
38
+
39
+ attr_accessor :step_state
40
+
41
+ attr_accessor :user_id
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'account_id' => :'accountId',
47
+ :'dac_id' => :'dacId',
48
+ :'ds_step_id' => :'dsStepId',
49
+ :'end_date' => :'endDate',
50
+ :'error' => :'error',
51
+ :'output_module_properties' => :'outputModuleProperties',
52
+ :'start_date' => :'startDate',
53
+ :'step_id' => :'stepId',
54
+ :'step_name' => :'stepName',
55
+ :'step_state' => :'stepState',
56
+ :'user_id' => :'userId'
57
+ }
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.swagger_types
62
+ {
63
+ :'account_id' => :'String',
64
+ :'dac_id' => :'String',
65
+ :'ds_step_id' => :'String',
66
+ :'end_date' => :'DateTime',
67
+ :'error' => :'WorkflowStepError',
68
+ :'output_module_properties' => :'Object',
69
+ :'start_date' => :'DateTime',
70
+ :'step_id' => :'String',
71
+ :'step_name' => :'String',
72
+ :'step_state' => :'WorkflowStepHistoryState',
73
+ :'user_id' => :'String'
74
+ }
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ return unless attributes.is_a?(Hash)
81
+
82
+ # convert string to symbol for hash key
83
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
84
+
85
+ if attributes.has_key?(:'accountId')
86
+ self.account_id = attributes[:'accountId']
87
+ end
88
+
89
+ if attributes.has_key?(:'dacId')
90
+ self.dac_id = attributes[:'dacId']
91
+ end
92
+
93
+ if attributes.has_key?(:'dsStepId')
94
+ self.ds_step_id = attributes[:'dsStepId']
95
+ end
96
+
97
+ if attributes.has_key?(:'endDate')
98
+ self.end_date = attributes[:'endDate']
99
+ end
100
+
101
+ if attributes.has_key?(:'error')
102
+ self.error = attributes[:'error']
103
+ end
104
+
105
+ if attributes.has_key?(:'outputModuleProperties')
106
+ self.output_module_properties = attributes[:'outputModuleProperties']
107
+ end
108
+
109
+ if attributes.has_key?(:'startDate')
110
+ self.start_date = attributes[:'startDate']
111
+ end
112
+
113
+ if attributes.has_key?(:'stepId')
114
+ self.step_id = attributes[:'stepId']
115
+ end
116
+
117
+ if attributes.has_key?(:'stepName')
118
+ self.step_name = attributes[:'stepName']
119
+ end
120
+
121
+ if attributes.has_key?(:'stepState')
122
+ self.step_state = attributes[:'stepState']
123
+ end
124
+
125
+ if attributes.has_key?(:'userId')
126
+ self.user_id = attributes[:'userId']
127
+ end
128
+ end
129
+
130
+ # Show invalid properties with the reasons. Usually used together with valid?
131
+ # @return Array for valid properties with the reasons
132
+ def list_invalid_properties
133
+ invalid_properties = Array.new
134
+ if @dac_id.nil?
135
+ invalid_properties.push('invalid value for "dac_id", dac_id cannot be nil.')
136
+ end
137
+
138
+ if @step_name.nil?
139
+ invalid_properties.push('invalid value for "step_name", step_name cannot be nil.')
140
+ end
141
+
142
+ if @step_state.nil?
143
+ invalid_properties.push('invalid value for "step_state", step_state cannot be nil.')
144
+ end
145
+
146
+ if @user_id.nil?
147
+ invalid_properties.push('invalid value for "user_id", user_id cannot be nil.')
148
+ end
149
+
150
+ invalid_properties
151
+ end
152
+
153
+ # Check to see if the all the properties in the model are valid
154
+ # @return true if the model is valid
155
+ def valid?
156
+ return false if @dac_id.nil?
157
+ return false if @step_name.nil?
158
+ return false if @step_state.nil?
159
+ return false if @user_id.nil?
160
+ true
161
+ end
162
+
163
+ # Checks equality by comparing each attribute.
164
+ # @param [Object] Object to be compared
165
+ def ==(o)
166
+ return true if self.equal?(o)
167
+ self.class == o.class &&
168
+ account_id == o.account_id &&
169
+ dac_id == o.dac_id &&
170
+ ds_step_id == o.ds_step_id &&
171
+ end_date == o.end_date &&
172
+ error == o.error &&
173
+ output_module_properties == o.output_module_properties &&
174
+ start_date == o.start_date &&
175
+ step_id == o.step_id &&
176
+ step_name == o.step_name &&
177
+ step_state == o.step_state &&
178
+ user_id == o.user_id
179
+ end
180
+
181
+ # @see the `==` method
182
+ # @param [Object] Object to be compared
183
+ def eql?(o)
184
+ self == o
185
+ end
186
+
187
+ # Calculates hash code according to all attributes.
188
+ # @return [Fixnum] Hash code
189
+ def hash
190
+ [account_id, dac_id, ds_step_id, end_date, error, output_module_properties, start_date, step_id, step_name, step_state, user_id].hash
191
+ end
192
+
193
+ # Builds the object from hash
194
+ # @param [Hash] attributes Model attributes in the form of hash
195
+ # @return [Object] Returns the model itself
196
+ def build_from_hash(attributes)
197
+ return nil unless attributes.is_a?(Hash)
198
+ self.class.swagger_types.each_pair do |key, type|
199
+ if type =~ /\AArray<(.*)>/i
200
+ # check to ensure the input is an array given that the attribute
201
+ # is documented as an array but the input is not
202
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
203
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
204
+ end
205
+ elsif !attributes[self.class.attribute_map[key]].nil?
206
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
207
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
208
+ end
209
+
210
+ self
211
+ end
212
+
213
+ # Deserializes the data based on type
214
+ # @param string type Data type
215
+ # @param string value Value to be deserialized
216
+ # @return [Object] Deserialized data
217
+ def _deserialize(type, value)
218
+ case type.to_sym
219
+ when :DateTime
220
+ DateTime.parse(value)
221
+ when :Date
222
+ Date.parse(value)
223
+ when :String
224
+ value.to_s
225
+ when :Integer
226
+ value.to_i
227
+ when :Float
228
+ value.to_f
229
+ when :BOOLEAN
230
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
231
+ true
232
+ else
233
+ false
234
+ end
235
+ when :Object
236
+ # generic object (usually a Hash), return directly
237
+ value
238
+ when /\AArray<(?<inner_type>.+)>\z/
239
+ inner_type = Regexp.last_match[:inner_type]
240
+ value.map { |v| _deserialize(inner_type, v) }
241
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
242
+ k_type = Regexp.last_match[:k_type]
243
+ v_type = Regexp.last_match[:v_type]
244
+ {}.tap do |hash|
245
+ value.each do |k, v|
246
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
247
+ end
248
+ end
249
+ else # model
250
+ temp_model = DocuSign_Maestro.const_get(type).new
251
+ temp_model.build_from_hash(value)
252
+ end
253
+ end
254
+
255
+ # Returns the string representation of the object
256
+ # @return [String] String presentation of the object
257
+ def to_s
258
+ to_hash.to_s
259
+ end
260
+
261
+ # to_body is an alias to to_hash (backward compatibility)
262
+ # @return [Hash] Returns the object in the form of hash
263
+ def to_body
264
+ to_hash
265
+ end
266
+
267
+ # Returns the object in the form of hash
268
+ # @return [Hash] Returns the object in the form of hash
269
+ def to_hash
270
+ hash = {}
271
+ self.class.attribute_map.each_pair do |attr, param|
272
+ value = self.send(attr)
273
+ next if value.nil?
274
+ hash[param] = _to_hash(value)
275
+ end
276
+ hash
277
+ end
278
+
279
+ # Outputs non-array value in the form of hash
280
+ # For object, use to_hash. Otherwise, just return the value
281
+ # @param [Object] value Any valid value
282
+ # @return [Hash] Returns the value in the form of hash
283
+ def _to_hash(value)
284
+ if value.is_a?(Array)
285
+ value.compact.map { |v| _to_hash(v) }
286
+ elsif value.is_a?(Hash)
287
+ {}.tap do |hash|
288
+ value.each { |k, v| hash[k] = _to_hash(v) }
289
+ end
290
+ elsif value.respond_to? :to_hash
291
+ value.to_hash
292
+ else
293
+ value
294
+ end
295
+ end
296
+
297
+ end
298
+ end
@@ -0,0 +1,175 @@
1
+ =begin
2
+ #Maestro API
3
+
4
+ #Maestro authors and executes experiences that allow non-coders the ability to define Simple Business Process without having to write code and to deploy them seamlessly without having to have development expertise
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module DocuSign_Maestro
15
+ # Returns Array of Workflow Step History.
16
+ class WorkflowStepHistoryList
17
+ # Attribute mapping from ruby-style variable name to JSON key.
18
+ def self.attribute_map
19
+ {
20
+ }
21
+ end
22
+
23
+ # Attribute type mapping.
24
+ def self.swagger_types
25
+ {
26
+ }
27
+ end
28
+
29
+ # Initializes the object
30
+ # @param [Hash] attributes Model attributes in the form of hash
31
+ def initialize(attributes = {})
32
+ return unless attributes.is_a?(Hash)
33
+
34
+ # convert string to symbol for hash key
35
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
36
+ end
37
+
38
+ # Show invalid properties with the reasons. Usually used together with valid?
39
+ # @return Array for valid properties with the reasons
40
+ def list_invalid_properties
41
+ invalid_properties = Array.new
42
+ invalid_properties
43
+ end
44
+
45
+ # Check to see if the all the properties in the model are valid
46
+ # @return true if the model is valid
47
+ def valid?
48
+ true
49
+ end
50
+
51
+ # Checks equality by comparing each attribute.
52
+ # @param [Object] Object to be compared
53
+ def ==(o)
54
+ return true if self.equal?(o)
55
+ self.class == o.class
56
+ end
57
+
58
+ # @see the `==` method
59
+ # @param [Object] Object to be compared
60
+ def eql?(o)
61
+ self == o
62
+ end
63
+
64
+ # Calculates hash code according to all attributes.
65
+ # @return [Fixnum] Hash code
66
+ def hash
67
+ [].hash
68
+ end
69
+
70
+ # Builds the object from hash
71
+ # @param [Hash] attributes Model attributes in the form of hash
72
+ # @return [Object] Returns the model itself
73
+ def build_from_hash(attributes)
74
+ return nil unless attributes.is_a?(Hash)
75
+ self.class.swagger_types.each_pair do |key, type|
76
+ if type =~ /\AArray<(.*)>/i
77
+ # check to ensure the input is an array given that the attribute
78
+ # is documented as an array but the input is not
79
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
80
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
81
+ end
82
+ elsif !attributes[self.class.attribute_map[key]].nil?
83
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
84
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
85
+ end
86
+
87
+ self
88
+ end
89
+
90
+ # Deserializes the data based on type
91
+ # @param string type Data type
92
+ # @param string value Value to be deserialized
93
+ # @return [Object] Deserialized data
94
+ def _deserialize(type, value)
95
+ case type.to_sym
96
+ when :DateTime
97
+ DateTime.parse(value)
98
+ when :Date
99
+ Date.parse(value)
100
+ when :String
101
+ value.to_s
102
+ when :Integer
103
+ value.to_i
104
+ when :Float
105
+ value.to_f
106
+ when :BOOLEAN
107
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
108
+ true
109
+ else
110
+ false
111
+ end
112
+ when :Object
113
+ # generic object (usually a Hash), return directly
114
+ value
115
+ when /\AArray<(?<inner_type>.+)>\z/
116
+ inner_type = Regexp.last_match[:inner_type]
117
+ value.map { |v| _deserialize(inner_type, v) }
118
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
119
+ k_type = Regexp.last_match[:k_type]
120
+ v_type = Regexp.last_match[:v_type]
121
+ {}.tap do |hash|
122
+ value.each do |k, v|
123
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
124
+ end
125
+ end
126
+ else # model
127
+ temp_model = DocuSign_Maestro.const_get(type).new
128
+ temp_model.build_from_hash(value)
129
+ end
130
+ end
131
+
132
+ # Returns the string representation of the object
133
+ # @return [String] String presentation of the object
134
+ def to_s
135
+ to_hash.to_s
136
+ end
137
+
138
+ # to_body is an alias to to_hash (backward compatibility)
139
+ # @return [Hash] Returns the object in the form of hash
140
+ def to_body
141
+ to_hash
142
+ end
143
+
144
+ # Returns the object in the form of hash
145
+ # @return [Hash] Returns the object in the form of hash
146
+ def to_hash
147
+ hash = {}
148
+ self.class.attribute_map.each_pair do |attr, param|
149
+ value = self.send(attr)
150
+ next if value.nil?
151
+ hash[param] = _to_hash(value)
152
+ end
153
+ hash
154
+ end
155
+
156
+ # Outputs non-array value in the form of hash
157
+ # For object, use to_hash. Otherwise, just return the value
158
+ # @param [Object] value Any valid value
159
+ # @return [Hash] Returns the value in the form of hash
160
+ def _to_hash(value)
161
+ if value.is_a?(Array)
162
+ value.compact.map { |v| _to_hash(v) }
163
+ elsif value.is_a?(Hash)
164
+ {}.tap do |hash|
165
+ value.each { |k, v| hash[k] = _to_hash(v) }
166
+ end
167
+ elsif value.respond_to? :to_hash
168
+ value.to_hash
169
+ else
170
+ value
171
+ end
172
+ end
173
+
174
+ end
175
+ end
@@ -0,0 +1,30 @@
1
+ =begin
2
+ #Maestro API
3
+
4
+ #Maestro authors and executes experiences that allow non-coders the ability to define Simple Business Process without having to write code and to deploy them seamlessly without having to have development expertise
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ require 'date'
13
+
14
+ module DocuSign_Maestro
15
+ class WorkflowStepHistoryState
16
+
17
+ IN_PROGRESS = 'In Progress'.freeze
18
+ COMPLETED = 'Completed'.freeze
19
+ FAILED = 'Failed'.freeze
20
+
21
+ # Builds the enum from string
22
+ # @param [String] The enum value in the form of the string
23
+ # @return [String] The enum value
24
+ def build_from_hash(value)
25
+ constantValues = WorkflowStepHistoryState.constants.select { |c| WorkflowStepHistoryState::const_get(c) == value }
26
+ raise "Invalid ENUM value #{value} for class #WorkflowStepHistoryState" if constantValues.empty?
27
+ value
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,14 @@
1
+ =begin
2
+ #Maestro API
3
+
4
+ #Maestro authors and executes experiences that allow non-coders the ability to define Simple Business Process without having to write code and to deploy them seamlessly without having to have development expertise
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ module DocuSign_Maestro
13
+ VERSION = '1.0.0.rc1'
14
+ end
@@ -0,0 +1,160 @@
1
+ =begin
2
+ #Maestro API
3
+
4
+ #Maestro authors and executes experiences that allow non-coders the ability to define Simple Business Process without having to write code and to deploy them seamlessly without having to have development expertise
5
+
6
+ OpenAPI spec version: 1.0.0
7
+ Contact: devcenter@docusign.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ =end
11
+
12
+ # Common files
13
+ require 'docusign_maestro/client/api_client'
14
+ require 'docusign_maestro/client/api_error'
15
+ require 'docusign_maestro/version'
16
+ require 'docusign_maestro/configuration'
17
+
18
+ # Client Files
19
+ require 'docusign_maestro/client/auth/oauth'
20
+
21
+ # Models
22
+ require 'docusign_maestro/models/access_token_response'
23
+ require 'docusign_maestro/models/access_token_token_types'
24
+ require 'docusign_maestro/models/cancel_response'
25
+ require 'docusign_maestro/models/create_or_update_workflow_definition_request_body'
26
+ require 'docusign_maestro/models/ds_do_until_step'
27
+ require 'docusign_maestro/models/ds_doc_gen_step'
28
+ require 'docusign_maestro/models/ds_doc_gen_step_input'
29
+ require 'docusign_maestro/models/ds_idv_step'
30
+ require 'docusign_maestro/models/ds_idv_step_input'
31
+ require 'docusign_maestro/models/ds_if_else_step'
32
+ require 'docusign_maestro/models/ds_loop_step'
33
+ require 'docusign_maestro/models/ds_parallel_step'
34
+ require 'docusign_maestro/models/ds_service_step'
35
+ require 'docusign_maestro/models/ds_sign_step'
36
+ require 'docusign_maestro/models/ds_sign_step_input'
37
+ require 'docusign_maestro/models/ds_transformation_step'
38
+ require 'docusign_maestro/models/ds_web_forms_step'
39
+ require 'docusign_maestro/models/ds_web_forms_step_config'
40
+ require 'docusign_maestro/models/ds_workflow_boolean_expression'
41
+ require 'docusign_maestro/models/ds_workflow_comparison_expression'
42
+ require 'docusign_maestro/models/ds_workflow_comparison_operator_types'
43
+ require 'docusign_maestro/models/ds_workflow_concat_expression'
44
+ require 'docusign_maestro/models/ds_workflow_doc_gen_doc_output_format'
45
+ require 'docusign_maestro/models/ds_workflow_expression_types_boolean_expression'
46
+ require 'docusign_maestro/models/ds_workflow_expression_types_comparison_expression'
47
+ require 'docusign_maestro/models/ds_workflow_expression_types_parallel_expression'
48
+ require 'docusign_maestro/models/ds_workflow_index_of_expression'
49
+ require 'docusign_maestro/models/ds_workflow_lane'
50
+ require 'docusign_maestro/models/ds_workflow_lanes_record'
51
+ require 'docusign_maestro/models/ds_workflow_last_index_of_expression'
52
+ require 'docusign_maestro/models/ds_workflow_logical_operator_types'
53
+ require 'docusign_maestro/models/ds_workflow_parallel_expression'
54
+ require 'docusign_maestro/models/ds_workflow_participant_record'
55
+ require 'docusign_maestro/models/ds_workflow_replace_expression'
56
+ require 'docusign_maestro/models/ds_workflow_step'
57
+ require 'docusign_maestro/models/ds_workflow_step_types_ds_doc_gen'
58
+ require 'docusign_maestro/models/ds_workflow_step_types_ds_idv'
59
+ require 'docusign_maestro/models/ds_workflow_step_types_ds_if_else'
60
+ require 'docusign_maestro/models/ds_workflow_step_types_ds_sign'
61
+ require 'docusign_maestro/models/ds_workflow_step_types_ds_transformation'
62
+ require 'docusign_maestro/models/ds_workflow_step_types_ds_web_forms'
63
+ require 'docusign_maestro/models/ds_workflow_step_types_do_until'
64
+ require 'docusign_maestro/models/ds_workflow_step_types_loop'
65
+ require 'docusign_maestro/models/ds_workflow_step_types_parallel'
66
+ require 'docusign_maestro/models/ds_workflow_substring_expression'
67
+ require 'docusign_maestro/models/ds_workflow_to_lower_expression'
68
+ require 'docusign_maestro/models/ds_workflow_to_upper_expression'
69
+ require 'docusign_maestro/models/ds_workflow_transformation_expression'
70
+ require 'docusign_maestro/models/ds_workflow_transformation_expression_types_concat_expression'
71
+ require 'docusign_maestro/models/ds_workflow_transformation_expression_types_index_of_expression'
72
+ require 'docusign_maestro/models/ds_workflow_transformation_expression_types_last_index_of_expression'
73
+ require 'docusign_maestro/models/ds_workflow_transformation_expression_types_replace_expression'
74
+ require 'docusign_maestro/models/ds_workflow_transformation_expression_types_substring_expression'
75
+ require 'docusign_maestro/models/ds_workflow_transformation_expression_types_to_lower_expression'
76
+ require 'docusign_maestro/models/ds_workflow_transformation_expression_types_to_upper_expression'
77
+ require 'docusign_maestro/models/ds_workflow_trigger'
78
+ require 'docusign_maestro/models/ds_workflow_trigger_types'
79
+ require 'docusign_maestro/models/ds_workflow_variable'
80
+ require 'docusign_maestro/models/ds_workflow_variable_from_participant'
81
+ require 'docusign_maestro/models/ds_workflow_variable_from_step'
82
+ require 'docusign_maestro/models/ds_workflow_variable_from_variable'
83
+ require 'docusign_maestro/models/ds_workflow_variable_record'
84
+ require 'docusign_maestro/models/ds_workflow_variable_source_types_participant'
85
+ require 'docusign_maestro/models/ds_workflow_variable_source_types_step'
86
+ require 'docusign_maestro/models/ds_workflow_variable_source_types_variable'
87
+ require 'docusign_maestro/models/deploy_request'
88
+ require 'docusign_maestro/models/deploy_response'
89
+ require 'docusign_maestro/models/deploy_status'
90
+ require 'docusign_maestro/models/deployment_status'
91
+ require 'docusign_maestro/models/e_sign_document_from_e_sign_template'
92
+ require 'docusign_maestro/models/e_sign_document_from_previous_step'
93
+ require 'docusign_maestro/models/e_sign_document_types_from_ds_template'
94
+ require 'docusign_maestro/models/e_sign_document_types_from_previous_step'
95
+ require 'docusign_maestro/models/e_sign_documents'
96
+ require 'docusign_maestro/models/e_sign_locale_policy'
97
+ require 'docusign_maestro/models/e_sign_signer'
98
+ require 'docusign_maestro/models/e_sign_tabs'
99
+ require 'docusign_maestro/models/e_sign_tabs_record'
100
+ require 'docusign_maestro/models/error_codes'
101
+ require 'docusign_maestro/models/error_response'
102
+ require 'docusign_maestro/models/event_types'
103
+ require 'docusign_maestro/models/get_configuration_instance_response'
104
+ require 'docusign_maestro/models/get_configuration_instances_response'
105
+ require 'docusign_maestro/models/get_configuration_instances_response_config_instances'
106
+ require 'docusign_maestro/models/http_types'
107
+ require 'docusign_maestro/models/invalid_workflow_response'
108
+ require 'docusign_maestro/models/new_or_updated_workflow_definition_response'
109
+ require 'docusign_maestro/models/number_or_variable'
110
+ require 'docusign_maestro/models/participant'
111
+ require 'docusign_maestro/models/participant_keys'
112
+ require 'docusign_maestro/models/progress_instance'
113
+ require 'docusign_maestro/models/record_string_boolean'
114
+ require 'docusign_maestro/models/record_string_or_variable_or_transformation'
115
+ require 'docusign_maestro/models/record_to_never'
116
+ require 'docusign_maestro/models/replication_status'
117
+ require 'docusign_maestro/models/started_by_instance'
118
+ require 'docusign_maestro/models/string_or_variable_or_transformation'
119
+ require 'docusign_maestro/models/success_message_response'
120
+ require 'docusign_maestro/models/trigger_payload'
121
+ require 'docusign_maestro/models/trigger_workflow_via_post_response'
122
+ require 'docusign_maestro/models/validation_errors'
123
+ require 'docusign_maestro/models/workflow_definition'
124
+ require 'docusign_maestro/models/workflow_definition_list'
125
+ require 'docusign_maestro/models/workflow_definition_metadata'
126
+ require 'docusign_maestro/models/workflow_definition_with_id'
127
+ require 'docusign_maestro/models/workflow_delete_response'
128
+ require 'docusign_maestro/models/workflow_instance'
129
+ require 'docusign_maestro/models/workflow_instance_map'
130
+ require 'docusign_maestro/models/workflow_instance_state'
131
+ require 'docusign_maestro/models/workflow_instances_list'
132
+ require 'docusign_maestro/models/workflow_metadata_status'
133
+ require 'docusign_maestro/models/workflow_step_error'
134
+ require 'docusign_maestro/models/workflow_step_error_error'
135
+ require 'docusign_maestro/models/workflow_step_history'
136
+ require 'docusign_maestro/models/workflow_step_history_list'
137
+ require 'docusign_maestro/models/workflow_step_history_state'
138
+
139
+ # APIs
140
+ require 'docusign_maestro/api/workflow_instance_management_api'
141
+ require 'docusign_maestro/api/workflow_management_api'
142
+ require 'docusign_maestro/api/workflow_trigger_api'
143
+
144
+ module DocuSign_Maestro
145
+ class << self
146
+ # Customize default settings for the SDK using block.
147
+ # DocuSign_Maestro.configure do |config|
148
+ # config.username = "xxx"
149
+ # config.password = "xxx"
150
+ # end
151
+ # If no block given, return the default Configuration object.
152
+ def configure
153
+ if block_given?
154
+ yield(Configuration.default)
155
+ else
156
+ Configuration.default
157
+ end
158
+ end
159
+ end
160
+ end
data/runLinter.sh ADDED
@@ -0,0 +1 @@
1
+ ./vendor/bundle/ruby/2.6.0/bin/rubocop -a