SematextCloud 0.3.1 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/SematextCloud.gemspec +4 -5
- data/docs/AlertNotification.md +2 -1
- data/docs/AlertNotificationRequest.md +2 -1
- data/docs/AlertNotificationsApi.md +30 -28
- data/docs/AlertRule.md +2 -1
- data/docs/AlertRuleResponse.md +2 -1
- data/docs/AlertRuleResponseEntry.md +2 -1
- data/docs/AlertRuleScheduleTimeRangeDto.md +2 -1
- data/docs/AlertRuleScheduleWeekdayDto.md +2 -1
- data/docs/AlertRulesResponse.md +2 -1
- data/docs/AlertRulesResponseEntry.md +2 -1
- data/docs/AlertsApi.md +55 -53
- data/docs/App.md +2 -1
- data/docs/AppDescription.md +2 -1
- data/docs/AppMetadata.md +2 -1
- data/docs/AppResponse.md +2 -1
- data/docs/AppResponseEntry.md +2 -1
- data/docs/AppTypesResponse.md +2 -1
- data/docs/AppTypesResponseEntry.md +2 -1
- data/docs/AppsApi.md +85 -80
- data/docs/AppsResponse.md +2 -1
- data/docs/AppsResponseEntry.md +2 -1
- data/docs/AwsSettingsControllerApi.md +10 -8
- data/docs/BasicAuthMethodDto.md +2 -1
- data/docs/BasicOrganizationDto.md +2 -1
- data/docs/BillingApi.md +31 -29
- data/docs/BillingInfo.md +2 -1
- data/docs/ChargesDetailsResponseDto.md +2 -1
- data/docs/CloudWatchSettings.md +2 -1
- data/docs/CloudWatchSettingsResponse.md +2 -1
- data/docs/CloudWatchSettingsResponseEntry.md +2 -1
- data/docs/CreateAppInfo.md +2 -1
- data/docs/CreateTokenDto.md +2 -1
- data/docs/DailyDto.md +10 -7
- data/docs/DayUsageData.md +23 -23
- data/docs/Dimension.md +2 -1
- data/docs/Error.md +2 -1
- data/docs/EventDto.md +2 -1
- data/docs/FilterValue.md +2 -1
- data/docs/GenericApiResponse.md +2 -1
- data/docs/GenericMapBasedApiResponse.md +2 -1
- data/docs/Invitation.md +2 -1
- data/docs/Invoice.md +2 -1
- data/docs/InvoiceResponse.md +2 -1
- data/docs/InvoiceResponseEntry.md +2 -1
- data/docs/LimitChangeEventDTO.md +2 -1
- data/docs/LogsAppApi.md +10 -8
- data/docs/LogsUsageApiControllerApi.md +9 -7
- data/docs/MailReportResponse.md +2 -1
- data/docs/MailReportResponseResponseEntry.md +2 -1
- data/docs/MinPeriodFeePeriod.md +17 -14
- data/docs/MonitoringAppApi.md +17 -15
- data/docs/NotificationIntegration.md +2 -1
- data/docs/NotificationsResponse.md +2 -1
- data/docs/NotificationsResponseEntry.md +2 -1
- data/docs/Plan.md +2 -1
- data/docs/PlansResponse.md +2 -1
- data/docs/PlansResponseEntry.md +2 -1
- data/docs/ReportInfo.md +13 -11
- data/docs/ResetPasswordApi.md +10 -8
- data/docs/ServiceIntegration.md +2 -1
- data/docs/Subscription.md +20 -18
- data/docs/SubscriptionDashboardDto.md +2 -1
- data/docs/SubscriptionDto.md +17 -15
- data/docs/SubscriptionResponse.md +2 -1
- data/docs/SubscriptionResponseEntry.md +2 -1
- data/docs/SubscriptionsApi.md +102 -99
- data/docs/SubscriptionsResponse.md +2 -1
- data/docs/SubscriptionsResponseEntry.md +2 -1
- data/docs/TagApiControllerApi.md +32 -30
- data/docs/TagNamesResponse.md +2 -1
- data/docs/TokenDto.md +2 -1
- data/docs/TokenResponse.md +2 -1
- data/docs/TokenResponseEntry.md +2 -1
- data/docs/TokensApiControllerApi.md +62 -60
- data/docs/TokensResponse.md +2 -1
- data/docs/TokensResponseEntry.md +2 -1
- data/docs/UpdateAppInfo.md +2 -1
- data/docs/UpdatePlanResponse.md +2 -1
- data/docs/UpdatePlanResponseDto.md +2 -1
- data/docs/UpdatePlanResponseEntry.md +2 -1
- data/docs/UpdateSubscriptionDto.md +2 -1
- data/docs/UpdateTokenDto.md +2 -1
- data/docs/UsageDto.md +6 -3
- data/docs/UsageMultiResponse.md +2 -1
- data/docs/UsageMultiResponseEntry.md +2 -1
- data/docs/UsageResponse.md +2 -1
- data/docs/UsageResponseEntry.md +2 -1
- data/docs/UserInfo.md +2 -1
- data/docs/UserPermissions.md +2 -1
- data/docs/UserRole.md +2 -1
- data/lib/SematextCloud/api/alert_notifications_api.rb +42 -37
- data/lib/SematextCloud/api/alerts_api.rb +81 -72
- data/lib/SematextCloud/api/apps_api.rb +125 -106
- data/lib/SematextCloud/api/aws_settings_controller_api.rb +26 -25
- data/lib/SematextCloud/api/billing_api.rb +51 -46
- data/lib/SematextCloud/api/logs_app_api.rb +21 -20
- data/lib/{stcloud → SematextCloud}/api/logs_usage_api_controller_api.rb +2 -2
- data/lib/SematextCloud/api/monitoring_app_api.rb +23 -22
- data/lib/SematextCloud/api/reset_password_api.rb +21 -20
- data/lib/SematextCloud/api/subscriptions_api.rb +203 -172
- data/lib/SematextCloud/api/tag_api_controller_api.rb +53 -50
- data/lib/SematextCloud/api/tokens_api_controller_api.rb +84 -73
- data/lib/SematextCloud/api_client.rb +41 -42
- data/lib/SematextCloud/api_error.rb +21 -2
- data/lib/SematextCloud/configuration.rb +5 -9
- data/lib/{stcloud → SematextCloud}/models/alert_notification.rb +5 -5
- data/lib/SematextCloud/models/alert_notification_request.rb +49 -26
- data/lib/SematextCloud/models/alert_rule.rb +175 -152
- data/lib/{stcloud/models/app_response.rb → SematextCloud/models/alert_rule_response.rb} +6 -6
- data/lib/{stcloud → SematextCloud}/models/alert_rule_response_entry.rb +5 -5
- data/lib/SematextCloud/models/alert_rule_schedule_time_range_dto.rb +44 -21
- data/lib/SematextCloud/models/alert_rule_schedule_weekday_dto.rb +49 -26
- data/lib/SematextCloud/models/alert_rules_response.rb +235 -0
- data/lib/{stcloud → SematextCloud}/models/alert_rules_response_entry.rb +5 -5
- data/lib/SematextCloud/models/app.rb +163 -93
- data/lib/SematextCloud/models/app_description.rb +41 -18
- data/lib/SematextCloud/models/app_metadata.rb +60 -37
- data/lib/{stcloud/models/alert_rule_response.rb → SematextCloud/models/app_response.rb} +6 -6
- data/lib/{stcloud → SematextCloud}/models/app_response_entry.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/app_types_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/app_types_response_entry.rb +5 -5
- data/lib/{stcloud/models/alert_rules_response.rb → SematextCloud/models/apps_response.rb} +6 -6
- data/lib/{stcloud → SematextCloud}/models/apps_response_entry.rb +5 -5
- data/lib/SematextCloud/models/basic_auth_method_dto.rb +47 -24
- data/lib/SematextCloud/models/basic_organization_dto.rb +51 -28
- data/lib/SematextCloud/models/billing_info.rb +48 -25
- data/lib/{stcloud → SematextCloud}/models/charges_details_response_dto.rb +5 -5
- data/lib/SematextCloud/models/cloud_watch_settings.rb +56 -33
- data/lib/SematextCloud/models/cloud_watch_settings_response.rb +235 -0
- data/lib/{stcloud → SematextCloud}/models/cloud_watch_settings_response_entry.rb +5 -5
- data/lib/SematextCloud/models/create_app_info.rb +53 -31
- data/lib/SematextCloud/models/create_token_dto.rb +46 -23
- data/lib/{stcloud → SematextCloud}/models/daily_dto.rb +36 -18
- data/lib/{stcloud → SematextCloud}/models/day_usage_data.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/dimension.rb +5 -5
- data/lib/SematextCloud/models/error.rb +43 -20
- data/lib/{stcloud → SematextCloud}/models/event_dto.rb +7 -7
- data/lib/SematextCloud/models/filter_value.rb +53 -30
- data/lib/SematextCloud/models/generic_api_response.rb +46 -24
- data/lib/{stcloud → SematextCloud}/models/generic_map_based_api_response.rb +5 -5
- data/lib/SematextCloud/models/invitation.rb +74 -52
- data/lib/{stcloud → SematextCloud}/models/invoice.rb +5 -5
- data/lib/{stcloud/models/notifications_response.rb → SematextCloud/models/invoice_response.rb} +6 -6
- data/lib/{stcloud → SematextCloud}/models/invoice_response_entry.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/limit_change_event_dto.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/mail_report_response.rb +5 -5
- data/lib/{stcloud/models/subscription_response_entry.rb → SematextCloud/models/mail_report_response_response_entry.rb} +6 -6
- data/lib/{stcloud → SematextCloud}/models/min_period_fee_period.rb +24 -6
- data/lib/SematextCloud/models/notification_integration.rb +73 -50
- data/lib/SematextCloud/models/notifications_response.rb +235 -0
- data/lib/{stcloud → SematextCloud}/models/notifications_response_entry.rb +5 -5
- data/lib/SematextCloud/models/plan.rb +80 -57
- data/lib/{stcloud → SematextCloud}/models/plans_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/plans_response_entry.rb +5 -5
- data/lib/SematextCloud/models/report_info.rb +69 -37
- data/lib/SematextCloud/models/service_integration.rb +71 -48
- data/lib/{stcloud → SematextCloud}/models/subscription.rb +15 -6
- data/lib/SematextCloud/models/subscription_dashboard_dto.rb +72 -49
- data/lib/SematextCloud/models/subscription_dto.rb +85 -53
- data/lib/{stcloud/models/cloud_watch_settings_response.rb → SematextCloud/models/subscription_response.rb} +6 -6
- data/lib/{stcloud/models/mail_report_response_response_entry.rb → SematextCloud/models/subscription_response_entry.rb} +6 -6
- data/lib/{stcloud → SematextCloud}/models/subscriptions_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/subscriptions_response_entry.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/tag_names_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/token_dto.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/token_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/token_response_entry.rb +5 -5
- data/lib/{stcloud/models/subscription_response.rb → SematextCloud/models/tokens_response.rb} +6 -6
- data/lib/{stcloud → SematextCloud}/models/tokens_response_entry.rb +5 -5
- data/lib/SematextCloud/models/update_app_info.rb +64 -41
- data/lib/{stcloud → SematextCloud}/models/update_plan_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/update_plan_response_dto.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/update_plan_response_entry.rb +5 -5
- data/lib/SematextCloud/models/update_subscription_dto.rb +42 -19
- data/lib/SematextCloud/models/update_token_dto.rb +44 -21
- data/lib/{stcloud → SematextCloud}/models/usage_dto.rb +39 -21
- data/lib/{stcloud → SematextCloud}/models/usage_multi_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/usage_multi_response_entry.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/usage_response.rb +5 -5
- data/lib/{stcloud → SematextCloud}/models/usage_response_entry.rb +5 -5
- data/lib/SematextCloud/models/user_info.rb +42 -19
- data/lib/SematextCloud/models/user_permissions.rb +48 -25
- data/lib/SematextCloud/models/user_role.rb +53 -30
- data/lib/SematextCloud/version.rb +2 -3
- data/lib/SematextCloud.rb +57 -7
- data/spec/api/alert_notifications_api_spec.rb +8 -8
- data/spec/api/alerts_api_spec.rb +8 -8
- data/spec/api/apps_api_spec.rb +10 -10
- data/spec/api/aws_settings_controller_api_spec.rb +4 -4
- data/spec/api/billing_api_spec.rb +6 -6
- data/spec/api/logs_app_api_spec.rb +4 -4
- data/spec/api/logs_usage_api_controller_api_spec.rb +4 -4
- data/spec/api/monitoring_app_api_spec.rb +6 -6
- data/spec/api/reset_password_api_spec.rb +4 -4
- data/spec/api/subscriptions_api_spec.rb +10 -10
- data/spec/api/tag_api_controller_api_spec.rb +6 -6
- data/spec/api/tokens_api_controller_api_spec.rb +12 -12
- data/spec/api_client_spec.rb +30 -30
- data/spec/configuration_spec.rb +4 -4
- data/spec/models/alert_notification_request_spec.rb +4 -4
- data/spec/models/alert_notification_spec.rb +4 -4
- data/spec/models/alert_rule_response_entry_spec.rb +4 -4
- data/spec/models/alert_rule_response_spec.rb +4 -4
- data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +4 -4
- data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +4 -4
- data/spec/models/alert_rule_spec.rb +4 -4
- data/spec/models/alert_rules_response_entry_spec.rb +4 -4
- data/spec/models/alert_rules_response_spec.rb +4 -4
- data/spec/models/app_description_spec.rb +4 -4
- data/spec/models/app_metadata_spec.rb +4 -4
- data/spec/models/app_response_entry_spec.rb +4 -4
- data/spec/models/app_response_spec.rb +4 -4
- data/spec/models/app_spec.rb +4 -4
- data/spec/models/app_types_response_entry_spec.rb +4 -4
- data/spec/models/app_types_response_spec.rb +4 -4
- data/spec/models/apps_response_entry_spec.rb +4 -4
- data/spec/models/apps_response_spec.rb +4 -4
- data/spec/models/basic_auth_method_dto_spec.rb +4 -4
- data/spec/models/basic_organization_dto_spec.rb +4 -4
- data/spec/models/billing_info_spec.rb +4 -4
- data/spec/models/charges_details_response_dto_spec.rb +4 -4
- data/spec/models/cloud_watch_settings_response_entry_spec.rb +4 -4
- data/spec/models/cloud_watch_settings_response_spec.rb +4 -4
- data/spec/models/cloud_watch_settings_spec.rb +4 -4
- data/spec/models/create_app_info_spec.rb +4 -4
- data/spec/models/create_token_dto_spec.rb +4 -4
- data/spec/models/daily_dto_spec.rb +18 -6
- data/spec/models/day_usage_data_spec.rb +4 -4
- data/spec/models/dimension_spec.rb +4 -4
- data/spec/models/error_spec.rb +4 -4
- data/spec/models/event_dto_spec.rb +5 -5
- data/spec/models/filter_value_spec.rb +4 -4
- data/spec/models/generic_api_response_spec.rb +4 -4
- data/spec/models/generic_map_based_api_response_spec.rb +4 -4
- data/spec/models/invitation_spec.rb +4 -4
- data/spec/models/invoice_response_entry_spec.rb +4 -4
- data/spec/models/invoice_response_spec.rb +4 -4
- data/spec/models/invoice_spec.rb +4 -4
- data/spec/models/limit_change_event_dto_spec.rb +4 -4
- data/spec/models/mail_report_response_response_entry_spec.rb +4 -4
- data/spec/models/mail_report_response_spec.rb +4 -4
- data/spec/models/min_period_fee_period_spec.rb +16 -4
- data/spec/models/notification_integration_spec.rb +4 -4
- data/spec/models/notifications_response_entry_spec.rb +4 -4
- data/spec/models/notifications_response_spec.rb +4 -4
- data/spec/models/plan_spec.rb +5 -5
- data/spec/models/plans_response_entry_spec.rb +4 -4
- data/spec/models/plans_response_spec.rb +4 -4
- data/spec/models/report_info_spec.rb +10 -4
- data/spec/models/service_integration_spec.rb +4 -4
- data/spec/models/subscription_dashboard_dto_spec.rb +4 -4
- data/spec/models/subscription_dto_spec.rb +10 -4
- data/spec/models/subscription_response_entry_spec.rb +4 -4
- data/spec/models/subscription_response_spec.rb +4 -4
- data/spec/models/subscription_spec.rb +10 -4
- data/spec/models/subscriptions_response_entry_spec.rb +4 -4
- data/spec/models/subscriptions_response_spec.rb +4 -4
- data/spec/models/tag_names_response_spec.rb +4 -4
- data/spec/models/token_dto_spec.rb +4 -4
- data/spec/models/token_response_entry_spec.rb +4 -4
- data/spec/models/token_response_spec.rb +4 -4
- data/spec/models/tokens_response_entry_spec.rb +4 -4
- data/spec/models/tokens_response_spec.rb +4 -4
- data/spec/models/update_app_info_spec.rb +4 -4
- data/spec/models/update_plan_response_dto_spec.rb +4 -4
- data/spec/models/update_plan_response_entry_spec.rb +4 -4
- data/spec/models/update_plan_response_spec.rb +4 -4
- data/spec/models/update_subscription_dto_spec.rb +4 -4
- data/spec/models/update_token_dto_spec.rb +4 -4
- data/spec/models/usage_dto_spec.rb +22 -10
- data/spec/models/usage_multi_response_entry_spec.rb +4 -4
- data/spec/models/usage_multi_response_spec.rb +4 -4
- data/spec/models/usage_response_entry_spec.rb +4 -4
- data/spec/models/usage_response_spec.rb +4 -4
- data/spec/models/user_info_spec.rb +4 -4
- data/spec/models/user_permissions_spec.rb +4 -4
- data/spec/models/user_role_spec.rb +4 -4
- data/spec/spec_helper.rb +2 -2
- metadata +55 -121
- data/docs/DataSeriesFilter.md +0 -8
- data/docs/DataSeriesRequest.md +0 -12
- data/docs/MetricsApi.md +0 -227
- data/docs/SavedQueriesApi.md +0 -220
- data/docs/SavedQuery.md +0 -18
- data/lib/SematextCloud/api/metrics_api.rb +0 -247
- data/lib/SematextCloud/api/saved_queries_api.rb +0 -237
- data/lib/SematextCloud/models/data_series_filter.rb +0 -237
- data/lib/SematextCloud/models/data_series_request.rb +0 -283
- data/lib/SematextCloud/models/saved_query.rb +0 -291
- data/lib/stcloud/api/alert_notifications_api.rb +0 -142
- data/lib/stcloud/api/alerts_api.rb +0 -292
- data/lib/stcloud/api/apps_api.rb +0 -452
- data/lib/stcloud/api/aws_settings_controller_api.rb +0 -84
- data/lib/stcloud/api/billing_api.rb +0 -202
- data/lib/stcloud/api/logs_app_api.rb +0 -76
- data/lib/stcloud/api/monitoring_app_api.rb +0 -76
- data/lib/stcloud/api/reset_password_api.rb +0 -76
- data/lib/stcloud/api/subscriptions_api.rb +0 -610
- data/lib/stcloud/api/tag_api_controller_api.rb +0 -250
- data/lib/stcloud/api/tokens_api_controller_api.rb +0 -324
- data/lib/stcloud/api_client.rb +0 -388
- data/lib/stcloud/api_error.rb +0 -57
- data/lib/stcloud/configuration.rb +0 -205
- data/lib/stcloud/models/alert_notification_request.rb +0 -235
- data/lib/stcloud/models/alert_rule.rb +0 -675
- data/lib/stcloud/models/alert_rule_schedule_time_range_dto.rb +0 -215
- data/lib/stcloud/models/alert_rule_schedule_weekday_dto.rb +0 -244
- data/lib/stcloud/models/app.rb +0 -489
- data/lib/stcloud/models/app_description.rb +0 -206
- data/lib/stcloud/models/app_metadata.rb +0 -291
- data/lib/stcloud/models/apps_response.rb +0 -235
- data/lib/stcloud/models/basic_auth_method_dto.rb +0 -249
- data/lib/stcloud/models/basic_organization_dto.rb +0 -269
- data/lib/stcloud/models/billing_info.rb +0 -224
- data/lib/stcloud/models/cloud_watch_settings.rb +0 -279
- data/lib/stcloud/models/create_app_info.rb +0 -242
- data/lib/stcloud/models/create_token_dto.rb +0 -224
- data/lib/stcloud/models/error.rb +0 -215
- data/lib/stcloud/models/filter_value.rb +0 -253
- data/lib/stcloud/models/generic_api_response.rb +0 -236
- data/lib/stcloud/models/invitation.rb +0 -348
- data/lib/stcloud/models/invoice_response.rb +0 -235
- data/lib/stcloud/models/notification_integration.rb +0 -347
- data/lib/stcloud/models/plan.rb +0 -360
- data/lib/stcloud/models/report_info.rb +0 -270
- data/lib/stcloud/models/service_integration.rb +0 -305
- data/lib/stcloud/models/subscription_dashboard_dto.rb +0 -342
- data/lib/stcloud/models/subscription_dto.rb +0 -351
- data/lib/stcloud/models/tokens_response.rb +0 -235
- data/lib/stcloud/models/update_app_info.rb +0 -312
- data/lib/stcloud/models/update_subscription_dto.rb +0 -206
- data/lib/stcloud/models/update_token_dto.rb +0 -215
- data/lib/stcloud/models/user_info.rb +0 -206
- data/lib/stcloud/models/user_permissions.rb +0 -224
- data/lib/stcloud/models/user_role.rb +0 -270
- data/lib/stcloud/version.rb +0 -14
- data/lib/stcloud.rb +0 -128
- data/spec/api/metrics_api_spec.rb +0 -83
- data/spec/api/saved_queries_api_spec.rb +0 -80
- data/spec/models/data_series_filter_spec.rb +0 -57
- data/spec/models/data_series_request_spec.rb +0 -81
- data/spec/models/saved_query_spec.rb +0 -113
@@ -1,224 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Sematext Cloud API
|
3
|
-
|
4
|
-
#API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.
|
5
|
-
|
6
|
-
OpenAPI spec version: v3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.25
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module stcloud
|
15
|
-
class UserPermissions
|
16
|
-
attr_accessor :can_delete
|
17
|
-
|
18
|
-
attr_accessor :can_edit
|
19
|
-
|
20
|
-
attr_accessor :can_view
|
21
|
-
|
22
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
-
def self.attribute_map
|
24
|
-
{
|
25
|
-
:'can_delete' => :'canDelete',
|
26
|
-
:'can_edit' => :'canEdit',
|
27
|
-
:'can_view' => :'canView'
|
28
|
-
}
|
29
|
-
end
|
30
|
-
|
31
|
-
# Attribute type mapping.
|
32
|
-
def self.openapi_types
|
33
|
-
{
|
34
|
-
:'can_delete' => :'Object',
|
35
|
-
:'can_edit' => :'Object',
|
36
|
-
:'can_view' => :'Object'
|
37
|
-
}
|
38
|
-
end
|
39
|
-
|
40
|
-
# List of attributes with nullable: true
|
41
|
-
def self.openapi_nullable
|
42
|
-
Set.new([
|
43
|
-
])
|
44
|
-
end
|
45
|
-
|
46
|
-
# Initializes the object
|
47
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
48
|
-
def initialize(attributes = {})
|
49
|
-
if (!attributes.is_a?(Hash))
|
50
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `stcloud::UserPermissions` initialize method"
|
51
|
-
end
|
52
|
-
|
53
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
54
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
55
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
56
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `stcloud::UserPermissions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
57
|
-
end
|
58
|
-
h[k.to_sym] = v
|
59
|
-
}
|
60
|
-
|
61
|
-
if attributes.key?(:'can_delete')
|
62
|
-
self.can_delete = attributes[:'can_delete']
|
63
|
-
end
|
64
|
-
|
65
|
-
if attributes.key?(:'can_edit')
|
66
|
-
self.can_edit = attributes[:'can_edit']
|
67
|
-
end
|
68
|
-
|
69
|
-
if attributes.key?(:'can_view')
|
70
|
-
self.can_view = attributes[:'can_view']
|
71
|
-
end
|
72
|
-
end
|
73
|
-
|
74
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
75
|
-
# @return Array for valid properties with the reasons
|
76
|
-
def list_invalid_properties
|
77
|
-
invalid_properties = Array.new
|
78
|
-
invalid_properties
|
79
|
-
end
|
80
|
-
|
81
|
-
# Check to see if the all the properties in the model are valid
|
82
|
-
# @return true if the model is valid
|
83
|
-
def valid?
|
84
|
-
true
|
85
|
-
end
|
86
|
-
|
87
|
-
# Checks equality by comparing each attribute.
|
88
|
-
# @param [Object] Object to be compared
|
89
|
-
def ==(o)
|
90
|
-
return true if self.equal?(o)
|
91
|
-
self.class == o.class &&
|
92
|
-
can_delete == o.can_delete &&
|
93
|
-
can_edit == o.can_edit &&
|
94
|
-
can_view == o.can_view
|
95
|
-
end
|
96
|
-
|
97
|
-
# @see the `==` method
|
98
|
-
# @param [Object] Object to be compared
|
99
|
-
def eql?(o)
|
100
|
-
self == o
|
101
|
-
end
|
102
|
-
|
103
|
-
# Calculates hash code according to all attributes.
|
104
|
-
# @return [Integer] Hash code
|
105
|
-
def hash
|
106
|
-
[can_delete, can_edit, can_view].hash
|
107
|
-
end
|
108
|
-
|
109
|
-
# Builds the object from hash
|
110
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
-
# @return [Object] Returns the model itself
|
112
|
-
def self.build_from_hash(attributes)
|
113
|
-
new.build_from_hash(attributes)
|
114
|
-
end
|
115
|
-
|
116
|
-
# Builds the object from hash
|
117
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
-
# @return [Object] Returns the model itself
|
119
|
-
def build_from_hash(attributes)
|
120
|
-
return nil unless attributes.is_a?(Hash)
|
121
|
-
self.class.openapi_types.each_pair do |key, type|
|
122
|
-
if type =~ /\AArray<(.*)>/i
|
123
|
-
# check to ensure the input is an array given that the attribute
|
124
|
-
# is documented as an array but the input is not
|
125
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
126
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
127
|
-
end
|
128
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
129
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
130
|
-
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
131
|
-
self.send("#{key}=", nil)
|
132
|
-
end
|
133
|
-
end
|
134
|
-
|
135
|
-
self
|
136
|
-
end
|
137
|
-
|
138
|
-
# Deserializes the data based on type
|
139
|
-
# @param string type Data type
|
140
|
-
# @param string value Value to be deserialized
|
141
|
-
# @return [Object] Deserialized data
|
142
|
-
def _deserialize(type, value)
|
143
|
-
case type.to_sym
|
144
|
-
when :DateTime
|
145
|
-
DateTime.parse(value)
|
146
|
-
when :Date
|
147
|
-
Date.parse(value)
|
148
|
-
when :String
|
149
|
-
value.to_s
|
150
|
-
when :Integer
|
151
|
-
value.to_i
|
152
|
-
when :Float
|
153
|
-
value.to_f
|
154
|
-
when :Boolean
|
155
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
-
true
|
157
|
-
else
|
158
|
-
false
|
159
|
-
end
|
160
|
-
when :Object
|
161
|
-
# generic object (usually a Hash), return directly
|
162
|
-
value
|
163
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
-
inner_type = Regexp.last_match[:inner_type]
|
165
|
-
value.map { |v| _deserialize(inner_type, v) }
|
166
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
-
k_type = Regexp.last_match[:k_type]
|
168
|
-
v_type = Regexp.last_match[:v_type]
|
169
|
-
{}.tap do |hash|
|
170
|
-
value.each do |k, v|
|
171
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
-
end
|
173
|
-
end
|
174
|
-
else # model
|
175
|
-
stcloud.const_get(type).build_from_hash(value)
|
176
|
-
end
|
177
|
-
end
|
178
|
-
|
179
|
-
# Returns the string representation of the object
|
180
|
-
# @return [String] String presentation of the object
|
181
|
-
def to_s
|
182
|
-
to_hash.to_s
|
183
|
-
end
|
184
|
-
|
185
|
-
# to_body is an alias to to_hash (backward compatibility)
|
186
|
-
# @return [Hash] Returns the object in the form of hash
|
187
|
-
def to_body
|
188
|
-
to_hash
|
189
|
-
end
|
190
|
-
|
191
|
-
# Returns the object in the form of hash
|
192
|
-
# @return [Hash] Returns the object in the form of hash
|
193
|
-
def to_hash
|
194
|
-
hash = {}
|
195
|
-
self.class.attribute_map.each_pair do |attr, param|
|
196
|
-
value = self.send(attr)
|
197
|
-
if value.nil?
|
198
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
199
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
200
|
-
end
|
201
|
-
|
202
|
-
hash[param] = _to_hash(value)
|
203
|
-
end
|
204
|
-
hash
|
205
|
-
end
|
206
|
-
|
207
|
-
# Outputs non-array value in the form of hash
|
208
|
-
# For object, use to_hash. Otherwise, just return the value
|
209
|
-
# @param [Object] value Any valid value
|
210
|
-
# @return [Hash] Returns the value in the form of hash
|
211
|
-
def _to_hash(value)
|
212
|
-
if value.is_a?(Array)
|
213
|
-
value.compact.map { |v| _to_hash(v) }
|
214
|
-
elsif value.is_a?(Hash)
|
215
|
-
{}.tap do |hash|
|
216
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
217
|
-
end
|
218
|
-
elsif value.respond_to? :to_hash
|
219
|
-
value.to_hash
|
220
|
-
else
|
221
|
-
value
|
222
|
-
end
|
223
|
-
end end
|
224
|
-
end
|
@@ -1,270 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Sematext Cloud API
|
3
|
-
|
4
|
-
#API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.
|
5
|
-
|
6
|
-
OpenAPI spec version: v3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.25
|
10
|
-
=end
|
11
|
-
|
12
|
-
require 'date'
|
13
|
-
|
14
|
-
module stcloud
|
15
|
-
class UserRole
|
16
|
-
attr_accessor :role
|
17
|
-
|
18
|
-
attr_accessor :role_status
|
19
|
-
|
20
|
-
attr_accessor :user_email
|
21
|
-
|
22
|
-
class EnumAttributeValidator
|
23
|
-
attr_reader :datatype
|
24
|
-
attr_reader :allowable_values
|
25
|
-
|
26
|
-
def initialize(datatype, allowable_values)
|
27
|
-
@allowable_values = allowable_values.map do |value|
|
28
|
-
case datatype.to_s
|
29
|
-
when /Integer/i
|
30
|
-
value.to_i
|
31
|
-
when /Float/i
|
32
|
-
value.to_f
|
33
|
-
else
|
34
|
-
value
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
def valid?(value)
|
40
|
-
!value || allowable_values.include?(value)
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
45
|
-
def self.attribute_map
|
46
|
-
{
|
47
|
-
:'role' => :'role',
|
48
|
-
:'role_status' => :'roleStatus',
|
49
|
-
:'user_email' => :'userEmail'
|
50
|
-
}
|
51
|
-
end
|
52
|
-
|
53
|
-
# Attribute type mapping.
|
54
|
-
def self.openapi_types
|
55
|
-
{
|
56
|
-
:'role' => :'Object',
|
57
|
-
:'role_status' => :'Object',
|
58
|
-
:'user_email' => :'Object'
|
59
|
-
}
|
60
|
-
end
|
61
|
-
|
62
|
-
# List of attributes with nullable: true
|
63
|
-
def self.openapi_nullable
|
64
|
-
Set.new([
|
65
|
-
])
|
66
|
-
end
|
67
|
-
|
68
|
-
# Initializes the object
|
69
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
70
|
-
def initialize(attributes = {})
|
71
|
-
if (!attributes.is_a?(Hash))
|
72
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `stcloud::UserRole` initialize method"
|
73
|
-
end
|
74
|
-
|
75
|
-
# check to see if the attribute exists and convert string to symbol for hash key
|
76
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
77
|
-
if (!self.class.attribute_map.key?(k.to_sym))
|
78
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `stcloud::UserRole`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
79
|
-
end
|
80
|
-
h[k.to_sym] = v
|
81
|
-
}
|
82
|
-
|
83
|
-
if attributes.key?(:'role')
|
84
|
-
self.role = attributes[:'role']
|
85
|
-
end
|
86
|
-
|
87
|
-
if attributes.key?(:'role_status')
|
88
|
-
self.role_status = attributes[:'role_status']
|
89
|
-
end
|
90
|
-
|
91
|
-
if attributes.key?(:'user_email')
|
92
|
-
self.user_email = attributes[:'user_email']
|
93
|
-
end
|
94
|
-
end
|
95
|
-
|
96
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
97
|
-
# @return Array for valid properties with the reasons
|
98
|
-
def list_invalid_properties
|
99
|
-
invalid_properties = Array.new
|
100
|
-
invalid_properties
|
101
|
-
end
|
102
|
-
|
103
|
-
# Check to see if the all the properties in the model are valid
|
104
|
-
# @return true if the model is valid
|
105
|
-
def valid?
|
106
|
-
role_validator = EnumAttributeValidator.new('Object', ['SUPER_USER', 'OWNER', 'ADMIN', 'USER', 'DEMO', 'ANONYMOUS'])
|
107
|
-
return false unless role_validator.valid?(@role)
|
108
|
-
role_status_validator = EnumAttributeValidator.new('Object', ['INACTIVE', 'ACTIVE'])
|
109
|
-
return false unless role_status_validator.valid?(@role_status)
|
110
|
-
true
|
111
|
-
end
|
112
|
-
|
113
|
-
# Custom attribute writer method checking allowed values (enum).
|
114
|
-
# @param [Object] role Object to be assigned
|
115
|
-
def role=(role)
|
116
|
-
validator = EnumAttributeValidator.new('Object', ['SUPER_USER', 'OWNER', 'ADMIN', 'USER', 'DEMO', 'ANONYMOUS'])
|
117
|
-
unless validator.valid?(role)
|
118
|
-
fail ArgumentError, "invalid value for \"role\", must be one of #{validator.allowable_values}."
|
119
|
-
end
|
120
|
-
@role = role
|
121
|
-
end
|
122
|
-
|
123
|
-
# Custom attribute writer method checking allowed values (enum).
|
124
|
-
# @param [Object] role_status Object to be assigned
|
125
|
-
def role_status=(role_status)
|
126
|
-
validator = EnumAttributeValidator.new('Object', ['INACTIVE', 'ACTIVE'])
|
127
|
-
unless validator.valid?(role_status)
|
128
|
-
fail ArgumentError, "invalid value for \"role_status\", must be one of #{validator.allowable_values}."
|
129
|
-
end
|
130
|
-
@role_status = role_status
|
131
|
-
end
|
132
|
-
|
133
|
-
# Checks equality by comparing each attribute.
|
134
|
-
# @param [Object] Object to be compared
|
135
|
-
def ==(o)
|
136
|
-
return true if self.equal?(o)
|
137
|
-
self.class == o.class &&
|
138
|
-
role == o.role &&
|
139
|
-
role_status == o.role_status &&
|
140
|
-
user_email == o.user_email
|
141
|
-
end
|
142
|
-
|
143
|
-
# @see the `==` method
|
144
|
-
# @param [Object] Object to be compared
|
145
|
-
def eql?(o)
|
146
|
-
self == o
|
147
|
-
end
|
148
|
-
|
149
|
-
# Calculates hash code according to all attributes.
|
150
|
-
# @return [Integer] Hash code
|
151
|
-
def hash
|
152
|
-
[role, role_status, user_email].hash
|
153
|
-
end
|
154
|
-
|
155
|
-
# Builds the object from hash
|
156
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
157
|
-
# @return [Object] Returns the model itself
|
158
|
-
def self.build_from_hash(attributes)
|
159
|
-
new.build_from_hash(attributes)
|
160
|
-
end
|
161
|
-
|
162
|
-
# Builds the object from hash
|
163
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
164
|
-
# @return [Object] Returns the model itself
|
165
|
-
def build_from_hash(attributes)
|
166
|
-
return nil unless attributes.is_a?(Hash)
|
167
|
-
self.class.openapi_types.each_pair do |key, type|
|
168
|
-
if type =~ /\AArray<(.*)>/i
|
169
|
-
# check to ensure the input is an array given that the attribute
|
170
|
-
# is documented as an array but the input is not
|
171
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
172
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
173
|
-
end
|
174
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
175
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
176
|
-
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
177
|
-
self.send("#{key}=", nil)
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
self
|
182
|
-
end
|
183
|
-
|
184
|
-
# Deserializes the data based on type
|
185
|
-
# @param string type Data type
|
186
|
-
# @param string value Value to be deserialized
|
187
|
-
# @return [Object] Deserialized data
|
188
|
-
def _deserialize(type, value)
|
189
|
-
case type.to_sym
|
190
|
-
when :DateTime
|
191
|
-
DateTime.parse(value)
|
192
|
-
when :Date
|
193
|
-
Date.parse(value)
|
194
|
-
when :String
|
195
|
-
value.to_s
|
196
|
-
when :Integer
|
197
|
-
value.to_i
|
198
|
-
when :Float
|
199
|
-
value.to_f
|
200
|
-
when :Boolean
|
201
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
202
|
-
true
|
203
|
-
else
|
204
|
-
false
|
205
|
-
end
|
206
|
-
when :Object
|
207
|
-
# generic object (usually a Hash), return directly
|
208
|
-
value
|
209
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
210
|
-
inner_type = Regexp.last_match[:inner_type]
|
211
|
-
value.map { |v| _deserialize(inner_type, v) }
|
212
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
213
|
-
k_type = Regexp.last_match[:k_type]
|
214
|
-
v_type = Regexp.last_match[:v_type]
|
215
|
-
{}.tap do |hash|
|
216
|
-
value.each do |k, v|
|
217
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
218
|
-
end
|
219
|
-
end
|
220
|
-
else # model
|
221
|
-
stcloud.const_get(type).build_from_hash(value)
|
222
|
-
end
|
223
|
-
end
|
224
|
-
|
225
|
-
# Returns the string representation of the object
|
226
|
-
# @return [String] String presentation of the object
|
227
|
-
def to_s
|
228
|
-
to_hash.to_s
|
229
|
-
end
|
230
|
-
|
231
|
-
# to_body is an alias to to_hash (backward compatibility)
|
232
|
-
# @return [Hash] Returns the object in the form of hash
|
233
|
-
def to_body
|
234
|
-
to_hash
|
235
|
-
end
|
236
|
-
|
237
|
-
# Returns the object in the form of hash
|
238
|
-
# @return [Hash] Returns the object in the form of hash
|
239
|
-
def to_hash
|
240
|
-
hash = {}
|
241
|
-
self.class.attribute_map.each_pair do |attr, param|
|
242
|
-
value = self.send(attr)
|
243
|
-
if value.nil?
|
244
|
-
is_nullable = self.class.openapi_nullable.include?(attr)
|
245
|
-
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
246
|
-
end
|
247
|
-
|
248
|
-
hash[param] = _to_hash(value)
|
249
|
-
end
|
250
|
-
hash
|
251
|
-
end
|
252
|
-
|
253
|
-
# Outputs non-array value in the form of hash
|
254
|
-
# For object, use to_hash. Otherwise, just return the value
|
255
|
-
# @param [Object] value Any valid value
|
256
|
-
# @return [Hash] Returns the value in the form of hash
|
257
|
-
def _to_hash(value)
|
258
|
-
if value.is_a?(Array)
|
259
|
-
value.compact.map { |v| _to_hash(v) }
|
260
|
-
elsif value.is_a?(Hash)
|
261
|
-
{}.tap do |hash|
|
262
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
263
|
-
end
|
264
|
-
elsif value.respond_to? :to_hash
|
265
|
-
value.to_hash
|
266
|
-
else
|
267
|
-
value
|
268
|
-
end
|
269
|
-
end end
|
270
|
-
end
|
data/lib/stcloud/version.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Sematext Cloud API
|
3
|
-
|
4
|
-
#API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.
|
5
|
-
|
6
|
-
OpenAPI spec version: v3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.25
|
10
|
-
=end
|
11
|
-
|
12
|
-
module stcloud
|
13
|
-
VERSION = '0.3.1'
|
14
|
-
end
|
data/lib/stcloud.rb
DELETED
@@ -1,128 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Sematext Cloud API
|
3
|
-
|
4
|
-
#API Explorer provides access and documentation for Sematext REST API. The REST API requires the API Key to be sent as part of `Authorization` header. E.g.: `Authorization : apiKey e5f18450-205a-48eb-8589-7d49edaea813`.
|
5
|
-
|
6
|
-
OpenAPI spec version: v3
|
7
|
-
|
8
|
-
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.25
|
10
|
-
=end
|
11
|
-
|
12
|
-
# Common files
|
13
|
-
require 'stcloud/api_client'
|
14
|
-
require 'stcloud/api_error'
|
15
|
-
require 'stcloud/version'
|
16
|
-
require 'stcloud/configuration'
|
17
|
-
|
18
|
-
# Models
|
19
|
-
require 'stcloud/models/alert_notification'
|
20
|
-
require 'stcloud/models/alert_notification_request'
|
21
|
-
require 'stcloud/models/alert_rule'
|
22
|
-
require 'stcloud/models/alert_rule_response'
|
23
|
-
require 'stcloud/models/alert_rule_response_entry'
|
24
|
-
require 'stcloud/models/alert_rule_schedule_time_range_dto'
|
25
|
-
require 'stcloud/models/alert_rule_schedule_weekday_dto'
|
26
|
-
require 'stcloud/models/alert_rules_response'
|
27
|
-
require 'stcloud/models/alert_rules_response_entry'
|
28
|
-
require 'stcloud/models/app'
|
29
|
-
require 'stcloud/models/app_description'
|
30
|
-
require 'stcloud/models/app_metadata'
|
31
|
-
require 'stcloud/models/app_response'
|
32
|
-
require 'stcloud/models/app_response_entry'
|
33
|
-
require 'stcloud/models/app_types_response'
|
34
|
-
require 'stcloud/models/app_types_response_entry'
|
35
|
-
require 'stcloud/models/apps_response'
|
36
|
-
require 'stcloud/models/apps_response_entry'
|
37
|
-
require 'stcloud/models/basic_auth_method_dto'
|
38
|
-
require 'stcloud/models/basic_organization_dto'
|
39
|
-
require 'stcloud/models/billing_info'
|
40
|
-
require 'stcloud/models/charges_details_response_dto'
|
41
|
-
require 'stcloud/models/cloud_watch_settings'
|
42
|
-
require 'stcloud/models/cloud_watch_settings_response'
|
43
|
-
require 'stcloud/models/cloud_watch_settings_response_entry'
|
44
|
-
require 'stcloud/models/create_app_info'
|
45
|
-
require 'stcloud/models/create_token_dto'
|
46
|
-
require 'stcloud/models/daily_dto'
|
47
|
-
require 'stcloud/models/day_usage_data'
|
48
|
-
require 'stcloud/models/dimension'
|
49
|
-
require 'stcloud/models/error'
|
50
|
-
require 'stcloud/models/event_dto'
|
51
|
-
require 'stcloud/models/filter_value'
|
52
|
-
require 'stcloud/models/generic_api_response'
|
53
|
-
require 'stcloud/models/generic_map_based_api_response'
|
54
|
-
require 'stcloud/models/invitation'
|
55
|
-
require 'stcloud/models/invoice'
|
56
|
-
require 'stcloud/models/invoice_response'
|
57
|
-
require 'stcloud/models/invoice_response_entry'
|
58
|
-
require 'stcloud/models/limit_change_event_dto'
|
59
|
-
require 'stcloud/models/mail_report_response'
|
60
|
-
require 'stcloud/models/mail_report_response_response_entry'
|
61
|
-
require 'stcloud/models/min_period_fee_period'
|
62
|
-
require 'stcloud/models/notification_integration'
|
63
|
-
require 'stcloud/models/notifications_response'
|
64
|
-
require 'stcloud/models/notifications_response_entry'
|
65
|
-
require 'stcloud/models/plan'
|
66
|
-
require 'stcloud/models/plans_response'
|
67
|
-
require 'stcloud/models/plans_response_entry'
|
68
|
-
require 'stcloud/models/report_info'
|
69
|
-
require 'stcloud/models/service_integration'
|
70
|
-
require 'stcloud/models/subscription'
|
71
|
-
require 'stcloud/models/subscription_dashboard_dto'
|
72
|
-
require 'stcloud/models/subscription_dto'
|
73
|
-
require 'stcloud/models/subscription_response'
|
74
|
-
require 'stcloud/models/subscription_response_entry'
|
75
|
-
require 'stcloud/models/subscriptions_response'
|
76
|
-
require 'stcloud/models/subscriptions_response_entry'
|
77
|
-
require 'stcloud/models/tag_names_response'
|
78
|
-
require 'stcloud/models/token_dto'
|
79
|
-
require 'stcloud/models/token_response'
|
80
|
-
require 'stcloud/models/token_response_entry'
|
81
|
-
require 'stcloud/models/tokens_response'
|
82
|
-
require 'stcloud/models/tokens_response_entry'
|
83
|
-
require 'stcloud/models/update_app_info'
|
84
|
-
require 'stcloud/models/update_plan_response'
|
85
|
-
require 'stcloud/models/update_plan_response_dto'
|
86
|
-
require 'stcloud/models/update_plan_response_entry'
|
87
|
-
require 'stcloud/models/update_subscription_dto'
|
88
|
-
require 'stcloud/models/update_token_dto'
|
89
|
-
require 'stcloud/models/usage_dto'
|
90
|
-
require 'stcloud/models/usage_multi_response'
|
91
|
-
require 'stcloud/models/usage_multi_response_entry'
|
92
|
-
require 'stcloud/models/usage_response'
|
93
|
-
require 'stcloud/models/usage_response_entry'
|
94
|
-
require 'stcloud/models/user_info'
|
95
|
-
require 'stcloud/models/user_permissions'
|
96
|
-
require 'stcloud/models/user_role'
|
97
|
-
|
98
|
-
# APIs
|
99
|
-
require 'stcloud/api/alert_notifications_api'
|
100
|
-
require 'stcloud/api/alerts_api'
|
101
|
-
require 'stcloud/api/apps_api'
|
102
|
-
require 'stcloud/api/aws_settings_controller_api'
|
103
|
-
require 'stcloud/api/billing_api'
|
104
|
-
require 'stcloud/api/logs_app_api'
|
105
|
-
require 'stcloud/api/logs_usage_api_controller_api'
|
106
|
-
require 'stcloud/api/monitoring_app_api'
|
107
|
-
require 'stcloud/api/reset_password_api'
|
108
|
-
require 'stcloud/api/subscriptions_api'
|
109
|
-
require 'stcloud/api/tag_api_controller_api'
|
110
|
-
require 'stcloud/api/tokens_api_controller_api'
|
111
|
-
|
112
|
-
module stcloud
|
113
|
-
class << self
|
114
|
-
# Customize default settings for the SDK using block.
|
115
|
-
# stcloud.configure do |config|
|
116
|
-
# config.username = "xxx"
|
117
|
-
# config.password = "xxx"
|
118
|
-
# end
|
119
|
-
# If no block given, return the default Configuration object.
|
120
|
-
def configure
|
121
|
-
if block_given?
|
122
|
-
yield(Configuration.default)
|
123
|
-
else
|
124
|
-
Configuration.default
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|