azure_cognitiveservices_customsearch 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_customsearch.rb +47 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_customsearch/custom_instance.rb +653 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_customsearch/custom_search_client.rb +127 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/answer.rb +90 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/creative_work.rb +150 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/error.rb +116 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/error_code.rb +20 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/error_response.rb +89 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/error_sub_code.rb +25 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/identifiable.rb +62 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/query.rb +87 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/query_context.rb +94 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/response.rb +72 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/response_base.rb +56 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/safe_search.rb +17 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/search_response.rb +100 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/search_results_answer.rb +126 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/text_format.rb +16 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/thing.rb +118 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/web_meta_tag.rb +59 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/web_page.rb +228 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_customsearch/models/web_web_answer.rb +149 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_customsearch/module_definition.rb +9 -0
  26. data/lib/azure_cognitiveservices_customsearch.rb +6 -0
  27. data/lib/module_definition.rb +7 -0
  28. data/lib/profiles/latest/customsearch_latest_profile_client.rb +38 -0
  29. data/lib/profiles/latest/customsearch_module_definition.rb +8 -0
  30. data/lib/profiles/latest/modules/customsearch_profile_module.rb +135 -0
  31. data/lib/version.rb +7 -0
  32. metadata +149 -0
@@ -0,0 +1,228 @@
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::CustomSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a webpage that is relevant to the query.
10
+ #
11
+ class WebPage < CreativeWork
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "WebPage"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The display URL of the webpage. The URL is meant for
23
+ # display purposes only and is not well formed.
24
+ attr_accessor :display_url
25
+
26
+ # @return [String] A snippet of text from the webpage that describes its
27
+ # contents.
28
+ attr_accessor :snippet
29
+
30
+ # @return [Array<WebPage>] A list of links to related content that Bing
31
+ # found in the website that contains this webpage. The Webpage object in
32
+ # this context includes only the name, url, urlPingSuffix, and snippet
33
+ # fields.
34
+ attr_accessor :deep_links
35
+
36
+ # @return [String] The last time that Bing crawled the webpage. The date
37
+ # is in the form, YYYY-MM-DDTHH:MM:SS. For example, 2015-04-13T05:23:39.
38
+ attr_accessor :date_last_crawled
39
+
40
+ # @return [Array<WebMetaTag>] A list of search tags that the webpage
41
+ # owner specified on the webpage. The API returns only indexed search
42
+ # tags. The name field of the MetaTag object contains the indexed search
43
+ # tag. Search tags begin with search.* (for example, search.assetId). The
44
+ # content field contains the tag's value.
45
+ attr_accessor :search_tags
46
+
47
+
48
+ #
49
+ # Mapper for WebPage class as Ruby Hash.
50
+ # This will be used for serialization/deserialization.
51
+ #
52
+ def self.mapper()
53
+ {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'WebPage',
57
+ type: {
58
+ name: 'Composite',
59
+ class_name: 'WebPage',
60
+ model_properties: {
61
+ _type: {
62
+ client_side_validation: true,
63
+ required: true,
64
+ serialized_name: '_type',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ id: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'id',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ },
78
+ web_search_url: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ read_only: true,
82
+ serialized_name: 'webSearchUrl',
83
+ type: {
84
+ name: 'String'
85
+ }
86
+ },
87
+ name: {
88
+ client_side_validation: true,
89
+ required: false,
90
+ read_only: true,
91
+ serialized_name: 'name',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ },
96
+ url: {
97
+ client_side_validation: true,
98
+ required: false,
99
+ read_only: true,
100
+ serialized_name: 'url',
101
+ type: {
102
+ name: 'String'
103
+ }
104
+ },
105
+ description: {
106
+ client_side_validation: true,
107
+ required: false,
108
+ read_only: true,
109
+ serialized_name: 'description',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ bing_id: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ read_only: true,
118
+ serialized_name: 'bingId',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ thumbnail_url: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ read_only: true,
127
+ serialized_name: 'thumbnailUrl',
128
+ type: {
129
+ name: 'String'
130
+ }
131
+ },
132
+ provider: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ read_only: true,
136
+ serialized_name: 'provider',
137
+ type: {
138
+ name: 'Sequence',
139
+ element: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ serialized_name: 'ThingElementType',
143
+ type: {
144
+ name: 'Composite',
145
+ class_name: 'Thing'
146
+ }
147
+ }
148
+ }
149
+ },
150
+ text: {
151
+ client_side_validation: true,
152
+ required: false,
153
+ read_only: true,
154
+ serialized_name: 'text',
155
+ type: {
156
+ name: 'String'
157
+ }
158
+ },
159
+ display_url: {
160
+ client_side_validation: true,
161
+ required: false,
162
+ read_only: true,
163
+ serialized_name: 'displayUrl',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ },
168
+ snippet: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ read_only: true,
172
+ serialized_name: 'snippet',
173
+ type: {
174
+ name: 'String'
175
+ }
176
+ },
177
+ deep_links: {
178
+ client_side_validation: true,
179
+ required: false,
180
+ read_only: true,
181
+ serialized_name: 'deepLinks',
182
+ type: {
183
+ name: 'Sequence',
184
+ element: {
185
+ client_side_validation: true,
186
+ required: false,
187
+ serialized_name: 'WebPageElementType',
188
+ type: {
189
+ name: 'Composite',
190
+ class_name: 'WebPage'
191
+ }
192
+ }
193
+ }
194
+ },
195
+ date_last_crawled: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ read_only: true,
199
+ serialized_name: 'dateLastCrawled',
200
+ type: {
201
+ name: 'String'
202
+ }
203
+ },
204
+ search_tags: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ read_only: true,
208
+ serialized_name: 'searchTags',
209
+ type: {
210
+ name: 'Sequence',
211
+ element: {
212
+ client_side_validation: true,
213
+ required: false,
214
+ serialized_name: 'WebMetaTagElementType',
215
+ type: {
216
+ name: 'Composite',
217
+ class_name: 'WebMetaTag'
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+ }
225
+ end
226
+ end
227
+ end
228
+ end
@@ -0,0 +1,149 @@
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::CustomSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a list of relevant webpage links.
10
+ #
11
+ class WebWebAnswer < SearchResultsAnswer
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Web/WebAnswer"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Array<WebPage>] A list of webpages that are relevant to the
23
+ # query.
24
+ attr_accessor :value
25
+
26
+ # @return [Boolean] A Boolean value that indicates whether the response
27
+ # excluded some results from the answer. If Bing excluded some results,
28
+ # the value is true.
29
+ attr_accessor :some_results_removed
30
+
31
+
32
+ #
33
+ # Mapper for WebWebAnswer class as Ruby Hash.
34
+ # This will be used for serialization/deserialization.
35
+ #
36
+ def self.mapper()
37
+ {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'Web/WebAnswer',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'WebWebAnswer',
44
+ model_properties: {
45
+ _type: {
46
+ client_side_validation: true,
47
+ required: true,
48
+ serialized_name: '_type',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ id: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'id',
58
+ type: {
59
+ name: 'String'
60
+ }
61
+ },
62
+ web_search_url: {
63
+ client_side_validation: true,
64
+ required: false,
65
+ read_only: true,
66
+ serialized_name: 'webSearchUrl',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ },
71
+ follow_up_queries: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'followUpQueries',
76
+ type: {
77
+ name: 'Sequence',
78
+ element: {
79
+ client_side_validation: true,
80
+ required: false,
81
+ serialized_name: 'QueryElementType',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'Query'
85
+ }
86
+ }
87
+ }
88
+ },
89
+ query_context: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'queryContext',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'QueryContext'
97
+ }
98
+ },
99
+ total_estimated_matches: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'totalEstimatedMatches',
104
+ type: {
105
+ name: 'Number'
106
+ }
107
+ },
108
+ is_family_friendly: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'isFamilyFriendly',
113
+ type: {
114
+ name: 'Boolean'
115
+ }
116
+ },
117
+ value: {
118
+ client_side_validation: true,
119
+ required: true,
120
+ serialized_name: 'value',
121
+ type: {
122
+ name: 'Sequence',
123
+ element: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'WebPageElementType',
127
+ type: {
128
+ name: 'Composite',
129
+ class_name: 'WebPage'
130
+ }
131
+ }
132
+ }
133
+ },
134
+ some_results_removed: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ read_only: true,
138
+ serialized_name: 'someResultsRemoved',
139
+ type: {
140
+ name: 'Boolean'
141
+ }
142
+ }
143
+ }
144
+ }
145
+ }
146
+ end
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,9 @@
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 end
7
+ module Azure::CognitiveServices end
8
+ module Azure::CognitiveServices::CustomSearch end
9
+ module Azure::CognitiveServices::CustomSearch::V1_0 end
@@ -0,0 +1,6 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require '1.0/generated/azure_cognitiveservices_customsearch'
6
+ require 'profiles/latest/customsearch_latest_profile_client'
@@ -0,0 +1,7 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::CognitiveServices end
7
+ module Azure::CognitiveServices::CustomSearch end
@@ -0,0 +1,38 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'profiles/latest/customsearch_module_definition'
6
+ require 'profiles/latest/modules/customsearch_profile_module'
7
+
8
+ module Azure::CustomSearch::Profiles::Latest
9
+ #
10
+ # Client class for the Latest profile SDK.
11
+ #
12
+ class Client < CustomSearchDataClass
13
+ include MsRestAzure::Common::Configurable
14
+
15
+ #
16
+ # Initializes a new instance of the Client class.
17
+ # @param options [Hash] hash of client options.
18
+ # options = {
19
+ # tenant_id: 'YOUR TENANT ID',
20
+ # client_id: 'YOUR CLIENT ID',
21
+ # client_secret: 'YOUR CLIENT SECRET',
22
+ # subscription_id: 'YOUR SUBSCRIPTION ID',
23
+ # credentials: credentials,
24
+ # active_directory_settings: active_directory_settings,
25
+ # base_url: 'YOUR BASE URL',
26
+ # options: options
27
+ # }
28
+ # 'credentials' are optional and if not passed in the hash, will be obtained
29
+ # from MsRest::TokenCredentials using MsRestAzure::ApplicationTokenProvider.
30
+ #
31
+ # Also, base_url, active_directory_settings & options are optional.
32
+ #
33
+ def initialize(options = {})
34
+ super(options)
35
+ end
36
+
37
+ end
38
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ module Azure end
6
+ module Azure::CustomSearch end
7
+ module Azure::CustomSearch::Profiles end
8
+ module Azure::CustomSearch::Profiles::Latest end