azure_cognitiveservices_textanalytics 0.17.0 → 0.17.1

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 (27) 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 +41 -41
  4. data/lib/v2.0/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +16 -5
  5. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics.rb +45 -0
  6. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/batch_input.rb +56 -0
  7. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/detected_language.rb +72 -0
  8. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_item_v2dot1.rb +70 -0
  9. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entities_batch_result_v2dot1.rb +78 -0
  10. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/entity_record_v2dot1.rb +138 -0
  11. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/error_record.rb +58 -0
  12. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/error_response.rb +81 -0
  13. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/input.rb +58 -0
  14. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/internal_error.rb +70 -0
  15. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result.rb +78 -0
  16. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/key_phrase_batch_result_item.rb +70 -0
  17. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/language_batch_result.rb +78 -0
  18. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/language_batch_result_item.rb +69 -0
  19. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/match_record_v2dot1.rb +71 -0
  20. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/multi_language_batch_input.rb +56 -0
  21. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/multi_language_input.rb +70 -0
  22. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result.rb +78 -0
  23. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/models/sentiment_batch_result_item.rb +63 -0
  24. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/module_definition.rb +9 -0
  25. data/lib/v2.1-preview/generated/azure_cognitiveservices_textanalytics/text_analytics_client.rb +604 -0
  26. data/lib/version.rb +1 -1
  27. metadata +23 -2
@@ -0,0 +1,78 @@
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_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class KeyPhraseBatchResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<KeyPhraseBatchResultItem>]
17
+ attr_accessor :documents
18
+
19
+ # @return [Array<ErrorRecord>]
20
+ attr_accessor :errors
21
+
22
+
23
+ #
24
+ # Mapper for KeyPhraseBatchResult 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: 'KeyPhraseBatchResult',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'KeyPhraseBatchResult',
35
+ model_properties: {
36
+ documents: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'documents',
41
+ type: {
42
+ name: 'Sequence',
43
+ element: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'KeyPhraseBatchResultItemElementType',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'KeyPhraseBatchResultItem'
50
+ }
51
+ }
52
+ }
53
+ },
54
+ errors: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'errors',
59
+ type: {
60
+ name: 'Sequence',
61
+ element: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'ErrorRecordElementType',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'ErrorRecord'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+ end
77
+ end
78
+ 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::TextAnalytics::V2_1_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class KeyPhraseBatchResultItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<String>] A list of representative words or phrases. The
17
+ # number of key phrases returned is proportional to the number of words
18
+ # in the input document.
19
+ attr_accessor :key_phrases
20
+
21
+ # @return [String] Unique document identifier.
22
+ attr_accessor :id
23
+
24
+
25
+ #
26
+ # Mapper for KeyPhraseBatchResultItem class as Ruby Hash.
27
+ # This will be used for serialization/deserialization.
28
+ #
29
+ def self.mapper()
30
+ {
31
+ client_side_validation: true,
32
+ required: false,
33
+ serialized_name: 'KeyPhraseBatchResultItem',
34
+ type: {
35
+ name: 'Composite',
36
+ class_name: 'KeyPhraseBatchResultItem',
37
+ model_properties: {
38
+ key_phrases: {
39
+ client_side_validation: true,
40
+ required: false,
41
+ read_only: true,
42
+ serialized_name: 'keyPhrases',
43
+ type: {
44
+ name: 'Sequence',
45
+ element: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ serialized_name: 'StringElementType',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ }
53
+ }
54
+ },
55
+ id: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ read_only: true,
59
+ serialized_name: 'id',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,78 @@
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_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class LanguageBatchResult
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<LanguageBatchResultItem>]
17
+ attr_accessor :documents
18
+
19
+ # @return [Array<ErrorRecord>]
20
+ attr_accessor :errors
21
+
22
+
23
+ #
24
+ # Mapper for LanguageBatchResult 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: 'LanguageBatchResult',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'LanguageBatchResult',
35
+ model_properties: {
36
+ documents: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'documents',
41
+ type: {
42
+ name: 'Sequence',
43
+ element: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'LanguageBatchResultItemElementType',
47
+ type: {
48
+ name: 'Composite',
49
+ class_name: 'LanguageBatchResultItem'
50
+ }
51
+ }
52
+ }
53
+ },
54
+ errors: {
55
+ client_side_validation: true,
56
+ required: false,
57
+ read_only: true,
58
+ serialized_name: 'errors',
59
+ type: {
60
+ name: 'Sequence',
61
+ element: {
62
+ client_side_validation: true,
63
+ required: false,
64
+ serialized_name: 'ErrorRecordElementType',
65
+ type: {
66
+ name: 'Composite',
67
+ class_name: 'ErrorRecord'
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+ end
76
+ end
77
+ end
78
+ 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_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class LanguageBatchResultItem
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Unique document identifier.
17
+ attr_accessor :id
18
+
19
+ # @return [Array<DetectedLanguage>] A list of extracted languages.
20
+ attr_accessor :detected_languages
21
+
22
+
23
+ #
24
+ # Mapper for LanguageBatchResultItem 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: 'LanguageBatchResultItem',
32
+ type: {
33
+ name: 'Composite',
34
+ class_name: 'LanguageBatchResultItem',
35
+ model_properties: {
36
+ id: {
37
+ client_side_validation: true,
38
+ required: false,
39
+ read_only: true,
40
+ serialized_name: 'id',
41
+ type: {
42
+ name: 'String'
43
+ }
44
+ },
45
+ detected_languages: {
46
+ client_side_validation: true,
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'detectedLanguages',
50
+ type: {
51
+ name: 'Sequence',
52
+ element: {
53
+ client_side_validation: true,
54
+ required: false,
55
+ serialized_name: 'DetectedLanguageElementType',
56
+ type: {
57
+ name: 'Composite',
58
+ class_name: 'DetectedLanguage'
59
+ }
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ 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::TextAnalytics::V2_1_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class MatchRecordV2dot1
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] Entity text as appears in the request.
17
+ attr_accessor :text
18
+
19
+ # @return [Integer] Start position (in Unicode characters) for the entity
20
+ # match text.
21
+ attr_accessor :offset
22
+
23
+ # @return [Integer] Length (in Unicode characters) for the entity match
24
+ # text.
25
+ attr_accessor :length
26
+
27
+
28
+ #
29
+ # Mapper for MatchRecordV2dot1 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: 'MatchRecordV2dot1',
37
+ type: {
38
+ name: 'Composite',
39
+ class_name: 'MatchRecordV2dot1',
40
+ model_properties: {
41
+ text: {
42
+ client_side_validation: true,
43
+ required: false,
44
+ serialized_name: 'text',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ },
49
+ offset: {
50
+ client_side_validation: true,
51
+ required: false,
52
+ serialized_name: 'offset',
53
+ type: {
54
+ name: 'Number'
55
+ }
56
+ },
57
+ length: {
58
+ client_side_validation: true,
59
+ required: false,
60
+ serialized_name: 'length',
61
+ type: {
62
+ name: 'Number'
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ end
69
+ end
70
+ end
71
+ 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_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class MultiLanguageBatchInput
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<MultiLanguageInput>]
17
+ attr_accessor :documents
18
+
19
+
20
+ #
21
+ # Mapper for MultiLanguageBatchInput 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: 'MultiLanguageBatchInput',
29
+ type: {
30
+ name: 'Composite',
31
+ class_name: 'MultiLanguageBatchInput',
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: 'MultiLanguageInputElementType',
43
+ type: {
44
+ name: 'Composite',
45
+ class_name: 'MultiLanguageInput'
46
+ }
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ end
54
+ end
55
+ end
56
+ 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::TextAnalytics::V2_1_preview
7
+ module Models
8
+ #
9
+ # Model object.
10
+ #
11
+ #
12
+ class MultiLanguageInput
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [String] This is the 2 letter ISO 639-1 representation of a
17
+ # language. For example, use "en" for English; "es" for Spanish etc.,
18
+ attr_accessor :language
19
+
20
+ # @return [String] Unique, non-empty document identifier.
21
+ attr_accessor :id
22
+
23
+ # @return [String]
24
+ attr_accessor :text
25
+
26
+
27
+ #
28
+ # Mapper for MultiLanguageInput 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: 'MultiLanguageInput',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'MultiLanguageInput',
39
+ model_properties: {
40
+ language: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'language',
44
+ type: {
45
+ name: 'String'
46
+ }
47
+ },
48
+ id: {
49
+ client_side_validation: true,
50
+ required: false,
51
+ serialized_name: 'id',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ text: {
57
+ client_side_validation: true,
58
+ required: false,
59
+ serialized_name: 'text',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ }
64
+ }
65
+ }
66
+ }
67
+ end
68
+ end
69
+ end
70
+ end