package smaws-clients

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file serializers.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
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
203
204
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
270
271
272
273
274
275
276
277
278
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
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
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
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
662
663
664
665
666
667
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
704
705
706
707
708
709
710
711
712
open Smaws_Lib.Json.SerializeHelpers

open Types

let zero_value_integer_to_yojson = int_to_yojson

let unversioned_term_type_to_yojson = string_to_yojson

let bounded_string_to_yojson = string_to_yojson

let timestamp__to_yojson = timestamp_to_yojson

let validity_term_to_yojson = 
  fun (x: validity_term) -> assoc_to_yojson(
    [(
         "agreementEndDate",
         (option_to_yojson timestamp__to_yojson x.agreement_end_date));
       (
         "agreementStartDate",
         (option_to_yojson timestamp__to_yojson x.agreement_start_date));
       (
         "agreementDuration",
         (option_to_yojson bounded_string_to_yojson x.agreement_duration));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let base_unit_to_yojson = unit_to_yojson

let validation_exception_reason_to_yojson = 
  fun (x: validation_exception_reason) -> match x with 
 
| OTHER -> `String "OTHER"
  | UNSUPPORTED_FILTERS -> `String "UNSUPPORTED_FILTERS"
  | INVALID_MAX_RESULTS -> `String "INVALID_MAX_RESULTS"
  | INVALID_NEXT_TOKEN -> `String "INVALID_NEXT_TOKEN"
  | INVALID_SORT_ORDER -> `String "INVALID_SORT_ORDER"
  | INVALID_SORT_BY -> `String "INVALID_SORT_BY"
  | INVALID_FILTER_VALUES -> `String "INVALID_FILTER_VALUES"
  | INVALID_FILTER_NAME -> `String "INVALID_FILTER_NAME"
  | INVALID_CATALOG -> `String "INVALID_CATALOG"
  | MISSING_AGREEMENT_ID -> `String "MISSING_AGREEMENT_ID"
  | INVALID_AGREEMENT_ID -> `String "INVALID_AGREEMENT_ID"
   

let validation_exception_field_to_yojson = 
  fun (x: validation_exception_field) -> assoc_to_yojson(
    [(
         "message",
         (Some (bounded_string_to_yojson x.message)));
       (
         "name",
         (Some (bounded_string_to_yojson x.name)));
       
  ])

let validation_exception_field_list_to_yojson = 
  fun tree -> list_to_yojson validation_exception_field_to_yojson tree

let request_id_to_yojson = string_to_yojson

let exception_message_to_yojson = string_to_yojson

let validation_exception_to_yojson = 
  fun (x: validation_exception) -> assoc_to_yojson(
    [(
         "fields",
         (option_to_yojson validation_exception_field_list_to_yojson x.fields));
       (
         "reason",
         (option_to_yojson validation_exception_reason_to_yojson x.reason));
       (
         "message",
         (option_to_yojson exception_message_to_yojson x.message));
       (
         "requestId",
         (option_to_yojson request_id_to_yojson x.request_id));
       
  ])

let rate_card_item_to_yojson = 
  fun (x: rate_card_item) -> assoc_to_yojson(
    [(
         "price",
         (option_to_yojson bounded_string_to_yojson x.price));
       (
         "dimensionKey",
         (option_to_yojson bounded_string_to_yojson x.dimension_key));
       
  ])

let rate_card_list_to_yojson = 
  fun tree -> list_to_yojson rate_card_item_to_yojson tree

let usage_based_rate_card_item_to_yojson = 
  fun (x: usage_based_rate_card_item) -> assoc_to_yojson(
    [(
         "rateCard",
         (option_to_yojson rate_card_list_to_yojson x.rate_card));
       
  ])

let usage_based_rate_card_list_to_yojson = 
  fun tree -> list_to_yojson usage_based_rate_card_item_to_yojson tree

let currency_code_to_yojson = string_to_yojson

let usage_based_pricing_term_to_yojson = 
  fun (x: usage_based_pricing_term) -> assoc_to_yojson(
    [(
         "rateCards",
         (option_to_yojson usage_based_rate_card_list_to_yojson x.rate_cards));
       (
         "currencyCode",
         (option_to_yojson currency_code_to_yojson x.currency_code));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let throttling_exception_to_yojson = 
  fun (x: throttling_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson exception_message_to_yojson x.message));
       (
         "requestId",
         (option_to_yojson request_id_to_yojson x.request_id));
       
  ])

let support_term_to_yojson = 
  fun (x: support_term) -> assoc_to_yojson(
    [(
         "refundPolicy",
         (option_to_yojson bounded_string_to_yojson x.refund_policy));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let sort_order_to_yojson = 
  fun (x: sort_order) -> match x with 
  | DESCENDING -> `String "DESCENDING"
    | ASCENDING -> `String "ASCENDING"
     

let sort_by_to_yojson = string_to_yojson

let sort_to_yojson = 
  fun (x: sort) -> assoc_to_yojson(
    [(
         "sortOrder",
         (option_to_yojson sort_order_to_yojson x.sort_order));
       (
         "sortBy",
         (option_to_yojson sort_by_to_yojson x.sort_by));
       
  ])

let selector_to_yojson = 
  fun (x: selector) -> assoc_to_yojson(
    [(
         "value",
         (option_to_yojson bounded_string_to_yojson x.value));
       (
         "type",
         (option_to_yojson bounded_string_to_yojson x.type_));
       
  ])

let resource_id_to_yojson = string_to_yojson

let agreement_type_to_yojson = string_to_yojson

let aws_account_id_to_yojson = string_to_yojson

let acceptor_to_yojson = 
  fun (x: acceptor) -> assoc_to_yojson(
    [(
         "accountId",
         (option_to_yojson aws_account_id_to_yojson x.account_id));
       
  ])

let proposer_to_yojson = 
  fun (x: proposer) -> assoc_to_yojson(
    [(
         "accountId",
         (option_to_yojson aws_account_id_to_yojson x.account_id));
       
  ])

let agreement_resource_type_to_yojson = string_to_yojson

let resource_to_yojson = 
  fun (x: resource) -> assoc_to_yojson(
    [(
         "type",
         (option_to_yojson agreement_resource_type_to_yojson x.type_));
       (
         "id",
         (option_to_yojson resource_id_to_yojson x.id));
       
  ])

let resources_to_yojson = 
  fun tree -> list_to_yojson resource_to_yojson tree

let offer_id_to_yojson = string_to_yojson

let proposal_summary_to_yojson = 
  fun (x: proposal_summary) -> assoc_to_yojson(
    [(
         "offerId",
         (option_to_yojson offer_id_to_yojson x.offer_id));
       (
         "resources",
         (option_to_yojson resources_to_yojson x.resources));
       
  ])

let agreement_status_to_yojson = 
  fun (x: agreement_status) -> match x with 
 
| TERMINATED -> `String "TERMINATED"
  | SUPERSEDED -> `String "SUPERSEDED"
  | ROLLED_BACK -> `String "ROLLED_BACK"
  | REPLACED -> `String "REPLACED"
  | RENEWED -> `String "RENEWED"
  | EXPIRED -> `String "EXPIRED"
  | CANCELLED -> `String "CANCELLED"
  | ARCHIVED -> `String "ARCHIVED"
  | ACTIVE -> `String "ACTIVE"
   

let agreement_view_summary_to_yojson = 
  fun (x: agreement_view_summary) -> assoc_to_yojson(
    [(
         "status",
         (option_to_yojson agreement_status_to_yojson x.status));
       (
         "proposalSummary",
         (option_to_yojson proposal_summary_to_yojson x.proposal_summary));
       (
         "proposer",
         (option_to_yojson proposer_to_yojson x.proposer));
       (
         "acceptor",
         (option_to_yojson acceptor_to_yojson x.acceptor));
       (
         "agreementType",
         (option_to_yojson agreement_type_to_yojson x.agreement_type));
       (
         "endTime",
         (option_to_yojson timestamp__to_yojson x.end_time));
       (
         "startTime",
         (option_to_yojson timestamp__to_yojson x.start_time));
       (
         "acceptanceTime",
         (option_to_yojson timestamp__to_yojson x.acceptance_time));
       (
         "agreementId",
         (option_to_yojson resource_id_to_yojson x.agreement_id));
       
  ])

let agreement_view_summary_list_to_yojson = 
  fun tree -> list_to_yojson agreement_view_summary_to_yojson tree

let next_token_to_yojson = string_to_yojson

let search_agreements_output_to_yojson = 
  fun (x: search_agreements_output) -> assoc_to_yojson(
    [(
         "nextToken",
         (option_to_yojson next_token_to_yojson x.next_token));
       (
         "agreementViewSummaries",
         (option_to_yojson agreement_view_summary_list_to_yojson x.agreement_view_summaries));
       
  ])

let catalog_to_yojson = string_to_yojson

let filter_name_to_yojson = string_to_yojson

let filter_value_to_yojson = string_to_yojson

let filter_value_list_to_yojson = 
  fun tree -> list_to_yojson filter_value_to_yojson tree

let filter_to_yojson = 
  fun (x: filter) -> assoc_to_yojson(
    [(
         "values",
         (option_to_yojson filter_value_list_to_yojson x.values));
       (
         "name",
         (option_to_yojson filter_name_to_yojson x.name));
       
  ])

let filter_list_to_yojson = 
  fun tree -> list_to_yojson filter_to_yojson tree

let max_results_to_yojson = int_to_yojson

let search_agreements_input_to_yojson = 
  fun (x: search_agreements_input) -> assoc_to_yojson(
    [(
         "nextToken",
         (option_to_yojson next_token_to_yojson x.next_token));
       (
         "maxResults",
         (option_to_yojson max_results_to_yojson x.max_results));
       (
         "sort",
         (option_to_yojson sort_to_yojson x.sort));
       (
         "filters",
         (option_to_yojson filter_list_to_yojson x.filters));
       (
         "catalog",
         (option_to_yojson catalog_to_yojson x.catalog));
       
  ])

let internal_server_exception_to_yojson = 
  fun (x: internal_server_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson exception_message_to_yojson x.message));
       (
         "requestId",
         (option_to_yojson request_id_to_yojson x.request_id));
       
  ])

let access_denied_exception_to_yojson = 
  fun (x: access_denied_exception) -> assoc_to_yojson(
    [(
         "message",
         (option_to_yojson exception_message_to_yojson x.message));
       (
         "requestId",
         (option_to_yojson request_id_to_yojson x.request_id));
       
  ])

let schedule_item_to_yojson = 
  fun (x: schedule_item) -> assoc_to_yojson(
    [(
         "chargeAmount",
         (option_to_yojson bounded_string_to_yojson x.charge_amount));
       (
         "chargeDate",
         (option_to_yojson timestamp__to_yojson x.charge_date));
       
  ])

let schedule_list_to_yojson = 
  fun tree -> list_to_yojson schedule_item_to_yojson tree

let resource_type_to_yojson = 
  fun (x: resource_type) -> match x with 
  | AGREEMENT -> `String "Agreement"
     

let resource_not_found_exception_to_yojson = 
  fun (x: resource_not_found_exception) -> assoc_to_yojson(
    [(
         "resourceType",
         (option_to_yojson resource_type_to_yojson x.resource_type));
       (
         "resourceId",
         (option_to_yojson resource_id_to_yojson x.resource_id));
       (
         "message",
         (option_to_yojson exception_message_to_yojson x.message));
       (
         "requestId",
         (option_to_yojson request_id_to_yojson x.request_id));
       
  ])

let boolean__to_yojson = bool_to_yojson

let renewal_term_configuration_to_yojson = 
  fun (x: renewal_term_configuration) -> assoc_to_yojson(
    [(
         "enableAutoRenew",
         (Some (boolean__to_yojson x.enable_auto_renew)));
       
  ])

let renewal_term_to_yojson = 
  fun (x: renewal_term) -> assoc_to_yojson(
    [(
         "configuration",
         (option_to_yojson renewal_term_configuration_to_yojson x.configuration));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let recurring_payment_term_to_yojson = 
  fun (x: recurring_payment_term) -> assoc_to_yojson(
    [(
         "price",
         (option_to_yojson bounded_string_to_yojson x.price));
       (
         "billingPeriod",
         (option_to_yojson bounded_string_to_yojson x.billing_period));
       (
         "currencyCode",
         (option_to_yojson currency_code_to_yojson x.currency_code));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let positive_integer_with_default_value_one_to_yojson = int_to_yojson

let payment_schedule_term_to_yojson = 
  fun (x: payment_schedule_term) -> assoc_to_yojson(
    [(
         "schedule",
         (option_to_yojson schedule_list_to_yojson x.schedule));
       (
         "currencyCode",
         (option_to_yojson currency_code_to_yojson x.currency_code));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let document_item_to_yojson = 
  fun (x: document_item) -> assoc_to_yojson(
    [(
         "version",
         (option_to_yojson bounded_string_to_yojson x.version));
       (
         "url",
         (option_to_yojson bounded_string_to_yojson x.url));
       (
         "type",
         (option_to_yojson bounded_string_to_yojson x.type_));
       
  ])

let document_list_to_yojson = 
  fun tree -> list_to_yojson document_item_to_yojson tree

let legal_term_to_yojson = 
  fun (x: legal_term) -> assoc_to_yojson(
    [(
         "documents",
         (option_to_yojson document_list_to_yojson x.documents));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let grant_item_to_yojson = 
  fun (x: grant_item) -> assoc_to_yojson(
    [(
         "maxQuantity",
         (option_to_yojson positive_integer_with_default_value_one_to_yojson x.max_quantity));
       (
         "dimensionKey",
         (option_to_yojson bounded_string_to_yojson x.dimension_key));
       
  ])

let grant_list_to_yojson = 
  fun tree -> list_to_yojson grant_item_to_yojson tree

let constraints_to_yojson = 
  fun (x: constraints) -> assoc_to_yojson(
    [(
         "quantityConfiguration",
         (option_to_yojson bounded_string_to_yojson x.quantity_configuration));
       (
         "multipleDimensionSelection",
         (option_to_yojson bounded_string_to_yojson x.multiple_dimension_selection));
       
  ])

let configurable_upfront_rate_card_item_to_yojson = 
  fun (x: configurable_upfront_rate_card_item) -> assoc_to_yojson(
    [(
         "rateCard",
         (option_to_yojson rate_card_list_to_yojson x.rate_card));
       (
         "constraints",
         (option_to_yojson constraints_to_yojson x.constraints));
       (
         "selector",
         (option_to_yojson selector_to_yojson x.selector));
       
  ])

let configurable_upfront_rate_card_list_to_yojson = 
  fun tree -> list_to_yojson configurable_upfront_rate_card_item_to_yojson tree

let dimension_to_yojson = 
  fun (x: dimension) -> assoc_to_yojson(
    [(
         "dimensionValue",
         (Some (zero_value_integer_to_yojson x.dimension_value)));
       (
         "dimensionKey",
         (Some (bounded_string_to_yojson x.dimension_key)));
       
  ])

let dimension_list_to_yojson = 
  fun tree -> list_to_yojson dimension_to_yojson tree

let configurable_upfront_pricing_term_configuration_to_yojson = 
  fun (x: configurable_upfront_pricing_term_configuration) -> assoc_to_yojson(
    [(
         "dimensions",
         (Some (dimension_list_to_yojson x.dimensions)));
       (
         "selectorValue",
         (Some (bounded_string_to_yojson x.selector_value)));
       
  ])

let configurable_upfront_pricing_term_to_yojson = 
  fun (x: configurable_upfront_pricing_term) -> assoc_to_yojson(
    [(
         "configuration",
         (option_to_yojson configurable_upfront_pricing_term_configuration_to_yojson x.configuration));
       (
         "rateCards",
         (option_to_yojson configurable_upfront_rate_card_list_to_yojson x.rate_cards));
       (
         "currencyCode",
         (option_to_yojson currency_code_to_yojson x.currency_code));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let byol_pricing_term_to_yojson = 
  fun (x: byol_pricing_term) -> assoc_to_yojson(
    [(
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let free_trial_pricing_term_to_yojson = 
  fun (x: free_trial_pricing_term) -> assoc_to_yojson(
    [(
         "grants",
         (option_to_yojson grant_list_to_yojson x.grants));
       (
         "duration",
         (option_to_yojson bounded_string_to_yojson x.duration));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let fixed_upfront_pricing_term_to_yojson = 
  fun (x: fixed_upfront_pricing_term) -> assoc_to_yojson(
    [(
         "grants",
         (option_to_yojson grant_list_to_yojson x.grants));
       (
         "price",
         (option_to_yojson bounded_string_to_yojson x.price));
       (
         "duration",
         (option_to_yojson bounded_string_to_yojson x.duration));
       (
         "currencyCode",
         (option_to_yojson currency_code_to_yojson x.currency_code));
       (
         "type",
         (option_to_yojson unversioned_term_type_to_yojson x.type_));
       
  ])

let accepted_term_to_yojson = 
  fun (x: accepted_term) -> 
  match x with 
    | FixedUpfrontPricingTerm(arg) -> assoc_to_yojson ["fixedUpfrontPricingTerm", Some (fixed_upfront_pricing_term_to_yojson arg)]
      | FreeTrialPricingTerm(arg) -> assoc_to_yojson ["freeTrialPricingTerm", Some (free_trial_pricing_term_to_yojson arg)]
      | PaymentScheduleTerm(arg) -> assoc_to_yojson ["paymentScheduleTerm", Some (payment_schedule_term_to_yojson arg)]
      | ValidityTerm(arg) -> assoc_to_yojson ["validityTerm", Some (validity_term_to_yojson arg)]
      | RecurringPaymentTerm(arg) -> assoc_to_yojson ["recurringPaymentTerm", Some (recurring_payment_term_to_yojson arg)]
      | ByolPricingTerm(arg) -> assoc_to_yojson ["byolPricingTerm", Some (byol_pricing_term_to_yojson arg)]
      | ConfigurableUpfrontPricingTerm(arg) -> assoc_to_yojson ["configurableUpfrontPricingTerm", Some (configurable_upfront_pricing_term_to_yojson arg)]
      | UsageBasedPricingTerm(arg) -> assoc_to_yojson ["usageBasedPricingTerm", Some (usage_based_pricing_term_to_yojson arg)]
      | RenewalTerm(arg) -> assoc_to_yojson ["renewalTerm", Some (renewal_term_to_yojson arg)]
      | SupportTerm(arg) -> assoc_to_yojson ["supportTerm", Some (support_term_to_yojson arg)]
      | LegalTerm(arg) -> assoc_to_yojson ["legalTerm", Some (legal_term_to_yojson arg)]
      
      
    

let accepted_term_list_to_yojson = 
  fun tree -> list_to_yojson accepted_term_to_yojson tree

let get_agreement_terms_output_to_yojson = 
  fun (x: get_agreement_terms_output) -> assoc_to_yojson(
    [(
         "nextToken",
         (option_to_yojson next_token_to_yojson x.next_token));
       (
         "acceptedTerms",
         (option_to_yojson accepted_term_list_to_yojson x.accepted_terms));
       
  ])

let get_agreement_terms_input_to_yojson = 
  fun (x: get_agreement_terms_input) -> assoc_to_yojson(
    [(
         "nextToken",
         (option_to_yojson next_token_to_yojson x.next_token));
       (
         "maxResults",
         (option_to_yojson max_results_to_yojson x.max_results));
       (
         "agreementId",
         (Some (resource_id_to_yojson x.agreement_id)));
       
  ])

let estimated_charges_to_yojson = 
  fun (x: estimated_charges) -> assoc_to_yojson(
    [(
         "agreementValue",
         (option_to_yojson bounded_string_to_yojson x.agreement_value));
       (
         "currencyCode",
         (option_to_yojson currency_code_to_yojson x.currency_code));
       
  ])

let describe_agreement_output_to_yojson = 
  fun (x: describe_agreement_output) -> assoc_to_yojson(
    [(
         "status",
         (option_to_yojson agreement_status_to_yojson x.status));
       (
         "proposalSummary",
         (option_to_yojson proposal_summary_to_yojson x.proposal_summary));
       (
         "estimatedCharges",
         (option_to_yojson estimated_charges_to_yojson x.estimated_charges));
       (
         "agreementType",
         (option_to_yojson agreement_type_to_yojson x.agreement_type));
       (
         "acceptanceTime",
         (option_to_yojson timestamp__to_yojson x.acceptance_time));
       (
         "endTime",
         (option_to_yojson timestamp__to_yojson x.end_time));
       (
         "startTime",
         (option_to_yojson timestamp__to_yojson x.start_time));
       (
         "proposer",
         (option_to_yojson proposer_to_yojson x.proposer));
       (
         "acceptor",
         (option_to_yojson acceptor_to_yojson x.acceptor));
       (
         "agreementId",
         (option_to_yojson resource_id_to_yojson x.agreement_id));
       
  ])

let describe_agreement_input_to_yojson = 
  fun (x: describe_agreement_input) -> assoc_to_yojson(
    [(
         "agreementId",
         (Some (resource_id_to_yojson x.agreement_id)));
       
  ])

let base_string_to_yojson = string_to_yojson

let base_boolean_to_yojson = bool_to_yojson

let base_integer_to_yojson = int_to_yojson

let base_timestamp_to_yojson = timestamp_to_yojson

let base_long_to_yojson = long_to_yojson

let base_document_to_yojson = 
  json_to_yojson

OCaml

Innovation. Community. Security.