Skip to content

Commit 0330db4

Browse files
committed
Update to Senatext Cloud API v3.x and Swagger v3.
1 parent 4c2e2c4 commit 0330db4

File tree

276 files changed

+27679
-760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+27679
-760
lines changed

Gemfile

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@ source 'https://rubygems.org'
33
gemspec
44

55
group :development, :test do
6-
gem 'rake', '~> 12.3.3'
6+
gem 'rake', '~> 13.0.1'
7+
gem 'pry-byebug'
8+
gem 'rubocop', '~> 0.66.0'
79
end

SematextCloud.gemspec

-6
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ Gem::Specification.new do |s|
3131
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
3232

3333
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34-
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35-
s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36-
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37-
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38-
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39-
s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
4034

4135
s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
4236
s.test_files = `find spec/*`.split("\n")

docs/AlertNotification.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# stcloud::AlertNotification
2+
3+
## Properties
4+
| Name | Type | Description | Notes |
5+
| ------------------ | ----------- | ----------- | ---------- |
6+
| **app_name** | **String** | | [optional] |
7+
| **app_type** | **String** | | [optional] |
8+
| **back_to_normal** | **BOOLEAN** | | [optional] |
9+
| **create_time** | **String** | | [optional] |
10+
| **sent** | **BOOLEAN** | | [optional] |
11+
| **text** | **String** | | [optional] |
12+
| **_when** | **String** | | [optional] |

docs/AlertNotificationRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SematextCloud::AlertNotificationRequest
1+
# stcloud::AlertNotificationRequest
22

33
## Properties
44
| Name | Type | Description | Notes |

docs/AlertNotificationsApi.md

+33-37
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
# SematextCloud::AlertNotificationsApi
1+
# stcloud::AlertNotificationsApi
22

3-
All URIs are relative to *https://localhost*
3+
All URIs are relative to */*
44

5-
| Method | HTTP request | Description |
6-
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
7-
| [**get_alert_notifications_for_app_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post) | **POST** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app |
8-
| [**get_alert_notifications_for_user_using_post**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |
5+
| Method | HTTP request | Description |
6+
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
7+
| [**get_alert_notifications_for_app_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_app_using_post1) | **POST** /users-web/api/v3/apps/{appId}/notifications/alerts | Get alert notifications for an app |
8+
| [**get_alert_notifications_for_user_using_post1**](AlertNotificationsApi.md#get_alert_notifications_for_user_using_post1) | **POST** /users-web/api/v3/notifications/alerts | Get alert notifications for a user |
99

10-
11-
# **get_alert_notifications_for_app_using_post**
12-
> GenericApiResponse get_alert_notifications_for_app_using_post(app_id, time_interval)
10+
# **get_alert_notifications_for_app_using_post1**
11+
> NotificationsResponse get_alert_notifications_for_app_using_post1(bodyapp_id)
1312
1413
Get alert notifications for an app
1514

@@ -18,41 +17,39 @@ Default value of interval is 1d
1817
### Example
1918
```ruby
2019
# load the gem
21-
require 'SematextCloud'
20+
require 'stcloud'
2221
# setup authorization
23-
SematextCloud.configure do |config|
22+
stcloud.configure do |config|
2423
# Configure API key authorization: api_key
2524
config.api_key['Authorization'] = 'YOUR API KEY'
2625
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2726
#config.api_key_prefix['Authorization'] = 'Bearer'
2827
end
2928

30-
api_instance = SematextCloud::AlertNotificationsApi.new
31-
29+
api_instance = stcloud::AlertNotificationsApi.new
30+
body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
3231
app_id = 789 # Integer | appId
3332

34-
time_interval = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
35-
3633

3734
begin
3835
#Get alert notifications for an app
39-
result = api_instance.get_alert_notifications_for_app_using_post(app_id, time_interval)
36+
result = api_instance.get_alert_notifications_for_app_using_post1(bodyapp_id)
4037
p result
41-
rescue SematextCloud::ApiError => e
42-
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post: #{e}"
38+
rescue stcloud::ApiError => e
39+
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post1: #{e}"
4340
end
4441
```
4542

4643
### Parameters
4744

48-
| Name | Type | Description | Notes |
49-
| ----------------- | ----------------------------------------------------------- | ------------- | ----- |
50-
| **app_id** | **Integer** | appId |
51-
| **time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
45+
| Name | Type | Description | Notes |
46+
| ---------- | ----------------------------------------------------------- | ------------- | ----- |
47+
| **body** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
48+
| **app_id** | **Integer** | appId |
5249

5350
### Return type
5451

55-
[**GenericApiResponse**](GenericApiResponse.md)
52+
[**NotificationsResponse**](NotificationsResponse.md)
5653

5754
### Authorization
5855

@@ -65,8 +62,8 @@ end
6562

6663

6764

68-
# **get_alert_notifications_for_user_using_post**
69-
> GenericApiResponse get_alert_notifications_for_user_using_post(time_interval)
65+
# **get_alert_notifications_for_user_using_post1**
66+
> NotificationsResponse get_alert_notifications_for_user_using_post1(body)
7067
7168
Get alert notifications for a user
7269

@@ -75,38 +72,37 @@ Default value of interval is 1d
7572
### Example
7673
```ruby
7774
# load the gem
78-
require 'SematextCloud'
75+
require 'stcloud'
7976
# setup authorization
80-
SematextCloud.configure do |config|
77+
stcloud.configure do |config|
8178
# Configure API key authorization: api_key
8279
config.api_key['Authorization'] = 'YOUR API KEY'
8380
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
8481
#config.api_key_prefix['Authorization'] = 'Bearer'
8582
end
8683

87-
api_instance = SematextCloud::AlertNotificationsApi.new
88-
89-
time_interval = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
84+
api_instance = stcloud::AlertNotificationsApi.new
85+
body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
9086

9187

9288
begin
9389
#Get alert notifications for a user
94-
result = api_instance.get_alert_notifications_for_user_using_post(time_interval)
90+
result = api_instance.get_alert_notifications_for_user_using_post1(body)
9591
p result
96-
rescue SematextCloud::ApiError => e
97-
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post: #{e}"
92+
rescue stcloud::ApiError => e
93+
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post1: #{e}"
9894
end
9995
```
10096

10197
### Parameters
10298

103-
| Name | Type | Description | Notes |
104-
| ----------------- | ----------------------------------------------------------- | ------------- | ----- |
105-
| **time_interval** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
99+
| Name | Type | Description | Notes |
100+
| -------- | ----------------------------------------------------------- | ------------- | ----- |
101+
| **body** | [**AlertNotificationRequest**](AlertNotificationRequest.md) | Time Interval |
106102

107103
### Return type
108104

109-
[**GenericApiResponse**](GenericApiResponse.md)
105+
[**NotificationsResponse**](NotificationsResponse.md)
110106

111107
### Authorization
112108

docs/AlertRule.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SematextCloud::AlertRule
1+
# stcloud::AlertRule
22

33
## Properties
44
| Name | Type | Description | Notes |

docs/AlertRuleResponse.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# stcloud::AlertRuleResponse
2+
3+
## Properties
4+
| Name | Type | Description | Notes |
5+
| ----------- | ------------------------------------------------------- | ----------- | ---------- |
6+
| **data** | [**AlertRuleResponseEntry**](AlertRuleResponseEntry.md) | | [optional] |
7+
| **errors** | [**Array<Error>**](Error.md) | | [optional] |
8+
| **message** | **String** | | [optional] |
9+
| **success** | **BOOLEAN** | | [optional] |

docs/AlertRuleResponseEntry.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# stcloud::AlertRuleResponseEntry
2+
3+
## Properties
4+
| Name | Type | Description | Notes |
5+
| -------------- | ----------------------------- | ----------- | ---------- |
6+
| **alert_rule** | [**AlertRule**](AlertRule.md) | | [optional] |

docs/AlertRuleScheduleTimeRangeDto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SematextCloud::AlertRuleScheduleTimeRangeDto
1+
# stcloud::AlertRuleScheduleTimeRangeDto
22

33
## Properties
44
| Name | Type | Description | Notes |

docs/AlertRuleScheduleWeekdayDto.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SematextCloud::AlertRuleScheduleWeekdayDto
1+
# stcloud::AlertRuleScheduleWeekdayDto
22

33
## Properties
44
| Name | Type | Description | Notes |

docs/AlertRulesResponse.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# stcloud::AlertRulesResponse
2+
3+
## Properties
4+
| Name | Type | Description | Notes |
5+
| ----------- | --------------------------------------------------------- | ----------- | ---------- |
6+
| **data** | [**AlertRulesResponseEntry**](AlertRulesResponseEntry.md) | | [optional] |
7+
| **errors** | [**Array<Error>**](Error.md) | | [optional] |
8+
| **message** | **String** | | [optional] |
9+
| **success** | **BOOLEAN** | | [optional] |

docs/AlertRulesResponseEntry.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# stcloud::AlertRulesResponseEntry
2+
3+
## Properties
4+
| Name | Type | Description | Notes |
5+
| --------------- | ------------------------------------------ | ----------- | ---------- |
6+
| **alert_rules** | [**Array<AlertRule>**](AlertRule.md) | | [optional] |

0 commit comments

Comments
 (0)