SematextCloud 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +7 -0
- data/LICENSE +13 -0
- data/README.md +149 -0
- data/Rakefile +8 -0
- data/SematextCloud.gemspec +45 -0
- data/docs/AlertNotificationRequest.md +9 -0
- data/docs/AlertNotificationsApi.md +118 -0
- data/docs/AlertRule.md +53 -0
- data/docs/AlertRuleScheduleTimeRangeDto.md +7 -0
- data/docs/AlertRuleScheduleWeekdayDto.md +10 -0
- data/docs/AlertsApi.md +270 -0
- data/docs/App.md +32 -0
- data/docs/AppDescription.md +6 -0
- data/docs/AppMetadata.md +10 -0
- data/docs/AppsApi.md +369 -0
- data/docs/AwsSettingsControllerApi.md +63 -0
- data/docs/BasicAuthMethodDto.md +7 -0
- data/docs/BasicOrganizationDto.md +9 -0
- data/docs/BillingApi.md +176 -0
- data/docs/BillingInfo.md +8 -0
- data/docs/CloudWatchSettings.md +9 -0
- data/docs/CreateAppInfo.md +10 -0
- data/docs/DataSeriesFilter.md +8 -0
- data/docs/DataSeriesRequest.md +12 -0
- data/docs/Error.md +7 -0
- data/docs/FilterValue.md +11 -0
- data/docs/GenericApiResponse.md +9 -0
- data/docs/Invitation.md +15 -0
- data/docs/LogsAppApi.md +58 -0
- data/docs/MetricsApi.md +227 -0
- data/docs/MonitoringAppApi.md +58 -0
- data/docs/NotificationIntegration.md +15 -0
- data/docs/Plan.md +18 -0
- data/docs/ReportInfo.md +13 -0
- data/docs/ResetPasswordApi.md +58 -0
- data/docs/SavedQueriesApi.md +220 -0
- data/docs/SavedQuery.md +18 -0
- data/docs/ServiceIntegration.md +17 -0
- data/docs/SubscriptionsApi.md +114 -0
- data/docs/TagApiControllerApi.md +212 -0
- data/docs/UpdateAppInfo.md +14 -0
- data/docs/UserInfo.md +6 -0
- data/docs/UserPermissions.md +8 -0
- data/docs/UserRole.md +8 -0
- data/lib/SematextCloud.rb +78 -0
- data/lib/SematextCloud/api/alert_notifications_api.rb +137 -0
- data/lib/SematextCloud/api/alerts_api.rb +283 -0
- data/lib/SematextCloud/api/apps_api.rb +381 -0
- data/lib/SematextCloud/api/aws_settings_controller_api.rb +83 -0
- data/lib/SematextCloud/api/billing_api.rb +197 -0
- data/lib/SematextCloud/api/logs_app_api.rb +75 -0
- data/lib/SematextCloud/api/metrics_api.rb +247 -0
- data/lib/SematextCloud/api/monitoring_app_api.rb +75 -0
- data/lib/SematextCloud/api/reset_password_api.rb +75 -0
- data/lib/SematextCloud/api/saved_queries_api.rb +237 -0
- data/lib/SematextCloud/api/subscriptions_api.rb +133 -0
- data/lib/SematextCloud/api/tag_api_controller_api.rb +247 -0
- data/lib/SematextCloud/api_client.rb +389 -0
- data/lib/SematextCloud/api_error.rb +38 -0
- data/lib/SematextCloud/configuration.rb +209 -0
- data/lib/SematextCloud/models/alert_notification_request.rb +212 -0
- data/lib/SematextCloud/models/alert_rule.rb +652 -0
- data/lib/SematextCloud/models/alert_rule_schedule_time_range_dto.rb +192 -0
- data/lib/SematextCloud/models/alert_rule_schedule_weekday_dto.rb +221 -0
- data/lib/SematextCloud/models/app.rb +419 -0
- data/lib/SematextCloud/models/app_description.rb +183 -0
- data/lib/SematextCloud/models/app_metadata.rb +268 -0
- data/lib/SematextCloud/models/basic_auth_method_dto.rb +226 -0
- data/lib/SematextCloud/models/basic_organization_dto.rb +246 -0
- data/lib/SematextCloud/models/billing_info.rb +201 -0
- data/lib/SematextCloud/models/cloud_watch_settings.rb +256 -0
- data/lib/SematextCloud/models/create_app_info.rb +220 -0
- data/lib/SematextCloud/models/data_series_filter.rb +237 -0
- data/lib/SematextCloud/models/data_series_request.rb +283 -0
- data/lib/SematextCloud/models/error.rb +192 -0
- data/lib/SematextCloud/models/filter_value.rb +230 -0
- data/lib/SematextCloud/models/generic_api_response.rb +214 -0
- data/lib/SematextCloud/models/invitation.rb +326 -0
- data/lib/SematextCloud/models/notification_integration.rb +324 -0
- data/lib/SematextCloud/models/plan.rb +337 -0
- data/lib/SematextCloud/models/report_info.rb +247 -0
- data/lib/SematextCloud/models/saved_query.rb +291 -0
- data/lib/SematextCloud/models/service_integration.rb +282 -0
- data/lib/SematextCloud/models/update_app_info.rb +289 -0
- data/lib/SematextCloud/models/user_info.rb +183 -0
- data/lib/SematextCloud/models/user_permissions.rb +201 -0
- data/lib/SematextCloud/models/user_role.rb +247 -0
- data/lib/SematextCloud/version.rb +15 -0
- data/spec/api/alert_notifications_api_spec.rb +60 -0
- data/spec/api/alerts_api_spec.rb +90 -0
- data/spec/api/apps_api_spec.rb +113 -0
- data/spec/api/aws_settings_controller_api_spec.rb +48 -0
- data/spec/api/billing_api_spec.rb +72 -0
- data/spec/api/logs_app_api_spec.rb +46 -0
- data/spec/api/metrics_api_spec.rb +83 -0
- data/spec/api/monitoring_app_api_spec.rb +46 -0
- data/spec/api/reset_password_api_spec.rb +46 -0
- data/spec/api/saved_queries_api_spec.rb +80 -0
- data/spec/api/subscriptions_api_spec.rb +58 -0
- data/spec/api/tag_api_controller_api_spec.rb +88 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/alert_notification_request_spec.rb +59 -0
- data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +47 -0
- data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +65 -0
- data/spec/models/alert_rule_spec.rb +327 -0
- data/spec/models/app_description_spec.rb +41 -0
- data/spec/models/app_metadata_spec.rb +77 -0
- data/spec/models/app_spec.rb +197 -0
- data/spec/models/basic_auth_method_dto_spec.rb +51 -0
- data/spec/models/basic_organization_dto_spec.rb +63 -0
- data/spec/models/billing_info_spec.rb +53 -0
- data/spec/models/cloud_watch_settings_spec.rb +67 -0
- data/spec/models/create_app_info_spec.rb +65 -0
- data/spec/models/data_series_filter_spec.rb +57 -0
- data/spec/models/data_series_request_spec.rb +81 -0
- data/spec/models/error_spec.rb +47 -0
- data/spec/models/filter_value_spec.rb +71 -0
- data/spec/models/generic_api_response_spec.rb +59 -0
- data/spec/models/invitation_spec.rb +107 -0
- data/spec/models/notification_integration_spec.rb +107 -0
- data/spec/models/plan_spec.rb +121 -0
- data/spec/models/report_info_spec.rb +83 -0
- data/spec/models/saved_query_spec.rb +113 -0
- data/spec/models/service_integration_spec.rb +107 -0
- data/spec/models/update_app_info_spec.rb +93 -0
- data/spec/models/user_info_spec.rb +41 -0
- data/spec/models/user_permissions_spec.rb +53 -0
- data/spec/models/user_role_spec.rb +61 -0
- data/spec/spec_helper.rb +111 -0
- metadata +395 -0
data/docs/App.md
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
# SematextCloud::App
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**ajax_threshold** | **Integer** | | [optional]
|
7
|
+
**app_type** | **String** | | [optional]
|
8
|
+
**app_type_id** | **Integer** | | [optional]
|
9
|
+
**creator_email** | **String** | | [optional]
|
10
|
+
**credit_card_expiry** | **String** | | [optional]
|
11
|
+
**credit_card_number** | **String** | | [optional]
|
12
|
+
**description** | **String** | | [optional]
|
13
|
+
**display_status** | **String** | | [optional]
|
14
|
+
**first_data_saved_date** | **Integer** | | [optional]
|
15
|
+
**id** | **Integer** | | [optional]
|
16
|
+
**integration** | [**ServiceIntegration**](ServiceIntegration.md) | | [optional]
|
17
|
+
**last_data_received_date** | **Integer** | | [optional]
|
18
|
+
**last_data_saved_date** | **Integer** | | [optional]
|
19
|
+
**logged_in_user_app_role** | **String** | | [optional]
|
20
|
+
**monthly_invoice_account** | **BOOLEAN** | | [optional]
|
21
|
+
**name** | **String** | | [optional]
|
22
|
+
**owner_email** | **String** | | [optional]
|
23
|
+
**owning_organization** | [**BasicOrganizationDto**](BasicOrganizationDto.md) | | [optional]
|
24
|
+
**page_load_threshold** | **Integer** | | [optional]
|
25
|
+
**payment_method_id** | **Integer** | | [optional]
|
26
|
+
**plan** | [**Plan**](Plan.md) | | [optional]
|
27
|
+
**prepaid_account** | **BOOLEAN** | | [optional]
|
28
|
+
**status** | **String** | | [optional]
|
29
|
+
**token** | **String** | | [optional]
|
30
|
+
**trial_end_date** | **Integer** | | [optional]
|
31
|
+
**url_group_limit** | **Integer** | | [optional]
|
32
|
+
**user_roles** | [**Array<UserRole>**](UserRole.md) | | [optional]
|
data/docs/AppMetadata.md
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
# SematextCloud::AppMetadata
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**aws_cloud_watch_access_key** | **String** | | [optional]
|
7
|
+
**aws_cloud_watch_secret_key** | **String** | | [optional]
|
8
|
+
**aws_fetch_frequency** | **String** | | [optional]
|
9
|
+
**aws_region** | **String** | | [optional]
|
10
|
+
**sub_types** | **Array<String>** | Comma separated list of AWS types monitored by created app | [optional]
|
data/docs/AppsApi.md
ADDED
@@ -0,0 +1,369 @@
|
|
1
|
+
# SematextCloud::AppsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_app_types_using_get**](AppsApi.md#get_app_types_using_get) | **GET** /users-web/api/v3/apps/types | Get all App types supported for the account identified with apiKey
|
8
|
+
[**get_using_get**](AppsApi.md#get_using_get) | **GET** /users-web/api/v3/apps/{anyStateAppId} | Gets defails for one particular App
|
9
|
+
[**invite_app_guests_using_post**](AppsApi.md#invite_app_guests_using_post) | **POST** /users-web/api/v3/apps/guests | Invite guests to an app
|
10
|
+
[**list_apps_users_using_get**](AppsApi.md#list_apps_users_using_get) | **GET** /users-web/api/v3/apps/users | Get all users of apps accessible to this account
|
11
|
+
[**list_using_get**](AppsApi.md#list_using_get) | **GET** /users-web/api/v3/apps | Get all apps accessible by account identified with apiKey
|
12
|
+
[**update_description_using_put**](AppsApi.md#update_description_using_put) | **PUT** /users-web/api/v3/apps/{anyStateAppId}/description | Update description of the app
|
13
|
+
[**update_using_put1**](AppsApi.md#update_using_put1) | **PUT** /users-web/api/v3/apps/{anyStateAppId} | Update app
|
14
|
+
|
15
|
+
|
16
|
+
# **get_app_types_using_get**
|
17
|
+
> GenericApiResponse get_app_types_using_get
|
18
|
+
|
19
|
+
Get all App types supported for the account identified with apiKey
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'SematextCloud'
|
25
|
+
# setup authorization
|
26
|
+
SematextCloud.configure do |config|
|
27
|
+
# Configure API key authorization: api_key
|
28
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
29
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
30
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
31
|
+
end
|
32
|
+
|
33
|
+
api_instance = SematextCloud::AppsApi.new
|
34
|
+
|
35
|
+
begin
|
36
|
+
#Get all App types supported for the account identified with apiKey
|
37
|
+
result = api_instance.get_app_types_using_get
|
38
|
+
p result
|
39
|
+
rescue SematextCloud::ApiError => e
|
40
|
+
puts "Exception when calling AppsApi->get_app_types_using_get: #{e}"
|
41
|
+
end
|
42
|
+
```
|
43
|
+
|
44
|
+
### Parameters
|
45
|
+
This endpoint does not need any parameter.
|
46
|
+
|
47
|
+
### Return type
|
48
|
+
|
49
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
50
|
+
|
51
|
+
### Authorization
|
52
|
+
|
53
|
+
[api_key](../README.md#api_key)
|
54
|
+
|
55
|
+
### HTTP request headers
|
56
|
+
|
57
|
+
- **Content-Type**: application/json
|
58
|
+
- **Accept**: application/json
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
# **get_using_get**
|
63
|
+
> GenericApiResponse get_using_get(any_state_app_id)
|
64
|
+
|
65
|
+
Gets defails for one particular App
|
66
|
+
|
67
|
+
### Example
|
68
|
+
```ruby
|
69
|
+
# load the gem
|
70
|
+
require 'SematextCloud'
|
71
|
+
# setup authorization
|
72
|
+
SematextCloud.configure do |config|
|
73
|
+
# Configure API key authorization: api_key
|
74
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
75
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
76
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
77
|
+
end
|
78
|
+
|
79
|
+
api_instance = SematextCloud::AppsApi.new
|
80
|
+
|
81
|
+
any_state_app_id = 789 # Integer | anyStateAppId
|
82
|
+
|
83
|
+
|
84
|
+
begin
|
85
|
+
#Gets defails for one particular App
|
86
|
+
result = api_instance.get_using_get(any_state_app_id)
|
87
|
+
p result
|
88
|
+
rescue SematextCloud::ApiError => e
|
89
|
+
puts "Exception when calling AppsApi->get_using_get: #{e}"
|
90
|
+
end
|
91
|
+
```
|
92
|
+
|
93
|
+
### Parameters
|
94
|
+
|
95
|
+
Name | Type | Description | Notes
|
96
|
+
------------- | ------------- | ------------- | -------------
|
97
|
+
**any_state_app_id** | **Integer**| anyStateAppId |
|
98
|
+
|
99
|
+
### Return type
|
100
|
+
|
101
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
102
|
+
|
103
|
+
### Authorization
|
104
|
+
|
105
|
+
[api_key](../README.md#api_key)
|
106
|
+
|
107
|
+
### HTTP request headers
|
108
|
+
|
109
|
+
- **Content-Type**: application/json
|
110
|
+
- **Accept**: application/json
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
# **invite_app_guests_using_post**
|
115
|
+
> GenericApiResponse invite_app_guests_using_post(invitation)
|
116
|
+
|
117
|
+
Invite guests to an app
|
118
|
+
|
119
|
+
### Example
|
120
|
+
```ruby
|
121
|
+
# load the gem
|
122
|
+
require 'SematextCloud'
|
123
|
+
# setup authorization
|
124
|
+
SematextCloud.configure do |config|
|
125
|
+
# Configure API key authorization: api_key
|
126
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
127
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
128
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
129
|
+
end
|
130
|
+
|
131
|
+
api_instance = SematextCloud::AppsApi.new
|
132
|
+
|
133
|
+
invitation = SematextCloud::Invitation.new # Invitation | For `app` and `apps` fields only `id` needs to be populated.Other fields can be left empty or with default values
|
134
|
+
|
135
|
+
|
136
|
+
begin
|
137
|
+
#Invite guests to an app
|
138
|
+
result = api_instance.invite_app_guests_using_post(invitation)
|
139
|
+
p result
|
140
|
+
rescue SematextCloud::ApiError => e
|
141
|
+
puts "Exception when calling AppsApi->invite_app_guests_using_post: #{e}"
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
### Parameters
|
146
|
+
|
147
|
+
Name | Type | Description | Notes
|
148
|
+
------------- | ------------- | ------------- | -------------
|
149
|
+
**invitation** | [**Invitation**](Invitation.md)| For `app` and `apps` fields only `id` needs to be populated.Other fields can be left empty or with default values |
|
150
|
+
|
151
|
+
### Return type
|
152
|
+
|
153
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
154
|
+
|
155
|
+
### Authorization
|
156
|
+
|
157
|
+
[api_key](../README.md#api_key)
|
158
|
+
|
159
|
+
### HTTP request headers
|
160
|
+
|
161
|
+
- **Content-Type**: application/json
|
162
|
+
- **Accept**: application/json
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
# **list_apps_users_using_get**
|
167
|
+
> GenericApiResponse list_apps_users_using_get
|
168
|
+
|
169
|
+
Get all users of apps accessible to this account
|
170
|
+
|
171
|
+
### Example
|
172
|
+
```ruby
|
173
|
+
# load the gem
|
174
|
+
require 'SematextCloud'
|
175
|
+
# setup authorization
|
176
|
+
SematextCloud.configure do |config|
|
177
|
+
# Configure API key authorization: api_key
|
178
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
179
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
180
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
181
|
+
end
|
182
|
+
|
183
|
+
api_instance = SematextCloud::AppsApi.new
|
184
|
+
|
185
|
+
begin
|
186
|
+
#Get all users of apps accessible to this account
|
187
|
+
result = api_instance.list_apps_users_using_get
|
188
|
+
p result
|
189
|
+
rescue SematextCloud::ApiError => e
|
190
|
+
puts "Exception when calling AppsApi->list_apps_users_using_get: #{e}"
|
191
|
+
end
|
192
|
+
```
|
193
|
+
|
194
|
+
### Parameters
|
195
|
+
This endpoint does not need any parameter.
|
196
|
+
|
197
|
+
### Return type
|
198
|
+
|
199
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
200
|
+
|
201
|
+
### Authorization
|
202
|
+
|
203
|
+
[api_key](../README.md#api_key)
|
204
|
+
|
205
|
+
### HTTP request headers
|
206
|
+
|
207
|
+
- **Content-Type**: application/json
|
208
|
+
- **Accept**: application/json
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
# **list_using_get**
|
213
|
+
> GenericApiResponse list_using_get
|
214
|
+
|
215
|
+
Get all apps accessible by account identified with apiKey
|
216
|
+
|
217
|
+
### Example
|
218
|
+
```ruby
|
219
|
+
# load the gem
|
220
|
+
require 'SematextCloud'
|
221
|
+
# setup authorization
|
222
|
+
SematextCloud.configure do |config|
|
223
|
+
# Configure API key authorization: api_key
|
224
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
225
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
226
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
227
|
+
end
|
228
|
+
|
229
|
+
api_instance = SematextCloud::AppsApi.new
|
230
|
+
|
231
|
+
begin
|
232
|
+
#Get all apps accessible by account identified with apiKey
|
233
|
+
result = api_instance.list_using_get
|
234
|
+
p result
|
235
|
+
rescue SematextCloud::ApiError => e
|
236
|
+
puts "Exception when calling AppsApi->list_using_get: #{e}"
|
237
|
+
end
|
238
|
+
```
|
239
|
+
|
240
|
+
### Parameters
|
241
|
+
This endpoint does not need any parameter.
|
242
|
+
|
243
|
+
### Return type
|
244
|
+
|
245
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
246
|
+
|
247
|
+
### Authorization
|
248
|
+
|
249
|
+
[api_key](../README.md#api_key)
|
250
|
+
|
251
|
+
### HTTP request headers
|
252
|
+
|
253
|
+
- **Content-Type**: application/json
|
254
|
+
- **Accept**: application/json
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
# **update_description_using_put**
|
259
|
+
> GenericApiResponse update_description_using_put(any_state_app_id, opts)
|
260
|
+
|
261
|
+
Update description of the app
|
262
|
+
|
263
|
+
App can be in any state
|
264
|
+
|
265
|
+
### Example
|
266
|
+
```ruby
|
267
|
+
# load the gem
|
268
|
+
require 'SematextCloud'
|
269
|
+
# setup authorization
|
270
|
+
SematextCloud.configure do |config|
|
271
|
+
# Configure API key authorization: api_key
|
272
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
273
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
274
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
275
|
+
end
|
276
|
+
|
277
|
+
api_instance = SematextCloud::AppsApi.new
|
278
|
+
|
279
|
+
any_state_app_id = 789 # Integer | App Id
|
280
|
+
|
281
|
+
opts = {
|
282
|
+
update_details: SematextCloud::AppDescription.new # AppDescription | Update Details
|
283
|
+
}
|
284
|
+
|
285
|
+
begin
|
286
|
+
#Update description of the app
|
287
|
+
result = api_instance.update_description_using_put(any_state_app_id, opts)
|
288
|
+
p result
|
289
|
+
rescue SematextCloud::ApiError => e
|
290
|
+
puts "Exception when calling AppsApi->update_description_using_put: #{e}"
|
291
|
+
end
|
292
|
+
```
|
293
|
+
|
294
|
+
### Parameters
|
295
|
+
|
296
|
+
Name | Type | Description | Notes
|
297
|
+
------------- | ------------- | ------------- | -------------
|
298
|
+
**any_state_app_id** | **Integer**| App Id |
|
299
|
+
**update_details** | [**AppDescription**](AppDescription.md)| Update Details | [optional]
|
300
|
+
|
301
|
+
### Return type
|
302
|
+
|
303
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
304
|
+
|
305
|
+
### Authorization
|
306
|
+
|
307
|
+
[api_key](../README.md#api_key)
|
308
|
+
|
309
|
+
### HTTP request headers
|
310
|
+
|
311
|
+
- **Content-Type**: application/json
|
312
|
+
- **Accept**: application/json
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
# **update_using_put1**
|
317
|
+
> GenericApiResponse update_using_put1(dto, any_state_app_id)
|
318
|
+
|
319
|
+
Update app
|
320
|
+
|
321
|
+
App can be in any state
|
322
|
+
|
323
|
+
### Example
|
324
|
+
```ruby
|
325
|
+
# load the gem
|
326
|
+
require 'SematextCloud'
|
327
|
+
# setup authorization
|
328
|
+
SematextCloud.configure do |config|
|
329
|
+
# Configure API key authorization: api_key
|
330
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
331
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
332
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
333
|
+
end
|
334
|
+
|
335
|
+
api_instance = SematextCloud::AppsApi.new
|
336
|
+
|
337
|
+
dto = SematextCloud::UpdateAppInfo.new # UpdateAppInfo | dto
|
338
|
+
|
339
|
+
any_state_app_id = 789 # Integer | App Id
|
340
|
+
|
341
|
+
|
342
|
+
begin
|
343
|
+
#Update app
|
344
|
+
result = api_instance.update_using_put1(dto, any_state_app_id)
|
345
|
+
p result
|
346
|
+
rescue SematextCloud::ApiError => e
|
347
|
+
puts "Exception when calling AppsApi->update_using_put1: #{e}"
|
348
|
+
end
|
349
|
+
```
|
350
|
+
|
351
|
+
### Parameters
|
352
|
+
|
353
|
+
Name | Type | Description | Notes
|
354
|
+
------------- | ------------- | ------------- | -------------
|
355
|
+
**dto** | [**UpdateAppInfo**](UpdateAppInfo.md)| dto |
|
356
|
+
**any_state_app_id** | **Integer**| App Id |
|
357
|
+
|
358
|
+
### Return type
|
359
|
+
|
360
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
361
|
+
|
362
|
+
### Authorization
|
363
|
+
|
364
|
+
[api_key](../README.md#api_key)
|
365
|
+
|
366
|
+
### HTTP request headers
|
367
|
+
|
368
|
+
- **Content-Type**: application/json
|
369
|
+
- **Accept**: application/json
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# SematextCloud::AwsSettingsControllerApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://localhost*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**update_using_put**](AwsSettingsControllerApi.md#update_using_put) | **PUT** /users-web/api/v3/apps/{appId}/aws | Update App's AWS CloudWatch settings
|
8
|
+
|
9
|
+
|
10
|
+
# **update_using_put**
|
11
|
+
> GenericApiResponse update_using_put(app_id, dto)
|
12
|
+
|
13
|
+
Update App's AWS CloudWatch settings
|
14
|
+
|
15
|
+
Applicable only for AWS Apps
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'SematextCloud'
|
21
|
+
# setup authorization
|
22
|
+
SematextCloud.configure do |config|
|
23
|
+
# Configure API key authorization: api_key
|
24
|
+
config.api_key['Authorization'] = 'YOUR API KEY'
|
25
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
26
|
+
#config.api_key_prefix['Authorization'] = 'Bearer'
|
27
|
+
end
|
28
|
+
|
29
|
+
api_instance = SematextCloud::AwsSettingsControllerApi.new
|
30
|
+
|
31
|
+
app_id = 789 # Integer | appId
|
32
|
+
|
33
|
+
dto = SematextCloud::CloudWatchSettings.new # CloudWatchSettings | dto
|
34
|
+
|
35
|
+
|
36
|
+
begin
|
37
|
+
#Update App's AWS CloudWatch settings
|
38
|
+
result = api_instance.update_using_put(app_id, dto)
|
39
|
+
p result
|
40
|
+
rescue SematextCloud::ApiError => e
|
41
|
+
puts "Exception when calling AwsSettingsControllerApi->update_using_put: #{e}"
|
42
|
+
end
|
43
|
+
```
|
44
|
+
|
45
|
+
### Parameters
|
46
|
+
|
47
|
+
Name | Type | Description | Notes
|
48
|
+
------------- | ------------- | ------------- | -------------
|
49
|
+
**app_id** | **Integer**| appId |
|
50
|
+
**dto** | [**CloudWatchSettings**](CloudWatchSettings.md)| dto |
|
51
|
+
|
52
|
+
### Return type
|
53
|
+
|
54
|
+
[**GenericApiResponse**](GenericApiResponse.md)
|
55
|
+
|
56
|
+
### Authorization
|
57
|
+
|
58
|
+
[api_key](../README.md#api_key)
|
59
|
+
|
60
|
+
### HTTP request headers
|
61
|
+
|
62
|
+
- **Content-Type**: application/json
|
63
|
+
- **Accept**: application/json
|