azure_cognitiveservices_newssearch 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_newssearch.rb +52 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/answer.rb +89 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/article.rb +182 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/creative_work.rb +182 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/error.rb +116 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/error_code.rb +20 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/error_response.rb +89 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/error_sub_code.rb +25 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/freshness.rb +17 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/identifiable.rb +62 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/image_object.rb +209 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/media_object.rb +206 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/news.rb +129 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/news_article.rb +228 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/news_topic.rb +164 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/organization.rb +123 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/query.rb +104 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/response.rb +72 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/response_base.rb +61 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/safe_search.rb +17 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/search_results_answer.rb +100 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/text_format.rb +16 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/thing.rb +142 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/trending_topics.rb +107 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_newssearch/models/video_object.rb +305 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_newssearch/module_definition.rb +9 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_newssearch/news_operations.rb +2326 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_newssearch/news_search_client.rb +127 -0
  31. data/lib/azure_cognitiveservices_newssearch.rb +6 -0
  32. data/lib/module_definition.rb +7 -0
  33. data/lib/profiles/latest/modules/newssearch_profile_module.rb +155 -0
  34. data/lib/profiles/latest/newssearch_latest_profile_client.rb +38 -0
  35. data/lib/profiles/latest/newssearch_module_definition.rb +8 -0
  36. data/lib/version.rb +7 -0
  37. metadata +154 -0
@@ -0,0 +1,164 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::NewsSearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class NewsTopic < Thing
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "News/Topic"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [Boolean] A Boolean value that indicates whether the topic is
24
+ # considered breaking news. If the topic is considered breaking news, the
25
+ # value is true.
26
+ attr_accessor :is_breaking_news
27
+
28
+ # @return [Query] A search query term that returns this trending topic.
29
+ attr_accessor :query
30
+
31
+ # @return [String] The URL to the Bing News search results for the search
32
+ # query term
33
+ attr_accessor :news_search_url
34
+
35
+
36
+ #
37
+ # Mapper for NewsTopic class as Ruby Hash.
38
+ # This will be used for serialization/deserialization.
39
+ #
40
+ def self.mapper()
41
+ {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'News/Topic',
45
+ type: {
46
+ name: 'Composite',
47
+ class_name: 'NewsTopic',
48
+ model_properties: {
49
+ _type: {
50
+ client_side_validation: true,
51
+ required: true,
52
+ serialized_name: '_type',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ id: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'id',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ web_search_url: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'webSearchUrl',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ name: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ read_only: true,
79
+ serialized_name: 'name',
80
+ type: {
81
+ name: 'String'
82
+ }
83
+ },
84
+ url: {
85
+ client_side_validation: true,
86
+ required: false,
87
+ read_only: true,
88
+ serialized_name: 'url',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ },
93
+ image: {
94
+ client_side_validation: true,
95
+ required: false,
96
+ read_only: true,
97
+ serialized_name: 'image',
98
+ type: {
99
+ name: 'Composite',
100
+ class_name: 'ImageObject'
101
+ }
102
+ },
103
+ description: {
104
+ client_side_validation: true,
105
+ required: false,
106
+ read_only: true,
107
+ serialized_name: 'description',
108
+ type: {
109
+ name: 'String'
110
+ }
111
+ },
112
+ alternate_name: {
113
+ client_side_validation: true,
114
+ required: false,
115
+ read_only: true,
116
+ serialized_name: 'alternateName',
117
+ type: {
118
+ name: 'String'
119
+ }
120
+ },
121
+ bing_id: {
122
+ client_side_validation: true,
123
+ required: false,
124
+ read_only: true,
125
+ serialized_name: 'bingId',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ is_breaking_news: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ read_only: true,
134
+ serialized_name: 'isBreakingNews',
135
+ type: {
136
+ name: 'Boolean'
137
+ }
138
+ },
139
+ query: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ read_only: true,
143
+ serialized_name: 'query',
144
+ type: {
145
+ name: 'Composite',
146
+ class_name: 'Query'
147
+ }
148
+ },
149
+ news_search_url: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ read_only: true,
153
+ serialized_name: 'newsSearchUrl',
154
+ type: {
155
+ name: 'String'
156
+ }
157
+ }
158
+ }
159
+ }
160
+ }
161
+ end
162
+ end
163
+ end
164
+ end
@@ -0,0 +1,123 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::NewsSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines an organization.
10
+ #
11
+ class Organization < Thing
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Organization"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+
23
+ #
24
+ # Mapper for Organization class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ client_side_validation: true,
30
+ required: false,
31
+ serialized_name: 'Organization',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'Organization',
35
+ model_properties: {
36
+ _type: {
37
+ client_side_validation: true,
38
+ required: true,
39
+ serialized_name: '_type',
40
+ type: {
41
+ name: 'String'
42
+ }
43
+ },
44
+ id: {
45
+ client_side_validation: true,
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ web_search_url: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'webSearchUrl',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ name: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'name',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ url: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'url',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ image: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'image',
85
+ type: {
86
+ name: 'Composite',
87
+ class_name: 'ImageObject'
88
+ }
89
+ },
90
+ description: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'description',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ alternate_name: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'alternateName',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ bing_id: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'bingId',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ }
117
+ }
118
+ }
119
+ }
120
+ end
121
+ end
122
+ end
123
+ end
@@ -0,0 +1,104 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::NewsSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a search query.
10
+ #
11
+ class Query
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The query string. Use this string as the query term in
16
+ # a new search request.
17
+ attr_accessor :text
18
+
19
+ # @return [String] The display version of the query term. This version of
20
+ # the query term may contain special characters that highlight the search
21
+ # term found in the query string. The string contains the highlighting
22
+ # characters only if the query enabled hit highlighting
23
+ attr_accessor :display_text
24
+
25
+ # @return [String] The URL that takes the user to the Bing search results
26
+ # page for the query.Only related search results include this field.
27
+ attr_accessor :web_search_url
28
+
29
+ # @return [String] The URL that you use to get the results of the related
30
+ # search. Before using the URL, you must append query parameters as
31
+ # appropriate and include the Ocp-Apim-Subscription-Key header. Use this
32
+ # URL if you're displaying the results in your own user interface.
33
+ # Otherwise, use the webSearchUrl URL.
34
+ attr_accessor :search_link
35
+
36
+ # @return [ImageObject] The URL to a thumbnail of a related image.
37
+ attr_accessor :thumbnail
38
+
39
+
40
+ #
41
+ # Mapper for Query class as Ruby Hash.
42
+ # This will be used for serialization/deserialization.
43
+ #
44
+ def self.mapper()
45
+ {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'Query',
49
+ type: {
50
+ name: 'Composite',
51
+ class_name: 'Query',
52
+ model_properties: {
53
+ text: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: 'text',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ display_text: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ read_only: true,
65
+ serialized_name: 'displayText',
66
+ type: {
67
+ name: 'String'
68
+ }
69
+ },
70
+ web_search_url: {
71
+ client_side_validation: true,
72
+ required: false,
73
+ read_only: true,
74
+ serialized_name: 'webSearchUrl',
75
+ type: {
76
+ name: 'String'
77
+ }
78
+ },
79
+ search_link: {
80
+ client_side_validation: true,
81
+ required: false,
82
+ read_only: true,
83
+ serialized_name: 'searchLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ thumbnail: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ read_only: true,
92
+ serialized_name: 'thumbnail',
93
+ type: {
94
+ name: 'Composite',
95
+ class_name: 'ImageObject'
96
+ }
97
+ }
98
+ }
99
+ }
100
+ }
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,72 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::CognitiveServices::NewsSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a response. All schemas that could be returned at the root of a
10
+ # response should inherit from this
11
+ #
12
+ class Response < Identifiable
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "Response"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] The URL To Bing's search result for this item.
24
+ attr_accessor :web_search_url
25
+
26
+
27
+ #
28
+ # Mapper for Response class as Ruby Hash.
29
+ # This will be used for serialization/deserialization.
30
+ #
31
+ def self.mapper()
32
+ {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'Response',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Response',
39
+ model_properties: {
40
+ _type: {
41
+ client_side_validation: true,
42
+ required: true,
43
+ serialized_name: '_type',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ read_only: true,
52
+ serialized_name: 'id',
53
+ type: {
54
+ name: 'String'
55
+ }
56
+ },
57
+ web_search_url: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ read_only: true,
61
+ serialized_name: 'webSearchUrl',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
69
+ end
70
+ end
71
+ end
72
+ end