SematextCloud 0.3.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +70 -0
- 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 +19 -17
- data/docs/AlertRule.md +3 -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 +42 -40
- 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 +93 -88
- data/docs/AppsResponse.md +2 -1
- data/docs/AppsResponseEntry.md +2 -1
- data/docs/AwsSettingsControllerApi.md +17 -15
- data/docs/BasicAuthMethodDto.md +2 -1
- data/docs/BasicOrganizationDto.md +2 -1
- data/docs/BillingApi.md +32 -30
- 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 +10 -8
- 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 +16 -15
- 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 +121 -118
- data/docs/SubscriptionsResponse.md +2 -1
- data/docs/SubscriptionsResponseEntry.md +2 -1
- data/docs/TagApiControllerApi.md +102 -33
- data/docs/TagNamesResponse.md +2 -1
- data/docs/TagsGrouped.md +8 -0
- data/docs/TagsGroupedResponse.md +7 -0
- data/docs/TokenDto.md +2 -1
- data/docs/TokenResponse.md +2 -1
- data/docs/TokenResponseEntry.md +2 -1
- data/docs/TokensApiControllerApi.md +51 -49
- 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 +7 -6
- data/docs/UserRole.md +7 -6
- data/lib/SematextCloud/api/alert_notifications_api.rb +47 -42
- data/lib/SematextCloud/api/alerts_api.rb +69 -60
- data/lib/SematextCloud/api/apps_api.rb +138 -119
- data/lib/SematextCloud/api/aws_settings_controller_api.rb +23 -22
- data/lib/SematextCloud/api/billing_api.rb +62 -57
- 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 +21 -20
- data/lib/SematextCloud/api/reset_password_api.rb +21 -20
- data/lib/SematextCloud/api/subscriptions_api.rb +194 -163
- data/lib/SematextCloud/api/tag_api_controller_api.rb +132 -50
- data/lib/SematextCloud/api/tokens_api_controller_api.rb +97 -86
- 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 +197 -153
- 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/SematextCloud/models/tags_grouped.rb +227 -0
- data/lib/SematextCloud/models/tags_grouped_response.rb +213 -0
- 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 +59 -7
- data/spec/api/alert_notifications_api_spec.rb +4 -4
- data/spec/api/alerts_api_spec.rb +4 -4
- data/spec/api/apps_api_spec.rb +14 -14
- data/spec/api/aws_settings_controller_api_spec.rb +6 -6
- 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 +4 -4
- data/spec/api/reset_password_api_spec.rb +4 -4
- data/spec/api/subscriptions_api_spec.rb +16 -16
- data/spec/api/tag_api_controller_api_spec.rb +24 -6
- data/spec/api/tokens_api_controller_api_spec.rb +8 -8
- 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 +14 -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/tags_grouped_response_spec.rb +40 -0
- data/spec/models/{data_series_filter_spec.rb → tags_grouped_spec.rb} +9 -20
- 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 +135 -192
- 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_request_spec.rb +0 -81
- data/spec/models/saved_query_spec.rb +0 -113
@@ -6,8 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version:
|
10
|
-
|
9
|
+
Swagger Codegen version: 3.0.34
|
11
10
|
=end
|
12
11
|
|
13
12
|
require 'date'
|
@@ -59,42 +58,55 @@ module SematextCloud
|
|
59
58
|
end
|
60
59
|
|
61
60
|
# Attribute type mapping.
|
62
|
-
def self.
|
61
|
+
def self.openapi_types
|
63
62
|
{
|
64
|
-
:'aws_cloud_watch_access_key' => :'
|
65
|
-
:'aws_cloud_watch_secret_key' => :'
|
66
|
-
:'aws_fetch_frequency' => :'
|
67
|
-
:'aws_region' => :'
|
68
|
-
:'sub_types' => :'
|
63
|
+
:'aws_cloud_watch_access_key' => :'Object',
|
64
|
+
:'aws_cloud_watch_secret_key' => :'Object',
|
65
|
+
:'aws_fetch_frequency' => :'Object',
|
66
|
+
:'aws_region' => :'Object',
|
67
|
+
:'sub_types' => :'Object'
|
69
68
|
}
|
70
69
|
end
|
71
70
|
|
71
|
+
# List of attributes with nullable: true
|
72
|
+
def self.openapi_nullable
|
73
|
+
Set.new([
|
74
|
+
])
|
75
|
+
end
|
76
|
+
|
72
77
|
# Initializes the object
|
73
78
|
# @param [Hash] attributes Model attributes in the form of hash
|
74
79
|
def initialize(attributes = {})
|
75
|
-
|
80
|
+
if (!attributes.is_a?(Hash))
|
81
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::AppMetadata` initialize method"
|
82
|
+
end
|
76
83
|
|
77
|
-
# convert string to symbol for hash key
|
78
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
84
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
86
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::AppMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
88
|
+
end
|
89
|
+
h[k.to_sym] = v
|
90
|
+
}
|
79
91
|
|
80
|
-
if attributes.
|
81
|
-
self.aws_cloud_watch_access_key = attributes[:'
|
92
|
+
if attributes.key?(:'aws_cloud_watch_access_key')
|
93
|
+
self.aws_cloud_watch_access_key = attributes[:'aws_cloud_watch_access_key']
|
82
94
|
end
|
83
95
|
|
84
|
-
if attributes.
|
85
|
-
self.aws_cloud_watch_secret_key = attributes[:'
|
96
|
+
if attributes.key?(:'aws_cloud_watch_secret_key')
|
97
|
+
self.aws_cloud_watch_secret_key = attributes[:'aws_cloud_watch_secret_key']
|
86
98
|
end
|
87
99
|
|
88
|
-
if attributes.
|
89
|
-
self.aws_fetch_frequency = attributes[:'
|
100
|
+
if attributes.key?(:'aws_fetch_frequency')
|
101
|
+
self.aws_fetch_frequency = attributes[:'aws_fetch_frequency']
|
90
102
|
end
|
91
103
|
|
92
|
-
if attributes.
|
93
|
-
self.aws_region = attributes[:'
|
104
|
+
if attributes.key?(:'aws_region')
|
105
|
+
self.aws_region = attributes[:'aws_region']
|
94
106
|
end
|
95
107
|
|
96
|
-
if attributes.
|
97
|
-
if (value = attributes[:'
|
108
|
+
if attributes.key?(:'sub_types')
|
109
|
+
if (value = attributes[:'sub_types']).is_a?(Array)
|
98
110
|
self.sub_types = value
|
99
111
|
end
|
100
112
|
end
|
@@ -110,9 +122,9 @@ module SematextCloud
|
|
110
122
|
# Check to see if the all the properties in the model are valid
|
111
123
|
# @return true if the model is valid
|
112
124
|
def valid?
|
113
|
-
aws_fetch_frequency_validator = EnumAttributeValidator.new('
|
125
|
+
aws_fetch_frequency_validator = EnumAttributeValidator.new('Object', ['MINUTE', 'FIVE_MINUTES', 'FIFTEEN_MINUTES'])
|
114
126
|
return false unless aws_fetch_frequency_validator.valid?(@aws_fetch_frequency)
|
115
|
-
aws_region_validator = EnumAttributeValidator.new('
|
127
|
+
aws_region_validator = EnumAttributeValidator.new('Object', ['US_EAST_1', 'US_WEST_1', 'EU_WEST_1', 'US_WEST_2', 'AP_SOUTHEAST_1', 'AP_SOUTHEAST_2', 'AP_NORTHEAST_1', 'SA_EAST_1', 'GovCloud', 'CN_NORTH_1', 'US_EAST_2', 'AP_SOUTH_1', 'AP_NORTHEAST_2', 'CA_CENTRAL_1', 'EU_CENTRAL_1', 'EU_WEST_2'])
|
116
128
|
return false unless aws_region_validator.valid?(@aws_region)
|
117
129
|
true
|
118
130
|
end
|
@@ -120,9 +132,9 @@ module SematextCloud
|
|
120
132
|
# Custom attribute writer method checking allowed values (enum).
|
121
133
|
# @param [Object] aws_fetch_frequency Object to be assigned
|
122
134
|
def aws_fetch_frequency=(aws_fetch_frequency)
|
123
|
-
validator = EnumAttributeValidator.new('
|
135
|
+
validator = EnumAttributeValidator.new('Object', ['MINUTE', 'FIVE_MINUTES', 'FIFTEEN_MINUTES'])
|
124
136
|
unless validator.valid?(aws_fetch_frequency)
|
125
|
-
fail ArgumentError,
|
137
|
+
fail ArgumentError, "invalid value for \"aws_fetch_frequency\", must be one of #{validator.allowable_values}."
|
126
138
|
end
|
127
139
|
@aws_fetch_frequency = aws_fetch_frequency
|
128
140
|
end
|
@@ -130,9 +142,9 @@ module SematextCloud
|
|
130
142
|
# Custom attribute writer method checking allowed values (enum).
|
131
143
|
# @param [Object] aws_region Object to be assigned
|
132
144
|
def aws_region=(aws_region)
|
133
|
-
validator = EnumAttributeValidator.new('
|
145
|
+
validator = EnumAttributeValidator.new('Object', ['US_EAST_1', 'US_WEST_1', 'EU_WEST_1', 'US_WEST_2', 'AP_SOUTHEAST_1', 'AP_SOUTHEAST_2', 'AP_NORTHEAST_1', 'SA_EAST_1', 'GovCloud', 'CN_NORTH_1', 'US_EAST_2', 'AP_SOUTH_1', 'AP_NORTHEAST_2', 'CA_CENTRAL_1', 'EU_CENTRAL_1', 'EU_WEST_2'])
|
134
146
|
unless validator.valid?(aws_region)
|
135
|
-
fail ArgumentError,
|
147
|
+
fail ArgumentError, "invalid value for \"aws_region\", must be one of #{validator.allowable_values}."
|
136
148
|
end
|
137
149
|
@aws_region = aws_region
|
138
150
|
end
|
@@ -156,26 +168,35 @@ module SematextCloud
|
|
156
168
|
end
|
157
169
|
|
158
170
|
# Calculates hash code according to all attributes.
|
159
|
-
# @return [
|
171
|
+
# @return [Integer] Hash code
|
160
172
|
def hash
|
161
173
|
[aws_cloud_watch_access_key, aws_cloud_watch_secret_key, aws_fetch_frequency, aws_region, sub_types].hash
|
162
174
|
end
|
163
175
|
|
176
|
+
# Builds the object from hash
|
177
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
178
|
+
# @return [Object] Returns the model itself
|
179
|
+
def self.build_from_hash(attributes)
|
180
|
+
new.build_from_hash(attributes)
|
181
|
+
end
|
182
|
+
|
164
183
|
# Builds the object from hash
|
165
184
|
# @param [Hash] attributes Model attributes in the form of hash
|
166
185
|
# @return [Object] Returns the model itself
|
167
186
|
def build_from_hash(attributes)
|
168
187
|
return nil unless attributes.is_a?(Hash)
|
169
|
-
self.class.
|
188
|
+
self.class.openapi_types.each_pair do |key, type|
|
170
189
|
if type =~ /\AArray<(.*)>/i
|
171
|
-
# check to ensure the input is an array given that the
|
190
|
+
# check to ensure the input is an array given that the attribute
|
172
191
|
# is documented as an array but the input is not
|
173
192
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
174
193
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
175
194
|
end
|
176
195
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
177
196
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
178
|
-
|
197
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
198
|
+
self.send("#{key}=", nil)
|
199
|
+
end
|
179
200
|
end
|
180
201
|
|
181
202
|
self
|
@@ -197,7 +218,7 @@ module SematextCloud
|
|
197
218
|
value.to_i
|
198
219
|
when :Float
|
199
220
|
value.to_f
|
200
|
-
when :
|
221
|
+
when :Boolean
|
201
222
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
202
223
|
true
|
203
224
|
else
|
@@ -218,8 +239,7 @@ module SematextCloud
|
|
218
239
|
end
|
219
240
|
end
|
220
241
|
else # model
|
221
|
-
|
222
|
-
temp_model.build_from_hash(value)
|
242
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
223
243
|
end
|
224
244
|
end
|
225
245
|
|
@@ -241,7 +261,11 @@ module SematextCloud
|
|
241
261
|
hash = {}
|
242
262
|
self.class.attribute_map.each_pair do |attr, param|
|
243
263
|
value = self.send(attr)
|
244
|
-
|
264
|
+
if value.nil?
|
265
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
266
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
267
|
+
end
|
268
|
+
|
245
269
|
hash[param] = _to_hash(value)
|
246
270
|
end
|
247
271
|
hash
|
@@ -263,6 +287,5 @@ module SematextCloud
|
|
263
287
|
else
|
264
288
|
value
|
265
289
|
end
|
266
|
-
end
|
267
|
-
end
|
290
|
+
end end
|
268
291
|
end
|
@@ -6,13 +6,13 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
module
|
15
|
-
class
|
14
|
+
module SematextCloud
|
15
|
+
class AppResponse
|
16
16
|
attr_accessor :data
|
17
17
|
|
18
18
|
attr_accessor :errors
|
@@ -51,13 +51,13 @@ module stcloud
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
53
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::AppResponse` initialize method"
|
55
55
|
end
|
56
56
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::AppResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
61
|
end
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
@@ -183,7 +183,7 @@ module stcloud
|
|
183
183
|
end
|
184
184
|
end
|
185
185
|
else # model
|
186
|
-
|
186
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
@@ -6,12 +6,12 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
module
|
14
|
+
module SematextCloud
|
15
15
|
class AppResponseEntry
|
16
16
|
attr_accessor :app
|
17
17
|
|
@@ -39,13 +39,13 @@ module stcloud
|
|
39
39
|
# @param [Hash] attributes Model attributes in the form of hash
|
40
40
|
def initialize(attributes = {})
|
41
41
|
if (!attributes.is_a?(Hash))
|
42
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
42
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::AppResponseEntry` initialize method"
|
43
43
|
end
|
44
44
|
|
45
45
|
# check to see if the attribute exists and convert string to symbol for hash key
|
46
46
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
47
47
|
if (!self.class.attribute_map.key?(k.to_sym))
|
48
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
48
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::AppResponseEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
49
49
|
end
|
50
50
|
h[k.to_sym] = v
|
51
51
|
}
|
@@ -154,7 +154,7 @@ module stcloud
|
|
154
154
|
end
|
155
155
|
end
|
156
156
|
else # model
|
157
|
-
|
157
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
158
158
|
end
|
159
159
|
end
|
160
160
|
|
@@ -6,12 +6,12 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
module
|
14
|
+
module SematextCloud
|
15
15
|
class AppTypesResponse
|
16
16
|
attr_accessor :data
|
17
17
|
|
@@ -51,13 +51,13 @@ module stcloud
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
53
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::AppTypesResponse` initialize method"
|
55
55
|
end
|
56
56
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::AppTypesResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
61
|
end
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
@@ -183,7 +183,7 @@ module stcloud
|
|
183
183
|
end
|
184
184
|
end
|
185
185
|
else # model
|
186
|
-
|
186
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
@@ -6,12 +6,12 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
module
|
14
|
+
module SematextCloud
|
15
15
|
class AppTypesResponseEntry
|
16
16
|
attr_accessor :app_types
|
17
17
|
|
@@ -39,13 +39,13 @@ module stcloud
|
|
39
39
|
# @param [Hash] attributes Model attributes in the form of hash
|
40
40
|
def initialize(attributes = {})
|
41
41
|
if (!attributes.is_a?(Hash))
|
42
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
42
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::AppTypesResponseEntry` initialize method"
|
43
43
|
end
|
44
44
|
|
45
45
|
# check to see if the attribute exists and convert string to symbol for hash key
|
46
46
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
47
47
|
if (!self.class.attribute_map.key?(k.to_sym))
|
48
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
48
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::AppTypesResponseEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
49
49
|
end
|
50
50
|
h[k.to_sym] = v
|
51
51
|
}
|
@@ -156,7 +156,7 @@ module stcloud
|
|
156
156
|
end
|
157
157
|
end
|
158
158
|
else # model
|
159
|
-
|
159
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
@@ -6,13 +6,13 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
module
|
15
|
-
class
|
14
|
+
module SematextCloud
|
15
|
+
class AppsResponse
|
16
16
|
attr_accessor :data
|
17
17
|
|
18
18
|
attr_accessor :errors
|
@@ -51,13 +51,13 @@ module stcloud
|
|
51
51
|
# @param [Hash] attributes Model attributes in the form of hash
|
52
52
|
def initialize(attributes = {})
|
53
53
|
if (!attributes.is_a?(Hash))
|
54
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::AppsResponse` initialize method"
|
55
55
|
end
|
56
56
|
|
57
57
|
# check to see if the attribute exists and convert string to symbol for hash key
|
58
58
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
59
|
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::AppsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
61
|
end
|
62
62
|
h[k.to_sym] = v
|
63
63
|
}
|
@@ -183,7 +183,7 @@ module stcloud
|
|
183
183
|
end
|
184
184
|
end
|
185
185
|
else # model
|
186
|
-
|
186
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
187
187
|
end
|
188
188
|
end
|
189
189
|
|
@@ -6,12 +6,12 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version: 3.0.
|
9
|
+
Swagger Codegen version: 3.0.34
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
13
13
|
|
14
|
-
module
|
14
|
+
module SematextCloud
|
15
15
|
class AppsResponseEntry
|
16
16
|
attr_accessor :apps
|
17
17
|
|
@@ -39,13 +39,13 @@ module stcloud
|
|
39
39
|
# @param [Hash] attributes Model attributes in the form of hash
|
40
40
|
def initialize(attributes = {})
|
41
41
|
if (!attributes.is_a?(Hash))
|
42
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `
|
42
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::AppsResponseEntry` initialize method"
|
43
43
|
end
|
44
44
|
|
45
45
|
# check to see if the attribute exists and convert string to symbol for hash key
|
46
46
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
47
47
|
if (!self.class.attribute_map.key?(k.to_sym))
|
48
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `
|
48
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::AppsResponseEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
49
49
|
end
|
50
50
|
h[k.to_sym] = v
|
51
51
|
}
|
@@ -156,7 +156,7 @@ module stcloud
|
|
156
156
|
end
|
157
157
|
end
|
158
158
|
else # model
|
159
|
-
|
159
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
@@ -6,8 +6,7 @@
|
|
6
6
|
OpenAPI spec version: v3
|
7
7
|
|
8
8
|
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
-
Swagger Codegen version:
|
10
|
-
|
9
|
+
Swagger Codegen version: 3.0.34
|
11
10
|
=end
|
12
11
|
|
13
12
|
require 'date'
|
@@ -49,26 +48,39 @@ module SematextCloud
|
|
49
48
|
end
|
50
49
|
|
51
50
|
# Attribute type mapping.
|
52
|
-
def self.
|
51
|
+
def self.openapi_types
|
53
52
|
{
|
54
|
-
:'auth_type' => :'
|
55
|
-
:'uuid' => :'
|
53
|
+
:'auth_type' => :'Object',
|
54
|
+
:'uuid' => :'Object'
|
56
55
|
}
|
57
56
|
end
|
58
57
|
|
58
|
+
# List of attributes with nullable: true
|
59
|
+
def self.openapi_nullable
|
60
|
+
Set.new([
|
61
|
+
])
|
62
|
+
end
|
63
|
+
|
59
64
|
# Initializes the object
|
60
65
|
# @param [Hash] attributes Model attributes in the form of hash
|
61
66
|
def initialize(attributes = {})
|
62
|
-
|
67
|
+
if (!attributes.is_a?(Hash))
|
68
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `SematextCloud::BasicAuthMethodDto` initialize method"
|
69
|
+
end
|
63
70
|
|
64
|
-
# convert string to symbol for hash key
|
65
|
-
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
72
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
73
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
74
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `SematextCloud::BasicAuthMethodDto`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
75
|
+
end
|
76
|
+
h[k.to_sym] = v
|
77
|
+
}
|
66
78
|
|
67
|
-
if attributes.
|
68
|
-
self.auth_type = attributes[:'
|
79
|
+
if attributes.key?(:'auth_type')
|
80
|
+
self.auth_type = attributes[:'auth_type']
|
69
81
|
end
|
70
82
|
|
71
|
-
if attributes.
|
83
|
+
if attributes.key?(:'uuid')
|
72
84
|
self.uuid = attributes[:'uuid']
|
73
85
|
end
|
74
86
|
end
|
@@ -83,7 +95,7 @@ module SematextCloud
|
|
83
95
|
# Check to see if the all the properties in the model are valid
|
84
96
|
# @return true if the model is valid
|
85
97
|
def valid?
|
86
|
-
auth_type_validator = EnumAttributeValidator.new('
|
98
|
+
auth_type_validator = EnumAttributeValidator.new('Object', ['SEMATEXT_ACCOUNT', 'LDAP'])
|
87
99
|
return false unless auth_type_validator.valid?(@auth_type)
|
88
100
|
true
|
89
101
|
end
|
@@ -91,9 +103,9 @@ module SematextCloud
|
|
91
103
|
# Custom attribute writer method checking allowed values (enum).
|
92
104
|
# @param [Object] auth_type Object to be assigned
|
93
105
|
def auth_type=(auth_type)
|
94
|
-
validator = EnumAttributeValidator.new('
|
106
|
+
validator = EnumAttributeValidator.new('Object', ['SEMATEXT_ACCOUNT', 'LDAP'])
|
95
107
|
unless validator.valid?(auth_type)
|
96
|
-
fail ArgumentError,
|
108
|
+
fail ArgumentError, "invalid value for \"auth_type\", must be one of #{validator.allowable_values}."
|
97
109
|
end
|
98
110
|
@auth_type = auth_type
|
99
111
|
end
|
@@ -114,26 +126,35 @@ module SematextCloud
|
|
114
126
|
end
|
115
127
|
|
116
128
|
# Calculates hash code according to all attributes.
|
117
|
-
# @return [
|
129
|
+
# @return [Integer] Hash code
|
118
130
|
def hash
|
119
131
|
[auth_type, uuid].hash
|
120
132
|
end
|
121
133
|
|
134
|
+
# Builds the object from hash
|
135
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
136
|
+
# @return [Object] Returns the model itself
|
137
|
+
def self.build_from_hash(attributes)
|
138
|
+
new.build_from_hash(attributes)
|
139
|
+
end
|
140
|
+
|
122
141
|
# Builds the object from hash
|
123
142
|
# @param [Hash] attributes Model attributes in the form of hash
|
124
143
|
# @return [Object] Returns the model itself
|
125
144
|
def build_from_hash(attributes)
|
126
145
|
return nil unless attributes.is_a?(Hash)
|
127
|
-
self.class.
|
146
|
+
self.class.openapi_types.each_pair do |key, type|
|
128
147
|
if type =~ /\AArray<(.*)>/i
|
129
|
-
# check to ensure the input is an array given that the
|
148
|
+
# check to ensure the input is an array given that the attribute
|
130
149
|
# is documented as an array but the input is not
|
131
150
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
132
151
|
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
133
152
|
end
|
134
153
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
135
154
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
136
|
-
|
155
|
+
elsif attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
156
|
+
self.send("#{key}=", nil)
|
157
|
+
end
|
137
158
|
end
|
138
159
|
|
139
160
|
self
|
@@ -155,7 +176,7 @@ module SematextCloud
|
|
155
176
|
value.to_i
|
156
177
|
when :Float
|
157
178
|
value.to_f
|
158
|
-
when :
|
179
|
+
when :Boolean
|
159
180
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
160
181
|
true
|
161
182
|
else
|
@@ -176,8 +197,7 @@ module SematextCloud
|
|
176
197
|
end
|
177
198
|
end
|
178
199
|
else # model
|
179
|
-
|
180
|
-
temp_model.build_from_hash(value)
|
200
|
+
SematextCloud.const_get(type).build_from_hash(value)
|
181
201
|
end
|
182
202
|
end
|
183
203
|
|
@@ -199,7 +219,11 @@ module SematextCloud
|
|
199
219
|
hash = {}
|
200
220
|
self.class.attribute_map.each_pair do |attr, param|
|
201
221
|
value = self.send(attr)
|
202
|
-
|
222
|
+
if value.nil?
|
223
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
224
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
225
|
+
end
|
226
|
+
|
203
227
|
hash[param] = _to_hash(value)
|
204
228
|
end
|
205
229
|
hash
|
@@ -221,6 +245,5 @@ module SematextCloud
|
|
221
245
|
else
|
222
246
|
value
|
223
247
|
end
|
224
|
-
end
|
225
|
-
end
|
248
|
+
end end
|
226
249
|
end
|