azure_cognitiveservices_computervision 0.16.0 → 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/lib/1.0/generated/azure_cognitiveservices_computervision.rb +19 -17
  3. data/lib/1.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +220 -132
  4. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/azure_regions.rb +4 -0
  5. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/category.rb +1 -1
  6. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +78 -0
  7. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +6 -16
  8. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +3 -2
  9. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/{language1.rb → gender.rb} +4 -4
  10. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +5 -7
  11. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +1 -1
  12. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +1 -1
  13. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +1 -1
  14. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +78 -0
  15. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/landmark_results_landmarks_item.rb +57 -0
  16. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +2 -3
  17. data/lib/1.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +1 -1
  18. data/lib/2.0/generated/azure_cognitiveservices_computervision.rb +65 -0
  19. data/lib/2.0/generated/azure_cognitiveservices_computervision/computer_vision_client.rb +2257 -0
  20. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/adult_info.rb +83 -0
  21. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/category.rb +69 -0
  22. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/category_detail.rb +77 -0
  23. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrities_model.rb +69 -0
  24. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/celebrity_results.rb +78 -0
  25. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/color_info.rb +98 -0
  26. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error.rb +75 -0
  27. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/computer_vision_error_codes.rb +27 -0
  28. data/lib/{1.0/generated/azure_cognitiveservices_computervision/models/domain_models.rb → 2.0/generated/azure_cognitiveservices_computervision/models/details.rb} +3 -3
  29. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/domain_model_results.rb +70 -0
  30. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_description.rb +71 -0
  31. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/face_rectangle.rb +79 -0
  32. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/gender.rb +16 -0
  33. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_analysis.rb +167 -0
  34. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_caption.rb +57 -0
  35. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description.rb +99 -0
  36. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_description_details.rb +76 -0
  37. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_metadata.rb +68 -0
  38. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_tag.rb +68 -0
  39. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_type.rb +57 -0
  40. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/image_url.rb +47 -0
  41. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmark_results.rb +78 -0
  42. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/landmarks_model.rb +57 -0
  43. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/line.rb +86 -0
  44. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/list_models_result.rb +56 -0
  45. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/model_description.rb +65 -0
  46. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_languages.rb +41 -0
  47. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_line.rb +72 -0
  48. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_region.rb +72 -0
  49. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_result.rb +103 -0
  50. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/ocr_word.rb +62 -0
  51. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/recognition_result.rb +56 -0
  52. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/tag_result.rb +79 -0
  53. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_result.rb +62 -0
  54. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_operation_status_codes.rb +18 -0
  55. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/text_recognition_mode.rb +16 -0
  56. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/visual_feature_types.rb +21 -0
  57. data/lib/2.0/generated/azure_cognitiveservices_computervision/models/word.rb +66 -0
  58. data/lib/2.0/generated/azure_cognitiveservices_computervision/module_definition.rb +9 -0
  59. data/lib/azure_cognitiveservices_computervision.rb +1 -0
  60. data/lib/profiles/latest/modules/computervision_profile_module.rb +103 -95
  61. data/lib/version.rb +1 -1
  62. metadata +49 -6
@@ -0,0 +1,75 @@
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::ComputerVision::V2_0
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class ComputerVisionError
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [ComputerVisionErrorCodes] The error code. Possible values
17
+ # include: 'InvalidImageUrl', 'InvalidImageFormat', 'InvalidImageSize',
18
+ # 'NotSupportedVisualFeature', 'NotSupportedImage', 'InvalidDetails',
19
+ # 'NotSupportedLanguage', 'BadArgument', 'FailedToProcess', 'Timeout',
20
+ # 'InternalServerError', 'Unspecified', 'StorageException'
21
+ attr_accessor :code
22
+
23
+ # @return [String] A message explaining the error reported by the
24
+ # service.
25
+ attr_accessor :message
26
+
27
+ # @return [String] A unique request identifier.
28
+ attr_accessor :request_id
29
+
30
+
31
+ #
32
+ # Mapper for ComputerVisionError class as Ruby Hash.
33
+ # This will be used for serialization/deserialization.
34
+ #
35
+ def self.mapper()
36
+ {
37
+ client_side_validation: true,
38
+ required: false,
39
+ serialized_name: 'ComputerVisionError',
40
+ type: {
41
+ name: 'Composite',
42
+ class_name: 'ComputerVisionError',
43
+ model_properties: {
44
+ code: {
45
+ client_side_validation: true,
46
+ required: true,
47
+ serialized_name: 'code',
48
+ type: {
49
+ name: 'Enum',
50
+ module: 'ComputerVisionErrorCodes'
51
+ }
52
+ },
53
+ message: {
54
+ client_side_validation: true,
55
+ required: true,
56
+ serialized_name: 'message',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ request_id: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'requestId',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,27 @@
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::ComputerVision::V2_0
7
+ module Models
8
+ #
9
+ # Defines values for ComputerVisionErrorCodes
10
+ #
11
+ module ComputerVisionErrorCodes
12
+ InvalidImageUrl = "InvalidImageUrl"
13
+ InvalidImageFormat = "InvalidImageFormat"
14
+ InvalidImageSize = "InvalidImageSize"
15
+ NotSupportedVisualFeature = "NotSupportedVisualFeature"
16
+ NotSupportedImage = "NotSupportedImage"
17
+ InvalidDetails = "InvalidDetails"
18
+ NotSupportedLanguage = "NotSupportedLanguage"
19
+ BadArgument = "BadArgument"
20
+ FailedToProcess = "FailedToProcess"
21
+ Timeout = "Timeout"
22
+ InternalServerError = "InternalServerError"
23
+ Unspecified = "Unspecified"
24
+ StorageException = "StorageException"
25
+ end
26
+ end
27
+ end
@@ -3,12 +3,12 @@
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
6
- module Azure::CognitiveServices::ComputerVision::V1_0
6
+ module Azure::CognitiveServices::ComputerVision::V2_0
7
7
  module Models
8
8
  #
9
- # Defines values for DomainModels
9
+ # Defines values for Details
10
10
  #
11
- module DomainModels
11
+ module Details
12
12
  Celebrities = "Celebrities"
13
13
  Landmarks = "Landmarks"
14
14
  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::ComputerVision::V2_0
7
+ module Models
8
+ #
9
+ # Result of image analysis using a specific domain model including
10
+ # additional metadata.
11
+ #
12
+ class DomainModelResults
13
+
14
+ include MsRestAzure
15
+
16
+ # @return Model-specific response
17
+ attr_accessor :result
18
+
19
+ # @return [String] Id of the REST API request.
20
+ attr_accessor :request_id
21
+
22
+ # @return [ImageMetadata]
23
+ attr_accessor :metadata
24
+
25
+
26
+ #
27
+ # Mapper for DomainModelResults 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: 'DomainModelResults',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'DomainModelResults',
38
+ model_properties: {
39
+ result: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'result',
43
+ type: {
44
+ name: 'Object'
45
+ }
46
+ },
47
+ request_id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'requestId',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ metadata: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'metadata',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'ImageMetadata'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,71 @@
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::ComputerVision::V2_0
7
+ module Models
8
+ #
9
+ # An object describing a face identified in the image.
10
+ #
11
+ class FaceDescription
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Possible age of the face.
16
+ attr_accessor :age
17
+
18
+ # @return [Gender] Possible gender of the face. Possible values include:
19
+ # 'Male', 'Female'
20
+ attr_accessor :gender
21
+
22
+ # @return [FaceRectangle]
23
+ attr_accessor :face_rectangle
24
+
25
+
26
+ #
27
+ # Mapper for FaceDescription 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: 'FaceDescription',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'FaceDescription',
38
+ model_properties: {
39
+ age: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'age',
43
+ type: {
44
+ name: 'Number'
45
+ }
46
+ },
47
+ gender: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'gender',
51
+ type: {
52
+ name: 'Enum',
53
+ module: 'Gender'
54
+ }
55
+ },
56
+ face_rectangle: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'faceRectangle',
60
+ type: {
61
+ name: 'Composite',
62
+ class_name: 'FaceRectangle'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,79 @@
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::ComputerVision::V2_0
7
+ module Models
8
+ #
9
+ # An object describing face rectangle.
10
+ #
11
+ class FaceRectangle
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] X-coordinate of the top left point of the face.
16
+ attr_accessor :left
17
+
18
+ # @return [Integer] Y-coordinate of the top left point of the face.
19
+ attr_accessor :top
20
+
21
+ # @return [Integer] Width measured from the top-left point of the face.
22
+ attr_accessor :width
23
+
24
+ # @return [Integer] Height measured from the top-left point of the face.
25
+ attr_accessor :height
26
+
27
+
28
+ #
29
+ # Mapper for FaceRectangle 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: 'FaceRectangle',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'FaceRectangle',
40
+ model_properties: {
41
+ left: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'left',
45
+ type: {
46
+ name: 'Number'
47
+ }
48
+ },
49
+ top: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'top',
53
+ type: {
54
+ name: 'Number'
55
+ }
56
+ },
57
+ width: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'width',
61
+ type: {
62
+ name: 'Number'
63
+ }
64
+ },
65
+ height: {
66
+ client_side_validation: true,
67
+ required: false,
68
+ serialized_name: 'height',
69
+ type: {
70
+ name: 'Number'
71
+ }
72
+ }
73
+ }
74
+ }
75
+ }
76
+ end
77
+ end
78
+ end
79
+ end
@@ -0,0 +1,16 @@
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::ComputerVision::V2_0
7
+ module Models
8
+ #
9
+ # Defines values for Gender
10
+ #
11
+ module Gender
12
+ Male = "Male"
13
+ Female = "Female"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,167 @@
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::ComputerVision::V2_0
7
+ module Models
8
+ #
9
+ # Result of AnalyzeImage operation.
10
+ #
11
+ class ImageAnalysis
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Category>] An array indicating identified categories.
16
+ attr_accessor :categories
17
+
18
+ # @return [AdultInfo]
19
+ attr_accessor :adult
20
+
21
+ # @return [ColorInfo]
22
+ attr_accessor :color
23
+
24
+ # @return [ImageType]
25
+ attr_accessor :image_type
26
+
27
+ # @return [Array<ImageTag>] A list of tags with confidence level.
28
+ attr_accessor :tags
29
+
30
+ # @return [ImageDescriptionDetails]
31
+ attr_accessor :description
32
+
33
+ # @return [Array<FaceDescription>] An array of possible faces within the
34
+ # image.
35
+ attr_accessor :faces
36
+
37
+ # @return [String] Id of the request for tracking purposes.
38
+ attr_accessor :request_id
39
+
40
+ # @return [ImageMetadata]
41
+ attr_accessor :metadata
42
+
43
+
44
+ #
45
+ # Mapper for ImageAnalysis 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: 'ImageAnalysis',
53
+ type: {
54
+ name: 'Composite',
55
+ class_name: 'ImageAnalysis',
56
+ model_properties: {
57
+ categories: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'categories',
61
+ type: {
62
+ name: 'Sequence',
63
+ element: {
64
+ client_side_validation: true,
65
+ required: false,
66
+ serialized_name: 'CategoryElementType',
67
+ type: {
68
+ name: 'Composite',
69
+ class_name: 'Category'
70
+ }
71
+ }
72
+ }
73
+ },
74
+ adult: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'adult',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'AdultInfo'
81
+ }
82
+ },
83
+ color: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'color',
87
+ type: {
88
+ name: 'Composite',
89
+ class_name: 'ColorInfo'
90
+ }
91
+ },
92
+ image_type: {
93
+ client_side_validation: true,
94
+ required: false,
95
+ serialized_name: 'imageType',
96
+ type: {
97
+ name: 'Composite',
98
+ class_name: 'ImageType'
99
+ }
100
+ },
101
+ tags: {
102
+ client_side_validation: true,
103
+ required: false,
104
+ serialized_name: 'tags',
105
+ type: {
106
+ name: 'Sequence',
107
+ element: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'ImageTagElementType',
111
+ type: {
112
+ name: 'Composite',
113
+ class_name: 'ImageTag'
114
+ }
115
+ }
116
+ }
117
+ },
118
+ description: {
119
+ client_side_validation: true,
120
+ required: false,
121
+ serialized_name: 'description',
122
+ type: {
123
+ name: 'Composite',
124
+ class_name: 'ImageDescriptionDetails'
125
+ }
126
+ },
127
+ faces: {
128
+ client_side_validation: true,
129
+ required: false,
130
+ serialized_name: 'faces',
131
+ type: {
132
+ name: 'Sequence',
133
+ element: {
134
+ client_side_validation: true,
135
+ required: false,
136
+ serialized_name: 'FaceDescriptionElementType',
137
+ type: {
138
+ name: 'Composite',
139
+ class_name: 'FaceDescription'
140
+ }
141
+ }
142
+ }
143
+ },
144
+ request_id: {
145
+ client_side_validation: true,
146
+ required: false,
147
+ serialized_name: 'requestId',
148
+ type: {
149
+ name: 'String'
150
+ }
151
+ },
152
+ metadata: {
153
+ client_side_validation: true,
154
+ required: false,
155
+ serialized_name: 'metadata',
156
+ type: {
157
+ name: 'Composite',
158
+ class_name: 'ImageMetadata'
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ end
165
+ end
166
+ end
167
+ end