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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +61 -0
- data/Rakefile +10 -0
- data/docs/Account.md +24 -0
- data/docs/AccountAliases.md +20 -0
- data/docs/AccountPaginatedResponse.md +22 -0
- data/docs/AccountsApi.md +595 -0
- data/docs/AddAccountAliasesRequest.md +18 -0
- data/docs/AssociatePricePlanRequest.md +24 -0
- data/docs/AssociatePricePlanResponse.md +22 -0
- data/docs/BaseSuccessResponse.md +18 -0
- data/docs/BundleStrategy.md +24 -0
- data/docs/BundleStrategyUsageMetersValue.md +18 -0
- data/docs/Computation.md +31 -0
- data/docs/CreateAccountRequest.md +22 -0
- data/docs/CreateCustomerRequest.md +26 -0
- data/docs/CreateCustomerResponse.md +26 -0
- data/docs/CreateEventSchemaRequest.md +24 -0
- data/docs/CreatePricePlanRequest.md +24 -0
- data/docs/CreateUsageMeterRequest.md +26 -0
- data/docs/Customer.md +30 -0
- data/docs/CustomerPaginatedResponse.md +22 -0
- data/docs/CustomersApi.md +363 -0
- data/docs/DimensionsSchema.md +18 -0
- data/docs/ErrorResponse.md +18 -0
- data/docs/Event.md +28 -0
- data/docs/EventAttribute.md +22 -0
- data/docs/EventAttributeSchema.md +20 -0
- data/docs/EventIngestionApi.md +146 -0
- data/docs/EventManagementApi.md +159 -0
- data/docs/EventPipelineInfo.md +26 -0
- data/docs/EventPipelineInfoAccount.md +20 -0
- data/docs/EventPipelineInfoCustomer.md +20 -0
- data/docs/EventPipelineInfoEventSchema.md +20 -0
- data/docs/EventPipelineInfoPricePlansInner.md +26 -0
- data/docs/EventPipelineInfoUsageMetersInner.md +24 -0
- data/docs/EventSchema.md +32 -0
- data/docs/EventSchemaListData.md +34 -0
- data/docs/EventSchemaListDataAllOf.md +18 -0
- data/docs/EventSchemaListPaginatedResponse.md +22 -0
- data/docs/EventSchemaVersionsResponse.md +18 -0
- data/docs/EventSchemasApi.md +581 -0
- data/docs/EventWithStatus.md +20 -0
- data/docs/EventWithStatusAndEventPipelineInfo.md +22 -0
- data/docs/EventWithStatusAndEventPipelineInfoAllOf.md +18 -0
- data/docs/GetEventResponse.md +18 -0
- data/docs/GetEventsResponse.md +20 -0
- data/docs/GetMetricsRequest.md +22 -0
- data/docs/GetMetricsResponse.md +18 -0
- data/docs/IngestBatchEventRequest.md +18 -0
- data/docs/IngestBatchEventResponse.md +18 -0
- data/docs/IngestError.md +20 -0
- data/docs/IngestEventRequest.md +18 -0
- data/docs/IngestEventResponse.md +18 -0
- data/docs/IngestionStatus.md +20 -0
- data/docs/MetricDataPoints.md +22 -0
- data/docs/MetricDataPointsGroupedBy.md +20 -0
- data/docs/MetricName.md +15 -0
- data/docs/MetricQuery.md +26 -0
- data/docs/MetricQueryFilterEntry.md +20 -0
- data/docs/MetricQueryResponse.md +22 -0
- data/docs/MetricsApi.md +79 -0
- data/docs/PaginationOptions.md +20 -0
- data/docs/PlanOverride.md +24 -0
- data/docs/PricePlan.md +26 -0
- data/docs/PricePlanListData.md +32 -0
- data/docs/PricePlanPaginatedResponse.md +22 -0
- data/docs/PricePlansApi.md +363 -0
- data/docs/PricingCycle.md +24 -0
- data/docs/PricingCycleStartOffset.md +20 -0
- data/docs/PricingSchedule.md +22 -0
- data/docs/RateCard.md +22 -0
- data/docs/RateCardBundle.md +22 -0
- data/docs/RateCardUsageValue.md +24 -0
- data/docs/RemoveAccountAliasesRequest.md +18 -0
- data/docs/SignupRequest.md +22 -0
- data/docs/SignupResponse.md +20 -0
- data/docs/StatusResponse.md +24 -0
- data/docs/StatusResponseHeaders.md +18 -0
- data/docs/UpdateAccountRequest.md +18 -0
- data/docs/UpdateCustomerRequest.md +22 -0
- data/docs/UpdateEventSchemaRequest.md +22 -0
- data/docs/UpdatePricePlanRequest.md +22 -0
- data/docs/UpdateUsageMeterRequest.md +24 -0
- data/docs/UsageMeter.md +34 -0
- data/docs/UsageMeterPaginatedResponse.md +22 -0
- data/docs/UsageMetersApi.md +521 -0
- data/docs/UsageStrategy.md +22 -0
- data/docs/UserDetails.md +26 -0
- data/git_push.sh +57 -0
- data/lib/togai_client/api/accounts_api.rb +679 -0
- data/lib/togai_client/api/customers_api.rb +365 -0
- data/lib/togai_client/api/event_ingestion_api.rb +158 -0
- data/lib/togai_client/api/event_management_api.rb +164 -0
- data/lib/togai_client/api/event_schemas_api.rb +579 -0
- data/lib/togai_client/api/metrics_api.rb +86 -0
- data/lib/togai_client/api/price_plans_api.rb +365 -0
- data/lib/togai_client/api/usage_meters_api.rb +572 -0
- data/lib/togai_client/api_client.rb +392 -0
- data/lib/togai_client/api_error.rb +57 -0
- data/lib/togai_client/configuration.rb +287 -0
- data/lib/togai_client/models/account.rb +373 -0
- data/lib/togai_client/models/account_aliases.rb +277 -0
- data/lib/togai_client/models/account_paginated_response.rb +239 -0
- data/lib/togai_client/models/add_account_aliases_request.rb +247 -0
- data/lib/togai_client/models/associate_price_plan_request.rb +274 -0
- data/lib/togai_client/models/associate_price_plan_response.rb +275 -0
- data/lib/togai_client/models/base_success_response.rb +224 -0
- data/lib/togai_client/models/bundle_strategy.rb +325 -0
- data/lib/togai_client/models/bundle_strategy_usage_meters_value.rb +224 -0
- data/lib/togai_client/models/computation.rb +294 -0
- data/lib/togai_client/models/create_account_request.rb +324 -0
- data/lib/togai_client/models/create_customer_request.rb +374 -0
- data/lib/togai_client/models/create_customer_response.rb +373 -0
- data/lib/togai_client/models/create_event_schema_request.rb +351 -0
- data/lib/togai_client/models/create_price_plan_request.rb +298 -0
- data/lib/togai_client/models/create_usage_meter_request.rb +368 -0
- data/lib/togai_client/models/customer.rb +442 -0
- data/lib/togai_client/models/customer_paginated_response.rb +239 -0
- data/lib/togai_client/models/dimensions_schema.rb +256 -0
- data/lib/togai_client/models/error_response.rb +244 -0
- data/lib/togai_client/models/event.rb +379 -0
- data/lib/togai_client/models/event_attribute.rb +304 -0
- data/lib/togai_client/models/event_attribute_schema.rb +281 -0
- data/lib/togai_client/models/event_pipeline_info.rb +260 -0
- data/lib/togai_client/models/event_pipeline_info_account.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_customer.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_event_schema.rb +238 -0
- data/lib/togai_client/models/event_pipeline_info_price_plans_inner.rb +283 -0
- data/lib/togai_client/models/event_pipeline_info_usage_meters_inner.rb +295 -0
- data/lib/togai_client/models/event_schema.rb +438 -0
- data/lib/togai_client/models/event_schema_list_data.rb +456 -0
- data/lib/togai_client/models/event_schema_list_data_all_of.rb +221 -0
- data/lib/togai_client/models/event_schema_list_paginated_response.rb +239 -0
- data/lib/togai_client/models/event_schema_versions_response.rb +227 -0
- data/lib/togai_client/models/event_with_status.rb +239 -0
- data/lib/togai_client/models/event_with_status_and_event_pipeline_info.rb +255 -0
- data/lib/togai_client/models/event_with_status_and_event_pipeline_info_all_of.rb +219 -0
- data/lib/togai_client/models/get_event_response.rb +222 -0
- data/lib/togai_client/models/get_events_response.rb +279 -0
- data/lib/togai_client/models/get_metrics_request.rb +265 -0
- data/lib/togai_client/models/get_metrics_response.rb +227 -0
- data/lib/togai_client/models/ingest_batch_event_request.rb +255 -0
- data/lib/togai_client/models/ingest_batch_event_response.rb +245 -0
- data/lib/togai_client/models/ingest_error.rb +229 -0
- data/lib/togai_client/models/ingest_event_request.rb +220 -0
- data/lib/togai_client/models/ingest_event_response.rb +244 -0
- data/lib/togai_client/models/ingestion_status.rb +284 -0
- data/lib/togai_client/models/metric_data_points.rb +289 -0
- data/lib/togai_client/models/metric_data_points_grouped_by.rb +238 -0
- data/lib/togai_client/models/metric_name.rb +38 -0
- data/lib/togai_client/models/metric_query.rb +331 -0
- data/lib/togai_client/models/metric_query_filter_entry.rb +241 -0
- data/lib/togai_client/models/metric_query_response.rb +255 -0
- data/lib/togai_client/models/pagination_options.rb +262 -0
- data/lib/togai_client/models/plan_override.rb +262 -0
- data/lib/togai_client/models/price_plan.rb +349 -0
- data/lib/togai_client/models/price_plan_list_data.rb +393 -0
- data/lib/togai_client/models/price_plan_paginated_response.rb +239 -0
- data/lib/togai_client/models/pricing_cycle.rb +313 -0
- data/lib/togai_client/models/pricing_cycle_start_offset.rb +241 -0
- data/lib/togai_client/models/pricing_schedule.rb +248 -0
- data/lib/togai_client/models/rate_card.rb +279 -0
- data/lib/togai_client/models/rate_card_bundle.rb +328 -0
- data/lib/togai_client/models/rate_card_usage_value.rb +343 -0
- data/lib/togai_client/models/remove_account_aliases_request.rb +247 -0
- data/lib/togai_client/models/signup_request.rb +293 -0
- data/lib/togai_client/models/signup_response.rb +260 -0
- data/lib/togai_client/models/status_response.rb +246 -0
- data/lib/togai_client/models/status_response_headers.rb +219 -0
- data/lib/togai_client/models/update_account_request.rb +245 -0
- data/lib/togai_client/models/update_customer_request.rb +304 -0
- data/lib/togai_client/models/update_event_schema_request.rb +306 -0
- data/lib/togai_client/models/update_price_plan_request.rb +254 -0
- data/lib/togai_client/models/update_usage_meter_request.rb +323 -0
- data/lib/togai_client/models/usage_meter.rb +440 -0
- data/lib/togai_client/models/usage_meter_paginated_response.rb +239 -0
- data/lib/togai_client/models/usage_strategy.rb +281 -0
- data/lib/togai_client/models/user_details.rb +380 -0
- data/lib/togai_client/version.rb +15 -0
- data/lib/togai_client.rb +125 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/spec_helper.rb +111 -0
- data/togai_client.gemspec +38 -0
- 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: \"1\" and max: \"31\" as strings. Spl. string allowed: LAST | |
|
8
|
+
| **month_offset** | **String** | min: \"1\" and max: \"12\". Spl. string allowed: FIRST / LAST. For QUARTERLY only 1 - 3 is allowed and for HALF_YEARLY 1 - 6. This being an optional field, shouldn'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<String, RateCardUsageValue>**](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<BundleStrategy>**](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<UsageStrategy>**](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<String>** | 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<EventAttributeSchema>**](EventAttributeSchema.md) | | |
|
9
|
+
| **dimensions** | [**Array<DimensionsSchema>**](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
|
+
|