Class: TurnkeyClient::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/turnkey_client/models/result.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Result

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
# File 'lib/turnkey_client/models/result.rb', line 299

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::Result` initialize method"
  end

  # check to see if the attribute exists and convert string to symbol for hash key
  attributes = attributes.each_with_object({}) { |(k, v), h|
    if (!self.class.attribute_map.key?(k.to_sym))
      fail ArgumentError, "`#{k}` is not a valid attribute in `TurnkeyClient::Result`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
    end
    h[k.to_sym] = v
  }

  if attributes.key?(:'create_organization_result')
    self.create_organization_result = attributes[:'create_organization_result']
  end

  if attributes.key?(:'create_authenticators_result')
    self.create_authenticators_result = attributes[:'create_authenticators_result']
  end

  if attributes.key?(:'create_users_result')
    self.create_users_result = attributes[:'create_users_result']
  end

  if attributes.key?(:'create_private_keys_result')
    self.create_private_keys_result = attributes[:'create_private_keys_result']
  end

  if attributes.key?(:'create_invitations_result')
    self.create_invitations_result = attributes[:'create_invitations_result']
  end

  if attributes.key?(:'accept_invitation_result')
    self.accept_invitation_result = attributes[:'accept_invitation_result']
  end

  if attributes.key?(:'sign_raw_payload_result')
    self.sign_raw_payload_result = attributes[:'sign_raw_payload_result']
  end

  if attributes.key?(:'create_policy_result')
    self.create_policy_result = attributes[:'create_policy_result']
  end

  if attributes.key?(:'disable_private_key_result')
    self.disable_private_key_result = attributes[:'disable_private_key_result']
  end

  if attributes.key?(:'delete_users_result')
    self.delete_users_result = attributes[:'delete_users_result']
  end

  if attributes.key?(:'delete_authenticators_result')
    self.delete_authenticators_result = attributes[:'delete_authenticators_result']
  end

  if attributes.key?(:'delete_invitation_result')
    self.delete_invitation_result = attributes[:'delete_invitation_result']
  end

  if attributes.key?(:'delete_organization_result')
    self.delete_organization_result = attributes[:'delete_organization_result']
  end

  if attributes.key?(:'delete_policy_result')
    self.delete_policy_result = attributes[:'delete_policy_result']
  end

  if attributes.key?(:'create_user_tag_result')
    self.create_user_tag_result = attributes[:'create_user_tag_result']
  end

  if attributes.key?(:'delete_user_tags_result')
    self.delete_user_tags_result = attributes[:'delete_user_tags_result']
  end

  if attributes.key?(:'sign_transaction_result')
    self.sign_transaction_result = attributes[:'sign_transaction_result']
  end

  if attributes.key?(:'delete_api_keys_result')
    self.delete_api_keys_result = attributes[:'delete_api_keys_result']
  end

  if attributes.key?(:'create_api_keys_result')
    self.create_api_keys_result = attributes[:'create_api_keys_result']
  end

  if attributes.key?(:'create_private_key_tag_result')
    self.create_private_key_tag_result = attributes[:'create_private_key_tag_result']
  end

  if attributes.key?(:'delete_private_key_tags_result')
    self.delete_private_key_tags_result = attributes[:'delete_private_key_tags_result']
  end

  if attributes.key?(:'set_payment_method_result')
    self.set_payment_method_result = attributes[:'set_payment_method_result']
  end

  if attributes.key?(:'activate_billing_tier_result')
    self.activate_billing_tier_result = attributes[:'activate_billing_tier_result']
  end

  if attributes.key?(:'delete_payment_method_result')
    self.delete_payment_method_result = attributes[:'delete_payment_method_result']
  end

  if attributes.key?(:'create_api_only_users_result')
    self.create_api_only_users_result = attributes[:'create_api_only_users_result']
  end

  if attributes.key?(:'update_root_quorum_result')
    self.update_root_quorum_result = attributes[:'update_root_quorum_result']
  end

  if attributes.key?(:'update_user_tag_result')
    self.update_user_tag_result = attributes[:'update_user_tag_result']
  end

  if attributes.key?(:'update_private_key_tag_result')
    self.update_private_key_tag_result = attributes[:'update_private_key_tag_result']
  end

  if attributes.key?(:'create_sub_organization_result')
    self.create_sub_organization_result = attributes[:'create_sub_organization_result']
  end

  if attributes.key?(:'update_allowed_origins_result')
    self.update_allowed_origins_result = attributes[:'update_allowed_origins_result']
  end

  if attributes.key?(:'create_private_keys_result_v2')
    self.create_private_keys_result_v2 = attributes[:'create_private_keys_result_v2']
  end

  if attributes.key?(:'update_user_result')
    self.update_user_result = attributes[:'update_user_result']
  end

  if attributes.key?(:'update_policy_result')
    self.update_policy_result = attributes[:'update_policy_result']
  end

  if attributes.key?(:'create_sub_organization_result_v3')
    self.create_sub_organization_result_v3 = attributes[:'create_sub_organization_result_v3']
  end

  if attributes.key?(:'create_wallet_result')
    self.create_wallet_result = attributes[:'create_wallet_result']
  end

  if attributes.key?(:'create_wallet_accounts_result')
    self.create_wallet_accounts_result = attributes[:'create_wallet_accounts_result']
  end

  if attributes.key?(:'init_user_email_recovery_result')
    self.init_user_email_recovery_result = attributes[:'init_user_email_recovery_result']
  end

  if attributes.key?(:'recover_user_result')
    self.recover_user_result = attributes[:'recover_user_result']
  end

  if attributes.key?(:'set_organization_feature_result')
    self.set_organization_feature_result = attributes[:'set_organization_feature_result']
  end

  if attributes.key?(:'remove_organization_feature_result')
    self.remove_organization_feature_result = attributes[:'remove_organization_feature_result']
  end

  if attributes.key?(:'export_private_key_result')
    self.export_private_key_result = attributes[:'export_private_key_result']
  end

  if attributes.key?(:'export_wallet_result')
    self.export_wallet_result = attributes[:'export_wallet_result']
  end

  if attributes.key?(:'create_sub_organization_result_v4')
    self.create_sub_organization_result_v4 = attributes[:'create_sub_organization_result_v4']
  end

  if attributes.key?(:'email_auth_result')
    self.email_auth_result = attributes[:'email_auth_result']
  end

  if attributes.key?(:'export_wallet_account_result')
    self. = attributes[:'export_wallet_account_result']
  end

  if attributes.key?(:'init_import_wallet_result')
    self.init_import_wallet_result = attributes[:'init_import_wallet_result']
  end

  if attributes.key?(:'import_wallet_result')
    self.import_wallet_result = attributes[:'import_wallet_result']
  end

  if attributes.key?(:'init_import_private_key_result')
    self.init_import_private_key_result = attributes[:'init_import_private_key_result']
  end

  if attributes.key?(:'import_private_key_result')
    self.import_private_key_result = attributes[:'import_private_key_result']
  end

  if attributes.key?(:'create_policies_result')
    self.create_policies_result = attributes[:'create_policies_result']
  end

  if attributes.key?(:'sign_raw_payloads_result')
    self.sign_raw_payloads_result = attributes[:'sign_raw_payloads_result']
  end

  if attributes.key?(:'create_read_only_session_result')
    self.create_read_only_session_result = attributes[:'create_read_only_session_result']
  end

  if attributes.key?(:'create_oauth_providers_result')
    self.create_oauth_providers_result = attributes[:'create_oauth_providers_result']
  end

  if attributes.key?(:'delete_oauth_providers_result')
    self.delete_oauth_providers_result = attributes[:'delete_oauth_providers_result']
  end

  if attributes.key?(:'create_sub_organization_result_v5')
    self.create_sub_organization_result_v5 = attributes[:'create_sub_organization_result_v5']
  end

  if attributes.key?(:'oauth_result')
    self.oauth_result = attributes[:'oauth_result']
  end

  if attributes.key?(:'create_read_write_session_result')
    self.create_read_write_session_result = attributes[:'create_read_write_session_result']
  end

  if attributes.key?(:'create_sub_organization_result_v6')
    self.create_sub_organization_result_v6 = attributes[:'create_sub_organization_result_v6']
  end

  if attributes.key?(:'delete_private_keys_result')
    self.delete_private_keys_result = attributes[:'delete_private_keys_result']
  end

  if attributes.key?(:'delete_wallets_result')
    self.delete_wallets_result = attributes[:'delete_wallets_result']
  end

  if attributes.key?(:'create_read_write_session_result_v2')
    self.create_read_write_session_result_v2 = attributes[:'create_read_write_session_result_v2']
  end

  if attributes.key?(:'delete_sub_organization_result')
    self.delete_sub_organization_result = attributes[:'delete_sub_organization_result']
  end

  if attributes.key?(:'init_otp_auth_result')
    self.init_otp_auth_result = attributes[:'init_otp_auth_result']
  end

  if attributes.key?(:'otp_auth_result')
    self.otp_auth_result = attributes[:'otp_auth_result']
  end

  if attributes.key?(:'create_sub_organization_result_v7')
    self.create_sub_organization_result_v7 = attributes[:'create_sub_organization_result_v7']
  end

  if attributes.key?(:'update_wallet_result')
    self.update_wallet_result = attributes[:'update_wallet_result']
  end
end

Instance Attribute Details

#accept_invitation_resultObject

Returns the value of attribute accept_invitation_result.



25
26
27
# File 'lib/turnkey_client/models/result.rb', line 25

def accept_invitation_result
  @accept_invitation_result
end

#activate_billing_tier_resultObject

Returns the value of attribute activate_billing_tier_result.



59
60
61
# File 'lib/turnkey_client/models/result.rb', line 59

def activate_billing_tier_result
  @activate_billing_tier_result
end

#create_api_keys_resultObject

Returns the value of attribute create_api_keys_result.



51
52
53
# File 'lib/turnkey_client/models/result.rb', line 51

def create_api_keys_result
  @create_api_keys_result
end

#create_api_only_users_resultObject

Returns the value of attribute create_api_only_users_result.



63
64
65
# File 'lib/turnkey_client/models/result.rb', line 63

def create_api_only_users_result
  @create_api_only_users_result
end

#create_authenticators_resultObject

Returns the value of attribute create_authenticators_result.



17
18
19
# File 'lib/turnkey_client/models/result.rb', line 17

def create_authenticators_result
  @create_authenticators_result
end

#create_invitations_resultObject

Returns the value of attribute create_invitations_result.



23
24
25
# File 'lib/turnkey_client/models/result.rb', line 23

def create_invitations_result
  @create_invitations_result
end

#create_oauth_providers_resultObject

Returns the value of attribute create_oauth_providers_result.



119
120
121
# File 'lib/turnkey_client/models/result.rb', line 119

def create_oauth_providers_result
  @create_oauth_providers_result
end

#create_organization_resultObject

Returns the value of attribute create_organization_result.



15
16
17
# File 'lib/turnkey_client/models/result.rb', line 15

def create_organization_result
  @create_organization_result
end

#create_policies_resultObject

Returns the value of attribute create_policies_result.



113
114
115
# File 'lib/turnkey_client/models/result.rb', line 113

def create_policies_result
  @create_policies_result
end

#create_policy_resultObject

Returns the value of attribute create_policy_result.



29
30
31
# File 'lib/turnkey_client/models/result.rb', line 29

def create_policy_result
  @create_policy_result
end

#create_private_key_tag_resultObject

Returns the value of attribute create_private_key_tag_result.



53
54
55
# File 'lib/turnkey_client/models/result.rb', line 53

def create_private_key_tag_result
  @create_private_key_tag_result
end

#create_private_keys_resultObject

Returns the value of attribute create_private_keys_result.



21
22
23
# File 'lib/turnkey_client/models/result.rb', line 21

def create_private_keys_result
  @create_private_keys_result
end

#create_private_keys_result_v2Object

Returns the value of attribute create_private_keys_result_v2.



75
76
77
# File 'lib/turnkey_client/models/result.rb', line 75

def create_private_keys_result_v2
  @create_private_keys_result_v2
end

#create_read_only_session_resultObject

Returns the value of attribute create_read_only_session_result.



117
118
119
# File 'lib/turnkey_client/models/result.rb', line 117

def create_read_only_session_result
  @create_read_only_session_result
end

#create_read_write_session_resultObject

Returns the value of attribute create_read_write_session_result.



127
128
129
# File 'lib/turnkey_client/models/result.rb', line 127

def create_read_write_session_result
  @create_read_write_session_result
end

#create_read_write_session_result_v2Object

Returns the value of attribute create_read_write_session_result_v2.



135
136
137
# File 'lib/turnkey_client/models/result.rb', line 135

def create_read_write_session_result_v2
  @create_read_write_session_result_v2
end

#create_sub_organization_resultObject

Returns the value of attribute create_sub_organization_result.



71
72
73
# File 'lib/turnkey_client/models/result.rb', line 71

def create_sub_organization_result
  @create_sub_organization_result
end

#create_sub_organization_result_v3Object

Returns the value of attribute create_sub_organization_result_v3.



81
82
83
# File 'lib/turnkey_client/models/result.rb', line 81

def create_sub_organization_result_v3
  @create_sub_organization_result_v3
end

#create_sub_organization_result_v4Object

Returns the value of attribute create_sub_organization_result_v4.



99
100
101
# File 'lib/turnkey_client/models/result.rb', line 99

def create_sub_organization_result_v4
  @create_sub_organization_result_v4
end

#create_sub_organization_result_v5Object

Returns the value of attribute create_sub_organization_result_v5.



123
124
125
# File 'lib/turnkey_client/models/result.rb', line 123

def create_sub_organization_result_v5
  @create_sub_organization_result_v5
end

#create_sub_organization_result_v6Object

Returns the value of attribute create_sub_organization_result_v6.



129
130
131
# File 'lib/turnkey_client/models/result.rb', line 129

def create_sub_organization_result_v6
  @create_sub_organization_result_v6
end

#create_sub_organization_result_v7Object

Returns the value of attribute create_sub_organization_result_v7.



143
144
145
# File 'lib/turnkey_client/models/result.rb', line 143

def create_sub_organization_result_v7
  @create_sub_organization_result_v7
end

#create_user_tag_resultObject

Returns the value of attribute create_user_tag_result.



43
44
45
# File 'lib/turnkey_client/models/result.rb', line 43

def create_user_tag_result
  @create_user_tag_result
end

#create_users_resultObject

Returns the value of attribute create_users_result.



19
20
21
# File 'lib/turnkey_client/models/result.rb', line 19

def create_users_result
  @create_users_result
end

#create_wallet_accounts_resultObject

Returns the value of attribute create_wallet_accounts_result.



85
86
87
# File 'lib/turnkey_client/models/result.rb', line 85

def create_wallet_accounts_result
  @create_wallet_accounts_result
end

#create_wallet_resultObject

Returns the value of attribute create_wallet_result.



83
84
85
# File 'lib/turnkey_client/models/result.rb', line 83

def create_wallet_result
  @create_wallet_result
end

#delete_api_keys_resultObject

Returns the value of attribute delete_api_keys_result.



49
50
51
# File 'lib/turnkey_client/models/result.rb', line 49

def delete_api_keys_result
  @delete_api_keys_result
end

#delete_authenticators_resultObject

Returns the value of attribute delete_authenticators_result.



35
36
37
# File 'lib/turnkey_client/models/result.rb', line 35

def delete_authenticators_result
  @delete_authenticators_result
end

#delete_invitation_resultObject

Returns the value of attribute delete_invitation_result.



37
38
39
# File 'lib/turnkey_client/models/result.rb', line 37

def delete_invitation_result
  @delete_invitation_result
end

#delete_oauth_providers_resultObject

Returns the value of attribute delete_oauth_providers_result.



121
122
123
# File 'lib/turnkey_client/models/result.rb', line 121

def delete_oauth_providers_result
  @delete_oauth_providers_result
end

#delete_organization_resultObject

Returns the value of attribute delete_organization_result.



39
40
41
# File 'lib/turnkey_client/models/result.rb', line 39

def delete_organization_result
  @delete_organization_result
end

#delete_payment_method_resultObject

Returns the value of attribute delete_payment_method_result.



61
62
63
# File 'lib/turnkey_client/models/result.rb', line 61

def delete_payment_method_result
  @delete_payment_method_result
end

#delete_policy_resultObject

Returns the value of attribute delete_policy_result.



41
42
43
# File 'lib/turnkey_client/models/result.rb', line 41

def delete_policy_result
  @delete_policy_result
end

#delete_private_key_tags_resultObject

Returns the value of attribute delete_private_key_tags_result.



55
56
57
# File 'lib/turnkey_client/models/result.rb', line 55

def delete_private_key_tags_result
  @delete_private_key_tags_result
end

#delete_private_keys_resultObject

Returns the value of attribute delete_private_keys_result.



131
132
133
# File 'lib/turnkey_client/models/result.rb', line 131

def delete_private_keys_result
  @delete_private_keys_result
end

#delete_sub_organization_resultObject

Returns the value of attribute delete_sub_organization_result.



137
138
139
# File 'lib/turnkey_client/models/result.rb', line 137

def delete_sub_organization_result
  @delete_sub_organization_result
end

#delete_user_tags_resultObject

Returns the value of attribute delete_user_tags_result.



45
46
47
# File 'lib/turnkey_client/models/result.rb', line 45

def delete_user_tags_result
  @delete_user_tags_result
end

#delete_users_resultObject

Returns the value of attribute delete_users_result.



33
34
35
# File 'lib/turnkey_client/models/result.rb', line 33

def delete_users_result
  @delete_users_result
end

#delete_wallets_resultObject

Returns the value of attribute delete_wallets_result.



133
134
135
# File 'lib/turnkey_client/models/result.rb', line 133

def delete_wallets_result
  @delete_wallets_result
end

#disable_private_key_resultObject

Returns the value of attribute disable_private_key_result.



31
32
33
# File 'lib/turnkey_client/models/result.rb', line 31

def disable_private_key_result
  @disable_private_key_result
end

#email_auth_resultObject

Returns the value of attribute email_auth_result.



101
102
103
# File 'lib/turnkey_client/models/result.rb', line 101

def email_auth_result
  @email_auth_result
end

#export_private_key_resultObject

Returns the value of attribute export_private_key_result.



95
96
97
# File 'lib/turnkey_client/models/result.rb', line 95

def export_private_key_result
  @export_private_key_result
end

#export_wallet_account_resultObject

Returns the value of attribute export_wallet_account_result.



103
104
105
# File 'lib/turnkey_client/models/result.rb', line 103

def 
  @export_wallet_account_result
end

#export_wallet_resultObject

Returns the value of attribute export_wallet_result.



97
98
99
# File 'lib/turnkey_client/models/result.rb', line 97

def export_wallet_result
  @export_wallet_result
end

#import_private_key_resultObject

Returns the value of attribute import_private_key_result.



111
112
113
# File 'lib/turnkey_client/models/result.rb', line 111

def import_private_key_result
  @import_private_key_result
end

#import_wallet_resultObject

Returns the value of attribute import_wallet_result.



107
108
109
# File 'lib/turnkey_client/models/result.rb', line 107

def import_wallet_result
  @import_wallet_result
end

#init_import_private_key_resultObject

Returns the value of attribute init_import_private_key_result.



109
110
111
# File 'lib/turnkey_client/models/result.rb', line 109

def init_import_private_key_result
  @init_import_private_key_result
end

#init_import_wallet_resultObject

Returns the value of attribute init_import_wallet_result.



105
106
107
# File 'lib/turnkey_client/models/result.rb', line 105

def init_import_wallet_result
  @init_import_wallet_result
end

#init_otp_auth_resultObject

Returns the value of attribute init_otp_auth_result.



139
140
141
# File 'lib/turnkey_client/models/result.rb', line 139

def init_otp_auth_result
  @init_otp_auth_result
end

#init_user_email_recovery_resultObject

Returns the value of attribute init_user_email_recovery_result.



87
88
89
# File 'lib/turnkey_client/models/result.rb', line 87

def init_user_email_recovery_result
  @init_user_email_recovery_result
end

#oauth_resultObject

Returns the value of attribute oauth_result.



125
126
127
# File 'lib/turnkey_client/models/result.rb', line 125

def oauth_result
  @oauth_result
end

#otp_auth_resultObject

Returns the value of attribute otp_auth_result.



141
142
143
# File 'lib/turnkey_client/models/result.rb', line 141

def otp_auth_result
  @otp_auth_result
end

#recover_user_resultObject

Returns the value of attribute recover_user_result.



89
90
91
# File 'lib/turnkey_client/models/result.rb', line 89

def recover_user_result
  @recover_user_result
end

#remove_organization_feature_resultObject

Returns the value of attribute remove_organization_feature_result.



93
94
95
# File 'lib/turnkey_client/models/result.rb', line 93

def remove_organization_feature_result
  @remove_organization_feature_result
end

#set_organization_feature_resultObject

Returns the value of attribute set_organization_feature_result.



91
92
93
# File 'lib/turnkey_client/models/result.rb', line 91

def set_organization_feature_result
  @set_organization_feature_result
end

#set_payment_method_resultObject

Returns the value of attribute set_payment_method_result.



57
58
59
# File 'lib/turnkey_client/models/result.rb', line 57

def set_payment_method_result
  @set_payment_method_result
end

#sign_raw_payload_resultObject

Returns the value of attribute sign_raw_payload_result.



27
28
29
# File 'lib/turnkey_client/models/result.rb', line 27

def sign_raw_payload_result
  @sign_raw_payload_result
end

#sign_raw_payloads_resultObject

Returns the value of attribute sign_raw_payloads_result.



115
116
117
# File 'lib/turnkey_client/models/result.rb', line 115

def sign_raw_payloads_result
  @sign_raw_payloads_result
end

#sign_transaction_resultObject

Returns the value of attribute sign_transaction_result.



47
48
49
# File 'lib/turnkey_client/models/result.rb', line 47

def sign_transaction_result
  @sign_transaction_result
end

#update_allowed_origins_resultObject

Returns the value of attribute update_allowed_origins_result.



73
74
75
# File 'lib/turnkey_client/models/result.rb', line 73

def update_allowed_origins_result
  @update_allowed_origins_result
end

#update_policy_resultObject

Returns the value of attribute update_policy_result.



79
80
81
# File 'lib/turnkey_client/models/result.rb', line 79

def update_policy_result
  @update_policy_result
end

#update_private_key_tag_resultObject

Returns the value of attribute update_private_key_tag_result.



69
70
71
# File 'lib/turnkey_client/models/result.rb', line 69

def update_private_key_tag_result
  @update_private_key_tag_result
end

#update_root_quorum_resultObject

Returns the value of attribute update_root_quorum_result.



65
66
67
# File 'lib/turnkey_client/models/result.rb', line 65

def update_root_quorum_result
  @update_root_quorum_result
end

#update_user_resultObject

Returns the value of attribute update_user_result.



77
78
79
# File 'lib/turnkey_client/models/result.rb', line 77

def update_user_result
  @update_user_result
end

#update_user_tag_resultObject

Returns the value of attribute update_user_tag_result.



67
68
69
# File 'lib/turnkey_client/models/result.rb', line 67

def update_user_tag_result
  @update_user_tag_result
end

#update_wallet_resultObject

Returns the value of attribute update_wallet_result.



145
146
147
# File 'lib/turnkey_client/models/result.rb', line 145

def update_wallet_result
  @update_wallet_result
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
# File 'lib/turnkey_client/models/result.rb', line 148

def self.attribute_map
  {
    :'create_organization_result' => :'createOrganizationResult',
    :'create_authenticators_result' => :'createAuthenticatorsResult',
    :'create_users_result' => :'createUsersResult',
    :'create_private_keys_result' => :'createPrivateKeysResult',
    :'create_invitations_result' => :'createInvitationsResult',
    :'accept_invitation_result' => :'acceptInvitationResult',
    :'sign_raw_payload_result' => :'signRawPayloadResult',
    :'create_policy_result' => :'createPolicyResult',
    :'disable_private_key_result' => :'disablePrivateKeyResult',
    :'delete_users_result' => :'deleteUsersResult',
    :'delete_authenticators_result' => :'deleteAuthenticatorsResult',
    :'delete_invitation_result' => :'deleteInvitationResult',
    :'delete_organization_result' => :'deleteOrganizationResult',
    :'delete_policy_result' => :'deletePolicyResult',
    :'create_user_tag_result' => :'createUserTagResult',
    :'delete_user_tags_result' => :'deleteUserTagsResult',
    :'sign_transaction_result' => :'signTransactionResult',
    :'delete_api_keys_result' => :'deleteApiKeysResult',
    :'create_api_keys_result' => :'createApiKeysResult',
    :'create_private_key_tag_result' => :'createPrivateKeyTagResult',
    :'delete_private_key_tags_result' => :'deletePrivateKeyTagsResult',
    :'set_payment_method_result' => :'setPaymentMethodResult',
    :'activate_billing_tier_result' => :'activateBillingTierResult',
    :'delete_payment_method_result' => :'deletePaymentMethodResult',
    :'create_api_only_users_result' => :'createApiOnlyUsersResult',
    :'update_root_quorum_result' => :'updateRootQuorumResult',
    :'update_user_tag_result' => :'updateUserTagResult',
    :'update_private_key_tag_result' => :'updatePrivateKeyTagResult',
    :'create_sub_organization_result' => :'createSubOrganizationResult',
    :'update_allowed_origins_result' => :'updateAllowedOriginsResult',
    :'create_private_keys_result_v2' => :'createPrivateKeysResultV2',
    :'update_user_result' => :'updateUserResult',
    :'update_policy_result' => :'updatePolicyResult',
    :'create_sub_organization_result_v3' => :'createSubOrganizationResultV3',
    :'create_wallet_result' => :'createWalletResult',
    :'create_wallet_accounts_result' => :'createWalletAccountsResult',
    :'init_user_email_recovery_result' => :'initUserEmailRecoveryResult',
    :'recover_user_result' => :'recoverUserResult',
    :'set_organization_feature_result' => :'setOrganizationFeatureResult',
    :'remove_organization_feature_result' => :'removeOrganizationFeatureResult',
    :'export_private_key_result' => :'exportPrivateKeyResult',
    :'export_wallet_result' => :'exportWalletResult',
    :'create_sub_organization_result_v4' => :'createSubOrganizationResultV4',
    :'email_auth_result' => :'emailAuthResult',
    :'export_wallet_account_result' => :'exportWalletAccountResult',
    :'init_import_wallet_result' => :'initImportWalletResult',
    :'import_wallet_result' => :'importWalletResult',
    :'init_import_private_key_result' => :'initImportPrivateKeyResult',
    :'import_private_key_result' => :'importPrivateKeyResult',
    :'create_policies_result' => :'createPoliciesResult',
    :'sign_raw_payloads_result' => :'signRawPayloadsResult',
    :'create_read_only_session_result' => :'createReadOnlySessionResult',
    :'create_oauth_providers_result' => :'createOauthProvidersResult',
    :'delete_oauth_providers_result' => :'deleteOauthProvidersResult',
    :'create_sub_organization_result_v5' => :'createSubOrganizationResultV5',
    :'oauth_result' => :'oauthResult',
    :'create_read_write_session_result' => :'createReadWriteSessionResult',
    :'create_sub_organization_result_v6' => :'createSubOrganizationResultV6',
    :'delete_private_keys_result' => :'deletePrivateKeysResult',
    :'delete_wallets_result' => :'deleteWalletsResult',
    :'create_read_write_session_result_v2' => :'createReadWriteSessionResultV2',
    :'delete_sub_organization_result' => :'deleteSubOrganizationResult',
    :'init_otp_auth_result' => :'initOtpAuthResult',
    :'otp_auth_result' => :'otpAuthResult',
    :'create_sub_organization_result_v7' => :'createSubOrganizationResultV7',
    :'update_wallet_result' => :'updateWalletResult'
  }
end

.build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



678
679
680
# File 'lib/turnkey_client/models/result.rb', line 678

def self.build_from_hash(attributes)
  new.build_from_hash(attributes)
end

.openapi_nullableObject

List of attributes with nullable: true



292
293
294
295
# File 'lib/turnkey_client/models/result.rb', line 292

def self.openapi_nullable
  Set.new([
  ])
end

.openapi_typesObject

Attribute type mapping.



220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
# File 'lib/turnkey_client/models/result.rb', line 220

def self.openapi_types
  {
    :'create_organization_result' => :'Object',
    :'create_authenticators_result' => :'Object',
    :'create_users_result' => :'Object',
    :'create_private_keys_result' => :'Object',
    :'create_invitations_result' => :'Object',
    :'accept_invitation_result' => :'Object',
    :'sign_raw_payload_result' => :'Object',
    :'create_policy_result' => :'Object',
    :'disable_private_key_result' => :'Object',
    :'delete_users_result' => :'Object',
    :'delete_authenticators_result' => :'Object',
    :'delete_invitation_result' => :'Object',
    :'delete_organization_result' => :'Object',
    :'delete_policy_result' => :'Object',
    :'create_user_tag_result' => :'Object',
    :'delete_user_tags_result' => :'Object',
    :'sign_transaction_result' => :'Object',
    :'delete_api_keys_result' => :'Object',
    :'create_api_keys_result' => :'Object',
    :'create_private_key_tag_result' => :'Object',
    :'delete_private_key_tags_result' => :'Object',
    :'set_payment_method_result' => :'Object',
    :'activate_billing_tier_result' => :'Object',
    :'delete_payment_method_result' => :'Object',
    :'create_api_only_users_result' => :'Object',
    :'update_root_quorum_result' => :'Object',
    :'update_user_tag_result' => :'Object',
    :'update_private_key_tag_result' => :'Object',
    :'create_sub_organization_result' => :'Object',
    :'update_allowed_origins_result' => :'Object',
    :'create_private_keys_result_v2' => :'Object',
    :'update_user_result' => :'Object',
    :'update_policy_result' => :'Object',
    :'create_sub_organization_result_v3' => :'Object',
    :'create_wallet_result' => :'Object',
    :'create_wallet_accounts_result' => :'Object',
    :'init_user_email_recovery_result' => :'Object',
    :'recover_user_result' => :'Object',
    :'set_organization_feature_result' => :'Object',
    :'remove_organization_feature_result' => :'Object',
    :'export_private_key_result' => :'Object',
    :'export_wallet_result' => :'Object',
    :'create_sub_organization_result_v4' => :'Object',
    :'email_auth_result' => :'Object',
    :'export_wallet_account_result' => :'Object',
    :'init_import_wallet_result' => :'Object',
    :'import_wallet_result' => :'Object',
    :'init_import_private_key_result' => :'Object',
    :'import_private_key_result' => :'Object',
    :'create_policies_result' => :'Object',
    :'sign_raw_payloads_result' => :'Object',
    :'create_read_only_session_result' => :'Object',
    :'create_oauth_providers_result' => :'Object',
    :'delete_oauth_providers_result' => :'Object',
    :'create_sub_organization_result_v5' => :'Object',
    :'oauth_result' => :'Object',
    :'create_read_write_session_result' => :'Object',
    :'create_sub_organization_result_v6' => :'Object',
    :'delete_private_keys_result' => :'Object',
    :'delete_wallets_result' => :'Object',
    :'create_read_write_session_result_v2' => :'Object',
    :'delete_sub_organization_result' => :'Object',
    :'init_otp_auth_result' => :'Object',
    :'otp_auth_result' => :'Object',
    :'create_sub_organization_result_v7' => :'Object',
    :'update_wallet_result' => :'Object'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
# File 'lib/turnkey_client/models/result.rb', line 592

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      create_organization_result == o.create_organization_result &&
      create_authenticators_result == o.create_authenticators_result &&
      create_users_result == o.create_users_result &&
      create_private_keys_result == o.create_private_keys_result &&
      create_invitations_result == o.create_invitations_result &&
      accept_invitation_result == o.accept_invitation_result &&
      sign_raw_payload_result == o.sign_raw_payload_result &&
      create_policy_result == o.create_policy_result &&
      disable_private_key_result == o.disable_private_key_result &&
      delete_users_result == o.delete_users_result &&
      delete_authenticators_result == o.delete_authenticators_result &&
      delete_invitation_result == o.delete_invitation_result &&
      delete_organization_result == o.delete_organization_result &&
      delete_policy_result == o.delete_policy_result &&
      create_user_tag_result == o.create_user_tag_result &&
      delete_user_tags_result == o.delete_user_tags_result &&
      sign_transaction_result == o.sign_transaction_result &&
      delete_api_keys_result == o.delete_api_keys_result &&
      create_api_keys_result == o.create_api_keys_result &&
      create_private_key_tag_result == o.create_private_key_tag_result &&
      delete_private_key_tags_result == o.delete_private_key_tags_result &&
      set_payment_method_result == o.set_payment_method_result &&
      activate_billing_tier_result == o.activate_billing_tier_result &&
      delete_payment_method_result == o.delete_payment_method_result &&
      create_api_only_users_result == o.create_api_only_users_result &&
      update_root_quorum_result == o.update_root_quorum_result &&
      update_user_tag_result == o.update_user_tag_result &&
      update_private_key_tag_result == o.update_private_key_tag_result &&
      create_sub_organization_result == o.create_sub_organization_result &&
      update_allowed_origins_result == o.update_allowed_origins_result &&
      create_private_keys_result_v2 == o.create_private_keys_result_v2 &&
      update_user_result == o.update_user_result &&
      update_policy_result == o.update_policy_result &&
      create_sub_organization_result_v3 == o.create_sub_organization_result_v3 &&
      create_wallet_result == o.create_wallet_result &&
      create_wallet_accounts_result == o.create_wallet_accounts_result &&
      init_user_email_recovery_result == o.init_user_email_recovery_result &&
      recover_user_result == o.recover_user_result &&
      set_organization_feature_result == o.set_organization_feature_result &&
      remove_organization_feature_result == o.remove_organization_feature_result &&
      export_private_key_result == o.export_private_key_result &&
      export_wallet_result == o.export_wallet_result &&
      create_sub_organization_result_v4 == o.create_sub_organization_result_v4 &&
      email_auth_result == o.email_auth_result &&
       == o. &&
      init_import_wallet_result == o.init_import_wallet_result &&
      import_wallet_result == o.import_wallet_result &&
      init_import_private_key_result == o.init_import_private_key_result &&
      import_private_key_result == o.import_private_key_result &&
      create_policies_result == o.create_policies_result &&
      sign_raw_payloads_result == o.sign_raw_payloads_result &&
      create_read_only_session_result == o.create_read_only_session_result &&
      create_oauth_providers_result == o.create_oauth_providers_result &&
      delete_oauth_providers_result == o.delete_oauth_providers_result &&
      create_sub_organization_result_v5 == o.create_sub_organization_result_v5 &&
      oauth_result == o.oauth_result &&
      create_read_write_session_result == o.create_read_write_session_result &&
      create_sub_organization_result_v6 == o.create_sub_organization_result_v6 &&
      delete_private_keys_result == o.delete_private_keys_result &&
      delete_wallets_result == o.delete_wallets_result &&
      create_read_write_session_result_v2 == o.create_read_write_session_result_v2 &&
      delete_sub_organization_result == o.delete_sub_organization_result &&
      init_otp_auth_result == o.init_otp_auth_result &&
      otp_auth_result == o.otp_auth_result &&
      create_sub_organization_result_v7 == o.create_sub_organization_result_v7 &&
      update_wallet_result == o.update_wallet_result
end

#_deserialize(type, value) ⇒ Object

Deserializes the data based on type

Parameters:

  • string

    type Data type

  • string

    value Value to be deserialized

Returns:

  • (Object)

    Deserialized data



708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
# File 'lib/turnkey_client/models/result.rb', line 708

def _deserialize(type, value)
  case type.to_sym
  when :DateTime
    DateTime.parse(value)
  when :Date
    Date.parse(value)
  when :String
    value.to_s
  when :Integer
    value.to_i
  when :Float
    value.to_f
  when :Boolean
    if value.to_s =~ /\A(true|t|yes|y|1)\z/i
      true
    else
      false
    end
  when :Object
    # generic object (usually a Hash), return directly
    value
  when /\AArray<(?<inner_type>.+)>\z/
    inner_type = Regexp.last_match[:inner_type]
    value.map { |v| _deserialize(inner_type, v) }
  when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
    k_type = Regexp.last_match[:k_type]
    v_type = Regexp.last_match[:v_type]
    {}.tap do |hash|
      value.each do |k, v|
        hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
      end
    end
  else # model
    TurnkeyClient.const_get(type).build_from_hash(value)
  end
end

#_to_hash(value) ⇒ Hash

Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value

Parameters:

  • value (Object)

    Any valid value

Returns:

  • (Hash)

    Returns the value in the form of hash



777
778
779
780
781
782
783
784
785
786
787
788
789
# File 'lib/turnkey_client/models/result.rb', line 777

def _to_hash(value)
  if value.is_a?(Array)
    value.compact.map { |v| _to_hash(v) }
  elsif value.is_a?(Hash)
    {}.tap do |hash|
      value.each { |k, v| hash[k] = _to_hash(v) }
    end
  elsif value.respond_to? :to_hash
    value.to_hash
  else
    value
  end
end

#build_from_hash(attributes) ⇒ Object

Builds the object from hash

Parameters:

  • attributes (Hash)

    Model attributes in the form of hash

Returns:

  • (Object)

    Returns the model itself



685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
# File 'lib/turnkey_client/models/result.rb', line 685

def build_from_hash(attributes)
  return nil unless attributes.is_a?(Hash)
  self.class.openapi_types.each_pair do |key, type|
    if type =~ /\AArray<(.*)>/i
      # check to ensure the input is an array given that the attribute
      # is documented as an array but the input is not
      if attributes[self.class.attribute_map[key]].is_a?(Array)
        self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
      end
    elsif !attributes[self.class.attribute_map[key]].nil?
      self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
    elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
      self.send("#{key}=", nil)
    end
  end

  self
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


665
666
667
# File 'lib/turnkey_client/models/result.rb', line 665

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



671
672
673
# File 'lib/turnkey_client/models/result.rb', line 671

def hash
  [create_organization_result, create_authenticators_result, create_users_result, create_private_keys_result, create_invitations_result, accept_invitation_result, sign_raw_payload_result, create_policy_result, disable_private_key_result, delete_users_result, delete_authenticators_result, delete_invitation_result, delete_organization_result, delete_policy_result, create_user_tag_result, delete_user_tags_result, sign_transaction_result, delete_api_keys_result, create_api_keys_result, create_private_key_tag_result, delete_private_key_tags_result, set_payment_method_result, activate_billing_tier_result, delete_payment_method_result, create_api_only_users_result, update_root_quorum_result, update_user_tag_result, update_private_key_tag_result, create_sub_organization_result, update_allowed_origins_result, create_private_keys_result_v2, update_user_result, update_policy_result, create_sub_organization_result_v3, create_wallet_result, create_wallet_accounts_result, init_user_email_recovery_result, recover_user_result, set_organization_feature_result, remove_organization_feature_result, export_private_key_result, export_wallet_result, create_sub_organization_result_v4, email_auth_result, , init_import_wallet_result, import_wallet_result, init_import_private_key_result, import_private_key_result, create_policies_result, sign_raw_payloads_result, create_read_only_session_result, create_oauth_providers_result, delete_oauth_providers_result, create_sub_organization_result_v5, oauth_result, create_read_write_session_result, create_sub_organization_result_v6, delete_private_keys_result, delete_wallets_result, create_read_write_session_result_v2, delete_sub_organization_result, init_otp_auth_result, otp_auth_result, create_sub_organization_result_v7, update_wallet_result].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



579
580
581
582
# File 'lib/turnkey_client/models/result.rb', line 579

def list_invalid_properties
  invalid_properties = Array.new
  invalid_properties
end

#to_bodyHash

to_body is an alias to to_hash (backward compatibility)

Returns:

  • (Hash)

    Returns the object in the form of hash



753
754
755
# File 'lib/turnkey_client/models/result.rb', line 753

def to_body
  to_hash
end

#to_hashHash

Returns the object in the form of hash

Returns:

  • (Hash)

    Returns the object in the form of hash



759
760
761
762
763
764
765
766
767
768
769
770
771
# File 'lib/turnkey_client/models/result.rb', line 759

def to_hash
  hash = {}
  self.class.attribute_map.each_pair do |attr, param|
    value = self.send(attr)
    if value.nil?
      is_nullable = self.class.openapi_nullable.include?(attr)
      next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
    end

    hash[param] = _to_hash(value)
  end
  hash
end

#to_sString

Returns the string representation of the object

Returns:

  • (String)

    String presentation of the object



747
748
749
# File 'lib/turnkey_client/models/result.rb', line 747

def to_s
  to_hash.to_s
end

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



586
587
588
# File 'lib/turnkey_client/models/result.rb', line 586

def valid?
  true
end