package smaws-clients

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

Source file builders.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
[@@@warning "-39"]
open Types
let make_validity_term 
  ?(agreement_end_date : float option)
  ?(agreement_start_date : float option)
  ?(agreement_duration : string option)
  ?(type_ : string option)
  () : validity_term = {
  agreement_end_date; agreement_start_date; agreement_duration; type_; 
}

let make_validation_exception_field  ~(message : string) ~(name : string) ()
: validation_exception_field = { message; name;  }

let make_rate_card_item 
  ?(price : string option) ?(dimension_key : string option) ()
: rate_card_item = { price; dimension_key; 
}

let make_usage_based_rate_card_item 
  ?(rate_card : rate_card_item list option) () : usage_based_rate_card_item =
{ rate_card;  }

let make_usage_based_pricing_term 
  ?(rate_cards : usage_based_rate_card_item list option)
  ?(currency_code : string option)
  ?(type_ : string option)
  () : usage_based_pricing_term = { rate_cards; currency_code; type_; 
}

let make_support_term 
  ?(refund_policy : string option) ?(type_ : string option) () : support_term
= { refund_policy; type_;  }

let make_sort 
  ?(sort_order : sort_order option) ?(sort_by : string option) () : sort = {
  sort_order; sort_by;  }

let make_selector  ?(value : string option) ?(type_ : string option) ()
: selector = { value; type_;  }

let make_acceptor  ?(account_id : string option) () : acceptor = {
  account_id;  }

let make_proposer  ?(account_id : string option) () : proposer = {
  account_id;  }

let make_resource  ?(type_ : string option) ?(id : string option) ()
: resource = { type_; id;  }

let make_proposal_summary 
  ?(offer_id : string option) ?(resources : resource list option) ()
: proposal_summary = { offer_id; resources; 
}

let make_agreement_view_summary 
  ?(status : agreement_status option)
  ?(proposal_summary : proposal_summary option)
  ?(proposer : proposer option)
  ?(acceptor : acceptor option)
  ?(agreement_type : string option)
  ?(end_time : float option)
  ?(start_time : float option)
  ?(acceptance_time : float option)
  ?(agreement_id : string option)
  () : agreement_view_summary = {
  status;
  proposal_summary;
  proposer;
  acceptor;
  agreement_type;
  end_time;
  start_time;
  acceptance_time;
  agreement_id;
   }

let make_search_agreements_output 
  ?(next_token : string option)
  ?(agreement_view_summaries : agreement_view_summary list option)
  () : search_agreements_output = { next_token; agreement_view_summaries; 
}

let make_filter  ?(values : string list option) ?(name : string option) ()
: filter = { values; name;  }

let make_search_agreements_input 
  ?(next_token : string option)
  ?(max_results : int option)
  ?(sort : sort option)
  ?(filters : filter list option)
  ?(catalog : string option)
  () : search_agreements_input = {
  next_token; max_results; sort; filters; catalog;  }

let make_schedule_item 
  ?(charge_amount : string option) ?(charge_date : float option) ()
: schedule_item = { charge_amount; charge_date; 
}

let make_renewal_term_configuration  ~(enable_auto_renew : bool) ()
: renewal_term_configuration = { enable_auto_renew;  }

let make_renewal_term 
  ?(configuration : renewal_term_configuration option)
  ?(type_ : string option)
  () : renewal_term = { configuration; type_; 
}

let make_recurring_payment_term 
  ?(price : string option)
  ?(billing_period : string option)
  ?(currency_code : string option)
  ?(type_ : string option)
  () : recurring_payment_term = {
  price; billing_period; currency_code; type_; 
}

let make_payment_schedule_term 
  ?(schedule : schedule_item list option)
  ?(currency_code : string option)
  ?(type_ : string option)
  () : payment_schedule_term = { schedule; currency_code; type_; 
}

let make_document_item 
  ?(version : string option)
  ?(url : string option)
  ?(type_ : string option)
  () : document_item = { version; url; type_;  }

let make_legal_term 
  ?(documents : document_item list option) ?(type_ : string option) ()
: legal_term = { documents; type_;  }

let make_grant_item 
  ?(max_quantity : int option) ?(dimension_key : string option) ()
: grant_item = { max_quantity; dimension_key;  }

let make_constraints 
  ?(quantity_configuration : string option)
  ?(multiple_dimension_selection : string option)
  () : constraints = { quantity_configuration; multiple_dimension_selection; 
}

let make_configurable_upfront_rate_card_item 
  ?(rate_card : rate_card_item list option)
  ?(constraints : constraints option)
  ?(selector : selector option)
  () : configurable_upfront_rate_card_item = {
  rate_card; constraints; selector;  }

let make_dimension  ~(dimension_value : int) ~(dimension_key : string) ()
: dimension = { dimension_value; dimension_key; 
}

let make_configurable_upfront_pricing_term_configuration 
  ~(dimensions : dimension list) ~(selector_value : string) ()
: configurable_upfront_pricing_term_configuration = {
  dimensions; selector_value;  }

let make_configurable_upfront_pricing_term 
  ?(configuration : configurable_upfront_pricing_term_configuration option)
  ?(rate_cards : configurable_upfront_rate_card_item list option)
  ?(currency_code : string option)
  ?(type_ : string option)
  () : configurable_upfront_pricing_term = {
  configuration; rate_cards; currency_code; type_; 
}

let make_byol_pricing_term  ?(type_ : string option) () : byol_pricing_term =
{ type_;  }

let make_free_trial_pricing_term 
  ?(grants : grant_item list option)
  ?(duration : string option)
  ?(type_ : string option)
  () : free_trial_pricing_term = { grants; duration; type_; 
}

let make_fixed_upfront_pricing_term 
  ?(grants : grant_item list option)
  ?(price : string option)
  ?(duration : string option)
  ?(currency_code : string option)
  ?(type_ : string option)
  () : fixed_upfront_pricing_term = {
  grants; price; duration; currency_code; type_; 
}

let make_get_agreement_terms_output 
  ?(next_token : string option)
  ?(accepted_terms : accepted_term list option)
  () : get_agreement_terms_output = { next_token; accepted_terms; 
}

let make_get_agreement_terms_input 
  ?(next_token : string option)
  ?(max_results : int option)
  ~(agreement_id : string)
  () : get_agreement_terms_input = { next_token; max_results; agreement_id; 
}

let make_estimated_charges 
  ?(agreement_value : string option) ?(currency_code : string option) ()
: estimated_charges = { agreement_value; currency_code; 
}

let make_describe_agreement_output 
  ?(status : agreement_status option)
  ?(proposal_summary : proposal_summary option)
  ?(estimated_charges : estimated_charges option)
  ?(agreement_type : string option)
  ?(acceptance_time : float option)
  ?(end_time : float option)
  ?(start_time : float option)
  ?(proposer : proposer option)
  ?(acceptor : acceptor option)
  ?(agreement_id : string option)
  () : describe_agreement_output = {
  status;
  proposal_summary;
  estimated_charges;
  agreement_type;
  acceptance_time;
  end_time;
  start_time;
  proposer;
  acceptor;
  agreement_id;
   }

let make_describe_agreement_input  ~(agreement_id : string) ()
: describe_agreement_input = { agreement_id; 
}

OCaml

Innovation. Community. Security.