azure_cognitiveservices_websearch 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_websearch.rb +69 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/answer.rb +90 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/answer_type.rb +22 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/article.rb +163 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/computation.rb +119 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/creative_work.rb +160 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/error.rb +116 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/error_code.rb +20 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/error_response.rb +89 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/error_sub_code.rb +25 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/freshness.rb +17 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/identifiable.rb +62 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/image_object.rb +199 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/images.rb +210 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/intangible.rb +115 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/media_object.rb +200 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/news.rb +148 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/news_article.rb +159 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/places.rb +135 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/query.rb +100 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/query_context.rb +126 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/ranking_ranking_group.rb +56 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/ranking_ranking_item.rb +116 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/ranking_ranking_response.rb +79 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/related_searches_related_search_answer.rb +135 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/response.rb +72 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/response_base.rb +71 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/safe_search.rb +17 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/search_response.rb +212 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/search_results_answer.rb +126 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/spell_suggestions.rb +141 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/structured_value.rb +115 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/text_format.rb +16 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/thing.rb +131 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/time_zone.rb +157 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/time_zone_time_zone_information.rb +70 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/video_object.rb +295 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/videos.rb +189 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/web_meta_tag.rb +59 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/web_page.rb +251 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/web_web_answer.rb +149 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_websearch/models/web_web_grouping.rb +66 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_websearch/module_definition.rb +9 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_websearch/web.rb +775 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_websearch/web_search_client.rb +127 -0
  48. data/lib/azure_cognitiveservices_websearch.rb +6 -0
  49. data/lib/module_definition.rb +7 -0
  50. data/lib/profiles/latest/modules/websearch_profile_module.rb +223 -0
  51. data/lib/profiles/latest/websearch_latest_profile_client.rb +38 -0
  52. data/lib/profiles/latest/websearch_module_definition.rb +8 -0
  53. data/lib/version.rb +7 -0
  54. metadata +171 -0
@@ -0,0 +1,160 @@
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::WebSearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class CreativeWork < Thing
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "CreativeWork"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+ # @return [String] The URL to a thumbnail of the item.
24
+ attr_accessor :thumbnail_url
25
+
26
+ # @return [Array<Thing>] The source of the creative work.
27
+ attr_accessor :provider
28
+
29
+ # @return [String]
30
+ attr_accessor :text
31
+
32
+
33
+ #
34
+ # Mapper for CreativeWork class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ client_side_validation: true,
40
+ required: false,
41
+ serialized_name: 'CreativeWork',
42
+ type: {
43
+ name: 'Composite',
44
+ class_name: 'CreativeWork',
45
+ model_properties: {
46
+ _type: {
47
+ client_side_validation: true,
48
+ required: true,
49
+ serialized_name: '_type',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ id: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'id',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ web_search_url: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'webSearchUrl',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ name: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'name',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ url: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'url',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ image: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'image',
95
+ type: {
96
+ name: 'Composite',
97
+ class_name: 'ImageObject'
98
+ }
99
+ },
100
+ description: {
101
+ client_side_validation: true,
102
+ required: false,
103
+ read_only: true,
104
+ serialized_name: 'description',
105
+ type: {
106
+ name: 'String'
107
+ }
108
+ },
109
+ bing_id: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'bingId',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ thumbnail_url: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'thumbnailUrl',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
127
+ provider: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ read_only: true,
131
+ serialized_name: 'provider',
132
+ type: {
133
+ name: 'Sequence',
134
+ element: {
135
+ client_side_validation: true,
136
+ required: false,
137
+ serialized_name: 'ThingElementType',
138
+ type: {
139
+ name: 'Composite',
140
+ class_name: 'Thing'
141
+ }
142
+ }
143
+ }
144
+ },
145
+ text: {
146
+ client_side_validation: true,
147
+ required: false,
148
+ read_only: true,
149
+ serialized_name: 'text',
150
+ type: {
151
+ name: 'String'
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ end
158
+ end
159
+ end
160
+ end
@@ -0,0 +1,116 @@
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::WebSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines the error that occurred.
10
+ #
11
+ class Error
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [ErrorCode] The error code that identifies the category of
16
+ # error. Possible values include: 'None', 'ServerError',
17
+ # 'InvalidRequest', 'RateLimitExceeded', 'InvalidAuthorization',
18
+ # 'InsufficientAuthorization'. Default value: 'None' .
19
+ attr_accessor :code
20
+
21
+ # @return [ErrorSubCode] The error code that further helps to identify
22
+ # the error. Possible values include: 'UnexpectedError', 'ResourceError',
23
+ # 'NotImplemented', 'ParameterMissing', 'ParameterInvalidValue',
24
+ # 'HttpNotAllowed', 'Blocked', 'AuthorizationMissing',
25
+ # 'AuthorizationRedundancy', 'AuthorizationDisabled',
26
+ # 'AuthorizationExpired'
27
+ attr_accessor :sub_code
28
+
29
+ # @return [String] A description of the error.
30
+ attr_accessor :message
31
+
32
+ # @return [String] A description that provides additional information
33
+ # about the error.
34
+ attr_accessor :more_details
35
+
36
+ # @return [String] The parameter in the request that caused the error.
37
+ attr_accessor :parameter
38
+
39
+ # @return [String] The parameter's value in the request that was not
40
+ # valid.
41
+ attr_accessor :value
42
+
43
+
44
+ #
45
+ # Mapper for Error class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'Error',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'Error',
56
+ model_properties: {
57
+ code: {
58
+ client_side_validation: true,
59
+ required: true,
60
+ serialized_name: 'code',
61
+ default_value: 'None',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ },
66
+ sub_code: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ read_only: true,
70
+ serialized_name: 'subCode',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ message: {
76
+ client_side_validation: true,
77
+ required: true,
78
+ serialized_name: 'message',
79
+ type: {
80
+ name: 'String'
81
+ }
82
+ },
83
+ more_details: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ read_only: true,
87
+ serialized_name: 'moreDetails',
88
+ type: {
89
+ name: 'String'
90
+ }
91
+ },
92
+ parameter: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ read_only: true,
96
+ serialized_name: 'parameter',
97
+ type: {
98
+ name: 'String'
99
+ }
100
+ },
101
+ value: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ read_only: true,
105
+ serialized_name: 'value',
106
+ type: {
107
+ name: 'String'
108
+ }
109
+ }
110
+ }
111
+ }
112
+ }
113
+ end
114
+ end
115
+ end
116
+ end
@@ -0,0 +1,20 @@
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::WebSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for ErrorCode
10
+ #
11
+ module ErrorCode
12
+ None = "None"
13
+ ServerError = "ServerError"
14
+ InvalidRequest = "InvalidRequest"
15
+ RateLimitExceeded = "RateLimitExceeded"
16
+ InvalidAuthorization = "InvalidAuthorization"
17
+ InsufficientAuthorization = "InsufficientAuthorization"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,89 @@
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::WebSearch::V1_0
7
+ module Models
8
+ #
9
+ # The top-level response that represents a failed request.
10
+ #
11
+ class ErrorResponse < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "ErrorResponse"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Array<Error>] A list of errors that describe the reasons why
23
+ # the request failed.
24
+ attr_accessor :errors
25
+
26
+
27
+ #
28
+ # Mapper for ErrorResponse 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: 'ErrorResponse',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'ErrorResponse',
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
+ errors: {
67
+ client_side_validation: true,
68
+ required: true,
69
+ serialized_name: 'errors',
70
+ type: {
71
+ name: 'Sequence',
72
+ element: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ serialized_name: 'ErrorElementType',
76
+ type: {
77
+ name: 'Composite',
78
+ class_name: 'Error'
79
+ }
80
+ }
81
+ }
82
+ }
83
+ }
84
+ }
85
+ }
86
+ end
87
+ end
88
+ end
89
+ end
@@ -0,0 +1,25 @@
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::WebSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for ErrorSubCode
10
+ #
11
+ module ErrorSubCode
12
+ UnexpectedError = "UnexpectedError"
13
+ ResourceError = "ResourceError"
14
+ NotImplemented = "NotImplemented"
15
+ ParameterMissing = "ParameterMissing"
16
+ ParameterInvalidValue = "ParameterInvalidValue"
17
+ HttpNotAllowed = "HttpNotAllowed"
18
+ Blocked = "Blocked"
19
+ AuthorizationMissing = "AuthorizationMissing"
20
+ AuthorizationRedundancy = "AuthorizationRedundancy"
21
+ AuthorizationDisabled = "AuthorizationDisabled"
22
+ AuthorizationExpired = "AuthorizationExpired"
23
+ end
24
+ end
25
+ end
@@ -0,0 +1,17 @@
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::WebSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for Freshness
10
+ #
11
+ module Freshness
12
+ Day = "Day"
13
+ Week = "Week"
14
+ Month = "Month"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,62 @@
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::WebSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines the identity of a resource.
10
+ #
11
+ class Identifiable < ResponseBase
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Identifiable"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] A String identifier.
23
+ attr_accessor :id
24
+
25
+
26
+ #
27
+ # Mapper for Identifiable class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'Identifiable',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'Identifiable',
38
+ model_properties: {
39
+ _type: {
40
+ client_side_validation: true,
41
+ required: true,
42
+ serialized_name: '_type',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ read_only: true,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ }
56
+ }
57
+ }
58
+ }
59
+ end
60
+ end
61
+ end
62
+ end