azure_cognitiveservices_imagesearch 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/1.0/generated/azure_cognitiveservices_imagesearch.rb +86 -0
  4. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/image_search_client.rb +127 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/images_operations.rb +2526 -0
  6. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/aggregate_offer.rb +211 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/aggregate_rating.rb +89 -0
  8. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/answer.rb +77 -0
  9. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/collection_page.rb +177 -0
  10. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/creative_work.rb +190 -0
  11. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/currency.rb +175 -0
  12. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error.rb +116 -0
  13. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error_code.rb +20 -0
  14. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error_response.rb +98 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/error_sub_code.rb +25 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/freshness.rb +17 -0
  17. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/identifiable.rb +62 -0
  18. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_aspect.rb +18 -0
  19. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_color.rb +28 -0
  20. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_content.rb +16 -0
  21. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_crop_type.rb +15 -0
  22. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_gallery.rb +216 -0
  23. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_insight_module.rb +26 -0
  24. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_insights.rb +267 -0
  25. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_insights_image_caption.rb +82 -0
  26. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_license.rb +21 -0
  27. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_object.rb +326 -0
  28. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_size.rb +19 -0
  29. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_tags_module.rb +59 -0
  30. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/image_type.rb +20 -0
  31. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images.rb +191 -0
  32. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_image_metadata.rb +80 -0
  33. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/images_module.rb +56 -0
  34. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/insights_tag.rb +48 -0
  35. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/intangible.rb +133 -0
  36. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/item_availability.rb +22 -0
  37. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/media_object.rb +263 -0
  38. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/normalized_rectangle.rb +179 -0
  39. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/offer.rb +231 -0
  40. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/organization.rb +132 -0
  41. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/person.rb +156 -0
  42. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/pivot_suggestions.rb +66 -0
  43. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/properties_item.rb +59 -0
  44. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/query.rb +104 -0
  45. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/rating.rb +84 -0
  46. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recipe.rb +219 -0
  47. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recipes_module.rb +56 -0
  48. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entities_module.rb +56 -0
  49. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entity.rb +105 -0
  50. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entity_group.rb +72 -0
  51. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/recognized_entity_region.rb +122 -0
  52. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/related_collections_module.rb +57 -0
  53. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/related_searches_module.rb +56 -0
  54. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/response.rb +84 -0
  55. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/response_base.rb +70 -0
  56. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/safe_search.rb +17 -0
  57. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/search_results_answer.rb +91 -0
  58. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/structured_value.rb +133 -0
  59. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/thing.rb +151 -0
  60. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images.rb +99 -0
  61. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_category.rb +71 -0
  62. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/trending_images_tile.rb +63 -0
  63. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/models/web_page.rb +177 -0
  64. data/lib/1.0/generated/azure_cognitiveservices_imagesearch/module_definition.rb +9 -0
  65. data/lib/azure_cognitiveservices_imagesearch.rb +6 -0
  66. data/lib/module_definition.rb +7 -0
  67. data/lib/profiles/latest/imagesearch_latest_profile_client.rb +38 -0
  68. data/lib/profiles/latest/imagesearch_module_definition.rb +8 -0
  69. data/lib/profiles/latest/modules/imagesearch_profile_module.rb +291 -0
  70. data/lib/version.rb +7 -0
  71. metadata +188 -0
@@ -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::ImageSearch::V1_0
7
+ module Models
8
+ #
9
+ # Defines a list of related searches.
10
+ #
11
+ class RelatedSearchesModule
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Query>] A list of related searches.
16
+ attr_accessor :value
17
+
18
+
19
+ #
20
+ # Mapper for RelatedSearchesModule class as Ruby Hash.
21
+ # This will be used for serialization/deserialization.
22
+ #
23
+ def self.mapper()
24
+ {
25
+ client_side_validation: true,
26
+ required: false,
27
+ serialized_name: 'RelatedSearchesModule',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'RelatedSearchesModule',
31
+ model_properties: {
32
+ value: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ read_only: true,
36
+ serialized_name: 'value',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'QueryElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'Query'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -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::ImageSearch::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,70 @@
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::ImageSearch::V1_0
7
+ module Models
8
+ #
9
+ # Response base
10
+ #
11
+ class ResponseBase
12
+
13
+ include MsRestAzure
14
+
15
+ @@discriminatorMap = Hash.new
16
+ @@discriminatorMap["Organization"] = "Organization"
17
+ @@discriminatorMap["Offer"] = "Offer"
18
+ @@discriminatorMap["AggregateOffer"] = "AggregateOffer"
19
+ @@discriminatorMap["ImageObject"] = "ImageObject"
20
+ @@discriminatorMap["Images"] = "Images"
21
+ @@discriminatorMap["SearchResultsAnswer"] = "SearchResultsAnswer"
22
+ @@discriminatorMap["Answer"] = "Answer"
23
+ @@discriminatorMap["MediaObject"] = "MediaObject"
24
+ @@discriminatorMap["Response"] = "Response"
25
+ @@discriminatorMap["Thing"] = "Thing"
26
+ @@discriminatorMap["CreativeWork"] = "CreativeWork"
27
+ @@discriminatorMap["Identifiable"] = "Identifiable"
28
+ @@discriminatorMap["ErrorResponse"] = "ErrorResponse"
29
+ @@discriminatorMap["ImageGallery"] = "ImageGallery"
30
+ @@discriminatorMap["Recipe"] = "Recipe"
31
+ @@discriminatorMap["NormalizedRectangle"] = "NormalizedRectangle"
32
+ @@discriminatorMap["RecognizedEntity"] = "RecognizedEntity"
33
+ @@discriminatorMap["RecognizedEntityRegion"] = "RecognizedEntityRegion"
34
+ @@discriminatorMap["ImageInsights"] = "ImageInsights"
35
+ @@discriminatorMap["TrendingImages"] = "TrendingImages"
36
+ @@discriminatorMap["WebPage"] = "WebPage"
37
+ @@discriminatorMap["Person"] = "Person"
38
+ @@discriminatorMap["Intangible"] = "Intangible"
39
+ @@discriminatorMap["CollectionPage"] = "CollectionPage"
40
+ @@discriminatorMap["StructuredValue"] = "StructuredValue"
41
+
42
+ def initialize
43
+ @_type = "ResponseBase"
44
+ end
45
+
46
+ attr_accessor :_type
47
+
48
+
49
+ #
50
+ # Mapper for ResponseBase class as Ruby Hash.
51
+ # This will be used for serialization/deserialization.
52
+ #
53
+ def self.mapper()
54
+ {
55
+ client_side_validation: true,
56
+ required: false,
57
+ serialized_name: 'ResponseBase',
58
+ type: {
59
+ name: 'Composite',
60
+ polymorphic_discriminator: '_type',
61
+ uber_parent: 'ResponseBase',
62
+ class_name: 'ResponseBase',
63
+ model_properties: {
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ 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::ImageSearch::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::ImageSearch::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,133 @@
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::ImageSearch::V1_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class StructuredValue < Intangible
13
+
14
+ include MsRestAzure
15
+
16
+
17
+ def initialize
18
+ @_type = "StructuredValue"
19
+ end
20
+
21
+ attr_accessor :_type
22
+
23
+
24
+ #
25
+ # Mapper for StructuredValue class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'StructuredValue',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'StructuredValue',
36
+ model_properties: {
37
+ _type: {
38
+ client_side_validation: true,
39
+ required: true,
40
+ serialized_name: '_type',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ id: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'id',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ read_link: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'readLink',
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
+ alternate_name: {
110
+ client_side_validation: true,
111
+ required: false,
112
+ read_only: true,
113
+ serialized_name: 'alternateName',
114
+ type: {
115
+ name: 'String'
116
+ }
117
+ },
118
+ bing_id: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ read_only: true,
122
+ serialized_name: 'bingId',
123
+ type: {
124
+ name: 'String'
125
+ }
126
+ }
127
+ }
128
+ }
129
+ }
130
+ end
131
+ end
132
+ end
133
+ end