ruby-fs-stack 0.5.1 → 0.5.2

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.1
1
+ 0.5.2
@@ -55,6 +55,428 @@ class Array
55
55
  end
56
56
 
57
57
 
58
+ module Org
59
+
60
+ module Familysearch
61
+
62
+ module Ws
63
+
64
+ module Identity
65
+
66
+ module V2a
67
+
68
+ module Schema
69
+
70
+ #
71
+ class Email
72
+
73
+ # name type.
74
+ attr_accessor :type
75
+ # name value.
76
+ attr_accessor :value
77
+
78
+ # the json hash for this Email
79
+ def to_jaxb_json_hash
80
+ _h = {}
81
+ _h['type'] = type.to_jaxb_json_hash unless type.nil?
82
+ _h['value'] = value.to_jaxb_json_hash unless value.nil?
83
+ return _h
84
+ end
85
+
86
+ # the json (string form) for this Email
87
+ def to_json
88
+ to_jaxb_json_hash.to_json
89
+ end
90
+
91
+ #initializes this Email with a json hash
92
+ def init_jaxb_json_hash(_o)
93
+ @type = String.from_json(_o['type']) unless _o['type'].nil?
94
+ @value = String.from_json(_o['value']) unless _o['value'].nil?
95
+ end
96
+
97
+ # constructs a Email from a (parsed) JSON hash
98
+ def self.from_json(o)
99
+ if o.nil?
100
+ return nil
101
+ else
102
+ inst = new
103
+ inst.init_jaxb_json_hash o
104
+ return inst
105
+ end
106
+ end
107
+ end
108
+
109
+ end
110
+
111
+ end
112
+
113
+ end
114
+
115
+ end
116
+
117
+ end
118
+
119
+ end
120
+
121
+ module Org
122
+
123
+ module Familysearch
124
+
125
+ module Ws
126
+
127
+ module Identity
128
+
129
+ module V2a
130
+
131
+ module Schema
132
+
133
+ #
134
+ class EntityReference
135
+
136
+ # (no documentation provided)
137
+ attr_accessor :id
138
+
139
+ # the json hash for this EntityReference
140
+ def to_jaxb_json_hash
141
+ _h = {}
142
+ _h['id'] = id.to_jaxb_json_hash unless id.nil?
143
+ return _h
144
+ end
145
+
146
+ # the json (string form) for this EntityReference
147
+ def to_json
148
+ to_jaxb_json_hash.to_json
149
+ end
150
+
151
+ #initializes this EntityReference with a json hash
152
+ def init_jaxb_json_hash(_o)
153
+ @id = String.from_json(_o['id']) unless _o['id'].nil?
154
+ end
155
+
156
+ # constructs a EntityReference from a (parsed) JSON hash
157
+ def self.from_json(o)
158
+ if o.nil?
159
+ return nil
160
+ else
161
+ inst = new
162
+ inst.init_jaxb_json_hash o
163
+ return inst
164
+ end
165
+ end
166
+ end
167
+
168
+ end
169
+
170
+ end
171
+
172
+ end
173
+
174
+ end
175
+
176
+ end
177
+
178
+ end
179
+
180
+ module Org
181
+
182
+ module Familysearch
183
+
184
+ module Ws
185
+
186
+ module Identity
187
+
188
+ module V2a
189
+
190
+ module Schema
191
+
192
+ #
193
+ class Name
194
+
195
+ # name type.
196
+ attr_accessor :type
197
+ # name value.
198
+ attr_accessor :value
199
+
200
+ # the json hash for this Name
201
+ def to_jaxb_json_hash
202
+ _h = {}
203
+ _h['type'] = type.to_jaxb_json_hash unless type.nil?
204
+ _h['value'] = value.to_jaxb_json_hash unless value.nil?
205
+ return _h
206
+ end
207
+
208
+ # the json (string form) for this Name
209
+ def to_json
210
+ to_jaxb_json_hash.to_json
211
+ end
212
+
213
+ #initializes this Name with a json hash
214
+ def init_jaxb_json_hash(_o)
215
+ @type = String.from_json(_o['type']) unless _o['type'].nil?
216
+ @value = String.from_json(_o['value']) unless _o['value'].nil?
217
+ end
218
+
219
+ # constructs a Name from a (parsed) JSON hash
220
+ def self.from_json(o)
221
+ if o.nil?
222
+ return nil
223
+ else
224
+ inst = new
225
+ inst.init_jaxb_json_hash o
226
+ return inst
227
+ end
228
+ end
229
+ end
230
+
231
+ end
232
+
233
+ end
234
+
235
+ end
236
+
237
+ end
238
+
239
+ end
240
+
241
+ end
242
+
243
+ module Org
244
+
245
+ module Familysearch
246
+
247
+ module Ws
248
+
249
+ module Identity
250
+
251
+ module V2a
252
+
253
+ module Schema
254
+
255
+ #
256
+ class SessionValue
257
+
258
+ # session value name.
259
+ attr_accessor :name
260
+ # session value value.
261
+ attr_accessor :value
262
+
263
+ # the json hash for this SessionValue
264
+ def to_jaxb_json_hash
265
+ _h = {}
266
+ _h['name'] = name.to_jaxb_json_hash unless name.nil?
267
+ _h['value'] = value.to_jaxb_json_hash unless value.nil?
268
+ return _h
269
+ end
270
+
271
+ # the json (string form) for this SessionValue
272
+ def to_json
273
+ to_jaxb_json_hash.to_json
274
+ end
275
+
276
+ #initializes this SessionValue with a json hash
277
+ def init_jaxb_json_hash(_o)
278
+ @name = String.from_json(_o['name']) unless _o['name'].nil?
279
+ @value = String.from_json(_o['value']) unless _o['value'].nil?
280
+ end
281
+
282
+ # constructs a SessionValue from a (parsed) JSON hash
283
+ def self.from_json(o)
284
+ if o.nil?
285
+ return nil
286
+ else
287
+ inst = new
288
+ inst.init_jaxb_json_hash o
289
+ return inst
290
+ end
291
+ end
292
+ end
293
+
294
+ end
295
+
296
+ end
297
+
298
+ end
299
+
300
+ end
301
+
302
+ end
303
+
304
+ end
305
+
306
+ module Org
307
+
308
+ module Familysearch
309
+
310
+ module Ws
311
+
312
+ module Identity
313
+
314
+ module V2a
315
+
316
+ module Schema
317
+
318
+ #
319
+ class UserPermission
320
+
321
+ # (no documentation provided)
322
+ attr_accessor :id
323
+ # (no documentation provided)
324
+ attr_accessor :name
325
+
326
+ # the json hash for this UserPermission
327
+ def to_jaxb_json_hash
328
+ _h = {}
329
+ _h['id'] = id.to_jaxb_json_hash unless id.nil?
330
+ _h['name'] = name.to_jaxb_json_hash unless name.nil?
331
+ return _h
332
+ end
333
+
334
+ # the json (string form) for this UserPermission
335
+ def to_json
336
+ to_jaxb_json_hash.to_json
337
+ end
338
+
339
+ #initializes this UserPermission with a json hash
340
+ def init_jaxb_json_hash(_o)
341
+ @id = String.from_json(_o['id']) unless _o['id'].nil?
342
+ @name = String.from_json(_o['name']) unless _o['name'].nil?
343
+ end
344
+
345
+ # constructs a UserPermission from a (parsed) JSON hash
346
+ def self.from_json(o)
347
+ if o.nil?
348
+ return nil
349
+ else
350
+ inst = new
351
+ inst.init_jaxb_json_hash o
352
+ return inst
353
+ end
354
+ end
355
+ end
356
+
357
+ end
358
+
359
+ end
360
+
361
+ end
362
+
363
+ end
364
+
365
+ end
366
+
367
+ end
368
+
369
+ module Org
370
+
371
+ module Familysearch
372
+
373
+ module Ws
374
+
375
+ module Identity
376
+
377
+ module V2a
378
+
379
+ module Schema
380
+
381
+ #
382
+ class User
383
+
384
+ # (no documentation provided)
385
+ attr_accessor :id
386
+ # (no documentation provided)
387
+ attr_accessor :requestedId
388
+ # (no documentation provided)
389
+ attr_accessor :username
390
+ # (no documentation provided)
391
+ attr_accessor :password
392
+ # (no documentation provided)
393
+ attr_accessor :names
394
+ # (no documentation provided)
395
+ attr_accessor :emails
396
+ # (no documentation provided)
397
+ attr_accessor :member
398
+ # (no documentation provided)
399
+ attr_accessor :preferences
400
+
401
+ # the json hash for this User
402
+ def to_jaxb_json_hash
403
+ _h = {}
404
+ _h['id'] = id.to_jaxb_json_hash unless id.nil?
405
+ _h['requestedId'] = requestedId.to_jaxb_json_hash unless requestedId.nil?
406
+ _h['username'] = username.to_jaxb_json_hash unless username.nil?
407
+ _h['password'] = password.to_jaxb_json_hash unless password.nil?
408
+ if !names.nil?
409
+ _ha = Array.new
410
+ names.each { | _item | _ha.push _item.to_jaxb_json_hash }
411
+ _h['names'] = _ha
412
+ end
413
+ if !emails.nil?
414
+ _ha = Array.new
415
+ emails.each { | _item | _ha.push _item.to_jaxb_json_hash }
416
+ _h['emails'] = _ha
417
+ end
418
+ _h['member'] = member.to_jaxb_json_hash unless member.nil?
419
+ if !preferences.nil?
420
+ _ha = Array.new
421
+ preferences.each { | _item | _ha.push _item.to_jaxb_json_hash }
422
+ _h['preferences'] = _ha
423
+ end
424
+ return _h
425
+ end
426
+
427
+ # the json (string form) for this User
428
+ def to_json
429
+ to_jaxb_json_hash.to_json
430
+ end
431
+
432
+ #initializes this User with a json hash
433
+ def init_jaxb_json_hash(_o)
434
+ @id = String.from_json(_o['id']) unless _o['id'].nil?
435
+ @requestedId = String.from_json(_o['requestedId']) unless _o['requestedId'].nil?
436
+ @username = String.from_json(_o['username']) unless _o['username'].nil?
437
+ @password = String.from_json(_o['password']) unless _o['password'].nil?
438
+ if !_o['names'].nil?
439
+ @names = Array.new
440
+ _oa = _o['names']
441
+ _oa.each { | _item | @names.push Org::Familysearch::Ws::Identity::V2a::Schema::Name.from_json(_item) }
442
+ end
443
+ if !_o['emails'].nil?
444
+ @emails = Array.new
445
+ _oa = _o['emails']
446
+ _oa.each { | _item | @emails.push Org::Familysearch::Ws::Identity::V2a::Schema::Email.from_json(_item) }
447
+ end
448
+ @member = Org::Familysearch::Ws::Identity::V2a::Schema::Member.from_json(_o['member']) unless _o['member'].nil?
449
+ if !_o['preferences'].nil?
450
+ @preferences = Array.new
451
+ _oa = _o['preferences']
452
+ _oa.each { | _item | @preferences.push Org::Familysearch::Ws::Identity::V2a::Schema::Preference.from_json(_item) }
453
+ end
454
+ end
455
+
456
+ # constructs a User from a (parsed) JSON hash
457
+ def self.from_json(o)
458
+ if o.nil?
459
+ return nil
460
+ else
461
+ inst = new
462
+ inst.init_jaxb_json_hash o
463
+ return inst
464
+ end
465
+ end
466
+ end
467
+
468
+ end
469
+
470
+ end
471
+
472
+ end
473
+
474
+ end
475
+
476
+ end
477
+
478
+ end
479
+
58
480
  module Org
59
481
 
60
482
  module Familysearch
@@ -72,6 +494,8 @@ module Schema
72
494
 
73
495
  # session id.
74
496
  attr_accessor :id
497
+ # session type.
498
+ attr_accessor :type
75
499
  # session values.
76
500
  attr_accessor :values
77
501
 
@@ -79,6 +503,7 @@ module Schema
79
503
  def to_jaxb_json_hash
80
504
  _h = {}
81
505
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
506
+ _h['type'] = type.to_jaxb_json_hash unless type.nil?
82
507
  if !values.nil?
83
508
  _ha = Array.new
84
509
  values.each { | _item | _ha.push _item.to_jaxb_json_hash }
@@ -95,6 +520,7 @@ module Schema
95
520
  #initializes this Session with a json hash
96
521
  def init_jaxb_json_hash(_o)
97
522
  @id = String.from_json(_o['id']) unless _o['id'].nil?
523
+ @type = String.from_json(_o['type']) unless _o['type'].nil?
98
524
  if !_o['values'].nil?
99
525
  @values = Array.new
100
526
  _oa = _o['values']
@@ -139,33 +565,33 @@ module V2a
139
565
  module Schema
140
566
 
141
567
  #
142
- class Authentication
568
+ class Preference
143
569
 
144
- # authentication status.
145
- attr_accessor :status
146
- # authentication resolution URI.
147
- attr_accessor :resolutionUri
570
+ # session value name.
571
+ attr_accessor :name
572
+ # session value.
573
+ attr_accessor :value
148
574
 
149
- # the json hash for this Authentication
575
+ # the json hash for this Preference
150
576
  def to_jaxb_json_hash
151
577
  _h = {}
152
- _h['status'] = status.to_jaxb_json_hash unless status.nil?
153
- _h['resolutionUri'] = resolutionUri.to_jaxb_json_hash unless resolutionUri.nil?
578
+ _h['name'] = name.to_jaxb_json_hash unless name.nil?
579
+ _h['value'] = value.to_jaxb_json_hash unless value.nil?
154
580
  return _h
155
581
  end
156
582
 
157
- # the json (string form) for this Authentication
583
+ # the json (string form) for this Preference
158
584
  def to_json
159
585
  to_jaxb_json_hash.to_json
160
586
  end
161
587
 
162
- #initializes this Authentication with a json hash
588
+ #initializes this Preference with a json hash
163
589
  def init_jaxb_json_hash(_o)
164
- @status = String.from_json(_o['status']) unless _o['status'].nil?
165
- @resolutionUri = String.from_json(_o['resolutionUri']) unless _o['resolutionUri'].nil?
590
+ @name = String.from_json(_o['name']) unless _o['name'].nil?
591
+ @value = String.from_json(_o['value']) unless _o['value'].nil?
166
592
  end
167
593
 
168
- # constructs a Authentication from a (parsed) JSON hash
594
+ # constructs a Preference from a (parsed) JSON hash
169
595
  def self.from_json(o)
170
596
  if o.nil?
171
597
  return nil
@@ -202,37 +628,41 @@ module V2a
202
628
  module Schema
203
629
 
204
630
  #
205
- class User
631
+ class Member
206
632
 
207
633
  # (no documentation provided)
208
634
  attr_accessor :id
209
635
  # (no documentation provided)
210
- attr_accessor :displayName
636
+ attr_accessor :ward
637
+ # (no documentation provided)
638
+ attr_accessor :stake
211
639
  # (no documentation provided)
212
- attr_accessor :email
640
+ attr_accessor :templeDistrict
213
641
 
214
- # the json hash for this User
642
+ # the json hash for this Member
215
643
  def to_jaxb_json_hash
216
644
  _h = {}
217
645
  _h['id'] = id.to_jaxb_json_hash unless id.nil?
218
- _h['displayName'] = displayName.to_jaxb_json_hash unless displayName.nil?
219
- _h['email'] = email.to_jaxb_json_hash unless email.nil?
646
+ _h['ward'] = ward.to_jaxb_json_hash unless ward.nil?
647
+ _h['stake'] = stake.to_jaxb_json_hash unless stake.nil?
648
+ _h['templeDistrict'] = templeDistrict.to_jaxb_json_hash unless templeDistrict.nil?
220
649
  return _h
221
650
  end
222
651
 
223
- # the json (string form) for this User
652
+ # the json (string form) for this Member
224
653
  def to_json
225
654
  to_jaxb_json_hash.to_json
226
655
  end
227
656
 
228
- #initializes this User with a json hash
657
+ #initializes this Member with a json hash
229
658
  def init_jaxb_json_hash(_o)
230
659
  @id = String.from_json(_o['id']) unless _o['id'].nil?
231
- @displayName = String.from_json(_o['displayName']) unless _o['displayName'].nil?
232
- @email = String.from_json(_o['email']) unless _o['email'].nil?
660
+ @ward = Org::Familysearch::Ws::Identity::V2a::Schema::EntityReference.from_json(_o['ward']) unless _o['ward'].nil?
661
+ @stake = Org::Familysearch::Ws::Identity::V2a::Schema::EntityReference.from_json(_o['stake']) unless _o['stake'].nil?
662
+ @templeDistrict = Org::Familysearch::Ws::Identity::V2a::Schema::EntityReference.from_json(_o['templeDistrict']) unless _o['templeDistrict'].nil?
233
663
  end
234
664
 
235
- # constructs a User from a (parsed) JSON hash
665
+ # constructs a Member from a (parsed) JSON hash
236
666
  def self.from_json(o)
237
667
  if o.nil?
238
668
  return nil
@@ -269,33 +699,33 @@ module V2a
269
699
  module Schema
270
700
 
271
701
  #
272
- class SessionValue
702
+ class Authentication
273
703
 
274
- # session value name.
275
- attr_accessor :name
276
- # session value value.
277
- attr_accessor :value
704
+ # authentication status.
705
+ attr_accessor :status
706
+ # authentication resolution URI.
707
+ attr_accessor :resolutionUri
278
708
 
279
- # the json hash for this SessionValue
709
+ # the json hash for this Authentication
280
710
  def to_jaxb_json_hash
281
711
  _h = {}
282
- _h['name'] = name.to_jaxb_json_hash unless name.nil?
283
- _h['value'] = value.to_jaxb_json_hash unless value.nil?
712
+ _h['status'] = status.to_jaxb_json_hash unless status.nil?
713
+ _h['resolutionUri'] = resolutionUri.to_jaxb_json_hash unless resolutionUri.nil?
284
714
  return _h
285
715
  end
286
716
 
287
- # the json (string form) for this SessionValue
717
+ # the json (string form) for this Authentication
288
718
  def to_json
289
719
  to_jaxb_json_hash.to_json
290
720
  end
291
721
 
292
- #initializes this SessionValue with a json hash
722
+ #initializes this Authentication with a json hash
293
723
  def init_jaxb_json_hash(_o)
294
- @name = String.from_json(_o['name']) unless _o['name'].nil?
295
- @value = String.from_json(_o['value']) unless _o['value'].nil?
724
+ @status = String.from_json(_o['status']) unless _o['status'].nil?
725
+ @resolutionUri = String.from_json(_o['resolutionUri']) unless _o['resolutionUri'].nil?
296
726
  end
297
727
 
298
- # constructs a SessionValue from a (parsed) JSON hash
728
+ # constructs a Authentication from a (parsed) JSON hash
299
729
  def self.from_json(o)
300
730
  if o.nil?
301
731
  return nil
@@ -325,36 +755,36 @@ module Familysearch
325
755
 
326
756
  module Ws
327
757
 
328
- module Identity
329
-
330
758
  module V1
331
759
 
332
- module Schema
333
-
334
- # A identity session.
335
- class Session
760
+ # A basic property.
761
+ class BasicProperty
336
762
 
337
- # The id of the session.
338
- attr_accessor :id
763
+ # (no documentation provided)
764
+ attr_accessor :name
765
+ # (no documentation provided)
766
+ attr_accessor :value
339
767
 
340
- # the json hash for this Session
768
+ # the json hash for this BasicProperty
341
769
  def to_jaxb_json_hash
342
770
  _h = {}
343
- _h['id'] = id.to_jaxb_json_hash unless id.nil?
771
+ _h['name'] = name.to_jaxb_json_hash unless name.nil?
772
+ _h['value'] = value.to_jaxb_json_hash unless value.nil?
344
773
  return _h
345
774
  end
346
775
 
347
- # the json (string form) for this Session
776
+ # the json (string form) for this BasicProperty
348
777
  def to_json
349
778
  to_jaxb_json_hash.to_json
350
779
  end
351
780
 
352
- #initializes this Session with a json hash
781
+ #initializes this BasicProperty with a json hash
353
782
  def init_jaxb_json_hash(_o)
354
- @id = String.from_json(_o['id']) unless _o['id'].nil?
783
+ @name = String.from_json(_o['name']) unless _o['name'].nil?
784
+ @value = String.from_json(_o['value']) unless _o['value'].nil?
355
785
  end
356
786
 
357
- # constructs a Session from a (parsed) JSON hash
787
+ # constructs a BasicProperty from a (parsed) JSON hash
358
788
  def self.from_json(o)
359
789
  if o.nil?
360
790
  return nil
@@ -374,6 +804,36 @@ end
374
804
 
375
805
  end
376
806
 
807
+ module Org
808
+
809
+ module Familysearch
810
+
811
+ module Ws
812
+
813
+ module Identity
814
+
815
+ module V2a
816
+
817
+ module Schema
818
+
819
+ # Email Type
820
+ class EmailType
821
+
822
+ # (no documentation provided)
823
+ Primary = "Primary"
824
+
825
+ # (no documentation provided)
826
+ Alternate = "Alternate"
827
+ end
828
+
829
+ end
830
+
831
+ end
832
+
833
+ end
834
+
835
+ end
836
+
377
837
  end
378
838
 
379
839
  end
@@ -384,45 +844,23 @@ module Familysearch
384
844
 
385
845
  module Ws
386
846
 
387
- module V1
847
+ module Identity
388
848
 
389
- #
390
- class BasicProperty
849
+ module V2a
391
850
 
392
- # (no documentation provided)
393
- attr_accessor :name
394
- # (no documentation provided)
395
- attr_accessor :value
851
+ module Schema
396
852
 
397
- # the json hash for this BasicProperty
398
- def to_jaxb_json_hash
399
- _h = {}
400
- _h['name'] = name.to_jaxb_json_hash unless name.nil?
401
- _h['value'] = value.to_jaxb_json_hash unless value.nil?
402
- return _h
403
- end
853
+ # Name Type
854
+ class NameType
404
855
 
405
- # the json (string form) for this BasicProperty
406
- def to_json
407
- to_jaxb_json_hash.to_json
408
- end
856
+ # (no documentation provided)
857
+ Family = "Family"
409
858
 
410
- #initializes this BasicProperty with a json hash
411
- def init_jaxb_json_hash(_o)
412
- @name = String.from_json(_o['name']) unless _o['name'].nil?
413
- @value = String.from_json(_o['value']) unless _o['value'].nil?
414
- end
859
+ # (no documentation provided)
860
+ Given = "Given"
415
861
 
416
- # constructs a BasicProperty from a (parsed) JSON hash
417
- def self.from_json(o)
418
- if o.nil?
419
- return nil
420
- else
421
- inst = new
422
- inst.init_jaxb_json_hash o
423
- return inst
424
- end
425
- end
862
+ # (no documentation provided)
863
+ Display = "Display"
426
864
  end
427
865
 
428
866
  end
@@ -433,6 +871,10 @@ end
433
871
 
434
872
  end
435
873
 
874
+ end
875
+
876
+ end
877
+
436
878
  module Org
437
879
 
438
880
  module Familysearch
@@ -513,7 +955,7 @@ module Ws
513
955
 
514
956
  module V1
515
957
 
516
- #
958
+ # Default error implementation.
517
959
  class BasicError
518
960
 
519
961
  # (no documentation provided)
@@ -580,21 +1022,21 @@ module Ws
580
1022
 
581
1023
  module V1
582
1024
 
583
- #
1025
+ # Base class for v1 root elements.
584
1026
  class BasicElement
585
1027
 
586
- # (no documentation provided)
1028
+ # The response code.
587
1029
  attr_accessor :statusCode
588
- # (no documentation provided)
1030
+ # Deprecated flag.
589
1031
  attr_accessor :deprecated
590
- # (no documentation provided)
1032
+ # The status message.
591
1033
  attr_accessor :statusMessage
592
- # (no documentation provided)
1034
+ # The version.
593
1035
  attr_accessor :version
594
- # (no documentation provided)
595
- attr_accessor :properties
596
- # (no documentation provided)
1036
+ # The errors.
597
1037
  attr_accessor :errors
1038
+ # The properties.
1039
+ attr_accessor :properties
598
1040
 
599
1041
  # the json hash for this BasicElement
600
1042
  def to_jaxb_json_hash
@@ -603,16 +1045,16 @@ module V1
603
1045
  _h['deprecated'] = deprecated.to_jaxb_json_hash unless deprecated.nil?
604
1046
  _h['statusMessage'] = statusMessage.to_jaxb_json_hash unless statusMessage.nil?
605
1047
  _h['version'] = version.to_jaxb_json_hash unless version.nil?
606
- if !properties.nil?
607
- _ha = Array.new
608
- properties.each { | _item | _ha.push _item.to_jaxb_json_hash }
609
- _h['properties'] = _ha
610
- end
611
1048
  if !errors.nil?
612
1049
  _ha = Array.new
613
1050
  errors.each { | _item | _ha.push _item.to_jaxb_json_hash }
614
1051
  _h['errors'] = _ha
615
1052
  end
1053
+ if !properties.nil?
1054
+ _ha = Array.new
1055
+ properties.each { | _item | _ha.push _item.to_jaxb_json_hash }
1056
+ _h['properties'] = _ha
1057
+ end
616
1058
  return _h
617
1059
  end
618
1060
 
@@ -627,16 +1069,16 @@ module V1
627
1069
  @deprecated = Boolean.from_json(_o['deprecated']) unless _o['deprecated'].nil?
628
1070
  @statusMessage = String.from_json(_o['statusMessage']) unless _o['statusMessage'].nil?
629
1071
  @version = String.from_json(_o['version']) unless _o['version'].nil?
630
- if !_o['properties'].nil?
631
- @properties = Array.new
632
- _oa = _o['properties']
633
- _oa.each { | _item | @properties.push Org::Familysearch::Ws::V1::BasicProperty.from_json(_item) }
634
- end
635
1072
  if !_o['errors'].nil?
636
1073
  @errors = Array.new
637
1074
  _oa = _o['errors']
638
1075
  _oa.each { | _item | @errors.push Org::Familysearch::Ws::V1::BasicError.from_json(_item) }
639
1076
  end
1077
+ if !_o['properties'].nil?
1078
+ @properties = Array.new
1079
+ _oa = _o['properties']
1080
+ _oa.each { | _item | @properties.push Org::Familysearch::Ws::V1::BasicProperty.from_json(_item) }
1081
+ end
640
1082
  end
641
1083
 
642
1084
  # constructs a BasicElement from a (parsed) JSON hash
@@ -672,41 +1114,33 @@ module V2a
672
1114
  module Schema
673
1115
 
674
1116
  #
675
- class IdentityStatus
1117
+ class IdentityProperty
676
1118
 
677
1119
  # (no documentation provided)
678
- attr_accessor :code
679
- # (no documentation provided)
680
- attr_accessor :subcode
681
- # (no documentation provided)
682
- attr_accessor :message
1120
+ attr_accessor :name
683
1121
  # (no documentation provided)
684
- attr_accessor :details
1122
+ attr_accessor :value
685
1123
 
686
- # the json hash for this IdentityStatus
1124
+ # the json hash for this IdentityProperty
687
1125
  def to_jaxb_json_hash
688
1126
  _h = {}
689
- _h['code'] = code.to_jaxb_json_hash unless code.nil?
690
- _h['subcode'] = subcode.to_jaxb_json_hash unless subcode.nil?
691
- _h['message'] = message.to_jaxb_json_hash unless message.nil?
692
- _h['details'] = details.to_jaxb_json_hash unless details.nil?
1127
+ _h['name'] = name.to_jaxb_json_hash unless name.nil?
1128
+ _h['value'] = value.to_jaxb_json_hash unless value.nil?
693
1129
  return _h
694
1130
  end
695
1131
 
696
- # the json (string form) for this IdentityStatus
1132
+ # the json (string form) for this IdentityProperty
697
1133
  def to_json
698
1134
  to_jaxb_json_hash.to_json
699
1135
  end
700
1136
 
701
- #initializes this IdentityStatus with a json hash
1137
+ #initializes this IdentityProperty with a json hash
702
1138
  def init_jaxb_json_hash(_o)
703
- @code = Fixnum.from_json(_o['code']) unless _o['code'].nil?
704
- @subcode = Fixnum.from_json(_o['subcode']) unless _o['subcode'].nil?
705
- @message = String.from_json(_o['message']) unless _o['message'].nil?
706
- @details = String.from_json(_o['details']) unless _o['details'].nil?
1139
+ @name = String.from_json(_o['name']) unless _o['name'].nil?
1140
+ @value = String.from_json(_o['value']) unless _o['value'].nil?
707
1141
  end
708
1142
 
709
- # constructs a IdentityStatus from a (parsed) JSON hash
1143
+ # constructs a IdentityProperty from a (parsed) JSON hash
710
1144
  def self.from_json(o)
711
1145
  if o.nil?
712
1146
  return nil
@@ -743,33 +1177,41 @@ module V2a
743
1177
  module Schema
744
1178
 
745
1179
  #
746
- class IdentityProperty
1180
+ class IdentityStatus
747
1181
 
748
1182
  # (no documentation provided)
749
- attr_accessor :name
1183
+ attr_accessor :code
750
1184
  # (no documentation provided)
751
- attr_accessor :value
1185
+ attr_accessor :subcode
1186
+ # (no documentation provided)
1187
+ attr_accessor :message
1188
+ # (no documentation provided)
1189
+ attr_accessor :details
752
1190
 
753
- # the json hash for this IdentityProperty
1191
+ # the json hash for this IdentityStatus
754
1192
  def to_jaxb_json_hash
755
1193
  _h = {}
756
- _h['name'] = name.to_jaxb_json_hash unless name.nil?
757
- _h['value'] = value.to_jaxb_json_hash unless value.nil?
1194
+ _h['code'] = code.to_jaxb_json_hash unless code.nil?
1195
+ _h['subcode'] = subcode.to_jaxb_json_hash unless subcode.nil?
1196
+ _h['message'] = message.to_jaxb_json_hash unless message.nil?
1197
+ _h['details'] = details.to_jaxb_json_hash unless details.nil?
758
1198
  return _h
759
1199
  end
760
1200
 
761
- # the json (string form) for this IdentityProperty
1201
+ # the json (string form) for this IdentityStatus
762
1202
  def to_json
763
1203
  to_jaxb_json_hash.to_json
764
1204
  end
765
1205
 
766
- #initializes this IdentityProperty with a json hash
1206
+ #initializes this IdentityStatus with a json hash
767
1207
  def init_jaxb_json_hash(_o)
768
- @name = String.from_json(_o['name']) unless _o['name'].nil?
769
- @value = String.from_json(_o['value']) unless _o['value'].nil?
1208
+ @code = Fixnum.from_json(_o['code']) unless _o['code'].nil?
1209
+ @subcode = Fixnum.from_json(_o['subcode']) unless _o['subcode'].nil?
1210
+ @message = String.from_json(_o['message']) unless _o['message'].nil?
1211
+ @details = String.from_json(_o['details']) unless _o['details'].nil?
770
1212
  end
771
1213
 
772
- # constructs a IdentityProperty from a (parsed) JSON hash
1214
+ # constructs a IdentityStatus from a (parsed) JSON hash
773
1215
  def self.from_json(o)
774
1216
  if o.nil?
775
1217
  return nil
@@ -808,20 +1250,16 @@ module Schema
808
1250
  #
809
1251
  class Identity < Org::Familysearch::Ws::V1::BasicElement
810
1252
 
811
- # The session associated with the identity.
812
- attr_accessor :session
813
1253
 
814
1254
  # the json hash for this Identity
815
1255
  def to_jaxb_json_hash
816
1256
  _h = super
817
- _h['session'] = session.to_jaxb_json_hash unless session.nil?
818
1257
  return _h
819
1258
  end
820
1259
 
821
1260
  #initializes this Identity with a json hash
822
1261
  def init_jaxb_json_hash(_o)
823
1262
  super _o
824
- @session = Org::Familysearch::Ws::Identity::V1::Schema::Session.from_json(_o['session']) unless _o['session'].nil?
825
1263
  end
826
1264
 
827
1265
  # constructs a Identity from a (parsed) JSON hash
@@ -881,6 +1319,8 @@ module Schema
881
1319
  attr_accessor :users
882
1320
  # The properties.
883
1321
  attr_accessor :properties
1322
+ # permissions.
1323
+ attr_accessor :permissions
884
1324
 
885
1325
  # the json hash for this Identity
886
1326
  def to_jaxb_json_hash
@@ -906,6 +1346,11 @@ module Schema
906
1346
  properties.each { | _item | _ha.push _item.to_jaxb_json_hash }
907
1347
  _h['properties'] = _ha
908
1348
  end
1349
+ if !permissions.nil?
1350
+ _ha = Array.new
1351
+ permissions.each { | _item | _ha.push _item.to_jaxb_json_hash }
1352
+ _h['permissions'] = _ha
1353
+ end
909
1354
  return _h
910
1355
  end
911
1356
 
@@ -937,6 +1382,11 @@ module Schema
937
1382
  _oa = _o['properties']
938
1383
  _oa.each { | _item | @properties.push Org::Familysearch::Ws::Identity::V2a::Schema::IdentityProperty.from_json(_item) }
939
1384
  end
1385
+ if !_o['permissions'].nil?
1386
+ @permissions = Array.new
1387
+ _oa = _o['permissions']
1388
+ _oa.each { | _item | @permissions.push Org::Familysearch::Ws::Identity::V2a::Schema::UserPermission.from_json(_item) }
1389
+ end
940
1390
  end
941
1391
 
942
1392
  # constructs a Identity from a (parsed) JSON hash