Class: TurnkeyClient::Intent

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Intent

Initializes the object

Parameters:

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

    Model attributes in the form of hash



279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
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
# File 'lib/turnkey_client/models/intent.rb', line 279

def initialize(attributes = {})
  if (!attributes.is_a?(Hash))
    fail ArgumentError, "The input argument (attributes) must be a hash in `TurnkeyClient::Intent` 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::Intent`. 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_intent')
    self.create_organization_intent = attributes[:'create_organization_intent']
  end

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Instance Attribute Details

#accept_invitation_intentObject

Returns the value of attribute accept_invitation_intent.



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

def accept_invitation_intent
  @accept_invitation_intent
end

#accept_invitation_intent_v2Object

Returns the value of attribute accept_invitation_intent_v2.



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

def accept_invitation_intent_v2
  @accept_invitation_intent_v2
end

#activate_billing_tier_intentObject

Returns the value of attribute activate_billing_tier_intent.



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

def activate_billing_tier_intent
  @activate_billing_tier_intent
end

#approve_activity_intentObject

Returns the value of attribute approve_activity_intent.



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

def approve_activity_intent
  @approve_activity_intent
end

#create_api_keys_intentObject

Returns the value of attribute create_api_keys_intent.



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

def create_api_keys_intent
  @create_api_keys_intent
end

#create_api_only_users_intentObject

Returns the value of attribute create_api_only_users_intent.



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

def create_api_only_users_intent
  @create_api_only_users_intent
end

#create_authenticators_intentObject

Returns the value of attribute create_authenticators_intent.



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

def create_authenticators_intent
  @create_authenticators_intent
end

#create_authenticators_intent_v2Object

Returns the value of attribute create_authenticators_intent_v2.



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

def create_authenticators_intent_v2
  @create_authenticators_intent_v2
end

#create_invitations_intentObject

Returns the value of attribute create_invitations_intent.



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

def create_invitations_intent
  @create_invitations_intent
end

#create_organization_intentObject

Returns the value of attribute create_organization_intent.



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

def create_organization_intent
  @create_organization_intent
end

#create_organization_intent_v2Object

Returns the value of attribute create_organization_intent_v2.



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

def create_organization_intent_v2
  @create_organization_intent_v2
end

#create_policy_intentObject

Returns the value of attribute create_policy_intent.



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

def create_policy_intent
  @create_policy_intent
end

#create_policy_intent_v2Object

Returns the value of attribute create_policy_intent_v2.



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

def create_policy_intent_v2
  @create_policy_intent_v2
end

#create_policy_intent_v3Object

Returns the value of attribute create_policy_intent_v3.



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

def create_policy_intent_v3
  @create_policy_intent_v3
end

#create_private_key_tag_intentObject

Returns the value of attribute create_private_key_tag_intent.



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

def create_private_key_tag_intent
  @create_private_key_tag_intent
end

#create_private_keys_intentObject

Returns the value of attribute create_private_keys_intent.



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

def create_private_keys_intent
  @create_private_keys_intent
end

#create_private_keys_intent_v2Object

Returns the value of attribute create_private_keys_intent_v2.



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

def create_private_keys_intent_v2
  @create_private_keys_intent_v2
end

#create_sub_organization_intentObject

Returns the value of attribute create_sub_organization_intent.



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

def create_sub_organization_intent
  @create_sub_organization_intent
end

#create_sub_organization_intent_v2Object

Returns the value of attribute create_sub_organization_intent_v2.



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

def create_sub_organization_intent_v2
  @create_sub_organization_intent_v2
end

#create_sub_organization_intent_v3Object

Returns the value of attribute create_sub_organization_intent_v3.



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

def create_sub_organization_intent_v3
  @create_sub_organization_intent_v3
end

#create_sub_organization_intent_v4Object

Returns the value of attribute create_sub_organization_intent_v4.



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

def create_sub_organization_intent_v4
  @create_sub_organization_intent_v4
end

#create_user_tag_intentObject

Returns the value of attribute create_user_tag_intent.



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

def create_user_tag_intent
  @create_user_tag_intent
end

#create_users_intentObject

Returns the value of attribute create_users_intent.



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

def create_users_intent
  @create_users_intent
end

#create_users_intent_v2Object

Returns the value of attribute create_users_intent_v2.



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

def create_users_intent_v2
  @create_users_intent_v2
end

#create_wallet_accounts_intentObject

Returns the value of attribute create_wallet_accounts_intent.



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

def create_wallet_accounts_intent
  @create_wallet_accounts_intent
end

#create_wallet_intentObject

Returns the value of attribute create_wallet_intent.



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

def create_wallet_intent
  @create_wallet_intent
end

#delete_api_keys_intentObject

Returns the value of attribute delete_api_keys_intent.



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

def delete_api_keys_intent
  @delete_api_keys_intent
end

#delete_authenticators_intentObject

Returns the value of attribute delete_authenticators_intent.



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

def delete_authenticators_intent
  @delete_authenticators_intent
end

#delete_invitation_intentObject

Returns the value of attribute delete_invitation_intent.



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

def delete_invitation_intent
  @delete_invitation_intent
end

#delete_organization_intentObject

Returns the value of attribute delete_organization_intent.



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

def delete_organization_intent
  @delete_organization_intent
end

#delete_payment_method_intentObject

Returns the value of attribute delete_payment_method_intent.



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

def delete_payment_method_intent
  @delete_payment_method_intent
end

#delete_policy_intentObject

Returns the value of attribute delete_policy_intent.



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

def delete_policy_intent
  @delete_policy_intent
end

#delete_private_key_tags_intentObject

Returns the value of attribute delete_private_key_tags_intent.



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

def delete_private_key_tags_intent
  @delete_private_key_tags_intent
end

#delete_user_tags_intentObject

Returns the value of attribute delete_user_tags_intent.



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

def delete_user_tags_intent
  @delete_user_tags_intent
end

#delete_users_intentObject

Returns the value of attribute delete_users_intent.



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

def delete_users_intent
  @delete_users_intent
end

#disable_private_key_intentObject

Returns the value of attribute disable_private_key_intent.



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

def disable_private_key_intent
  @disable_private_key_intent
end

#email_auth_intentObject

Returns the value of attribute email_auth_intent.



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

def email_auth_intent
  @email_auth_intent
end

#export_private_key_intentObject

Returns the value of attribute export_private_key_intent.



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

def export_private_key_intent
  @export_private_key_intent
end

#export_wallet_account_intentObject

Returns the value of attribute export_wallet_account_intent.



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

def 
  @export_wallet_account_intent
end

#export_wallet_intentObject

Returns the value of attribute export_wallet_intent.



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

def export_wallet_intent
  @export_wallet_intent
end

#import_private_key_intentObject

Returns the value of attribute import_private_key_intent.



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

def import_private_key_intent
  @import_private_key_intent
end

#import_wallet_intentObject

Returns the value of attribute import_wallet_intent.



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

def import_wallet_intent
  @import_wallet_intent
end

#init_import_private_key_intentObject

Returns the value of attribute init_import_private_key_intent.



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

def init_import_private_key_intent
  @init_import_private_key_intent
end

#init_import_wallet_intentObject

Returns the value of attribute init_import_wallet_intent.



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

def init_import_wallet_intent
  @init_import_wallet_intent
end

#init_user_email_recovery_intentObject

Returns the value of attribute init_user_email_recovery_intent.



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

def init_user_email_recovery_intent
  @init_user_email_recovery_intent
end

#recover_user_intentObject

Returns the value of attribute recover_user_intent.



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

def recover_user_intent
  @recover_user_intent
end

#reject_activity_intentObject

Returns the value of attribute reject_activity_intent.



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

def reject_activity_intent
  @reject_activity_intent
end

#remove_organization_feature_intentObject

Returns the value of attribute remove_organization_feature_intent.



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

def remove_organization_feature_intent
  @remove_organization_feature_intent
end

#set_organization_feature_intentObject

Returns the value of attribute set_organization_feature_intent.



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

def set_organization_feature_intent
  @set_organization_feature_intent
end

#set_payment_method_intentObject

Returns the value of attribute set_payment_method_intent.



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

def set_payment_method_intent
  @set_payment_method_intent
end

#set_payment_method_intent_v2Object

Returns the value of attribute set_payment_method_intent_v2.



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

def set_payment_method_intent_v2
  @set_payment_method_intent_v2
end

#sign_raw_payload_intentObject

Returns the value of attribute sign_raw_payload_intent.



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

def sign_raw_payload_intent
  @sign_raw_payload_intent
end

#sign_raw_payload_intent_v2Object

Returns the value of attribute sign_raw_payload_intent_v2.



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

def sign_raw_payload_intent_v2
  @sign_raw_payload_intent_v2
end

#sign_transaction_intentObject

Returns the value of attribute sign_transaction_intent.



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

def sign_transaction_intent
  @sign_transaction_intent
end

#sign_transaction_intent_v2Object

Returns the value of attribute sign_transaction_intent_v2.



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

def sign_transaction_intent_v2
  @sign_transaction_intent_v2
end

#update_allowed_origins_intentObject

Returns the value of attribute update_allowed_origins_intent.



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

def update_allowed_origins_intent
  @update_allowed_origins_intent
end

#update_policy_intentObject

Returns the value of attribute update_policy_intent.



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

def update_policy_intent
  @update_policy_intent
end

#update_private_key_tag_intentObject

Returns the value of attribute update_private_key_tag_intent.



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

def update_private_key_tag_intent
  @update_private_key_tag_intent
end

#update_root_quorum_intentObject

Returns the value of attribute update_root_quorum_intent.



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

def update_root_quorum_intent
  @update_root_quorum_intent
end

#update_user_intentObject

Returns the value of attribute update_user_intent.



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

def update_user_intent
  @update_user_intent
end

#update_user_tag_intentObject

Returns the value of attribute update_user_tag_intent.



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

def update_user_tag_intent
  @update_user_tag_intent
end

Class Method Details

.attribute_mapObject

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



138
139
140
141
142
143
144
145
146
147
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
# File 'lib/turnkey_client/models/intent.rb', line 138

def self.attribute_map
  {
    :'create_organization_intent' => :'createOrganizationIntent',
    :'create_authenticators_intent' => :'createAuthenticatorsIntent',
    :'create_users_intent' => :'createUsersIntent',
    :'create_private_keys_intent' => :'createPrivateKeysIntent',
    :'sign_raw_payload_intent' => :'signRawPayloadIntent',
    :'create_invitations_intent' => :'createInvitationsIntent',
    :'accept_invitation_intent' => :'acceptInvitationIntent',
    :'create_policy_intent' => :'createPolicyIntent',
    :'disable_private_key_intent' => :'disablePrivateKeyIntent',
    :'delete_users_intent' => :'deleteUsersIntent',
    :'delete_authenticators_intent' => :'deleteAuthenticatorsIntent',
    :'delete_invitation_intent' => :'deleteInvitationIntent',
    :'delete_organization_intent' => :'deleteOrganizationIntent',
    :'delete_policy_intent' => :'deletePolicyIntent',
    :'create_user_tag_intent' => :'createUserTagIntent',
    :'delete_user_tags_intent' => :'deleteUserTagsIntent',
    :'sign_transaction_intent' => :'signTransactionIntent',
    :'create_api_keys_intent' => :'createApiKeysIntent',
    :'delete_api_keys_intent' => :'deleteApiKeysIntent',
    :'approve_activity_intent' => :'approveActivityIntent',
    :'reject_activity_intent' => :'rejectActivityIntent',
    :'create_private_key_tag_intent' => :'createPrivateKeyTagIntent',
    :'delete_private_key_tags_intent' => :'deletePrivateKeyTagsIntent',
    :'create_policy_intent_v2' => :'createPolicyIntentV2',
    :'set_payment_method_intent' => :'setPaymentMethodIntent',
    :'activate_billing_tier_intent' => :'activateBillingTierIntent',
    :'delete_payment_method_intent' => :'deletePaymentMethodIntent',
    :'create_policy_intent_v3' => :'createPolicyIntentV3',
    :'create_api_only_users_intent' => :'createApiOnlyUsersIntent',
    :'update_root_quorum_intent' => :'updateRootQuorumIntent',
    :'update_user_tag_intent' => :'updateUserTagIntent',
    :'update_private_key_tag_intent' => :'updatePrivateKeyTagIntent',
    :'create_authenticators_intent_v2' => :'createAuthenticatorsIntentV2',
    :'accept_invitation_intent_v2' => :'acceptInvitationIntentV2',
    :'create_organization_intent_v2' => :'createOrganizationIntentV2',
    :'create_users_intent_v2' => :'createUsersIntentV2',
    :'create_sub_organization_intent' => :'createSubOrganizationIntent',
    :'create_sub_organization_intent_v2' => :'createSubOrganizationIntentV2',
    :'update_allowed_origins_intent' => :'updateAllowedOriginsIntent',
    :'create_private_keys_intent_v2' => :'createPrivateKeysIntentV2',
    :'update_user_intent' => :'updateUserIntent',
    :'update_policy_intent' => :'updatePolicyIntent',
    :'set_payment_method_intent_v2' => :'setPaymentMethodIntentV2',
    :'create_sub_organization_intent_v3' => :'createSubOrganizationIntentV3',
    :'create_wallet_intent' => :'createWalletIntent',
    :'create_wallet_accounts_intent' => :'createWalletAccountsIntent',
    :'init_user_email_recovery_intent' => :'initUserEmailRecoveryIntent',
    :'recover_user_intent' => :'recoverUserIntent',
    :'set_organization_feature_intent' => :'setOrganizationFeatureIntent',
    :'remove_organization_feature_intent' => :'removeOrganizationFeatureIntent',
    :'sign_raw_payload_intent_v2' => :'signRawPayloadIntentV2',
    :'sign_transaction_intent_v2' => :'signTransactionIntentV2',
    :'export_private_key_intent' => :'exportPrivateKeyIntent',
    :'export_wallet_intent' => :'exportWalletIntent',
    :'create_sub_organization_intent_v4' => :'createSubOrganizationIntentV4',
    :'email_auth_intent' => :'emailAuthIntent',
    :'export_wallet_account_intent' => :'exportWalletAccountIntent',
    :'init_import_wallet_intent' => :'initImportWalletIntent',
    :'import_wallet_intent' => :'importWalletIntent',
    :'init_import_private_key_intent' => :'initImportPrivateKeyIntent',
    :'import_private_key_intent' => :'importPrivateKeyIntent'
  }
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



638
639
640
# File 'lib/turnkey_client/models/intent.rb', line 638

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

.openapi_nullableObject

List of attributes with nullable: true



272
273
274
275
# File 'lib/turnkey_client/models/intent.rb', line 272

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

.openapi_typesObject

Attribute type mapping.



205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
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
# File 'lib/turnkey_client/models/intent.rb', line 205

def self.openapi_types
  {
    :'create_organization_intent' => :'Object',
    :'create_authenticators_intent' => :'Object',
    :'create_users_intent' => :'Object',
    :'create_private_keys_intent' => :'Object',
    :'sign_raw_payload_intent' => :'Object',
    :'create_invitations_intent' => :'Object',
    :'accept_invitation_intent' => :'Object',
    :'create_policy_intent' => :'Object',
    :'disable_private_key_intent' => :'Object',
    :'delete_users_intent' => :'Object',
    :'delete_authenticators_intent' => :'Object',
    :'delete_invitation_intent' => :'Object',
    :'delete_organization_intent' => :'Object',
    :'delete_policy_intent' => :'Object',
    :'create_user_tag_intent' => :'Object',
    :'delete_user_tags_intent' => :'Object',
    :'sign_transaction_intent' => :'Object',
    :'create_api_keys_intent' => :'Object',
    :'delete_api_keys_intent' => :'Object',
    :'approve_activity_intent' => :'Object',
    :'reject_activity_intent' => :'Object',
    :'create_private_key_tag_intent' => :'Object',
    :'delete_private_key_tags_intent' => :'Object',
    :'create_policy_intent_v2' => :'Object',
    :'set_payment_method_intent' => :'Object',
    :'activate_billing_tier_intent' => :'Object',
    :'delete_payment_method_intent' => :'Object',
    :'create_policy_intent_v3' => :'Object',
    :'create_api_only_users_intent' => :'Object',
    :'update_root_quorum_intent' => :'Object',
    :'update_user_tag_intent' => :'Object',
    :'update_private_key_tag_intent' => :'Object',
    :'create_authenticators_intent_v2' => :'Object',
    :'accept_invitation_intent_v2' => :'Object',
    :'create_organization_intent_v2' => :'Object',
    :'create_users_intent_v2' => :'Object',
    :'create_sub_organization_intent' => :'Object',
    :'create_sub_organization_intent_v2' => :'Object',
    :'update_allowed_origins_intent' => :'Object',
    :'create_private_keys_intent_v2' => :'Object',
    :'update_user_intent' => :'Object',
    :'update_policy_intent' => :'Object',
    :'set_payment_method_intent_v2' => :'Object',
    :'create_sub_organization_intent_v3' => :'Object',
    :'create_wallet_intent' => :'Object',
    :'create_wallet_accounts_intent' => :'Object',
    :'init_user_email_recovery_intent' => :'Object',
    :'recover_user_intent' => :'Object',
    :'set_organization_feature_intent' => :'Object',
    :'remove_organization_feature_intent' => :'Object',
    :'sign_raw_payload_intent_v2' => :'Object',
    :'sign_transaction_intent_v2' => :'Object',
    :'export_private_key_intent' => :'Object',
    :'export_wallet_intent' => :'Object',
    :'create_sub_organization_intent_v4' => :'Object',
    :'email_auth_intent' => :'Object',
    :'export_wallet_account_intent' => :'Object',
    :'init_import_wallet_intent' => :'Object',
    :'import_wallet_intent' => :'Object',
    :'init_import_private_key_intent' => :'Object',
    :'import_private_key_intent' => :'Object'
  }
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
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
# File 'lib/turnkey_client/models/intent.rb', line 557

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      create_organization_intent == o.create_organization_intent &&
      create_authenticators_intent == o.create_authenticators_intent &&
      create_users_intent == o.create_users_intent &&
      create_private_keys_intent == o.create_private_keys_intent &&
      sign_raw_payload_intent == o.sign_raw_payload_intent &&
      create_invitations_intent == o.create_invitations_intent &&
      accept_invitation_intent == o.accept_invitation_intent &&
      create_policy_intent == o.create_policy_intent &&
      disable_private_key_intent == o.disable_private_key_intent &&
      delete_users_intent == o.delete_users_intent &&
      delete_authenticators_intent == o.delete_authenticators_intent &&
      delete_invitation_intent == o.delete_invitation_intent &&
      delete_organization_intent == o.delete_organization_intent &&
      delete_policy_intent == o.delete_policy_intent &&
      create_user_tag_intent == o.create_user_tag_intent &&
      delete_user_tags_intent == o.delete_user_tags_intent &&
      sign_transaction_intent == o.sign_transaction_intent &&
      create_api_keys_intent == o.create_api_keys_intent &&
      delete_api_keys_intent == o.delete_api_keys_intent &&
      approve_activity_intent == o.approve_activity_intent &&
      reject_activity_intent == o.reject_activity_intent &&
      create_private_key_tag_intent == o.create_private_key_tag_intent &&
      delete_private_key_tags_intent == o.delete_private_key_tags_intent &&
      create_policy_intent_v2 == o.create_policy_intent_v2 &&
      set_payment_method_intent == o.set_payment_method_intent &&
      activate_billing_tier_intent == o.activate_billing_tier_intent &&
      delete_payment_method_intent == o.delete_payment_method_intent &&
      create_policy_intent_v3 == o.create_policy_intent_v3 &&
      create_api_only_users_intent == o.create_api_only_users_intent &&
      update_root_quorum_intent == o.update_root_quorum_intent &&
      update_user_tag_intent == o.update_user_tag_intent &&
      update_private_key_tag_intent == o.update_private_key_tag_intent &&
      create_authenticators_intent_v2 == o.create_authenticators_intent_v2 &&
      accept_invitation_intent_v2 == o.accept_invitation_intent_v2 &&
      create_organization_intent_v2 == o.create_organization_intent_v2 &&
      create_users_intent_v2 == o.create_users_intent_v2 &&
      create_sub_organization_intent == o.create_sub_organization_intent &&
      create_sub_organization_intent_v2 == o.create_sub_organization_intent_v2 &&
      update_allowed_origins_intent == o.update_allowed_origins_intent &&
      create_private_keys_intent_v2 == o.create_private_keys_intent_v2 &&
      update_user_intent == o.update_user_intent &&
      update_policy_intent == o.update_policy_intent &&
      set_payment_method_intent_v2 == o.set_payment_method_intent_v2 &&
      create_sub_organization_intent_v3 == o.create_sub_organization_intent_v3 &&
      create_wallet_intent == o.create_wallet_intent &&
      create_wallet_accounts_intent == o.create_wallet_accounts_intent &&
      init_user_email_recovery_intent == o.init_user_email_recovery_intent &&
      recover_user_intent == o.recover_user_intent &&
      set_organization_feature_intent == o.set_organization_feature_intent &&
      remove_organization_feature_intent == o.remove_organization_feature_intent &&
      sign_raw_payload_intent_v2 == o.sign_raw_payload_intent_v2 &&
      sign_transaction_intent_v2 == o.sign_transaction_intent_v2 &&
      export_private_key_intent == o.export_private_key_intent &&
      export_wallet_intent == o.export_wallet_intent &&
      create_sub_organization_intent_v4 == o.create_sub_organization_intent_v4 &&
      email_auth_intent == o.email_auth_intent &&
       == o. &&
      init_import_wallet_intent == o.init_import_wallet_intent &&
      import_wallet_intent == o.import_wallet_intent &&
      init_import_private_key_intent == o.init_import_private_key_intent &&
      import_private_key_intent == o.import_private_key_intent
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



668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
# File 'lib/turnkey_client/models/intent.rb', line 668

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



737
738
739
740
741
742
743
744
745
746
747
748
749
# File 'lib/turnkey_client/models/intent.rb', line 737

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



645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
# File 'lib/turnkey_client/models/intent.rb', line 645

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


625
626
627
# File 'lib/turnkey_client/models/intent.rb', line 625

def eql?(o)
  self == o
end

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



631
632
633
# File 'lib/turnkey_client/models/intent.rb', line 631

def hash
  [create_organization_intent, create_authenticators_intent, create_users_intent, create_private_keys_intent, sign_raw_payload_intent, create_invitations_intent, accept_invitation_intent, create_policy_intent, disable_private_key_intent, delete_users_intent, delete_authenticators_intent, delete_invitation_intent, delete_organization_intent, delete_policy_intent, create_user_tag_intent, delete_user_tags_intent, sign_transaction_intent, create_api_keys_intent, delete_api_keys_intent, approve_activity_intent, reject_activity_intent, create_private_key_tag_intent, delete_private_key_tags_intent, create_policy_intent_v2, set_payment_method_intent, activate_billing_tier_intent, delete_payment_method_intent, create_policy_intent_v3, create_api_only_users_intent, update_root_quorum_intent, update_user_tag_intent, update_private_key_tag_intent, create_authenticators_intent_v2, accept_invitation_intent_v2, create_organization_intent_v2, create_users_intent_v2, create_sub_organization_intent, create_sub_organization_intent_v2, update_allowed_origins_intent, create_private_keys_intent_v2, update_user_intent, update_policy_intent, set_payment_method_intent_v2, create_sub_organization_intent_v3, create_wallet_intent, create_wallet_accounts_intent, init_user_email_recovery_intent, recover_user_intent, set_organization_feature_intent, remove_organization_feature_intent, sign_raw_payload_intent_v2, sign_transaction_intent_v2, export_private_key_intent, export_wallet_intent, create_sub_organization_intent_v4, email_auth_intent, , init_import_wallet_intent, import_wallet_intent, init_import_private_key_intent, import_private_key_intent].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



539
540
541
542
543
544
545
546
# File 'lib/turnkey_client/models/intent.rb', line 539

def list_invalid_properties
  invalid_properties = Array.new
  if @create_organization_intent.nil?
    invalid_properties.push('invalid value for "create_organization_intent", create_organization_intent cannot be nil.')
  end

  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



713
714
715
# File 'lib/turnkey_client/models/intent.rb', line 713

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



719
720
721
722
723
724
725
726
727
728
729
730
731
# File 'lib/turnkey_client/models/intent.rb', line 719

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



707
708
709
# File 'lib/turnkey_client/models/intent.rb', line 707

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



550
551
552
553
# File 'lib/turnkey_client/models/intent.rb', line 550

def valid?
  return false if @create_organization_intent.nil?
  true
end