SematextCloud 0.1.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/README.md +80 -69
- data/SematextCloud.gemspec +0 -6
- data/docs/AlertNotification.md +12 -0
- data/docs/AlertNotificationRequest.md +7 -7
- data/docs/AlertNotificationsApi.md +33 -37
- data/docs/AlertRule.md +51 -51
- data/docs/AlertRuleResponse.md +9 -0
- data/docs/AlertRuleResponseEntry.md +6 -0
- data/docs/AlertRuleScheduleTimeRangeDto.md +5 -5
- data/docs/AlertRuleScheduleWeekdayDto.md +8 -8
- data/docs/AlertRulesResponse.md +9 -0
- data/docs/AlertRulesResponseEntry.md +6 -0
- data/docs/AlertsApi.md +60 -66
- data/docs/App.md +35 -30
- data/docs/AppDescription.md +4 -4
- data/docs/AppMetadata.md +8 -8
- data/docs/AppResponse.md +9 -0
- data/docs/AppResponseEntry.md +6 -0
- data/docs/AppTypesResponse.md +9 -0
- data/docs/AppTypesResponseEntry.md +6 -0
- data/docs/AppsApi.md +135 -90
- data/docs/AppsResponse.md +9 -0
- data/docs/AppsResponseEntry.md +6 -0
- data/docs/AwsSettingsControllerApi.md +19 -22
- data/docs/BasicAuthMethodDto.md +5 -5
- data/docs/BasicOrganizationDto.md +7 -7
- data/docs/BillingApi.md +47 -54
- data/docs/BillingInfo.md +6 -6
- data/docs/ChargesDetailsResponseDto.md +12 -0
- data/docs/CloudWatchSettings.md +7 -7
- data/docs/CloudWatchSettingsResponse.md +9 -0
- data/docs/CloudWatchSettingsResponseEntry.md +6 -0
- data/docs/CreateAppInfo.md +8 -8
- data/docs/CreateTokenDto.md +8 -0
- data/docs/DailyDto.md +9 -0
- data/docs/DataSeriesFilter.md +5 -5
- data/docs/DataSeriesRequest.md +9 -9
- data/docs/DayUsageData.md +26 -0
- data/docs/Dimension.md +7 -0
- data/docs/Error.md +5 -5
- data/docs/EventDto.md +8 -0
- data/docs/FilterValue.md +9 -9
- data/docs/GenericApiResponse.md +7 -7
- data/docs/GenericMapBasedApiResponse.md +9 -0
- data/docs/Invitation.md +13 -13
- data/docs/Invoice.md +11 -0
- data/docs/InvoiceResponse.md +9 -0
- data/docs/InvoiceResponseEntry.md +6 -0
- data/docs/LimitChangeEventDTO.md +8 -0
- data/docs/LogsAppApi.md +16 -18
- data/docs/LogsUsageApiControllerApi.md +60 -0
- data/docs/MailReportResponse.md +9 -0
- data/docs/MailReportResponseResponseEntry.md +6 -0
- data/docs/MetricsApi.md +20 -20
- data/docs/MinPeriodFeePeriod.md +16 -0
- data/docs/MonitoringAppApi.md +16 -18
- data/docs/NotificationIntegration.md +13 -13
- data/docs/NotificationsResponse.md +9 -0
- data/docs/NotificationsResponseEntry.md +8 -0
- data/docs/Plan.md +16 -16
- data/docs/PlansResponse.md +9 -0
- data/docs/PlansResponseEntry.md +6 -0
- data/docs/ReportInfo.md +11 -11
- data/docs/ResetPasswordApi.md +16 -18
- data/docs/SavedQueriesApi.md +19 -19
- data/docs/SavedQuery.md +15 -15
- data/docs/ServiceIntegration.md +15 -15
- data/docs/Subscription.md +20 -0
- data/docs/SubscriptionDashboardDto.md +16 -0
- data/docs/SubscriptionDto.md +17 -0
- data/docs/SubscriptionResponse.md +9 -0
- data/docs/SubscriptionResponseEntry.md +6 -0
- data/docs/SubscriptionsApi.md +455 -36
- data/docs/SubscriptionsResponse.md +9 -0
- data/docs/SubscriptionsResponseEntry.md +6 -0
- data/docs/TagApiControllerApi.md +63 -72
- data/docs/TagNamesResponse.md +6 -0
- data/docs/TokenDto.md +12 -0
- data/docs/TokenResponse.md +9 -0
- data/docs/TokenResponseEntry.md +6 -0
- data/docs/TokensApiControllerApi.md +274 -0
- data/docs/TokensResponse.md +9 -0
- data/docs/TokensResponseEntry.md +6 -0
- data/docs/UpdateAppInfo.md +12 -12
- data/docs/UpdatePlanResponse.md +9 -0
- data/docs/UpdatePlanResponseDto.md +7 -0
- data/docs/UpdatePlanResponseEntry.md +6 -0
- data/docs/UpdateSubscriptionDto.md +6 -0
- data/docs/UpdateTokenDto.md +7 -0
- data/docs/UsageDto.md +16 -0
- data/docs/UsageMultiResponse.md +9 -0
- data/docs/UsageMultiResponseEntry.md +6 -0
- data/docs/UsageResponse.md +9 -0
- data/docs/UsageResponseEntry.md +6 -0
- data/docs/UserInfo.md +4 -4
- data/docs/UserPermissions.md +6 -6
- data/docs/UserRole.md +6 -6
- data/lib/SematextCloud/api/apps_api.rb +52 -0
- data/lib/SematextCloud/api/subscriptions_api.rb +463 -17
- data/lib/SematextCloud/api/tokens_api_controller_api.rb +313 -0
- data/lib/SematextCloud/models/create_token_dto.rb +201 -0
- data/lib/SematextCloud/models/subscription_dashboard_dto.rb +319 -0
- data/lib/SematextCloud/models/subscription_dto.rb +328 -0
- data/lib/SematextCloud/models/update_subscription_dto.rb +183 -0
- data/lib/SematextCloud/models/update_token_dto.rb +192 -0
- data/lib/SematextCloud/version.rb +1 -1
- data/lib/stcloud.rb +128 -0
- data/lib/stcloud/api/alert_notifications_api.rb +142 -0
- data/lib/stcloud/api/alerts_api.rb +292 -0
- data/lib/stcloud/api/apps_api.rb +452 -0
- data/lib/stcloud/api/aws_settings_controller_api.rb +84 -0
- data/lib/stcloud/api/billing_api.rb +202 -0
- data/lib/stcloud/api/logs_app_api.rb +76 -0
- data/lib/stcloud/api/logs_usage_api_controller_api.rb +86 -0
- data/lib/stcloud/api/monitoring_app_api.rb +76 -0
- data/lib/stcloud/api/reset_password_api.rb +76 -0
- data/lib/stcloud/api/subscriptions_api.rb +610 -0
- data/lib/stcloud/api/tag_api_controller_api.rb +250 -0
- data/lib/stcloud/api/tokens_api_controller_api.rb +324 -0
- data/lib/stcloud/api_client.rb +388 -0
- data/lib/stcloud/api_error.rb +57 -0
- data/lib/stcloud/configuration.rb +205 -0
- data/lib/stcloud/models/alert_notification.rb +260 -0
- data/lib/stcloud/models/alert_notification_request.rb +235 -0
- data/lib/stcloud/models/alert_rule.rb +675 -0
- data/lib/stcloud/models/alert_rule_response.rb +235 -0
- data/lib/stcloud/models/alert_rule_response_entry.rb +206 -0
- data/lib/stcloud/models/alert_rule_schedule_time_range_dto.rb +215 -0
- data/lib/stcloud/models/alert_rule_schedule_weekday_dto.rb +244 -0
- data/lib/stcloud/models/alert_rules_response.rb +235 -0
- data/lib/stcloud/models/alert_rules_response_entry.rb +208 -0
- data/lib/stcloud/models/app.rb +489 -0
- data/lib/stcloud/models/app_description.rb +206 -0
- data/lib/stcloud/models/app_metadata.rb +291 -0
- data/lib/stcloud/models/app_response.rb +235 -0
- data/lib/stcloud/models/app_response_entry.rb +206 -0
- data/lib/stcloud/models/app_types_response.rb +235 -0
- data/lib/stcloud/models/app_types_response_entry.rb +208 -0
- data/lib/stcloud/models/apps_response.rb +235 -0
- data/lib/stcloud/models/apps_response_entry.rb +208 -0
- data/lib/stcloud/models/basic_auth_method_dto.rb +249 -0
- data/lib/stcloud/models/basic_organization_dto.rb +269 -0
- data/lib/stcloud/models/billing_info.rb +224 -0
- data/lib/stcloud/models/charges_details_response_dto.rb +298 -0
- data/lib/stcloud/models/cloud_watch_settings.rb +279 -0
- data/lib/stcloud/models/cloud_watch_settings_response.rb +235 -0
- data/lib/stcloud/models/cloud_watch_settings_response_entry.rb +206 -0
- data/lib/stcloud/models/create_app_info.rb +242 -0
- data/lib/stcloud/models/create_token_dto.rb +224 -0
- data/lib/stcloud/models/daily_dto.rb +233 -0
- data/lib/stcloud/models/day_usage_data.rb +411 -0
- data/lib/stcloud/models/dimension.rb +227 -0
- data/lib/stcloud/models/error.rb +215 -0
- data/lib/stcloud/models/event_dto.rb +258 -0
- data/lib/stcloud/models/filter_value.rb +253 -0
- data/lib/stcloud/models/generic_api_response.rb +236 -0
- data/lib/stcloud/models/generic_map_based_api_response.rb +236 -0
- data/lib/stcloud/models/invitation.rb +348 -0
- data/lib/stcloud/models/invoice.rb +253 -0
- data/lib/stcloud/models/invoice_response.rb +235 -0
- data/lib/stcloud/models/invoice_response_entry.rb +206 -0
- data/lib/stcloud/models/limit_change_event_dto.rb +224 -0
- data/lib/stcloud/models/mail_report_response.rb +235 -0
- data/lib/stcloud/models/mail_report_response_response_entry.rb +206 -0
- data/lib/stcloud/models/min_period_fee_period.rb +296 -0
- data/lib/stcloud/models/notification_integration.rb +347 -0
- data/lib/stcloud/models/notifications_response.rb +235 -0
- data/lib/stcloud/models/notifications_response_entry.rb +226 -0
- data/lib/stcloud/models/plan.rb +360 -0
- data/lib/stcloud/models/plans_response.rb +235 -0
- data/lib/stcloud/models/plans_response_entry.rb +208 -0
- data/lib/stcloud/models/report_info.rb +270 -0
- data/lib/stcloud/models/service_integration.rb +305 -0
- data/lib/stcloud/models/subscription.rb +378 -0
- data/lib/stcloud/models/subscription_dashboard_dto.rb +342 -0
- data/lib/stcloud/models/subscription_dto.rb +351 -0
- data/lib/stcloud/models/subscription_response.rb +235 -0
- data/lib/stcloud/models/subscription_response_entry.rb +206 -0
- data/lib/stcloud/models/subscriptions_response.rb +235 -0
- data/lib/stcloud/models/subscriptions_response_entry.rb +208 -0
- data/lib/stcloud/models/tag_names_response.rb +213 -0
- data/lib/stcloud/models/token_dto.rb +260 -0
- data/lib/stcloud/models/token_response.rb +235 -0
- data/lib/stcloud/models/token_response_entry.rb +206 -0
- data/lib/stcloud/models/tokens_response.rb +235 -0
- data/lib/stcloud/models/tokens_response_entry.rb +208 -0
- data/lib/stcloud/models/update_app_info.rb +312 -0
- data/lib/stcloud/models/update_plan_response.rb +235 -0
- data/lib/stcloud/models/update_plan_response_dto.rb +217 -0
- data/lib/stcloud/models/update_plan_response_entry.rb +206 -0
- data/lib/stcloud/models/update_subscription_dto.rb +206 -0
- data/lib/stcloud/models/update_token_dto.rb +215 -0
- data/lib/stcloud/models/usage_dto.rb +302 -0
- data/lib/stcloud/models/usage_multi_response.rb +235 -0
- data/lib/stcloud/models/usage_multi_response_entry.rb +206 -0
- data/lib/stcloud/models/usage_response.rb +235 -0
- data/lib/stcloud/models/usage_response_entry.rb +206 -0
- data/lib/stcloud/models/user_info.rb +206 -0
- data/lib/stcloud/models/user_permissions.rb +224 -0
- data/lib/stcloud/models/user_role.rb +270 -0
- data/lib/stcloud/version.rb +14 -0
- data/spec/api/alert_notifications_api_spec.rb +12 -13
- data/spec/api/alerts_api_spec.rb +10 -11
- data/spec/api/apps_api_spec.rb +31 -21
- data/spec/api/aws_settings_controller_api_spec.rb +9 -10
- data/spec/api/billing_api_spec.rb +12 -13
- data/spec/api/logs_app_api_spec.rb +6 -7
- data/spec/api/logs_usage_api_controller_api_spec.rb +47 -0
- data/spec/api/monitoring_app_api_spec.rb +6 -7
- data/spec/api/reset_password_api_spec.rb +6 -7
- data/spec/api/subscriptions_api_spec.rb +106 -14
- data/spec/api/tag_api_controller_api_spec.rb +11 -12
- data/spec/api/tokens_api_controller_api_spec.rb +94 -0
- data/spec/api_client_spec.rb +30 -31
- data/spec/base_object_spec.rb +109 -0
- data/spec/configuration_spec.rb +7 -8
- data/spec/models/alert_notification_request_spec.rb +1 -2
- data/spec/models/alert_notification_spec.rb +76 -0
- data/spec/models/alert_rule_response_entry_spec.rb +40 -0
- data/spec/models/alert_rule_response_spec.rb +58 -0
- data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +1 -2
- data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +1 -2
- data/spec/models/alert_rule_spec.rb +1 -2
- data/spec/models/alert_rules_response_entry_spec.rb +40 -0
- data/spec/models/alert_rules_response_spec.rb +58 -0
- data/spec/models/app_description_spec.rb +1 -2
- data/spec/models/app_metadata_spec.rb +1 -2
- data/spec/models/app_response_entry_spec.rb +40 -0
- data/spec/models/app_response_spec.rb +58 -0
- data/spec/models/app_spec.rb +31 -2
- data/spec/models/app_types_response_entry_spec.rb +40 -0
- data/spec/models/app_types_response_spec.rb +58 -0
- data/spec/models/apps_response_entry_spec.rb +40 -0
- data/spec/models/apps_response_spec.rb +58 -0
- data/spec/models/basic_auth_method_dto_spec.rb +1 -2
- data/spec/models/basic_organization_dto_spec.rb +1 -2
- data/spec/models/billing_info_spec.rb +1 -2
- data/spec/models/charges_details_response_dto_spec.rb +80 -0
- data/spec/models/cloud_watch_settings_response_entry_spec.rb +40 -0
- data/spec/models/cloud_watch_settings_response_spec.rb +58 -0
- data/spec/models/cloud_watch_settings_spec.rb +1 -2
- data/spec/models/create_app_info_spec.rb +1 -2
- data/spec/models/create_token_dto_spec.rb +52 -0
- data/spec/models/daily_dto_spec.rb +58 -0
- data/spec/models/day_usage_data_spec.rb +158 -0
- data/spec/models/dimension_spec.rb +46 -0
- data/spec/models/error_spec.rb +1 -2
- data/spec/models/event_dto_spec.rb +56 -0
- data/spec/models/filter_value_spec.rb +1 -2
- data/spec/models/generic_api_response_spec.rb +1 -2
- data/spec/models/generic_map_based_api_response_spec.rb +58 -0
- data/spec/models/invitation_spec.rb +1 -2
- data/spec/models/invoice_response_entry_spec.rb +40 -0
- data/spec/models/invoice_response_spec.rb +58 -0
- data/spec/models/invoice_spec.rb +70 -0
- data/spec/models/limit_change_event_dto_spec.rb +52 -0
- data/spec/models/mail_report_response_response_entry_spec.rb +40 -0
- data/spec/models/mail_report_response_spec.rb +58 -0
- data/spec/models/min_period_fee_period_spec.rb +100 -0
- data/spec/models/notification_integration_spec.rb +1 -2
- data/spec/models/notifications_response_entry_spec.rb +52 -0
- data/spec/models/notifications_response_spec.rb +58 -0
- data/spec/models/plan_spec.rb +2 -3
- data/spec/models/plans_response_entry_spec.rb +40 -0
- data/spec/models/plans_response_spec.rb +58 -0
- data/spec/models/report_info_spec.rb +1 -2
- data/spec/models/service_integration_spec.rb +1 -2
- data/spec/models/subscription_dashboard_dto_spec.rb +108 -0
- data/spec/models/subscription_dto_spec.rb +114 -0
- data/spec/models/subscription_response_entry_spec.rb +40 -0
- data/spec/models/subscription_response_spec.rb +58 -0
- data/spec/models/subscription_spec.rb +132 -0
- data/spec/models/subscriptions_response_entry_spec.rb +40 -0
- data/spec/models/subscriptions_response_spec.rb +58 -0
- data/spec/models/tag_names_response_spec.rb +40 -0
- data/spec/models/token_dto_spec.rb +76 -0
- data/spec/models/token_response_entry_spec.rb +40 -0
- data/spec/models/token_response_spec.rb +58 -0
- data/spec/models/tokens_response_entry_spec.rb +40 -0
- data/spec/models/tokens_response_spec.rb +58 -0
- data/spec/models/update_app_info_spec.rb +1 -2
- data/spec/models/update_plan_response_dto_spec.rb +46 -0
- data/spec/models/update_plan_response_entry_spec.rb +40 -0
- data/spec/models/update_plan_response_spec.rb +58 -0
- data/spec/models/update_subscription_dto_spec.rb +40 -0
- data/spec/models/update_token_dto_spec.rb +46 -0
- data/spec/models/usage_dto_spec.rb +100 -0
- data/spec/models/usage_multi_response_entry_spec.rb +40 -0
- data/spec/models/usage_multi_response_spec.rb +58 -0
- data/spec/models/usage_response_entry_spec.rb +40 -0
- data/spec/models/usage_response_spec.rb +58 -0
- data/spec/models/user_info_spec.rb +1 -2
- data/spec/models/user_permissions_spec.rb +1 -2
- data/spec/models/user_role_spec.rb +1 -2
- data/spec/spec_helper.rb +2 -3
- metadata +300 -150
- data/assets/octi-blue.png +0 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
# stcloud::SubscriptionDashboardDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
| Name | Type | Description | Notes |
|
5
|
+
| ---------------- | ------------ | ----------- | ---------- |
|
6
|
+
| **addresses** | **String** | | [optional] |
|
7
|
+
| **dashboard_id** | **Integer** | | [optional] |
|
8
|
+
| **enable** | **BOOLEAN** | | [optional] |
|
9
|
+
| **filters** | **String** | | [optional] |
|
10
|
+
| **frequency** | **String** | | [optional] |
|
11
|
+
| **id** | **Integer** | | [optional] |
|
12
|
+
| **report_name** | **String** | | [optional] |
|
13
|
+
| **send_time** | **DateTime** | | [optional] |
|
14
|
+
| **subject** | **String** | | [optional] |
|
15
|
+
| **text** | **String** | | [optional] |
|
16
|
+
| **time_range** | **String** | | [optional] |
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# stcloud::SubscriptionDto
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
| Name | Type | Description | Notes |
|
5
|
+
| -------------------- | ----------------------------------------- | ----------- | ---------- |
|
6
|
+
| **addresses** | **String** | | [optional] |
|
7
|
+
| **enable** | **BOOLEAN** | | [optional] |
|
8
|
+
| **filters** | **String** | | [optional] |
|
9
|
+
| **frequency** | **String** | | [optional] |
|
10
|
+
| **id** | **Integer** | | [optional] |
|
11
|
+
| **report_name** | **String** | | [optional] |
|
12
|
+
| **send_time** | **DateTime** | | [optional] |
|
13
|
+
| **subject** | **String** | | [optional] |
|
14
|
+
| **system_id** | **Integer** | | [optional] |
|
15
|
+
| **text** | **String** | | [optional] |
|
16
|
+
| **time_range** | **String** | | [optional] |
|
17
|
+
| **user_permissions** | [**UserPermissions**](UserPermissions.md) | | [optional] |
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# stcloud::SubscriptionResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
| Name | Type | Description | Notes |
|
5
|
+
| ----------- | ------------------------------------------------------------- | ----------- | ---------- |
|
6
|
+
| **data** | [**SubscriptionResponseEntry**](SubscriptionResponseEntry.md) | | [optional] |
|
7
|
+
| **errors** | [**Array<Error>**](Error.md) | | [optional] |
|
8
|
+
| **message** | **String** | | [optional] |
|
9
|
+
| **success** | **BOOLEAN** | | [optional] |
|
data/docs/SubscriptionsApi.md
CHANGED
@@ -1,53 +1,368 @@
|
|
1
|
-
#
|
1
|
+
# stcloud::SubscriptionsApi
|
2
2
|
|
3
|
-
All URIs are relative to
|
3
|
+
All URIs are relative to */*
|
4
4
|
|
5
|
-
Method
|
6
|
-
|
7
|
-
[**
|
8
|
-
[**
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ---------------------------------------- |
|
7
|
+
| [**create_for_app_using_post1**](SubscriptionsApi.md#create_for_app_using_post1) | **POST** /users-web/api/v3/apps/{appId}/subscription | Create App subscription |
|
8
|
+
| [**create_for_dash_using_post1**](SubscriptionsApi.md#create_for_dash_using_post1) | **POST** /users-web/api/v3/dashboards/{dashId}/subscription | Create dashboard subscription |
|
9
|
+
| [**delete_using_delete3**](SubscriptionsApi.md#delete_using_delete3) | **DELETE** /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Delete subscription |
|
10
|
+
| [**list_using_get3**](SubscriptionsApi.md#list_using_get3) | **GET** /users-web/api/v3/apps/{appId}/subscriptions | Get subscriptions for an App |
|
11
|
+
| [**list_using_get5**](SubscriptionsApi.md#list_using_get5) | **GET** /users-web/api/v3/subscriptions | Get current account's subscriptions |
|
12
|
+
| [**send_app_report_using_post**](SubscriptionsApi.md#send_app_report_using_post) | **POST** /users-web/api/v3/apps/{appId}/report/send | Email an App report |
|
13
|
+
| [**send_dash_report_using_post**](SubscriptionsApi.md#send_dash_report_using_post) | **POST** /users-web/api/v3/dashboards/{dashId}/report/send | Email a dashboard report |
|
14
|
+
| [**toggle_enabled_using_put1**](SubscriptionsApi.md#toggle_enabled_using_put1) | **PUT** /users-web/api/v3/subscriptions/{updateableSubscriptionId} | Toggle subscription status |
|
15
|
+
| [**update_for_app_using_put1**](SubscriptionsApi.md#update_for_app_using_put1) | **PUT** /users-web/api/v3/apps/{appId}/subscription | Update App subscription |
|
16
|
+
| [**update_for_dash_using_put1**](SubscriptionsApi.md#update_for_dash_using_put1) | **PUT** /users-web/api/v3/dashboards/{dashId}/subscription | Update dashboard subscription |
|
9
17
|
|
18
|
+
# **create_for_app_using_post1**
|
19
|
+
> SubscriptionResponse create_for_app_using_post1(bodyapp_id)
|
10
20
|
|
11
|
-
|
12
|
-
> GenericApiResponse list_using_get1(app_id)
|
21
|
+
Create App subscription
|
13
22
|
|
14
|
-
|
23
|
+
### Example
|
24
|
+
```ruby
|
25
|
+
# load the gem
|
26
|
+
require 'stcloud'
|
27
|
+
# setup authorization
|
28
|
+
stcloud.configure do |config|
|
29
|
+
# Configure API key authorization: api_key
|
30
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
31
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
32
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
33
|
+
end
|
34
|
+
|
35
|
+
api_instance = stcloud::SubscriptionsApi.new
|
36
|
+
body = stcloud::SubscriptionDto.new # SubscriptionDto | subscription
|
37
|
+
app_id = 789 # Integer | appId
|
38
|
+
|
39
|
+
|
40
|
+
begin
|
41
|
+
#Create App subscription
|
42
|
+
result = api_instance.create_for_app_using_post1(bodyapp_id)
|
43
|
+
p result
|
44
|
+
rescue stcloud::ApiError => e
|
45
|
+
puts "Exception when calling SubscriptionsApi->create_for_app_using_post1: #{e}"
|
46
|
+
end
|
47
|
+
```
|
48
|
+
|
49
|
+
### Parameters
|
50
|
+
|
51
|
+
| Name | Type | Description | Notes |
|
52
|
+
| ---------- | ----------------------------------------- | ------------ | ----- |
|
53
|
+
| **body** | [**SubscriptionDto**](SubscriptionDto.md) | subscription |
|
54
|
+
| **app_id** | **Integer** | appId |
|
55
|
+
|
56
|
+
### Return type
|
57
|
+
|
58
|
+
[**SubscriptionResponse**](SubscriptionResponse.md)
|
59
|
+
|
60
|
+
### Authorization
|
61
|
+
|
62
|
+
[api_key](../README.md#api_key)
|
63
|
+
|
64
|
+
### HTTP request headers
|
65
|
+
|
66
|
+
- **Content-Type**: application/json
|
67
|
+
- **Accept**: application/json
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
# **create_for_dash_using_post1**
|
72
|
+
> SubscriptionResponse create_for_dash_using_post1(bodydash_id)
|
73
|
+
|
74
|
+
Create dashboard subscription
|
15
75
|
|
16
76
|
### Example
|
17
77
|
```ruby
|
18
78
|
# load the gem
|
19
|
-
require '
|
79
|
+
require 'stcloud'
|
20
80
|
# setup authorization
|
21
|
-
|
81
|
+
stcloud.configure do |config|
|
22
82
|
# Configure API key authorization: api_key
|
23
83
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
24
84
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
25
85
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
26
86
|
end
|
27
87
|
|
28
|
-
api_instance =
|
88
|
+
api_instance = stcloud::SubscriptionsApi.new
|
89
|
+
body = stcloud::SubscriptionDashboardDto.new # SubscriptionDashboardDto | subscription
|
90
|
+
dash_id = 789 # Integer | dashId
|
91
|
+
|
92
|
+
|
93
|
+
begin
|
94
|
+
#Create dashboard subscription
|
95
|
+
result = api_instance.create_for_dash_using_post1(bodydash_id)
|
96
|
+
p result
|
97
|
+
rescue stcloud::ApiError => e
|
98
|
+
puts "Exception when calling SubscriptionsApi->create_for_dash_using_post1: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
| Name | Type | Description | Notes |
|
105
|
+
| ----------- | ----------------------------------------------------------- | ------------ | ----- |
|
106
|
+
| **body** | [**SubscriptionDashboardDto**](SubscriptionDashboardDto.md) | subscription |
|
107
|
+
| **dash_id** | **Integer** | dashId |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**SubscriptionResponse**](SubscriptionResponse.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[api_key](../README.md#api_key)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: application/json
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
# **delete_using_delete3**
|
125
|
+
> GenericMapBasedApiResponse delete_using_delete3(updateable_subscription_id)
|
126
|
+
|
127
|
+
Delete subscription
|
128
|
+
|
129
|
+
### Example
|
130
|
+
```ruby
|
131
|
+
# load the gem
|
132
|
+
require 'stcloud'
|
133
|
+
# setup authorization
|
134
|
+
stcloud.configure do |config|
|
135
|
+
# Configure API key authorization: api_key
|
136
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
137
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
138
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
139
|
+
end
|
29
140
|
|
141
|
+
api_instance = stcloud::SubscriptionsApi.new
|
142
|
+
updateable_subscription_id = 789 # Integer | updateableSubscriptionId
|
143
|
+
|
144
|
+
|
145
|
+
begin
|
146
|
+
#Delete subscription
|
147
|
+
result = api_instance.delete_using_delete3(updateable_subscription_id)
|
148
|
+
p result
|
149
|
+
rescue stcloud::ApiError => e
|
150
|
+
puts "Exception when calling SubscriptionsApi->delete_using_delete3: #{e}"
|
151
|
+
end
|
152
|
+
```
|
153
|
+
|
154
|
+
### Parameters
|
155
|
+
|
156
|
+
| Name | Type | Description | Notes |
|
157
|
+
| ------------------------------ | ----------- | ------------------------ | ----- |
|
158
|
+
| **updateable_subscription_id** | **Integer** | updateableSubscriptionId |
|
159
|
+
|
160
|
+
### Return type
|
161
|
+
|
162
|
+
[**GenericMapBasedApiResponse**](GenericMapBasedApiResponse.md)
|
163
|
+
|
164
|
+
### Authorization
|
165
|
+
|
166
|
+
[api_key](../README.md#api_key)
|
167
|
+
|
168
|
+
### HTTP request headers
|
169
|
+
|
170
|
+
- **Content-Type**: Not defined
|
171
|
+
- **Accept**: application/json
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
# **list_using_get3**
|
176
|
+
> SubscriptionsResponse list_using_get3(app_id)
|
177
|
+
|
178
|
+
Get subscriptions for an App
|
179
|
+
|
180
|
+
### Example
|
181
|
+
```ruby
|
182
|
+
# load the gem
|
183
|
+
require 'stcloud'
|
184
|
+
# setup authorization
|
185
|
+
stcloud.configure do |config|
|
186
|
+
# Configure API key authorization: api_key
|
187
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
188
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
189
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
190
|
+
end
|
191
|
+
|
192
|
+
api_instance = stcloud::SubscriptionsApi.new
|
30
193
|
app_id = 789 # Integer | appId
|
31
194
|
|
32
195
|
|
33
196
|
begin
|
34
|
-
#Get subscriptions for an
|
35
|
-
result = api_instance.
|
197
|
+
#Get subscriptions for an App
|
198
|
+
result = api_instance.list_using_get3(app_id)
|
36
199
|
p result
|
37
|
-
rescue
|
38
|
-
puts "Exception when calling SubscriptionsApi->
|
200
|
+
rescue stcloud::ApiError => e
|
201
|
+
puts "Exception when calling SubscriptionsApi->list_using_get3: #{e}"
|
39
202
|
end
|
40
203
|
```
|
41
204
|
|
42
205
|
### Parameters
|
43
206
|
|
44
|
-
Name
|
45
|
-
|
46
|
-
**app_id** | **Integer
|
207
|
+
| Name | Type | Description | Notes |
|
208
|
+
| ---------- | ----------- | ----------- | ----- |
|
209
|
+
| **app_id** | **Integer** | appId |
|
47
210
|
|
48
211
|
### Return type
|
49
212
|
|
50
|
-
[**
|
213
|
+
[**SubscriptionsResponse**](SubscriptionsResponse.md)
|
214
|
+
|
215
|
+
### Authorization
|
216
|
+
|
217
|
+
[api_key](../README.md#api_key)
|
218
|
+
|
219
|
+
### HTTP request headers
|
220
|
+
|
221
|
+
- **Content-Type**: Not defined
|
222
|
+
- **Accept**: application/json
|
223
|
+
|
224
|
+
|
225
|
+
|
226
|
+
# **list_using_get5**
|
227
|
+
> SubscriptionsResponse list_using_get5
|
228
|
+
|
229
|
+
Get current account's subscriptions
|
230
|
+
|
231
|
+
### Example
|
232
|
+
```ruby
|
233
|
+
# load the gem
|
234
|
+
require 'stcloud'
|
235
|
+
# setup authorization
|
236
|
+
stcloud.configure do |config|
|
237
|
+
# Configure API key authorization: api_key
|
238
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
239
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
240
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
241
|
+
end
|
242
|
+
|
243
|
+
api_instance = stcloud::SubscriptionsApi.new
|
244
|
+
|
245
|
+
begin
|
246
|
+
#Get current account's subscriptions
|
247
|
+
result = api_instance.list_using_get5
|
248
|
+
p result
|
249
|
+
rescue stcloud::ApiError => e
|
250
|
+
puts "Exception when calling SubscriptionsApi->list_using_get5: #{e}"
|
251
|
+
end
|
252
|
+
```
|
253
|
+
|
254
|
+
### Parameters
|
255
|
+
This endpoint does not need any parameter.
|
256
|
+
|
257
|
+
### Return type
|
258
|
+
|
259
|
+
[**SubscriptionsResponse**](SubscriptionsResponse.md)
|
260
|
+
|
261
|
+
### Authorization
|
262
|
+
|
263
|
+
[api_key](../README.md#api_key)
|
264
|
+
|
265
|
+
### HTTP request headers
|
266
|
+
|
267
|
+
- **Content-Type**: Not defined
|
268
|
+
- **Accept**: application/json
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
# **send_app_report_using_post**
|
273
|
+
> MailReportResponse send_app_report_using_post(bodyapp_id)
|
274
|
+
|
275
|
+
Email an App report
|
276
|
+
|
277
|
+
### Example
|
278
|
+
```ruby
|
279
|
+
# load the gem
|
280
|
+
require 'stcloud'
|
281
|
+
# setup authorization
|
282
|
+
stcloud.configure do |config|
|
283
|
+
# Configure API key authorization: api_key
|
284
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
285
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
286
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
287
|
+
end
|
288
|
+
|
289
|
+
api_instance = stcloud::SubscriptionsApi.new
|
290
|
+
body = stcloud::ReportInfo.new # ReportInfo | emailDto
|
291
|
+
app_id = 789 # Integer | appId
|
292
|
+
|
293
|
+
|
294
|
+
begin
|
295
|
+
#Email an App report
|
296
|
+
result = api_instance.send_app_report_using_post(bodyapp_id)
|
297
|
+
p result
|
298
|
+
rescue stcloud::ApiError => e
|
299
|
+
puts "Exception when calling SubscriptionsApi->send_app_report_using_post: #{e}"
|
300
|
+
end
|
301
|
+
```
|
302
|
+
|
303
|
+
### Parameters
|
304
|
+
|
305
|
+
| Name | Type | Description | Notes |
|
306
|
+
| ---------- | ------------------------------- | ----------- | ----- |
|
307
|
+
| **body** | [**ReportInfo**](ReportInfo.md) | emailDto |
|
308
|
+
| **app_id** | **Integer** | appId |
|
309
|
+
|
310
|
+
### Return type
|
311
|
+
|
312
|
+
[**MailReportResponse**](MailReportResponse.md)
|
313
|
+
|
314
|
+
### Authorization
|
315
|
+
|
316
|
+
[api_key](../README.md#api_key)
|
317
|
+
|
318
|
+
### HTTP request headers
|
319
|
+
|
320
|
+
- **Content-Type**: application/json
|
321
|
+
- **Accept**: application/json
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
# **send_dash_report_using_post**
|
326
|
+
> MailReportResponse send_dash_report_using_post(bodydash_id)
|
327
|
+
|
328
|
+
Email a dashboard report
|
329
|
+
|
330
|
+
### Example
|
331
|
+
```ruby
|
332
|
+
# load the gem
|
333
|
+
require 'stcloud'
|
334
|
+
# setup authorization
|
335
|
+
stcloud.configure do |config|
|
336
|
+
# Configure API key authorization: api_key
|
337
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
338
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
339
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
340
|
+
end
|
341
|
+
|
342
|
+
api_instance = stcloud::SubscriptionsApi.new
|
343
|
+
body = stcloud::ReportInfo.new # ReportInfo | emailDto
|
344
|
+
dash_id = 789 # Integer | dashId
|
345
|
+
|
346
|
+
|
347
|
+
begin
|
348
|
+
#Email a dashboard report
|
349
|
+
result = api_instance.send_dash_report_using_post(bodydash_id)
|
350
|
+
p result
|
351
|
+
rescue stcloud::ApiError => e
|
352
|
+
puts "Exception when calling SubscriptionsApi->send_dash_report_using_post: #{e}"
|
353
|
+
end
|
354
|
+
```
|
355
|
+
|
356
|
+
### Parameters
|
357
|
+
|
358
|
+
| Name | Type | Description | Notes |
|
359
|
+
| ----------- | ------------------------------- | ----------- | ----- |
|
360
|
+
| **body** | [**ReportInfo**](ReportInfo.md) | emailDto |
|
361
|
+
| **dash_id** | **Integer** | dashId |
|
362
|
+
|
363
|
+
### Return type
|
364
|
+
|
365
|
+
[**MailReportResponse**](MailReportResponse.md)
|
51
366
|
|
52
367
|
### Authorization
|
53
368
|
|
@@ -60,49 +375,153 @@ Name | Type | Description | Notes
|
|
60
375
|
|
61
376
|
|
62
377
|
|
63
|
-
# **
|
64
|
-
>
|
378
|
+
# **toggle_enabled_using_put1**
|
379
|
+
> SubscriptionResponse toggle_enabled_using_put1(bodyupdateable_subscription_id)
|
65
380
|
|
66
|
-
|
381
|
+
Toggle subscription status
|
67
382
|
|
68
383
|
### Example
|
69
384
|
```ruby
|
70
385
|
# load the gem
|
71
|
-
require '
|
386
|
+
require 'stcloud'
|
72
387
|
# setup authorization
|
73
|
-
|
388
|
+
stcloud.configure do |config|
|
74
389
|
# Configure API key authorization: api_key
|
75
390
|
config.api_key['Authorization'] = 'YOUR API KEY'
|
76
391
|
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
77
392
|
#config.api_key_prefix['Authorization'] = 'Bearer'
|
78
393
|
end
|
79
394
|
|
80
|
-
api_instance =
|
395
|
+
api_instance = stcloud::SubscriptionsApi.new
|
396
|
+
body = stcloud::UpdateSubscriptionDto.new # UpdateSubscriptionDto | dto
|
397
|
+
updateable_subscription_id = 789 # Integer | updateableSubscriptionId
|
81
398
|
|
399
|
+
|
400
|
+
begin
|
401
|
+
#Toggle subscription status
|
402
|
+
result = api_instance.toggle_enabled_using_put1(bodyupdateable_subscription_id)
|
403
|
+
p result
|
404
|
+
rescue stcloud::ApiError => e
|
405
|
+
puts "Exception when calling SubscriptionsApi->toggle_enabled_using_put1: #{e}"
|
406
|
+
end
|
407
|
+
```
|
408
|
+
|
409
|
+
### Parameters
|
410
|
+
|
411
|
+
| Name | Type | Description | Notes |
|
412
|
+
| ------------------------------ | ----------------------------------------------------- | ------------------------ | ----- |
|
413
|
+
| **body** | [**UpdateSubscriptionDto**](UpdateSubscriptionDto.md) | dto |
|
414
|
+
| **updateable_subscription_id** | **Integer** | updateableSubscriptionId |
|
415
|
+
|
416
|
+
### Return type
|
417
|
+
|
418
|
+
[**SubscriptionResponse**](SubscriptionResponse.md)
|
419
|
+
|
420
|
+
### Authorization
|
421
|
+
|
422
|
+
[api_key](../README.md#api_key)
|
423
|
+
|
424
|
+
### HTTP request headers
|
425
|
+
|
426
|
+
- **Content-Type**: application/json
|
427
|
+
- **Accept**: application/json
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
# **update_for_app_using_put1**
|
432
|
+
> SubscriptionResponse update_for_app_using_put1(bodyapp_id)
|
433
|
+
|
434
|
+
Update App subscription
|
435
|
+
|
436
|
+
### Example
|
437
|
+
```ruby
|
438
|
+
# load the gem
|
439
|
+
require 'stcloud'
|
440
|
+
# setup authorization
|
441
|
+
stcloud.configure do |config|
|
442
|
+
# Configure API key authorization: api_key
|
443
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
444
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
445
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
446
|
+
end
|
447
|
+
|
448
|
+
api_instance = stcloud::SubscriptionsApi.new
|
449
|
+
body = stcloud::SubscriptionDto.new # SubscriptionDto | subscription
|
82
450
|
app_id = 789 # Integer | appId
|
83
451
|
|
84
|
-
|
452
|
+
|
453
|
+
begin
|
454
|
+
#Update App subscription
|
455
|
+
result = api_instance.update_for_app_using_put1(bodyapp_id)
|
456
|
+
p result
|
457
|
+
rescue stcloud::ApiError => e
|
458
|
+
puts "Exception when calling SubscriptionsApi->update_for_app_using_put1: #{e}"
|
459
|
+
end
|
460
|
+
```
|
461
|
+
|
462
|
+
### Parameters
|
463
|
+
|
464
|
+
| Name | Type | Description | Notes |
|
465
|
+
| ---------- | ----------------------------------------- | ------------ | ----- |
|
466
|
+
| **body** | [**SubscriptionDto**](SubscriptionDto.md) | subscription |
|
467
|
+
| **app_id** | **Integer** | appId |
|
468
|
+
|
469
|
+
### Return type
|
470
|
+
|
471
|
+
[**SubscriptionResponse**](SubscriptionResponse.md)
|
472
|
+
|
473
|
+
### Authorization
|
474
|
+
|
475
|
+
[api_key](../README.md#api_key)
|
476
|
+
|
477
|
+
### HTTP request headers
|
478
|
+
|
479
|
+
- **Content-Type**: application/json
|
480
|
+
- **Accept**: application/json
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
# **update_for_dash_using_put1**
|
485
|
+
> SubscriptionResponse update_for_dash_using_put1(bodydash_id)
|
486
|
+
|
487
|
+
Update dashboard subscription
|
488
|
+
|
489
|
+
### Example
|
490
|
+
```ruby
|
491
|
+
# load the gem
|
492
|
+
require 'stcloud'
|
493
|
+
# setup authorization
|
494
|
+
stcloud.configure do |config|
|
495
|
+
# Configure API key authorization: api_key
|
496
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
497
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
498
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
499
|
+
end
|
500
|
+
|
501
|
+
api_instance = stcloud::SubscriptionsApi.new
|
502
|
+
body = stcloud::SubscriptionDashboardDto.new # SubscriptionDashboardDto | subscription
|
503
|
+
dash_id = 789 # Integer | dashId
|
85
504
|
|
86
505
|
|
87
506
|
begin
|
88
|
-
#
|
89
|
-
result = api_instance.
|
507
|
+
#Update dashboard subscription
|
508
|
+
result = api_instance.update_for_dash_using_put1(bodydash_id)
|
90
509
|
p result
|
91
|
-
rescue
|
92
|
-
puts "Exception when calling SubscriptionsApi->
|
510
|
+
rescue stcloud::ApiError => e
|
511
|
+
puts "Exception when calling SubscriptionsApi->update_for_dash_using_put1: #{e}"
|
93
512
|
end
|
94
513
|
```
|
95
514
|
|
96
515
|
### Parameters
|
97
516
|
|
98
|
-
Name
|
99
|
-
|
100
|
-
**
|
101
|
-
**
|
517
|
+
| Name | Type | Description | Notes |
|
518
|
+
| ----------- | ----------------------------------------------------------- | ------------ | ----- |
|
519
|
+
| **body** | [**SubscriptionDashboardDto**](SubscriptionDashboardDto.md) | subscription |
|
520
|
+
| **dash_id** | **Integer** | dashId |
|
102
521
|
|
103
522
|
### Return type
|
104
523
|
|
105
|
-
[**
|
524
|
+
[**SubscriptionResponse**](SubscriptionResponse.md)
|
106
525
|
|
107
526
|
### Authorization
|
108
527
|
|