azure_cognitiveservices_customimagesearch 0.17.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_customimagesearch.rb +52 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/custom_instance.rb +1015 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/customimagesearch_client.rb +133 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/answer.rb +77 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/creative_work.rb +178 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error.rb +116 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_code.rb +20 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_response.rb +98 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/error_sub_code.rb +25 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/freshness.rb +17 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/identifiable.rb +62 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_aspect.rb +18 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_color.rb +28 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_content.rb +16 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_license.rb +21 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_object.rb +298 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_size.rb +19 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/image_type.rb +20 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/images.rb +120 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/media_object.rb +254 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/query.rb +104 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/response.rb +84 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/response_base.rb +56 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/safe_search.rb +17 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/search_results_answer.rb +91 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/thing.rb +151 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/models/web_page.rb +168 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_customimagesearch/module_definition.rb +9 -0
  31. data/lib/azure_cognitiveservices_customimagesearch.rb +6 -0
  32. data/lib/module_definition.rb +7 -0
  33. data/lib/profiles/latest/customimagesearch_latest_profile_client.rb +38 -0
  34. data/lib/profiles/latest/customimagesearch_module_definition.rb +8 -0
  35. data/lib/profiles/latest/modules/customimagesearch_profile_module.rb +155 -0
  36. data/lib/version.rb +7 -0
  37. metadata +155 -0
@@ -0,0 +1,84 @@
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::Customimagesearch::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 that returns this resource.
24
+ attr_accessor :read_link
25
+
26
+ # @return [String] The URL To Bing's search result for this item.
27
+ attr_accessor :web_search_url
28
+
29
+
30
+ #
31
+ # Mapper for Response class as Ruby Hash.
32
+ # This will be used for serialization/deserialization.
33
+ #
34
+ def self.mapper()
35
+ {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'Response',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'Response',
42
+ model_properties: {
43
+ _type: {
44
+ client_side_validation: true,
45
+ required: true,
46
+ serialized_name: '_type',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ id: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'id',
56
+ type: {
57
+ name: 'String'
58
+ }
59
+ },
60
+ read_link: {
61
+ client_side_validation: true,
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'readLink',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ web_search_url: {
70
+ client_side_validation: true,
71
+ required: false,
72
+ read_only: true,
73
+ serialized_name: 'webSearchUrl',
74
+ type: {
75
+ name: 'String'
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,56 @@
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::Customimagesearch::V1_0
7
+ module Models
8
+ #
9
+ # Response base
10
+ #
11
+ class ResponseBase
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["ImageObject"] = "ImageObject"
17
+ @@discriminatorMap["Images"] = "Images"
18
+ @@discriminatorMap["SearchResultsAnswer"] = "SearchResultsAnswer"
19
+ @@discriminatorMap["Answer"] = "Answer"
20
+ @@discriminatorMap["MediaObject"] = "MediaObject"
21
+ @@discriminatorMap["Response"] = "Response"
22
+ @@discriminatorMap["Thing"] = "Thing"
23
+ @@discriminatorMap["CreativeWork"] = "CreativeWork"
24
+ @@discriminatorMap["Identifiable"] = "Identifiable"
25
+ @@discriminatorMap["ErrorResponse"] = "ErrorResponse"
26
+ @@discriminatorMap["WebPage"] = "WebPage"
27
+
28
+ def initialize
29
+ @_type = "ResponseBase"
30
+ end
31
+
32
+ attr_accessor :_type
33
+
34
+
35
+ #
36
+ # Mapper for ResponseBase class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'ResponseBase',
44
+ type: {
45
+ name: 'Composite',
46
+ polymorphic_discriminator: '_type',
47
+ uber_parent: 'ResponseBase',
48
+ class_name: 'ResponseBase',
49
+ model_properties: {
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ 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::Customimagesearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines values for SafeSearch
10
+ #
11
+ module SafeSearch
12
+ Off = "Off"
13
+ Moderate = "Moderate"
14
+ Strict = "Strict"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,91 @@
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::Customimagesearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a search result answer.
10
+ #
11
+ class SearchResultsAnswer < Answer
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "SearchResultsAnswer"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [Integer] The estimated number of webpages that are relevant to
23
+ # the query. Use this number along with the count and offset query
24
+ # parameters to page the results.
25
+ attr_accessor :total_estimated_matches
26
+
27
+
28
+ #
29
+ # Mapper for SearchResultsAnswer class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'SearchResultsAnswer',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'SearchResultsAnswer',
40
+ model_properties: {
41
+ _type: {
42
+ client_side_validation: true,
43
+ required: true,
44
+ serialized_name: '_type',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ id: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ read_only: true,
53
+ serialized_name: 'id',
54
+ type: {
55
+ name: 'String'
56
+ }
57
+ },
58
+ read_link: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ read_only: true,
62
+ serialized_name: 'readLink',
63
+ type: {
64
+ name: 'String'
65
+ }
66
+ },
67
+ web_search_url: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ read_only: true,
71
+ serialized_name: 'webSearchUrl',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ total_estimated_matches: {
77
+ client_side_validation: true,
78
+ required: false,
79
+ read_only: true,
80
+ serialized_name: 'totalEstimatedMatches',
81
+ type: {
82
+ name: 'Number'
83
+ }
84
+ }
85
+ }
86
+ }
87
+ }
88
+ end
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,151 @@
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::Customimagesearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a thing.
10
+ #
11
+ class Thing < Response
12
+
13
+ include MsRestAzure
14
+
15
+
16
+ def initialize
17
+ @_type = "Thing"
18
+ end
19
+
20
+ attr_accessor :_type
21
+
22
+ # @return [String] The name of the thing represented by this object.
23
+ attr_accessor :name
24
+
25
+ # @return [String] The URL to get more information about the thing
26
+ # represented by this object.
27
+ attr_accessor :url
28
+
29
+ # @return [ImageObject] An image of the item.
30
+ attr_accessor :image
31
+
32
+ # @return [String] A short description of the item.
33
+ attr_accessor :description
34
+
35
+ # @return [String] An alias for the item
36
+ attr_accessor :alternate_name
37
+
38
+ # @return [String] An ID that uniquely identifies this item.
39
+ attr_accessor :bing_id
40
+
41
+
42
+ #
43
+ # Mapper for Thing class as Ruby Hash.
44
+ # This will be used for serialization/deserialization.
45
+ #
46
+ def self.mapper()
47
+ {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'Thing',
51
+ type: {
52
+ name: 'Composite',
53
+ class_name: 'Thing',
54
+ model_properties: {
55
+ _type: {
56
+ client_side_validation: true,
57
+ required: true,
58
+ serialized_name: '_type',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ id: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ read_only: true,
67
+ serialized_name: 'id',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ read_link: {
73
+ client_side_validation: true,
74
+ required: false,
75
+ read_only: true,
76
+ serialized_name: 'readLink',
77
+ type: {
78
+ name: 'String'
79
+ }
80
+ },
81
+ web_search_url: {
82
+ client_side_validation: true,
83
+ required: false,
84
+ read_only: true,
85
+ serialized_name: 'webSearchUrl',
86
+ type: {
87
+ name: 'String'
88
+ }
89
+ },
90
+ name: {
91
+ client_side_validation: true,
92
+ required: false,
93
+ read_only: true,
94
+ serialized_name: 'name',
95
+ type: {
96
+ name: 'String'
97
+ }
98
+ },
99
+ url: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'url',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ image: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'image',
113
+ type: {
114
+ name: 'Composite',
115
+ class_name: 'ImageObject'
116
+ }
117
+ },
118
+ description: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'description',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ },
127
+ alternate_name: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ read_only: true,
131
+ serialized_name: 'alternateName',
132
+ type: {
133
+ name: 'String'
134
+ }
135
+ },
136
+ bing_id: {
137
+ client_side_validation: true,
138
+ required: false,
139
+ read_only: true,
140
+ serialized_name: 'bingId',
141
+ type: {
142
+ name: 'String'
143
+ }
144
+ }
145
+ }
146
+ }
147
+ }
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,168 @@
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::Customimagesearch::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
+
23
+ #
24
+ # Mapper for WebPage 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: 'WebPage',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'WebPage',
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
+ read_link: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ read_only: true,
57
+ serialized_name: 'readLink',
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
+ name: {
72
+ client_side_validation: true,
73
+ required: false,
74
+ read_only: true,
75
+ serialized_name: 'name',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ },
80
+ url: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ read_only: true,
84
+ serialized_name: 'url',
85
+ type: {
86
+ name: 'String'
87
+ }
88
+ },
89
+ image: {
90
+ client_side_validation: true,
91
+ required: false,
92
+ read_only: true,
93
+ serialized_name: 'image',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'ImageObject'
97
+ }
98
+ },
99
+ description: {
100
+ client_side_validation: true,
101
+ required: false,
102
+ read_only: true,
103
+ serialized_name: 'description',
104
+ type: {
105
+ name: 'String'
106
+ }
107
+ },
108
+ alternate_name: {
109
+ client_side_validation: true,
110
+ required: false,
111
+ read_only: true,
112
+ serialized_name: 'alternateName',
113
+ type: {
114
+ name: 'String'
115
+ }
116
+ },
117
+ bing_id: {
118
+ client_side_validation: true,
119
+ required: false,
120
+ read_only: true,
121
+ serialized_name: 'bingId',
122
+ type: {
123
+ name: 'String'
124
+ }
125
+ },
126
+ thumbnail_url: {
127
+ client_side_validation: true,
128
+ required: false,
129
+ read_only: true,
130
+ serialized_name: 'thumbnailUrl',
131
+ type: {
132
+ name: 'String'
133
+ }
134
+ },
135
+ provider: {
136
+ client_side_validation: true,
137
+ required: false,
138
+ read_only: true,
139
+ serialized_name: 'provider',
140
+ type: {
141
+ name: 'Sequence',
142
+ element: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ serialized_name: 'ThingElementType',
146
+ type: {
147
+ name: 'Composite',
148
+ class_name: 'Thing'
149
+ }
150
+ }
151
+ }
152
+ },
153
+ text: {
154
+ client_side_validation: true,
155
+ required: false,
156
+ read_only: true,
157
+ serialized_name: 'text',
158
+ type: {
159
+ name: 'String'
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+ end
166
+ end
167
+ end
168
+ end