Skip to content

Commit d1c9d88

Browse files
committed
Regenerated client with swagger-codegen v3.0.30
1 parent c48c240 commit d1c9d88

File tree

342 files changed

+4392
-17037
lines changed

Some content is hidden

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

342 files changed

+4392
-17037
lines changed

.rspec

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--color
2+
--require spec_helper

.rubocop.yml

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
2+
# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen)
3+
AllCops:
4+
TargetRubyVersion: 2.2
5+
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
6+
# to ignore them, so only the ones explicitly set in this file are enabled.
7+
DisabledByDefault: true
8+
Exclude:
9+
- '**/templates/**/*'
10+
- '**/vendor/**/*'
11+
- 'actionpack/lib/action_dispatch/journey/parser.rb'
12+
13+
# Prefer &&/|| over and/or.
14+
Style/AndOr:
15+
Enabled: true
16+
17+
# Do not use braces for hash literals when they are the last argument of a
18+
# method call.
19+
Style/BracesAroundHashParameters:
20+
Enabled: true
21+
EnforcedStyle: context_dependent
22+
23+
# Align `when` with `case`.
24+
Layout/CaseIndentation:
25+
Enabled: true
26+
27+
# Align comments with method definitions.
28+
Layout/CommentIndentation:
29+
Enabled: true
30+
31+
Layout/ElseAlignment:
32+
Enabled: true
33+
34+
Layout/EmptyLineAfterMagicComment:
35+
Enabled: true
36+
37+
# In a regular class definition, no empty lines around the body.
38+
Layout/EmptyLinesAroundClassBody:
39+
Enabled: true
40+
41+
# In a regular method definition, no empty lines around the body.
42+
Layout/EmptyLinesAroundMethodBody:
43+
Enabled: true
44+
45+
# In a regular module definition, no empty lines around the body.
46+
Layout/EmptyLinesAroundModuleBody:
47+
Enabled: true
48+
49+
Layout/FirstParameterIndentation:
50+
Enabled: true
51+
52+
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
53+
Style/HashSyntax:
54+
Enabled: false
55+
56+
# Method definitions after `private` or `protected` isolated calls need one
57+
# extra level of indentation.
58+
Layout/IndentationConsistency:
59+
Enabled: true
60+
EnforcedStyle: rails
61+
62+
# Two spaces, no tabs (for indentation).
63+
Layout/IndentationWidth:
64+
Enabled: true
65+
66+
Layout/LeadingCommentSpace:
67+
Enabled: true
68+
69+
Layout/SpaceAfterColon:
70+
Enabled: true
71+
72+
Layout/SpaceAfterComma:
73+
Enabled: true
74+
75+
Layout/SpaceAroundEqualsInParameterDefault:
76+
Enabled: true
77+
78+
Layout/SpaceAroundKeyword:
79+
Enabled: true
80+
81+
Layout/SpaceAroundOperators:
82+
Enabled: true
83+
84+
Layout/SpaceBeforeComma:
85+
Enabled: true
86+
87+
Layout/SpaceBeforeFirstArg:
88+
Enabled: true
89+
90+
Style/DefWithParentheses:
91+
Enabled: true
92+
93+
# Defining a method with parameters needs parentheses.
94+
Style/MethodDefParentheses:
95+
Enabled: true
96+
97+
Style/FrozenStringLiteralComment:
98+
Enabled: false
99+
EnforcedStyle: always
100+
101+
# Use `foo {}` not `foo{}`.
102+
Layout/SpaceBeforeBlockBraces:
103+
Enabled: true
104+
105+
# Use `foo { bar }` not `foo {bar}`.
106+
Layout/SpaceInsideBlockBraces:
107+
Enabled: true
108+
109+
# Use `{ a: 1 }` not `{a:1}`.
110+
Layout/SpaceInsideHashLiteralBraces:
111+
Enabled: true
112+
113+
Layout/SpaceInsideParens:
114+
Enabled: true
115+
116+
# Check quotes usage according to lint rule below.
117+
#Style/StringLiterals:
118+
# Enabled: true
119+
# EnforcedStyle: single_quotes
120+
121+
# Detect hard tabs, no hard tabs.
122+
Layout/Tab:
123+
Enabled: true
124+
125+
# Blank lines should not have any spaces.
126+
Layout/TrailingBlankLines:
127+
Enabled: true
128+
129+
# No trailing whitespace.
130+
Layout/TrailingWhitespace:
131+
Enabled: false
132+
133+
# Use quotes for string literals when they are enough.
134+
Style/UnneededPercentQ:
135+
Enabled: true
136+
137+
# Align `end` with the matching keyword or starting expression except for
138+
# assignments, where it should be aligned with the LHS.
139+
Lint/EndAlignment:
140+
Enabled: true
141+
EnforcedStyleAlignWith: variable
142+
AutoCorrect: true
143+
144+
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
145+
Lint/RequireParentheses:
146+
Enabled: true
147+
148+
Style/RedundantReturn:
149+
Enabled: true
150+
AllowMultipleReturnValues: true
151+
152+
Style/Semicolon:
153+
Enabled: true
154+
AllowAsExpressionSeparator: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Refer to below link for deeper information on the API itself.
5353
To build the Ruby code into a gem:
5454

5555
```shell
56-
gem build SematextCloud.gemspec
56+
gem build stcloud.gemspec
5757
```
5858

5959
Then either install the gem locally:

SematextCloud.gemspec

-39
This file was deleted.

docs/AlertNotification.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# stcloud::AlertNotification
1+
# SematextCloud::AlertNotification
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------------ | ----------- | ----------- | ---------- |
67
| **app_name** | **String** | | [optional] |

docs/AlertNotificationRequest.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| -------------------- | ----------- | --------------------------------------------------------------------------------------------------------------- | ---------- |
67
| **default_interval** | **Integer** | | [optional] |

docs/AlertNotificationsApi.md

+30-28
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,44 @@
1-
# stcloud::AlertNotificationsApi
1+
# SematextCloud::AlertNotificationsApi
22

33
All URIs are relative to */*
44

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 |
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 |
99

10-
# **get_alert_notifications_for_app_using_post1**
11-
> NotificationsResponse get_alert_notifications_for_app_using_post1(bodyapp_id)
10+
# **get_alert_notifications_for_app_using_post**
11+
12+
> NotificationsResponse get_alert_notifications_for_app_using_post(bodyapp_id)
1213
1314
Get alert notifications for an app
1415

1516
Default value of interval is 1d
1617

1718
### Example
19+
1820
```ruby
1921
# load the gem
20-
require 'stcloud'
22+
require 'SematextCloud'
2123
# setup authorization
22-
stcloud.configure do |config|
24+
SematextCloud.configure do |config|
2325
# Configure API key authorization: api_key
2426
config.api_key['Authorization'] = 'YOUR API KEY'
2527
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2628
#config.api_key_prefix['Authorization'] = 'Bearer'
2729
end
2830

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

3335

3436
begin
3537
#Get alert notifications for an app
36-
result = api_instance.get_alert_notifications_for_app_using_post1(bodyapp_id)
38+
result = api_instance.get_alert_notifications_for_app_using_post(bodyapp_id)
3739
p result
38-
rescue stcloud::ApiError => e
39-
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post1: #{e}"
40+
rescue SematextCloud::ApiError => e
41+
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post: #{e}"
4042
end
4143
```
4244

@@ -57,40 +59,40 @@ end
5759

5860
### HTTP request headers
5961

60-
- **Content-Type**: application/json
61-
- **Accept**: application/json
62+
- **Content-Type**: application/json
63+
- **Accept**: application/json
6264

65+
# **get_alert_notifications_for_user_using_post**
6366

64-
65-
# **get_alert_notifications_for_user_using_post1**
66-
> NotificationsResponse get_alert_notifications_for_user_using_post1(body)
67+
> NotificationsResponse get_alert_notifications_for_user_using_post(body)
6768
6869
Get alert notifications for a user
6970

7071
Default value of interval is 1d
7172

7273
### Example
74+
7375
```ruby
7476
# load the gem
75-
require 'stcloud'
77+
require 'SematextCloud'
7678
# setup authorization
77-
stcloud.configure do |config|
79+
SematextCloud.configure do |config|
7880
# Configure API key authorization: api_key
7981
config.api_key['Authorization'] = 'YOUR API KEY'
8082
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
8183
#config.api_key_prefix['Authorization'] = 'Bearer'
8284
end
8385

84-
api_instance = stcloud::AlertNotificationsApi.new
85-
body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
86+
api_instance = SematextCloud::AlertNotificationsApi.new
87+
body = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
8688

8789

8890
begin
8991
#Get alert notifications for a user
90-
result = api_instance.get_alert_notifications_for_user_using_post1(body)
92+
result = api_instance.get_alert_notifications_for_user_using_post(body)
9193
p result
92-
rescue stcloud::ApiError => e
93-
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post1: #{e}"
94+
rescue SematextCloud::ApiError => e
95+
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post: #{e}"
9496
end
9597
```
9698

@@ -110,5 +112,5 @@ end
110112

111113
### HTTP request headers
112114

113-
- **Content-Type**: application/json
114-
- **Accept**: application/json
115+
- **Content-Type**: application/json
116+
- **Accept**: application/json

docs/AlertRule.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ---------------------------------------------- | ------------------------------------------------------------------------------ | ----------- | ---------- |
67
| **account_email** | **String** | | [optional] |

docs/AlertRuleResponse.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# stcloud::AlertRuleResponse
1+
# SematextCloud::AlertRuleResponse
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ----------- | ------------------------------------------------------- | ----------- | ---------- |
67
| **data** | [**AlertRuleResponseEntry**](AlertRuleResponseEntry.md) | | [optional] |

docs/AlertRuleResponseEntry.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# stcloud::AlertRuleResponseEntry
1+
# SematextCloud::AlertRuleResponseEntry
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| -------------- | ----------------------------- | ----------- | ---------- |
67
| **alert_rule** | [**AlertRule**](AlertRule.md) | | [optional] |

docs/AlertRuleScheduleTimeRangeDto.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| --------- | ---------- | ----------- | ---------- |
67
| **_end** | **String** | | [optional] |

docs/AlertRuleScheduleWeekdayDto.md

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

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ------------- | ---------------------------------------------------------------------------------- | ----------- | ---------- |
67
| **day** | **String** | | [optional] |

docs/AlertRulesResponse.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
# stcloud::AlertRulesResponse
1+
# SematextCloud::AlertRulesResponse
22

33
## Properties
4+
45
| Name | Type | Description | Notes |
56
| ----------- | --------------------------------------------------------- | ----------- | ---------- |
67
| **data** | [**AlertRulesResponseEntry**](AlertRulesResponseEntry.md) | | [optional] |

0 commit comments

Comments
 (0)