aylien_news_api 5.0.1 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/aylien_news_api.gemspec +1 -1
- data/docs/Category.md +3 -3
- data/docs/CategoryLinks.md +2 -0
- data/docs/DeprecatedStory.md +6 -2
- data/docs/DunsNumber.md +17 -0
- data/docs/Entity.md +3 -1
- data/docs/ExternalIds.md +17 -0
- data/docs/Story.md +6 -2
- data/lib/aylien_news_api/api/default_api.rb +1 -1
- data/lib/aylien_news_api/api_client.rb +1 -1
- data/lib/aylien_news_api/api_error.rb +1 -1
- data/lib/aylien_news_api/configuration.rb +1 -1
- data/lib/aylien_news_api/models/aggregated_sentiment.rb +1 -1
- data/lib/aylien_news_api/models/author.rb +1 -1
- data/lib/aylien_news_api/models/autocomplete.rb +1 -1
- data/lib/aylien_news_api/models/autocompletes.rb +1 -1
- data/lib/aylien_news_api/models/category.rb +40 -14
- data/lib/aylien_news_api/models/category_links.rb +16 -2
- data/lib/aylien_news_api/models/category_taxonomy.rb +2 -1
- data/lib/aylien_news_api/models/cluster.rb +1 -1
- data/lib/aylien_news_api/models/clusters.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_entities.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_entity.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_entity_surface_form.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_related_stories.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_stories.rb +1 -1
- data/lib/aylien_news_api/models/deprecated_story.rb +28 -6
- data/lib/aylien_news_api/models/duns_number.rb +206 -0
- data/lib/aylien_news_api/models/entity.rb +14 -5
- data/lib/aylien_news_api/models/entity_in_text.rb +1 -1
- data/lib/aylien_news_api/models/entity_links.rb +1 -1
- data/lib/aylien_news_api/models/entity_mention.rb +1 -1
- data/lib/aylien_news_api/models/entity_mention_index.rb +1 -1
- data/lib/aylien_news_api/models/entity_sentiment.rb +1 -1
- data/lib/aylien_news_api/models/entity_surface_form.rb +1 -1
- data/lib/aylien_news_api/models/error.rb +1 -1
- data/lib/aylien_news_api/models/error_links.rb +1 -1
- data/lib/aylien_news_api/models/errors.rb +1 -1
- data/lib/aylien_news_api/models/external_ids.rb +210 -0
- data/lib/aylien_news_api/models/histogram_interval.rb +1 -1
- data/lib/aylien_news_api/models/histograms.rb +1 -1
- data/lib/aylien_news_api/models/location.rb +1 -1
- data/lib/aylien_news_api/models/logicals.rb +1 -1
- data/lib/aylien_news_api/models/media.rb +1 -1
- data/lib/aylien_news_api/models/media_format.rb +1 -1
- data/lib/aylien_news_api/models/media_type.rb +1 -1
- data/lib/aylien_news_api/models/nested_entity.rb +1 -1
- data/lib/aylien_news_api/models/parameter.rb +1 -1
- data/lib/aylien_news_api/models/query.rb +1 -1
- data/lib/aylien_news_api/models/rank.rb +1 -1
- data/lib/aylien_news_api/models/rankings.rb +1 -1
- data/lib/aylien_news_api/models/related_stories.rb +1 -1
- data/lib/aylien_news_api/models/representative_story.rb +1 -1
- data/lib/aylien_news_api/models/scope.rb +1 -1
- data/lib/aylien_news_api/models/scope_level.rb +1 -1
- data/lib/aylien_news_api/models/sentiment.rb +1 -1
- data/lib/aylien_news_api/models/sentiment_polarity.rb +1 -1
- data/lib/aylien_news_api/models/sentiments.rb +1 -1
- data/lib/aylien_news_api/models/share_count.rb +1 -1
- data/lib/aylien_news_api/models/share_counts.rb +1 -1
- data/lib/aylien_news_api/models/source.rb +1 -1
- data/lib/aylien_news_api/models/stories.rb +1 -1
- data/lib/aylien_news_api/models/story.rb +28 -6
- data/lib/aylien_news_api/models/story_cluster.rb +1 -1
- data/lib/aylien_news_api/models/story_links.rb +1 -1
- data/lib/aylien_news_api/models/story_translation.rb +1 -1
- data/lib/aylien_news_api/models/story_translations.rb +1 -1
- data/lib/aylien_news_api/models/summary.rb +1 -1
- data/lib/aylien_news_api/models/time_series.rb +1 -1
- data/lib/aylien_news_api/models/time_series_list.rb +1 -1
- data/lib/aylien_news_api/models/trend.rb +1 -1
- data/lib/aylien_news_api/models/trends.rb +1 -1
- data/lib/aylien_news_api/models/warning.rb +1 -1
- data/lib/aylien_news_api/version.rb +2 -2
- data/lib/aylien_news_api.rb +3 -1
- data/spec/api/default_api_spec.rb +1 -1
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/aggregated_sentiment_spec.rb +1 -1
- data/spec/models/author_spec.rb +1 -1
- data/spec/models/autocomplete_spec.rb +1 -1
- data/spec/models/autocompletes_spec.rb +1 -1
- data/spec/models/category_links_spec.rb +7 -1
- data/spec/models/category_spec.rb +4 -4
- data/spec/models/category_taxonomy_spec.rb +1 -1
- data/spec/models/cluster_spec.rb +1 -1
- data/spec/models/clusters_spec.rb +1 -1
- data/spec/models/deprecated_entities_spec.rb +1 -1
- data/spec/models/deprecated_entity_spec.rb +1 -1
- data/spec/models/deprecated_entity_surface_form_spec.rb +1 -1
- data/spec/models/deprecated_related_stories_spec.rb +1 -1
- data/spec/models/deprecated_stories_spec.rb +1 -1
- data/spec/models/deprecated_story_spec.rb +13 -1
- data/spec/models/duns_number_spec.rb +41 -0
- data/spec/models/entity_in_text_spec.rb +1 -1
- data/spec/models/entity_links_spec.rb +1 -1
- data/spec/models/entity_mention_index_spec.rb +1 -1
- data/spec/models/entity_mention_spec.rb +1 -1
- data/spec/models/entity_sentiment_spec.rb +1 -1
- data/spec/models/entity_spec.rb +7 -1
- data/spec/models/entity_surface_form_spec.rb +1 -1
- data/spec/models/error_links_spec.rb +1 -1
- data/spec/models/error_spec.rb +1 -1
- data/spec/models/errors_spec.rb +1 -1
- data/spec/models/external_ids_spec.rb +41 -0
- data/spec/models/histogram_interval_spec.rb +1 -1
- data/spec/models/histograms_spec.rb +1 -1
- data/spec/models/location_spec.rb +1 -1
- data/spec/models/logicals_spec.rb +1 -1
- data/spec/models/media_format_spec.rb +1 -1
- data/spec/models/media_spec.rb +1 -1
- data/spec/models/media_type_spec.rb +1 -1
- data/spec/models/nested_entity_spec.rb +1 -1
- data/spec/models/parameter_spec.rb +1 -1
- data/spec/models/query_spec.rb +1 -1
- data/spec/models/rank_spec.rb +1 -1
- data/spec/models/rankings_spec.rb +1 -1
- data/spec/models/related_stories_spec.rb +1 -1
- data/spec/models/representative_story_spec.rb +1 -1
- data/spec/models/scope_level_spec.rb +1 -1
- data/spec/models/scope_spec.rb +1 -1
- data/spec/models/sentiment_polarity_spec.rb +1 -1
- data/spec/models/sentiment_spec.rb +1 -1
- data/spec/models/sentiments_spec.rb +1 -1
- data/spec/models/share_count_spec.rb +1 -1
- data/spec/models/share_counts_spec.rb +1 -1
- data/spec/models/source_spec.rb +1 -1
- data/spec/models/stories_spec.rb +1 -1
- data/spec/models/story_cluster_spec.rb +1 -1
- data/spec/models/story_links_spec.rb +1 -1
- data/spec/models/story_spec.rb +13 -1
- data/spec/models/story_translation_spec.rb +1 -1
- data/spec/models/story_translations_spec.rb +1 -1
- data/spec/models/summary_spec.rb +1 -1
- data/spec/models/time_series_list_spec.rb +1 -1
- data/spec/models/time_series_spec.rb +1 -1
- data/spec/models/trend_spec.rb +1 -1
- data/spec/models/trends_spec.rb +1 -1
- data/spec/models/warning_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +68 -60
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5de5047ef92a948536555e14d03e575aa9e3bb8a14bd9d04d07d0bc6556cd806
|
|
4
|
+
data.tar.gz: 277b33ed85956cc8a0d2293aa7976f23e626593fb4c2e1d3672bbe6cf8bbebf7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c16cbfe59d93d63e7896b3f750166dc27913682b006bb415cb208bf18616dc663e3f79dece408e683589207ff3ac2f17745cfc99e423b54502f62d4df17f3a46
|
|
7
|
+
data.tar.gz: f09bdf2e07bcb23353dbba14ae458efa05dc5c3bbcff8739be3c80016be37934d5dd7da2ccd6b500b2f797fff9493fbce4ff1da983a495e4cd0f8ec4bcca2a4d
|
data/README.md
CHANGED
|
@@ -90,12 +90,14 @@ Class | Method | HTTP request | Description
|
|
|
90
90
|
- [AylienNewsApi::Cluster](docs/Cluster.md)
|
|
91
91
|
- [AylienNewsApi::Clusters](docs/Clusters.md)
|
|
92
92
|
- [AylienNewsApi::Coverages](docs/Coverages.md)
|
|
93
|
+
- [AylienNewsApi::DunsNumber](docs/DunsNumber.md)
|
|
93
94
|
- [AylienNewsApi::Entities](docs/Entities.md)
|
|
94
95
|
- [AylienNewsApi::Entity](docs/Entity.md)
|
|
95
96
|
- [AylienNewsApi::EntityLinks](docs/EntityLinks.md)
|
|
96
97
|
- [AylienNewsApi::Error](docs/Error.md)
|
|
97
98
|
- [AylienNewsApi::ErrorLinks](docs/ErrorLinks.md)
|
|
98
99
|
- [AylienNewsApi::Errors](docs/Errors.md)
|
|
100
|
+
- [AylienNewsApi::ExternalIds](docs/ExternalIds.md)
|
|
99
101
|
- [AylienNewsApi::HistogramInterval](docs/HistogramInterval.md)
|
|
100
102
|
- [AylienNewsApi::Histograms](docs/Histograms.md)
|
|
101
103
|
- [AylienNewsApi::Location](docs/Location.md)
|
data/aylien_news_api.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
7
7
|
|
|
8
|
-
The version of the OpenAPI document: 5.
|
|
8
|
+
The version of the OpenAPI document: 5.1.1
|
|
9
9
|
Contact: support@aylien.com
|
|
10
10
|
Generated by: https://openapi-generator.tech
|
|
11
11
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
data/docs/Category.md
CHANGED
|
@@ -8,9 +8,9 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**id** | **String** | The ID of the category | [optional]
|
|
9
9
|
**label** | **String** | The label of the category | [optional]
|
|
10
10
|
**level** | **Integer** | The level of the category | [optional]
|
|
11
|
-
**links** | [**CategoryLinks**](CategoryLinks.md) | | [optional]
|
|
12
11
|
**score** | **Float** | The score of the category | [optional]
|
|
13
12
|
**taxonomy** | [**CategoryTaxonomy**](CategoryTaxonomy.md) | | [optional]
|
|
13
|
+
**links** | [**CategoryLinks**](CategoryLinks.md) | | [optional]
|
|
14
14
|
|
|
15
15
|
## Code Sample
|
|
16
16
|
|
|
@@ -21,9 +21,9 @@ instance = AylienNewsApi::Category.new(confident: null,
|
|
|
21
21
|
id: null,
|
|
22
22
|
label: null,
|
|
23
23
|
level: null,
|
|
24
|
-
links: null,
|
|
25
24
|
score: null,
|
|
26
|
-
taxonomy: null
|
|
25
|
+
taxonomy: null,
|
|
26
|
+
links: null)
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
|
data/docs/CategoryLinks.md
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
Name | Type | Description | Notes
|
|
6
6
|
------------ | ------------- | ------------- | -------------
|
|
7
7
|
**parent** | **String** | A URL pointing to the parent category | [optional]
|
|
8
|
+
**parents** | **Array<String>** | A collection of URLs pointing to the category parents | [optional]
|
|
8
9
|
**_self** | **String** | A URL pointing to the category | [optional]
|
|
9
10
|
|
|
10
11
|
## Code Sample
|
|
@@ -13,6 +14,7 @@ Name | Type | Description | Notes
|
|
|
13
14
|
require 'AylienNewsApi'
|
|
14
15
|
|
|
15
16
|
instance = AylienNewsApi::CategoryLinks.new(parent: null,
|
|
17
|
+
parents: null,
|
|
16
18
|
_self: null)
|
|
17
19
|
```
|
|
18
20
|
|
data/docs/DeprecatedStory.md
CHANGED
|
@@ -17,7 +17,8 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**links** | [**StoryLinks**](StoryLinks.md) | | [optional]
|
|
18
18
|
**media** | [**Array<Media>**](Media.md) | An array of extracted media such as images and videos | [optional]
|
|
19
19
|
**paragraphs_count** | **Integer** | Paragraph count of the story body | [optional]
|
|
20
|
-
**
|
|
20
|
+
**published_datetime** | **DateTime** | Publication time of the story, if available, otherwise time of acquisition | [optional]
|
|
21
|
+
**published_at** | **DateTime** | Acquisition time of the story | [optional]
|
|
21
22
|
**sentences_count** | **Integer** | Sentence count of the story body | [optional]
|
|
22
23
|
**sentiment** | [**Sentiments**](Sentiments.md) | | [optional]
|
|
23
24
|
**social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional]
|
|
@@ -27,6 +28,7 @@ Name | Type | Description | Notes
|
|
|
27
28
|
**translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional]
|
|
28
29
|
**words_count** | **Integer** | Word count of the story body | [optional]
|
|
29
30
|
**license_type** | **Integer** | License type of the story | [optional]
|
|
31
|
+
**industries** | [**Array<Category>**](Category.md) | An array of industries categories | [optional]
|
|
30
32
|
|
|
31
33
|
## Code Sample
|
|
32
34
|
|
|
@@ -46,6 +48,7 @@ instance = AylienNewsApi::DeprecatedStory.new(author: null,
|
|
|
46
48
|
links: null,
|
|
47
49
|
media: null,
|
|
48
50
|
paragraphs_count: null,
|
|
51
|
+
published_datetime: null,
|
|
49
52
|
published_at: null,
|
|
50
53
|
sentences_count: null,
|
|
51
54
|
sentiment: null,
|
|
@@ -55,7 +58,8 @@ instance = AylienNewsApi::DeprecatedStory.new(author: null,
|
|
|
55
58
|
title: null,
|
|
56
59
|
translations: null,
|
|
57
60
|
words_count: null,
|
|
58
|
-
license_type: null
|
|
61
|
+
license_type: null,
|
|
62
|
+
industries: null)
|
|
59
63
|
```
|
|
60
64
|
|
|
61
65
|
|
data/docs/DunsNumber.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# AylienNewsApi::DunsNumber
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**id** | **String** | | [optional]
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'AylienNewsApi'
|
|
13
|
+
|
|
14
|
+
instance = AylienNewsApi::DunsNumber.new(id: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
data/docs/Entity.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
|
13
13
|
**overall_frequency** | **Integer** | Amount of entity surface form mentions in the article | [optional]
|
|
14
14
|
**body** | [**EntityInText**](EntityInText.md) | | [optional]
|
|
15
15
|
**title** | [**EntityInText**](EntityInText.md) | | [optional]
|
|
16
|
+
**external_ids** | [**ExternalIds**](ExternalIds.md) | | [optional]
|
|
16
17
|
|
|
17
18
|
## Code Sample
|
|
18
19
|
|
|
@@ -27,7 +28,8 @@ instance = AylienNewsApi::Entity.new(id: null,
|
|
|
27
28
|
overall_prominence: null,
|
|
28
29
|
overall_frequency: null,
|
|
29
30
|
body: null,
|
|
30
|
-
title: null
|
|
31
|
+
title: null,
|
|
32
|
+
external_ids: null)
|
|
31
33
|
```
|
|
32
34
|
|
|
33
35
|
|
data/docs/ExternalIds.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# AylienNewsApi::ExternalIds
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
Name | Type | Description | Notes
|
|
6
|
+
------------ | ------------- | ------------- | -------------
|
|
7
|
+
**duns** | [**Array<DunsNumber>**](DunsNumber.md) | DUNS number(s) of the entity | [optional]
|
|
8
|
+
|
|
9
|
+
## Code Sample
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'AylienNewsApi'
|
|
13
|
+
|
|
14
|
+
instance = AylienNewsApi::ExternalIds.new(duns: null)
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
|
data/docs/Story.md
CHANGED
|
@@ -17,7 +17,8 @@ Name | Type | Description | Notes
|
|
|
17
17
|
**links** | [**StoryLinks**](StoryLinks.md) | | [optional]
|
|
18
18
|
**media** | [**Array<Media>**](Media.md) | An array of extracted media such as images and videos | [optional]
|
|
19
19
|
**paragraphs_count** | **Integer** | Paragraph count of the story body | [optional]
|
|
20
|
-
**
|
|
20
|
+
**published_datetime** | **DateTime** | Publication time of the story, if available, otherwise time of acquisition | [optional]
|
|
21
|
+
**published_at** | **DateTime** | Acquisition time of the story | [optional]
|
|
21
22
|
**sentences_count** | **Integer** | Sentence count of the story body | [optional]
|
|
22
23
|
**sentiment** | [**Sentiments**](Sentiments.md) | | [optional]
|
|
23
24
|
**social_shares_count** | [**ShareCounts**](ShareCounts.md) | | [optional]
|
|
@@ -27,6 +28,7 @@ Name | Type | Description | Notes
|
|
|
27
28
|
**translations** | [**StoryTranslations**](StoryTranslations.md) | | [optional]
|
|
28
29
|
**words_count** | **Integer** | Word count of the story body | [optional]
|
|
29
30
|
**license_type** | **Integer** | License type of the story | [optional]
|
|
31
|
+
**industries** | [**Array<Category>**](Category.md) | An array of industries categories | [optional]
|
|
30
32
|
|
|
31
33
|
## Code Sample
|
|
32
34
|
|
|
@@ -46,6 +48,7 @@ instance = AylienNewsApi::Story.new(author: null,
|
|
|
46
48
|
links: null,
|
|
47
49
|
media: null,
|
|
48
50
|
paragraphs_count: null,
|
|
51
|
+
published_datetime: null,
|
|
49
52
|
published_at: null,
|
|
50
53
|
sentences_count: null,
|
|
51
54
|
sentiment: null,
|
|
@@ -55,7 +58,8 @@ instance = AylienNewsApi::Story.new(author: null,
|
|
|
55
58
|
title: null,
|
|
56
59
|
translations: null,
|
|
57
60
|
words_count: null,
|
|
58
|
-
license_type: null
|
|
61
|
+
license_type: null,
|
|
62
|
+
industries: null)
|
|
59
63
|
```
|
|
60
64
|
|
|
61
65
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -26,13 +26,13 @@ module AylienNewsApi
|
|
|
26
26
|
# The level of the category
|
|
27
27
|
attr_accessor :level
|
|
28
28
|
|
|
29
|
-
attr_accessor :links
|
|
30
|
-
|
|
31
29
|
# The score of the category
|
|
32
30
|
attr_accessor :score
|
|
33
31
|
|
|
34
32
|
attr_accessor :taxonomy
|
|
35
33
|
|
|
34
|
+
attr_accessor :links
|
|
35
|
+
|
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
37
|
def self.attribute_map
|
|
38
38
|
{
|
|
@@ -40,9 +40,9 @@ module AylienNewsApi
|
|
|
40
40
|
:'id' => :'id',
|
|
41
41
|
:'label' => :'label',
|
|
42
42
|
:'level' => :'level',
|
|
43
|
-
:'links' => :'links',
|
|
44
43
|
:'score' => :'score',
|
|
45
|
-
:'taxonomy' => :'taxonomy'
|
|
44
|
+
:'taxonomy' => :'taxonomy',
|
|
45
|
+
:'links' => :'links'
|
|
46
46
|
}
|
|
47
47
|
end
|
|
48
48
|
|
|
@@ -53,15 +53,17 @@ module AylienNewsApi
|
|
|
53
53
|
:'id' => :'String',
|
|
54
54
|
:'label' => :'String',
|
|
55
55
|
:'level' => :'Integer',
|
|
56
|
-
:'links' => :'CategoryLinks',
|
|
57
56
|
:'score' => :'Float',
|
|
58
|
-
:'taxonomy' => :'CategoryTaxonomy'
|
|
57
|
+
:'taxonomy' => :'CategoryTaxonomy',
|
|
58
|
+
:'links' => :'CategoryLinks'
|
|
59
59
|
}
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
# List of attributes with nullable: true
|
|
63
63
|
def self.openapi_nullable
|
|
64
64
|
Set.new([
|
|
65
|
+
:'confident',
|
|
66
|
+
:'level',
|
|
65
67
|
])
|
|
66
68
|
end
|
|
67
69
|
|
|
@@ -96,10 +98,6 @@ module AylienNewsApi
|
|
|
96
98
|
self.level = attributes[:'level']
|
|
97
99
|
end
|
|
98
100
|
|
|
99
|
-
if attributes.key?(:'links')
|
|
100
|
-
self.links = attributes[:'links']
|
|
101
|
-
end
|
|
102
|
-
|
|
103
101
|
if attributes.key?(:'score')
|
|
104
102
|
self.score = attributes[:'score']
|
|
105
103
|
end
|
|
@@ -107,21 +105,49 @@ module AylienNewsApi
|
|
|
107
105
|
if attributes.key?(:'taxonomy')
|
|
108
106
|
self.taxonomy = attributes[:'taxonomy']
|
|
109
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'links')
|
|
110
|
+
self.links = attributes[:'links']
|
|
111
|
+
end
|
|
110
112
|
end
|
|
111
113
|
|
|
112
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
113
115
|
# @return Array for valid properties with the reasons
|
|
114
116
|
def list_invalid_properties
|
|
115
117
|
invalid_properties = Array.new
|
|
118
|
+
if !@score.nil? && @score > 1
|
|
119
|
+
invalid_properties.push('invalid value for "score", must be smaller than or equal to 1.')
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if !@score.nil? && @score < 0
|
|
123
|
+
invalid_properties.push('invalid value for "score", must be greater than or equal to 0.')
|
|
124
|
+
end
|
|
125
|
+
|
|
116
126
|
invalid_properties
|
|
117
127
|
end
|
|
118
128
|
|
|
119
129
|
# Check to see if the all the properties in the model are valid
|
|
120
130
|
# @return true if the model is valid
|
|
121
131
|
def valid?
|
|
132
|
+
return false if !@score.nil? && @score > 1
|
|
133
|
+
return false if !@score.nil? && @score < 0
|
|
122
134
|
true
|
|
123
135
|
end
|
|
124
136
|
|
|
137
|
+
# Custom attribute writer method with validation
|
|
138
|
+
# @param [Object] score Value to be assigned
|
|
139
|
+
def score=(score)
|
|
140
|
+
if !score.nil? && score > 1
|
|
141
|
+
fail ArgumentError, 'invalid value for "score", must be smaller than or equal to 1.'
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
if !score.nil? && score < 0
|
|
145
|
+
fail ArgumentError, 'invalid value for "score", must be greater than or equal to 0.'
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
@score = score
|
|
149
|
+
end
|
|
150
|
+
|
|
125
151
|
# Checks equality by comparing each attribute.
|
|
126
152
|
# @param [Object] Object to be compared
|
|
127
153
|
def ==(o)
|
|
@@ -131,9 +157,9 @@ module AylienNewsApi
|
|
|
131
157
|
id == o.id &&
|
|
132
158
|
label == o.label &&
|
|
133
159
|
level == o.level &&
|
|
134
|
-
links == o.links &&
|
|
135
160
|
score == o.score &&
|
|
136
|
-
taxonomy == o.taxonomy
|
|
161
|
+
taxonomy == o.taxonomy &&
|
|
162
|
+
links == o.links
|
|
137
163
|
end
|
|
138
164
|
|
|
139
165
|
# @see the `==` method
|
|
@@ -145,7 +171,7 @@ module AylienNewsApi
|
|
|
145
171
|
# Calculates hash code according to all attributes.
|
|
146
172
|
# @return [Integer] Hash code
|
|
147
173
|
def hash
|
|
148
|
-
[confident, id, label, level,
|
|
174
|
+
[confident, id, label, level, score, taxonomy, links].hash
|
|
149
175
|
end
|
|
150
176
|
|
|
151
177
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -17,6 +17,9 @@ module AylienNewsApi
|
|
|
17
17
|
# A URL pointing to the parent category
|
|
18
18
|
attr_accessor :parent
|
|
19
19
|
|
|
20
|
+
# A collection of URLs pointing to the category parents
|
|
21
|
+
attr_accessor :parents
|
|
22
|
+
|
|
20
23
|
# A URL pointing to the category
|
|
21
24
|
attr_accessor :_self
|
|
22
25
|
|
|
@@ -24,6 +27,7 @@ module AylienNewsApi
|
|
|
24
27
|
def self.attribute_map
|
|
25
28
|
{
|
|
26
29
|
:'parent' => :'parent',
|
|
30
|
+
:'parents' => :'parents',
|
|
27
31
|
:'_self' => :'self'
|
|
28
32
|
}
|
|
29
33
|
end
|
|
@@ -32,6 +36,7 @@ module AylienNewsApi
|
|
|
32
36
|
def self.openapi_types
|
|
33
37
|
{
|
|
34
38
|
:'parent' => :'String',
|
|
39
|
+
:'parents' => :'Array<String>',
|
|
35
40
|
:'_self' => :'String'
|
|
36
41
|
}
|
|
37
42
|
end
|
|
@@ -39,6 +44,8 @@ module AylienNewsApi
|
|
|
39
44
|
# List of attributes with nullable: true
|
|
40
45
|
def self.openapi_nullable
|
|
41
46
|
Set.new([
|
|
47
|
+
:'parent',
|
|
48
|
+
:'parents',
|
|
42
49
|
])
|
|
43
50
|
end
|
|
44
51
|
|
|
@@ -61,6 +68,12 @@ module AylienNewsApi
|
|
|
61
68
|
self.parent = attributes[:'parent']
|
|
62
69
|
end
|
|
63
70
|
|
|
71
|
+
if attributes.key?(:'parents')
|
|
72
|
+
if (value = attributes[:'parents']).is_a?(Array)
|
|
73
|
+
self.parents = value
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
64
77
|
if attributes.key?(:'_self')
|
|
65
78
|
self._self = attributes[:'_self']
|
|
66
79
|
end
|
|
@@ -85,6 +98,7 @@ module AylienNewsApi
|
|
|
85
98
|
return true if self.equal?(o)
|
|
86
99
|
self.class == o.class &&
|
|
87
100
|
parent == o.parent &&
|
|
101
|
+
parents == o.parents &&
|
|
88
102
|
_self == o._self
|
|
89
103
|
end
|
|
90
104
|
|
|
@@ -97,7 +111,7 @@ module AylienNewsApi
|
|
|
97
111
|
# Calculates hash code according to all attributes.
|
|
98
112
|
# @return [Integer] Hash code
|
|
99
113
|
def hash
|
|
100
|
-
[parent, _self].hash
|
|
114
|
+
[parent, parents, _self].hash
|
|
101
115
|
end
|
|
102
116
|
|
|
103
117
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -16,6 +16,7 @@ module AylienNewsApi
|
|
|
16
16
|
class CategoryTaxonomy
|
|
17
17
|
IAB_QAG = "iab-qag".freeze
|
|
18
18
|
IPTC_SUBJECTCODE = "iptc-subjectcode".freeze
|
|
19
|
+
AYLIEN = "aylien".freeze
|
|
19
20
|
|
|
20
21
|
# Builds the enum from string
|
|
21
22
|
# @param [String] The enum value in the form of the string
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 5.
|
|
6
|
+
The version of the OpenAPI document: 5.1.1
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 4.7
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 4.7
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 4.7
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 4.7
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The AYLIEN News API is the most powerful way of sourcing, searching and syndicating analyzed and enriched news content. It is accessed by sending HTTP requests to our server, which returns information to your client.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document:
|
|
6
|
+
The version of the OpenAPI document: 4.7
|
|
7
7
|
Contact: support@aylien.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|