azure_cognitiveservices_textanalytics 0.17.2 → 0.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/azure_cognitiveservices_textanalytics.rb +1 -0
  3. data/lib/profiles/latest/modules/textanalytics_profile_module.rb +60 -52
  4. data/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +1 -1
  5. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +1 -1
  6. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics.rb +47 -0
  7. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/detected_language.rb +72 -0
  8. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/document_statistics.rb +58 -0
  9. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result.rb +93 -0
  10. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item.rb +82 -0
  11. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/entity_record.rb +138 -0
  12. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/error_record.rb +58 -0
  13. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/error_response.rb +81 -0
  14. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/internal_error.rb +70 -0
  15. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb +93 -0
  16. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb +83 -0
  17. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_input.rb +56 -0
  18. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result.rb +93 -0
  19. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_batch_result_item.rb +81 -0
  20. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/language_input.rb +69 -0
  21. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/match_record.rb +97 -0
  22. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_batch_input.rb +56 -0
  23. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/multi_language_input.rb +70 -0
  24. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/request_statistics.rb +82 -0
  25. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result.rb +93 -0
  26. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb +75 -0
  27. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/module_definition.rb +9 -0
  28. data/lib/v2.1/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +614 -0
  29. data/lib/version.rb +1 -1
  30. metadata +24 -1
@@ -0,0 +1,83 @@
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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class KeyPhraseBatchResultItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Unique, non-empty document identifier.
17
+ attr_accessor :id
18
+
19
+ # @return [Array<String>] A list of representative words or phrases. The
20
+ # number of key phrases returned is proportional to the number of words
21
+ # in the input document.
22
+ attr_accessor :key_phrases
23
+
24
+ # @return [DocumentStatistics] (Optional) if showStats=true was specified
25
+ # in the request this field will contain information about the document
26
+ # payload.
27
+ attr_accessor :statistics
28
+
29
+
30
+ #
31
+ # Mapper for KeyPhraseBatchResultItem 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: 'KeyPhraseBatchResultItem',
39
+ type: {
40
+ name: 'Composite',
41
+ class_name: 'KeyPhraseBatchResultItem',
42
+ model_properties: {
43
+ id: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'id',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ key_phrases: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ read_only: true,
55
+ serialized_name: 'keyPhrases',
56
+ type: {
57
+ name: 'Sequence',
58
+ element: {
59
+ client_side_validation: true,
60
+ required: false,
61
+ serialized_name: 'StringElementType',
62
+ type: {
63
+ name: 'String'
64
+ }
65
+ }
66
+ }
67
+ },
68
+ statistics: {
69
+ client_side_validation: true,
70
+ required: false,
71
+ serialized_name: 'statistics',
72
+ type: {
73
+ name: 'Composite',
74
+ class_name: 'DocumentStatistics'
75
+ }
76
+ }
77
+ }
78
+ }
79
+ }
80
+ end
81
+ end
82
+ end
83
+ 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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class LanguageBatchInput
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<LanguageInput>]
17
+ attr_accessor :documents
18
+
19
+
20
+ #
21
+ # Mapper for LanguageBatchInput class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ client_side_validation: true,
27
+ required: false,
28
+ serialized_name: 'LanguageBatchInput',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'LanguageBatchInput',
32
+ model_properties: {
33
+ documents: {
34
+ client_side_validation: true,
35
+ required: false,
36
+ serialized_name: 'documents',
37
+ type: {
38
+ name: 'Sequence',
39
+ element: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'LanguageInputElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'LanguageInput'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,93 @@
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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class LanguageBatchResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<LanguageBatchResultItem>] Response by document
17
+ attr_accessor :documents
18
+
19
+ # @return [Array<ErrorRecord>] Errors and Warnings by document
20
+ attr_accessor :errors
21
+
22
+ # @return [RequestStatistics] (Optional) if showStats=true was specified
23
+ # in the request this field will contain information about the request
24
+ # payload.
25
+ attr_accessor :statistics
26
+
27
+
28
+ #
29
+ # Mapper for LanguageBatchResult 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: 'LanguageBatchResult',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'LanguageBatchResult',
40
+ model_properties: {
41
+ documents: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ read_only: true,
45
+ serialized_name: 'documents',
46
+ type: {
47
+ name: 'Sequence',
48
+ element: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'LanguageBatchResultItemElementType',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'LanguageBatchResultItem'
55
+ }
56
+ }
57
+ }
58
+ },
59
+ errors: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ read_only: true,
63
+ serialized_name: 'errors',
64
+ type: {
65
+ name: 'Sequence',
66
+ element: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'ErrorRecordElementType',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'ErrorRecord'
73
+ }
74
+ }
75
+ }
76
+ },
77
+ statistics: {
78
+ client_side_validation: true,
79
+ required: false,
80
+ read_only: true,
81
+ serialized_name: 'statistics',
82
+ type: {
83
+ name: 'Composite',
84
+ class_name: 'RequestStatistics'
85
+ }
86
+ }
87
+ }
88
+ }
89
+ }
90
+ end
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,81 @@
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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class LanguageBatchResultItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Unique, non-empty document identifier.
17
+ attr_accessor :id
18
+
19
+ # @return [Array<DetectedLanguage>] A list of extracted languages.
20
+ attr_accessor :detected_languages
21
+
22
+ # @return [DocumentStatistics] (Optional) if showStats=true was specified
23
+ # in the request this field will contain information about the document
24
+ # payload.
25
+ attr_accessor :statistics
26
+
27
+
28
+ #
29
+ # Mapper for LanguageBatchResultItem 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: 'LanguageBatchResultItem',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'LanguageBatchResultItem',
40
+ model_properties: {
41
+ id: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'id',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ detected_languages: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'detectedLanguages',
53
+ type: {
54
+ name: 'Sequence',
55
+ element: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'DetectedLanguageElementType',
59
+ type: {
60
+ name: 'Composite',
61
+ class_name: 'DetectedLanguage'
62
+ }
63
+ }
64
+ }
65
+ },
66
+ statistics: {
67
+ client_side_validation: true,
68
+ required: false,
69
+ serialized_name: 'statistics',
70
+ type: {
71
+ name: 'Composite',
72
+ class_name: 'DocumentStatistics'
73
+ }
74
+ }
75
+ }
76
+ }
77
+ }
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,69 @@
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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class LanguageInput
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String]
17
+ attr_accessor :country_hint
18
+
19
+ # @return [String] Unique, non-empty document identifier.
20
+ attr_accessor :id
21
+
22
+ # @return [String]
23
+ attr_accessor :text
24
+
25
+
26
+ #
27
+ # Mapper for LanguageInput 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: 'LanguageInput',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'LanguageInput',
38
+ model_properties: {
39
+ country_hint: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'countryHint',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ id: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'id',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ text: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'text',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,97 @@
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::TextAnalytics::V2_1
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class MatchRecord
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Float] (optional) If a well-known item with Wikipedia link is
17
+ # recognized, a decimal number denoting the confidence level of the
18
+ # Wikipedia info will be returned.
19
+ attr_accessor :wikipedia_score
20
+
21
+ # @return [Float] (optional) If an entity type is recognized, a decimal
22
+ # number denoting the confidence level of the entity type will be
23
+ # returned.
24
+ attr_accessor :entity_type_score
25
+
26
+ # @return [String] Entity text as appears in the request.
27
+ attr_accessor :text
28
+
29
+ # @return [Integer] Start position (in Unicode characters) for the entity
30
+ # match text.
31
+ attr_accessor :offset
32
+
33
+ # @return [Integer] Length (in Unicode characters) for the entity match
34
+ # text.
35
+ attr_accessor :length
36
+
37
+
38
+ #
39
+ # Mapper for MatchRecord class as Ruby Hash.
40
+ # This will be used for serialization/deserialization.
41
+ #
42
+ def self.mapper()
43
+ {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'MatchRecord',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'MatchRecord',
50
+ model_properties: {
51
+ wikipedia_score: {
52
+ client_side_validation: true,
53
+ required: false,
54
+ serialized_name: 'wikipediaScore',
55
+ type: {
56
+ name: 'Double'
57
+ }
58
+ },
59
+ entity_type_score: {
60
+ client_side_validation: true,
61
+ required: false,
62
+ serialized_name: 'entityTypeScore',
63
+ type: {
64
+ name: 'Double'
65
+ }
66
+ },
67
+ text: {
68
+ client_side_validation: true,
69
+ required: false,
70
+ serialized_name: 'text',
71
+ type: {
72
+ name: 'String'
73
+ }
74
+ },
75
+ offset: {
76
+ client_side_validation: true,
77
+ required: false,
78
+ serialized_name: 'offset',
79
+ type: {
80
+ name: 'Number'
81
+ }
82
+ },
83
+ length: {
84
+ client_side_validation: true,
85
+ required: false,
86
+ serialized_name: 'length',
87
+ type: {
88
+ name: 'Number'
89
+ }
90
+ }
91
+ }
92
+ }
93
+ }
94
+ end
95
+ end
96
+ end
97
+ end