azure_cognitiveservices_luisauthoring 0.17.1 → 0.17.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/apps.rb +78 -60
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/azure_accounts.rb +35 -35
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/examples.rb +24 -21
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/features.rb +147 -18
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/luis_authoring_client.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/model.rb +554 -452
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_info_response.rb +4 -4
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_setting_update_object.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/application_settings.rb +2 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/azure_account_info_object.rb +4 -4
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/batch_label_example.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_entity_extractor.rb +6 -6
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_create_object.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_patch_object.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/closed_list_model_update_object.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_extractor.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/composite_entity_model.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/custom_prebuilt_model.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entities_suggestion_example.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/entity_extractor.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/example_label_object.rb +5 -4
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_create_object.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/explicit_list_item_update_object.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_child_entity.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_entity_extractor.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/hierarchical_entity_model.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/intents_suggestion_example.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/jsonmodel_feature.rb +7 -10
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_example_response.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/label_text_object.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/labeled_utterance.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/luis_app.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_info.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/model_info_response.rb +5 -5
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/pattern_any_entity_extractor.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/phraselist_create_object.rb +8 -11
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/prebuilt_entity_extractor.rb +3 -3
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/publish_settings.rb +3 -5
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_entity_extractor.rb +5 -5
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_model_create_object.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_model_update_object.rb +2 -2
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/sub_closed_list_response.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/word_list_base_update_object.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/word_list_object.rb +1 -1
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/pattern.rb +34 -34
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/permissions.rb +9 -9
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/settings.rb +29 -13
- data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/versions.rb +21 -20
- data/lib/version.rb +1 -1
- metadata +2 -2
data/lib/2.0/generated/azure_cognitiveservices_luisauthoring/models/regex_model_update_object.rb
CHANGED
@@ -6,13 +6,13 @@
|
|
6
6
|
module Azure::CognitiveServices::LuisAuthoring::V2_0
|
7
7
|
module Models
|
8
8
|
#
|
9
|
-
# Model object for updating a
|
9
|
+
# Model object for updating a regular expression entity model.
|
10
10
|
#
|
11
11
|
class RegexModelUpdateObject
|
12
12
|
|
13
13
|
include MsRestAzure
|
14
14
|
|
15
|
-
# @return [String] The
|
15
|
+
# @return [String] The regular expression entity pattern.
|
16
16
|
attr_accessor :regex_pattern
|
17
17
|
|
18
18
|
# @return [String] The model name.
|
@@ -22,7 +22,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
# Adds
|
25
|
+
# Adds a pattern to a version of the application.
|
26
26
|
#
|
27
27
|
# @param app_id The application ID.
|
28
28
|
# @param version_id [String] The version ID.
|
@@ -38,7 +38,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
38
38
|
end
|
39
39
|
|
40
40
|
#
|
41
|
-
# Adds
|
41
|
+
# Adds a pattern to a version of the application.
|
42
42
|
#
|
43
43
|
# @param app_id The application ID.
|
44
44
|
# @param version_id [String] The version ID.
|
@@ -53,7 +53,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
53
53
|
end
|
54
54
|
|
55
55
|
#
|
56
|
-
# Adds
|
56
|
+
# Adds a pattern to a version of the application.
|
57
57
|
#
|
58
58
|
# @param app_id The application ID.
|
59
59
|
# @param version_id [String] The version ID.
|
@@ -124,7 +124,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
124
124
|
end
|
125
125
|
|
126
126
|
#
|
127
|
-
#
|
127
|
+
# Gets patterns in a version of the application.
|
128
128
|
#
|
129
129
|
# @param app_id The application ID.
|
130
130
|
# @param version_id [String] The version ID.
|
@@ -136,13 +136,13 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
136
136
|
#
|
137
137
|
# @return [Array] operation results.
|
138
138
|
#
|
139
|
-
def
|
140
|
-
response =
|
139
|
+
def list_patterns(app_id, version_id, skip:0, take:100, custom_headers:nil)
|
140
|
+
response = list_patterns_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value!
|
141
141
|
response.body unless response.nil?
|
142
142
|
end
|
143
143
|
|
144
144
|
#
|
145
|
-
#
|
145
|
+
# Gets patterns in a version of the application.
|
146
146
|
#
|
147
147
|
# @param app_id The application ID.
|
148
148
|
# @param version_id [String] The version ID.
|
@@ -154,12 +154,12 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
154
154
|
#
|
155
155
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
156
156
|
#
|
157
|
-
def
|
158
|
-
|
157
|
+
def list_patterns_with_http_info(app_id, version_id, skip:0, take:100, custom_headers:nil)
|
158
|
+
list_patterns_async(app_id, version_id, skip:skip, take:take, custom_headers:custom_headers).value!
|
159
159
|
end
|
160
160
|
|
161
161
|
#
|
162
|
-
#
|
162
|
+
# Gets patterns in a version of the application.
|
163
163
|
#
|
164
164
|
# @param app_id The application ID.
|
165
165
|
# @param version_id [String] The version ID.
|
@@ -171,7 +171,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
171
171
|
#
|
172
172
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
173
173
|
#
|
174
|
-
def
|
174
|
+
def list_patterns_async(app_id, version_id, skip:0, take:100, custom_headers:nil)
|
175
175
|
fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
|
176
176
|
fail ArgumentError, 'app_id is nil' if app_id.nil?
|
177
177
|
fail ArgumentError, 'version_id is nil' if version_id.nil?
|
@@ -244,7 +244,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
244
244
|
end
|
245
245
|
|
246
246
|
#
|
247
|
-
# Updates patterns
|
247
|
+
# Updates patterns in a version of the application.
|
248
248
|
#
|
249
249
|
# @param app_id The application ID.
|
250
250
|
# @param version_id [String] The version ID.
|
@@ -261,7 +261,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
261
261
|
end
|
262
262
|
|
263
263
|
#
|
264
|
-
# Updates patterns
|
264
|
+
# Updates patterns in a version of the application.
|
265
265
|
#
|
266
266
|
# @param app_id The application ID.
|
267
267
|
# @param version_id [String] The version ID.
|
@@ -277,7 +277,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
277
277
|
end
|
278
278
|
|
279
279
|
#
|
280
|
-
# Updates patterns
|
280
|
+
# Updates patterns in a version of the application.
|
281
281
|
#
|
282
282
|
# @param app_id The application ID.
|
283
283
|
# @param version_id [String] The version ID.
|
@@ -381,7 +381,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
381
381
|
end
|
382
382
|
|
383
383
|
#
|
384
|
-
# Adds a batch of patterns
|
384
|
+
# Adds a batch of patterns in a version of the application.
|
385
385
|
#
|
386
386
|
# @param app_id The application ID.
|
387
387
|
# @param version_id [String] The version ID.
|
@@ -398,7 +398,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
398
398
|
end
|
399
399
|
|
400
400
|
#
|
401
|
-
# Adds a batch of patterns
|
401
|
+
# Adds a batch of patterns in a version of the application.
|
402
402
|
#
|
403
403
|
# @param app_id The application ID.
|
404
404
|
# @param version_id [String] The version ID.
|
@@ -414,7 +414,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
414
414
|
end
|
415
415
|
|
416
416
|
#
|
417
|
-
# Adds a batch of patterns
|
417
|
+
# Adds a batch of patterns in a version of the application.
|
418
418
|
#
|
419
419
|
# @param app_id The application ID.
|
420
420
|
# @param version_id [String] The version ID.
|
@@ -518,7 +518,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
518
518
|
end
|
519
519
|
|
520
520
|
#
|
521
|
-
# Deletes
|
521
|
+
# Deletes a list of patterns in a version of the application.
|
522
522
|
#
|
523
523
|
# @param app_id The application ID.
|
524
524
|
# @param version_id [String] The version ID.
|
@@ -534,7 +534,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
534
534
|
end
|
535
535
|
|
536
536
|
#
|
537
|
-
# Deletes
|
537
|
+
# Deletes a list of patterns in a version of the application.
|
538
538
|
#
|
539
539
|
# @param app_id The application ID.
|
540
540
|
# @param version_id [String] The version ID.
|
@@ -549,7 +549,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
549
549
|
end
|
550
550
|
|
551
551
|
#
|
552
|
-
# Deletes
|
552
|
+
# Deletes a list of patterns in a version of the application.
|
553
553
|
#
|
554
554
|
# @param app_id The application ID.
|
555
555
|
# @param version_id [String] The version ID.
|
@@ -635,7 +635,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
635
635
|
end
|
636
636
|
|
637
637
|
#
|
638
|
-
# Updates a pattern
|
638
|
+
# Updates a pattern in a version of the application.
|
639
639
|
#
|
640
640
|
# @param app_id The application ID.
|
641
641
|
# @param version_id [String] The version ID.
|
@@ -652,7 +652,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
652
652
|
end
|
653
653
|
|
654
654
|
#
|
655
|
-
# Updates a pattern
|
655
|
+
# Updates a pattern in a version of the application.
|
656
656
|
#
|
657
657
|
# @param app_id The application ID.
|
658
658
|
# @param version_id [String] The version ID.
|
@@ -668,7 +668,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
668
668
|
end
|
669
669
|
|
670
670
|
#
|
671
|
-
# Updates a pattern
|
671
|
+
# Updates a pattern in a version of the application.
|
672
672
|
#
|
673
673
|
# @param app_id The application ID.
|
674
674
|
# @param version_id [String] The version ID.
|
@@ -741,7 +741,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
741
741
|
end
|
742
742
|
|
743
743
|
#
|
744
|
-
# Deletes the pattern with the specified ID
|
744
|
+
# Deletes the pattern with the specified ID from a version of the application..
|
745
745
|
#
|
746
746
|
# @param app_id The application ID.
|
747
747
|
# @param version_id [String] The version ID.
|
@@ -757,7 +757,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
757
757
|
end
|
758
758
|
|
759
759
|
#
|
760
|
-
# Deletes the pattern with the specified ID
|
760
|
+
# Deletes the pattern with the specified ID from a version of the application..
|
761
761
|
#
|
762
762
|
# @param app_id The application ID.
|
763
763
|
# @param version_id [String] The version ID.
|
@@ -772,7 +772,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
772
772
|
end
|
773
773
|
|
774
774
|
#
|
775
|
-
# Deletes the pattern with the specified ID
|
775
|
+
# Deletes the pattern with the specified ID from a version of the application..
|
776
776
|
#
|
777
777
|
# @param app_id The application ID.
|
778
778
|
# @param version_id [String] The version ID.
|
@@ -836,7 +836,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
836
836
|
end
|
837
837
|
|
838
838
|
#
|
839
|
-
# Returns patterns
|
839
|
+
# Returns patterns for the specific intent in a version of the application.
|
840
840
|
#
|
841
841
|
# @param app_id The application ID.
|
842
842
|
# @param version_id [String] The version ID.
|
@@ -849,13 +849,13 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
849
849
|
#
|
850
850
|
# @return [Array] operation results.
|
851
851
|
#
|
852
|
-
def
|
853
|
-
response =
|
852
|
+
def list_intent_patterns(app_id, version_id, intent_id, skip:0, take:100, custom_headers:nil)
|
853
|
+
response = list_intent_patterns_async(app_id, version_id, intent_id, skip:skip, take:take, custom_headers:custom_headers).value!
|
854
854
|
response.body unless response.nil?
|
855
855
|
end
|
856
856
|
|
857
857
|
#
|
858
|
-
# Returns patterns
|
858
|
+
# Returns patterns for the specific intent in a version of the application.
|
859
859
|
#
|
860
860
|
# @param app_id The application ID.
|
861
861
|
# @param version_id [String] The version ID.
|
@@ -868,12 +868,12 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
868
868
|
#
|
869
869
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
870
870
|
#
|
871
|
-
def
|
872
|
-
|
871
|
+
def list_intent_patterns_with_http_info(app_id, version_id, intent_id, skip:0, take:100, custom_headers:nil)
|
872
|
+
list_intent_patterns_async(app_id, version_id, intent_id, skip:skip, take:take, custom_headers:custom_headers).value!
|
873
873
|
end
|
874
874
|
|
875
875
|
#
|
876
|
-
# Returns patterns
|
876
|
+
# Returns patterns for the specific intent in a version of the application.
|
877
877
|
#
|
878
878
|
# @param app_id The application ID.
|
879
879
|
# @param version_id [String] The version ID.
|
@@ -886,7 +886,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
886
886
|
#
|
887
887
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
888
888
|
#
|
889
|
-
def
|
889
|
+
def list_intent_patterns_async(app_id, version_id, intent_id, skip:0, take:100, custom_headers:nil)
|
890
890
|
fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
|
891
891
|
fail ArgumentError, 'app_id is nil' if app_id.nil?
|
892
892
|
fail ArgumentError, 'version_id is nil' if version_id.nil?
|
@@ -320,11 +320,11 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
320
320
|
end
|
321
321
|
|
322
322
|
#
|
323
|
-
# Replaces the current
|
324
|
-
# empty list is sent, all access to other users will be removed.
|
323
|
+
# Replaces the current user access list with the new list sent in the body. If
|
324
|
+
# an empty list is sent, all access to other users will be removed.
|
325
325
|
#
|
326
326
|
# @param app_id The application ID.
|
327
|
-
# @param collaborators [CollaboratorsArray] A model containing a list of user
|
327
|
+
# @param collaborators [CollaboratorsArray] A model containing a list of user
|
328
328
|
# email addresses.
|
329
329
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
330
330
|
# will be added to the HTTP request.
|
@@ -337,11 +337,11 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
337
337
|
end
|
338
338
|
|
339
339
|
#
|
340
|
-
# Replaces the current
|
341
|
-
# empty list is sent, all access to other users will be removed.
|
340
|
+
# Replaces the current user access list with the new list sent in the body. If
|
341
|
+
# an empty list is sent, all access to other users will be removed.
|
342
342
|
#
|
343
343
|
# @param app_id The application ID.
|
344
|
-
# @param collaborators [CollaboratorsArray] A model containing a list of user
|
344
|
+
# @param collaborators [CollaboratorsArray] A model containing a list of user
|
345
345
|
# email addresses.
|
346
346
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
347
347
|
# will be added to the HTTP request.
|
@@ -353,11 +353,11 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
353
353
|
end
|
354
354
|
|
355
355
|
#
|
356
|
-
# Replaces the current
|
357
|
-
# empty list is sent, all access to other users will be removed.
|
356
|
+
# Replaces the current user access list with the new list sent in the body. If
|
357
|
+
# an empty list is sent, all access to other users will be removed.
|
358
358
|
#
|
359
359
|
# @param app_id The application ID.
|
360
|
-
# @param collaborators [CollaboratorsArray] A model containing a list of user
|
360
|
+
# @param collaborators [CollaboratorsArray] A model containing a list of user
|
361
361
|
# email addresses.
|
362
362
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
363
363
|
# to the HTTP request.
|
@@ -22,7 +22,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
# Gets the
|
25
|
+
# Gets the settings in a version of the application.
|
26
26
|
#
|
27
27
|
# @param app_id The application ID.
|
28
28
|
# @param version_id [String] The version ID.
|
@@ -37,7 +37,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
37
37
|
end
|
38
38
|
|
39
39
|
#
|
40
|
-
# Gets the
|
40
|
+
# Gets the settings in a version of the application.
|
41
41
|
#
|
42
42
|
# @param app_id The application ID.
|
43
43
|
# @param version_id [String] The version ID.
|
@@ -51,7 +51,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
51
51
|
end
|
52
52
|
|
53
53
|
#
|
54
|
-
# Gets the
|
54
|
+
# Gets the settings in a version of the application.
|
55
55
|
#
|
56
56
|
# @param app_id The application ID.
|
57
57
|
# @param version_id [String] The version ID.
|
@@ -129,12 +129,12 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
129
129
|
end
|
130
130
|
|
131
131
|
#
|
132
|
-
# Updates the
|
132
|
+
# Updates the settings in a version of the application.
|
133
133
|
#
|
134
134
|
# @param app_id The application ID.
|
135
135
|
# @param version_id [String] The version ID.
|
136
|
-
# @param list_of_app_version_setting_object [AppVersionSettingObject] A
|
137
|
-
# the updated application version settings.
|
136
|
+
# @param list_of_app_version_setting_object [Array<AppVersionSettingObject>] A
|
137
|
+
# list of the updated application version settings.
|
138
138
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
139
139
|
# will be added to the HTTP request.
|
140
140
|
#
|
@@ -146,12 +146,12 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
146
146
|
end
|
147
147
|
|
148
148
|
#
|
149
|
-
# Updates the
|
149
|
+
# Updates the settings in a version of the application.
|
150
150
|
#
|
151
151
|
# @param app_id The application ID.
|
152
152
|
# @param version_id [String] The version ID.
|
153
|
-
# @param list_of_app_version_setting_object [AppVersionSettingObject] A
|
154
|
-
# the updated application version settings.
|
153
|
+
# @param list_of_app_version_setting_object [Array<AppVersionSettingObject>] A
|
154
|
+
# list of the updated application version settings.
|
155
155
|
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
156
156
|
# will be added to the HTTP request.
|
157
157
|
#
|
@@ -162,12 +162,12 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
162
162
|
end
|
163
163
|
|
164
164
|
#
|
165
|
-
# Updates the
|
165
|
+
# Updates the settings in a version of the application.
|
166
166
|
#
|
167
167
|
# @param app_id The application ID.
|
168
168
|
# @param version_id [String] The version ID.
|
169
|
-
# @param list_of_app_version_setting_object [AppVersionSettingObject] A
|
170
|
-
# the updated application version settings.
|
169
|
+
# @param list_of_app_version_setting_object [Array<AppVersionSettingObject>] A
|
170
|
+
# list of the updated application version settings.
|
171
171
|
# @param [Hash{String => String}] A hash of custom headers that will be added
|
172
172
|
# to the HTTP request.
|
173
173
|
#
|
@@ -188,7 +188,23 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
188
188
|
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
189
189
|
|
190
190
|
# Serialize Request
|
191
|
-
request_mapper =
|
191
|
+
request_mapper = {
|
192
|
+
client_side_validation: true,
|
193
|
+
required: true,
|
194
|
+
serialized_name: 'listOfAppVersionSettingObject',
|
195
|
+
type: {
|
196
|
+
name: 'Sequence',
|
197
|
+
element: {
|
198
|
+
client_side_validation: true,
|
199
|
+
required: false,
|
200
|
+
serialized_name: 'AppVersionSettingObjectElementType',
|
201
|
+
type: {
|
202
|
+
name: 'Composite',
|
203
|
+
class_name: 'AppVersionSettingObject'
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
192
208
|
request_content = @client.serialize(request_mapper, list_of_app_version_setting_object)
|
193
209
|
request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
|
194
210
|
|
@@ -22,8 +22,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
22
22
|
attr_reader :client
|
23
23
|
|
24
24
|
#
|
25
|
-
# Creates a new version
|
26
|
-
# version.
|
25
|
+
# Creates a new version from the selected version.
|
27
26
|
#
|
28
27
|
# @param app_id The application ID.
|
29
28
|
# @param version_id [String] The version ID.
|
@@ -34,14 +33,13 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
34
33
|
#
|
35
34
|
# @return [String] operation results.
|
36
35
|
#
|
37
|
-
def clone(app_id, version_id, version_clone_object
|
38
|
-
response = clone_async(app_id, version_id, version_clone_object
|
36
|
+
def clone(app_id, version_id, version_clone_object, custom_headers:nil)
|
37
|
+
response = clone_async(app_id, version_id, version_clone_object, custom_headers:custom_headers).value!
|
39
38
|
response.body unless response.nil?
|
40
39
|
end
|
41
40
|
|
42
41
|
#
|
43
|
-
# Creates a new version
|
44
|
-
# version.
|
42
|
+
# Creates a new version from the selected version.
|
45
43
|
#
|
46
44
|
# @param app_id The application ID.
|
47
45
|
# @param version_id [String] The version ID.
|
@@ -52,13 +50,12 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
52
50
|
#
|
53
51
|
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
54
52
|
#
|
55
|
-
def clone_with_http_info(app_id, version_id, version_clone_object
|
56
|
-
clone_async(app_id, version_id, version_clone_object
|
53
|
+
def clone_with_http_info(app_id, version_id, version_clone_object, custom_headers:nil)
|
54
|
+
clone_async(app_id, version_id, version_clone_object, custom_headers:custom_headers).value!
|
57
55
|
end
|
58
56
|
|
59
57
|
#
|
60
|
-
# Creates a new version
|
61
|
-
# version.
|
58
|
+
# Creates a new version from the selected version.
|
62
59
|
#
|
63
60
|
# @param app_id The application ID.
|
64
61
|
# @param version_id [String] The version ID.
|
@@ -69,10 +66,11 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
69
66
|
#
|
70
67
|
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
71
68
|
#
|
72
|
-
def clone_async(app_id, version_id, version_clone_object
|
69
|
+
def clone_async(app_id, version_id, version_clone_object, custom_headers:nil)
|
73
70
|
fail ArgumentError, '@client.endpoint is nil' if @client.endpoint.nil?
|
74
71
|
fail ArgumentError, 'app_id is nil' if app_id.nil?
|
75
72
|
fail ArgumentError, 'version_id is nil' if version_id.nil?
|
73
|
+
fail ArgumentError, 'version_clone_object is nil' if version_clone_object.nil?
|
76
74
|
|
77
75
|
|
78
76
|
request_headers = {}
|
@@ -136,7 +134,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
136
134
|
end
|
137
135
|
|
138
136
|
#
|
139
|
-
# Gets
|
137
|
+
# Gets a list of versions for this application ID.
|
140
138
|
#
|
141
139
|
# @param app_id The application ID.
|
142
140
|
# @param skip [Integer] The number of entries to skip. Default value is 0.
|
@@ -153,7 +151,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
153
151
|
end
|
154
152
|
|
155
153
|
#
|
156
|
-
# Gets
|
154
|
+
# Gets a list of versions for this application ID.
|
157
155
|
#
|
158
156
|
# @param app_id The application ID.
|
159
157
|
# @param skip [Integer] The number of entries to skip. Default value is 0.
|
@@ -169,7 +167,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
169
167
|
end
|
170
168
|
|
171
169
|
#
|
172
|
-
# Gets
|
170
|
+
# Gets a list of versions for this application ID.
|
173
171
|
#
|
174
172
|
# @param app_id The application ID.
|
175
173
|
# @param skip [Integer] The number of entries to skip. Default value is 0.
|
@@ -252,7 +250,8 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
252
250
|
end
|
253
251
|
|
254
252
|
#
|
255
|
-
# Gets the version
|
253
|
+
# Gets the version information such as date created, last modified date,
|
254
|
+
# endpoint URL, count of intents and entities, training and publishing status.
|
256
255
|
#
|
257
256
|
# @param app_id The application ID.
|
258
257
|
# @param version_id [String] The version ID.
|
@@ -267,7 +266,8 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
267
266
|
end
|
268
267
|
|
269
268
|
#
|
270
|
-
# Gets the version
|
269
|
+
# Gets the version information such as date created, last modified date,
|
270
|
+
# endpoint URL, count of intents and entities, training and publishing status.
|
271
271
|
#
|
272
272
|
# @param app_id The application ID.
|
273
273
|
# @param version_id [String] The version ID.
|
@@ -281,7 +281,8 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
281
281
|
end
|
282
282
|
|
283
283
|
#
|
284
|
-
# Gets the version
|
284
|
+
# Gets the version information such as date created, last modified date,
|
285
|
+
# endpoint URL, count of intents and entities, training and publishing status.
|
285
286
|
#
|
286
287
|
# @param app_id The application ID.
|
287
288
|
# @param version_id [String] The version ID.
|
@@ -742,7 +743,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
742
743
|
end
|
743
744
|
|
744
745
|
#
|
745
|
-
# Deleted an unlabelled utterance.
|
746
|
+
# Deleted an unlabelled utterance in a version of the application.
|
746
747
|
#
|
747
748
|
# @param app_id The application ID.
|
748
749
|
# @param version_id [String] The version ID.
|
@@ -758,7 +759,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
758
759
|
end
|
759
760
|
|
760
761
|
#
|
761
|
-
# Deleted an unlabelled utterance.
|
762
|
+
# Deleted an unlabelled utterance in a version of the application.
|
762
763
|
#
|
763
764
|
# @param app_id The application ID.
|
764
765
|
# @param version_id [String] The version ID.
|
@@ -773,7 +774,7 @@ module Azure::CognitiveServices::LuisAuthoring::V2_0
|
|
773
774
|
end
|
774
775
|
|
775
776
|
#
|
776
|
-
# Deleted an unlabelled utterance.
|
777
|
+
# Deleted an unlabelled utterance in a version of the application.
|
777
778
|
#
|
778
779
|
# @param app_id The application ID.
|
779
780
|
# @param version_id [String] The version ID.
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_cognitiveservices_luisauthoring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|