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,363 @@
1
+ # TogaiClient::PricePlansApi
2
+
3
+ All URIs are relative to *https://sandbox-api.togai.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**activate_price_plan**](PricePlansApi.md#activate_price_plan) | **POST** /price_plans/{price_plan_name}/activate | Activate a price plan |
8
+ | [**create_price_plan**](PricePlansApi.md#create_price_plan) | **POST** /price_plans | Create a price plan |
9
+ | [**get_price_plan**](PricePlansApi.md#get_price_plan) | **GET** /price_plans/{price_plan_name} | Get a price plan |
10
+ | [**get_price_plans**](PricePlansApi.md#get_price_plans) | **GET** /price_plans | List price plans |
11
+ | [**update_price_plan**](PricePlansApi.md#update_price_plan) | **PATCH** /price_plans/{price_plan_name} | Update a price plan |
12
+
13
+
14
+ ## activate_price_plan
15
+
16
+ > <PricePlan> activate_price_plan(price_plan_name)
17
+
18
+ Activate a price plan
19
+
20
+ Activate a price plan
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'togai_client'
27
+ # setup authorization
28
+ TogaiClient.configure do |config|
29
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
30
+ config.access_token = 'YOUR_BEARER_TOKEN'
31
+ end
32
+
33
+ api_instance = TogaiClient::PricePlansApi.new
34
+ price_plan_name = 'price_plan_name_example' # String |
35
+
36
+ begin
37
+ # Activate a price plan
38
+ result = api_instance.activate_price_plan(price_plan_name)
39
+ p result
40
+ rescue TogaiClient::ApiError => e
41
+ puts "Error when calling PricePlansApi->activate_price_plan: #{e}"
42
+ end
43
+ ```
44
+
45
+ #### Using the activate_price_plan_with_http_info variant
46
+
47
+ This returns an Array which contains the response data, status code and headers.
48
+
49
+ > <Array(<PricePlan>, Integer, Hash)> activate_price_plan_with_http_info(price_plan_name)
50
+
51
+ ```ruby
52
+ begin
53
+ # Activate a price plan
54
+ data, status_code, headers = api_instance.activate_price_plan_with_http_info(price_plan_name)
55
+ p status_code # => 2xx
56
+ p headers # => { ... }
57
+ p data # => <PricePlan>
58
+ rescue TogaiClient::ApiError => e
59
+ puts "Error when calling PricePlansApi->activate_price_plan_with_http_info: #{e}"
60
+ end
61
+ ```
62
+
63
+ ### Parameters
64
+
65
+ | Name | Type | Description | Notes |
66
+ | ---- | ---- | ----------- | ----- |
67
+ | **price_plan_name** | **String** | | |
68
+
69
+ ### Return type
70
+
71
+ [**PricePlan**](PricePlan.md)
72
+
73
+ ### Authorization
74
+
75
+ [bearerAuth](../README.md#bearerAuth)
76
+
77
+ ### HTTP request headers
78
+
79
+ - **Content-Type**: Not defined
80
+ - **Accept**: application/json
81
+
82
+
83
+ ## create_price_plan
84
+
85
+ > <PricePlan> create_price_plan(create_price_plan_request)
86
+
87
+ Create a price plan
88
+
89
+ Create a price plan
90
+
91
+ ### Examples
92
+
93
+ ```ruby
94
+ require 'time'
95
+ require 'togai_client'
96
+ # setup authorization
97
+ TogaiClient.configure do |config|
98
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
99
+ config.access_token = 'YOUR_BEARER_TOKEN'
100
+ end
101
+
102
+ api_instance = TogaiClient::PricePlansApi.new
103
+ create_price_plan_request = TogaiClient::CreatePricePlanRequest.new({name: 'name_example', pricing_cycle: TogaiClient::PricingCycle.new({interval: 'MONTHLY', start_type: 'STATIC', start_offset: TogaiClient::PricingCycleStartOffset.new({day_offset: 'day_offset_example', month_offset: 'month_offset_example'}), grace_period: 3}), rate_card: TogaiClient::RateCard.new({type: 'USAGE'})}) # CreatePricePlanRequest | Payload to create price plan
104
+
105
+ begin
106
+ # Create a price plan
107
+ result = api_instance.create_price_plan(create_price_plan_request)
108
+ p result
109
+ rescue TogaiClient::ApiError => e
110
+ puts "Error when calling PricePlansApi->create_price_plan: #{e}"
111
+ end
112
+ ```
113
+
114
+ #### Using the create_price_plan_with_http_info variant
115
+
116
+ This returns an Array which contains the response data, status code and headers.
117
+
118
+ > <Array(<PricePlan>, Integer, Hash)> create_price_plan_with_http_info(create_price_plan_request)
119
+
120
+ ```ruby
121
+ begin
122
+ # Create a price plan
123
+ data, status_code, headers = api_instance.create_price_plan_with_http_info(create_price_plan_request)
124
+ p status_code # => 2xx
125
+ p headers # => { ... }
126
+ p data # => <PricePlan>
127
+ rescue TogaiClient::ApiError => e
128
+ puts "Error when calling PricePlansApi->create_price_plan_with_http_info: #{e}"
129
+ end
130
+ ```
131
+
132
+ ### Parameters
133
+
134
+ | Name | Type | Description | Notes |
135
+ | ---- | ---- | ----------- | ----- |
136
+ | **create_price_plan_request** | [**CreatePricePlanRequest**](CreatePricePlanRequest.md) | Payload to create price plan | |
137
+
138
+ ### Return type
139
+
140
+ [**PricePlan**](PricePlan.md)
141
+
142
+ ### Authorization
143
+
144
+ [bearerAuth](../README.md#bearerAuth)
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: application/json
149
+ - **Accept**: application/json
150
+
151
+
152
+ ## get_price_plan
153
+
154
+ > <PricePlan> get_price_plan(price_plan_name)
155
+
156
+ Get a price plan
157
+
158
+ Get a price plan
159
+
160
+ ### Examples
161
+
162
+ ```ruby
163
+ require 'time'
164
+ require 'togai_client'
165
+ # setup authorization
166
+ TogaiClient.configure do |config|
167
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
168
+ config.access_token = 'YOUR_BEARER_TOKEN'
169
+ end
170
+
171
+ api_instance = TogaiClient::PricePlansApi.new
172
+ price_plan_name = 'price_plan_name_example' # String |
173
+
174
+ begin
175
+ # Get a price plan
176
+ result = api_instance.get_price_plan(price_plan_name)
177
+ p result
178
+ rescue TogaiClient::ApiError => e
179
+ puts "Error when calling PricePlansApi->get_price_plan: #{e}"
180
+ end
181
+ ```
182
+
183
+ #### Using the get_price_plan_with_http_info variant
184
+
185
+ This returns an Array which contains the response data, status code and headers.
186
+
187
+ > <Array(<PricePlan>, Integer, Hash)> get_price_plan_with_http_info(price_plan_name)
188
+
189
+ ```ruby
190
+ begin
191
+ # Get a price plan
192
+ data, status_code, headers = api_instance.get_price_plan_with_http_info(price_plan_name)
193
+ p status_code # => 2xx
194
+ p headers # => { ... }
195
+ p data # => <PricePlan>
196
+ rescue TogaiClient::ApiError => e
197
+ puts "Error when calling PricePlansApi->get_price_plan_with_http_info: #{e}"
198
+ end
199
+ ```
200
+
201
+ ### Parameters
202
+
203
+ | Name | Type | Description | Notes |
204
+ | ---- | ---- | ----------- | ----- |
205
+ | **price_plan_name** | **String** | | |
206
+
207
+ ### Return type
208
+
209
+ [**PricePlan**](PricePlan.md)
210
+
211
+ ### Authorization
212
+
213
+ [bearerAuth](../README.md#bearerAuth)
214
+
215
+ ### HTTP request headers
216
+
217
+ - **Content-Type**: Not defined
218
+ - **Accept**: application/json
219
+
220
+
221
+ ## get_price_plans
222
+
223
+ > <PricePlanPaginatedResponse> get_price_plans(opts)
224
+
225
+ List price plans
226
+
227
+ List price plans with pagination and sort
228
+
229
+ ### Examples
230
+
231
+ ```ruby
232
+ require 'time'
233
+ require 'togai_client'
234
+ # setup authorization
235
+ TogaiClient.configure do |config|
236
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
237
+ config.access_token = 'YOUR_BEARER_TOKEN'
238
+ end
239
+
240
+ api_instance = TogaiClient::PricePlansApi.new
241
+ opts = {
242
+ next_token: 'eyJsYXN0SXRlbUlkIjogInN0cmluZyIsICJwYWdlU2l6ZSI6IDEyMywgInNvcnRPcmRlciI6ICJhc2MifQ==', # String |
243
+ page_size: '10' # String |
244
+ }
245
+
246
+ begin
247
+ # List price plans
248
+ result = api_instance.get_price_plans(opts)
249
+ p result
250
+ rescue TogaiClient::ApiError => e
251
+ puts "Error when calling PricePlansApi->get_price_plans: #{e}"
252
+ end
253
+ ```
254
+
255
+ #### Using the get_price_plans_with_http_info variant
256
+
257
+ This returns an Array which contains the response data, status code and headers.
258
+
259
+ > <Array(<PricePlanPaginatedResponse>, Integer, Hash)> get_price_plans_with_http_info(opts)
260
+
261
+ ```ruby
262
+ begin
263
+ # List price plans
264
+ data, status_code, headers = api_instance.get_price_plans_with_http_info(opts)
265
+ p status_code # => 2xx
266
+ p headers # => { ... }
267
+ p data # => <PricePlanPaginatedResponse>
268
+ rescue TogaiClient::ApiError => e
269
+ puts "Error when calling PricePlansApi->get_price_plans_with_http_info: #{e}"
270
+ end
271
+ ```
272
+
273
+ ### Parameters
274
+
275
+ | Name | Type | Description | Notes |
276
+ | ---- | ---- | ----------- | ----- |
277
+ | **next_token** | **String** | | [optional] |
278
+ | **page_size** | **String** | | [optional] |
279
+
280
+ ### Return type
281
+
282
+ [**PricePlanPaginatedResponse**](PricePlanPaginatedResponse.md)
283
+
284
+ ### Authorization
285
+
286
+ [bearerAuth](../README.md#bearerAuth)
287
+
288
+ ### HTTP request headers
289
+
290
+ - **Content-Type**: Not defined
291
+ - **Accept**: application/json
292
+
293
+
294
+ ## update_price_plan
295
+
296
+ > <PricePlan> update_price_plan(price_plan_name, update_price_plan_request)
297
+
298
+ Update a price plan
299
+
300
+ Update a price plan
301
+
302
+ ### Examples
303
+
304
+ ```ruby
305
+ require 'time'
306
+ require 'togai_client'
307
+ # setup authorization
308
+ TogaiClient.configure do |config|
309
+ # Configure Bearer authorization (Bearer <credential>): bearerAuth
310
+ config.access_token = 'YOUR_BEARER_TOKEN'
311
+ end
312
+
313
+ api_instance = TogaiClient::PricePlansApi.new
314
+ price_plan_name = 'price_plan_name_example' # String |
315
+ update_price_plan_request = TogaiClient::UpdatePricePlanRequest.new # UpdatePricePlanRequest | Payload to update price plan
316
+
317
+ begin
318
+ # Update a price plan
319
+ result = api_instance.update_price_plan(price_plan_name, update_price_plan_request)
320
+ p result
321
+ rescue TogaiClient::ApiError => e
322
+ puts "Error when calling PricePlansApi->update_price_plan: #{e}"
323
+ end
324
+ ```
325
+
326
+ #### Using the update_price_plan_with_http_info variant
327
+
328
+ This returns an Array which contains the response data, status code and headers.
329
+
330
+ > <Array(<PricePlan>, Integer, Hash)> update_price_plan_with_http_info(price_plan_name, update_price_plan_request)
331
+
332
+ ```ruby
333
+ begin
334
+ # Update a price plan
335
+ data, status_code, headers = api_instance.update_price_plan_with_http_info(price_plan_name, update_price_plan_request)
336
+ p status_code # => 2xx
337
+ p headers # => { ... }
338
+ p data # => <PricePlan>
339
+ rescue TogaiClient::ApiError => e
340
+ puts "Error when calling PricePlansApi->update_price_plan_with_http_info: #{e}"
341
+ end
342
+ ```
343
+
344
+ ### Parameters
345
+
346
+ | Name | Type | Description | Notes |
347
+ | ---- | ---- | ----------- | ----- |
348
+ | **price_plan_name** | **String** | | |
349
+ | **update_price_plan_request** | [**UpdatePricePlanRequest**](UpdatePricePlanRequest.md) | Payload to update price plan | |
350
+
351
+ ### Return type
352
+
353
+ [**PricePlan**](PricePlan.md)
354
+
355
+ ### Authorization
356
+
357
+ [bearerAuth](../README.md#bearerAuth)
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: application/json
362
+ - **Accept**: application/json
363
+
@@ -0,0 +1,24 @@
1
+ # TogaiClient::PricingCycle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **interval** | **String** | | |
8
+ | **start_type** | **String** | | |
9
+ | **start_offset** | [**PricingCycleStartOffset**](PricingCycleStartOffset.md) | | |
10
+ | **grace_period** | **Integer** | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'togai_client'
16
+
17
+ instance = TogaiClient::PricingCycle.new(
18
+ interval: null,
19
+ start_type: null,
20
+ start_offset: null,
21
+ grace_period: 3
22
+ )
23
+ ```
24
+
@@ -0,0 +1,20 @@
1
+ # TogaiClient::PricingCycleStartOffset
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **day_offset** | **String** | min: \&quot;1\&quot; and max: \&quot;31\&quot; as strings. Spl. string allowed: LAST | |
8
+ | **month_offset** | **String** | min: \&quot;1\&quot; and max: \&quot;12\&quot;. Spl. string allowed: FIRST / LAST. For QUARTERLY only 1 - 3 is allowed and for HALF_YEARLY 1 - 6. This being an optional field, shouldn&#39;t be passed for MONTHLY. | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'togai_client'
14
+
15
+ instance = TogaiClient::PricingCycleStartOffset.new(
16
+ day_offset: null,
17
+ month_offset: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,22 @@
1
+ # TogaiClient::PricingSchedule
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **rate_payload** | [**RateCard**](RateCard.md) | | [optional] |
8
+ | **start_date** | **Time** | | |
9
+ | **end_date** | **Time** | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::PricingSchedule.new(
17
+ rate_payload: null,
18
+ start_date: null,
19
+ end_date: null
20
+ )
21
+ ```
22
+
data/docs/RateCard.md ADDED
@@ -0,0 +1,22 @@
1
+ # TogaiClient::RateCard
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | | |
8
+ | **usage_config** | [**Hash&lt;String, RateCardUsageValue&gt;**](RateCardUsageValue.md) | | [optional] |
9
+ | **bundle_config** | [**RateCardBundle**](RateCardBundle.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::RateCard.new(
17
+ type: null,
18
+ usage_config: null,
19
+ bundle_config: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # TogaiClient::RateCardBundle
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **rate_strategy** | **String** | | |
8
+ | **slab_strategy** | **String** | | |
9
+ | **bundles** | [**Array&lt;BundleStrategy&gt;**](BundleStrategy.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::RateCardBundle.new(
17
+ rate_strategy: null,
18
+ slab_strategy: null,
19
+ bundles: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,24 @@
1
+ # TogaiClient::RateCardUsageValue
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **rate_strategy** | **String** | | |
9
+ | **slab_strategy** | **String** | | |
10
+ | **slabs** | [**Array&lt;UsageStrategy&gt;**](UsageStrategy.md) | | |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'togai_client'
16
+
17
+ instance = TogaiClient::RateCardUsageValue.new(
18
+ name: null,
19
+ rate_strategy: null,
20
+ slab_strategy: null,
21
+ slabs: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # TogaiClient::RemoveAccountAliasesRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **aliases** | **Array&lt;String&gt;** | List of aliases to remove | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'togai_client'
13
+
14
+ instance = TogaiClient::RemoveAccountAliasesRequest.new(
15
+ aliases: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # TogaiClient::SignupRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | | |
8
+ | **description** | **String** | | [optional] |
9
+ | **user_details** | [**UserDetails**](UserDetails.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::SignupRequest.new(
17
+ name: null,
18
+ description: null,
19
+ user_details: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # TogaiClient::SignupResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **organization_id** | **String** | Organization Identifier | |
8
+ | **jwt_token** | **String** | Token which can be used for authentication | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'togai_client'
14
+
15
+ instance = TogaiClient::SignupResponse.new(
16
+ organization_id: null,
17
+ jwt_token: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,24 @@
1
+ # TogaiClient::StatusResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **greeting** | **String** | | [optional] |
8
+ | **date** | **String** | | [optional] |
9
+ | **url** | **String** | | [optional] |
10
+ | **headers** | [**StatusResponseHeaders**](StatusResponseHeaders.md) | | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'togai_client'
16
+
17
+ instance = TogaiClient::StatusResponse.new(
18
+ greeting: null,
19
+ date: null,
20
+ url: null,
21
+ headers: null
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # TogaiClient::StatusResponseHeaders
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **content_type** | **String** | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'togai_client'
13
+
14
+ instance = TogaiClient::StatusResponseHeaders.new(
15
+ content_type: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # TogaiClient::UpdateAccountRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Name of the customer | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'togai_client'
13
+
14
+ instance = TogaiClient::UpdateAccountRequest.new(
15
+ name: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # TogaiClient::UpdateCustomerRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **name** | **String** | Name of the customer | [optional] |
8
+ | **primary_email** | **String** | Primary email of the customer | [optional] |
9
+ | **billing_address** | **String** | billing address of the customer | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::UpdateCustomerRequest.new(
17
+ name: null,
18
+ primary_email: null,
19
+ billing_address: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # TogaiClient::UpdateEventSchemaRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | Description of the event | [optional] |
8
+ | **attributes** | [**Array&lt;EventAttributeSchema&gt;**](EventAttributeSchema.md) | | |
9
+ | **dimensions** | [**Array&lt;DimensionsSchema&gt;**](DimensionsSchema.md) | | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::UpdateEventSchemaRequest.new(
17
+ description: null,
18
+ attributes: null,
19
+ dimensions: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,22 @@
1
+ # TogaiClient::UpdatePricePlanRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | Description of price plan | [optional] |
8
+ | **pricing_cycle** | [**PricingCycle**](PricingCycle.md) | | [optional] |
9
+ | **rate_card** | [**RateCard**](RateCard.md) | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'togai_client'
15
+
16
+ instance = TogaiClient::UpdatePricePlanRequest.new(
17
+ description: null,
18
+ pricing_cycle: null,
19
+ rate_card: null
20
+ )
21
+ ```
22
+