Skip to content

Commit

Permalink
Merge pull request #27 from sematext/SC-12618
Browse files Browse the repository at this point in the history
Regenerated client with swagger-codegen v3.0.30
  • Loading branch information
hollerloudly authored Dec 23, 2021
2 parents c48c240 + d1c9d88 commit 7874f0f
Show file tree
Hide file tree
Showing 342 changed files with 4,392 additions and 17,037 deletions.
2 changes: 2 additions & 0 deletions .rspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
--color
--require spec_helper
154 changes: 154 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# This file is based on https://github.com/rails/rails/blob/master/.rubocop.yml (MIT license)
# Automatically generated by Swagger Codegen (https://github.com/swagger-api/swagger-codegen)
AllCops:
TargetRubyVersion: 2.2
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
Exclude:
- '**/templates/**/*'
- '**/vendor/**/*'
- 'actionpack/lib/action_dispatch/journey/parser.rb'

# Prefer &&/|| over and/or.
Style/AndOr:
Enabled: true

# Do not use braces for hash literals when they are the last argument of a
# method call.
Style/BracesAroundHashParameters:
Enabled: true
EnforcedStyle: context_dependent

# Align `when` with `case`.
Layout/CaseIndentation:
Enabled: true

# Align comments with method definitions.
Layout/CommentIndentation:
Enabled: true

Layout/ElseAlignment:
Enabled: true

Layout/EmptyLineAfterMagicComment:
Enabled: true

# In a regular class definition, no empty lines around the body.
Layout/EmptyLinesAroundClassBody:
Enabled: true

# In a regular method definition, no empty lines around the body.
Layout/EmptyLinesAroundMethodBody:
Enabled: true

# In a regular module definition, no empty lines around the body.
Layout/EmptyLinesAroundModuleBody:
Enabled: true

Layout/FirstParameterIndentation:
Enabled: true

# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
Style/HashSyntax:
Enabled: false

# Method definitions after `private` or `protected` isolated calls need one
# extra level of indentation.
Layout/IndentationConsistency:
Enabled: true
EnforcedStyle: rails

# Two spaces, no tabs (for indentation).
Layout/IndentationWidth:
Enabled: true

Layout/LeadingCommentSpace:
Enabled: true

Layout/SpaceAfterColon:
Enabled: true

Layout/SpaceAfterComma:
Enabled: true

Layout/SpaceAroundEqualsInParameterDefault:
Enabled: true

Layout/SpaceAroundKeyword:
Enabled: true

Layout/SpaceAroundOperators:
Enabled: true

Layout/SpaceBeforeComma:
Enabled: true

Layout/SpaceBeforeFirstArg:
Enabled: true

Style/DefWithParentheses:
Enabled: true

# Defining a method with parameters needs parentheses.
Style/MethodDefParentheses:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false
EnforcedStyle: always

# Use `foo {}` not `foo{}`.
Layout/SpaceBeforeBlockBraces:
Enabled: true

# Use `foo { bar }` not `foo {bar}`.
Layout/SpaceInsideBlockBraces:
Enabled: true

# Use `{ a: 1 }` not `{a:1}`.
Layout/SpaceInsideHashLiteralBraces:
Enabled: true

Layout/SpaceInsideParens:
Enabled: true

# Check quotes usage according to lint rule below.
#Style/StringLiterals:
# Enabled: true
# EnforcedStyle: single_quotes

# Detect hard tabs, no hard tabs.
Layout/Tab:
Enabled: true

# Blank lines should not have any spaces.
Layout/TrailingBlankLines:
Enabled: true

# No trailing whitespace.
Layout/TrailingWhitespace:
Enabled: false

# Use quotes for string literals when they are enough.
Style/UnneededPercentQ:
Enabled: true

# Align `end` with the matching keyword or starting expression except for
# assignments, where it should be aligned with the LHS.
Lint/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: variable
AutoCorrect: true

# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
Lint/RequireParentheses:
Enabled: true

Style/RedundantReturn:
Enabled: true
AllowMultipleReturnValues: true

Style/Semicolon:
Enabled: true
AllowAsExpressionSeparator: true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Refer to below link for deeper information on the API itself.
To build the Ruby code into a gem:

```shell
gem build SematextCloud.gemspec
gem build stcloud.gemspec
```

Then either install the gem locally:
Expand Down
39 changes: 0 additions & 39 deletions SematextCloud.gemspec

This file was deleted.

3 changes: 2 additions & 1 deletion docs/AlertNotification.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertNotification
# SematextCloud::AlertNotification

## Properties

| Name | Type | Description | Notes |
| ------------------ | ----------- | ----------- | ---------- |
| **app_name** | **String** | | [optional] |
Expand Down
3 changes: 2 additions & 1 deletion docs/AlertNotificationRequest.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertNotificationRequest
# SematextCloud::AlertNotificationRequest

## Properties

| Name | Type | Description | Notes |
| -------------------- | ----------- | --------------------------------------------------------------------------------------------------------------- | ---------- |
| **default_interval** | **Integer** | | [optional] |
Expand Down
58 changes: 30 additions & 28 deletions docs/AlertNotificationsApi.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
# stcloud::AlertNotificationsApi
# SematextCloud::AlertNotificationsApi

All URIs are relative to */*

| Method | HTTP request | Description |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
| [**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 |
| [**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 |
| Method | HTTP request | Description |
| ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | ---------------------------------- |
| [**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 |
| [**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 |

# **get_alert_notifications_for_app_using_post1**
> NotificationsResponse get_alert_notifications_for_app_using_post1(bodyapp_id)
# **get_alert_notifications_for_app_using_post**

> NotificationsResponse get_alert_notifications_for_app_using_post(bodyapp_id)
Get alert notifications for an app

Default value of interval is 1d

### Example

```ruby
# load the gem
require 'stcloud'
require 'SematextCloud'
# setup authorization
stcloud.configure do |config|
SematextCloud.configure do |config|
# Configure API key authorization: api_key
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = stcloud::AlertNotificationsApi.new
body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
api_instance = SematextCloud::AlertNotificationsApi.new
body = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
app_id = 789 # Integer | appId


begin
#Get alert notifications for an app
result = api_instance.get_alert_notifications_for_app_using_post1(bodyapp_id)
result = api_instance.get_alert_notifications_for_app_using_post(bodyapp_id)
p result
rescue stcloud::ApiError => e
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post1: #{e}"
rescue SematextCloud::ApiError => e
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_app_using_post: #{e}"
end
```

Expand All @@ -57,40 +59,40 @@ end

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Content-Type**: application/json
- **Accept**: application/json

# **get_alert_notifications_for_user_using_post**


# **get_alert_notifications_for_user_using_post1**
> NotificationsResponse get_alert_notifications_for_user_using_post1(body)
> NotificationsResponse get_alert_notifications_for_user_using_post(body)
Get alert notifications for a user

Default value of interval is 1d

### Example

```ruby
# load the gem
require 'stcloud'
require 'SematextCloud'
# setup authorization
stcloud.configure do |config|
SematextCloud.configure do |config|
# Configure API key authorization: api_key
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end

api_instance = stcloud::AlertNotificationsApi.new
body = stcloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval
api_instance = SematextCloud::AlertNotificationsApi.new
body = SematextCloud::AlertNotificationRequest.new # AlertNotificationRequest | Time Interval


begin
#Get alert notifications for a user
result = api_instance.get_alert_notifications_for_user_using_post1(body)
result = api_instance.get_alert_notifications_for_user_using_post(body)
p result
rescue stcloud::ApiError => e
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post1: #{e}"
rescue SematextCloud::ApiError => e
puts "Exception when calling AlertNotificationsApi->get_alert_notifications_for_user_using_post: #{e}"
end
```

Expand All @@ -110,5 +112,5 @@ end

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json
- **Content-Type**: application/json
- **Accept**: application/json
3 changes: 2 additions & 1 deletion docs/AlertRule.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertRule
# SematextCloud::AlertRule

## Properties

| Name | Type | Description | Notes |
| ---------------------------------------------- | ------------------------------------------------------------------------------ | ----------- | ---------- |
| **account_email** | **String** | | [optional] |
Expand Down
3 changes: 2 additions & 1 deletion docs/AlertRuleResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertRuleResponse
# SematextCloud::AlertRuleResponse

## Properties

| Name | Type | Description | Notes |
| ----------- | ------------------------------------------------------- | ----------- | ---------- |
| **data** | [**AlertRuleResponseEntry**](AlertRuleResponseEntry.md) | | [optional] |
Expand Down
3 changes: 2 additions & 1 deletion docs/AlertRuleResponseEntry.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertRuleResponseEntry
# SematextCloud::AlertRuleResponseEntry

## Properties

| Name | Type | Description | Notes |
| -------------- | ----------------------------- | ----------- | ---------- |
| **alert_rule** | [**AlertRule**](AlertRule.md) | | [optional] |
3 changes: 2 additions & 1 deletion docs/AlertRuleScheduleTimeRangeDto.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertRuleScheduleTimeRangeDto
# SematextCloud::AlertRuleScheduleTimeRangeDto

## Properties

| Name | Type | Description | Notes |
| --------- | ---------- | ----------- | ---------- |
| **_end** | **String** | | [optional] |
Expand Down
3 changes: 2 additions & 1 deletion docs/AlertRuleScheduleWeekdayDto.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertRuleScheduleWeekdayDto
# SematextCloud::AlertRuleScheduleWeekdayDto

## Properties

| Name | Type | Description | Notes |
| ------------- | ---------------------------------------------------------------------------------- | ----------- | ---------- |
| **day** | **String** | | [optional] |
Expand Down
3 changes: 2 additions & 1 deletion docs/AlertRulesResponse.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# stcloud::AlertRulesResponse
# SematextCloud::AlertRulesResponse

## Properties

| Name | Type | Description | Notes |
| ----------- | --------------------------------------------------------- | ----------- | ---------- |
| **data** | [**AlertRulesResponseEntry**](AlertRulesResponseEntry.md) | | [optional] |
Expand Down
Loading

0 comments on commit 7874f0f

Please sign in to comment.