SematextCloud 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/LICENSE +13 -0
  4. data/README.md +149 -0
  5. data/Rakefile +8 -0
  6. data/SematextCloud.gemspec +45 -0
  7. data/docs/AlertNotificationRequest.md +9 -0
  8. data/docs/AlertNotificationsApi.md +118 -0
  9. data/docs/AlertRule.md +53 -0
  10. data/docs/AlertRuleScheduleTimeRangeDto.md +7 -0
  11. data/docs/AlertRuleScheduleWeekdayDto.md +10 -0
  12. data/docs/AlertsApi.md +270 -0
  13. data/docs/App.md +32 -0
  14. data/docs/AppDescription.md +6 -0
  15. data/docs/AppMetadata.md +10 -0
  16. data/docs/AppsApi.md +369 -0
  17. data/docs/AwsSettingsControllerApi.md +63 -0
  18. data/docs/BasicAuthMethodDto.md +7 -0
  19. data/docs/BasicOrganizationDto.md +9 -0
  20. data/docs/BillingApi.md +176 -0
  21. data/docs/BillingInfo.md +8 -0
  22. data/docs/CloudWatchSettings.md +9 -0
  23. data/docs/CreateAppInfo.md +10 -0
  24. data/docs/DataSeriesFilter.md +8 -0
  25. data/docs/DataSeriesRequest.md +12 -0
  26. data/docs/Error.md +7 -0
  27. data/docs/FilterValue.md +11 -0
  28. data/docs/GenericApiResponse.md +9 -0
  29. data/docs/Invitation.md +15 -0
  30. data/docs/LogsAppApi.md +58 -0
  31. data/docs/MetricsApi.md +227 -0
  32. data/docs/MonitoringAppApi.md +58 -0
  33. data/docs/NotificationIntegration.md +15 -0
  34. data/docs/Plan.md +18 -0
  35. data/docs/ReportInfo.md +13 -0
  36. data/docs/ResetPasswordApi.md +58 -0
  37. data/docs/SavedQueriesApi.md +220 -0
  38. data/docs/SavedQuery.md +18 -0
  39. data/docs/ServiceIntegration.md +17 -0
  40. data/docs/SubscriptionsApi.md +114 -0
  41. data/docs/TagApiControllerApi.md +212 -0
  42. data/docs/UpdateAppInfo.md +14 -0
  43. data/docs/UserInfo.md +6 -0
  44. data/docs/UserPermissions.md +8 -0
  45. data/docs/UserRole.md +8 -0
  46. data/lib/SematextCloud.rb +78 -0
  47. data/lib/SematextCloud/api/alert_notifications_api.rb +137 -0
  48. data/lib/SematextCloud/api/alerts_api.rb +283 -0
  49. data/lib/SematextCloud/api/apps_api.rb +381 -0
  50. data/lib/SematextCloud/api/aws_settings_controller_api.rb +83 -0
  51. data/lib/SematextCloud/api/billing_api.rb +197 -0
  52. data/lib/SematextCloud/api/logs_app_api.rb +75 -0
  53. data/lib/SematextCloud/api/metrics_api.rb +247 -0
  54. data/lib/SematextCloud/api/monitoring_app_api.rb +75 -0
  55. data/lib/SematextCloud/api/reset_password_api.rb +75 -0
  56. data/lib/SematextCloud/api/saved_queries_api.rb +237 -0
  57. data/lib/SematextCloud/api/subscriptions_api.rb +133 -0
  58. data/lib/SematextCloud/api/tag_api_controller_api.rb +247 -0
  59. data/lib/SematextCloud/api_client.rb +389 -0
  60. data/lib/SematextCloud/api_error.rb +38 -0
  61. data/lib/SematextCloud/configuration.rb +209 -0
  62. data/lib/SematextCloud/models/alert_notification_request.rb +212 -0
  63. data/lib/SematextCloud/models/alert_rule.rb +652 -0
  64. data/lib/SematextCloud/models/alert_rule_schedule_time_range_dto.rb +192 -0
  65. data/lib/SematextCloud/models/alert_rule_schedule_weekday_dto.rb +221 -0
  66. data/lib/SematextCloud/models/app.rb +419 -0
  67. data/lib/SematextCloud/models/app_description.rb +183 -0
  68. data/lib/SematextCloud/models/app_metadata.rb +268 -0
  69. data/lib/SematextCloud/models/basic_auth_method_dto.rb +226 -0
  70. data/lib/SematextCloud/models/basic_organization_dto.rb +246 -0
  71. data/lib/SematextCloud/models/billing_info.rb +201 -0
  72. data/lib/SematextCloud/models/cloud_watch_settings.rb +256 -0
  73. data/lib/SematextCloud/models/create_app_info.rb +220 -0
  74. data/lib/SematextCloud/models/data_series_filter.rb +237 -0
  75. data/lib/SematextCloud/models/data_series_request.rb +283 -0
  76. data/lib/SematextCloud/models/error.rb +192 -0
  77. data/lib/SematextCloud/models/filter_value.rb +230 -0
  78. data/lib/SematextCloud/models/generic_api_response.rb +214 -0
  79. data/lib/SematextCloud/models/invitation.rb +326 -0
  80. data/lib/SematextCloud/models/notification_integration.rb +324 -0
  81. data/lib/SematextCloud/models/plan.rb +337 -0
  82. data/lib/SematextCloud/models/report_info.rb +247 -0
  83. data/lib/SematextCloud/models/saved_query.rb +291 -0
  84. data/lib/SematextCloud/models/service_integration.rb +282 -0
  85. data/lib/SematextCloud/models/update_app_info.rb +289 -0
  86. data/lib/SematextCloud/models/user_info.rb +183 -0
  87. data/lib/SematextCloud/models/user_permissions.rb +201 -0
  88. data/lib/SematextCloud/models/user_role.rb +247 -0
  89. data/lib/SematextCloud/version.rb +15 -0
  90. data/spec/api/alert_notifications_api_spec.rb +60 -0
  91. data/spec/api/alerts_api_spec.rb +90 -0
  92. data/spec/api/apps_api_spec.rb +113 -0
  93. data/spec/api/aws_settings_controller_api_spec.rb +48 -0
  94. data/spec/api/billing_api_spec.rb +72 -0
  95. data/spec/api/logs_app_api_spec.rb +46 -0
  96. data/spec/api/metrics_api_spec.rb +83 -0
  97. data/spec/api/monitoring_app_api_spec.rb +46 -0
  98. data/spec/api/reset_password_api_spec.rb +46 -0
  99. data/spec/api/saved_queries_api_spec.rb +80 -0
  100. data/spec/api/subscriptions_api_spec.rb +58 -0
  101. data/spec/api/tag_api_controller_api_spec.rb +88 -0
  102. data/spec/api_client_spec.rb +226 -0
  103. data/spec/configuration_spec.rb +42 -0
  104. data/spec/models/alert_notification_request_spec.rb +59 -0
  105. data/spec/models/alert_rule_schedule_time_range_dto_spec.rb +47 -0
  106. data/spec/models/alert_rule_schedule_weekday_dto_spec.rb +65 -0
  107. data/spec/models/alert_rule_spec.rb +327 -0
  108. data/spec/models/app_description_spec.rb +41 -0
  109. data/spec/models/app_metadata_spec.rb +77 -0
  110. data/spec/models/app_spec.rb +197 -0
  111. data/spec/models/basic_auth_method_dto_spec.rb +51 -0
  112. data/spec/models/basic_organization_dto_spec.rb +63 -0
  113. data/spec/models/billing_info_spec.rb +53 -0
  114. data/spec/models/cloud_watch_settings_spec.rb +67 -0
  115. data/spec/models/create_app_info_spec.rb +65 -0
  116. data/spec/models/data_series_filter_spec.rb +57 -0
  117. data/spec/models/data_series_request_spec.rb +81 -0
  118. data/spec/models/error_spec.rb +47 -0
  119. data/spec/models/filter_value_spec.rb +71 -0
  120. data/spec/models/generic_api_response_spec.rb +59 -0
  121. data/spec/models/invitation_spec.rb +107 -0
  122. data/spec/models/notification_integration_spec.rb +107 -0
  123. data/spec/models/plan_spec.rb +121 -0
  124. data/spec/models/report_info_spec.rb +83 -0
  125. data/spec/models/saved_query_spec.rb +113 -0
  126. data/spec/models/service_integration_spec.rb +107 -0
  127. data/spec/models/update_app_info_spec.rb +93 -0
  128. data/spec/models/user_info_spec.rb +41 -0
  129. data/spec/models/user_permissions_spec.rb +53 -0
  130. data/spec/models/user_role_spec.rb +61 -0
  131. data/spec/spec_helper.rb +111 -0
  132. metadata +395 -0
@@ -0,0 +1,283 @@
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: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module SematextCloud
16
+ class AlertsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create alert rule
23
+ # @param dto dto
24
+ # @param [Hash] opts the optional parameters
25
+ # @return [GenericApiResponse]
26
+ def create_alert_using_post(dto, opts = {})
27
+ data, _status_code, _headers = create_alert_using_post_with_http_info(dto, opts)
28
+ data
29
+ end
30
+
31
+ # Create alert rule
32
+ # @param dto dto
33
+ # @param [Hash] opts the optional parameters
34
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
35
+ def create_alert_using_post_with_http_info(dto, opts = {})
36
+ if @api_client.config.debugging
37
+ @api_client.config.logger.debug 'Calling API: AlertsApi.create_alert_using_post ...'
38
+ end
39
+ # verify the required parameter 'dto' is set
40
+ if @api_client.config.client_side_validation && dto.nil?
41
+ fail ArgumentError, "Missing the required parameter 'dto' when calling AlertsApi.create_alert_using_post"
42
+ end
43
+ # resource path
44
+ local_var_path = '/users-web/api/v3/alerts'
45
+
46
+ # query parameters
47
+ query_params = {}
48
+
49
+ # header parameters
50
+ header_params = {}
51
+ # HTTP header 'Accept' (if needed)
52
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
53
+ # HTTP header 'Content-Type'
54
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
55
+
56
+ # form parameters
57
+ form_params = {}
58
+
59
+ # http body (model)
60
+ post_body = @api_client.object_to_http_body(dto)
61
+ auth_names = ['api_key']
62
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
63
+ :header_params => header_params,
64
+ :query_params => query_params,
65
+ :form_params => form_params,
66
+ :body => post_body,
67
+ :auth_names => auth_names,
68
+ :return_type => 'GenericApiResponse')
69
+ if @api_client.config.debugging
70
+ @api_client.config.logger.debug "API called: AlertsApi#create_alert_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
71
+ end
72
+ return data, status_code, headers
73
+ end
74
+ # Delete alert rule
75
+ # @param updateable_alert_id updateableAlertId
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [GenericApiResponse]
78
+ def delete_alert_rule_using_delete(updateable_alert_id, opts = {})
79
+ data, _status_code, _headers = delete_alert_rule_using_delete_with_http_info(updateable_alert_id, opts)
80
+ data
81
+ end
82
+
83
+ # Delete alert rule
84
+ # @param updateable_alert_id updateableAlertId
85
+ # @param [Hash] opts the optional parameters
86
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
87
+ def delete_alert_rule_using_delete_with_http_info(updateable_alert_id, opts = {})
88
+ if @api_client.config.debugging
89
+ @api_client.config.logger.debug 'Calling API: AlertsApi.delete_alert_rule_using_delete ...'
90
+ end
91
+ # verify the required parameter 'updateable_alert_id' is set
92
+ if @api_client.config.client_side_validation && updateable_alert_id.nil?
93
+ fail ArgumentError, "Missing the required parameter 'updateable_alert_id' when calling AlertsApi.delete_alert_rule_using_delete"
94
+ end
95
+ # resource path
96
+ local_var_path = '/users-web/api/v3/alerts/{updateableAlertId}'.sub('{' + 'updateableAlertId' + '}', updateable_alert_id.to_s)
97
+
98
+ # query parameters
99
+ query_params = {}
100
+
101
+ # header parameters
102
+ header_params = {}
103
+ # HTTP header 'Accept' (if needed)
104
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
105
+ # HTTP header 'Content-Type'
106
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
107
+
108
+ # form parameters
109
+ form_params = {}
110
+
111
+ # http body (model)
112
+ post_body = nil
113
+ auth_names = ['api_key']
114
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
115
+ :header_params => header_params,
116
+ :query_params => query_params,
117
+ :form_params => form_params,
118
+ :body => post_body,
119
+ :auth_names => auth_names,
120
+ :return_type => 'GenericApiResponse')
121
+ if @api_client.config.debugging
122
+ @api_client.config.logger.debug "API called: AlertsApi#delete_alert_rule_using_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
123
+ end
124
+ return data, status_code, headers
125
+ end
126
+ # Disable alert rule
127
+ # @param updateable_alert_id updateableAlertId
128
+ # @param [Hash] opts the optional parameters
129
+ # @return [GenericApiResponse]
130
+ def disable_alert_rule_using_put(updateable_alert_id, opts = {})
131
+ data, _status_code, _headers = disable_alert_rule_using_put_with_http_info(updateable_alert_id, opts)
132
+ data
133
+ end
134
+
135
+ # Disable alert rule
136
+ # @param updateable_alert_id updateableAlertId
137
+ # @param [Hash] opts the optional parameters
138
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
139
+ def disable_alert_rule_using_put_with_http_info(updateable_alert_id, opts = {})
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug 'Calling API: AlertsApi.disable_alert_rule_using_put ...'
142
+ end
143
+ # verify the required parameter 'updateable_alert_id' is set
144
+ if @api_client.config.client_side_validation && updateable_alert_id.nil?
145
+ fail ArgumentError, "Missing the required parameter 'updateable_alert_id' when calling AlertsApi.disable_alert_rule_using_put"
146
+ end
147
+ # resource path
148
+ local_var_path = '/users-web/api/v3/alerts/{updateableAlertId}/disable'.sub('{' + 'updateableAlertId' + '}', updateable_alert_id.to_s)
149
+
150
+ # query parameters
151
+ query_params = {}
152
+
153
+ # header parameters
154
+ header_params = {}
155
+ # HTTP header 'Accept' (if needed)
156
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
157
+ # HTTP header 'Content-Type'
158
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
159
+
160
+ # form parameters
161
+ form_params = {}
162
+
163
+ # http body (model)
164
+ post_body = nil
165
+ auth_names = ['api_key']
166
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
167
+ :header_params => header_params,
168
+ :query_params => query_params,
169
+ :form_params => form_params,
170
+ :body => post_body,
171
+ :auth_names => auth_names,
172
+ :return_type => 'GenericApiResponse')
173
+ if @api_client.config.debugging
174
+ @api_client.config.logger.debug "API called: AlertsApi#disable_alert_rule_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
175
+ end
176
+ return data, status_code, headers
177
+ end
178
+ # Enable alert rule
179
+ # @param updateable_alert_id updateableAlertId
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [GenericApiResponse]
182
+ def enable_alert_rule_using_put(updateable_alert_id, opts = {})
183
+ data, _status_code, _headers = enable_alert_rule_using_put_with_http_info(updateable_alert_id, opts)
184
+ data
185
+ end
186
+
187
+ # Enable alert rule
188
+ # @param updateable_alert_id updateableAlertId
189
+ # @param [Hash] opts the optional parameters
190
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
191
+ def enable_alert_rule_using_put_with_http_info(updateable_alert_id, opts = {})
192
+ if @api_client.config.debugging
193
+ @api_client.config.logger.debug 'Calling API: AlertsApi.enable_alert_rule_using_put ...'
194
+ end
195
+ # verify the required parameter 'updateable_alert_id' is set
196
+ if @api_client.config.client_side_validation && updateable_alert_id.nil?
197
+ fail ArgumentError, "Missing the required parameter 'updateable_alert_id' when calling AlertsApi.enable_alert_rule_using_put"
198
+ end
199
+ # resource path
200
+ local_var_path = '/users-web/api/v3/alerts/{updateableAlertId}/enable'.sub('{' + 'updateableAlertId' + '}', updateable_alert_id.to_s)
201
+
202
+ # query parameters
203
+ query_params = {}
204
+
205
+ # header parameters
206
+ header_params = {}
207
+ # HTTP header 'Accept' (if needed)
208
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
209
+ # HTTP header 'Content-Type'
210
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
211
+
212
+ # form parameters
213
+ form_params = {}
214
+
215
+ # http body (model)
216
+ post_body = nil
217
+ auth_names = ['api_key']
218
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
219
+ :header_params => header_params,
220
+ :query_params => query_params,
221
+ :form_params => form_params,
222
+ :body => post_body,
223
+ :auth_names => auth_names,
224
+ :return_type => 'GenericApiResponse')
225
+ if @api_client.config.debugging
226
+ @api_client.config.logger.debug "API called: AlertsApi#enable_alert_rule_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
227
+ end
228
+ return data, status_code, headers
229
+ end
230
+ # Get alert rules for an app
231
+ # @param app_id appId
232
+ # @param [Hash] opts the optional parameters
233
+ # @return [GenericApiResponse]
234
+ def get_alert_rules_for_app_using_get(app_id, opts = {})
235
+ data, _status_code, _headers = get_alert_rules_for_app_using_get_with_http_info(app_id, opts)
236
+ data
237
+ end
238
+
239
+ # Get alert rules for an app
240
+ # @param app_id appId
241
+ # @param [Hash] opts the optional parameters
242
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
243
+ def get_alert_rules_for_app_using_get_with_http_info(app_id, opts = {})
244
+ if @api_client.config.debugging
245
+ @api_client.config.logger.debug 'Calling API: AlertsApi.get_alert_rules_for_app_using_get ...'
246
+ end
247
+ # verify the required parameter 'app_id' is set
248
+ if @api_client.config.client_side_validation && app_id.nil?
249
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling AlertsApi.get_alert_rules_for_app_using_get"
250
+ end
251
+ # resource path
252
+ local_var_path = '/users-web/api/v3/apps/{appId}/alerts'.sub('{' + 'appId' + '}', app_id.to_s)
253
+
254
+ # query parameters
255
+ query_params = {}
256
+
257
+ # header parameters
258
+ header_params = {}
259
+ # HTTP header 'Accept' (if needed)
260
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
261
+ # HTTP header 'Content-Type'
262
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
263
+
264
+ # form parameters
265
+ form_params = {}
266
+
267
+ # http body (model)
268
+ post_body = nil
269
+ auth_names = ['api_key']
270
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
271
+ :header_params => header_params,
272
+ :query_params => query_params,
273
+ :form_params => form_params,
274
+ :body => post_body,
275
+ :auth_names => auth_names,
276
+ :return_type => 'GenericApiResponse')
277
+ if @api_client.config.debugging
278
+ @api_client.config.logger.debug "API called: AlertsApi#get_alert_rules_for_app_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
279
+ end
280
+ return data, status_code, headers
281
+ end
282
+ end
283
+ end
@@ -0,0 +1,381 @@
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: 2.4.12
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module SematextCloud
16
+ class AppsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Get all App types supported for the account identified with apiKey
23
+ # @param [Hash] opts the optional parameters
24
+ # @return [GenericApiResponse]
25
+ def get_app_types_using_get(opts = {})
26
+ data, _status_code, _headers = get_app_types_using_get_with_http_info(opts)
27
+ data
28
+ end
29
+
30
+ # Get all App types supported for the account identified with apiKey
31
+ # @param [Hash] opts the optional parameters
32
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
33
+ def get_app_types_using_get_with_http_info(opts = {})
34
+ if @api_client.config.debugging
35
+ @api_client.config.logger.debug 'Calling API: AppsApi.get_app_types_using_get ...'
36
+ end
37
+ # resource path
38
+ local_var_path = '/users-web/api/v3/apps/types'
39
+
40
+ # query parameters
41
+ query_params = {}
42
+
43
+ # header parameters
44
+ header_params = {}
45
+ # HTTP header 'Accept' (if needed)
46
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
47
+ # HTTP header 'Content-Type'
48
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
49
+
50
+ # form parameters
51
+ form_params = {}
52
+
53
+ # http body (model)
54
+ post_body = nil
55
+ auth_names = ['api_key']
56
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
57
+ :header_params => header_params,
58
+ :query_params => query_params,
59
+ :form_params => form_params,
60
+ :body => post_body,
61
+ :auth_names => auth_names,
62
+ :return_type => 'GenericApiResponse')
63
+ if @api_client.config.debugging
64
+ @api_client.config.logger.debug "API called: AppsApi#get_app_types_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
65
+ end
66
+ return data, status_code, headers
67
+ end
68
+ # Gets defails for one particular App
69
+ # @param any_state_app_id anyStateAppId
70
+ # @param [Hash] opts the optional parameters
71
+ # @return [GenericApiResponse]
72
+ def get_using_get(any_state_app_id, opts = {})
73
+ data, _status_code, _headers = get_using_get_with_http_info(any_state_app_id, opts)
74
+ data
75
+ end
76
+
77
+ # Gets defails for one particular App
78
+ # @param any_state_app_id anyStateAppId
79
+ # @param [Hash] opts the optional parameters
80
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
81
+ def get_using_get_with_http_info(any_state_app_id, opts = {})
82
+ if @api_client.config.debugging
83
+ @api_client.config.logger.debug 'Calling API: AppsApi.get_using_get ...'
84
+ end
85
+ # verify the required parameter 'any_state_app_id' is set
86
+ if @api_client.config.client_side_validation && any_state_app_id.nil?
87
+ fail ArgumentError, "Missing the required parameter 'any_state_app_id' when calling AppsApi.get_using_get"
88
+ end
89
+ # resource path
90
+ local_var_path = '/users-web/api/v3/apps/{anyStateAppId}'.sub('{' + 'anyStateAppId' + '}', any_state_app_id.to_s)
91
+
92
+ # query parameters
93
+ query_params = {}
94
+
95
+ # header parameters
96
+ header_params = {}
97
+ # HTTP header 'Accept' (if needed)
98
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
99
+ # HTTP header 'Content-Type'
100
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
101
+
102
+ # form parameters
103
+ form_params = {}
104
+
105
+ # http body (model)
106
+ post_body = nil
107
+ auth_names = ['api_key']
108
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
109
+ :header_params => header_params,
110
+ :query_params => query_params,
111
+ :form_params => form_params,
112
+ :body => post_body,
113
+ :auth_names => auth_names,
114
+ :return_type => 'GenericApiResponse')
115
+ if @api_client.config.debugging
116
+ @api_client.config.logger.debug "API called: AppsApi#get_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
117
+ end
118
+ return data, status_code, headers
119
+ end
120
+ # Invite guests to an app
121
+ # @param invitation For &#x60;app&#x60; and &#x60;apps&#x60; fields only &#x60;id&#x60; needs to be populated.Other fields can be left empty or with default values
122
+ # @param [Hash] opts the optional parameters
123
+ # @return [GenericApiResponse]
124
+ def invite_app_guests_using_post(invitation, opts = {})
125
+ data, _status_code, _headers = invite_app_guests_using_post_with_http_info(invitation, opts)
126
+ data
127
+ end
128
+
129
+ # Invite guests to an app
130
+ # @param invitation For &#x60;app&#x60; and &#x60;apps&#x60; fields only &#x60;id&#x60; needs to be populated.Other fields can be left empty or with default values
131
+ # @param [Hash] opts the optional parameters
132
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
133
+ def invite_app_guests_using_post_with_http_info(invitation, opts = {})
134
+ if @api_client.config.debugging
135
+ @api_client.config.logger.debug 'Calling API: AppsApi.invite_app_guests_using_post ...'
136
+ end
137
+ # verify the required parameter 'invitation' is set
138
+ if @api_client.config.client_side_validation && invitation.nil?
139
+ fail ArgumentError, "Missing the required parameter 'invitation' when calling AppsApi.invite_app_guests_using_post"
140
+ end
141
+ # resource path
142
+ local_var_path = '/users-web/api/v3/apps/guests'
143
+
144
+ # query parameters
145
+ query_params = {}
146
+
147
+ # header parameters
148
+ header_params = {}
149
+ # HTTP header 'Accept' (if needed)
150
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
151
+ # HTTP header 'Content-Type'
152
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
153
+
154
+ # form parameters
155
+ form_params = {}
156
+
157
+ # http body (model)
158
+ post_body = @api_client.object_to_http_body(invitation)
159
+ auth_names = ['api_key']
160
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
161
+ :header_params => header_params,
162
+ :query_params => query_params,
163
+ :form_params => form_params,
164
+ :body => post_body,
165
+ :auth_names => auth_names,
166
+ :return_type => 'GenericApiResponse')
167
+ if @api_client.config.debugging
168
+ @api_client.config.logger.debug "API called: AppsApi#invite_app_guests_using_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
169
+ end
170
+ return data, status_code, headers
171
+ end
172
+ # Get all users of apps accessible to this account
173
+ # @param [Hash] opts the optional parameters
174
+ # @return [GenericApiResponse]
175
+ def list_apps_users_using_get(opts = {})
176
+ data, _status_code, _headers = list_apps_users_using_get_with_http_info(opts)
177
+ data
178
+ end
179
+
180
+ # Get all users of apps accessible to this account
181
+ # @param [Hash] opts the optional parameters
182
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
183
+ def list_apps_users_using_get_with_http_info(opts = {})
184
+ if @api_client.config.debugging
185
+ @api_client.config.logger.debug 'Calling API: AppsApi.list_apps_users_using_get ...'
186
+ end
187
+ # resource path
188
+ local_var_path = '/users-web/api/v3/apps/users'
189
+
190
+ # query parameters
191
+ query_params = {}
192
+
193
+ # header parameters
194
+ header_params = {}
195
+ # HTTP header 'Accept' (if needed)
196
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
197
+ # HTTP header 'Content-Type'
198
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
199
+
200
+ # form parameters
201
+ form_params = {}
202
+
203
+ # http body (model)
204
+ post_body = nil
205
+ auth_names = ['api_key']
206
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
207
+ :header_params => header_params,
208
+ :query_params => query_params,
209
+ :form_params => form_params,
210
+ :body => post_body,
211
+ :auth_names => auth_names,
212
+ :return_type => 'GenericApiResponse')
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "API called: AppsApi#list_apps_users_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
+ end
216
+ return data, status_code, headers
217
+ end
218
+ # Get all apps accessible by account identified with apiKey
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [GenericApiResponse]
221
+ def list_using_get(opts = {})
222
+ data, _status_code, _headers = list_using_get_with_http_info(opts)
223
+ data
224
+ end
225
+
226
+ # Get all apps accessible by account identified with apiKey
227
+ # @param [Hash] opts the optional parameters
228
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
229
+ def list_using_get_with_http_info(opts = {})
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug 'Calling API: AppsApi.list_using_get ...'
232
+ end
233
+ # resource path
234
+ local_var_path = '/users-web/api/v3/apps'
235
+
236
+ # query parameters
237
+ query_params = {}
238
+
239
+ # header parameters
240
+ header_params = {}
241
+ # HTTP header 'Accept' (if needed)
242
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
243
+ # HTTP header 'Content-Type'
244
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
245
+
246
+ # form parameters
247
+ form_params = {}
248
+
249
+ # http body (model)
250
+ post_body = nil
251
+ auth_names = ['api_key']
252
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
253
+ :header_params => header_params,
254
+ :query_params => query_params,
255
+ :form_params => form_params,
256
+ :body => post_body,
257
+ :auth_names => auth_names,
258
+ :return_type => 'GenericApiResponse')
259
+ if @api_client.config.debugging
260
+ @api_client.config.logger.debug "API called: AppsApi#list_using_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
261
+ end
262
+ return data, status_code, headers
263
+ end
264
+ # Update description of the app
265
+ # App can be in any state
266
+ # @param any_state_app_id App Id
267
+ # @param [Hash] opts the optional parameters
268
+ # @option opts [AppDescription] :update_details Update Details
269
+ # @return [GenericApiResponse]
270
+ def update_description_using_put(any_state_app_id, opts = {})
271
+ data, _status_code, _headers = update_description_using_put_with_http_info(any_state_app_id, opts)
272
+ data
273
+ end
274
+
275
+ # Update description of the app
276
+ # App can be in any state
277
+ # @param any_state_app_id App Id
278
+ # @param [Hash] opts the optional parameters
279
+ # @option opts [AppDescription] :update_details Update Details
280
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
281
+ def update_description_using_put_with_http_info(any_state_app_id, opts = {})
282
+ if @api_client.config.debugging
283
+ @api_client.config.logger.debug 'Calling API: AppsApi.update_description_using_put ...'
284
+ end
285
+ # verify the required parameter 'any_state_app_id' is set
286
+ if @api_client.config.client_side_validation && any_state_app_id.nil?
287
+ fail ArgumentError, "Missing the required parameter 'any_state_app_id' when calling AppsApi.update_description_using_put"
288
+ end
289
+ # resource path
290
+ local_var_path = '/users-web/api/v3/apps/{anyStateAppId}/description'.sub('{' + 'anyStateAppId' + '}', any_state_app_id.to_s)
291
+
292
+ # query parameters
293
+ query_params = {}
294
+
295
+ # header parameters
296
+ header_params = {}
297
+ # HTTP header 'Accept' (if needed)
298
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
299
+ # HTTP header 'Content-Type'
300
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
301
+
302
+ # form parameters
303
+ form_params = {}
304
+
305
+ # http body (model)
306
+ post_body = @api_client.object_to_http_body(opts[:'update_details'])
307
+ auth_names = ['api_key']
308
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
309
+ :header_params => header_params,
310
+ :query_params => query_params,
311
+ :form_params => form_params,
312
+ :body => post_body,
313
+ :auth_names => auth_names,
314
+ :return_type => 'GenericApiResponse')
315
+ if @api_client.config.debugging
316
+ @api_client.config.logger.debug "API called: AppsApi#update_description_using_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
317
+ end
318
+ return data, status_code, headers
319
+ end
320
+ # Update app
321
+ # App can be in any state
322
+ # @param dto dto
323
+ # @param any_state_app_id App Id
324
+ # @param [Hash] opts the optional parameters
325
+ # @return [GenericApiResponse]
326
+ def update_using_put1(dto, any_state_app_id, opts = {})
327
+ data, _status_code, _headers = update_using_put1_with_http_info(dto, any_state_app_id, opts)
328
+ data
329
+ end
330
+
331
+ # Update app
332
+ # App can be in any state
333
+ # @param dto dto
334
+ # @param any_state_app_id App Id
335
+ # @param [Hash] opts the optional parameters
336
+ # @return [Array<(GenericApiResponse, Fixnum, Hash)>] GenericApiResponse data, response status code and response headers
337
+ def update_using_put1_with_http_info(dto, any_state_app_id, opts = {})
338
+ if @api_client.config.debugging
339
+ @api_client.config.logger.debug 'Calling API: AppsApi.update_using_put1 ...'
340
+ end
341
+ # verify the required parameter 'dto' is set
342
+ if @api_client.config.client_side_validation && dto.nil?
343
+ fail ArgumentError, "Missing the required parameter 'dto' when calling AppsApi.update_using_put1"
344
+ end
345
+ # verify the required parameter 'any_state_app_id' is set
346
+ if @api_client.config.client_side_validation && any_state_app_id.nil?
347
+ fail ArgumentError, "Missing the required parameter 'any_state_app_id' when calling AppsApi.update_using_put1"
348
+ end
349
+ # resource path
350
+ local_var_path = '/users-web/api/v3/apps/{anyStateAppId}'.sub('{' + 'anyStateAppId' + '}', any_state_app_id.to_s)
351
+
352
+ # query parameters
353
+ query_params = {}
354
+
355
+ # header parameters
356
+ header_params = {}
357
+ # HTTP header 'Accept' (if needed)
358
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
359
+ # HTTP header 'Content-Type'
360
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
361
+
362
+ # form parameters
363
+ form_params = {}
364
+
365
+ # http body (model)
366
+ post_body = @api_client.object_to_http_body(dto)
367
+ auth_names = ['api_key']
368
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
369
+ :header_params => header_params,
370
+ :query_params => query_params,
371
+ :form_params => form_params,
372
+ :body => post_body,
373
+ :auth_names => auth_names,
374
+ :return_type => 'GenericApiResponse')
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "API called: AppsApi#update_using_put1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
377
+ end
378
+ return data, status_code, headers
379
+ end
380
+ end
381
+ end