yousign_client 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +14 -8
- data/config.json +2 -2
- data/docs/AuthenticationsApi.md +60 -45
- data/docs/CheckDocumentsApi.md +40 -30
- data/docs/ConsentProcessesApi.md +80 -57
- data/docs/FileObjectsApi.md +40 -30
- data/docs/FilesApi.md +40 -30
- data/docs/InlineObject.md +17 -0
- data/docs/InlineObject1.md +19 -0
- data/docs/InlineObject2.md +19 -0
- data/docs/MembersApi.md +50 -36
- data/docs/OperationsApi.md +20 -15
- data/docs/OrganizationsApi.md +11 -10
- data/docs/ProceduresApi.md +90 -66
- data/docs/ServerStampsApi.md +20 -15
- data/docs/SignatureUIsApi.md +101 -82
- data/docs/UserGroupsApi.md +21 -16
- data/docs/UsersApi.md +51 -40
- data/docs/WorkspacesApi.md +11 -10
- data/lib/yousign_client/api/authentications_api.rb +24 -87
- data/lib/yousign_client/api/check_documents_api.rb +16 -58
- data/lib/yousign_client/api/consent_processes_api.rb +32 -109
- data/lib/yousign_client/api/file_objects_api.rb +16 -58
- data/lib/yousign_client/api/files_api.rb +16 -58
- data/lib/yousign_client/api/members_api.rb +20 -69
- data/lib/yousign_client/api/operations_api.rb +8 -29
- data/lib/yousign_client/api/organizations_api.rb +4 -11
- data/lib/yousign_client/api/procedures_api.rb +36 -127
- data/lib/yousign_client/api/server_stamps_api.rb +8 -29
- data/lib/yousign_client/api/signature_u_is_api.rb +40 -152
- data/lib/yousign_client/api/user_groups_api.rb +8 -22
- data/lib/yousign_client/api/users_api.rb +20 -69
- data/lib/yousign_client/api/workspaces_api.rb +4 -11
- data/lib/yousign_client/configuration.rb +1 -1
- data/lib/yousign_client/models/check_document_bank_accounts_output.rb +0 -15
- data/lib/yousign_client/models/check_document_identities_output.rb +0 -15
- data/lib/yousign_client/models/file_object_input.rb +0 -15
- data/lib/yousign_client/models/file_object_input_without_file_reference.rb +0 -15
- data/lib/yousign_client/models/file_object_output.rb +0 -30
- data/lib/yousign_client/models/file_object_output_without_file_reference.rb +0 -30
- data/lib/yousign_client/models/file_output.rb +0 -30
- data/lib/yousign_client/models/inwebo_user_request.rb +0 -15
- data/lib/yousign_client/models/member_input.rb +2 -2
- data/lib/yousign_client/models/member_output.rb +2 -17
- data/lib/yousign_client/models/organization_output.rb +0 -15
- data/lib/yousign_client/models/procedure_output.rb +0 -45
- data/lib/yousign_client/models/user_group.rb +0 -15
- data/lib/yousign_client/models/user_output.rb +0 -15
- data/lib/yousign_client/models/user_workspace_output.rb +0 -15
- data/lib/yousign_client/models/workspace_output.rb +0 -15
- data/lib/yousign_client/version.rb +1 -1
- data/spec/api/authentications_api_spec.rb +0 -9
- data/spec/api/check_documents_api_spec.rb +0 -6
- data/spec/api/consent_processes_api_spec.rb +0 -11
- data/spec/api/file_objects_api_spec.rb +0 -6
- data/spec/api/files_api_spec.rb +0 -6
- data/spec/api/members_api_spec.rb +0 -7
- data/spec/api/operations_api_spec.rb +0 -3
- data/spec/api/organizations_api_spec.rb +0 -1
- data/spec/api/procedures_api_spec.rb +0 -13
- data/spec/api/server_stamps_api_spec.rb +0 -3
- data/spec/api/signature_u_is_api_spec.rb +0 -16
- data/spec/api/user_groups_api_spec.rb +0 -2
- data/spec/api/users_api_spec.rb +0 -7
- data/spec/api/workspaces_api_spec.rb +0 -1
- data/spec/models/member_input_spec.rb +1 -1
- data/spec/models/member_output_spec.rb +1 -1
- data/update_client.sh +0 -4
- data/yousign_client.gemspec +1 -1
- data/yousign_openapi.json +53 -704
- metadata +7 -4
@@ -201,10 +201,6 @@ module YousignClient
|
|
201
201
|
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
202
202
|
end
|
203
203
|
|
204
|
-
if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
205
|
-
invalid_properties.push('invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.')
|
206
|
-
end
|
207
|
-
|
208
204
|
if !@content.nil? && @content.to_s.length > 255
|
209
205
|
invalid_properties.push('invalid value for "content", the character length must be smaller than or equal to 255.')
|
210
206
|
end
|
@@ -228,7 +224,6 @@ module YousignClient
|
|
228
224
|
# @return true if the model is valid
|
229
225
|
def valid?
|
230
226
|
return false if @file.nil?
|
231
|
-
return false if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
232
227
|
type_validator = EnumAttributeValidator.new('String', ['signature', 'text'])
|
233
228
|
return false unless type_validator.valid?(@type)
|
234
229
|
return false if !@content.nil? && @content.to_s.length > 255
|
@@ -240,16 +235,6 @@ module YousignClient
|
|
240
235
|
true
|
241
236
|
end
|
242
237
|
|
243
|
-
# Custom attribute writer method with validation
|
244
|
-
# @param [Object] position Value to be assigned
|
245
|
-
def position=(position)
|
246
|
-
if !position.nil? && position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
247
|
-
fail ArgumentError, 'invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.'
|
248
|
-
end
|
249
|
-
|
250
|
-
@position = position
|
251
|
-
end
|
252
|
-
|
253
238
|
# Custom attribute writer method checking allowed values (enum).
|
254
239
|
# @param [Object] type Object to be assigned
|
255
240
|
def type=(type)
|
@@ -95,30 +95,15 @@ module YousignClient
|
|
95
95
|
# @return Array for valid properties with the reasons
|
96
96
|
def list_invalid_properties
|
97
97
|
invalid_properties = Array.new
|
98
|
-
if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
99
|
-
invalid_properties.push('invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.')
|
100
|
-
end
|
101
|
-
|
102
98
|
invalid_properties
|
103
99
|
end
|
104
100
|
|
105
101
|
# Check to see if the all the properties in the model are valid
|
106
102
|
# @return true if the model is valid
|
107
103
|
def valid?
|
108
|
-
return false if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
109
104
|
true
|
110
105
|
end
|
111
106
|
|
112
|
-
# Custom attribute writer method with validation
|
113
|
-
# @param [Object] position Value to be assigned
|
114
|
-
def position=(position)
|
115
|
-
if !position.nil? && position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
116
|
-
fail ArgumentError, 'invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.'
|
117
|
-
end
|
118
|
-
|
119
|
-
@position = position
|
120
|
-
end
|
121
|
-
|
122
107
|
# Checks equality by comparing each attribute.
|
123
108
|
# @param [Object] Object to be compared
|
124
109
|
def ==(o)
|
@@ -223,18 +223,10 @@ module YousignClient
|
|
223
223
|
# @return Array for valid properties with the reasons
|
224
224
|
def list_invalid_properties
|
225
225
|
invalid_properties = Array.new
|
226
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
227
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
228
|
-
end
|
229
|
-
|
230
226
|
if @file.nil?
|
231
227
|
invalid_properties.push('invalid value for "file", file cannot be nil.')
|
232
228
|
end
|
233
229
|
|
234
|
-
if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
235
|
-
invalid_properties.push('invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.')
|
236
|
-
end
|
237
|
-
|
238
230
|
if !@content.nil? && @content.to_s.length > 255
|
239
231
|
invalid_properties.push('invalid value for "content", the character length must be smaller than or equal to 255.')
|
240
232
|
end
|
@@ -257,9 +249,7 @@ module YousignClient
|
|
257
249
|
# Check to see if the all the properties in the model are valid
|
258
250
|
# @return true if the model is valid
|
259
251
|
def valid?
|
260
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
261
252
|
return false if @file.nil?
|
262
|
-
return false if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
263
253
|
type_validator = EnumAttributeValidator.new('String', ['signature', 'text'])
|
264
254
|
return false unless type_validator.valid?(@type)
|
265
255
|
return false if !@content.nil? && @content.to_s.length > 255
|
@@ -271,26 +261,6 @@ module YousignClient
|
|
271
261
|
true
|
272
262
|
end
|
273
263
|
|
274
|
-
# Custom attribute writer method with validation
|
275
|
-
# @param [Object] id Value to be assigned
|
276
|
-
def id=(id)
|
277
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
278
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
279
|
-
end
|
280
|
-
|
281
|
-
@id = id
|
282
|
-
end
|
283
|
-
|
284
|
-
# Custom attribute writer method with validation
|
285
|
-
# @param [Object] position Value to be assigned
|
286
|
-
def position=(position)
|
287
|
-
if !position.nil? && position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
288
|
-
fail ArgumentError, 'invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.'
|
289
|
-
end
|
290
|
-
|
291
|
-
@position = position
|
292
|
-
end
|
293
|
-
|
294
264
|
# Custom attribute writer method checking allowed values (enum).
|
295
265
|
# @param [Object] type Object to be assigned
|
296
266
|
def type=(type)
|
@@ -131,45 +131,15 @@ module YousignClient
|
|
131
131
|
# @return Array for valid properties with the reasons
|
132
132
|
def list_invalid_properties
|
133
133
|
invalid_properties = Array.new
|
134
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
135
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
136
|
-
end
|
137
|
-
|
138
|
-
if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
139
|
-
invalid_properties.push('invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.')
|
140
|
-
end
|
141
|
-
|
142
134
|
invalid_properties
|
143
135
|
end
|
144
136
|
|
145
137
|
# Check to see if the all the properties in the model are valid
|
146
138
|
# @return true if the model is valid
|
147
139
|
def valid?
|
148
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
149
|
-
return false if !@position.nil? && @position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
150
140
|
true
|
151
141
|
end
|
152
142
|
|
153
|
-
# Custom attribute writer method with validation
|
154
|
-
# @param [Object] id Value to be assigned
|
155
|
-
def id=(id)
|
156
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
157
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
158
|
-
end
|
159
|
-
|
160
|
-
@id = id
|
161
|
-
end
|
162
|
-
|
163
|
-
# Custom attribute writer method with validation
|
164
|
-
# @param [Object] position Value to be assigned
|
165
|
-
def position=(position)
|
166
|
-
if !position.nil? && position !~ Regexp.new(/^\\d+(,\\d+){3}$/)
|
167
|
-
fail ArgumentError, 'invalid value for "position", must conform to the pattern /^\\d+(,\\d+){3}$/.'
|
168
|
-
end
|
169
|
-
|
170
|
-
@position = position
|
171
|
-
end
|
172
|
-
|
173
143
|
# Checks equality by comparing each attribute.
|
174
144
|
# @param [Object] Object to be compared
|
175
145
|
def ==(o)
|
@@ -169,42 +169,22 @@ module YousignClient
|
|
169
169
|
# @return Array for valid properties with the reasons
|
170
170
|
def list_invalid_properties
|
171
171
|
invalid_properties = Array.new
|
172
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
173
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
174
|
-
end
|
175
|
-
|
176
172
|
if !@workspace.nil? && @workspace !~ Regexp.new(/^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
177
173
|
invalid_properties.push('invalid value for "workspace", must conform to the pattern /^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
178
174
|
end
|
179
175
|
|
180
|
-
if !@creator.nil? && @creator !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
181
|
-
invalid_properties.push('invalid value for "creator", must conform to the pattern /^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
182
|
-
end
|
183
|
-
|
184
176
|
invalid_properties
|
185
177
|
end
|
186
178
|
|
187
179
|
# Check to see if the all the properties in the model are valid
|
188
180
|
# @return true if the model is valid
|
189
181
|
def valid?
|
190
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
191
182
|
type_validator = EnumAttributeValidator.new('String', ['signable', 'sign_image', 'attachment'])
|
192
183
|
return false unless type_validator.valid?(@type)
|
193
184
|
return false if !@workspace.nil? && @workspace !~ Regexp.new(/^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
194
|
-
return false if !@creator.nil? && @creator !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
195
185
|
true
|
196
186
|
end
|
197
187
|
|
198
|
-
# Custom attribute writer method with validation
|
199
|
-
# @param [Object] id Value to be assigned
|
200
|
-
def id=(id)
|
201
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
202
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
203
|
-
end
|
204
|
-
|
205
|
-
@id = id
|
206
|
-
end
|
207
|
-
|
208
188
|
# Custom attribute writer method checking allowed values (enum).
|
209
189
|
# @param [Object] type Object to be assigned
|
210
190
|
def type=(type)
|
@@ -225,16 +205,6 @@ module YousignClient
|
|
225
205
|
@workspace = workspace
|
226
206
|
end
|
227
207
|
|
228
|
-
# Custom attribute writer method with validation
|
229
|
-
# @param [Object] creator Value to be assigned
|
230
|
-
def creator=(creator)
|
231
|
-
if !creator.nil? && creator !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
232
|
-
fail ArgumentError, 'invalid value for "creator", must conform to the pattern /^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
233
|
-
end
|
234
|
-
|
235
|
-
@creator = creator
|
236
|
-
end
|
237
|
-
|
238
208
|
# Checks equality by comparing each attribute.
|
239
209
|
# @param [Object] Object to be compared
|
240
210
|
def ==(o)
|
@@ -48,30 +48,15 @@ module YousignClient
|
|
48
48
|
# @return Array for valid properties with the reasons
|
49
49
|
def list_invalid_properties
|
50
50
|
invalid_properties = Array.new
|
51
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
52
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
53
|
-
end
|
54
|
-
|
55
51
|
invalid_properties
|
56
52
|
end
|
57
53
|
|
58
54
|
# Check to see if the all the properties in the model are valid
|
59
55
|
# @return true if the model is valid
|
60
56
|
def valid?
|
61
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
62
57
|
true
|
63
58
|
end
|
64
59
|
|
65
|
-
# Custom attribute writer method with validation
|
66
|
-
# @param [Object] id Value to be assigned
|
67
|
-
def id=(id)
|
68
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
69
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
70
|
-
end
|
71
|
-
|
72
|
-
@id = id
|
73
|
-
end
|
74
|
-
|
75
60
|
# Checks equality by comparing each attribute.
|
76
61
|
# @param [Object] Object to be compared
|
77
62
|
def ==(o)
|
@@ -179,7 +179,7 @@ module YousignClient
|
|
179
179
|
def valid?
|
180
180
|
type_validator = EnumAttributeValidator.new('String', ['signer', 'validator'])
|
181
181
|
return false unless type_validator.valid?(@type)
|
182
|
-
operation_level_validator = EnumAttributeValidator.new('String', ['none', 'custom'])
|
182
|
+
operation_level_validator = EnumAttributeValidator.new('String', ['none', 'custom', 'advanced'])
|
183
183
|
return false unless operation_level_validator.valid?(@operation_level)
|
184
184
|
true
|
185
185
|
end
|
@@ -197,7 +197,7 @@ module YousignClient
|
|
197
197
|
# Custom attribute writer method checking allowed values (enum).
|
198
198
|
# @param [Object] operation_level Object to be assigned
|
199
199
|
def operation_level=(operation_level)
|
200
|
-
validator = EnumAttributeValidator.new('String', ['none', 'custom'])
|
200
|
+
validator = EnumAttributeValidator.new('String', ['none', 'custom', 'advanced'])
|
201
201
|
unless validator.valid?(operation_level)
|
202
202
|
fail ArgumentError, 'invalid value for "operation_level", must be one of #{validator.allowable_values}.'
|
203
203
|
end
|
@@ -213,10 +213,6 @@ module YousignClient
|
|
213
213
|
# @return Array for valid properties with the reasons
|
214
214
|
def list_invalid_properties
|
215
215
|
invalid_properties = Array.new
|
216
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
217
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
218
|
-
end
|
219
|
-
|
220
216
|
if !@user.nil? && @user !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
221
217
|
invalid_properties.push('invalid value for "user", must conform to the pattern /^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
222
218
|
end
|
@@ -227,27 +223,16 @@ module YousignClient
|
|
227
223
|
# Check to see if the all the properties in the model are valid
|
228
224
|
# @return true if the model is valid
|
229
225
|
def valid?
|
230
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
231
226
|
return false if !@user.nil? && @user !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
232
227
|
type_validator = EnumAttributeValidator.new('String', ['signer', 'validator'])
|
233
228
|
return false unless type_validator.valid?(@type)
|
234
229
|
status_validator = EnumAttributeValidator.new('String', ['pending', 'processing', 'done', 'refused'])
|
235
230
|
return false unless status_validator.valid?(@status)
|
236
|
-
operation_level_validator = EnumAttributeValidator.new('String', ['none', 'custom'])
|
231
|
+
operation_level_validator = EnumAttributeValidator.new('String', ['none', 'custom', 'advanced'])
|
237
232
|
return false unless operation_level_validator.valid?(@operation_level)
|
238
233
|
true
|
239
234
|
end
|
240
235
|
|
241
|
-
# Custom attribute writer method with validation
|
242
|
-
# @param [Object] id Value to be assigned
|
243
|
-
def id=(id)
|
244
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
245
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
246
|
-
end
|
247
|
-
|
248
|
-
@id = id
|
249
|
-
end
|
250
|
-
|
251
236
|
# Custom attribute writer method with validation
|
252
237
|
# @param [Object] user Value to be assigned
|
253
238
|
def user=(user)
|
@@ -281,7 +266,7 @@ module YousignClient
|
|
281
266
|
# Custom attribute writer method checking allowed values (enum).
|
282
267
|
# @param [Object] operation_level Object to be assigned
|
283
268
|
def operation_level=(operation_level)
|
284
|
-
validator = EnumAttributeValidator.new('String', ['none', 'custom'])
|
269
|
+
validator = EnumAttributeValidator.new('String', ['none', 'custom', 'advanced'])
|
285
270
|
unless validator.valid?(operation_level)
|
286
271
|
fail ArgumentError, 'invalid value for "operation_level", must be one of #{validator.allowable_values}.'
|
287
272
|
end
|
@@ -345,30 +345,15 @@ module YousignClient
|
|
345
345
|
# @return Array for valid properties with the reasons
|
346
346
|
def list_invalid_properties
|
347
347
|
invalid_properties = Array.new
|
348
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
349
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
350
|
-
end
|
351
|
-
|
352
348
|
invalid_properties
|
353
349
|
end
|
354
350
|
|
355
351
|
# Check to see if the all the properties in the model are valid
|
356
352
|
# @return true if the model is valid
|
357
353
|
def valid?
|
358
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
359
354
|
true
|
360
355
|
end
|
361
356
|
|
362
|
-
# Custom attribute writer method with validation
|
363
|
-
# @param [Object] id Value to be assigned
|
364
|
-
def id=(id)
|
365
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
366
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
367
|
-
end
|
368
|
-
|
369
|
-
@id = id
|
370
|
-
end
|
371
|
-
|
372
357
|
# Checks equality by comparing each attribute.
|
373
358
|
# @param [Object] Object to be compared
|
374
359
|
def ==(o)
|
@@ -244,42 +244,17 @@ module YousignClient
|
|
244
244
|
# @return Array for valid properties with the reasons
|
245
245
|
def list_invalid_properties
|
246
246
|
invalid_properties = Array.new
|
247
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
248
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
249
|
-
end
|
250
|
-
|
251
|
-
if !@creator.nil? && @creator !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
252
|
-
invalid_properties.push('invalid value for "creator", must conform to the pattern /^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
253
|
-
end
|
254
|
-
|
255
|
-
if !@workspace.nil? && @workspace !~ Regexp.new(/^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
256
|
-
invalid_properties.push('invalid value for "workspace", must conform to the pattern /^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
257
|
-
end
|
258
|
-
|
259
247
|
invalid_properties
|
260
248
|
end
|
261
249
|
|
262
250
|
# Check to see if the all the properties in the model are valid
|
263
251
|
# @return true if the model is valid
|
264
252
|
def valid?
|
265
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
266
253
|
status_validator = EnumAttributeValidator.new('String', ['draft', 'active', 'finished', 'expired', 'refused'])
|
267
254
|
return false unless status_validator.valid?(@status)
|
268
|
-
return false if !@creator.nil? && @creator !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
269
|
-
return false if !@workspace.nil? && @workspace !~ Regexp.new(/^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
270
255
|
true
|
271
256
|
end
|
272
257
|
|
273
|
-
# Custom attribute writer method with validation
|
274
|
-
# @param [Object] id Value to be assigned
|
275
|
-
def id=(id)
|
276
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
277
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
278
|
-
end
|
279
|
-
|
280
|
-
@id = id
|
281
|
-
end
|
282
|
-
|
283
258
|
# Custom attribute writer method checking allowed values (enum).
|
284
259
|
# @param [Object] status Object to be assigned
|
285
260
|
def status=(status)
|
@@ -290,26 +265,6 @@ module YousignClient
|
|
290
265
|
@status = status
|
291
266
|
end
|
292
267
|
|
293
|
-
# Custom attribute writer method with validation
|
294
|
-
# @param [Object] creator Value to be assigned
|
295
|
-
def creator=(creator)
|
296
|
-
if !creator.nil? && creator !~ Regexp.new(/^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
297
|
-
fail ArgumentError, 'invalid value for "creator", must conform to the pattern /^\/users\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
298
|
-
end
|
299
|
-
|
300
|
-
@creator = creator
|
301
|
-
end
|
302
|
-
|
303
|
-
# Custom attribute writer method with validation
|
304
|
-
# @param [Object] workspace Value to be assigned
|
305
|
-
def workspace=(workspace)
|
306
|
-
if !workspace.nil? && workspace !~ Regexp.new(/^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
307
|
-
fail ArgumentError, 'invalid value for "workspace", must conform to the pattern /^\/workspaces\/[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
308
|
-
end
|
309
|
-
|
310
|
-
@workspace = workspace
|
311
|
-
end
|
312
|
-
|
313
268
|
# Checks equality by comparing each attribute.
|
314
269
|
# @param [Object] Object to be compared
|
315
270
|
def ==(o)
|
@@ -90,10 +90,6 @@ module YousignClient
|
|
90
90
|
# @return Array for valid properties with the reasons
|
91
91
|
def list_invalid_properties
|
92
92
|
invalid_properties = Array.new
|
93
|
-
if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
94
|
-
invalid_properties.push('invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.')
|
95
|
-
end
|
96
|
-
|
97
93
|
if @name.nil?
|
98
94
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
99
95
|
end
|
@@ -104,21 +100,10 @@ module YousignClient
|
|
104
100
|
# Check to see if the all the properties in the model are valid
|
105
101
|
# @return true if the model is valid
|
106
102
|
def valid?
|
107
|
-
return false if !@id.nil? && @id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
108
103
|
return false if @name.nil?
|
109
104
|
true
|
110
105
|
end
|
111
106
|
|
112
|
-
# Custom attribute writer method with validation
|
113
|
-
# @param [Object] id Value to be assigned
|
114
|
-
def id=(id)
|
115
|
-
if !id.nil? && id !~ Regexp.new(/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/)
|
116
|
-
fail ArgumentError, 'invalid value for "id", must conform to the pattern /^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/.'
|
117
|
-
end
|
118
|
-
|
119
|
-
@id = id
|
120
|
-
end
|
121
|
-
|
122
107
|
# Checks equality by comparing each attribute.
|
123
108
|
# @param [Object] Object to be compared
|
124
109
|
def ==(o)
|