togai_client 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +61 -0
  4. data/Rakefile +10 -0
  5. data/docs/Account.md +24 -0
  6. data/docs/AccountAliases.md +20 -0
  7. data/docs/AccountPaginatedResponse.md +22 -0
  8. data/docs/AccountsApi.md +595 -0
  9. data/docs/AddAccountAliasesRequest.md +18 -0
  10. data/docs/AssociatePricePlanRequest.md +24 -0
  11. data/docs/AssociatePricePlanResponse.md +22 -0
  12. data/docs/BaseSuccessResponse.md +18 -0
  13. data/docs/BundleStrategy.md +24 -0
  14. data/docs/BundleStrategyUsageMetersValue.md +18 -0
  15. data/docs/Computation.md +31 -0
  16. data/docs/CreateAccountRequest.md +22 -0
  17. data/docs/CreateCustomerRequest.md +26 -0
  18. data/docs/CreateCustomerResponse.md +26 -0
  19. data/docs/CreateEventSchemaRequest.md +24 -0
  20. data/docs/CreatePricePlanRequest.md +24 -0
  21. data/docs/CreateUsageMeterRequest.md +26 -0
  22. data/docs/Customer.md +30 -0
  23. data/docs/CustomerPaginatedResponse.md +22 -0
  24. data/docs/CustomersApi.md +363 -0
  25. data/docs/DimensionsSchema.md +18 -0
  26. data/docs/ErrorResponse.md +18 -0
  27. data/docs/Event.md +28 -0
  28. data/docs/EventAttribute.md +22 -0
  29. data/docs/EventAttributeSchema.md +20 -0
  30. data/docs/EventIngestionApi.md +146 -0
  31. data/docs/EventManagementApi.md +159 -0
  32. data/docs/EventPipelineInfo.md +26 -0
  33. data/docs/EventPipelineInfoAccount.md +20 -0
  34. data/docs/EventPipelineInfoCustomer.md +20 -0
  35. data/docs/EventPipelineInfoEventSchema.md +20 -0
  36. data/docs/EventPipelineInfoPricePlansInner.md +26 -0
  37. data/docs/EventPipelineInfoUsageMetersInner.md +24 -0
  38. data/docs/EventSchema.md +32 -0
  39. data/docs/EventSchemaListData.md +34 -0
  40. data/docs/EventSchemaListDataAllOf.md +18 -0
  41. data/docs/EventSchemaListPaginatedResponse.md +22 -0
  42. data/docs/EventSchemaVersionsResponse.md +18 -0
  43. data/docs/EventSchemasApi.md +581 -0
  44. data/docs/EventWithStatus.md +20 -0
  45. data/docs/EventWithStatusAndEventPipelineInfo.md +22 -0
  46. data/docs/EventWithStatusAndEventPipelineInfoAllOf.md +18 -0
  47. data/docs/GetEventResponse.md +18 -0
  48. data/docs/GetEventsResponse.md +20 -0
  49. data/docs/GetMetricsRequest.md +22 -0
  50. data/docs/GetMetricsResponse.md +18 -0
  51. data/docs/IngestBatchEventRequest.md +18 -0
  52. data/docs/IngestBatchEventResponse.md +18 -0
  53. data/docs/IngestError.md +20 -0
  54. data/docs/IngestEventRequest.md +18 -0
  55. data/docs/IngestEventResponse.md +18 -0
  56. data/docs/IngestionStatus.md +20 -0
  57. data/docs/MetricDataPoints.md +22 -0
  58. data/docs/MetricDataPointsGroupedBy.md +20 -0
  59. data/docs/MetricName.md +15 -0
  60. data/docs/MetricQuery.md +26 -0
  61. data/docs/MetricQueryFilterEntry.md +20 -0
  62. data/docs/MetricQueryResponse.md +22 -0
  63. data/docs/MetricsApi.md +79 -0
  64. data/docs/PaginationOptions.md +20 -0
  65. data/docs/PlanOverride.md +24 -0
  66. data/docs/PricePlan.md +26 -0
  67. data/docs/PricePlanListData.md +32 -0
  68. data/docs/PricePlanPaginatedResponse.md +22 -0
  69. data/docs/PricePlansApi.md +363 -0
  70. data/docs/PricingCycle.md +24 -0
  71. data/docs/PricingCycleStartOffset.md +20 -0
  72. data/docs/PricingSchedule.md +22 -0
  73. data/docs/RateCard.md +22 -0
  74. data/docs/RateCardBundle.md +22 -0
  75. data/docs/RateCardUsageValue.md +24 -0
  76. data/docs/RemoveAccountAliasesRequest.md +18 -0
  77. data/docs/SignupRequest.md +22 -0
  78. data/docs/SignupResponse.md +20 -0
  79. data/docs/StatusResponse.md +24 -0
  80. data/docs/StatusResponseHeaders.md +18 -0
  81. data/docs/UpdateAccountRequest.md +18 -0
  82. data/docs/UpdateCustomerRequest.md +22 -0
  83. data/docs/UpdateEventSchemaRequest.md +22 -0
  84. data/docs/UpdatePricePlanRequest.md +22 -0
  85. data/docs/UpdateUsageMeterRequest.md +24 -0
  86. data/docs/UsageMeter.md +34 -0
  87. data/docs/UsageMeterPaginatedResponse.md +22 -0
  88. data/docs/UsageMetersApi.md +521 -0
  89. data/docs/UsageStrategy.md +22 -0
  90. data/docs/UserDetails.md +26 -0
  91. data/git_push.sh +57 -0
  92. data/lib/togai_client/api/accounts_api.rb +679 -0
  93. data/lib/togai_client/api/customers_api.rb +365 -0
  94. data/lib/togai_client/api/event_ingestion_api.rb +158 -0
  95. data/lib/togai_client/api/event_management_api.rb +164 -0
  96. data/lib/togai_client/api/event_schemas_api.rb +579 -0
  97. data/lib/togai_client/api/metrics_api.rb +86 -0
  98. data/lib/togai_client/api/price_plans_api.rb +365 -0
  99. data/lib/togai_client/api/usage_meters_api.rb +572 -0
  100. data/lib/togai_client/api_client.rb +392 -0
  101. data/lib/togai_client/api_error.rb +57 -0
  102. data/lib/togai_client/configuration.rb +287 -0
  103. data/lib/togai_client/models/account.rb +373 -0
  104. data/lib/togai_client/models/account_aliases.rb +277 -0
  105. data/lib/togai_client/models/account_paginated_response.rb +239 -0
  106. data/lib/togai_client/models/add_account_aliases_request.rb +247 -0
  107. data/lib/togai_client/models/associate_price_plan_request.rb +274 -0
  108. data/lib/togai_client/models/associate_price_plan_response.rb +275 -0
  109. data/lib/togai_client/models/base_success_response.rb +224 -0
  110. data/lib/togai_client/models/bundle_strategy.rb +325 -0
  111. data/lib/togai_client/models/bundle_strategy_usage_meters_value.rb +224 -0
  112. data/lib/togai_client/models/computation.rb +294 -0
  113. data/lib/togai_client/models/create_account_request.rb +324 -0
  114. data/lib/togai_client/models/create_customer_request.rb +374 -0
  115. data/lib/togai_client/models/create_customer_response.rb +373 -0
  116. data/lib/togai_client/models/create_event_schema_request.rb +351 -0
  117. data/lib/togai_client/models/create_price_plan_request.rb +298 -0
  118. data/lib/togai_client/models/create_usage_meter_request.rb +368 -0
  119. data/lib/togai_client/models/customer.rb +442 -0
  120. data/lib/togai_client/models/customer_paginated_response.rb +239 -0
  121. data/lib/togai_client/models/dimensions_schema.rb +256 -0
  122. data/lib/togai_client/models/error_response.rb +244 -0
  123. data/lib/togai_client/models/event.rb +379 -0
  124. data/lib/togai_client/models/event_attribute.rb +304 -0
  125. data/lib/togai_client/models/event_attribute_schema.rb +281 -0
  126. data/lib/togai_client/models/event_pipeline_info.rb +260 -0
  127. data/lib/togai_client/models/event_pipeline_info_account.rb +238 -0
  128. data/lib/togai_client/models/event_pipeline_info_customer.rb +238 -0
  129. data/lib/togai_client/models/event_pipeline_info_event_schema.rb +238 -0
  130. data/lib/togai_client/models/event_pipeline_info_price_plans_inner.rb +283 -0
  131. data/lib/togai_client/models/event_pipeline_info_usage_meters_inner.rb +295 -0
  132. data/lib/togai_client/models/event_schema.rb +438 -0
  133. data/lib/togai_client/models/event_schema_list_data.rb +456 -0
  134. data/lib/togai_client/models/event_schema_list_data_all_of.rb +221 -0
  135. data/lib/togai_client/models/event_schema_list_paginated_response.rb +239 -0
  136. data/lib/togai_client/models/event_schema_versions_response.rb +227 -0
  137. data/lib/togai_client/models/event_with_status.rb +239 -0
  138. data/lib/togai_client/models/event_with_status_and_event_pipeline_info.rb +255 -0
  139. data/lib/togai_client/models/event_with_status_and_event_pipeline_info_all_of.rb +219 -0
  140. data/lib/togai_client/models/get_event_response.rb +222 -0
  141. data/lib/togai_client/models/get_events_response.rb +279 -0
  142. data/lib/togai_client/models/get_metrics_request.rb +265 -0
  143. data/lib/togai_client/models/get_metrics_response.rb +227 -0
  144. data/lib/togai_client/models/ingest_batch_event_request.rb +255 -0
  145. data/lib/togai_client/models/ingest_batch_event_response.rb +245 -0
  146. data/lib/togai_client/models/ingest_error.rb +229 -0
  147. data/lib/togai_client/models/ingest_event_request.rb +220 -0
  148. data/lib/togai_client/models/ingest_event_response.rb +244 -0
  149. data/lib/togai_client/models/ingestion_status.rb +284 -0
  150. data/lib/togai_client/models/metric_data_points.rb +289 -0
  151. data/lib/togai_client/models/metric_data_points_grouped_by.rb +238 -0
  152. data/lib/togai_client/models/metric_name.rb +38 -0
  153. data/lib/togai_client/models/metric_query.rb +331 -0
  154. data/lib/togai_client/models/metric_query_filter_entry.rb +241 -0
  155. data/lib/togai_client/models/metric_query_response.rb +255 -0
  156. data/lib/togai_client/models/pagination_options.rb +262 -0
  157. data/lib/togai_client/models/plan_override.rb +262 -0
  158. data/lib/togai_client/models/price_plan.rb +349 -0
  159. data/lib/togai_client/models/price_plan_list_data.rb +393 -0
  160. data/lib/togai_client/models/price_plan_paginated_response.rb +239 -0
  161. data/lib/togai_client/models/pricing_cycle.rb +313 -0
  162. data/lib/togai_client/models/pricing_cycle_start_offset.rb +241 -0
  163. data/lib/togai_client/models/pricing_schedule.rb +248 -0
  164. data/lib/togai_client/models/rate_card.rb +279 -0
  165. data/lib/togai_client/models/rate_card_bundle.rb +328 -0
  166. data/lib/togai_client/models/rate_card_usage_value.rb +343 -0
  167. data/lib/togai_client/models/remove_account_aliases_request.rb +247 -0
  168. data/lib/togai_client/models/signup_request.rb +293 -0
  169. data/lib/togai_client/models/signup_response.rb +260 -0
  170. data/lib/togai_client/models/status_response.rb +246 -0
  171. data/lib/togai_client/models/status_response_headers.rb +219 -0
  172. data/lib/togai_client/models/update_account_request.rb +245 -0
  173. data/lib/togai_client/models/update_customer_request.rb +304 -0
  174. data/lib/togai_client/models/update_event_schema_request.rb +306 -0
  175. data/lib/togai_client/models/update_price_plan_request.rb +254 -0
  176. data/lib/togai_client/models/update_usage_meter_request.rb +323 -0
  177. data/lib/togai_client/models/usage_meter.rb +440 -0
  178. data/lib/togai_client/models/usage_meter_paginated_response.rb +239 -0
  179. data/lib/togai_client/models/usage_strategy.rb +281 -0
  180. data/lib/togai_client/models/user_details.rb +380 -0
  181. data/lib/togai_client/version.rb +15 -0
  182. data/lib/togai_client.rb +125 -0
  183. data/spec/api_client_spec.rb +226 -0
  184. data/spec/configuration_spec.rb +42 -0
  185. data/spec/spec_helper.rb +111 -0
  186. data/togai_client.gemspec +38 -0
  187. metadata +271 -0
@@ -0,0 +1,595 @@
1
+ # TogaiClient::AccountsApi
2
+
3
+ All URIs are relative to *https://sandbox-api.togai.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_aliases**](AccountsApi.md#add_aliases) | **POST** /customers/{customer_id}/accounts/{account_id}/add_aliases | Add Aliases to account |
8
+ | [**associate_price_plan**](AccountsApi.md#associate_price_plan) | **POST** /customers/{customer_id}/accounts/{account_id}/price_plans | Associate a plan to an account |
9
+ | [**create_account**](AccountsApi.md#create_account) | **POST** /customers/{customer_id}/accounts | Create an account |
10
+ | [**delete_account**](AccountsApi.md#delete_account) | **DELETE** /customers/{customer_id}/accounts/{account_id} | Delete an account |
11
+ | [**get_account**](AccountsApi.md#get_account) | **GET** /customers/{customer_id}/accounts/{account_id} | Get an account |
12
+ | [**get_accounts**](AccountsApi.md#get_accounts) | **GET** /customers/{customer_id}/accounts | List accounts of customer |
13
+ | [**remove_aliases**](AccountsApi.md#remove_aliases) | **POST** /customers/{customer_id}/accounts/{account_id}/remove_aliases | Remove Aliases to account |
14
+ | [**update_account**](AccountsApi.md#update_account) | **PATCH** /customers/{customer_id}/accounts/{account_id} | Update an account |
15
+
16
+
17
+ ## add_aliases
18
+
19
+ > <Account> add_aliases(customer_id, account_id, add_account_aliases_request)
20
+
21
+ Add Aliases to account
22
+
23
+ Add Aliases to an account by id
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'togai_client'
30
+ # setup authorization
31
+ TogaiClient.configure do |config|
32
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
33
+ config.access_token = 'YOUR_BEARER_TOKEN'
34
+ end
35
+
36
+ api_instance = TogaiClient::AccountsApi.new
37
+ customer_id = 'customer_id_example' # String |
38
+ account_id = 'account_id_example' # String |
39
+ add_account_aliases_request = TogaiClient::AddAccountAliasesRequest.new # AddAccountAliasesRequest | Payload to add aliases to account
40
+
41
+ begin
42
+ # Add Aliases to account
43
+ result = api_instance.add_aliases(customer_id, account_id, add_account_aliases_request)
44
+ p result
45
+ rescue TogaiClient::ApiError => e
46
+ puts "Error when calling AccountsApi->add_aliases: #{e}"
47
+ end
48
+ ```
49
+
50
+ #### Using the add_aliases_with_http_info variant
51
+
52
+ This returns an Array which contains the response data, status code and headers.
53
+
54
+ > <Array(<Account>, Integer, Hash)> add_aliases_with_http_info(customer_id, account_id, add_account_aliases_request)
55
+
56
+ ```ruby
57
+ begin
58
+ # Add Aliases to account
59
+ data, status_code, headers = api_instance.add_aliases_with_http_info(customer_id, account_id, add_account_aliases_request)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => <Account>
63
+ rescue TogaiClient::ApiError => e
64
+ puts "Error when calling AccountsApi->add_aliases_with_http_info: #{e}"
65
+ end
66
+ ```
67
+
68
+ ### Parameters
69
+
70
+ | Name | Type | Description | Notes |
71
+ | ---- | ---- | ----------- | ----- |
72
+ | **customer_id** | **String** | | |
73
+ | **account_id** | **String** | | |
74
+ | **add_account_aliases_request** | [**AddAccountAliasesRequest**](AddAccountAliasesRequest.md) | Payload to add aliases to account | |
75
+
76
+ ### Return type
77
+
78
+ [**Account**](Account.md)
79
+
80
+ ### Authorization
81
+
82
+ [bearerAuth](../README.md#bearerAuth)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: application/json
87
+ - **Accept**: application/json
88
+
89
+
90
+ ## associate_price_plan
91
+
92
+ > <AssociatePricePlanResponse> associate_price_plan(customer_id, account_id, associate_price_plan_request)
93
+
94
+ Associate a plan to an account
95
+
96
+ Associate a plan to an account
97
+
98
+ ### Examples
99
+
100
+ ```ruby
101
+ require 'time'
102
+ require 'togai_client'
103
+ # setup authorization
104
+ TogaiClient.configure do |config|
105
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
106
+ config.access_token = 'YOUR_BEARER_TOKEN'
107
+ end
108
+
109
+ api_instance = TogaiClient::AccountsApi.new
110
+ customer_id = 'customer_id_example' # String |
111
+ account_id = 'account_id_example' # String |
112
+ associate_price_plan_request = TogaiClient::AssociatePricePlanRequest.new({price_plan_name: 'price_plan_name_example'}) # AssociatePricePlanRequest | Payload to associate a price plan to an account
113
+
114
+ begin
115
+ # Associate a plan to an account
116
+ result = api_instance.associate_price_plan(customer_id, account_id, associate_price_plan_request)
117
+ p result
118
+ rescue TogaiClient::ApiError => e
119
+ puts "Error when calling AccountsApi->associate_price_plan: #{e}"
120
+ end
121
+ ```
122
+
123
+ #### Using the associate_price_plan_with_http_info variant
124
+
125
+ This returns an Array which contains the response data, status code and headers.
126
+
127
+ > <Array(<AssociatePricePlanResponse>, Integer, Hash)> associate_price_plan_with_http_info(customer_id, account_id, associate_price_plan_request)
128
+
129
+ ```ruby
130
+ begin
131
+ # Associate a plan to an account
132
+ data, status_code, headers = api_instance.associate_price_plan_with_http_info(customer_id, account_id, associate_price_plan_request)
133
+ p status_code # => 2xx
134
+ p headers # => { ... }
135
+ p data # => <AssociatePricePlanResponse>
136
+ rescue TogaiClient::ApiError => e
137
+ puts "Error when calling AccountsApi->associate_price_plan_with_http_info: #{e}"
138
+ end
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ | Name | Type | Description | Notes |
144
+ | ---- | ---- | ----------- | ----- |
145
+ | **customer_id** | **String** | | |
146
+ | **account_id** | **String** | | |
147
+ | **associate_price_plan_request** | [**AssociatePricePlanRequest**](AssociatePricePlanRequest.md) | Payload to associate a price plan to an account | |
148
+
149
+ ### Return type
150
+
151
+ [**AssociatePricePlanResponse**](AssociatePricePlanResponse.md)
152
+
153
+ ### Authorization
154
+
155
+ [bearerAuth](../README.md#bearerAuth)
156
+
157
+ ### HTTP request headers
158
+
159
+ - **Content-Type**: application/json
160
+ - **Accept**: application/json
161
+
162
+
163
+ ## create_account
164
+
165
+ > <Account> create_account(customer_id, create_account_request)
166
+
167
+ Create an account
168
+
169
+ Create an account
170
+
171
+ ### Examples
172
+
173
+ ```ruby
174
+ require 'time'
175
+ require 'togai_client'
176
+ # setup authorization
177
+ TogaiClient.configure do |config|
178
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
179
+ config.access_token = 'YOUR_BEARER_TOKEN'
180
+ end
181
+
182
+ api_instance = TogaiClient::AccountsApi.new
183
+ customer_id = 'customer_id_example' # String |
184
+ create_account_request = TogaiClient::CreateAccountRequest.new({id: 'id_example', name: 'name_example'}) # CreateAccountRequest | Payload to create account
185
+
186
+ begin
187
+ # Create an account
188
+ result = api_instance.create_account(customer_id, create_account_request)
189
+ p result
190
+ rescue TogaiClient::ApiError => e
191
+ puts "Error when calling AccountsApi->create_account: #{e}"
192
+ end
193
+ ```
194
+
195
+ #### Using the create_account_with_http_info variant
196
+
197
+ This returns an Array which contains the response data, status code and headers.
198
+
199
+ > <Array(<Account>, Integer, Hash)> create_account_with_http_info(customer_id, create_account_request)
200
+
201
+ ```ruby
202
+ begin
203
+ # Create an account
204
+ data, status_code, headers = api_instance.create_account_with_http_info(customer_id, create_account_request)
205
+ p status_code # => 2xx
206
+ p headers # => { ... }
207
+ p data # => <Account>
208
+ rescue TogaiClient::ApiError => e
209
+ puts "Error when calling AccountsApi->create_account_with_http_info: #{e}"
210
+ end
211
+ ```
212
+
213
+ ### Parameters
214
+
215
+ | Name | Type | Description | Notes |
216
+ | ---- | ---- | ----------- | ----- |
217
+ | **customer_id** | **String** | | |
218
+ | **create_account_request** | [**CreateAccountRequest**](CreateAccountRequest.md) | Payload to create account | |
219
+
220
+ ### Return type
221
+
222
+ [**Account**](Account.md)
223
+
224
+ ### Authorization
225
+
226
+ [bearerAuth](../README.md#bearerAuth)
227
+
228
+ ### HTTP request headers
229
+
230
+ - **Content-Type**: application/json
231
+ - **Accept**: application/json
232
+
233
+
234
+ ## delete_account
235
+
236
+ > <BaseSuccessResponse> delete_account(customer_id, account_id)
237
+
238
+ Delete an account
239
+
240
+ Delete an account by id
241
+
242
+ ### Examples
243
+
244
+ ```ruby
245
+ require 'time'
246
+ require 'togai_client'
247
+ # setup authorization
248
+ TogaiClient.configure do |config|
249
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
250
+ config.access_token = 'YOUR_BEARER_TOKEN'
251
+ end
252
+
253
+ api_instance = TogaiClient::AccountsApi.new
254
+ customer_id = 'customer_id_example' # String |
255
+ account_id = 'account_id_example' # String |
256
+
257
+ begin
258
+ # Delete an account
259
+ result = api_instance.delete_account(customer_id, account_id)
260
+ p result
261
+ rescue TogaiClient::ApiError => e
262
+ puts "Error when calling AccountsApi->delete_account: #{e}"
263
+ end
264
+ ```
265
+
266
+ #### Using the delete_account_with_http_info variant
267
+
268
+ This returns an Array which contains the response data, status code and headers.
269
+
270
+ > <Array(<BaseSuccessResponse>, Integer, Hash)> delete_account_with_http_info(customer_id, account_id)
271
+
272
+ ```ruby
273
+ begin
274
+ # Delete an account
275
+ data, status_code, headers = api_instance.delete_account_with_http_info(customer_id, account_id)
276
+ p status_code # => 2xx
277
+ p headers # => { ... }
278
+ p data # => <BaseSuccessResponse>
279
+ rescue TogaiClient::ApiError => e
280
+ puts "Error when calling AccountsApi->delete_account_with_http_info: #{e}"
281
+ end
282
+ ```
283
+
284
+ ### Parameters
285
+
286
+ | Name | Type | Description | Notes |
287
+ | ---- | ---- | ----------- | ----- |
288
+ | **customer_id** | **String** | | |
289
+ | **account_id** | **String** | | |
290
+
291
+ ### Return type
292
+
293
+ [**BaseSuccessResponse**](BaseSuccessResponse.md)
294
+
295
+ ### Authorization
296
+
297
+ [bearerAuth](../README.md#bearerAuth)
298
+
299
+ ### HTTP request headers
300
+
301
+ - **Content-Type**: Not defined
302
+ - **Accept**: application/json
303
+
304
+
305
+ ## get_account
306
+
307
+ > <Account> get_account(customer_id, account_id)
308
+
309
+ Get an account
310
+
311
+ Get an account
312
+
313
+ ### Examples
314
+
315
+ ```ruby
316
+ require 'time'
317
+ require 'togai_client'
318
+ # setup authorization
319
+ TogaiClient.configure do |config|
320
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
321
+ config.access_token = 'YOUR_BEARER_TOKEN'
322
+ end
323
+
324
+ api_instance = TogaiClient::AccountsApi.new
325
+ customer_id = 'customer_id_example' # String |
326
+ account_id = 'account_id_example' # String |
327
+
328
+ begin
329
+ # Get an account
330
+ result = api_instance.get_account(customer_id, account_id)
331
+ p result
332
+ rescue TogaiClient::ApiError => e
333
+ puts "Error when calling AccountsApi->get_account: #{e}"
334
+ end
335
+ ```
336
+
337
+ #### Using the get_account_with_http_info variant
338
+
339
+ This returns an Array which contains the response data, status code and headers.
340
+
341
+ > <Array(<Account>, Integer, Hash)> get_account_with_http_info(customer_id, account_id)
342
+
343
+ ```ruby
344
+ begin
345
+ # Get an account
346
+ data, status_code, headers = api_instance.get_account_with_http_info(customer_id, account_id)
347
+ p status_code # => 2xx
348
+ p headers # => { ... }
349
+ p data # => <Account>
350
+ rescue TogaiClient::ApiError => e
351
+ puts "Error when calling AccountsApi->get_account_with_http_info: #{e}"
352
+ end
353
+ ```
354
+
355
+ ### Parameters
356
+
357
+ | Name | Type | Description | Notes |
358
+ | ---- | ---- | ----------- | ----- |
359
+ | **customer_id** | **String** | | |
360
+ | **account_id** | **String** | | |
361
+
362
+ ### Return type
363
+
364
+ [**Account**](Account.md)
365
+
366
+ ### Authorization
367
+
368
+ [bearerAuth](../README.md#bearerAuth)
369
+
370
+ ### HTTP request headers
371
+
372
+ - **Content-Type**: Not defined
373
+ - **Accept**: application/json
374
+
375
+
376
+ ## get_accounts
377
+
378
+ > <AccountPaginatedResponse> get_accounts(customer_id, opts)
379
+
380
+ List accounts of customer
381
+
382
+ List accounts with pagination and sort
383
+
384
+ ### Examples
385
+
386
+ ```ruby
387
+ require 'time'
388
+ require 'togai_client'
389
+ # setup authorization
390
+ TogaiClient.configure do |config|
391
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
392
+ config.access_token = 'YOUR_BEARER_TOKEN'
393
+ end
394
+
395
+ api_instance = TogaiClient::AccountsApi.new
396
+ customer_id = 'customer_id_example' # String |
397
+ opts = {
398
+ next_token: 'eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEyMywgInNvcnRPcmRlciI6ICJhc2MifQ==', # String |
399
+ page_size: '10' # String |
400
+ }
401
+
402
+ begin
403
+ # List accounts of customer
404
+ result = api_instance.get_accounts(customer_id, opts)
405
+ p result
406
+ rescue TogaiClient::ApiError => e
407
+ puts "Error when calling AccountsApi->get_accounts: #{e}"
408
+ end
409
+ ```
410
+
411
+ #### Using the get_accounts_with_http_info variant
412
+
413
+ This returns an Array which contains the response data, status code and headers.
414
+
415
+ > <Array(<AccountPaginatedResponse>, Integer, Hash)> get_accounts_with_http_info(customer_id, opts)
416
+
417
+ ```ruby
418
+ begin
419
+ # List accounts of customer
420
+ data, status_code, headers = api_instance.get_accounts_with_http_info(customer_id, opts)
421
+ p status_code # => 2xx
422
+ p headers # => { ... }
423
+ p data # => <AccountPaginatedResponse>
424
+ rescue TogaiClient::ApiError => e
425
+ puts "Error when calling AccountsApi->get_accounts_with_http_info: #{e}"
426
+ end
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+ | Name | Type | Description | Notes |
432
+ | ---- | ---- | ----------- | ----- |
433
+ | **customer_id** | **String** | | |
434
+ | **next_token** | **String** | | [optional] |
435
+ | **page_size** | **String** | | [optional] |
436
+
437
+ ### Return type
438
+
439
+ [**AccountPaginatedResponse**](AccountPaginatedResponse.md)
440
+
441
+ ### Authorization
442
+
443
+ [bearerAuth](../README.md#bearerAuth)
444
+
445
+ ### HTTP request headers
446
+
447
+ - **Content-Type**: Not defined
448
+ - **Accept**: application/json
449
+
450
+
451
+ ## remove_aliases
452
+
453
+ > <Account> remove_aliases(customer_id, account_id, remove_account_aliases_request)
454
+
455
+ Remove Aliases to account
456
+
457
+ Remove Aliases to an account by id
458
+
459
+ ### Examples
460
+
461
+ ```ruby
462
+ require 'time'
463
+ require 'togai_client'
464
+ # setup authorization
465
+ TogaiClient.configure do |config|
466
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
467
+ config.access_token = 'YOUR_BEARER_TOKEN'
468
+ end
469
+
470
+ api_instance = TogaiClient::AccountsApi.new
471
+ customer_id = 'customer_id_example' # String |
472
+ account_id = 'account_id_example' # String |
473
+ remove_account_aliases_request = TogaiClient::RemoveAccountAliasesRequest.new # RemoveAccountAliasesRequest | Payload to remove aliases from account
474
+
475
+ begin
476
+ # Remove Aliases to account
477
+ result = api_instance.remove_aliases(customer_id, account_id, remove_account_aliases_request)
478
+ p result
479
+ rescue TogaiClient::ApiError => e
480
+ puts "Error when calling AccountsApi->remove_aliases: #{e}"
481
+ end
482
+ ```
483
+
484
+ #### Using the remove_aliases_with_http_info variant
485
+
486
+ This returns an Array which contains the response data, status code and headers.
487
+
488
+ > <Array(<Account>, Integer, Hash)> remove_aliases_with_http_info(customer_id, account_id, remove_account_aliases_request)
489
+
490
+ ```ruby
491
+ begin
492
+ # Remove Aliases to account
493
+ data, status_code, headers = api_instance.remove_aliases_with_http_info(customer_id, account_id, remove_account_aliases_request)
494
+ p status_code # => 2xx
495
+ p headers # => { ... }
496
+ p data # => <Account>
497
+ rescue TogaiClient::ApiError => e
498
+ puts "Error when calling AccountsApi->remove_aliases_with_http_info: #{e}"
499
+ end
500
+ ```
501
+
502
+ ### Parameters
503
+
504
+ | Name | Type | Description | Notes |
505
+ | ---- | ---- | ----------- | ----- |
506
+ | **customer_id** | **String** | | |
507
+ | **account_id** | **String** | | |
508
+ | **remove_account_aliases_request** | [**RemoveAccountAliasesRequest**](RemoveAccountAliasesRequest.md) | Payload to remove aliases from account | |
509
+
510
+ ### Return type
511
+
512
+ [**Account**](Account.md)
513
+
514
+ ### Authorization
515
+
516
+ [bearerAuth](../README.md#bearerAuth)
517
+
518
+ ### HTTP request headers
519
+
520
+ - **Content-Type**: application/json
521
+ - **Accept**: application/json
522
+
523
+
524
+ ## update_account
525
+
526
+ > <Account> update_account(customer_id, account_id, update_account_request)
527
+
528
+ Update an account
529
+
530
+ Update an account by id
531
+
532
+ ### Examples
533
+
534
+ ```ruby
535
+ require 'time'
536
+ require 'togai_client'
537
+ # setup authorization
538
+ TogaiClient.configure do |config|
539
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
540
+ config.access_token = 'YOUR_BEARER_TOKEN'
541
+ end
542
+
543
+ api_instance = TogaiClient::AccountsApi.new
544
+ customer_id = 'customer_id_example' # String |
545
+ account_id = 'account_id_example' # String |
546
+ update_account_request = TogaiClient::UpdateAccountRequest.new # UpdateAccountRequest | Payload to update account
547
+
548
+ begin
549
+ # Update an account
550
+ result = api_instance.update_account(customer_id, account_id, update_account_request)
551
+ p result
552
+ rescue TogaiClient::ApiError => e
553
+ puts "Error when calling AccountsApi->update_account: #{e}"
554
+ end
555
+ ```
556
+
557
+ #### Using the update_account_with_http_info variant
558
+
559
+ This returns an Array which contains the response data, status code and headers.
560
+
561
+ > <Array(<Account>, Integer, Hash)> update_account_with_http_info(customer_id, account_id, update_account_request)
562
+
563
+ ```ruby
564
+ begin
565
+ # Update an account
566
+ data, status_code, headers = api_instance.update_account_with_http_info(customer_id, account_id, update_account_request)
567
+ p status_code # => 2xx
568
+ p headers # => { ... }
569
+ p data # => <Account>
570
+ rescue TogaiClient::ApiError => e
571
+ puts "Error when calling AccountsApi->update_account_with_http_info: #{e}"
572
+ end
573
+ ```
574
+
575
+ ### Parameters
576
+
577
+ | Name | Type | Description | Notes |
578
+ | ---- | ---- | ----------- | ----- |
579
+ | **customer_id** | **String** | | |
580
+ | **account_id** | **String** | | |
581
+ | **update_account_request** | [**UpdateAccountRequest**](UpdateAccountRequest.md) | Payload to update account | |
582
+
583
+ ### Return type
584
+
585
+ [**Account**](Account.md)
586
+
587
+ ### Authorization
588
+
589
+ [bearerAuth](../README.md#bearerAuth)
590
+
591
+ ### HTTP request headers
592
+
593
+ - **Content-Type**: application/json
594
+ - **Accept**: application/json
595
+
@@ -0,0 +1,18 @@
1
+ # TogaiClient::AddAccountAliasesRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **aliases** | **Array&lt;String&gt;** | List of aliases to add | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'togai_client'
13
+
14
+ instance = TogaiClient::AddAccountAliasesRequest.new(
15
+ aliases: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # TogaiClient::AssociatePricePlanRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **price_plan_name** | **String** | Name of the price plan | |
8
+ | **effective_from** | **Date** | Date of effectiveness of the association. - Expected only if the account already has a price plan associated with it. | [optional] |
9
+ | **effective_until** | **Date** | Date until which the association must be effective. - Expected only if effectiveFrom is present. | [optional] |
10
+ | **rate_card_override** | [**RateCard**](RateCard.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'togai_client'
16
+
17
+ instance = TogaiClient::AssociatePricePlanRequest.new(
18
+ price_plan_name: null,
19
+ effective_from: null,
20
+ effective_until: null,
21
+ rate_card_override: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,22 @@
1
+ # TogaiClient::AssociatePricePlanResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **account_id** | **String** | Identifier of the account | |
8
+ | **account_name** | **String** | Name of the customer | |
9
+ | **pricing_schedules** | [**Array&lt;PlanOverride&gt;**](PlanOverride.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::AssociatePricePlanResponse.new(
17
+ account_id: null,
18
+ account_name: null,
19
+ pricing_schedules: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,18 @@
1
+ # TogaiClient::BaseSuccessResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **success** | **Boolean** | | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'togai_client'
13
+
14
+ instance = TogaiClient::BaseSuccessResponse.new(
15
+ success: true
16
+ )
17
+ ```
18
+
@@ -0,0 +1,24 @@
1
+ # TogaiClient::BundleStrategy
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **rate** | **Float** | | |
9
+ | **order** | **Integer** | | |
10
+ | **usage_meters** | [**Hash&lt;String, BundleStrategyUsageMetersValue&gt;**](BundleStrategyUsageMetersValue.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'togai_client'
16
+
17
+ instance = TogaiClient::BundleStrategy.new(
18
+ name: null,
19
+ rate: null,
20
+ order: null,
21
+ usage_meters: null
22
+ )
23
+ ```
24
+